kcommons 13.9.4 → 13.10.0
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/typings/company.typings.d.ts +2 -0
- package/build/typings/grn.typings.d.ts +13 -4
- package/build/typings/grn.typings.js +3 -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 +12 -2
- package/build/typings/po.typings.js +2 -0
- package/build/typings/poAsnJunctionItems.typings.d.ts +1 -1
- package/build/typings/poGrnJunctionItems.typings.d.ts +24 -0
- package/build/typings/poGrnJunctionItems.typings.js +10 -0
- package/package.json +1 -1
- package/build/typings/company/settings/CompanySettings.typings.d.ts +0 -6
- package/build/typings/company/settings/CompanySettings.typings.js +0 -10
|
@@ -42,6 +42,7 @@ import { INestedVendorManagementBody } from "./company/masters/vendorManagementB
|
|
|
42
42
|
import { INestedVendorOnboardingRequestCategory } from "./company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings";
|
|
43
43
|
import { DATE_TIME_UNITS } from "../constants/date.constants";
|
|
44
44
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
45
|
+
import { INestedPOGRNItemJunction } from "./poGrnJunctionItems.typings";
|
|
45
46
|
export declare enum PRICING_PLANS {
|
|
46
47
|
BASIC = "BASIC",
|
|
47
48
|
GROWTH = "GROWTH",
|
|
@@ -172,6 +173,7 @@ export interface ICompany extends IAddress {
|
|
|
172
173
|
extra_core_related_questions: INestedExtraCoreRelatedQuestionsForCompanyEntiy[] | null;
|
|
173
174
|
company_specific_vendor_items: INestedCompanySpecificVendorItemVersion[] | null;
|
|
174
175
|
po_asn_items_junction: INestedPOASNItemJunction[] | null;
|
|
176
|
+
po_grn_items_junction: INestedPOGRNItemJunction[] | null;
|
|
175
177
|
company_contact_people: INestedContactPeople[] | null;
|
|
176
178
|
company_item_vendor_versions: INestedCompanyItemVendorVersion[] | null;
|
|
177
179
|
istds: INestedISTD[] | null;
|
|
@@ -7,6 +7,8 @@ import { INestedDepartment } from "./department.typings";
|
|
|
7
7
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
8
8
|
import { INestedItem } from "./item.typings";
|
|
9
9
|
import { INestedMRN, INestedMRNItem } from "./mrn.typings";
|
|
10
|
+
import { INestedPo } from "./po.typings";
|
|
11
|
+
import { INestedPOGRNItemJunction } from "./poGrnJunctionItems.typings";
|
|
10
12
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
11
13
|
import { INestedUser } from "./user.typings";
|
|
12
14
|
export declare enum GRN_LIST_TYPES {
|
|
@@ -21,7 +23,8 @@ export declare enum GRN_TABS {
|
|
|
21
23
|
}
|
|
22
24
|
export declare enum GRN_PARENT_DOC_TYPE {
|
|
23
25
|
ASN = "ASN",
|
|
24
|
-
ISTD = "ISTD"
|
|
26
|
+
ISTD = "ISTD",
|
|
27
|
+
PO = "PO"
|
|
25
28
|
}
|
|
26
29
|
export declare enum GRN_INCLUDE {
|
|
27
30
|
company = "company",
|
|
@@ -31,6 +34,7 @@ export declare enum GRN_INCLUDE {
|
|
|
31
34
|
department = "department",
|
|
32
35
|
parent_asn = "parent_asn",
|
|
33
36
|
parent_istd = "parent_istd",
|
|
37
|
+
parent_po = "parent_po",
|
|
34
38
|
contact_person = "contact_person",
|
|
35
39
|
items = "items",
|
|
36
40
|
approval_chain = "approval_chain",
|
|
@@ -67,6 +71,7 @@ export interface IGRN {
|
|
|
67
71
|
actual_delivery_date: string;
|
|
68
72
|
expected_delivery_date?: string | null;
|
|
69
73
|
parent_asn_id?: string | null;
|
|
74
|
+
parent_po_id?: string | null;
|
|
70
75
|
shipping_store_location_id: string;
|
|
71
76
|
created_by_id: string;
|
|
72
77
|
last_updated_by_user_id: string;
|
|
@@ -93,8 +98,9 @@ export interface IGRN {
|
|
|
93
98
|
sent_for_approval_by?: INestedUser | null;
|
|
94
99
|
sent_to_store_by?: INestedUser | null;
|
|
95
100
|
parent_istd: INestedISTD | null;
|
|
101
|
+
parent_po: INestedPo | null;
|
|
96
102
|
}
|
|
97
|
-
export interface INestedGRN extends Omit<IGRN, "company" | "created_by_user" | "last_updated_by_user" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns" | "parent_istd"> {
|
|
103
|
+
export interface INestedGRN extends Omit<IGRN, "company" | "created_by_user" | "last_updated_by_user" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns" | "parent_istd" | "parent_po"> {
|
|
98
104
|
}
|
|
99
105
|
export declare enum GRN_ITEM_INCLUDE {
|
|
100
106
|
company = "company",
|
|
@@ -102,7 +108,8 @@ export declare enum GRN_ITEM_INCLUDE {
|
|
|
102
108
|
parent_grn = "parent_grn",
|
|
103
109
|
parent_asn_item = "parent_asn_item",
|
|
104
110
|
referenced_in_mrn_items = "referenced_in_mrn_items",
|
|
105
|
-
parent_istd_item = "parent_istd_item"
|
|
111
|
+
parent_istd_item = "parent_istd_item",
|
|
112
|
+
po_grn_item_junction = "po_grn_item_junction"
|
|
106
113
|
}
|
|
107
114
|
export interface IGRNItem {
|
|
108
115
|
id: string;
|
|
@@ -120,6 +127,7 @@ export interface IGRNItem {
|
|
|
120
127
|
item_description?: string | null;
|
|
121
128
|
parent_asn_item_id?: string | null;
|
|
122
129
|
parent_istd_item_id: string | null;
|
|
130
|
+
po_grn_item_junction_id?: string | null;
|
|
123
131
|
is_deleted: boolean;
|
|
124
132
|
deleted_at?: string | null;
|
|
125
133
|
created_at: string;
|
|
@@ -130,6 +138,7 @@ export interface IGRNItem {
|
|
|
130
138
|
parent_asn_item?: INestedASNItem | null;
|
|
131
139
|
parent_istd_item?: INestedISTDItem | null;
|
|
132
140
|
referenced_in_mrn_items?: INestedMRNItem[] | null;
|
|
141
|
+
po_grn_item_junction?: INestedPOGRNItemJunction | null;
|
|
133
142
|
}
|
|
134
|
-
export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item" | "referenced_in_mrn_items" | "parent_istd_item"> {
|
|
143
|
+
export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item" | "referenced_in_mrn_items" | "parent_istd_item" | "po_grn_item_junction"> {
|
|
135
144
|
}
|
|
@@ -17,6 +17,7 @@ var GRN_PARENT_DOC_TYPE;
|
|
|
17
17
|
(function (GRN_PARENT_DOC_TYPE) {
|
|
18
18
|
GRN_PARENT_DOC_TYPE["ASN"] = "ASN";
|
|
19
19
|
GRN_PARENT_DOC_TYPE["ISTD"] = "ISTD";
|
|
20
|
+
GRN_PARENT_DOC_TYPE["PO"] = "PO";
|
|
20
21
|
})(GRN_PARENT_DOC_TYPE || (exports.GRN_PARENT_DOC_TYPE = GRN_PARENT_DOC_TYPE = {}));
|
|
21
22
|
var GRN_INCLUDE;
|
|
22
23
|
(function (GRN_INCLUDE) {
|
|
@@ -27,6 +28,7 @@ var GRN_INCLUDE;
|
|
|
27
28
|
GRN_INCLUDE["department"] = "department";
|
|
28
29
|
GRN_INCLUDE["parent_asn"] = "parent_asn";
|
|
29
30
|
GRN_INCLUDE["parent_istd"] = "parent_istd";
|
|
31
|
+
GRN_INCLUDE["parent_po"] = "parent_po";
|
|
30
32
|
GRN_INCLUDE["contact_person"] = "contact_person";
|
|
31
33
|
GRN_INCLUDE["items"] = "items";
|
|
32
34
|
GRN_INCLUDE["approval_chain"] = "approval_chain";
|
|
@@ -52,4 +54,5 @@ var GRN_ITEM_INCLUDE;
|
|
|
52
54
|
GRN_ITEM_INCLUDE["parent_asn_item"] = "parent_asn_item";
|
|
53
55
|
GRN_ITEM_INCLUDE["referenced_in_mrn_items"] = "referenced_in_mrn_items";
|
|
54
56
|
GRN_ITEM_INCLUDE["parent_istd_item"] = "parent_istd_item";
|
|
57
|
+
GRN_ITEM_INCLUDE["po_grn_item_junction"] = "po_grn_item_junction";
|
|
55
58
|
})(GRN_ITEM_INCLUDE || (exports.GRN_ITEM_INCLUDE = GRN_ITEM_INCLUDE = {}));
|
|
@@ -22,6 +22,7 @@ import { INestedRFQItem } from "./rfq.typings";
|
|
|
22
22
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
23
23
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
24
24
|
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
25
|
+
import { INestedPOGRNItemJunction } from "./poGrnJunctionItems.typings";
|
|
25
26
|
export interface IOpenItemApprovalsTokenVerificationResponse {
|
|
26
27
|
itemData: IItem;
|
|
27
28
|
entityApprovalChainEntry: IEntityApprovalChainEntry;
|
|
@@ -62,7 +63,8 @@ export declare enum ITEM_INCLUDE {
|
|
|
62
63
|
parent_item_management_body = "parent_item_management_body",
|
|
63
64
|
created_by_user = "created_by_user",
|
|
64
65
|
approval_chain = "approval_chain",
|
|
65
|
-
sent_for_approval_by = "sent_for_approval_by"
|
|
66
|
+
sent_for_approval_by = "sent_for_approval_by",
|
|
67
|
+
used_in_po_grn_item_junction = "used_in_po_grn_item_junction"
|
|
66
68
|
}
|
|
67
69
|
export interface IOpenItemApprovalsPayload extends IOpenApprovalsBase {
|
|
68
70
|
item_id: string;
|
|
@@ -155,6 +157,7 @@ export interface IItem {
|
|
|
155
157
|
least_purchase_vendor?: INestedCompanyVendors | null;
|
|
156
158
|
dealing_company_vendors?: INestedCompanyVendors[] | null;
|
|
157
159
|
used_in_po_asn_item_junction?: INestedPOASNItemJunction | null;
|
|
160
|
+
used_in_po_grn_item_junction?: INestedPOGRNItemJunction | null;
|
|
158
161
|
vendor_item_versions: INestedCompanyItemVendorVersion[] | null;
|
|
159
162
|
last_updated_by: INestedUser | null;
|
|
160
163
|
used_in_istd_items: INestedISTDItem[] | null;
|
|
@@ -165,7 +168,7 @@ export interface IItem {
|
|
|
165
168
|
parent_item_management_body: INestedItemManagementBody | null;
|
|
166
169
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
167
170
|
}
|
|
168
|
-
export interface INestedItem extends Omit<IItem, "inventory_entries" | "item_category" | "item_subcategory" | "company" | "used_in_rfq_items" | "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" | "vendor_item_versions" | "used_in_istd_items" | "used_in_iads" | "used_in_inventory_logs" | "previous_purchase_po" | "least_purchase_po" | "parent_item_management_body" | "created_by_user" | "approval_chain"> {
|
|
171
|
+
export interface INestedItem extends Omit<IItem, "inventory_entries" | "item_category" | "item_subcategory" | "company" | "used_in_rfq_items" | "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" | "used_in_po_grn_item_junction" | "vendor_item_versions" | "used_in_istd_items" | "used_in_iads" | "used_in_inventory_logs" | "previous_purchase_po" | "least_purchase_po" | "parent_item_management_body" | "created_by_user" | "approval_chain"> {
|
|
169
172
|
}
|
|
170
173
|
export declare const ITEM_CLASSIFICATION: {
|
|
171
174
|
DIRECT: string;
|
|
@@ -40,6 +40,7 @@ var ITEM_INCLUDE;
|
|
|
40
40
|
ITEM_INCLUDE["created_by_user"] = "created_by_user";
|
|
41
41
|
ITEM_INCLUDE["approval_chain"] = "approval_chain";
|
|
42
42
|
ITEM_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
|
|
43
|
+
ITEM_INCLUDE["used_in_po_grn_item_junction"] = "used_in_po_grn_item_junction";
|
|
43
44
|
})(ITEM_INCLUDE || (exports.ITEM_INCLUDE = ITEM_INCLUDE = {}));
|
|
44
45
|
exports.ITEM_CLASSIFICATION = {
|
|
45
46
|
DIRECT: "Direct",
|
|
@@ -8,9 +8,11 @@ import { CONTACT_PERSON_TYPE, INestedContactPeople } from "./contactPeople.typin
|
|
|
8
8
|
import { ITaxRelatedItemInputs } from "./docItems.typings";
|
|
9
9
|
import { INestedDocumentTaxes } from "./documentTaxes.typings";
|
|
10
10
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
11
|
+
import { INestedGRN } from "./grn.typings";
|
|
11
12
|
import { INestedInvoice } from "./invoices.typings";
|
|
12
13
|
import { INestedItem, ITEM_TYPES } from "./item.typings";
|
|
13
14
|
import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
15
|
+
import { INestedPOGRNItemJunction } from "./poGrnJunctionItems.typings";
|
|
14
16
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
15
17
|
import { INestedQuote } from "./quote.typings";
|
|
16
18
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
@@ -63,6 +65,10 @@ export interface IPOFilters {
|
|
|
63
65
|
}
|
|
64
66
|
export interface IPOFiltersWithPagination extends IPOFilters, IPaginationFilters {
|
|
65
67
|
}
|
|
68
|
+
export interface IPOFiltersForGRN extends Pick<IPOFilters, "name" | "include"> {
|
|
69
|
+
}
|
|
70
|
+
export interface IPOFiltersForGRNWithPagination extends IPOFiltersForGRN, IPaginationFilters {
|
|
71
|
+
}
|
|
66
72
|
export interface IPurchaseOrder {
|
|
67
73
|
id: string;
|
|
68
74
|
po_type: PO_TYPE;
|
|
@@ -121,8 +127,10 @@ export interface IPurchaseOrder {
|
|
|
121
127
|
least_purchase_price_items: INestedItem[] | null;
|
|
122
128
|
previous_purchase_price_items: INestedItem[] | null;
|
|
123
129
|
invoices: INestedInvoice[] | null;
|
|
130
|
+
directly_created_grns: INestedGRN[] | null;
|
|
131
|
+
po_grn_items_junctions: INestedPOGRNItemJunction[] | null;
|
|
124
132
|
}
|
|
125
|
-
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "last_updated_by_user" | "company_vendor" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "
|
|
133
|
+
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "last_updated_by_user" | "company_vendor" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "least_purchase_price_items" | "previous_purchase_price_items" | "invoices" | "po_grn_items_junctions" | "directly_created_grns"> {
|
|
126
134
|
}
|
|
127
135
|
export declare enum PO_INCLUDE {
|
|
128
136
|
invoices = "invoices",
|
|
@@ -146,7 +154,9 @@ export declare enum PO_INCLUDE {
|
|
|
146
154
|
vendor = "vendor",
|
|
147
155
|
po_asn_items_junctions = "po_asn_items_junctions",
|
|
148
156
|
least_purchase_price_items = "least_purchase_price_items",
|
|
149
|
-
previous_purchase_price_items = "previous_purchase_price_items"
|
|
157
|
+
previous_purchase_price_items = "previous_purchase_price_items",
|
|
158
|
+
po_grn_items_junctions = "po_grn_items_junctions",
|
|
159
|
+
directly_created_grns = "directly_created_grns"
|
|
150
160
|
}
|
|
151
161
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
152
162
|
id: string;
|
|
@@ -63,6 +63,8 @@ var PO_INCLUDE;
|
|
|
63
63
|
PO_INCLUDE["po_asn_items_junctions"] = "po_asn_items_junctions";
|
|
64
64
|
PO_INCLUDE["least_purchase_price_items"] = "least_purchase_price_items";
|
|
65
65
|
PO_INCLUDE["previous_purchase_price_items"] = "previous_purchase_price_items";
|
|
66
|
+
PO_INCLUDE["po_grn_items_junctions"] = "po_grn_items_junctions";
|
|
67
|
+
PO_INCLUDE["directly_created_grns"] = "directly_created_grns";
|
|
66
68
|
})(PO_INCLUDE || (exports.PO_INCLUDE = PO_INCLUDE = {}));
|
|
67
69
|
var PO_ITEM_INCLUDE;
|
|
68
70
|
(function (PO_ITEM_INCLUDE) {
|
|
@@ -20,5 +20,5 @@ export interface IPOASNItemJunction {
|
|
|
20
20
|
item: INestedItem | null;
|
|
21
21
|
asn_items: INestedASNItem[] | null;
|
|
22
22
|
}
|
|
23
|
-
export interface INestedPOASNItemJunction extends Omit<IPOASNItemJunction, "company" | "item" | "asn_items"> {
|
|
23
|
+
export interface INestedPOASNItemJunction extends Omit<IPOASNItemJunction, "company" | "item" | "asn_items" | "parent_po"> {
|
|
24
24
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { INestedCompany } from "./company.typings";
|
|
2
|
+
import { INestedGRNItem } from "./grn.typings";
|
|
3
|
+
import { INestedItem } from "./item.typings";
|
|
4
|
+
import { INestedPo } from "./po.typings";
|
|
5
|
+
export declare enum PO_GRN_ITEMS_JUNCTION_INCLUDE {
|
|
6
|
+
parent_po = "parent_po",
|
|
7
|
+
company = "company",
|
|
8
|
+
item = "item",
|
|
9
|
+
grn_items = "grn_items"
|
|
10
|
+
}
|
|
11
|
+
export interface IPOGRNItemsJunction {
|
|
12
|
+
id: string;
|
|
13
|
+
company_id: string;
|
|
14
|
+
po_id: string;
|
|
15
|
+
item_id: string;
|
|
16
|
+
processing_quantity: number;
|
|
17
|
+
pending_quantity: number;
|
|
18
|
+
parent_po: INestedPo | null;
|
|
19
|
+
company: INestedCompany | null;
|
|
20
|
+
item: INestedItem | null;
|
|
21
|
+
grn_items: INestedGRNItem[] | null;
|
|
22
|
+
}
|
|
23
|
+
export interface INestedPOGRNItemJunction extends Omit<IPOGRNItemsJunction, "parent_po" | "company" | "item" | "grn_items"> {
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PO_GRN_ITEMS_JUNCTION_INCLUDE = void 0;
|
|
4
|
+
var PO_GRN_ITEMS_JUNCTION_INCLUDE;
|
|
5
|
+
(function (PO_GRN_ITEMS_JUNCTION_INCLUDE) {
|
|
6
|
+
PO_GRN_ITEMS_JUNCTION_INCLUDE["parent_po"] = "parent_po";
|
|
7
|
+
PO_GRN_ITEMS_JUNCTION_INCLUDE["company"] = "company";
|
|
8
|
+
PO_GRN_ITEMS_JUNCTION_INCLUDE["item"] = "item";
|
|
9
|
+
PO_GRN_ITEMS_JUNCTION_INCLUDE["grn_items"] = "grn_items";
|
|
10
|
+
})(PO_GRN_ITEMS_JUNCTION_INCLUDE || (exports.PO_GRN_ITEMS_JUNCTION_INCLUDE = PO_GRN_ITEMS_JUNCTION_INCLUDE = {}));
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SETTINGS_TABS = void 0;
|
|
4
|
-
var SETTINGS_TABS;
|
|
5
|
-
(function (SETTINGS_TABS) {
|
|
6
|
-
SETTINGS_TABS["USERPROFILE"] = "userprofile";
|
|
7
|
-
SETTINGS_TABS["COMPANY_SETTINGS"] = "company_settings";
|
|
8
|
-
SETTINGS_TABS["BILLING"] = "billing";
|
|
9
|
-
SETTINGS_TABS["COMPANY_VENDORS"] = "company_vendors";
|
|
10
|
-
})(SETTINGS_TABS || (exports.SETTINGS_TABS = SETTINGS_TABS = {}));
|