@konplit-services/common 1.0.45 → 1.0.47

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.
@@ -16,6 +16,8 @@ interface EmailTemplate {
16
16
  refund_resolved: string;
17
17
  invoice: string;
18
18
  token: string;
19
+ reset_password: string;
20
+ two_factor_auth_change: string;
19
21
  }
20
22
  interface Interswitch {
21
23
  merchant_id: string;
@@ -204,6 +204,12 @@ class AppConfigs {
204
204
  if (!this.env.EMAIL_TEMPLATE_TOKEN) {
205
205
  throw new Error("EMAIL_TEMPLATE_TOKEN is required");
206
206
  }
207
+ if (!this.env.EMAIL_TEMPLATE_RESET_PASSWORD) {
208
+ throw new Error("EMAIL_TEMPLATE_RESET_PASSWORD is required");
209
+ }
210
+ if (!this.env.TWO_FACTOR_AUTH_CHANGE) {
211
+ throw new Error("TWO_FACTOR_AUTH_CHANGE is required");
212
+ }
207
213
  return {
208
214
  forgot_password: this.env.EMAIL_TEMPLATE_FORGET_PASSWORD,
209
215
  verify_account: this.env.EMAIL_TEMPLATE_VERIFY_ACCOUNT,
@@ -220,6 +226,8 @@ class AppConfigs {
220
226
  refund_resolved: this.env.EMAIL_TEMPLATE_REFUND_RESOLVED,
221
227
  invoice: this.env.EMAIL_TEMPLATE_INVOICE,
222
228
  token: this.env.EMAIL_TEMPLATE_TOKEN,
229
+ reset_password: this.env.EMAIL_TEMPLATE_RESET_PASSWORD,
230
+ two_factor_auth_change: this.env.TWO_FACTOR_AUTH_CHANGE,
223
231
  };
224
232
  }
225
233
  getCloudinaryKey() {
@@ -7,5 +7,6 @@ export declare enum EmailValidationTypes {
7
7
  FORGETPASSWORD = "FORGETPASSWORD",
8
8
  RESETPASSORD = "RESETPASSWORD",
9
9
  ACCOUNTVERIFIED = "ACCOUNTVERIFIED",
10
- TWO_FACTOR_VALIDATION = "EMAILVALIDATION"
10
+ TWO_FACTOR_VALIDATION = "TWO_FACTOR_VALIDATION",
11
+ TWO_FACTOR_AUTHS_CHANGE = "TWO_FACTOR_AUTHS_CHANGE"
11
12
  }
@@ -12,5 +12,6 @@ var EmailValidationTypes;
12
12
  EmailValidationTypes["FORGETPASSWORD"] = "FORGETPASSWORD";
13
13
  EmailValidationTypes["RESETPASSORD"] = "RESETPASSWORD";
14
14
  EmailValidationTypes["ACCOUNTVERIFIED"] = "ACCOUNTVERIFIED";
15
- EmailValidationTypes["TWO_FACTOR_VALIDATION"] = "EMAILVALIDATION";
15
+ EmailValidationTypes["TWO_FACTOR_VALIDATION"] = "TWO_FACTOR_VALIDATION";
16
+ EmailValidationTypes["TWO_FACTOR_AUTHS_CHANGE"] = "TWO_FACTOR_AUTHS_CHANGE";
16
17
  })(EmailValidationTypes = exports.EmailValidationTypes || (exports.EmailValidationTypes = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",