kcommons 5.11.4 → 5.11.6

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 { INestedRFQItem } from "./rfq.typings";
4
5
  import { INestedUser } from "./user.typings";
5
6
  export interface IBOMFilters {
6
7
  company_id?: string;
@@ -14,7 +15,8 @@ export declare enum BOM_INCLUDE {
14
15
  company = "company",
15
16
  created_by_user = "created_by_user",
16
17
  last_updated_by_user = "last_updated_by_user",
17
- items = "items"
18
+ items = "items",
19
+ rfq_items = "rfq_items"
18
20
  }
19
21
  export interface IBOM {
20
22
  id: string;
@@ -33,8 +35,9 @@ export interface IBOM {
33
35
  created_by_user: INestedUser | null;
34
36
  last_updated_by_user: INestedUser | null;
35
37
  items: INestedBOMItem[] | null;
38
+ rfq_items: INestedRFQItem[] | null;
36
39
  }
37
- export interface INestedBOM extends Omit<IBOM, "company" | "created_by_user" | "last_updated_by_user" | "items"> {
40
+ export interface INestedBOM extends Omit<IBOM, "company" | "created_by_user" | "last_updated_by_user" | "items" | "rfq_items"> {
38
41
  }
39
42
  export declare enum BOM_ITEM_INCLUDE {
40
43
  company = "company",
@@ -7,6 +7,7 @@ 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
11
  })(BOM_INCLUDE || (exports.BOM_INCLUDE = BOM_INCLUDE = {}));
11
12
  var BOM_ITEM_INCLUDE;
12
13
  (function (BOM_ITEM_INCLUDE) {
@@ -1,8 +1,10 @@
1
1
  import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
+ import { INestedBOM } from "./bom.typings";
2
3
  import { INestedCompany } from "./company.typings";
3
4
  import { INestedCompanyVendors } from "./companyVendors.typings";
5
+ import { INestedPR, INestedPrItem } from "./pr.typings";
4
6
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
5
- import { INestedQuote } from "./quote.typings";
7
+ import { INestedQuote, INestedQuoteItems } from "./quote.typings";
6
8
  import { INestedStoreLocation } from "./storeLocation.typings";
7
9
  import { INestedUser } from "./user.typings";
8
10
  import { INestedVendor, IVendor } from "./vendor.typings";
@@ -81,6 +83,14 @@ export interface IRFQ {
81
83
  }
82
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"> {
83
85
  }
86
+ export declare enum RFQ_ITEM_INCLUDE {
87
+ parent_rfq = "parent_rfq",
88
+ created_by_user = "created_by_user",
89
+ parent_pr = "parent_pr",
90
+ corresponding_pr_item = "corresponding_pr_item",
91
+ associated_quote_items = "associated_quote_items",
92
+ parent_bom = "parent_bom"
93
+ }
84
94
  export interface IRFQItem {
85
95
  id: string;
86
96
  parent_rfq_id: string;
@@ -102,6 +112,10 @@ export interface IRFQItem {
102
112
  updated_at?: string | null;
103
113
  parent_rfq?: INestedRFQ | null;
104
114
  created_by_user?: INestedUser | null;
115
+ parent_pr?: INestedPR | null;
116
+ corresponding_pr_item?: INestedPrItem | null;
117
+ associated_quote_items?: INestedQuoteItems[] | null;
118
+ parent_bom?: INestedBOM | null;
105
119
  }
106
- export interface INestedRFQItem extends Omit<IRFQItem, "parent_rfq" | "created_by_user" | "parent_pr" | "corresponding_pr_item" | "associated_quote_items"> {
120
+ export interface INestedRFQItem extends Omit<IRFQItem, "parent_rfq" | "created_by_user" | "parent_pr" | "corresponding_pr_item" | "associated_quote_items" | "parent_bom"> {
107
121
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BIDDING_TYPES = exports.RFQ_ITEM_TYPE = exports.RFQ_STATUS = exports.RFQ_INCLUDES = void 0;
3
+ 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";
@@ -37,3 +37,13 @@ var BIDDING_TYPES;
37
37
  BIDDING_TYPES["OPEN"] = "open_bidding";
38
38
  BIDDING_TYPES["CLOSED"] = "closed_bidding";
39
39
  })(BIDDING_TYPES || (exports.BIDDING_TYPES = BIDDING_TYPES = {}));
40
+ // RFQItem
41
+ var RFQ_ITEM_INCLUDE;
42
+ (function (RFQ_ITEM_INCLUDE) {
43
+ RFQ_ITEM_INCLUDE["parent_rfq"] = "parent_rfq";
44
+ RFQ_ITEM_INCLUDE["created_by_user"] = "created_by_user";
45
+ RFQ_ITEM_INCLUDE["parent_pr"] = "parent_pr";
46
+ RFQ_ITEM_INCLUDE["corresponding_pr_item"] = "corresponding_pr_item";
47
+ RFQ_ITEM_INCLUDE["associated_quote_items"] = "associated_quote_items";
48
+ RFQ_ITEM_INCLUDE["parent_bom"] = "parent_bom";
49
+ })(RFQ_ITEM_INCLUDE || (exports.RFQ_ITEM_INCLUDE = RFQ_ITEM_INCLUDE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.11.4",
3
+ "version": "5.11.6",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",