kcommons 16.6.4 → 17.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/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 +12 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/typings/approvalConfig.typings.d.ts +7 -3
- package/build/typings/approvalConfig.typings.js +1 -0
- package/build/typings/company/masters/distributorManagementBody.typings.d.ts +39 -0
- package/build/typings/company/masters/distributorManagementBody.typings.js +12 -0
- package/build/typings/company/vendorOnboardingRequest/vendorOnboardingRequest.typing.d.ts +6 -0
- package/build/typings/company/vendorOnboardingRequest/vendorOnboardingRequest.typing.js +7 -1
- package/build/typings/company.typings.d.ts +11 -2
- package/build/typings/company.typings.js +3 -0
- package/build/typings/companyDistributor.typings.d.ts +76 -0
- package/build/typings/companyDistributor.typings.js +34 -0
- package/build/typings/companyDistributorCategory.typings.d.ts +30 -0
- package/build/typings/companyDistributorCategory.typings.js +11 -0
- package/build/typings/companyVendors.typings.d.ts +11 -1
- package/build/typings/companyVendors.typings.js +8 -1
- package/build/typings/department.typings.d.ts +7 -3
- package/build/typings/department.typings.js +1 -0
- package/build/typings/distributor.typings.d.ts +80 -0
- package/build/typings/distributor.typings.js +13 -0
- package/build/typings/entityApprovalChainEntry.typings.d.ts +8 -3
- package/build/typings/entityApprovalChainEntry.typings.js +2 -0
- package/build/typings/roles.typings.d.ts +7 -3
- package/build/typings/roles.typings.js +1 -0
- package/build/typings/settings/form/extraForm.typings.d.ts +3 -0
- package/build/typings/settings/form/extraFormAns.typings.d.ts +6 -2
- package/build/typings/settings/form/extraFormAns.typings.js +1 -0
- package/build/typings/settings/form/extraFormQues.typings.d.ts +2 -1
- package/build/typings/settings/form/extraFormQues.typings.js +1 -0
- package/build/typings/user.typings.d.ts +23 -2
- package/build/typings/user.typings.js +9 -0
- package/build/typings/vendor.typings.d.ts +1 -2
- package/build/typings/vendor.typings.js +1 -1
- package/package.json +1 -1
|
@@ -5,5 +5,6 @@ export declare enum EntityTypes {
|
|
|
5
5
|
OFFICE = "office",
|
|
6
6
|
VENDOR_MANAGEMENT_BODY = "vendor_management_body",
|
|
7
7
|
ITEM_MANAGEMENT_BODY = "item_management_body",
|
|
8
|
-
CHECKPOINT = "checkpoint"
|
|
8
|
+
CHECKPOINT = "checkpoint",
|
|
9
|
+
DISTRIBUTOR_MANAGEMENT_BODY = "distributor_management_body"
|
|
9
10
|
}
|
|
@@ -10,4 +10,5 @@ var EntityTypes;
|
|
|
10
10
|
EntityTypes["VENDOR_MANAGEMENT_BODY"] = "vendor_management_body";
|
|
11
11
|
EntityTypes["ITEM_MANAGEMENT_BODY"] = "item_management_body";
|
|
12
12
|
EntityTypes["CHECKPOINT"] = "checkpoint";
|
|
13
|
+
EntityTypes["DISTRIBUTOR_MANAGEMENT_BODY"] = "distributor_management_body";
|
|
13
14
|
})(EntityTypes || (exports.EntityTypes = EntityTypes = {}));
|
|
@@ -37,7 +37,8 @@ export declare enum PERMISSION_RESOURCES {
|
|
|
37
37
|
VENDOR_ONBOARDING_REQUEST = "VENDOR_ONBOARDING_REQUEST",
|
|
38
38
|
WAITLISTED_VENDORS = "WAITLISTED_VENDORS",
|
|
39
39
|
ITEMS = "ITEMS",
|
|
40
|
-
SUB_PO = "SUB_PO"
|
|
40
|
+
SUB_PO = "SUB_PO",
|
|
41
|
+
COMPANY_DISTRIBUTOR = "COMPANY_DISTRIBUTOR"
|
|
41
42
|
}
|
|
42
43
|
export declare enum RFQ_TO_PO_DOCUMENTS {
|
|
43
44
|
RFQ = "RFQ",
|
|
@@ -60,6 +61,7 @@ export declare const PERMISSION_CONFIG: {
|
|
|
60
61
|
WAITLISTED_VENDORS: PERMISSION_ACTIONS[];
|
|
61
62
|
ITEMS: PERMISSION_ACTIONS[];
|
|
62
63
|
VES: PERMISSION_ACTIONS[];
|
|
64
|
+
COMPANY_DISTRIBUTOR: PERMISSION_ACTIONS[];
|
|
63
65
|
};
|
|
64
66
|
export declare const EntitySpecificDocuments: {
|
|
65
67
|
gate: PERMISSION_RESOURCES[];
|
|
@@ -69,4 +71,5 @@ export declare const EntitySpecificDocuments: {
|
|
|
69
71
|
vendor_management_body: PERMISSION_RESOURCES[];
|
|
70
72
|
item_management_body: PERMISSION_RESOURCES[];
|
|
71
73
|
checkpoint: PERMISSION_RESOURCES[];
|
|
74
|
+
distributor_management_body: PERMISSION_RESOURCES[];
|
|
72
75
|
};
|
|
@@ -46,6 +46,7 @@ var PERMISSION_RESOURCES;
|
|
|
46
46
|
PERMISSION_RESOURCES["WAITLISTED_VENDORS"] = "WAITLISTED_VENDORS";
|
|
47
47
|
PERMISSION_RESOURCES["ITEMS"] = "ITEMS";
|
|
48
48
|
PERMISSION_RESOURCES["SUB_PO"] = "SUB_PO";
|
|
49
|
+
PERMISSION_RESOURCES["COMPANY_DISTRIBUTOR"] = "COMPANY_DISTRIBUTOR";
|
|
49
50
|
})(PERMISSION_RESOURCES || (exports.PERMISSION_RESOURCES = PERMISSION_RESOURCES = {}));
|
|
50
51
|
var RFQ_TO_PO_DOCUMENTS;
|
|
51
52
|
(function (RFQ_TO_PO_DOCUMENTS) {
|
|
@@ -135,6 +136,13 @@ exports.PERMISSION_CONFIG = {
|
|
|
135
136
|
PERMISSION_ACTIONS.CRUDSAC,
|
|
136
137
|
PERMISSION_ACTIONS.INVITE,
|
|
137
138
|
],
|
|
139
|
+
[PERMISSION_RESOURCES.COMPANY_DISTRIBUTOR]: [
|
|
140
|
+
PERMISSION_ACTIONS.SEND_QUESTIONS,
|
|
141
|
+
PERMISSION_ACTIONS.CRUDSAC,
|
|
142
|
+
PERMISSION_ACTIONS.APPROVALS,
|
|
143
|
+
PERMISSION_ACTIONS.ONBOARDING,
|
|
144
|
+
PERMISSION_ACTIONS.READ_ONLY,
|
|
145
|
+
],
|
|
138
146
|
};
|
|
139
147
|
exports.EntitySpecificDocuments = {
|
|
140
148
|
[entityTypes_constants_1.EntityTypes.GATE]: [PERMISSION_RESOURCES.GRN, PERMISSION_RESOURCES.INDENT],
|
|
@@ -171,4 +179,8 @@ exports.EntitySpecificDocuments = {
|
|
|
171
179
|
PERMISSION_RESOURCES.VES,
|
|
172
180
|
PERMISSION_RESOURCES.INDENT,
|
|
173
181
|
],
|
|
182
|
+
[entityTypes_constants_1.EntityTypes.DISTRIBUTOR_MANAGEMENT_BODY]: [
|
|
183
|
+
PERMISSION_RESOURCES.COMPANY_DISTRIBUTOR,
|
|
184
|
+
PERMISSION_RESOURCES.INDENT,
|
|
185
|
+
],
|
|
174
186
|
};
|
package/build/index.d.ts
CHANGED
|
@@ -73,6 +73,9 @@ export * from "./typings/company/_junctions/vesCheckpointTracking.typings";
|
|
|
73
73
|
export * from "./typings/temporaryWorkerForm.typings";
|
|
74
74
|
export * from "./typings/subPO.typings";
|
|
75
75
|
export * from "./typings/subPOItem.typings";
|
|
76
|
+
export * from "./typings/company/masters/distributorManagementBody.typings";
|
|
77
|
+
export * from "./typings/companyDistributor.typings";
|
|
78
|
+
export * from "./typings/distributor.typings";
|
|
76
79
|
export * from "./typings/system/queueJob.typings";
|
|
77
80
|
export * from "./typings/system/erpPluginConfigCompany.typings";
|
|
78
81
|
export * from "./typings/common/address.typings";
|
package/build/index.js
CHANGED
|
@@ -93,6 +93,9 @@ __exportStar(require("./typings/company/_junctions/vesCheckpointTracking.typings
|
|
|
93
93
|
__exportStar(require("./typings/temporaryWorkerForm.typings"), exports);
|
|
94
94
|
__exportStar(require("./typings/subPO.typings"), exports);
|
|
95
95
|
__exportStar(require("./typings/subPOItem.typings"), exports);
|
|
96
|
+
__exportStar(require("./typings/company/masters/distributorManagementBody.typings"), exports);
|
|
97
|
+
__exportStar(require("./typings/companyDistributor.typings"), exports);
|
|
98
|
+
__exportStar(require("./typings/distributor.typings"), exports);
|
|
96
99
|
// System
|
|
97
100
|
__exportStar(require("./typings/system/queueJob.typings"), exports);
|
|
98
101
|
__exportStar(require("./typings/system/erpPluginConfigCompany.typings"), exports);
|
|
@@ -4,6 +4,7 @@ import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
|
4
4
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
5
5
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
6
6
|
import { INestedVendorOnboardingRequestCategory } from "./company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings";
|
|
7
|
+
import { INestedCompanyDistributorCategory } from "./companyDistributorCategory.typings";
|
|
7
8
|
import { INestedGate } from "./gate.typings";
|
|
8
9
|
import { INestedOffice } from "./offices.typings";
|
|
9
10
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
@@ -18,7 +19,8 @@ export declare enum APPROVAL_CONFIG_INCLUDE {
|
|
|
18
19
|
vendor_management_body = "vendor_management_body",
|
|
19
20
|
item_management_body = "item_management_body",
|
|
20
21
|
checkpoint = "checkpoint",
|
|
21
|
-
vendor_category = "vendor_category"
|
|
22
|
+
vendor_category = "vendor_category",
|
|
23
|
+
company_distibutor_category = "company_distibutor_category"
|
|
22
24
|
}
|
|
23
25
|
export interface IApprovalConfig {
|
|
24
26
|
id: string;
|
|
@@ -34,6 +36,7 @@ export interface IApprovalConfig {
|
|
|
34
36
|
item_management_body_id: string | null;
|
|
35
37
|
checkpoint_id: string | null;
|
|
36
38
|
vendor_onboarding_request_category_id: string | null;
|
|
39
|
+
company_distributor_category_id: string | null;
|
|
37
40
|
created_at: string;
|
|
38
41
|
updated_at: string;
|
|
39
42
|
company?: INestedCompany | null;
|
|
@@ -46,9 +49,10 @@ export interface IApprovalConfig {
|
|
|
46
49
|
item_management_body?: INestedItemManagementBody | null;
|
|
47
50
|
checkpoint?: INestedCheckpoint[] | null;
|
|
48
51
|
vendor_category?: INestedVendorOnboardingRequestCategory | null;
|
|
52
|
+
company_distibutor_category?: INestedCompanyDistributorCategory | null;
|
|
49
53
|
}
|
|
50
|
-
export interface INestedApprovalConfig extends Omit<IApprovalConfig, "approval_chain" | "company" | "office" | "store_location" | "purchase_location" | "gate" | "vendor_management_body" | "item_management_body" | "checkpoint" | "vendor_category"> {
|
|
54
|
+
export interface INestedApprovalConfig extends Omit<IApprovalConfig, "approval_chain" | "company" | "office" | "store_location" | "purchase_location" | "gate" | "vendor_management_body" | "item_management_body" | "checkpoint" | "vendor_category" | "company_distibutor_category"> {
|
|
51
55
|
}
|
|
52
|
-
export interface IApprovalConfigFilters extends Partial<Pick<IApprovalConfig, "office_id" | "gate_id" | "purchase_location_id" | "vendor_management_body_id" | "item_management_body_id" | "store_location_id" | "checkpoint_id" | "vendor_onboarding_request_category_id">> {
|
|
56
|
+
export interface IApprovalConfigFilters extends Partial<Pick<IApprovalConfig, "office_id" | "gate_id" | "purchase_location_id" | "vendor_management_body_id" | "item_management_body_id" | "store_location_id" | "checkpoint_id" | "vendor_onboarding_request_category_id" | "company_distributor_category_id">> {
|
|
53
57
|
include?: ApprovalConfigInlcude[] | null;
|
|
54
58
|
}
|
|
@@ -13,4 +13,5 @@ var APPROVAL_CONFIG_INCLUDE;
|
|
|
13
13
|
APPROVAL_CONFIG_INCLUDE["item_management_body"] = "item_management_body";
|
|
14
14
|
APPROVAL_CONFIG_INCLUDE["checkpoint"] = "checkpoint";
|
|
15
15
|
APPROVAL_CONFIG_INCLUDE["vendor_category"] = "vendor_category";
|
|
16
|
+
APPROVAL_CONFIG_INCLUDE["company_distibutor_category"] = "company_distibutor_category";
|
|
16
17
|
})(APPROVAL_CONFIG_INCLUDE || (exports.APPROVAL_CONFIG_INCLUDE = APPROVAL_CONFIG_INCLUDE = {}));
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
export interface IDistributorManagementBody {
|
|
7
|
+
id: string;
|
|
8
|
+
company_id: string;
|
|
9
|
+
created_by_id: string;
|
|
10
|
+
last_updated_by_id: string;
|
|
11
|
+
head_of_body_id: string;
|
|
12
|
+
distributor_management_body_name: string;
|
|
13
|
+
distributor_management_body_code: string;
|
|
14
|
+
is_enabled: boolean;
|
|
15
|
+
is_deleted: boolean;
|
|
16
|
+
deleted_at: string | null;
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
company: INestedCompany | null;
|
|
20
|
+
created_by_user: INestedUser | null;
|
|
21
|
+
last_updated_by_user: INestedUser | null;
|
|
22
|
+
head_of_body: INestedUser | null;
|
|
23
|
+
departments: INestedDepartment[] | null;
|
|
24
|
+
roles: INestedRole[] | null;
|
|
25
|
+
}
|
|
26
|
+
export interface INestedDistributorManagementBody extends Omit<IDistributorManagementBody, "company" | "created_by_user" | "last_updated_by_user" | "head_of_body" | "departments" | "roles"> {
|
|
27
|
+
}
|
|
28
|
+
export declare enum DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES {
|
|
29
|
+
company = "company",
|
|
30
|
+
created_by_user = "created_by_user",
|
|
31
|
+
last_updated_by_user = "last_updated_by_user",
|
|
32
|
+
head_of_body = "head_of_body",
|
|
33
|
+
departments = "departments",
|
|
34
|
+
roles = "roles"
|
|
35
|
+
}
|
|
36
|
+
export interface IDistributorManagementBodyFiltersWithPagination extends IPaginationFilters {
|
|
37
|
+
include?: DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES[];
|
|
38
|
+
name?: string | null;
|
|
39
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES = void 0;
|
|
4
|
+
var DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES;
|
|
5
|
+
(function (DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES) {
|
|
6
|
+
DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES["company"] = "company";
|
|
7
|
+
DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES["created_by_user"] = "created_by_user";
|
|
8
|
+
DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES["last_updated_by_user"] = "last_updated_by_user";
|
|
9
|
+
DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES["head_of_body"] = "head_of_body";
|
|
10
|
+
DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES["departments"] = "departments";
|
|
11
|
+
DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES["roles"] = "roles";
|
|
12
|
+
})(DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES || (exports.DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES = DISTRIBUTOR_MANAGEMENT_BODY_INCLUDES = {}));
|
|
@@ -45,6 +45,7 @@ export declare enum VENDOR_ONBOARDING_REQUEST_INCLUDES {
|
|
|
45
45
|
}
|
|
46
46
|
export interface IVendorOnboardingRequestFilters {
|
|
47
47
|
name?: string | null;
|
|
48
|
+
list_type?: VENDOR_ONBOARDING_REQUEST_LIST_TYPE;
|
|
48
49
|
status?: VENDOR_ONBOARDING_REQUEST_STATUS | null;
|
|
49
50
|
include?: VENDOR_ONBOARDING_REQUEST_INCLUDES[] | null;
|
|
50
51
|
}
|
|
@@ -130,3 +131,8 @@ export interface IOpenVendorOnboardingRequestApprovalData {
|
|
|
130
131
|
scores: INestedVendorOnboardingRequestScore[];
|
|
131
132
|
approvalChain: INestedEntityApprovalChainEntry[];
|
|
132
133
|
}
|
|
134
|
+
export declare enum VENDOR_ONBOARDING_REQUEST_LIST_TYPE {
|
|
135
|
+
ALL = "ALL",
|
|
136
|
+
CREATED_BY_ME = "CREATED_BY_ME",
|
|
137
|
+
MY_APPROVALS = "MY_APPROVALS"
|
|
138
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VENDOR_ONBOARDING_REQUEST_INCLUDES = exports.PRE_ASSESSMENT_FORM_STATUS = exports.VENDOR_ONBOARDING_REQUEST_STATUS = exports.VENDOR_ONBOARDING_REQUEST_VIEW_TYPE = void 0;
|
|
3
|
+
exports.VENDOR_ONBOARDING_REQUEST_LIST_TYPE = exports.VENDOR_ONBOARDING_REQUEST_INCLUDES = exports.PRE_ASSESSMENT_FORM_STATUS = exports.VENDOR_ONBOARDING_REQUEST_STATUS = exports.VENDOR_ONBOARDING_REQUEST_VIEW_TYPE = void 0;
|
|
4
4
|
var VENDOR_ONBOARDING_REQUEST_VIEW_TYPE;
|
|
5
5
|
(function (VENDOR_ONBOARDING_REQUEST_VIEW_TYPE) {
|
|
6
6
|
VENDOR_ONBOARDING_REQUEST_VIEW_TYPE["OPEN"] = "OPEN";
|
|
@@ -36,3 +36,9 @@ var VENDOR_ONBOARDING_REQUEST_INCLUDES;
|
|
|
36
36
|
VENDOR_ONBOARDING_REQUEST_INCLUDES["scores"] = "scores";
|
|
37
37
|
VENDOR_ONBOARDING_REQUEST_INCLUDES["vendor_onboarding_request_category"] = "vendor_onboarding_request_category";
|
|
38
38
|
})(VENDOR_ONBOARDING_REQUEST_INCLUDES || (exports.VENDOR_ONBOARDING_REQUEST_INCLUDES = VENDOR_ONBOARDING_REQUEST_INCLUDES = {}));
|
|
39
|
+
var VENDOR_ONBOARDING_REQUEST_LIST_TYPE;
|
|
40
|
+
(function (VENDOR_ONBOARDING_REQUEST_LIST_TYPE) {
|
|
41
|
+
VENDOR_ONBOARDING_REQUEST_LIST_TYPE["ALL"] = "ALL";
|
|
42
|
+
VENDOR_ONBOARDING_REQUEST_LIST_TYPE["CREATED_BY_ME"] = "CREATED_BY_ME";
|
|
43
|
+
VENDOR_ONBOARDING_REQUEST_LIST_TYPE["MY_APPROVALS"] = "MY_APPROVALS";
|
|
44
|
+
})(VENDOR_ONBOARDING_REQUEST_LIST_TYPE || (exports.VENDOR_ONBOARDING_REQUEST_LIST_TYPE = VENDOR_ONBOARDING_REQUEST_LIST_TYPE = {}));
|
|
@@ -55,6 +55,9 @@ import { INestedTemporaryWorkerForm } from "./temporaryWorkerForm.typings";
|
|
|
55
55
|
import { INestedAmendedPOItem } from "./company/masters/amendedPOItems.typings";
|
|
56
56
|
import { INestedSubPO } from "./subPO.typings";
|
|
57
57
|
import { INestedSubPOItem } from "./subPOItem.typings";
|
|
58
|
+
import { INestedDistributor } from "./distributor.typings";
|
|
59
|
+
import { INestedCompanyDistributorCategory } from "./companyDistributorCategory.typings";
|
|
60
|
+
import { INestedDistributorManagementBody } from "./company/masters/distributorManagementBody.typings";
|
|
58
61
|
export declare enum PRICING_PLANS {
|
|
59
62
|
BASIC = "BASIC",
|
|
60
63
|
GROWTH = "GROWTH",
|
|
@@ -125,7 +128,10 @@ export declare enum COMPANY_INCLUDE {
|
|
|
125
128
|
company_temporary_worker_form = "company_temporary_worker_form",
|
|
126
129
|
company_amended_po_items = "company_amended_po_items",
|
|
127
130
|
sub_pos = "sub_pos",
|
|
128
|
-
sub_po_items = "sub_po_items"
|
|
131
|
+
sub_po_items = "sub_po_items",
|
|
132
|
+
company_distributor_categories = "company_distributor_categories",
|
|
133
|
+
associated_distributor = "associated_distributor",
|
|
134
|
+
distributor_management_bodies = "distributor_management_bodies"
|
|
129
135
|
}
|
|
130
136
|
export interface ICompany extends IAddress {
|
|
131
137
|
id: string;
|
|
@@ -228,8 +234,11 @@ export interface ICompany extends IAddress {
|
|
|
228
234
|
company_temporary_worker_form: INestedTemporaryWorkerForm[] | null;
|
|
229
235
|
sub_pos: INestedSubPO[] | null;
|
|
230
236
|
sub_po_items: INestedSubPOItem[] | null;
|
|
237
|
+
company_distributor_categories: INestedCompanyDistributorCategory[] | null;
|
|
238
|
+
associated_distributor: INestedDistributor[] | null;
|
|
239
|
+
distributor_management_bodies: INestedDistributorManagementBody[] | null;
|
|
231
240
|
}
|
|
232
|
-
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" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugins" | "company_temporary_worker_form" | "extra_questions" | "is_deleted" | "payment_terms" | "po_grn_items_junction" | "vendor_onboarding_request_categories" | "company_amended_po_items" | "sub_pos" | "sub_po_items"> {
|
|
241
|
+
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" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugins" | "company_temporary_worker_form" | "extra_questions" | "is_deleted" | "payment_terms" | "po_grn_items_junction" | "vendor_onboarding_request_categories" | "company_amended_po_items" | "sub_pos" | "sub_po_items" | "company_distributor_categories" | "associated_distributor" | "distributor_management_bodies"> {
|
|
233
242
|
}
|
|
234
243
|
export interface ICompanyVendorAdditionalInfoMappingConfig {
|
|
235
244
|
additional_info_form_que_id: string;
|
|
@@ -73,6 +73,9 @@ var COMPANY_INCLUDE;
|
|
|
73
73
|
COMPANY_INCLUDE["company_amended_po_items"] = "company_amended_po_items";
|
|
74
74
|
COMPANY_INCLUDE["sub_pos"] = "sub_pos";
|
|
75
75
|
COMPANY_INCLUDE["sub_po_items"] = "sub_po_items";
|
|
76
|
+
COMPANY_INCLUDE["company_distributor_categories"] = "company_distributor_categories";
|
|
77
|
+
COMPANY_INCLUDE["associated_distributor"] = "associated_distributor";
|
|
78
|
+
COMPANY_INCLUDE["distributor_management_bodies"] = "distributor_management_bodies";
|
|
76
79
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
77
80
|
// export interface IUpdateVendorOnboardingRequestCategoriesInputs
|
|
78
81
|
// extends Pick<ICompany, "vendor_onboarding_request_categories"> {}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedCompanyDistributorCategory } from "./companyDistributorCategory.typings";
|
|
4
|
+
import { IDistributor } from "./distributor.typings";
|
|
5
|
+
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
6
|
+
import { INestedExtraFormAnswer } from "./settings/form/extraFormAns.typings";
|
|
7
|
+
import { INestedUser } from "./user.typings";
|
|
8
|
+
export interface ICompanyDistributor {
|
|
9
|
+
id: string;
|
|
10
|
+
company_id: string;
|
|
11
|
+
distributor_id: string;
|
|
12
|
+
distributor_code: string;
|
|
13
|
+
erp_distributor_code: string | null;
|
|
14
|
+
company_form_status: COMPANY_FORM_STATUS_FOR_DISTRIBUTOR;
|
|
15
|
+
status: string;
|
|
16
|
+
created_by_id: string | null;
|
|
17
|
+
last_updated_by_id: string | null;
|
|
18
|
+
sent_for_approval_by_user_id: string | null;
|
|
19
|
+
onboarded_by_id: string | null;
|
|
20
|
+
parent_company_distributor_category_id: string | null;
|
|
21
|
+
approved_at?: string | null;
|
|
22
|
+
sent_for_approval_at?: string | null;
|
|
23
|
+
onboarded_at?: string | null;
|
|
24
|
+
is_enabled: boolean;
|
|
25
|
+
is_deleted: boolean;
|
|
26
|
+
deleted_at?: string | null;
|
|
27
|
+
created_at?: string | null;
|
|
28
|
+
updated_at?: string | null;
|
|
29
|
+
company?: INestedCompany | null;
|
|
30
|
+
distributor?: IDistributor | null;
|
|
31
|
+
created_by_user: INestedUser | null;
|
|
32
|
+
last_updated_by_user: INestedUser | null;
|
|
33
|
+
sent_for_approval_by_user: INestedUser | null;
|
|
34
|
+
onboarded_by_user: INestedUser | null;
|
|
35
|
+
parent_company_distributor_category: INestedCompanyDistributorCategory | null;
|
|
36
|
+
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
37
|
+
extra_form_ans: INestedExtraFormAnswer[] | null;
|
|
38
|
+
}
|
|
39
|
+
export interface INestedCompanyDistributor extends Omit<ICompanyDistributor, "company" | "distributor" | "created_by_user" | "last_updated_by_user" | "sent_for_approval_by_user" | "onboarded_by_user" | "parent_company_distributor_category" | "approval_chain" | "extra_form_ans"> {
|
|
40
|
+
}
|
|
41
|
+
export declare enum COMPANY_DISTRIBUTOR_INCLUDE {
|
|
42
|
+
company = "company",
|
|
43
|
+
distributor = "distributor",
|
|
44
|
+
created_by_user = "created_by_user",
|
|
45
|
+
last_updated_by_user = "last_updated_by_user",
|
|
46
|
+
sent_for_approval_by_user = "sent_for_approval_by_user",
|
|
47
|
+
onboarded_by_user = "onboarded_by_user",
|
|
48
|
+
parent_company_distributor_category = "parent_company_distributor_category",
|
|
49
|
+
approval_chain = "approval_chain",
|
|
50
|
+
extra_form_ans = "extra_form_ans"
|
|
51
|
+
}
|
|
52
|
+
export declare enum COMPANY_FORM_STATUS_FOR_DISTRIBUTOR {
|
|
53
|
+
INVITED = "INVITED",
|
|
54
|
+
YET_TO_INVITE = "YET_TO_INVITE"
|
|
55
|
+
}
|
|
56
|
+
export declare enum COMPANY_DISTRIBUTOR_STATUS {
|
|
57
|
+
ONBOARDED = "ONBOARDED",
|
|
58
|
+
WAITLISTED = "WAITLISTED",
|
|
59
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
60
|
+
APPROVED = "APPROVED",
|
|
61
|
+
CANCELLED = "CANCELLED"
|
|
62
|
+
}
|
|
63
|
+
export interface ICompanyDistributorFilters {
|
|
64
|
+
name?: string;
|
|
65
|
+
ids?: string[];
|
|
66
|
+
status_array?: COMPANY_DISTRIBUTOR_STATUS[];
|
|
67
|
+
list_type?: COMPANY_DISTRIBUTOR_LIST_TYPE;
|
|
68
|
+
include?: COMPANY_DISTRIBUTOR_INCLUDE[];
|
|
69
|
+
}
|
|
70
|
+
export interface ICompanyDistributorFiltersWithPagination extends IPaginationFilters, ICompanyDistributorFilters {
|
|
71
|
+
}
|
|
72
|
+
export declare enum COMPANY_DISTRIBUTOR_LIST_TYPE {
|
|
73
|
+
ALL = "ALL",
|
|
74
|
+
CREATED_BY_ME = "CREATED_BY_ME",
|
|
75
|
+
MY_APPROVALS = "MY_APPROVALS"
|
|
76
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMPANY_DISTRIBUTOR_LIST_TYPE = exports.COMPANY_DISTRIBUTOR_STATUS = exports.COMPANY_FORM_STATUS_FOR_DISTRIBUTOR = exports.COMPANY_DISTRIBUTOR_INCLUDE = void 0;
|
|
4
|
+
var COMPANY_DISTRIBUTOR_INCLUDE;
|
|
5
|
+
(function (COMPANY_DISTRIBUTOR_INCLUDE) {
|
|
6
|
+
COMPANY_DISTRIBUTOR_INCLUDE["company"] = "company";
|
|
7
|
+
COMPANY_DISTRIBUTOR_INCLUDE["distributor"] = "distributor";
|
|
8
|
+
COMPANY_DISTRIBUTOR_INCLUDE["created_by_user"] = "created_by_user";
|
|
9
|
+
COMPANY_DISTRIBUTOR_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
10
|
+
COMPANY_DISTRIBUTOR_INCLUDE["sent_for_approval_by_user"] = "sent_for_approval_by_user";
|
|
11
|
+
COMPANY_DISTRIBUTOR_INCLUDE["onboarded_by_user"] = "onboarded_by_user";
|
|
12
|
+
COMPANY_DISTRIBUTOR_INCLUDE["parent_company_distributor_category"] = "parent_company_distributor_category";
|
|
13
|
+
COMPANY_DISTRIBUTOR_INCLUDE["approval_chain"] = "approval_chain";
|
|
14
|
+
COMPANY_DISTRIBUTOR_INCLUDE["extra_form_ans"] = "extra_form_ans";
|
|
15
|
+
})(COMPANY_DISTRIBUTOR_INCLUDE || (exports.COMPANY_DISTRIBUTOR_INCLUDE = COMPANY_DISTRIBUTOR_INCLUDE = {}));
|
|
16
|
+
var COMPANY_FORM_STATUS_FOR_DISTRIBUTOR;
|
|
17
|
+
(function (COMPANY_FORM_STATUS_FOR_DISTRIBUTOR) {
|
|
18
|
+
COMPANY_FORM_STATUS_FOR_DISTRIBUTOR["INVITED"] = "INVITED";
|
|
19
|
+
COMPANY_FORM_STATUS_FOR_DISTRIBUTOR["YET_TO_INVITE"] = "YET_TO_INVITE";
|
|
20
|
+
})(COMPANY_FORM_STATUS_FOR_DISTRIBUTOR || (exports.COMPANY_FORM_STATUS_FOR_DISTRIBUTOR = COMPANY_FORM_STATUS_FOR_DISTRIBUTOR = {}));
|
|
21
|
+
var COMPANY_DISTRIBUTOR_STATUS;
|
|
22
|
+
(function (COMPANY_DISTRIBUTOR_STATUS) {
|
|
23
|
+
COMPANY_DISTRIBUTOR_STATUS["ONBOARDED"] = "ONBOARDED";
|
|
24
|
+
COMPANY_DISTRIBUTOR_STATUS["WAITLISTED"] = "WAITLISTED";
|
|
25
|
+
COMPANY_DISTRIBUTOR_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
26
|
+
COMPANY_DISTRIBUTOR_STATUS["APPROVED"] = "APPROVED";
|
|
27
|
+
COMPANY_DISTRIBUTOR_STATUS["CANCELLED"] = "CANCELLED";
|
|
28
|
+
})(COMPANY_DISTRIBUTOR_STATUS || (exports.COMPANY_DISTRIBUTOR_STATUS = COMPANY_DISTRIBUTOR_STATUS = {}));
|
|
29
|
+
var COMPANY_DISTRIBUTOR_LIST_TYPE;
|
|
30
|
+
(function (COMPANY_DISTRIBUTOR_LIST_TYPE) {
|
|
31
|
+
COMPANY_DISTRIBUTOR_LIST_TYPE["ALL"] = "ALL";
|
|
32
|
+
COMPANY_DISTRIBUTOR_LIST_TYPE["CREATED_BY_ME"] = "CREATED_BY_ME";
|
|
33
|
+
COMPANY_DISTRIBUTOR_LIST_TYPE["MY_APPROVALS"] = "MY_APPROVALS";
|
|
34
|
+
})(COMPANY_DISTRIBUTOR_LIST_TYPE || (exports.COMPANY_DISTRIBUTOR_LIST_TYPE = COMPANY_DISTRIBUTOR_LIST_TYPE = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { INestedApprovalConfig } from "./approvalConfig.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedDistributor } from "./distributor.typings";
|
|
4
|
+
import { INestedUser } from "./user.typings";
|
|
5
|
+
export interface ICompanyDistributorCategory {
|
|
6
|
+
id: string;
|
|
7
|
+
company_id: string;
|
|
8
|
+
created_by_user_id: string;
|
|
9
|
+
last_updated_by_user_id: string;
|
|
10
|
+
category_name: string;
|
|
11
|
+
category_code: string;
|
|
12
|
+
is_deleted: boolean;
|
|
13
|
+
deleted_at: string | null;
|
|
14
|
+
created_at: string;
|
|
15
|
+
updated_at: string;
|
|
16
|
+
company: INestedCompany | null;
|
|
17
|
+
created_by_user: INestedUser | null;
|
|
18
|
+
updated_by_user: INestedUser | null;
|
|
19
|
+
company_distributor: INestedDistributor[] | null;
|
|
20
|
+
approval_configs: INestedApprovalConfig[] | null;
|
|
21
|
+
}
|
|
22
|
+
export interface INestedCompanyDistributorCategory extends Omit<ICompanyDistributorCategory, "company" | "created_by_user" | "updated_by_user" | "company_distributor" | "approval_configs"> {
|
|
23
|
+
}
|
|
24
|
+
export declare enum COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE {
|
|
25
|
+
company = "company",
|
|
26
|
+
created_by_user = "created_by_user",
|
|
27
|
+
updated_by_user = "updated_by_user",
|
|
28
|
+
company_distributor = "company_distributor",
|
|
29
|
+
approval_configs = "approval_configs"
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE = void 0;
|
|
4
|
+
var COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE;
|
|
5
|
+
(function (COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE) {
|
|
6
|
+
COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE["company"] = "company";
|
|
7
|
+
COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE["created_by_user"] = "created_by_user";
|
|
8
|
+
COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE["updated_by_user"] = "updated_by_user";
|
|
9
|
+
COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE["company_distributor"] = "company_distributor";
|
|
10
|
+
COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE["approval_configs"] = "approval_configs";
|
|
11
|
+
})(COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE || (exports.COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE = COMPANY_DISTRIBUTOR_CATEGORY_INCLUDE = {}));
|
|
@@ -58,19 +58,24 @@ export declare enum COMPANY_VENDOR_METAFIELDS_INCLUDE {
|
|
|
58
58
|
contact_details_for_po = "contact_details_for_po",
|
|
59
59
|
contact_details_for_quote = "contact_details_for_quote",
|
|
60
60
|
contact_details_for_asn = "contact_details_for_asn",
|
|
61
|
-
contact_details_for_general = "contact_details_for_general"
|
|
61
|
+
contact_details_for_general = "contact_details_for_general",
|
|
62
|
+
parent_vor_created_by_user = "parent_vor_created_by_user"
|
|
62
63
|
}
|
|
63
64
|
export interface ICompanyVendorMetafields {
|
|
64
65
|
contact_details_for_po: INestedVendorUser | null;
|
|
65
66
|
contact_details_for_quote: INestedVendorUser | null;
|
|
66
67
|
contact_details_for_asn: INestedVendorUser | null;
|
|
67
68
|
contact_details_for_general: INestedVendorUser | null;
|
|
69
|
+
parent_vor_created_by_user: INestedUser | null;
|
|
68
70
|
}
|
|
69
71
|
export interface ICompanyVendorFilters {
|
|
70
72
|
name?: string;
|
|
71
73
|
ids?: string[];
|
|
72
74
|
item_categories?: string[];
|
|
75
|
+
/** @deprecated Use status_array instead*/
|
|
73
76
|
status?: COMPANY_VENDOR_STATUS;
|
|
77
|
+
status_array?: COMPANY_VENDOR_STATUS[];
|
|
78
|
+
list_type?: COMPANY_VENDOR_LIST_TYPE;
|
|
74
79
|
include?: CompanyVendorsInclude[];
|
|
75
80
|
metafields_include?: COMPANY_VENDOR_METAFIELDS_INCLUDE[];
|
|
76
81
|
}
|
|
@@ -166,3 +171,8 @@ export interface IVENDOR_ONBOARDING_FORM_TOKEN_PAYLOAD {
|
|
|
166
171
|
company_id: string;
|
|
167
172
|
vendor_id: string;
|
|
168
173
|
}
|
|
174
|
+
export declare enum COMPANY_VENDOR_LIST_TYPE {
|
|
175
|
+
ALL = "ALL",
|
|
176
|
+
CREATED_BY_ME = "CREATED_BY_ME",
|
|
177
|
+
MY_APPROVALS = "MY_APPROVALS"
|
|
178
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COMPANY_VENDOR_METAFIELDS_INCLUDE = exports.CompanyVendorsInclude = exports.COMPANY_VENDOR_STATUS = exports.COMPANY_FORM_STATUS_FOR_VENDOR = void 0;
|
|
3
|
+
exports.COMPANY_VENDOR_LIST_TYPE = exports.COMPANY_VENDOR_METAFIELDS_INCLUDE = exports.CompanyVendorsInclude = exports.COMPANY_VENDOR_STATUS = exports.COMPANY_FORM_STATUS_FOR_VENDOR = void 0;
|
|
4
4
|
var COMPANY_FORM_STATUS_FOR_VENDOR;
|
|
5
5
|
(function (COMPANY_FORM_STATUS_FOR_VENDOR) {
|
|
6
6
|
COMPANY_FORM_STATUS_FOR_VENDOR["INVITED"] = "INVITED";
|
|
@@ -47,4 +47,11 @@ var COMPANY_VENDOR_METAFIELDS_INCLUDE;
|
|
|
47
47
|
COMPANY_VENDOR_METAFIELDS_INCLUDE["contact_details_for_quote"] = "contact_details_for_quote";
|
|
48
48
|
COMPANY_VENDOR_METAFIELDS_INCLUDE["contact_details_for_asn"] = "contact_details_for_asn";
|
|
49
49
|
COMPANY_VENDOR_METAFIELDS_INCLUDE["contact_details_for_general"] = "contact_details_for_general";
|
|
50
|
+
COMPANY_VENDOR_METAFIELDS_INCLUDE["parent_vor_created_by_user"] = "parent_vor_created_by_user";
|
|
50
51
|
})(COMPANY_VENDOR_METAFIELDS_INCLUDE || (exports.COMPANY_VENDOR_METAFIELDS_INCLUDE = COMPANY_VENDOR_METAFIELDS_INCLUDE = {}));
|
|
52
|
+
var COMPANY_VENDOR_LIST_TYPE;
|
|
53
|
+
(function (COMPANY_VENDOR_LIST_TYPE) {
|
|
54
|
+
COMPANY_VENDOR_LIST_TYPE["ALL"] = "ALL";
|
|
55
|
+
COMPANY_VENDOR_LIST_TYPE["CREATED_BY_ME"] = "CREATED_BY_ME";
|
|
56
|
+
COMPANY_VENDOR_LIST_TYPE["MY_APPROVALS"] = "MY_APPROVALS";
|
|
57
|
+
})(COMPANY_VENDOR_LIST_TYPE || (exports.COMPANY_VENDOR_LIST_TYPE = COMPANY_VENDOR_LIST_TYPE = {}));
|
|
@@ -2,6 +2,7 @@ import { EntityTypes } from "../constants/entityTypes.constants";
|
|
|
2
2
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
3
3
|
import { INestedCompany } from "./company.typings";
|
|
4
4
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
5
|
+
import { INestedDistributorManagementBody } from "./company/masters/distributorManagementBody.typings";
|
|
5
6
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
6
7
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
7
8
|
import { INestedVendorOnboardingRequest } from "./company/vendorOnboardingRequest/vendorOnboardingRequest.typing";
|
|
@@ -15,7 +16,7 @@ import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
|
15
16
|
import { INestedRole } from "./roles.typings";
|
|
16
17
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
17
18
|
import { INestedUser } from "./user.typings";
|
|
18
|
-
export interface IDepartmentFilters extends Partial<Pick<IDepartment, "office_id" | "store_location_id" | "purchase_location_id" | "gate_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id">> {
|
|
19
|
+
export interface IDepartmentFilters extends Partial<Pick<IDepartment, "office_id" | "store_location_id" | "purchase_location_id" | "gate_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id" | "distributor_management_body_id">> {
|
|
19
20
|
name?: string;
|
|
20
21
|
type?: EntityTypes;
|
|
21
22
|
include?: DepartmentInclude[];
|
|
@@ -38,6 +39,7 @@ export interface IDepartment {
|
|
|
38
39
|
vendor_management_body_id?: string | null;
|
|
39
40
|
item_management_body_id?: string | null;
|
|
40
41
|
checkpoint_id?: string | null;
|
|
42
|
+
distributor_management_body_id?: string | null;
|
|
41
43
|
department_name: string;
|
|
42
44
|
department_code: string;
|
|
43
45
|
created_by_id: string;
|
|
@@ -62,8 +64,9 @@ export interface IDepartment {
|
|
|
62
64
|
grns?: null | INestedGRN[];
|
|
63
65
|
mrns?: null | INestedMRN[];
|
|
64
66
|
vendor_onboarding_requests?: INestedVendorOnboardingRequest[] | null;
|
|
67
|
+
parent_distributor_management_body?: INestedDistributorManagementBody | null;
|
|
65
68
|
}
|
|
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"> {
|
|
69
|
+
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" | "parent_distributor_management_body"> {
|
|
67
70
|
}
|
|
68
71
|
export declare enum DepartmentInclude {
|
|
69
72
|
company = "company",
|
|
@@ -81,7 +84,8 @@ export declare enum DepartmentInclude {
|
|
|
81
84
|
parent_vendor_management_body = "parent_vendor_management_body",
|
|
82
85
|
vendor_onboarding_requests = "vendor_onboarding_requests",
|
|
83
86
|
parent_item_management_body = "parent_item_management_body",
|
|
84
|
-
parent_checkpoint = "parent_checkpoint"
|
|
87
|
+
parent_checkpoint = "parent_checkpoint",
|
|
88
|
+
parent_distributor_management_body = "parent_distributor_management_body"
|
|
85
89
|
}
|
|
86
90
|
export interface ISubDepartment {
|
|
87
91
|
id: string;
|
|
@@ -19,4 +19,5 @@ var DepartmentInclude;
|
|
|
19
19
|
DepartmentInclude["vendor_onboarding_requests"] = "vendor_onboarding_requests";
|
|
20
20
|
DepartmentInclude["parent_item_management_body"] = "parent_item_management_body";
|
|
21
21
|
DepartmentInclude["parent_checkpoint"] = "parent_checkpoint";
|
|
22
|
+
DepartmentInclude["parent_distributor_management_body"] = "parent_distributor_management_body";
|
|
22
23
|
})(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
export interface IDistributor {
|
|
4
|
+
id: string;
|
|
5
|
+
distributor_trade_name: string;
|
|
6
|
+
contact: string;
|
|
7
|
+
email: string;
|
|
8
|
+
nature_of_business: string | null;
|
|
9
|
+
distributor_business_categories: string[];
|
|
10
|
+
distributor_legal_name: string | null;
|
|
11
|
+
constitution_of_business: string | null;
|
|
12
|
+
pincode: string | null;
|
|
13
|
+
area: string | null;
|
|
14
|
+
city: string | null;
|
|
15
|
+
state: string | null;
|
|
16
|
+
address: string | null;
|
|
17
|
+
maps_location: string | null;
|
|
18
|
+
country: string | null;
|
|
19
|
+
firstname: string | null;
|
|
20
|
+
middlename: string | null;
|
|
21
|
+
lastname: string | null;
|
|
22
|
+
designation: string | null;
|
|
23
|
+
bank_name: string | null;
|
|
24
|
+
bank_branch_name: string | null;
|
|
25
|
+
beneficiary_name: string | null;
|
|
26
|
+
bank_account_number: string | null;
|
|
27
|
+
bank_ifsc_code: string | null;
|
|
28
|
+
bank_city: string | null;
|
|
29
|
+
bank_pincode: string | null;
|
|
30
|
+
is_bank_details_verified: boolean;
|
|
31
|
+
gst_no: string | null;
|
|
32
|
+
gst_attachment_link: string | null;
|
|
33
|
+
is_gst_verified: boolean;
|
|
34
|
+
pan_no: string | null;
|
|
35
|
+
pan_attachment_link: string | null;
|
|
36
|
+
is_pan_verified: boolean;
|
|
37
|
+
cin: string | null;
|
|
38
|
+
cin_attachment_link: string | null;
|
|
39
|
+
is_cin_verified: boolean;
|
|
40
|
+
udyam_aadhar: string | null;
|
|
41
|
+
udyam_aadhar_attachment_link: string | null;
|
|
42
|
+
is_udyam_verified: boolean;
|
|
43
|
+
iso_attachment_link: string | null;
|
|
44
|
+
fssai_no: string | null;
|
|
45
|
+
fssai_no_valid_from: string | null;
|
|
46
|
+
fssai_no_valid_to: string | null;
|
|
47
|
+
fssai_attachment_link: string | null;
|
|
48
|
+
cancelled_cheque_attachment_link: string | null;
|
|
49
|
+
is_invitation_sent: boolean;
|
|
50
|
+
is_profile_complete: boolean;
|
|
51
|
+
is_profile_verified: boolean;
|
|
52
|
+
is_self_verified: boolean;
|
|
53
|
+
svf_form_status: DISTRIBUTOR_SVF_FORM_STATUS | null;
|
|
54
|
+
profile_img: string | null;
|
|
55
|
+
is_enabled?: boolean | null;
|
|
56
|
+
is_deleted?: boolean | null;
|
|
57
|
+
deleted_at?: string | null;
|
|
58
|
+
created_at?: string | null;
|
|
59
|
+
updated_at?: string | null;
|
|
60
|
+
associated_companies: INestedCompany[] | null;
|
|
61
|
+
}
|
|
62
|
+
export interface INestedDistributor extends Omit<IDistributor, "associated_companies"> {
|
|
63
|
+
}
|
|
64
|
+
export declare enum DISTRIBUTOR_INCLUDE {
|
|
65
|
+
associated_companies = "associated_companies"
|
|
66
|
+
}
|
|
67
|
+
export interface IDISTRIBUTOR_SVF_TOKEN_PAYLOAD {
|
|
68
|
+
distributor_id: string;
|
|
69
|
+
}
|
|
70
|
+
export declare enum DISTRIBUTOR_SVF_FORM_STATUS {
|
|
71
|
+
SENT = "SENT",
|
|
72
|
+
ANSWERED = "ANSWERED",
|
|
73
|
+
ROLLED_BACK = "ROLLED_BACK"
|
|
74
|
+
}
|
|
75
|
+
export interface IDistributorFilter {
|
|
76
|
+
name?: string;
|
|
77
|
+
include?: DISTRIBUTOR_INCLUDE[];
|
|
78
|
+
}
|
|
79
|
+
export interface IDistributorFiltersWithPagination extends IPaginationFilters, IDistributorFilter {
|
|
80
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DISTRIBUTOR_SVF_FORM_STATUS = exports.DISTRIBUTOR_INCLUDE = void 0;
|
|
4
|
+
var DISTRIBUTOR_INCLUDE;
|
|
5
|
+
(function (DISTRIBUTOR_INCLUDE) {
|
|
6
|
+
DISTRIBUTOR_INCLUDE["associated_companies"] = "associated_companies";
|
|
7
|
+
})(DISTRIBUTOR_INCLUDE || (exports.DISTRIBUTOR_INCLUDE = DISTRIBUTOR_INCLUDE = {}));
|
|
8
|
+
var DISTRIBUTOR_SVF_FORM_STATUS;
|
|
9
|
+
(function (DISTRIBUTOR_SVF_FORM_STATUS) {
|
|
10
|
+
DISTRIBUTOR_SVF_FORM_STATUS["SENT"] = "SENT";
|
|
11
|
+
DISTRIBUTOR_SVF_FORM_STATUS["ANSWERED"] = "ANSWERED";
|
|
12
|
+
DISTRIBUTOR_SVF_FORM_STATUS["ROLLED_BACK"] = "ROLLED_BACK";
|
|
13
|
+
})(DISTRIBUTOR_SVF_FORM_STATUS || (exports.DISTRIBUTOR_SVF_FORM_STATUS = DISTRIBUTOR_SVF_FORM_STATUS = {}));
|
|
@@ -17,6 +17,7 @@ import { INestedRFQ } from "./rfq.typings";
|
|
|
17
17
|
import { INestedRole } from "./roles.typings";
|
|
18
18
|
import { INestedUser } from "./user.typings";
|
|
19
19
|
import { INestedSubPO } from "./subPO.typings";
|
|
20
|
+
import { INestedCompanyDistributor } from "./companyDistributor.typings";
|
|
20
21
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
21
22
|
INDENT = "INDENT",
|
|
22
23
|
PR = "PR",
|
|
@@ -33,7 +34,8 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
|
33
34
|
VES = "VES",
|
|
34
35
|
ISTD_SOURCE = "ISTD_SOURCE",
|
|
35
36
|
ISTD_DEST = "ISTD_DEST",
|
|
36
|
-
SUB_PO = "SUB_PO"
|
|
37
|
+
SUB_PO = "SUB_PO",
|
|
38
|
+
COMPANY_DISTRIBUTOR = "COMPANY_DISTRIBUTOR"
|
|
37
39
|
}
|
|
38
40
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
39
41
|
company = "company",
|
|
@@ -55,7 +57,8 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
|
55
57
|
item = "item",
|
|
56
58
|
company_vendor = "company_vendor",
|
|
57
59
|
vendor_onboarding_request_scores = "vendor_onboarding_request_scores",
|
|
58
|
-
ves = "ves"
|
|
60
|
+
ves = "ves",
|
|
61
|
+
company_distributor = "company_distributor"
|
|
59
62
|
}
|
|
60
63
|
export interface IEntityApprovalChainEntry {
|
|
61
64
|
id: string;
|
|
@@ -82,6 +85,7 @@ export interface IEntityApprovalChainEntry {
|
|
|
82
85
|
item_id?: string | null;
|
|
83
86
|
company_vendor_id?: string | null;
|
|
84
87
|
ves_id?: string | null;
|
|
88
|
+
company_distibutor_id?: string | null;
|
|
85
89
|
deleted_at: string | null;
|
|
86
90
|
is_deleted: boolean | null;
|
|
87
91
|
created_at: string | null;
|
|
@@ -107,6 +111,7 @@ export interface IEntityApprovalChainEntry {
|
|
|
107
111
|
vendor_onboarding_request_scores?: INestedVendorOnboardingRequestScore[] | null;
|
|
108
112
|
item: INestedItem | null;
|
|
109
113
|
asn: INestedASN | null;
|
|
114
|
+
company_distributor?: INestedCompanyDistributor | null;
|
|
110
115
|
}
|
|
111
|
-
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "sub_po" | "grn" | "mrn" | "source_istd" | "dest_istd" | "vendor_onboarding_request" | "company_vendor" | "vendor_onboarding_request_scores" | "item" | "asn" | "ves"> {
|
|
116
|
+
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "sub_po" | "grn" | "mrn" | "source_istd" | "dest_istd" | "vendor_onboarding_request" | "company_vendor" | "vendor_onboarding_request_scores" | "item" | "asn" | "ves" | "company_distributor"> {
|
|
112
117
|
}
|
|
@@ -19,6 +19,7 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS;
|
|
|
19
19
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ISTD_SOURCE"] = "ISTD_SOURCE";
|
|
20
20
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ISTD_DEST"] = "ISTD_DEST";
|
|
21
21
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["SUB_PO"] = "SUB_PO";
|
|
22
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["COMPANY_DISTRIBUTOR"] = "COMPANY_DISTRIBUTOR";
|
|
22
23
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = {}));
|
|
23
24
|
var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
24
25
|
(function (ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES) {
|
|
@@ -42,4 +43,5 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
|
42
43
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["company_vendor"] = "company_vendor";
|
|
43
44
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["vendor_onboarding_request_scores"] = "vendor_onboarding_request_scores";
|
|
44
45
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["ves"] = "ves";
|
|
46
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["company_distributor"] = "company_distributor";
|
|
45
47
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = {}));
|
|
@@ -3,6 +3,7 @@ import { INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
|
3
3
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
4
|
import { INestedCompany } from "./company.typings";
|
|
5
5
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
6
|
+
import { INestedDistributorManagementBody } from "./company/masters/distributorManagementBody.typings";
|
|
6
7
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
7
8
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
8
9
|
import { INestedDepartment } from "./department.typings";
|
|
@@ -28,9 +29,10 @@ export declare enum RolesInclude {
|
|
|
28
29
|
company = "company",
|
|
29
30
|
item_management_body = "item_management_body",
|
|
30
31
|
checkpoint = "checkpoint",
|
|
31
|
-
associated_queue_jobs = "associated_queue_jobs"
|
|
32
|
+
associated_queue_jobs = "associated_queue_jobs",
|
|
33
|
+
distributor_management_body = "distributor_management_body"
|
|
32
34
|
}
|
|
33
|
-
export interface IRoleFilters extends Partial<Pick<IRoles, "store_location_id" | "purchase_location_id" | "gate_id" | "office_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id">> {
|
|
35
|
+
export interface IRoleFilters extends Partial<Pick<IRoles, "store_location_id" | "purchase_location_id" | "gate_id" | "office_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id" | "distributor_management_body_id">> {
|
|
34
36
|
type?: string;
|
|
35
37
|
name?: string;
|
|
36
38
|
department_ids?: string[];
|
|
@@ -56,6 +58,7 @@ export interface IRoles {
|
|
|
56
58
|
vendor_management_body_id: string | null;
|
|
57
59
|
item_management_body_id: string | null;
|
|
58
60
|
checkpoint_id: string | null;
|
|
61
|
+
distributor_management_body_id: string | null;
|
|
59
62
|
is_enabled: boolean;
|
|
60
63
|
is_deleted: boolean;
|
|
61
64
|
deleted_at: string;
|
|
@@ -76,8 +79,9 @@ export interface IRoles {
|
|
|
76
79
|
item_management_body: INestedItemManagementBody | null;
|
|
77
80
|
checkpoint: INestedCheckpoint | null;
|
|
78
81
|
associated_queue_jobs: INestedQueueJob[] | null;
|
|
82
|
+
distributor_management_body?: INestedDistributorManagementBody | null;
|
|
79
83
|
}
|
|
80
|
-
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" | "associated_queue_jobs"> {
|
|
84
|
+
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" | "associated_queue_jobs" | "distributor_management_body"> {
|
|
81
85
|
}
|
|
82
86
|
export interface IPermissions extends Record<string | PERMISSION_ACTIONS, any> {
|
|
83
87
|
id: string;
|
|
@@ -22,6 +22,7 @@ var RolesInclude;
|
|
|
22
22
|
RolesInclude["item_management_body"] = "item_management_body";
|
|
23
23
|
RolesInclude["checkpoint"] = "checkpoint";
|
|
24
24
|
RolesInclude["associated_queue_jobs"] = "associated_queue_jobs";
|
|
25
|
+
RolesInclude["distributor_management_body"] = "distributor_management_body";
|
|
25
26
|
})(RolesInclude || (exports.RolesInclude = RolesInclude = {}));
|
|
26
27
|
var PermissionInclude;
|
|
27
28
|
(function (PermissionInclude) {
|
|
@@ -14,6 +14,9 @@ export interface IVendorComplianceFormQuesAnsReq {
|
|
|
14
14
|
export interface ISystemIntegrationFormQuesAnsReq {
|
|
15
15
|
company_vendor_id: string;
|
|
16
16
|
}
|
|
17
|
+
export interface IDistributorSystemIntegrationFormQuesAnsReq {
|
|
18
|
+
company_distributor_id: string;
|
|
19
|
+
}
|
|
17
20
|
export interface IPATFormQuesAnsReq {
|
|
18
21
|
vendor_onboarding_request_id: string;
|
|
19
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { INestedCompany } from "../../company.typings";
|
|
2
2
|
import { INestedVendorOnboardingRequest } from "../../company/vendorOnboardingRequest/vendorOnboardingRequest.typing";
|
|
3
3
|
import { INestedVendorOnboardingRequestScore } from "../../company/vendorOnboardingRequest/vendorOnboardingRequestScore.typings";
|
|
4
|
+
import { INestedCompanyDistributor } from "../../companyDistributor.typings";
|
|
4
5
|
import { INestedCompanyVendors } from "../../companyVendors.typings";
|
|
5
6
|
import { INestedUser } from "../../user.typings";
|
|
6
7
|
import { INestedVendor } from "../../vendor.typings";
|
|
@@ -12,7 +13,8 @@ export declare enum EXTRA_FORM_ANSWERS_INLCUDE {
|
|
|
12
13
|
vendor = "vendor",
|
|
13
14
|
vendor_onboarding_request = "vendor_onboarding_request",
|
|
14
15
|
scores = "scores",
|
|
15
|
-
company_vendor = "company_vendor"
|
|
16
|
+
company_vendor = "company_vendor",
|
|
17
|
+
company_distributor = "company_distributor"
|
|
16
18
|
}
|
|
17
19
|
export interface IEXtraFormAnswers {
|
|
18
20
|
id: string;
|
|
@@ -21,6 +23,7 @@ export interface IEXtraFormAnswers {
|
|
|
21
23
|
user_id: string | null;
|
|
22
24
|
vendor_id: string | null;
|
|
23
25
|
company_vendor_id: string | null;
|
|
26
|
+
company_distributor_id: string | null;
|
|
24
27
|
vendor_onboarding_request_id: string | null;
|
|
25
28
|
text_ans: string | null;
|
|
26
29
|
yes_no_ans: boolean | null;
|
|
@@ -40,8 +43,9 @@ export interface IEXtraFormAnswers {
|
|
|
40
43
|
company_vendor: INestedCompanyVendors | null;
|
|
41
44
|
vendor_onboarding_request: INestedVendorOnboardingRequest | null;
|
|
42
45
|
scores: INestedVendorOnboardingRequestScore[] | null;
|
|
46
|
+
company_distributor: INestedCompanyDistributor | null;
|
|
43
47
|
}
|
|
44
|
-
export interface INestedExtraFormAnswer extends Omit<IEXtraFormAnswers, "parent_que" | "company" | "user" | "vendor" | "vendor_onboarding_request" | "scores" | "company_vendor"> {
|
|
48
|
+
export interface INestedExtraFormAnswer extends Omit<IEXtraFormAnswers, "parent_que" | "company" | "user" | "vendor" | "vendor_onboarding_request" | "scores" | "company_vendor" | "company_distributor"> {
|
|
45
49
|
}
|
|
46
50
|
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
51
|
}
|
|
@@ -10,4 +10,5 @@ var EXTRA_FORM_ANSWERS_INLCUDE;
|
|
|
10
10
|
EXTRA_FORM_ANSWERS_INLCUDE["vendor_onboarding_request"] = "vendor_onboarding_request";
|
|
11
11
|
EXTRA_FORM_ANSWERS_INLCUDE["scores"] = "scores";
|
|
12
12
|
EXTRA_FORM_ANSWERS_INLCUDE["company_vendor"] = "company_vendor";
|
|
13
|
+
EXTRA_FORM_ANSWERS_INLCUDE["company_distributor"] = "company_distributor";
|
|
13
14
|
})(EXTRA_FORM_ANSWERS_INLCUDE || (exports.EXTRA_FORM_ANSWERS_INLCUDE = EXTRA_FORM_ANSWERS_INLCUDE = {}));
|
|
@@ -17,7 +17,8 @@ export interface IExtraFormFieldState {
|
|
|
17
17
|
export declare enum CONFIGURABLE_FORM_TYPES {
|
|
18
18
|
VENDOR_ONBOARDING = "vendor-onboarding",
|
|
19
19
|
VENDOR_PRE_ASSESSMENT = "VENDOR_PRE_ASSESSMENT",
|
|
20
|
-
COMPANY_VENDOR_ADDITIONAL_FIELDS = "COMPANY_VENDOR_ADDITIONAL_FIELDS"
|
|
20
|
+
COMPANY_VENDOR_ADDITIONAL_FIELDS = "COMPANY_VENDOR_ADDITIONAL_FIELDS",// Vendor System Integration
|
|
21
|
+
DISTRIBUTOR_SYSTEM_INTEGRATION = "DISTRIBUTOR_SYSTEM_INTEGRATION"
|
|
21
22
|
}
|
|
22
23
|
export declare enum EXTRA_FORM_QUESTION_TYPES {
|
|
23
24
|
TEXT = "TEXT",
|
|
@@ -6,6 +6,7 @@ var CONFIGURABLE_FORM_TYPES;
|
|
|
6
6
|
CONFIGURABLE_FORM_TYPES["VENDOR_ONBOARDING"] = "vendor-onboarding";
|
|
7
7
|
CONFIGURABLE_FORM_TYPES["VENDOR_PRE_ASSESSMENT"] = "VENDOR_PRE_ASSESSMENT";
|
|
8
8
|
CONFIGURABLE_FORM_TYPES["COMPANY_VENDOR_ADDITIONAL_FIELDS"] = "COMPANY_VENDOR_ADDITIONAL_FIELDS";
|
|
9
|
+
CONFIGURABLE_FORM_TYPES["DISTRIBUTOR_SYSTEM_INTEGRATION"] = "DISTRIBUTOR_SYSTEM_INTEGRATION";
|
|
9
10
|
})(CONFIGURABLE_FORM_TYPES || (exports.CONFIGURABLE_FORM_TYPES = CONFIGURABLE_FORM_TYPES = {}));
|
|
10
11
|
var EXTRA_FORM_QUESTION_TYPES;
|
|
11
12
|
(function (EXTRA_FORM_QUESTION_TYPES) {
|
|
@@ -49,6 +49,9 @@ import { INestedTemporaryWorkerForm } from "./temporaryWorkerForm.typings";
|
|
|
49
49
|
import { INestedAmendedPOItem } from "./company/masters/amendedPOItems.typings";
|
|
50
50
|
import { INestedSubPOItem } from "./subPOItem.typings";
|
|
51
51
|
import { INestedSubPO } from "./subPO.typings";
|
|
52
|
+
import { INestedCompanyDistributorCategory } from "./companyDistributorCategory.typings";
|
|
53
|
+
import { INestedCompanyDistributor } from "./companyDistributor.typings";
|
|
54
|
+
import { INestedDistributorManagementBody } from "./company/masters/distributorManagementBody.typings";
|
|
52
55
|
export interface IUser {
|
|
53
56
|
id: string;
|
|
54
57
|
is_enabled?: boolean | null;
|
|
@@ -204,8 +207,17 @@ export interface IUser {
|
|
|
204
207
|
created_sub_po_items: INestedSubPOItem[] | null;
|
|
205
208
|
last_updated_sub_po_items: INestedSubPOItem[] | null;
|
|
206
209
|
marked_as_deleted_sub_po_items: INestedSubPOItem[] | null;
|
|
210
|
+
created_company_distributor_categories: INestedCompanyDistributorCategory[] | null;
|
|
211
|
+
last_updated_company_distributor_categories: INestedCompanyDistributorCategory[] | null;
|
|
212
|
+
company_distributor_created_by_user: INestedCompanyDistributor[] | null;
|
|
213
|
+
company_distributor_last_updated_by_user: INestedCompanyDistributor[] | null;
|
|
214
|
+
sent_for_approval_company_distributor: INestedCompanyDistributor[] | null;
|
|
215
|
+
onboarded_company_distributor: INestedCompanyDistributor[] | null;
|
|
216
|
+
created_distributor_management_bodies: INestedDistributorManagementBody[] | null;
|
|
217
|
+
last_updated_distributor_management_bodies: INestedDistributorManagementBody[] | null;
|
|
218
|
+
head_of_distributor_management_bodies: INestedDistributorManagementBody[] | null;
|
|
207
219
|
}
|
|
208
|
-
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" | "created_terms_and_conditions" | "last_updated_terms_and_conditions" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "pos_closed_early" | "ves_created_by_user" | "ves_last_updated_by_user" | "ves_cancelled_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint" | "created_queue_jobs" | "last_updated_payment_terms" | "created_temporary_worker_form" | "last_updated_temporary_worker_form" | "resolved_mrns" | "created_amended_po_items" | "last_updated_amended_po_items" | "created_sub_pos" | "last_updated_sub_pos" | "sent_for_approval_sub_pos" | "sent_to_vendor_sub_pos" | "created_sub_po_items" | "last_updated_sub_po_items" | "marked_as_deleted_sub_po_items"> {
|
|
220
|
+
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" | "created_terms_and_conditions" | "last_updated_terms_and_conditions" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "pos_closed_early" | "ves_created_by_user" | "ves_last_updated_by_user" | "ves_cancelled_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint" | "created_queue_jobs" | "last_updated_payment_terms" | "created_temporary_worker_form" | "last_updated_temporary_worker_form" | "resolved_mrns" | "created_amended_po_items" | "last_updated_amended_po_items" | "created_sub_pos" | "last_updated_sub_pos" | "sent_for_approval_sub_pos" | "sent_to_vendor_sub_pos" | "created_sub_po_items" | "last_updated_sub_po_items" | "marked_as_deleted_sub_po_items" | "created_company_distributor_categories" | "last_updated_company_distributor_categories" | "company_distributor_created_by_user" | "company_distributor_last_updated_by_user" | "sent_for_approval_company_distributor" | "onboarded_company_distributor" | "created_distributor_management_bodies" | "last_updated_distributor_management_bodies" | "head_of_distributor_management_bodies"> {
|
|
209
221
|
}
|
|
210
222
|
export declare enum UserInclude {
|
|
211
223
|
subordinates = "subordinates",
|
|
@@ -338,7 +350,16 @@ export declare enum UserInclude {
|
|
|
338
350
|
sent_to_vendor_sub_pos = "sent_to_vendor_sub_pos",
|
|
339
351
|
created_sub_po_items = "created_sub_po_items",
|
|
340
352
|
last_updated_sub_po_items = "last_updated_sub_po_items",
|
|
341
|
-
marked_as_deleted_sub_po_items = "marked_as_deleted_sub_po_items"
|
|
353
|
+
marked_as_deleted_sub_po_items = "marked_as_deleted_sub_po_items",
|
|
354
|
+
created_company_distributor_categories = "created_company_distributor_categories",
|
|
355
|
+
last_updated_company_distributor_categories = "last_updated_company_distributor_categories",
|
|
356
|
+
company_distributor_created_by_user = "company_distributor_created_by_user",
|
|
357
|
+
company_distributor_last_updated_by_user = "company_distributor_last_updated_by_user",
|
|
358
|
+
sent_for_approval_company_distributor = "sent_for_approval_company_distributor",
|
|
359
|
+
onboarded_company_distributor = "onboarded_company_distributor",
|
|
360
|
+
created_distributor_management_bodies = "created_distributor_management_bodies",
|
|
361
|
+
last_updated_distributor_management_bodies = "last_updated_distributor_management_bodies",
|
|
362
|
+
head_of_distributor_management_bodies = "head_of_distributor_management_bodies"
|
|
342
363
|
}
|
|
343
364
|
export interface IUserFilters {
|
|
344
365
|
name?: string | null;
|
|
@@ -136,4 +136,13 @@ var UserInclude;
|
|
|
136
136
|
UserInclude["created_sub_po_items"] = "created_sub_po_items";
|
|
137
137
|
UserInclude["last_updated_sub_po_items"] = "last_updated_sub_po_items";
|
|
138
138
|
UserInclude["marked_as_deleted_sub_po_items"] = "marked_as_deleted_sub_po_items";
|
|
139
|
+
UserInclude["created_company_distributor_categories"] = "created_company_distributor_categories";
|
|
140
|
+
UserInclude["last_updated_company_distributor_categories"] = "last_updated_company_distributor_categories";
|
|
141
|
+
UserInclude["company_distributor_created_by_user"] = "company_distributor_created_by_user";
|
|
142
|
+
UserInclude["company_distributor_last_updated_by_user"] = "company_distributor_last_updated_by_user";
|
|
143
|
+
UserInclude["sent_for_approval_company_distributor"] = "sent_for_approval_company_distributor";
|
|
144
|
+
UserInclude["onboarded_company_distributor"] = "onboarded_company_distributor";
|
|
145
|
+
UserInclude["created_distributor_management_bodies"] = "created_distributor_management_bodies";
|
|
146
|
+
UserInclude["last_updated_distributor_management_bodies"] = "last_updated_distributor_management_bodies";
|
|
147
|
+
UserInclude["head_of_distributor_management_bodies"] = "head_of_distributor_management_bodies";
|
|
139
148
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|
|
@@ -156,8 +156,7 @@ export declare enum VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS {
|
|
|
156
156
|
vendor_business_categories = "vendor_business_categories",
|
|
157
157
|
bank_account_number = "bank_account_number",
|
|
158
158
|
udyam_aadhar = "udyam_aadhar",
|
|
159
|
-
cin = "cin"
|
|
160
|
-
iso_attachment_link = "iso_attachment_link"
|
|
159
|
+
cin = "cin"
|
|
161
160
|
}
|
|
162
161
|
export interface IVENDOR_AUTH_TOKEN_PAYLOAD {
|
|
163
162
|
vendor_user_id: string;
|
|
@@ -59,7 +59,7 @@ var VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS;
|
|
|
59
59
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["bank_account_number"] = "bank_account_number";
|
|
60
60
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["udyam_aadhar"] = "udyam_aadhar";
|
|
61
61
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["cin"] = "cin";
|
|
62
|
-
|
|
62
|
+
// iso_attachment_link = "iso_attachment_link",
|
|
63
63
|
// firstname = "firstname",
|
|
64
64
|
// middlename = "middlename",
|
|
65
65
|
// lastname = "lastname",
|