@goat-it/schemas 0.0.18 → 0.0.19

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 (248) hide show
  1. package/dist/question/index.d.mts +20 -20
  2. package/dist/question/index.mjs +19 -19
  3. package/dist/question-theme/index.d.mts +10 -10
  4. package/dist/question-theme/index.mjs +9 -9
  5. package/dist/shared/constants/index.d.mts +5 -5
  6. package/dist/shared/constants/index.mjs +4 -4
  7. package/dist/shared/error/index.d.mts +2 -2
  8. package/dist/shared/error/index.mjs +2 -2
  9. package/dist/shared/locale/index.d.mts +3 -3
  10. package/dist/shared/locale/index.mjs +2 -2
  11. package/dist/src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.d.mts +24 -0
  12. package/dist/src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.mjs +24 -0
  13. package/dist/src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.mjs.map +1 -0
  14. package/dist/src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.d.mts +12 -0
  15. package/dist/src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.mjs +13 -0
  16. package/dist/src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.mjs.map +1 -0
  17. package/dist/src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.d.mts +22 -0
  18. package/dist/src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.mjs +13 -0
  19. package/dist/src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.mjs.map +1 -0
  20. package/dist/src/contexts/question/application/dto/admin-question/admin-question.dto.shape.d.mts +57 -0
  21. package/dist/src/contexts/question/application/dto/admin-question/admin-question.dto.shape.mjs +25 -0
  22. package/dist/src/contexts/question/application/dto/admin-question/admin-question.dto.shape.mjs.map +1 -0
  23. package/dist/src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.d.mts +22 -0
  24. package/dist/src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.mjs +23 -0
  25. package/dist/src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.mjs.map +1 -0
  26. package/dist/src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.d.mts +12 -0
  27. package/dist/src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.mjs +14 -0
  28. package/dist/src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.mjs.map +1 -0
  29. package/dist/src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.d.mts +14 -0
  30. package/dist/src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.mjs +17 -0
  31. package/dist/src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.mjs.map +1 -0
  32. package/dist/src/contexts/question/application/dto/question/question-content/question-content.dto.shape.d.mts +12 -0
  33. package/dist/src/contexts/question/application/dto/question/question-content/question-content.dto.shape.mjs +13 -0
  34. package/dist/src/contexts/question/application/dto/question/question-content/question-content.dto.shape.mjs.map +1 -0
  35. package/dist/src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.d.mts +22 -0
  36. package/dist/src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.mjs +13 -0
  37. package/dist/src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.mjs.map +1 -0
  38. package/dist/src/contexts/question/application/dto/question/question.dto.shape.d.mts +57 -0
  39. package/dist/src/contexts/question/application/dto/question/question.dto.shape.mjs +25 -0
  40. package/dist/src/contexts/question/application/dto/question/question.dto.shape.mjs.map +1 -0
  41. package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.d.mts +13 -0
  42. package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.mjs +11 -0
  43. package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.mjs.map +1 -0
  44. package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.d.mts +12 -0
  45. package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.mjs +13 -0
  46. package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.mjs.map +1 -0
  47. package/dist/src/contexts/question/application/dto/question-creation/question-creation.dto.shape.d.mts +30 -0
  48. package/dist/src/contexts/question/application/dto/question-creation/question-creation.dto.shape.mjs +20 -0
  49. package/dist/src/contexts/question/application/dto/question-creation/question-creation.dto.shape.mjs.map +1 -0
  50. package/dist/src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.d.mts +11 -0
  51. package/dist/src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.mjs +13 -0
  52. package/dist/src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.mjs.map +1 -0
  53. package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.d.mts +12 -0
  54. package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.mjs +13 -0
  55. package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.mjs.map +1 -0
  56. package/dist/src/contexts/question/application/dto/question-modification/question-modification.dto.shape.d.mts +18 -0
  57. package/dist/src/contexts/question/application/dto/question-modification/question-modification.dto.shape.mjs +14 -0
  58. package/dist/src/contexts/question/application/dto/question-modification/question-modification.dto.shape.mjs.map +1 -0
  59. package/dist/src/contexts/question/application/dto/question-stats/question-stats.dto.shape.d.mts +38 -0
  60. package/dist/src/contexts/question/application/dto/question-stats/question-stats.dto.shape.mjs +15 -0
  61. package/dist/src/contexts/question/application/dto/question-stats/question-stats.dto.shape.mjs.map +1 -0
  62. package/dist/src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.d.mts +10 -0
  63. package/dist/src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.mjs +11 -0
  64. package/dist/src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.mjs.map +1 -0
  65. package/dist/src/contexts/question/application/dto/shared/constants/question-filter-query.dto.constants.mjs +10 -0
  66. package/dist/src/contexts/question/application/dto/shared/constants/question-filter-query.dto.constants.mjs.map +1 -0
  67. package/dist/src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.d.mts +15 -0
  68. package/dist/src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.mjs +14 -0
  69. package/dist/src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.mjs.map +1 -0
  70. package/dist/src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.d.mts +16 -0
  71. package/dist/src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.mjs +11 -0
  72. package/dist/src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.mjs.map +1 -0
  73. package/dist/src/contexts/question/application/dto/shared/zod/refinements/question-author/question-author.dto.zod.refinement.mjs +10 -0
  74. package/dist/src/contexts/question/application/dto/shared/zod/refinements/question-author/question-author.dto.zod.refinement.mjs.map +1 -0
  75. package/dist/src/contexts/question/application/dto/shared/zod/validators/constants/question-sort.dto.zod.validators.constants.d.mts +5 -0
  76. package/dist/src/contexts/question/application/dto/shared/zod/validators/constants/question-sort.dto.zod.validators.constants.mjs +7 -0
  77. package/dist/src/contexts/question/application/dto/shared/zod/validators/constants/question-sort.dto.zod.validators.constants.mjs.map +1 -0
  78. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/constants/question-content.zod.validators.constants.mjs +9 -0
  79. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/constants/question-content.zod.validators.constants.mjs.map +1 -0
  80. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/question-content.dto.zod.validators.mjs +32 -0
  81. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/question-content.dto.zod.validators.mjs.map +1 -0
  82. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-theme-assignment/question-theme-assignment.dto.zod.validators.mjs +12 -0
  83. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-theme-assignment/question-theme-assignment.dto.zod.validators.mjs.map +1 -0
  84. package/dist/src/contexts/question/application/dto/shared/zod/validators/question.dto.zod.validators.mjs +48 -0
  85. package/dist/src/contexts/question/application/dto/shared/zod/validators/question.dto.zod.validators.mjs.map +1 -0
  86. package/dist/src/contexts/question/domain/constants/question.constants.d.mts +24 -0
  87. package/dist/src/contexts/question/domain/constants/question.constants.mjs +61 -0
  88. package/dist/src/contexts/question/domain/constants/question.constants.mjs.map +1 -0
  89. package/dist/src/contexts/question/domain/types/question.value-objects.d.mts +18 -0
  90. package/dist/src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.d.mts +21 -0
  91. package/dist/src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.mjs +19 -0
  92. package/dist/src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.mjs.map +1 -0
  93. package/dist/src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.d.mts +18 -0
  94. package/dist/src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.mjs +18 -0
  95. package/dist/src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.mjs.map +1 -0
  96. package/dist/src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.d.mts +18 -0
  97. package/dist/src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.mjs +17 -0
  98. package/dist/src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.mjs.map +1 -0
  99. package/dist/src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.d.mts +18 -0
  100. package/dist/src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.mjs +18 -0
  101. package/dist/src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.mjs.map +1 -0
  102. package/dist/src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.d.mts +13 -0
  103. package/dist/src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.mjs +14 -0
  104. package/dist/src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.mjs.map +1 -0
  105. package/dist/src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.d.mts +13 -0
  106. package/dist/src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.mjs +14 -0
  107. package/dist/src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.mjs.map +1 -0
  108. package/dist/src/contexts/question-theme/application/dto/question-theme-stats/question-theme-stats.dto.shape.d.mts +18 -0
  109. package/dist/src/contexts/question-theme/application/dto/question-theme-stats/question-theme-stats.dto.shape.mjs +16 -0
  110. package/dist/src/contexts/question-theme/application/dto/question-theme-stats/question-theme-stats.dto.shape.mjs.map +1 -0
  111. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme-sort.dto.zod.validators.constants.d.mts +6 -0
  112. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme-sort.dto.zod.validators.constants.mjs +9 -0
  113. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme-sort.dto.zod.validators.constants.mjs.map +1 -0
  114. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme.zod.validators.constants.mjs +13 -0
  115. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme.zod.validators.constants.mjs.map +1 -0
  116. package/dist/src/contexts/question-theme/application/dto/zod/validators/question-theme.dto.zod.validators.mjs +46 -0
  117. package/dist/src/contexts/question-theme/application/dto/zod/validators/question-theme.dto.zod.validators.mjs.map +1 -0
  118. package/dist/src/contexts/question-theme/domain/constants/question-theme.constants.d.mts +9 -0
  119. package/dist/src/contexts/question-theme/domain/constants/question-theme.constants.mjs +19 -0
  120. package/dist/src/contexts/question-theme/domain/constants/question-theme.constants.mjs.map +1 -0
  121. package/dist/src/contexts/question-theme/domain/types/question-theme.entities.d.mts +2 -0
  122. package/dist/src/contexts/question-theme/domain/types/question-theme.value-objects.d.mts +9 -0
  123. package/dist/src/shared/application/dto/constants/limit-query.dto.constants.mjs +6 -0
  124. package/dist/src/shared/application/dto/constants/limit-query.dto.constants.mjs.map +1 -0
  125. package/dist/src/shared/application/dto/constants/sort-query.dto.constants.mjs +7 -0
  126. package/dist/src/shared/application/dto/constants/sort-query.dto.constants.mjs.map +1 -0
  127. package/dist/src/shared/application/dto/zod/preprocessors/array/array.zod.preprocessors.mjs +13 -0
  128. package/dist/src/shared/application/dto/zod/preprocessors/array/array.zod.preprocessors.mjs.map +1 -0
  129. package/dist/src/shared/application/dto/zod/refinements/array/array.zod.refinements.mjs +14 -0
  130. package/dist/src/shared/application/dto/zod/refinements/array/array.zod.refinements.mjs.map +1 -0
  131. package/dist/src/shared/application/dto/zod/validators/array/array.zod.validators.mjs +22 -0
  132. package/dist/src/shared/application/dto/zod/validators/array/array.zod.validators.mjs.map +1 -0
  133. package/dist/src/shared/domain/constants/sort/sort.constants.d.mts +5 -0
  134. package/dist/src/shared/domain/constants/sort/sort.constants.mjs +6 -0
  135. package/dist/src/shared/domain/constants/sort/sort.constants.mjs.map +1 -0
  136. package/dist/src/shared/domain/types/sort/sort.types.d.mts +7 -0
  137. package/dist/src/shared/domain/value-objects/locale/helpers/locale.helpers.d.mts +6 -0
  138. package/dist/src/shared/domain/value-objects/locale/helpers/locale.helpers.mjs +9 -0
  139. package/dist/src/shared/domain/value-objects/locale/helpers/locale.helpers.mjs.map +1 -0
  140. package/dist/src/shared/domain/value-objects/locale/locale.constants.d.mts +5 -0
  141. package/dist/src/shared/domain/value-objects/locale/locale.constants.mjs +21 -0
  142. package/dist/src/shared/domain/value-objects/locale/locale.constants.mjs.map +1 -0
  143. package/dist/src/shared/domain/value-objects/locale/locale.types.d.mts +13 -0
  144. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.d.mts +21 -0
  145. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.mjs +25 -0
  146. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.mjs.map +1 -0
  147. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.d.mts +27 -0
  148. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.mjs +14 -0
  149. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.mjs.map +1 -0
  150. package/dist/src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.d.mts +6 -0
  151. package/dist/src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.mjs +8 -0
  152. package/dist/src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.mjs.map +1 -0
  153. package/dist/src/shared/infrastructure/http/zod/validators/limit/limit.zod.validators.mjs +10 -0
  154. package/dist/src/shared/infrastructure/http/zod/validators/limit/limit.zod.validators.mjs.map +1 -0
  155. package/dist/src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.d.mts +9 -0
  156. package/dist/src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.mjs +18 -0
  157. package/dist/src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.mjs.map +1 -0
  158. package/dist/src/shared/infrastructure/http/zod/validators/localization/localization.zod.validators.mjs +40 -0
  159. package/dist/src/shared/infrastructure/http/zod/validators/localization/localization.zod.validators.mjs.map +1 -0
  160. package/dist/src/shared/infrastructure/http/zod/validators/sort/constants/sort.zod.validators.constants.mjs +7 -0
  161. package/dist/src/shared/infrastructure/http/zod/validators/sort/constants/sort.zod.validators.constants.mjs.map +1 -0
  162. package/dist/src/shared/infrastructure/http/zod/validators/sort/sort.zod.validators.mjs +11 -0
  163. package/dist/src/shared/infrastructure/http/zod/validators/sort/sort.zod.validators.mjs.map +1 -0
  164. package/dist/src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.d.mts +9 -0
  165. package/dist/src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.mjs +12 -0
  166. package/dist/src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.mjs.map +1 -0
  167. package/dist/src/shared/infrastructure/http/zod/validators/string/string.zod.validators.mjs +31 -0
  168. package/dist/src/shared/infrastructure/http/zod/validators/string/string.zod.validators.mjs.map +1 -0
  169. package/dist/src/shared/types/enum.types.d.mts +22 -0
  170. package/dist/testing/question/index.d.mts +18 -18
  171. package/dist/testing/question/index.mjs +18 -18
  172. package/dist/testing/question-theme/index.d.mts +4 -4
  173. package/dist/testing/question-theme/index.mjs +4 -4
  174. package/dist/testing/shared/index.d.mts +2 -2
  175. package/dist/testing/shared/index.mjs +2 -2
  176. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.d.mts +6 -0
  177. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs +25 -0
  178. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs.map +1 -0
  179. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.d.mts +6 -0
  180. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs +16 -0
  181. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs.map +1 -0
  182. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.d.mts +6 -0
  183. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.mjs +15 -0
  184. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.mjs.map +1 -0
  185. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.d.mts +6 -0
  186. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs +27 -0
  187. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs.map +1 -0
  188. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.d.mts +6 -0
  189. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs +24 -0
  190. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs.map +1 -0
  191. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.d.mts +6 -0
  192. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs +23 -0
  193. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs.map +1 -0
  194. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.d.mts +6 -0
  195. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs +15 -0
  196. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs.map +1 -0
  197. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.d.mts +6 -0
  198. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs +15 -0
  199. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs.map +1 -0
  200. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.d.mts +6 -0
  201. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs +27 -0
  202. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs.map +1 -0
  203. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.d.mts +6 -0
  204. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs +14 -0
  205. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs.map +1 -0
  206. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.d.mts +6 -0
  207. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs +16 -0
  208. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs.map +1 -0
  209. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.d.mts +6 -0
  210. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs +21 -0
  211. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs.map +1 -0
  212. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.d.mts +6 -0
  213. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.mjs +14 -0
  214. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.mjs.map +1 -0
  215. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.d.mts +8 -0
  216. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs +26 -0
  217. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs.map +1 -0
  218. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.d.mts +6 -0
  219. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.mjs +102 -0
  220. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.mjs.map +1 -0
  221. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.d.mts +6 -0
  222. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs +13 -0
  223. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs.map +1 -0
  224. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.d.mts +6 -0
  225. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs +18 -0
  226. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs.map +1 -0
  227. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.d.mts +6 -0
  228. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs +14 -0
  229. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs.map +1 -0
  230. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.d.mts +6 -0
  231. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.mjs +20 -0
  232. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.mjs.map +1 -0
  233. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.d.mts +6 -0
  234. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs +19 -0
  235. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs.map +1 -0
  236. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory.d.mts +6 -0
  237. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory.mjs +37 -0
  238. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory.mjs.map +1 -0
  239. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.d.mts +12 -0
  240. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs +60 -0
  241. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs.map +1 -0
  242. package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.d.mts +8 -0
  243. package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs +32 -0
  244. package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs.map +1 -0
  245. package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.d.mts +8 -0
  246. package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.mjs +36 -0
  247. package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.mjs.map +1 -0
  248. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ //#region ../../src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.ts
2
+ const LOCALIZED_TEXT_ENTRY_MIN_LENGTH = 1;
3
+ const LOCALIZED_TEXT_ENTRY_MAX_LENGTH = 500;
4
+ const LOCALIZED_TEXTS_MIN_LENGTH = 1;
5
+ const LOCALIZED_TEXTS_MAX_LENGTH = 10;
6
+ const LOCALE_EXAMPLES = {
7
+ en: "Example text in English.",
8
+ fr: "Exemple de texte en français.",
9
+ es: "Texto de ejemplo en español.",
10
+ de: "Beispieltext auf Deutsch.",
11
+ it: "Testo di esempio in italiano.",
12
+ pt: "Texto de exemplo em português."
13
+ };
14
+ const LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE = "At least one locale must be provided";
15
+ //#endregion
16
+ export { LOCALE_EXAMPLES, LOCALIZED_TEXTS_MAX_LENGTH, LOCALIZED_TEXTS_MIN_LENGTH, LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE, LOCALIZED_TEXT_ENTRY_MAX_LENGTH, LOCALIZED_TEXT_ENTRY_MIN_LENGTH };
17
+
18
+ //# sourceMappingURL=localization.zod.validators.constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localization.zod.validators.constants.mjs","names":[],"sources":["../../../../../../../../../../../src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.ts"],"sourcesContent":["import type { Locale } from \"@shared/domain/value-objects/locale/locale.types\";\n\nconst LOCALIZED_TEXT_ENTRY_MIN_LENGTH = 1;\n\nconst LOCALIZED_TEXT_ENTRY_MAX_LENGTH = 500;\n\nconst LOCALIZED_TEXTS_MIN_LENGTH = 1;\n\nconst LOCALIZED_TEXTS_MAX_LENGTH = 10;\n\nconst LOCALE_EXAMPLES: Record<Locale, string> = {\n en: \"Example text in English.\",\n fr: \"Exemple de texte en français.\",\n es: \"Texto de ejemplo en español.\",\n de: \"Beispieltext auf Deutsch.\",\n it: \"Testo di esempio in italiano.\",\n pt: \"Texto de exemplo em português.\",\n} as const;\n\nconst LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE = \"At least one locale must be provided\";\n\nexport {\n LOCALIZED_TEXT_ENTRY_MIN_LENGTH,\n LOCALIZED_TEXT_ENTRY_MAX_LENGTH,\n LOCALIZED_TEXTS_MIN_LENGTH,\n LOCALIZED_TEXTS_MAX_LENGTH,\n LOCALE_EXAMPLES,\n LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE,\n};"],"mappings":";AAEA,MAAM,kCAAkC;AAExC,MAAM,kCAAkC;AAExC,MAAM,6BAA6B;AAEnC,MAAM,6BAA6B;AAEnC,MAAM,kBAA0C;CAC9C,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;AAEA,MAAM,qCAAqC"}
@@ -0,0 +1,40 @@
1
+ import { LOCALE_LABELS } from "../../../../../domain/value-objects/locale/locale.constants.mjs";
2
+ import { LOCALE_EXAMPLES, LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE } from "./constants/localization.zod.validators.constants.mjs";
3
+ import { z } from "zod";
4
+ //#region ../../src/shared/infrastructure/http/zod/validators/localization/localization.zod.validators.ts
5
+ function hasAtLeastOneLocaleValue(object) {
6
+ return Object.values(object).some((value) => value !== void 0);
7
+ }
8
+ function createZLocaleEntries(entryFactory) {
9
+ return {
10
+ en: entryFactory("en"),
11
+ fr: entryFactory("fr"),
12
+ es: entryFactory("es"),
13
+ de: entryFactory("de"),
14
+ it: entryFactory("it"),
15
+ pt: entryFactory("pt")
16
+ };
17
+ }
18
+ function zLocalizedTextEntry(locale) {
19
+ const localeLabel = LOCALE_LABELS[locale];
20
+ const localeExample = LOCALE_EXAMPLES[locale];
21
+ return z.string().trim().min(1).max(500).optional().describe(`Text in ${localeLabel}`).meta({ example: localeExample });
22
+ }
23
+ function zLocalizedTextsEntry(locale) {
24
+ const localeLabel = LOCALE_LABELS[locale];
25
+ const localeExample = LOCALE_EXAMPLES[locale];
26
+ const zLocalizedTextsValue = z.string().trim().min(1).max(500);
27
+ return z.array(zLocalizedTextsValue).min(1).max(10).optional().describe(`Texts in ${localeLabel}`).meta({ example: [localeExample] });
28
+ }
29
+ function zLocalizedText() {
30
+ const localeEntries = createZLocaleEntries(zLocalizedTextEntry);
31
+ return z.strictObject(localeEntries).describe("Localized text object with translations for multiple languages").refine((object) => hasAtLeastOneLocaleValue(object), { message: LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE });
32
+ }
33
+ function zLocalizedTexts() {
34
+ const localeEntries = createZLocaleEntries(zLocalizedTextsEntry);
35
+ return z.strictObject(localeEntries).describe("Localized texts object with translations for multiple languages").refine((object) => hasAtLeastOneLocaleValue(object), { message: LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE });
36
+ }
37
+ //#endregion
38
+ export { createZLocaleEntries, hasAtLeastOneLocaleValue, zLocalizedText, zLocalizedTextEntry, zLocalizedTexts, zLocalizedTextsEntry };
39
+
40
+ //# sourceMappingURL=localization.zod.validators.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localization.zod.validators.mjs","names":[],"sources":["../../../../../../../../../../src/shared/infrastructure/http/zod/validators/localization/localization.zod.validators.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { LOCALE_LABELS } from \"@shared/domain/value-objects/locale/locale.constants\";\nimport { LOCALE_EXAMPLES, LOCALIZED_TEXT_ENTRY_MAX_LENGTH, LOCALIZED_TEXT_ENTRY_MIN_LENGTH, LOCALIZED_TEXTS_MAX_LENGTH, LOCALIZED_TEXTS_MIN_LENGTH, LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE } from \"@shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants\";\n\nimport type { ZodObject, ZodString, ZodOptional, ZodArray } from \"zod\";\n\nimport type { Locale } from \"@shared/domain/value-objects/locale/locale.types\";\n\nfunction hasAtLeastOneLocaleValue(object: Record<string, unknown>): boolean {\n return Object.values(object).some(value => value !== undefined);\n}\n\nfunction createZLocaleEntries<T>(entryFactory: (locale: Locale) => T): Record<Locale, T> {\n return {\n en: entryFactory(\"en\"),\n fr: entryFactory(\"fr\"),\n es: entryFactory(\"es\"),\n de: entryFactory(\"de\"),\n it: entryFactory(\"it\"),\n pt: entryFactory(\"pt\"),\n };\n}\n\nfunction zLocalizedTextEntry(locale: Locale): ZodOptional<ZodString> {\n const localeLabel = LOCALE_LABELS[locale];\n const localeExample = LOCALE_EXAMPLES[locale];\n\n return z.string()\n .trim()\n .min(LOCALIZED_TEXT_ENTRY_MIN_LENGTH)\n .max(LOCALIZED_TEXT_ENTRY_MAX_LENGTH)\n .optional()\n .describe(`Text in ${localeLabel}`)\n .meta({ example: localeExample });\n}\n\nfunction zLocalizedTextsEntry(locale: Locale): ZodOptional<ZodArray<ZodString>> {\n const localeLabel = LOCALE_LABELS[locale];\n const localeExample = LOCALE_EXAMPLES[locale];\n\n const zLocalizedTextsValue = z.string()\n .trim()\n .min(LOCALIZED_TEXT_ENTRY_MIN_LENGTH)\n .max(LOCALIZED_TEXT_ENTRY_MAX_LENGTH);\n\n return z.array(zLocalizedTextsValue)\n .min(LOCALIZED_TEXTS_MIN_LENGTH)\n .max(LOCALIZED_TEXTS_MAX_LENGTH)\n .optional()\n .describe(`Texts in ${localeLabel}`)\n .meta({ example: [localeExample] });\n}\n\nfunction zLocalizedText(): ZodObject<Record<Locale, ZodOptional<ZodString>>> {\n const localeEntries: Record<Locale, ZodOptional<ZodString>> = createZLocaleEntries(zLocalizedTextEntry);\n\n return z.strictObject(localeEntries)\n .describe(\"Localized text object with translations for multiple languages\")\n .refine(\n object => hasAtLeastOneLocaleValue(object),\n { message: LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE },\n );\n}\n\nfunction zLocalizedTexts(): ZodObject<Record<Locale, ZodOptional<ZodArray<ZodString>>>> {\n const localeEntries: Record<Locale, ZodOptional<ZodArray<ZodString>>> = createZLocaleEntries(zLocalizedTextsEntry);\n\n return z.strictObject(localeEntries)\n .describe(\"Localized texts object with translations for multiple languages\")\n .refine(\n object => hasAtLeastOneLocaleValue(object),\n { message: LOCALIZED_TEXT_EMPTY_ERROR_MESSAGE },\n );\n}\n\nexport {\n createZLocaleEntries,\n hasAtLeastOneLocaleValue,\n zLocalizedTextEntry,\n zLocalizedTextsEntry,\n zLocalizedText,\n zLocalizedTexts,\n};"],"mappings":";;;;AASA,SAAS,yBAAyB,QAA0C;CAC1E,OAAO,OAAO,OAAO,MAAM,CAAC,CAAC,MAAK,UAAS,UAAU,KAAA,CAAS;AAChE;AAEA,SAAS,qBAAwB,cAAwD;CACvF,OAAO;EACL,IAAI,aAAa,IAAI;EACrB,IAAI,aAAa,IAAI;EACrB,IAAI,aAAa,IAAI;EACrB,IAAI,aAAa,IAAI;EACrB,IAAI,aAAa,IAAI;EACrB,IAAI,aAAa,IAAI;CACvB;AACF;AAEA,SAAS,oBAAoB,QAAwC;CACnE,MAAM,cAAc,cAAc;CAClC,MAAM,gBAAgB,gBAAgB;CAEtC,OAAO,EAAE,OAAO,CAAC,CACd,KAAK,CAAC,CACN,IAAA,CAAmC,CAAC,CACpC,IAAA,GAAmC,CAAC,CACpC,SAAS,CAAC,CACV,SAAS,WAAW,aAAa,CAAC,CAClC,KAAK,EAAE,SAAS,cAAc,CAAC;AACpC;AAEA,SAAS,qBAAqB,QAAkD;CAC9E,MAAM,cAAc,cAAc;CAClC,MAAM,gBAAgB,gBAAgB;CAEtC,MAAM,uBAAuB,EAAE,OAAO,CAAC,CACpC,KAAK,CAAC,CACN,IAAA,CAAmC,CAAC,CACpC,IAAA,GAAmC;CAEtC,OAAO,EAAE,MAAM,oBAAoB,CAAC,CACjC,IAAA,CAA8B,CAAC,CAC/B,IAAA,EAA8B,CAAC,CAC/B,SAAS,CAAC,CACV,SAAS,YAAY,aAAa,CAAC,CACnC,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,CAAC;AACtC;AAEA,SAAS,iBAAoE;CAC3E,MAAM,gBAAwD,qBAAqB,mBAAmB;CAEtG,OAAO,EAAE,aAAa,aAAa,CAAC,CACjC,SAAS,gEAAgE,CAAC,CAC1E,QACC,WAAU,yBAAyB,MAAM,GACzC,EAAE,SAAS,mCAAmC,CAChD;AACJ;AAEA,SAAS,kBAA+E;CACtF,MAAM,gBAAkE,qBAAqB,oBAAoB;CAEjH,OAAO,EAAE,aAAa,aAAa,CAAC,CACjC,SAAS,iEAAiE,CAAC,CAC3E,QACC,WAAU,yBAAyB,MAAM,GACzC,EAAE,SAAS,mCAAmC,CAChD;AACJ"}
@@ -0,0 +1,7 @@
1
+ //#region ../../src/shared/infrastructure/http/zod/validators/sort/constants/sort.zod.validators.constants.ts
2
+ const SORT_ORDER_DESCRIPTION = "Sort order direction";
3
+ const SORT_ORDER_DEFAULT = "desc";
4
+ //#endregion
5
+ export { SORT_ORDER_DEFAULT, SORT_ORDER_DESCRIPTION };
6
+
7
+ //# sourceMappingURL=sort.zod.validators.constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort.zod.validators.constants.mjs","names":[],"sources":["../../../../../../../../../../../src/shared/infrastructure/http/zod/validators/sort/constants/sort.zod.validators.constants.ts"],"sourcesContent":["const SORT_ORDER_DESCRIPTION = \"Sort order direction\";\n\nconst SORT_ORDER_DEFAULT = \"desc\" as const;\n\nexport { SORT_ORDER_DESCRIPTION, SORT_ORDER_DEFAULT };"],"mappings":";AAAA,MAAM,yBAAyB;AAE/B,MAAM,qBAAqB"}
@@ -0,0 +1,11 @@
1
+ import { SORT_ORDERS } from "../../../../../domain/constants/sort/sort.constants.mjs";
2
+ import { SORT_ORDER_DEFAULT, SORT_ORDER_DESCRIPTION } from "./constants/sort.zod.validators.constants.mjs";
3
+ import { z } from "zod";
4
+ //#region ../../src/shared/infrastructure/http/zod/validators/sort/sort.zod.validators.ts
5
+ function zSortOrder() {
6
+ return z.enum(SORT_ORDERS).optional().default(SORT_ORDER_DEFAULT).describe(SORT_ORDER_DESCRIPTION).meta({ example: SORT_ORDER_DEFAULT });
7
+ }
8
+ //#endregion
9
+ export { zSortOrder };
10
+
11
+ //# sourceMappingURL=sort.zod.validators.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort.zod.validators.mjs","names":[],"sources":["../../../../../../../../../../src/shared/infrastructure/http/zod/validators/sort/sort.zod.validators.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { SORT_ORDERS } from \"@shared/domain/constants/sort/sort.constants\";\nimport { SORT_ORDER_DEFAULT, SORT_ORDER_DESCRIPTION } from \"@shared/infrastructure/http/zod/validators/sort/constants/sort.zod.validators.constants\";\n\nimport type { ZodDefault, ZodEnum, ZodOptional } from \"zod\";\n\nimport type { TupleToEnum } from \"@shared/types/enum.types\";\n\nfunction zSortOrder(): ZodDefault<ZodOptional<ZodEnum<TupleToEnum<typeof SORT_ORDERS>>>> {\n return z.enum(SORT_ORDERS)\n .optional()\n .default(SORT_ORDER_DEFAULT)\n .describe(SORT_ORDER_DESCRIPTION)\n .meta({ example: SORT_ORDER_DEFAULT });\n}\n\nexport { zSortOrder };"],"mappings":";;;;AASA,SAAS,aAAgF;CACvF,OAAO,EAAE,KAAK,WAAW,CAAC,CACvB,SAAS,CAAC,CACV,QAAQ,kBAAkB,CAAC,CAC3B,SAAS,sBAAsB,CAAC,CAChC,KAAK,EAAE,SAAS,mBAAmB,CAAC;AACzC"}
@@ -0,0 +1,9 @@
1
+ //#region ../../src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.d.ts
2
+ declare const SLUG_REGEX: RegExp;
3
+ declare const MONGO_ID_REGEX: RegExp;
4
+ declare const HEX_COLOR_REGEX: RegExp;
5
+ declare const SLUG_MIN_LENGTH = 3;
6
+ declare const SLUG_MAX_LENGTH = 50;
7
+ //#endregion
8
+ export { HEX_COLOR_REGEX, MONGO_ID_REGEX, SLUG_MAX_LENGTH, SLUG_MIN_LENGTH, SLUG_REGEX };
9
+ //# sourceMappingURL=string.zod.validators.constants.d.mts.map
@@ -0,0 +1,12 @@
1
+ //#region ../../src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.ts
2
+ const SLUG_REGEX = /^[\da-z]+(?:-[\da-z]+)*$/u;
3
+ const MONGO_ID_REGEX = /^[\da-f]{24}$/iu;
4
+ const HEX_COLOR_REGEX = /^#[\dA-Fa-f]{6}$/u;
5
+ const SLUG_MIN_LENGTH = 3;
6
+ const SLUG_MAX_LENGTH = 50;
7
+ const ISO_DATE_TIME_EXAMPLE = "2026-04-14T00:00:00.000Z";
8
+ const HEX_COLOR_EXAMPLE = "#FF5733";
9
+ //#endregion
10
+ export { HEX_COLOR_EXAMPLE, HEX_COLOR_REGEX, ISO_DATE_TIME_EXAMPLE, MONGO_ID_REGEX, SLUG_MAX_LENGTH, SLUG_MIN_LENGTH, SLUG_REGEX };
11
+
12
+ //# sourceMappingURL=string.zod.validators.constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.zod.validators.constants.mjs","names":[],"sources":["../../../../../../../../../../../src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.ts"],"sourcesContent":["const SLUG_REGEX = /^[\\da-z]+(?:-[\\da-z]+)*$/u;\n\nconst MONGO_ID_REGEX = /^[\\da-f]{24}$/iu;\n\nconst HEX_COLOR_REGEX = /^#[\\dA-Fa-f]{6}$/u;\n\nconst SLUG_MIN_LENGTH = 3;\n\nconst SLUG_MAX_LENGTH = 50;\n\nconst ISO_DATE_TIME_EXAMPLE = \"2026-04-14T00:00:00.000Z\";\n\nconst HEX_COLOR_EXAMPLE = \"#FF5733\";\n\nexport {\n SLUG_REGEX,\n MONGO_ID_REGEX,\n HEX_COLOR_REGEX,\n SLUG_MIN_LENGTH,\n SLUG_MAX_LENGTH,\n ISO_DATE_TIME_EXAMPLE,\n HEX_COLOR_EXAMPLE,\n};"],"mappings":";AAAA,MAAM,aAAa;AAEnB,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB;AAExB,MAAM,kBAAkB;AAExB,MAAM,kBAAkB;AAExB,MAAM,wBAAwB;AAE9B,MAAM,oBAAoB"}
@@ -0,0 +1,31 @@
1
+ import { HEX_COLOR_EXAMPLE, HEX_COLOR_REGEX, ISO_DATE_TIME_EXAMPLE, MONGO_ID_REGEX, SLUG_REGEX } from "./constants/string.zod.validators.constants.mjs";
2
+ import { z } from "zod";
3
+ //#region ../../src/shared/infrastructure/http/zod/validators/string/string.zod.validators.ts
4
+ function zSlug(options = {}) {
5
+ return z.string().trim().min(3).max(50).regex(SLUG_REGEX, {
6
+ error: "Invalid kebab-case value",
7
+ ...options
8
+ }).meta({ example: "example-slug-value" });
9
+ }
10
+ function zMongoId(options = {}) {
11
+ return z.string().trim().regex(MONGO_ID_REGEX, {
12
+ error: "Invalid ObjectId value",
13
+ ...options
14
+ }).toLowerCase().meta({ example: "60af924f4f1a2563f8e8b456" });
15
+ }
16
+ function zIsoDateTime(options = {}) {
17
+ return z.iso.datetime({
18
+ error: "Invalid ISO 8601 datetime value",
19
+ ...options
20
+ }).meta({ example: ISO_DATE_TIME_EXAMPLE });
21
+ }
22
+ function zHexColor(options = {}) {
23
+ return z.string().trim().regex(HEX_COLOR_REGEX, {
24
+ error: "Invalid hex color; must be 6 hexadecimal digits with # prefix (e.g., #FF5733)",
25
+ ...options
26
+ }).toUpperCase().meta({ example: HEX_COLOR_EXAMPLE });
27
+ }
28
+ //#endregion
29
+ export { zHexColor, zIsoDateTime, zMongoId, zSlug };
30
+
31
+ //# sourceMappingURL=string.zod.validators.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.zod.validators.mjs","names":[],"sources":["../../../../../../../../../../src/shared/infrastructure/http/zod/validators/string/string.zod.validators.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { HEX_COLOR_REGEX, HEX_COLOR_EXAMPLE, ISO_DATE_TIME_EXAMPLE, MONGO_ID_REGEX, SLUG_MAX_LENGTH, SLUG_MIN_LENGTH, SLUG_REGEX } from \"@shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants\";\n\nimport type { $ZodCustomParams } from \"zod/v4/core\";\nimport type { ZodString, ZodISODateTime } from \"zod\";\n\nfunction zSlug(options: Partial<$ZodCustomParams> = {}): ZodString {\n return z.string()\n .trim()\n .min(SLUG_MIN_LENGTH)\n .max(SLUG_MAX_LENGTH)\n .regex(SLUG_REGEX, {\n error: \"Invalid kebab-case value\",\n ...options,\n })\n .meta({ example: \"example-slug-value\" });\n}\n\nfunction zMongoId(options: Partial<$ZodCustomParams> = {}): ZodString {\n return z.string()\n .trim()\n .regex(MONGO_ID_REGEX, {\n error: \"Invalid ObjectId value\",\n ...options,\n })\n .toLowerCase()\n .meta({ example: \"60af924f4f1a2563f8e8b456\" });\n}\n\nfunction zIsoDateTime(options: Partial<$ZodCustomParams> = {}): ZodISODateTime {\n return z.iso.datetime({\n error: \"Invalid ISO 8601 datetime value\",\n ...options,\n })\n .meta({ example: ISO_DATE_TIME_EXAMPLE });\n}\n\nfunction zHexColor(options: Partial<$ZodCustomParams> = {}): ZodString {\n return z.string()\n .trim()\n .regex(HEX_COLOR_REGEX, {\n error: \"Invalid hex color; must be 6 hexadecimal digits with # prefix (e.g., #FF5733)\",\n ...options,\n })\n .toUpperCase()\n .meta({ example: HEX_COLOR_EXAMPLE });\n}\n\nexport {\n zSlug,\n zMongoId,\n zIsoDateTime,\n zHexColor,\n};"],"mappings":";;;AAOA,SAAS,MAAM,UAAqC,CAAC,GAAc;CACjE,OAAO,EAAE,OAAO,CAAC,CACd,KAAK,CAAC,CACN,IAAA,CAAmB,CAAC,CACpB,IAAA,EAAmB,CAAC,CACpB,MAAM,YAAY;EACjB,OAAO;EACP,GAAG;CACL,CAAC,CAAC,CACD,KAAK,EAAE,SAAS,qBAAqB,CAAC;AAC3C;AAEA,SAAS,SAAS,UAAqC,CAAC,GAAc;CACpE,OAAO,EAAE,OAAO,CAAC,CACd,KAAK,CAAC,CACN,MAAM,gBAAgB;EACrB,OAAO;EACP,GAAG;CACL,CAAC,CAAC,CACD,YAAY,CAAC,CACb,KAAK,EAAE,SAAS,2BAA2B,CAAC;AACjD;AAEA,SAAS,aAAa,UAAqC,CAAC,GAAmB;CAC7E,OAAO,EAAE,IAAI,SAAS;EACpB,OAAO;EACP,GAAG;CACL,CAAC,CAAC,CACC,KAAK,EAAE,SAAS,sBAAsB,CAAC;AAC5C;AAEA,SAAS,UAAU,UAAqC,CAAC,GAAc;CACrE,OAAO,EAAE,OAAO,CAAC,CACd,KAAK,CAAC,CACN,MAAM,iBAAiB;EACtB,OAAO;EACP,GAAG;CACL,CAAC,CAAC,CACD,YAAY,CAAC,CACb,KAAK,EAAE,SAAS,kBAAkB,CAAC;AACxC"}
@@ -0,0 +1,22 @@
1
+ //#region ../../src/shared/types/enum.types.d.ts
2
+ /**
3
+ * Converts a tuple of strings into an enum-like object type.
4
+ *
5
+ * @template T - A readonly tuple of strings.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const COLORS = ['RED', 'GREEN', 'BLUE'] as const;
10
+ * type ColorEnum = TupleToEnum<typeof COLORS>;
11
+ * // Resulting type:
12
+ * // {
13
+ * // RED: 'RED';
14
+ * // GREEN: 'GREEN';
15
+ * // BLUE: 'BLUE';
16
+ * // }
17
+ * ```
18
+ */
19
+ type TupleToEnum<T extends readonly string[]> = { [K in T[number]]: K; };
20
+ //#endregion
21
+ export type { TupleToEnum };
22
+ //# sourceMappingURL=enum.types.d.mts.map
@@ -1,19 +1,19 @@
1
- import { createFakeAdminFindQuestionsQueryDto } from "@faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory";
2
- import { createFakeAdminQuestionContentDto } from "@faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory";
3
- import { createFakeAdminQuestionThemeAssignmentDto } from "@faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory";
4
- import { createFakeAdminQuestionDto } from "@faketories/contexts/question/dto/admin-question/admin-question.dto.faketory";
5
- import { createFakeFindQuestionsQueryDto } from "@faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory";
6
- import { createFakeFindRandomQuestionsQueryDto } from "@faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory";
7
- import { createFakeQuestionAuthorCreationDto } from "@faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory";
8
- import { createFakeQuestionContentCreationDto } from "@faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory";
9
- import { createFakeQuestionThemeAssignmentCreationDto } from "@faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory";
10
- import { createFakeQuestionCreationDto } from "@faketories/contexts/question/dto/question-creation/question-creation.dto.faketory";
11
- import { createFakeQuestionContentModificationDto, createFakeQuestionModificationDto } from "@faketories/contexts/question/dto/question-modification/question-modification.dto.faketory";
12
- import { createFakeQuestionThemeAssignmentModificationDto } from "@faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory";
13
- import { createFakeQuestionContentDto } from "@faketories/contexts/question/dto/question/question-content/question-content.dto.faketory";
14
- import { createFakeQuestionThemeAssignmentDto } from "@faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory";
15
- import { createFakeQuestionDto } from "@faketories/contexts/question/dto/question/question.dto.faketory";
16
- import { createFakeQuestionAuthorDto } from "@faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory";
17
- import { createFakeQuestionRejectionDto } from "@faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory";
18
- import { createFakeQuestionStatsDto } from "@faketories/contexts/question/dto/question-stats/question-stats.dto.faketory";
1
+ import { createFakeAdminFindQuestionsQueryDto } from "../../tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs";
2
+ import { createFakeAdminQuestionContentDto } from "../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs";
3
+ import { createFakeAdminQuestionThemeAssignmentDto } from "../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.mjs";
4
+ import { createFakeAdminQuestionDto } from "../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs";
5
+ import { createFakeFindQuestionsQueryDto } from "../../tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs";
6
+ import { createFakeFindRandomQuestionsQueryDto } from "../../tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs";
7
+ import { createFakeQuestionAuthorCreationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs";
8
+ import { createFakeQuestionContentCreationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs";
9
+ import { createFakeQuestionThemeAssignmentCreationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.mjs";
10
+ import { createFakeQuestionCreationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs";
11
+ import { createFakeQuestionContentModificationDto, createFakeQuestionModificationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs";
12
+ import { createFakeQuestionThemeAssignmentModificationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs";
13
+ import { createFakeQuestionContentDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs";
14
+ import { createFakeQuestionThemeAssignmentDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs";
15
+ import { createFakeQuestionDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs";
16
+ import { createFakeQuestionAuthorDto } from "../../tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs";
17
+ import { createFakeQuestionRejectionDto } from "../../tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs";
18
+ import { createFakeQuestionStatsDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.mjs";
19
19
  export { createFakeAdminFindQuestionsQueryDto, createFakeAdminQuestionContentDto, createFakeAdminQuestionDto, createFakeAdminQuestionThemeAssignmentDto, createFakeFindQuestionsQueryDto, createFakeFindRandomQuestionsQueryDto, createFakeQuestionAuthorCreationDto, createFakeQuestionAuthorDto, createFakeQuestionContentCreationDto, createFakeQuestionContentDto, createFakeQuestionContentModificationDto, createFakeQuestionCreationDto, createFakeQuestionDto, createFakeQuestionModificationDto, createFakeQuestionRejectionDto, createFakeQuestionStatsDto, createFakeQuestionThemeAssignmentCreationDto, createFakeQuestionThemeAssignmentDto, createFakeQuestionThemeAssignmentModificationDto };
@@ -1,19 +1,19 @@
1
- import { createFakeAdminFindQuestionsQueryDto } from "@faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory";
2
- import { createFakeAdminQuestionContentDto } from "@faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory";
3
- import { createFakeAdminQuestionThemeAssignmentDto } from "@faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory";
4
- import { createFakeAdminQuestionDto } from "@faketories/contexts/question/dto/admin-question/admin-question.dto.faketory";
5
- import { createFakeFindQuestionsQueryDto } from "@faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory";
6
- import { createFakeFindRandomQuestionsQueryDto } from "@faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory";
7
- import { createFakeQuestionAuthorCreationDto } from "@faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory";
8
- import { createFakeQuestionContentCreationDto } from "@faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory";
9
- import { createFakeQuestionThemeAssignmentCreationDto } from "@faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory";
10
- import { createFakeQuestionCreationDto } from "@faketories/contexts/question/dto/question-creation/question-creation.dto.faketory";
11
- import { createFakeQuestionContentModificationDto, createFakeQuestionModificationDto } from "@faketories/contexts/question/dto/question-modification/question-modification.dto.faketory";
12
- import { createFakeQuestionThemeAssignmentModificationDto } from "@faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory";
13
- import { createFakeQuestionContentDto } from "@faketories/contexts/question/dto/question/question-content/question-content.dto.faketory";
14
- import { createFakeQuestionThemeAssignmentDto } from "@faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory";
15
- import { createFakeQuestionDto } from "@faketories/contexts/question/dto/question/question.dto.faketory";
16
- import { createFakeQuestionAuthorDto } from "@faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory";
17
- import { createFakeQuestionRejectionDto } from "@faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory";
18
- import { createFakeQuestionStatsDto } from "@faketories/contexts/question/dto/question-stats/question-stats.dto.faketory";
1
+ import { createFakeAdminFindQuestionsQueryDto } from "../../tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs";
2
+ import { createFakeAdminQuestionContentDto } from "../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs";
3
+ import { createFakeAdminQuestionThemeAssignmentDto } from "../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.mjs";
4
+ import { createFakeQuestionAuthorDto } from "../../tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs";
5
+ import { createFakeQuestionRejectionDto } from "../../tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs";
6
+ import { createFakeAdminQuestionDto } from "../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs";
7
+ import { createFakeFindQuestionsQueryDto } from "../../tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs";
8
+ import { createFakeFindRandomQuestionsQueryDto } from "../../tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs";
9
+ import { createFakeQuestionAuthorCreationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs";
10
+ import { createFakeQuestionContentCreationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs";
11
+ import { createFakeQuestionThemeAssignmentCreationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.mjs";
12
+ import { createFakeQuestionCreationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs";
13
+ import { createFakeQuestionContentModificationDto, createFakeQuestionModificationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs";
14
+ import { createFakeQuestionThemeAssignmentModificationDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs";
15
+ import { createFakeQuestionContentDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs";
16
+ import { createFakeQuestionThemeAssignmentDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs";
17
+ import { createFakeQuestionDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs";
18
+ import { createFakeQuestionStatsDto } from "../../tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.mjs";
19
19
  export { createFakeAdminFindQuestionsQueryDto, createFakeAdminQuestionContentDto, createFakeAdminQuestionDto, createFakeAdminQuestionThemeAssignmentDto, createFakeFindQuestionsQueryDto, createFakeFindRandomQuestionsQueryDto, createFakeQuestionAuthorCreationDto, createFakeQuestionAuthorDto, createFakeQuestionContentCreationDto, createFakeQuestionContentDto, createFakeQuestionContentModificationDto, createFakeQuestionCreationDto, createFakeQuestionDto, createFakeQuestionModificationDto, createFakeQuestionRejectionDto, createFakeQuestionStatsDto, createFakeQuestionThemeAssignmentCreationDto, createFakeQuestionThemeAssignmentDto, createFakeQuestionThemeAssignmentModificationDto };
@@ -1,5 +1,5 @@
1
- import { createFakeAdminFindQuestionThemesQueryDto } from "@faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory";
2
- import { createFakeFindQuestionThemesQueryDto } from "@faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory";
3
- import { createFakeAdminQuestionThemeDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto } from "@faketories/contexts/question-theme/dto/question-theme.dto.faketory";
4
- import { createFakeQuestionThemeStatsDto } from "@faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory";
1
+ import { createFakeAdminFindQuestionThemesQueryDto } from "../../tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.mjs";
2
+ import { createFakeFindQuestionThemesQueryDto } from "../../tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs";
3
+ import { createFakeAdminQuestionThemeDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto } from "../../tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs";
4
+ import { createFakeQuestionThemeStatsDto } from "../../tests/shared/utils/faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory.mjs";
5
5
  export { createFakeAdminFindQuestionThemesQueryDto, createFakeAdminQuestionThemeDto, createFakeFindQuestionThemesQueryDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto, createFakeQuestionThemeStatsDto };
@@ -1,5 +1,5 @@
1
- import { createFakeAdminFindQuestionThemesQueryDto } from "@faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory";
2
- import { createFakeFindQuestionThemesQueryDto } from "@faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory";
3
- import { createFakeAdminQuestionThemeDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto } from "@faketories/contexts/question-theme/dto/question-theme.dto.faketory";
4
- import { createFakeQuestionThemeStatsDto } from "@faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory";
1
+ import { createFakeAdminQuestionThemeDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto } from "../../tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs";
2
+ import { createFakeAdminFindQuestionThemesQueryDto } from "../../tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.mjs";
3
+ import { createFakeFindQuestionThemesQueryDto } from "../../tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs";
4
+ import { createFakeQuestionThemeStatsDto } from "../../tests/shared/utils/faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory.mjs";
5
5
  export { createFakeAdminFindQuestionThemesQueryDto, createFakeAdminQuestionThemeDto, createFakeFindQuestionThemesQueryDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto, createFakeQuestionThemeStatsDto };
@@ -1,3 +1,3 @@
1
- import { createFakeLocalizationOptions, createFakeLocalizedText, createFakeLocalizedTexts } from "@faketories/shared/locale/locale.faketory";
2
- import { createFakeApiResponseExceptionDto, createFakeApiResponseExceptionValidationDetailsDto } from "@faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory";
1
+ import { createFakeLocalizationOptions, createFakeLocalizedText, createFakeLocalizedTexts } from "../../tests/shared/utils/faketories/shared/locale/locale.faketory.mjs";
2
+ import { createFakeApiResponseExceptionDto, createFakeApiResponseExceptionValidationDetailsDto } from "../../tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs";
3
3
  export { createFakeApiResponseExceptionDto, createFakeApiResponseExceptionValidationDetailsDto, createFakeLocalizationOptions, createFakeLocalizedText, createFakeLocalizedTexts };
@@ -1,3 +1,3 @@
1
- import { createFakeLocalizationOptions, createFakeLocalizedText, createFakeLocalizedTexts } from "@faketories/shared/locale/locale.faketory";
2
- import { createFakeApiResponseExceptionDto, createFakeApiResponseExceptionValidationDetailsDto } from "@faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory";
1
+ import { createFakeLocalizationOptions, createFakeLocalizedText, createFakeLocalizedTexts } from "../../tests/shared/utils/faketories/shared/locale/locale.faketory.mjs";
2
+ import { createFakeApiResponseExceptionDto, createFakeApiResponseExceptionValidationDetailsDto } from "../../tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs";
3
3
  export { createFakeApiResponseExceptionDto, createFakeApiResponseExceptionValidationDetailsDto, createFakeLocalizationOptions, createFakeLocalizedText, createFakeLocalizedTexts };
@@ -0,0 +1,6 @@
1
+ import { AdminFindQuestionsQueryDto } from "../../../../../../../../src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.mjs";
2
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.d.ts
3
+ declare function createFakeAdminFindQuestionsQueryDto(overrides?: Partial<AdminFindQuestionsQueryDto>): AdminFindQuestionsQueryDto;
4
+ //#endregion
5
+ export { createFakeAdminFindQuestionsQueryDto };
6
+ //# sourceMappingURL=admin-find-questions-query.dto.faketory.d.mts.map
@@ -0,0 +1,25 @@
1
+ import { SORT_ORDERS } from "../../../../../../../../src/shared/domain/constants/sort/sort.constants.mjs";
2
+ import "../../../../../../../../src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.mjs";
3
+ import { ADMIN_QUESTION_SORTABLE_FIELDS, QUESTION_AUTHOR_ROLES, QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES, QUESTION_STATUSES } from "../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
4
+ import { LIMIT_QUERY_KEY } from "../../../../../../../../src/shared/application/dto/constants/limit-query.dto.constants.mjs";
5
+ import { SORT_BY_QUERY_KEY, SORT_ORDER_QUERY_KEY } from "../../../../../../../../src/shared/application/dto/constants/sort-query.dto.constants.mjs";
6
+ import { QUESTION_AUTHOR_ROLE_QUERY_KEY, QUESTION_CATEGORY_QUERY_KEY, QUESTION_COGNITIVE_DIFFICULTY_QUERY_KEY, QUESTION_STATUS_QUERY_KEY, QUESTION_THEME_IDS_QUERY_KEY } from "../../../../../../../../src/contexts/question/application/dto/shared/constants/question-filter-query.dto.constants.mjs";
7
+ import { faker } from "@faker-js/faker";
8
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.ts
9
+ function createFakeAdminFindQuestionsQueryDto(overrides = {}) {
10
+ return {
11
+ [SORT_BY_QUERY_KEY]: faker.helpers.arrayElement(ADMIN_QUESTION_SORTABLE_FIELDS),
12
+ [SORT_ORDER_QUERY_KEY]: faker.helpers.arrayElement(SORT_ORDERS),
13
+ [LIMIT_QUERY_KEY]: faker.helpers.maybe(() => faker.number.int({ min: 0 })) ?? 50,
14
+ [QUESTION_STATUS_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_STATUSES)),
15
+ [QUESTION_CATEGORY_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_CATEGORIES)),
16
+ [QUESTION_COGNITIVE_DIFFICULTY_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES)),
17
+ [QUESTION_AUTHOR_ROLE_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_AUTHOR_ROLES)),
18
+ [QUESTION_THEME_IDS_QUERY_KEY]: faker.helpers.maybe(() => [faker.database.mongodbObjectId()]),
19
+ ...overrides
20
+ };
21
+ }
22
+ //#endregion
23
+ export { createFakeAdminFindQuestionsQueryDto };
24
+
25
+ //# sourceMappingURL=admin-find-questions-query.dto.faketory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-find-questions-query.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport { SORT_ORDERS } from \"@shared/domain/constants/sort/sort.constants\";\nimport { SORT_BY_QUERY_KEY, SORT_ORDER_QUERY_KEY } from \"@shared/application/dto/constants/sort-query.dto.constants\";\nimport { LIMIT_QUERY_KEY } from \"@shared/application/dto/constants/limit-query.dto.constants\";\nimport { LIMIT_DEFAULT, LIMIT_MINIMUM } from \"@shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants\";\n\nimport { ADMIN_QUESTION_SORTABLE_FIELDS, QUESTION_AUTHOR_ROLES, QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES, QUESTION_STATUSES } from \"@question/domain/constants/question.constants\";\nimport { QUESTION_AUTHOR_ROLE_QUERY_KEY, QUESTION_CATEGORY_QUERY_KEY, QUESTION_COGNITIVE_DIFFICULTY_QUERY_KEY, QUESTION_STATUS_QUERY_KEY, QUESTION_THEME_IDS_QUERY_KEY } from \"@question/application/dto/shared/constants/question-filter-query.dto.constants\";\nimport type { AdminFindQuestionsQueryDto } from \"@question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape\";\n\nfunction createFakeAdminFindQuestionsQueryDto(overrides: Partial<AdminFindQuestionsQueryDto> = {}): AdminFindQuestionsQueryDto {\n return {\n [SORT_BY_QUERY_KEY]: faker.helpers.arrayElement(ADMIN_QUESTION_SORTABLE_FIELDS),\n [SORT_ORDER_QUERY_KEY]: faker.helpers.arrayElement(SORT_ORDERS),\n [LIMIT_QUERY_KEY]: faker.helpers.maybe(() => faker.number.int({ min: LIMIT_MINIMUM })) ?? LIMIT_DEFAULT,\n [QUESTION_STATUS_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_STATUSES)),\n [QUESTION_CATEGORY_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_CATEGORIES)),\n [QUESTION_COGNITIVE_DIFFICULTY_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES)),\n [QUESTION_AUTHOR_ROLE_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_AUTHOR_ROLES)),\n [QUESTION_THEME_IDS_QUERY_KEY]: faker.helpers.maybe(() => [faker.database.mongodbObjectId()]),\n ...overrides,\n };\n}\n\nexport { createFakeAdminFindQuestionsQueryDto };"],"mappings":";;;;;;;;AAWA,SAAS,qCAAqC,YAAiD,CAAC,GAA+B;CAC7H,OAAO;GACJ,oBAAoB,MAAM,QAAQ,aAAa,8BAA8B;GAC7E,uBAAuB,MAAM,QAAQ,aAAa,WAAW;GAC7D,kBAAkB,MAAM,QAAQ,YAAY,MAAM,OAAO,IAAI,EAAE,KAAA,EAAmB,CAAC,CAAC,KAAA;GACpF,4BAA4B,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,iBAAiB,CAAC;GACnG,8BAA8B,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,mBAAmB,CAAC;GACvG,0CAA0C,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,+BAA+B,CAAC;GAC/H,iCAAiC,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,qBAAqB,CAAC;GAC5G,+BAA+B,MAAM,QAAQ,YAAY,CAAC,MAAM,SAAS,gBAAgB,CAAC,CAAC;EAC5F,GAAG;CACL;AACF"}
@@ -0,0 +1,6 @@
1
+ import { AdminQuestionContentDto } from "../../../../../../../../../src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.mjs";
2
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.d.ts
3
+ declare function createFakeAdminQuestionContentDto(adminQuestionContentDto?: Partial<AdminQuestionContentDto>): AdminQuestionContentDto;
4
+ //#endregion
5
+ export { createFakeAdminQuestionContentDto };
6
+ //# sourceMappingURL=admin-question-content.dto.faketory.d.mts.map
@@ -0,0 +1,16 @@
1
+ import { createFakeLocalizedText, createFakeLocalizedTexts } from "../../../../../shared/locale/locale.faketory.mjs";
2
+ import { faker } from "@faker-js/faker";
3
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.ts
4
+ function createFakeAdminQuestionContentDto(adminQuestionContentDto = {}) {
5
+ return {
6
+ statement: createFakeLocalizedText(),
7
+ answer: createFakeLocalizedText(),
8
+ context: faker.helpers.maybe(createFakeLocalizedText),
9
+ trivia: faker.helpers.maybe(createFakeLocalizedTexts),
10
+ ...adminQuestionContentDto
11
+ };
12
+ }
13
+ //#endregion
14
+ export { createFakeAdminQuestionContentDto };
15
+
16
+ //# sourceMappingURL=admin-question-content.dto.faketory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-question-content.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { AdminQuestionContentDto } from \"@question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape\";\n\nimport { createFakeLocalizedText, createFakeLocalizedTexts } from \"@faketories/shared/locale/locale.faketory\";\n\nfunction createFakeAdminQuestionContentDto(adminQuestionContentDto: Partial<AdminQuestionContentDto> = {}): AdminQuestionContentDto {\n return {\n statement: createFakeLocalizedText(),\n answer: createFakeLocalizedText(),\n context: faker.helpers.maybe(createFakeLocalizedText),\n trivia: faker.helpers.maybe(createFakeLocalizedTexts),\n ...adminQuestionContentDto,\n };\n}\n\nexport {\n createFakeAdminQuestionContentDto,\n};"],"mappings":";;;AAMA,SAAS,kCAAkC,0BAA4D,CAAC,GAA4B;CAClI,OAAO;EACL,WAAW,wBAAwB;EACnC,QAAQ,wBAAwB;EAChC,SAAS,MAAM,QAAQ,MAAM,uBAAuB;EACpD,QAAQ,MAAM,QAAQ,MAAM,wBAAwB;EACpD,GAAG;CACL;AACF"}
@@ -0,0 +1,6 @@
1
+ import { AdminQuestionThemeAssignmentDto } from "../../../../../../../../../src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.mjs";
2
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.d.ts
3
+ declare function createFakeAdminQuestionThemeAssignmentDto(adminQuestionThemeAssignmentDto?: Partial<AdminQuestionThemeAssignmentDto>): AdminQuestionThemeAssignmentDto;
4
+ //#endregion
5
+ export { createFakeAdminQuestionThemeAssignmentDto };
6
+ //# sourceMappingURL=admin-question-theme-assignment.dto.faketory.d.mts.map
@@ -0,0 +1,15 @@
1
+ import { createFakeAdminQuestionThemeDto } from "../../../../question-theme/dto/question-theme.dto.faketory.mjs";
2
+ import { faker } from "@faker-js/faker";
3
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.ts
4
+ function createFakeAdminQuestionThemeAssignmentDto(adminQuestionThemeAssignmentDto = {}) {
5
+ return {
6
+ theme: createFakeAdminQuestionThemeDto(),
7
+ isPrimary: faker.datatype.boolean(),
8
+ isHint: faker.datatype.boolean(),
9
+ ...adminQuestionThemeAssignmentDto
10
+ };
11
+ }
12
+ //#endregion
13
+ export { createFakeAdminQuestionThemeAssignmentDto };
14
+
15
+ //# sourceMappingURL=admin-question-theme-assignment.dto.faketory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-question-theme-assignment.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { AdminQuestionThemeAssignmentDto } from \"@question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape\";\n\nimport { createFakeAdminQuestionThemeDto } from \"@faketories/contexts/question-theme/dto/question-theme.dto.faketory\";\n\nfunction createFakeAdminQuestionThemeAssignmentDto(adminQuestionThemeAssignmentDto: Partial<AdminQuestionThemeAssignmentDto> = {}): AdminQuestionThemeAssignmentDto {\n return {\n theme: createFakeAdminQuestionThemeDto(),\n isPrimary: faker.datatype.boolean(),\n isHint: faker.datatype.boolean(),\n ...adminQuestionThemeAssignmentDto,\n };\n}\n\nexport {\n createFakeAdminQuestionThemeAssignmentDto,\n};"],"mappings":";;;AAMA,SAAS,0CAA0C,kCAA4E,CAAC,GAAoC;CAClK,OAAO;EACL,OAAO,gCAAgC;EACvC,WAAW,MAAM,SAAS,QAAQ;EAClC,QAAQ,MAAM,SAAS,QAAQ;EAC/B,GAAG;CACL;AACF"}
@@ -0,0 +1,6 @@
1
+ import { AdminQuestionDto } from "../../../../../../../../src/contexts/question/application/dto/admin-question/admin-question.dto.shape.mjs";
2
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.d.ts
3
+ declare function createFakeAdminQuestionDto(adminQuestionDto?: Partial<AdminQuestionDto>): AdminQuestionDto;
4
+ //#endregion
5
+ export { createFakeAdminQuestionDto };
6
+ //# sourceMappingURL=admin-question.dto.faketory.d.mts.map
@@ -0,0 +1,27 @@
1
+ import { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES, QUESTION_STATUSES } from "../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
2
+ import { createFakeAdminQuestionContentDto } from "./admin-question-content/admin-question-content.dto.faketory.mjs";
3
+ import { createFakeAdminQuestionThemeAssignmentDto } from "./admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.mjs";
4
+ import { createFakeQuestionAuthorDto } from "../shared/question-author/question-author.dto.faketory.mjs";
5
+ import { createFakeQuestionRejectionDto } from "../shared/question-rejection/question-rejection.dto.faketory.mjs";
6
+ import { faker } from "@faker-js/faker";
7
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.ts
8
+ function createFakeAdminQuestionDto(adminQuestionDto = {}) {
9
+ return {
10
+ id: faker.database.mongodbObjectId(),
11
+ category: faker.helpers.arrayElement(QUESTION_CATEGORIES),
12
+ themes: [createFakeAdminQuestionThemeAssignmentDto()],
13
+ content: createFakeAdminQuestionContentDto(),
14
+ cognitiveDifficulty: faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES),
15
+ author: createFakeQuestionAuthorDto(),
16
+ status: faker.helpers.arrayElement(QUESTION_STATUSES),
17
+ rejection: faker.helpers.maybe(createFakeQuestionRejectionDto),
18
+ sourceUrls: faker.helpers.uniqueArray(() => faker.internet.url(), 2),
19
+ createdAt: faker.date.anytime().toISOString(),
20
+ updatedAt: faker.date.anytime().toISOString(),
21
+ ...adminQuestionDto
22
+ };
23
+ }
24
+ //#endregion
25
+ export { createFakeAdminQuestionDto };
26
+
27
+ //# sourceMappingURL=admin-question.dto.faketory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-question.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { AdminQuestionDto } from \"@question/application/dto/admin-question/admin-question.dto.shape\";\nimport { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES, QUESTION_STATUSES } from \"@question/domain/constants/question.constants\";\n\nimport { createFakeAdminQuestionThemeAssignmentDto } from \"@faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory\";\nimport { createFakeAdminQuestionContentDto } from \"@faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory\";\nimport { createFakeQuestionAuthorDto } from \"@faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory\";\nimport { createFakeQuestionRejectionDto } from \"@faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory\";\n\nfunction createFakeAdminQuestionDto(adminQuestionDto: Partial<AdminQuestionDto> = {}): AdminQuestionDto {\n return {\n id: faker.database.mongodbObjectId(),\n category: faker.helpers.arrayElement(QUESTION_CATEGORIES),\n themes: [createFakeAdminQuestionThemeAssignmentDto()],\n content: createFakeAdminQuestionContentDto(),\n cognitiveDifficulty: faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES),\n author: createFakeQuestionAuthorDto(),\n status: faker.helpers.arrayElement(QUESTION_STATUSES),\n rejection: faker.helpers.maybe(createFakeQuestionRejectionDto),\n sourceUrls: faker.helpers.uniqueArray(() => faker.internet.url(), 2),\n createdAt: faker.date.anytime().toISOString(),\n updatedAt: faker.date.anytime().toISOString(),\n ...adminQuestionDto,\n };\n}\n\nexport {\n createFakeAdminQuestionDto,\n};"],"mappings":";;;;;;;AAUA,SAAS,2BAA2B,mBAA8C,CAAC,GAAqB;CACtG,OAAO;EACL,IAAI,MAAM,SAAS,gBAAgB;EACnC,UAAU,MAAM,QAAQ,aAAa,mBAAmB;EACxD,QAAQ,CAAC,0CAA0C,CAAC;EACpD,SAAS,kCAAkC;EAC3C,qBAAqB,MAAM,QAAQ,aAAa,+BAA+B;EAC/E,QAAQ,4BAA4B;EACpC,QAAQ,MAAM,QAAQ,aAAa,iBAAiB;EACpD,WAAW,MAAM,QAAQ,MAAM,8BAA8B;EAC7D,YAAY,MAAM,QAAQ,kBAAkB,MAAM,SAAS,IAAI,GAAG,CAAC;EACnE,WAAW,MAAM,KAAK,QAAQ,CAAC,CAAC,YAAY;EAC5C,WAAW,MAAM,KAAK,QAAQ,CAAC,CAAC,YAAY;EAC5C,GAAG;CACL;AACF"}
@@ -0,0 +1,6 @@
1
+ import { FindQuestionsQueryDto } from "../../../../../../../../src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.mjs";
2
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.d.ts
3
+ declare function createFakeFindQuestionsQueryDto(overrides?: Partial<FindQuestionsQueryDto>): FindQuestionsQueryDto;
4
+ //#endregion
5
+ export { createFakeFindQuestionsQueryDto };
6
+ //# sourceMappingURL=find-questions-query.dto.faketory.d.mts.map
@@ -0,0 +1,24 @@
1
+ import { SORT_ORDERS } from "../../../../../../../../src/shared/domain/constants/sort/sort.constants.mjs";
2
+ import "../../../../../../../../src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.mjs";
3
+ import { QUESTION_AUTHOR_ROLES, QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES, QUESTION_SORTABLE_FIELDS } from "../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
4
+ import { LIMIT_QUERY_KEY } from "../../../../../../../../src/shared/application/dto/constants/limit-query.dto.constants.mjs";
5
+ import { SORT_BY_QUERY_KEY, SORT_ORDER_QUERY_KEY } from "../../../../../../../../src/shared/application/dto/constants/sort-query.dto.constants.mjs";
6
+ import { QUESTION_AUTHOR_ROLE_QUERY_KEY, QUESTION_CATEGORY_QUERY_KEY, QUESTION_COGNITIVE_DIFFICULTY_QUERY_KEY, QUESTION_THEME_IDS_QUERY_KEY } from "../../../../../../../../src/contexts/question/application/dto/shared/constants/question-filter-query.dto.constants.mjs";
7
+ import { faker } from "@faker-js/faker";
8
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.ts
9
+ function createFakeFindQuestionsQueryDto(overrides = {}) {
10
+ return {
11
+ [SORT_BY_QUERY_KEY]: faker.helpers.arrayElement(QUESTION_SORTABLE_FIELDS),
12
+ [SORT_ORDER_QUERY_KEY]: faker.helpers.arrayElement(SORT_ORDERS),
13
+ [LIMIT_QUERY_KEY]: faker.helpers.maybe(() => faker.number.int({ min: 0 })) ?? 50,
14
+ [QUESTION_CATEGORY_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_CATEGORIES)),
15
+ [QUESTION_COGNITIVE_DIFFICULTY_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES)),
16
+ [QUESTION_AUTHOR_ROLE_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_AUTHOR_ROLES)),
17
+ [QUESTION_THEME_IDS_QUERY_KEY]: faker.helpers.maybe(() => [faker.database.mongodbObjectId()]),
18
+ ...overrides
19
+ };
20
+ }
21
+ //#endregion
22
+ export { createFakeFindQuestionsQueryDto };
23
+
24
+ //# sourceMappingURL=find-questions-query.dto.faketory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-questions-query.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport { SORT_ORDERS } from \"@shared/domain/constants/sort/sort.constants\";\nimport { SORT_BY_QUERY_KEY, SORT_ORDER_QUERY_KEY } from \"@shared/application/dto/constants/sort-query.dto.constants\";\nimport { LIMIT_QUERY_KEY } from \"@shared/application/dto/constants/limit-query.dto.constants\";\nimport { LIMIT_DEFAULT, LIMIT_MINIMUM } from \"@shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants\";\n\nimport { QUESTION_AUTHOR_ROLES, QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES, QUESTION_SORTABLE_FIELDS } from \"@question/domain/constants/question.constants\";\nimport { QUESTION_AUTHOR_ROLE_QUERY_KEY, QUESTION_CATEGORY_QUERY_KEY, QUESTION_COGNITIVE_DIFFICULTY_QUERY_KEY, QUESTION_THEME_IDS_QUERY_KEY } from \"@question/application/dto/shared/constants/question-filter-query.dto.constants\";\nimport type { FindQuestionsQueryDto } from \"@question/application/dto/find-questions-query/find-questions-query.dto.shape\";\n\nfunction createFakeFindQuestionsQueryDto(overrides: Partial<FindQuestionsQueryDto> = {}): FindQuestionsQueryDto {\n return {\n [SORT_BY_QUERY_KEY]: faker.helpers.arrayElement(QUESTION_SORTABLE_FIELDS),\n [SORT_ORDER_QUERY_KEY]: faker.helpers.arrayElement(SORT_ORDERS),\n [LIMIT_QUERY_KEY]: faker.helpers.maybe(() => faker.number.int({ min: LIMIT_MINIMUM })) ?? LIMIT_DEFAULT,\n [QUESTION_CATEGORY_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_CATEGORIES)),\n [QUESTION_COGNITIVE_DIFFICULTY_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES)),\n [QUESTION_AUTHOR_ROLE_QUERY_KEY]: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_AUTHOR_ROLES)),\n [QUESTION_THEME_IDS_QUERY_KEY]: faker.helpers.maybe(() => [faker.database.mongodbObjectId()]),\n ...overrides,\n };\n}\n\nexport { createFakeFindQuestionsQueryDto };"],"mappings":";;;;;;;;AAWA,SAAS,gCAAgC,YAA4C,CAAC,GAA0B;CAC9G,OAAO;GACJ,oBAAoB,MAAM,QAAQ,aAAa,wBAAwB;GACvE,uBAAuB,MAAM,QAAQ,aAAa,WAAW;GAC7D,kBAAkB,MAAM,QAAQ,YAAY,MAAM,OAAO,IAAI,EAAE,KAAA,EAAmB,CAAC,CAAC,KAAA;GACpF,8BAA8B,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,mBAAmB,CAAC;GACvG,0CAA0C,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,+BAA+B,CAAC;GAC/H,iCAAiC,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,qBAAqB,CAAC;GAC5G,+BAA+B,MAAM,QAAQ,YAAY,CAAC,MAAM,SAAS,gBAAgB,CAAC,CAAC;EAC5F,GAAG;CACL;AACF"}
@@ -0,0 +1,6 @@
1
+ import { FindRandomQuestionsQueryDto } from "../../../../../../../../src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.mjs";
2
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.d.ts
3
+ declare function createFakeFindRandomQuestionsQueryDto(overrides?: Partial<FindRandomQuestionsQueryDto>): FindRandomQuestionsQueryDto;
4
+ //#endregion
5
+ export { createFakeFindRandomQuestionsQueryDto };
6
+ //# sourceMappingURL=find-random-questions-query.dto.faketory.d.mts.map