@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.
package/build/app.configs.d.ts
CHANGED
package/build/app.configs.js
CHANGED
|
@@ -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 = "
|
|
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"] = "
|
|
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 = {}));
|