kcommons 5.26.8 → 5.27.1
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/classes/asnWrapper.class.d.ts +2 -1
- package/build/classes/asnWrapper.class.js +2 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/typings/asn.typings.d.ts +6 -5
- package/build/typings/asn.typings.js +2 -1
- package/build/typings/company.typings.d.ts +5 -2
- package/build/typings/company.typings.js +1 -0
- package/build/typings/item.typings.d.ts +5 -2
- package/build/typings/item.typings.js +1 -0
- package/build/typings/po.typings.d.ts +5 -2
- package/build/typings/po.typings.js +1 -0
- package/build/typings/poAsnJunctionItems.typings.d.ts +23 -0
- package/build/typings/poAsnJunctionItems.typings.js +9 -0
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IASNItem } from "../typings/asn.typings";
|
|
2
2
|
export declare class ASNItemWrapper implements IASNItem {
|
|
3
3
|
constructor(partial: IASNItem);
|
|
4
|
+
po_asn_item_junction_id: string;
|
|
5
|
+
po_asn_item_junction: null;
|
|
4
6
|
id: string;
|
|
5
7
|
parent_asn_id: string;
|
|
6
8
|
vendor_id: string;
|
|
@@ -20,5 +22,4 @@ export declare class ASNItemWrapper implements IASNItem {
|
|
|
20
22
|
item: null;
|
|
21
23
|
parent_asn: null;
|
|
22
24
|
vendor: null;
|
|
23
|
-
parent_po_item: null;
|
|
24
25
|
}
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ASNItemWrapper = void 0;
|
|
4
4
|
class ASNItemWrapper {
|
|
5
5
|
constructor(partial) {
|
|
6
|
+
this.po_asn_item_junction_id = "";
|
|
7
|
+
this.po_asn_item_junction = null;
|
|
6
8
|
this.id = "";
|
|
7
9
|
this.parent_asn_id = "";
|
|
8
10
|
this.vendor_id = "";
|
|
@@ -22,7 +24,6 @@ class ASNItemWrapper {
|
|
|
22
24
|
this.item = null;
|
|
23
25
|
this.parent_asn = null;
|
|
24
26
|
this.vendor = null;
|
|
25
|
-
this.parent_po_item = null;
|
|
26
27
|
Object.assign(this, partial);
|
|
27
28
|
}
|
|
28
29
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export * from "./typings/settings/form/extraFormAns.typings";
|
|
|
41
41
|
export * from "./typings/extraCoreRelatedQuestions.typings";
|
|
42
42
|
export * from "./typings/extraCoreRelatedQuestionsForCompany.typings";
|
|
43
43
|
export * from "./typings/companySepcificVendorItems.typings";
|
|
44
|
+
export * from "./typings/poAsnJunctionItems.typings";
|
|
44
45
|
export * from "./constants/permission.constants";
|
|
45
46
|
export * from "./constants/entityTypes.constants";
|
|
46
47
|
export * from "./constants/documentStatus.typings";
|
package/build/index.js
CHANGED
|
@@ -58,6 +58,7 @@ __exportStar(require("./typings/settings/form/extraFormAns.typings"), exports);
|
|
|
58
58
|
__exportStar(require("./typings/extraCoreRelatedQuestions.typings"), exports);
|
|
59
59
|
__exportStar(require("./typings/extraCoreRelatedQuestionsForCompany.typings"), exports);
|
|
60
60
|
__exportStar(require("./typings/companySepcificVendorItems.typings"), exports);
|
|
61
|
+
__exportStar(require("./typings/poAsnJunctionItems.typings"), exports);
|
|
61
62
|
// Constants
|
|
62
63
|
__exportStar(require("./constants/permission.constants"), exports);
|
|
63
64
|
__exportStar(require("./constants/entityTypes.constants"), exports);
|
|
@@ -3,6 +3,7 @@ import { INestedCompany } from "./company.typings";
|
|
|
3
3
|
import { INestedGRNItem } from "./grn.typings";
|
|
4
4
|
import { INestedItem } from "./item.typings";
|
|
5
5
|
import { INestedPo } from "./po.typings";
|
|
6
|
+
import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
6
7
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
7
8
|
import { INestedUser } from "./user.typings";
|
|
8
9
|
import { INestedVendor } from "./vendor.typings";
|
|
@@ -62,8 +63,8 @@ export declare enum ASN_ITEM_INCLUDE {
|
|
|
62
63
|
item = "item",
|
|
63
64
|
parent_asn = "parent_asn",
|
|
64
65
|
vendor = "vendor",
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
used_in_grn_items = "used_in_grn_items",
|
|
67
|
+
po_asn_item_junction = "used_ipo_asn_item_junctionn_grn_items"
|
|
67
68
|
}
|
|
68
69
|
export interface IASNItem {
|
|
69
70
|
id: string;
|
|
@@ -80,13 +81,13 @@ export interface IASNItem {
|
|
|
80
81
|
deleted_at: string | null;
|
|
81
82
|
created_at: string;
|
|
82
83
|
updated_at: string;
|
|
83
|
-
|
|
84
|
+
po_asn_item_junction_id: string;
|
|
84
85
|
company?: INestedCompany | null;
|
|
85
86
|
item?: INestedItem | null;
|
|
86
87
|
parent_asn?: INestedASN | null;
|
|
87
88
|
vendor?: INestedVendor | null;
|
|
88
|
-
parent_po_item?: INestedPo | null;
|
|
89
89
|
used_in_grn_items?: INestedGRNItem[] | null;
|
|
90
|
+
po_asn_item_junction: INestedPOASNItemJunction | null;
|
|
90
91
|
}
|
|
91
|
-
export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item" | "used_in_grn_items"> {
|
|
92
|
+
export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item" | "used_in_grn_items" | "po_asn_item_junction"> {
|
|
92
93
|
}
|
|
@@ -25,6 +25,7 @@ var ASN_ITEM_INCLUDE;
|
|
|
25
25
|
ASN_ITEM_INCLUDE["item"] = "item";
|
|
26
26
|
ASN_ITEM_INCLUDE["parent_asn"] = "parent_asn";
|
|
27
27
|
ASN_ITEM_INCLUDE["vendor"] = "vendor";
|
|
28
|
-
|
|
28
|
+
// parent_po_item = "parent_po_item",
|
|
29
29
|
ASN_ITEM_INCLUDE["used_in_grn_items"] = "used_in_grn_items";
|
|
30
|
+
ASN_ITEM_INCLUDE["po_asn_item_junction"] = "used_ipo_asn_item_junctionn_grn_items";
|
|
30
31
|
})(ASN_ITEM_INCLUDE || (exports.ASN_ITEM_INCLUDE = ASN_ITEM_INCLUDE = {}));
|
|
@@ -30,6 +30,7 @@ import { INestedExtraFormAnswerEntitys } from "./settings/form/extraFormAns.typi
|
|
|
30
30
|
import { INestedExtraCoreRelatedQuestionsForCompanyEntiy } from "./extraCoreRelatedQuestionsForCompany.typings";
|
|
31
31
|
import { INestedCompanySpecificVendorItemVersion } from "./companySepcificVendorItems.typings";
|
|
32
32
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
33
|
+
import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
33
34
|
export interface IVendorOnboardingCompaniesFilter extends IPaginationFilters {
|
|
34
35
|
vendor_id?: string;
|
|
35
36
|
}
|
|
@@ -72,7 +73,8 @@ export declare enum COMPANY_INCLUDE {
|
|
|
72
73
|
extra_questions = "extra_questions",
|
|
73
74
|
extra_question_ans = "extra_question_ans",
|
|
74
75
|
extra_core_related_questions = "extra_core_related_questions",
|
|
75
|
-
company_specific_vendor_items = "company_specific_vendor_items"
|
|
76
|
+
company_specific_vendor_items = "company_specific_vendor_items",
|
|
77
|
+
po_asn_items_junction = "po_asn_items_junction"
|
|
76
78
|
}
|
|
77
79
|
export interface ICompany extends IAddress {
|
|
78
80
|
id: string;
|
|
@@ -135,6 +137,7 @@ export interface ICompany extends IAddress {
|
|
|
135
137
|
extra_question_ans: INestedExtraFormAnswerEntitys[] | null;
|
|
136
138
|
extra_core_related_questions: INestedExtraCoreRelatedQuestionsForCompanyEntiy[] | null;
|
|
137
139
|
company_specific_vendor_items: INestedCompanySpecificVendorItemVersion[] | null;
|
|
140
|
+
po_asn_items_junction: INestedPOASNItemJunction[] | null;
|
|
138
141
|
}
|
|
139
|
-
export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "company_proxy" | "extra_questions" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items"> {
|
|
142
|
+
export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "company_proxy" | "extra_questions" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction"> {
|
|
140
143
|
}
|
|
@@ -43,4 +43,5 @@ var COMPANY_INCLUDE;
|
|
|
43
43
|
COMPANY_INCLUDE["extra_question_ans"] = "extra_question_ans";
|
|
44
44
|
COMPANY_INCLUDE["extra_core_related_questions"] = "extra_core_related_questions";
|
|
45
45
|
COMPANY_INCLUDE["company_specific_vendor_items"] = "company_specific_vendor_items";
|
|
46
|
+
COMPANY_INCLUDE["po_asn_items_junction"] = "po_asn_items_junction";
|
|
46
47
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
@@ -8,6 +8,7 @@ import { INestedItemCategory } from "./itemCategory.typings";
|
|
|
8
8
|
import { INestedItemSubcategory } from "./itemSubcategory.typings";
|
|
9
9
|
import { INestedMIItem } from "./mi.typings";
|
|
10
10
|
import { INestedMRNItem } from "./mrn.typings";
|
|
11
|
+
import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
11
12
|
import { INestedPrItem } from "./pr.typings";
|
|
12
13
|
import { INestedQuoteItems } from "./quote.typings";
|
|
13
14
|
import { INestedInventoryItem } from "./storeInventory.typings";
|
|
@@ -30,7 +31,8 @@ export declare enum ITEM_INCLUDE {
|
|
|
30
31
|
used_in_bom_items = "used_in_bom_items",
|
|
31
32
|
used_in_comparative_items = "used_in_comparative_items",
|
|
32
33
|
inventory_entries = "inventory_entries",
|
|
33
|
-
dealing_company_vendors = "dealing_company_vendors"
|
|
34
|
+
dealing_company_vendors = "dealing_company_vendors",
|
|
35
|
+
used_in_po_asn_item_junction = "used_in_po_asn_item_junction"
|
|
34
36
|
}
|
|
35
37
|
export interface IItem {
|
|
36
38
|
id: string;
|
|
@@ -81,8 +83,9 @@ export interface IItem {
|
|
|
81
83
|
previous_purchase_vendor?: INestedCompanyVendors | null;
|
|
82
84
|
least_purchase_vendor?: INestedCompanyVendors | null;
|
|
83
85
|
dealing_company_vendors?: INestedCompanyVendors[] | null;
|
|
86
|
+
used_in_po_asn_item_junction?: INestedPOASNItemJunction[] | null;
|
|
84
87
|
}
|
|
85
|
-
export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items" | "used_in_comparative_items" | "previous_purchase_vendor" | "least_purchase_vendor" | "dealing_company_vendors"> {
|
|
88
|
+
export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items" | "used_in_comparative_items" | "previous_purchase_vendor" | "least_purchase_vendor" | "dealing_company_vendors" | "used_in_po_asn_item_junction"> {
|
|
86
89
|
}
|
|
87
90
|
export declare const ITEM_CLASSIFICATION: {
|
|
88
91
|
DIRECT: string;
|
|
@@ -21,6 +21,7 @@ var ITEM_INCLUDE;
|
|
|
21
21
|
ITEM_INCLUDE["used_in_comparative_items"] = "used_in_comparative_items";
|
|
22
22
|
ITEM_INCLUDE["inventory_entries"] = "inventory_entries";
|
|
23
23
|
ITEM_INCLUDE["dealing_company_vendors"] = "dealing_company_vendors";
|
|
24
|
+
ITEM_INCLUDE["used_in_po_asn_item_junction"] = "used_in_po_asn_item_junction";
|
|
24
25
|
})(ITEM_INCLUDE || (exports.ITEM_INCLUDE = ITEM_INCLUDE = {}));
|
|
25
26
|
exports.ITEM_CLASSIFICATION = {
|
|
26
27
|
DIRECT: "Direct",
|
|
@@ -7,6 +7,7 @@ import { ITaxRelatedItemInputs } from "./docItems.typings";
|
|
|
7
7
|
import { INestedDocumentTaxes } from "./documentTaxes.typings";
|
|
8
8
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
9
9
|
import { INestedItem } from "./item.typings";
|
|
10
|
+
import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
10
11
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
11
12
|
import { INestedQuote } from "./quote.typings";
|
|
12
13
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
@@ -88,8 +89,9 @@ export interface IPurchaseOrder {
|
|
|
88
89
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
89
90
|
taxes: INestedDocumentTaxes[] | null;
|
|
90
91
|
vendor: INestedVendor | null;
|
|
92
|
+
po_asn_items_junctions: INestedPOASNItemJunction[] | null;
|
|
91
93
|
}
|
|
92
|
-
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "company_vendor" | "contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor"> {
|
|
94
|
+
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "company_vendor" | "contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "po_asn_items_junctions"> {
|
|
93
95
|
}
|
|
94
96
|
export declare enum PO_INCLUDE {
|
|
95
97
|
company = "company",
|
|
@@ -107,7 +109,8 @@ export declare enum PO_INCLUDE {
|
|
|
107
109
|
approval_chain = "approval_chain",
|
|
108
110
|
taxes = "taxes",
|
|
109
111
|
purchase_location = "purchase_location",
|
|
110
|
-
vendor = "vendor"
|
|
112
|
+
vendor = "vendor",
|
|
113
|
+
po_asn_items_junctions = "po_asn_items_junctions"
|
|
111
114
|
}
|
|
112
115
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
113
116
|
id: string;
|
|
@@ -42,6 +42,7 @@ var PO_INCLUDE;
|
|
|
42
42
|
PO_INCLUDE["taxes"] = "taxes";
|
|
43
43
|
PO_INCLUDE["purchase_location"] = "purchase_location";
|
|
44
44
|
PO_INCLUDE["vendor"] = "vendor";
|
|
45
|
+
PO_INCLUDE["po_asn_items_junctions"] = "po_asn_items_junctions";
|
|
45
46
|
})(PO_INCLUDE || (exports.PO_INCLUDE = PO_INCLUDE = {}));
|
|
46
47
|
var PO_ITEM_INCLUDE;
|
|
47
48
|
(function (PO_ITEM_INCLUDE) {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { INestedASNItem } from "./asn.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedItem } from "./item.typings";
|
|
4
|
+
import { INestedPo } from "./po.typings";
|
|
5
|
+
export declare enum PO_ASN_ITEM_JUNCTION_INCLUDE {
|
|
6
|
+
company = "company",
|
|
7
|
+
item = "item",
|
|
8
|
+
asn_items = "asn_items"
|
|
9
|
+
}
|
|
10
|
+
export interface IPOASNItemJunction {
|
|
11
|
+
id: string;
|
|
12
|
+
company_id: string;
|
|
13
|
+
po_id: string;
|
|
14
|
+
item_id: string;
|
|
15
|
+
processing_quantity: number;
|
|
16
|
+
pending_quantity: number;
|
|
17
|
+
parent_po: INestedPo | null;
|
|
18
|
+
company: INestedCompany | null;
|
|
19
|
+
item: INestedItem | null;
|
|
20
|
+
asn_items: INestedASNItem[] | null;
|
|
21
|
+
}
|
|
22
|
+
export interface INestedPOASNItemJunction extends Omit<IPOASNItemJunction, "company" | "item" | "asn_items"> {
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PO_ASN_ITEM_JUNCTION_INCLUDE = void 0;
|
|
4
|
+
var PO_ASN_ITEM_JUNCTION_INCLUDE;
|
|
5
|
+
(function (PO_ASN_ITEM_JUNCTION_INCLUDE) {
|
|
6
|
+
PO_ASN_ITEM_JUNCTION_INCLUDE["company"] = "company";
|
|
7
|
+
PO_ASN_ITEM_JUNCTION_INCLUDE["item"] = "item";
|
|
8
|
+
PO_ASN_ITEM_JUNCTION_INCLUDE["asn_items"] = "asn_items";
|
|
9
|
+
})(PO_ASN_ITEM_JUNCTION_INCLUDE || (exports.PO_ASN_ITEM_JUNCTION_INCLUDE = PO_ASN_ITEM_JUNCTION_INCLUDE = {}));
|