@cravery/core 0.0.15 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ai/flow.d.ts +1 -1
- package/dist/lib/ai/flow.d.ts.map +1 -1
- package/dist/lib/ai/flow.js +11 -11
- package/dist/lib/ai/flow.js.map +1 -1
- package/dist/lib/api.d.ts +1 -1
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/api.js +2 -2
- package/dist/lib/api.js.map +1 -1
- package/dist/lib/utils/sanitize.d.ts +1 -1
- package/dist/lib/utils/sanitize.d.ts.map +1 -1
- package/dist/types/ai/recipe.d.ts +3 -2
- package/dist/types/ai/recipe.d.ts.map +1 -1
- package/dist/types/ai/recipe.js +14 -14
- package/dist/types/ai/recipe.js.map +1 -1
- package/dist/types/ai/translation.d.ts +3 -2
- package/dist/types/ai/translation.d.ts.map +1 -1
- package/dist/types/ai/translation.js +8 -8
- package/dist/types/ai/translation.js.map +1 -1
- package/dist/types/core/asset.d.ts +3 -2
- package/dist/types/core/asset.d.ts.map +1 -1
- package/dist/types/core/asset.js +6 -6
- package/dist/types/core/asset.js.map +1 -1
- package/dist/types/core/enums/image_type.d.ts +1 -1
- package/dist/types/core/enums/image_type.d.ts.map +1 -1
- package/dist/types/core/enums/image_type.js +2 -2
- package/dist/types/core/enums/image_type.js.map +1 -1
- package/dist/types/core/enums/locale.d.ts +1 -1
- package/dist/types/core/enums/locale.d.ts.map +1 -1
- package/dist/types/core/enums/locale.js +2 -2
- package/dist/types/core/enums/locale.js.map +1 -1
- package/dist/types/core/enums/measurement_system.d.ts +1 -1
- package/dist/types/core/enums/measurement_system.d.ts.map +1 -1
- package/dist/types/core/enums/measurement_system.js +2 -2
- package/dist/types/core/enums/measurement_system.js.map +1 -1
- package/dist/types/core/enums/theme.d.ts +1 -1
- package/dist/types/core/enums/theme.d.ts.map +1 -1
- package/dist/types/core/enums/theme.js +2 -2
- package/dist/types/core/enums/theme.js.map +1 -1
- package/dist/types/core/enums/url_type.d.ts +1 -1
- package/dist/types/core/enums/url_type.d.ts.map +1 -1
- package/dist/types/core/enums/url_type.js +2 -2
- package/dist/types/core/enums/url_type.js.map +1 -1
- package/dist/types/core/settings.d.ts +5 -3
- package/dist/types/core/settings.d.ts.map +1 -1
- package/dist/types/core/settings.js +14 -14
- package/dist/types/core/settings.js.map +1 -1
- package/dist/types/iam/enums/profile_status.d.ts +1 -1
- package/dist/types/iam/enums/profile_status.d.ts.map +1 -1
- package/dist/types/iam/enums/profile_status.js +2 -2
- package/dist/types/iam/enums/profile_status.js.map +1 -1
- package/dist/types/iam/enums/subscription_role.d.ts +1 -1
- package/dist/types/iam/enums/subscription_role.d.ts.map +1 -1
- package/dist/types/iam/enums/subscription_role.js +2 -2
- package/dist/types/iam/enums/subscription_role.js.map +1 -1
- package/dist/types/iam/enums/subscription_status.d.ts +1 -1
- package/dist/types/iam/enums/subscription_status.d.ts.map +1 -1
- package/dist/types/iam/enums/subscription_status.js +2 -2
- package/dist/types/iam/enums/subscription_status.js.map +1 -1
- package/dist/types/iam/enums/subscription_tier.d.ts +1 -1
- package/dist/types/iam/enums/subscription_tier.d.ts.map +1 -1
- package/dist/types/iam/enums/subscription_tier.js +2 -2
- package/dist/types/iam/enums/subscription_tier.js.map +1 -1
- package/dist/types/iam/enums/user_role.d.ts +1 -1
- package/dist/types/iam/enums/user_role.d.ts.map +1 -1
- package/dist/types/iam/enums/user_role.js +2 -2
- package/dist/types/iam/enums/user_role.js.map +1 -1
- package/dist/types/iam/enums/user_status.d.ts +1 -1
- package/dist/types/iam/enums/user_status.d.ts.map +1 -1
- package/dist/types/iam/enums/user_status.js +2 -2
- package/dist/types/iam/enums/user_status.js.map +1 -1
- package/dist/types/iam/profile.d.ts +5 -3
- package/dist/types/iam/profile.d.ts.map +1 -1
- package/dist/types/iam/profile.js +17 -17
- package/dist/types/iam/profile.js.map +1 -1
- package/dist/types/iam/subscription.d.ts +5 -3
- package/dist/types/iam/subscription.d.ts.map +1 -1
- package/dist/types/iam/subscription.js +11 -11
- package/dist/types/iam/subscription.js.map +1 -1
- package/dist/types/iam/user.d.ts +3 -2
- package/dist/types/iam/user.d.ts.map +1 -1
- package/dist/types/iam/user.js +10 -10
- package/dist/types/iam/user.js.map +1 -1
- package/dist/types/moderation/enums/moderation_status.d.ts +1 -1
- package/dist/types/moderation/enums/moderation_status.d.ts.map +1 -1
- package/dist/types/moderation/enums/moderation_status.js +2 -2
- package/dist/types/moderation/enums/moderation_status.js.map +1 -1
- package/dist/types/moderation/enums/priority.d.ts +1 -1
- package/dist/types/moderation/enums/priority.d.ts.map +1 -1
- package/dist/types/moderation/enums/priority.js +2 -2
- package/dist/types/moderation/enums/priority.js.map +1 -1
- package/dist/types/moderation/enums/severity.d.ts +1 -1
- package/dist/types/moderation/enums/severity.d.ts.map +1 -1
- package/dist/types/moderation/enums/severity.js +2 -2
- package/dist/types/moderation/enums/severity.js.map +1 -1
- package/dist/types/moderation/enums/suggestion_category.d.ts +1 -1
- package/dist/types/moderation/enums/suggestion_category.d.ts.map +1 -1
- package/dist/types/moderation/enums/suggestion_category.js +2 -2
- package/dist/types/moderation/enums/suggestion_category.js.map +1 -1
- package/dist/types/moderation/moderation.d.ts +9 -5
- package/dist/types/moderation/moderation.d.ts.map +1 -1
- package/dist/types/moderation/moderation.js +25 -25
- package/dist/types/moderation/moderation.js.map +1 -1
- package/dist/types/recipe/enums/allergen.d.ts +1 -1
- package/dist/types/recipe/enums/allergen.d.ts.map +1 -1
- package/dist/types/recipe/enums/allergen.js +2 -2
- package/dist/types/recipe/enums/allergen.js.map +1 -1
- package/dist/types/recipe/enums/cuisine.d.ts +1 -1
- package/dist/types/recipe/enums/cuisine.d.ts.map +1 -1
- package/dist/types/recipe/enums/cuisine.js +2 -2
- package/dist/types/recipe/enums/cuisine.js.map +1 -1
- package/dist/types/recipe/enums/dietary_tag.d.ts +1 -1
- package/dist/types/recipe/enums/dietary_tag.d.ts.map +1 -1
- package/dist/types/recipe/enums/dietary_tag.js +2 -2
- package/dist/types/recipe/enums/dietary_tag.js.map +1 -1
- package/dist/types/recipe/enums/difficulty.d.ts +1 -1
- package/dist/types/recipe/enums/difficulty.d.ts.map +1 -1
- package/dist/types/recipe/enums/difficulty.js +2 -2
- package/dist/types/recipe/enums/difficulty.js.map +1 -1
- package/dist/types/recipe/enums/meal_type.d.ts +1 -1
- package/dist/types/recipe/enums/meal_type.d.ts.map +1 -1
- package/dist/types/recipe/enums/meal_type.js +2 -2
- package/dist/types/recipe/enums/meal_type.js.map +1 -1
- package/dist/types/recipe/enums/recipe_source.d.ts +1 -1
- package/dist/types/recipe/enums/recipe_source.d.ts.map +1 -1
- package/dist/types/recipe/enums/recipe_source.js +2 -2
- package/dist/types/recipe/enums/recipe_source.js.map +1 -1
- package/dist/types/recipe/enums/recipe_status.d.ts +1 -1
- package/dist/types/recipe/enums/recipe_status.d.ts.map +1 -1
- package/dist/types/recipe/enums/recipe_status.js +2 -2
- package/dist/types/recipe/enums/recipe_status.js.map +1 -1
- package/dist/types/recipe/enums/spiciness.d.ts +1 -1
- package/dist/types/recipe/enums/spiciness.d.ts.map +1 -1
- package/dist/types/recipe/enums/spiciness.js +2 -2
- package/dist/types/recipe/enums/spiciness.js.map +1 -1
- package/dist/types/recipe/enums/temperature_unit.d.ts +1 -1
- package/dist/types/recipe/enums/temperature_unit.d.ts.map +1 -1
- package/dist/types/recipe/enums/temperature_unit.js +2 -2
- package/dist/types/recipe/enums/temperature_unit.js.map +1 -1
- package/dist/types/recipe/enums/unit.d.ts +1 -1
- package/dist/types/recipe/enums/unit.d.ts.map +1 -1
- package/dist/types/recipe/enums/unit.js +2 -2
- package/dist/types/recipe/enums/unit.js.map +1 -1
- package/dist/types/recipe/equipment.d.ts +7 -4
- package/dist/types/recipe/equipment.d.ts.map +1 -1
- package/dist/types/recipe/equipment.js +9 -9
- package/dist/types/recipe/equipment.js.map +1 -1
- package/dist/types/recipe/filters.d.ts +3 -2
- package/dist/types/recipe/filters.d.ts.map +1 -1
- package/dist/types/recipe/filters.js +8 -8
- package/dist/types/recipe/filters.js.map +1 -1
- package/dist/types/recipe/ingredient.d.ts +11 -6
- package/dist/types/recipe/ingredient.d.ts.map +1 -1
- package/dist/types/recipe/ingredient.js +21 -21
- package/dist/types/recipe/ingredient.js.map +1 -1
- package/dist/types/recipe/instruction.d.ts +7 -4
- package/dist/types/recipe/instruction.d.ts.map +1 -1
- package/dist/types/recipe/instruction.js +8 -8
- package/dist/types/recipe/instruction.js.map +1 -1
- package/dist/types/recipe/nutrition.d.ts +3 -2
- package/dist/types/recipe/nutrition.d.ts.map +1 -1
- package/dist/types/recipe/nutrition.js +11 -11
- package/dist/types/recipe/nutrition.js.map +1 -1
- package/dist/types/recipe/recipe.d.ts +9 -5
- package/dist/types/recipe/recipe.d.ts.map +1 -1
- package/dist/types/recipe/recipe.js +53 -53
- package/dist/types/recipe/recipe.js.map +1 -1
- package/dist/types/recipe/temperature.d.ts +3 -2
- package/dist/types/recipe/temperature.d.ts.map +1 -1
- package/dist/types/recipe/temperature.js +3 -3
- package/dist/types/recipe/temperature.js.map +1 -1
- package/dist/types/report/enums/report_priority.d.ts +1 -1
- package/dist/types/report/enums/report_priority.d.ts.map +1 -1
- package/dist/types/report/enums/report_priority.js +2 -2
- package/dist/types/report/enums/report_priority.js.map +1 -1
- package/dist/types/report/enums/report_status.d.ts +1 -1
- package/dist/types/report/enums/report_status.d.ts.map +1 -1
- package/dist/types/report/enums/report_status.js +2 -2
- package/dist/types/report/enums/report_status.js.map +1 -1
- package/dist/types/report/enums/report_target_type.d.ts +1 -1
- package/dist/types/report/enums/report_target_type.d.ts.map +1 -1
- package/dist/types/report/enums/report_target_type.js +2 -2
- package/dist/types/report/enums/report_target_type.js.map +1 -1
- package/dist/types/report/enums/report_type.d.ts +1 -1
- package/dist/types/report/enums/report_type.d.ts.map +1 -1
- package/dist/types/report/enums/report_type.js +2 -2
- package/dist/types/report/enums/report_type.js.map +1 -1
- package/dist/types/report/report.d.ts +5 -3
- package/dist/types/report/report.d.ts.map +1 -1
- package/dist/types/report/report.js +20 -20
- package/dist/types/report/report.js.map +1 -1
- package/package.json +3 -2
- package/src/lib/ai/flow.ts +1 -1
- package/src/lib/api.ts +1 -1
- package/src/lib/utils/sanitize.ts +1 -1
- package/src/types/ai/recipe.ts +2 -2
- package/src/types/ai/translation.ts +2 -2
- package/src/types/core/asset.ts +2 -2
- package/src/types/core/enums/image_type.ts +1 -1
- package/src/types/core/enums/locale.ts +1 -1
- package/src/types/core/enums/measurement_system.ts +1 -1
- package/src/types/core/enums/theme.ts +1 -1
- package/src/types/core/enums/url_type.ts +1 -1
- package/src/types/core/settings.ts +3 -3
- package/src/types/iam/enums/profile_status.ts +1 -1
- package/src/types/iam/enums/subscription_role.ts +1 -1
- package/src/types/iam/enums/subscription_status.ts +1 -1
- package/src/types/iam/enums/subscription_tier.ts +1 -1
- package/src/types/iam/enums/user_role.ts +1 -1
- package/src/types/iam/enums/user_status.ts +1 -1
- package/src/types/iam/profile.ts +3 -3
- package/src/types/iam/subscription.ts +3 -3
- package/src/types/iam/user.ts +2 -2
- package/src/types/moderation/enums/moderation_status.ts +1 -1
- package/src/types/moderation/enums/priority.ts +1 -1
- package/src/types/moderation/enums/severity.ts +1 -1
- package/src/types/moderation/enums/suggestion_category.ts +1 -1
- package/src/types/moderation/moderation.ts +5 -5
- package/src/types/recipe/enums/allergen.ts +1 -1
- package/src/types/recipe/enums/cuisine.ts +1 -1
- package/src/types/recipe/enums/dietary_tag.ts +1 -1
- package/src/types/recipe/enums/difficulty.ts +1 -1
- package/src/types/recipe/enums/meal_type.ts +1 -1
- package/src/types/recipe/enums/recipe_source.ts +1 -1
- package/src/types/recipe/enums/recipe_status.ts +1 -1
- package/src/types/recipe/enums/spiciness.ts +1 -1
- package/src/types/recipe/enums/temperature_unit.ts +1 -1
- package/src/types/recipe/enums/unit.ts +1 -1
- package/src/types/recipe/equipment.ts +4 -4
- package/src/types/recipe/filters.ts +2 -2
- package/src/types/recipe/ingredient.ts +6 -6
- package/src/types/recipe/instruction.ts +4 -4
- package/src/types/recipe/nutrition.ts +2 -2
- package/src/types/recipe/recipe.ts +5 -5
- package/src/types/recipe/temperature.ts +2 -2
- package/src/types/report/enums/report_priority.ts +1 -1
- package/src/types/report/enums/report_status.ts +1 -1
- package/src/types/report/enums/report_target_type.ts +1 -1
- package/src/types/report/enums/report_type.ts +1 -1
- package/src/types/report/report.ts +3 -3
- package/dist/lib/errors/index.d.ts +0 -40
- package/dist/lib/errors/index.d.ts.map +0 -1
- package/dist/lib/errors/index.js +0 -97
- package/dist/lib/errors/index.js.map +0 -1
- package/dist/lib/repository/equipment.repository.d.ts +0 -15
- package/dist/lib/repository/equipment.repository.d.ts.map +0 -1
- package/dist/lib/repository/equipment.repository.js +0 -65
- package/dist/lib/repository/equipment.repository.js.map +0 -1
- package/dist/lib/repository/errors.d.ts +0 -20
- package/dist/lib/repository/errors.d.ts.map +0 -1
- package/dist/lib/repository/errors.js +0 -33
- package/dist/lib/repository/errors.js.map +0 -1
- package/dist/lib/repository/factory.d.ts +0 -19
- package/dist/lib/repository/factory.d.ts.map +0 -1
- package/dist/lib/repository/factory.js +0 -31
- package/dist/lib/repository/factory.js.map +0 -1
- package/dist/lib/repository/firestore.repository.d.ts +0 -50
- package/dist/lib/repository/firestore.repository.d.ts.map +0 -1
- package/dist/lib/repository/firestore.repository.js +0 -410
- package/dist/lib/repository/firestore.repository.js.map +0 -1
- package/dist/lib/repository/index.d.ts +0 -13
- package/dist/lib/repository/index.d.ts.map +0 -1
- package/dist/lib/repository/index.js +0 -29
- package/dist/lib/repository/index.js.map +0 -1
- package/dist/lib/repository/ingredient.repository.d.ts +0 -15
- package/dist/lib/repository/ingredient.repository.d.ts.map +0 -1
- package/dist/lib/repository/ingredient.repository.js +0 -65
- package/dist/lib/repository/ingredient.repository.js.map +0 -1
- package/dist/lib/repository/profile.repository.d.ts +0 -12
- package/dist/lib/repository/profile.repository.d.ts.map +0 -1
- package/dist/lib/repository/profile.repository.js +0 -39
- package/dist/lib/repository/profile.repository.js.map +0 -1
- package/dist/lib/repository/recipe-queue.repository.d.ts +0 -10
- package/dist/lib/repository/recipe-queue.repository.d.ts.map +0 -1
- package/dist/lib/repository/recipe-queue.repository.js +0 -37
- package/dist/lib/repository/recipe-queue.repository.js.map +0 -1
- package/dist/lib/repository/recipe.repository.d.ts +0 -10
- package/dist/lib/repository/recipe.repository.d.ts.map +0 -1
- package/dist/lib/repository/recipe.repository.js +0 -40
- package/dist/lib/repository/recipe.repository.js.map +0 -1
- package/dist/lib/repository/report.repository.d.ts +0 -15
- package/dist/lib/repository/report.repository.d.ts.map +0 -1
- package/dist/lib/repository/report.repository.js +0 -47
- package/dist/lib/repository/report.repository.js.map +0 -1
- package/dist/lib/repository/rtdb.repository.d.ts +0 -21
- package/dist/lib/repository/rtdb.repository.d.ts.map +0 -1
- package/dist/lib/repository/rtdb.repository.js +0 -55
- package/dist/lib/repository/rtdb.repository.js.map +0 -1
- package/dist/lib/repository/settings.repository.d.ts +0 -11
- package/dist/lib/repository/settings.repository.d.ts.map +0 -1
- package/dist/lib/repository/settings.repository.js +0 -48
- package/dist/lib/repository/settings.repository.js.map +0 -1
- package/dist/lib/repository/user.repository.d.ts +0 -11
- package/dist/lib/repository/user.repository.d.ts.map +0 -1
- package/dist/lib/repository/user.repository.js +0 -36
- package/dist/lib/repository/user.repository.js.map +0 -1
- package/dist/types/ai/filters.d.ts +0 -31
- package/dist/types/ai/filters.d.ts.map +0 -1
- package/dist/types/ai/filters.js +0 -16
- package/dist/types/ai/filters.js.map +0 -1
- package/dist/types/ai/flow.d.ts +0 -323
- package/dist/types/ai/flow.d.ts.map +0 -1
- package/dist/types/ai/flow.js +0 -65
- package/dist/types/ai/flow.js.map +0 -1
- package/dist/types/api.d.ts +0 -14
- package/dist/types/api.d.ts.map +0 -1
- package/dist/types/api.js +0 -3
- package/dist/types/api.js.map +0 -1
- package/dist/types/asset.d.ts +0 -33
- package/dist/types/asset.d.ts.map +0 -1
- package/dist/types/asset.js +0 -18
- package/dist/types/asset.js.map +0 -1
- package/dist/types/enums/allergen.d.ts +0 -5
- package/dist/types/enums/allergen.d.ts.map +0 -1
- package/dist/types/enums/allergen.js +0 -21
- package/dist/types/enums/allergen.js.map +0 -1
- package/dist/types/enums/cuisine.d.ts +0 -5
- package/dist/types/enums/cuisine.d.ts.map +0 -1
- package/dist/types/enums/cuisine.js +0 -41
- package/dist/types/enums/cuisine.js.map +0 -1
- package/dist/types/enums/dietary_tag.d.ts +0 -5
- package/dist/types/enums/dietary_tag.d.ts.map +0 -1
- package/dist/types/enums/dietary_tag.js +0 -23
- package/dist/types/enums/dietary_tag.js.map +0 -1
- package/dist/types/enums/difficulty.d.ts +0 -5
- package/dist/types/enums/difficulty.d.ts.map +0 -1
- package/dist/types/enums/difficulty.js +0 -12
- package/dist/types/enums/difficulty.js.map +0 -1
- package/dist/types/enums/image_type.d.ts +0 -5
- package/dist/types/enums/image_type.d.ts.map +0 -1
- package/dist/types/enums/image_type.js +0 -7
- package/dist/types/enums/image_type.js.map +0 -1
- package/dist/types/enums/index.d.ts +0 -24
- package/dist/types/enums/index.d.ts.map +0 -1
- package/dist/types/enums/index.js +0 -40
- package/dist/types/enums/index.js.map +0 -1
- package/dist/types/enums/locale.d.ts +0 -5
- package/dist/types/enums/locale.d.ts.map +0 -1
- package/dist/types/enums/locale.js +0 -7
- package/dist/types/enums/locale.js.map +0 -1
- package/dist/types/enums/meal_type.d.ts +0 -5
- package/dist/types/enums/meal_type.d.ts.map +0 -1
- package/dist/types/enums/meal_type.js +0 -16
- package/dist/types/enums/meal_type.js.map +0 -1
- package/dist/types/enums/moderation_status.d.ts +0 -5
- package/dist/types/enums/moderation_status.d.ts.map +0 -1
- package/dist/types/enums/moderation_status.js +0 -11
- package/dist/types/enums/moderation_status.js.map +0 -1
- package/dist/types/enums/priority.d.ts +0 -5
- package/dist/types/enums/priority.d.ts.map +0 -1
- package/dist/types/enums/priority.js +0 -7
- package/dist/types/enums/priority.js.map +0 -1
- package/dist/types/enums/profile_status.d.ts +0 -5
- package/dist/types/enums/profile_status.d.ts.map +0 -1
- package/dist/types/enums/profile_status.js +0 -12
- package/dist/types/enums/profile_status.js.map +0 -1
- package/dist/types/enums/recipe_source.d.ts +0 -5
- package/dist/types/enums/recipe_source.d.ts.map +0 -1
- package/dist/types/enums/recipe_source.js +0 -7
- package/dist/types/enums/recipe_source.js.map +0 -1
- package/dist/types/enums/recipe_status.d.ts +0 -5
- package/dist/types/enums/recipe_status.d.ts.map +0 -1
- package/dist/types/enums/recipe_status.js +0 -14
- package/dist/types/enums/recipe_status.js.map +0 -1
- package/dist/types/enums/role.d.ts +0 -5
- package/dist/types/enums/role.d.ts.map +0 -1
- package/dist/types/enums/role.js +0 -13
- package/dist/types/enums/role.js.map +0 -1
- package/dist/types/enums/severity.d.ts +0 -5
- package/dist/types/enums/severity.d.ts.map +0 -1
- package/dist/types/enums/severity.js +0 -7
- package/dist/types/enums/severity.js.map +0 -1
- package/dist/types/enums/spiciness.d.ts +0 -5
- package/dist/types/enums/spiciness.d.ts.map +0 -1
- package/dist/types/enums/spiciness.js +0 -7
- package/dist/types/enums/spiciness.js.map +0 -1
- package/dist/types/enums/subscription_role.d.ts +0 -5
- package/dist/types/enums/subscription_role.d.ts.map +0 -1
- package/dist/types/enums/subscription_role.js +0 -13
- package/dist/types/enums/subscription_role.js.map +0 -1
- package/dist/types/enums/subscription_status.d.ts +0 -5
- package/dist/types/enums/subscription_status.d.ts.map +0 -1
- package/dist/types/enums/subscription_status.js +0 -14
- package/dist/types/enums/subscription_status.js.map +0 -1
- package/dist/types/enums/subscription_tier.d.ts +0 -4
- package/dist/types/enums/subscription_tier.d.ts.map +0 -1
- package/dist/types/enums/subscription_tier.js +0 -6
- package/dist/types/enums/subscription_tier.js.map +0 -1
- package/dist/types/enums/suggestion_category.d.ts +0 -5
- package/dist/types/enums/suggestion_category.d.ts.map +0 -1
- package/dist/types/enums/suggestion_category.js +0 -13
- package/dist/types/enums/suggestion_category.js.map +0 -1
- package/dist/types/enums/temperature_unit.d.ts +0 -5
- package/dist/types/enums/temperature_unit.d.ts.map +0 -1
- package/dist/types/enums/temperature_unit.js +0 -7
- package/dist/types/enums/temperature_unit.js.map +0 -1
- package/dist/types/enums/unit.d.ts +0 -5
- package/dist/types/enums/unit.d.ts.map +0 -1
- package/dist/types/enums/unit.js +0 -53
- package/dist/types/enums/unit.js.map +0 -1
- package/dist/types/enums/url_type.d.ts +0 -5
- package/dist/types/enums/url_type.d.ts.map +0 -1
- package/dist/types/enums/url_type.js +0 -15
- package/dist/types/enums/url_type.js.map +0 -1
- package/dist/types/enums/user_status.d.ts +0 -5
- package/dist/types/enums/user_status.d.ts.map +0 -1
- package/dist/types/enums/user_status.js +0 -12
- package/dist/types/enums/user_status.js.map +0 -1
- package/dist/types/iam/settings.d.ts +0 -96
- package/dist/types/iam/settings.d.ts.map +0 -1
- package/dist/types/iam/settings.js +0 -31
- package/dist/types/iam/settings.js.map +0 -1
- package/dist/types/moderation.d.ts +0 -168
- package/dist/types/moderation.d.ts.map +0 -1
- package/dist/types/moderation.js +0 -39
- package/dist/types/moderation.js.map +0 -1
- package/dist/types/report.d.ts +0 -135
- package/dist/types/report.d.ts.map +0 -1
- package/dist/types/report.js +0 -61
- package/dist/types/report.js.map +0 -1
- package/dist/types/repository.d.ts +0 -80
- package/dist/types/repository.d.ts.map +0 -1
- package/dist/types/repository.js +0 -6
- package/dist/types/repository.js.map +0 -1
- package/dist/types/response.d.ts +0 -16
- package/dist/types/response.d.ts.map +0 -1
- package/dist/types/response.js +0 -14
- package/dist/types/response.js.map +0 -1
- package/dist/types/settings.d.ts +0 -95
- package/dist/types/settings.d.ts.map +0 -1
- package/dist/types/settings.js +0 -36
- package/dist/types/settings.js.map +0 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ModerateRecipeOutputSchema = exports.ModerateRecipeInputSchema = exports.ModerationSchema = exports.ModerationSuggestionSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const core_1 = require("../core");
|
|
6
6
|
const enums_1 = require("./enums");
|
|
7
|
-
exports.ModerationSuggestionSchema =
|
|
7
|
+
exports.ModerationSuggestionSchema = zod_1.z.object({
|
|
8
8
|
category: enums_1.SuggestionCategorySchema,
|
|
9
|
-
field:
|
|
9
|
+
field: zod_1.z.string(),
|
|
10
10
|
severity: enums_1.SeveritySchema,
|
|
11
|
-
suggestion:
|
|
11
|
+
suggestion: zod_1.z.string(),
|
|
12
12
|
});
|
|
13
|
-
exports.ModerationSchema =
|
|
14
|
-
assessedAt:
|
|
15
|
-
createdAt:
|
|
16
|
-
id:
|
|
13
|
+
exports.ModerationSchema = zod_1.z.object({
|
|
14
|
+
assessedAt: zod_1.z.custom().optional(),
|
|
15
|
+
createdAt: zod_1.z.custom(),
|
|
16
|
+
id: zod_1.z.string(),
|
|
17
17
|
originalLocale: core_1.LocaleSchema,
|
|
18
18
|
priority: enums_1.PrioritySchema,
|
|
19
|
-
qualityScore:
|
|
20
|
-
recipeId:
|
|
21
|
-
rejectionReason:
|
|
22
|
-
reviewedAt:
|
|
23
|
-
reviewedBy:
|
|
19
|
+
qualityScore: zod_1.z.number().min(0).max(1).optional(),
|
|
20
|
+
recipeId: zod_1.z.string(),
|
|
21
|
+
rejectionReason: zod_1.z.string().optional(),
|
|
22
|
+
reviewedAt: zod_1.z.custom().optional(),
|
|
23
|
+
reviewedBy: zod_1.z.string().optional(),
|
|
24
24
|
status: enums_1.ModerationStatusSchema,
|
|
25
|
-
suggestions:
|
|
26
|
-
userId:
|
|
25
|
+
suggestions: zod_1.z.array(exports.ModerationSuggestionSchema).optional(),
|
|
26
|
+
userId: zod_1.z.string(),
|
|
27
27
|
});
|
|
28
|
-
exports.ModerateRecipeInputSchema =
|
|
29
|
-
moderationId:
|
|
30
|
-
recipeId:
|
|
31
|
-
userId:
|
|
28
|
+
exports.ModerateRecipeInputSchema = zod_1.z.object({
|
|
29
|
+
moderationId: zod_1.z.string(),
|
|
30
|
+
recipeId: zod_1.z.string(),
|
|
31
|
+
userId: zod_1.z.string(),
|
|
32
32
|
});
|
|
33
|
-
exports.ModerateRecipeOutputSchema =
|
|
34
|
-
autoApproved:
|
|
35
|
-
autoRejected:
|
|
36
|
-
qualityScore:
|
|
37
|
-
rejectionReason:
|
|
38
|
-
suggestions:
|
|
33
|
+
exports.ModerateRecipeOutputSchema = zod_1.z.object({
|
|
34
|
+
autoApproved: zod_1.z.boolean(),
|
|
35
|
+
autoRejected: zod_1.z.boolean(),
|
|
36
|
+
qualityScore: zod_1.z.number().min(0).max(1),
|
|
37
|
+
rejectionReason: zod_1.z.string().optional(),
|
|
38
|
+
suggestions: zod_1.z.array(exports.ModerationSuggestionSchema),
|
|
39
39
|
});
|
|
40
40
|
//# sourceMappingURL=moderation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,kCAAuC;AACvC,mCAKiB;AAEJ,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,QAAQ,EAAE,gCAAwB;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,sBAAc;IACxB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAa;IAChC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,mBAAY;IAC5B,QAAQ,EAAE,sBAAc;IACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC5C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,8BAAsB;IAC9B,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE;IACzB,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE;IACzB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC;CACjD,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const ALLERGEN_VALUES: readonly ["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"];
|
|
3
3
|
export declare const AllergenSchema: z.ZodEnum<["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"]>;
|
|
4
4
|
export type Allergen = (typeof ALLERGEN_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allergen.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/allergen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"allergen.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/allergen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,yIAclB,CAAC;AACX,eAAO,MAAM,cAAc,2IAA0B,CAAC;AACtD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AllergenSchema = exports.ALLERGEN_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.ALLERGEN_VALUES = [
|
|
6
6
|
"celery",
|
|
7
7
|
"dairy",
|
|
@@ -17,5 +17,5 @@ exports.ALLERGEN_VALUES = [
|
|
|
17
17
|
"soy",
|
|
18
18
|
"sulfites",
|
|
19
19
|
];
|
|
20
|
-
exports.AllergenSchema =
|
|
20
|
+
exports.AllergenSchema = zod_1.z.enum(exports.ALLERGEN_VALUES);
|
|
21
21
|
//# sourceMappingURL=allergen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allergen.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/allergen.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"allergen.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/allergen.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,eAAe,GAAG;IAC7B,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,SAAS;IACT,MAAM;IACN,SAAS;IACT,QAAQ;IACR,WAAW;IACX,KAAK;IACL,UAAU;CACF,CAAC;AACE,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,uBAAe,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const CUISINE_VALUES: readonly ["african", "american", "brazilian", "british", "caribbean", "chinese", "egyptian", "emirati", "ethiopian", "filipino", "french", "fusion", "german", "greek", "indian", "indonesian", "italian", "japanese", "korean", "lebanese", "malaysian", "mexican", "moroccan", "pakistani", "persian", "russian", "saudi", "spanish", "sudanese", "thai", "turkish", "vietnamese", "other"];
|
|
3
3
|
export declare const CuisineSchema: z.ZodEnum<["african", "american", "brazilian", "british", "caribbean", "chinese", "egyptian", "emirati", "ethiopian", "filipino", "french", "fusion", "german", "greek", "indian", "indonesian", "italian", "japanese", "korean", "lebanese", "malaysian", "mexican", "moroccan", "pakistani", "persian", "russian", "saudi", "spanish", "sudanese", "thai", "turkish", "vietnamese", "other"]>;
|
|
4
4
|
export type Cuisine = (typeof CUISINE_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cuisine.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/cuisine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cuisine.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/cuisine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,+XAkCjB,CAAC;AACX,eAAO,MAAM,aAAa,iYAAyB,CAAC;AACpD,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CuisineSchema = exports.CUISINE_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.CUISINE_VALUES = [
|
|
6
6
|
"african",
|
|
7
7
|
"american",
|
|
@@ -37,5 +37,5 @@ exports.CUISINE_VALUES = [
|
|
|
37
37
|
"vietnamese",
|
|
38
38
|
"other",
|
|
39
39
|
];
|
|
40
|
-
exports.CuisineSchema =
|
|
40
|
+
exports.CuisineSchema = zod_1.z.enum(exports.CUISINE_VALUES);
|
|
41
41
|
//# sourceMappingURL=cuisine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cuisine.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/cuisine.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"cuisine.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/cuisine.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,cAAc,GAAG;IAC5B,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,WAAW;IACX,SAAS;IACT,UAAU;IACV,SAAS;IACT,WAAW;IACX,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,UAAU;IACV,QAAQ;IACR,UAAU;IACV,WAAW;IACX,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,SAAS;IACT,OAAO;IACP,SAAS;IACT,UAAU;IACV,MAAM;IACN,SAAS;IACT,YAAY;IACZ,OAAO;CACC,CAAC;AACE,QAAA,aAAa,GAAG,OAAC,CAAC,IAAI,CAAC,sBAAc,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const DIETARY_TAG_VALUES: readonly ["dairy_free", "egg_free", "gluten_free", "halal", "high_protein", "keto", "low_carb", "low_fat", "low_sodium", "low_sugar", "nut_free", "pescatarian", "soy_free", "vegan", "vegetarian"];
|
|
3
3
|
export declare const DietaryTagSchema: z.ZodEnum<["dairy_free", "egg_free", "gluten_free", "halal", "high_protein", "keto", "low_carb", "low_fat", "low_sodium", "low_sugar", "nut_free", "pescatarian", "soy_free", "vegan", "vegetarian"]>;
|
|
4
4
|
export type DietaryTag = (typeof DIETARY_TAG_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dietary_tag.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/dietary_tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dietary_tag.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/dietary_tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,qMAgBrB,CAAC;AACX,eAAO,MAAM,gBAAgB,uMAA6B,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DietaryTagSchema = exports.DIETARY_TAG_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.DIETARY_TAG_VALUES = [
|
|
6
6
|
"dairy_free",
|
|
7
7
|
"egg_free",
|
|
@@ -19,5 +19,5 @@ exports.DIETARY_TAG_VALUES = [
|
|
|
19
19
|
"vegan",
|
|
20
20
|
"vegetarian",
|
|
21
21
|
];
|
|
22
|
-
exports.DietaryTagSchema =
|
|
22
|
+
exports.DietaryTagSchema = zod_1.z.enum(exports.DIETARY_TAG_VALUES);
|
|
23
23
|
//# sourceMappingURL=dietary_tag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dietary_tag.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/dietary_tag.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"dietary_tag.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/dietary_tag.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAAG;IAChC,YAAY;IACZ,UAAU;IACV,aAAa;IACb,OAAO;IACP,cAAc;IACd,MAAM;IACN,UAAU;IACV,SAAS;IACT,YAAY;IACZ,WAAW;IACX,UAAU;IACV,aAAa;IACb,UAAU;IACV,OAAO;IACP,YAAY;CACJ,CAAC;AACE,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC,0BAAkB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const DIFFICULTY_VALUES: readonly ["beginner", "intermediate", "advanced", "expert"];
|
|
3
3
|
export declare const DifficultySchema: z.ZodEnum<["beginner", "intermediate", "advanced", "expert"]>;
|
|
4
4
|
export type Difficulty = (typeof DIFFICULTY_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"difficulty.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/difficulty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"difficulty.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/difficulty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB,6DAKpB,CAAC;AACX,eAAO,MAAM,gBAAgB,+DAA4B,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DifficultySchema = exports.DIFFICULTY_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.DIFFICULTY_VALUES = [
|
|
6
6
|
"beginner",
|
|
7
7
|
"intermediate",
|
|
8
8
|
"advanced",
|
|
9
9
|
"expert",
|
|
10
10
|
];
|
|
11
|
-
exports.DifficultySchema =
|
|
11
|
+
exports.DifficultySchema = zod_1.z.enum(exports.DIFFICULTY_VALUES);
|
|
12
12
|
//# sourceMappingURL=difficulty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"difficulty.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/difficulty.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"difficulty.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/difficulty.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,iBAAiB,GAAG;IAC/B,UAAU;IACV,cAAc;IACd,UAAU;IACV,QAAQ;CACA,CAAC;AACE,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC,yBAAiB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const MEAL_TYPE_VALUES: readonly ["appetizer", "breakfast", "brunch", "dessert", "dinner", "drink", "lunch", "snack"];
|
|
3
3
|
export declare const MealTypeSchema: z.ZodEnum<["appetizer", "breakfast", "brunch", "dessert", "dinner", "drink", "lunch", "snack"]>;
|
|
4
4
|
export type MealType = (typeof MEAL_TYPE_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meal_type.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/meal_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"meal_type.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/meal_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,+FASnB,CAAC;AACX,eAAO,MAAM,cAAc,iGAA2B,CAAC;AACvD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MealTypeSchema = exports.MEAL_TYPE_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.MEAL_TYPE_VALUES = [
|
|
6
6
|
"appetizer",
|
|
7
7
|
"breakfast",
|
|
@@ -12,5 +12,5 @@ exports.MEAL_TYPE_VALUES = [
|
|
|
12
12
|
"lunch",
|
|
13
13
|
"snack",
|
|
14
14
|
];
|
|
15
|
-
exports.MealTypeSchema =
|
|
15
|
+
exports.MealTypeSchema = zod_1.z.enum(exports.MEAL_TYPE_VALUES);
|
|
16
16
|
//# sourceMappingURL=meal_type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meal_type.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/meal_type.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"meal_type.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/meal_type.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,gBAAgB,GAAG;IAC9B,WAAW;IACX,WAAW;IACX,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;CACC,CAAC;AACE,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,wBAAgB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const RECIPE_SOURCE_VALUES: readonly ["image", "text", "url"];
|
|
3
3
|
export declare const RecipeSourceSchema: z.ZodEnum<["image", "text", "url"]>;
|
|
4
4
|
export type RecipeSource = (typeof RECIPE_SOURCE_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe_source.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/recipe_source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"recipe_source.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/recipe_source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB,mCAAoC,CAAC;AACtE,eAAO,MAAM,kBAAkB,qCAA+B,CAAC;AAC/D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RecipeSourceSchema = exports.RECIPE_SOURCE_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.RECIPE_SOURCE_VALUES = ["image", "text", "url"];
|
|
6
|
-
exports.RecipeSourceSchema =
|
|
6
|
+
exports.RecipeSourceSchema = zod_1.z.enum(exports.RECIPE_SOURCE_VALUES);
|
|
7
7
|
//# sourceMappingURL=recipe_source.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe_source.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/recipe_source.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"recipe_source.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/recipe_source.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,oBAAoB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC;AACzD,QAAA,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC,4BAAoB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const RECIPE_STATUS_VALUES: readonly ["active", "archived", "deleted", "flagged", "pending", "rejected"];
|
|
3
3
|
export declare const RecipeStatusSchema: z.ZodEnum<["active", "archived", "deleted", "flagged", "pending", "rejected"]>;
|
|
4
4
|
export type RecipeStatus = (typeof RECIPE_STATUS_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe_status.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/recipe_status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"recipe_status.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/recipe_status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB,8EAOvB,CAAC;AACX,eAAO,MAAM,kBAAkB,gFAA+B,CAAC;AAC/D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RecipeStatusSchema = exports.RECIPE_STATUS_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.RECIPE_STATUS_VALUES = [
|
|
6
6
|
"active",
|
|
7
7
|
"archived",
|
|
@@ -10,5 +10,5 @@ exports.RECIPE_STATUS_VALUES = [
|
|
|
10
10
|
"pending",
|
|
11
11
|
"rejected",
|
|
12
12
|
];
|
|
13
|
-
exports.RecipeStatusSchema =
|
|
13
|
+
exports.RecipeStatusSchema = zod_1.z.enum(exports.RECIPE_STATUS_VALUES);
|
|
14
14
|
//# sourceMappingURL=recipe_status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe_status.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/recipe_status.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"recipe_status.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/recipe_status.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,oBAAoB,GAAG;IAClC,QAAQ;IACR,UAAU;IACV,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;CACF,CAAC;AACE,QAAA,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC,4BAAoB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const SPICINESS_VALUES: readonly ["none", "mild", "medium", "hot"];
|
|
3
3
|
export declare const SpicinessSchema: z.ZodEnum<["none", "mild", "medium", "hot"]>;
|
|
4
4
|
export type Spiciness = (typeof SPICINESS_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spiciness.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/spiciness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"spiciness.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/spiciness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,4CAA6C,CAAC;AAC3E,eAAO,MAAM,eAAe,8CAA2B,CAAC;AACxD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SpicinessSchema = exports.SPICINESS_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.SPICINESS_VALUES = ["none", "mild", "medium", "hot"];
|
|
6
|
-
exports.SpicinessSchema =
|
|
6
|
+
exports.SpicinessSchema = zod_1.z.enum(exports.SPICINESS_VALUES);
|
|
7
7
|
//# sourceMappingURL=spiciness.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spiciness.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/spiciness.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"spiciness.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/spiciness.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAU,CAAC;AAC9D,QAAA,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC,wBAAgB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const TEMPERATURE_UNIT_VALUES: readonly ["celsius", "fahrenheit"];
|
|
3
3
|
export declare const TemperatureUnitSchema: z.ZodEnum<["celsius", "fahrenheit"]>;
|
|
4
4
|
export type TemperatureUnit = (typeof TEMPERATURE_UNIT_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temperature_unit.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/temperature_unit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"temperature_unit.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/temperature_unit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB,oCAAqC,CAAC;AAC1E,eAAO,MAAM,qBAAqB,sCAAkC,CAAC;AACrE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TemperatureUnitSchema = exports.TEMPERATURE_UNIT_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.TEMPERATURE_UNIT_VALUES = ["celsius", "fahrenheit"];
|
|
6
|
-
exports.TemperatureUnitSchema =
|
|
6
|
+
exports.TemperatureUnitSchema = zod_1.z.enum(exports.TEMPERATURE_UNIT_VALUES);
|
|
7
7
|
//# sourceMappingURL=temperature_unit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temperature_unit.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/temperature_unit.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"temperature_unit.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/temperature_unit.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,CAAC,SAAS,EAAE,YAAY,CAAU,CAAC;AAC7D,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC,+BAAuB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const UNIT_VALUES: readonly ["ml", "l", "tsp", "tbsp", "fl_oz", "cup", "pint", "quart", "gallon", "mg", "g", "kg", "oz", "lb", "piece", "whole", "half", "quarter", "slice", "serving", "clove", "stalk", "sprig", "leaf", "bunch", "head", "fillet", "stick", "sheet", "can", "package", "bottle", "jar", "handful", "pinch", "dash", "drop"];
|
|
3
3
|
export declare const UnitSchema: z.ZodEnum<["ml", "l", "tsp", "tbsp", "fl_oz", "cup", "pint", "quart", "gallon", "mg", "g", "kg", "oz", "lb", "piece", "whole", "half", "quarter", "slice", "serving", "clove", "stalk", "sprig", "leaf", "bunch", "head", "fillet", "stick", "sheet", "can", "package", "bottle", "jar", "handful", "pinch", "dash", "drop"]>;
|
|
4
4
|
export type Unit = (typeof UNIT_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/unit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../../../src/types/recipe/enums/unit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,6TA8Cd,CAAC;AACX,eAAO,MAAM,UAAU,+TAAsB,CAAC;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UnitSchema = exports.UNIT_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
exports.UNIT_VALUES = [
|
|
6
6
|
// Volume (metric)
|
|
7
7
|
"ml",
|
|
@@ -49,5 +49,5 @@ exports.UNIT_VALUES = [
|
|
|
49
49
|
"dash",
|
|
50
50
|
"drop",
|
|
51
51
|
];
|
|
52
|
-
exports.UnitSchema =
|
|
52
|
+
exports.UnitSchema = zod_1.z.enum(exports.UNIT_VALUES);
|
|
53
53
|
//# sourceMappingURL=unit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/unit.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"unit.js","sourceRoot":"","sources":["../../../../src/types/recipe/enums/unit.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,WAAW,GAAG;IACzB,kBAAkB;IAClB,IAAI;IACJ,GAAG;IACH,oBAAoB;IACpB,KAAK;IACL,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,kBAAkB;IAClB,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,oBAAoB;IACpB,IAAI;IACJ,IAAI;IACJ,gBAAgB;IAChB,OAAO;IACP,OAAO;IACP,MAAM;IACN,SAAS;IACT,OAAO;IACP,SAAS;IACT,mBAAmB;IACnB,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,QAAQ;IACR,OAAO;IACP,OAAO;IACP,YAAY;IACZ,KAAK;IACL,SAAS;IACT,QAAQ;IACR,KAAK;IACL,YAAY;IACZ,SAAS;IACT,OAAO;IACP,MAAM;IACN,MAAM;CACE,CAAC;AACE,QAAA,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,mBAAW,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const EquipmentMetaSchema: z.ZodObject<{
|
|
3
3
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4
4
|
slug: z.ZodString;
|
|
@@ -9,7 +9,8 @@ export declare const EquipmentMetaSchema: z.ZodObject<{
|
|
|
9
9
|
slug: string;
|
|
10
10
|
required?: boolean | undefined;
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
12
|
+
export interface EquipmentMeta extends z.infer<typeof EquipmentMetaSchema> {
|
|
13
|
+
}
|
|
13
14
|
export declare const EquipmentContentSchema: z.ZodObject<{
|
|
14
15
|
name: z.ZodString;
|
|
15
16
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -23,7 +24,8 @@ export declare const EquipmentContentSchema: z.ZodObject<{
|
|
|
23
24
|
name: string;
|
|
24
25
|
notes?: string | undefined;
|
|
25
26
|
}>;
|
|
26
|
-
export
|
|
27
|
+
export interface EquipmentContent extends z.infer<typeof EquipmentContentSchema> {
|
|
28
|
+
}
|
|
27
29
|
export declare const EquipmentSchema: z.ZodObject<{
|
|
28
30
|
name: z.ZodString;
|
|
29
31
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -40,5 +42,6 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
40
42
|
required?: boolean | undefined;
|
|
41
43
|
notes?: string | undefined;
|
|
42
44
|
}>;
|
|
43
|
-
export
|
|
45
|
+
export interface Equipment extends z.infer<typeof EquipmentSchema> {
|
|
46
|
+
}
|
|
44
47
|
//# sourceMappingURL=equipment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AACH,MAAM,WAAW,aAAc,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAE7E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AACH,MAAM,WAAW,gBAAiB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC;CAAG;AAEnF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAG1B,CAAC;AACH,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC;CAAG"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EquipmentSchema = exports.EquipmentContentSchema = exports.EquipmentMetaSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const config_1 = require("../../config");
|
|
6
|
-
exports.EquipmentMetaSchema =
|
|
7
|
-
required:
|
|
8
|
-
slug:
|
|
6
|
+
exports.EquipmentMetaSchema = zod_1.z.object({
|
|
7
|
+
required: zod_1.z.boolean().optional(),
|
|
8
|
+
slug: zod_1.z.string().regex(config_1.SLUG_REGEX),
|
|
9
9
|
});
|
|
10
|
-
exports.EquipmentContentSchema =
|
|
11
|
-
name:
|
|
12
|
-
notes:
|
|
13
|
-
slug:
|
|
10
|
+
exports.EquipmentContentSchema = zod_1.z.object({
|
|
11
|
+
name: zod_1.z.string().min(1).max(100),
|
|
12
|
+
notes: zod_1.z.string().max(200).optional(),
|
|
13
|
+
slug: zod_1.z.string().regex(config_1.SLUG_REGEX),
|
|
14
14
|
});
|
|
15
|
-
exports.EquipmentSchema =
|
|
15
|
+
exports.EquipmentSchema = zod_1.z.object(Object.assign(Object.assign({}, exports.EquipmentMetaSchema.shape), exports.EquipmentContentSchema.shape));
|
|
16
16
|
//# sourceMappingURL=equipment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA0C;AAE7B,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;CACnC,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;CACnC,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,iCAClC,2BAAmB,CAAC,KAAK,GACzB,8BAAsB,CAAC,KAAK,EAC/B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const RecipeFiltersSchema: z.ZodObject<{
|
|
3
3
|
cuisines: z.ZodOptional<z.ZodArray<z.ZodEnum<["african", "american", "brazilian", "british", "caribbean", "chinese", "egyptian", "emirati", "ethiopian", "filipino", "french", "fusion", "german", "greek", "indian", "indonesian", "italian", "japanese", "korean", "lebanese", "malaysian", "mexican", "moroccan", "pakistani", "persian", "russian", "saudi", "spanish", "sudanese", "thai", "turkish", "vietnamese", "other"]>, "many">>;
|
|
4
4
|
dietaryTags: z.ZodOptional<z.ZodArray<z.ZodEnum<["dairy_free", "egg_free", "gluten_free", "halal", "high_protein", "keto", "low_carb", "low_fat", "low_sodium", "low_sugar", "nut_free", "pescatarian", "soy_free", "vegan", "vegetarian"]>, "many">>;
|
|
@@ -27,5 +27,6 @@ export declare const RecipeFiltersSchema: z.ZodObject<{
|
|
|
27
27
|
spiciness?: "none" | "mild" | "medium" | "hot" | undefined;
|
|
28
28
|
timeLimit?: number | undefined;
|
|
29
29
|
}>;
|
|
30
|
-
export
|
|
30
|
+
export interface RecipeFilters extends z.infer<typeof RecipeFiltersSchema> {
|
|
31
|
+
}
|
|
31
32
|
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAC;AACH,MAAM,WAAW,aAAc,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CAAG"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RecipeFiltersSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const enums_1 = require("./enums");
|
|
6
|
-
exports.RecipeFiltersSchema =
|
|
7
|
-
cuisines:
|
|
8
|
-
dietaryTags:
|
|
6
|
+
exports.RecipeFiltersSchema = zod_1.z.object({
|
|
7
|
+
cuisines: zod_1.z.array(enums_1.CuisineSchema).optional(),
|
|
8
|
+
dietaryTags: zod_1.z.array(enums_1.DietaryTagSchema).optional(),
|
|
9
9
|
difficulty: enums_1.DifficultySchema.optional(),
|
|
10
|
-
excludeIngredients:
|
|
11
|
-
includeIngredients:
|
|
12
|
-
mealTypes:
|
|
10
|
+
excludeIngredients: zod_1.z.array(zod_1.z.string()).optional(),
|
|
11
|
+
includeIngredients: zod_1.z.array(zod_1.z.string()).optional(),
|
|
12
|
+
mealTypes: zod_1.z.array(enums_1.MealTypeSchema).optional(),
|
|
13
13
|
spiciness: enums_1.SpicinessSchema.optional(),
|
|
14
|
-
timeLimit:
|
|
14
|
+
timeLimit: zod_1.z.number().int().min(5).max(300).optional(),
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=filters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAMiB;AAEJ,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,qBAAa,CAAC,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,wBAAgB,CAAC,QAAQ,EAAE;IACvC,kBAAkB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,kBAAkB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IAC7C,SAAS,EAAE,uBAAe,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC"}
|