@konplit-services/common 1.0.201 → 1.0.203

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.
@@ -119,6 +119,7 @@ declare class AppConfigs {
119
119
  getWebsiteDBURI(): string;
120
120
  getSettlementDBURI(): string;
121
121
  getOpayDBURI(): string;
122
+ getKoreDBURI(): string;
122
123
  getNATSPassword(): string;
123
124
  getNATSUsername(): string;
124
125
  getSettlementInterval(): string;
@@ -161,6 +162,8 @@ declare class AppConfigs {
161
162
  secretKey: string;
162
163
  masterKey: string;
163
164
  keyID: string;
165
+ rotateKey: string;
166
+ region: string;
164
167
  };
165
168
  getValuePayDetails(): {
166
169
  visa_redirect_url: string;
@@ -95,6 +95,12 @@ class AppConfigs {
95
95
  }
96
96
  return this.env.MONGO_OPAY_URI;
97
97
  }
98
+ getKoreDBURI() {
99
+ if (!this.env.MONGO_KORE_URI) {
100
+ throw new Error("MONGO_KORE_URI is required");
101
+ }
102
+ return this.env.MONGO_KORE_URI;
103
+ }
98
104
  getNATSPassword() {
99
105
  if (!this.env.NATS_PASSWORD) {
100
106
  throw new Error("NATS_PASSWORD is required");
@@ -359,10 +365,18 @@ class AppConfigs {
359
365
  if (!this.env.AWS_KEYID) {
360
366
  throw new Error("AWS_KEYID is required");
361
367
  }
368
+ if (!this.env.AWS_REGION) {
369
+ throw new Error("AWS_REGION is required");
370
+ }
371
+ if (!this.env.AWS_ROTATE_KEY) {
372
+ throw new Error("AWS_ROTATE_KEY is required");
373
+ }
362
374
  return {
363
375
  accessKey: this.env.AWS_ACCESSKEY,
364
376
  secretKey: this.env.AWS_SECRETKEY,
365
377
  masterKey: this.env.AWS_MASTERKEY,
378
+ region: this.env.AWS_REGION,
379
+ rotateKey: this.env.AWS_ROTATE_KEY,
366
380
  keyID: this.env.AWS_KEYID,
367
381
  };
368
382
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.201",
3
+ "version": "1.0.203",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",