@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.
Files changed (157) hide show
  1. package/dist/auth/auth.controller.d.ts +1 -1
  2. package/dist/auth/auth.service.d.ts +1 -1
  3. package/dist/auth/dto/resend-mfa-code.dto.d.ts.map +1 -1
  4. package/dist/auth/dto/resend-mfa-code.dto.js +2 -1
  5. package/dist/auth/dto/resend-mfa-code.dto.js.map +1 -1
  6. package/dist/dashboard/dashboard/dto/create.dto.d.ts.map +1 -1
  7. package/dist/dashboard/dashboard/dto/create.dto.js +2 -2
  8. package/dist/dashboard/dashboard/dto/create.dto.js.map +1 -1
  9. package/dist/dashboard/dashboard-component/dto/create.dto.d.ts.map +1 -1
  10. package/dist/dashboard/dashboard-component/dto/create.dto.js +10 -10
  11. package/dist/dashboard/dashboard-component/dto/create.dto.js.map +1 -1
  12. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +2 -2
  13. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +2 -2
  14. package/dist/dashboard/dashboard-item/dto/create.dto.js +7 -6
  15. package/dist/dashboard/dashboard-item/dto/create.dto.js.map +1 -1
  16. package/dist/dashboard/dashboard-user/dashboard-user.controller.d.ts +3 -3
  17. package/dist/dashboard/dashboard-user/dashboard-user.service.d.ts +3 -3
  18. package/dist/dashboard/dashboard-user/dto/create.dto.d.ts.map +1 -1
  19. package/dist/dashboard/dashboard-user/dto/create.dto.js +7 -7
  20. package/dist/dashboard/dashboard-user/dto/create.dto.js.map +1 -1
  21. package/dist/dto/delete.dto.d.ts.map +1 -1
  22. package/dist/dto/delete.dto.js +4 -3
  23. package/dist/dto/delete.dto.js.map +1 -1
  24. package/dist/dto/update-ids.dto.d.ts.map +1 -1
  25. package/dist/dto/update-ids.dto.js +3 -2
  26. package/dist/dto/update-ids.dto.js.map +1 -1
  27. package/dist/file/dto/delete.dto.d.ts.map +1 -1
  28. package/dist/file/dto/delete.dto.js +4 -3
  29. package/dist/file/dto/delete.dto.js.map +1 -1
  30. package/dist/file/dto/upload.dto.d.ts.map +1 -1
  31. package/dist/file/dto/upload.dto.js +2 -1
  32. package/dist/file/dto/upload.dto.js.map +1 -1
  33. package/dist/install/dto/generate-migration.dto.d.ts.map +1 -1
  34. package/dist/install/dto/generate-migration.dto.js +12 -11
  35. package/dist/install/dto/generate-migration.dto.js.map +1 -1
  36. package/dist/mail/dto/create.dto.d.ts.map +1 -1
  37. package/dist/mail/dto/create.dto.js +7 -6
  38. package/dist/mail/dto/create.dto.js.map +1 -1
  39. package/dist/mail/dto/send.dto.d.ts.map +1 -1
  40. package/dist/mail/dto/send.dto.js +6 -5
  41. package/dist/mail/dto/send.dto.js.map +1 -1
  42. package/dist/mail/mail.controller.d.ts +2 -2
  43. package/dist/mail/mail.service.d.ts +2 -2
  44. package/dist/mail-sent/dto/create.dto.d.ts.map +1 -1
  45. package/dist/mail-sent/dto/create.dto.js +9 -8
  46. package/dist/mail-sent/dto/create.dto.js.map +1 -1
  47. package/dist/mail-var/dto/create.dto.d.ts.map +1 -1
  48. package/dist/mail-var/dto/create.dto.js +3 -2
  49. package/dist/mail-var/dto/create.dto.js.map +1 -1
  50. package/dist/menu/dto/order.dto.d.ts.map +1 -1
  51. package/dist/menu/dto/order.dto.js +4 -3
  52. package/dist/menu/dto/order.dto.js.map +1 -1
  53. package/dist/menu/menu.controller.d.ts +6 -6
  54. package/dist/menu/menu.service.d.ts +6 -6
  55. package/dist/profile/dto/email-verification-confirm.dto.d.ts.map +1 -1
  56. package/dist/profile/dto/email-verification-confirm.dto.js +4 -3
  57. package/dist/profile/dto/email-verification-confirm.dto.js.map +1 -1
  58. package/dist/profile/dto/generate-webauthn-registration-options.dto.d.ts.map +1 -1
  59. package/dist/profile/dto/generate-webauthn-registration-options.dto.js +3 -2
  60. package/dist/profile/dto/generate-webauthn-registration-options.dto.js.map +1 -1
  61. package/dist/profile/dto/regenerate-recovery-codes.dto.d.ts.map +1 -1
  62. package/dist/profile/dto/regenerate-recovery-codes.dto.js +4 -3
  63. package/dist/profile/dto/regenerate-recovery-codes.dto.js.map +1 -1
  64. package/dist/profile/dto/remove-email-mfa.dto.d.ts.map +1 -1
  65. package/dist/profile/dto/remove-email-mfa.dto.js +5 -4
  66. package/dist/profile/dto/remove-email-mfa.dto.js.map +1 -1
  67. package/dist/profile/dto/remove-mfa-with-recovery-code.dto.d.ts.map +1 -1
  68. package/dist/profile/dto/remove-mfa-with-recovery-code.dto.js +3 -2
  69. package/dist/profile/dto/remove-mfa-with-recovery-code.dto.js.map +1 -1
  70. package/dist/profile/dto/remove-mfa.dto.d.ts.map +1 -1
  71. package/dist/profile/dto/remove-mfa.dto.js +4 -3
  72. package/dist/profile/dto/remove-mfa.dto.js.map +1 -1
  73. package/dist/profile/dto/remove-totp-mfa.dto.d.ts.map +1 -1
  74. package/dist/profile/dto/remove-totp-mfa.dto.js +3 -2
  75. package/dist/profile/dto/remove-totp-mfa.dto.js.map +1 -1
  76. package/dist/profile/dto/set-preferences.dto.d.ts.map +1 -1
  77. package/dist/profile/dto/set-preferences.dto.js +3 -2
  78. package/dist/profile/dto/set-preferences.dto.js.map +1 -1
  79. package/dist/profile/dto/verify-before-add-mfa.dto.d.ts.map +1 -1
  80. package/dist/profile/dto/verify-before-add-mfa.dto.js +4 -3
  81. package/dist/profile/dto/verify-before-add-mfa.dto.js.map +1 -1
  82. package/dist/profile/dto/verify-mfa-totp.dto.d.ts.map +1 -1
  83. package/dist/profile/dto/verify-mfa-totp.dto.js +10 -9
  84. package/dist/profile/dto/verify-mfa-totp.dto.js.map +1 -1
  85. package/dist/profile/dto/verify-webauthn-registration.dto.d.ts.map +1 -1
  86. package/dist/profile/dto/verify-webauthn-registration.dto.js +5 -4
  87. package/dist/profile/dto/verify-webauthn-registration.dto.js.map +1 -1
  88. package/dist/profile/dto/verify-webauthn.dto.d.ts.map +1 -1
  89. package/dist/profile/dto/verify-webauthn.dto.js +3 -2
  90. package/dist/profile/dto/verify-webauthn.dto.js.map +1 -1
  91. package/dist/role/role.controller.d.ts +3 -3
  92. package/dist/role/role.service.d.ts +3 -3
  93. package/dist/screen/screen.controller.d.ts +3 -3
  94. package/dist/screen/screen.service.d.ts +3 -3
  95. package/dist/setting/dto/confirm-import.dto.d.ts.map +1 -1
  96. package/dist/setting/dto/confirm-import.dto.js +3 -2
  97. package/dist/setting/dto/confirm-import.dto.js.map +1 -1
  98. package/dist/setting/dto/create.dto.d.ts.map +1 -1
  99. package/dist/setting/dto/create.dto.js +8 -8
  100. package/dist/setting/dto/create.dto.js.map +1 -1
  101. package/dist/setting/dto/delete.dto.d.ts.map +1 -1
  102. package/dist/setting/dto/delete.dto.js +4 -3
  103. package/dist/setting/dto/delete.dto.js.map +1 -1
  104. package/dist/setting/dto/export.dto.d.ts.map +1 -1
  105. package/dist/setting/dto/export.dto.js +2 -1
  106. package/dist/setting/dto/export.dto.js.map +1 -1
  107. package/dist/setting/dto/setting-user.dto.d.ts.map +1 -1
  108. package/dist/setting/dto/setting-user.dto.js +2 -1
  109. package/dist/setting/dto/setting-user.dto.js.map +1 -1
  110. package/dist/setting/dto/setting.dto.d.ts.map +1 -1
  111. package/dist/setting/dto/setting.dto.js +4 -3
  112. package/dist/setting/dto/setting.dto.js.map +1 -1
  113. package/dist/setting/setting.controller.d.ts +4 -4
  114. package/dist/setting/setting.service.d.ts +4 -4
  115. package/dist/user/user.controller.d.ts +11 -2
  116. package/dist/user/user.controller.d.ts.map +1 -1
  117. package/dist/user/user.service.d.ts +12 -3
  118. package/dist/user/user.service.d.ts.map +1 -1
  119. package/dist/user/user.service.js +1 -7
  120. package/dist/user/user.service.js.map +1 -1
  121. package/package.json +3 -3
  122. package/src/auth/dto/resend-mfa-code.dto.ts +2 -1
  123. package/src/dashboard/dashboard/dto/create.dto.ts +3 -3
  124. package/src/dashboard/dashboard-component/dto/create.dto.ts +11 -11
  125. package/src/dashboard/dashboard-item/dto/create.dto.ts +8 -8
  126. package/src/dashboard/dashboard-user/dto/create.dto.ts +8 -8
  127. package/src/dto/delete.dto.ts +4 -3
  128. package/src/dto/update-ids.dto.ts +3 -2
  129. package/src/file/dto/delete.dto.ts +4 -3
  130. package/src/file/dto/upload.dto.ts +3 -2
  131. package/src/install/dto/generate-migration.dto.ts +12 -11
  132. package/src/language/en.json +37 -1
  133. package/src/language/pt.json +37 -1
  134. package/src/mail/dto/create.dto.ts +12 -11
  135. package/src/mail/dto/send.dto.ts +6 -5
  136. package/src/mail-sent/dto/create.dto.ts +9 -8
  137. package/src/mail-var/dto/create.dto.ts +3 -2
  138. package/src/menu/dto/order.dto.ts +4 -3
  139. package/src/profile/dto/email-verification-confirm.dto.ts +4 -3
  140. package/src/profile/dto/generate-webauthn-registration-options.dto.ts +3 -2
  141. package/src/profile/dto/regenerate-recovery-codes.dto.ts +4 -3
  142. package/src/profile/dto/remove-email-mfa.dto.ts +5 -4
  143. package/src/profile/dto/remove-mfa-with-recovery-code.dto.ts +3 -2
  144. package/src/profile/dto/remove-mfa.dto.ts +4 -3
  145. package/src/profile/dto/remove-totp-mfa.dto.ts +3 -2
  146. package/src/profile/dto/set-preferences.dto.ts +3 -2
  147. package/src/profile/dto/verify-before-add-mfa.dto.ts +4 -3
  148. package/src/profile/dto/verify-mfa-totp.dto.ts +10 -9
  149. package/src/profile/dto/verify-webauthn-registration.dto.ts +5 -4
  150. package/src/profile/dto/verify-webauthn.dto.ts +3 -2
  151. package/src/setting/dto/confirm-import.dto.ts +3 -2
  152. package/src/setting/dto/create.dto.ts +9 -9
  153. package/src/setting/dto/delete.dto.ts +4 -3
  154. package/src/setting/dto/export.dto.ts +2 -1
  155. package/src/setting/dto/setting-user.dto.ts +2 -1
  156. package/src/setting/dto/setting.dto.ts +4 -3
  157. 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,GAAE;;gDACO;AAGlB;IADC,IAAA,0BAAQ,GAAE;;8CACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;2CACE;AAGf,MAAM,UAAU;CAEf;AAED,MAAa,SAAS;CAerB;AAfD,8BAeC;AAbC;IADC,IAAA,0BAAQ,GAAE;;uCACE;AAMb;IAJC,IAAA,yBAAO,GAAE;IACT,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,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,UAAU,CAAC;IACtB,IAAA,4BAAU,GAAE;;2CACW"}
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":"AAEA,qBAAa,oBAAoB;IAG/B,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC"}
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,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACA;AAGb;IADC,IAAA,0BAAQ,GAAE;;uDACuB"}
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":"AAGA,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"}
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 class_validator_1 = require("class-validator");
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,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,SAAS;CAuCrB;AAvCD,8BAuCC;AArCC;IADC,IAAA,0BAAQ,GAAE;;0CACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;0CACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;uCACE;AASb;IAPC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,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,GAAE;IACV,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,GAAE;IACV,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,GAAE;;uCACE"}
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":"AAEA,qBAAa,SAAS;IAEpB,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;CACd"}
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,GAAE;;0CACK;AAGhB;IADC,IAAA,0BAAQ,GAAE;;uCACE"}
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":"AAEA,qBAAa,QAAQ;IAInB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
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: 'Por favor, forneça uma lista de itens.' }),
19
- (0, class_validator_1.ArrayMinSize)(1, { message: 'A lista de itens não pode estar vazia.' }),
20
- (0, class_validator_1.IsInt)({ each: true, message: 'Todos os itens devem ser números inteiros.' }),
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,wCAAwC,EAAE,CAAC;IAC9D,IAAA,8BAAY,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IACtE,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;;qCAC/D"}
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":"AAGA,qBAAa,oBAAoB;IAE/B,GAAG,EAAE,MAAM,CAAC;IAIZ,WAAW,EAAE,MAAM,CAAC;CACrB"}
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,GAAE;;iDACC;AAIZ;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACO"}
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":"AAEA,qBAAa,sCAAsC;IAGjD,IAAI,EAAE,MAAM,CAAC;CACd"}
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,GAAE;IACV,IAAA,4BAAU,GAAE;;oEACA"}
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":"AAEA,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"}
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,GAAE;;oEACe;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;;oEACc;AAG9D;IADC,IAAA,4BAAU,GAAE;;qEACW"}
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":"AAEA,qBAAa,iBAAiB;IAG1B,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,EAAE,MAAM,CAAC;CAChB"}
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,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACA"}
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":"AAEA,qBAAa,4BAA4B;IAGvC,YAAY,EAAE,MAAM,CAAC;CACtB"}
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,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACQ"}
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":"AAEA,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"}
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,GAAE;;2CACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;;sDACc;AAG9D;IADC,IAAA,4BAAU,GAAE;;uDACW"}
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":"AAEA,qBAAa,gBAAgB;IAGzB,KAAK,EAAE,MAAM,CAAC;CACjB"}
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,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACC"}
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"}