@konplit-services/common 1.7.4 → 1.7.5
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/app.configs.d.ts +10 -0
- package/build/app.configs.js +18 -1
- package/package.json +1 -1
package/build/app.configs.d.ts
CHANGED
|
@@ -310,6 +310,16 @@ declare class AppConfigs {
|
|
|
310
310
|
secretKey: string;
|
|
311
311
|
sender: string;
|
|
312
312
|
};
|
|
313
|
+
ebulk: {
|
|
314
|
+
apiKey: string;
|
|
315
|
+
sender: string;
|
|
316
|
+
username: string;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
getEbulkSMSKey(): {
|
|
320
|
+
apiKey: string;
|
|
321
|
+
sender: string;
|
|
322
|
+
username: string;
|
|
313
323
|
};
|
|
314
324
|
getTermiiSMSKey(): {
|
|
315
325
|
apiKey: string;
|
package/build/app.configs.js
CHANGED
|
@@ -457,7 +457,24 @@ class AppConfigs {
|
|
|
457
457
|
}
|
|
458
458
|
return {
|
|
459
459
|
vendor: this.env.SMS_VENDOR,
|
|
460
|
-
termii: this.getTermiiSMSKey()
|
|
460
|
+
termii: this.getTermiiSMSKey(),
|
|
461
|
+
ebulk: this.getEbulkSMSKey()
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
getEbulkSMSKey() {
|
|
465
|
+
if (!this.env.EBULK_API_KEY) {
|
|
466
|
+
throw new Error("EBULK_API_KEY is required");
|
|
467
|
+
}
|
|
468
|
+
if (!this.env.EBULK_SENDER_ID) {
|
|
469
|
+
throw new Error("EBULK_SENDER_ID is required");
|
|
470
|
+
}
|
|
471
|
+
if (!this.env.EBULK_USERNAME) {
|
|
472
|
+
throw new Error("EBULK_USERNAME is required");
|
|
473
|
+
}
|
|
474
|
+
return {
|
|
475
|
+
apiKey: this.env.EBULK_API_KEY,
|
|
476
|
+
sender: this.env.EBULK_SENDER_ID,
|
|
477
|
+
username: this.env.EBULK_USERNAME,
|
|
461
478
|
};
|
|
462
479
|
}
|
|
463
480
|
getTermiiSMSKey() {
|