@hed-hog/core 0.0.92 → 0.0.95
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/auth/auth.controller.d.ts +1 -1
- package/dist/auth/auth.service.d.ts +1 -1
- package/dist/auth/dto/resend-mfa-code.dto.d.ts.map +1 -1
- package/dist/auth/dto/resend-mfa-code.dto.js +2 -1
- package/dist/auth/dto/resend-mfa-code.dto.js.map +1 -1
- package/dist/dashboard/dashboard/dto/create.dto.d.ts.map +1 -1
- package/dist/dashboard/dashboard/dto/create.dto.js +2 -2
- package/dist/dashboard/dashboard/dto/create.dto.js.map +1 -1
- package/dist/dashboard/dashboard-component/dto/create.dto.d.ts.map +1 -1
- package/dist/dashboard/dashboard-component/dto/create.dto.js +10 -10
- package/dist/dashboard/dashboard-component/dto/create.dto.js.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +2 -2
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +2 -2
- package/dist/dashboard/dashboard-item/dto/create.dto.js +7 -6
- package/dist/dashboard/dashboard-item/dto/create.dto.js.map +1 -1
- package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts +3 -3
- package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts +3 -3
- package/dist/dashboard/dashboard-user/dto/create.dto.d.ts.map +1 -1
- package/dist/dashboard/dashboard-user/dto/create.dto.js +7 -7
- package/dist/dashboard/dashboard-user/dto/create.dto.js.map +1 -1
- package/dist/dto/delete.dto.d.ts.map +1 -1
- package/dist/dto/delete.dto.js +4 -3
- package/dist/dto/delete.dto.js.map +1 -1
- package/dist/dto/update-ids.dto.d.ts.map +1 -1
- package/dist/dto/update-ids.dto.js +3 -2
- package/dist/dto/update-ids.dto.js.map +1 -1
- package/dist/file/dto/delete.dto.d.ts.map +1 -1
- package/dist/file/dto/delete.dto.js +4 -3
- package/dist/file/dto/delete.dto.js.map +1 -1
- package/dist/file/dto/upload.dto.d.ts.map +1 -1
- package/dist/file/dto/upload.dto.js +2 -1
- package/dist/file/dto/upload.dto.js.map +1 -1
- package/dist/install/dto/generate-migration.dto.d.ts.map +1 -1
- package/dist/install/dto/generate-migration.dto.js +12 -11
- package/dist/install/dto/generate-migration.dto.js.map +1 -1
- package/dist/mail/dto/create.dto.d.ts.map +1 -1
- package/dist/mail/dto/create.dto.js +7 -6
- package/dist/mail/dto/create.dto.js.map +1 -1
- package/dist/mail/dto/send.dto.d.ts.map +1 -1
- package/dist/mail/dto/send.dto.js +6 -5
- package/dist/mail/dto/send.dto.js.map +1 -1
- package/dist/mail/mail.controller.d.ts +2 -2
- package/dist/mail/mail.service.d.ts +2 -2
- package/dist/mail-sent/dto/create.dto.d.ts.map +1 -1
- package/dist/mail-sent/dto/create.dto.js +9 -8
- package/dist/mail-sent/dto/create.dto.js.map +1 -1
- package/dist/mail-var/dto/create.dto.d.ts.map +1 -1
- package/dist/mail-var/dto/create.dto.js +3 -2
- package/dist/mail-var/dto/create.dto.js.map +1 -1
- package/dist/menu/dto/order.dto.d.ts.map +1 -1
- package/dist/menu/dto/order.dto.js +4 -3
- package/dist/menu/dto/order.dto.js.map +1 -1
- package/dist/menu/menu.controller.d.ts +6 -6
- package/dist/menu/menu.service.d.ts +6 -6
- package/dist/profile/dto/email-verification-confirm.dto.d.ts.map +1 -1
- package/dist/profile/dto/email-verification-confirm.dto.js +4 -3
- package/dist/profile/dto/email-verification-confirm.dto.js.map +1 -1
- package/dist/profile/dto/generate-webauthn-registration-options.dto.d.ts.map +1 -1
- package/dist/profile/dto/generate-webauthn-registration-options.dto.js +3 -2
- package/dist/profile/dto/generate-webauthn-registration-options.dto.js.map +1 -1
- package/dist/profile/dto/regenerate-recovery-codes.dto.d.ts.map +1 -1
- package/dist/profile/dto/regenerate-recovery-codes.dto.js +4 -3
- package/dist/profile/dto/regenerate-recovery-codes.dto.js.map +1 -1
- package/dist/profile/dto/remove-email-mfa.dto.d.ts.map +1 -1
- package/dist/profile/dto/remove-email-mfa.dto.js +5 -4
- package/dist/profile/dto/remove-email-mfa.dto.js.map +1 -1
- package/dist/profile/dto/remove-mfa-with-recovery-code.dto.d.ts.map +1 -1
- package/dist/profile/dto/remove-mfa-with-recovery-code.dto.js +3 -2
- package/dist/profile/dto/remove-mfa-with-recovery-code.dto.js.map +1 -1
- package/dist/profile/dto/remove-mfa.dto.d.ts.map +1 -1
- package/dist/profile/dto/remove-mfa.dto.js +4 -3
- package/dist/profile/dto/remove-mfa.dto.js.map +1 -1
- package/dist/profile/dto/remove-totp-mfa.dto.d.ts.map +1 -1
- package/dist/profile/dto/remove-totp-mfa.dto.js +3 -2
- package/dist/profile/dto/remove-totp-mfa.dto.js.map +1 -1
- package/dist/profile/dto/set-preferences.dto.d.ts.map +1 -1
- package/dist/profile/dto/set-preferences.dto.js +3 -2
- package/dist/profile/dto/set-preferences.dto.js.map +1 -1
- package/dist/profile/dto/verify-before-add-mfa.dto.d.ts.map +1 -1
- package/dist/profile/dto/verify-before-add-mfa.dto.js +4 -3
- package/dist/profile/dto/verify-before-add-mfa.dto.js.map +1 -1
- package/dist/profile/dto/verify-mfa-totp.dto.d.ts.map +1 -1
- package/dist/profile/dto/verify-mfa-totp.dto.js +10 -9
- package/dist/profile/dto/verify-mfa-totp.dto.js.map +1 -1
- package/dist/profile/dto/verify-webauthn-registration.dto.d.ts.map +1 -1
- package/dist/profile/dto/verify-webauthn-registration.dto.js +5 -4
- package/dist/profile/dto/verify-webauthn-registration.dto.js.map +1 -1
- package/dist/profile/dto/verify-webauthn.dto.d.ts.map +1 -1
- package/dist/profile/dto/verify-webauthn.dto.js +3 -2
- package/dist/profile/dto/verify-webauthn.dto.js.map +1 -1
- package/dist/role/role.controller.d.ts +3 -3
- package/dist/role/role.service.d.ts +3 -3
- package/dist/screen/screen.controller.d.ts +3 -3
- package/dist/screen/screen.service.d.ts +3 -3
- package/dist/setting/dto/confirm-import.dto.d.ts.map +1 -1
- package/dist/setting/dto/confirm-import.dto.js +3 -2
- package/dist/setting/dto/confirm-import.dto.js.map +1 -1
- package/dist/setting/dto/create.dto.d.ts.map +1 -1
- package/dist/setting/dto/create.dto.js +8 -8
- package/dist/setting/dto/create.dto.js.map +1 -1
- package/dist/setting/dto/delete.dto.d.ts.map +1 -1
- package/dist/setting/dto/delete.dto.js +4 -3
- package/dist/setting/dto/delete.dto.js.map +1 -1
- package/dist/setting/dto/export.dto.d.ts.map +1 -1
- package/dist/setting/dto/export.dto.js +2 -1
- package/dist/setting/dto/export.dto.js.map +1 -1
- package/dist/setting/dto/setting-user.dto.d.ts.map +1 -1
- package/dist/setting/dto/setting-user.dto.js +2 -1
- package/dist/setting/dto/setting-user.dto.js.map +1 -1
- package/dist/setting/dto/setting.dto.d.ts.map +1 -1
- package/dist/setting/dto/setting.dto.js +4 -3
- package/dist/setting/dto/setting.dto.js.map +1 -1
- package/dist/setting/setting.controller.d.ts +4 -4
- package/dist/setting/setting.service.d.ts +4 -4
- package/dist/user/user.controller.d.ts +11 -2
- package/dist/user/user.controller.d.ts.map +1 -1
- package/dist/user/user.service.d.ts +12 -3
- package/dist/user/user.service.d.ts.map +1 -1
- package/dist/user/user.service.js +1 -7
- package/dist/user/user.service.js.map +1 -1
- package/package.json +3 -3
- package/src/auth/dto/resend-mfa-code.dto.ts +2 -1
- package/src/dashboard/dashboard/dto/create.dto.ts +3 -3
- package/src/dashboard/dashboard-component/dto/create.dto.ts +11 -11
- package/src/dashboard/dashboard-item/dto/create.dto.ts +8 -8
- package/src/dashboard/dashboard-user/dto/create.dto.ts +8 -8
- package/src/dto/delete.dto.ts +4 -3
- package/src/dto/update-ids.dto.ts +3 -2
- package/src/file/dto/delete.dto.ts +4 -3
- package/src/file/dto/upload.dto.ts +3 -2
- package/src/install/dto/generate-migration.dto.ts +12 -11
- package/src/language/en.json +37 -1
- package/src/language/pt.json +37 -1
- package/src/mail/dto/create.dto.ts +12 -11
- package/src/mail/dto/send.dto.ts +6 -5
- package/src/mail-sent/dto/create.dto.ts +9 -8
- package/src/mail-var/dto/create.dto.ts +3 -2
- package/src/menu/dto/order.dto.ts +4 -3
- package/src/profile/dto/email-verification-confirm.dto.ts +4 -3
- package/src/profile/dto/generate-webauthn-registration-options.dto.ts +3 -2
- package/src/profile/dto/regenerate-recovery-codes.dto.ts +4 -3
- package/src/profile/dto/remove-email-mfa.dto.ts +5 -4
- package/src/profile/dto/remove-mfa-with-recovery-code.dto.ts +3 -2
- package/src/profile/dto/remove-mfa.dto.ts +4 -3
- package/src/profile/dto/remove-totp-mfa.dto.ts +3 -2
- package/src/profile/dto/set-preferences.dto.ts +3 -2
- package/src/profile/dto/verify-before-add-mfa.dto.ts +4 -3
- package/src/profile/dto/verify-mfa-totp.dto.ts +10 -9
- package/src/profile/dto/verify-webauthn-registration.dto.ts +5 -4
- package/src/profile/dto/verify-webauthn.dto.ts +3 -2
- package/src/setting/dto/confirm-import.dto.ts +3 -2
- package/src/setting/dto/create.dto.ts +9 -9
- package/src/setting/dto/delete.dto.ts +4 -3
- package/src/setting/dto/export.dto.ts +2 -1
- package/src/setting/dto/setting-user.dto.ts +2 -1
- package/src/setting/dto/setting.dto.ts +4 -3
- package/src/user/user.service.ts +1 -9
|
@@ -10,20 +10,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
16
|
class MailLocaleDTO {
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
19
20
|
__metadata("design:type", Number)
|
|
20
21
|
], MailLocaleDTO.prototype, "locale_id", void 0);
|
|
21
22
|
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
25
|
], MailLocaleDTO.prototype, "subject", void 0);
|
|
25
26
|
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], MailLocaleDTO.prototype, "body", void 0);
|
|
29
30
|
class MailVarDTO {
|
|
@@ -32,18 +33,18 @@ class CreateDTO {
|
|
|
32
33
|
}
|
|
33
34
|
exports.CreateDTO = CreateDTO;
|
|
34
35
|
__decorate([
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
36
37
|
__metadata("design:type", String)
|
|
37
38
|
], CreateDTO.prototype, "slug", void 0);
|
|
38
39
|
__decorate([
|
|
39
|
-
(0, class_validator_1.IsArray)(),
|
|
40
|
+
(0, class_validator_1.IsArray)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.arrayRequired', args.value) }),
|
|
40
41
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
41
42
|
(0, class_transformer_1.Type)(() => MailLocaleDTO),
|
|
42
43
|
(0, class_validator_1.IsOptional)(),
|
|
43
44
|
__metadata("design:type", Array)
|
|
44
45
|
], CreateDTO.prototype, "mail_locale", void 0);
|
|
45
46
|
__decorate([
|
|
46
|
-
(0, class_validator_1.IsArray)(),
|
|
47
|
+
(0, class_validator_1.IsArray)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.arrayRequired', args.value) }),
|
|
47
48
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
48
49
|
(0, class_transformer_1.Type)(() => MailVarDTO),
|
|
49
50
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/mail/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAMyB;AAEzB,MAAM,aAAa;CASlB;AAPC;IADC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/mail/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,yDAAyC;AACzC,qDAMyB;AAEzB,MAAM,aAAa;CASlB;AAPC;IADC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;gDAC1E;AAGlB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;8CACxE;AAGhB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;2CAC3E;AAGf,MAAM,UAAU;CAEf;AAED,MAAa,SAAS;CAerB;AAfD,8BAeC;AAbC;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC3E;AAMb;IAJC,IAAA,yBAAO,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACrF,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;IACzB,IAAA,4BAAU,GAAE;;8CACiB;AAM9B;IAJC,IAAA,yBAAO,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACrF,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,UAAU,CAAC;IACtB,IAAA,4BAAU,GAAE;;2CACW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.dto.d.ts","sourceRoot":"","sources":["../../../src/mail/dto/send.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"send.dto.d.ts","sourceRoot":"","sources":["../../../src/mail/dto/send.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAG/B,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC"}
|
|
@@ -10,22 +10,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SendTemplatedMailDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class SendTemplatedMailDTO {
|
|
15
16
|
}
|
|
16
17
|
exports.SendTemplatedMailDTO = SendTemplatedMailDTO;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], SendTemplatedMailDTO.prototype, "email", void 0);
|
|
22
23
|
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
27
|
], SendTemplatedMailDTO.prototype, "slug", void 0);
|
|
27
28
|
__decorate([
|
|
28
|
-
(0, class_validator_1.IsObject)(),
|
|
29
|
+
(0, class_validator_1.IsObject)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.objectRequired', args.value) }),
|
|
29
30
|
__metadata("design:type", Object)
|
|
30
31
|
], SendTemplatedMailDTO.prototype, "variables", void 0);
|
|
31
32
|
//# sourceMappingURL=send.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.dto.js","sourceRoot":"","sources":["../../../src/mail/dto/send.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,oBAAoB;CAWhC;AAXD,oDAWC;AARC;IAFC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"send.dto.js","sourceRoot":"","sources":["../../../src/mail/dto/send.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAiE;AAEjE,MAAa,oBAAoB;CAWhC;AAXD,oDAWC;AARC;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;mDAC3E;AAId;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;kDAC5E;AAGb;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uDACtD"}
|
|
@@ -51,9 +51,9 @@ export declare class MailController {
|
|
|
51
51
|
}[];
|
|
52
52
|
} & {
|
|
53
53
|
id: number;
|
|
54
|
-
slug: string;
|
|
55
54
|
created_at: Date;
|
|
56
55
|
updated_at: Date;
|
|
56
|
+
slug: string;
|
|
57
57
|
}>;
|
|
58
58
|
reloadConfig(): Promise<{
|
|
59
59
|
success: boolean;
|
|
@@ -78,9 +78,9 @@ export declare class MailController {
|
|
|
78
78
|
}[];
|
|
79
79
|
} & {
|
|
80
80
|
id: number;
|
|
81
|
-
slug: string;
|
|
82
81
|
created_at: Date;
|
|
83
82
|
updated_at: Date;
|
|
83
|
+
slug: string;
|
|
84
84
|
}>;
|
|
85
85
|
delete(data: DeleteDTO): Promise<{
|
|
86
86
|
count: number;
|
|
@@ -68,9 +68,9 @@ export declare class MailService {
|
|
|
68
68
|
}[];
|
|
69
69
|
} & {
|
|
70
70
|
id: number;
|
|
71
|
-
slug: string;
|
|
72
71
|
created_at: Date;
|
|
73
72
|
updated_at: Date;
|
|
73
|
+
slug: string;
|
|
74
74
|
}>;
|
|
75
75
|
update({ id, data }: {
|
|
76
76
|
id: number;
|
|
@@ -94,9 +94,9 @@ export declare class MailService {
|
|
|
94
94
|
}[];
|
|
95
95
|
} & {
|
|
96
96
|
id: number;
|
|
97
|
-
slug: string;
|
|
98
97
|
created_at: Date;
|
|
99
98
|
updated_at: Date;
|
|
99
|
+
slug: string;
|
|
100
100
|
}>;
|
|
101
101
|
delete({ ids }: DeleteDTO): Promise<{
|
|
102
102
|
count: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/mail-sent/dto/create.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/mail-sent/dto/create.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,SAAS;IAEpB,OAAO,EAAE,MAAM,CAAC;IAGhB,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IASb,EAAE,CAAC,EAAE,MAAM,CAAC;IASZ,EAAE,CAAC,EAAE,MAAM,CAAC;IASZ,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -10,26 +10,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = void 0;
|
|
13
|
-
const
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
15
16
|
class CreateDTO {
|
|
16
17
|
}
|
|
17
18
|
exports.CreateDTO = CreateDTO;
|
|
18
19
|
__decorate([
|
|
19
|
-
(0, class_validator_1.IsNumber)(),
|
|
20
|
+
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
20
21
|
__metadata("design:type", Number)
|
|
21
22
|
], CreateDTO.prototype, "mail_id", void 0);
|
|
22
23
|
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
24
25
|
__metadata("design:type", String)
|
|
25
26
|
], CreateDTO.prototype, "subject", void 0);
|
|
26
27
|
__decorate([
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], CreateDTO.prototype, "from", void 0);
|
|
30
31
|
__decorate([
|
|
31
32
|
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
33
34
|
(0, class_transformer_1.Transform)(({ value }) => {
|
|
34
35
|
if (value === null || value === undefined)
|
|
35
36
|
return '';
|
|
@@ -41,7 +42,7 @@ __decorate([
|
|
|
41
42
|
], CreateDTO.prototype, "to", void 0);
|
|
42
43
|
__decorate([
|
|
43
44
|
(0, class_validator_1.IsOptional)(),
|
|
44
|
-
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
45
46
|
(0, class_transformer_1.Transform)(({ value }) => {
|
|
46
47
|
if (value === null || value === undefined)
|
|
47
48
|
return '';
|
|
@@ -53,7 +54,7 @@ __decorate([
|
|
|
53
54
|
], CreateDTO.prototype, "cc", void 0);
|
|
54
55
|
__decorate([
|
|
55
56
|
(0, class_validator_1.IsOptional)(),
|
|
56
|
-
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
57
58
|
(0, class_transformer_1.Transform)(({ value }) => {
|
|
58
59
|
if (value === null || value === undefined)
|
|
59
60
|
return '';
|
|
@@ -64,7 +65,7 @@ __decorate([
|
|
|
64
65
|
__metadata("design:type", String)
|
|
65
66
|
], CreateDTO.prototype, "bcc", void 0);
|
|
66
67
|
__decorate([
|
|
67
|
-
(0, class_validator_1.IsString)(),
|
|
68
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
68
69
|
__metadata("design:type", String)
|
|
69
70
|
], CreateDTO.prototype, "body", void 0);
|
|
70
71
|
//# sourceMappingURL=create.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/mail-sent/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/mail-sent/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,yDAA8C;AAC9C,qDAAiE;AAEjE,MAAa,SAAS;CAuCrB;AAvCD,8BAuCC;AArCC;IADC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;0CAC5E;AAGhB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;0CACxE;AAGhB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC3E;AASb;IAPC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACvB,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACrD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;;qCACU;AASZ;IAPC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACvB,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACrD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;;qCACU;AASZ;IAPC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACvB,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACrD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;;sCACW;AAGb;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/mail-var/dto/create.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/mail-var/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAEpB,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -10,16 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class CreateDTO {
|
|
15
16
|
}
|
|
16
17
|
exports.CreateDTO = CreateDTO;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
19
20
|
__metadata("design:type", Number)
|
|
20
21
|
], CreateDTO.prototype, "mail_id", void 0);
|
|
21
22
|
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
25
|
], CreateDTO.prototype, "name", void 0);
|
|
25
26
|
//# sourceMappingURL=create.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/mail-var/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAErD,MAAa,SAAS;CAMrB;AAND,8BAMC;AAJC;IADC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/mail-var/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAqD;AAErD,MAAa,SAAS;CAMrB;AAND,8BAMC;AAJC;IADC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;0CAC5E;AAGhB;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.dto.d.ts","sourceRoot":"","sources":["../../../src/menu/dto/order.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"order.dto.d.ts","sourceRoot":"","sources":["../../../src/menu/dto/order.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,QAAQ;IAInB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
|
|
@@ -10,14 +10,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OrderDTO = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class OrderDTO {
|
|
15
16
|
}
|
|
16
17
|
exports.OrderDTO = OrderDTO;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsArray)({ message:
|
|
19
|
-
(0, class_validator_1.ArrayMinSize)(1, { message:
|
|
20
|
-
(0, class_validator_1.IsInt)({ each: true, message:
|
|
19
|
+
(0, class_validator_1.IsArray)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.arrayRequired', args.value) }),
|
|
20
|
+
(0, class_validator_1.ArrayMinSize)(1, { message: (args) => (0, api_locale_1.getLocaleText)('validation.arrayNotEmpty', args.value) }),
|
|
21
|
+
(0, class_validator_1.IsInt)({ each: true, message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
21
22
|
__metadata("design:type", Array)
|
|
22
23
|
], OrderDTO.prototype, "ids", void 0);
|
|
23
24
|
//# sourceMappingURL=order.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.dto.js","sourceRoot":"","sources":["../../../src/menu/dto/order.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,QAAQ;CAKpB;AALD,4BAKC;AADC;IAHC,IAAA,yBAAO,EAAC,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"order.dto.js","sourceRoot":"","sources":["../../../src/menu/dto/order.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAA+D;AAE/D,MAAa,QAAQ;CAKpB;AALD,4BAKC;AADC;IAHC,IAAA,yBAAO,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACrF,IAAA,8BAAY,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IAC7F,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;qCACnF"}
|
|
@@ -46,32 +46,32 @@ export declare class MenuController {
|
|
|
46
46
|
show(menuId: number): Promise<{
|
|
47
47
|
id: number;
|
|
48
48
|
order: number;
|
|
49
|
-
slug: string;
|
|
50
49
|
created_at: Date;
|
|
51
50
|
updated_at: Date;
|
|
51
|
+
slug: string;
|
|
52
|
+
icon: string;
|
|
52
53
|
menu_id: number | null;
|
|
53
54
|
url: string | null;
|
|
54
|
-
icon: string;
|
|
55
55
|
}>;
|
|
56
56
|
create(data: CreateDTO): Promise<{
|
|
57
57
|
id: number;
|
|
58
58
|
order: number;
|
|
59
|
-
slug: string;
|
|
60
59
|
created_at: Date;
|
|
61
60
|
updated_at: Date;
|
|
61
|
+
slug: string;
|
|
62
|
+
icon: string;
|
|
62
63
|
menu_id: number | null;
|
|
63
64
|
url: string | null;
|
|
64
|
-
icon: string;
|
|
65
65
|
}>;
|
|
66
66
|
update(menuId: number, data: UpdateDTO): Promise<{
|
|
67
67
|
id: number;
|
|
68
68
|
order: number;
|
|
69
|
-
slug: string;
|
|
70
69
|
created_at: Date;
|
|
71
70
|
updated_at: Date;
|
|
71
|
+
slug: string;
|
|
72
|
+
icon: string;
|
|
72
73
|
menu_id: number | null;
|
|
73
74
|
url: string | null;
|
|
74
|
-
icon: string;
|
|
75
75
|
}>;
|
|
76
76
|
delete(data: DeleteDTO): Promise<{
|
|
77
77
|
count: number;
|
|
@@ -47,22 +47,22 @@ export declare class MenuService {
|
|
|
47
47
|
get(menuId: number): Promise<{
|
|
48
48
|
id: number;
|
|
49
49
|
order: number;
|
|
50
|
-
slug: string;
|
|
51
50
|
created_at: Date;
|
|
52
51
|
updated_at: Date;
|
|
52
|
+
slug: string;
|
|
53
|
+
icon: string;
|
|
53
54
|
menu_id: number | null;
|
|
54
55
|
url: string | null;
|
|
55
|
-
icon: string;
|
|
56
56
|
}>;
|
|
57
57
|
create({ slug, url, icon, order, menuId }: CreateDTO): Promise<{
|
|
58
58
|
id: number;
|
|
59
59
|
order: number;
|
|
60
|
-
slug: string;
|
|
61
60
|
created_at: Date;
|
|
62
61
|
updated_at: Date;
|
|
62
|
+
slug: string;
|
|
63
|
+
icon: string;
|
|
63
64
|
menu_id: number | null;
|
|
64
65
|
url: string | null;
|
|
65
|
-
icon: string;
|
|
66
66
|
}>;
|
|
67
67
|
update({ id, data }: {
|
|
68
68
|
id: number;
|
|
@@ -70,12 +70,12 @@ export declare class MenuService {
|
|
|
70
70
|
}): Promise<{
|
|
71
71
|
id: number;
|
|
72
72
|
order: number;
|
|
73
|
-
slug: string;
|
|
74
73
|
created_at: Date;
|
|
75
74
|
updated_at: Date;
|
|
75
|
+
slug: string;
|
|
76
|
+
icon: string;
|
|
76
77
|
menu_id: number | null;
|
|
77
78
|
url: string | null;
|
|
78
|
-
icon: string;
|
|
79
79
|
}>;
|
|
80
80
|
delete({ ids }: DeleteDTO, locale?: string): Promise<{
|
|
81
81
|
count: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-verification-confirm.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/email-verification-confirm.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-verification-confirm.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/email-verification-confirm.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,oBAAoB;IAE/B,GAAG,EAAE,MAAM,CAAC;IAIZ,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -10,17 +10,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.EmailVerificationDto = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class EmailVerificationDto {
|
|
15
16
|
}
|
|
16
17
|
exports.EmailVerificationDto = EmailVerificationDto;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
19
20
|
__metadata("design:type", String)
|
|
20
21
|
], EmailVerificationDto.prototype, "pin", void 0);
|
|
21
22
|
__decorate([
|
|
22
|
-
(0, class_validator_1.IsNumber)(),
|
|
23
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
(0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
24
25
|
__metadata("design:type", Number)
|
|
25
26
|
], EmailVerificationDto.prototype, "challengeId", void 0);
|
|
26
27
|
//# sourceMappingURL=email-verification-confirm.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-verification-confirm.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/email-verification-confirm.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAAiE;AAEjE,MAAa,oBAAoB;CAOhC;AAPD,oDAOC;AALC;IADC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"email-verification-confirm.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/email-verification-confirm.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oDAAoD;AACpD,qDAAiE;AAEjE,MAAa,oBAAoB;CAOhC;AAPD,oDAOC;AALC;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;iDAC5E;AAIZ;IAFC,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IAC3F,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;yDACrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-webauthn-registration-options.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/generate-webauthn-registration-options.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-webauthn-registration-options.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/generate-webauthn-registration-options.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,sCAAsC;IAGjD,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -10,13 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GenerateWebAuthnRegistrationOptionsDto = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class GenerateWebAuthnRegistrationOptionsDto {
|
|
15
16
|
}
|
|
16
17
|
exports.GenerateWebAuthnRegistrationOptionsDto = GenerateWebAuthnRegistrationOptionsDto;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], GenerateWebAuthnRegistrationOptionsDto.prototype, "name", void 0);
|
|
22
23
|
//# sourceMappingURL=generate-webauthn-registration-options.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-webauthn-registration-options.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/generate-webauthn-registration-options.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,sCAAsC;CAIlD;AAJD,wFAIC;AADC;IAFC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"generate-webauthn-registration-options.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/generate-webauthn-registration-options.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAuD;AAEvD,MAAa,sCAAsC;CAIlD;AAJD,wFAIC;AADC;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;oEAC5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regenerate-recovery-codes.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/regenerate-recovery-codes.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"regenerate-recovery-codes.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/regenerate-recovery-codes.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,0BAA0B;IAGrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;IAG9D,iBAAiB,CAAC,EAAE,GAAG,CAAC;CACzB"}
|
|
@@ -10,23 +10,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RegenerateRecoveryCodesDto = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class RegenerateRecoveryCodesDto {
|
|
15
16
|
}
|
|
16
17
|
exports.RegenerateRecoveryCodesDto = RegenerateRecoveryCodesDto;
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], RegenerateRecoveryCodesDto.prototype, "verificationCode", void 0);
|
|
22
23
|
__decorate([
|
|
23
24
|
(0, class_validator_1.IsOptional)(),
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
27
|
], RegenerateRecoveryCodesDto.prototype, "hash", void 0);
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsIn)(['totp', 'email', 'recovery', 'webauthn']),
|
|
30
|
+
(0, class_validator_1.IsIn)(['totp', 'email', 'recovery', 'webauthn'], { message: (args) => (0, api_locale_1.getLocaleText)('validation.methodTypeInvalid', args.value) }),
|
|
30
31
|
__metadata("design:type", String)
|
|
31
32
|
], RegenerateRecoveryCodesDto.prototype, "verificationType", void 0);
|
|
32
33
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regenerate-recovery-codes.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/regenerate-recovery-codes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6D;AAE7D,MAAa,0BAA0B;CAetC;AAfD,gEAeC;AAZC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"regenerate-recovery-codes.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/regenerate-recovery-codes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAA6D;AAE7D,MAAa,0BAA0B;CAetC;AAfD,gEAeC;AAZC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;oEAC9D;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;wDAC1E;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,8BAA8B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;oEACpE;AAG9D;IADC,IAAA,4BAAU,GAAE;;qEACW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-email-mfa.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/remove-email-mfa.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-email-mfa.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/remove-email-mfa.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,iBAAiB;IAG1B,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -10,18 +10,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RemoveEmailMfaDto = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class RemoveEmailMfaDto {
|
|
15
16
|
}
|
|
16
17
|
exports.RemoveEmailMfaDto = RemoveEmailMfaDto;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], RemoveEmailMfaDto.prototype, "token", void 0);
|
|
22
23
|
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
27
|
], RemoveEmailMfaDto.prototype, "hash", void 0);
|
|
27
28
|
//# sourceMappingURL=remove-email-mfa.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-email-mfa.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/remove-email-mfa.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AALG;IAFC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"remove-email-mfa.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/remove-email-mfa.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAuD;AAEvD,MAAa,iBAAiB;CAQ7B;AARD,8CAQC;AALG;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;gDAC3E;AAId;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;+CAC5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-mfa-with-recovery-code.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/remove-mfa-with-recovery-code.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-mfa-with-recovery-code.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/remove-mfa-with-recovery-code.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,4BAA4B;IAGvC,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -10,13 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RemoveMfaWithRecoveryCodeDto = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class RemoveMfaWithRecoveryCodeDto {
|
|
15
16
|
}
|
|
16
17
|
exports.RemoveMfaWithRecoveryCodeDto = RemoveMfaWithRecoveryCodeDto;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], RemoveMfaWithRecoveryCodeDto.prototype, "recoveryCode", void 0);
|
|
22
23
|
//# sourceMappingURL=remove-mfa-with-recovery-code.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-mfa-with-recovery-code.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/remove-mfa-with-recovery-code.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AADC;IAFC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"remove-mfa-with-recovery-code.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/remove-mfa-with-recovery-code.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAuD;AAEvD,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AADC;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;kEACpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-mfa.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/remove-mfa.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-mfa.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/remove-mfa.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IAGvB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;IAG9D,iBAAiB,CAAC,EAAE,GAAG,CAAC;CACzB"}
|
|
@@ -10,23 +10,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RemoveMfaDto = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class RemoveMfaDto {
|
|
15
16
|
}
|
|
16
17
|
exports.RemoveMfaDto = RemoveMfaDto;
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, class_validator_1.IsOptional)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], RemoveMfaDto.prototype, "token", void 0);
|
|
22
23
|
__decorate([
|
|
23
24
|
(0, class_validator_1.IsOptional)(),
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
27
|
], RemoveMfaDto.prototype, "hash", void 0);
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsIn)(['totp', 'email', 'recovery', 'webauthn']),
|
|
30
|
+
(0, class_validator_1.IsIn)(['totp', 'email', 'recovery', 'webauthn'], { message: (args) => (0, api_locale_1.getLocaleText)('validation.methodTypeInvalid', args.value) }),
|
|
30
31
|
__metadata("design:type", String)
|
|
31
32
|
], RemoveMfaDto.prototype, "verificationType", void 0);
|
|
32
33
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-mfa.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/remove-mfa.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6D;AAE7D,MAAa,YAAY;CAexB;AAfD,oCAeC;AAZC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"remove-mfa.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/remove-mfa.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAA6D;AAE7D,MAAa,YAAY;CAexB;AAfD,oCAeC;AAZC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;2CACzE;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;0CAC1E;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,8BAA8B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;sDACpE;AAG9D;IADC,IAAA,4BAAU,GAAE;;uDACW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-totp-mfa.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/remove-totp-mfa.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-totp-mfa.dto.d.ts","sourceRoot":"","sources":["../../../src/profile/dto/remove-totp-mfa.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAGzB,KAAK,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -10,13 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RemoveTotpMfaDto = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
class RemoveTotpMfaDto {
|
|
15
16
|
}
|
|
16
17
|
exports.RemoveTotpMfaDto = RemoveTotpMfaDto;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
|
|
20
21
|
__metadata("design:type", String)
|
|
21
22
|
], RemoveTotpMfaDto.prototype, "token", void 0);
|
|
22
23
|
//# sourceMappingURL=remove-totp-mfa.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-totp-mfa.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/remove-totp-mfa.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AADG;IAFC,IAAA,0BAAQ,
|
|
1
|
+
{"version":3,"file":"remove-totp-mfa.dto.js","sourceRoot":"","sources":["../../../src/profile/dto/remove-totp-mfa.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAuD;AAEvD,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AADG;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACvF,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;+CAC3E"}
|