FactuGES_ERP/modules/supplier/src/web/shared/api/delete-supplier-by-id.api.ts

14 lines
416 B
TypeScript
Raw Normal View History

2026-04-03 20:03:48 +00:00
import type { IDataSource } from "@erp/core/client";
import type { DeleteSupplierByIdRequestDTO } from "../../../common";
export type SupplierDeleteInput = DeleteSupplierByIdRequestDTO;
export async function deleteSupplierById(dataSource: IDataSource, id: string, signal: AbortSignal) {
const response = await dataSource.deleteOne<SupplierDeleteInput>("suppliers", id, {
signal,
});
return response;
}