kcommons 5.16.8 → 5.16.10

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.
@@ -2,7 +2,7 @@ import { INestedCompany } from "./company.typings";
2
2
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
3
3
  import { INestedItem } from "./item.typings";
4
4
  import { INestedPo, INestedPOItem } from "./po.typings";
5
- import { INestedQuote } from "./quote.typings";
5
+ import { INestedQuote, INestedQuoteItems } from "./quote.typings";
6
6
  import { INestedRFQ } from "./rfq.typings";
7
7
  import { INestedUser } from "./user.typings";
8
8
  export declare enum COMPARATIVE_STATUS {
@@ -52,7 +52,8 @@ export declare enum COMPARATIVE_ITEM_INCLUDE {
52
52
  company = "company",
53
53
  comparative = "comparative",
54
54
  item = "item",
55
- po_items = "po_items"
55
+ po_items = "po_items",
56
+ quote_items = "quote_items"
56
57
  }
57
58
  export interface IComparativeItem {
58
59
  id: string;
@@ -75,6 +76,7 @@ export interface IComparativeItem {
75
76
  comparative: INestedComparative | null;
76
77
  item: INestedItem | null;
77
78
  po_items: INestedPOItem[] | null;
79
+ quote_items: INestedQuoteItems[] | null;
78
80
  }
79
- export interface INestedComparativeItem extends Omit<IComparativeItem, "company" | "comparative" | "item" | "po_items"> {
81
+ export interface INestedComparativeItem extends Omit<IComparativeItem, "company" | "comparative" | "item" | "po_items" | "quote_items"> {
80
82
  }
@@ -28,4 +28,5 @@ var COMPARATIVE_ITEM_INCLUDE;
28
28
  COMPARATIVE_ITEM_INCLUDE["comparative"] = "comparative";
29
29
  COMPARATIVE_ITEM_INCLUDE["item"] = "item";
30
30
  COMPARATIVE_ITEM_INCLUDE["po_items"] = "po_items";
31
+ COMPARATIVE_ITEM_INCLUDE["quote_items"] = "quote_items";
31
32
  })(COMPARATIVE_ITEM_INCLUDE || (exports.COMPARATIVE_ITEM_INCLUDE = COMPARATIVE_ITEM_INCLUDE = {}));
@@ -1,7 +1,7 @@
1
1
  import { INestedBOM } from "./bom.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
3
  import { INestedCompanyVendors } from "./companyVendors.typings";
4
- import { INestedComparative } from "./comparative.typings";
4
+ import { INestedComparative, INestedComparativeItem } from "./comparative.typings";
5
5
  import { ITaxRelatedItemInputs } from "./docItems.typings";
6
6
  import { INestedDocumentTaxes } from "./documentTaxes.typings";
7
7
  import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
@@ -94,12 +94,13 @@ export interface IPOItem extends ITaxRelatedItemInputs {
94
94
  type: string;
95
95
  parent_po_id: string | null;
96
96
  parent_po_bom_id: string | null;
97
- referenced_comparative_item: string | null;
97
+ referenced_comparative_item_id: string | null;
98
98
  parent_po_bom_code: string | null;
99
99
  company: INestedCompany | null;
100
100
  item: INestedItem | null;
101
101
  parent_po: INestedPo | null;
102
102
  parent_po_bom: INestedPOBom | null;
103
+ reference_comparative_item: INestedComparativeItem | null;
103
104
  }
104
105
  export interface INestedPOItem extends Omit<IPOItem, "company" | "item" | "parent_po" | "parent_po_bom" | "referenced_comparative_item"> {
105
106
  }
@@ -1,5 +1,5 @@
1
1
  import { INestedCompany } from "./company.typings";
2
- import { INestedComparative } from "./comparative.typings";
2
+ import { INestedComparative, INestedComparativeItem } from "./comparative.typings";
3
3
  import { ITaxRelatedItemInputs } from "./docItems.typings";
4
4
  import { INestedDocumentTaxes } from "./documentTaxes.typings";
5
5
  import { INestedItem } from "./item.typings";
@@ -29,10 +29,6 @@ export declare enum QUOTE_INCLUDES {
29
29
  negotiations = "negotiations",
30
30
  comparative = "comparative"
31
31
  }
32
- export declare enum QUOTE_ITEM_INCLUDES {
33
- parent_quote = "parent_quote",
34
- item = "item"
35
- }
36
32
  export interface IQuote {
37
33
  id: string;
38
34
  quote_type: QUOTE_TYPE;
@@ -66,16 +62,23 @@ export interface IQuote {
66
62
  child_pos: INestedPo[] | null;
67
63
  negotiations: INestedNegotiation[] | null;
68
64
  }
69
- export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "shipping_store_location" | "contact_person" | "company" | "items" | "taxes" | "child_pos" | "negotiaitons"> {
65
+ export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "shipping_store_location" | "contact_person" | "company" | "items" | "taxes" | "child_pos" | "negotiaitons" | "comparative"> {
66
+ }
67
+ export declare enum QUOTE_ITEM_INCLUDES {
68
+ parent_quote = "parent_quote",
69
+ item = "item",
70
+ referenced_comparative_item = "referenced_comparative_item"
70
71
  }
71
72
  export interface IQuoteItems extends ITaxRelatedItemInputs {
72
73
  quote_id: string;
73
74
  rfq_item_id?: string | null;
75
+ comparative_item_id?: string | null;
74
76
  quote?: INestedQuote | null;
75
77
  item?: INestedItem | null;
76
78
  rfq_item?: INestedRFQItem | null;
79
+ referenced_comparative_item?: INestedComparativeItem | null;
77
80
  }
78
- export interface INestedQuoteItems extends Omit<IQuoteItems, "quote" | "item" | "rfq_item"> {
81
+ export interface INestedQuoteItems extends Omit<IQuoteItems, "quote" | "item" | "rfq_item" | "referenced_comparative_item"> {
79
82
  }
80
83
  export interface IQUOTE_TOKEN_PAYLOAD {
81
84
  quote_id: string;
@@ -24,8 +24,10 @@ var QUOTE_INCLUDES;
24
24
  QUOTE_INCLUDES["negotiations"] = "negotiations";
25
25
  QUOTE_INCLUDES["comparative"] = "comparative";
26
26
  })(QUOTE_INCLUDES || (exports.QUOTE_INCLUDES = QUOTE_INCLUDES = {}));
27
+ // Quote Items
27
28
  var QUOTE_ITEM_INCLUDES;
28
29
  (function (QUOTE_ITEM_INCLUDES) {
29
30
  QUOTE_ITEM_INCLUDES["parent_quote"] = "parent_quote";
30
31
  QUOTE_ITEM_INCLUDES["item"] = "item";
32
+ QUOTE_ITEM_INCLUDES["referenced_comparative_item"] = "referenced_comparative_item";
31
33
  })(QUOTE_ITEM_INCLUDES || (exports.QUOTE_ITEM_INCLUDES = QUOTE_ITEM_INCLUDES = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.16.8",
3
+ "version": "5.16.10",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",