@konplit-services/common 1.0.20 → 1.0.21

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.
@@ -81,6 +81,8 @@ declare class AppConfigs {
81
81
  getAppName(): string;
82
82
  getJWTKEY(): string;
83
83
  getDBURI(): string;
84
+ getActivityLogDBURI(): string;
85
+ getAccountDBURI(): string;
84
86
  getNATSURI(): string;
85
87
  getNATSPassword(): string;
86
88
  getNATSUsername(): string;
@@ -107,6 +109,11 @@ declare class AppConfigs {
107
109
  getEmailTemplates(): EmailTemplate;
108
110
  getCloudinaryKey(): string;
109
111
  getMailSenderKey(): string;
112
+ getTermiiSMSKey(): {
113
+ apiKey: string;
114
+ secretKey: string;
115
+ sender: string;
116
+ };
110
117
  getCloudWatchDetails(): {
111
118
  accessKey: string;
112
119
  secretKey: string;
@@ -127,6 +134,8 @@ declare class AppConfigs {
127
134
  support_phone: string;
128
135
  ip_token: string;
129
136
  invoice_url: string;
137
+ noReplyEmail: string;
138
+ emailName: string;
130
139
  };
131
140
  getNIBSSDetails(): NIBSS;
132
141
  getFidelityDetails(): {
@@ -23,6 +23,18 @@ class AppConfigs {
23
23
  }
24
24
  return this.env.Mongo_URI;
25
25
  }
26
+ getActivityLogDBURI() {
27
+ if (!this.env.Mongo_ACTIVITY_URI) {
28
+ throw new Error("Mongo_ACTIVITY_URI is required");
29
+ }
30
+ return this.env.Mongo_ACTIVITY_URI;
31
+ }
32
+ getAccountDBURI() {
33
+ if (!this.env.MONGO_URI_ACCOUNT) {
34
+ throw new Error("MONGO_URI_ACCOUNT is required");
35
+ }
36
+ return this.env.MONGO_URI_ACCOUNT;
37
+ }
26
38
  getNATSURI() {
27
39
  if (!this.env.NATS_URI) {
28
40
  throw new Error("NATS_URI is required");
@@ -218,6 +230,22 @@ class AppConfigs {
218
230
  }
219
231
  return this.env.MAIL_SENDER_KEY;
220
232
  }
233
+ getTermiiSMSKey() {
234
+ if (!this.env.SMS_API_KEY) {
235
+ throw new Error("SMS_API_KEY is required");
236
+ }
237
+ if (!this.env.SMS_SECRET_KEY) {
238
+ throw new Error("SMS_SECRET_KEY is required");
239
+ }
240
+ if (!this.env.SMS_SENDER) {
241
+ throw new Error("SMS_SENDER is required");
242
+ }
243
+ return {
244
+ apiKey: this.env.SMS_API_KEY,
245
+ secretKey: this.env.SMS_SECRET_KEY,
246
+ sender: this.env.SMS_SENDER,
247
+ };
248
+ }
221
249
  getCloudWatchDetails() {
222
250
  if (!this.env.CLOUDWATCH_ACCESSKEY) {
223
251
  throw new Error("CLOUDWATCH_ACCESSKEY is required");
@@ -280,6 +308,12 @@ class AppConfigs {
280
308
  if (!this.env.VALUEPAY_INVOICE_URL) {
281
309
  throw new Error("VALUEPAY_INVOICE_URL is required");
282
310
  }
311
+ if (!this.env.VALUEPAY_NO_REPLY_EMAIL) {
312
+ throw new Error("VALUEPAY_NO_REPLY_EMAIL is required");
313
+ }
314
+ if (!this.env.VALUEPAY_EMAIL_NAME) {
315
+ throw new Error("VALUEPAY_NO_REPLY_EMAIL is required");
316
+ }
283
317
  return {
284
318
  visa_redirect_url: this.env.VALUEPAY_VISA_REDIRECT_URL,
285
319
  visa_callback_url: this.env.VALUEPAY_VISA_CALLBACK_URL,
@@ -288,6 +322,8 @@ class AppConfigs {
288
322
  support_phone: this.env.VALUEPAY_SUPPORT_PHONE,
289
323
  ip_token: this.env.VALUEPAY_IP_TOKEN,
290
324
  invoice_url: this.env.VALUEPAY_INVOICE_URL,
325
+ noReplyEmail: this.env.VALUEPAY_NO_REPLY_EMAIL,
326
+ emailName: this.env.VALUEPAY_EMAIL_NAME,
291
327
  };
292
328
  }
293
329
  getNIBSSDetails() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",