kcommons 5.0.5 → 5.0.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.
package/build/index.d.ts CHANGED
@@ -22,7 +22,6 @@ export * from "./typings/comparative.typings";
22
22
  export * from "./typings/gate.typings";
23
23
  export * from "./typings/grn.typings";
24
24
  export * from "./typings/mrn.typings";
25
- export * from "./typings/taxes.typings";
26
25
  export * from "./constants/permission.constants";
27
26
  export * from "./constants/entityTypes.constants";
28
27
  export * from "./constants/documentStatus.typings";
package/build/index.js CHANGED
@@ -35,7 +35,6 @@ __exportStar(require("./typings/comparative.typings"), exports);
35
35
  __exportStar(require("./typings/gate.typings"), exports);
36
36
  __exportStar(require("./typings/grn.typings"), exports);
37
37
  __exportStar(require("./typings/mrn.typings"), exports);
38
- __exportStar(require("./typings/taxes.typings"), exports);
39
38
  // Constants
40
39
  __exportStar(require("./constants/permission.constants"), exports);
41
40
  __exportStar(require("./constants/entityTypes.constants"), exports);
@@ -16,8 +16,8 @@ export declare enum TAX_NAME {
16
16
  }
17
17
  export interface IDocumentTaxes {
18
18
  id: string;
19
- quote_id: string;
20
- po_id: string;
19
+ quote_id?: string | null;
20
+ po_id?: string | null;
21
21
  tax_name: TAX_NAME;
22
22
  tax_type: TAX_TYPE;
23
23
  tax_value: number;
@@ -29,3 +29,5 @@ export interface IDocumentTaxes {
29
29
  }
30
30
  export interface INestedDocumentTaxes extends Omit<IDocumentTaxes, "parent_quote" | "parent_po"> {
31
31
  }
32
+ export interface IDocumentTaxesInput extends Omit<IDocumentTaxes, "id" | "created_at" | "updated_at" | "parent_quote" | "parent_po"> {
33
+ }
@@ -1,5 +1,5 @@
1
1
  import { IApprovalChainEntry } from "./approvalChain.typings";
2
- import { INestedTaxes } from "./taxes.typings";
2
+ import { INestedDocumentTaxes } from "./documentTaxes.typings";
3
3
  export interface IPurchaseOrder {
4
4
  id: string;
5
5
  creation_date: Date;
@@ -12,7 +12,7 @@ export interface IPurchaseOrder {
12
12
  delivery_schedule: string;
13
13
  remarks: string;
14
14
  approval_chain?: IApprovalChainEntry[] | null;
15
- taxes?: INestedTaxes[] | null;
15
+ taxes?: INestedDocumentTaxes[] | null;
16
16
  }
17
17
  export interface INestedPo extends Omit<"approval_chain", "taxes"> {
18
18
  }
@@ -1,7 +1,7 @@
1
1
  import { INestedCompany } from "./company.typings";
2
+ import { INestedDocumentTaxes } from "./documentTaxes.typings";
2
3
  import { INestedItem } from "./item.typings";
3
4
  import { INestedRFQ, INestedRFQItem } from "./rfq.typings";
4
- import { INestedTaxes } from "./taxes.typings";
5
5
  import { INestedVendor } from "./vendor.typings";
6
6
  export declare enum QUOTE_TYPE {
7
7
  RFQ_ASCENDANT = "RFQ_ASCENDANT",
@@ -44,7 +44,7 @@ export interface IQuote {
44
44
  vendor?: INestedVendor | null;
45
45
  company?: INestedCompany | null;
46
46
  quote_items?: INestedQuoteItems[] | null;
47
- taxes?: INestedTaxes[] | null;
47
+ taxes?: INestedDocumentTaxes[] | null;
48
48
  }
49
49
  export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "company" | "quote_items" | "taxes"> {
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.0.5",
3
+ "version": "5.0.6",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",