kcommons 5.11.13 → 5.12.0

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.
@@ -1,6 +1,7 @@
1
1
  import { IPaginationFilters } from "./common/paginationFilters.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
3
  import { INestedItem } from "./item.typings";
4
+ import { INestedPOBom } from "./po.typings";
4
5
  import { INestedRFQBOM } from "./rfq.typings";
5
6
  import { INestedUser } from "./user.typings";
6
7
  export interface IBOMFilters {
@@ -36,12 +37,13 @@ export interface IBOM {
36
37
  last_updated_by_user: INestedUser | null;
37
38
  items: INestedBOMItem[] | null;
38
39
  referenced_in_rfq_boms: INestedRFQBOM[] | null;
40
+ referenced_in_po_boms: INestedPOBom[] | null;
39
41
  }
40
42
  export interface INestedBOM extends Omit<IBOM, "company" | "created_by_user" | "last_updated_by_user" | "items" | "referenced_in_rfq_boms"> {
41
43
  }
42
44
  export declare enum BOM_ITEM_INCLUDE {
43
45
  company = "company",
44
- parent_rfq_bom = "parent_rfq_bom",
46
+ parent_bom = "parent_bom",
45
47
  item = "item"
46
48
  }
47
49
  export interface IBOMItem {
@@ -60,8 +62,8 @@ export interface IBOMItem {
60
62
  updated_at: string;
61
63
  created_at: string;
62
64
  company: INestedCompany | null;
63
- parent_rfq_bom: INestedBOM | null;
65
+ parent_bom: INestedBOM | null;
64
66
  item: INestedItem | null;
65
67
  }
66
- export interface INestedBOMItem extends Omit<IBOMItem, "company" | "item" | "parent_rfq_bom"> {
68
+ export interface INestedBOMItem extends Omit<IBOMItem, "company" | "item" | "parent_bom"> {
67
69
  }
@@ -13,6 +13,6 @@ var BOM_INCLUDE;
13
13
  var BOM_ITEM_INCLUDE;
14
14
  (function (BOM_ITEM_INCLUDE) {
15
15
  BOM_ITEM_INCLUDE["company"] = "company";
16
- BOM_ITEM_INCLUDE["parent_rfq_bom"] = "parent_rfq_bom";
16
+ BOM_ITEM_INCLUDE["parent_bom"] = "parent_bom";
17
17
  BOM_ITEM_INCLUDE["item"] = "item";
18
18
  })(BOM_ITEM_INCLUDE || (exports.BOM_ITEM_INCLUDE = BOM_ITEM_INCLUDE = {}));
@@ -1,4 +1,5 @@
1
1
  import { IApprovalChainEntry } from "./approvalChain.typings";
2
+ import { INestedBOM } from "./bom.typings";
2
3
  import { INestedCompany } from "./company.typings";
3
4
  import { INestedCompanyVendors } from "./companyVendors.typings";
4
5
  import { INestedComparative } from "./comparative.typings";
@@ -60,10 +61,11 @@ export interface IPurchaseOrder {
60
61
  parent_quote: INestedQuote | null;
61
62
  comparative: INestedComparative | null;
62
63
  items: INestedPOItem[] | null;
64
+ boms: INestedPOBom[] | null;
63
65
  approval_chain: IApprovalChainEntry[] | null;
64
66
  taxes: INestedDocumentTaxes[] | null;
65
67
  }
66
- export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "company_vendor" | "contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "approval_chain" | "taxes"> {
68
+ export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "company_vendor" | "contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes"> {
67
69
  }
68
70
  export declare enum PO_INCLUDE {
69
71
  company = "company",
@@ -76,6 +78,7 @@ export declare enum PO_INCLUDE {
76
78
  parent_quote = "parent_quote",
77
79
  comparative = "comparative",
78
80
  items = "items",
81
+ boms = "boms",
79
82
  approval_chain = "approval_chain",
80
83
  taxes = "taxes",
81
84
  purchase_location = "purchase_location"
@@ -83,15 +86,42 @@ export declare enum PO_INCLUDE {
83
86
  export interface IPOItem extends ITaxRelatedItemInputs {
84
87
  id: string;
85
88
  company_id: string;
86
- parent_po_id: string;
89
+ parent_po_id: string | null;
90
+ parent_po_bom_id: string | null;
91
+ parent_po_bom_code: string | null;
87
92
  company: INestedCompany | null;
88
93
  item: INestedItem | null;
89
94
  parent_po: INestedPo | null;
95
+ parent_po_bom: INestedPOBom | null;
90
96
  }
91
- export interface INestedPOItem extends Omit<IPOItem, "company" | "item" | "parent_po"> {
97
+ export interface INestedPOItem extends Omit<IPOItem, "company" | "item" | "parent_po" | "parent_po_bom"> {
92
98
  }
93
99
  export declare enum PO_ITEM_INCLUDE {
94
100
  company = "company",
95
101
  item = "item",
96
- parent_po = "parent_po"
102
+ parent_po = "parent_po",
103
+ parent_po_bom = "parent_po_bom"
104
+ }
105
+ export declare enum PO_BOM_INCLUDE {
106
+ parent_po = "parent_po",
107
+ bom = "bom",
108
+ referenced_po_items = "referenced_po_items"
109
+ }
110
+ export interface IPOBom {
111
+ id: string;
112
+ parent_po_id: string;
113
+ bom_id: string;
114
+ bom_code: string;
115
+ bom_name: string;
116
+ remarks: string | null;
117
+ quantity: number;
118
+ is_deleted: boolean;
119
+ deleted_at: string | null;
120
+ created_at: string;
121
+ updated_at: string;
122
+ parent_po: INestedPo | null;
123
+ bom: INestedBOM | null;
124
+ referenced_po_items: INestedPOItem[] | null;
125
+ }
126
+ export interface INestedPOBom extends Omit<IPOBom, "parent_po" | "bom" | "referenced_po_items"> {
97
127
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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_TYPE = exports.PO_STATUS = void 0;
4
4
  var PO_STATUS;
5
5
  (function (PO_STATUS) {
6
6
  PO_STATUS["DRAFT"] = "DRAFT";
@@ -31,6 +31,7 @@ var PO_INCLUDE;
31
31
  PO_INCLUDE["parent_quote"] = "parent_quote";
32
32
  PO_INCLUDE["comparative"] = "comparative";
33
33
  PO_INCLUDE["items"] = "items";
34
+ PO_INCLUDE["boms"] = "boms";
34
35
  PO_INCLUDE["approval_chain"] = "approval_chain";
35
36
  PO_INCLUDE["taxes"] = "taxes";
36
37
  PO_INCLUDE["purchase_location"] = "purchase_location";
@@ -40,4 +41,12 @@ var PO_ITEM_INCLUDE;
40
41
  PO_ITEM_INCLUDE["company"] = "company";
41
42
  PO_ITEM_INCLUDE["item"] = "item";
42
43
  PO_ITEM_INCLUDE["parent_po"] = "parent_po";
44
+ PO_ITEM_INCLUDE["parent_po_bom"] = "parent_po_bom";
43
45
  })(PO_ITEM_INCLUDE || (exports.PO_ITEM_INCLUDE = PO_ITEM_INCLUDE = {}));
46
+ // PO Bom
47
+ var PO_BOM_INCLUDE;
48
+ (function (PO_BOM_INCLUDE) {
49
+ PO_BOM_INCLUDE["parent_po"] = "parent_po";
50
+ PO_BOM_INCLUDE["bom"] = "bom";
51
+ PO_BOM_INCLUDE["referenced_po_items"] = "referenced_po_items";
52
+ })(PO_BOM_INCLUDE || (exports.PO_BOM_INCLUDE = PO_BOM_INCLUDE = {}));
@@ -36,7 +36,8 @@ export declare enum RFQ_STATUS {
36
36
  }
37
37
  export declare enum RFQ_ITEM_TYPE {
38
38
  PR_ASCENDANT = "pr_ascendant",
39
- EXTRA = "extra"
39
+ EXTRA = "extra",
40
+ BOM = "bom"
40
41
  }
41
42
  export declare enum BIDDING_TYPES {
42
43
  OPEN = "open_bidding",
@@ -142,7 +143,7 @@ export interface IRFQBom {
142
143
  updated_at: string;
143
144
  parent_rfq: INestedRFQ | null;
144
145
  bom: INestedBOM | null;
145
- referenced_rfq_item: IRFQItem | null;
146
+ referenced_rfq_item: IRFQItem[] | null;
146
147
  }
147
148
  export interface INestedRFQBOM extends Omit<IRFQBom, "parent_rfq" | "bom" | "referenced_rfq_item"> {
148
149
  }
@@ -32,6 +32,7 @@ var RFQ_ITEM_TYPE;
32
32
  (function (RFQ_ITEM_TYPE) {
33
33
  RFQ_ITEM_TYPE["PR_ASCENDANT"] = "pr_ascendant";
34
34
  RFQ_ITEM_TYPE["EXTRA"] = "extra";
35
+ RFQ_ITEM_TYPE["BOM"] = "bom";
35
36
  })(RFQ_ITEM_TYPE || (exports.RFQ_ITEM_TYPE = RFQ_ITEM_TYPE = {}));
36
37
  var BIDDING_TYPES;
37
38
  (function (BIDDING_TYPES) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.11.13",
3
+ "version": "5.12.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",