import type { IDataSource } from "@erp/core/client"; import type { GetCustomerByIdResponseDTO } from "../../../common"; export async function getCustomerById(dataSource: IDataSource, signal: AbortSignal, id?: string) { if (!id) throw new Error("customerId is required"); const response = dataSource.getOne("customers", id, { signal }); return response; }