25 lines
838 B
TypeScript
25 lines
838 B
TypeScript
|
|
import type { CustomersInternalDeps } from "./customers.di";
|
||
|
|
|
||
|
|
export type CustomersServicesDeps = {
|
||
|
|
services: {
|
||
|
|
listCustomers: (filters: unknown, context: unknown) => null;
|
||
|
|
getCustomerById: (id: unknown, context: unknown) => null;
|
||
|
|
generateCustomerReport: (id: unknown, options: unknown, context: unknown) => null;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
export function buildCustomerServices(deps: CustomersInternalDeps): CustomersServicesDeps {
|
||
|
|
return {
|
||
|
|
services: {
|
||
|
|
listCustomers: (filters, context) => null,
|
||
|
|
//internal.useCases.listCustomers().execute(filters, context),
|
||
|
|
|
||
|
|
getCustomerById: (id, context) => null,
|
||
|
|
//internal.useCases.getCustomerById().execute(id, context),
|
||
|
|
|
||
|
|
generateCustomerReport: (id, options, context) => null,
|
||
|
|
//internal.useCases.reportCustomer().execute(id, options, context),
|
||
|
|
},
|
||
|
|
};
|
||
|
|
}
|