kcommons 5.3.5 → 5.3.7

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.
@@ -0,0 +1,24 @@
1
+ import { IASNItem } from "../typings/asn.typings";
2
+ export declare class ASNItemWrapper implements IASNItem {
3
+ constructor(partial: IASNItem);
4
+ id: string;
5
+ parent_asn_id: string;
6
+ vendor_id: string;
7
+ company_id: string;
8
+ item_id: string;
9
+ item_name: string;
10
+ code_sku: string;
11
+ uom: string;
12
+ quantity: number;
13
+ item_description: null;
14
+ is_deleted: boolean;
15
+ deleted_at: null;
16
+ created_at: string;
17
+ updated_at: string;
18
+ po_item_id: null;
19
+ company: null;
20
+ item: null;
21
+ parent_asn: null;
22
+ vendor: null;
23
+ parent_po_item: null;
24
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ASNItemWrapper = void 0;
4
+ class ASNItemWrapper {
5
+ constructor(partial) {
6
+ this.id = "";
7
+ this.parent_asn_id = "";
8
+ this.vendor_id = "";
9
+ this.company_id = "";
10
+ this.item_id = "";
11
+ this.item_name = "";
12
+ this.code_sku = "";
13
+ this.uom = "";
14
+ this.quantity = 0;
15
+ this.item_description = null;
16
+ this.is_deleted = false;
17
+ this.deleted_at = null;
18
+ this.created_at = "";
19
+ this.updated_at = "";
20
+ this.po_item_id = null;
21
+ this.company = null;
22
+ this.item = null;
23
+ this.parent_asn = null;
24
+ this.vendor = null;
25
+ this.parent_po_item = null;
26
+ Object.assign(this, partial);
27
+ }
28
+ }
29
+ exports.ASNItemWrapper = ASNItemWrapper;
@@ -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
+ parent_asn_id: string;
67
+ vendor_id: string;
68
+ company_id: string;
69
+ item_id: string;
70
+ item_name: string;
71
+ code_sku: string;
72
+ uom: string;
73
+ quantity: number;
74
+ item_description: string | null;
75
+ is_deleted: boolean;
76
+ deleted_at: string | null;
77
+ created_at: string;
78
+ updated_at: string;
79
+ po_item_id: string | null;
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,5 +1,9 @@
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";
@@ -59,13 +63,20 @@ export interface IRFQ {
59
63
  deleted_at?: string | null;
60
64
  created_at?: string | null;
61
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;
62
73
  items?: INestedRFQItem[] | null;
63
74
  approval_chain?: INestedApprovalChainEntry[] | null;
64
75
  rfq_vendor_groups?: INestedVendorGroups[] | null;
65
76
  rfq_vendors?: INestedCompanyVendors[] | null;
66
77
  additional_vendors?: INestedVendor[] | null;
67
78
  }
68
- 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"> {
69
80
  }
70
81
  export interface IRFQItem {
71
82
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.3.5",
3
+ "version": "5.3.7",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",