kcommons 13.18.2 → 14.0.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/constants/companyRoutes.constants.d.ts +36 -0
- package/build/constants/companyRoutes.constants.js +36 -0
- package/build/constants/entityTypes.constants.d.ts +2 -1
- package/build/constants/entityTypes.constants.js +1 -0
- package/build/constants/permission.constants.d.ts +5 -1
- package/build/constants/permission.constants.js +10 -0
- package/build/constants/statuses.constants.d.ts +5 -1
- package/build/constants/statuses.constants.js +4 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/typings/asn.typings.d.ts +5 -2
- package/build/typings/asn.typings.js +1 -0
- package/build/typings/company/masters/checkpoints.typings.d.ts +54 -0
- package/build/typings/company/masters/checkpoints.typings.js +20 -0
- package/build/typings/company/masters/ves.typings.d.ts +84 -0
- package/build/typings/company/masters/ves.typings.js +37 -0
- package/build/typings/company/masters/vesItem.typings.d.ts +20 -0
- package/build/typings/company/masters/vesItem.typings.js +8 -0
- package/build/typings/company/vendorOnboardingRequest/vendorOnboardingRequest.typing.d.ts +2 -2
- package/build/typings/company.typings.d.ts +7 -2
- package/build/typings/company.typings.js +1 -0
- package/build/typings/department.typings.d.ts +14 -10
- package/build/typings/department.typings.js +4 -0
- package/build/typings/entityApprovalChainEntry.typings.d.ts +8 -3
- package/build/typings/entityApprovalChainEntry.typings.js +2 -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/roles.typings.d.ts +21 -24
- package/build/typings/roles.typings.js +4 -0
- package/build/typings/settings/form/extraForm.typings.d.ts +4 -1
- package/build/typings/settings/form/extraFormAns.typings.d.ts +1 -1
- package/build/typings/storeLocation.typings.d.ts +5 -2
- package/build/typings/storeLocation.typings.js +1 -0
- package/build/typings/user.typings.d.ts +14 -2
- package/build/typings/user.typings.js +5 -0
- package/build/utils/getContactPerson.util.spec.js +10 -0
- package/package.json +1 -1
|
@@ -110,6 +110,12 @@ export declare enum COMPANY_ROUTE_IDS {
|
|
|
110
110
|
CMP_VDR_DISC = "CMP_VDR_DISC",
|
|
111
111
|
CMP_VDR_GRPS = "CMP_VDR_GRPS",
|
|
112
112
|
CMP_VDR_ONB_REQ = "CMP_VDR_ONB_REQ",
|
|
113
|
+
CHKPT_VIEW = "CHKPT_VIEW",
|
|
114
|
+
CHKPT_LST = "CHKPT_LST",
|
|
115
|
+
VES_LST = "VES_LST",
|
|
116
|
+
VES_VIEW = "VES_VIEW",
|
|
117
|
+
VES_EDT = "VES_EDT",
|
|
118
|
+
VES_ADD = "VES_ADD",
|
|
113
119
|
OPN_CMPNY_VDR_APPR = "OPN_CMPNY_VDR_APPR",
|
|
114
120
|
OPN_IND_APPR = "OPN_IND_APPR",
|
|
115
121
|
OPN_MI_APPR = "OPN_MI_APPR",
|
|
@@ -314,6 +320,16 @@ export declare const companyNavConfig: {
|
|
|
314
320
|
id: COMPANY_ROUTE_IDS;
|
|
315
321
|
};
|
|
316
322
|
};
|
|
323
|
+
checkpoint: {
|
|
324
|
+
list: {
|
|
325
|
+
route: string;
|
|
326
|
+
id: COMPANY_ROUTE_IDS;
|
|
327
|
+
};
|
|
328
|
+
view: {
|
|
329
|
+
route: (checkpoint_id: string) => string;
|
|
330
|
+
id: COMPANY_ROUTE_IDS;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
317
333
|
};
|
|
318
334
|
approvals: {
|
|
319
335
|
standard: {
|
|
@@ -725,6 +741,26 @@ export declare const companyNavConfig: {
|
|
|
725
741
|
};
|
|
726
742
|
};
|
|
727
743
|
};
|
|
744
|
+
checkpoint: {
|
|
745
|
+
ves: {
|
|
746
|
+
list: {
|
|
747
|
+
route: string;
|
|
748
|
+
id: COMPANY_ROUTE_IDS;
|
|
749
|
+
};
|
|
750
|
+
add: {
|
|
751
|
+
route: string;
|
|
752
|
+
id: COMPANY_ROUTE_IDS;
|
|
753
|
+
};
|
|
754
|
+
edit: {
|
|
755
|
+
route: (ves_id: string) => string;
|
|
756
|
+
id: COMPANY_ROUTE_IDS;
|
|
757
|
+
};
|
|
758
|
+
view: {
|
|
759
|
+
route: (ves_id: string) => string;
|
|
760
|
+
id: COMPANY_ROUTE_IDS;
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
};
|
|
728
764
|
open: {
|
|
729
765
|
approvals: {
|
|
730
766
|
companyVendor: {
|
|
@@ -106,6 +106,12 @@ var COMPANY_ROUTE_IDS;
|
|
|
106
106
|
COMPANY_ROUTE_IDS["CMP_VDR_DISC"] = "CMP_VDR_DISC";
|
|
107
107
|
COMPANY_ROUTE_IDS["CMP_VDR_GRPS"] = "CMP_VDR_GRPS";
|
|
108
108
|
COMPANY_ROUTE_IDS["CMP_VDR_ONB_REQ"] = "CMP_VDR_ONB_REQ";
|
|
109
|
+
COMPANY_ROUTE_IDS["CHKPT_VIEW"] = "CHKPT_VIEW";
|
|
110
|
+
COMPANY_ROUTE_IDS["CHKPT_LST"] = "CHKPT_LST";
|
|
111
|
+
COMPANY_ROUTE_IDS["VES_LST"] = "VES_LST";
|
|
112
|
+
COMPANY_ROUTE_IDS["VES_VIEW"] = "VES_VIEW";
|
|
113
|
+
COMPANY_ROUTE_IDS["VES_EDT"] = "VES_EDT";
|
|
114
|
+
COMPANY_ROUTE_IDS["VES_ADD"] = "VES_ADD";
|
|
109
115
|
// For Open Approvals
|
|
110
116
|
COMPANY_ROUTE_IDS["OPN_CMPNY_VDR_APPR"] = "OPN_CMPNY_VDR_APPR";
|
|
111
117
|
COMPANY_ROUTE_IDS["OPN_IND_APPR"] = "OPN_IND_APPR";
|
|
@@ -321,6 +327,16 @@ exports.companyNavConfig = {
|
|
|
321
327
|
id: COMPANY_ROUTE_IDS.ITM_MGMT,
|
|
322
328
|
},
|
|
323
329
|
},
|
|
330
|
+
checkpoint: {
|
|
331
|
+
list: {
|
|
332
|
+
route: `/company/checkpoints?route_id=${COMPANY_ROUTE_IDS.CHKPT_LST}`,
|
|
333
|
+
id: COMPANY_ROUTE_IDS.CHKPT_LST,
|
|
334
|
+
},
|
|
335
|
+
view: {
|
|
336
|
+
route: (checkpoint_id) => `/company/checkpoints/${checkpoint_id}?route_id=${COMPANY_ROUTE_IDS.CHKPT_VIEW}`,
|
|
337
|
+
id: COMPANY_ROUTE_IDS.CHKPT_VIEW,
|
|
338
|
+
},
|
|
339
|
+
},
|
|
324
340
|
},
|
|
325
341
|
approvals: {
|
|
326
342
|
standard: {
|
|
@@ -749,6 +765,26 @@ exports.companyNavConfig = {
|
|
|
749
765
|
},
|
|
750
766
|
},
|
|
751
767
|
},
|
|
768
|
+
checkpoint: {
|
|
769
|
+
ves: {
|
|
770
|
+
list: {
|
|
771
|
+
route: `/checkpoint/ves?route_id=${COMPANY_ROUTE_IDS.VES_LST}`,
|
|
772
|
+
id: COMPANY_ROUTE_IDS.VES_LST,
|
|
773
|
+
},
|
|
774
|
+
add: {
|
|
775
|
+
route: `/checkpoint/ves/add?route_id=${COMPANY_ROUTE_IDS.VES_ADD}`,
|
|
776
|
+
id: COMPANY_ROUTE_IDS.VES_ADD,
|
|
777
|
+
},
|
|
778
|
+
edit: {
|
|
779
|
+
route: (ves_id) => `/checkpoint/ves/${ves_id}/edit?route_id=${COMPANY_ROUTE_IDS.VES_LST}`,
|
|
780
|
+
id: COMPANY_ROUTE_IDS.VES_EDT,
|
|
781
|
+
},
|
|
782
|
+
view: {
|
|
783
|
+
route: (ves_id) => `/checkpoint/ves/${ves_id}/view?route_id=${COMPANY_ROUTE_IDS.VES_VIEW}`,
|
|
784
|
+
id: COMPANY_ROUTE_IDS.VES_VIEW,
|
|
785
|
+
},
|
|
786
|
+
},
|
|
787
|
+
},
|
|
752
788
|
open: {
|
|
753
789
|
approvals: {
|
|
754
790
|
companyVendor: {
|
|
@@ -9,4 +9,5 @@ var EntityTypes;
|
|
|
9
9
|
EntityTypes["OFFICE"] = "office";
|
|
10
10
|
EntityTypes["VENDOR_MANAGEMENT_BODY"] = "vendor_management_body";
|
|
11
11
|
EntityTypes["ITEM_MANAGEMENT_BODY"] = "item_management_body";
|
|
12
|
+
EntityTypes["CHECKPOINT"] = "checkpoint";
|
|
12
13
|
})(EntityTypes || (exports.EntityTypes = EntityTypes = {}));
|
|
@@ -18,7 +18,8 @@ export declare enum DOCUMENTS {
|
|
|
18
18
|
ASN = "ASN",
|
|
19
19
|
GRN = "GRN",
|
|
20
20
|
COMPARATIVE = "COMPARATIVE",
|
|
21
|
-
ISTD = "ISTD"
|
|
21
|
+
ISTD = "ISTD",
|
|
22
|
+
VES = "VES"
|
|
22
23
|
}
|
|
23
24
|
export declare enum PERMISSION_RESOURCES {
|
|
24
25
|
INDENT = "INDENT",
|
|
@@ -31,6 +32,7 @@ export declare enum PERMISSION_RESOURCES {
|
|
|
31
32
|
GRN = "GRN",
|
|
32
33
|
COMPARATIVE = "COMPARATIVE",
|
|
33
34
|
ISTD = "ISTD",
|
|
35
|
+
VES = "VES",
|
|
34
36
|
VENDOR_ONBOARDING_REQUEST = "VENDOR_ONBOARDING_REQUEST",
|
|
35
37
|
WAITLISTED_VENDORS = "WAITLISTED_VENDORS",
|
|
36
38
|
ITEMS = "ITEMS"
|
|
@@ -54,6 +56,7 @@ export declare const PERMISSION_CONFIG: {
|
|
|
54
56
|
VENDOR_ONBOARDING_REQUEST: PERMISSION_ACTIONS[];
|
|
55
57
|
WAITLISTED_VENDORS: PERMISSION_ACTIONS[];
|
|
56
58
|
ITEMS: PERMISSION_ACTIONS[];
|
|
59
|
+
VES: PERMISSION_ACTIONS[];
|
|
57
60
|
};
|
|
58
61
|
export declare const EntitySpecificDocuments: {
|
|
59
62
|
gate: PERMISSION_RESOURCES[];
|
|
@@ -62,4 +65,5 @@ export declare const EntitySpecificDocuments: {
|
|
|
62
65
|
purchase_location: PERMISSION_RESOURCES[];
|
|
63
66
|
vendor_management_body: PERMISSION_RESOURCES[];
|
|
64
67
|
item_management_body: PERMISSION_RESOURCES[];
|
|
68
|
+
checkpoint: PERMISSION_RESOURCES[];
|
|
65
69
|
};
|
|
@@ -26,6 +26,7 @@ var DOCUMENTS;
|
|
|
26
26
|
DOCUMENTS["GRN"] = "GRN";
|
|
27
27
|
DOCUMENTS["COMPARATIVE"] = "COMPARATIVE";
|
|
28
28
|
DOCUMENTS["ISTD"] = "ISTD";
|
|
29
|
+
DOCUMENTS["VES"] = "VES";
|
|
29
30
|
})(DOCUMENTS || (exports.DOCUMENTS = DOCUMENTS = {}));
|
|
30
31
|
var PERMISSION_RESOURCES;
|
|
31
32
|
(function (PERMISSION_RESOURCES) {
|
|
@@ -39,6 +40,7 @@ var PERMISSION_RESOURCES;
|
|
|
39
40
|
PERMISSION_RESOURCES["GRN"] = "GRN";
|
|
40
41
|
PERMISSION_RESOURCES["COMPARATIVE"] = "COMPARATIVE";
|
|
41
42
|
PERMISSION_RESOURCES["ISTD"] = "ISTD";
|
|
43
|
+
PERMISSION_RESOURCES["VES"] = "VES";
|
|
42
44
|
PERMISSION_RESOURCES["VENDOR_ONBOARDING_REQUEST"] = "VENDOR_ONBOARDING_REQUEST";
|
|
43
45
|
PERMISSION_RESOURCES["WAITLISTED_VENDORS"] = "WAITLISTED_VENDORS";
|
|
44
46
|
PERMISSION_RESOURCES["ITEMS"] = "ITEMS";
|
|
@@ -120,6 +122,12 @@ exports.PERMISSION_CONFIG = {
|
|
|
120
122
|
PERMISSION_ACTIONS.APPROVALS,
|
|
121
123
|
PERMISSION_ACTIONS.READ_ONLY,
|
|
122
124
|
],
|
|
125
|
+
[PERMISSION_RESOURCES.VES]: [
|
|
126
|
+
PERMISSION_ACTIONS.APPROVALS,
|
|
127
|
+
PERMISSION_ACTIONS.READ_ONLY,
|
|
128
|
+
PERMISSION_ACTIONS.CRUDSAC,
|
|
129
|
+
PERMISSION_ACTIONS.INVITE,
|
|
130
|
+
],
|
|
123
131
|
};
|
|
124
132
|
exports.EntitySpecificDocuments = {
|
|
125
133
|
[entityTypes_constants_1.EntityTypes.GATE]: [PERMISSION_RESOURCES.GRN, PERMISSION_RESOURCES.INDENT],
|
|
@@ -131,6 +139,7 @@ exports.EntitySpecificDocuments = {
|
|
|
131
139
|
PERMISSION_RESOURCES.INDENT,
|
|
132
140
|
PERMISSION_RESOURCES.ISTD,
|
|
133
141
|
PERMISSION_RESOURCES.ASN,
|
|
142
|
+
PERMISSION_RESOURCES.VES,
|
|
134
143
|
// DOCUMENTS.IAD,
|
|
135
144
|
],
|
|
136
145
|
[entityTypes_constants_1.EntityTypes.PURCHASE_LOCATION]: [
|
|
@@ -150,4 +159,5 @@ exports.EntitySpecificDocuments = {
|
|
|
150
159
|
PERMISSION_RESOURCES.ITEMS,
|
|
151
160
|
PERMISSION_RESOURCES.INDENT,
|
|
152
161
|
],
|
|
162
|
+
[entityTypes_constants_1.EntityTypes.CHECKPOINT]: [PERMISSION_RESOURCES.VES],
|
|
153
163
|
};
|
|
@@ -27,5 +27,9 @@ export declare enum STATUSES {
|
|
|
27
27
|
RAISED = "RAISED",
|
|
28
28
|
INVITED = "INVITED",
|
|
29
29
|
APPROVED_BY_COMPANY = "APPROVED_BY_COMPANY",
|
|
30
|
-
READY_FOR_DISPATCH = "READY_FOR_DISPATCH"
|
|
30
|
+
READY_FOR_DISPATCH = "READY_FOR_DISPATCH",
|
|
31
|
+
ARRIVED = "ARRIVED",
|
|
32
|
+
REQUESTED_AT_SHIPPING_LOCATION = "REQUESTED_AT_SHIPPING_LOCATION",
|
|
33
|
+
IN_TRANSIT = "IN_TRANSIT",
|
|
34
|
+
EXITED = "EXITED"
|
|
31
35
|
}
|
|
@@ -32,4 +32,8 @@ var STATUSES;
|
|
|
32
32
|
STATUSES["INVITED"] = "INVITED";
|
|
33
33
|
STATUSES["APPROVED_BY_COMPANY"] = "APPROVED_BY_COMPANY";
|
|
34
34
|
STATUSES["READY_FOR_DISPATCH"] = "READY_FOR_DISPATCH";
|
|
35
|
+
STATUSES["ARRIVED"] = "ARRIVED";
|
|
36
|
+
STATUSES["REQUESTED_AT_SHIPPING_LOCATION"] = "REQUESTED_AT_SHIPPING_LOCATION";
|
|
37
|
+
STATUSES["IN_TRANSIT"] = "IN_TRANSIT";
|
|
38
|
+
STATUSES["EXITED"] = "EXITED";
|
|
35
39
|
})(STATUSES || (exports.STATUSES = STATUSES = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./typings/approvalChain.typings";
|
|
|
11
11
|
export * from "./typings/approvalConfig.typings";
|
|
12
12
|
export * from "./typings/storeLocation.typings";
|
|
13
13
|
export * from "./typings/purchaseLocation.typings";
|
|
14
|
+
export * from "./typings/company/masters/checkpoints.typings";
|
|
14
15
|
export * from "./typings/indent.typings";
|
|
15
16
|
export * from "./typings/mi.typings";
|
|
16
17
|
export * from "./typings/pr.typings";
|
|
@@ -27,6 +28,8 @@ export * from "./typings/comparative.typings";
|
|
|
27
28
|
export * from "./typings/gate.typings";
|
|
28
29
|
export * from "./typings/grn.typings";
|
|
29
30
|
export * from "./typings/mrn.typings";
|
|
31
|
+
export * from "./typings/company/masters/ves.typings";
|
|
32
|
+
export * from "./typings/company/masters/vesItem.typings";
|
|
30
33
|
export * from "./typings/entityApprovalChainEntry.typings";
|
|
31
34
|
export * from "./typings/negotiation.typings";
|
|
32
35
|
export * from "./typings/asn.typings";
|
package/build/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./typings/approvalChain.typings"), exports);
|
|
|
30
30
|
__exportStar(require("./typings/approvalConfig.typings"), exports);
|
|
31
31
|
__exportStar(require("./typings/storeLocation.typings"), exports);
|
|
32
32
|
__exportStar(require("./typings/purchaseLocation.typings"), exports);
|
|
33
|
+
__exportStar(require("./typings/company/masters/checkpoints.typings"), exports);
|
|
33
34
|
__exportStar(require("./typings/indent.typings"), exports);
|
|
34
35
|
__exportStar(require("./typings/mi.typings"), exports);
|
|
35
36
|
__exportStar(require("./typings/pr.typings"), exports);
|
|
@@ -46,6 +47,8 @@ __exportStar(require("./typings/comparative.typings"), exports);
|
|
|
46
47
|
__exportStar(require("./typings/gate.typings"), exports);
|
|
47
48
|
__exportStar(require("./typings/grn.typings"), exports);
|
|
48
49
|
__exportStar(require("./typings/mrn.typings"), exports);
|
|
50
|
+
__exportStar(require("./typings/company/masters/ves.typings"), exports);
|
|
51
|
+
__exportStar(require("./typings/company/masters/vesItem.typings"), exports);
|
|
49
52
|
__exportStar(require("./typings/entityApprovalChainEntry.typings"), exports);
|
|
50
53
|
__exportStar(require("./typings/negotiation.typings"), exports);
|
|
51
54
|
__exportStar(require("./typings/asn.typings"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedVES } from "./company/masters/ves.typings";
|
|
3
4
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
4
5
|
import { INestedGRN, INestedGRNItem } from "./grn.typings";
|
|
5
6
|
import { INestedItem } from "./item.typings";
|
|
@@ -65,7 +66,8 @@ export declare enum ASN_INCLUDE {
|
|
|
65
66
|
associated_grns = "associated_grns",
|
|
66
67
|
cancelled_by_user = "cancelled_by_user",
|
|
67
68
|
approval_chain = "approval_chain",
|
|
68
|
-
asns_sent_to_vendor_by_user = "asns_sent_to_vendor_by_user"
|
|
69
|
+
asns_sent_to_vendor_by_user = "asns_sent_to_vendor_by_user",
|
|
70
|
+
child_ves = "child_ves"
|
|
69
71
|
}
|
|
70
72
|
export interface IASN {
|
|
71
73
|
id: string;
|
|
@@ -154,6 +156,7 @@ export interface IASN {
|
|
|
154
156
|
cancelled_by_user: INestedUser | null;
|
|
155
157
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
156
158
|
asns_sent_to_vendor_by_user: INestedUser | null;
|
|
159
|
+
child_ves: INestedVES[] | null;
|
|
157
160
|
}
|
|
158
161
|
export declare enum ASN_MODE_OF_TRANSPORT_FIELDS {
|
|
159
162
|
road_vehicle_type = "road_vehicle_type",
|
|
@@ -208,7 +211,7 @@ export declare const ASN_SEA_TRANSPORT_FIELD_PREFIX = "sea";
|
|
|
208
211
|
export declare const ASN_AIR_TRANSPORT_FIELD_PREFIX = "air";
|
|
209
212
|
export declare const ASN_COURIER_TRANSPORT_FIELD_PREFIX = "courier";
|
|
210
213
|
export declare const ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = "hand_delivery";
|
|
211
|
-
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"> {
|
|
214
|
+
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"> {
|
|
212
215
|
}
|
|
213
216
|
export interface IASNFilters {
|
|
214
217
|
company_id?: string;
|
|
@@ -68,6 +68,7 @@ var ASN_INCLUDE;
|
|
|
68
68
|
ASN_INCLUDE["cancelled_by_user"] = "cancelled_by_user";
|
|
69
69
|
ASN_INCLUDE["approval_chain"] = "approval_chain";
|
|
70
70
|
ASN_INCLUDE["asns_sent_to_vendor_by_user"] = "asns_sent_to_vendor_by_user";
|
|
71
|
+
ASN_INCLUDE["child_ves"] = "child_ves";
|
|
71
72
|
})(ASN_INCLUDE || (exports.ASN_INCLUDE = ASN_INCLUDE = {}));
|
|
72
73
|
var ASN_MODE_OF_TRANSPORT_FIELDS;
|
|
73
74
|
(function (ASN_MODE_OF_TRANSPORT_FIELDS) {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "../../company.typings";
|
|
3
|
+
import { INestedDepartment } from "../../department.typings";
|
|
4
|
+
import { INestedRole } from "../../roles.typings";
|
|
5
|
+
import { INestedUser } from "../../user.typings";
|
|
6
|
+
import { INestedVES } from "./ves.typings";
|
|
7
|
+
export interface ICheckpointFilters extends Partial<Pick<ICheckpoints, "is_enabled" | "checkpoint_type">> {
|
|
8
|
+
name?: string;
|
|
9
|
+
created_by_logged_in_user?: boolean;
|
|
10
|
+
include?: CHECKPOINT_INCLUDE[];
|
|
11
|
+
}
|
|
12
|
+
export interface ICheckpointFiltersWithPagination extends ICheckpointFilters, IPaginationFilters {
|
|
13
|
+
}
|
|
14
|
+
export interface ICheckpoints {
|
|
15
|
+
id: string;
|
|
16
|
+
checkpoint_name: string;
|
|
17
|
+
checkpoint_code: string;
|
|
18
|
+
description: string | null;
|
|
19
|
+
checkpoint_type: CHECKPOINT_TYPE;
|
|
20
|
+
has_in_time: boolean;
|
|
21
|
+
has_out_time: boolean;
|
|
22
|
+
company_id: string;
|
|
23
|
+
created_by_user_id: string;
|
|
24
|
+
last_updated_by_user_id: string;
|
|
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
|
+
created_by_user: INestedUser | null;
|
|
32
|
+
last_updated_by_user: INestedUser | null;
|
|
33
|
+
roles: INestedRole[] | null;
|
|
34
|
+
departments: INestedDepartment[] | null;
|
|
35
|
+
ves_created_at_checkpoint: INestedVES[] | null;
|
|
36
|
+
ves_directed_at_checkpoint: INestedVES[] | null;
|
|
37
|
+
}
|
|
38
|
+
export interface INestedCheckpoint extends Omit<ICheckpoints, "company" | "created_by_user" | "last_updated_by_user" | "roles" | "departments" | "ves_created_at_checkpoint" | "ves_directed_at_checkpoint"> {
|
|
39
|
+
}
|
|
40
|
+
/** --- ENUMS--- */
|
|
41
|
+
export declare enum CHECKPOINT_INCLUDE {
|
|
42
|
+
company = "company",
|
|
43
|
+
created_by_user = "created_by_user",
|
|
44
|
+
last_updated_by_user = "last_updated_by_user",
|
|
45
|
+
roles = "roles",
|
|
46
|
+
departments = "departments",
|
|
47
|
+
ves_created_at_checkpoint = "ves_created_at_checkpoint",
|
|
48
|
+
ves_directed_at_checkpoint = "ves_directed_at_checkpoint"
|
|
49
|
+
}
|
|
50
|
+
export declare enum CHECKPOINT_TYPE {
|
|
51
|
+
ENTRY = "ENTRY",
|
|
52
|
+
INTERMEDIATE = "INTERMEDIATE",
|
|
53
|
+
EXIT = "EXIT"
|
|
54
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHECKPOINT_TYPE = exports.CHECKPOINT_INCLUDE = void 0;
|
|
4
|
+
/** --- ENUMS--- */
|
|
5
|
+
var CHECKPOINT_INCLUDE;
|
|
6
|
+
(function (CHECKPOINT_INCLUDE) {
|
|
7
|
+
CHECKPOINT_INCLUDE["company"] = "company";
|
|
8
|
+
CHECKPOINT_INCLUDE["created_by_user"] = "created_by_user";
|
|
9
|
+
CHECKPOINT_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
10
|
+
CHECKPOINT_INCLUDE["roles"] = "roles";
|
|
11
|
+
CHECKPOINT_INCLUDE["departments"] = "departments";
|
|
12
|
+
CHECKPOINT_INCLUDE["ves_created_at_checkpoint"] = "ves_created_at_checkpoint";
|
|
13
|
+
CHECKPOINT_INCLUDE["ves_directed_at_checkpoint"] = "ves_directed_at_checkpoint";
|
|
14
|
+
})(CHECKPOINT_INCLUDE || (exports.CHECKPOINT_INCLUDE = CHECKPOINT_INCLUDE = {}));
|
|
15
|
+
var CHECKPOINT_TYPE;
|
|
16
|
+
(function (CHECKPOINT_TYPE) {
|
|
17
|
+
CHECKPOINT_TYPE["ENTRY"] = "ENTRY";
|
|
18
|
+
CHECKPOINT_TYPE["INTERMEDIATE"] = "INTERMEDIATE";
|
|
19
|
+
CHECKPOINT_TYPE["EXIT"] = "EXIT";
|
|
20
|
+
})(CHECKPOINT_TYPE || (exports.CHECKPOINT_TYPE = CHECKPOINT_TYPE = {}));
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { INestedASN } from "../../asn.typings";
|
|
2
|
+
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
|
+
import { INestedCompany } from "../../company.typings";
|
|
4
|
+
import { INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
5
|
+
import { INestedPo } from "../../po.typings";
|
|
6
|
+
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
7
|
+
import { INestedUser } from "../../user.typings";
|
|
8
|
+
import { INestedCheckpoint } from "./checkpoints.typings";
|
|
9
|
+
import { INestedVESItem } from "./vesItem.typings";
|
|
10
|
+
export declare enum VES_PARENT_DOCUMENT_TYPE {
|
|
11
|
+
ASN = "ASN",
|
|
12
|
+
PO = "PO"
|
|
13
|
+
}
|
|
14
|
+
export declare enum VES_VIEW_TABS {
|
|
15
|
+
ITEMS = "ITEMS",
|
|
16
|
+
APPROVALS = "APPROVALS",
|
|
17
|
+
TRAIL = "TRAIL",
|
|
18
|
+
LOGS = "LOGS"
|
|
19
|
+
}
|
|
20
|
+
export declare enum VES_STATUS {
|
|
21
|
+
ARRIVED = "ARRIVED",
|
|
22
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
23
|
+
REQUESTED_AT_SHIPPING_LOCATION = "REQUESTED_AT_SHIPPING_LOCATION",
|
|
24
|
+
IN_TRANSIT = "IN_TRANSIT",
|
|
25
|
+
EXITED = "EXITED"
|
|
26
|
+
}
|
|
27
|
+
export declare enum VES_INCLUDE {
|
|
28
|
+
company = "company",
|
|
29
|
+
target_store_location = "target_store_location",
|
|
30
|
+
created_by_user = "created_by_user",
|
|
31
|
+
last_updated_by_user = "last_updated_by_user",
|
|
32
|
+
created_at_checkpoint = "created_at_checkpoint",
|
|
33
|
+
directed_to_checkpoint = "directed_to_checkpoint",
|
|
34
|
+
parent_po = "parent_po",
|
|
35
|
+
parent_asn = "parent_asn",
|
|
36
|
+
items = "items",
|
|
37
|
+
store_location_approval_chain = "store_location_approval_chain",
|
|
38
|
+
take_on_approval_by_user = "take_on_approval_by_user"
|
|
39
|
+
}
|
|
40
|
+
export interface IVESFilters extends Partial<Pick<IVES, "created_at_checkpoint_id" | "directed_to_checkpoint_id" | "parent_document_type" | "target_store_location_id" | "was_sent_to_store_location_without_confirmation">> {
|
|
41
|
+
name?: string | null;
|
|
42
|
+
include?: VES_INCLUDE[];
|
|
43
|
+
}
|
|
44
|
+
export interface IVESFiltersWithPagination extends IVESFilters, IPaginationFilters {
|
|
45
|
+
}
|
|
46
|
+
export interface IVES {
|
|
47
|
+
id: string;
|
|
48
|
+
ves_no: string;
|
|
49
|
+
parent_document_type: VES_PARENT_DOCUMENT_TYPE;
|
|
50
|
+
company_id: string;
|
|
51
|
+
target_store_location_id: string;
|
|
52
|
+
last_updated_by_user_id: string;
|
|
53
|
+
created_by_user_id: string;
|
|
54
|
+
take_on_approval_by_user_id: string | null;
|
|
55
|
+
created_at_checkpoint_id: string;
|
|
56
|
+
directed_to_checkpoint_id: string;
|
|
57
|
+
parent_po_id: string | null;
|
|
58
|
+
parent_asn_id: string | null;
|
|
59
|
+
status: VES_STATUS;
|
|
60
|
+
remarks: string | null;
|
|
61
|
+
driver_name: string;
|
|
62
|
+
driver_contact: string;
|
|
63
|
+
vehicle_no: string;
|
|
64
|
+
invoice_no: string;
|
|
65
|
+
was_sent_to_store_location_without_confirmation: boolean;
|
|
66
|
+
is_deleted: boolean;
|
|
67
|
+
deleted_at: string | null;
|
|
68
|
+
take_on_approval_at: string | null;
|
|
69
|
+
created_at: string;
|
|
70
|
+
updated_at: string;
|
|
71
|
+
company: INestedCompany | null;
|
|
72
|
+
target_store_location: INestedStoreLocation | null;
|
|
73
|
+
created_by_user: INestedUser | null;
|
|
74
|
+
last_updated_by_user: INestedUser | null;
|
|
75
|
+
take_on_approval_by_user: INestedUser | null;
|
|
76
|
+
created_at_checkpoint: INestedCheckpoint | null;
|
|
77
|
+
directed_to_checkpoint: INestedCheckpoint | null;
|
|
78
|
+
parent_po: INestedPo | null;
|
|
79
|
+
parent_asn: INestedASN | null;
|
|
80
|
+
items: INestedVESItem[] | null;
|
|
81
|
+
store_location_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
82
|
+
}
|
|
83
|
+
export interface INestedVES extends Omit<IVES, "company" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "items" | "store_location_approval_chain"> {
|
|
84
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VES_INCLUDE = exports.VES_STATUS = exports.VES_VIEW_TABS = exports.VES_PARENT_DOCUMENT_TYPE = void 0;
|
|
4
|
+
var VES_PARENT_DOCUMENT_TYPE;
|
|
5
|
+
(function (VES_PARENT_DOCUMENT_TYPE) {
|
|
6
|
+
VES_PARENT_DOCUMENT_TYPE["ASN"] = "ASN";
|
|
7
|
+
VES_PARENT_DOCUMENT_TYPE["PO"] = "PO";
|
|
8
|
+
})(VES_PARENT_DOCUMENT_TYPE || (exports.VES_PARENT_DOCUMENT_TYPE = VES_PARENT_DOCUMENT_TYPE = {}));
|
|
9
|
+
var VES_VIEW_TABS;
|
|
10
|
+
(function (VES_VIEW_TABS) {
|
|
11
|
+
VES_VIEW_TABS["ITEMS"] = "ITEMS";
|
|
12
|
+
VES_VIEW_TABS["APPROVALS"] = "APPROVALS";
|
|
13
|
+
VES_VIEW_TABS["TRAIL"] = "TRAIL";
|
|
14
|
+
VES_VIEW_TABS["LOGS"] = "LOGS";
|
|
15
|
+
})(VES_VIEW_TABS || (exports.VES_VIEW_TABS = VES_VIEW_TABS = {}));
|
|
16
|
+
var VES_STATUS;
|
|
17
|
+
(function (VES_STATUS) {
|
|
18
|
+
VES_STATUS["ARRIVED"] = "ARRIVED";
|
|
19
|
+
VES_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
20
|
+
VES_STATUS["REQUESTED_AT_SHIPPING_LOCATION"] = "REQUESTED_AT_SHIPPING_LOCATION";
|
|
21
|
+
VES_STATUS["IN_TRANSIT"] = "IN_TRANSIT";
|
|
22
|
+
VES_STATUS["EXITED"] = "EXITED";
|
|
23
|
+
})(VES_STATUS || (exports.VES_STATUS = VES_STATUS = {}));
|
|
24
|
+
var VES_INCLUDE;
|
|
25
|
+
(function (VES_INCLUDE) {
|
|
26
|
+
VES_INCLUDE["company"] = "company";
|
|
27
|
+
VES_INCLUDE["target_store_location"] = "target_store_location";
|
|
28
|
+
VES_INCLUDE["created_by_user"] = "created_by_user";
|
|
29
|
+
VES_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
30
|
+
VES_INCLUDE["created_at_checkpoint"] = "created_at_checkpoint";
|
|
31
|
+
VES_INCLUDE["directed_to_checkpoint"] = "directed_to_checkpoint";
|
|
32
|
+
VES_INCLUDE["parent_po"] = "parent_po";
|
|
33
|
+
VES_INCLUDE["parent_asn"] = "parent_asn";
|
|
34
|
+
VES_INCLUDE["items"] = "items";
|
|
35
|
+
VES_INCLUDE["store_location_approval_chain"] = "store_location_approval_chain";
|
|
36
|
+
VES_INCLUDE["take_on_approval_by_user"] = "take_on_approval_by_user";
|
|
37
|
+
})(VES_INCLUDE || (exports.VES_INCLUDE = VES_INCLUDE = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { INestedItem } from "../../item.typings";
|
|
2
|
+
import { INestedVES } from "./ves.typings";
|
|
3
|
+
export declare enum VES_ITEM_INCLUDE {
|
|
4
|
+
item = "item",
|
|
5
|
+
parent_ves = "parent_ves"
|
|
6
|
+
}
|
|
7
|
+
export interface IVesItem {
|
|
8
|
+
id: string;
|
|
9
|
+
item_id: string;
|
|
10
|
+
quantity: number;
|
|
11
|
+
remarks: string | null;
|
|
12
|
+
is_deleted: boolean;
|
|
13
|
+
deleted_at: Date | null;
|
|
14
|
+
created_at: Date;
|
|
15
|
+
updated_at: Date;
|
|
16
|
+
item: INestedItem | null;
|
|
17
|
+
parent_ves: INestedVES | null;
|
|
18
|
+
}
|
|
19
|
+
export interface INestedVESItem extends Omit<IVesItem, "item" | "parent_ves"> {
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VES_ITEM_INCLUDE = void 0;
|
|
4
|
+
var VES_ITEM_INCLUDE;
|
|
5
|
+
(function (VES_ITEM_INCLUDE) {
|
|
6
|
+
VES_ITEM_INCLUDE["item"] = "item";
|
|
7
|
+
VES_ITEM_INCLUDE["parent_ves"] = "parent_ves";
|
|
8
|
+
})(VES_ITEM_INCLUDE || (exports.VES_ITEM_INCLUDE = VES_ITEM_INCLUDE = {}));
|
|
@@ -4,7 +4,7 @@ import { INestedCompany } from "../../company.typings";
|
|
|
4
4
|
import { INestedCompanyVendors } from "../../companyVendors.typings";
|
|
5
5
|
import { INestedDepartment } from "../../department.typings";
|
|
6
6
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
7
|
-
import {
|
|
7
|
+
import { IExtraFormAnswerInput, INestedExtraFormAnswerEntitys } from "../../settings/form/extraFormAns.typings";
|
|
8
8
|
import { INestedUser, IUser } from "../../user.typings";
|
|
9
9
|
import { IVendorInputs } from "../../vendor.typings";
|
|
10
10
|
import { INestedVendorManagementBody } from "../masters/vendorManagementBody.typings";
|
|
@@ -107,7 +107,7 @@ export interface IOpenVendorOnboardingRequestApprovalData {
|
|
|
107
107
|
entityApprovalChainEntry: IEntityApprovalChainEntry;
|
|
108
108
|
}
|
|
109
109
|
export interface IVendorPATFormSubmit {
|
|
110
|
-
submittedExtraFormAns:
|
|
110
|
+
submittedExtraFormAns: IExtraFormAnswerInput[] | null;
|
|
111
111
|
submittedAnsForVednroCoreField: IVendorInputs | null;
|
|
112
112
|
}
|
|
113
113
|
export interface IPREASSESSMENT_FORM_LINK_TOKEN_PAYLOAD {
|
|
@@ -44,6 +44,8 @@ import { DATE_TIME_UNITS } from "../constants/date.constants";
|
|
|
44
44
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
45
45
|
import { INestedPOGRNItemJunction } from "./poGrnJunctionItems.typings";
|
|
46
46
|
import { INestedFormRolback } from "./vendor/vendorFormRollbackRemark.typings";
|
|
47
|
+
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
48
|
+
import { INestedVES } from "./company/masters/ves.typings";
|
|
47
49
|
export declare enum PRICING_PLANS {
|
|
48
50
|
BASIC = "BASIC",
|
|
49
51
|
GROWTH = "GROWTH",
|
|
@@ -100,7 +102,8 @@ export declare enum COMPANY_INCLUDE {
|
|
|
100
102
|
vendor_management_bodies = "vendor_management_bodies",
|
|
101
103
|
vendor_onboarding_request_categories = "vendor_onboarding_request_categories",
|
|
102
104
|
item_management_bodies = "item_management_bodies",
|
|
103
|
-
rollback_forms_sent_by_company = "rollback_forms_sent_by_company"
|
|
105
|
+
rollback_forms_sent_by_company = "rollback_forms_sent_by_company",
|
|
106
|
+
company_ves = "company_ves"
|
|
104
107
|
}
|
|
105
108
|
export interface ICompany extends IAddress {
|
|
106
109
|
id: string;
|
|
@@ -187,8 +190,10 @@ export interface ICompany extends IAddress {
|
|
|
187
190
|
vendor_management_bodies: INestedVendorManagementBody[] | null;
|
|
188
191
|
item_management_bodies: INestedItemManagementBody[] | null;
|
|
189
192
|
rollback_forms_sent_by_company: INestedFormRolback[] | null;
|
|
193
|
+
company_checkpoints: INestedCheckpoint[] | null;
|
|
194
|
+
company_ves: INestedVES[] | null;
|
|
190
195
|
}
|
|
191
|
-
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" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company"> {
|
|
196
|
+
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" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company" | "company_checkpoints" | "company_ves"> {
|
|
192
197
|
}
|
|
193
198
|
export interface ICompanyVendorAdditionalInfoMappingConfig {
|
|
194
199
|
additional_info_form_que_id: string;
|
|
@@ -58,6 +58,7 @@ var COMPANY_INCLUDE;
|
|
|
58
58
|
COMPANY_INCLUDE["vendor_onboarding_request_categories"] = "vendor_onboarding_request_categories";
|
|
59
59
|
COMPANY_INCLUDE["item_management_bodies"] = "item_management_bodies";
|
|
60
60
|
COMPANY_INCLUDE["rollback_forms_sent_by_company"] = "rollback_forms_sent_by_company";
|
|
61
|
+
COMPANY_INCLUDE["company_ves"] = "company_ves";
|
|
61
62
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
62
63
|
// export interface IUpdateVendorOnboardingRequestCategoriesInputs
|
|
63
64
|
// extends Pick<ICompany, "vendor_onboarding_request_categories"> {}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EntityTypes } from "../constants/entityTypes.constants";
|
|
2
2
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
3
3
|
import { INestedCompany } from "./company.typings";
|
|
4
|
+
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
4
5
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
5
6
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
6
7
|
import { INestedVendorOnboardingRequest } from "./company/vendorOnboardingRequest/vendorOnboardingRequest.typing";
|
|
@@ -14,18 +15,15 @@ import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
|
14
15
|
import { INestedRole } from "./roles.typings";
|
|
15
16
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
16
17
|
import { INestedUser } from "./user.typings";
|
|
17
|
-
export interface IDepartmentFilters {
|
|
18
|
+
export interface IDepartmentFilters extends Partial<Pick<IDepartment, "company_id" | "office_id" | "store_location_id" | "purchase_location_id" | "gate_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id">> {
|
|
18
19
|
name?: string;
|
|
19
|
-
company_id?: string;
|
|
20
|
-
office_id?: string;
|
|
21
|
-
store_location_id?: string;
|
|
22
|
-
purchase_location_id?: string;
|
|
23
|
-
gate_id?: string;
|
|
24
|
-
vendor_management_body_id?: string;
|
|
25
|
-
item_management_body_id?: string;
|
|
26
20
|
type?: EntityTypes;
|
|
27
21
|
include?: DepartmentInclude[];
|
|
28
22
|
}
|
|
23
|
+
export interface IGateDepartmentForGRNByStoreLocationId extends Required<Pick<IDepartmentFilters, "store_location_id">>, Pick<IDepartmentFilters, "name" | "include"> {
|
|
24
|
+
}
|
|
25
|
+
export interface IGateDepartmentForGRNByStoreLocationIdWithPagination extends IGateDepartmentForGRNByStoreLocationId, IPaginationFilters {
|
|
26
|
+
}
|
|
29
27
|
export interface IDepartmentFiltersWithPagination extends IPaginationFilters, IDepartmentFilters {
|
|
30
28
|
}
|
|
31
29
|
export interface IDepartment {
|
|
@@ -39,6 +37,7 @@ export interface IDepartment {
|
|
|
39
37
|
purchase_location_id?: string | null;
|
|
40
38
|
vendor_management_body_id?: string | null;
|
|
41
39
|
item_management_body_id?: string | null;
|
|
40
|
+
checkpoint_id?: string | null;
|
|
42
41
|
department_name: string;
|
|
43
42
|
department_code: string;
|
|
44
43
|
created_by_id: string;
|
|
@@ -55,6 +54,7 @@ export interface IDepartment {
|
|
|
55
54
|
parent_gate?: null | INestedGate;
|
|
56
55
|
parent_vendor_management_body: INestedVendorManagementBody | null;
|
|
57
56
|
parent_item_management_body: INestedItemManagementBody | null;
|
|
57
|
+
parent_checkpoint: INestedCheckpoint | null;
|
|
58
58
|
indents?: null | INestedIndent[];
|
|
59
59
|
mis?: null | INestedMI[];
|
|
60
60
|
subdepartments?: null | INestedSubdepartment[];
|
|
@@ -63,21 +63,25 @@ export interface IDepartment {
|
|
|
63
63
|
mrns?: null | INestedMRN[];
|
|
64
64
|
vendor_onboarding_requests?: INestedVendorOnboardingRequest[] | null;
|
|
65
65
|
}
|
|
66
|
-
export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "subdepartments" | "roles" | "grns" | "mrns" | "parent_vendor_management_body" | "vendor_onboarding_requests" | "parent_item_management_body"> {
|
|
66
|
+
export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "subdepartments" | "roles" | "grns" | "mrns" | "parent_vendor_management_body" | "vendor_onboarding_requests" | "parent_item_management_body" | "parent_checkpoint"> {
|
|
67
67
|
}
|
|
68
68
|
export declare enum DepartmentInclude {
|
|
69
|
+
company = "company",
|
|
69
70
|
subdepartments = "subdepartments",
|
|
70
71
|
roles = "roles",
|
|
71
72
|
hod = "hod",
|
|
72
73
|
grns = "grns",
|
|
73
74
|
mrns = "mrns",
|
|
75
|
+
indents = "indents",
|
|
76
|
+
mis = "mis",
|
|
74
77
|
parent_store_location = "parent_store_location",
|
|
75
78
|
parent_purchase_location = "parent_purchase_location",
|
|
76
79
|
parent_office = "parent_office",
|
|
77
80
|
parent_gate = "parent_gate",
|
|
78
81
|
parent_vendor_management_body = "parent_vendor_management_body",
|
|
79
82
|
vendor_onboarding_requests = "vendor_onboarding_requests",
|
|
80
|
-
parent_item_management_body = "parent_item_management_body"
|
|
83
|
+
parent_item_management_body = "parent_item_management_body",
|
|
84
|
+
parent_checkpoint = "parent_checkpoint"
|
|
81
85
|
}
|
|
82
86
|
export interface ISubDepartment {
|
|
83
87
|
id: string;
|
|
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DepartmentInclude = void 0;
|
|
4
4
|
var DepartmentInclude;
|
|
5
5
|
(function (DepartmentInclude) {
|
|
6
|
+
DepartmentInclude["company"] = "company";
|
|
6
7
|
DepartmentInclude["subdepartments"] = "subdepartments";
|
|
7
8
|
DepartmentInclude["roles"] = "roles";
|
|
8
9
|
DepartmentInclude["hod"] = "hod";
|
|
9
10
|
DepartmentInclude["grns"] = "grns";
|
|
10
11
|
DepartmentInclude["mrns"] = "mrns";
|
|
12
|
+
DepartmentInclude["indents"] = "indents";
|
|
13
|
+
DepartmentInclude["mis"] = "mis";
|
|
11
14
|
DepartmentInclude["parent_store_location"] = "parent_store_location";
|
|
12
15
|
DepartmentInclude["parent_purchase_location"] = "parent_purchase_location";
|
|
13
16
|
DepartmentInclude["parent_office"] = "parent_office";
|
|
@@ -15,4 +18,5 @@ var DepartmentInclude;
|
|
|
15
18
|
DepartmentInclude["parent_vendor_management_body"] = "parent_vendor_management_body";
|
|
16
19
|
DepartmentInclude["vendor_onboarding_requests"] = "vendor_onboarding_requests";
|
|
17
20
|
DepartmentInclude["parent_item_management_body"] = "parent_item_management_body";
|
|
21
|
+
DepartmentInclude["parent_checkpoint"] = "parent_checkpoint";
|
|
18
22
|
})(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { INestedASN } from "./asn.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
3
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
4
|
+
import { INestedVES } from "./company/masters/ves.typings";
|
|
4
5
|
import { INestedVendorOnboardingRequest } from "./company/vendorOnboardingRequest/vendorOnboardingRequest.typing";
|
|
5
6
|
import { INestedVendorOnboardingRequestScore } from "./company/vendorOnboardingRequest/vendorOnboardingRequestScore.typings";
|
|
6
7
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
@@ -29,7 +30,8 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
|
29
30
|
ISTD_DEST = "ISTD_DEST",
|
|
30
31
|
VENDOR_ONBOARDING_REQUEST = "VENDOR_ONBOARDING_REQUEST",
|
|
31
32
|
WAITLIST_VENDORS = "WAITLISTED_VENDORS",
|
|
32
|
-
ITEMS = "ITEMS"
|
|
33
|
+
ITEMS = "ITEMS",
|
|
34
|
+
VES = "VES"
|
|
33
35
|
}
|
|
34
36
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
35
37
|
company = "company",
|
|
@@ -49,7 +51,8 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
|
49
51
|
vendor_onboarding_request = "vendor_onboarding_request",
|
|
50
52
|
item = "item",
|
|
51
53
|
company_vendor = "company_vendor",
|
|
52
|
-
vendor_onboarding_request_scores = "vendor_onboarding_request_scores"
|
|
54
|
+
vendor_onboarding_request_scores = "vendor_onboarding_request_scores",
|
|
55
|
+
ves = "ves"
|
|
53
56
|
}
|
|
54
57
|
export interface IEntityApprovalChainEntry {
|
|
55
58
|
id: string;
|
|
@@ -74,6 +77,7 @@ export interface IEntityApprovalChainEntry {
|
|
|
74
77
|
vendor_onboarding_request_id?: string | null;
|
|
75
78
|
item_id?: string | null;
|
|
76
79
|
company_vendor_id?: string | null;
|
|
80
|
+
ves_id?: string | null;
|
|
77
81
|
deleted_at: string | null;
|
|
78
82
|
is_deleted: boolean | null;
|
|
79
83
|
created_at: string | null;
|
|
@@ -94,9 +98,10 @@ export interface IEntityApprovalChainEntry {
|
|
|
94
98
|
dest_istd?: INestedISTD | null;
|
|
95
99
|
vendor_onboarding_request?: INestedVendorOnboardingRequest | null;
|
|
96
100
|
company_vendor?: INestedCompanyVendors | null;
|
|
101
|
+
ves?: INestedVES | null;
|
|
97
102
|
vendor_onboarding_request_scores?: INestedVendorOnboardingRequestScore[] | null;
|
|
98
103
|
item: INestedItem | null;
|
|
99
104
|
asn: INestedASN | null;
|
|
100
105
|
}
|
|
101
|
-
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "grn" | "mrn" | "source_istd" | "dest_istd" | "vendor_onboarding_request" | "company_vendor" | "vendor_onboarding_request_scores" | "item" | "asn"> {
|
|
106
|
+
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "grn" | "mrn" | "source_istd" | "dest_istd" | "vendor_onboarding_request" | "company_vendor" | "vendor_onboarding_request_scores" | "item" | "asn" | "ves"> {
|
|
102
107
|
}
|
|
@@ -17,6 +17,7 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS;
|
|
|
17
17
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["VENDOR_ONBOARDING_REQUEST"] = "VENDOR_ONBOARDING_REQUEST";
|
|
18
18
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["WAITLIST_VENDORS"] = "WAITLISTED_VENDORS";
|
|
19
19
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ITEMS"] = "ITEMS";
|
|
20
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["VES"] = "VES";
|
|
20
21
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = {}));
|
|
21
22
|
var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
22
23
|
(function (ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES) {
|
|
@@ -38,4 +39,5 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
|
38
39
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["item"] = "item";
|
|
39
40
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["company_vendor"] = "company_vendor";
|
|
40
41
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["vendor_onboarding_request_scores"] = "vendor_onboarding_request_scores";
|
|
42
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["ves"] = "ves";
|
|
41
43
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = {}));
|
|
@@ -23,6 +23,7 @@ import { INestedItemManagementBody } from "./company/masters/itemManagementbody.
|
|
|
23
23
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
24
24
|
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
25
25
|
import { INestedPOGRNItemJunction } from "./poGrnJunctionItems.typings";
|
|
26
|
+
import { INestedVESItem } from "./company/masters/vesItem.typings";
|
|
26
27
|
export interface IOpenItemApprovalsTokenVerificationResponse {
|
|
27
28
|
itemData: IItem;
|
|
28
29
|
entityApprovalChainEntry: IEntityApprovalChainEntry;
|
|
@@ -65,7 +66,8 @@ export declare enum ITEM_INCLUDE {
|
|
|
65
66
|
approval_chain = "approval_chain",
|
|
66
67
|
sent_for_approval_by = "sent_for_approval_by",
|
|
67
68
|
used_in_po_grn_item_junction = "used_in_po_grn_item_junction",
|
|
68
|
-
cancelled_by_user = "cancelled_by_user"
|
|
69
|
+
cancelled_by_user = "cancelled_by_user",
|
|
70
|
+
used_in_ves_items = "used_in_ves_items"
|
|
69
71
|
}
|
|
70
72
|
export interface IOpenItemApprovalsPayload extends IOpenApprovalsBase {
|
|
71
73
|
item_id: string;
|
|
@@ -170,8 +172,9 @@ export interface IItem {
|
|
|
170
172
|
parent_item_management_body: INestedItemManagementBody | null;
|
|
171
173
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
172
174
|
cancelled_by_user: INestedUser | null;
|
|
175
|
+
used_in_ves_items: INestedVESItem[] | null;
|
|
173
176
|
}
|
|
174
|
-
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" | "cancelled_by_user"> {
|
|
177
|
+
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" | "cancelled_by_user" | "used_in_ves_items"> {
|
|
175
178
|
}
|
|
176
179
|
export declare const ITEM_CLASSIFICATION: {
|
|
177
180
|
DIRECT: string;
|
|
@@ -42,6 +42,7 @@ var ITEM_INCLUDE;
|
|
|
42
42
|
ITEM_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
|
|
43
43
|
ITEM_INCLUDE["used_in_po_grn_item_junction"] = "used_in_po_grn_item_junction";
|
|
44
44
|
ITEM_INCLUDE["cancelled_by_user"] = "cancelled_by_user";
|
|
45
|
+
ITEM_INCLUDE["used_in_ves_items"] = "used_in_ves_items";
|
|
45
46
|
})(ITEM_INCLUDE || (exports.ITEM_INCLUDE = ITEM_INCLUDE = {}));
|
|
46
47
|
exports.ITEM_CLASSIFICATION = {
|
|
47
48
|
DIRECT: "Direct",
|
|
@@ -2,6 +2,7 @@ import { INestedBOM } from "./bom.typings";
|
|
|
2
2
|
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
3
3
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
4
|
import { INestedCompany } from "./company.typings";
|
|
5
|
+
import { INestedVES } from "./company/masters/ves.typings";
|
|
5
6
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
6
7
|
import { INestedComparative, INestedComparativeItem } from "./comparative.typings";
|
|
7
8
|
import { CONTACT_PERSON_TYPE, INestedContactPeople } from "./contactPeople.typings";
|
|
@@ -129,8 +130,9 @@ export interface IPurchaseOrder {
|
|
|
129
130
|
invoices: INestedInvoice[] | null;
|
|
130
131
|
directly_created_grns: INestedGRN[] | null;
|
|
131
132
|
po_grn_items_junctions: INestedPOGRNItemJunction[] | null;
|
|
133
|
+
child_ves: INestedVES[] | null;
|
|
132
134
|
}
|
|
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"> {
|
|
135
|
+
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" | "child_ves"> {
|
|
134
136
|
}
|
|
135
137
|
export declare enum PO_INCLUDE {
|
|
136
138
|
invoices = "invoices",
|
|
@@ -156,7 +158,8 @@ export declare enum PO_INCLUDE {
|
|
|
156
158
|
least_purchase_price_items = "least_purchase_price_items",
|
|
157
159
|
previous_purchase_price_items = "previous_purchase_price_items",
|
|
158
160
|
po_grn_items_junctions = "po_grn_items_junctions",
|
|
159
|
-
directly_created_grns = "directly_created_grns"
|
|
161
|
+
directly_created_grns = "directly_created_grns",
|
|
162
|
+
child_ves = "child_ves"
|
|
160
163
|
}
|
|
161
164
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
162
165
|
id: string;
|
|
@@ -65,6 +65,7 @@ var PO_INCLUDE;
|
|
|
65
65
|
PO_INCLUDE["previous_purchase_price_items"] = "previous_purchase_price_items";
|
|
66
66
|
PO_INCLUDE["po_grn_items_junctions"] = "po_grn_items_junctions";
|
|
67
67
|
PO_INCLUDE["directly_created_grns"] = "directly_created_grns";
|
|
68
|
+
PO_INCLUDE["child_ves"] = "child_ves";
|
|
68
69
|
})(PO_INCLUDE || (exports.PO_INCLUDE = PO_INCLUDE = {}));
|
|
69
70
|
var PO_ITEM_INCLUDE;
|
|
70
71
|
(function (PO_ITEM_INCLUDE) {
|
|
@@ -2,6 +2,7 @@ import { PERMISSION_RESOURCES, PERMISSION_ACTIONS } from "../constants/permissio
|
|
|
2
2
|
import { INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
3
3
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
4
|
import { INestedCompany } from "./company.typings";
|
|
5
|
+
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
5
6
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
6
7
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
7
8
|
import { INestedDepartment } from "./department.typings";
|
|
@@ -11,14 +12,23 @@ import { INestedOffice } from "./offices.typings";
|
|
|
11
12
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
12
13
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
13
14
|
import { INestedUser } from "./user.typings";
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
export declare enum RolesInclude {
|
|
16
|
+
vendor_management_body = "vendor_management_body",
|
|
17
|
+
assigned_users = "assigned_users",
|
|
18
|
+
entity_approval_chain_entries = "entity_approval_chain_entries",
|
|
19
|
+
approval_chains = "approval_chains",
|
|
20
|
+
assigned_active_users = "assigned_active_users",
|
|
21
|
+
permissions = "permissions",
|
|
22
|
+
gates = "gates",
|
|
23
|
+
purchase_location = "purchase_location",
|
|
24
|
+
store_location = "store_location",
|
|
25
|
+
office = "office",
|
|
26
|
+
department = "department",
|
|
27
|
+
company = "company",
|
|
28
|
+
item_management_body = "item_management_body",
|
|
29
|
+
checkpoint = "checkpoint"
|
|
30
|
+
}
|
|
31
|
+
export interface IRoleFilters extends Partial<Pick<IRoles, "company_id" | "store_location_id" | "purchase_location_id" | "gate_id" | "office_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id">> {
|
|
22
32
|
type?: string;
|
|
23
33
|
name?: string;
|
|
24
34
|
department_ids?: string[];
|
|
@@ -42,6 +52,7 @@ export interface IRoles {
|
|
|
42
52
|
gate_id: string | null;
|
|
43
53
|
vendor_management_body_id: string | null;
|
|
44
54
|
item_management_body_id: string | null;
|
|
55
|
+
checkpoint_id: string | null;
|
|
45
56
|
is_enabled: boolean;
|
|
46
57
|
is_deleted: boolean;
|
|
47
58
|
deleted_at: string;
|
|
@@ -60,8 +71,9 @@ export interface IRoles {
|
|
|
60
71
|
entity_approval_chain_entries?: null | INestedEntityApprovalChainEntry[];
|
|
61
72
|
assigned_users?: null | INestedUser[];
|
|
62
73
|
item_management_body: INestedItemManagementBody | null;
|
|
74
|
+
checkpoint: INestedCheckpoint | null;
|
|
63
75
|
}
|
|
64
|
-
export interface INestedRole extends Omit<IRoles, "company" | "department" | "office" | "store_location" | "purchase_location" | "gates" | "permissions" | "assigned_active_users" | "approval_chains" | "entity_approval_chain_entries" | "assigned_users" | "vendor_management_body" | "item_management_body"> {
|
|
76
|
+
export interface INestedRole extends Omit<IRoles, "company" | "department" | "office" | "store_location" | "purchase_location" | "gates" | "permissions" | "assigned_active_users" | "approval_chains" | "entity_approval_chain_entries" | "assigned_users" | "vendor_management_body" | "item_management_body" | "checkpoint"> {
|
|
65
77
|
}
|
|
66
78
|
export interface IPermissions extends Record<string | PERMISSION_ACTIONS, any> {
|
|
67
79
|
id: string;
|
|
@@ -81,18 +93,3 @@ export interface IPermissions extends Record<string | PERMISSION_ACTIONS, any> {
|
|
|
81
93
|
}
|
|
82
94
|
export interface INestedPermission extends Omit<IPermissions, "company" | "parent_role"> {
|
|
83
95
|
}
|
|
84
|
-
export declare enum RolesInclude {
|
|
85
|
-
vendor_management_body = "vendor_management_body",
|
|
86
|
-
assigned_users = "assigned_users",
|
|
87
|
-
entity_approval_chain_entries = "entity_approval_chain_entries",
|
|
88
|
-
approval_chains = "approval_chains",
|
|
89
|
-
assigned_active_users = "assigned_active_users",
|
|
90
|
-
permissions = "permissions",
|
|
91
|
-
gates = "gates",
|
|
92
|
-
purchase_location = "purchase_location",
|
|
93
|
-
store_location = "store_location",
|
|
94
|
-
office = "office",
|
|
95
|
-
department = "department",
|
|
96
|
-
company = "company",
|
|
97
|
-
item_management_body = "item_management_body"
|
|
98
|
-
}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RolesInclude = void 0;
|
|
4
4
|
const permission_constants_1 = require("../constants/permission.constants");
|
|
5
|
+
// export enum RolesInclude {
|
|
6
|
+
// permissions = 'permissions',
|
|
7
|
+
// }
|
|
5
8
|
var RolesInclude;
|
|
6
9
|
(function (RolesInclude) {
|
|
7
10
|
RolesInclude["vendor_management_body"] = "vendor_management_body";
|
|
@@ -17,4 +20,5 @@ var RolesInclude;
|
|
|
17
20
|
RolesInclude["department"] = "department";
|
|
18
21
|
RolesInclude["company"] = "company";
|
|
19
22
|
RolesInclude["item_management_body"] = "item_management_body";
|
|
23
|
+
RolesInclude["checkpoint"] = "checkpoint";
|
|
20
24
|
})(RolesInclude || (exports.RolesInclude = RolesInclude = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEXtraFormAnswers } from "./extraFormAns.typings";
|
|
1
|
+
import { IExtraFormAnswerInput, IEXtraFormAnswers } from "./extraFormAns.typings";
|
|
2
2
|
import { IExtraFormQuestions } from "./extraFormQues.typings";
|
|
3
3
|
export interface IExtraFormQueAnsUnit {
|
|
4
4
|
question: IExtraFormQuestions;
|
|
@@ -21,3 +21,6 @@ export interface IPATFormQuesAnsReq {
|
|
|
21
21
|
export interface IVendorComplianceFormQueAnsReqForVendor {
|
|
22
22
|
company_id: string;
|
|
23
23
|
}
|
|
24
|
+
export interface ISubmitExtraFormAnswersReq {
|
|
25
|
+
answers: IExtraFormAnswerInput[];
|
|
26
|
+
}
|
|
@@ -43,7 +43,7 @@ export interface IEXtraFormAnswers {
|
|
|
43
43
|
}
|
|
44
44
|
export interface INestedExtraFormAnswerEntitys extends Omit<IEXtraFormAnswers, "parent_que" | "company" | "user" | "vendor" | "vendor_onboarding_request" | "scores" | "company_vendor"> {
|
|
45
45
|
}
|
|
46
|
-
export interface
|
|
46
|
+
export interface IExtraFormAnswerInput extends Pick<IEXtraFormAnswers, "parent_que_id" | "date_ans" | "text_ans" | "yes_no_ans" | "keywords_ans" | "selected_opts_ans" | "upload_link" | "metadata"> {
|
|
47
47
|
}
|
|
48
48
|
/** @description This is the type of response which will include all the core question related answers */
|
|
49
49
|
export interface IExtraCoreFormAnswers {
|
|
@@ -21,6 +21,7 @@ import { INestedISTD } from "./company/istd/istd.typings";
|
|
|
21
21
|
import { INestedIAD } from "./company/iad/iad.typings";
|
|
22
22
|
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
23
23
|
import { INestedPR } from "./pr.typings";
|
|
24
|
+
import { INestedVES } from "./company/masters/ves.typings";
|
|
24
25
|
export interface IStoreLocationFilters {
|
|
25
26
|
name?: string;
|
|
26
27
|
company_id?: string;
|
|
@@ -66,8 +67,9 @@ export interface IStoreLocation extends IAddress {
|
|
|
66
67
|
as_dest_store_location_for_istds?: INestedISTD[] | null;
|
|
67
68
|
iads?: INestedIAD[] | null;
|
|
68
69
|
inventory_logs?: INestedInventoryLog[] | null;
|
|
70
|
+
target_location_for_ves?: INestedVES[] | null;
|
|
69
71
|
}
|
|
70
|
-
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "prs" | "as_shipping_location_for_rfqs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_gates" | "served_by_purchase_locations" | "as_shipping_location_for_pos" | "as_shipping_location_for_grns" | "as_shipping_location_for_asns" | "as_source_store_location_for_istds" | "as_dest_store_location_for_istds" | "iads" | "inventory_logs"> {
|
|
72
|
+
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "prs" | "as_shipping_location_for_rfqs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_gates" | "served_by_purchase_locations" | "as_shipping_location_for_pos" | "as_shipping_location_for_grns" | "as_shipping_location_for_asns" | "as_source_store_location_for_istds" | "as_dest_store_location_for_istds" | "iads" | "inventory_logs" | "target_location_for_ves"> {
|
|
71
73
|
}
|
|
72
74
|
export declare enum StoreLocationInclude {
|
|
73
75
|
company = "company",
|
|
@@ -91,5 +93,6 @@ export declare enum StoreLocationInclude {
|
|
|
91
93
|
as_source_store_location_for_istds = "as_source_store_location_for_istds",
|
|
92
94
|
as_dest_store_location_for_istds = "as_dest_store_location_for_istds",
|
|
93
95
|
iads = "iads",
|
|
94
|
-
inventory_logs = "inventory_logs"
|
|
96
|
+
inventory_logs = "inventory_logs",
|
|
97
|
+
target_location_for_ves = "target_location_for_ves"
|
|
95
98
|
}
|
|
@@ -25,4 +25,5 @@ var StoreLocationInclude;
|
|
|
25
25
|
StoreLocationInclude["as_dest_store_location_for_istds"] = "as_dest_store_location_for_istds";
|
|
26
26
|
StoreLocationInclude["iads"] = "iads";
|
|
27
27
|
StoreLocationInclude["inventory_logs"] = "inventory_logs";
|
|
28
|
+
StoreLocationInclude["target_location_for_ves"] = "target_location_for_ves";
|
|
28
29
|
})(StoreLocationInclude || (exports.StoreLocationInclude = StoreLocationInclude = {}));
|
|
@@ -40,6 +40,8 @@ import { INestedQuote } from "./quote.typings";
|
|
|
40
40
|
import { INestedASN } from "./asn.typings";
|
|
41
41
|
import { INestedInvoice } from "./invoices.typings";
|
|
42
42
|
import { INestedFormRolback } from "./vendor/vendorFormRollbackRemark.typings";
|
|
43
|
+
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
44
|
+
import { INestedVES } from "./company/masters/ves.typings";
|
|
43
45
|
export interface IUser {
|
|
44
46
|
id: string;
|
|
45
47
|
is_enabled?: boolean | null;
|
|
@@ -171,8 +173,13 @@ export interface IUser {
|
|
|
171
173
|
created_indents: INestedIndent | null;
|
|
172
174
|
rollback_forms_by_user: INestedFormRolback | null;
|
|
173
175
|
asns_sent_to_vendor_by_user: INestedASN[] | null;
|
|
176
|
+
checkpoints_created_by_user: INestedCheckpoint[] | null;
|
|
177
|
+
checkpoints_last_updated_by_user: INestedCheckpoint[] | null;
|
|
178
|
+
ves_created_by_user: INestedVES[] | null;
|
|
179
|
+
ves_last_updated_by_user: INestedVES[] | null;
|
|
180
|
+
take_on_approval_for_ves: INestedVES[] | null;
|
|
174
181
|
}
|
|
175
|
-
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "owned_companies" | "head_for_departments" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approval_chains" | "indents_created_for_user" | "created_mis" | "mis_issued_for_user" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "items_last_updated_by_user" | "company_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs" | "logs" | "vendor_onboarding_requests_created_by_user" | "vendor_onboarding_requests_last_updated" | "vendor_onboarding_requests_sent_for_approval" | "invitation_sent_for_vendor_onboarding_requests" | "created_vendor_management_bodies" | "last_updated_vendor_management_bodies" | "head_of_vendor_management_bodies" | "cancelled_vendor_onboarding_requests" | "company_vendor_created_by_user" | "company_vendors_last_updated_by_user" | "sent_for_approval_company_vendors" | "sent_questions_to_company_vendors" | "cancelled_company_vendors" | "created_vendor_onboarding_request_categories" | "last_updated_vendor_onboarding_request_categories" | "created_item_management_bodies" | "last_updated_item_management_bodies" | "as_head_of_item_management_bodies" | "created_items" | "items_sent_for_approval" | "cancelled_items" | "invoices_marked_as_paid_or_rejected" | "onboarded_company_vendors" | "created_indents" | "rollback_forms_by_user" | "asns_sent_to_vendor_by_user"> {
|
|
182
|
+
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "owned_companies" | "head_for_departments" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approval_chains" | "indents_created_for_user" | "created_mis" | "mis_issued_for_user" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "items_last_updated_by_user" | "company_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs" | "logs" | "vendor_onboarding_requests_created_by_user" | "vendor_onboarding_requests_last_updated" | "vendor_onboarding_requests_sent_for_approval" | "invitation_sent_for_vendor_onboarding_requests" | "created_vendor_management_bodies" | "last_updated_vendor_management_bodies" | "head_of_vendor_management_bodies" | "cancelled_vendor_onboarding_requests" | "company_vendor_created_by_user" | "company_vendors_last_updated_by_user" | "sent_for_approval_company_vendors" | "sent_questions_to_company_vendors" | "cancelled_company_vendors" | "created_vendor_onboarding_request_categories" | "last_updated_vendor_onboarding_request_categories" | "created_item_management_bodies" | "last_updated_item_management_bodies" | "as_head_of_item_management_bodies" | "created_items" | "items_sent_for_approval" | "cancelled_items" | "invoices_marked_as_paid_or_rejected" | "onboarded_company_vendors" | "created_indents" | "rollback_forms_by_user" | "asns_sent_to_vendor_by_user" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "ves_created_by_user" | "ves_last_updated_by_user" | "take_on_approval_for_ves"> {
|
|
176
183
|
}
|
|
177
184
|
export declare enum UserInclude {
|
|
178
185
|
subordinates = "subordinates",
|
|
@@ -280,7 +287,12 @@ export declare enum UserInclude {
|
|
|
280
287
|
invoices_marked_as_paid_or_rejected = "invoices_marked_as_paid_or_rejected",
|
|
281
288
|
onboarded_company_vendors = "onboarded_company_vendors",
|
|
282
289
|
rollback_forms_by_user = "rollback_forms_by_user",
|
|
283
|
-
asns_sent_to_vendor_by_user = "asns_sent_to_vendor_by_user"
|
|
290
|
+
asns_sent_to_vendor_by_user = "asns_sent_to_vendor_by_user",
|
|
291
|
+
checkpoints_created_by_user = "checkpoints_created_by_user",
|
|
292
|
+
checkpoints_last_updated_by_user = "checkpoints_last_updated_by_user",
|
|
293
|
+
ves_created_by_user = "ves_created_by_user",
|
|
294
|
+
ves_last_updated_by_user = "ves_last_updated_by_user",
|
|
295
|
+
take_on_approval_for_ves = "take_on_approval_for_ves"
|
|
284
296
|
}
|
|
285
297
|
export interface IUserFilters {
|
|
286
298
|
name?: string | null;
|
|
@@ -111,4 +111,9 @@ var UserInclude;
|
|
|
111
111
|
UserInclude["onboarded_company_vendors"] = "onboarded_company_vendors";
|
|
112
112
|
UserInclude["rollback_forms_by_user"] = "rollback_forms_by_user";
|
|
113
113
|
UserInclude["asns_sent_to_vendor_by_user"] = "asns_sent_to_vendor_by_user";
|
|
114
|
+
UserInclude["checkpoints_created_by_user"] = "checkpoints_created_by_user";
|
|
115
|
+
UserInclude["checkpoints_last_updated_by_user"] = "checkpoints_last_updated_by_user";
|
|
116
|
+
UserInclude["ves_created_by_user"] = "ves_created_by_user";
|
|
117
|
+
UserInclude["ves_last_updated_by_user"] = "ves_last_updated_by_user";
|
|
118
|
+
UserInclude["take_on_approval_for_ves"] = "take_on_approval_for_ves";
|
|
114
119
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|
|
@@ -72,6 +72,11 @@ describe("Get Contact Person", () => {
|
|
|
72
72
|
created_indents: null,
|
|
73
73
|
rollback_forms_by_user: null,
|
|
74
74
|
asns_sent_to_vendor_by_user: null,
|
|
75
|
+
checkpoints_created_by_user: null,
|
|
76
|
+
checkpoints_last_updated_by_user: null,
|
|
77
|
+
ves_created_by_user: null,
|
|
78
|
+
ves_last_updated_by_user: null,
|
|
79
|
+
take_on_approval_for_ves: null,
|
|
75
80
|
};
|
|
76
81
|
const contact_person = {
|
|
77
82
|
id: "",
|
|
@@ -171,6 +176,11 @@ describe("Get Contact Person", () => {
|
|
|
171
176
|
created_indents: null,
|
|
172
177
|
rollback_forms_by_user: null,
|
|
173
178
|
asns_sent_to_vendor_by_user: null,
|
|
179
|
+
checkpoints_created_by_user: null,
|
|
180
|
+
checkpoints_last_updated_by_user: null,
|
|
181
|
+
ves_created_by_user: null,
|
|
182
|
+
ves_last_updated_by_user: null,
|
|
183
|
+
take_on_approval_for_ves: null,
|
|
174
184
|
};
|
|
175
185
|
const contact_person = {
|
|
176
186
|
id: "CP-001",
|