kcommons 18.13.12 → 18.15.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/approvalComments.typings.d.ts +3 -1
- package/build/typings/approvalComments.typings.js +2 -0
- package/build/typings/asn.typings.d.ts +3 -1
- package/build/typings/asn.typings.js +1 -0
- package/build/typings/company/masters/imr.typings.d.ts +7 -1
- package/build/typings/company/masters/imr.typings.js +2 -0
- package/build/typings/company/masters/po.typings.d.ts +8 -3
- package/build/typings/company/masters/po.typings.js +3 -0
- package/build/typings/company/masters/ves.typings.d.ts +12 -3
- package/build/typings/company/masters/ves.typings.js +3 -0
- package/build/typings/grn.typings.d.ts +9 -3
- package/build/typings/grn.typings.js +5 -1
- package/build/typings/kpis/company/vendor/companyVendorDashboard.typings.d.ts +3 -0
- package/build/typings/mrn.typings.d.ts +16 -5
- package/build/typings/mrn.typings.js +11 -1
- package/build/typings/supplierInvoice.typings.d.ts +3 -1
- package/build/typings/supplierInvoice.typings.js +2 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export declare enum DOCUMENT_TYPE {
|
|
|
9
9
|
IMR = "IMR",
|
|
10
10
|
INDENT = "INDENT",
|
|
11
11
|
ISTD = "ISTD",
|
|
12
|
+
ITEM = "ITEM",
|
|
12
13
|
MI = "MI",
|
|
13
14
|
MRN = "MRN",
|
|
14
15
|
PO = "PO",
|
|
@@ -16,7 +17,8 @@ export declare enum DOCUMENT_TYPE {
|
|
|
16
17
|
QCD = "QCD",
|
|
17
18
|
QUOTE = "QUOTE",
|
|
18
19
|
RFQ = "RFQ",
|
|
19
|
-
SUBPO = "SUBPO"
|
|
20
|
+
SUBPO = "SUBPO",
|
|
21
|
+
VES = "VES"
|
|
20
22
|
}
|
|
21
23
|
export declare enum APPROVAL_COMMENT_INCLUDE {
|
|
22
24
|
company = "company",
|
|
@@ -10,6 +10,7 @@ var DOCUMENT_TYPE;
|
|
|
10
10
|
DOCUMENT_TYPE["IMR"] = "IMR";
|
|
11
11
|
DOCUMENT_TYPE["INDENT"] = "INDENT";
|
|
12
12
|
DOCUMENT_TYPE["ISTD"] = "ISTD";
|
|
13
|
+
DOCUMENT_TYPE["ITEM"] = "ITEM";
|
|
13
14
|
DOCUMENT_TYPE["MI"] = "MI";
|
|
14
15
|
DOCUMENT_TYPE["MRN"] = "MRN";
|
|
15
16
|
DOCUMENT_TYPE["PO"] = "PO";
|
|
@@ -18,6 +19,7 @@ var DOCUMENT_TYPE;
|
|
|
18
19
|
DOCUMENT_TYPE["QUOTE"] = "QUOTE";
|
|
19
20
|
DOCUMENT_TYPE["RFQ"] = "RFQ";
|
|
20
21
|
DOCUMENT_TYPE["SUBPO"] = "SUBPO";
|
|
22
|
+
DOCUMENT_TYPE["VES"] = "VES";
|
|
21
23
|
})(DOCUMENT_TYPE || (exports.DOCUMENT_TYPE = DOCUMENT_TYPE = {}));
|
|
22
24
|
var APPROVAL_COMMENT_INCLUDE;
|
|
23
25
|
(function (APPROVAL_COMMENT_INCLUDE) {
|
|
@@ -67,6 +67,7 @@ export declare enum ASN_INCLUDE {
|
|
|
67
67
|
created_by_vendor = "created_by_vendor",
|
|
68
68
|
for_company = "for_company",
|
|
69
69
|
parent_po = "parent_po",
|
|
70
|
+
parent_pos = "parent_pos",
|
|
70
71
|
shipping_store_location = "shipping_store_location",
|
|
71
72
|
contact_person = "contact_person",
|
|
72
73
|
items = "items",
|
|
@@ -173,6 +174,7 @@ export interface IASN {
|
|
|
173
174
|
created_by_vendor?: INestedVendor | null;
|
|
174
175
|
for_company: INestedCompany | null;
|
|
175
176
|
parent_po: INestedPo | null;
|
|
177
|
+
parent_pos: INestedPo[] | null;
|
|
176
178
|
shipping_store_location: INestedStoreLocation | null;
|
|
177
179
|
items: INestedASNItem[] | null;
|
|
178
180
|
associated_grns: INestedGRN[] | null;
|
|
@@ -237,7 +239,7 @@ export declare const ASN_SEA_TRANSPORT_FIELD_PREFIX = "sea";
|
|
|
237
239
|
export declare const ASN_AIR_TRANSPORT_FIELD_PREFIX = "air";
|
|
238
240
|
export declare const ASN_COURIER_TRANSPORT_FIELD_PREFIX = "courier";
|
|
239
241
|
export declare const ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = "hand_delivery";
|
|
240
|
-
export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at" | "child_ves" | "approval_chain" | "send_by_user" | "asns_sent_to_vendor_by_user" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "cancelled_by_vendor_user" | "metafields"> {
|
|
242
|
+
export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "parent_pos" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at" | "child_ves" | "approval_chain" | "send_by_user" | "asns_sent_to_vendor_by_user" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "cancelled_by_vendor_user" | "metafields"> {
|
|
241
243
|
}
|
|
242
244
|
export interface IASNBaseFilters {
|
|
243
245
|
po_id?: string;
|
|
@@ -63,6 +63,7 @@ var ASN_INCLUDE;
|
|
|
63
63
|
ASN_INCLUDE["created_by_vendor"] = "created_by_vendor";
|
|
64
64
|
ASN_INCLUDE["for_company"] = "for_company";
|
|
65
65
|
ASN_INCLUDE["parent_po"] = "parent_po";
|
|
66
|
+
ASN_INCLUDE["parent_pos"] = "parent_pos";
|
|
66
67
|
ASN_INCLUDE["shipping_store_location"] = "shipping_store_location";
|
|
67
68
|
ASN_INCLUDE["contact_person"] = "contact_person";
|
|
68
69
|
ASN_INCLUDE["items"] = "items";
|
|
@@ -18,9 +18,11 @@ export declare enum INVOICE_MATCHING_RECORD_STATUS {
|
|
|
18
18
|
export declare enum INVOICE_MATCHING_RECORD_INCLUDE {
|
|
19
19
|
company = "company",
|
|
20
20
|
associated_supplier_invoice = "associated_supplier_invoice",
|
|
21
|
+
/** @deprecated Use `referencing_mrns` instead — a single FK can't represent an IMR spanning multiple MRNs. */
|
|
21
22
|
associated_mrn = "associated_mrn",
|
|
22
23
|
parent_accounts_entity = "parent_accounts_entity",
|
|
23
24
|
associated_pos = "associated_pos",
|
|
25
|
+
referencing_mrns = "referencing_mrns",
|
|
24
26
|
items = "items",
|
|
25
27
|
qa_approval_chain = "qa_approval_chain",
|
|
26
28
|
audit_approval_chain = "audit_approval_chain",
|
|
@@ -41,6 +43,7 @@ export interface IInvoiceMatchingRecord {
|
|
|
41
43
|
imr_no: string;
|
|
42
44
|
company_id: string;
|
|
43
45
|
associated_supplier_invoice_id: string;
|
|
46
|
+
/** @deprecated Use `referencing_mrns` instead — a single FK can't represent an IMR spanning multiple MRNs. */
|
|
44
47
|
associated_mrn_id: string;
|
|
45
48
|
parent_accounts_id: string;
|
|
46
49
|
status: INVOICE_MATCHING_RECORD_STATUS;
|
|
@@ -49,9 +52,11 @@ export interface IInvoiceMatchingRecord {
|
|
|
49
52
|
updated_at: string;
|
|
50
53
|
company: INestedCompany | null;
|
|
51
54
|
associated_supplier_invoice: INestedSupplierInvoice | null;
|
|
55
|
+
/** @deprecated Use `referencing_mrns` instead — a single FK can't represent an IMR spanning multiple MRNs. */
|
|
52
56
|
associated_mrn: INestedMRN | null;
|
|
53
57
|
parent_accounts_entity: INestedAccountsLocation | null;
|
|
54
58
|
associated_pos: INestedPo[] | null;
|
|
59
|
+
referencing_mrns: INestedMRN[] | null;
|
|
55
60
|
items: INestedInvoiceItemRecordItem[] | null;
|
|
56
61
|
qa_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
57
62
|
audit_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
@@ -59,7 +64,7 @@ export interface IInvoiceMatchingRecord {
|
|
|
59
64
|
changelogs: INestedInvoiceMatchingRecordChangelog[] | null;
|
|
60
65
|
metafields?: IInvoiceMatchingRecordMetafields | null;
|
|
61
66
|
}
|
|
62
|
-
export interface INestedInvoiceMatchingRecord extends Omit<IInvoiceMatchingRecord, "company" | "associated_supplier_invoice" | "associated_mrn" | "parent_accounts_entity" | "associated_pos" | "items" | "qa_approval_chain" | "audit_approval_chain" | "accounts_approval_chain" | "changelogs" | "metafields"> {
|
|
67
|
+
export interface INestedInvoiceMatchingRecord extends Omit<IInvoiceMatchingRecord, "company" | "associated_supplier_invoice" | "associated_mrn" | "parent_accounts_entity" | "associated_pos" | "referencing_mrns" | "items" | "qa_approval_chain" | "audit_approval_chain" | "accounts_approval_chain" | "changelogs" | "metafields"> {
|
|
63
68
|
}
|
|
64
69
|
export declare enum INVOICE_MATCHING_RECORD_ITEMS_INCLUDE {
|
|
65
70
|
parent_imr = "parent_imr",
|
|
@@ -126,6 +131,7 @@ export interface IInvoiceMatchingRecordMetafields {
|
|
|
126
131
|
parent_invoice_user_data: INestedUser | null;
|
|
127
132
|
imr_items_pending_quantity: Record<string, number | null>;
|
|
128
133
|
approval_logs: INestedEntityApprovalChainEntryLog[] | null;
|
|
134
|
+
associated_po_items: INestedPOItem[] | null;
|
|
129
135
|
}
|
|
130
136
|
export declare enum INVOICE_MATCHING_RECORD_METAFIELDS_INCLUDE {
|
|
131
137
|
vendor_data = "vendor_data",
|
|
@@ -12,9 +12,11 @@ var INVOICE_MATCHING_RECORD_INCLUDE;
|
|
|
12
12
|
(function (INVOICE_MATCHING_RECORD_INCLUDE) {
|
|
13
13
|
INVOICE_MATCHING_RECORD_INCLUDE["company"] = "company";
|
|
14
14
|
INVOICE_MATCHING_RECORD_INCLUDE["associated_supplier_invoice"] = "associated_supplier_invoice";
|
|
15
|
+
/** @deprecated Use `referencing_mrns` instead — a single FK can't represent an IMR spanning multiple MRNs. */
|
|
15
16
|
INVOICE_MATCHING_RECORD_INCLUDE["associated_mrn"] = "associated_mrn";
|
|
16
17
|
INVOICE_MATCHING_RECORD_INCLUDE["parent_accounts_entity"] = "parent_accounts_entity";
|
|
17
18
|
INVOICE_MATCHING_RECORD_INCLUDE["associated_pos"] = "associated_pos";
|
|
19
|
+
INVOICE_MATCHING_RECORD_INCLUDE["referencing_mrns"] = "referencing_mrns";
|
|
18
20
|
INVOICE_MATCHING_RECORD_INCLUDE["items"] = "items";
|
|
19
21
|
INVOICE_MATCHING_RECORD_INCLUDE["qa_approval_chain"] = "qa_approval_chain";
|
|
20
22
|
INVOICE_MATCHING_RECORD_INCLUDE["audit_approval_chain"] = "audit_approval_chain";
|
|
@@ -114,7 +114,10 @@ export declare enum PO_INCLUDE {
|
|
|
114
114
|
amended_po_items = "amended_po_items",
|
|
115
115
|
sub_pos = "sub_pos",
|
|
116
116
|
vendor_quote_item_associations = "vendor_quote_item_associations",
|
|
117
|
-
associated_imrs = "associated_imrs"
|
|
117
|
+
associated_imrs = "associated_imrs",
|
|
118
|
+
child_asns = "child_asns",
|
|
119
|
+
referenced_in_ves = "referenced_in_ves",
|
|
120
|
+
child_grns = "child_grns"
|
|
118
121
|
}
|
|
119
122
|
export interface IPOBaseFilters {
|
|
120
123
|
name?: string;
|
|
@@ -215,21 +218,23 @@ export interface IPurchaseOrder {
|
|
|
215
218
|
least_purchase_price_items: INestedItem[] | null;
|
|
216
219
|
previous_purchase_price_items: INestedItem[] | null;
|
|
217
220
|
directly_created_grns: INestedGRN[] | null;
|
|
221
|
+
child_grns: INestedGRN[] | null;
|
|
222
|
+
referenced_in_grns: INestedGRN[] | null;
|
|
218
223
|
po_grn_items_junctions: INestedPOGRNItemJunction[] | null;
|
|
219
224
|
child_ves: INestedVES[] | null;
|
|
220
225
|
tnc: INestedTermsAndConditions | null;
|
|
221
226
|
pt: INestedPo | null;
|
|
222
227
|
closed_early_by_user: INestedUser | null;
|
|
223
228
|
child_mrns: INestedMRN[] | null;
|
|
224
|
-
referenced_in_grns: INestedGRN[] | null;
|
|
225
229
|
accepted_rejected_by_vendor_user: INestedVendorUser | null;
|
|
226
230
|
sub_pos: INestedSubPO[] | null;
|
|
227
231
|
vendor_quote_item_associations: INestedPOAssociationWithVendorQuoteItem[] | null;
|
|
228
232
|
supplier_invoices: INestedSupplierInvoice[] | null;
|
|
229
233
|
associated_imrs: INestedInvoiceMatchingRecord[] | null;
|
|
234
|
+
referenced_in_ves: INestedVES[] | null;
|
|
230
235
|
metafields: IPOMetafields | null;
|
|
231
236
|
}
|
|
232
|
-
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" | "supplier_invoices" | "po_grn_items_junctions" | "directly_created_grns" | "child_ves" | "tnc" | "closed_early_by_user" | "child_mrns" | "referenced_in_grns" | "accepted_rejected_by_vendor_user" | "amended_po_items" | "sub_pos" | "vendor_quote_item_associations" | "supplier_invoices" | "associated_imrs" | "metafields"> {
|
|
237
|
+
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" | "supplier_invoices" | "po_grn_items_junctions" | "directly_created_grns" | "child_ves" | "tnc" | "closed_early_by_user" | "child_mrns" | "referenced_in_grns" | "accepted_rejected_by_vendor_user" | "amended_po_items" | "sub_pos" | "vendor_quote_item_associations" | "supplier_invoices" | "associated_imrs" | "referenced_in_ves" | "child_grns" | "metafields"> {
|
|
233
238
|
}
|
|
234
239
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
235
240
|
id: string;
|
|
@@ -90,6 +90,9 @@ var PO_INCLUDE;
|
|
|
90
90
|
PO_INCLUDE["sub_pos"] = "sub_pos";
|
|
91
91
|
PO_INCLUDE["vendor_quote_item_associations"] = "vendor_quote_item_associations";
|
|
92
92
|
PO_INCLUDE["associated_imrs"] = "associated_imrs";
|
|
93
|
+
PO_INCLUDE["child_asns"] = "child_asns";
|
|
94
|
+
PO_INCLUDE["referenced_in_ves"] = "referenced_in_ves";
|
|
95
|
+
PO_INCLUDE["child_grns"] = "child_grns";
|
|
93
96
|
})(PO_INCLUDE || (exports.PO_INCLUDE = PO_INCLUDE = {}));
|
|
94
97
|
var PO_ITEM_INCLUDE;
|
|
95
98
|
(function (PO_ITEM_INCLUDE) {
|
|
@@ -13,13 +13,16 @@ import { INestedVESItem } from "./vesItem.typings";
|
|
|
13
13
|
import { INestedItem } from "../../item.typings";
|
|
14
14
|
import { IOpenApprovalsBase } from "../../common/openApprovals.typings";
|
|
15
15
|
import { INestedEntityApprovalChainEntryLog } from "../../entityApprovalChainEntryLog.typings";
|
|
16
|
+
import { INestedSupplierInvoice } from "../../supplierInvoice.typings";
|
|
17
|
+
import { ISupplierInvoice } from "../../supplierInvoice.typings";
|
|
16
18
|
export declare enum VES_REQUESTING_ENTITY_TYPE {
|
|
17
19
|
STORE_LOCATION = "store_location",
|
|
18
20
|
CHECKPOINT = "checkpoint"
|
|
19
21
|
}
|
|
20
22
|
export declare enum VES_PARENT_DOCUMENT_TYPE {
|
|
21
23
|
ASN = "ASN",
|
|
22
|
-
PO = "PO"
|
|
24
|
+
PO = "PO",
|
|
25
|
+
SUPPLIER_INVOICE = "SUPPLIER_INVOICE"
|
|
23
26
|
}
|
|
24
27
|
export declare enum VES_VIEW_TABS {
|
|
25
28
|
ITEMS = "ITEMS",
|
|
@@ -49,7 +52,9 @@ export declare enum VES_INCLUDE {
|
|
|
49
52
|
store_location_approval_chain = "store_location_approval_chain",
|
|
50
53
|
take_on_approval_by_user = "take_on_approval_by_user",
|
|
51
54
|
checkpoint_trail = "checkpoint_trail",
|
|
52
|
-
child_grns = "child_grns"
|
|
55
|
+
child_grns = "child_grns",
|
|
56
|
+
parent_pos = "parent_pos",
|
|
57
|
+
associated_supplier_invoice = "associated_supplier_invoice"
|
|
53
58
|
}
|
|
54
59
|
export interface IVESFilters {
|
|
55
60
|
ves_requesting_entity_type: VES_REQUESTING_ENTITY_TYPE;
|
|
@@ -78,6 +83,7 @@ export interface IVES {
|
|
|
78
83
|
directed_to_checkpoint_id: string;
|
|
79
84
|
parent_po_id: string | null;
|
|
80
85
|
parent_asn_id: string | null;
|
|
86
|
+
associated_supplier_invoice_id: string | null;
|
|
81
87
|
status: VES_STATUS;
|
|
82
88
|
qr_code_substitute: string;
|
|
83
89
|
remarks: string | null;
|
|
@@ -104,17 +110,20 @@ export interface IVES {
|
|
|
104
110
|
directed_to_checkpoint: INestedCheckpoint | null;
|
|
105
111
|
parent_po: INestedPo | null;
|
|
106
112
|
parent_asn: INestedASN | null;
|
|
113
|
+
associated_supplier_invoice: INestedSupplierInvoice | null;
|
|
107
114
|
items: INestedVESItem[] | null;
|
|
108
115
|
store_location_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
109
116
|
checkpoint_trail: INestedVESCheckpointTracking[] | null;
|
|
110
117
|
child_grns: IGRN[] | null;
|
|
118
|
+
parent_pos: IPurchaseOrder[] | null;
|
|
111
119
|
metafields: IVESMetafields | null;
|
|
112
120
|
}
|
|
113
|
-
export interface INestedVES extends Omit<IVES, "company" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "cancelled_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "items" | "store_location_approval_chain" | "checkpoint_trail" | "child_grns" | "metafields"> {
|
|
121
|
+
export interface INestedVES extends Omit<IVES, "company" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "cancelled_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "associated_supplier_invoice" | "items" | "store_location_approval_chain" | "checkpoint_trail" | "child_grns" | "parent_pos" | "metafields"> {
|
|
114
122
|
}
|
|
115
123
|
export interface IFetchDocumentForVESByDocumentNoResponse {
|
|
116
124
|
poData: IPurchaseOrder | null;
|
|
117
125
|
asnData: IASN | null;
|
|
126
|
+
supplierInvoiceData: ISupplierInvoice | null;
|
|
118
127
|
document_type: VES_PARENT_DOCUMENT_TYPE;
|
|
119
128
|
}
|
|
120
129
|
export declare enum VES_METAFIELDS_INCLUDE {
|
|
@@ -10,6 +10,7 @@ var VES_PARENT_DOCUMENT_TYPE;
|
|
|
10
10
|
(function (VES_PARENT_DOCUMENT_TYPE) {
|
|
11
11
|
VES_PARENT_DOCUMENT_TYPE["ASN"] = "ASN";
|
|
12
12
|
VES_PARENT_DOCUMENT_TYPE["PO"] = "PO";
|
|
13
|
+
VES_PARENT_DOCUMENT_TYPE["SUPPLIER_INVOICE"] = "SUPPLIER_INVOICE";
|
|
13
14
|
})(VES_PARENT_DOCUMENT_TYPE || (exports.VES_PARENT_DOCUMENT_TYPE = VES_PARENT_DOCUMENT_TYPE = {}));
|
|
14
15
|
var VES_VIEW_TABS;
|
|
15
16
|
(function (VES_VIEW_TABS) {
|
|
@@ -43,6 +44,8 @@ var VES_INCLUDE;
|
|
|
43
44
|
VES_INCLUDE["take_on_approval_by_user"] = "take_on_approval_by_user";
|
|
44
45
|
VES_INCLUDE["checkpoint_trail"] = "checkpoint_trail";
|
|
45
46
|
VES_INCLUDE["child_grns"] = "child_grns";
|
|
47
|
+
VES_INCLUDE["parent_pos"] = "parent_pos";
|
|
48
|
+
VES_INCLUDE["associated_supplier_invoice"] = "associated_supplier_invoice";
|
|
46
49
|
})(VES_INCLUDE || (exports.VES_INCLUDE = VES_INCLUDE = {}));
|
|
47
50
|
// Typings for VES Metafields Include
|
|
48
51
|
var VES_METAFIELDS_INCLUDE;
|
|
@@ -29,10 +29,14 @@ export declare enum GRN_TABS {
|
|
|
29
29
|
LOGS = "LOGS"
|
|
30
30
|
}
|
|
31
31
|
export declare enum GRN_PARENT_DOC_TYPE {
|
|
32
|
+
/** @deprecated GI can no longer be created directly from an ASN. Kept for reading legacy GIs. */
|
|
32
33
|
ASN = "ASN",
|
|
34
|
+
/** @deprecated GI can no longer be created directly from an ISTD. Kept for reading legacy GIs. */
|
|
33
35
|
ISTD = "ISTD",
|
|
36
|
+
/** @deprecated GI can no longer be created directly from a PO. Kept for reading legacy GIs. */
|
|
34
37
|
PO = "PO",
|
|
35
|
-
VES = "VES"
|
|
38
|
+
VES = "VES",
|
|
39
|
+
SUPPLIER_INVOICE = "SUPPLIER_INVOICE"
|
|
36
40
|
}
|
|
37
41
|
export declare enum GRN_INCLUDE {
|
|
38
42
|
company = "company",
|
|
@@ -50,7 +54,7 @@ export declare enum GRN_INCLUDE {
|
|
|
50
54
|
sent_for_approval_by = "sent_for_approval_by",
|
|
51
55
|
sent_to_store_by = "sent_to_store_by",
|
|
52
56
|
child_mrns = "child_mrns",
|
|
53
|
-
|
|
57
|
+
referenced_pos = "referenced_pos",
|
|
54
58
|
associated_supplier_invoice = "associated_supplier_invoice",
|
|
55
59
|
quality_clearance_documents = "quality_clearance_documents"
|
|
56
60
|
}
|
|
@@ -133,11 +137,12 @@ export interface IGRN {
|
|
|
133
137
|
parent_po: INestedPo | null;
|
|
134
138
|
parent_ves: INestedVES | null;
|
|
135
139
|
referenced_po: INestedPo | null;
|
|
140
|
+
referenced_pos: INestedPo[] | null;
|
|
136
141
|
metafields: IGRNMetafields | null;
|
|
137
142
|
quality_clearance_documents: INestedQualityClearanceDocument[] | null;
|
|
138
143
|
associated_supplier_invoice: INestedSupplierInvoice | null;
|
|
139
144
|
}
|
|
140
|
-
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" | "parent_ves" | "referenced_po" | "metafields" | "associated_supplier_invoice" | "quality_clearance_documents"> {
|
|
145
|
+
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" | "parent_ves" | "referenced_po" | "referenced_pos" | "metafields" | "associated_supplier_invoice" | "quality_clearance_documents"> {
|
|
141
146
|
}
|
|
142
147
|
export declare enum GRN_ITEM_INCLUDE {
|
|
143
148
|
company = "company",
|
|
@@ -194,6 +199,7 @@ export interface IFetchParentDocumentForGRNResponse {
|
|
|
194
199
|
po_data: INestedPo | null;
|
|
195
200
|
istd_data: INestedISTD | null;
|
|
196
201
|
ves_data: INestedVES | null;
|
|
202
|
+
supplier_invoice_data: INestedSupplierInvoice | null;
|
|
197
203
|
}
|
|
198
204
|
export interface IGRNMetafields {
|
|
199
205
|
items_data: INestedItem[] | null;
|
|
@@ -17,10 +17,14 @@ var GRN_TABS;
|
|
|
17
17
|
})(GRN_TABS || (exports.GRN_TABS = GRN_TABS = {}));
|
|
18
18
|
var GRN_PARENT_DOC_TYPE;
|
|
19
19
|
(function (GRN_PARENT_DOC_TYPE) {
|
|
20
|
+
/** @deprecated GI can no longer be created directly from an ASN. Kept for reading legacy GIs. */
|
|
20
21
|
GRN_PARENT_DOC_TYPE["ASN"] = "ASN";
|
|
22
|
+
/** @deprecated GI can no longer be created directly from an ISTD. Kept for reading legacy GIs. */
|
|
21
23
|
GRN_PARENT_DOC_TYPE["ISTD"] = "ISTD";
|
|
24
|
+
/** @deprecated GI can no longer be created directly from a PO. Kept for reading legacy GIs. */
|
|
22
25
|
GRN_PARENT_DOC_TYPE["PO"] = "PO";
|
|
23
26
|
GRN_PARENT_DOC_TYPE["VES"] = "VES";
|
|
27
|
+
GRN_PARENT_DOC_TYPE["SUPPLIER_INVOICE"] = "SUPPLIER_INVOICE";
|
|
24
28
|
})(GRN_PARENT_DOC_TYPE || (exports.GRN_PARENT_DOC_TYPE = GRN_PARENT_DOC_TYPE = {}));
|
|
25
29
|
var GRN_INCLUDE;
|
|
26
30
|
(function (GRN_INCLUDE) {
|
|
@@ -39,7 +43,7 @@ var GRN_INCLUDE;
|
|
|
39
43
|
GRN_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
|
|
40
44
|
GRN_INCLUDE["sent_to_store_by"] = "sent_to_store_by";
|
|
41
45
|
GRN_INCLUDE["child_mrns"] = "child_mrns";
|
|
42
|
-
GRN_INCLUDE["
|
|
46
|
+
GRN_INCLUDE["referenced_pos"] = "referenced_pos";
|
|
43
47
|
GRN_INCLUDE["associated_supplier_invoice"] = "associated_supplier_invoice";
|
|
44
48
|
GRN_INCLUDE["quality_clearance_documents"] = "quality_clearance_documents";
|
|
45
49
|
})(GRN_INCLUDE || (exports.GRN_INCLUDE = GRN_INCLUDE = {}));
|
|
@@ -9,4 +9,7 @@ export interface IVendorOnboardingKPIResponse {
|
|
|
9
9
|
company_vendors_pending_onboarding: number;
|
|
10
10
|
company_vendors_onboarded_not_synced: number;
|
|
11
11
|
company_vendors_approved_with_sap_code: number;
|
|
12
|
+
total_initiated: number;
|
|
13
|
+
total_pending: number;
|
|
14
|
+
total_cancelled: number;
|
|
12
15
|
}
|
|
@@ -3,7 +3,7 @@ import { INestedCompany } from "./company.typings";
|
|
|
3
3
|
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
4
4
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
5
5
|
import { INestedISTDItem } from "./company/istd/istdItems.typings";
|
|
6
|
-
import { INestedInvoiceItemRecordItem } from "./company/masters/imr.typings";
|
|
6
|
+
import { INestedInvoiceItemRecordItem, INestedInvoiceMatchingRecord } from "./company/masters/imr.typings";
|
|
7
7
|
import { INestedPo, INestedPOItem } from "./company/masters/po.typings";
|
|
8
8
|
import { INestedDepartment } from "./department.typings";
|
|
9
9
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
@@ -39,8 +39,13 @@ export declare enum MRN_TABS {
|
|
|
39
39
|
}
|
|
40
40
|
export declare enum MRN_PARENT_DOC_TYPE {
|
|
41
41
|
GRN = "GRN",
|
|
42
|
+
/** @deprecated MRN can no longer be created directly from an ST (ISTD). Kept for reading legacy MRNs. */
|
|
42
43
|
ISTD = "ISTD"
|
|
43
44
|
}
|
|
45
|
+
export declare enum MRN_CREATION_MODE {
|
|
46
|
+
SINGLE = "SINGLE",
|
|
47
|
+
SPLIT_BY_PO = "SPLIT_BY_PO"
|
|
48
|
+
}
|
|
44
49
|
export interface IMRNFilters {
|
|
45
50
|
name?: string;
|
|
46
51
|
list_type?: MRN_LIST_TYPES;
|
|
@@ -65,11 +70,15 @@ export declare enum MRN_INCLUDE {
|
|
|
65
70
|
items = "items",
|
|
66
71
|
parent_istd = "parent_istd",
|
|
67
72
|
inventory_logs = "inventory_logs",
|
|
73
|
+
/** @deprecated use referenced_pos instead */
|
|
68
74
|
parent_po = "parent_po",
|
|
75
|
+
referenced_pos = "referenced_pos",
|
|
69
76
|
resolved_by_user = "resolved_by_user",
|
|
70
77
|
resolved_by_sub_po = "resolved_by_sub_po",
|
|
71
78
|
associated_supplier_invoice = "associated_supplier_invoice",
|
|
72
|
-
|
|
79
|
+
/** @deprecated use referencing_imr instead */
|
|
80
|
+
associated_imr = "associated_imr",
|
|
81
|
+
referencing_imr = "referencing_imr"
|
|
73
82
|
}
|
|
74
83
|
export declare enum MRN_STATUS {
|
|
75
84
|
DRAFT = "DRAFT",
|
|
@@ -97,6 +106,7 @@ export interface IMRN {
|
|
|
97
106
|
remark: string | null;
|
|
98
107
|
send_for_approval_at: string | null;
|
|
99
108
|
sent_for_approval_by_id: string | null;
|
|
109
|
+
referencing_imr_id: string | null;
|
|
100
110
|
resolved_by_sub_po_id: string | null;
|
|
101
111
|
parent_po_id: string | null;
|
|
102
112
|
has_disputes: boolean;
|
|
@@ -120,12 +130,14 @@ export interface IMRN {
|
|
|
120
130
|
parent_istd: INestedISTD | null;
|
|
121
131
|
inventory_logs: INestedInventoryLog[] | null;
|
|
122
132
|
parent_po: INestedPo | null;
|
|
133
|
+
referenced_pos: INestedPo[] | null;
|
|
123
134
|
resolved_by_user: INestedUser | null;
|
|
124
135
|
resolved_by_sub_po: INestedSubPO[] | null;
|
|
125
136
|
associated_supplier_invoice: INestedSupplierInvoice | null;
|
|
137
|
+
referencing_imr: INestedInvoiceMatchingRecord | null;
|
|
126
138
|
metafields: IMRNMetafields | null;
|
|
127
139
|
}
|
|
128
|
-
export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items" | "parent_istd" | "inventory_logs" | "parent_po" | "resolved_by_user" | "resolved_by_sub_po" | "associated_supplier_invoice" | "associated_imr_item" | "metafields"> {
|
|
140
|
+
export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items" | "parent_istd" | "inventory_logs" | "parent_po" | "referenced_pos" | "resolved_by_user" | "resolved_by_sub_po" | "associated_supplier_invoice" | "associated_imr_item" | "referencing_imr" | "metafields"> {
|
|
129
141
|
}
|
|
130
142
|
export declare enum MRN_ITEM_INCLUDE {
|
|
131
143
|
parent_mrn = "parent_mrn",
|
|
@@ -200,8 +212,7 @@ export interface IMRNItemUpperboundResponse {
|
|
|
200
212
|
data: IMRNItemUpperboundData[];
|
|
201
213
|
}
|
|
202
214
|
export interface IResolveDisputedMRNInputs extends Pick<IMRNFilters, "include"> {
|
|
203
|
-
|
|
204
|
-
target_mrn_ids: string[];
|
|
215
|
+
mrn_id: string;
|
|
205
216
|
/** @description This field is required if the MRN Resolution for company is set to USER_DECIDED_RESOLUTION */
|
|
206
217
|
resolution_method: ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD | null;
|
|
207
218
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MRN_METAFIELDS_INCLUDE = exports.MRN_ITEM_INCLUDE = exports.MRN_STATUS = exports.MRN_INCLUDE = exports.MRN_PARENT_DOC_TYPE = exports.MRN_TABS = exports.MRN_LIST_TYPES = exports.ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD = exports.DISPUTED_MRN_RESOLUTION_METHODS = exports.MRN_DISPUTE_STATUS = void 0;
|
|
3
|
+
exports.MRN_METAFIELDS_INCLUDE = exports.MRN_ITEM_INCLUDE = exports.MRN_STATUS = exports.MRN_INCLUDE = exports.MRN_CREATION_MODE = exports.MRN_PARENT_DOC_TYPE = exports.MRN_TABS = exports.MRN_LIST_TYPES = exports.ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD = exports.DISPUTED_MRN_RESOLUTION_METHODS = exports.MRN_DISPUTE_STATUS = void 0;
|
|
4
4
|
var MRN_DISPUTE_STATUS;
|
|
5
5
|
(function (MRN_DISPUTE_STATUS) {
|
|
6
6
|
MRN_DISPUTE_STATUS["IN_DISPUTE"] = "IN_DISPUTE";
|
|
@@ -32,8 +32,14 @@ var MRN_TABS;
|
|
|
32
32
|
var MRN_PARENT_DOC_TYPE;
|
|
33
33
|
(function (MRN_PARENT_DOC_TYPE) {
|
|
34
34
|
MRN_PARENT_DOC_TYPE["GRN"] = "GRN";
|
|
35
|
+
/** @deprecated MRN can no longer be created directly from an ST (ISTD). Kept for reading legacy MRNs. */
|
|
35
36
|
MRN_PARENT_DOC_TYPE["ISTD"] = "ISTD";
|
|
36
37
|
})(MRN_PARENT_DOC_TYPE || (exports.MRN_PARENT_DOC_TYPE = MRN_PARENT_DOC_TYPE = {}));
|
|
38
|
+
var MRN_CREATION_MODE;
|
|
39
|
+
(function (MRN_CREATION_MODE) {
|
|
40
|
+
MRN_CREATION_MODE["SINGLE"] = "SINGLE";
|
|
41
|
+
MRN_CREATION_MODE["SPLIT_BY_PO"] = "SPLIT_BY_PO";
|
|
42
|
+
})(MRN_CREATION_MODE || (exports.MRN_CREATION_MODE = MRN_CREATION_MODE = {}));
|
|
37
43
|
var MRN_INCLUDE;
|
|
38
44
|
(function (MRN_INCLUDE) {
|
|
39
45
|
MRN_INCLUDE["company"] = "company";
|
|
@@ -46,11 +52,15 @@ var MRN_INCLUDE;
|
|
|
46
52
|
MRN_INCLUDE["items"] = "items";
|
|
47
53
|
MRN_INCLUDE["parent_istd"] = "parent_istd";
|
|
48
54
|
MRN_INCLUDE["inventory_logs"] = "inventory_logs";
|
|
55
|
+
/** @deprecated use referenced_pos instead */
|
|
49
56
|
MRN_INCLUDE["parent_po"] = "parent_po";
|
|
57
|
+
MRN_INCLUDE["referenced_pos"] = "referenced_pos";
|
|
50
58
|
MRN_INCLUDE["resolved_by_user"] = "resolved_by_user";
|
|
51
59
|
MRN_INCLUDE["resolved_by_sub_po"] = "resolved_by_sub_po";
|
|
52
60
|
MRN_INCLUDE["associated_supplier_invoice"] = "associated_supplier_invoice";
|
|
61
|
+
/** @deprecated use referencing_imr instead */
|
|
53
62
|
MRN_INCLUDE["associated_imr"] = "associated_imr";
|
|
63
|
+
MRN_INCLUDE["referencing_imr"] = "referencing_imr";
|
|
54
64
|
})(MRN_INCLUDE || (exports.MRN_INCLUDE = MRN_INCLUDE = {}));
|
|
55
65
|
var MRN_STATUS;
|
|
56
66
|
(function (MRN_STATUS) {
|
|
@@ -112,13 +112,15 @@ export declare enum SUPPLIER_INVOICE_INCLUDE {
|
|
|
112
112
|
invoice_items = "invoice_items",
|
|
113
113
|
parent_pos = "parent_pos",
|
|
114
114
|
associated_grn = "associated_grn",
|
|
115
|
+
associated_ves = "associated_ves",
|
|
115
116
|
associated_mrn = "associated_mrn",
|
|
116
117
|
associated_imr = "associated_imr"
|
|
117
118
|
}
|
|
118
119
|
export declare enum SUPPLIER_INVOICE_ITEM_INCLUDE {
|
|
119
120
|
invoice = "invoice",
|
|
120
121
|
parent_po_item = "parent_po_item",
|
|
121
|
-
custom_uom = "custom_uom"
|
|
122
|
+
custom_uom = "custom_uom",
|
|
123
|
+
associated_imr_item = "associated_imr_item"
|
|
122
124
|
}
|
|
123
125
|
export interface ISupplierInvoiceItem {
|
|
124
126
|
id: string;
|
|
@@ -22,6 +22,7 @@ var SUPPLIER_INVOICE_INCLUDE;
|
|
|
22
22
|
SUPPLIER_INVOICE_INCLUDE["invoice_items"] = "invoice_items";
|
|
23
23
|
SUPPLIER_INVOICE_INCLUDE["parent_pos"] = "parent_pos";
|
|
24
24
|
SUPPLIER_INVOICE_INCLUDE["associated_grn"] = "associated_grn";
|
|
25
|
+
SUPPLIER_INVOICE_INCLUDE["associated_ves"] = "associated_ves";
|
|
25
26
|
SUPPLIER_INVOICE_INCLUDE["associated_mrn"] = "associated_mrn";
|
|
26
27
|
SUPPLIER_INVOICE_INCLUDE["associated_imr"] = "associated_imr";
|
|
27
28
|
})(SUPPLIER_INVOICE_INCLUDE || (exports.SUPPLIER_INVOICE_INCLUDE = SUPPLIER_INVOICE_INCLUDE = {}));
|
|
@@ -30,6 +31,7 @@ var SUPPLIER_INVOICE_ITEM_INCLUDE;
|
|
|
30
31
|
SUPPLIER_INVOICE_ITEM_INCLUDE["invoice"] = "invoice";
|
|
31
32
|
SUPPLIER_INVOICE_ITEM_INCLUDE["parent_po_item"] = "parent_po_item";
|
|
32
33
|
SUPPLIER_INVOICE_ITEM_INCLUDE["custom_uom"] = "custom_uom";
|
|
34
|
+
SUPPLIER_INVOICE_ITEM_INCLUDE["associated_imr_item"] = "associated_imr_item";
|
|
33
35
|
})(SUPPLIER_INVOICE_ITEM_INCLUDE || (exports.SUPPLIER_INVOICE_ITEM_INCLUDE = SUPPLIER_INVOICE_ITEM_INCLUDE = {}));
|
|
34
36
|
var SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS;
|
|
35
37
|
(function (SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS) {
|