@konplit-services/common 1.0.220 → 1.0.223

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.
@@ -34,6 +34,7 @@ export declare const lang: {
34
34
  pagination_invalid_limit: string;
35
35
  pagination_invalid_page: string;
36
36
  resource_not_found: string;
37
+ bvn_not_provided: string;
37
38
  };
38
39
  export declare const admin_lang: {
39
40
  add_business_type: string;
@@ -46,6 +46,7 @@ exports.lang = {
46
46
  pagination_invalid_limit: "Invalid pagination limit provided",
47
47
  pagination_invalid_page: "Invalid pagination page value provided",
48
48
  resource_not_found: "the resource path you are trying to access does not exist",
49
+ bvn_not_provided: "BVN not provided, please provide a valid BVN",
49
50
  };
50
51
  //Admin Language Constants applicable for use for only Admin-Users subaccount for Merchants
51
52
  exports.admin_lang = {
@@ -1 +1,8 @@
1
- export {};
1
+ import { PLAN_INTERVAL } from "./plan-types";
2
+ /**
3
+ * Generates a cron expression based on the current date and selected interval.
4
+ *
5
+ * @param {PLAN_INTERVAL} interval - The subscription interval.
6
+ * @returns {string} - The generated cron expression with seconds.
7
+ */
8
+ export declare const generateCronExpression: (interval: PLAN_INTERVAL) => string;
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.generateCronExpression = void 0;
6
7
  const dayjs_1 = __importDefault(require("dayjs"));
7
8
  const utc_1 = __importDefault(require("dayjs/plugin/utc"));
8
9
  const plan_types_1 = require("./plan-types");
@@ -69,3 +70,4 @@ const generateCronExpression = (interval) => {
69
70
  }
70
71
  return cronExpression;
71
72
  };
73
+ exports.generateCronExpression = generateCronExpression;
@@ -25,17 +25,11 @@ const configureSwagger = (app, paths) => {
25
25
  },
26
26
  },
27
27
  servers: [
28
- {
29
- url: "http://localhost:3000",
30
- },
31
28
  {
32
29
  url: "https://konplit.com",
33
30
  },
34
31
  {
35
- url: "https://www.konplit.com",
36
- },
37
- {
38
- url: "http://konplit.com",
32
+ url: " https://valuepay.konplit.com",
39
33
  },
40
34
  ],
41
35
  components: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.220",
3
+ "version": "1.0.223",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",