@konplit-services/common 1.0.47 → 1.0.49
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
|
@@ -207,8 +207,14 @@ class AppConfigs {
|
|
|
207
207
|
if (!this.env.EMAIL_TEMPLATE_RESET_PASSWORD) {
|
|
208
208
|
throw new Error("EMAIL_TEMPLATE_RESET_PASSWORD is required");
|
|
209
209
|
}
|
|
210
|
-
if (!this.env.
|
|
211
|
-
throw new Error("
|
|
210
|
+
if (!this.env.EMAIL_TEMPLATE_TWO_FACTOR_AUTH_CHANGE) {
|
|
211
|
+
throw new Error("EMAIL_TEMPLATE_TWO_FACTOR_AUTH_CHANGE is required");
|
|
212
|
+
}
|
|
213
|
+
if (!this.env.EMAIL_TEMPLATE_USER_ACCOUNT_CREATED) {
|
|
214
|
+
throw new Error("EMAIL_TEMPLATE_USER_ACCOUNT_CREATED is required");
|
|
215
|
+
}
|
|
216
|
+
if (!this.env.EMAIL_TEMPLATE_USER_INVITED) {
|
|
217
|
+
throw new Error("EMAIL_TEMPLATE_USER_INVITED is required");
|
|
212
218
|
}
|
|
213
219
|
return {
|
|
214
220
|
forgot_password: this.env.EMAIL_TEMPLATE_FORGET_PASSWORD,
|
|
@@ -227,7 +233,9 @@ class AppConfigs {
|
|
|
227
233
|
invoice: this.env.EMAIL_TEMPLATE_INVOICE,
|
|
228
234
|
token: this.env.EMAIL_TEMPLATE_TOKEN,
|
|
229
235
|
reset_password: this.env.EMAIL_TEMPLATE_RESET_PASSWORD,
|
|
230
|
-
two_factor_auth_change: this.env.
|
|
236
|
+
two_factor_auth_change: this.env.EMAIL_TEMPLATE_TWO_FACTOR_AUTH_CHANGE,
|
|
237
|
+
user_account_created: this.env.EMAIL_TEMPLATE_USER_ACCOUNT_CREATED,
|
|
238
|
+
user_invited: this.env.EMAIL_TEMPLATE_USER_INVITED,
|
|
231
239
|
};
|
|
232
240
|
}
|
|
233
241
|
getCloudinaryKey() {
|
|
@@ -13,5 +13,9 @@ export declare enum LOGACTIONS {
|
|
|
13
13
|
MERCHANT_USER_BLOCKED = "MERCHANT_USER_BLOCKED",
|
|
14
14
|
MERCHANT_USER_DELETED = "MERCHANT_USER_DELETED",
|
|
15
15
|
MERCAHNT_SETTINGS_UPDATED = "MERCAHNT_SETTINGS_UPDATED",
|
|
16
|
-
MERCAHNT_KEYS_UPDATED = "MERCAHNT_KEYS_UPDATED"
|
|
16
|
+
MERCAHNT_KEYS_UPDATED = "MERCAHNT_KEYS_UPDATED",
|
|
17
|
+
INITIALISE_TWOFACTORAUTH = "INITIALISE_TWOFACTORAUTH",
|
|
18
|
+
ENABLE_TWOFACTORAUTH = "ENABLE_TWOFACTORAUTH",
|
|
19
|
+
DISABLE_TWOFACTORAUTH = "DISABLE_TWOFACTORAUTH",
|
|
20
|
+
INITIALISE_DEACTIVATETWOFACTORAUTH = "INITIALISE_DEACTIVATETWOFACTORAUTH"
|
|
17
21
|
}
|
|
@@ -22,4 +22,9 @@ var LOGACTIONS;
|
|
|
22
22
|
LOGACTIONS["MERCHANT_USER_DELETED"] = "MERCHANT_USER_DELETED";
|
|
23
23
|
LOGACTIONS["MERCAHNT_SETTINGS_UPDATED"] = "MERCAHNT_SETTINGS_UPDATED";
|
|
24
24
|
LOGACTIONS["MERCAHNT_KEYS_UPDATED"] = "MERCAHNT_KEYS_UPDATED";
|
|
25
|
+
//ACCOUNTS
|
|
26
|
+
LOGACTIONS["INITIALISE_TWOFACTORAUTH"] = "INITIALISE_TWOFACTORAUTH";
|
|
27
|
+
LOGACTIONS["ENABLE_TWOFACTORAUTH"] = "ENABLE_TWOFACTORAUTH";
|
|
28
|
+
LOGACTIONS["DISABLE_TWOFACTORAUTH"] = "DISABLE_TWOFACTORAUTH";
|
|
29
|
+
LOGACTIONS["INITIALISE_DEACTIVATETWOFACTORAUTH"] = "INITIALISE_DEACTIVATETWOFACTORAUTH";
|
|
25
30
|
})(LOGACTIONS = exports.LOGACTIONS || (exports.LOGACTIONS = {}));
|