@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
@@ -21,9 +21,9 @@ export declare class AuthController {
21
21
  provider: import("@prisma/client").$Enums.user_account_provider_enum;
22
22
  created_at: Date;
23
23
  updated_at: Date;
24
+ email: string | null;
24
25
  user_id: number;
25
26
  provider_user_id: string;
26
- email: string | null;
27
27
  scopes: string | null;
28
28
  refresh_token: import("@prisma/client/runtime/library").Bytes | null;
29
29
  token_expires_at: Date | null;
@@ -67,9 +67,9 @@ export declare class AuthService {
67
67
  provider: import("@prisma/client").$Enums.user_account_provider_enum;
68
68
  created_at: Date;
69
69
  updated_at: Date;
70
+ email: string | null;
70
71
  user_id: number;
71
72
  provider_user_id: string;
72
- email: string | null;
73
73
  scopes: string | null;
74
74
  refresh_token: import("@prisma/client/runtime/library").Bytes | null;
75
75
  token_expires_at: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"resend-mfa-code.dto.d.ts","sourceRoot":"","sources":["../../../src/auth/dto/resend-mfa-code.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,gBAAgB;IAE3B,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"resend-mfa-code.dto.d.ts","sourceRoot":"","sources":["../../../src/auth/dto/resend-mfa-code.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAE3B,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -10,12 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ResendMfaCodeDTO = void 0;
13
+ const api_locale_1 = require("@hed-hog/api-locale");
13
14
  const class_validator_1 = require("class-validator");
14
15
  class ResendMfaCodeDTO {
15
16
  }
16
17
  exports.ResendMfaCodeDTO = ResendMfaCodeDTO;
17
18
  __decorate([
18
- (0, class_validator_1.IsJWT)({ message: 'Token inválido' }),
19
+ (0, class_validator_1.IsJWT)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.tokenMustBeJWT', args.value) }),
19
20
  __metadata("design:type", String)
20
21
  ], ResendMfaCodeDTO.prototype, "token", void 0);
21
22
  //# sourceMappingURL=resend-mfa-code.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resend-mfa-code.dto.js","sourceRoot":"","sources":["../../../src/auth/dto/resend-mfa-code.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwC;AAExC,MAAa,gBAAgB;CAG5B;AAHD,4CAGC;AADC;IADC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;;+CACvB"}
1
+ {"version":3,"file":"resend-mfa-code.dto.js","sourceRoot":"","sources":["../../../src/auth/dto/resend-mfa-code.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAwC;AAExC,MAAa,gBAAgB;CAG5B;AAHD,4CAGC;AADC;IADC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;+CACvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard/dto/create.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,qBAAa,SAAU,SAAQ,aAAa;IAG1C,IAAI,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard/dto/create.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGnE,qBAAa,SAAU,SAAQ,aAAa;IAG1C,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -16,8 +16,8 @@ class CreateDTO extends api_locale_1.WithLocaleDTO {
16
16
  }
17
17
  exports.CreateDTO = CreateDTO;
18
18
  __decorate([
19
- (0, class_validator_1.IsString)(),
20
- (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) }),
21
21
  __metadata("design:type", String)
22
22
  ], CreateDTO.prototype, "slug", void 0);
23
23
  //# sourceMappingURL=create.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAuD;AAEvD,MAAa,SAAU,SAAQ,0BAAa;CAI3C;AAJD,8BAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uCACA"}
1
+ {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmE;AACnE,qDAAuD;AAEvD,MAAa,SAAU,SAAQ,0BAAa;CAI3C;AAJD,8BAIC;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;;uCAC5E"}
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,qBAAa,SAAU,SAAQ,aAAa;IAE1C,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
1
+ {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGnE,qBAAa,SAAU,SAAQ,aAAa;IAE1C,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAIf,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
@@ -10,50 +10,50 @@ 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");
14
13
  const api_locale_1 = require("@hed-hog/api-locale");
14
+ const class_validator_1 = require("class-validator");
15
15
  class CreateDTO extends api_locale_1.WithLocaleDTO {
16
16
  }
17
17
  exports.CreateDTO = CreateDTO;
18
18
  __decorate([
19
- (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
20
20
  __metadata("design:type", String)
21
21
  ], CreateDTO.prototype, "slug", void 0);
22
22
  __decorate([
23
- (0, class_validator_1.IsString)(),
23
+ (0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
24
24
  __metadata("design:type", String)
25
25
  ], CreateDTO.prototype, "path", void 0);
26
26
  __decorate([
27
27
  (0, class_validator_1.IsOptional)(),
28
- (0, class_validator_1.IsNumber)(),
28
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
29
29
  __metadata("design:type", Number)
30
30
  ], CreateDTO.prototype, "min_width", void 0);
31
31
  __decorate([
32
32
  (0, class_validator_1.IsOptional)(),
33
- (0, class_validator_1.IsNumber)(),
33
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
34
34
  __metadata("design:type", Number)
35
35
  ], CreateDTO.prototype, "max_width", void 0);
36
36
  __decorate([
37
37
  (0, class_validator_1.IsOptional)(),
38
- (0, class_validator_1.IsNumber)(),
38
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
39
39
  __metadata("design:type", Number)
40
40
  ], CreateDTO.prototype, "min_height", void 0);
41
41
  __decorate([
42
42
  (0, class_validator_1.IsOptional)(),
43
- (0, class_validator_1.IsNumber)(),
43
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
44
44
  __metadata("design:type", Number)
45
45
  ], CreateDTO.prototype, "max_height", void 0);
46
46
  __decorate([
47
- (0, class_validator_1.IsNumber)(),
47
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
48
48
  __metadata("design:type", Number)
49
49
  ], CreateDTO.prototype, "width", void 0);
50
50
  __decorate([
51
- (0, class_validator_1.IsNumber)(),
51
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
52
52
  __metadata("design:type", Number)
53
53
  ], CreateDTO.prototype, "height", void 0);
54
54
  __decorate([
55
55
  (0, class_validator_1.IsOptional)(),
56
- (0, class_validator_1.IsBoolean)(),
56
+ (0, class_validator_1.IsBoolean)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.booleanRequired', args.value) }),
57
57
  __metadata("design:type", Boolean)
58
58
  ], CreateDTO.prototype, "is_resizable", void 0);
59
59
  //# sourceMappingURL=create.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAC5E,oDAAoD;AAEpD,MAAa,SAAU,SAAQ,0BAAa;CAgC3C;AAhCD,8BAgCC;AA9BC;IADC,IAAA,0BAAQ,GAAE;;uCACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;uCACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;wCACG;AAGd;IADC,IAAA,0BAAQ,GAAE;;yCACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;+CACW"}
1
+ {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-component/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmE;AACnE,qDAA4E;AAE5E,MAAa,SAAU,SAAQ,0BAAa;CAgC3C;AAhCD,8BAgCC;AA9BC;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;uCAC3E;AAGb;IADC,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AAI,CAAC,KAAK,CAAC,EAAE,CAAC;;yCAC7E;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,4BAA4B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;+CACnE"}
@@ -16,9 +16,9 @@ export declare class DashboardCoreController {
16
16
  path: string;
17
17
  width: number;
18
18
  id: number;
19
- slug: string;
20
19
  created_at: Date;
21
20
  updated_at: Date;
21
+ slug: string;
22
22
  min_width: number;
23
23
  max_width: number | null;
24
24
  min_height: number;
@@ -31,11 +31,11 @@ export declare class DashboardCoreController {
31
31
  id: number;
32
32
  created_at: Date;
33
33
  updated_at: Date;
34
+ user_id: number;
34
35
  height: number;
35
36
  x_axis: number;
36
37
  y_axis: number;
37
38
  item_id: number;
38
- user_id: number;
39
39
  }[];
40
40
  } & {
41
41
  width: number;
@@ -16,9 +16,9 @@ export declare class DashboardCoreService {
16
16
  path: string;
17
17
  width: number;
18
18
  id: number;
19
- slug: string;
20
19
  created_at: Date;
21
20
  updated_at: Date;
21
+ slug: string;
22
22
  min_width: number;
23
23
  max_width: number | null;
24
24
  min_height: number;
@@ -31,11 +31,11 @@ export declare class DashboardCoreService {
31
31
  id: number;
32
32
  created_at: Date;
33
33
  updated_at: Date;
34
+ user_id: number;
34
35
  height: number;
35
36
  x_axis: number;
36
37
  y_axis: number;
37
38
  item_id: number;
38
- user_id: number;
39
39
  }[];
40
40
  } & {
41
41
  width: number;
@@ -10,32 +10,33 @@ 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, "component_id", void 0);
21
22
  __decorate([
22
- (0, class_validator_1.IsNumber)(),
23
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
23
24
  __metadata("design:type", Number)
24
25
  ], CreateDTO.prototype, "dashboard_id", void 0);
25
26
  __decorate([
26
- (0, class_validator_1.IsNumber)(),
27
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
27
28
  __metadata("design:type", Number)
28
29
  ], CreateDTO.prototype, "width", void 0);
29
30
  __decorate([
30
- (0, class_validator_1.IsNumber)(),
31
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
31
32
  __metadata("design:type", Number)
32
33
  ], CreateDTO.prototype, "height", void 0);
33
34
  __decorate([
34
- (0, class_validator_1.IsNumber)(),
35
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
35
36
  __metadata("design:type", Number)
36
37
  ], CreateDTO.prototype, "x_axis", void 0);
37
38
  __decorate([
38
- (0, class_validator_1.IsNumber)(),
39
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
39
40
  __metadata("design:type", Number)
40
41
  ], CreateDTO.prototype, "y_axis", void 0);
41
42
  //# sourceMappingURL=create.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-item/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAG5E,MAAa,SAAS;CAkBrB;AAlBD,8BAkBC;AAhBC;IADC,IAAA,0BAAQ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;;yCAC7E;AAGf;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;;yCAC7E"}
@@ -19,33 +19,33 @@ export declare class DashboardUserController {
19
19
  id: number;
20
20
  created_at: Date;
21
21
  updated_at: Date;
22
+ user_id: number;
22
23
  height: number;
23
24
  x_axis: number;
24
25
  y_axis: number;
25
26
  item_id: number;
26
- user_id: number;
27
27
  }>;
28
28
  create(data: CreateDTO): Promise<{
29
29
  width: number;
30
30
  id: number;
31
31
  created_at: Date;
32
32
  updated_at: Date;
33
+ user_id: number;
33
34
  height: number;
34
35
  x_axis: number;
35
36
  y_axis: number;
36
37
  item_id: number;
37
- user_id: number;
38
38
  }>;
39
39
  update(id: number, data: UpdateDTO): Promise<{
40
40
  width: number;
41
41
  id: number;
42
42
  created_at: Date;
43
43
  updated_at: Date;
44
+ user_id: number;
44
45
  height: number;
45
46
  x_axis: number;
46
47
  y_axis: number;
47
48
  item_id: number;
48
- user_id: number;
49
49
  }>;
50
50
  delete(data: DeleteDTO): Promise<{
51
51
  count: number;
@@ -23,22 +23,22 @@ export declare class DashboardUserService {
23
23
  id: number;
24
24
  created_at: Date;
25
25
  updated_at: Date;
26
+ user_id: number;
26
27
  height: number;
27
28
  x_axis: number;
28
29
  y_axis: number;
29
30
  item_id: number;
30
- user_id: number;
31
31
  }>;
32
32
  create(data: CreateDTO): Promise<{
33
33
  width: number;
34
34
  id: number;
35
35
  created_at: Date;
36
36
  updated_at: Date;
37
+ user_id: number;
37
38
  height: number;
38
39
  x_axis: number;
39
40
  y_axis: number;
40
41
  item_id: number;
41
- user_id: number;
42
42
  }>;
43
43
  update({ id, data }: {
44
44
  id: number;
@@ -48,11 +48,11 @@ export declare class DashboardUserService {
48
48
  id: number;
49
49
  created_at: Date;
50
50
  updated_at: Date;
51
+ user_id: number;
51
52
  height: number;
52
53
  x_axis: number;
53
54
  y_axis: number;
54
55
  item_id: number;
55
- user_id: number;
56
56
  }>;
57
57
  delete({ ids }: DeleteDTO): Promise<{
58
58
  count: number;
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-user/dto/create.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,qBAAa,SAAU,SAAQ,aAAa;IAE1C,OAAO,EAAE,MAAM,CAAC;IAGhB,OAAO,EAAE,MAAM,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-user/dto/create.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGnE,qBAAa,SAAU,SAAQ,aAAa;IAE1C,OAAO,EAAE,MAAM,CAAC;IAGhB,OAAO,EAAE,MAAM,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -10,33 +10,33 @@ 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");
14
13
  const api_locale_1 = require("@hed-hog/api-locale");
14
+ const class_validator_1 = require("class-validator");
15
15
  class CreateDTO extends api_locale_1.WithLocaleDTO {
16
16
  }
17
17
  exports.CreateDTO = CreateDTO;
18
18
  __decorate([
19
- (0, class_validator_1.IsNumber)(),
19
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
20
20
  __metadata("design:type", Number)
21
21
  ], CreateDTO.prototype, "item_id", void 0);
22
22
  __decorate([
23
- (0, class_validator_1.IsNumber)(),
23
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
24
24
  __metadata("design:type", Number)
25
25
  ], CreateDTO.prototype, "user_id", void 0);
26
26
  __decorate([
27
- (0, class_validator_1.IsNumber)(),
27
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
28
28
  __metadata("design:type", Number)
29
29
  ], CreateDTO.prototype, "width", void 0);
30
30
  __decorate([
31
- (0, class_validator_1.IsNumber)(),
31
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
32
32
  __metadata("design:type", Number)
33
33
  ], CreateDTO.prototype, "height", void 0);
34
34
  __decorate([
35
- (0, class_validator_1.IsNumber)(),
35
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
36
36
  __metadata("design:type", Number)
37
37
  ], CreateDTO.prototype, "x_axis", void 0);
38
38
  __decorate([
39
- (0, class_validator_1.IsNumber)(),
39
+ (0, class_validator_1.IsNumber)({}, { message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value) }),
40
40
  __metadata("design:type", Number)
41
41
  ], CreateDTO.prototype, "y_axis", void 0);
42
42
  //# sourceMappingURL=create.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../../src/dashboard/dashboard-user/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAC5E,oDAAoD;AAEpD,MAAa,SAAU,SAAQ,0BAAa;CAkB3C;AAlBD,8BAkBC;AAhBC;IADC,IAAA,0BAAQ,GAAE;;0CACK;AAGhB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CAC7E;AAGf;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;;yCAC7E"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAIpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
1
+ {"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAIpB,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.DeleteDTO = void 0;
13
+ const api_locale_1 = require("@hed-hog/api-locale");
13
14
  const class_validator_1 = require("class-validator");
14
15
  class DeleteDTO {
15
16
  }
16
17
  exports.DeleteDTO = DeleteDTO;
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
  ], DeleteDTO.prototype, "ids", void 0);
23
24
  //# sourceMappingURL=delete.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;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;;sCAC/D"}
1
+ {"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../src/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;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;;sCACnF"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-ids.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-ids.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IAQvB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
1
+ {"version":3,"file":"update-ids.dto.d.ts","sourceRoot":"","sources":["../../src/dto/update-ids.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IAQvB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdateIdsDTO = void 0;
13
+ const api_locale_1 = require("@hed-hog/api-locale");
13
14
  const class_validator_1 = require("class-validator");
14
15
  class UpdateIdsDTO {
15
16
  }
@@ -17,10 +18,10 @@ exports.UpdateIdsDTO = UpdateIdsDTO;
17
18
  __decorate([
18
19
  (0, class_validator_1.IsInt)({
19
20
  each: true,
20
- message: 'Todos os itens devem ser numéricos.',
21
+ message: (args) => (0, api_locale_1.getLocaleText)('validation.numberRequired', args.value),
21
22
  }),
22
23
  (0, class_validator_1.IsArray)({
23
- message: 'Por favor, forneça uma lista de itens.',
24
+ message: (args) => (0, api_locale_1.getLocaleText)('validation.arrayRequired', args.value),
24
25
  }),
25
26
  __metadata("design:type", Array)
26
27
  ], UpdateIdsDTO.prototype, "ids", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"update-ids.dto.js","sourceRoot":"","sources":["../../src/dto/update-ids.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,MAAa,YAAY;CASxB;AATD,oCASC;AADC;IAPC,IAAA,uBAAK,EAAC;QACL,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,qCAAqC;KAC/C,CAAC;IACD,IAAA,yBAAO,EAAC;QACP,OAAO,EAAE,wCAAwC;KAClD,CAAC;;yCACY"}
1
+ {"version":3,"file":"update-ids.dto.js","sourceRoot":"","sources":["../../src/dto/update-ids.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAiD;AAEjD,MAAa,YAAY;CASxB;AATD,oCASC;AADC;IAPC,IAAA,uBAAK,EAAC;QACL,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC;KAC1E,CAAC;IACD,IAAA,yBAAO,EAAC;QACP,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC;KACzE,CAAC;;yCACY"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../../src/file/dto/delete.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAIpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
1
+ {"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../../src/file/dto/delete.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAIpB,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.DeleteDTO = void 0;
13
+ const api_locale_1 = require("@hed-hog/api-locale");
13
14
  const class_validator_1 = require("class-validator");
14
15
  class DeleteDTO {
15
16
  }
16
17
  exports.DeleteDTO = DeleteDTO;
17
18
  __decorate([
18
- (0, class_validator_1.IsArray)(),
19
- (0, class_validator_1.ArrayMinSize)(1),
20
- (0, class_validator_1.IsInt)({ each: true }),
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
  ], DeleteDTO.prototype, "ids", void 0);
23
24
  //# sourceMappingURL=delete.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../../src/file/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sCACR"}
1
+ {"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../../src/file/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;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;;sCACnF"}
@@ -1 +1 @@
1
- {"version":3,"file":"upload.dto.d.ts","sourceRoot":"","sources":["../../../src/file/dto/upload.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;IAGxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"upload.dto.d.ts","sourceRoot":"","sources":["../../../src/file/dto/upload.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAGxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -10,12 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UploadFileDTO = void 0;
13
+ const api_locale_1 = require("@hed-hog/api-locale");
13
14
  const class_validator_1 = require("class-validator");
14
15
  class UploadFileDTO {
15
16
  }
16
17
  exports.UploadFileDTO = UploadFileDTO;
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
  (0, class_validator_1.IsOptional)(),
20
21
  __metadata("design:type", String)
21
22
  ], UploadFileDTO.prototype, "destination", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"upload.dto.js","sourceRoot":"","sources":["../../../src/file/dto/upload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,aAAa;CAIzB;AAJD,sCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACQ"}
1
+ {"version":3,"file":"upload.dto.js","sourceRoot":"","sources":["../../../src/file/dto/upload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,qDAAuD;AAEvD,MAAa,aAAa;CAIzB;AAJD,sCAIC;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,GAAE;;kDACQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"generate-migration.dto.d.ts","sourceRoot":"","sources":["../../../src/install/dto/generate-migration.dto.ts"],"names":[],"mappings":"AAGA,cAAM,qBAAqB;IAGzB,WAAW,EAAE,MAAM,CAAC;IAIpB,OAAO,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,wBAAwB;IAGnC,IAAI,EAAE,MAAM,CAAC;IAKb,YAAY,EAAE,qBAAqB,EAAE,CAAC;IAItC,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
1
+ {"version":3,"file":"generate-migration.dto.d.ts","sourceRoot":"","sources":["../../../src/install/dto/generate-migration.dto.ts"],"names":[],"mappings":"AAIA,cAAM,qBAAqB;IAGzB,WAAW,EAAE,MAAM,CAAC;IAIpB,OAAO,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,wBAAwB;IAGnC,IAAI,EAAE,MAAM,CAAC;IAKb,YAAY,EAAE,qBAAqB,EAAE,CAAC;IAItC,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
@@ -10,42 +10,43 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.GenerateMailMigrationDTO = 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 MailLocaleTranslation {
16
17
  }
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
  ], MailLocaleTranslation.prototype, "locale_code", 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
  ], MailLocaleTranslation.prototype, "subject", void 0);
27
28
  __decorate([
28
- (0, class_validator_1.IsString)(),
29
- (0, class_validator_1.IsNotEmpty)(),
29
+ (0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
30
+ (0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
30
31
  __metadata("design:type", String)
31
32
  ], MailLocaleTranslation.prototype, "body", void 0);
32
33
  class GenerateMailMigrationDTO {
33
34
  }
34
35
  exports.GenerateMailMigrationDTO = GenerateMailMigrationDTO;
35
36
  __decorate([
36
- (0, class_validator_1.IsString)(),
37
- (0, class_validator_1.IsNotEmpty)(),
37
+ (0, class_validator_1.IsString)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
38
+ (0, class_validator_1.IsNotEmpty)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.fieldRequired', args.value) }),
38
39
  __metadata("design:type", String)
39
40
  ], GenerateMailMigrationDTO.prototype, "slug", void 0);
40
41
  __decorate([
41
- (0, class_validator_1.IsArray)(),
42
+ (0, class_validator_1.IsArray)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.arrayRequired', args.value) }),
42
43
  (0, class_validator_1.ValidateNested)({ each: true }),
43
44
  (0, class_transformer_1.Type)(() => MailLocaleTranslation),
44
45
  __metadata("design:type", Array)
45
46
  ], GenerateMailMigrationDTO.prototype, "translations", void 0);
46
47
  __decorate([
47
- (0, class_validator_1.IsArray)(),
48
- (0, class_validator_1.IsString)({ each: true }),
48
+ (0, class_validator_1.IsArray)({ message: (args) => (0, api_locale_1.getLocaleText)('validation.arrayRequired', args.value) }),
49
+ (0, class_validator_1.IsString)({ each: true, message: (args) => (0, api_locale_1.getLocaleText)('validation.stringRequired', args.value) }),
49
50
  __metadata("design:type", Array)
50
51
  ], GenerateMailMigrationDTO.prototype, "variables", void 0);
51
52
  //# sourceMappingURL=generate-migration.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-migration.dto.js","sourceRoot":"","sources":["../../../src/install/dto/generate-migration.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAgF;AAEhF,MAAM,qBAAqB;CAY1B;AATC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACA;AAGf,MAAa,wBAAwB;CAapC;AAbD,4DAaC;AAVC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACA;AAKb;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC;;8DACI;AAItC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACL"}
1
+ {"version":3,"file":"generate-migration.dto.js","sourceRoot":"","sources":["../../../src/install/dto/generate-migration.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,yDAAyC;AACzC,qDAAgF;AAEhF,MAAM,qBAAqB;CAY1B;AATC;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;;0DACrE;AAIpB;IAFC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,yBAAO,EAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACrF,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;2DAChF"}
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/mail/dto/create.dto.ts"],"names":[],"mappings":"AASA,cAAM,aAAa;IAEjB,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,cAAM,UAAU;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,qBAAa,SAAS;IAEpB,IAAI,EAAE,MAAM,CAAC;IAMb,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAM9B,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;CACzB"}
1
+ {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/mail/dto/create.dto.ts"],"names":[],"mappings":"AAUA,cAAM,aAAa;IAEjB,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,cAAM,UAAU;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,qBAAa,SAAS;IAEpB,IAAI,EAAE,MAAM,CAAC;IAMb,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAM9B,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;CACzB"}