truflow 0.0.172 → 0.0.174

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.
@@ -0,0 +1,33 @@
1
+ interface IBatchOrder {
2
+ batch_id: number;
3
+ order_id: number[];
4
+ }
5
+ interface IBatchPurchaseOrder {
6
+ batch_id: number;
7
+ po_id: number[];
8
+ }
9
+ interface IBatchInvoice {
10
+ batch_id: number;
11
+ invoice_id: number[];
12
+ }
13
+ export interface IOrderBatchResponse {
14
+ batch_id: number;
15
+ name: string | null;
16
+ batch_date: string | null;
17
+ batch_type: string | null;
18
+ createdby: string | null;
19
+ createdbyid: number | null;
20
+ createddate: string | null;
21
+ updatedby: string | null;
22
+ updatedbyid: number | null;
23
+ updateddate: string | null;
24
+ batch_orders: IBatchOrder[];
25
+ batch_purchase_orders: IBatchPurchaseOrder[];
26
+ batch_invoices: IBatchInvoice[];
27
+ }
28
+ export interface IOrderBatch {
29
+ name: string | null;
30
+ batch_type: "order" | "invoice" | "purchase_order";
31
+ item_ids: number[];
32
+ }
33
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,3 +12,4 @@ export * from "./IProductAttribute";
12
12
  export * from "./IProductAttributeOptions";
13
13
  export * from "./IProductProductAttribute";
14
14
  export * from "./ITrigger";
15
+ export * from "./IOrderBatch";
@@ -28,3 +28,4 @@ __exportStar(require("./IProductAttribute"), exports);
28
28
  __exportStar(require("./IProductAttributeOptions"), exports);
29
29
  __exportStar(require("./IProductProductAttribute"), exports);
30
30
  __exportStar(require("./ITrigger"), exports);
31
+ __exportStar(require("./IOrderBatch"), exports);
@@ -50,6 +50,7 @@ export interface ILeanLimit extends ILeanSetting {
50
50
  limit: string;
51
51
  enabled: boolean;
52
52
  products?: string[];
53
+ nestable?: boolean;
53
54
  }
54
55
  export interface ILeanOrderFlag extends ILeanSetting {
55
56
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truflow",
3
- "version": "0.0.172",
3
+ "version": "0.0.174",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -0,0 +1,36 @@
1
+ interface IBatchOrder {
2
+ batch_id: number;
3
+ order_id: number[];
4
+ }
5
+
6
+ interface IBatchPurchaseOrder {
7
+ batch_id: number;
8
+ po_id: number[];
9
+ }
10
+
11
+ interface IBatchInvoice {
12
+ batch_id: number;
13
+ invoice_id: number[];
14
+ }
15
+
16
+ export interface IOrderBatchResponse {
17
+ batch_id: number;
18
+ name: string | null;
19
+ batch_date: string | null;
20
+ batch_type: string | null;
21
+ createdby: string | null;
22
+ createdbyid: number | null;
23
+ createddate: string | null;
24
+ updatedby: string | null;
25
+ updatedbyid: number | null;
26
+ updateddate: string | null;
27
+ batch_orders: IBatchOrder[];
28
+ batch_purchase_orders: IBatchPurchaseOrder[];
29
+ batch_invoices: IBatchInvoice[];
30
+ }
31
+
32
+ export interface IOrderBatch {
33
+ name: string | null;
34
+ batch_type: "order" | "invoice" | "purchase_order";
35
+ item_ids: number[];
36
+ }
@@ -12,3 +12,4 @@ export * from "./IProductAttribute";
12
12
  export * from "./IProductAttributeOptions";
13
13
  export * from "./IProductProductAttribute";
14
14
  export * from "./ITrigger";
15
+ export * from "./IOrderBatch";
package/src/ISetting.ts CHANGED
@@ -31,6 +31,7 @@ export interface ILeanLimit extends ILeanSetting {
31
31
  limit: string;
32
32
  enabled: boolean;
33
33
  products?: string[];
34
+ nestable?: boolean;
34
35
  }
35
36
 
36
37
  export interface ILeanOrderFlag extends ILeanSetting {