kcommons 5.2.11 → 5.2.13

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,22 +1,93 @@
1
1
  import { IApprovalChainEntry } from "./approvalChain.typings";
2
+ import { INestedCompany } from "./company.typings";
3
+ import { INestedCompanyVendors } from "./companyVendors.typings";
4
+ import { INestedComparative } from "./comparative.typings";
2
5
  import { INestedDocumentTaxes } from "./documentTaxes.typings";
6
+ import { INestedItem } from "./item.typings";
7
+ import { INestedQuote } from "./quote.typings";
8
+ import { INestedStoreLocation } from "./storeLocation.typings";
9
+ import { INestedUser } from "./user.typings";
10
+ import { INestedVendor } from "./vendor.typings";
3
11
  export interface IPurchaseOrder {
4
12
  id: string;
5
- creation_date: Date;
6
- delivery_location: string;
7
- contact_person: string;
8
- delivery_by_date: Date;
9
- vendor: string;
10
- terms_and_condition: string;
11
- payment: string;
12
- delivery_schedule: string;
13
- remarks: string;
13
+ po_no: string;
14
+ delivery_date: string;
15
+ company_id: string;
16
+ shipping_store_location_id: string;
17
+ created_by_user_id: string;
18
+ company_vendor_id: string;
19
+ vendor_id: string;
20
+ contact_person_id: string;
21
+ status: string;
22
+ sent_for_approval_by_id: string | null;
23
+ sent_to_vendor_by_id: string | null;
24
+ parent_quote_id: string | null;
25
+ comparative_id: string | null;
26
+ rejection_remark: string | null;
27
+ attachment_link: string | null;
28
+ request_date: string | null;
29
+ sent_for_approval_at: string | null;
30
+ sent_to_vendor_at: string | null;
31
+ is_deleted: boolean | null;
32
+ deleted_at: string | null;
33
+ created_at: string;
34
+ updated_at: string;
35
+ company?: INestedCompany | null;
36
+ shipping_store_location?: INestedStoreLocation | null;
37
+ created_by_user?: INestedUser | null;
38
+ company_vendor?: INestedCompanyVendors | null;
39
+ vendor?: INestedVendor | null;
40
+ contact_person?: INestedUser | null;
41
+ sent_for_approval_by?: INestedUser | null;
42
+ sent_to_vendor_by?: INestedUser | null;
43
+ parent_quote?: INestedQuote | null;
44
+ comparative?: INestedComparative | null;
45
+ po_items?: INestedPOItem[] | null;
14
46
  approval_chain?: IApprovalChainEntry[] | null;
15
47
  taxes?: INestedDocumentTaxes[] | null;
16
48
  }
17
49
  export interface INestedPo extends Omit<"approval_chain", "taxes"> {
18
50
  }
19
51
  export declare enum PO_INCLUDE {
52
+ company = "company",
53
+ shipping_store_location = "shipping_store_location",
54
+ created_by_user = "created_by_user",
55
+ company_vendor = "company_vendor",
56
+ vendor = "vendor",
57
+ contact_person = "contact_person",
58
+ sent_for_approval_by = "sent_for_approval_by",
59
+ sent_to_vendor_by = "sent_to_vendor_by",
60
+ parent_quote = "parent_quote",
61
+ comparative = "comparative",
62
+ po_items = "po_items",
20
63
  approval_chain = "approval_chain",
21
64
  taxes = "taxes"
22
65
  }
66
+ export interface IPOItem {
67
+ id: string;
68
+ company_id: string;
69
+ item_id: string;
70
+ parent_po_id: string;
71
+ requested_quantity: number | null;
72
+ gst: number | null;
73
+ total: number | null;
74
+ per_unit_rate: number | null;
75
+ provided_quantity: number | null;
76
+ discount_type: string | null;
77
+ discount_value: number | null;
78
+ remark: string | null;
79
+ is_deleted: boolean | null;
80
+ deleted_at: string | null;
81
+ created_at: string;
82
+ updated_at: string;
83
+ company: INestedCompany | null;
84
+ item: INestedItem | null;
85
+ parent_po: INestedPo | null;
86
+ }
87
+ export interface INestedPOItem extends Omit<IPOItem, "company" | "item" | "parent_po"> {
88
+ }
89
+ export declare enum PO_ITEM_INCLUDE {
90
+ company = "company",
91
+ item = "item",
92
+ parent_po = "parent_po"
93
+ }
@@ -1,8 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PO_INCLUDE = void 0;
3
+ exports.PO_ITEM_INCLUDE = exports.PO_INCLUDE = void 0;
4
4
  var PO_INCLUDE;
5
5
  (function (PO_INCLUDE) {
6
+ PO_INCLUDE["company"] = "company";
7
+ PO_INCLUDE["shipping_store_location"] = "shipping_store_location";
8
+ PO_INCLUDE["created_by_user"] = "created_by_user";
9
+ PO_INCLUDE["company_vendor"] = "company_vendor";
10
+ PO_INCLUDE["vendor"] = "vendor";
11
+ PO_INCLUDE["contact_person"] = "contact_person";
12
+ PO_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
13
+ PO_INCLUDE["sent_to_vendor_by"] = "sent_to_vendor_by";
14
+ PO_INCLUDE["parent_quote"] = "parent_quote";
15
+ PO_INCLUDE["comparative"] = "comparative";
16
+ PO_INCLUDE["po_items"] = "po_items";
6
17
  PO_INCLUDE["approval_chain"] = "approval_chain";
7
18
  PO_INCLUDE["taxes"] = "taxes";
8
19
  })(PO_INCLUDE = exports.PO_INCLUDE || (exports.PO_INCLUDE = {}));
20
+ var PO_ITEM_INCLUDE;
21
+ (function (PO_ITEM_INCLUDE) {
22
+ PO_ITEM_INCLUDE["company"] = "company";
23
+ PO_ITEM_INCLUDE["item"] = "item";
24
+ PO_ITEM_INCLUDE["parent_po"] = "parent_po";
25
+ })(PO_ITEM_INCLUDE = exports.PO_ITEM_INCLUDE || (exports.PO_ITEM_INCLUDE = {}));
@@ -19,7 +19,9 @@ export declare enum QUOTE_INCLUDES {
19
19
  vendor = "vendor",
20
20
  company = "company",
21
21
  taxes = "taxes",
22
- items = "items"
22
+ items = "items",
23
+ child_pos = "child_pos",
24
+ negotiations = "negotiations"
23
25
  }
24
26
  export declare enum QUOTE_ITEM_INCLUDES {
25
27
  parent_quote = "parent_quote",
@@ -18,6 +18,8 @@ var QUOTE_INCLUDES;
18
18
  QUOTE_INCLUDES["company"] = "company";
19
19
  QUOTE_INCLUDES["taxes"] = "taxes";
20
20
  QUOTE_INCLUDES["items"] = "items";
21
+ QUOTE_INCLUDES["child_pos"] = "child_pos";
22
+ QUOTE_INCLUDES["negotiations"] = "negotiations";
21
23
  })(QUOTE_INCLUDES = exports.QUOTE_INCLUDES || (exports.QUOTE_INCLUDES = {}));
22
24
  var QUOTE_ITEM_INCLUDES;
23
25
  (function (QUOTE_ITEM_INCLUDES) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.2.11",
3
+ "version": "5.2.13",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",