kcommons 13.5.3 → 13.6.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 +7 -0
- package/build/constants/companyRoutes.constants.js +7 -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 +4 -1
- package/build/constants/permission.constants.js +10 -0
- package/build/index.d.ts +1 -3
- package/build/index.js +1 -4
- package/build/typings/approvalConfig.typings.d.ts +25 -9
- package/build/typings/approvalConfig.typings.js +12 -0
- package/build/typings/common/openUOM.typings.d.ts +1 -1
- package/build/typings/company/masters/itemManagementbody.typings.d.ts +46 -0
- package/build/typings/company/masters/itemManagementbody.typings.js +14 -0
- package/build/typings/company.typings.d.ts +5 -2
- package/build/typings/company.typings.js +1 -0
- package/build/typings/department.typings.d.ts +7 -2
- package/build/typings/department.typings.js +1 -0
- package/build/typings/entityApprovalChainEntry.typings.d.ts +7 -2
- package/build/typings/entityApprovalChainEntry.typings.js +2 -0
- package/build/typings/item.typings.d.ts +55 -39
- package/build/typings/item.typings.js +12 -8
- package/build/typings/roles.typings.d.ts +12 -7
- package/build/typings/roles.typings.js +1 -0
- package/build/typings/user.typings.d.ts +13 -13
- package/build/typings/user.typings.js +5 -4
- package/package.json +1 -1
- package/build/typings/company/settings/CompanySettings.typings.d.ts +0 -6
- package/build/typings/company/settings/CompanySettings.typings.js +0 -10
|
@@ -37,6 +37,7 @@ export declare enum COMPANY_ROUTE_IDS {
|
|
|
37
37
|
USR_CRT = "USR_CRT",
|
|
38
38
|
STD_APPVL_LST = "STD_APPVL_LST",
|
|
39
39
|
ROOT_APPVL_LST = "ROOT_APPVL_LST",
|
|
40
|
+
ITM_MGMT = "ITM_MGMT",
|
|
40
41
|
ITM_ADD = "ITM_ADD",
|
|
41
42
|
ITM_EDT = "ITM_EDT",
|
|
42
43
|
ITM_LST = "ITM_LST",
|
|
@@ -305,6 +306,12 @@ export declare const companyNavConfig: {
|
|
|
305
306
|
id: COMPANY_ROUTE_IDS;
|
|
306
307
|
};
|
|
307
308
|
};
|
|
309
|
+
itemManagementBody: {
|
|
310
|
+
list: {
|
|
311
|
+
route: string;
|
|
312
|
+
id: COMPANY_ROUTE_IDS;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
308
315
|
};
|
|
309
316
|
approvals: {
|
|
310
317
|
standard: {
|
|
@@ -33,6 +33,7 @@ var COMPANY_ROUTE_IDS;
|
|
|
33
33
|
COMPANY_ROUTE_IDS["USR_CRT"] = "USR_CRT";
|
|
34
34
|
COMPANY_ROUTE_IDS["STD_APPVL_LST"] = "STD_APPVL_LST";
|
|
35
35
|
COMPANY_ROUTE_IDS["ROOT_APPVL_LST"] = "ROOT_APPVL_LST";
|
|
36
|
+
COMPANY_ROUTE_IDS["ITM_MGMT"] = "ITM_MGMT";
|
|
36
37
|
COMPANY_ROUTE_IDS["ITM_ADD"] = "ITM_ADD";
|
|
37
38
|
COMPANY_ROUTE_IDS["ITM_EDT"] = "ITM_EDT";
|
|
38
39
|
COMPANY_ROUTE_IDS["ITM_LST"] = "ITM_LST";
|
|
@@ -312,6 +313,12 @@ exports.companyNavConfig = {
|
|
|
312
313
|
id: COMPANY_ROUTE_IDS.CMP_VDR_MGMT_LST,
|
|
313
314
|
},
|
|
314
315
|
},
|
|
316
|
+
itemManagementBody: {
|
|
317
|
+
list: {
|
|
318
|
+
route: `/company/item-management?route_id=${COMPANY_ROUTE_IDS.ITM_MGMT}`,
|
|
319
|
+
id: COMPANY_ROUTE_IDS.ITM_MGMT,
|
|
320
|
+
},
|
|
321
|
+
},
|
|
315
322
|
},
|
|
316
323
|
approvals: {
|
|
317
324
|
standard: {
|
|
@@ -3,5 +3,6 @@ export declare enum EntityTypes {
|
|
|
3
3
|
PURCHASE_LOCATION = "purchase_location",
|
|
4
4
|
GATE = "gate",
|
|
5
5
|
OFFICE = "office",
|
|
6
|
-
VENDOR_MANAGEMENT_BODY = "vendor_management_body"
|
|
6
|
+
VENDOR_MANAGEMENT_BODY = "vendor_management_body",
|
|
7
|
+
ITEM_MANAGEMENT_BODY = "item_management_body"
|
|
7
8
|
}
|
|
@@ -8,4 +8,5 @@ var EntityTypes;
|
|
|
8
8
|
EntityTypes["GATE"] = "gate";
|
|
9
9
|
EntityTypes["OFFICE"] = "office";
|
|
10
10
|
EntityTypes["VENDOR_MANAGEMENT_BODY"] = "vendor_management_body";
|
|
11
|
+
EntityTypes["ITEM_MANAGEMENT_BODY"] = "item_management_body";
|
|
11
12
|
})(EntityTypes || (exports.EntityTypes = EntityTypes = {}));
|
|
@@ -30,7 +30,8 @@ export declare enum PERMISSION_RESOURCES {
|
|
|
30
30
|
COMPARATIVE = "COMPARATIVE",
|
|
31
31
|
ISTD = "ISTD",
|
|
32
32
|
VENDOR_ONBOARDING_REQUEST = "VENDOR_ONBOARDING_REQUEST",
|
|
33
|
-
WAITLISTED_VENDORS = "WAITLISTED_VENDORS"
|
|
33
|
+
WAITLISTED_VENDORS = "WAITLISTED_VENDORS",
|
|
34
|
+
ITEMS = "ITEMS"
|
|
34
35
|
}
|
|
35
36
|
export declare enum RFQ_TO_PO_DOCUMENTS {
|
|
36
37
|
RFQ = "RFQ",
|
|
@@ -49,6 +50,7 @@ export declare const PERMISSION_CONFIG: {
|
|
|
49
50
|
ISTD: PERMISSION_ACTIONS[];
|
|
50
51
|
VENDOR_ONBOARDING_REQUEST: PERMISSION_ACTIONS[];
|
|
51
52
|
WAITLISTED_VENDORS: PERMISSION_ACTIONS[];
|
|
53
|
+
ITEMS: PERMISSION_ACTIONS[];
|
|
52
54
|
};
|
|
53
55
|
export declare const EntitySpecificDocuments: {
|
|
54
56
|
gate: PERMISSION_RESOURCES[];
|
|
@@ -56,4 +58,5 @@ export declare const EntitySpecificDocuments: {
|
|
|
56
58
|
store_location: PERMISSION_RESOURCES[];
|
|
57
59
|
purchase_location: PERMISSION_RESOURCES[];
|
|
58
60
|
vendor_management_body: PERMISSION_RESOURCES[];
|
|
61
|
+
item_management_body: PERMISSION_RESOURCES[];
|
|
59
62
|
};
|
|
@@ -39,6 +39,7 @@ var PERMISSION_RESOURCES;
|
|
|
39
39
|
PERMISSION_RESOURCES["ISTD"] = "ISTD";
|
|
40
40
|
PERMISSION_RESOURCES["VENDOR_ONBOARDING_REQUEST"] = "VENDOR_ONBOARDING_REQUEST";
|
|
41
41
|
PERMISSION_RESOURCES["WAITLISTED_VENDORS"] = "WAITLISTED_VENDORS";
|
|
42
|
+
PERMISSION_RESOURCES["ITEMS"] = "ITEMS";
|
|
42
43
|
})(PERMISSION_RESOURCES || (exports.PERMISSION_RESOURCES = PERMISSION_RESOURCES = {}));
|
|
43
44
|
var RFQ_TO_PO_DOCUMENTS;
|
|
44
45
|
(function (RFQ_TO_PO_DOCUMENTS) {
|
|
@@ -109,6 +110,11 @@ exports.PERMISSION_CONFIG = {
|
|
|
109
110
|
PERMISSION_ACTIONS.ONBOARDING,
|
|
110
111
|
PERMISSION_ACTIONS.READ_ONLY,
|
|
111
112
|
],
|
|
113
|
+
[PERMISSION_RESOURCES.ITEMS]: [
|
|
114
|
+
PERMISSION_ACTIONS.CRUDSAC,
|
|
115
|
+
PERMISSION_ACTIONS.APPROVALS,
|
|
116
|
+
PERMISSION_ACTIONS.READ_ONLY,
|
|
117
|
+
],
|
|
112
118
|
};
|
|
113
119
|
exports.EntitySpecificDocuments = {
|
|
114
120
|
[entityTypes_constants_1.EntityTypes.GATE]: [PERMISSION_RESOURCES.GRN, PERMISSION_RESOURCES.INDENT],
|
|
@@ -134,4 +140,8 @@ exports.EntitySpecificDocuments = {
|
|
|
134
140
|
PERMISSION_RESOURCES.WAITLISTED_VENDORS,
|
|
135
141
|
PERMISSION_RESOURCES.INDENT,
|
|
136
142
|
],
|
|
143
|
+
[entityTypes_constants_1.EntityTypes.ITEM_MANAGEMENT_BODY]: [
|
|
144
|
+
PERMISSION_RESOURCES.ITEMS,
|
|
145
|
+
PERMISSION_RESOURCES.INDENT,
|
|
146
|
+
],
|
|
137
147
|
};
|
package/build/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from "./typings/company/vendorOnboardingRequest/vendorOnboardingRequest
|
|
|
58
58
|
export * from "./typings/company/settings/companySettings.typings";
|
|
59
59
|
export * from "./typings/company/settings/comanyVendorSettings.typings";
|
|
60
60
|
export * from "./typings/company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings";
|
|
61
|
+
export * from "./typings/company/masters/itemManagementbody.typings";
|
|
61
62
|
export * from "./typings/common/address.typings";
|
|
62
63
|
export * from "./typings/common/paginationFilters.typings";
|
|
63
64
|
export * from "./typings/common/uploadMedia.typings";
|
|
@@ -124,9 +125,6 @@ export * from "./typings/kpis/company/purchase/testPuchaseKpi.typings";
|
|
|
124
125
|
export * from "./typings/kpis/company/main/homeDashboard.typings";
|
|
125
126
|
export * from "./typings/kpis/vendor/main/vHomeDashboardKpi.typings";
|
|
126
127
|
export * from "./typings/vendor/companyProfile.typings";
|
|
127
|
-
export * from "./typings/company/rootEntityApproval/rootEntityApprovalChain.typings";
|
|
128
|
-
export * from "./typings/company/rootEntityApproval/rootEntityApprovalConfig.typings";
|
|
129
|
-
export * from "./typings/company/rootEntityApproval/rootEntityApprovalEntries.typings";
|
|
130
128
|
export * from "./helpers/padNumber.helper";
|
|
131
129
|
export * from "./typings/plugins/plugin.typings";
|
|
132
130
|
export interface ITesting {
|
package/build/index.js
CHANGED
|
@@ -77,6 +77,7 @@ __exportStar(require("./typings/company/vendorOnboardingRequest/vendorOnboarding
|
|
|
77
77
|
__exportStar(require("./typings/company/settings/companySettings.typings"), exports);
|
|
78
78
|
__exportStar(require("./typings/company/settings/comanyVendorSettings.typings"), exports);
|
|
79
79
|
__exportStar(require("./typings/company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings"), exports);
|
|
80
|
+
__exportStar(require("./typings/company/masters/itemManagementbody.typings"), exports);
|
|
80
81
|
// Commons
|
|
81
82
|
__exportStar(require("./typings/common/address.typings"), exports);
|
|
82
83
|
__exportStar(require("./typings/common/paginationFilters.typings"), exports);
|
|
@@ -157,10 +158,6 @@ __exportStar(require("./typings/kpis/company/main/homeDashboard.typings"), expor
|
|
|
157
158
|
__exportStar(require("./typings/kpis/vendor/main/vHomeDashboardKpi.typings"), exports);
|
|
158
159
|
// Vendor Panel typings
|
|
159
160
|
__exportStar(require("./typings/vendor/companyProfile.typings"), exports);
|
|
160
|
-
//Company Panel typings
|
|
161
|
-
__exportStar(require("./typings/company/rootEntityApproval/rootEntityApprovalChain.typings"), exports);
|
|
162
|
-
__exportStar(require("./typings/company/rootEntityApproval/rootEntityApprovalConfig.typings"), exports);
|
|
163
|
-
__exportStar(require("./typings/company/rootEntityApproval/rootEntityApprovalEntries.typings"), exports);
|
|
164
161
|
// Helpers
|
|
165
162
|
__exportStar(require("./helpers/padNumber.helper"), exports);
|
|
166
163
|
// Plugins
|
|
@@ -1,21 +1,33 @@
|
|
|
1
|
-
import { INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
1
|
+
import { ApprovalConfigInlcude, INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
3
4
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
4
5
|
import { INestedGate } from "./gate.typings";
|
|
5
6
|
import { INestedOffice } from "./offices.typings";
|
|
6
7
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
7
8
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
9
|
+
export declare enum APPROVAL_CONFIG_INCLUDE {
|
|
10
|
+
company = "company",
|
|
11
|
+
office = "office",
|
|
12
|
+
store_location = "store_location",
|
|
13
|
+
purchase_location = "purchase_location",
|
|
14
|
+
gate = "gate",
|
|
15
|
+
approval_chain = "approval_chain",
|
|
16
|
+
vendor_management_body = "vendor_management_body",
|
|
17
|
+
item_management_body = "item_management_body"
|
|
18
|
+
}
|
|
8
19
|
export interface IApprovalConfig {
|
|
9
20
|
id: string;
|
|
10
21
|
company_id: string;
|
|
11
22
|
document_type: string;
|
|
12
23
|
is_enabled: boolean;
|
|
13
|
-
notes
|
|
14
|
-
office_id
|
|
15
|
-
purchase_location_id
|
|
16
|
-
store_location_id
|
|
17
|
-
gate_id
|
|
18
|
-
vendor_management_body_id
|
|
24
|
+
notes: string | null;
|
|
25
|
+
office_id: string | null;
|
|
26
|
+
purchase_location_id: string | null;
|
|
27
|
+
store_location_id: string | null;
|
|
28
|
+
gate_id: string | null;
|
|
29
|
+
vendor_management_body_id: string | null;
|
|
30
|
+
item_management_body_id: string | null;
|
|
19
31
|
created_at: string;
|
|
20
32
|
updated_at: string;
|
|
21
33
|
company?: INestedCompany | null;
|
|
@@ -23,8 +35,12 @@ export interface IApprovalConfig {
|
|
|
23
35
|
store_location?: INestedStoreLocation | null;
|
|
24
36
|
purchase_location?: INestedPurchaseLocation | null;
|
|
25
37
|
gate?: INestedGate | null;
|
|
26
|
-
vendor_management_body?: INestedVendorManagementBody | null;
|
|
27
38
|
approval_chain?: INestedApprovalChainEntry[] | null;
|
|
39
|
+
vendor_management_body?: INestedVendorManagementBody | null;
|
|
40
|
+
item_management_body?: INestedItemManagementBody | null;
|
|
41
|
+
}
|
|
42
|
+
export interface INestedApprovalConfig extends Omit<IApprovalConfig, "approval_chain" | "company" | "office" | "store_location" | "purchase_location" | "gate" | "vendor_management_body" | "item_management_body"> {
|
|
28
43
|
}
|
|
29
|
-
export interface
|
|
44
|
+
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">> {
|
|
45
|
+
include?: ApprovalConfigInlcude[] | null;
|
|
30
46
|
}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.APPROVAL_CONFIG_INCLUDE = void 0;
|
|
4
|
+
var APPROVAL_CONFIG_INCLUDE;
|
|
5
|
+
(function (APPROVAL_CONFIG_INCLUDE) {
|
|
6
|
+
APPROVAL_CONFIG_INCLUDE["company"] = "company";
|
|
7
|
+
APPROVAL_CONFIG_INCLUDE["office"] = "office";
|
|
8
|
+
APPROVAL_CONFIG_INCLUDE["store_location"] = "store_location";
|
|
9
|
+
APPROVAL_CONFIG_INCLUDE["purchase_location"] = "purchase_location";
|
|
10
|
+
APPROVAL_CONFIG_INCLUDE["gate"] = "gate";
|
|
11
|
+
APPROVAL_CONFIG_INCLUDE["approval_chain"] = "approval_chain";
|
|
12
|
+
APPROVAL_CONFIG_INCLUDE["vendor_management_body"] = "vendor_management_body";
|
|
13
|
+
APPROVAL_CONFIG_INCLUDE["item_management_body"] = "item_management_body";
|
|
14
|
+
})(APPROVAL_CONFIG_INCLUDE || (exports.APPROVAL_CONFIG_INCLUDE = APPROVAL_CONFIG_INCLUDE = {}));
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { INestedItem } from "../../item.typings";
|
|
6
|
+
import { INestedRole } from "../../roles.typings";
|
|
7
|
+
import { INestedUser } from "../../user.typings";
|
|
8
|
+
export interface IItemManagementBodyFilters {
|
|
9
|
+
include?: ITEM_MANAGEMENT_BODY_INCLUDE[];
|
|
10
|
+
}
|
|
11
|
+
export interface IItemManagementBodyFiltersWithPagination extends IItemManagementBodyFilters, IPaginationFilters {
|
|
12
|
+
}
|
|
13
|
+
export declare enum ITEM_MANAGEMENT_BODY_INCLUDE {
|
|
14
|
+
company = "company",
|
|
15
|
+
created_by_user = "created_by_user",
|
|
16
|
+
last_updated_by_user = "last_updated_by_user",
|
|
17
|
+
head_of_body = "head_of_body",
|
|
18
|
+
approval_configs = "approval_configs",
|
|
19
|
+
departments = "departments",
|
|
20
|
+
roles = "roles",
|
|
21
|
+
items = "items"
|
|
22
|
+
}
|
|
23
|
+
export interface IItemManagementBody {
|
|
24
|
+
id: string;
|
|
25
|
+
company_id: string;
|
|
26
|
+
created_by_id: string;
|
|
27
|
+
last_updated_by_id: string;
|
|
28
|
+
head_of_body_id: string;
|
|
29
|
+
item_management_body_name: string;
|
|
30
|
+
item_management_body_code: string;
|
|
31
|
+
is_enabled: boolean;
|
|
32
|
+
is_deleted: boolean;
|
|
33
|
+
deleted_at: string | null;
|
|
34
|
+
created_at: string;
|
|
35
|
+
updated_at: string;
|
|
36
|
+
company: INestedCompany | null;
|
|
37
|
+
created_by_user: INestedUser | null;
|
|
38
|
+
last_updated_by_user: INestedUser | null;
|
|
39
|
+
head_of_body: INestedUser | null;
|
|
40
|
+
approval_configs: INestedApprovalConfig[] | null;
|
|
41
|
+
departments: INestedDepartment[] | null;
|
|
42
|
+
roles: INestedRole[] | null;
|
|
43
|
+
items: INestedItem[] | null;
|
|
44
|
+
}
|
|
45
|
+
export interface INestedItemManagementBody extends Omit<IItemManagementBody, "company" | "created_by_user" | "last_updated_by_user" | "head_of_body" | "approval_configs" | "departments" | "roles" | "items"> {
|
|
46
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ITEM_MANAGEMENT_BODY_INCLUDE = void 0;
|
|
4
|
+
var ITEM_MANAGEMENT_BODY_INCLUDE;
|
|
5
|
+
(function (ITEM_MANAGEMENT_BODY_INCLUDE) {
|
|
6
|
+
ITEM_MANAGEMENT_BODY_INCLUDE["company"] = "company";
|
|
7
|
+
ITEM_MANAGEMENT_BODY_INCLUDE["created_by_user"] = "created_by_user";
|
|
8
|
+
ITEM_MANAGEMENT_BODY_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
9
|
+
ITEM_MANAGEMENT_BODY_INCLUDE["head_of_body"] = "head_of_body";
|
|
10
|
+
ITEM_MANAGEMENT_BODY_INCLUDE["approval_configs"] = "approval_configs";
|
|
11
|
+
ITEM_MANAGEMENT_BODY_INCLUDE["departments"] = "departments";
|
|
12
|
+
ITEM_MANAGEMENT_BODY_INCLUDE["roles"] = "roles";
|
|
13
|
+
ITEM_MANAGEMENT_BODY_INCLUDE["items"] = "items";
|
|
14
|
+
})(ITEM_MANAGEMENT_BODY_INCLUDE || (exports.ITEM_MANAGEMENT_BODY_INCLUDE = ITEM_MANAGEMENT_BODY_INCLUDE = {}));
|
|
@@ -41,6 +41,7 @@ import { INestedVendorOnboardingRequest } from "./company/vendorOnboardingReques
|
|
|
41
41
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
42
42
|
import { INestedVendorOnboardingRequestCategory } from "./company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings";
|
|
43
43
|
import { DATE_TIME_UNITS } from "../constants/date.constants";
|
|
44
|
+
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
44
45
|
export declare enum PRICING_PLANS {
|
|
45
46
|
BASIC = "BASIC",
|
|
46
47
|
GROWTH = "GROWTH",
|
|
@@ -95,7 +96,8 @@ export declare enum COMPANY_INCLUDE {
|
|
|
95
96
|
invoices = "invoices",
|
|
96
97
|
logs = "logs",
|
|
97
98
|
vendor_management_bodies = "vendor_management_bodies",
|
|
98
|
-
vendor_onboarding_request_categories = "vendor_onboarding_request_categories"
|
|
99
|
+
vendor_onboarding_request_categories = "vendor_onboarding_request_categories",
|
|
100
|
+
item_management_bodies = "item_management_bodies"
|
|
99
101
|
}
|
|
100
102
|
export interface ICompany extends IAddress {
|
|
101
103
|
id: string;
|
|
@@ -179,8 +181,9 @@ export interface ICompany extends IAddress {
|
|
|
179
181
|
logs: INestedLifecycleLogs[] | null;
|
|
180
182
|
vendor_onboarding_requests: INestedVendorOnboardingRequest[] | null;
|
|
181
183
|
vendor_management_bodies: INestedVendorManagementBody[] | null;
|
|
184
|
+
item_management_bodies: INestedItemManagementBody[] | null;
|
|
182
185
|
}
|
|
183
|
-
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"> {
|
|
186
|
+
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"> {
|
|
184
187
|
}
|
|
185
188
|
export interface ICompanyVendorAdditionalInfoMappingConfig {
|
|
186
189
|
additional_info_form_que_id: string;
|
|
@@ -56,6 +56,7 @@ var COMPANY_INCLUDE;
|
|
|
56
56
|
COMPANY_INCLUDE["logs"] = "logs";
|
|
57
57
|
COMPANY_INCLUDE["vendor_management_bodies"] = "vendor_management_bodies";
|
|
58
58
|
COMPANY_INCLUDE["vendor_onboarding_request_categories"] = "vendor_onboarding_request_categories";
|
|
59
|
+
COMPANY_INCLUDE["item_management_bodies"] = "item_management_bodies";
|
|
59
60
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
60
61
|
// export interface IUpdateVendorOnboardingRequestCategoriesInputs
|
|
61
62
|
// 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 { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
4
5
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
5
6
|
import { INestedVendorOnboardingRequest } from "./company/vendorOnboardingRequest/vendorOnboardingRequest.typing";
|
|
6
7
|
import { INestedGate } from "./gate.typings";
|
|
@@ -21,6 +22,7 @@ export interface IDepartmentFilters {
|
|
|
21
22
|
purchase_location_id?: string;
|
|
22
23
|
gate_id?: string;
|
|
23
24
|
vendor_management_body_id?: string;
|
|
25
|
+
item_management_body_id?: string;
|
|
24
26
|
type?: EntityTypes;
|
|
25
27
|
include?: DepartmentInclude[];
|
|
26
28
|
}
|
|
@@ -36,6 +38,7 @@ export interface IDepartment {
|
|
|
36
38
|
gate_id?: string | null;
|
|
37
39
|
purchase_location_id?: string | null;
|
|
38
40
|
vendor_management_body_id?: string | null;
|
|
41
|
+
item_management_body_id?: string | null;
|
|
39
42
|
department_name: string;
|
|
40
43
|
department_code: string;
|
|
41
44
|
created_by_id: string;
|
|
@@ -51,6 +54,7 @@ export interface IDepartment {
|
|
|
51
54
|
parent_purchase_location?: null | INestedPurchaseLocation;
|
|
52
55
|
parent_gate?: null | INestedGate;
|
|
53
56
|
parent_vendor_management_body: INestedVendorManagementBody | null;
|
|
57
|
+
parent_item_management_body: INestedItemManagementBody | null;
|
|
54
58
|
indents?: null | INestedIndent[];
|
|
55
59
|
mis?: null | INestedMI[];
|
|
56
60
|
subdepartments?: null | INestedSubdepartment[];
|
|
@@ -59,7 +63,7 @@ export interface IDepartment {
|
|
|
59
63
|
mrns?: null | INestedMRN[];
|
|
60
64
|
vendor_onboarding_requests?: INestedVendorOnboardingRequest[] | null;
|
|
61
65
|
}
|
|
62
|
-
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"> {
|
|
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"> {
|
|
63
67
|
}
|
|
64
68
|
export declare enum DepartmentInclude {
|
|
65
69
|
subdepartments = "subdepartments",
|
|
@@ -72,7 +76,8 @@ export declare enum DepartmentInclude {
|
|
|
72
76
|
parent_office = "parent_office",
|
|
73
77
|
parent_gate = "parent_gate",
|
|
74
78
|
parent_vendor_management_body = "parent_vendor_management_body",
|
|
75
|
-
vendor_onboarding_requests = "vendor_onboarding_requests"
|
|
79
|
+
vendor_onboarding_requests = "vendor_onboarding_requests",
|
|
80
|
+
parent_item_management_body = "parent_item_management_body"
|
|
76
81
|
}
|
|
77
82
|
export interface ISubDepartment {
|
|
78
83
|
id: string;
|
|
@@ -14,4 +14,5 @@ var DepartmentInclude;
|
|
|
14
14
|
DepartmentInclude["parent_gate"] = "parent_gate";
|
|
15
15
|
DepartmentInclude["parent_vendor_management_body"] = "parent_vendor_management_body";
|
|
16
16
|
DepartmentInclude["vendor_onboarding_requests"] = "vendor_onboarding_requests";
|
|
17
|
+
DepartmentInclude["parent_item_management_body"] = "parent_item_management_body";
|
|
17
18
|
})(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
|
|
@@ -6,6 +6,7 @@ import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
|
6
6
|
import { INestedComparative } from "./comparative.typings";
|
|
7
7
|
import { INestedGRN } from "./grn.typings";
|
|
8
8
|
import { INestedIndent } from "./indent.typings";
|
|
9
|
+
import { INestedItem } from "./item.typings";
|
|
9
10
|
import { INestedMI } from "./mi.typings";
|
|
10
11
|
import { INestedMRN } from "./mrn.typings";
|
|
11
12
|
import { INestedPo } from "./po.typings";
|
|
@@ -25,7 +26,8 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
|
25
26
|
ISTD_SOURCE = "ISTD_SOURCE",
|
|
26
27
|
ISTD_DEST = "ISTD_DEST",
|
|
27
28
|
VENDOR_ONBOARDING_REQUEST = "VENDOR_ONBOARDING_REQUEST",
|
|
28
|
-
WAITLIST_VENDORS = "WAITLISTED_VENDORS"
|
|
29
|
+
WAITLIST_VENDORS = "WAITLISTED_VENDORS",
|
|
30
|
+
ITEMS = "ITEMS"
|
|
29
31
|
}
|
|
30
32
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
31
33
|
company = "company",
|
|
@@ -42,6 +44,7 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
|
42
44
|
source_istd = "source_istd",
|
|
43
45
|
dest_istd = "dest_istd",
|
|
44
46
|
vendor_onboarding_request = "vendor_onboarding_request",
|
|
47
|
+
item = "item",
|
|
45
48
|
company_vendor = "company_vendor",
|
|
46
49
|
vendor_onboarding_request_scores = "vendor_onboarding_request_scores"
|
|
47
50
|
}
|
|
@@ -66,6 +69,7 @@ export interface IEntityApprovalChainEntry {
|
|
|
66
69
|
source_istd_id?: string | null;
|
|
67
70
|
dest_istd_id?: string | null;
|
|
68
71
|
vendor_onboarding_request_id?: string | null;
|
|
72
|
+
item_id?: string | null;
|
|
69
73
|
company_vendor_id?: string | null;
|
|
70
74
|
deleted_at: string | null;
|
|
71
75
|
is_deleted: boolean | null;
|
|
@@ -87,6 +91,7 @@ export interface IEntityApprovalChainEntry {
|
|
|
87
91
|
vendor_onboarding_request?: INestedVendorOnboardingRequest | null;
|
|
88
92
|
company_vendor?: INestedCompanyVendors | null;
|
|
89
93
|
vendor_onboarding_request_scores?: INestedVendorOnboardingRequestScore[] | null;
|
|
94
|
+
item: INestedItem | null;
|
|
90
95
|
}
|
|
91
|
-
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"> {
|
|
96
|
+
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"> {
|
|
92
97
|
}
|
|
@@ -15,6 +15,7 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS;
|
|
|
15
15
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ISTD_DEST"] = "ISTD_DEST";
|
|
16
16
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["VENDOR_ONBOARDING_REQUEST"] = "VENDOR_ONBOARDING_REQUEST";
|
|
17
17
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["WAITLIST_VENDORS"] = "WAITLISTED_VENDORS";
|
|
18
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ITEMS"] = "ITEMS";
|
|
18
19
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = {}));
|
|
19
20
|
var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
20
21
|
(function (ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES) {
|
|
@@ -32,6 +33,7 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
|
32
33
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["source_istd"] = "source_istd";
|
|
33
34
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["dest_istd"] = "dest_istd";
|
|
34
35
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["vendor_onboarding_request"] = "vendor_onboarding_request";
|
|
36
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["item"] = "item";
|
|
35
37
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["company_vendor"] = "company_vendor";
|
|
36
38
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["vendor_onboarding_request_scores"] = "vendor_onboarding_request_scores";
|
|
37
39
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = {}));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { INestedBOMItem } from "./bom.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
-
import { INestedRootEntityApprovalChainEntry, ROOT_ENTITY_APPROVAL_STATUS } from "./company/rootEntityApproval/rootEntityApprovalEntries.typings";
|
|
4
3
|
import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
|
|
5
4
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
6
5
|
import { INestedComparativeItem } from "./comparative.typings";
|
|
@@ -20,22 +19,14 @@ import { INestedISTDItem } from "./company/istd/istdItems.typings";
|
|
|
20
19
|
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
21
20
|
import { INestedPo } from "./po.typings";
|
|
22
21
|
import { INestedRFQItem } from "./rfq.typings";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
approver_id?: string;
|
|
28
|
-
item_category_id?: string;
|
|
29
|
-
item_subcategory_id?: string;
|
|
30
|
-
status?: ITEM_APPROVAL_STATUS;
|
|
31
|
-
include?: ITEM_INCLUDE[];
|
|
32
|
-
}
|
|
33
|
-
export interface IItemFiltersWithPagination extends IPaginationFilters, IItemFilters {
|
|
34
|
-
}
|
|
35
|
-
export declare enum ITEM_APPROVAL_STATUS {
|
|
22
|
+
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
23
|
+
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
24
|
+
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
25
|
+
export declare enum ITEM_STATUS {
|
|
36
26
|
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
37
27
|
APPROVED = "APPROVED",
|
|
38
|
-
CANCELLED = "CANCELLED"
|
|
28
|
+
CANCELLED = "CANCELLED",
|
|
29
|
+
REQUESTED = "REQUESTED"
|
|
39
30
|
}
|
|
40
31
|
export declare enum ITEM_INCLUDE {
|
|
41
32
|
approved_by = "approved_by",
|
|
@@ -60,12 +51,30 @@ export declare enum ITEM_INCLUDE {
|
|
|
60
51
|
used_in_po_asn_item_junction = "used_in_po_asn_item_junction",
|
|
61
52
|
vendor_item_versions = "vendor_item_versions",
|
|
62
53
|
last_updated_by = "last_updated_by",
|
|
63
|
-
approval_chain = "approval_chain",
|
|
64
54
|
used_in_istd_items = "used_in_istd_items",
|
|
65
55
|
used_in_iads = "used_in_iads",
|
|
66
56
|
used_in_inventory_logs = "used_in_inventory_logs",
|
|
67
57
|
previous_purchase_po = "previous_purchase_po",
|
|
68
|
-
least_purchase_po = "least_purchase_po"
|
|
58
|
+
least_purchase_po = "least_purchase_po",
|
|
59
|
+
parent_item_management_body = "parent_item_management_body",
|
|
60
|
+
created_by_user = "created_by_user",
|
|
61
|
+
approval_chain = "approval_chain",
|
|
62
|
+
sent_for_approval_by = "sent_for_approval_by"
|
|
63
|
+
}
|
|
64
|
+
export interface IOpenItemApprovalsPayload extends IOpenApprovalsBase {
|
|
65
|
+
item_id: string;
|
|
66
|
+
}
|
|
67
|
+
export interface IItemFilters {
|
|
68
|
+
name?: string;
|
|
69
|
+
company_id?: string;
|
|
70
|
+
company_vendor_id?: string;
|
|
71
|
+
approver_id?: string;
|
|
72
|
+
item_category_id?: string;
|
|
73
|
+
item_subcategory_id?: string;
|
|
74
|
+
status?: ITEM_STATUS;
|
|
75
|
+
include?: ITEM_INCLUDE[];
|
|
76
|
+
}
|
|
77
|
+
export interface IItemFiltersWithPagination extends IPaginationFilters, IItemFilters {
|
|
69
78
|
}
|
|
70
79
|
export interface IItem {
|
|
71
80
|
id: string;
|
|
@@ -75,8 +84,10 @@ export interface IItem {
|
|
|
75
84
|
hsn_code?: string | null;
|
|
76
85
|
item_category_id?: string | null;
|
|
77
86
|
approved_by_id?: string | null;
|
|
87
|
+
sent_for_approval_by_id: string | null;
|
|
88
|
+
parent_item_management_body_id?: string | null;
|
|
78
89
|
item_subcategory_id?: string | null;
|
|
79
|
-
item_classification?: string | null
|
|
90
|
+
item_classification?: string | null;
|
|
80
91
|
item_tax_preference: string;
|
|
81
92
|
code_sku: string;
|
|
82
93
|
uom: string;
|
|
@@ -108,7 +119,7 @@ export interface IItem {
|
|
|
108
119
|
additional_discount_after_billing_before_tax_percent: number | null;
|
|
109
120
|
additional_discount_after_billing_before_tax_value: number | null;
|
|
110
121
|
cancellation_remark: string | null;
|
|
111
|
-
status:
|
|
122
|
+
status: ITEM_STATUS;
|
|
112
123
|
last_updated_by_id: string;
|
|
113
124
|
is_editable: boolean;
|
|
114
125
|
is_enabled: boolean;
|
|
@@ -117,35 +128,40 @@ export interface IItem {
|
|
|
117
128
|
created_at: string;
|
|
118
129
|
updated_at: string;
|
|
119
130
|
deleted_at?: string | null;
|
|
131
|
+
sent_for_approval_at?: string | null;
|
|
132
|
+
cancelled_at?: string | null;
|
|
120
133
|
approved_at?: string | null;
|
|
121
|
-
inventory_entries?: INestedInventoryItem | null
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
inventory_entries?: INestedInventoryItem | null;
|
|
135
|
+
created_by_user?: INestedUser | null;
|
|
136
|
+
approved_by?: INestedUser | null;
|
|
137
|
+
sent_for_approval_by?: INestedUser | null;
|
|
138
|
+
item_category?: INestedItemCategory | null;
|
|
139
|
+
item_subcategory?: INestedItemSubcategory | null;
|
|
140
|
+
company?: INestedCompany | null;
|
|
141
|
+
used_in_rfq_items?: INestedRFQItem | null;
|
|
142
|
+
used_in_indent_items?: INestedIndentItem | null;
|
|
143
|
+
used_in_mi_items?: INestedMIItem | null;
|
|
144
|
+
used_in_pr_items?: INestedPrItem | null;
|
|
145
|
+
used_in_quote_items?: INestedQuoteItems | null;
|
|
146
|
+
used_in_grn_items?: INestedGRNItem | null;
|
|
147
|
+
used_in_mrn_items?: INestedMRNItem | null;
|
|
148
|
+
used_in_bom_items?: INestedBOMItem | null;
|
|
149
|
+
used_in_comparative_items?: INestedComparativeItem | null;
|
|
150
|
+
previous_purchase_vendor?: INestedCompanyVendors | null;
|
|
151
|
+
least_purchase_vendor?: INestedCompanyVendors | null;
|
|
152
|
+
dealing_company_vendors?: INestedCompanyVendors[] | null;
|
|
153
|
+
used_in_po_asn_item_junction?: INestedPOASNItemJunction | null;
|
|
139
154
|
vendor_item_versions: INestedCompanyItemVendorVersion[] | null;
|
|
140
|
-
approval_chain: INestedRootEntityApprovalChainEntry[] | null;
|
|
141
155
|
last_updated_by: INestedUser | null;
|
|
142
156
|
used_in_istd_items: INestedISTDItem[] | null;
|
|
143
157
|
used_in_iads: INestedISTDItem[] | null;
|
|
144
158
|
used_in_inventory_logs: INestedInventoryLog[] | null;
|
|
145
159
|
previous_purchase_po: INestedPo | null;
|
|
146
160
|
least_purchase_po: INestedPo | null;
|
|
161
|
+
parent_item_management_body: INestedItemManagementBody | null;
|
|
162
|
+
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
147
163
|
}
|
|
148
|
-
export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_rfq_items" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items" | "used_in_comparative_items" | "previous_purchase_vendor" | "least_purchase_vendor" | "dealing_company_vendors" | "used_in_po_asn_item_junction" | "vendor_item_versions" | "used_in_istd_items" | "used_in_iads" | "used_in_inventory_logs" | "previous_purchase_po" | "least_purchase_po"> {
|
|
164
|
+
export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_rfq_items" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items" | "used_in_comparative_items" | "previous_purchase_vendor" | "least_purchase_vendor" | "dealing_company_vendors" | "used_in_po_asn_item_junction" | "vendor_item_versions" | "used_in_istd_items" | "used_in_iads" | "used_in_inventory_logs" | "previous_purchase_po" | "least_purchase_po" | "parent_item_management_body" | "created_by_user" | "approval_chain"> {
|
|
149
165
|
}
|
|
150
166
|
export declare const ITEM_CLASSIFICATION: {
|
|
151
167
|
DIRECT: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UOMS = exports.ITEM_TYPES = exports.ITEM_TAX_PREFERENCE = exports.ITEM_CLASSIFICATION = exports.ITEM_INCLUDE = exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
exports.UOMS = exports.ITEM_TYPES = exports.ITEM_TAX_PREFERENCE = exports.ITEM_CLASSIFICATION = exports.ITEM_INCLUDE = exports.ITEM_STATUS = void 0;
|
|
4
|
+
var ITEM_STATUS;
|
|
5
|
+
(function (ITEM_STATUS) {
|
|
6
|
+
ITEM_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
7
|
+
ITEM_STATUS["APPROVED"] = "APPROVED";
|
|
8
|
+
ITEM_STATUS["CANCELLED"] = "CANCELLED";
|
|
9
|
+
ITEM_STATUS["REQUESTED"] = "REQUESTED";
|
|
10
|
+
})(ITEM_STATUS || (exports.ITEM_STATUS = ITEM_STATUS = {}));
|
|
10
11
|
var ITEM_INCLUDE;
|
|
11
12
|
(function (ITEM_INCLUDE) {
|
|
12
13
|
ITEM_INCLUDE["approved_by"] = "approved_by";
|
|
@@ -31,12 +32,15 @@ var ITEM_INCLUDE;
|
|
|
31
32
|
ITEM_INCLUDE["used_in_po_asn_item_junction"] = "used_in_po_asn_item_junction";
|
|
32
33
|
ITEM_INCLUDE["vendor_item_versions"] = "vendor_item_versions";
|
|
33
34
|
ITEM_INCLUDE["last_updated_by"] = "last_updated_by";
|
|
34
|
-
ITEM_INCLUDE["approval_chain"] = "approval_chain";
|
|
35
35
|
ITEM_INCLUDE["used_in_istd_items"] = "used_in_istd_items";
|
|
36
36
|
ITEM_INCLUDE["used_in_iads"] = "used_in_iads";
|
|
37
37
|
ITEM_INCLUDE["used_in_inventory_logs"] = "used_in_inventory_logs";
|
|
38
38
|
ITEM_INCLUDE["previous_purchase_po"] = "previous_purchase_po";
|
|
39
39
|
ITEM_INCLUDE["least_purchase_po"] = "least_purchase_po";
|
|
40
|
+
ITEM_INCLUDE["parent_item_management_body"] = "parent_item_management_body";
|
|
41
|
+
ITEM_INCLUDE["created_by_user"] = "created_by_user";
|
|
42
|
+
ITEM_INCLUDE["approval_chain"] = "approval_chain";
|
|
43
|
+
ITEM_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
|
|
40
44
|
})(ITEM_INCLUDE || (exports.ITEM_INCLUDE = ITEM_INCLUDE = {}));
|
|
41
45
|
exports.ITEM_CLASSIFICATION = {
|
|
42
46
|
DIRECT: "Direct",
|
|
@@ -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 { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
5
6
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
6
7
|
import { INestedDepartment } from "./department.typings";
|
|
7
8
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
@@ -17,6 +18,7 @@ export interface IRoleFilters {
|
|
|
17
18
|
gate_id?: string;
|
|
18
19
|
office_id?: string;
|
|
19
20
|
vendor_management_body_id?: string;
|
|
21
|
+
item_management_body_id?: string;
|
|
20
22
|
type?: string;
|
|
21
23
|
name?: string;
|
|
22
24
|
department_ids?: string[];
|
|
@@ -34,11 +36,12 @@ export interface IRoles {
|
|
|
34
36
|
created_by_id: string;
|
|
35
37
|
type: string;
|
|
36
38
|
department_id: string;
|
|
37
|
-
office_id
|
|
38
|
-
store_location_id
|
|
39
|
-
purchase_location_id
|
|
40
|
-
gate_id
|
|
41
|
-
vendor_management_body_id
|
|
39
|
+
office_id: string | null;
|
|
40
|
+
store_location_id: string | null;
|
|
41
|
+
purchase_location_id: string | null;
|
|
42
|
+
gate_id: string | null;
|
|
43
|
+
vendor_management_body_id: string | null;
|
|
44
|
+
item_management_body_id: string | null;
|
|
42
45
|
is_enabled: boolean;
|
|
43
46
|
is_deleted: boolean;
|
|
44
47
|
deleted_at: string;
|
|
@@ -56,8 +59,9 @@ export interface IRoles {
|
|
|
56
59
|
approval_chains?: null | INestedApprovalChainEntry[];
|
|
57
60
|
entity_approval_chain_entries?: null | INestedEntityApprovalChainEntry[];
|
|
58
61
|
assigned_users?: null | INestedUser[];
|
|
62
|
+
item_management_body: INestedItemManagementBody | null;
|
|
59
63
|
}
|
|
60
|
-
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"> {
|
|
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"> {
|
|
61
65
|
}
|
|
62
66
|
export interface IPermissions extends Record<string | PERMISSION_ACTIONS, any> {
|
|
63
67
|
id: string;
|
|
@@ -89,5 +93,6 @@ export declare enum RolesInclude {
|
|
|
89
93
|
store_location = "store_location",
|
|
90
94
|
office = "office",
|
|
91
95
|
department = "department",
|
|
92
|
-
company = "company"
|
|
96
|
+
company = "company",
|
|
97
|
+
item_management_body = "item_management_body"
|
|
93
98
|
}
|
|
@@ -16,4 +16,5 @@ var RolesInclude;
|
|
|
16
16
|
RolesInclude["office"] = "office";
|
|
17
17
|
RolesInclude["department"] = "department";
|
|
18
18
|
RolesInclude["company"] = "company";
|
|
19
|
+
RolesInclude["item_management_body"] = "item_management_body";
|
|
19
20
|
})(RolesInclude || (exports.RolesInclude = RolesInclude = {}));
|
|
@@ -27,9 +27,6 @@ import { INestedVendorGroups } from "./vendorGroup.typings";
|
|
|
27
27
|
import { INestedExtraCoreRelatedQuestionsForCompanyEntiy } from "./extraCoreRelatedQuestionsForCompany.typings";
|
|
28
28
|
import { INestedContactPeople } from "./contactPeople.typings";
|
|
29
29
|
import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
|
|
30
|
-
import { INestedRootEntityApprovalConfig } from "./company/rootEntityApproval/rootEntityApprovalConfig.typings";
|
|
31
|
-
import { INestedRootEntityApprovalChainEntry } from "./company/rootEntityApproval/rootEntityApprovalEntries.typings";
|
|
32
|
-
import { INestedRootEntityApprovalChain } from "./company/rootEntityApproval/rootEntityApprovalChain.typings";
|
|
33
30
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
34
31
|
import { INestedIAD } from "./company/iad/iad.typings";
|
|
35
32
|
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
@@ -38,6 +35,7 @@ import { INestedLifecycleLogs } from "./common/lifecycleLogger.typings";
|
|
|
38
35
|
import { INestedVendorOnboardingRequest } from "./company/vendorOnboardingRequest/vendorOnboardingRequest.typing";
|
|
39
36
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
40
37
|
import { INestedVendorOnboardingRequestCategory } from "./company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings";
|
|
38
|
+
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
41
39
|
export interface IUser {
|
|
42
40
|
id: string;
|
|
43
41
|
is_enabled?: boolean | null;
|
|
@@ -79,6 +77,8 @@ export interface IUser {
|
|
|
79
77
|
created_item_subcategories: null | INestedItemSubcategory[];
|
|
80
78
|
last_updated_item_subcategories: INestedItemSubcategory[] | null;
|
|
81
79
|
approved_items?: null | INestedItem[];
|
|
80
|
+
created_items: INestedItem[] | null;
|
|
81
|
+
items_sent_for_approval: INestedItem[] | null;
|
|
82
82
|
approval_chains?: null | INestedApprovalChainEntry[];
|
|
83
83
|
created_indents?: null | INestedIndent[];
|
|
84
84
|
indents_created_for_user?: null | INestedIndent[];
|
|
@@ -123,10 +123,6 @@ export interface IUser {
|
|
|
123
123
|
created_contact_people: INestedContactPeople[] | null;
|
|
124
124
|
updated_contact_people: INestedContactPeople[] | null;
|
|
125
125
|
last_updated_company_item_vendor_version: INestedCompanyItemVendorVersion[] | null;
|
|
126
|
-
last_updated_root_entity_approval_config: INestedRootEntityApprovalConfig[] | null;
|
|
127
|
-
as_part_of_root_entity_approval_chain_entries: INestedRootEntityApprovalChainEntry[] | null;
|
|
128
|
-
as_part_of_root_entity_approval_chain: INestedRootEntityApprovalChain[] | null;
|
|
129
|
-
last_updated_root_entity_approval_chain: INestedRootEntityApprovalChain[] | null;
|
|
130
126
|
items_last_updated_by_user: INestedItem[] | null;
|
|
131
127
|
created_istds: INestedISTD[] | null;
|
|
132
128
|
last_updated_istds: INestedISTD[] | null;
|
|
@@ -159,8 +155,11 @@ export interface IUser {
|
|
|
159
155
|
cancelled_company_vendors: INestedCompanyVendors[] | null;
|
|
160
156
|
created_vendor_onboarding_request_categories: INestedVendorOnboardingRequestCategory[] | null;
|
|
161
157
|
last_updated_vendor_onboarding_request_categories: INestedVendorOnboardingRequestCategory[] | null;
|
|
158
|
+
created_item_management_bodies: INestedItemManagementBody[] | null;
|
|
159
|
+
last_updated_item_management_bodies: INestedItemManagementBody[] | null;
|
|
160
|
+
as_head_of_item_management_bodies: INestedItemManagementBody[] | null;
|
|
162
161
|
}
|
|
163
|
-
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" | "approved_items" | "approval_chains" | "created_indents" | "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" | "
|
|
162
|
+
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" | "approved_items" | "approval_chains" | "created_indents" | "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"> {
|
|
164
163
|
}
|
|
165
164
|
export declare enum UserInclude {
|
|
166
165
|
as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
|
|
@@ -214,10 +213,6 @@ export declare enum UserInclude {
|
|
|
214
213
|
created_contact_people = "created_contact_people",
|
|
215
214
|
updated_contact_people = "updated_contact_people",
|
|
216
215
|
last_updated_company_item_vendor_version = "last_updated_company_item_vendor_version",
|
|
217
|
-
last_updated_root_entity_approval_config = "last_updated_root_entity_approval_config",
|
|
218
|
-
as_part_of_root_entity_approval_chain_entries = "as_part_of_root_entity_approval_chain_entries",
|
|
219
|
-
as_part_of_root_entity_approval_chain = "as_part_of_root_entity_approval_chain",
|
|
220
|
-
last_updated_root_entity_approval_chain = "last_updated_root_entity_approval_chain",
|
|
221
216
|
items_last_updated_by_user = "items_last_updated_by_user",
|
|
222
217
|
created_istds = "created_istds",
|
|
223
218
|
last_updated_istds = "last_updated_istds",
|
|
@@ -250,7 +245,12 @@ export declare enum UserInclude {
|
|
|
250
245
|
sent_questions_to_company_vendors = "sent_questions_to_company_vendors",
|
|
251
246
|
cancelled_company_vendors = "cancelled_company_vendors",
|
|
252
247
|
created_vendor_onboarding_request_categories = "created_vendor_onboarding_request_categories",
|
|
253
|
-
last_updated_vendor_onboarding_request_categories = "last_updated_vendor_onboarding_request_categories"
|
|
248
|
+
last_updated_vendor_onboarding_request_categories = "last_updated_vendor_onboarding_request_categories",
|
|
249
|
+
created_item_management_bodies = "created_item_management_bodies",
|
|
250
|
+
last_updated_item_management_bodies = "last_updated_item_management_bodies",
|
|
251
|
+
as_head_of_item_management_bodies = "as_head_of_item_management_bodies",
|
|
252
|
+
created_items = "created_items",
|
|
253
|
+
items_sent_for_approval = "items_sent_for_approval"
|
|
254
254
|
}
|
|
255
255
|
export interface IUserFilters {
|
|
256
256
|
name?: string | null;
|
|
@@ -57,10 +57,6 @@ var UserInclude;
|
|
|
57
57
|
UserInclude["created_contact_people"] = "created_contact_people";
|
|
58
58
|
UserInclude["updated_contact_people"] = "updated_contact_people";
|
|
59
59
|
UserInclude["last_updated_company_item_vendor_version"] = "last_updated_company_item_vendor_version";
|
|
60
|
-
UserInclude["last_updated_root_entity_approval_config"] = "last_updated_root_entity_approval_config";
|
|
61
|
-
UserInclude["as_part_of_root_entity_approval_chain_entries"] = "as_part_of_root_entity_approval_chain_entries";
|
|
62
|
-
UserInclude["as_part_of_root_entity_approval_chain"] = "as_part_of_root_entity_approval_chain";
|
|
63
|
-
UserInclude["last_updated_root_entity_approval_chain"] = "last_updated_root_entity_approval_chain";
|
|
64
60
|
UserInclude["items_last_updated_by_user"] = "items_last_updated_by_user";
|
|
65
61
|
UserInclude["created_istds"] = "created_istds";
|
|
66
62
|
UserInclude["last_updated_istds"] = "last_updated_istds";
|
|
@@ -94,4 +90,9 @@ var UserInclude;
|
|
|
94
90
|
UserInclude["cancelled_company_vendors"] = "cancelled_company_vendors";
|
|
95
91
|
UserInclude["created_vendor_onboarding_request_categories"] = "created_vendor_onboarding_request_categories";
|
|
96
92
|
UserInclude["last_updated_vendor_onboarding_request_categories"] = "last_updated_vendor_onboarding_request_categories";
|
|
93
|
+
UserInclude["created_item_management_bodies"] = "created_item_management_bodies";
|
|
94
|
+
UserInclude["last_updated_item_management_bodies"] = "last_updated_item_management_bodies";
|
|
95
|
+
UserInclude["as_head_of_item_management_bodies"] = "as_head_of_item_management_bodies";
|
|
96
|
+
UserInclude["created_items"] = "created_items";
|
|
97
|
+
UserInclude["items_sent_for_approval"] = "items_sent_for_approval";
|
|
97
98
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SETTINGS_TABS = void 0;
|
|
4
|
-
var SETTINGS_TABS;
|
|
5
|
-
(function (SETTINGS_TABS) {
|
|
6
|
-
SETTINGS_TABS["USERPROFILE"] = "userprofile";
|
|
7
|
-
SETTINGS_TABS["COMPANY_SETTINGS"] = "company_settings";
|
|
8
|
-
SETTINGS_TABS["BILLING"] = "billing";
|
|
9
|
-
SETTINGS_TABS["COMPANY_VENDORS"] = "company_vendors";
|
|
10
|
-
})(SETTINGS_TABS || (exports.SETTINGS_TABS = SETTINGS_TABS = {}));
|