connectfy-shared 0.0.91 → 0.0.93
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/dist/index.cjs +55 -0
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.mjs +53 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9486,6 +9486,7 @@ __export(index_exports, {
|
|
|
9486
9486
|
TIME_DIFFERENCE_TYPE: () => TIME_DIFFERENCE_TYPE,
|
|
9487
9487
|
TIME_FORMAT: () => TIME_FORMAT,
|
|
9488
9488
|
TOKEN_TYPE: () => TOKEN_TYPE,
|
|
9489
|
+
TWO_FACTOR_ACTION: () => TWO_FACTOR_ACTION,
|
|
9489
9490
|
USER_STATUS: () => USER_STATUS,
|
|
9490
9491
|
VALIDATION_TYPE: () => VALIDATION_TYPE,
|
|
9491
9492
|
accountDeletedMessage: () => accountDeletedMessage,
|
|
@@ -9508,6 +9509,7 @@ __export(index_exports, {
|
|
|
9508
9509
|
sendWithContext: () => sendWithContext,
|
|
9509
9510
|
signupVerifyMessage: () => signupVerifyMessage,
|
|
9510
9511
|
stringTransform: () => stringTransform,
|
|
9512
|
+
twoFactorVerifyMessage: () => twoFactorVerifyMessage,
|
|
9511
9513
|
upperCaseTranform: () => upperCaseTranform,
|
|
9512
9514
|
validationMessage: () => validationMessage,
|
|
9513
9515
|
verifyYourselfMessage: () => verifyYourselfMessage
|
|
@@ -9945,8 +9947,14 @@ var TOKEN_TYPE = /* @__PURE__ */ ((TOKEN_TYPE2) => {
|
|
|
9945
9947
|
TOKEN_TYPE2["CHANGE_PASSWORD"] = "CHANGE_PASSWORD";
|
|
9946
9948
|
TOKEN_TYPE2["CHANGE_PHONE_NUMBER"] = "CHANGE_PHONE_NUMBER";
|
|
9947
9949
|
TOKEN_TYPE2["DEACTIVATE_ACCOUNT"] = "DEACTIVATE_ACCOUNT";
|
|
9950
|
+
TOKEN_TYPE2["TWO_FACTOR"] = "TWO_FACTOR";
|
|
9948
9951
|
return TOKEN_TYPE2;
|
|
9949
9952
|
})(TOKEN_TYPE || {});
|
|
9953
|
+
var TWO_FACTOR_ACTION = /* @__PURE__ */ ((TWO_FACTOR_ACTION2) => {
|
|
9954
|
+
TWO_FACTOR_ACTION2["ENABLE"] = "ENABLE";
|
|
9955
|
+
TWO_FACTOR_ACTION2["DISABLE"] = "DISABLE";
|
|
9956
|
+
return TWO_FACTOR_ACTION2;
|
|
9957
|
+
})(TWO_FACTOR_ACTION || {});
|
|
9950
9958
|
var PHONE_NUMBER_ACTION = /* @__PURE__ */ ((PHONE_NUMBER_ACTION2) => {
|
|
9951
9959
|
PHONE_NUMBER_ACTION2["UPDATE"] = "UPDATE";
|
|
9952
9960
|
PHONE_NUMBER_ACTION2["REMOVE"] = "REMOVE";
|
|
@@ -10526,6 +10534,51 @@ var changeEmailMessage = (token, lang = "en" /* EN */) => {
|
|
|
10526
10534
|
</html>
|
|
10527
10535
|
`;
|
|
10528
10536
|
};
|
|
10537
|
+
var twoFactorVerifyMessage = (firstName, lastName, verifyCode, lang = "en" /* EN */) => {
|
|
10538
|
+
const team = i18n_default.t("email_messages.two_factor.team", { lng: lang });
|
|
10539
|
+
const warning = i18n_default.t("email_messages.two_factor.warning", { lng: lang });
|
|
10540
|
+
const support = i18n_default.t("email_messages.two_factor.support", { lng: lang });
|
|
10541
|
+
const subject = i18n_default.t("email_messages.two_factor.subject", { lng: lang });
|
|
10542
|
+
const greeting = i18n_default.t("email_messages.two_factor.greeting", { lng: lang });
|
|
10543
|
+
const instruction = i18n_default.t("email_messages.two_factor.instruction", {
|
|
10544
|
+
lng: lang
|
|
10545
|
+
});
|
|
10546
|
+
const signature = i18n_default.t("email_messages.two_factor.signature", {
|
|
10547
|
+
lng: lang
|
|
10548
|
+
});
|
|
10549
|
+
return `
|
|
10550
|
+
<html>
|
|
10551
|
+
<body style="font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.6; color: #334155; background-color: #f8fafc; padding: 20px;">
|
|
10552
|
+
<div style="max-width: 500px; margin: 0 auto; background: #ffffff; padding: 32px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);">
|
|
10553
|
+
<div style="text-align: center; margin-bottom: 24px;">
|
|
10554
|
+
<h2 style="color: #1e293b; margin: 0; font-size: 24px;">${subject}</h2>
|
|
10555
|
+
</div>
|
|
10556
|
+
<p style="font-size: 16px;">${greeting} <strong>${firstName} ${lastName}</strong>,</p>
|
|
10557
|
+
<p style="font-size: 15px; color: #64748b;">${instruction}</p>
|
|
10558
|
+
|
|
10559
|
+
<div style="text-align: center; margin: 32px 0;">
|
|
10560
|
+
<div style="display: inline-block; letter-spacing: 8px; font-size: 36px; font-weight: 800; color: #2563eb; background: #eff6ff; padding: 16px 32px; border-radius: 8px; border: 1px dashed #bfdbfe;">
|
|
10561
|
+
${verifyCode}
|
|
10562
|
+
</div>
|
|
10563
|
+
</div>
|
|
10564
|
+
|
|
10565
|
+
<div style="background: #fffbeb; border-left: 4px solid #f59e0b; padding: 12px; margin-bottom: 24px;">
|
|
10566
|
+
<p style="font-size: 13px; color: #92400e; margin: 0;">${warning}</p>
|
|
10567
|
+
</div>
|
|
10568
|
+
|
|
10569
|
+
<p style="font-size: 14px; color: #64748b;">${support}
|
|
10570
|
+
<a href="${supportMailLink}" style="color: #2563eb; text-decoration: none; font-weight: 500;">${supportMail}</a>.
|
|
10571
|
+
</p>
|
|
10572
|
+
|
|
10573
|
+
<hr style="border: 0; border-top: 1px solid #e2e8f0; margin: 24px 0;" />
|
|
10574
|
+
|
|
10575
|
+
<p style="font-size: 13px; color: #94a3b8; margin: 0;">${signature}</p>
|
|
10576
|
+
<p style="font-size: 14px; font-weight: bold; color: #1e293b; margin: 4px 0 0 0;">${team}</p>
|
|
10577
|
+
</div>
|
|
10578
|
+
</body>
|
|
10579
|
+
</html>
|
|
10580
|
+
`;
|
|
10581
|
+
};
|
|
10529
10582
|
|
|
10530
10583
|
// src/decorators/server/field-validator/field-transformer.registry.ts
|
|
10531
10584
|
var import_class_transformer = require("class-transformer");
|
|
@@ -11553,6 +11606,7 @@ var BaseRepository = class {
|
|
|
11553
11606
|
TIME_DIFFERENCE_TYPE,
|
|
11554
11607
|
TIME_FORMAT,
|
|
11555
11608
|
TOKEN_TYPE,
|
|
11609
|
+
TWO_FACTOR_ACTION,
|
|
11556
11610
|
USER_STATUS,
|
|
11557
11611
|
VALIDATION_TYPE,
|
|
11558
11612
|
accountDeletedMessage,
|
|
@@ -11575,6 +11629,7 @@ var BaseRepository = class {
|
|
|
11575
11629
|
sendWithContext,
|
|
11576
11630
|
signupVerifyMessage,
|
|
11577
11631
|
stringTransform,
|
|
11632
|
+
twoFactorVerifyMessage,
|
|
11578
11633
|
upperCaseTranform,
|
|
11579
11634
|
validationMessage,
|
|
11580
11635
|
verifyYourselfMessage
|
package/dist/index.d.cts
CHANGED
|
@@ -329,7 +329,12 @@ declare enum TOKEN_TYPE {
|
|
|
329
329
|
CHANGE_EMAIL = "CHANGE_EMAIL",
|
|
330
330
|
CHANGE_PASSWORD = "CHANGE_PASSWORD",
|
|
331
331
|
CHANGE_PHONE_NUMBER = "CHANGE_PHONE_NUMBER",
|
|
332
|
-
DEACTIVATE_ACCOUNT = "DEACTIVATE_ACCOUNT"
|
|
332
|
+
DEACTIVATE_ACCOUNT = "DEACTIVATE_ACCOUNT",
|
|
333
|
+
TWO_FACTOR = "TWO_FACTOR"
|
|
334
|
+
}
|
|
335
|
+
declare enum TWO_FACTOR_ACTION {
|
|
336
|
+
ENABLE = "ENABLE",
|
|
337
|
+
DISABLE = "DISABLE"
|
|
333
338
|
}
|
|
334
339
|
declare enum PHONE_NUMBER_ACTION {
|
|
335
340
|
UPDATE = "UPDATE",
|
|
@@ -504,6 +509,7 @@ declare const deleteAccountMessage: (deleteToken: string, lang?: LANGUAGE) => st
|
|
|
504
509
|
declare const accountDeletedMessage: (restoreToken: string, lang?: LANGUAGE) => string;
|
|
505
510
|
declare const verifyYourselfMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
|
|
506
511
|
declare const changeEmailMessage: (token: string, lang?: LANGUAGE) => string;
|
|
512
|
+
declare const twoFactorVerifyMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
|
|
507
513
|
|
|
508
514
|
type TransformFactory = (opts: FieldValidatorOptions) => PropertyDecorator;
|
|
509
515
|
declare const FIELD_TRANSFORMER_REGISTRY: Record<FIELD_TYPE, TransformFactory>;
|
|
@@ -769,4 +775,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
769
775
|
count(query: Record<string, any>): Promise<number>;
|
|
770
776
|
}
|
|
771
777
|
|
|
772
|
-
export { AllExceptionsFilter, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, DATE_FORMAT, DELETE_REASON, DELETE_REASON_CODE, DEVICE_TYPE, EXPIRE_DATES, ExceptionMessages, FIELD_TRANSFORMER_REGISTRY, FIELD_TYPE, FIELD_VALIDATOR_REGISTRY, FORGOT_PASSWORD_IDENTIFIER_TYPE, FRIENDSHIP_STATUS, FieldValidator, type FieldValidatorOptions, GENDER, GOOGLE_AUTH_LOGIN_TYPE, HttpStatus, type IAccount, type IArrayFieldOptions, type IBaseFieldOptions, type IBaseRepositoryInterface, type IBaseRepositoryOptions, type IBaseRepositoryRemoveOptions, type IBaseRepositoryUpdateOptions, type IBooleanFieldOptions, type ICountry, IDENTIFIER_TYPE, type IDateFieldOptions, type IEmitWithContextClientParams, type IEnumFieldOptions, type IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type IReturnedUser, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, REDIS_KEYS, REDUCER_PATH, RESOURCE, ROLE, SOCIAL_LINK_PLATFORM, STARTUP_PAGE, TAG_TYPES, THEME, TIME_DIFFERENCE_TYPE, TIME_FORMAT, TOKEN_TYPE, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
|
778
|
+
export { AllExceptionsFilter, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, DATE_FORMAT, DELETE_REASON, DELETE_REASON_CODE, DEVICE_TYPE, EXPIRE_DATES, ExceptionMessages, FIELD_TRANSFORMER_REGISTRY, FIELD_TYPE, FIELD_VALIDATOR_REGISTRY, FORGOT_PASSWORD_IDENTIFIER_TYPE, FRIENDSHIP_STATUS, FieldValidator, type FieldValidatorOptions, GENDER, GOOGLE_AUTH_LOGIN_TYPE, HttpStatus, type IAccount, type IArrayFieldOptions, type IBaseFieldOptions, type IBaseRepositoryInterface, type IBaseRepositoryOptions, type IBaseRepositoryRemoveOptions, type IBaseRepositoryUpdateOptions, type IBooleanFieldOptions, type ICountry, IDENTIFIER_TYPE, type IDateFieldOptions, type IEmitWithContextClientParams, type IEnumFieldOptions, type IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type IReturnedUser, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, REDIS_KEYS, REDUCER_PATH, RESOURCE, ROLE, SOCIAL_LINK_PLATFORM, STARTUP_PAGE, TAG_TYPES, THEME, TIME_DIFFERENCE_TYPE, TIME_FORMAT, TOKEN_TYPE, TWO_FACTOR_ACTION, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.d.ts
CHANGED
|
@@ -329,7 +329,12 @@ declare enum TOKEN_TYPE {
|
|
|
329
329
|
CHANGE_EMAIL = "CHANGE_EMAIL",
|
|
330
330
|
CHANGE_PASSWORD = "CHANGE_PASSWORD",
|
|
331
331
|
CHANGE_PHONE_NUMBER = "CHANGE_PHONE_NUMBER",
|
|
332
|
-
DEACTIVATE_ACCOUNT = "DEACTIVATE_ACCOUNT"
|
|
332
|
+
DEACTIVATE_ACCOUNT = "DEACTIVATE_ACCOUNT",
|
|
333
|
+
TWO_FACTOR = "TWO_FACTOR"
|
|
334
|
+
}
|
|
335
|
+
declare enum TWO_FACTOR_ACTION {
|
|
336
|
+
ENABLE = "ENABLE",
|
|
337
|
+
DISABLE = "DISABLE"
|
|
333
338
|
}
|
|
334
339
|
declare enum PHONE_NUMBER_ACTION {
|
|
335
340
|
UPDATE = "UPDATE",
|
|
@@ -504,6 +509,7 @@ declare const deleteAccountMessage: (deleteToken: string, lang?: LANGUAGE) => st
|
|
|
504
509
|
declare const accountDeletedMessage: (restoreToken: string, lang?: LANGUAGE) => string;
|
|
505
510
|
declare const verifyYourselfMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
|
|
506
511
|
declare const changeEmailMessage: (token: string, lang?: LANGUAGE) => string;
|
|
512
|
+
declare const twoFactorVerifyMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
|
|
507
513
|
|
|
508
514
|
type TransformFactory = (opts: FieldValidatorOptions) => PropertyDecorator;
|
|
509
515
|
declare const FIELD_TRANSFORMER_REGISTRY: Record<FIELD_TYPE, TransformFactory>;
|
|
@@ -769,4 +775,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
769
775
|
count(query: Record<string, any>): Promise<number>;
|
|
770
776
|
}
|
|
771
777
|
|
|
772
|
-
export { AllExceptionsFilter, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, DATE_FORMAT, DELETE_REASON, DELETE_REASON_CODE, DEVICE_TYPE, EXPIRE_DATES, ExceptionMessages, FIELD_TRANSFORMER_REGISTRY, FIELD_TYPE, FIELD_VALIDATOR_REGISTRY, FORGOT_PASSWORD_IDENTIFIER_TYPE, FRIENDSHIP_STATUS, FieldValidator, type FieldValidatorOptions, GENDER, GOOGLE_AUTH_LOGIN_TYPE, HttpStatus, type IAccount, type IArrayFieldOptions, type IBaseFieldOptions, type IBaseRepositoryInterface, type IBaseRepositoryOptions, type IBaseRepositoryRemoveOptions, type IBaseRepositoryUpdateOptions, type IBooleanFieldOptions, type ICountry, IDENTIFIER_TYPE, type IDateFieldOptions, type IEmitWithContextClientParams, type IEnumFieldOptions, type IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type IReturnedUser, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, REDIS_KEYS, REDUCER_PATH, RESOURCE, ROLE, SOCIAL_LINK_PLATFORM, STARTUP_PAGE, TAG_TYPES, THEME, TIME_DIFFERENCE_TYPE, TIME_FORMAT, TOKEN_TYPE, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
|
778
|
+
export { AllExceptionsFilter, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, DATE_FORMAT, DELETE_REASON, DELETE_REASON_CODE, DEVICE_TYPE, EXPIRE_DATES, ExceptionMessages, FIELD_TRANSFORMER_REGISTRY, FIELD_TYPE, FIELD_VALIDATOR_REGISTRY, FORGOT_PASSWORD_IDENTIFIER_TYPE, FRIENDSHIP_STATUS, FieldValidator, type FieldValidatorOptions, GENDER, GOOGLE_AUTH_LOGIN_TYPE, HttpStatus, type IAccount, type IArrayFieldOptions, type IBaseFieldOptions, type IBaseRepositoryInterface, type IBaseRepositoryOptions, type IBaseRepositoryRemoveOptions, type IBaseRepositoryUpdateOptions, type IBooleanFieldOptions, type ICountry, IDENTIFIER_TYPE, type IDateFieldOptions, type IEmitWithContextClientParams, type IEnumFieldOptions, type IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type IReturnedUser, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, REDIS_KEYS, REDUCER_PATH, RESOURCE, ROLE, SOCIAL_LINK_PLATFORM, STARTUP_PAGE, TAG_TYPES, THEME, TIME_DIFFERENCE_TYPE, TIME_FORMAT, TOKEN_TYPE, TWO_FACTOR_ACTION, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.mjs
CHANGED
|
@@ -9860,8 +9860,14 @@ var TOKEN_TYPE = /* @__PURE__ */ ((TOKEN_TYPE2) => {
|
|
|
9860
9860
|
TOKEN_TYPE2["CHANGE_PASSWORD"] = "CHANGE_PASSWORD";
|
|
9861
9861
|
TOKEN_TYPE2["CHANGE_PHONE_NUMBER"] = "CHANGE_PHONE_NUMBER";
|
|
9862
9862
|
TOKEN_TYPE2["DEACTIVATE_ACCOUNT"] = "DEACTIVATE_ACCOUNT";
|
|
9863
|
+
TOKEN_TYPE2["TWO_FACTOR"] = "TWO_FACTOR";
|
|
9863
9864
|
return TOKEN_TYPE2;
|
|
9864
9865
|
})(TOKEN_TYPE || {});
|
|
9866
|
+
var TWO_FACTOR_ACTION = /* @__PURE__ */ ((TWO_FACTOR_ACTION2) => {
|
|
9867
|
+
TWO_FACTOR_ACTION2["ENABLE"] = "ENABLE";
|
|
9868
|
+
TWO_FACTOR_ACTION2["DISABLE"] = "DISABLE";
|
|
9869
|
+
return TWO_FACTOR_ACTION2;
|
|
9870
|
+
})(TWO_FACTOR_ACTION || {});
|
|
9865
9871
|
var PHONE_NUMBER_ACTION = /* @__PURE__ */ ((PHONE_NUMBER_ACTION2) => {
|
|
9866
9872
|
PHONE_NUMBER_ACTION2["UPDATE"] = "UPDATE";
|
|
9867
9873
|
PHONE_NUMBER_ACTION2["REMOVE"] = "REMOVE";
|
|
@@ -10441,6 +10447,51 @@ var changeEmailMessage = (token, lang = "en" /* EN */) => {
|
|
|
10441
10447
|
</html>
|
|
10442
10448
|
`;
|
|
10443
10449
|
};
|
|
10450
|
+
var twoFactorVerifyMessage = (firstName, lastName, verifyCode, lang = "en" /* EN */) => {
|
|
10451
|
+
const team = i18n_default.t("email_messages.two_factor.team", { lng: lang });
|
|
10452
|
+
const warning = i18n_default.t("email_messages.two_factor.warning", { lng: lang });
|
|
10453
|
+
const support = i18n_default.t("email_messages.two_factor.support", { lng: lang });
|
|
10454
|
+
const subject = i18n_default.t("email_messages.two_factor.subject", { lng: lang });
|
|
10455
|
+
const greeting = i18n_default.t("email_messages.two_factor.greeting", { lng: lang });
|
|
10456
|
+
const instruction = i18n_default.t("email_messages.two_factor.instruction", {
|
|
10457
|
+
lng: lang
|
|
10458
|
+
});
|
|
10459
|
+
const signature = i18n_default.t("email_messages.two_factor.signature", {
|
|
10460
|
+
lng: lang
|
|
10461
|
+
});
|
|
10462
|
+
return `
|
|
10463
|
+
<html>
|
|
10464
|
+
<body style="font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.6; color: #334155; background-color: #f8fafc; padding: 20px;">
|
|
10465
|
+
<div style="max-width: 500px; margin: 0 auto; background: #ffffff; padding: 32px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);">
|
|
10466
|
+
<div style="text-align: center; margin-bottom: 24px;">
|
|
10467
|
+
<h2 style="color: #1e293b; margin: 0; font-size: 24px;">${subject}</h2>
|
|
10468
|
+
</div>
|
|
10469
|
+
<p style="font-size: 16px;">${greeting} <strong>${firstName} ${lastName}</strong>,</p>
|
|
10470
|
+
<p style="font-size: 15px; color: #64748b;">${instruction}</p>
|
|
10471
|
+
|
|
10472
|
+
<div style="text-align: center; margin: 32px 0;">
|
|
10473
|
+
<div style="display: inline-block; letter-spacing: 8px; font-size: 36px; font-weight: 800; color: #2563eb; background: #eff6ff; padding: 16px 32px; border-radius: 8px; border: 1px dashed #bfdbfe;">
|
|
10474
|
+
${verifyCode}
|
|
10475
|
+
</div>
|
|
10476
|
+
</div>
|
|
10477
|
+
|
|
10478
|
+
<div style="background: #fffbeb; border-left: 4px solid #f59e0b; padding: 12px; margin-bottom: 24px;">
|
|
10479
|
+
<p style="font-size: 13px; color: #92400e; margin: 0;">${warning}</p>
|
|
10480
|
+
</div>
|
|
10481
|
+
|
|
10482
|
+
<p style="font-size: 14px; color: #64748b;">${support}
|
|
10483
|
+
<a href="${supportMailLink}" style="color: #2563eb; text-decoration: none; font-weight: 500;">${supportMail}</a>.
|
|
10484
|
+
</p>
|
|
10485
|
+
|
|
10486
|
+
<hr style="border: 0; border-top: 1px solid #e2e8f0; margin: 24px 0;" />
|
|
10487
|
+
|
|
10488
|
+
<p style="font-size: 13px; color: #94a3b8; margin: 0;">${signature}</p>
|
|
10489
|
+
<p style="font-size: 14px; font-weight: bold; color: #1e293b; margin: 4px 0 0 0;">${team}</p>
|
|
10490
|
+
</div>
|
|
10491
|
+
</body>
|
|
10492
|
+
</html>
|
|
10493
|
+
`;
|
|
10494
|
+
};
|
|
10444
10495
|
|
|
10445
10496
|
// src/decorators/server/field-validator/field-transformer.registry.ts
|
|
10446
10497
|
import { Transform } from "class-transformer";
|
|
@@ -11509,6 +11560,7 @@ export {
|
|
|
11509
11560
|
TIME_DIFFERENCE_TYPE,
|
|
11510
11561
|
TIME_FORMAT,
|
|
11511
11562
|
TOKEN_TYPE,
|
|
11563
|
+
TWO_FACTOR_ACTION,
|
|
11512
11564
|
USER_STATUS,
|
|
11513
11565
|
VALIDATION_TYPE,
|
|
11514
11566
|
accountDeletedMessage,
|
|
@@ -11531,6 +11583,7 @@ export {
|
|
|
11531
11583
|
sendWithContext,
|
|
11532
11584
|
signupVerifyMessage,
|
|
11533
11585
|
stringTransform,
|
|
11586
|
+
twoFactorVerifyMessage,
|
|
11534
11587
|
upperCaseTranform,
|
|
11535
11588
|
validationMessage,
|
|
11536
11589
|
verifyYourselfMessage
|