kcommons 5.11.7 → 5.11.9

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,7 +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 { INestedRFQItem } from "./rfq.typings";
4
+ import { INestedRFQBOM } from "./rfq.typings";
5
5
  import { INestedUser } from "./user.typings";
6
6
  export interface IBOMFilters {
7
7
  company_id?: string;
@@ -16,7 +16,7 @@ export declare enum BOM_INCLUDE {
16
16
  created_by_user = "created_by_user",
17
17
  last_updated_by_user = "last_updated_by_user",
18
18
  items = "items",
19
- rfq_items = "rfq_items"
19
+ referenced_in_rfq_boms = "referenced_in_rfq_boms"
20
20
  }
21
21
  export interface IBOM {
22
22
  id: string;
@@ -35,13 +35,13 @@ export interface IBOM {
35
35
  created_by_user: INestedUser | null;
36
36
  last_updated_by_user: INestedUser | null;
37
37
  items: INestedBOMItem[] | null;
38
- rfq_items: INestedRFQItem[] | null;
38
+ referenced_in_rfq_boms: INestedRFQBOM[] | null;
39
39
  }
40
- export interface INestedBOM extends Omit<IBOM, "company" | "created_by_user" | "last_updated_by_user" | "items" | "rfq_items"> {
40
+ export interface INestedBOM extends Omit<IBOM, "company" | "created_by_user" | "last_updated_by_user" | "items" | "referenced_in_rfq_boms"> {
41
41
  }
42
42
  export declare enum BOM_ITEM_INCLUDE {
43
43
  company = "company",
44
- parent_bom = "parent_bom",
44
+ parent_rfq_bom = "parent_rfq_bom",
45
45
  item = "item"
46
46
  }
47
47
  export interface IBOMItem {
@@ -60,8 +60,8 @@ export interface IBOMItem {
60
60
  updated_at: string;
61
61
  created_at: string;
62
62
  company: INestedCompany | null;
63
- parent_bom: INestedBOM | null;
63
+ parent_rfq_bom: INestedBOM | null;
64
64
  item: INestedItem | null;
65
65
  }
66
- export interface INestedBOMItem extends Omit<IBOMItem, "company" | "item" | "parent_bom"> {
66
+ export interface INestedBOMItem extends Omit<IBOMItem, "company" | "item" | "parent_rfq_bom"> {
67
67
  }
@@ -7,11 +7,12 @@ var BOM_INCLUDE;
7
7
  BOM_INCLUDE["created_by_user"] = "created_by_user";
8
8
  BOM_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
9
9
  BOM_INCLUDE["items"] = "items";
10
- BOM_INCLUDE["rfq_items"] = "rfq_items";
10
+ BOM_INCLUDE["referenced_in_rfq_boms"] = "referenced_in_rfq_boms";
11
11
  })(BOM_INCLUDE || (exports.BOM_INCLUDE = BOM_INCLUDE = {}));
12
+ // BOM Item
12
13
  var BOM_ITEM_INCLUDE;
13
14
  (function (BOM_ITEM_INCLUDE) {
14
15
  BOM_ITEM_INCLUDE["company"] = "company";
15
- BOM_ITEM_INCLUDE["parent_bom"] = "parent_bom";
16
+ BOM_ITEM_INCLUDE["parent_rfq_bom"] = "parent_rfq_bom";
16
17
  BOM_ITEM_INCLUDE["item"] = "item";
17
18
  })(BOM_ITEM_INCLUDE || (exports.BOM_ITEM_INCLUDE = BOM_ITEM_INCLUDE = {}));
@@ -22,7 +22,8 @@ export declare enum RFQ_INCLUDES {
22
22
  approval_chain = "approval_chain",
23
23
  additional_vendors = "additional_vendors",
24
24
  rfq_vendors = "rfq_vendors",
25
- rfq_vendor_groups = "rfq_vendor_groups"
25
+ rfq_vendor_groups = "rfq_vendor_groups",
26
+ boms = "boms"
26
27
  }
27
28
  export declare enum RFQ_STATUS {
28
29
  DRAFT = "DRAFT",
@@ -80,8 +81,9 @@ export interface IRFQ {
80
81
  rfq_vendor_groups?: INestedVendorGroups[] | null;
81
82
  rfq_vendors?: INestedCompanyVendors[] | null;
82
83
  additional_vendors?: INestedVendor[] | null;
84
+ boms: INestedRFQBOM[] | null;
83
85
  }
84
- export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors"> {
86
+ export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors" | "boms"> {
85
87
  }
86
88
  export declare enum RFQ_ITEM_INCLUDE {
87
89
  parent_rfq = "parent_rfq",
@@ -89,7 +91,7 @@ export declare enum RFQ_ITEM_INCLUDE {
89
91
  parent_pr = "parent_pr",
90
92
  corresponding_pr_item = "corresponding_pr_item",
91
93
  associated_quote_items = "associated_quote_items",
92
- parent_bom = "parent_bom"
94
+ parent_rfq_bom = "parent_rfq_bom"
93
95
  }
94
96
  export interface IRFQItem {
95
97
  id: string;
@@ -106,8 +108,8 @@ export interface IRFQItem {
106
108
  parent_pr_id?: string | null;
107
109
  parent_pr_no?: string | null;
108
110
  corresponding_pr_item_id?: string | null;
109
- is_deleted?: boolean | null;
110
- deleted_at?: string | null;
111
+ is_deleted: boolean;
112
+ deleted_at: string | null;
111
113
  created_at?: string | null;
112
114
  updated_at?: string | null;
113
115
  parent_rfq?: INestedRFQ | null;
@@ -115,7 +117,29 @@ export interface IRFQItem {
115
117
  parent_pr?: INestedPR | null;
116
118
  corresponding_pr_item?: INestedPrItem | null;
117
119
  associated_quote_items?: INestedQuoteItems[] | null;
118
- parent_bom?: INestedBOM | null;
120
+ parent_rfq_bom?: INestedBOM | null;
121
+ }
122
+ export interface INestedRFQItem extends Omit<IRFQItem, "parent_rfq" | "created_by_user" | "parent_pr" | "corresponding_pr_item" | "associated_quote_items" | "parent_rfq_bom"> {
123
+ }
124
+ export declare enum RFQ_BOM_INCLUDE {
125
+ parent_rfq = "parent_rfq",
126
+ bom = "bom",
127
+ referenced_rfq_item = "referenced_rfq_item"
128
+ }
129
+ export interface IRFQBom {
130
+ id: string;
131
+ parent_rfq_id: string;
132
+ bom_id: string;
133
+ bom_code: string;
134
+ remarks: string | null;
135
+ quantity: number;
136
+ is_deleted: boolean;
137
+ deleted_at: Date | null;
138
+ created_at: Date;
139
+ updated_at: Date;
140
+ parent_rfq: INestedRFQ | null;
141
+ bom: INestedBOM | null;
142
+ referenced_rfq_item: IRFQItem | null;
119
143
  }
120
- export interface INestedRFQItem extends Omit<IRFQItem, "parent_rfq" | "created_by_user" | "parent_pr" | "corresponding_pr_item" | "associated_quote_items" | "parent_bom"> {
144
+ export interface INestedRFQBOM extends Omit<IRFQBom, "parent_rfq" | "bom" | "referenced_rfq_item"> {
121
145
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RFQ_ITEM_INCLUDE = exports.BIDDING_TYPES = exports.RFQ_ITEM_TYPE = exports.RFQ_STATUS = exports.RFQ_INCLUDES = void 0;
3
+ exports.RFQ_BOM_INCLUDE = exports.RFQ_ITEM_INCLUDE = exports.BIDDING_TYPES = exports.RFQ_ITEM_TYPE = exports.RFQ_STATUS = exports.RFQ_INCLUDES = void 0;
4
4
  var RFQ_INCLUDES;
5
5
  (function (RFQ_INCLUDES) {
6
6
  RFQ_INCLUDES["company"] = "company";
@@ -16,6 +16,7 @@ var RFQ_INCLUDES;
16
16
  RFQ_INCLUDES["additional_vendors"] = "additional_vendors";
17
17
  RFQ_INCLUDES["rfq_vendors"] = "rfq_vendors";
18
18
  RFQ_INCLUDES["rfq_vendor_groups"] = "rfq_vendor_groups";
19
+ RFQ_INCLUDES["boms"] = "boms";
19
20
  })(RFQ_INCLUDES || (exports.RFQ_INCLUDES = RFQ_INCLUDES = {}));
20
21
  var RFQ_STATUS;
21
22
  (function (RFQ_STATUS) {
@@ -45,5 +46,12 @@ var RFQ_ITEM_INCLUDE;
45
46
  RFQ_ITEM_INCLUDE["parent_pr"] = "parent_pr";
46
47
  RFQ_ITEM_INCLUDE["corresponding_pr_item"] = "corresponding_pr_item";
47
48
  RFQ_ITEM_INCLUDE["associated_quote_items"] = "associated_quote_items";
48
- RFQ_ITEM_INCLUDE["parent_bom"] = "parent_bom";
49
+ RFQ_ITEM_INCLUDE["parent_rfq_bom"] = "parent_rfq_bom";
49
50
  })(RFQ_ITEM_INCLUDE || (exports.RFQ_ITEM_INCLUDE = RFQ_ITEM_INCLUDE = {}));
51
+ // RFQ Boms
52
+ var RFQ_BOM_INCLUDE;
53
+ (function (RFQ_BOM_INCLUDE) {
54
+ RFQ_BOM_INCLUDE["parent_rfq"] = "parent_rfq";
55
+ RFQ_BOM_INCLUDE["bom"] = "bom";
56
+ RFQ_BOM_INCLUDE["referenced_rfq_item"] = "referenced_rfq_item";
57
+ })(RFQ_BOM_INCLUDE || (exports.RFQ_BOM_INCLUDE = RFQ_BOM_INCLUDE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.11.7",
3
+ "version": "5.11.9",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",