@nomalism-com/types 0.9.475 → 0.9.476
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,6 +4,7 @@ export type Entity = StockMovement;
|
|
|
4
4
|
export declare const Route = "stock_movement";
|
|
5
5
|
export declare const UpperName = "StockMovement";
|
|
6
6
|
export declare const LowerName: string;
|
|
7
|
+
export type IFindByProviderResponse = Omit<StockMovement, 'product_id' | 'stock_to_date'>;
|
|
7
8
|
export type IFindByOwnerIdResponse = Omit<StockMovement, 'product_id'>;
|
|
8
9
|
export interface IExportCsvRequest {
|
|
9
10
|
date: Date;
|
|
@@ -18,6 +19,7 @@ export interface IExportCsvResponse {
|
|
|
18
19
|
unitOfMeasure: string;
|
|
19
20
|
}
|
|
20
21
|
export interface IRepository {
|
|
22
|
+
findByProvider(selector: IShared.IFindByIdNumberRequest): Promise<IFindByProviderResponse[]>;
|
|
21
23
|
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
22
24
|
exportCsv(selector: IExportCsvRequest): Promise<IExportCsvResponse[]>;
|
|
23
25
|
}
|