kcommons 17.4.0 → 17.4.2
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 +5 -5
- package/build/constants/companyRoutes.constants.js +4 -4
- package/build/constants/entityTypes.constants.d.ts +1 -1
- package/build/constants/entityTypes.constants.js +1 -1
- package/build/constants/permission.constants.d.ts +3 -3
- package/build/constants/permission.constants.js +4 -4
- package/build/index.d.ts +3 -3
- package/build/index.js +3 -3
- package/build/typings/approvalConfig.typings.d.ts +4 -4
- package/build/typings/company/masters/customerManagementBody.typings.d.ts +39 -0
- package/build/typings/company/masters/customerManagementBody.typings.js +12 -0
- package/build/typings/company.typings.d.ts +10 -10
- package/build/typings/company.typings.js +3 -3
- package/build/typings/companyCustomer.typings.d.ts +77 -0
- package/build/typings/companyCustomer.typings.js +34 -0
- package/build/typings/companyCustomerCategory.typings.d.ts +30 -0
- package/build/typings/companyCustomerCategory.typings.js +11 -0
- package/build/typings/customer.typings.d.ts +81 -0
- package/build/typings/customer.typings.js +13 -0
- package/build/typings/department.typings.d.ts +6 -6
- package/build/typings/department.typings.js +1 -1
- package/build/typings/entityApprovalChainEntry.typings.d.ts +5 -5
- package/build/typings/entityApprovalChainEntry.typings.js +2 -2
- package/build/typings/roles.typings.d.ts +6 -6
- package/build/typings/roles.typings.js +1 -1
- package/build/typings/settings/form/extraForm.typings.d.ts +2 -2
- package/build/typings/settings/form/extraFormAns.typings.d.ts +6 -6
- package/build/typings/settings/form/extraFormAns.typings.js +1 -1
- package/build/typings/settings/form/extraFormQues.typings.d.ts +1 -1
- package/build/typings/settings/form/extraFormQues.typings.js +1 -1
- package/build/typings/user.typings.d.ts +22 -22
- package/build/typings/user.typings.js +9 -9
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import { MRN_TABS } from "../typings/mrn.typings";
|
|
|
8
8
|
import { COMPANY_VIEW_PO_TABS } from "../typings/company/masters/po.typings";
|
|
9
9
|
import { PR_SOURCE } from "../typings/pr.typings";
|
|
10
10
|
import { RFQ_TABS } from "../typings/rfq.typings";
|
|
11
|
-
import {
|
|
11
|
+
import { COMPANY_CUSTOMER_STATUS } from "../typings/companyCustomer.typings";
|
|
12
12
|
export declare enum COMPANY_ROUTE_IDS {
|
|
13
13
|
MAIN_DSHBRD = "MAIN_DSHBRD",
|
|
14
14
|
LGN = "LGN",
|
|
@@ -817,14 +817,14 @@ export declare const companyNavConfig: {
|
|
|
817
817
|
};
|
|
818
818
|
};
|
|
819
819
|
};
|
|
820
|
-
|
|
821
|
-
|
|
820
|
+
customerMaster: {
|
|
821
|
+
companyCustomers: {
|
|
822
822
|
list: {
|
|
823
|
-
route: (tab?:
|
|
823
|
+
route: (tab?: COMPANY_CUSTOMER_STATUS) => string;
|
|
824
824
|
id: COMPANY_ROUTE_IDS;
|
|
825
825
|
};
|
|
826
826
|
view: {
|
|
827
|
-
route: (
|
|
827
|
+
route: (companyCustomerId: string) => string;
|
|
828
828
|
id: COMPANY_ROUTE_IDS;
|
|
829
829
|
};
|
|
830
830
|
};
|
|
@@ -841,14 +841,14 @@ exports.companyNavConfig = {
|
|
|
841
841
|
},
|
|
842
842
|
},
|
|
843
843
|
},
|
|
844
|
-
|
|
845
|
-
|
|
844
|
+
customerMaster: {
|
|
845
|
+
companyCustomers: {
|
|
846
846
|
list: {
|
|
847
|
-
route: (tab) => `/
|
|
847
|
+
route: (tab) => `/customers/customer-list?route_id=${COMPANY_ROUTE_IDS.CMP_DIS_LST}${tab ? `&tab=${tab}` : ""}`,
|
|
848
848
|
id: COMPANY_ROUTE_IDS.CMP_DIS_LST,
|
|
849
849
|
},
|
|
850
850
|
view: {
|
|
851
|
-
route: (
|
|
851
|
+
route: (companyCustomerId) => `/customers/customer-list/${companyCustomerId}?route_id=${COMPANY_ROUTE_IDS.CMP_DIS_VIEW}`,
|
|
852
852
|
id: COMPANY_ROUTE_IDS.CMP_DIS_VIEW,
|
|
853
853
|
},
|
|
854
854
|
},
|
|
@@ -6,5 +6,5 @@ export declare enum EntityTypes {
|
|
|
6
6
|
VENDOR_MANAGEMENT_BODY = "vendor_management_body",
|
|
7
7
|
ITEM_MANAGEMENT_BODY = "item_management_body",
|
|
8
8
|
CHECKPOINT = "checkpoint",
|
|
9
|
-
|
|
9
|
+
CUSTOMER_MANAGEMENT_BODY = "customer_management_body"
|
|
10
10
|
}
|
|
@@ -10,5 +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["
|
|
13
|
+
EntityTypes["CUSTOMER_MANAGEMENT_BODY"] = "customer_management_body";
|
|
14
14
|
})(EntityTypes || (exports.EntityTypes = EntityTypes = {}));
|
|
@@ -38,7 +38,7 @@ export declare enum PERMISSION_RESOURCES {
|
|
|
38
38
|
WAITLISTED_VENDORS = "WAITLISTED_VENDORS",
|
|
39
39
|
ITEMS = "ITEMS",
|
|
40
40
|
SUB_PO = "SUB_PO",
|
|
41
|
-
|
|
41
|
+
COMPANY_CUSTOMER = "COMPANY_CUSTOMER"
|
|
42
42
|
}
|
|
43
43
|
export declare enum RFQ_TO_PO_DOCUMENTS {
|
|
44
44
|
RFQ = "RFQ",
|
|
@@ -61,7 +61,7 @@ export declare const PERMISSION_CONFIG: {
|
|
|
61
61
|
WAITLISTED_VENDORS: PERMISSION_ACTIONS[];
|
|
62
62
|
ITEMS: PERMISSION_ACTIONS[];
|
|
63
63
|
VES: PERMISSION_ACTIONS[];
|
|
64
|
-
|
|
64
|
+
COMPANY_CUSTOMER: PERMISSION_ACTIONS[];
|
|
65
65
|
};
|
|
66
66
|
export declare const EntitySpecificDocuments: {
|
|
67
67
|
gate: PERMISSION_RESOURCES[];
|
|
@@ -71,5 +71,5 @@ export declare const EntitySpecificDocuments: {
|
|
|
71
71
|
vendor_management_body: PERMISSION_RESOURCES[];
|
|
72
72
|
item_management_body: PERMISSION_RESOURCES[];
|
|
73
73
|
checkpoint: PERMISSION_RESOURCES[];
|
|
74
|
-
|
|
74
|
+
customer_management_body: PERMISSION_RESOURCES[];
|
|
75
75
|
};
|
|
@@ -46,7 +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["
|
|
49
|
+
PERMISSION_RESOURCES["COMPANY_CUSTOMER"] = "COMPANY_CUSTOMER";
|
|
50
50
|
})(PERMISSION_RESOURCES || (exports.PERMISSION_RESOURCES = PERMISSION_RESOURCES = {}));
|
|
51
51
|
var RFQ_TO_PO_DOCUMENTS;
|
|
52
52
|
(function (RFQ_TO_PO_DOCUMENTS) {
|
|
@@ -136,7 +136,7 @@ exports.PERMISSION_CONFIG = {
|
|
|
136
136
|
PERMISSION_ACTIONS.CRUDSAC,
|
|
137
137
|
PERMISSION_ACTIONS.INVITE,
|
|
138
138
|
],
|
|
139
|
-
[PERMISSION_RESOURCES.
|
|
139
|
+
[PERMISSION_RESOURCES.COMPANY_CUSTOMER]: [
|
|
140
140
|
PERMISSION_ACTIONS.SEND_QUESTIONS,
|
|
141
141
|
PERMISSION_ACTIONS.CRUDSAC,
|
|
142
142
|
PERMISSION_ACTIONS.APPROVALS,
|
|
@@ -179,8 +179,8 @@ exports.EntitySpecificDocuments = {
|
|
|
179
179
|
PERMISSION_RESOURCES.VES,
|
|
180
180
|
PERMISSION_RESOURCES.INDENT,
|
|
181
181
|
],
|
|
182
|
-
[entityTypes_constants_1.EntityTypes.
|
|
183
|
-
PERMISSION_RESOURCES.
|
|
182
|
+
[entityTypes_constants_1.EntityTypes.CUSTOMER_MANAGEMENT_BODY]: [
|
|
183
|
+
PERMISSION_RESOURCES.COMPANY_CUSTOMER,
|
|
184
184
|
PERMISSION_RESOURCES.INDENT,
|
|
185
185
|
],
|
|
186
186
|
};
|
package/build/index.d.ts
CHANGED
|
@@ -73,9 +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/
|
|
77
|
-
export * from "./typings/
|
|
78
|
-
export * from "./typings/
|
|
76
|
+
export * from "./typings/company/masters/customerManagementBody.typings";
|
|
77
|
+
export * from "./typings/companyCustomer.typings";
|
|
78
|
+
export * from "./typings/customer.typings";
|
|
79
79
|
export * from "./typings/system/queueJob.typings";
|
|
80
80
|
export * from "./typings/system/erpPluginConfigCompany.typings";
|
|
81
81
|
export * from "./typings/common/address.typings";
|
package/build/index.js
CHANGED
|
@@ -93,9 +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/
|
|
97
|
-
__exportStar(require("./typings/
|
|
98
|
-
__exportStar(require("./typings/
|
|
96
|
+
__exportStar(require("./typings/company/masters/customerManagementBody.typings"), exports);
|
|
97
|
+
__exportStar(require("./typings/companyCustomer.typings"), exports);
|
|
98
|
+
__exportStar(require("./typings/customer.typings"), exports);
|
|
99
99
|
// System
|
|
100
100
|
__exportStar(require("./typings/system/queueJob.typings"), exports);
|
|
101
101
|
__exportStar(require("./typings/system/erpPluginConfigCompany.typings"), exports);
|
|
@@ -4,7 +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 {
|
|
7
|
+
import { INestedCompanyCustomerCategory } from "./companyCustomerCategory.typings";
|
|
8
8
|
import { INestedGate } from "./gate.typings";
|
|
9
9
|
import { INestedOffice } from "./offices.typings";
|
|
10
10
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
@@ -36,7 +36,7 @@ export interface IApprovalConfig {
|
|
|
36
36
|
item_management_body_id: string | null;
|
|
37
37
|
checkpoint_id: string | null;
|
|
38
38
|
vendor_onboarding_request_category_id: string | null;
|
|
39
|
-
|
|
39
|
+
company_customer_category_id: string | null;
|
|
40
40
|
created_at: string;
|
|
41
41
|
updated_at: string;
|
|
42
42
|
company?: INestedCompany | null;
|
|
@@ -49,10 +49,10 @@ export interface IApprovalConfig {
|
|
|
49
49
|
item_management_body?: INestedItemManagementBody | null;
|
|
50
50
|
checkpoint?: INestedCheckpoint[] | null;
|
|
51
51
|
vendor_category?: INestedVendorOnboardingRequestCategory | null;
|
|
52
|
-
company_distibutor_category?:
|
|
52
|
+
company_distibutor_category?: INestedCompanyCustomerCategory | null;
|
|
53
53
|
}
|
|
54
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"> {
|
|
55
55
|
}
|
|
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" | "
|
|
56
|
+
export interface IApprovalConfigFilters extends Partial<Pick<IApprovalConfig, "office_id" | "gate_id" | "purchase_location_id" | "vendor_management_body_id" | "item_management_body_id" | "store_location_id" | "checkpoint_id" | "vendor_onboarding_request_category_id" | "company_customer_category_id">> {
|
|
57
57
|
include?: ApprovalConfigInlcude[] | null;
|
|
58
58
|
}
|
|
@@ -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 ICustomerManagementBody {
|
|
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
|
+
customer_management_body_name: string;
|
|
13
|
+
customer_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 INestedCustomerManagementBody extends Omit<ICustomerManagementBody, "company" | "created_by_user" | "last_updated_by_user" | "head_of_body" | "departments" | "roles"> {
|
|
27
|
+
}
|
|
28
|
+
export declare enum CUSTOMER_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 ICustomerManagementBodyFiltersWithPagination extends IPaginationFilters {
|
|
37
|
+
include?: CUSTOMER_MANAGEMENT_BODY_INCLUDES[];
|
|
38
|
+
name?: string | null;
|
|
39
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CUSTOMER_MANAGEMENT_BODY_INCLUDES = void 0;
|
|
4
|
+
var CUSTOMER_MANAGEMENT_BODY_INCLUDES;
|
|
5
|
+
(function (CUSTOMER_MANAGEMENT_BODY_INCLUDES) {
|
|
6
|
+
CUSTOMER_MANAGEMENT_BODY_INCLUDES["company"] = "company";
|
|
7
|
+
CUSTOMER_MANAGEMENT_BODY_INCLUDES["created_by_user"] = "created_by_user";
|
|
8
|
+
CUSTOMER_MANAGEMENT_BODY_INCLUDES["last_updated_by_user"] = "last_updated_by_user";
|
|
9
|
+
CUSTOMER_MANAGEMENT_BODY_INCLUDES["head_of_body"] = "head_of_body";
|
|
10
|
+
CUSTOMER_MANAGEMENT_BODY_INCLUDES["departments"] = "departments";
|
|
11
|
+
CUSTOMER_MANAGEMENT_BODY_INCLUDES["roles"] = "roles";
|
|
12
|
+
})(CUSTOMER_MANAGEMENT_BODY_INCLUDES || (exports.CUSTOMER_MANAGEMENT_BODY_INCLUDES = CUSTOMER_MANAGEMENT_BODY_INCLUDES = {}));
|
|
@@ -55,9 +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 {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
58
|
+
import { INestedCustomer } from "./customer.typings";
|
|
59
|
+
import { INestedCompanyCustomerCategory } from "./companyCustomerCategory.typings";
|
|
60
|
+
import { INestedCustomerManagementBody } from "./company/masters/customerManagementBody.typings";
|
|
61
61
|
export declare enum PRICING_PLANS {
|
|
62
62
|
BASIC = "BASIC",
|
|
63
63
|
GROWTH = "GROWTH",
|
|
@@ -129,9 +129,9 @@ export declare enum COMPANY_INCLUDE {
|
|
|
129
129
|
company_amended_po_items = "company_amended_po_items",
|
|
130
130
|
sub_pos = "sub_pos",
|
|
131
131
|
sub_po_items = "sub_po_items",
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
company_customer_categories = "company_customer_categories",
|
|
133
|
+
associated_customer = "associated_customer",
|
|
134
|
+
customer_management_bodies = "customer_management_bodies"
|
|
135
135
|
}
|
|
136
136
|
export interface ICompany extends IAddress {
|
|
137
137
|
id: string;
|
|
@@ -235,11 +235,11 @@ export interface ICompany extends IAddress {
|
|
|
235
235
|
company_temporary_worker_form: INestedTemporaryWorkerForm[] | null;
|
|
236
236
|
sub_pos: INestedSubPO[] | null;
|
|
237
237
|
sub_po_items: INestedSubPOItem[] | null;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
company_customer_categories: INestedCompanyCustomerCategory[] | null;
|
|
239
|
+
associated_customer: INestedCustomer[] | null;
|
|
240
|
+
customer_management_bodies: INestedCustomerManagementBody[] | null;
|
|
241
241
|
}
|
|
242
|
-
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" | "
|
|
242
|
+
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_customer_categories" | "associated_customer" | "customer_management_bodies"> {
|
|
243
243
|
}
|
|
244
244
|
export interface ICompanyVendorAdditionalInfoMappingConfig {
|
|
245
245
|
additional_info_form_que_id: string;
|
|
@@ -73,9 +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["
|
|
77
|
-
COMPANY_INCLUDE["
|
|
78
|
-
COMPANY_INCLUDE["
|
|
76
|
+
COMPANY_INCLUDE["company_customer_categories"] = "company_customer_categories";
|
|
77
|
+
COMPANY_INCLUDE["associated_customer"] = "associated_customer";
|
|
78
|
+
COMPANY_INCLUDE["customer_management_bodies"] = "customer_management_bodies";
|
|
79
79
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
80
80
|
// export interface IUpdateVendorOnboardingRequestCategoriesInputs
|
|
81
81
|
// extends Pick<ICompany, "vendor_onboarding_request_categories"> {}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedCompanyCustomerCategory } from "./companyCustomerCategory.typings";
|
|
4
|
+
import { ICustomer } from "./customer.typings";
|
|
5
|
+
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
6
|
+
import { INestedExtraFormAnswer } from "./settings/form/extraFormAns.typings";
|
|
7
|
+
import { INestedUser } from "./user.typings";
|
|
8
|
+
export interface ICompanyCustomer {
|
|
9
|
+
id: string;
|
|
10
|
+
company_id: string;
|
|
11
|
+
customer_id: string;
|
|
12
|
+
customer_code: string | null;
|
|
13
|
+
erp_customer_code: string | null;
|
|
14
|
+
company_form_status: COMPANY_FORM_STATUS_FOR_CUSTOMER;
|
|
15
|
+
status: COMPANY_CUSTOMER_STATUS;
|
|
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_customer_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
|
+
customer?: ICustomer | 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_customer_category: INestedCompanyCustomerCategory | null;
|
|
36
|
+
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
37
|
+
extra_form_ans: INestedExtraFormAnswer[] | null;
|
|
38
|
+
}
|
|
39
|
+
export interface INestedCompanyCustomer extends Omit<ICompanyCustomer, "company" | "customer" | "created_by_user" | "last_updated_by_user" | "sent_for_approval_by_user" | "onboarded_by_user" | "parent_company_customer_category" | "approval_chain" | "extra_form_ans"> {
|
|
40
|
+
}
|
|
41
|
+
export declare enum COMPANY_CUSTOMER_INCLUDE {
|
|
42
|
+
company = "company",
|
|
43
|
+
customer = "customer",
|
|
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_customer_category = "parent_company_customer_category",
|
|
49
|
+
approval_chain = "approval_chain",
|
|
50
|
+
extra_form_ans = "extra_form_ans"
|
|
51
|
+
}
|
|
52
|
+
export declare enum COMPANY_FORM_STATUS_FOR_CUSTOMER {
|
|
53
|
+
INVITED = "INVITED",
|
|
54
|
+
YET_TO_INVITE = "YET_TO_INVITE"
|
|
55
|
+
}
|
|
56
|
+
export declare enum COMPANY_CUSTOMER_STATUS {
|
|
57
|
+
ONBOARDED = "ONBOARDED",
|
|
58
|
+
WAITLISTED = "WAITLISTED",
|
|
59
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
60
|
+
APPROVED = "APPROVED",
|
|
61
|
+
CANCELLED = "CANCELLED"
|
|
62
|
+
}
|
|
63
|
+
export interface ICompanyCustomerFilters {
|
|
64
|
+
name?: string;
|
|
65
|
+
ids?: string[];
|
|
66
|
+
parent_company_customer_category_id?: string;
|
|
67
|
+
status_array?: COMPANY_CUSTOMER_STATUS[];
|
|
68
|
+
list_type?: COMPANY_CUSTOMER_LIST_TYPE;
|
|
69
|
+
include?: COMPANY_CUSTOMER_INCLUDE[];
|
|
70
|
+
}
|
|
71
|
+
export interface ICompanyCustomerFiltersWithPagination extends IPaginationFilters, ICompanyCustomerFilters {
|
|
72
|
+
}
|
|
73
|
+
export declare enum COMPANY_CUSTOMER_LIST_TYPE {
|
|
74
|
+
ALL = "ALL",
|
|
75
|
+
CREATED_BY_ME = "CREATED_BY_ME",
|
|
76
|
+
MY_APPROVALS = "MY_APPROVALS"
|
|
77
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMPANY_CUSTOMER_LIST_TYPE = exports.COMPANY_CUSTOMER_STATUS = exports.COMPANY_FORM_STATUS_FOR_CUSTOMER = exports.COMPANY_CUSTOMER_INCLUDE = void 0;
|
|
4
|
+
var COMPANY_CUSTOMER_INCLUDE;
|
|
5
|
+
(function (COMPANY_CUSTOMER_INCLUDE) {
|
|
6
|
+
COMPANY_CUSTOMER_INCLUDE["company"] = "company";
|
|
7
|
+
COMPANY_CUSTOMER_INCLUDE["customer"] = "customer";
|
|
8
|
+
COMPANY_CUSTOMER_INCLUDE["created_by_user"] = "created_by_user";
|
|
9
|
+
COMPANY_CUSTOMER_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
10
|
+
COMPANY_CUSTOMER_INCLUDE["sent_for_approval_by_user"] = "sent_for_approval_by_user";
|
|
11
|
+
COMPANY_CUSTOMER_INCLUDE["onboarded_by_user"] = "onboarded_by_user";
|
|
12
|
+
COMPANY_CUSTOMER_INCLUDE["parent_company_customer_category"] = "parent_company_customer_category";
|
|
13
|
+
COMPANY_CUSTOMER_INCLUDE["approval_chain"] = "approval_chain";
|
|
14
|
+
COMPANY_CUSTOMER_INCLUDE["extra_form_ans"] = "extra_form_ans";
|
|
15
|
+
})(COMPANY_CUSTOMER_INCLUDE || (exports.COMPANY_CUSTOMER_INCLUDE = COMPANY_CUSTOMER_INCLUDE = {}));
|
|
16
|
+
var COMPANY_FORM_STATUS_FOR_CUSTOMER;
|
|
17
|
+
(function (COMPANY_FORM_STATUS_FOR_CUSTOMER) {
|
|
18
|
+
COMPANY_FORM_STATUS_FOR_CUSTOMER["INVITED"] = "INVITED";
|
|
19
|
+
COMPANY_FORM_STATUS_FOR_CUSTOMER["YET_TO_INVITE"] = "YET_TO_INVITE";
|
|
20
|
+
})(COMPANY_FORM_STATUS_FOR_CUSTOMER || (exports.COMPANY_FORM_STATUS_FOR_CUSTOMER = COMPANY_FORM_STATUS_FOR_CUSTOMER = {}));
|
|
21
|
+
var COMPANY_CUSTOMER_STATUS;
|
|
22
|
+
(function (COMPANY_CUSTOMER_STATUS) {
|
|
23
|
+
COMPANY_CUSTOMER_STATUS["ONBOARDED"] = "ONBOARDED";
|
|
24
|
+
COMPANY_CUSTOMER_STATUS["WAITLISTED"] = "WAITLISTED";
|
|
25
|
+
COMPANY_CUSTOMER_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
26
|
+
COMPANY_CUSTOMER_STATUS["APPROVED"] = "APPROVED";
|
|
27
|
+
COMPANY_CUSTOMER_STATUS["CANCELLED"] = "CANCELLED";
|
|
28
|
+
})(COMPANY_CUSTOMER_STATUS || (exports.COMPANY_CUSTOMER_STATUS = COMPANY_CUSTOMER_STATUS = {}));
|
|
29
|
+
var COMPANY_CUSTOMER_LIST_TYPE;
|
|
30
|
+
(function (COMPANY_CUSTOMER_LIST_TYPE) {
|
|
31
|
+
COMPANY_CUSTOMER_LIST_TYPE["ALL"] = "ALL";
|
|
32
|
+
COMPANY_CUSTOMER_LIST_TYPE["CREATED_BY_ME"] = "CREATED_BY_ME";
|
|
33
|
+
COMPANY_CUSTOMER_LIST_TYPE["MY_APPROVALS"] = "MY_APPROVALS";
|
|
34
|
+
})(COMPANY_CUSTOMER_LIST_TYPE || (exports.COMPANY_CUSTOMER_LIST_TYPE = COMPANY_CUSTOMER_LIST_TYPE = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { INestedApprovalConfig } from "./approvalConfig.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedCustomer } from "./customer.typings";
|
|
4
|
+
import { INestedUser } from "./user.typings";
|
|
5
|
+
export interface ICompanyCustomerCategory {
|
|
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_customer: INestedCustomer[] | null;
|
|
20
|
+
approval_configs: INestedApprovalConfig[] | null;
|
|
21
|
+
}
|
|
22
|
+
export interface INestedCompanyCustomerCategory extends Omit<ICompanyCustomerCategory, "company" | "created_by_user" | "updated_by_user" | "company_customer" | "approval_configs"> {
|
|
23
|
+
}
|
|
24
|
+
export declare enum COMPANY_CUSTOMER_CATEGORY_INCLUDE {
|
|
25
|
+
company = "company",
|
|
26
|
+
created_by_user = "created_by_user",
|
|
27
|
+
updated_by_user = "updated_by_user",
|
|
28
|
+
company_customer = "company_customer",
|
|
29
|
+
approval_configs = "approval_configs"
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMPANY_CUSTOMER_CATEGORY_INCLUDE = void 0;
|
|
4
|
+
var COMPANY_CUSTOMER_CATEGORY_INCLUDE;
|
|
5
|
+
(function (COMPANY_CUSTOMER_CATEGORY_INCLUDE) {
|
|
6
|
+
COMPANY_CUSTOMER_CATEGORY_INCLUDE["company"] = "company";
|
|
7
|
+
COMPANY_CUSTOMER_CATEGORY_INCLUDE["created_by_user"] = "created_by_user";
|
|
8
|
+
COMPANY_CUSTOMER_CATEGORY_INCLUDE["updated_by_user"] = "updated_by_user";
|
|
9
|
+
COMPANY_CUSTOMER_CATEGORY_INCLUDE["company_customer"] = "company_customer";
|
|
10
|
+
COMPANY_CUSTOMER_CATEGORY_INCLUDE["approval_configs"] = "approval_configs";
|
|
11
|
+
})(COMPANY_CUSTOMER_CATEGORY_INCLUDE || (exports.COMPANY_CUSTOMER_CATEGORY_INCLUDE = COMPANY_CUSTOMER_CATEGORY_INCLUDE = {}));
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
export interface ICustomer {
|
|
4
|
+
id: string;
|
|
5
|
+
customer_trade_name: string;
|
|
6
|
+
contact: string;
|
|
7
|
+
email: string;
|
|
8
|
+
nature_of_business: string | null;
|
|
9
|
+
customer_business_categories: string[];
|
|
10
|
+
customer_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
|
+
is_fssai_verified: boolean;
|
|
49
|
+
cancelled_cheque_attachment_link: string | null;
|
|
50
|
+
is_invitation_sent: boolean;
|
|
51
|
+
is_profile_complete: boolean;
|
|
52
|
+
is_profile_verified: boolean;
|
|
53
|
+
is_self_verified: boolean;
|
|
54
|
+
svf_form_status: CUSTOMER_SVF_FORM_STATUS | null;
|
|
55
|
+
profile_img: string | null;
|
|
56
|
+
is_enabled?: boolean | null;
|
|
57
|
+
is_deleted?: boolean | null;
|
|
58
|
+
deleted_at?: string | null;
|
|
59
|
+
created_at?: string | null;
|
|
60
|
+
updated_at?: string | null;
|
|
61
|
+
associated_companies: INestedCompany[] | null;
|
|
62
|
+
}
|
|
63
|
+
export interface INestedCustomer extends Omit<ICustomer, "associated_companies"> {
|
|
64
|
+
}
|
|
65
|
+
export declare enum CUSTOMER_INCLUDE {
|
|
66
|
+
associated_companies = "associated_companies"
|
|
67
|
+
}
|
|
68
|
+
export interface ICUSTOMER_SVF_TOKEN_PAYLOAD {
|
|
69
|
+
customer_id: string;
|
|
70
|
+
}
|
|
71
|
+
export declare enum CUSTOMER_SVF_FORM_STATUS {
|
|
72
|
+
SENT = "SENT",
|
|
73
|
+
ANSWERED = "ANSWERED",
|
|
74
|
+
ROLLED_BACK = "ROLLED_BACK"
|
|
75
|
+
}
|
|
76
|
+
export interface ICustomerFilter {
|
|
77
|
+
name?: string;
|
|
78
|
+
include?: CUSTOMER_INCLUDE[];
|
|
79
|
+
}
|
|
80
|
+
export interface ICustomerFiltersWithPagination extends IPaginationFilters, ICustomerFilter {
|
|
81
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CUSTOMER_SVF_FORM_STATUS = exports.CUSTOMER_INCLUDE = void 0;
|
|
4
|
+
var CUSTOMER_INCLUDE;
|
|
5
|
+
(function (CUSTOMER_INCLUDE) {
|
|
6
|
+
CUSTOMER_INCLUDE["associated_companies"] = "associated_companies";
|
|
7
|
+
})(CUSTOMER_INCLUDE || (exports.CUSTOMER_INCLUDE = CUSTOMER_INCLUDE = {}));
|
|
8
|
+
var CUSTOMER_SVF_FORM_STATUS;
|
|
9
|
+
(function (CUSTOMER_SVF_FORM_STATUS) {
|
|
10
|
+
CUSTOMER_SVF_FORM_STATUS["SENT"] = "SENT";
|
|
11
|
+
CUSTOMER_SVF_FORM_STATUS["ANSWERED"] = "ANSWERED";
|
|
12
|
+
CUSTOMER_SVF_FORM_STATUS["ROLLED_BACK"] = "ROLLED_BACK";
|
|
13
|
+
})(CUSTOMER_SVF_FORM_STATUS || (exports.CUSTOMER_SVF_FORM_STATUS = CUSTOMER_SVF_FORM_STATUS = {}));
|
|
@@ -2,7 +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 {
|
|
5
|
+
import { INestedCustomerManagementBody } from "./company/masters/customerManagementBody.typings";
|
|
6
6
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
7
7
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
8
8
|
import { INestedVendorOnboardingRequest } from "./company/vendorOnboardingRequest/vendorOnboardingRequest.typing";
|
|
@@ -16,7 +16,7 @@ import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
|
16
16
|
import { INestedRole } from "./roles.typings";
|
|
17
17
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
18
18
|
import { INestedUser } from "./user.typings";
|
|
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" | "
|
|
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" | "customer_management_body_id">> {
|
|
20
20
|
name?: string;
|
|
21
21
|
type?: EntityTypes;
|
|
22
22
|
include?: DepartmentInclude[];
|
|
@@ -39,7 +39,7 @@ export interface IDepartment {
|
|
|
39
39
|
vendor_management_body_id?: string | null;
|
|
40
40
|
item_management_body_id?: string | null;
|
|
41
41
|
checkpoint_id?: string | null;
|
|
42
|
-
|
|
42
|
+
customer_management_body_id?: string | null;
|
|
43
43
|
department_name: string;
|
|
44
44
|
department_code: string;
|
|
45
45
|
created_by_id: string;
|
|
@@ -64,9 +64,9 @@ export interface IDepartment {
|
|
|
64
64
|
grns?: null | INestedGRN[];
|
|
65
65
|
mrns?: null | INestedMRN[];
|
|
66
66
|
vendor_onboarding_requests?: INestedVendorOnboardingRequest[] | null;
|
|
67
|
-
|
|
67
|
+
parent_customer_management_body?: INestedCustomerManagementBody | null;
|
|
68
68
|
}
|
|
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" | "
|
|
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_customer_management_body"> {
|
|
70
70
|
}
|
|
71
71
|
export declare enum DepartmentInclude {
|
|
72
72
|
company = "company",
|
|
@@ -85,7 +85,7 @@ export declare enum DepartmentInclude {
|
|
|
85
85
|
vendor_onboarding_requests = "vendor_onboarding_requests",
|
|
86
86
|
parent_item_management_body = "parent_item_management_body",
|
|
87
87
|
parent_checkpoint = "parent_checkpoint",
|
|
88
|
-
|
|
88
|
+
parent_customer_management_body = "parent_customer_management_body"
|
|
89
89
|
}
|
|
90
90
|
export interface ISubDepartment {
|
|
91
91
|
id: string;
|
|
@@ -19,5 +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["
|
|
22
|
+
DepartmentInclude["parent_customer_management_body"] = "parent_customer_management_body";
|
|
23
23
|
})(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
|
|
@@ -17,7 +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 {
|
|
20
|
+
import { INestedCompanyCustomer } from "./companyCustomer.typings";
|
|
21
21
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
22
22
|
INDENT = "INDENT",
|
|
23
23
|
PR = "PR",
|
|
@@ -35,7 +35,7 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
|
35
35
|
ISTD_SOURCE = "ISTD_SOURCE",
|
|
36
36
|
ISTD_DEST = "ISTD_DEST",
|
|
37
37
|
SUB_PO = "SUB_PO",
|
|
38
|
-
|
|
38
|
+
COMPANY_CUSTOMER = "COMPANY_CUSTOMER"
|
|
39
39
|
}
|
|
40
40
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
41
41
|
company = "company",
|
|
@@ -58,7 +58,7 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
|
58
58
|
company_vendor = "company_vendor",
|
|
59
59
|
vendor_onboarding_request_scores = "vendor_onboarding_request_scores",
|
|
60
60
|
ves = "ves",
|
|
61
|
-
|
|
61
|
+
company_customer = "company_customer"
|
|
62
62
|
}
|
|
63
63
|
export interface IEntityApprovalChainEntry {
|
|
64
64
|
id: string;
|
|
@@ -111,7 +111,7 @@ export interface IEntityApprovalChainEntry {
|
|
|
111
111
|
vendor_onboarding_request_scores?: INestedVendorOnboardingRequestScore[] | null;
|
|
112
112
|
item: INestedItem | null;
|
|
113
113
|
asn: INestedASN | null;
|
|
114
|
-
|
|
114
|
+
company_customer?: INestedCompanyCustomer | null;
|
|
115
115
|
}
|
|
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" | "
|
|
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_customer"> {
|
|
117
117
|
}
|
|
@@ -19,7 +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["
|
|
22
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["COMPANY_CUSTOMER"] = "COMPANY_CUSTOMER";
|
|
23
23
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = {}));
|
|
24
24
|
var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
25
25
|
(function (ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES) {
|
|
@@ -43,5 +43,5 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
|
43
43
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["company_vendor"] = "company_vendor";
|
|
44
44
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["vendor_onboarding_request_scores"] = "vendor_onboarding_request_scores";
|
|
45
45
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["ves"] = "ves";
|
|
46
|
-
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["
|
|
46
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["company_customer"] = "company_customer";
|
|
47
47
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = {}));
|
|
@@ -3,7 +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 {
|
|
6
|
+
import { INestedCustomerManagementBody } from "./company/masters/customerManagementBody.typings";
|
|
7
7
|
import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
|
|
8
8
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
9
9
|
import { INestedDepartment } from "./department.typings";
|
|
@@ -30,9 +30,9 @@ export declare enum RolesInclude {
|
|
|
30
30
|
item_management_body = "item_management_body",
|
|
31
31
|
checkpoint = "checkpoint",
|
|
32
32
|
associated_queue_jobs = "associated_queue_jobs",
|
|
33
|
-
|
|
33
|
+
customer_management_body = "customer_management_body"
|
|
34
34
|
}
|
|
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" | "
|
|
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" | "customer_management_body_id">> {
|
|
36
36
|
type?: string;
|
|
37
37
|
name?: string;
|
|
38
38
|
department_ids?: string[];
|
|
@@ -58,7 +58,7 @@ export interface IRoles {
|
|
|
58
58
|
vendor_management_body_id: string | null;
|
|
59
59
|
item_management_body_id: string | null;
|
|
60
60
|
checkpoint_id: string | null;
|
|
61
|
-
|
|
61
|
+
customer_management_body_id: string | null;
|
|
62
62
|
is_enabled: boolean;
|
|
63
63
|
is_deleted: boolean;
|
|
64
64
|
deleted_at: string;
|
|
@@ -79,9 +79,9 @@ export interface IRoles {
|
|
|
79
79
|
item_management_body: INestedItemManagementBody | null;
|
|
80
80
|
checkpoint: INestedCheckpoint | null;
|
|
81
81
|
associated_queue_jobs: INestedQueueJob[] | null;
|
|
82
|
-
|
|
82
|
+
customer_management_body?: INestedCustomerManagementBody | null;
|
|
83
83
|
}
|
|
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" | "
|
|
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" | "customer_management_body"> {
|
|
85
85
|
}
|
|
86
86
|
export interface IPermissions extends Record<string | PERMISSION_ACTIONS, any> {
|
|
87
87
|
id: string;
|
|
@@ -22,7 +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["
|
|
25
|
+
RolesInclude["customer_management_body"] = "customer_management_body";
|
|
26
26
|
})(RolesInclude || (exports.RolesInclude = RolesInclude = {}));
|
|
27
27
|
var PermissionInclude;
|
|
28
28
|
(function (PermissionInclude) {
|
|
@@ -14,8 +14,8 @@ export interface IVendorComplianceFormQuesAnsReq {
|
|
|
14
14
|
export interface ISystemIntegrationFormQuesAnsReq {
|
|
15
15
|
company_vendor_id: string;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
18
|
-
|
|
17
|
+
export interface ICustomerSystemIntegrationFormQuesAnsReq {
|
|
18
|
+
company_customer_id: string;
|
|
19
19
|
}
|
|
20
20
|
export interface IPATFormQuesAnsReq {
|
|
21
21
|
vendor_onboarding_request_id: string;
|
|
@@ -1,7 +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 {
|
|
4
|
+
import { INestedCompanyCustomer } from "../../companyCustomer.typings";
|
|
5
5
|
import { INestedCompanyVendors } from "../../companyVendors.typings";
|
|
6
6
|
import { INestedUser } from "../../user.typings";
|
|
7
7
|
import { INestedVendor } from "../../vendor.typings";
|
|
@@ -14,7 +14,7 @@ export declare enum EXTRA_FORM_ANSWERS_INLCUDE {
|
|
|
14
14
|
vendor_onboarding_request = "vendor_onboarding_request",
|
|
15
15
|
scores = "scores",
|
|
16
16
|
company_vendor = "company_vendor",
|
|
17
|
-
|
|
17
|
+
company_customer = "company_customer"
|
|
18
18
|
}
|
|
19
19
|
export interface IEXtraFormAnswers {
|
|
20
20
|
id: string;
|
|
@@ -23,7 +23,7 @@ export interface IEXtraFormAnswers {
|
|
|
23
23
|
user_id: string | null;
|
|
24
24
|
vendor_id: string | null;
|
|
25
25
|
company_vendor_id: string | null;
|
|
26
|
-
|
|
26
|
+
company_customer_id: string | null;
|
|
27
27
|
vendor_onboarding_request_id: string | null;
|
|
28
28
|
text_ans: string | null;
|
|
29
29
|
yes_no_ans: boolean | null;
|
|
@@ -43,9 +43,9 @@ export interface IEXtraFormAnswers {
|
|
|
43
43
|
company_vendor: INestedCompanyVendors | null;
|
|
44
44
|
vendor_onboarding_request: INestedVendorOnboardingRequest | null;
|
|
45
45
|
scores: INestedVendorOnboardingRequestScore[] | null;
|
|
46
|
-
|
|
46
|
+
company_customer: INestedCompanyCustomer | null;
|
|
47
47
|
}
|
|
48
|
-
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_customer"> {
|
|
49
49
|
}
|
|
50
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"> {
|
|
51
51
|
}
|
|
@@ -60,5 +60,5 @@ export interface IFetchMultipleAnsByQuesIdsReq {
|
|
|
60
60
|
vendor_id?: string | null;
|
|
61
61
|
vendor_onboarding_request_id?: string | null;
|
|
62
62
|
company_vendor_id?: string | null;
|
|
63
|
-
|
|
63
|
+
company_customer_id?: string | null;
|
|
64
64
|
}
|
|
@@ -10,5 +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["
|
|
13
|
+
EXTRA_FORM_ANSWERS_INLCUDE["company_customer"] = "company_customer";
|
|
14
14
|
})(EXTRA_FORM_ANSWERS_INLCUDE || (exports.EXTRA_FORM_ANSWERS_INLCUDE = EXTRA_FORM_ANSWERS_INLCUDE = {}));
|
|
@@ -18,7 +18,7 @@ export declare enum CONFIGURABLE_FORM_TYPES {
|
|
|
18
18
|
VENDOR_ONBOARDING = "vendor-onboarding",
|
|
19
19
|
VENDOR_PRE_ASSESSMENT = "VENDOR_PRE_ASSESSMENT",
|
|
20
20
|
COMPANY_VENDOR_ADDITIONAL_FIELDS = "COMPANY_VENDOR_ADDITIONAL_FIELDS",// Vendor System Integration
|
|
21
|
-
|
|
21
|
+
CUSTOMER_SYSTEM_INTEGRATION = "CUSTOMER_SYSTEM_INTEGRATION"
|
|
22
22
|
}
|
|
23
23
|
export declare enum EXTRA_FORM_QUESTION_TYPES {
|
|
24
24
|
TEXT = "TEXT",
|
|
@@ -6,7 +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["
|
|
9
|
+
CONFIGURABLE_FORM_TYPES["CUSTOMER_SYSTEM_INTEGRATION"] = "CUSTOMER_SYSTEM_INTEGRATION";
|
|
10
10
|
})(CONFIGURABLE_FORM_TYPES || (exports.CONFIGURABLE_FORM_TYPES = CONFIGURABLE_FORM_TYPES = {}));
|
|
11
11
|
var EXTRA_FORM_QUESTION_TYPES;
|
|
12
12
|
(function (EXTRA_FORM_QUESTION_TYPES) {
|
|
@@ -49,9 +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 {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
52
|
+
import { INestedCompanyCustomerCategory } from "./companyCustomerCategory.typings";
|
|
53
|
+
import { INestedCompanyCustomer } from "./companyCustomer.typings";
|
|
54
|
+
import { INestedCustomerManagementBody } from "./company/masters/customerManagementBody.typings";
|
|
55
55
|
export interface IUser {
|
|
56
56
|
id: string;
|
|
57
57
|
is_enabled?: boolean | null;
|
|
@@ -207,17 +207,17 @@ export interface IUser {
|
|
|
207
207
|
created_sub_po_items: INestedSubPOItem[] | null;
|
|
208
208
|
last_updated_sub_po_items: INestedSubPOItem[] | null;
|
|
209
209
|
marked_as_deleted_sub_po_items: INestedSubPOItem[] | null;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
210
|
+
created_company_customer_categories: INestedCompanyCustomerCategory[] | null;
|
|
211
|
+
last_updated_company_customer_categories: INestedCompanyCustomerCategory[] | null;
|
|
212
|
+
company_customer_created_by_user: INestedCompanyCustomer[] | null;
|
|
213
|
+
company_customer_last_updated_by_user: INestedCompanyCustomer[] | null;
|
|
214
|
+
sent_for_approval_company_customer: INestedCompanyCustomer[] | null;
|
|
215
|
+
onboarded_company_customer: INestedCompanyCustomer[] | null;
|
|
216
|
+
created_customer_management_bodies: INestedCustomerManagementBody[] | null;
|
|
217
|
+
last_updated_customer_management_bodies: INestedCustomerManagementBody[] | null;
|
|
218
|
+
head_of_customer_management_bodies: INestedCustomerManagementBody[] | null;
|
|
219
219
|
}
|
|
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" | "
|
|
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_customer_categories" | "last_updated_company_customer_categories" | "company_customer_created_by_user" | "company_customer_last_updated_by_user" | "sent_for_approval_company_customer" | "onboarded_company_customer" | "created_customer_management_bodies" | "last_updated_customer_management_bodies" | "head_of_customer_management_bodies"> {
|
|
221
221
|
}
|
|
222
222
|
export declare enum UserInclude {
|
|
223
223
|
subordinates = "subordinates",
|
|
@@ -351,15 +351,15 @@ export declare enum UserInclude {
|
|
|
351
351
|
created_sub_po_items = "created_sub_po_items",
|
|
352
352
|
last_updated_sub_po_items = "last_updated_sub_po_items",
|
|
353
353
|
marked_as_deleted_sub_po_items = "marked_as_deleted_sub_po_items",
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
354
|
+
created_company_customer_categories = "created_company_customer_categories",
|
|
355
|
+
last_updated_company_customer_categories = "last_updated_company_customer_categories",
|
|
356
|
+
company_customer_created_by_user = "company_customer_created_by_user",
|
|
357
|
+
company_customer_last_updated_by_user = "company_customer_last_updated_by_user",
|
|
358
|
+
sent_for_approval_company_customer = "sent_for_approval_company_customer",
|
|
359
|
+
onboarded_company_customer = "onboarded_company_customer",
|
|
360
|
+
created_customer_management_bodies = "created_customer_management_bodies",
|
|
361
|
+
last_updated_customer_management_bodies = "last_updated_customer_management_bodies",
|
|
362
|
+
head_of_customer_management_bodies = "head_of_customer_management_bodies"
|
|
363
363
|
}
|
|
364
364
|
export interface IUserFilters {
|
|
365
365
|
name?: string | null;
|
|
@@ -136,13 +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["
|
|
140
|
-
UserInclude["
|
|
141
|
-
UserInclude["
|
|
142
|
-
UserInclude["
|
|
143
|
-
UserInclude["
|
|
144
|
-
UserInclude["
|
|
145
|
-
UserInclude["
|
|
146
|
-
UserInclude["
|
|
147
|
-
UserInclude["
|
|
139
|
+
UserInclude["created_company_customer_categories"] = "created_company_customer_categories";
|
|
140
|
+
UserInclude["last_updated_company_customer_categories"] = "last_updated_company_customer_categories";
|
|
141
|
+
UserInclude["company_customer_created_by_user"] = "company_customer_created_by_user";
|
|
142
|
+
UserInclude["company_customer_last_updated_by_user"] = "company_customer_last_updated_by_user";
|
|
143
|
+
UserInclude["sent_for_approval_company_customer"] = "sent_for_approval_company_customer";
|
|
144
|
+
UserInclude["onboarded_company_customer"] = "onboarded_company_customer";
|
|
145
|
+
UserInclude["created_customer_management_bodies"] = "created_customer_management_bodies";
|
|
146
|
+
UserInclude["last_updated_customer_management_bodies"] = "last_updated_customer_management_bodies";
|
|
147
|
+
UserInclude["head_of_customer_management_bodies"] = "head_of_customer_management_bodies";
|
|
148
148
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|