@konplit-services/common 1.0.252 → 1.0.253

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.
@@ -147,6 +147,11 @@ declare class AppConfigs {
147
147
  };
148
148
  getAPIPrivateKey(): string;
149
149
  getEmailVendor(): string;
150
+ getZeptoMailAPIKey(): string;
151
+ getPlatFormName(): string;
152
+ getNoReplyMail(): string;
153
+ getBCCMail(): string;
154
+ getWebAppUrl(): string;
150
155
  getRedisHost(): {
151
156
  url: string;
152
157
  host: string;
@@ -199,6 +199,33 @@ class AppConfigs {
199
199
  }
200
200
  return this.env.EMAIL_VENDOR;
201
201
  }
202
+ getZeptoMailAPIKey() {
203
+ if (!this.env.ZEPTOMAIL_KEY) {
204
+ throw new Error("ZEPTOMAIL_KEY is required");
205
+ }
206
+ return this.env.ZEPTOMAIL_KEY;
207
+ }
208
+ getPlatFormName() {
209
+ return this.getAppName();
210
+ }
211
+ getNoReplyMail() {
212
+ if (!this.env.NO_REPLY_EMAIL) {
213
+ throw new Error("NO_REPLY_EMAIL is required");
214
+ }
215
+ return this.env.NO_REPLY_EMAIL;
216
+ }
217
+ getBCCMail() {
218
+ if (!this.env.BCC_EMAIL) {
219
+ throw new Error("BCC_EMAIL is required");
220
+ }
221
+ return this.env.BCC_EMAIL;
222
+ }
223
+ getWebAppUrl() {
224
+ if (!this.env.WEB_URL) {
225
+ throw new Error("WEB_URL is required");
226
+ }
227
+ return this.env.WEB_URL;
228
+ }
202
229
  getRedisHost() {
203
230
  if (!this.env.REDIS_URL) {
204
231
  throw new Error("REDIS_URL is required");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.252",
3
+ "version": "1.0.253",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",