kcommons 14.12.2 → 14.13.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.
@@ -0,0 +1,3 @@
1
+ export declare enum ERP_PLUGINS {
2
+ SYNC_VENDOR_TO_ERP = "SYNC_VENDOR_TO_ERP"
3
+ }
@@ -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["SYNC_VENDOR_TO_ERP"] = "SYNC_VENDOR_TO_ERP";
7
+ })(ERP_PLUGINS || (exports.ERP_PLUGINS = ERP_PLUGINS = {}));
package/build/index.d.ts CHANGED
@@ -69,6 +69,7 @@ export * from "./typings/company/masters/termsAndConditions.typings";
69
69
  export * from "./typings/company/masters/paymentTerms.typings";
70
70
  export * from "./typings/company/_junctions/vesCheckpointTracking.typings";
71
71
  export * from "./typings/system/queueJob.typings";
72
+ export * from "./typings/system/erpPluginConfigCompany.typings";
72
73
  export * from "./typings/common/address.typings";
73
74
  export * from "./typings/common/paginationFilters.typings";
74
75
  export * from "./typings/common/uploadMedia.typings";
package/build/index.js CHANGED
@@ -89,6 +89,7 @@ __exportStar(require("./typings/company/masters/paymentTerms.typings"), exports)
89
89
  __exportStar(require("./typings/company/_junctions/vesCheckpointTracking.typings"), exports);
90
90
  // System
91
91
  __exportStar(require("./typings/system/queueJob.typings"), exports);
92
+ __exportStar(require("./typings/system/erpPluginConfigCompany.typings"), exports);
92
93
  // Commons
93
94
  __exportStar(require("./typings/common/address.typings"), exports);
94
95
  __exportStar(require("./typings/common/paginationFilters.typings"), exports);
@@ -130,7 +131,6 @@ __exportStar(require("./utils/extra-form/formatValidationSchema.util"), exports)
130
131
  __exportStar(require("./utils/extra-form/getFormProps.util"), exports);
131
132
  __exportStar(require("./utils/extra-form/getDefaultVAlues.util"), exports);
132
133
  __exportStar(require("./utils/generateId.util"), exports);
133
- // Templates
134
134
  // Verification APIs
135
135
  __exportStar(require("./typings/verification_apis/pincode.typings"), exports);
136
136
  __exportStar(require("./typings/verification_apis/gstVerification.typings"), exports);
@@ -50,6 +50,7 @@ import { INestedPaymentTerms } from "./company/masters/paymentTerms.typings";
50
50
  import { INestedCompanyConfig } from "./companyConfig.typings";
51
51
  import { INestedPOASNItemJunction } from "./company/masters/poAsnJunctionItems.typings";
52
52
  import { INestedPOGRNItemJunction } from "./company/masters/poGrnJunctionItems.typings";
53
+ import { INestedERPPluginConfigCompany } from "./system/erpPluginConfigCompany.typings";
53
54
  export declare enum PRICING_PLANS {
54
55
  BASIC = "BASIC",
55
56
  GROWTH = "GROWTH",
@@ -110,7 +111,8 @@ export declare enum COMPANY_INCLUDE {
110
111
  company_ves = "company_ves",
111
112
  queue_jobs = "queue_jobs",
112
113
  company_terms_and_conditions = "company_terms_and_conditions",
113
- company_config = "company_config"
114
+ company_config = "company_config",
115
+ erp_plugin_config = "erp_plugin_config"
114
116
  }
115
117
  export interface ICompany extends IAddress {
116
118
  id: string;
@@ -138,6 +140,7 @@ export interface ICompany extends IAddress {
138
140
  uaadhar?: string | null;
139
141
  pancard?: string | null;
140
142
  company_config_id: string | null;
143
+ erp_plugins_config_id: string | null;
141
144
  vendor_onboarding_request_cancellation_cooldown_value: number | null;
142
145
  vendor_onboarding_request_cancellation_cooldown_unit: DATE_TIME_UNITS | null;
143
146
  company_vendor_cancellation_cooldown_value: number | null;
@@ -204,8 +207,9 @@ export interface ICompany extends IAddress {
204
207
  company_terms_and_conditions: INestedTermsAndConditions[] | null;
205
208
  payment_terms: INestedPaymentTerms[] | null;
206
209
  company_config: INestedCompanyConfig | null;
210
+ erp_plugin_config: INestedERPPluginConfigCompany | null;
207
211
  }
208
- 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"> {
212
+ 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_plugin_config"> {
209
213
  }
210
214
  export interface ICompanyVendorAdditionalInfoMappingConfig {
211
215
  additional_info_form_que_id: string;
@@ -62,6 +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["erp_plugin_config"] = "erp_plugin_config";
65
66
  })(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
66
67
  // export interface IUpdateVendorOnboardingRequestCategoriesInputs
67
68
  // extends Pick<ICompany, "vendor_onboarding_request_categories"> {}
@@ -57,6 +57,7 @@ export interface ICompanyVendor {
57
57
  company_id: string;
58
58
  vendor_id: string;
59
59
  vendor_code: string;
60
+ erp_vendor_code: string | null;
60
61
  company_form_status: COMPANY_FORM_STATUS_FOR_VENDOR;
61
62
  categories_keywords: string[];
62
63
  cancellation_remark: string | null;
@@ -60,9 +60,11 @@ export declare enum GRN_STATUS {
60
60
  DRAFT = "DRAFT",
61
61
  PENDING_APPROVAL = "PENDING_APPROVAL",
62
62
  APPROVED = "APPROVED",
63
+ /** @deprecated */
63
64
  REJECTED = "REJECTED",
64
65
  CLOSED = "CLOSED",
65
66
  SENT_TO_STORE = "SENT_TO_STORE",
67
+ /** @deprecated */
66
68
  PROCESSED = "PROCESSED"
67
69
  }
68
70
  export interface IGRNFiltersWithPagination extends IPaginationFilters, IGRNFilters {
@@ -43,9 +43,11 @@ var GRN_STATUS;
43
43
  GRN_STATUS["DRAFT"] = "DRAFT";
44
44
  GRN_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
45
45
  GRN_STATUS["APPROVED"] = "APPROVED";
46
+ /** @deprecated */
46
47
  GRN_STATUS["REJECTED"] = "REJECTED";
47
48
  GRN_STATUS["CLOSED"] = "CLOSED";
48
49
  GRN_STATUS["SENT_TO_STORE"] = "SENT_TO_STORE";
50
+ /** @deprecated */
49
51
  GRN_STATUS["PROCESSED"] = "PROCESSED";
50
52
  })(GRN_STATUS || (exports.GRN_STATUS = GRN_STATUS = {}));
51
53
  var GRN_ITEM_INCLUDE;
@@ -50,8 +50,10 @@ export declare enum MRN_STATUS {
50
50
  DRAFT = "DRAFT",
51
51
  PENDING_APPROVAL = "PENDING_APPROVAL",
52
52
  APPROVED = "APPROVED",
53
+ /** @deprecated */
53
54
  REJECTED = "REJECTED",
54
55
  CLOSED = "CLOSED",
56
+ /** @deprecated */
55
57
  PROCESSED = "PROCESSED"
56
58
  }
57
59
  export interface IMRN {
@@ -36,8 +36,10 @@ var MRN_STATUS;
36
36
  MRN_STATUS["DRAFT"] = "DRAFT";
37
37
  MRN_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
38
38
  MRN_STATUS["APPROVED"] = "APPROVED";
39
+ /** @deprecated */
39
40
  MRN_STATUS["REJECTED"] = "REJECTED";
40
41
  MRN_STATUS["CLOSED"] = "CLOSED";
42
+ /** @deprecated */
41
43
  MRN_STATUS["PROCESSED"] = "PROCESSED";
42
44
  })(MRN_STATUS || (exports.MRN_STATUS = MRN_STATUS = {}));
43
45
  var MRN_ITEM_INCLUDE;
@@ -27,9 +27,11 @@ export declare enum PR_STATUS {
27
27
  DRAFT = "DRAFT",
28
28
  PENDING_APPROVAL = "PENDING_APPROVAL",
29
29
  APPROVED = "APPROVED",
30
- REJECTED = "REJECTED",
31
30
  CLOSED = "CLOSED",
32
31
  SENT_TO_PURCHASE = "SENT_TO_PURCHASE",
32
+ /** @deprecated */
33
+ REJECTED = "REJECTED",
34
+ /** @deprecated */
33
35
  PROCESSED = "PROCESSED"
34
36
  }
35
37
  export declare enum PR_INCLUDE {
@@ -23,9 +23,11 @@ var PR_STATUS;
23
23
  PR_STATUS["DRAFT"] = "DRAFT";
24
24
  PR_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
25
25
  PR_STATUS["APPROVED"] = "APPROVED";
26
- PR_STATUS["REJECTED"] = "REJECTED";
27
26
  PR_STATUS["CLOSED"] = "CLOSED";
28
27
  PR_STATUS["SENT_TO_PURCHASE"] = "SENT_TO_PURCHASE";
28
+ /** @deprecated */
29
+ PR_STATUS["REJECTED"] = "REJECTED";
30
+ /** @deprecated */
29
31
  PR_STATUS["PROCESSED"] = "PROCESSED";
30
32
  })(PR_STATUS || (exports.PR_STATUS = PR_STATUS = {}));
31
33
  var PR_INCLUDE;
@@ -0,0 +1,18 @@
1
+ import { INestedCompany } from "../company.typings";
2
+ export declare enum ERP_PLUGINS {
3
+ SYNC_VENDOR_TO_ERP = "SYNC_VENDOR_TO_ERP"
4
+ }
5
+ export declare enum ERP_PLUGINS_CONFIG_COMPANY_INCLUDE {
6
+ company = "company"
7
+ }
8
+ export interface IERPPluginConfigCompany {
9
+ id: string;
10
+ company_id: string;
11
+ last_updated_by_superadmin_id: string;
12
+ sync_vendor_to_erp: boolean;
13
+ created_at: string;
14
+ updated_at: string;
15
+ company: INestedCompany;
16
+ }
17
+ export interface INestedERPPluginConfigCompany extends Omit<IERPPluginConfigCompany, "company"> {
18
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERP_PLUGINS_CONFIG_COMPANY_INCLUDE = exports.ERP_PLUGINS = void 0;
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 = {}));
8
+ var ERP_PLUGINS_CONFIG_COMPANY_INCLUDE;
9
+ (function (ERP_PLUGINS_CONFIG_COMPANY_INCLUDE) {
10
+ ERP_PLUGINS_CONFIG_COMPANY_INCLUDE["company"] = "company";
11
+ })(ERP_PLUGINS_CONFIG_COMPANY_INCLUDE || (exports.ERP_PLUGINS_CONFIG_COMPANY_INCLUDE = ERP_PLUGINS_CONFIG_COMPANY_INCLUDE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "14.12.2",
3
+ "version": "14.13.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",