kcommons 5.2.11 → 5.2.14

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,96 @@
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 { INestedPurchaseLocation } from "./purchaseLocation.typings";
8
+ import { INestedQuote } from "./quote.typings";
9
+ import { INestedStoreLocation } from "./storeLocation.typings";
10
+ import { INestedUser } from "./user.typings";
11
+ import { INestedVendor } from "./vendor.typings";
3
12
  export interface IPurchaseOrder {
4
13
  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;
14
- approval_chain?: IApprovalChainEntry[] | null;
15
- taxes?: INestedDocumentTaxes[] | null;
14
+ po_no: string;
15
+ delivery_date: string;
16
+ company_id: string;
17
+ shipping_store_location_id: string;
18
+ created_by_user_id: string;
19
+ company_vendor_id: string;
20
+ vendor_id: string;
21
+ contact_person_id: string;
22
+ status: string;
23
+ sent_for_approval_by_id: string | null;
24
+ sent_to_vendor_by_id: string | null;
25
+ parent_quote_id: string | null;
26
+ comparative_id: string | null;
27
+ rejection_remark: string | null;
28
+ attachment_link: string | null;
29
+ request_date: string | null;
30
+ sent_for_approval_at: string | null;
31
+ sent_to_vendor_at: string | null;
32
+ is_deleted: boolean | null;
33
+ deleted_at: string | null;
34
+ created_at: string;
35
+ updated_at: string;
36
+ company: INestedCompany | null;
37
+ purchase_location: INestedPurchaseLocation | null;
38
+ shipping_store_location: INestedStoreLocation | null;
39
+ created_by_user: INestedUser | null;
40
+ company_vendor: INestedCompanyVendors | null;
41
+ vendor: INestedVendor | null;
42
+ contact_person: INestedUser | null;
43
+ sent_for_approval_by: INestedUser | null;
44
+ sent_to_vendor_by: INestedUser | null;
45
+ parent_quote: INestedQuote | null;
46
+ comparative: INestedComparative | null;
47
+ po_items: INestedPOItem[] | null;
48
+ approval_chain: IApprovalChainEntry[] | null;
49
+ taxes: INestedDocumentTaxes[] | null;
16
50
  }
17
- export interface INestedPo extends Omit<"approval_chain", "taxes"> {
51
+ export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "company_vendor" | "vendor" | "contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "po_items" | "approval_chain" | "taxes"> {
18
52
  }
19
53
  export declare enum PO_INCLUDE {
54
+ company = "company",
55
+ shipping_store_location = "shipping_store_location",
56
+ created_by_user = "created_by_user",
57
+ company_vendor = "company_vendor",
58
+ vendor = "vendor",
59
+ contact_person = "contact_person",
60
+ sent_for_approval_by = "sent_for_approval_by",
61
+ sent_to_vendor_by = "sent_to_vendor_by",
62
+ parent_quote = "parent_quote",
63
+ comparative = "comparative",
64
+ po_items = "po_items",
20
65
  approval_chain = "approval_chain",
21
- taxes = "taxes"
66
+ taxes = "taxes",
67
+ purchase_location = "purchase_location"
68
+ }
69
+ export interface IPOItem {
70
+ id: string;
71
+ company_id: string;
72
+ item_id: string;
73
+ parent_po_id: string;
74
+ requested_quantity: number | null;
75
+ gst: number | null;
76
+ total: number | null;
77
+ per_unit_rate: number | null;
78
+ provided_quantity: number | null;
79
+ discount_type: string | null;
80
+ discount_value: number | null;
81
+ remark: string | null;
82
+ is_deleted: boolean | null;
83
+ deleted_at: string | null;
84
+ created_at: string;
85
+ updated_at: string;
86
+ company: INestedCompany | null;
87
+ item: INestedItem | null;
88
+ parent_po: INestedPo | null;
89
+ }
90
+ export interface INestedPOItem extends Omit<IPOItem, "company" | "item" | "parent_po"> {
91
+ }
92
+ export declare enum PO_ITEM_INCLUDE {
93
+ company = "company",
94
+ item = "item",
95
+ parent_po = "parent_po"
22
96
  }
@@ -1,8 +1,26 @@
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";
19
+ PO_INCLUDE["purchase_location"] = "purchase_location";
8
20
  })(PO_INCLUDE = exports.PO_INCLUDE || (exports.PO_INCLUDE = {}));
21
+ var PO_ITEM_INCLUDE;
22
+ (function (PO_ITEM_INCLUDE) {
23
+ PO_ITEM_INCLUDE["company"] = "company";
24
+ PO_ITEM_INCLUDE["item"] = "item";
25
+ PO_ITEM_INCLUDE["parent_po"] = "parent_po";
26
+ })(PO_ITEM_INCLUDE = exports.PO_ITEM_INCLUDE || (exports.PO_ITEM_INCLUDE = {}));
@@ -1,11 +1,21 @@
1
1
  import { INestedApprovalConfig } from "./approvalConfig.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedDepartment } from "./department.typings";
3
4
  import { INestedOffice } from "./offices.typings";
5
+ import { INestedPo } from "./po.typings";
6
+ import { INestedPR } from "./pr.typings";
7
+ import { INestedRole } from "./roles.typings";
4
8
  import { INestedStoreLocation } from "./storeLocation.typings";
5
9
  import { INestedUser } from "./user.typings";
6
10
  export declare enum PurchaseLocationInclude {
11
+ company = "company",
12
+ incharge = "incharge",
13
+ approvalConfigs = "approvalConfigs",
7
14
  departments = "departments",
8
15
  roles = "roles",
16
+ prs = "prs",
17
+ rfqs = "rfqs",
18
+ pos = "pos",
9
19
  associated_offices = "associated_offices",
10
20
  target_store_locations = "target_store_locations"
11
21
  }
@@ -27,11 +37,15 @@ export interface IPurchaseLocation {
27
37
  deleted_at: string | null;
28
38
  created_at: string;
29
39
  updated_at: string;
30
- associated_offices?: INestedOffice[] | null;
31
- target_store_locations?: INestedStoreLocation[] | null;
32
- company?: INestedCompany | null;
33
- incharge?: INestedUser | null;
34
- approvalConfigs?: INestedApprovalConfig[] | null;
40
+ departments: INestedDepartment[] | null;
41
+ roles: INestedRole[] | null;
42
+ prs: INestedPR[] | null;
43
+ associated_offices: INestedOffice[] | null;
44
+ target_store_locations: INestedStoreLocation[] | null;
45
+ company: INestedCompany | null;
46
+ incharge: INestedUser | null;
47
+ approvalConfigs: INestedApprovalConfig[] | null;
48
+ pos: INestedPo[] | null;
35
49
  }
36
- export interface INestedPurchaseLocation extends Omit<IPurchaseLocation, "company" | "office" | "store_location" | "purchase_location" | "gate" | "approval_chain"> {
50
+ export interface INestedPurchaseLocation extends Omit<IPurchaseLocation, "company" | "incharge" | "approvalConfigs" | "departments" | "roles" | "prs" | "rfqs" | "pos" | "associated_offices" | "target_store_locations"> {
37
51
  }
@@ -3,8 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PurchaseLocationInclude = void 0;
4
4
  var PurchaseLocationInclude;
5
5
  (function (PurchaseLocationInclude) {
6
+ PurchaseLocationInclude["company"] = "company";
7
+ PurchaseLocationInclude["incharge"] = "incharge";
8
+ PurchaseLocationInclude["approvalConfigs"] = "approvalConfigs";
6
9
  PurchaseLocationInclude["departments"] = "departments";
7
10
  PurchaseLocationInclude["roles"] = "roles";
11
+ PurchaseLocationInclude["prs"] = "prs";
12
+ PurchaseLocationInclude["rfqs"] = "rfqs";
13
+ PurchaseLocationInclude["pos"] = "pos";
8
14
  PurchaseLocationInclude["associated_offices"] = "associated_offices";
9
15
  PurchaseLocationInclude["target_store_locations"] = "target_store_locations";
10
16
  })(PurchaseLocationInclude = exports.PurchaseLocationInclude || (exports.PurchaseLocationInclude = {}));
@@ -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.14",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",