import type { IDataSource } from "@erp/core/client"; import type { GetSupplierByIdResponseDTO } from "../../../common"; export type SupplierGetOutput = GetSupplierByIdResponseDTO; export async function getSupplierById(dataSource: IDataSource, id: string, signal: AbortSignal) { const response = dataSource.getOne("suppliers", id, { signal, }); return response; }