kcommons 14.20.0 → 14.22.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/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/typings/company/masters/po.typings.d.ts +14 -1
- package/build/typings/company/masters/po.typings.js +1 -0
- package/build/typings/company.typings.d.ts +4 -5
- package/build/typings/company.typings.js +1 -1
- package/build/typings/plugins/erp.plugins.d.ts +3 -0
- package/build/typings/plugins/erp.plugins.js +7 -0
- package/build/typings/system/erpPluginConfigCompany.typings.d.ts +3 -4
- package/build/typings/system/erpPluginConfigCompany.typings.js +1 -5
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ export * from "./typings/vendor/companyProfile.typings";
|
|
|
145
145
|
export * from "./typings/vendor/vendorFormRollbackRemark.typings";
|
|
146
146
|
export * from "./helpers/padNumber.helper";
|
|
147
147
|
export * from "./typings/plugins/plugin.typings";
|
|
148
|
+
export * from "./typings/plugins/erp.plugins";
|
|
148
149
|
export * from "./utils/validators/gst.validator";
|
|
149
150
|
export * from "./utils/validators/pan.validator";
|
|
150
151
|
export * from "./utils/validators/cin.validator";
|
package/build/index.js
CHANGED
|
@@ -180,6 +180,7 @@ __exportStar(require("./typings/vendor/vendorFormRollbackRemark.typings"), expor
|
|
|
180
180
|
__exportStar(require("./helpers/padNumber.helper"), exports);
|
|
181
181
|
// Plugins
|
|
182
182
|
__exportStar(require("./typings/plugins/plugin.typings"), exports);
|
|
183
|
+
__exportStar(require("./typings/plugins/erp.plugins"), exports);
|
|
183
184
|
// Validators
|
|
184
185
|
__exportStar(require("./utils/validators/gst.validator"), exports);
|
|
185
186
|
__exportStar(require("./utils/validators/pan.validator"), exports);
|
|
@@ -239,11 +239,24 @@ export interface IPOBom {
|
|
|
239
239
|
}
|
|
240
240
|
export interface INestedPOBom extends Omit<IPOBom, "parent_po" | "bom" | "referenced_po_items"> {
|
|
241
241
|
}
|
|
242
|
+
export interface IPORejectedByUserMetafieldData {
|
|
243
|
+
user_id: string | null;
|
|
244
|
+
role_id: string | null;
|
|
245
|
+
firstname: string | null;
|
|
246
|
+
middlename: string | null;
|
|
247
|
+
lastname: string | null;
|
|
248
|
+
employee_code: string | null;
|
|
249
|
+
role_code: string | null;
|
|
250
|
+
role_name: string | null;
|
|
251
|
+
rejected_at: Date | null;
|
|
252
|
+
}
|
|
242
253
|
export interface IPOMetafields {
|
|
243
254
|
items_data: INestedItem[] | null;
|
|
255
|
+
rejected_by_users_data: IPORejectedByUserMetafieldData[] | null;
|
|
244
256
|
}
|
|
245
257
|
export declare enum PO_METAFIELDS_INCLUDE {
|
|
246
|
-
items_data = "items_data"
|
|
258
|
+
items_data = "items_data",
|
|
259
|
+
rejected_by_users_data = "rejected_by_users_data"
|
|
247
260
|
}
|
|
248
261
|
export interface IPOApprovalByTokenPayload extends IOpenApprovalsBase {
|
|
249
262
|
po_id: string;
|
|
@@ -97,5 +97,6 @@ var PO_BOM_INCLUDE;
|
|
|
97
97
|
var PO_METAFIELDS_INCLUDE;
|
|
98
98
|
(function (PO_METAFIELDS_INCLUDE) {
|
|
99
99
|
PO_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
100
|
+
PO_METAFIELDS_INCLUDE["rejected_by_users_data"] = "rejected_by_users_data";
|
|
100
101
|
})(PO_METAFIELDS_INCLUDE || (exports.PO_METAFIELDS_INCLUDE = PO_METAFIELDS_INCLUDE = {}));
|
|
101
102
|
/** FIN: (DEPRECATED) PO Filters */
|
|
@@ -113,7 +113,7 @@ export declare enum COMPANY_INCLUDE {
|
|
|
113
113
|
queue_jobs = "queue_jobs",
|
|
114
114
|
company_terms_and_conditions = "company_terms_and_conditions",
|
|
115
115
|
company_config = "company_config",
|
|
116
|
-
|
|
116
|
+
erp_plugins = "erp_plugins",
|
|
117
117
|
company_temporary_worker_form = "company_temporary_worker_form"
|
|
118
118
|
}
|
|
119
119
|
export interface ICompany extends IAddress {
|
|
@@ -143,7 +143,6 @@ export interface ICompany extends IAddress {
|
|
|
143
143
|
uaadhar?: string | null;
|
|
144
144
|
pancard?: string | null;
|
|
145
145
|
company_config_id: string | null;
|
|
146
|
-
erp_plugins_config_id: string | null;
|
|
147
146
|
vendor_onboarding_request_cancellation_cooldown_value: number | null;
|
|
148
147
|
vendor_onboarding_request_cancellation_cooldown_unit: DATE_TIME_UNITS | null;
|
|
149
148
|
company_vendor_cancellation_cooldown_value: number | null;
|
|
@@ -152,6 +151,7 @@ export interface ICompany extends IAddress {
|
|
|
152
151
|
allow_company_vendor_approvals_when_svf_rolled_back: boolean;
|
|
153
152
|
plugin_ids: string[];
|
|
154
153
|
company_vendor_additonal_info_fields_mapping_config: string;
|
|
154
|
+
company_config: INestedCompanyConfig | null;
|
|
155
155
|
vendor_onboarding_request_categories: INestedVendorOnboardingRequestCategory[] | null;
|
|
156
156
|
associated_purchase_locations?: null | INestedPurchaseLocation[];
|
|
157
157
|
associated_vendors?: null | INestedVendor[];
|
|
@@ -209,11 +209,10 @@ export interface ICompany extends IAddress {
|
|
|
209
209
|
queue_jobs: INestedQueueJob[] | null;
|
|
210
210
|
company_terms_and_conditions: INestedTermsAndConditions[] | null;
|
|
211
211
|
payment_terms: INestedPaymentTerms[] | null;
|
|
212
|
-
|
|
213
|
-
erp_plugin_config: INestedERPPluginConfigCompany | null;
|
|
212
|
+
erp_plugins: INestedERPPluginConfigCompany[] | null;
|
|
214
213
|
company_temporary_worker_form: INestedTemporaryWorkerForm[] | null;
|
|
215
214
|
}
|
|
216
|
-
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" | "
|
|
215
|
+
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" | "maps_location"> {
|
|
217
216
|
}
|
|
218
217
|
export interface ICompanyVendorAdditionalInfoMappingConfig {
|
|
219
218
|
additional_info_form_que_id: string;
|
|
@@ -62,7 +62,7 @@ var COMPANY_INCLUDE;
|
|
|
62
62
|
COMPANY_INCLUDE["queue_jobs"] = "queue_jobs";
|
|
63
63
|
COMPANY_INCLUDE["company_terms_and_conditions"] = "company_terms_and_conditions";
|
|
64
64
|
COMPANY_INCLUDE["company_config"] = "company_config";
|
|
65
|
-
COMPANY_INCLUDE["
|
|
65
|
+
COMPANY_INCLUDE["erp_plugins"] = "erp_plugins";
|
|
66
66
|
COMPANY_INCLUDE["company_temporary_worker_form"] = "company_temporary_worker_form";
|
|
67
67
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
68
68
|
// export interface IUpdateVendorOnboardingRequestCategoriesInputs
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ERP_PLUGINS = void 0;
|
|
4
|
+
var ERP_PLUGINS;
|
|
5
|
+
(function (ERP_PLUGINS) {
|
|
6
|
+
ERP_PLUGINS["CREATE_VENDOR_IN_ERP"] = "CREATE_VENDOR_IN_ERP";
|
|
7
|
+
})(ERP_PLUGINS || (exports.ERP_PLUGINS = ERP_PLUGINS = {}));
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { INestedCompany } from "../company.typings";
|
|
2
|
-
|
|
3
|
-
SYNC_VENDOR_TO_ERP = "SYNC_VENDOR_TO_ERP"
|
|
4
|
-
}
|
|
2
|
+
import { ERP_PLUGINS } from "../plugins/erp.plugins";
|
|
5
3
|
export declare enum ERP_PLUGINS_CONFIG_COMPANY_INCLUDE {
|
|
6
4
|
company = "company"
|
|
7
5
|
}
|
|
@@ -9,7 +7,8 @@ export interface IERPPluginConfigCompany {
|
|
|
9
7
|
id: string;
|
|
10
8
|
company_id: string;
|
|
11
9
|
last_updated_by_superadmin_id: string;
|
|
12
|
-
|
|
10
|
+
plugin_name: ERP_PLUGINS;
|
|
11
|
+
is_enabled: boolean;
|
|
13
12
|
created_at: string;
|
|
14
13
|
updated_at: string;
|
|
15
14
|
company: INestedCompany;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ERP_PLUGINS_CONFIG_COMPANY_INCLUDE =
|
|
4
|
-
var ERP_PLUGINS;
|
|
5
|
-
(function (ERP_PLUGINS) {
|
|
6
|
-
ERP_PLUGINS["SYNC_VENDOR_TO_ERP"] = "SYNC_VENDOR_TO_ERP";
|
|
7
|
-
})(ERP_PLUGINS || (exports.ERP_PLUGINS = ERP_PLUGINS = {}));
|
|
3
|
+
exports.ERP_PLUGINS_CONFIG_COMPANY_INCLUDE = void 0;
|
|
8
4
|
var ERP_PLUGINS_CONFIG_COMPANY_INCLUDE;
|
|
9
5
|
(function (ERP_PLUGINS_CONFIG_COMPANY_INCLUDE) {
|
|
10
6
|
ERP_PLUGINS_CONFIG_COMPANY_INCLUDE["company"] = "company";
|