@goat-it/schemas 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/question/index.d.mts +20 -20
- package/dist/question/index.mjs +19 -19
- package/dist/question-theme/index.d.mts +10 -10
- package/dist/question-theme/index.mjs +9 -9
- package/dist/shared/constants/index.d.mts +5 -5
- package/dist/shared/constants/index.mjs +4 -4
- package/dist/shared/error/index.d.mts +2 -2
- package/dist/shared/error/index.mjs +2 -2
- package/dist/shared/locale/index.d.mts +3 -3
- package/dist/shared/locale/index.mjs +2 -2
- package/dist/src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.d.mts +24 -0
- package/dist/src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.mjs +24 -0
- package/dist/src/contexts/question/application/dto/admin-find-questions-query/admin-find-questions-query.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.d.mts +12 -0
- package/dist/src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.mjs +13 -0
- package/dist/src/contexts/question/application/dto/admin-question/admin-question-content/admin-question-content.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.d.mts +22 -0
- package/dist/src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.mjs +13 -0
- package/dist/src/contexts/question/application/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/admin-question/admin-question.dto.shape.d.mts +57 -0
- package/dist/src/contexts/question/application/dto/admin-question/admin-question.dto.shape.mjs +25 -0
- package/dist/src/contexts/question/application/dto/admin-question/admin-question.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.d.mts +22 -0
- package/dist/src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.mjs +23 -0
- package/dist/src/contexts/question/application/dto/find-questions-query/find-questions-query.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.d.mts +12 -0
- package/dist/src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.mjs +14 -0
- package/dist/src/contexts/question/application/dto/find-random-questions-query/constants/find-random-questions-query.dto.constants.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.d.mts +14 -0
- package/dist/src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.mjs +17 -0
- package/dist/src/contexts/question/application/dto/find-random-questions-query/find-random-questions-query.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question/question-content/question-content.dto.shape.d.mts +12 -0
- package/dist/src/contexts/question/application/dto/question/question-content/question-content.dto.shape.mjs +13 -0
- package/dist/src/contexts/question/application/dto/question/question-content/question-content.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.d.mts +22 -0
- package/dist/src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.mjs +13 -0
- package/dist/src/contexts/question/application/dto/question/question-theme-assignment/question-theme-assignment.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question/question.dto.shape.d.mts +57 -0
- package/dist/src/contexts/question/application/dto/question/question.dto.shape.mjs +25 -0
- package/dist/src/contexts/question/application/dto/question/question.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.d.mts +13 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.mjs +11 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-author-creation/question-author-creation.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.d.mts +12 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.mjs +13 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-content-creation/question-content-creation.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-creation.dto.shape.d.mts +30 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-creation.dto.shape.mjs +20 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-creation.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.d.mts +11 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.mjs +13 -0
- package/dist/src/contexts/question/application/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.d.mts +12 -0
- package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.mjs +13 -0
- package/dist/src/contexts/question/application/dto/question-modification/question-content-modification/question-content-modification.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question-modification/question-modification.dto.shape.d.mts +18 -0
- package/dist/src/contexts/question/application/dto/question-modification/question-modification.dto.shape.mjs +14 -0
- package/dist/src/contexts/question/application/dto/question-modification/question-modification.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question-stats/question-stats.dto.shape.d.mts +38 -0
- package/dist/src/contexts/question/application/dto/question-stats/question-stats.dto.shape.mjs +15 -0
- package/dist/src/contexts/question/application/dto/question-stats/question-stats.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.d.mts +10 -0
- package/dist/src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.mjs +11 -0
- package/dist/src/contexts/question/application/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/shared/constants/question-filter-query.dto.constants.mjs +10 -0
- package/dist/src/contexts/question/application/dto/shared/constants/question-filter-query.dto.constants.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.d.mts +15 -0
- package/dist/src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.mjs +14 -0
- package/dist/src/contexts/question/application/dto/shared/question-author/question-author.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.d.mts +16 -0
- package/dist/src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.mjs +11 -0
- package/dist/src/contexts/question/application/dto/shared/question-rejection/question-rejection.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/shared/zod/refinements/question-author/question-author.dto.zod.refinement.mjs +10 -0
- package/dist/src/contexts/question/application/dto/shared/zod/refinements/question-author/question-author.dto.zod.refinement.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/constants/question-sort.dto.zod.validators.constants.d.mts +5 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/constants/question-sort.dto.zod.validators.constants.mjs +7 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/constants/question-sort.dto.zod.validators.constants.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/constants/question-content.zod.validators.constants.mjs +9 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/constants/question-content.zod.validators.constants.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/question-content.dto.zod.validators.mjs +32 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/question-content/question-content.dto.zod.validators.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/question-theme-assignment/question-theme-assignment.dto.zod.validators.mjs +12 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/question-theme-assignment/question-theme-assignment.dto.zod.validators.mjs.map +1 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/question.dto.zod.validators.mjs +48 -0
- package/dist/src/contexts/question/application/dto/shared/zod/validators/question.dto.zod.validators.mjs.map +1 -0
- package/dist/src/contexts/question/domain/constants/question.constants.d.mts +24 -0
- package/dist/src/contexts/question/domain/constants/question.constants.mjs +61 -0
- package/dist/src/contexts/question/domain/constants/question.constants.mjs.map +1 -0
- package/dist/src/contexts/question/domain/types/question.value-objects.d.mts +18 -0
- package/dist/src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.d.mts +21 -0
- package/dist/src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.mjs +19 -0
- package/dist/src/contexts/question-theme/application/dto/admin-find-question-themes-query/admin-find-question-themes-query.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.d.mts +18 -0
- package/dist/src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.mjs +18 -0
- package/dist/src/contexts/question-theme/application/dto/admin-question-theme/admin-question-theme.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.d.mts +18 -0
- package/dist/src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.mjs +17 -0
- package/dist/src/contexts/question-theme/application/dto/find-question-themes-query/find-question-themes-query.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.d.mts +18 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.mjs +18 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme/question-theme.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.d.mts +13 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.mjs +14 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme-creation/question-theme-creation.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.d.mts +13 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.mjs +14 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme-modification/question-theme-modification.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme-stats/question-theme-stats.dto.shape.d.mts +18 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme-stats/question-theme-stats.dto.shape.mjs +16 -0
- package/dist/src/contexts/question-theme/application/dto/question-theme-stats/question-theme-stats.dto.shape.mjs.map +1 -0
- package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme-sort.dto.zod.validators.constants.d.mts +6 -0
- package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme-sort.dto.zod.validators.constants.mjs +9 -0
- package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme-sort.dto.zod.validators.constants.mjs.map +1 -0
- package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme.zod.validators.constants.mjs +13 -0
- package/dist/src/contexts/question-theme/application/dto/zod/validators/constants/question-theme.zod.validators.constants.mjs.map +1 -0
- package/dist/src/contexts/question-theme/application/dto/zod/validators/question-theme.dto.zod.validators.mjs +46 -0
- package/dist/src/contexts/question-theme/application/dto/zod/validators/question-theme.dto.zod.validators.mjs.map +1 -0
- package/dist/src/contexts/question-theme/domain/constants/question-theme.constants.d.mts +9 -0
- package/dist/src/contexts/question-theme/domain/constants/question-theme.constants.mjs +19 -0
- package/dist/src/contexts/question-theme/domain/constants/question-theme.constants.mjs.map +1 -0
- package/dist/src/contexts/question-theme/domain/types/question-theme.entities.d.mts +2 -0
- package/dist/src/contexts/question-theme/domain/types/question-theme.value-objects.d.mts +9 -0
- package/dist/src/shared/application/dto/constants/limit-query.dto.constants.mjs +6 -0
- package/dist/src/shared/application/dto/constants/limit-query.dto.constants.mjs.map +1 -0
- package/dist/src/shared/application/dto/constants/sort-query.dto.constants.mjs +7 -0
- package/dist/src/shared/application/dto/constants/sort-query.dto.constants.mjs.map +1 -0
- package/dist/src/shared/application/dto/zod/preprocessors/array/array.zod.preprocessors.mjs +13 -0
- package/dist/src/shared/application/dto/zod/preprocessors/array/array.zod.preprocessors.mjs.map +1 -0
- package/dist/src/shared/application/dto/zod/refinements/array/array.zod.refinements.mjs +14 -0
- package/dist/src/shared/application/dto/zod/refinements/array/array.zod.refinements.mjs.map +1 -0
- package/dist/src/shared/application/dto/zod/validators/array/array.zod.validators.mjs +22 -0
- package/dist/src/shared/application/dto/zod/validators/array/array.zod.validators.mjs.map +1 -0
- package/dist/src/shared/domain/constants/sort/sort.constants.d.mts +5 -0
- package/dist/src/shared/domain/constants/sort/sort.constants.mjs +6 -0
- package/dist/src/shared/domain/constants/sort/sort.constants.mjs.map +1 -0
- package/dist/src/shared/domain/types/sort/sort.types.d.mts +7 -0
- package/dist/src/shared/domain/value-objects/locale/helpers/locale.helpers.d.mts +6 -0
- package/dist/src/shared/domain/value-objects/locale/helpers/locale.helpers.mjs +9 -0
- package/dist/src/shared/domain/value-objects/locale/helpers/locale.helpers.mjs.map +1 -0
- package/dist/src/shared/domain/value-objects/locale/locale.constants.d.mts +5 -0
- package/dist/src/shared/domain/value-objects/locale/locale.constants.mjs +21 -0
- package/dist/src/shared/domain/value-objects/locale/locale.constants.mjs.map +1 -0
- package/dist/src/shared/domain/value-objects/locale/locale.types.d.mts +13 -0
- package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.d.mts +21 -0
- package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.mjs +25 -0
- package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception-validation-details/api-response-exception-validation-details.dto.shape.mjs.map +1 -0
- package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.d.mts +27 -0
- package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.mjs +14 -0
- package/dist/src/shared/infrastructure/http/dto/api-response-exception/api-response-exception.dto.shape.mjs.map +1 -0
- package/dist/src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.d.mts +6 -0
- package/dist/src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.mjs +8 -0
- package/dist/src/shared/infrastructure/http/zod/validators/limit/constants/limit.zod.validators.constants.mjs.map +1 -0
- package/dist/src/shared/infrastructure/http/zod/validators/limit/limit.zod.validators.mjs +10 -0
- package/dist/src/shared/infrastructure/http/zod/validators/limit/limit.zod.validators.mjs.map +1 -0
- package/dist/src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.d.mts +9 -0
- package/dist/src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.mjs +18 -0
- package/dist/src/shared/infrastructure/http/zod/validators/localization/constants/localization.zod.validators.constants.mjs.map +1 -0
- package/dist/src/shared/infrastructure/http/zod/validators/localization/localization.zod.validators.mjs +40 -0
- package/dist/src/shared/infrastructure/http/zod/validators/localization/localization.zod.validators.mjs.map +1 -0
- package/dist/src/shared/infrastructure/http/zod/validators/sort/constants/sort.zod.validators.constants.mjs +7 -0
- package/dist/src/shared/infrastructure/http/zod/validators/sort/constants/sort.zod.validators.constants.mjs.map +1 -0
- package/dist/src/shared/infrastructure/http/zod/validators/sort/sort.zod.validators.mjs +11 -0
- package/dist/src/shared/infrastructure/http/zod/validators/sort/sort.zod.validators.mjs.map +1 -0
- package/dist/src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.d.mts +9 -0
- package/dist/src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.mjs +12 -0
- package/dist/src/shared/infrastructure/http/zod/validators/string/constants/string.zod.validators.constants.mjs.map +1 -0
- package/dist/src/shared/infrastructure/http/zod/validators/string/string.zod.validators.mjs +31 -0
- package/dist/src/shared/infrastructure/http/zod/validators/string/string.zod.validators.mjs.map +1 -0
- package/dist/src/shared/types/enum.types.d.mts +22 -0
- package/dist/testing/question/index.d.mts +18 -18
- package/dist/testing/question/index.mjs +18 -18
- package/dist/testing/question-theme/index.d.mts +4 -4
- package/dist/testing/question-theme/index.mjs +4 -4
- package/dist/testing/shared/index.d.mts +2 -2
- package/dist/testing/shared/index.mjs +2 -2
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs +25 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-find-questions-query/admin-find-questions-query.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs +16 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-content/admin-question-content.dto.faketory.mjs.map +1 -0
- 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
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question-theme-assignment/admin-question-theme-assignment.dto.faketory.mjs +15 -0
- 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
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs +27 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/admin-question/admin-question.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs +24 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/find-questions-query/find-questions-query.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs +23 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/find-random-questions-query/find-random-questions-query.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs +15 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-content/question-content.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs +15 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question-theme-assignment/question-theme-assignment.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs +27 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs +14 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-author-creation/question-author-creation.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs +16 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-content-creation/question-content-creation.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs +21 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-creation.dto.faketory.mjs.map +1 -0
- 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
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-creation/question-theme-assignment-creation/question-theme-assignment-creation.dto.faketory.mjs +14 -0
- 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
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.d.mts +8 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs +26 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-modification/question-modification.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.mjs +102 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs +13 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/question-theme-assignment-modification/question-theme-assignment-modification.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs +18 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-author/question-author.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs +14 -0
- package/dist/tests/shared/utils/faketories/contexts/question/dto/shared/question-rejection/question-rejection.dto.faketory.mjs.map +1 -0
- 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
- 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
- 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
- package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs +19 -0
- package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/find-question-themes-query/find-question-themes-query.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory.d.mts +6 -0
- package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory.mjs +37 -0
- package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme-stats/question-theme-stats.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.d.mts +12 -0
- package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs +60 -0
- package/dist/tests/shared/utils/faketories/contexts/question-theme/dto/question-theme.dto.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.d.mts +8 -0
- package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs +32 -0
- package/dist/tests/shared/utils/faketories/shared/infrastructure/http/dto/api-response-exception/api-response-exception.faketory.mjs.map +1 -0
- package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.d.mts +8 -0
- package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.mjs +36 -0
- package/dist/tests/shared/utils/faketories/shared/locale/locale.faketory.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -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
|
package/dist/tests/shared/utils/faketories/contexts/question/dto/question/question.dto.faketory.mjs
ADDED
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { QuestionStatsDto } from "../../../../../../../../src/contexts/question/application/dto/question-stats/question-stats.dto.shape.mjs";
|
|
2
|
+
//#region ../../tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.d.ts
|
|
3
|
+
declare function createFakeQuestionStatsDto(overrides?: Partial<QuestionStatsDto>): QuestionStatsDto;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { createFakeQuestionStatsDto };
|
|
6
|
+
//# sourceMappingURL=question-stats.dto.faketory.d.mts.map
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { QUESTION_AUTHOR_ROLE_ADMIN, QUESTION_AUTHOR_ROLE_GAME, QUESTION_STATUS_ACTIVE, QUESTION_STATUS_ARCHIVED, QUESTION_STATUS_PENDING, QUESTION_STATUS_REJECTED } 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-stats/question-stats.dto.faketory.ts
|
|
4
|
+
function createFakeQuestionStatsDto(overrides = {}) {
|
|
5
|
+
return {
|
|
6
|
+
total: faker.number.int({
|
|
7
|
+
min: 0,
|
|
8
|
+
max: 100
|
|
9
|
+
}),
|
|
10
|
+
byStatus: {
|
|
11
|
+
[QUESTION_STATUS_PENDING]: faker.number.int({
|
|
12
|
+
min: 0,
|
|
13
|
+
max: 20
|
|
14
|
+
}),
|
|
15
|
+
[QUESTION_STATUS_ACTIVE]: faker.number.int({
|
|
16
|
+
min: 0,
|
|
17
|
+
max: 20
|
|
18
|
+
}),
|
|
19
|
+
[QUESTION_STATUS_ARCHIVED]: faker.number.int({
|
|
20
|
+
min: 0,
|
|
21
|
+
max: 20
|
|
22
|
+
}),
|
|
23
|
+
[QUESTION_STATUS_REJECTED]: faker.number.int({
|
|
24
|
+
min: 0,
|
|
25
|
+
max: 20
|
|
26
|
+
})
|
|
27
|
+
},
|
|
28
|
+
byCategory: {
|
|
29
|
+
trivia: faker.number.int({
|
|
30
|
+
min: 0,
|
|
31
|
+
max: 20
|
|
32
|
+
}),
|
|
33
|
+
lexicon: faker.number.int({
|
|
34
|
+
min: 0,
|
|
35
|
+
max: 20
|
|
36
|
+
}),
|
|
37
|
+
riddle: faker.number.int({
|
|
38
|
+
min: 0,
|
|
39
|
+
max: 20
|
|
40
|
+
}),
|
|
41
|
+
explanation: faker.number.int({
|
|
42
|
+
min: 0,
|
|
43
|
+
max: 20
|
|
44
|
+
})
|
|
45
|
+
},
|
|
46
|
+
byCognitiveDifficulty: {
|
|
47
|
+
easy: faker.number.int({
|
|
48
|
+
min: 0,
|
|
49
|
+
max: 20
|
|
50
|
+
}),
|
|
51
|
+
medium: faker.number.int({
|
|
52
|
+
min: 0,
|
|
53
|
+
max: 20
|
|
54
|
+
}),
|
|
55
|
+
hard: faker.number.int({
|
|
56
|
+
min: 0,
|
|
57
|
+
max: 20
|
|
58
|
+
})
|
|
59
|
+
},
|
|
60
|
+
byAuthorRole: {
|
|
61
|
+
[QUESTION_AUTHOR_ROLE_ADMIN]: faker.number.int({
|
|
62
|
+
min: 0,
|
|
63
|
+
max: 20
|
|
64
|
+
}),
|
|
65
|
+
[QUESTION_AUTHOR_ROLE_GAME]: faker.number.int({
|
|
66
|
+
min: 0,
|
|
67
|
+
max: 20
|
|
68
|
+
}),
|
|
69
|
+
["ai"]: faker.number.int({
|
|
70
|
+
min: 0,
|
|
71
|
+
max: 20
|
|
72
|
+
})
|
|
73
|
+
},
|
|
74
|
+
byRejectionType: {
|
|
75
|
+
"inappropriate-content": faker.number.int({
|
|
76
|
+
min: 0,
|
|
77
|
+
max: 20
|
|
78
|
+
}),
|
|
79
|
+
"incorrect-information": faker.number.int({
|
|
80
|
+
min: 0,
|
|
81
|
+
max: 20
|
|
82
|
+
}),
|
|
83
|
+
"poor-quality": faker.number.int({
|
|
84
|
+
min: 0,
|
|
85
|
+
max: 20
|
|
86
|
+
}),
|
|
87
|
+
"duplicate-question": faker.number.int({
|
|
88
|
+
min: 0,
|
|
89
|
+
max: 20
|
|
90
|
+
}),
|
|
91
|
+
"other": faker.number.int({
|
|
92
|
+
min: 0,
|
|
93
|
+
max: 20
|
|
94
|
+
})
|
|
95
|
+
},
|
|
96
|
+
...overrides
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
export { createFakeQuestionStatsDto };
|
|
101
|
+
|
|
102
|
+
//# sourceMappingURL=question-stats.dto.faketory.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question-stats.dto.faketory.mjs","names":[],"sources":["../../../../../../../../../../../tests/shared/utils/faketories/contexts/question/dto/question-stats/question-stats.dto.faketory.ts"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nimport {\n QUESTION_AUTHOR_ROLE_ADMIN,\n QUESTION_AUTHOR_ROLE_AI,\n QUESTION_AUTHOR_ROLE_GAME,\n QUESTION_STATUS_ACTIVE,\n QUESTION_STATUS_ARCHIVED,\n QUESTION_STATUS_PENDING,\n QUESTION_STATUS_REJECTED,\n} from \"@question/domain/constants/question.constants\";\nimport type { QuestionStatsDto } from \"@question/application/dto/question-stats/question-stats.dto.shape\";\n\nfunction createFakeQuestionStatsDto(overrides: Partial<QuestionStatsDto> = {}): QuestionStatsDto {\n return {\n total: faker.number.int({ min: 0, max: 100 }),\n byStatus: {\n [QUESTION_STATUS_PENDING]: faker.number.int({ min: 0, max: 20 }),\n [QUESTION_STATUS_ACTIVE]: faker.number.int({ min: 0, max: 20 }),\n [QUESTION_STATUS_ARCHIVED]: faker.number.int({ min: 0, max: 20 }),\n [QUESTION_STATUS_REJECTED]: faker.number.int({ min: 0, max: 20 }),\n },\n byCategory: {\n trivia: faker.number.int({ min: 0, max: 20 }),\n lexicon: faker.number.int({ min: 0, max: 20 }),\n riddle: faker.number.int({ min: 0, max: 20 }),\n explanation: faker.number.int({ min: 0, max: 20 }),\n },\n byCognitiveDifficulty: {\n easy: faker.number.int({ min: 0, max: 20 }),\n medium: faker.number.int({ min: 0, max: 20 }),\n hard: faker.number.int({ min: 0, max: 20 }),\n },\n byAuthorRole: {\n [QUESTION_AUTHOR_ROLE_ADMIN]: faker.number.int({ min: 0, max: 20 }),\n [QUESTION_AUTHOR_ROLE_GAME]: faker.number.int({ min: 0, max: 20 }),\n [QUESTION_AUTHOR_ROLE_AI]: faker.number.int({ min: 0, max: 20 }),\n },\n byRejectionType: {\n \"inappropriate-content\": faker.number.int({ min: 0, max: 20 }),\n \"incorrect-information\": faker.number.int({ min: 0, max: 20 }),\n \"poor-quality\": faker.number.int({ min: 0, max: 20 }),\n \"duplicate-question\": faker.number.int({ min: 0, max: 20 }),\n \"other\": faker.number.int({ min: 0, max: 20 }),\n },\n ...overrides,\n };\n}\n\nexport { createFakeQuestionStatsDto };"],"mappings":";;;AAaA,SAAS,2BAA2B,YAAuC,CAAC,GAAqB;CAC/F,OAAO;EACL,OAAO,MAAM,OAAO,IAAI;GAAE,KAAK;GAAG,KAAK;EAAI,CAAC;EAC5C,UAAU;IACP,0BAA0B,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;IAC9D,yBAAyB,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;IAC7D,2BAA2B,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;IAC/D,2BAA2B,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;EAClE;EACA,YAAY;GACV,QAAQ,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;GAC5C,SAAS,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;GAC7C,QAAQ,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;GAC5C,aAAa,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;EACnD;EACA,uBAAuB;GACrB,MAAM,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;GAC1C,QAAQ,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;GAC5C,MAAM,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;EAC5C;EACA,cAAc;IACX,6BAA6B,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;IACjE,4BAA4B,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;IACtC,OAAA,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;EACjE;EACA,iBAAiB;GACf,yBAAyB,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;GAC7D,yBAAyB,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;GAC7D,gBAAgB,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;GACpD,sBAAsB,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;GAC1D,SAAS,MAAM,OAAO,IAAI;IAAE,KAAK;IAAG,KAAK;GAAG,CAAC;EAC/C;EACA,GAAG;CACL;AACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|