kcommons 5.3.4 → 5.3.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,4 +1,34 @@
1
1
  import { IPaginationFilters } from "./common/paginationFilters.typings";
2
+ import { INestedCompany } from "./company.typings";
3
+ import { INestedItem } from "./item.typings";
4
+ import { INestedPo } from "./po.typings";
5
+ import { INestedStoreLocation } from "./storeLocation.typings";
6
+ import { INestedUser } from "./user.typings";
7
+ import { INestedVendor } from "./vendor.typings";
8
+ export interface IASN {
9
+ id: string;
10
+ asn_no: string;
11
+ created_by_vendor_id: string;
12
+ for_company_id: string;
13
+ shipping_store_location_id: string;
14
+ status: ASN_STATUS;
15
+ parent_po_id: string | null;
16
+ contact_person_id: string | null;
17
+ sent_to_company_at: string | null;
18
+ attachment_link: string | null;
19
+ is_deleted: boolean;
20
+ deleted_at: string;
21
+ created_at: string;
22
+ updated_at: string;
23
+ created_by_vendor: INestedVendor | null;
24
+ for_company: INestedCompany | null;
25
+ parent_po: INestedPo | null;
26
+ shipping_store_location: INestedStoreLocation | null;
27
+ contact_person: INestedUser | null;
28
+ items: INestedASNItem[] | null;
29
+ }
30
+ export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "shipping_store_location" | "contact_person" | "items"> {
31
+ }
2
32
  export interface IASNFilters {
3
33
  company_id?: string;
4
34
  vendor_id?: string;
@@ -25,9 +55,33 @@ export declare enum ASN_INCLUDE {
25
55
  items = "items"
26
56
  }
27
57
  export declare enum ASN_ITEM_INCLUDE {
58
+ company = "company",
28
59
  item = "item",
29
60
  parent_asn = "parent_asn",
30
61
  vendor = "vendor",
31
- parent_po_item = "parent_po_item",
32
- company = "company"
62
+ parent_po_item = "parent_po_item"
63
+ }
64
+ export interface IASNItem {
65
+ id: string;
66
+ item_id: string;
67
+ company_id: string;
68
+ item_name: string;
69
+ code_sku: string;
70
+ uom: string;
71
+ quantity: number;
72
+ parent_asn_id: string;
73
+ vendor_id: string;
74
+ item_description: string | null;
75
+ po_item_id: string | null;
76
+ is_deleted: boolean;
77
+ deleted_at: string | null;
78
+ created_at: string;
79
+ updated_at: string;
80
+ company: INestedCompany | null;
81
+ item: INestedItem | null;
82
+ parent_asn: INestedASN | null;
83
+ vendor: INestedVendor | null;
84
+ parent_po_item: INestedPo | null;
85
+ }
86
+ export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item"> {
33
87
  }
@@ -17,11 +17,12 @@ var ASN_INCLUDE;
17
17
  ASN_INCLUDE["contact_person"] = "contact_person";
18
18
  ASN_INCLUDE["items"] = "items";
19
19
  })(ASN_INCLUDE || (exports.ASN_INCLUDE = ASN_INCLUDE = {}));
20
+ // ASN Items
20
21
  var ASN_ITEM_INCLUDE;
21
22
  (function (ASN_ITEM_INCLUDE) {
23
+ ASN_ITEM_INCLUDE["company"] = "company";
22
24
  ASN_ITEM_INCLUDE["item"] = "item";
23
25
  ASN_ITEM_INCLUDE["parent_asn"] = "parent_asn";
24
26
  ASN_ITEM_INCLUDE["vendor"] = "vendor";
25
27
  ASN_ITEM_INCLUDE["parent_po_item"] = "parent_po_item";
26
- ASN_ITEM_INCLUDE["company"] = "company";
27
28
  })(ASN_ITEM_INCLUDE || (exports.ASN_ITEM_INCLUDE = ASN_ITEM_INCLUDE = {}));
@@ -1,14 +1,25 @@
1
1
  import { INestedApprovalChainEntry } from "./approvalChain.typings";
2
+ import { INestedCompany } from "./company.typings";
2
3
  import { INestedCompanyVendors } from "./companyVendors.typings";
4
+ import { INestedPurchaseLocation } from "./purchaseLocation.typings";
5
+ import { INestedQuote } from "./quote.typings";
6
+ import { INestedStoreLocation } from "./storeLocation.typings";
3
7
  import { INestedUser } from "./user.typings";
4
8
  import { INestedVendor, IVendor } from "./vendor.typings";
5
9
  import { INestedVendorGroups } from "./vendorGroup.typings";
6
10
  export declare enum RFQ_INCLUDES {
7
- approval_chain = "approval_chain",
11
+ company = "company",
12
+ parent_purchase_location = "parent_purchase_location",
13
+ created_by_user = "created_by_user",
14
+ shipping_store_location = "shipping_store_location",
15
+ sent_for_approval_by = "sent_for_approval_by",
16
+ sent_to_vendors_by = "sent_to_vendors_by",
17
+ quotes = "quotes",
8
18
  items = "items",
19
+ approval_chain = "approval_chain",
20
+ additional_vendors = "additional_vendors",
9
21
  rfq_vendors = "rfq_vendors",
10
- rfq_vendor_groups = "rfq_vendor_groups",
11
- additional_vendors = "additional_vendors"
22
+ rfq_vendor_groups = "rfq_vendor_groups"
12
23
  }
13
24
  export declare enum RFQ_STATUS {
14
25
  DRAFT = "DRAFT",
@@ -52,13 +63,20 @@ export interface IRFQ {
52
63
  deleted_at?: string | null;
53
64
  created_at?: string | null;
54
65
  updated_at?: string | null;
66
+ company?: INestedCompany | null;
67
+ parent_purchase_location?: INestedPurchaseLocation | null;
68
+ created_by_user?: INestedUser | null;
69
+ shipping_store_location?: INestedStoreLocation | null;
70
+ sent_for_approval_by: INestedUser | null;
71
+ sent_to_vendors_by: INestedVendor | null;
72
+ quotes: INestedQuote[] | null;
55
73
  items?: INestedRFQItem[] | null;
56
74
  approval_chain?: INestedApprovalChainEntry[] | null;
57
75
  rfq_vendor_groups?: INestedVendorGroups[] | null;
58
76
  rfq_vendors?: INestedCompanyVendors[] | null;
59
77
  additional_vendors?: INestedVendor[] | null;
60
78
  }
61
- export interface INestedRFQ extends Omit<IRFQ, "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors"> {
79
+ export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors"> {
62
80
  }
63
81
  export interface IRFQItem {
64
82
  id: string;
@@ -3,11 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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
- RFQ_INCLUDES["approval_chain"] = "approval_chain";
6
+ RFQ_INCLUDES["company"] = "company";
7
+ RFQ_INCLUDES["parent_purchase_location"] = "parent_purchase_location";
8
+ RFQ_INCLUDES["created_by_user"] = "created_by_user";
9
+ RFQ_INCLUDES["shipping_store_location"] = "shipping_store_location";
10
+ RFQ_INCLUDES["sent_for_approval_by"] = "sent_for_approval_by";
11
+ RFQ_INCLUDES["sent_to_vendors_by"] = "sent_to_vendors_by";
12
+ RFQ_INCLUDES["quotes"] = "quotes";
7
13
  RFQ_INCLUDES["items"] = "items";
14
+ RFQ_INCLUDES["approval_chain"] = "approval_chain";
15
+ RFQ_INCLUDES["additional_vendors"] = "additional_vendors";
8
16
  RFQ_INCLUDES["rfq_vendors"] = "rfq_vendors";
9
17
  RFQ_INCLUDES["rfq_vendor_groups"] = "rfq_vendor_groups";
10
- RFQ_INCLUDES["additional_vendors"] = "additional_vendors";
11
18
  })(RFQ_INCLUDES || (exports.RFQ_INCLUDES = RFQ_INCLUDES = {}));
12
19
  var RFQ_STATUS;
13
20
  (function (RFQ_STATUS) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.3.4",
3
+ "version": "5.3.6",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",