kcommons 18.9.16 → 18.9.18

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 CHANGED
@@ -184,8 +184,8 @@ export * from "./typings/vendor/vendorPermission.typings";
184
184
  export * from "./typings/vendor/vendorRole.typings";
185
185
  export * from "./typings/vendor/vendorUser.typings";
186
186
  export * from "./helpers/padNumber.helper";
187
- export * from "./typings/plugins/plugin.typings";
188
187
  export * from "./typings/plugins/erp.plugins";
188
+ export * from "./typings/companyConfig.typings";
189
189
  export * from "./utils/validators/gst.validator";
190
190
  export * from "./utils/validators/pan.validator";
191
191
  export * from "./utils/validators/cin.validator";
package/build/index.js CHANGED
@@ -222,8 +222,8 @@ __exportStar(require("./typings/vendor/vendorUser.typings"), exports);
222
222
  // Helpers
223
223
  __exportStar(require("./helpers/padNumber.helper"), exports);
224
224
  // Plugins
225
- __exportStar(require("./typings/plugins/plugin.typings"), exports);
226
225
  __exportStar(require("./typings/plugins/erp.plugins"), exports);
226
+ __exportStar(require("./typings/companyConfig.typings"), exports);
227
227
  // Validators
228
228
  __exportStar(require("./utils/validators/gst.validator"), exports);
229
229
  __exportStar(require("./utils/validators/pan.validator"), exports);
@@ -1,5 +1,8 @@
1
1
  import { DATE_TIME_UNITS } from "../constants/date.constants";
2
2
  import { INestedCompany } from "./company.typings";
3
+ export declare enum COMPANY_PLUGINS {
4
+ ACCOUNT_PAYABLES_AUTOMATION = "ACCOUNT_PAYABLES_AUTOMATION"
5
+ }
3
6
  export interface ICompanyConfig {
4
7
  id: string;
5
8
  selected_price_plan: string;
@@ -10,7 +13,7 @@ export interface ICompanyConfig {
10
13
  vendor_onboarding_request_cancellation_cooldown_unit: DATE_TIME_UNITS;
11
14
  company_vendor_cancellation_cooldown_value: number;
12
15
  company_vendor_cancellation_cooldown_unit: DATE_TIME_UNITS;
13
- plugin_ids: string[];
16
+ enabled_plugins: COMPANY_PLUGINS[];
14
17
  company_vendor_additonal_info_fields_mapping_config: string;
15
18
  created_at: string;
16
19
  updated_at: string;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COMPANY_CONFIG_INCLUDE = void 0;
3
+ exports.COMPANY_CONFIG_INCLUDE = exports.COMPANY_PLUGINS = void 0;
4
+ var COMPANY_PLUGINS;
5
+ (function (COMPANY_PLUGINS) {
6
+ COMPANY_PLUGINS["ACCOUNT_PAYABLES_AUTOMATION"] = "ACCOUNT_PAYABLES_AUTOMATION";
7
+ })(COMPANY_PLUGINS || (exports.COMPANY_PLUGINS = COMPANY_PLUGINS = {}));
4
8
  var COMPANY_CONFIG_INCLUDE;
5
9
  (function (COMPANY_CONFIG_INCLUDE) {
6
10
  COMPANY_CONFIG_INCLUDE["company"] = "company";
@@ -1,3 +1,4 @@
1
- export declare enum PLUGINS {
2
- ITEM_TOLERANCE = "ITEM_TOLERANCE"
1
+ export declare enum COMPANY_PLUGINS {
2
+ ITEM_TOLERANCE = "ITEM_TOLERANCE",
3
+ ACCOUNTS_PAYABLES_AUTOMATION = "ACCOUNTS_PAYABLES_AUTOMATION"
3
4
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PLUGINS = void 0;
4
- var PLUGINS;
5
- (function (PLUGINS) {
6
- PLUGINS["ITEM_TOLERANCE"] = "ITEM_TOLERANCE";
7
- })(PLUGINS || (exports.PLUGINS = PLUGINS = {}));
3
+ exports.COMPANY_PLUGINS = void 0;
4
+ var COMPANY_PLUGINS;
5
+ (function (COMPANY_PLUGINS) {
6
+ COMPANY_PLUGINS["ITEM_TOLERANCE"] = "ITEM_TOLERANCE";
7
+ COMPANY_PLUGINS["ACCOUNTS_PAYABLES_AUTOMATION"] = "ACCOUNTS_PAYABLES_AUTOMATION";
8
+ })(COMPANY_PLUGINS || (exports.COMPANY_PLUGINS = COMPANY_PLUGINS = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "18.9.16",
3
+ "version": "18.9.18",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",