kcommons 5.12.0 → 5.12.2

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.
@@ -17,7 +17,8 @@ export declare enum BOM_INCLUDE {
17
17
  created_by_user = "created_by_user",
18
18
  last_updated_by_user = "last_updated_by_user",
19
19
  items = "items",
20
- referenced_in_rfq_boms = "referenced_in_rfq_boms"
20
+ referenced_in_rfq_boms = "referenced_in_rfq_boms",
21
+ referenced_in_po_boms = "referenced_in_po_boms"
21
22
  }
22
23
  export interface IBOM {
23
24
  id: string;
@@ -39,7 +40,7 @@ export interface IBOM {
39
40
  referenced_in_rfq_boms: INestedRFQBOM[] | null;
40
41
  referenced_in_po_boms: INestedPOBom[] | null;
41
42
  }
42
- export interface INestedBOM extends Omit<IBOM, "company" | "created_by_user" | "last_updated_by_user" | "items" | "referenced_in_rfq_boms"> {
43
+ export interface INestedBOM extends Omit<IBOM, "company" | "created_by_user" | "last_updated_by_user" | "items" | "referenced_in_rfq_boms" | "referenced_in_po_boms"> {
43
44
  }
44
45
  export declare enum BOM_ITEM_INCLUDE {
45
46
  company = "company",
@@ -8,6 +8,7 @@ var BOM_INCLUDE;
8
8
  BOM_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
9
9
  BOM_INCLUDE["items"] = "items";
10
10
  BOM_INCLUDE["referenced_in_rfq_boms"] = "referenced_in_rfq_boms";
11
+ BOM_INCLUDE["referenced_in_po_boms"] = "referenced_in_po_boms";
11
12
  })(BOM_INCLUDE || (exports.BOM_INCLUDE = BOM_INCLUDE = {}));
12
13
  // BOM Item
13
14
  var BOM_ITEM_INCLUDE;
@@ -25,6 +25,10 @@ export declare enum PO_TYPE {
25
25
  DIRECT = "DIRECT",
26
26
  ASCENDENT_OF_COMPARATIVE = "ASCENDENT_OF_COMPARATIVE"
27
27
  }
28
+ export declare enum PO_ITEM_ASCENDENCE_TYPE {
29
+ DIRECT = "DIRECT",
30
+ BOM = "BOM"
31
+ }
28
32
  export interface IPurchaseOrder {
29
33
  id: string;
30
34
  po_type: PO_TYPE;
@@ -77,6 +81,7 @@ export declare enum PO_INCLUDE {
77
81
  sent_to_vendor_by = "sent_to_vendor_by",
78
82
  parent_quote = "parent_quote",
79
83
  comparative = "comparative",
84
+ asns = "asns",
80
85
  items = "items",
81
86
  boms = "boms",
82
87
  approval_chain = "approval_chain",
@@ -86,6 +91,7 @@ export declare enum PO_INCLUDE {
86
91
  export interface IPOItem extends ITaxRelatedItemInputs {
87
92
  id: string;
88
93
  company_id: string;
94
+ type: string;
89
95
  parent_po_id: string | null;
90
96
  parent_po_bom_id: string | null;
91
97
  parent_po_bom_code: string | null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PO_BOM_INCLUDE = exports.PO_ITEM_INCLUDE = exports.PO_INCLUDE = exports.PO_TYPE = exports.PO_STATUS = void 0;
3
+ exports.PO_BOM_INCLUDE = exports.PO_ITEM_INCLUDE = exports.PO_INCLUDE = exports.PO_ITEM_ASCENDENCE_TYPE = exports.PO_TYPE = exports.PO_STATUS = void 0;
4
4
  var PO_STATUS;
5
5
  (function (PO_STATUS) {
6
6
  PO_STATUS["DRAFT"] = "DRAFT";
@@ -18,6 +18,11 @@ var PO_TYPE;
18
18
  PO_TYPE["DIRECT"] = "DIRECT";
19
19
  PO_TYPE["ASCENDENT_OF_COMPARATIVE"] = "ASCENDENT_OF_COMPARATIVE";
20
20
  })(PO_TYPE || (exports.PO_TYPE = PO_TYPE = {}));
21
+ var PO_ITEM_ASCENDENCE_TYPE;
22
+ (function (PO_ITEM_ASCENDENCE_TYPE) {
23
+ PO_ITEM_ASCENDENCE_TYPE["DIRECT"] = "DIRECT";
24
+ PO_ITEM_ASCENDENCE_TYPE["BOM"] = "BOM";
25
+ })(PO_ITEM_ASCENDENCE_TYPE || (exports.PO_ITEM_ASCENDENCE_TYPE = PO_ITEM_ASCENDENCE_TYPE = {}));
21
26
  var PO_INCLUDE;
22
27
  (function (PO_INCLUDE) {
23
28
  PO_INCLUDE["company"] = "company";
@@ -30,6 +35,7 @@ var PO_INCLUDE;
30
35
  PO_INCLUDE["sent_to_vendor_by"] = "sent_to_vendor_by";
31
36
  PO_INCLUDE["parent_quote"] = "parent_quote";
32
37
  PO_INCLUDE["comparative"] = "comparative";
38
+ PO_INCLUDE["asns"] = "asns";
33
39
  PO_INCLUDE["items"] = "items";
34
40
  PO_INCLUDE["boms"] = "boms";
35
41
  PO_INCLUDE["approval_chain"] = "approval_chain";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.12.0",
3
+ "version": "5.12.2",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",