@nomalism-com/types 0.31.17 → 0.31.18

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.
@@ -32,32 +32,10 @@ export interface IFindProviderProductsResponse {
32
32
  pre_ordered_quantity: number;
33
33
  last6m_consumption: number;
34
34
  }
35
- export interface IFindProductHistoryRequest {
36
- product_id: string;
37
- }
38
- export interface IFindProductHistoryClientOrder {
39
- order_date: Date;
40
- order_name: string;
41
- client_name: string;
42
- }
43
- export interface IFindProductHistoryProviderOrder {
44
- order_date: Date;
45
- order_name: string;
46
- }
47
- export interface IFindProductHistoryMovement {
48
- date: Date;
49
- document_name: string;
50
- document_header_id: string | null;
51
- quantity_in: number;
52
- quantity_out: number;
53
- stock_to_date: number;
54
- }
55
- export interface IFindProductHistoryResponse {
56
- movements: IFindProductHistoryMovement[];
57
- client_orders: IFindProductHistoryClientOrder[];
58
- provider_orders: IFindProductHistoryProviderOrder[];
35
+ export interface IFindAllProviderProductsResponse extends IFindProviderProductsResponse {
36
+ provider_id: string;
59
37
  }
60
38
  export interface IRepository {
61
39
  findProviderProducts(params: IFindProviderProductsRequest): Promise<IFindProviderProductsResponse[]>;
62
- findProductHistory(params: IFindProductHistoryRequest): Promise<IFindProductHistoryResponse>;
40
+ findAllProviderProducts(): Promise<IFindAllProviderProductsResponse[]>;
63
41
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.31.17",
12
+ "version": "0.31.18",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [