@goat-it/schemas 0.0.16 → 0.0.17-beta

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 (77) hide show
  1. package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.d.mts +13 -0
  2. package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.d.mts +12 -0
  3. package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.d.mts +12 -0
  4. package/dist/src/shared/domain/value-objects/locale/locale.types.d.mts +5 -1
  5. package/dist/testing/question/index.d.mts +18 -0
  6. package/dist/testing/question/index.mjs +18 -0
  7. package/dist/testing/question-theme/index.d.mts +4 -0
  8. package/dist/testing/question-theme/index.mjs +4 -0
  9. package/dist/testing/shared/index.d.mts +3 -0
  10. package/dist/testing/shared/index.mjs +3 -0
  11. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.d.mts +6 -0
  12. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs +25 -0
  13. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs.map +1 -0
  14. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.d.mts +6 -0
  15. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs +16 -0
  16. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs.map +1 -0
  17. 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
  18. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.mjs +15 -0
  19. 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
  20. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.d.mts +6 -0
  21. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs +27 -0
  22. package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs.map +1 -0
  23. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.d.mts +6 -0
  24. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs +24 -0
  25. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs.map +1 -0
  26. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.d.mts +6 -0
  27. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs +23 -0
  28. package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs.map +1 -0
  29. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.d.mts +6 -0
  30. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs +15 -0
  31. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs.map +1 -0
  32. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.d.mts +6 -0
  33. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs +15 -0
  34. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs.map +1 -0
  35. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.d.mts +6 -0
  36. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs +27 -0
  37. package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs.map +1 -0
  38. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.d.mts +6 -0
  39. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs +14 -0
  40. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs.map +1 -0
  41. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.d.mts +6 -0
  42. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs +16 -0
  43. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs.map +1 -0
  44. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.d.mts +6 -0
  45. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs +21 -0
  46. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs.map +1 -0
  47. 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
  48. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.mjs +14 -0
  49. 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
  50. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.d.mts +8 -0
  51. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs +26 -0
  52. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs.map +1 -0
  53. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.d.mts +6 -0
  54. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs +13 -0
  55. package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs.map +1 -0
  56. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.d.mts +6 -0
  57. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs +18 -0
  58. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs.map +1 -0
  59. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.d.mts +6 -0
  60. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs +14 -0
  61. package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs.map +1 -0
  62. 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
  63. 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
  64. 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
  65. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.d.mts +6 -0
  66. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs +19 -0
  67. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs.map +1 -0
  68. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.d.mts +12 -0
  69. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs +60 -0
  70. package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs.map +1 -0
  71. package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.d.mts +8 -0
  72. package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs +32 -0
  73. package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs.map +1 -0
  74. package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.d.mts +8 -0
  75. package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.mjs +36 -0
  76. package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.mjs.map +1 -0
  77. package/package.json +15 -2
@@ -0,0 +1,13 @@
1
+ import { z } from "zod";
2
+ //#region ../../src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.d.ts
3
+ declare const QUESTION_AUTHOR_CREATION_DTO: z.ZodObject<{
4
+ role: z.ZodEnum<{
5
+ admin: "admin";
6
+ ai: "ai";
7
+ }>;
8
+ name: z.ZodString;
9
+ }, z.core.$strip>;
10
+ type QuestionAuthorCreationDto = z.infer<typeof QUESTION_AUTHOR_CREATION_DTO>;
11
+ //#endregion
12
+ export { QUESTION_AUTHOR_CREATION_DTO, QuestionAuthorCreationDto };
13
+ //# sourceMappingURL=question-author-creation.dto.shape.d.mts.map
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ //#region ../../src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.d.ts
3
+ declare const QUESTION_CONTENT_CREATION_DTO: z.ZodObject<{
4
+ statement: z.ZodObject<Record<"en" | "fr" | "es" | "de" | "it" | "pt", z.ZodOptional<z.ZodString>>, z.core.$strip>;
5
+ answer: z.ZodObject<Record<"en" | "fr" | "es" | "de" | "it" | "pt", z.ZodOptional<z.ZodString>>, z.core.$strip>;
6
+ context: z.ZodOptional<z.ZodObject<Record<"en" | "fr" | "es" | "de" | "it" | "pt", z.ZodOptional<z.ZodString>>, z.core.$strip>>;
7
+ trivia: z.ZodOptional<z.ZodObject<Record<"en" | "fr" | "es" | "de" | "it" | "pt", z.ZodOptional<z.ZodArray<z.ZodString>>>, z.core.$strip>>;
8
+ }, z.core.$strip>;
9
+ type QuestionContentCreationDto = z.infer<typeof QUESTION_CONTENT_CREATION_DTO>;
10
+ //#endregion
11
+ export { QUESTION_CONTENT_CREATION_DTO, QuestionContentCreationDto };
12
+ //# sourceMappingURL=question-content-creation.dto.shape.d.mts.map
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ //#region ../../src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.d.ts
3
+ declare const QUESTION_CONTENT_MODIFICATION_DTO: z.ZodObject<{
4
+ statement: z.ZodOptional<z.ZodObject<Record<"en" | "fr" | "es" | "de" | "it" | "pt", z.ZodOptional<z.ZodString>>, z.core.$strip>>;
5
+ answer: z.ZodOptional<z.ZodObject<Record<"en" | "fr" | "es" | "de" | "it" | "pt", z.ZodOptional<z.ZodString>>, z.core.$strip>>;
6
+ context: z.ZodOptional<z.ZodObject<Record<"en" | "fr" | "es" | "de" | "it" | "pt", z.ZodOptional<z.ZodString>>, z.core.$strip>>;
7
+ trivia: z.ZodOptional<z.ZodObject<Record<"en" | "fr" | "es" | "de" | "it" | "pt", z.ZodOptional<z.ZodArray<z.ZodString>>>, z.core.$strip>>;
8
+ }, z.core.$strip>;
9
+ type QuestionContentModificationDto = z.infer<typeof QUESTION_CONTENT_MODIFICATION_DTO>;
10
+ //#endregion
11
+ export { QUESTION_CONTENT_MODIFICATION_DTO, type QuestionContentModificationDto };
12
+ //# sourceMappingURL=question-content-modification.dto.shape.d.mts.map
@@ -2,8 +2,12 @@ import { LOCALES } from "./locale.constants.mjs";
2
2
  import { TupleToUnion } from "type-fest";
3
3
  //#region ../../src/shared/domain/value-objects/locale/locale.types.d.ts
4
4
  type Locale = TupleToUnion<typeof LOCALES>;
5
+ type LocalizationOptions = {
6
+ locale: Locale;
7
+ fallbackLocale: Locale;
8
+ };
5
9
  type LocalizedText = Record<Locale, string>;
6
10
  type LocalizedTexts = Record<Locale, string[]>;
7
11
  //#endregion
8
- export type { Locale, LocalizedText, LocalizedTexts };
12
+ export type { Locale, LocalizationOptions, LocalizedText, LocalizedTexts };
9
13
  //# sourceMappingURL=locale.types.d.mts.map
@@ -0,0 +1,18 @@
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
+ export { createFakeAdminFindQuestionsQueryDto, createFakeAdminQuestionContentDto, createFakeAdminQuestionDto, createFakeAdminQuestionThemeAssignmentDto, createFakeFindQuestionsQueryDto, createFakeFindRandomQuestionsQueryDto, createFakeQuestionAuthorCreationDto, createFakeQuestionAuthorDto, createFakeQuestionContentCreationDto, createFakeQuestionContentDto, createFakeQuestionContentModificationDto, createFakeQuestionCreationDto, createFakeQuestionDto, createFakeQuestionModificationDto, createFakeQuestionRejectionDto, createFakeQuestionThemeAssignmentCreationDto, createFakeQuestionThemeAssignmentDto, createFakeQuestionThemeAssignmentModificationDto };
@@ -0,0 +1,18 @@
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
+ export { createFakeAdminFindQuestionsQueryDto, createFakeAdminQuestionContentDto, createFakeAdminQuestionDto, createFakeAdminQuestionThemeAssignmentDto, createFakeFindQuestionsQueryDto, createFakeFindRandomQuestionsQueryDto, createFakeQuestionAuthorCreationDto, createFakeQuestionAuthorDto, createFakeQuestionContentCreationDto, createFakeQuestionContentDto, createFakeQuestionContentModificationDto, createFakeQuestionCreationDto, createFakeQuestionDto, createFakeQuestionModificationDto, createFakeQuestionRejectionDto, createFakeQuestionThemeAssignmentCreationDto, createFakeQuestionThemeAssignmentDto, createFakeQuestionThemeAssignmentModificationDto };
@@ -0,0 +1,4 @@
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
+ export { createFakeAdminFindQuestionThemesQueryDto, createFakeAdminQuestionThemeDto, createFakeFindQuestionThemesQueryDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto };
@@ -0,0 +1,4 @@
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
+ export { createFakeAdminFindQuestionThemesQueryDto, createFakeAdminQuestionThemeDto, createFakeFindQuestionThemesQueryDto, createFakeQuestionThemeCreationDto, createFakeQuestionThemeDto, createFakeQuestionThemeModificationDto };
@@ -0,0 +1,3 @@
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
+ export { createFakeApiResponseExceptionDto, createFakeApiResponseExceptionValidationDetailsDto, createFakeLocalizationOptions, createFakeLocalizedText, createFakeLocalizedTexts };
@@ -0,0 +1,3 @@
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
+ 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
@@ -0,0 +1,23 @@
1
+ import { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES } from "../../../../../../../../src/contexts/question/domain/constants/question.constants.mjs";
2
+ import { LIMIT_QUERY_KEY } from "../../../../../../../../src/shared/application/dto/constants/limit-query.dto.constants.mjs";
3
+ import { QUESTION_THEME_IDS_QUERY_KEY } from "../../../../../../../../src/contexts/question/application/dto/shared/constants/question-filter-query.dto.constants.mjs";
4
+ import { RANDOM_QUESTIONS_CATEGORIES_QUERY_KEY, RANDOM_QUESTIONS_COGNITIVE_DIFFICULTIES_QUERY_KEY, RANDOM_QUESTIONS_EXCLUDED_IDS_QUERY_KEY } from "../../../../../../../../src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.mjs";
5
+ import { faker } from "@faker-js/faker";
6
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.ts
7
+ function createFakeFindRandomQuestionsQueryDto(overrides = {}) {
8
+ return {
9
+ [LIMIT_QUERY_KEY]: faker.helpers.maybe(() => faker.number.int({
10
+ min: 1,
11
+ max: 50
12
+ })) ?? 20,
13
+ [RANDOM_QUESTIONS_EXCLUDED_IDS_QUERY_KEY]: faker.helpers.maybe(() => [faker.database.mongodbObjectId()]),
14
+ [RANDOM_QUESTIONS_CATEGORIES_QUERY_KEY]: faker.helpers.maybe(() => [faker.helpers.arrayElement(QUESTION_CATEGORIES)]),
15
+ [RANDOM_QUESTIONS_COGNITIVE_DIFFICULTIES_QUERY_KEY]: faker.helpers.maybe(() => [faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES)]),
16
+ [QUESTION_THEME_IDS_QUERY_KEY]: faker.helpers.maybe(() => [faker.database.mongodbObjectId()]),
17
+ ...overrides
18
+ };
19
+ }
20
+ //#endregion
21
+ export { createFakeFindRandomQuestionsQueryDto };
22
+
23
+ //# sourceMappingURL=find-random-questions-query.dto.faketory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-random-questions-query.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport { LIMIT_QUERY_KEY } from \"@shared/application/dto/constants/limit-query.dto.constants\";\n\nimport {\n RANDOM_QUESTIONS_CATEGORIES_QUERY_KEY,\n RANDOM_QUESTIONS_COGNITIVE_DIFFICULTIES_QUERY_KEY,\n RANDOM_QUESTIONS_EXCLUDED_IDS_QUERY_KEY,\n RANDOM_QUESTIONS_LIMIT_DEFAULT,\n RANDOM_QUESTIONS_LIMIT_MAXIMUM,\n RANDOM_QUESTIONS_LIMIT_MINIMUM,\n} from \"@question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants\";\nimport { QUESTION_THEME_IDS_QUERY_KEY } from \"@question/application/dto/shared/constants/question-filter-query.dto.constants\";\nimport { QUESTION_CATEGORIES, QUESTION_COGNITIVE_DIFFICULTIES } from \"@question/domain/constants/question.constants\";\nimport type { FindRandomQuestionsQueryDto } from \"@question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape\";\n\nfunction createFakeFindRandomQuestionsQueryDto(overrides: Partial<FindRandomQuestionsQueryDto> = {}): FindRandomQuestionsQueryDto {\n return {\n [LIMIT_QUERY_KEY]: faker.helpers.maybe(() => faker.number.int({ min: RANDOM_QUESTIONS_LIMIT_MINIMUM, max: RANDOM_QUESTIONS_LIMIT_MAXIMUM })) ?? RANDOM_QUESTIONS_LIMIT_DEFAULT,\n [RANDOM_QUESTIONS_EXCLUDED_IDS_QUERY_KEY]: faker.helpers.maybe(() => [faker.database.mongodbObjectId()]),\n [RANDOM_QUESTIONS_CATEGORIES_QUERY_KEY]: faker.helpers.maybe(() => [faker.helpers.arrayElement(QUESTION_CATEGORIES)]),\n [RANDOM_QUESTIONS_COGNITIVE_DIFFICULTIES_QUERY_KEY]: faker.helpers.maybe(() => [faker.helpers.arrayElement(QUESTION_COGNITIVE_DIFFICULTIES)]),\n [QUESTION_THEME_IDS_QUERY_KEY]: faker.helpers.maybe(() => [faker.database.mongodbObjectId()]),\n ...overrides,\n };\n}\n\nexport { createFakeFindRandomQuestionsQueryDto };"],"mappings":";;;;;;AAgBA,SAAS,sCAAsC,YAAkD,CAAC,GAAgC;CAChI,OAAO;GACJ,kBAAkB,MAAM,QAAQ,YAAY,MAAM,OAAO,IAAI;GAAE,KAAA;GAAqC,KAAA;EAAoC,CAAC,CAAC,KAAA;GAC1I,0CAA0C,MAAM,QAAQ,YAAY,CAAC,MAAM,SAAS,gBAAgB,CAAC,CAAC;GACtG,wCAAwC,MAAM,QAAQ,YAAY,CAAC,MAAM,QAAQ,aAAa,mBAAmB,CAAC,CAAC;GACnH,oDAAoD,MAAM,QAAQ,YAAY,CAAC,MAAM,QAAQ,aAAa,+BAA+B,CAAC,CAAC;GAC3I,+BAA+B,MAAM,QAAQ,YAAY,CAAC,MAAM,SAAS,gBAAgB,CAAC,CAAC;EAC5F,GAAG;CACL;AACF"}
@@ -0,0 +1,6 @@
1
+ import { QuestionContentDto } from "../../../../../../../../../src/contexts/question/application/dto/question/question-content/question-content.dto.shape.mjs";
2
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.d.ts
3
+ declare function createFakeQuestionContentDto(questionContentDto?: Partial<QuestionContentDto>): QuestionContentDto;
4
+ //#endregion
5
+ export { createFakeQuestionContentDto };
6
+ //# sourceMappingURL=question-content.dto.faketory.d.mts.map
@@ -0,0 +1,15 @@
1
+ import { faker } from "@faker-js/faker";
2
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.ts
3
+ function createFakeQuestionContentDto(questionContentDto = {}) {
4
+ return {
5
+ statement: faker.lorem.sentence(),
6
+ answer: faker.lorem.sentence(),
7
+ context: faker.helpers.maybe(faker.lorem.sentence),
8
+ trivia: faker.helpers.maybe(() => [faker.lorem.sentence(), faker.lorem.sentence()]),
9
+ ...questionContentDto
10
+ };
11
+ }
12
+ //#endregion
13
+ export { createFakeQuestionContentDto };
14
+
15
+ //# sourceMappingURL=question-content.dto.faketory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-content.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionContentDto } from \"@question/application/dto/question/question-content/question-content.dto.shape\";\n\nfunction createFakeQuestionContentDto(questionContentDto: Partial<QuestionContentDto> = {}): QuestionContentDto {\n return {\n statement: faker.lorem.sentence(),\n answer: faker.lorem.sentence(),\n context: faker.helpers.maybe(faker.lorem.sentence),\n trivia: faker.helpers.maybe(() => [faker.lorem.sentence(), faker.lorem.sentence()]),\n ...questionContentDto,\n };\n}\n\nexport {\n createFakeQuestionContentDto,\n};"],"mappings":";;AAIA,SAAS,6BAA6B,qBAAkD,CAAC,GAAuB;CAC9G,OAAO;EACL,WAAW,MAAM,MAAM,SAAS;EAChC,QAAQ,MAAM,MAAM,SAAS;EAC7B,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,QAAQ;EACjD,QAAQ,MAAM,QAAQ,YAAY,CAAC,MAAM,MAAM,SAAS,GAAG,MAAM,MAAM,SAAS,CAAC,CAAC;EAClF,GAAG;CACL;AACF"}
@@ -0,0 +1,6 @@
1
+ import { QuestionThemeAssignmentDto } from "../../../../../../../../../src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.mjs";
2
+ //#region ../../tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.d.ts
3
+ declare function createFakeQuestionThemeAssignmentDto(assign?: Partial<QuestionThemeAssignmentDto>): QuestionThemeAssignmentDto;
4
+ //#endregion
5
+ export { createFakeQuestionThemeAssignmentDto };
6
+ //# sourceMappingURL=question-theme-assignment.dto.faketory.d.mts.map
@@ -0,0 +1,15 @@
1
+ import { createFakeQuestionThemeDto } 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/question/question-theme-assignment/question-theme-assignment.dto.faketory.ts
4
+ function createFakeQuestionThemeAssignmentDto(assign = {}) {
5
+ return {
6
+ theme: createFakeQuestionThemeDto(),
7
+ isPrimary: faker.datatype.boolean(),
8
+ isHint: faker.datatype.boolean(),
9
+ ...assign
10
+ };
11
+ }
12
+ //#endregion
13
+ export { createFakeQuestionThemeAssignmentDto };
14
+
15
+ //# sourceMappingURL=question-theme-assignment.dto.faketory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-theme-assignment.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport type { QuestionThemeAssignmentDto } from \"@question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape\";\n\nimport { createFakeQuestionThemeDto } from \"@faketories/contexts/question-theme/dto/question-theme.dto.faketory\";\n\nfunction createFakeQuestionThemeAssignmentDto(assign: Partial<QuestionThemeAssignmentDto> = {}): QuestionThemeAssignmentDto {\n return {\n theme: createFakeQuestionThemeDto(),\n isPrimary: faker.datatype.boolean(),\n isHint: faker.datatype.boolean(),\n ...assign,\n };\n}\n\nexport {\n createFakeQuestionThemeAssignmentDto,\n};"],"mappings":";;;AAMA,SAAS,qCAAqC,SAA8C,CAAC,GAA+B;CAC1H,OAAO;EACL,OAAO,2BAA2B;EAClC,WAAW,MAAM,SAAS,QAAQ;EAClC,QAAQ,MAAM,SAAS,QAAQ;EAC/B,GAAG;CACL;AACF"}
@@ -0,0 +1,6 @@
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
@@ -0,0 +1,27 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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
@@ -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/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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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
@@ -0,0 +1,21 @@
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