@konplit-services/common 1.0.45 → 1.0.46

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,7 @@ interface EmailTemplate {
16
16
  refund_resolved: string;
17
17
  invoice: string;
18
18
  token: string;
19
+ reset_password: string;
19
20
  }
20
21
  interface Interswitch {
21
22
  merchant_id: string;
@@ -204,6 +204,9 @@ 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
+ }
207
210
  return {
208
211
  forgot_password: this.env.EMAIL_TEMPLATE_FORGET_PASSWORD,
209
212
  verify_account: this.env.EMAIL_TEMPLATE_VERIFY_ACCOUNT,
@@ -220,6 +223,7 @@ class AppConfigs {
220
223
  refund_resolved: this.env.EMAIL_TEMPLATE_REFUND_RESOLVED,
221
224
  invoice: this.env.EMAIL_TEMPLATE_INVOICE,
222
225
  token: this.env.EMAIL_TEMPLATE_TOKEN,
226
+ reset_password: this.env.EMAIL_TEMPLATE_RESET_PASSWORD,
223
227
  };
224
228
  }
225
229
  getCloudinaryKey() {
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.46",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",