kcommons 18.6.3 → 18.7.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 -0
- package/build/classes/asnWrapper.class.js +4 -1
- package/build/constants/companyRoutes.constants.d.ts +42 -0
- package/build/constants/companyRoutes.constants.js +42 -0
- package/build/constants/entityTypes.constants.d.ts +4 -1
- package/build/constants/entityTypes.constants.js +3 -0
- package/build/constants/permission.constants.d.ts +16 -3
- package/build/constants/permission.constants.js +45 -4
- package/build/constants/statuses.constants.d.ts +3 -0
- package/build/constants/statuses.constants.js +3 -0
- package/build/index.d.ts +6 -0
- package/build/index.js +6 -0
- package/build/typings/accountsLocation.typings.d.ts +48 -0
- package/build/typings/accountsLocation.typings.js +13 -0
- package/build/typings/approvalConfig.typings.d.ts +15 -3
- package/build/typings/approvalConfig.typings.js +3 -0
- package/build/typings/asn.typings.d.ts +6 -3
- package/build/typings/asn.typings.js +2 -1
- package/build/typings/audits.typings.d.ts +45 -0
- package/build/typings/audits.typings.js +12 -0
- package/build/typings/company/masters/imr.typings.d.ts +116 -0
- package/build/typings/company/masters/imr.typings.js +45 -0
- package/build/typings/company/masters/po.typings.d.ts +32 -10
- package/build/typings/company/masters/po.typings.js +10 -1
- package/build/typings/company/masters/poGrnJunctionItems.typings.d.ts +6 -3
- package/build/typings/company/masters/poGrnJunctionItems.typings.js +1 -0
- package/build/typings/company/masters/vesItem.typings.d.ts +6 -2
- package/build/typings/company/masters/vesItem.typings.js +1 -0
- package/build/typings/company.typings.d.ts +17 -2
- package/build/typings/company.typings.js +5 -1
- package/build/typings/companyVendors.typings.d.ts +4 -1
- package/build/typings/companyVendors.typings.js +1 -0
- package/build/typings/department.typings.d.ts +15 -3
- package/build/typings/department.typings.js +3 -0
- package/build/typings/entityApprovalChainEntry.typings.d.ts +20 -3
- package/build/typings/entityApprovalChainEntry.typings.js +7 -0
- package/build/typings/grn.typings.d.ts +19 -5
- package/build/typings/grn.typings.js +4 -0
- package/build/typings/item.typings.d.ts +1 -0
- package/build/typings/mrn.typings.d.ts +17 -6
- package/build/typings/mrn.typings.js +5 -0
- package/build/typings/qcd.typings.d.ts +100 -0
- package/build/typings/qcd.typings.js +37 -0
- package/build/typings/qualityAssessment.typings.d.ts +48 -0
- package/build/typings/qualityAssessment.typings.js +13 -0
- package/build/typings/roles.typings.d.ts +15 -3
- package/build/typings/roles.typings.js +3 -0
- package/build/typings/storeLocation.typings.d.ts +11 -2
- package/build/typings/storeLocation.typings.js +3 -0
- package/build/typings/supplierInvoice.typings.d.ts +131 -0
- package/build/typings/supplierInvoice.typings.js +40 -0
- package/build/typings/user.typings.d.ts +27 -2
- package/build/typings/user.typings.js +9 -2
- package/build/typings/vendor/vendorUser.typings.d.ts +5 -2
- package/build/typings/vendor/vendorUser.typings.js +1 -0
- package/build/typings/vendor.typings.d.ts +5 -2
- package/build/typings/vendor.typings.js +1 -0
- package/package.json +1 -1
|
@@ -5,6 +5,8 @@ import { INestedPOGRNItemJunction } from "../typings/company/masters/poGrnJuncti
|
|
|
5
5
|
import { INestedEwaybill } from "../typings/common/ulip/ewaybill.typings";
|
|
6
6
|
export declare class ASNItemWrapper implements IASNItem {
|
|
7
7
|
constructor(partial: IASNItem);
|
|
8
|
+
parent_po_item_id: string;
|
|
9
|
+
parent_po_item?: INestedPOItem | null | undefined;
|
|
8
10
|
po_asn_item_junction_id: string;
|
|
9
11
|
po_asn_item_junction: null;
|
|
10
12
|
id: string;
|
|
@@ -5,6 +5,7 @@ exports.convertPOItemToASNItem = convertPOItemToASNItem;
|
|
|
5
5
|
const uuid_1 = require("uuid");
|
|
6
6
|
class ASNItemWrapper {
|
|
7
7
|
constructor(partial) {
|
|
8
|
+
this.parent_po_item_id = "";
|
|
8
9
|
this.po_asn_item_junction_id = "";
|
|
9
10
|
this.po_asn_item_junction = null;
|
|
10
11
|
this.id = "";
|
|
@@ -40,7 +41,7 @@ function convertPOItemToASNItem(poItem, vendor_id, poGRNItemJunction = []) {
|
|
|
40
41
|
return new ASNItemWrapper({
|
|
41
42
|
id: (0, uuid_1.v4)(),
|
|
42
43
|
parent_asn_id: "",
|
|
43
|
-
dispatched_quantity: ((_a = poGRNItemJunction === null || poGRNItemJunction === void 0 ? void 0 : poGRNItemJunction.find((ele) => ele.
|
|
44
|
+
dispatched_quantity: ((_a = poGRNItemJunction === null || poGRNItemJunction === void 0 ? void 0 : poGRNItemJunction.find((ele) => ele.parent_po_item_id === (poItem === null || poItem === void 0 ? void 0 : poItem.id))) === null || _a === void 0 ? void 0 : _a.pending_quantity) || 0,
|
|
44
45
|
delivered_quantity: 0,
|
|
45
46
|
vendor_id: vendor_id || "",
|
|
46
47
|
// po_item_id: item.id,
|
|
@@ -62,5 +63,7 @@ function convertPOItemToASNItem(poItem, vendor_id, poGRNItemJunction = []) {
|
|
|
62
63
|
po_asn_item_junction: null,
|
|
63
64
|
vendor: null,
|
|
64
65
|
used_in_grn_items: null,
|
|
66
|
+
parent_po_item_id: (poItem === null || poItem === void 0 ? void 0 : poItem.id) || "",
|
|
67
|
+
parent_po_item: null,
|
|
65
68
|
});
|
|
66
69
|
}
|
|
@@ -244,6 +244,48 @@ export declare const companyNavConfig: {
|
|
|
244
244
|
id: COMPANY_ROUTE_IDS;
|
|
245
245
|
};
|
|
246
246
|
};
|
|
247
|
+
quality_assessment_location: {
|
|
248
|
+
list: {
|
|
249
|
+
route: string;
|
|
250
|
+
};
|
|
251
|
+
add: {
|
|
252
|
+
route: string;
|
|
253
|
+
};
|
|
254
|
+
edit: {
|
|
255
|
+
route: string;
|
|
256
|
+
};
|
|
257
|
+
view: {
|
|
258
|
+
route: (quality_assessment_location_id: string) => string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
account_location: {
|
|
262
|
+
list: {
|
|
263
|
+
route: string;
|
|
264
|
+
};
|
|
265
|
+
add: {
|
|
266
|
+
route: string;
|
|
267
|
+
};
|
|
268
|
+
edit: {
|
|
269
|
+
route: string;
|
|
270
|
+
};
|
|
271
|
+
view: {
|
|
272
|
+
route: (account_location_id: string) => string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
audits: {
|
|
276
|
+
list: {
|
|
277
|
+
route: string;
|
|
278
|
+
};
|
|
279
|
+
add: {
|
|
280
|
+
route: string;
|
|
281
|
+
};
|
|
282
|
+
edit: {
|
|
283
|
+
route: string;
|
|
284
|
+
};
|
|
285
|
+
view: {
|
|
286
|
+
route: (audit_id: string) => string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
247
289
|
departments: {
|
|
248
290
|
list: {
|
|
249
291
|
route: string;
|
|
@@ -244,6 +244,48 @@ exports.companyNavConfig = {
|
|
|
244
244
|
id: COMPANY_ROUTE_IDS.GTE_VIEW,
|
|
245
245
|
},
|
|
246
246
|
},
|
|
247
|
+
quality_assessment_location: {
|
|
248
|
+
list: {
|
|
249
|
+
route: `/company/quality_assessment_location`,
|
|
250
|
+
},
|
|
251
|
+
add: {
|
|
252
|
+
route: `/company/quality_assessment_location?mode=${form_constants_1.FORM_SUBMISSION_TYPES.CREATE}`,
|
|
253
|
+
},
|
|
254
|
+
edit: {
|
|
255
|
+
route: `/company/quality_assessment_location?mode=${form_constants_1.FORM_SUBMISSION_TYPES.EDIT}`,
|
|
256
|
+
},
|
|
257
|
+
view: {
|
|
258
|
+
route: (quality_assessment_location_id) => `/company/quality_assessment_location/${quality_assessment_location_id}`,
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
account_location: {
|
|
262
|
+
list: {
|
|
263
|
+
route: `/company/account_location`,
|
|
264
|
+
},
|
|
265
|
+
add: {
|
|
266
|
+
route: `/company/account_location?mode=${form_constants_1.FORM_SUBMISSION_TYPES.CREATE}`,
|
|
267
|
+
},
|
|
268
|
+
edit: {
|
|
269
|
+
route: `/company/account_location?mode=${form_constants_1.FORM_SUBMISSION_TYPES.EDIT}`,
|
|
270
|
+
},
|
|
271
|
+
view: {
|
|
272
|
+
route: (account_location_id) => `/company/account_location/${account_location_id}`,
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
audits: {
|
|
276
|
+
list: {
|
|
277
|
+
route: `/company/audits`,
|
|
278
|
+
},
|
|
279
|
+
add: {
|
|
280
|
+
route: `/company/audits?mode=${form_constants_1.FORM_SUBMISSION_TYPES.CREATE}`,
|
|
281
|
+
},
|
|
282
|
+
edit: {
|
|
283
|
+
route: `/company/audits?mode=${form_constants_1.FORM_SUBMISSION_TYPES.EDIT}`,
|
|
284
|
+
},
|
|
285
|
+
view: {
|
|
286
|
+
route: (audit_id) => `/company/audits/${audit_id}`,
|
|
287
|
+
},
|
|
288
|
+
},
|
|
247
289
|
departments: {
|
|
248
290
|
list: {
|
|
249
291
|
route: `/company/departments?route_id=${COMPANY_ROUTE_IDS.DEPT_LST}`,
|
|
@@ -6,5 +6,8 @@ export declare enum EntityTypes {
|
|
|
6
6
|
VENDOR_MANAGEMENT_BODY = "vendor_management_body",
|
|
7
7
|
ITEM_MANAGEMENT_BODY = "item_management_body",
|
|
8
8
|
CHECKPOINT = "checkpoint",
|
|
9
|
-
CUSTOMER_MANAGEMENT_BODY = "customer_management_body"
|
|
9
|
+
CUSTOMER_MANAGEMENT_BODY = "customer_management_body",
|
|
10
|
+
QUALITY_ASSESSMENT_LOCATION = "qa_location",
|
|
11
|
+
ACCOUNTS = "accounts",
|
|
12
|
+
AUDITS = "audits"
|
|
10
13
|
}
|
|
@@ -11,4 +11,7 @@ var EntityTypes;
|
|
|
11
11
|
EntityTypes["ITEM_MANAGEMENT_BODY"] = "item_management_body";
|
|
12
12
|
EntityTypes["CHECKPOINT"] = "checkpoint";
|
|
13
13
|
EntityTypes["CUSTOMER_MANAGEMENT_BODY"] = "customer_management_body";
|
|
14
|
+
EntityTypes["QUALITY_ASSESSMENT_LOCATION"] = "qa_location";
|
|
15
|
+
EntityTypes["ACCOUNTS"] = "accounts";
|
|
16
|
+
EntityTypes["AUDITS"] = "audits";
|
|
14
17
|
})(EntityTypes || (exports.EntityTypes = EntityTypes = {}));
|
|
@@ -6,7 +6,8 @@ export declare enum PERMISSION_ACTIONS {
|
|
|
6
6
|
STS = "send_to_store_perm",
|
|
7
7
|
SEND_QUESTIONS = "send_ques_perm",
|
|
8
8
|
INVITE = "invite_perm",
|
|
9
|
-
ONBOARDING = "onboarding_perm"
|
|
9
|
+
ONBOARDING = "onboarding_perm",
|
|
10
|
+
VERIFY = "verify_perm"
|
|
10
11
|
}
|
|
11
12
|
export declare enum DOCUMENTS {
|
|
12
13
|
INDENT = "INDENT",
|
|
@@ -20,7 +21,10 @@ export declare enum DOCUMENTS {
|
|
|
20
21
|
COMPARATIVE = "COMPARATIVE",
|
|
21
22
|
ISTD = "ISTD",
|
|
22
23
|
VES = "VES",
|
|
23
|
-
SUB_PO = "SUB_PO"
|
|
24
|
+
SUB_PO = "SUB_PO",
|
|
25
|
+
INVOICE_MATCHING_RECORD = "INVOICE_MATCHING_RECORD",
|
|
26
|
+
SUPPLIER_INVOICE = "SUPPLIER_INVOICE",
|
|
27
|
+
QUALITY_CLEARANCE_DOCUMENT = "QUALITY_CLEARANCE_DOCUMENT"
|
|
24
28
|
}
|
|
25
29
|
export declare enum PERMISSION_RESOURCES {
|
|
26
30
|
INDENT = "INDENT",
|
|
@@ -38,7 +42,10 @@ export declare enum PERMISSION_RESOURCES {
|
|
|
38
42
|
WAITLISTED_VENDORS = "WAITLISTED_VENDORS",
|
|
39
43
|
ITEMS = "ITEMS",
|
|
40
44
|
SUB_PO = "SUB_PO",
|
|
41
|
-
COMPANY_CUSTOMER = "COMPANY_CUSTOMER"
|
|
45
|
+
COMPANY_CUSTOMER = "COMPANY_CUSTOMER",
|
|
46
|
+
INVOICE_MATCHING_RECORD = "INVOICE_MATCHING_RECORD",
|
|
47
|
+
SUPPLIER_INVOICE = "SUPPLIER_INVOICE",
|
|
48
|
+
QUALITY_CLEARANCE_DOCUMENT = "QUALITY_CLEARANCE_DOCUMENT"
|
|
42
49
|
}
|
|
43
50
|
export declare enum RFQ_TO_PO_DOCUMENTS {
|
|
44
51
|
RFQ = "RFQ",
|
|
@@ -62,6 +69,9 @@ export declare const PERMISSION_CONFIG: {
|
|
|
62
69
|
ITEMS: PERMISSION_ACTIONS[];
|
|
63
70
|
VES: PERMISSION_ACTIONS[];
|
|
64
71
|
COMPANY_CUSTOMER: PERMISSION_ACTIONS[];
|
|
72
|
+
INVOICE_MATCHING_RECORD: PERMISSION_ACTIONS[];
|
|
73
|
+
QUALITY_CLEARANCE_DOCUMENT: PERMISSION_ACTIONS[];
|
|
74
|
+
SUPPLIER_INVOICE: PERMISSION_ACTIONS[];
|
|
65
75
|
};
|
|
66
76
|
export declare const EntitySpecificDocuments: {
|
|
67
77
|
gate: PERMISSION_RESOURCES[];
|
|
@@ -72,4 +82,7 @@ export declare const EntitySpecificDocuments: {
|
|
|
72
82
|
item_management_body: PERMISSION_RESOURCES[];
|
|
73
83
|
checkpoint: PERMISSION_RESOURCES[];
|
|
74
84
|
customer_management_body: PERMISSION_RESOURCES[];
|
|
85
|
+
qa_location: PERMISSION_RESOURCES[];
|
|
86
|
+
accounts: PERMISSION_RESOURCES[];
|
|
87
|
+
audits: PERMISSION_RESOURCES[];
|
|
75
88
|
};
|
|
@@ -13,6 +13,7 @@ var PERMISSION_ACTIONS;
|
|
|
13
13
|
PERMISSION_ACTIONS["SEND_QUESTIONS"] = "send_ques_perm";
|
|
14
14
|
PERMISSION_ACTIONS["INVITE"] = "invite_perm";
|
|
15
15
|
PERMISSION_ACTIONS["ONBOARDING"] = "onboarding_perm";
|
|
16
|
+
PERMISSION_ACTIONS["VERIFY"] = "verify_perm";
|
|
16
17
|
})(PERMISSION_ACTIONS || (exports.PERMISSION_ACTIONS = PERMISSION_ACTIONS = {}));
|
|
17
18
|
var DOCUMENTS;
|
|
18
19
|
(function (DOCUMENTS) {
|
|
@@ -28,6 +29,9 @@ var DOCUMENTS;
|
|
|
28
29
|
DOCUMENTS["ISTD"] = "ISTD";
|
|
29
30
|
DOCUMENTS["VES"] = "VES";
|
|
30
31
|
DOCUMENTS["SUB_PO"] = "SUB_PO";
|
|
32
|
+
DOCUMENTS["INVOICE_MATCHING_RECORD"] = "INVOICE_MATCHING_RECORD";
|
|
33
|
+
DOCUMENTS["SUPPLIER_INVOICE"] = "SUPPLIER_INVOICE";
|
|
34
|
+
DOCUMENTS["QUALITY_CLEARANCE_DOCUMENT"] = "QUALITY_CLEARANCE_DOCUMENT";
|
|
31
35
|
})(DOCUMENTS || (exports.DOCUMENTS = DOCUMENTS = {}));
|
|
32
36
|
var PERMISSION_RESOURCES;
|
|
33
37
|
(function (PERMISSION_RESOURCES) {
|
|
@@ -47,6 +51,9 @@ var PERMISSION_RESOURCES;
|
|
|
47
51
|
PERMISSION_RESOURCES["ITEMS"] = "ITEMS";
|
|
48
52
|
PERMISSION_RESOURCES["SUB_PO"] = "SUB_PO";
|
|
49
53
|
PERMISSION_RESOURCES["COMPANY_CUSTOMER"] = "COMPANY_CUSTOMER";
|
|
54
|
+
PERMISSION_RESOURCES["INVOICE_MATCHING_RECORD"] = "INVOICE_MATCHING_RECORD";
|
|
55
|
+
PERMISSION_RESOURCES["SUPPLIER_INVOICE"] = "SUPPLIER_INVOICE";
|
|
56
|
+
PERMISSION_RESOURCES["QUALITY_CLEARANCE_DOCUMENT"] = "QUALITY_CLEARANCE_DOCUMENT";
|
|
50
57
|
})(PERMISSION_RESOURCES || (exports.PERMISSION_RESOURCES = PERMISSION_RESOURCES = {}));
|
|
51
58
|
var RFQ_TO_PO_DOCUMENTS;
|
|
52
59
|
(function (RFQ_TO_PO_DOCUMENTS) {
|
|
@@ -143,9 +150,27 @@ exports.PERMISSION_CONFIG = {
|
|
|
143
150
|
PERMISSION_ACTIONS.ONBOARDING,
|
|
144
151
|
PERMISSION_ACTIONS.READ_ONLY,
|
|
145
152
|
],
|
|
153
|
+
[PERMISSION_RESOURCES.INVOICE_MATCHING_RECORD]: [
|
|
154
|
+
PERMISSION_ACTIONS.APPROVALS,
|
|
155
|
+
PERMISSION_ACTIONS.READ_ONLY,
|
|
156
|
+
],
|
|
157
|
+
[PERMISSION_RESOURCES.QUALITY_CLEARANCE_DOCUMENT]: [
|
|
158
|
+
PERMISSION_ACTIONS.CRUDSAC,
|
|
159
|
+
PERMISSION_ACTIONS.APPROVALS,
|
|
160
|
+
PERMISSION_ACTIONS.READ_ONLY,
|
|
161
|
+
],
|
|
162
|
+
[PERMISSION_RESOURCES.SUPPLIER_INVOICE]: [
|
|
163
|
+
PERMISSION_ACTIONS.CRUDSAC,
|
|
164
|
+
PERMISSION_ACTIONS.VERIFY,
|
|
165
|
+
PERMISSION_ACTIONS.READ_ONLY,
|
|
166
|
+
],
|
|
146
167
|
};
|
|
147
168
|
exports.EntitySpecificDocuments = {
|
|
148
|
-
[entityTypes_constants_1.EntityTypes.GATE]: [
|
|
169
|
+
[entityTypes_constants_1.EntityTypes.GATE]: [
|
|
170
|
+
PERMISSION_RESOURCES.GRN,
|
|
171
|
+
PERMISSION_RESOURCES.INDENT,
|
|
172
|
+
PERMISSION_RESOURCES.SUPPLIER_INVOICE,
|
|
173
|
+
],
|
|
149
174
|
[entityTypes_constants_1.EntityTypes.OFFICE]: [PERMISSION_RESOURCES.INDENT],
|
|
150
175
|
[entityTypes_constants_1.EntityTypes.STORE_LOCATION]: [
|
|
151
176
|
PERMISSION_RESOURCES.MRN,
|
|
@@ -155,16 +180,16 @@ exports.EntitySpecificDocuments = {
|
|
|
155
180
|
PERMISSION_RESOURCES.ISTD,
|
|
156
181
|
PERMISSION_RESOURCES.ASN,
|
|
157
182
|
PERMISSION_RESOURCES.VES,
|
|
158
|
-
|
|
183
|
+
PERMISSION_RESOURCES.SUPPLIER_INVOICE,
|
|
159
184
|
],
|
|
160
185
|
[entityTypes_constants_1.EntityTypes.PURCHASE_LOCATION]: [
|
|
161
186
|
PERMISSION_RESOURCES.RFQ,
|
|
162
|
-
// DOCUMENTS.RFP,
|
|
163
|
-
// DOCUMENTS.RFI,
|
|
164
187
|
PERMISSION_RESOURCES.PO,
|
|
165
188
|
PERMISSION_RESOURCES.SUB_PO,
|
|
166
189
|
PERMISSION_RESOURCES.INDENT,
|
|
167
190
|
PERMISSION_RESOURCES.COMPARATIVE,
|
|
191
|
+
PERMISSION_RESOURCES.INVOICE_MATCHING_RECORD,
|
|
192
|
+
PERMISSION_RESOURCES.SUPPLIER_INVOICE,
|
|
168
193
|
],
|
|
169
194
|
[entityTypes_constants_1.EntityTypes.VENDOR_MANAGEMENT_BODY]: [
|
|
170
195
|
PERMISSION_RESOURCES.VENDOR_ONBOARDING_REQUEST,
|
|
@@ -183,4 +208,20 @@ exports.EntitySpecificDocuments = {
|
|
|
183
208
|
PERMISSION_RESOURCES.COMPANY_CUSTOMER,
|
|
184
209
|
PERMISSION_RESOURCES.INDENT,
|
|
185
210
|
],
|
|
211
|
+
[entityTypes_constants_1.EntityTypes.QUALITY_ASSESSMENT_LOCATION]: [
|
|
212
|
+
PERMISSION_RESOURCES.INDENT,
|
|
213
|
+
PERMISSION_RESOURCES.INVOICE_MATCHING_RECORD,
|
|
214
|
+
PERMISSION_RESOURCES.QUALITY_CLEARANCE_DOCUMENT,
|
|
215
|
+
PERMISSION_RESOURCES.SUPPLIER_INVOICE,
|
|
216
|
+
],
|
|
217
|
+
[entityTypes_constants_1.EntityTypes.ACCOUNTS]: [
|
|
218
|
+
PERMISSION_RESOURCES.INVOICE_MATCHING_RECORD,
|
|
219
|
+
PERMISSION_RESOURCES.INDENT,
|
|
220
|
+
PERMISSION_RESOURCES.SUPPLIER_INVOICE,
|
|
221
|
+
],
|
|
222
|
+
[entityTypes_constants_1.EntityTypes.AUDITS]: [
|
|
223
|
+
PERMISSION_RESOURCES.INDENT,
|
|
224
|
+
PERMISSION_RESOURCES.INVOICE_MATCHING_RECORD,
|
|
225
|
+
PERMISSION_RESOURCES.SUPPLIER_INVOICE,
|
|
226
|
+
],
|
|
186
227
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum STATUSES {
|
|
2
2
|
DRAFT = "DRAFT",
|
|
3
|
+
CREATED = "CREATED",
|
|
3
4
|
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
4
5
|
APPROVED = "APPROVED",
|
|
5
6
|
REJECTED = "REJECTED",
|
|
@@ -13,6 +14,8 @@ export declare enum STATUSES {
|
|
|
13
14
|
PENDING = "PENDING",
|
|
14
15
|
QUOTED = "QUOTED",
|
|
15
16
|
CANCELLED = "CANCELLED",
|
|
17
|
+
VERIFIED = "VERIFIED",
|
|
18
|
+
INVALID = "INVALID",
|
|
16
19
|
EXPIRED = "EXPIRED",
|
|
17
20
|
/** @deprecated Use Accepted By Vendor instead. Ask to Backend devs before changing any existing code */
|
|
18
21
|
ACCEPTED = "ACCEPTED",
|
|
@@ -4,6 +4,7 @@ exports.STATUSES = void 0;
|
|
|
4
4
|
var STATUSES;
|
|
5
5
|
(function (STATUSES) {
|
|
6
6
|
STATUSES["DRAFT"] = "DRAFT";
|
|
7
|
+
STATUSES["CREATED"] = "CREATED";
|
|
7
8
|
STATUSES["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
8
9
|
STATUSES["APPROVED"] = "APPROVED";
|
|
9
10
|
STATUSES["REJECTED"] = "REJECTED";
|
|
@@ -17,6 +18,8 @@ var STATUSES;
|
|
|
17
18
|
STATUSES["PENDING"] = "PENDING";
|
|
18
19
|
STATUSES["QUOTED"] = "QUOTED";
|
|
19
20
|
STATUSES["CANCELLED"] = "CANCELLED";
|
|
21
|
+
STATUSES["VERIFIED"] = "VERIFIED";
|
|
22
|
+
STATUSES["INVALID"] = "INVALID";
|
|
20
23
|
STATUSES["EXPIRED"] = "EXPIRED";
|
|
21
24
|
/** @deprecated Use Accepted By Vendor instead. Ask to Backend devs before changing any existing code */
|
|
22
25
|
STATUSES["ACCEPTED"] = "ACCEPTED";
|
package/build/index.d.ts
CHANGED
|
@@ -82,6 +82,12 @@ export * from "./typings/common/ulip/ewaybill.typings";
|
|
|
82
82
|
export * from "./typings/common/ulip/ewaybillVehicle.typings";
|
|
83
83
|
export * from "./typings/vendorQuoteItems.typings";
|
|
84
84
|
export * from "./typings/customUOM.typings";
|
|
85
|
+
export * from "./typings/qualityAssessment.typings";
|
|
86
|
+
export * from "./typings/accountsLocation.typings";
|
|
87
|
+
export * from "./typings/supplierInvoice.typings";
|
|
88
|
+
export * from "./typings/qcd.typings";
|
|
89
|
+
export * from "./typings/audits.typings";
|
|
90
|
+
export * from "./typings/company/masters/imr.typings";
|
|
85
91
|
export * from "./typings/system/queueJob.typings";
|
|
86
92
|
export * from "./typings/system/erpPluginConfigCompany.typings";
|
|
87
93
|
export * from "./typings/system/erpPluginsMetadata.typings";
|
package/build/index.js
CHANGED
|
@@ -102,6 +102,12 @@ __exportStar(require("./typings/common/ulip/ewaybill.typings"), exports);
|
|
|
102
102
|
__exportStar(require("./typings/common/ulip/ewaybillVehicle.typings"), exports);
|
|
103
103
|
__exportStar(require("./typings/vendorQuoteItems.typings"), exports);
|
|
104
104
|
__exportStar(require("./typings/customUOM.typings"), exports);
|
|
105
|
+
__exportStar(require("./typings/qualityAssessment.typings"), exports);
|
|
106
|
+
__exportStar(require("./typings/accountsLocation.typings"), exports);
|
|
107
|
+
__exportStar(require("./typings/supplierInvoice.typings"), exports);
|
|
108
|
+
__exportStar(require("./typings/qcd.typings"), exports);
|
|
109
|
+
__exportStar(require("./typings/audits.typings"), exports);
|
|
110
|
+
__exportStar(require("./typings/company/masters/imr.typings"), exports);
|
|
105
111
|
// System
|
|
106
112
|
__exportStar(require("./typings/system/queueJob.typings"), exports);
|
|
107
113
|
__exportStar(require("./typings/system/erpPluginConfigCompany.typings"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { INestedApprovalConfig } from "./approvalConfig.typings";
|
|
2
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
3
|
+
import { INestedCompany } from "./company.typings";
|
|
4
|
+
import { INestedInvoiceMatchingRecord } from "./company/masters/imr.typings";
|
|
5
|
+
import { INestedDepartment } from "./department.typings";
|
|
6
|
+
import { INestedRole } from "./roles.typings";
|
|
7
|
+
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
8
|
+
import { INestedUser } from "./user.typings";
|
|
9
|
+
export interface IAccountsLocationFilters {
|
|
10
|
+
name?: string;
|
|
11
|
+
store_location_id?: string;
|
|
12
|
+
company_id?: string;
|
|
13
|
+
include?: ACCOUNTS_LOCATION_INCLUDE[];
|
|
14
|
+
}
|
|
15
|
+
export interface IAccountsLocationFiltersWithPagination extends IPaginationFilters, IAccountsLocationFilters {
|
|
16
|
+
}
|
|
17
|
+
export interface IAccountsLocation {
|
|
18
|
+
id: string;
|
|
19
|
+
accounts_location_name: string;
|
|
20
|
+
accounts_location_code: string;
|
|
21
|
+
company_id: string;
|
|
22
|
+
created_by_id: string;
|
|
23
|
+
store_location_id: string;
|
|
24
|
+
incharge_id: string | null;
|
|
25
|
+
is_enabled: boolean;
|
|
26
|
+
is_deleted: boolean;
|
|
27
|
+
deleted_at: string | null;
|
|
28
|
+
created_at: string;
|
|
29
|
+
updated_at: string;
|
|
30
|
+
company?: INestedCompany | null;
|
|
31
|
+
store_location?: INestedStoreLocation | null;
|
|
32
|
+
accounts_incharge?: INestedUser | null;
|
|
33
|
+
departments?: INestedDepartment[] | null;
|
|
34
|
+
roles?: INestedRole[] | null;
|
|
35
|
+
approval_configs?: INestedApprovalConfig[] | null;
|
|
36
|
+
child_imrs: INestedInvoiceMatchingRecord[] | null;
|
|
37
|
+
}
|
|
38
|
+
export interface INestedAccountsLocation extends Omit<IAccountsLocation, "company" | "store_location" | "accounts_incharge" | "departments" | "roles" | "approval_configs" | "child_imrs"> {
|
|
39
|
+
}
|
|
40
|
+
export declare enum ACCOUNTS_LOCATION_INCLUDE {
|
|
41
|
+
company = "company",
|
|
42
|
+
store_location = "store_location",
|
|
43
|
+
accounts_incharge = "accounts_incharge",
|
|
44
|
+
departments = "departments",
|
|
45
|
+
roles = "roles",
|
|
46
|
+
approval_configs = "approval_configs",
|
|
47
|
+
child_imrs = "child_imrs"
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACCOUNTS_LOCATION_INCLUDE = void 0;
|
|
4
|
+
var ACCOUNTS_LOCATION_INCLUDE;
|
|
5
|
+
(function (ACCOUNTS_LOCATION_INCLUDE) {
|
|
6
|
+
ACCOUNTS_LOCATION_INCLUDE["company"] = "company";
|
|
7
|
+
ACCOUNTS_LOCATION_INCLUDE["store_location"] = "store_location";
|
|
8
|
+
ACCOUNTS_LOCATION_INCLUDE["accounts_incharge"] = "accounts_incharge";
|
|
9
|
+
ACCOUNTS_LOCATION_INCLUDE["departments"] = "departments";
|
|
10
|
+
ACCOUNTS_LOCATION_INCLUDE["roles"] = "roles";
|
|
11
|
+
ACCOUNTS_LOCATION_INCLUDE["approval_configs"] = "approval_configs";
|
|
12
|
+
ACCOUNTS_LOCATION_INCLUDE["child_imrs"] = "child_imrs";
|
|
13
|
+
})(ACCOUNTS_LOCATION_INCLUDE || (exports.ACCOUNTS_LOCATION_INCLUDE = ACCOUNTS_LOCATION_INCLUDE = {}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { INestedAccountsLocation } from "./accountsLocation.typings";
|
|
1
2
|
import { ApprovalConfigInlcude, INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
3
|
+
import { INestedAudits } from "./audits.typings";
|
|
2
4
|
import { INestedCompany } from "./company.typings";
|
|
3
5
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
4
6
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
@@ -8,6 +10,7 @@ import { INestedCompanyCustomerCategory } from "./companyCustomerCategory.typing
|
|
|
8
10
|
import { INestedGate } from "./gate.typings";
|
|
9
11
|
import { INestedOffice } from "./offices.typings";
|
|
10
12
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
13
|
+
import { INestedQALocation } from "./qualityAssessment.typings";
|
|
11
14
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
12
15
|
export declare enum APPROVAL_CONFIG_INCLUDE {
|
|
13
16
|
company = "company",
|
|
@@ -20,7 +23,10 @@ export declare enum APPROVAL_CONFIG_INCLUDE {
|
|
|
20
23
|
item_management_body = "item_management_body",
|
|
21
24
|
checkpoint = "checkpoint",
|
|
22
25
|
vendor_category = "vendor_category",
|
|
23
|
-
company_distibutor_category = "company_distibutor_category"
|
|
26
|
+
company_distibutor_category = "company_distibutor_category",
|
|
27
|
+
qa_location = "qa_location",
|
|
28
|
+
accounts_location = "accounts_location",
|
|
29
|
+
audits = "audits"
|
|
24
30
|
}
|
|
25
31
|
export interface IApprovalConfig {
|
|
26
32
|
id: string;
|
|
@@ -37,6 +43,9 @@ export interface IApprovalConfig {
|
|
|
37
43
|
checkpoint_id: string | null;
|
|
38
44
|
vendor_onboarding_request_category_id: string | null;
|
|
39
45
|
company_customer_category_id: string | null;
|
|
46
|
+
qa_location_id: string | null;
|
|
47
|
+
accounts_location_id: string | null;
|
|
48
|
+
audits_id: string | null;
|
|
40
49
|
created_at: string;
|
|
41
50
|
updated_at: string;
|
|
42
51
|
company?: INestedCompany | null;
|
|
@@ -50,9 +59,12 @@ export interface IApprovalConfig {
|
|
|
50
59
|
checkpoint?: INestedCheckpoint[] | null;
|
|
51
60
|
vendor_category?: INestedVendorOnboardingRequestCategory | null;
|
|
52
61
|
company_distibutor_category?: INestedCompanyCustomerCategory | null;
|
|
62
|
+
qa_location?: INestedQALocation | null;
|
|
63
|
+
accounts_location?: INestedAccountsLocation | null;
|
|
64
|
+
audits?: INestedAudits | null;
|
|
53
65
|
}
|
|
54
|
-
export interface INestedApprovalConfig extends Omit<IApprovalConfig, "approval_chain" | "company" | "office" | "store_location" | "purchase_location" | "gate" | "vendor_management_body" | "item_management_body" | "checkpoint" | "vendor_category" | "company_distibutor_category"> {
|
|
66
|
+
export interface INestedApprovalConfig extends Omit<IApprovalConfig, "approval_chain" | "company" | "office" | "store_location" | "purchase_location" | "gate" | "vendor_management_body" | "item_management_body" | "checkpoint" | "vendor_category" | "company_distibutor_category" | "qa_location" | "accounts_location" | "audits"> {
|
|
55
67
|
}
|
|
56
|
-
export interface IApprovalConfigFilters extends Partial<Pick<IApprovalConfig, "office_id" | "gate_id" | "purchase_location_id" | "vendor_management_body_id" | "item_management_body_id" | "store_location_id" | "checkpoint_id" | "vendor_onboarding_request_category_id" | "company_customer_category_id">> {
|
|
68
|
+
export interface IApprovalConfigFilters extends Partial<Pick<IApprovalConfig, "office_id" | "gate_id" | "purchase_location_id" | "vendor_management_body_id" | "item_management_body_id" | "store_location_id" | "checkpoint_id" | "vendor_onboarding_request_category_id" | "company_customer_category_id" | "accounts_location_id" | "qa_location_id" | "audits_id">> {
|
|
57
69
|
include?: ApprovalConfigInlcude[] | null;
|
|
58
70
|
}
|
|
@@ -14,4 +14,7 @@ var APPROVAL_CONFIG_INCLUDE;
|
|
|
14
14
|
APPROVAL_CONFIG_INCLUDE["checkpoint"] = "checkpoint";
|
|
15
15
|
APPROVAL_CONFIG_INCLUDE["vendor_category"] = "vendor_category";
|
|
16
16
|
APPROVAL_CONFIG_INCLUDE["company_distibutor_category"] = "company_distibutor_category";
|
|
17
|
+
APPROVAL_CONFIG_INCLUDE["qa_location"] = "qa_location";
|
|
18
|
+
APPROVAL_CONFIG_INCLUDE["accounts_location"] = "accounts_location";
|
|
19
|
+
APPROVAL_CONFIG_INCLUDE["audits"] = "audits";
|
|
17
20
|
})(APPROVAL_CONFIG_INCLUDE || (exports.APPROVAL_CONFIG_INCLUDE = APPROVAL_CONFIG_INCLUDE = {}));
|
|
@@ -4,7 +4,7 @@ import { INestedVES } from "./company/masters/ves.typings";
|
|
|
4
4
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
5
5
|
import { INestedGRN, INestedGRNItem } from "./grn.typings";
|
|
6
6
|
import { INestedItem } from "./item.typings";
|
|
7
|
-
import { INestedPo } from "./company/masters/po.typings";
|
|
7
|
+
import { INestedPo, INestedPOItem } from "./company/masters/po.typings";
|
|
8
8
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
9
9
|
import { INestedUser } from "./user.typings";
|
|
10
10
|
import { INestedVendor } from "./vendor.typings";
|
|
@@ -261,7 +261,8 @@ export declare enum ASN_ITEM_INCLUDE {
|
|
|
261
261
|
parent_asn = "parent_asn",
|
|
262
262
|
vendor = "vendor",
|
|
263
263
|
used_in_grn_items = "used_in_grn_items",
|
|
264
|
-
po_asn_item_junction = "
|
|
264
|
+
po_asn_item_junction = "po_asn_item_junction",
|
|
265
|
+
parent_po_item = "parent_po_item"
|
|
265
266
|
}
|
|
266
267
|
export interface IASNItem {
|
|
267
268
|
id: string;
|
|
@@ -275,6 +276,7 @@ export interface IASNItem {
|
|
|
275
276
|
dispatched_quantity: number;
|
|
276
277
|
delivered_quantity: number;
|
|
277
278
|
item_description: string | null;
|
|
279
|
+
parent_po_item_id: string;
|
|
278
280
|
po_asn_item_junction_id: string | null;
|
|
279
281
|
is_deleted: boolean;
|
|
280
282
|
deleted_at: string | null;
|
|
@@ -284,10 +286,11 @@ export interface IASNItem {
|
|
|
284
286
|
item: INestedItem | null;
|
|
285
287
|
parent_asn: INestedASN | null;
|
|
286
288
|
vendor: INestedVendor | null;
|
|
289
|
+
parent_po_item?: INestedPOItem | null;
|
|
287
290
|
used_in_grn_items: INestedGRNItem[] | null;
|
|
288
291
|
po_asn_item_junction: INestedPOASNItemJunction | null;
|
|
289
292
|
}
|
|
290
|
-
export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item" | "used_in_grn_items" | "po_asn_item_junction" | "ewaybill"> {
|
|
293
|
+
export interface INestedASNItem extends Omit<IASNItem, "company" | "item" | "parent_asn" | "vendor" | "parent_po_item" | "used_in_grn_items" | "po_asn_item_junction" | "ewaybill" | "parent_po_item"> {
|
|
291
294
|
}
|
|
292
295
|
export interface ICancelASNInputs extends Pick<IASN, "cancellation_remark" | "cancelled_by_entity" | "cancelled_by_user_id"> {
|
|
293
296
|
}
|
|
@@ -138,7 +138,8 @@ var ASN_ITEM_INCLUDE;
|
|
|
138
138
|
ASN_ITEM_INCLUDE["vendor"] = "vendor";
|
|
139
139
|
// parent_po_item = "parent_po_item",
|
|
140
140
|
ASN_ITEM_INCLUDE["used_in_grn_items"] = "used_in_grn_items";
|
|
141
|
-
ASN_ITEM_INCLUDE["po_asn_item_junction"] = "
|
|
141
|
+
ASN_ITEM_INCLUDE["po_asn_item_junction"] = "po_asn_item_junction";
|
|
142
|
+
ASN_ITEM_INCLUDE["parent_po_item"] = "parent_po_item";
|
|
142
143
|
})(ASN_ITEM_INCLUDE || (exports.ASN_ITEM_INCLUDE = ASN_ITEM_INCLUDE = {}));
|
|
143
144
|
var ASN_VIEW_PAGE_TYPE;
|
|
144
145
|
(function (ASN_VIEW_PAGE_TYPE) {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { INestedApprovalConfig } from "./approvalConfig.typings";
|
|
2
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
3
|
+
import { INestedCompany } from "./company.typings";
|
|
4
|
+
import { INestedDepartment } from "./department.typings";
|
|
5
|
+
import { INestedRole } from "./roles.typings";
|
|
6
|
+
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
7
|
+
import { INestedUser } from "./user.typings";
|
|
8
|
+
export interface IAuditsFilters {
|
|
9
|
+
name?: string;
|
|
10
|
+
store_location_id?: string;
|
|
11
|
+
company_id?: string;
|
|
12
|
+
include?: AUDITS_INCLUDE[];
|
|
13
|
+
}
|
|
14
|
+
export interface IAuditsFiltersWithPagination extends IPaginationFilters, IAuditsFilters {
|
|
15
|
+
}
|
|
16
|
+
export interface IAudits {
|
|
17
|
+
id: string;
|
|
18
|
+
audits_name: string;
|
|
19
|
+
audits_code: string;
|
|
20
|
+
company_id: string;
|
|
21
|
+
created_by_id: string;
|
|
22
|
+
store_location_id: string;
|
|
23
|
+
incharge_id: string | null;
|
|
24
|
+
is_enabled: boolean;
|
|
25
|
+
is_deleted: boolean;
|
|
26
|
+
deleted_at: string | null;
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
company?: INestedCompany | null;
|
|
30
|
+
store_location?: INestedStoreLocation | null;
|
|
31
|
+
audits_incharge?: INestedUser | null;
|
|
32
|
+
departments?: INestedDepartment[] | null;
|
|
33
|
+
roles?: INestedRole[] | null;
|
|
34
|
+
approval_configs?: INestedApprovalConfig[] | null;
|
|
35
|
+
}
|
|
36
|
+
export interface INestedAudits extends Omit<IAudits, "company" | "store_location" | "audits_incharge" | "departments" | "roles" | "approval_configs"> {
|
|
37
|
+
}
|
|
38
|
+
export declare enum AUDITS_INCLUDE {
|
|
39
|
+
company = "company",
|
|
40
|
+
store_location = "store_location",
|
|
41
|
+
audits_incharge = "audits_incharge",
|
|
42
|
+
departments = "departments",
|
|
43
|
+
roles = "roles",
|
|
44
|
+
approval_configs = "approval_configs"
|
|
45
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AUDITS_INCLUDE = void 0;
|
|
4
|
+
var AUDITS_INCLUDE;
|
|
5
|
+
(function (AUDITS_INCLUDE) {
|
|
6
|
+
AUDITS_INCLUDE["company"] = "company";
|
|
7
|
+
AUDITS_INCLUDE["store_location"] = "store_location";
|
|
8
|
+
AUDITS_INCLUDE["audits_incharge"] = "audits_incharge";
|
|
9
|
+
AUDITS_INCLUDE["departments"] = "departments";
|
|
10
|
+
AUDITS_INCLUDE["roles"] = "roles";
|
|
11
|
+
AUDITS_INCLUDE["approval_configs"] = "approval_configs";
|
|
12
|
+
})(AUDITS_INCLUDE || (exports.AUDITS_INCLUDE = AUDITS_INCLUDE = {}));
|