@goat-it/schemas 0.0.17-beta → 0.0.18

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 (236) hide show
  1. package/dist/question/index.d.mts +21 -20
  2. package/dist/question/index.mjs +20 -19
  3. package/dist/question-theme/index.d.mts +11 -10
  4. package/dist/question-theme/index.mjs +10 -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/testing/question/index.d.mts +19 -18
  12. package/dist/testing/question/index.mjs +19 -18
  13. package/dist/testing/question-theme/index.d.mts +5 -4
  14. package/dist/testing/question-theme/index.mjs +5 -4
  15. package/dist/testing/shared/index.d.mts +2 -2
  16. package/dist/testing/shared/index.mjs +2 -2
  17. package/package.json +3 -3
  18. package/dist/src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.d.mts +0 -24
  19. package/dist/src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.mjs +0 -24
  20. package/dist/src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.mjs.map +0 -1
  21. package/dist/src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.d.mts +0 -12
  22. package/dist/src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.mjs +0 -13
  23. package/dist/src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.mjs.map +0 -1
  24. package/dist/src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.d.mts +0 -22
  25. package/dist/src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.mjs +0 -13
  26. package/dist/src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.mjs.map +0 -1
  27. package/dist/src/contexts/question/application/dto/admin-question/admin-question.dto.shape.d.mts +0 -57
  28. package/dist/src/contexts/question/application/dto/admin-question/admin-question.dto.shape.mjs +0 -25
  29. package/dist/src/contexts/question/application/dto/admin-question/admin-question.dto.shape.mjs.map +0 -1
  30. package/dist/src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.d.mts +0 -22
  31. package/dist/src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.mjs +0 -23
  32. package/dist/src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.mjs.map +0 -1
  33. package/dist/src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.d.mts +0 -12
  34. package/dist/src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.mjs +0 -14
  35. package/dist/src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.mjs.map +0 -1
  36. package/dist/src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.d.mts +0 -14
  37. package/dist/src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.mjs +0 -17
  38. package/dist/src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.mjs.map +0 -1
  39. package/dist/src/contexts/question/application/dto/question/question-content/question-content.dto.shape.d.mts +0 -12
  40. package/dist/src/contexts/question/application/dto/question/question-content/question-content.dto.shape.mjs +0 -13
  41. package/dist/src/contexts/question/application/dto/question/question-content/question-content.dto.shape.mjs.map +0 -1
  42. package/dist/src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.d.mts +0 -22
  43. package/dist/src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.mjs +0 -13
  44. package/dist/src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.mjs.map +0 -1
  45. package/dist/src/contexts/question/application/dto/question/question.dto.shape.d.mts +0 -57
  46. package/dist/src/contexts/question/application/dto/question/question.dto.shape.mjs +0 -25
  47. package/dist/src/contexts/question/application/dto/question/question.dto.shape.mjs.map +0 -1
  48. package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.d.mts +0 -13
  49. package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.mjs +0 -11
  50. package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.mjs.map +0 -1
  51. package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.d.mts +0 -12
  52. package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.mjs +0 -13
  53. package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.mjs.map +0 -1
  54. package/dist/src/contexts/question/application/dto/question-creation/question-creation.dto.shape.d.mts +0 -30
  55. package/dist/src/contexts/question/application/dto/question-creation/question-creation.dto.shape.mjs +0 -20
  56. package/dist/src/contexts/question/application/dto/question-creation/question-creation.dto.shape.mjs.map +0 -1
  57. package/dist/src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.d.mts +0 -11
  58. package/dist/src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.mjs +0 -13
  59. package/dist/src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.mjs.map +0 -1
  60. package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.d.mts +0 -12
  61. package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.mjs +0 -13
  62. package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.mjs.map +0 -1
  63. package/dist/src/contexts/question/application/dto/question-modification/question-modification.dto.shape.d.mts +0 -18
  64. package/dist/src/contexts/question/application/dto/question-modification/question-modification.dto.shape.mjs +0 -14
  65. package/dist/src/contexts/question/application/dto/question-modification/question-modification.dto.shape.mjs.map +0 -1
  66. package/dist/src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.d.mts +0 -10
  67. package/dist/src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.mjs +0 -11
  68. package/dist/src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.mjs.map +0 -1
  69. package/dist/src/contexts/question/application/dto/shared/constants/question-filter-query.dto.constants.mjs +0 -10
  70. package/dist/src/contexts/question/application/dto/shared/constants/question-filter-query.dto.constants.mjs.map +0 -1
  71. package/dist/src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.d.mts +0 -15
  72. package/dist/src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.mjs +0 -14
  73. package/dist/src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.mjs.map +0 -1
  74. package/dist/src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.d.mts +0 -16
  75. package/dist/src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.mjs +0 -11
  76. package/dist/src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.mjs.map +0 -1
  77. package/dist/src/contexts/question/application/dto/shared/zod/refinements/question-author/question-author.dto.zod.refinement.mjs +0 -10
  78. package/dist/src/contexts/question/application/dto/shared/zod/refinements/question-author/question-author.dto.zod.refinement.mjs.map +0 -1
  79. package/dist/src/contexts/question/application/dto/shared/zod/validators/constants/question-sort.dto.zod.validators.constants.d.mts +0 -5
  80. package/dist/src/contexts/question/application/dto/shared/zod/validators/constants/question-sort.dto.zod.validators.constants.mjs +0 -7
  81. package/dist/src/contexts/question/application/dto/shared/zod/validators/constants/question-sort.dto.zod.validators.constants.mjs.map +0 -1
  82. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/constants/question-content.zod.validators.constants.mjs +0 -9
  83. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/constants/question-content.zod.validators.constants.mjs.map +0 -1
  84. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/question-content.dto.zod.validators.mjs +0 -32
  85. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/question-content.dto.zod.validators.mjs.map +0 -1
  86. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-theme-assignment/question-theme-assignment.dto.zod.validators.mjs +0 -12
  87. package/dist/src/contexts/question/application/dto/shared/zod/validators/question-theme-assignment/question-theme-assignment.dto.zod.validators.mjs.map +0 -1
  88. package/dist/src/contexts/question/application/dto/shared/zod/validators/question.dto.zod.validators.mjs +0 -48
  89. package/dist/src/contexts/question/application/dto/shared/zod/validators/question.dto.zod.validators.mjs.map +0 -1
  90. package/dist/src/contexts/question/domain/constants/question.constants.d.mts +0 -24
  91. package/dist/src/contexts/question/domain/constants/question.constants.mjs +0 -61
  92. package/dist/src/contexts/question/domain/constants/question.constants.mjs.map +0 -1
  93. package/dist/src/contexts/question/domain/types/question.value-objects.d.mts +0 -18
  94. package/dist/src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.d.mts +0 -21
  95. package/dist/src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.mjs +0 -19
  96. package/dist/src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.mjs.map +0 -1
  97. package/dist/src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.d.mts +0 -18
  98. package/dist/src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.mjs +0 -18
  99. package/dist/src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.mjs.map +0 -1
  100. package/dist/src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.d.mts +0 -18
  101. package/dist/src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.mjs +0 -17
  102. package/dist/src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.mjs.map +0 -1
  103. package/dist/src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.d.mts +0 -18
  104. package/dist/src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.mjs +0 -18
  105. package/dist/src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.mjs.map +0 -1
  106. package/dist/src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.d.mts +0 -13
  107. package/dist/src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.mjs +0 -14
  108. package/dist/src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.mjs.map +0 -1
  109. package/dist/src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.d.mts +0 -13
  110. package/dist/src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.mjs +0 -14
  111. package/dist/src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.mjs.map +0 -1
  112. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme-sort.dto.zod.validators.constants.d.mts +0 -6
  113. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme-sort.dto.zod.validators.constants.mjs +0 -9
  114. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme-sort.dto.zod.validators.constants.mjs.map +0 -1
  115. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme.zod.validators.constants.mjs +0 -13
  116. package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme.zod.validators.constants.mjs.map +0 -1
  117. package/dist/src/contexts/question-theme/application/dto/zod/validators/question-theme.dto.zod.validators.mjs +0 -46
  118. package/dist/src/contexts/question-theme/application/dto/zod/validators/question-theme.dto.zod.validators.mjs.map +0 -1
  119. package/dist/src/contexts/question-theme/domain/constants/question-theme.constants.d.mts +0 -9
  120. package/dist/src/contexts/question-theme/domain/constants/question-theme.constants.mjs +0 -19
  121. package/dist/src/contexts/question-theme/domain/constants/question-theme.constants.mjs.map +0 -1
  122. package/dist/src/contexts/question-theme/domain/types/question-theme.entities.d.mts +0 -2
  123. package/dist/src/contexts/question-theme/domain/types/question-theme.value-objects.d.mts +0 -9
  124. package/dist/src/shared/application/dto/constants/limit-query.dto.constants.mjs +0 -6
  125. package/dist/src/shared/application/dto/constants/limit-query.dto.constants.mjs.map +0 -1
  126. package/dist/src/shared/application/dto/constants/sort-query.dto.constants.mjs +0 -7
  127. package/dist/src/shared/application/dto/constants/sort-query.dto.constants.mjs.map +0 -1
  128. package/dist/src/shared/application/dto/zod/preprocessors/array/array.zod.preprocessors.mjs +0 -13
  129. package/dist/src/shared/application/dto/zod/preprocessors/array/array.zod.preprocessors.mjs.map +0 -1
  130. package/dist/src/shared/application/dto/zod/refinements/array/array.zod.refinements.mjs +0 -14
  131. package/dist/src/shared/application/dto/zod/refinements/array/array.zod.refinements.mjs.map +0 -1
  132. package/dist/src/shared/application/dto/zod/validators/array/array.zod.validators.mjs +0 -22
  133. package/dist/src/shared/application/dto/zod/validators/array/array.zod.validators.mjs.map +0 -1
  134. package/dist/src/shared/domain/constants/sort/sort.constants.d.mts +0 -5
  135. package/dist/src/shared/domain/constants/sort/sort.constants.mjs +0 -6
  136. package/dist/src/shared/domain/constants/sort/sort.constants.mjs.map +0 -1
  137. package/dist/src/shared/domain/types/sort/sort.types.d.mts +0 -7
  138. package/dist/src/shared/domain/value-objects/locale/helpers/locale.helpers.d.mts +0 -6
  139. package/dist/src/shared/domain/value-objects/locale/helpers/locale.helpers.mjs +0 -9
  140. package/dist/src/shared/domain/value-objects/locale/helpers/locale.helpers.mjs.map +0 -1
  141. package/dist/src/shared/domain/value-objects/locale/locale.constants.d.mts +0 -5
  142. package/dist/src/shared/domain/value-objects/locale/locale.constants.mjs +0 -21
  143. package/dist/src/shared/domain/value-objects/locale/locale.constants.mjs.map +0 -1
  144. package/dist/src/shared/domain/value-objects/locale/locale.types.d.mts +0 -13
  145. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.d.mts +0 -21
  146. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.mjs +0 -25
  147. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.mjs.map +0 -1
  148. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.d.mts +0 -27
  149. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.mjs +0 -14
  150. package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.mjs.map +0 -1
  151. package/dist/src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.d.mts +0 -6
  152. package/dist/src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.mjs +0 -8
  153. package/dist/src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.mjs.map +0 -1
  154. package/dist/src/shared/infrastructure/http/zod/validators/limit/limit.zod.validators.mjs +0 -10
  155. package/dist/src/shared/infrastructure/http/zod/validators/limit/limit.zod.validators.mjs.map +0 -1
  156. package/dist/src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.d.mts +0 -9
  157. package/dist/src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.mjs +0 -18
  158. package/dist/src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.mjs.map +0 -1
  159. package/dist/src/shared/infrastructure/http/zod/validators/localization/localization.zod.validators.mjs +0 -40
  160. package/dist/src/shared/infrastructure/http/zod/validators/localization/localization.zod.validators.mjs.map +0 -1
  161. package/dist/src/shared/infrastructure/http/zod/validators/sort/constants/sort.zod.validators.constants.mjs +0 -7
  162. package/dist/src/shared/infrastructure/http/zod/validators/sort/constants/sort.zod.validators.constants.mjs.map +0 -1
  163. package/dist/src/shared/infrastructure/http/zod/validators/sort/sort.zod.validators.mjs +0 -11
  164. package/dist/src/shared/infrastructure/http/zod/validators/sort/sort.zod.validators.mjs.map +0 -1
  165. package/dist/src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.d.mts +0 -9
  166. package/dist/src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.mjs +0 -12
  167. package/dist/src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.mjs.map +0 -1
  168. package/dist/src/shared/infrastructure/http/zod/validators/string/string.zod.validators.mjs +0 -31
  169. package/dist/src/shared/infrastructure/http/zod/validators/string/string.zod.validators.mjs.map +0 -1
  170. package/dist/src/shared/types/enum.types.d.mts +0 -22
  171. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.d.mts +0 -6
  172. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs +0 -25
  173. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs.map +0 -1
  174. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.d.mts +0 -6
  175. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs +0 -16
  176. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs.map +0 -1
  177. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.d.mts +0 -6
  178. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.mjs +0 -15
  179. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.mjs.map +0 -1
  180. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.d.mts +0 -6
  181. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs +0 -27
  182. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs.map +0 -1
  183. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.d.mts +0 -6
  184. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs +0 -24
  185. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs.map +0 -1
  186. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.d.mts +0 -6
  187. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs +0 -23
  188. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs.map +0 -1
  189. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.d.mts +0 -6
  190. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs +0 -15
  191. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs.map +0 -1
  192. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.d.mts +0 -6
  193. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs +0 -15
  194. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs.map +0 -1
  195. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.d.mts +0 -6
  196. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs +0 -27
  197. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs.map +0 -1
  198. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.d.mts +0 -6
  199. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs +0 -14
  200. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs.map +0 -1
  201. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.d.mts +0 -6
  202. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs +0 -16
  203. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs.map +0 -1
  204. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.d.mts +0 -6
  205. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs +0 -21
  206. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs.map +0 -1
  207. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.d.mts +0 -6
  208. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.mjs +0 -14
  209. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.mjs.map +0 -1
  210. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.d.mts +0 -8
  211. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs +0 -26
  212. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs.map +0 -1
  213. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.d.mts +0 -6
  214. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs +0 -13
  215. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs.map +0 -1
  216. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.d.mts +0 -6
  217. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs +0 -18
  218. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs.map +0 -1
  219. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.d.mts +0 -6
  220. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs +0 -14
  221. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs.map +0 -1
  222. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.d.mts +0 -6
  223. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.mjs +0 -20
  224. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.mjs.map +0 -1
  225. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.d.mts +0 -6
  226. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs +0 -19
  227. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs.map +0 -1
  228. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.d.mts +0 -12
  229. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs +0 -60
  230. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs.map +0 -1
  231. package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.d.mts +0 -8
  232. package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs +0 -32
  233. package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs.map +0 -1
  234. package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.d.mts +0 -8
  235. package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.mjs +0 -36
  236. package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.mjs.map +0 -1
@@ -1,6 +0,0 @@
1
- import { QuestionDto } from "../../../../../../../../src/contexts/question/application/dto/question/question.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.d.ts
3
- declare function createFakeQuestionDto(questionDto?: Partial<QuestionDto>): QuestionDto;
4
- //#endregion
5
- export { createFakeQuestionDto };
6
- //# sourceMappingURL=question.dto.faketory.d.mts.map
@@ -1,27 +0,0 @@
1
- import { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES, QUESTION_STATUSES } from "../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
2
- import { createFakeQuestionAuthorDto } from "../shared/question-author/question-author.dto.faketory.mjs";
3
- import { createFakeQuestionRejectionDto } from "../shared/question-rejection/question-rejection.dto.faketory.mjs";
4
- import { createFakeQuestionContentDto } from "./question-content/question-content.dto.faketory.mjs";
5
- import { createFakeQuestionThemeAssignmentDto } from "./question-theme-assignment/question-theme-assignment.dto.faketory.mjs";
6
- import { faker } from "@faker-js/faker";
7
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.ts
8
- function createFakeQuestionDto(questionDto = {}) {
9
- return {
10
- id: faker.database.mongodbObjectId(),
11
- category: faker.helpers.arrayElement(QUESTION_CATEGORIES),
12
- themes: [createFakeQuestionThemeAssignmentDto()],
13
- content: createFakeQuestionContentDto(),
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
- ...questionDto
22
- };
23
- }
24
- //#endregion
25
- export { createFakeQuestionDto };
26
-
27
- //# sourceMappingURL=question.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionDto } from \"@question/application/dto/question/question.dto.shape\";\nimport { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES, QUESTION_STATUSES } from \"@question/domain/constants/question.constants\";\n\nimport { createFakeQuestionThemeAssignmentDto } from \"@faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory\";\nimport { createFakeQuestionContentDto } from \"@faketories/contexts/question/dto/question/question-content/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 createFakeQuestionDto(questionDto: Partial<QuestionDto> = {}): QuestionDto {\n return {\n id: faker.database.mongodbObjectId(),\n category: faker.helpers.arrayElement(QUESTION_CATEGORIES),\n themes: [createFakeQuestionThemeAssignmentDto()],\n content: createFakeQuestionContentDto(),\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 ...questionDto,\n };\n}\n\nexport {\n createFakeQuestionDto,\n};"],"mappings":";;;;;;;AAUA,SAAS,sBAAsB,cAAoC,CAAC,GAAgB;CAClF,OAAO;EACL,IAAI,MAAM,SAAS,gBAAgB;EACnC,UAAU,MAAM,QAAQ,aAAa,mBAAmB;EACxD,QAAQ,CAAC,qCAAqC,CAAC;EAC/C,SAAS,6BAA6B;EACtC,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"}
@@ -1,6 +0,0 @@
1
- import { QuestionAuthorCreationDto } from "../../../../../../../../../src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.d.ts
3
- declare function createFakeQuestionAuthorCreationDto(creationDto?: Partial<QuestionAuthorCreationDto>): QuestionAuthorCreationDto;
4
- //#endregion
5
- export { createFakeQuestionAuthorCreationDto };
6
- //# sourceMappingURL=question-author-creation.dto.faketory.d.mts.map
@@ -1,14 +0,0 @@
1
- import { QUESTION_CREATION_AUTHOR_ROLES } from "../../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
2
- import { faker } from "@faker-js/faker";
3
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.ts
4
- function createFakeQuestionAuthorCreationDto(creationDto = {}) {
5
- return {
6
- role: faker.helpers.arrayElement(QUESTION_CREATION_AUTHOR_ROLES),
7
- name: faker.internet.username(),
8
- ...creationDto
9
- };
10
- }
11
- //#endregion
12
- export { createFakeQuestionAuthorCreationDto };
13
-
14
- //# sourceMappingURL=question-author-creation.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-author-creation.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionAuthorCreationDto } from \"@question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape\";\nimport { QUESTION_CREATION_AUTHOR_ROLES } from \"@question/domain/constants/question.constants\";\n\nfunction createFakeQuestionAuthorCreationDto(creationDto: Partial<QuestionAuthorCreationDto> = {}): QuestionAuthorCreationDto {\n return {\n role: faker.helpers.arrayElement(QUESTION_CREATION_AUTHOR_ROLES),\n name: faker.internet.username(),\n ...creationDto,\n };\n}\n\nexport { createFakeQuestionAuthorCreationDto };"],"mappings":";;;AAKA,SAAS,oCAAoC,cAAkD,CAAC,GAA8B;CAC5H,OAAO;EACL,MAAM,MAAM,QAAQ,aAAa,8BAA8B;EAC/D,MAAM,MAAM,SAAS,SAAS;EAC9B,GAAG;CACL;AACF"}
@@ -1,6 +0,0 @@
1
- import { QuestionContentCreationDto } from "../../../../../../../../../src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.d.ts
3
- declare function createFakeQuestionContentCreationDto(content?: Partial<QuestionContentCreationDto>): QuestionContentCreationDto;
4
- //#endregion
5
- export { createFakeQuestionContentCreationDto };
6
- //# sourceMappingURL=question-content-creation.dto.faketory.d.mts.map
@@ -1,16 +0,0 @@
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/question-creation/question-content-creation/question-content-creation.dto.faketory.ts
4
- function createFakeQuestionContentCreationDto(content = {}) {
5
- return {
6
- statement: createFakeLocalizedText(),
7
- answer: createFakeLocalizedText(),
8
- context: faker.helpers.maybe(createFakeLocalizedText),
9
- trivia: faker.helpers.maybe(createFakeLocalizedTexts),
10
- ...content
11
- };
12
- }
13
- //#endregion
14
- export { createFakeQuestionContentCreationDto };
15
-
16
- //# sourceMappingURL=question-content-creation.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-content-creation.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionContentCreationDto } from \"@question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape\";\n\nimport { createFakeLocalizedText, createFakeLocalizedTexts } from \"@faketories/shared/locale/locale.faketory\";\n\nfunction createFakeQuestionContentCreationDto(content: Partial<QuestionContentCreationDto> = {}): QuestionContentCreationDto {\n return {\n statement: createFakeLocalizedText(),\n answer: createFakeLocalizedText(),\n context: faker.helpers.maybe(createFakeLocalizedText),\n trivia: faker.helpers.maybe(createFakeLocalizedTexts),\n ...content,\n };\n}\n\nexport { createFakeQuestionContentCreationDto };"],"mappings":";;;AAMA,SAAS,qCAAqC,UAA+C,CAAC,GAA+B;CAC3H,OAAO;EACL,WAAW,wBAAwB;EACnC,QAAQ,wBAAwB;EAChC,SAAS,MAAM,QAAQ,MAAM,uBAAuB;EACpD,QAAQ,MAAM,QAAQ,MAAM,wBAAwB;EACpD,GAAG;CACL;AACF"}
@@ -1,6 +0,0 @@
1
- import { QuestionCreationDto } from "../../../../../../../../src/contexts/question/application/dto/question-creation/question-creation.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.d.ts
3
- declare function createFakeQuestionCreationDto(creationDto?: Partial<QuestionCreationDto>): QuestionCreationDto;
4
- //#endregion
5
- export { createFakeQuestionCreationDto };
6
- //# sourceMappingURL=question-creation.dto.faketory.d.mts.map
@@ -1,21 +0,0 @@
1
- import { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES } from "../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
2
- import { createFakeQuestionAuthorCreationDto } from "./question-author-creation/question-author-creation.dto.faketory.mjs";
3
- import { createFakeQuestionContentCreationDto } from "./question-content-creation/question-content-creation.dto.faketory.mjs";
4
- import { createFakeQuestionThemeAssignmentCreationDto } from "./question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.mjs";
5
- import { faker } from "@faker-js/faker";
6
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.ts
7
- function createFakeQuestionCreationDto(creationDto = {}) {
8
- return {
9
- category: faker.helpers.arrayElement(QUESTION_CATEGORIES),
10
- themes: [createFakeQuestionThemeAssignmentCreationDto()],
11
- content: createFakeQuestionContentCreationDto(),
12
- cognitiveDifficulty: faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES),
13
- author: createFakeQuestionAuthorCreationDto(),
14
- sourceUrls: faker.helpers.uniqueArray(() => faker.internet.url(), 2),
15
- ...creationDto
16
- };
17
- }
18
- //#endregion
19
- export { createFakeQuestionCreationDto };
20
-
21
- //# sourceMappingURL=question-creation.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-creation.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionCreationDto } from \"@question/application/dto/question-creation/question-creation.dto.shape\";\nimport { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES } from \"@question/domain/constants/question.constants\";\n\nimport { createFakeQuestionContentCreationDto } from \"@faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory\";\nimport { createFakeQuestionThemeAssignmentCreationDto } from \"@faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory\";\nimport { createFakeQuestionAuthorCreationDto } from \"@faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory\";\n\nfunction createFakeQuestionCreationDto(creationDto: Partial<QuestionCreationDto> = {}): QuestionCreationDto {\n return {\n category: faker.helpers.arrayElement(QUESTION_CATEGORIES),\n themes: [createFakeQuestionThemeAssignmentCreationDto()],\n content: createFakeQuestionContentCreationDto(),\n cognitiveDifficulty: faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES),\n author: createFakeQuestionAuthorCreationDto(),\n sourceUrls: faker.helpers.uniqueArray(() => faker.internet.url(), 2),\n ...creationDto,\n };\n}\n\nexport { createFakeQuestionCreationDto };"],"mappings":";;;;;;AASA,SAAS,8BAA8B,cAA4C,CAAC,GAAwB;CAC1G,OAAO;EACL,UAAU,MAAM,QAAQ,aAAa,mBAAmB;EACxD,QAAQ,CAAC,6CAA6C,CAAC;EACvD,SAAS,qCAAqC;EAC9C,qBAAqB,MAAM,QAAQ,aAAa,+BAA+B;EAC/E,QAAQ,oCAAoC;EAC5C,YAAY,MAAM,QAAQ,kBAAkB,MAAM,SAAS,IAAI,GAAG,CAAC;EACnE,GAAG;CACL;AACF"}
@@ -1,6 +0,0 @@
1
- import { QuestionThemeAssignmentCreationDto } from "../../../../../../../../../src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.d.ts
3
- declare function createFakeQuestionThemeAssignmentCreationDto(assign?: Partial<QuestionThemeAssignmentCreationDto>): QuestionThemeAssignmentCreationDto;
4
- //#endregion
5
- export { createFakeQuestionThemeAssignmentCreationDto };
6
- //# sourceMappingURL=question-theme-assignment-creation.dto.faketory.d.mts.map
@@ -1,14 +0,0 @@
1
- import { faker } from "@faker-js/faker";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.ts
3
- function createFakeQuestionThemeAssignmentCreationDto(assign = {}) {
4
- return {
5
- themeId: faker.database.mongodbObjectId(),
6
- isPrimary: faker.datatype.boolean(),
7
- isHint: faker.datatype.boolean(),
8
- ...assign
9
- };
10
- }
11
- //#endregion
12
- export { createFakeQuestionThemeAssignmentCreationDto };
13
-
14
- //# sourceMappingURL=question-theme-assignment-creation.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-theme-assignment-creation.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionThemeAssignmentCreationDto } from \"@question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape\";\n\nfunction createFakeQuestionThemeAssignmentCreationDto(assign: Partial<QuestionThemeAssignmentCreationDto> = {}): QuestionThemeAssignmentCreationDto {\n return {\n themeId: faker.database.mongodbObjectId(),\n isPrimary: faker.datatype.boolean(),\n isHint: faker.datatype.boolean(),\n ...assign,\n };\n}\n\nexport { createFakeQuestionThemeAssignmentCreationDto };"],"mappings":";;AAIA,SAAS,6CAA6C,SAAsD,CAAC,GAAuC;CAClJ,OAAO;EACL,SAAS,MAAM,SAAS,gBAAgB;EACxC,WAAW,MAAM,SAAS,QAAQ;EAClC,QAAQ,MAAM,SAAS,QAAQ;EAC/B,GAAG;CACL;AACF"}
@@ -1,8 +0,0 @@
1
- import { QuestionModificationDto } from "../../../../../../../../src/contexts/question/application/dto/question-modification/question-modification.dto.shape.mjs";
2
- import { QuestionContentModificationDto } from "../../../../../../../../src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.mjs";
3
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.d.ts
4
- declare function createFakeQuestionContentModificationDto(overrides?: Partial<QuestionContentModificationDto>): QuestionContentModificationDto;
5
- declare function createFakeQuestionModificationDto(overrides?: Partial<QuestionModificationDto>): QuestionModificationDto;
6
- //#endregion
7
- export { createFakeQuestionContentModificationDto, createFakeQuestionModificationDto };
8
- //# sourceMappingURL=question-modification.dto.faketory.d.mts.map
@@ -1,26 +0,0 @@
1
- import { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES } from "../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
2
- import { createFakeLocalizedText, createFakeLocalizedTexts } from "../../../../shared/locale/locale.faketory.mjs";
3
- import { faker } from "@faker-js/faker";
4
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.ts
5
- function createFakeQuestionContentModificationDto(overrides = {}) {
6
- return {
7
- statement: faker.helpers.maybe(createFakeLocalizedText),
8
- answer: faker.helpers.maybe(createFakeLocalizedText),
9
- context: faker.helpers.maybe(createFakeLocalizedText),
10
- trivia: faker.helpers.maybe(createFakeLocalizedTexts),
11
- ...overrides
12
- };
13
- }
14
- function createFakeQuestionModificationDto(overrides = {}) {
15
- return {
16
- category: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_CATEGORIES)),
17
- cognitiveDifficulty: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES)),
18
- sourceUrls: faker.helpers.maybe(() => [faker.internet.url(), faker.internet.url()]),
19
- content: faker.helpers.maybe(createFakeQuestionContentModificationDto),
20
- ...overrides
21
- };
22
- }
23
- //#endregion
24
- export { createFakeQuestionContentModificationDto, createFakeQuestionModificationDto };
25
-
26
- //# sourceMappingURL=question-modification.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-modification.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES } from \"@question/domain/constants/question.constants\";\nimport type { QuestionContentModificationDto } from \"@question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape\";\nimport type { QuestionModificationDto } from \"@question/application/dto/question-modification/question-modification.dto.shape\";\n\nimport { createFakeLocalizedText, createFakeLocalizedTexts } from \"@faketories/shared/locale/locale.faketory\";\n\nfunction createFakeQuestionContentModificationDto(overrides: Partial<QuestionContentModificationDto> = {}): QuestionContentModificationDto {\n return {\n statement: faker.helpers.maybe(createFakeLocalizedText),\n answer: faker.helpers.maybe(createFakeLocalizedText),\n context: faker.helpers.maybe(createFakeLocalizedText),\n trivia: faker.helpers.maybe(createFakeLocalizedTexts),\n ...overrides,\n };\n}\n\nfunction createFakeQuestionModificationDto(overrides: Partial<QuestionModificationDto> = {}): QuestionModificationDto {\n return {\n category: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_CATEGORIES)),\n cognitiveDifficulty: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES)),\n sourceUrls: faker.helpers.maybe(() => [faker.internet.url(), faker.internet.url()]),\n content: faker.helpers.maybe(createFakeQuestionContentModificationDto),\n ...overrides,\n };\n}\n\nexport {\n createFakeQuestionContentModificationDto,\n createFakeQuestionModificationDto,\n};"],"mappings":";;;;AAQA,SAAS,yCAAyC,YAAqD,CAAC,GAAmC;CACzI,OAAO;EACL,WAAW,MAAM,QAAQ,MAAM,uBAAuB;EACtD,QAAQ,MAAM,QAAQ,MAAM,uBAAuB;EACnD,SAAS,MAAM,QAAQ,MAAM,uBAAuB;EACpD,QAAQ,MAAM,QAAQ,MAAM,wBAAwB;EACpD,GAAG;CACL;AACF;AAEA,SAAS,kCAAkC,YAA8C,CAAC,GAA4B;CACpH,OAAO;EACL,UAAU,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,mBAAmB,CAAC;EACnF,qBAAqB,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,+BAA+B,CAAC;EAC1G,YAAY,MAAM,QAAQ,YAAY,CAAC,MAAM,SAAS,IAAI,GAAG,MAAM,SAAS,IAAI,CAAC,CAAC;EAClF,SAAS,MAAM,QAAQ,MAAM,wCAAwC;EACrE,GAAG;CACL;AACF"}
@@ -1,6 +0,0 @@
1
- import { QuestionThemeAssignmentModificationDto } from "../../../../../../../../src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.d.ts
3
- declare function createFakeQuestionThemeAssignmentModificationDto(overrides?: Partial<QuestionThemeAssignmentModificationDto>): QuestionThemeAssignmentModificationDto;
4
- //#endregion
5
- export { createFakeQuestionThemeAssignmentModificationDto };
6
- //# sourceMappingURL=question-theme-assignment-modification.dto.faketory.d.mts.map
@@ -1,13 +0,0 @@
1
- import { faker } from "@faker-js/faker";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.ts
3
- function createFakeQuestionThemeAssignmentModificationDto(overrides = {}) {
4
- return {
5
- isPrimary: faker.helpers.maybe(() => true),
6
- isHint: faker.helpers.maybe(faker.datatype.boolean),
7
- ...overrides
8
- };
9
- }
10
- //#endregion
11
- export { createFakeQuestionThemeAssignmentModificationDto };
12
-
13
- //# sourceMappingURL=question-theme-assignment-modification.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-theme-assignment-modification.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionThemeAssignmentModificationDto } from \"@question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape\";\n\nfunction createFakeQuestionThemeAssignmentModificationDto(overrides: Partial<QuestionThemeAssignmentModificationDto> = {}): QuestionThemeAssignmentModificationDto {\n return {\n isPrimary: faker.helpers.maybe(() => true),\n isHint: faker.helpers.maybe(faker.datatype.boolean),\n ...overrides,\n };\n}\n\nexport { createFakeQuestionThemeAssignmentModificationDto };"],"mappings":";;AAIA,SAAS,iDAAiD,YAA6D,CAAC,GAA2C;CACjK,OAAO;EACL,WAAW,MAAM,QAAQ,YAAY,IAAI;EACzC,QAAQ,MAAM,QAAQ,MAAM,MAAM,SAAS,OAAO;EAClD,GAAG;CACL;AACF"}
@@ -1,6 +0,0 @@
1
- import { QuestionAuthorDto } from "../../../../../../../../../src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.d.ts
3
- declare function createFakeQuestionAuthorDto(questionAuthorDto?: Partial<QuestionAuthorDto>): QuestionAuthorDto;
4
- //#endregion
5
- export { createFakeQuestionAuthorDto };
6
- //# sourceMappingURL=question-author.dto.faketory.d.mts.map
@@ -1,18 +0,0 @@
1
- import { QUESTION_AUTHOR_ROLES } from "../../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
2
- import { faker } from "@faker-js/faker";
3
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.ts
4
- function createFakeQuestionAuthorDto(questionAuthorDto = {}) {
5
- const role = questionAuthorDto.role ?? faker.helpers.arrayElement(QUESTION_AUTHOR_ROLES);
6
- const { gameId } = questionAuthorDto;
7
- if (role === "game" && gameId === void 0) questionAuthorDto.gameId = faker.database.mongodbObjectId();
8
- else if (role !== "game" && gameId !== void 0) delete questionAuthorDto.gameId;
9
- return {
10
- role,
11
- name: faker.helpers.maybe(faker.internet.username),
12
- ...questionAuthorDto
13
- };
14
- }
15
- //#endregion
16
- export { createFakeQuestionAuthorDto };
17
-
18
- //# sourceMappingURL=question-author.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-author.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionAuthorDto } from \"@question/application/dto/shared/question-author/question-author.dto.shape\";\nimport { QUESTION_AUTHOR_ROLES } from \"@question/domain/constants/question.constants\";\n\nfunction createFakeQuestionAuthorDto(questionAuthorDto: Partial<QuestionAuthorDto> = {}): QuestionAuthorDto {\n const role = questionAuthorDto.role ?? faker.helpers.arrayElement(QUESTION_AUTHOR_ROLES);\n const { gameId } = questionAuthorDto;\n\n if (role === \"game\" && gameId === undefined) {\n questionAuthorDto.gameId = faker.database.mongodbObjectId();\n } else if (role !== \"game\" && gameId !== undefined) {\n delete questionAuthorDto.gameId;\n }\n return {\n role,\n name: faker.helpers.maybe(faker.internet.username),\n ...questionAuthorDto,\n };\n}\n\nexport {\n createFakeQuestionAuthorDto,\n};"],"mappings":";;;AAKA,SAAS,4BAA4B,oBAAgD,CAAC,GAAsB;CAC1G,MAAM,OAAO,kBAAkB,QAAQ,MAAM,QAAQ,aAAa,qBAAqB;CACvF,MAAM,EAAE,WAAW;CAEnB,IAAI,SAAS,UAAU,WAAW,KAAA,GAChC,kBAAkB,SAAS,MAAM,SAAS,gBAAgB;MACrD,IAAI,SAAS,UAAU,WAAW,KAAA,GACvC,OAAO,kBAAkB;CAE3B,OAAO;EACL;EACA,MAAM,MAAM,QAAQ,MAAM,MAAM,SAAS,QAAQ;EACjD,GAAG;CACL;AACF"}
@@ -1,6 +0,0 @@
1
- import { QuestionRejectionDto } from "../../../../../../../../../src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.d.ts
3
- declare function createFakeQuestionRejectionDto(questionRejectionDto?: Partial<QuestionRejectionDto>): QuestionRejectionDto;
4
- //#endregion
5
- export { createFakeQuestionRejectionDto };
6
- //# sourceMappingURL=question-rejection.dto.faketory.d.mts.map
@@ -1,14 +0,0 @@
1
- import { QUESTION_REJECTION_TYPES } from "../../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
2
- import { faker } from "@faker-js/faker";
3
- //#region ../../tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.ts
4
- function createFakeQuestionRejectionDto(questionRejectionDto = {}) {
5
- return {
6
- type: faker.helpers.arrayElement(QUESTION_REJECTION_TYPES),
7
- comment: faker.helpers.maybe(faker.lorem.sentence),
8
- ...questionRejectionDto
9
- };
10
- }
11
- //#endregion
12
- export { createFakeQuestionRejectionDto };
13
-
14
- //# sourceMappingURL=question-rejection.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-rejection.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionRejectionDto } from \"@question/application/dto/shared/question-rejection/question-rejection.dto.shape\";\nimport { QUESTION_REJECTION_TYPES } from \"@question/domain/constants/question.constants\";\n\nfunction createFakeQuestionRejectionDto(questionRejectionDto: Partial<QuestionRejectionDto> = {}): QuestionRejectionDto {\n return {\n type: faker.helpers.arrayElement(QUESTION_REJECTION_TYPES),\n comment: faker.helpers.maybe(faker.lorem.sentence),\n ...questionRejectionDto,\n };\n}\n\nexport {\n createFakeQuestionRejectionDto,\n};"],"mappings":";;;AAKA,SAAS,+BAA+B,uBAAsD,CAAC,GAAyB;CACtH,OAAO;EACL,MAAM,MAAM,QAAQ,aAAa,wBAAwB;EACzD,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,QAAQ;EACjD,GAAG;CACL;AACF"}
@@ -1,6 +0,0 @@
1
- import { AdminFindQuestionThemesQueryDto } from "../../../../../../../../src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.d.ts
3
- declare function createFakeAdminFindQuestionThemesQueryDto(overrides?: Partial<AdminFindQuestionThemesQueryDto>): AdminFindQuestionThemesQueryDto;
4
- //#endregion
5
- export { createFakeAdminFindQuestionThemesQueryDto };
6
- //# sourceMappingURL=admin-find-question-themes-query.dto.faketory.d.mts.map
@@ -1,20 +0,0 @@
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 { LIMIT_QUERY_KEY } from "../../../../../../../../src/shared/application/dto/constants/limit-query.dto.constants.mjs";
4
- import { SORT_BY_QUERY_KEY, SORT_ORDER_QUERY_KEY } from "../../../../../../../../src/shared/application/dto/constants/sort-query.dto.constants.mjs";
5
- import { ADMIN_QUESTION_THEME_SORTABLE_FIELDS, QUESTION_THEME_STATUSES } from "../../../../../../../../src/contexts/question-theme/domain/constants/question-theme.constants.mjs";
6
- import { faker } from "@faker-js/faker";
7
- //#region ../../tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.ts
8
- function createFakeAdminFindQuestionThemesQueryDto(overrides = {}) {
9
- return {
10
- [SORT_BY_QUERY_KEY]: faker.helpers.arrayElement(ADMIN_QUESTION_THEME_SORTABLE_FIELDS),
11
- [SORT_ORDER_QUERY_KEY]: faker.helpers.arrayElement(SORT_ORDERS),
12
- [LIMIT_QUERY_KEY]: faker.helpers.maybe(() => faker.number.int({ min: 0 })) ?? 50,
13
- status: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_THEME_STATUSES)),
14
- ...overrides
15
- };
16
- }
17
- //#endregion
18
- export { createFakeAdminFindQuestionThemesQueryDto };
19
-
20
- //# sourceMappingURL=admin-find-question-themes-query.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin-find-question-themes-query.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question-theme/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport { ADMIN_QUESTION_THEME_SORTABLE_FIELDS, QUESTION_THEME_STATUSES } from \"@question-theme/domain/constants/question-theme.constants\";\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 type { AdminFindQuestionThemesQueryDto } from \"@question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape\";\n\nfunction createFakeAdminFindQuestionThemesQueryDto(overrides: Partial<AdminFindQuestionThemesQueryDto> = {}): AdminFindQuestionThemesQueryDto {\n return {\n [SORT_BY_QUERY_KEY]: faker.helpers.arrayElement(ADMIN_QUESTION_THEME_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 status: faker.helpers.maybe(() => faker.helpers.arrayElement(QUESTION_THEME_STATUSES)),\n ...overrides,\n };\n}\n\nexport { createFakeAdminFindQuestionThemesQueryDto };"],"mappings":";;;;;;;AAWA,SAAS,0CAA0C,YAAsD,CAAC,GAAoC;CAC5I,OAAO;GACJ,oBAAoB,MAAM,QAAQ,aAAa,oCAAoC;GACnF,uBAAuB,MAAM,QAAQ,aAAa,WAAW;GAC7D,kBAAkB,MAAM,QAAQ,YAAY,MAAM,OAAO,IAAI,EAAE,KAAA,EAAmB,CAAC,CAAC,KAAA;EACrF,QAAQ,MAAM,QAAQ,YAAY,MAAM,QAAQ,aAAa,uBAAuB,CAAC;EACrF,GAAG;CACL;AACF"}
@@ -1,6 +0,0 @@
1
- import { FindQuestionThemesQueryDto } from "../../../../../../../../src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.mjs";
2
- //#region ../../tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.d.ts
3
- declare function createFakeFindQuestionThemesQueryDto(overrides?: Partial<FindQuestionThemesQueryDto>): FindQuestionThemesQueryDto;
4
- //#endregion
5
- export { createFakeFindQuestionThemesQueryDto };
6
- //# sourceMappingURL=find-question-themes-query.dto.faketory.d.mts.map
@@ -1,19 +0,0 @@
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 { LIMIT_QUERY_KEY } from "../../../../../../../../src/shared/application/dto/constants/limit-query.dto.constants.mjs";
4
- import { SORT_BY_QUERY_KEY, SORT_ORDER_QUERY_KEY } from "../../../../../../../../src/shared/application/dto/constants/sort-query.dto.constants.mjs";
5
- import { QUESTION_THEME_SORTABLE_FIELDS } from "../../../../../../../../src/contexts/question-theme/domain/constants/question-theme.constants.mjs";
6
- import { faker } from "@faker-js/faker";
7
- //#region ../../tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.ts
8
- function createFakeFindQuestionThemesQueryDto(overrides = {}) {
9
- return {
10
- [SORT_BY_QUERY_KEY]: faker.helpers.arrayElement(QUESTION_THEME_SORTABLE_FIELDS),
11
- [SORT_ORDER_QUERY_KEY]: faker.helpers.arrayElement(SORT_ORDERS),
12
- [LIMIT_QUERY_KEY]: faker.helpers.maybe(() => faker.number.int({ min: 0 })) ?? 50,
13
- ...overrides
14
- };
15
- }
16
- //#endregion
17
- export { createFakeFindQuestionThemesQueryDto };
18
-
19
- //# sourceMappingURL=find-question-themes-query.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-question-themes-query.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport { QUESTION_THEME_SORTABLE_FIELDS } from \"@question-theme/domain/constants/question-theme.constants\";\n\nimport { LIMIT_QUERY_KEY } from \"@shared/application/dto/constants/limit-query.dto.constants\";\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_DEFAULT, LIMIT_MINIMUM } from \"@shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants\";\n\nimport type { FindQuestionThemesQueryDto } from \"@question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape\";\n\nfunction createFakeFindQuestionThemesQueryDto(overrides: Partial<FindQuestionThemesQueryDto> = {}): FindQuestionThemesQueryDto {\n return {\n [SORT_BY_QUERY_KEY]: faker.helpers.arrayElement(QUESTION_THEME_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 ...overrides,\n };\n}\n\nexport { createFakeFindQuestionThemesQueryDto };"],"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;EACrF,GAAG;CACL;AACF"}
@@ -1,12 +0,0 @@
1
- import { AdminQuestionThemeDto } from "../../../../../../../src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.mjs";
2
- import { QuestionThemeCreationDto } from "../../../../../../../src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.mjs";
3
- import { QuestionThemeModificationDto } from "../../../../../../../src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.mjs";
4
- import { QuestionThemeDto } from "../../../../../../../src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.mjs";
5
- //#region ../../tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.d.ts
6
- declare function createFakeQuestionThemeDto(questionThemeDto?: Partial<QuestionThemeDto>): QuestionThemeDto;
7
- declare function createFakeAdminQuestionThemeDto(adminQuestionThemeDto?: Partial<AdminQuestionThemeDto>): AdminQuestionThemeDto;
8
- declare function createFakeQuestionThemeCreationDto(creationDto?: Partial<QuestionThemeCreationDto>): QuestionThemeCreationDto;
9
- declare function createFakeQuestionThemeModificationDto(modificationDto?: Partial<QuestionThemeModificationDto>): QuestionThemeModificationDto;
10
- //#endregion
11
- export { createFakeAdminQuestionThemeDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto };
12
- //# sourceMappingURL=question-theme.dto.faketory.d.mts.map
@@ -1,60 +0,0 @@
1
- import { QUESTION_THEME_STATUSES } from "../../../../../../../src/contexts/question-theme/domain/constants/question-theme.constants.mjs";
2
- import { createFakeLocalizedText, createFakeLocalizedTexts } from "../../../shared/locale/locale.faketory.mjs";
3
- import { faker } from "@faker-js/faker";
4
- //#region ../../tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.ts
5
- function createFakeQuestionThemeDto(questionThemeDto = {}) {
6
- return {
7
- id: faker.database.mongodbObjectId(),
8
- slug: faker.lorem.slug(),
9
- label: faker.word.sample(),
10
- aliases: [
11
- faker.word.sample(),
12
- faker.word.sample(),
13
- faker.word.sample()
14
- ],
15
- description: faker.word.sample(),
16
- color: faker.helpers.maybe(() => faker.color.rgb({ casing: "upper" })),
17
- status: faker.helpers.arrayElement(["active", "archived"]),
18
- updatedAt: faker.date.anytime().toISOString(),
19
- createdAt: faker.date.anytime().toISOString(),
20
- ...questionThemeDto
21
- };
22
- }
23
- function createFakeAdminQuestionThemeDto(adminQuestionThemeDto = {}) {
24
- return {
25
- id: faker.database.mongodbObjectId(),
26
- slug: faker.lorem.slug(),
27
- label: createFakeLocalizedText(),
28
- aliases: createFakeLocalizedTexts(),
29
- description: createFakeLocalizedText(),
30
- color: faker.helpers.maybe(() => faker.color.rgb({ casing: "upper" })),
31
- status: faker.helpers.arrayElement(QUESTION_THEME_STATUSES),
32
- updatedAt: faker.date.anytime().toISOString(),
33
- createdAt: faker.date.anytime().toISOString(),
34
- ...adminQuestionThemeDto
35
- };
36
- }
37
- function createFakeQuestionThemeCreationDto(creationDto = {}) {
38
- return {
39
- slug: faker.lorem.slug(),
40
- label: createFakeLocalizedText(),
41
- aliases: createFakeLocalizedTexts(),
42
- description: createFakeLocalizedText(),
43
- color: faker.helpers.maybe(() => faker.color.rgb({ casing: "upper" })),
44
- ...creationDto
45
- };
46
- }
47
- function createFakeQuestionThemeModificationDto(modificationDto = {}) {
48
- return {
49
- slug: faker.helpers.maybe(faker.lorem.slug),
50
- label: faker.helpers.maybe(createFakeLocalizedText),
51
- aliases: faker.helpers.maybe(createFakeLocalizedTexts),
52
- description: faker.helpers.maybe(createFakeLocalizedText),
53
- color: faker.helpers.maybe(() => faker.color.rgb({ casing: "upper" })),
54
- ...modificationDto
55
- };
56
- }
57
- //#endregion
58
- export { createFakeAdminQuestionThemeDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto };
59
-
60
- //# sourceMappingURL=question-theme.dto.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-theme.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport { QUESTION_THEME_STATUSES } from \"@question-theme/domain/constants/question-theme.constants\";\n\nimport { createFakeLocalizedText, createFakeLocalizedTexts } from \"@faketories/shared/locale/locale.faketory\";\n\nimport type { AdminQuestionThemeDto } from \"@question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape\";\nimport type { QuestionThemeCreationDto } from \"@question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape\";\nimport type { QuestionThemeModificationDto } from \"@question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape\";\nimport type { QuestionThemeDto } from \"@question-theme/application/dto/question-theme/question-theme.dto.shape\";\n\nfunction createFakeQuestionThemeDto(questionThemeDto: Partial<QuestionThemeDto> = {}): QuestionThemeDto {\n return {\n id: faker.database.mongodbObjectId(),\n slug: faker.lorem.slug(),\n label: faker.word.sample(),\n aliases: [faker.word.sample(), faker.word.sample(), faker.word.sample()],\n description: faker.word.sample(),\n color: faker.helpers.maybe(() => faker.color.rgb({ casing: \"upper\" })),\n status: faker.helpers.arrayElement([\"active\", \"archived\"]),\n updatedAt: faker.date.anytime().toISOString(),\n createdAt: faker.date.anytime().toISOString(),\n ...questionThemeDto,\n };\n}\n\nfunction createFakeAdminQuestionThemeDto(adminQuestionThemeDto: Partial<AdminQuestionThemeDto> = {}): AdminQuestionThemeDto {\n return {\n id: faker.database.mongodbObjectId(),\n slug: faker.lorem.slug(),\n label: createFakeLocalizedText(),\n aliases: createFakeLocalizedTexts(),\n description: createFakeLocalizedText(),\n color: faker.helpers.maybe(() => faker.color.rgb({ casing: \"upper\" })),\n status: faker.helpers.arrayElement(QUESTION_THEME_STATUSES),\n updatedAt: faker.date.anytime().toISOString(),\n createdAt: faker.date.anytime().toISOString(),\n ...adminQuestionThemeDto,\n };\n}\n\nfunction createFakeQuestionThemeCreationDto(creationDto: Partial<QuestionThemeCreationDto> = {}): QuestionThemeCreationDto {\n return {\n slug: faker.lorem.slug(),\n label: createFakeLocalizedText(),\n aliases: createFakeLocalizedTexts(),\n description: createFakeLocalizedText(),\n color: faker.helpers.maybe(() => faker.color.rgb({ casing: \"upper\" })),\n ...creationDto,\n };\n}\n\nfunction createFakeQuestionThemeModificationDto(modificationDto: Partial<QuestionThemeModificationDto> = {}): QuestionThemeModificationDto {\n return {\n slug: faker.helpers.maybe(faker.lorem.slug),\n label: faker.helpers.maybe(createFakeLocalizedText),\n aliases: faker.helpers.maybe(createFakeLocalizedTexts),\n description: faker.helpers.maybe(createFakeLocalizedText),\n color: faker.helpers.maybe(() => faker.color.rgb({ casing: \"upper\" })),\n ...modificationDto,\n };\n}\n\nexport {\n createFakeQuestionThemeDto,\n createFakeAdminQuestionThemeDto,\n createFakeQuestionThemeCreationDto,\n createFakeQuestionThemeModificationDto,\n};"],"mappings":";;;;AAWA,SAAS,2BAA2B,mBAA8C,CAAC,GAAqB;CACtG,OAAO;EACL,IAAI,MAAM,SAAS,gBAAgB;EACnC,MAAM,MAAM,MAAM,KAAK;EACvB,OAAO,MAAM,KAAK,OAAO;EACzB,SAAS;GAAC,MAAM,KAAK,OAAO;GAAG,MAAM,KAAK,OAAO;GAAG,MAAM,KAAK,OAAO;EAAC;EACvE,aAAa,MAAM,KAAK,OAAO;EAC/B,OAAO,MAAM,QAAQ,YAAY,MAAM,MAAM,IAAI,EAAE,QAAQ,QAAQ,CAAC,CAAC;EACrE,QAAQ,MAAM,QAAQ,aAAa,CAAC,UAAU,UAAU,CAAC;EACzD,WAAW,MAAM,KAAK,QAAQ,CAAC,CAAC,YAAY;EAC5C,WAAW,MAAM,KAAK,QAAQ,CAAC,CAAC,YAAY;EAC5C,GAAG;CACL;AACF;AAEA,SAAS,gCAAgC,wBAAwD,CAAC,GAA0B;CAC1H,OAAO;EACL,IAAI,MAAM,SAAS,gBAAgB;EACnC,MAAM,MAAM,MAAM,KAAK;EACvB,OAAO,wBAAwB;EAC/B,SAAS,yBAAyB;EAClC,aAAa,wBAAwB;EACrC,OAAO,MAAM,QAAQ,YAAY,MAAM,MAAM,IAAI,EAAE,QAAQ,QAAQ,CAAC,CAAC;EACrE,QAAQ,MAAM,QAAQ,aAAa,uBAAuB;EAC1D,WAAW,MAAM,KAAK,QAAQ,CAAC,CAAC,YAAY;EAC5C,WAAW,MAAM,KAAK,QAAQ,CAAC,CAAC,YAAY;EAC5C,GAAG;CACL;AACF;AAEA,SAAS,mCAAmC,cAAiD,CAAC,GAA6B;CACzH,OAAO;EACL,MAAM,MAAM,MAAM,KAAK;EACvB,OAAO,wBAAwB;EAC/B,SAAS,yBAAyB;EAClC,aAAa,wBAAwB;EACrC,OAAO,MAAM,QAAQ,YAAY,MAAM,MAAM,IAAI,EAAE,QAAQ,QAAQ,CAAC,CAAC;EACrE,GAAG;CACL;AACF;AAEA,SAAS,uCAAuC,kBAAyD,CAAC,GAAiC;CACzI,OAAO;EACL,MAAM,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;EAC1C,OAAO,MAAM,QAAQ,MAAM,uBAAuB;EAClD,SAAS,MAAM,QAAQ,MAAM,wBAAwB;EACrD,aAAa,MAAM,QAAQ,MAAM,uBAAuB;EACxD,OAAO,MAAM,QAAQ,YAAY,MAAM,MAAM,IAAI,EAAE,QAAQ,QAAQ,CAAC,CAAC;EACrE,GAAG;CACL;AACF"}
@@ -1,8 +0,0 @@
1
- import { ApiResponseExceptionDto } from "../../../../../../../../../src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.mjs";
2
- import { ApiResponseExceptionValidationDetailsDto } from "../../../../../../../../../src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.mjs";
3
- //#region ../../tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.d.ts
4
- declare function createFakeApiResponseExceptionValidationDetailsDto(overrides?: Partial<ApiResponseExceptionValidationDetailsDto>): ApiResponseExceptionValidationDetailsDto;
5
- declare function createFakeApiResponseExceptionDto(overrides?: Partial<ApiResponseExceptionDto>): ApiResponseExceptionDto;
6
- //#endregion
7
- export { createFakeApiResponseExceptionDto, createFakeApiResponseExceptionValidationDetailsDto };
8
- //# sourceMappingURL=api-response-exception.faketory.d.mts.map
@@ -1,32 +0,0 @@
1
- import { faker } from "@faker-js/faker";
2
- //#region ../../tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.ts
3
- function createFakeApiResponseExceptionValidationDetailsDto(overrides = {}) {
4
- return {
5
- message: faker.lorem.sentence(),
6
- path: [faker.lorem.word()],
7
- code: faker.helpers.replaceSymbols("ERR-##"),
8
- expected: faker.lorem.word(),
9
- ...overrides
10
- };
11
- }
12
- function createFakeApiResponseExceptionDto(overrides = {}) {
13
- return {
14
- statusCode: faker.number.int({
15
- min: 400,
16
- max: 599
17
- }),
18
- message: faker.lorem.sentence(),
19
- error: "Bad Request",
20
- validationDetails: faker.helpers.maybe(() => [
21
- createFakeApiResponseExceptionValidationDetailsDto(),
22
- createFakeApiResponseExceptionValidationDetailsDto(),
23
- createFakeApiResponseExceptionValidationDetailsDto()
24
- ]),
25
- errorCode: faker.helpers.maybe(() => faker.hacker.phrase().toLowerCase().replaceAll(/\s+/gu, "-").slice(0, 40)),
26
- ...overrides
27
- };
28
- }
29
- //#endregion
30
- export { createFakeApiResponseExceptionDto, createFakeApiResponseExceptionValidationDetailsDto };
31
-
32
- //# sourceMappingURL=api-response-exception.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-response-exception.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { ApiResponseExceptionValidationDetailsDto } from \"@shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape\";\nimport type { ApiResponseExceptionDto } from \"@shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape\";\n\nfunction createFakeApiResponseExceptionValidationDetailsDto(overrides: Partial<ApiResponseExceptionValidationDetailsDto> = {}): ApiResponseExceptionValidationDetailsDto {\n return {\n message: faker.lorem.sentence(),\n path: [faker.lorem.word()],\n code: faker.helpers.replaceSymbols(\"ERR-##\"),\n expected: faker.lorem.word(),\n ...overrides,\n };\n}\n\nfunction createFakeApiResponseExceptionDto(overrides: Partial<ApiResponseExceptionDto> = {}): ApiResponseExceptionDto {\n return {\n statusCode: faker.number.int({ min: 400, max: 599 }),\n message: faker.lorem.sentence(),\n error: \"Bad Request\",\n validationDetails: faker.helpers.maybe(() => [\n createFakeApiResponseExceptionValidationDetailsDto(),\n createFakeApiResponseExceptionValidationDetailsDto(),\n createFakeApiResponseExceptionValidationDetailsDto(),\n ]),\n errorCode: faker.helpers.maybe(() => faker.hacker.phrase().toLowerCase().replaceAll(/\\s+/gu, \"-\").slice(0, 40)),\n ...overrides,\n };\n}\n\nexport {\n createFakeApiResponseExceptionDto,\n createFakeApiResponseExceptionValidationDetailsDto,\n};"],"mappings":";;AAKA,SAAS,mDAAmD,YAA+D,CAAC,GAA6C;CACvK,OAAO;EACL,SAAS,MAAM,MAAM,SAAS;EAC9B,MAAM,CAAC,MAAM,MAAM,KAAK,CAAC;EACzB,MAAM,MAAM,QAAQ,eAAe,QAAQ;EAC3C,UAAU,MAAM,MAAM,KAAK;EAC3B,GAAG;CACL;AACF;AAEA,SAAS,kCAAkC,YAA8C,CAAC,GAA4B;CACpH,OAAO;EACL,YAAY,MAAM,OAAO,IAAI;GAAE,KAAK;GAAK,KAAK;EAAI,CAAC;EACnD,SAAS,MAAM,MAAM,SAAS;EAC9B,OAAO;EACP,mBAAmB,MAAM,QAAQ,YAAY;GAC3C,mDAAmD;GACnD,mDAAmD;GACnD,mDAAmD;EACrD,CAAC;EACD,WAAW,MAAM,QAAQ,YAAY,MAAM,OAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,WAAW,SAAS,GAAG,CAAC,CAAC,MAAM,GAAG,EAAE,CAAC;EAC9G,GAAG;CACL;AACF"}
@@ -1,8 +0,0 @@
1
- import { LocalizationOptions, LocalizedText, LocalizedTexts } from "../../../../../../src/shared/domain/value-objects/locale/locale.types.mjs";
2
- //#region ../../tests/shared/utils/faketories/shared/locale/locale.faketory.d.ts
3
- declare function createFakeLocalizationOptions(localizationOptions?: Partial<LocalizationOptions>): LocalizationOptions;
4
- declare function createFakeLocalizedText(localizedText?: Partial<LocalizedText>): LocalizedText;
5
- declare function createFakeLocalizedTexts(localizedTexts?: Partial<LocalizedTexts>): LocalizedTexts;
6
- //#endregion
7
- export { createFakeLocalizationOptions, createFakeLocalizedText, createFakeLocalizedTexts };
8
- //# sourceMappingURL=locale.faketory.d.mts.map
@@ -1,36 +0,0 @@
1
- import { LOCALES } from "../../../../../../src/shared/domain/value-objects/locale/locale.constants.mjs";
2
- import { faker } from "@faker-js/faker";
3
- //#region ../../tests/shared/utils/faketories/shared/locale/locale.faketory.ts
4
- function createFakeLocalizationOptions(localizationOptions = {}) {
5
- return {
6
- locale: faker.helpers.arrayElement(LOCALES),
7
- fallbackLocale: faker.helpers.arrayElement(LOCALES),
8
- ...localizationOptions
9
- };
10
- }
11
- function createFakeLocalizedText(localizedText = {}) {
12
- return {
13
- en: faker.word.sample(),
14
- de: faker.word.sample(),
15
- es: faker.word.sample(),
16
- fr: faker.word.sample(),
17
- it: faker.word.sample(),
18
- pt: faker.word.sample(),
19
- ...localizedText
20
- };
21
- }
22
- function createFakeLocalizedTexts(localizedTexts = {}) {
23
- return {
24
- en: faker.word.words(3).split(" "),
25
- de: faker.word.words(3).split(" "),
26
- es: faker.word.words(3).split(" "),
27
- fr: faker.word.words(3).split(" "),
28
- it: faker.word.words(3).split(" "),
29
- pt: faker.word.words(3).split(" "),
30
- ...localizedTexts
31
- };
32
- }
33
- //#endregion
34
- export { createFakeLocalizationOptions, createFakeLocalizedText, createFakeLocalizedTexts };
35
-
36
- //# sourceMappingURL=locale.faketory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"locale.faketory.mjs","names":[],"sources":["../../../../../../../../../tests/shared/utils/faketories/shared/locale/locale.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport { LOCALES } from \"@shared/domain/value-objects/locale/locale.constants\";\n\nimport type { LocalizationOptions, LocalizedText, LocalizedTexts } from \"@shared/domain/value-objects/locale/locale.types\";\n\nfunction createFakeLocalizationOptions(localizationOptions: Partial<LocalizationOptions> = {}): LocalizationOptions {\n return {\n locale: faker.helpers.arrayElement(LOCALES),\n fallbackLocale: faker.helpers.arrayElement(LOCALES),\n ...localizationOptions,\n };\n}\n\nfunction createFakeLocalizedText(localizedText: Partial<LocalizedText> = {}): LocalizedText {\n return {\n en: faker.word.sample(),\n de: faker.word.sample(),\n es: faker.word.sample(),\n fr: faker.word.sample(),\n it: faker.word.sample(),\n pt: faker.word.sample(),\n ...localizedText,\n };\n}\n\nfunction createFakeLocalizedTexts(localizedTexts: Partial<LocalizedTexts> = {}): LocalizedTexts {\n return {\n en: faker.word.words(3).split(\" \"),\n de: faker.word.words(3).split(\" \"),\n es: faker.word.words(3).split(\" \"),\n fr: faker.word.words(3).split(\" \"),\n it: faker.word.words(3).split(\" \"),\n pt: faker.word.words(3).split(\" \"),\n ...localizedTexts,\n };\n}\n\nexport {\n createFakeLocalizationOptions,\n createFakeLocalizedText,\n createFakeLocalizedTexts,\n};"],"mappings":";;;AAMA,SAAS,8BAA8B,sBAAoD,CAAC,GAAwB;CAClH,OAAO;EACL,QAAQ,MAAM,QAAQ,aAAa,OAAO;EAC1C,gBAAgB,MAAM,QAAQ,aAAa,OAAO;EAClD,GAAG;CACL;AACF;AAEA,SAAS,wBAAwB,gBAAwC,CAAC,GAAkB;CAC1F,OAAO;EACL,IAAI,MAAM,KAAK,OAAO;EACtB,IAAI,MAAM,KAAK,OAAO;EACtB,IAAI,MAAM,KAAK,OAAO;EACtB,IAAI,MAAM,KAAK,OAAO;EACtB,IAAI,MAAM,KAAK,OAAO;EACtB,IAAI,MAAM,KAAK,OAAO;EACtB,GAAG;CACL;AACF;AAEA,SAAS,yBAAyB,iBAA0C,CAAC,GAAmB;CAC9F,OAAO;EACL,IAAI,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG;EACjC,IAAI,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG;EACjC,IAAI,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG;EACjC,IAAI,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG;EACjC,IAAI,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG;EACjC,IAAI,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG;EACjC,GAAG;CACL;AACF"}