@cravery/core 0.0.56 → 0.0.58
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/README.md +80 -80
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/types/core/entity.d.ts +4 -2
- package/dist/types/core/entity.d.ts.map +1 -1
- package/dist/types/core/errors.d.ts +1 -3
- package/dist/types/core/errors.d.ts.map +1 -1
- package/dist/types/core/errors.js +11 -13
- package/dist/types/core/errors.js.map +1 -1
- package/dist/types/core/index.d.ts +0 -3
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/index.js +0 -3
- package/dist/types/core/index.js.map +1 -1
- package/dist/types/core/locale.d.ts +1 -1
- package/dist/types/core/locale.d.ts.map +1 -1
- package/dist/types/core/locale.js +1 -1
- package/dist/types/core/locale.js.map +1 -1
- package/dist/types/core/measurement_system.d.ts +1 -1
- package/dist/types/core/measurement_system.js +1 -1
- package/dist/types/core/measurement_system.js.map +1 -1
- package/dist/types/core/theme.d.ts +1 -1
- package/dist/types/core/theme.js +1 -1
- package/dist/types/core/theme.js.map +1 -1
- package/dist/types/equipment/equipment.d.ts +2 -2
- package/dist/types/equipment/equipment.d.ts.map +1 -1
- package/dist/types/equipment/equipment_entity.d.ts +2 -2
- package/dist/types/equipment/equipment_entity.d.ts.map +1 -1
- package/dist/types/equipment/user_equipment.d.ts +1 -1
- package/dist/types/equipment/user_equipment.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +6 -6
- package/dist/types/index.js.map +1 -1
- package/dist/types/ingredients/category.d.ts.map +1 -0
- package/dist/types/ingredients/category.js.map +1 -0
- package/dist/types/ingredients/group.d.ts.map +1 -0
- package/dist/types/ingredients/group.js.map +1 -0
- package/dist/types/ingredients/index.d.ts.map +1 -0
- package/dist/types/ingredients/index.js.map +1 -0
- package/dist/types/{ingredient → ingredients}/ingredient.d.ts +3 -3
- package/dist/types/ingredients/ingredient.d.ts.map +1 -0
- package/dist/types/ingredients/ingredient.js.map +1 -0
- package/dist/types/{ingredient → ingredients}/ingredient_entity.d.ts +4 -2
- package/dist/types/ingredients/ingredient_entity.d.ts.map +1 -0
- package/dist/types/ingredients/ingredient_entity.js.map +1 -0
- package/dist/types/ingredients/ingredient_section.d.ts.map +1 -0
- package/dist/types/ingredients/ingredient_section.js.map +1 -0
- package/dist/types/{ingredient → ingredients}/user_ingredient.d.ts +2 -2
- package/dist/types/ingredients/user_ingredient.d.ts.map +1 -0
- package/dist/types/ingredients/user_ingredient.js.map +1 -0
- package/dist/types/recipes/allergen.d.ts.map +1 -0
- package/dist/types/recipes/allergen.js.map +1 -0
- package/dist/types/recipes/comment.d.ts.map +1 -0
- package/dist/types/{recipe → recipes}/comment.js.map +1 -1
- package/dist/types/recipes/cuisine.d.ts +3 -0
- package/dist/types/recipes/cuisine.d.ts.map +1 -0
- package/dist/types/recipes/cuisine.js +79 -0
- package/dist/types/recipes/cuisine.js.map +1 -0
- package/dist/types/recipes/dietary_tag.d.ts.map +1 -0
- package/dist/types/recipes/dietary_tag.js.map +1 -0
- package/dist/types/recipes/difficulty.d.ts +3 -0
- package/dist/types/recipes/difficulty.d.ts.map +1 -0
- package/dist/types/{recipe → recipes}/difficulty.js +3 -3
- package/dist/types/recipes/difficulty.js.map +1 -0
- package/dist/types/{recipe → recipes}/index.d.ts +0 -2
- package/dist/types/recipes/index.d.ts.map +1 -0
- package/dist/types/{recipe → recipes}/index.js +1 -2
- package/dist/types/recipes/index.js.map +1 -0
- package/dist/types/{recipe → recipes}/instruction.d.ts +1 -1
- package/dist/types/recipes/instruction.d.ts.map +1 -0
- package/dist/types/recipes/instruction.js.map +1 -0
- package/dist/types/recipes/meal_type.d.ts +3 -0
- package/dist/types/recipes/meal_type.d.ts.map +1 -0
- package/dist/types/{recipe → recipes}/meal_type.js +2 -0
- package/dist/types/recipes/meal_type.js.map +1 -0
- package/dist/types/recipes/nutrition.d.ts.map +1 -0
- package/dist/types/recipes/nutrition.js.map +1 -0
- package/dist/types/{recipe → recipes}/recipe.d.ts +3 -12
- package/dist/types/recipes/recipe.d.ts.map +1 -0
- package/dist/types/{ai → recipes}/recipe.js.map +1 -1
- package/dist/types/recipes/recipe_source.d.ts.map +1 -0
- package/dist/types/recipes/recipe_source.js.map +1 -0
- package/dist/types/recipes/recipe_stats.d.ts +9 -0
- package/dist/types/recipes/recipe_stats.d.ts.map +1 -0
- package/dist/types/{ai/translation.js → recipes/recipe_stats.js} +1 -1
- package/dist/types/recipes/recipe_stats.js.map +1 -0
- package/dist/types/{recipe → recipes}/spiciness.d.ts +1 -1
- package/dist/types/recipes/spiciness.d.ts.map +1 -0
- package/dist/types/{recipe → recipes}/spiciness.js +1 -1
- package/dist/types/recipes/spiciness.js.map +1 -0
- package/dist/types/recipes/temperature.d.ts.map +1 -0
- package/dist/types/recipes/temperature.js.map +1 -0
- package/dist/types/recipes/temperature_unit.d.ts.map +1 -0
- package/dist/types/recipes/temperature_unit.js.map +1 -0
- package/dist/types/recipes/unit.d.ts.map +1 -0
- package/dist/types/recipes/unit.js.map +1 -0
- package/dist/types/reports/category.d.ts +3 -0
- package/dist/types/reports/category.d.ts.map +1 -0
- package/dist/types/reports/category.js +12 -0
- package/dist/types/reports/category.js.map +1 -0
- package/dist/types/reports/index.d.ts +9 -0
- package/dist/types/reports/index.d.ts.map +1 -0
- package/dist/types/{submission → reports}/index.js +7 -4
- package/dist/types/reports/index.js.map +1 -0
- package/dist/types/{report/report_priority.d.ts → reports/priority.d.ts} +1 -1
- package/dist/types/reports/priority.d.ts.map +1 -0
- package/dist/types/{report/report_priority.js → reports/priority.js} +1 -1
- package/dist/types/reports/priority.js.map +1 -0
- package/dist/types/reports/report.d.ts +17 -0
- package/dist/types/reports/report.d.ts.map +1 -0
- package/dist/types/{report → reports}/report.js.map +1 -1
- package/dist/types/{report/report_status.d.ts → reports/status.d.ts} +1 -1
- package/dist/types/reports/status.d.ts.map +1 -0
- package/dist/types/{report/report_status.js → reports/status.js} +1 -1
- package/dist/types/reports/status.js.map +1 -0
- package/dist/types/reports/submission.d.ts +8 -0
- package/dist/types/reports/submission.d.ts.map +1 -0
- package/dist/types/reports/submission.js.map +1 -0
- package/dist/types/reports/target.d.ts +20 -0
- package/dist/types/reports/target.d.ts.map +1 -0
- package/dist/types/{ai/config.js → reports/target.js} +1 -1
- package/dist/types/reports/target.js.map +1 -0
- package/dist/types/reports/update.d.ts +19 -0
- package/dist/types/reports/update.d.ts.map +1 -0
- package/dist/types/reports/update.js +3 -0
- package/dist/types/reports/update.js.map +1 -0
- package/dist/types/reports/update_type.d.ts +3 -0
- package/dist/types/reports/update_type.d.ts.map +1 -0
- package/dist/types/reports/update_type.js +9 -0
- package/dist/types/reports/update_type.js.map +1 -0
- package/dist/types/settings/index.d.ts +3 -0
- package/dist/types/settings/index.d.ts.map +1 -0
- package/dist/types/{ai → settings}/index.js +2 -3
- package/dist/types/settings/index.js.map +1 -0
- package/dist/types/settings/notification.d.ts +7 -0
- package/dist/types/settings/notification.d.ts.map +1 -0
- package/dist/types/settings/notification.js +3 -0
- package/dist/types/settings/notification.js.map +1 -0
- package/dist/types/{core → settings}/settings.d.ts +4 -11
- package/dist/types/settings/settings.d.ts.map +1 -0
- package/dist/types/settings/settings.js.map +1 -0
- package/dist/types/subscriptions/billing_period.d.ts +3 -0
- package/dist/types/subscriptions/billing_period.d.ts.map +1 -0
- package/dist/types/subscriptions/billing_period.js +5 -0
- package/dist/types/subscriptions/billing_period.js.map +1 -0
- package/dist/types/subscriptions/cost.d.ts +6 -0
- package/dist/types/subscriptions/cost.d.ts.map +1 -0
- package/dist/types/{core/asset.js → subscriptions/cost.js} +1 -1
- package/dist/types/subscriptions/cost.js.map +1 -0
- package/dist/types/{iam → subscriptions}/index.d.ts +0 -3
- package/dist/types/subscriptions/index.d.ts.map +1 -0
- package/dist/types/{iam → subscriptions}/index.js +0 -3
- package/dist/types/subscriptions/index.js.map +1 -0
- package/dist/types/subscriptions/member.d.ts +11 -0
- package/dist/types/subscriptions/member.d.ts.map +1 -0
- package/dist/types/subscriptions/member.js +3 -0
- package/dist/types/subscriptions/member.js.map +1 -0
- package/dist/types/subscriptions/store.d.ts +3 -0
- package/dist/types/subscriptions/store.d.ts.map +1 -0
- package/dist/types/subscriptions/store.js +5 -0
- package/dist/types/subscriptions/store.js.map +1 -0
- package/dist/types/subscriptions/subscription.d.ts +21 -0
- package/dist/types/subscriptions/subscription.d.ts.map +1 -0
- package/dist/types/subscriptions/subscription.js.map +1 -0
- package/dist/types/subscriptions/subscription_role.d.ts.map +1 -0
- package/dist/types/subscriptions/subscription_role.js.map +1 -0
- package/dist/types/{iam → subscriptions}/subscription_status.d.ts +1 -1
- package/dist/types/subscriptions/subscription_status.d.ts.map +1 -0
- package/dist/types/{iam → subscriptions}/subscription_status.js +3 -0
- package/dist/types/subscriptions/subscription_status.js.map +1 -0
- package/dist/types/subscriptions/subscription_tier.d.ts.map +1 -0
- package/dist/types/subscriptions/subscription_tier.js.map +1 -0
- package/dist/types/users/bookmark.d.ts +5 -0
- package/dist/types/users/bookmark.d.ts.map +1 -0
- package/dist/types/users/bookmark.js +3 -0
- package/dist/types/users/bookmark.js.map +1 -0
- package/dist/types/users/index.d.ts +5 -0
- package/dist/types/users/index.d.ts.map +1 -0
- package/dist/types/{report → users}/index.js +4 -4
- package/dist/types/users/index.js.map +1 -0
- package/dist/types/users/profile.d.ts +8 -0
- package/dist/types/users/profile.d.ts.map +1 -0
- package/dist/types/{iam → users}/profile.js.map +1 -1
- package/dist/types/{iam → users}/user.d.ts +2 -2
- package/dist/types/users/user.d.ts.map +1 -0
- package/dist/types/{iam → users}/user.js.map +1 -1
- package/dist/types/users/user_role.d.ts +3 -0
- package/dist/types/users/user_role.d.ts.map +1 -0
- package/dist/types/users/user_role.js +11 -0
- package/dist/types/users/user_role.js.map +1 -0
- package/package.json +34 -45
- package/src/index.ts +1 -2
- package/src/types/core/entity.ts +13 -10
- package/src/types/core/entity_status.ts +9 -9
- package/src/types/core/errors.ts +119 -124
- package/src/types/core/index.ts +8 -11
- package/src/types/core/locale.ts +2 -2
- package/src/types/core/measurement_system.ts +2 -2
- package/src/types/core/price.ts +4 -4
- package/src/types/core/theme.ts +2 -2
- package/src/types/core/timestamp.ts +4 -4
- package/src/types/equipment/category.ts +15 -15
- package/src/types/equipment/equipment.ts +12 -12
- package/src/types/equipment/equipment_entity.ts +17 -17
- package/src/types/equipment/index.ts +4 -4
- package/src/types/equipment/user_equipment.ts +9 -9
- package/src/types/index.ts +6 -6
- package/src/types/{ingredient → ingredients}/category.ts +28 -28
- package/src/types/{ingredient → ingredients}/group.ts +8 -8
- package/src/types/{ingredient → ingredients}/index.ts +6 -6
- package/src/types/{ingredient → ingredients}/ingredient.ts +16 -16
- package/src/types/{ingredient → ingredients}/ingredient_entity.ts +21 -19
- package/src/types/{ingredient → ingredients}/ingredient_section.ts +18 -18
- package/src/types/{ingredient → ingredients}/user_ingredient.ts +14 -14
- package/src/types/{recipe → recipes}/allergen.ts +16 -16
- package/src/types/{recipe → recipes}/comment.ts +8 -8
- package/src/types/recipes/cuisine.ts +90 -0
- package/src/types/{recipe → recipes}/dietary_tag.ts +18 -18
- package/src/types/{recipe → recipes}/difficulty.ts +7 -7
- package/src/types/{recipe → recipes}/index.ts +14 -15
- package/src/types/{recipe → recipes}/instruction.ts +19 -19
- package/src/types/{recipe → recipes}/meal_type.ts +13 -11
- package/src/types/{recipe → recipes}/nutrition.ts +11 -11
- package/src/types/{recipe → recipes}/recipe.ts +81 -91
- package/src/types/{recipe → recipes}/recipe_source.ts +2 -2
- package/src/types/recipes/recipe_stats.ts +8 -0
- package/src/types/{recipe → recipes}/spiciness.ts +2 -2
- package/src/types/{recipe → recipes}/temperature.ts +6 -6
- package/src/types/{recipe → recipes}/temperature_unit.ts +2 -2
- package/src/types/{recipe → recipes}/unit.ts +48 -48
- package/src/types/reports/category.ts +9 -0
- package/src/types/reports/index.ts +8 -0
- package/src/types/{report/report_priority.ts → reports/priority.ts} +7 -7
- package/src/types/reports/report.ts +18 -0
- package/src/types/{report/report_status.ts → reports/status.ts} +9 -9
- package/src/types/reports/submission.ts +8 -0
- package/src/types/reports/target.ts +19 -0
- package/src/types/reports/update.ts +22 -0
- package/src/types/reports/update_type.ts +6 -0
- package/src/types/settings/index.ts +2 -0
- package/src/types/settings/notification.ts +6 -0
- package/src/types/{core → settings}/settings.ts +26 -34
- package/src/types/subscriptions/billing_period.ts +2 -0
- package/src/types/subscriptions/cost.ts +5 -0
- package/src/types/{iam → subscriptions}/index.ts +4 -7
- package/src/types/subscriptions/member.ts +11 -0
- package/src/types/subscriptions/store.ts +2 -0
- package/src/types/subscriptions/subscription.ts +21 -0
- package/src/types/{iam → subscriptions}/subscription_role.ts +2 -2
- package/src/types/{iam → subscriptions}/subscription_status.ts +11 -8
- package/src/types/{iam → subscriptions}/subscription_tier.ts +2 -2
- package/src/types/users/bookmark.ts +5 -0
- package/src/types/users/index.ts +4 -0
- package/src/types/users/profile.ts +8 -0
- package/src/types/{iam → users}/user.ts +11 -11
- package/src/types/users/user_role.ts +8 -0
- package/dist/config/ai.d.ts +0 -3
- package/dist/config/ai.d.ts.map +0 -1
- package/dist/config/ai.js +0 -48
- package/dist/config/ai.js.map +0 -1
- package/dist/config/collections.d.ts +0 -16
- package/dist/config/collections.d.ts.map +0 -1
- package/dist/config/collections.js +0 -19
- package/dist/config/collections.js.map +0 -1
- package/dist/config/common.d.ts +0 -2
- package/dist/config/common.d.ts.map +0 -1
- package/dist/config/common.js +0 -5
- package/dist/config/common.js.map +0 -1
- package/dist/config/firestore.d.ts +0 -19
- package/dist/config/firestore.d.ts.map +0 -1
- package/dist/config/firestore.js +0 -22
- package/dist/config/firestore.js.map +0 -1
- package/dist/config/index.d.ts +0 -7
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -23
- package/dist/config/index.js.map +0 -1
- package/dist/config/limits.d.ts +0 -8
- package/dist/config/limits.d.ts.map +0 -1
- package/dist/config/limits.js +0 -48
- package/dist/config/limits.js.map +0 -1
- package/dist/config/rtdb.d.ts +0 -8
- package/dist/config/rtdb.d.ts.map +0 -1
- package/dist/config/rtdb.js +0 -11
- package/dist/config/rtdb.js.map +0 -1
- package/dist/config/subscription.d.ts +0 -4
- package/dist/config/subscription.d.ts.map +0 -1
- package/dist/config/subscription.js +0 -17
- package/dist/config/subscription.js.map +0 -1
- package/dist/types/ai/config.d.ts +0 -21
- package/dist/types/ai/config.d.ts.map +0 -1
- package/dist/types/ai/config.js.map +0 -1
- package/dist/types/ai/index.d.ts +0 -4
- package/dist/types/ai/index.d.ts.map +0 -1
- package/dist/types/ai/index.js.map +0 -1
- package/dist/types/ai/recipe.d.ts +0 -22
- package/dist/types/ai/recipe.d.ts.map +0 -1
- package/dist/types/ai/translation.d.ts +0 -12
- package/dist/types/ai/translation.d.ts.map +0 -1
- package/dist/types/ai/translation.js.map +0 -1
- package/dist/types/core/api.d.ts +0 -16
- package/dist/types/core/api.d.ts.map +0 -1
- package/dist/types/core/api.js +0 -14
- package/dist/types/core/api.js.map +0 -1
- package/dist/types/core/asset.d.ts +0 -6
- package/dist/types/core/asset.d.ts.map +0 -1
- package/dist/types/core/asset.js.map +0 -1
- package/dist/types/core/pagination.d.ts +0 -18
- package/dist/types/core/pagination.d.ts.map +0 -1
- package/dist/types/core/pagination.js +0 -3
- package/dist/types/core/pagination.js.map +0 -1
- package/dist/types/core/settings.d.ts.map +0 -1
- package/dist/types/core/settings.js.map +0 -1
- package/dist/types/iam/index.d.ts.map +0 -1
- package/dist/types/iam/index.js.map +0 -1
- package/dist/types/iam/profile.d.ts +0 -19
- package/dist/types/iam/profile.d.ts.map +0 -1
- package/dist/types/iam/profile_status.d.ts +0 -3
- package/dist/types/iam/profile_status.d.ts.map +0 -1
- package/dist/types/iam/profile_status.js +0 -10
- package/dist/types/iam/profile_status.js.map +0 -1
- package/dist/types/iam/subscription.d.ts +0 -23
- package/dist/types/iam/subscription.d.ts.map +0 -1
- package/dist/types/iam/subscription.js.map +0 -1
- package/dist/types/iam/subscription_role.d.ts.map +0 -1
- package/dist/types/iam/subscription_role.js.map +0 -1
- package/dist/types/iam/subscription_status.d.ts.map +0 -1
- package/dist/types/iam/subscription_status.js.map +0 -1
- package/dist/types/iam/subscription_tier.d.ts.map +0 -1
- package/dist/types/iam/subscription_tier.js.map +0 -1
- package/dist/types/iam/user.d.ts.map +0 -1
- package/dist/types/iam/user_role.d.ts +0 -5
- package/dist/types/iam/user_role.d.ts.map +0 -1
- package/dist/types/iam/user_role.js +0 -18
- package/dist/types/iam/user_role.js.map +0 -1
- package/dist/types/iam/user_status.d.ts +0 -3
- package/dist/types/iam/user_status.d.ts.map +0 -1
- package/dist/types/iam/user_status.js +0 -10
- package/dist/types/iam/user_status.js.map +0 -1
- package/dist/types/ingredient/category.d.ts.map +0 -1
- package/dist/types/ingredient/category.js.map +0 -1
- package/dist/types/ingredient/group.d.ts.map +0 -1
- package/dist/types/ingredient/group.js.map +0 -1
- package/dist/types/ingredient/index.d.ts.map +0 -1
- package/dist/types/ingredient/index.js.map +0 -1
- package/dist/types/ingredient/ingredient.d.ts.map +0 -1
- package/dist/types/ingredient/ingredient.js.map +0 -1
- package/dist/types/ingredient/ingredient_entity.d.ts.map +0 -1
- package/dist/types/ingredient/ingredient_entity.js.map +0 -1
- package/dist/types/ingredient/ingredient_section.d.ts.map +0 -1
- package/dist/types/ingredient/ingredient_section.js.map +0 -1
- package/dist/types/ingredient/user_ingredient.d.ts.map +0 -1
- package/dist/types/ingredient/user_ingredient.js.map +0 -1
- package/dist/types/moderation/index.d.ts +0 -6
- package/dist/types/moderation/index.d.ts.map +0 -1
- package/dist/types/moderation/index.js +0 -22
- package/dist/types/moderation/index.js.map +0 -1
- package/dist/types/moderation/moderation.d.ts +0 -37
- package/dist/types/moderation/moderation.d.ts.map +0 -1
- package/dist/types/moderation/moderation.js +0 -3
- package/dist/types/moderation/moderation.js.map +0 -1
- package/dist/types/moderation/moderation_status.d.ts +0 -3
- package/dist/types/moderation/moderation_status.d.ts.map +0 -1
- package/dist/types/moderation/moderation_status.js +0 -9
- package/dist/types/moderation/moderation_status.js.map +0 -1
- package/dist/types/moderation/priority.d.ts +0 -3
- package/dist/types/moderation/priority.d.ts.map +0 -1
- package/dist/types/moderation/priority.js +0 -5
- package/dist/types/moderation/priority.js.map +0 -1
- package/dist/types/moderation/severity.d.ts +0 -3
- package/dist/types/moderation/severity.d.ts.map +0 -1
- package/dist/types/moderation/severity.js +0 -5
- package/dist/types/moderation/severity.js.map +0 -1
- package/dist/types/moderation/suggestion_category.d.ts +0 -3
- package/dist/types/moderation/suggestion_category.d.ts.map +0 -1
- package/dist/types/moderation/suggestion_category.js +0 -11
- package/dist/types/moderation/suggestion_category.js.map +0 -1
- package/dist/types/recipe/allergen.d.ts.map +0 -1
- package/dist/types/recipe/allergen.js.map +0 -1
- package/dist/types/recipe/comment.d.ts.map +0 -1
- package/dist/types/recipe/cuisine.d.ts +0 -3
- package/dist/types/recipe/cuisine.d.ts.map +0 -1
- package/dist/types/recipe/cuisine.js +0 -42
- package/dist/types/recipe/cuisine.js.map +0 -1
- package/dist/types/recipe/dietary_tag.d.ts.map +0 -1
- package/dist/types/recipe/dietary_tag.js.map +0 -1
- package/dist/types/recipe/difficulty.d.ts +0 -3
- package/dist/types/recipe/difficulty.d.ts.map +0 -1
- package/dist/types/recipe/difficulty.js.map +0 -1
- package/dist/types/recipe/equipment.d.ts +0 -12
- package/dist/types/recipe/equipment.d.ts.map +0 -1
- package/dist/types/recipe/equipment.js +0 -3
- package/dist/types/recipe/equipment.js.map +0 -1
- package/dist/types/recipe/filters.d.ts +0 -16
- package/dist/types/recipe/filters.d.ts.map +0 -1
- package/dist/types/recipe/filters.js +0 -3
- package/dist/types/recipe/filters.js.map +0 -1
- package/dist/types/recipe/index.d.ts.map +0 -1
- package/dist/types/recipe/index.js.map +0 -1
- package/dist/types/recipe/ingredient.d.ts +0 -29
- package/dist/types/recipe/ingredient.d.ts.map +0 -1
- package/dist/types/recipe/ingredient.js +0 -3
- package/dist/types/recipe/ingredient.js.map +0 -1
- package/dist/types/recipe/instruction.d.ts.map +0 -1
- package/dist/types/recipe/instruction.js.map +0 -1
- package/dist/types/recipe/meal_type.d.ts +0 -3
- package/dist/types/recipe/meal_type.d.ts.map +0 -1
- package/dist/types/recipe/meal_type.js.map +0 -1
- package/dist/types/recipe/nutrition.d.ts.map +0 -1
- package/dist/types/recipe/nutrition.js.map +0 -1
- package/dist/types/recipe/recipe.d.ts.map +0 -1
- package/dist/types/recipe/recipe.js +0 -3
- package/dist/types/recipe/recipe.js.map +0 -1
- package/dist/types/recipe/recipe_source.d.ts.map +0 -1
- package/dist/types/recipe/recipe_source.js.map +0 -1
- package/dist/types/recipe/recipe_status.d.ts +0 -3
- package/dist/types/recipe/recipe_status.d.ts.map +0 -1
- package/dist/types/recipe/recipe_status.js +0 -11
- package/dist/types/recipe/recipe_status.js.map +0 -1
- package/dist/types/recipe/spiciness.d.ts.map +0 -1
- package/dist/types/recipe/spiciness.js.map +0 -1
- package/dist/types/recipe/temperature.d.ts.map +0 -1
- package/dist/types/recipe/temperature.js.map +0 -1
- package/dist/types/recipe/temperature_unit.d.ts.map +0 -1
- package/dist/types/recipe/temperature_unit.js.map +0 -1
- package/dist/types/recipe/unit.d.ts.map +0 -1
- package/dist/types/recipe/unit.js.map +0 -1
- package/dist/types/report/index.d.ts +0 -5
- package/dist/types/report/index.d.ts.map +0 -1
- package/dist/types/report/index.js.map +0 -1
- package/dist/types/report/report.d.ts +0 -27
- package/dist/types/report/report.d.ts.map +0 -1
- package/dist/types/report/report_priority.d.ts.map +0 -1
- package/dist/types/report/report_priority.js.map +0 -1
- package/dist/types/report/report_status.d.ts.map +0 -1
- package/dist/types/report/report_status.js.map +0 -1
- package/dist/types/report/report_target_type.d.ts +0 -3
- package/dist/types/report/report_target_type.d.ts.map +0 -1
- package/dist/types/report/report_target_type.js +0 -10
- package/dist/types/report/report_target_type.js.map +0 -1
- package/dist/types/report/report_type.d.ts +0 -3
- package/dist/types/report/report_type.d.ts.map +0 -1
- package/dist/types/report/report_type.js +0 -12
- package/dist/types/report/report_type.js.map +0 -1
- package/dist/types/submission/index.d.ts +0 -6
- package/dist/types/submission/index.d.ts.map +0 -1
- package/dist/types/submission/index.js.map +0 -1
- package/dist/types/submission/severity.d.ts +0 -3
- package/dist/types/submission/severity.d.ts.map +0 -1
- package/dist/types/submission/severity.js +0 -5
- package/dist/types/submission/severity.js.map +0 -1
- package/dist/types/submission/submission.d.ts +0 -16
- package/dist/types/submission/submission.d.ts.map +0 -1
- package/dist/types/submission/submission.js.map +0 -1
- package/dist/types/submission/submission_status.d.ts +0 -3
- package/dist/types/submission/submission_status.d.ts.map +0 -1
- package/dist/types/submission/submission_status.js +0 -9
- package/dist/types/submission/submission_status.js.map +0 -1
- package/dist/types/submission/suggestion.d.ts +0 -9
- package/dist/types/submission/suggestion.d.ts.map +0 -1
- package/dist/types/submission/suggestion.js +0 -3
- package/dist/types/submission/suggestion.js.map +0 -1
- package/dist/types/submission/suggestion_category.d.ts +0 -3
- package/dist/types/submission/suggestion_category.d.ts.map +0 -1
- package/dist/types/submission/suggestion_category.js +0 -11
- package/dist/types/submission/suggestion_category.js.map +0 -1
- package/src/config/ai.ts +0 -46
- package/src/config/common.ts +0 -1
- package/src/config/firestore.ts +0 -18
- package/src/config/index.ts +0 -6
- package/src/config/limits.ts +0 -53
- package/src/config/rtdb.ts +0 -7
- package/src/config/subscription.ts +0 -19
- package/src/types/ai/config.ts +0 -29
- package/src/types/ai/index.ts +0 -3
- package/src/types/ai/recipe.ts +0 -31
- package/src/types/ai/translation.ts +0 -12
- package/src/types/core/api.ts +0 -30
- package/src/types/core/pagination.ts +0 -20
- package/src/types/iam/profile.ts +0 -20
- package/src/types/iam/subscription.ts +0 -25
- package/src/types/iam/user_role.ts +0 -17
- package/src/types/recipe/cuisine.ts +0 -39
- package/src/types/recipe/filters.ts +0 -16
- package/src/types/report/index.ts +0 -4
- package/src/types/report/report.ts +0 -28
- package/src/types/report/report_target_type.ts +0 -7
- package/src/types/submission/index.ts +0 -5
- package/src/types/submission/severity.ts +0 -2
- package/src/types/submission/submission.ts +0 -16
- package/src/types/submission/submission_status.ts +0 -6
- package/src/types/submission/suggestion.ts +0 -9
- package/src/types/submission/suggestion_category.ts +0 -8
- /package/dist/types/{ingredient → ingredients}/category.d.ts +0 -0
- /package/dist/types/{ingredient → ingredients}/category.js +0 -0
- /package/dist/types/{ingredient → ingredients}/group.d.ts +0 -0
- /package/dist/types/{ingredient → ingredients}/group.js +0 -0
- /package/dist/types/{ingredient → ingredients}/index.d.ts +0 -0
- /package/dist/types/{ingredient → ingredients}/index.js +0 -0
- /package/dist/types/{ingredient → ingredients}/ingredient.js +0 -0
- /package/dist/types/{ingredient → ingredients}/ingredient_entity.js +0 -0
- /package/dist/types/{ingredient → ingredients}/ingredient_section.d.ts +0 -0
- /package/dist/types/{ingredient → ingredients}/ingredient_section.js +0 -0
- /package/dist/types/{ingredient → ingredients}/user_ingredient.js +0 -0
- /package/dist/types/{recipe → recipes}/allergen.d.ts +0 -0
- /package/dist/types/{recipe → recipes}/allergen.js +0 -0
- /package/dist/types/{recipe → recipes}/comment.d.ts +0 -0
- /package/dist/types/{recipe → recipes}/comment.js +0 -0
- /package/dist/types/{recipe → recipes}/dietary_tag.d.ts +0 -0
- /package/dist/types/{recipe → recipes}/dietary_tag.js +0 -0
- /package/dist/types/{recipe → recipes}/instruction.js +0 -0
- /package/dist/types/{recipe → recipes}/nutrition.d.ts +0 -0
- /package/dist/types/{recipe → recipes}/nutrition.js +0 -0
- /package/dist/types/{ai → recipes}/recipe.js +0 -0
- /package/dist/types/{recipe → recipes}/recipe_source.d.ts +0 -0
- /package/dist/types/{recipe → recipes}/recipe_source.js +0 -0
- /package/dist/types/{recipe → recipes}/temperature.d.ts +0 -0
- /package/dist/types/{recipe → recipes}/temperature.js +0 -0
- /package/dist/types/{recipe → recipes}/temperature_unit.d.ts +0 -0
- /package/dist/types/{recipe → recipes}/temperature_unit.js +0 -0
- /package/dist/types/{recipe → recipes}/unit.d.ts +0 -0
- /package/dist/types/{recipe → recipes}/unit.js +0 -0
- /package/dist/types/{report → reports}/report.js +0 -0
- /package/dist/types/{submission → reports}/submission.js +0 -0
- /package/dist/types/{core → settings}/settings.js +0 -0
- /package/dist/types/{iam → subscriptions}/subscription.js +0 -0
- /package/dist/types/{iam → subscriptions}/subscription_role.d.ts +0 -0
- /package/dist/types/{iam → subscriptions}/subscription_role.js +0 -0
- /package/dist/types/{iam → subscriptions}/subscription_tier.d.ts +0 -0
- /package/dist/types/{iam → subscriptions}/subscription_tier.js +0 -0
- /package/dist/types/{iam → users}/profile.js +0 -0
- /package/dist/types/{iam → users}/user.js +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Entity, Price, Timestamp } from "../core";
|
|
2
|
-
import { Unit } from "../
|
|
3
|
-
import { IngredientCategory } from "./category";
|
|
4
|
-
import { IngredientGroup } from "./group";
|
|
5
|
-
|
|
6
|
-
export interface UserIngredient extends Entity {
|
|
7
|
-
category: IngredientCategory;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
unit?: Unit;
|
|
14
|
-
}
|
|
1
|
+
import { Entity, Price, Timestamp } from "../core";
|
|
2
|
+
import { Unit } from "../recipes";
|
|
3
|
+
import { IngredientCategory } from "./category";
|
|
4
|
+
import { IngredientGroup } from "./group";
|
|
5
|
+
|
|
6
|
+
export interface UserIngredient extends Entity {
|
|
7
|
+
category: IngredientCategory;
|
|
8
|
+
slug: string;
|
|
9
|
+
expiresAt?: Timestamp;
|
|
10
|
+
group: IngredientGroup;
|
|
11
|
+
price?: Price;
|
|
12
|
+
quantity?: number;
|
|
13
|
+
unit?: Unit;
|
|
14
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export const ALLERGEN_VALUES = [
|
|
2
|
-
"celery",
|
|
3
|
-
"dairy",
|
|
4
|
-
"eggs",
|
|
5
|
-
"fish",
|
|
6
|
-
"gluten",
|
|
7
|
-
"lupin",
|
|
8
|
-
"mustard",
|
|
9
|
-
"nuts",
|
|
10
|
-
"peanuts",
|
|
11
|
-
"sesame",
|
|
12
|
-
"shellfish",
|
|
13
|
-
"soy",
|
|
14
|
-
"sulfites",
|
|
15
|
-
] as const;
|
|
16
|
-
export type Allergen = (typeof ALLERGEN_VALUES)[number];
|
|
1
|
+
export const ALLERGEN_VALUES = [
|
|
2
|
+
"celery",
|
|
3
|
+
"dairy",
|
|
4
|
+
"eggs",
|
|
5
|
+
"fish",
|
|
6
|
+
"gluten",
|
|
7
|
+
"lupin",
|
|
8
|
+
"mustard",
|
|
9
|
+
"nuts",
|
|
10
|
+
"peanuts",
|
|
11
|
+
"sesame",
|
|
12
|
+
"shellfish",
|
|
13
|
+
"soy",
|
|
14
|
+
"sulfites",
|
|
15
|
+
] as const;
|
|
16
|
+
export type Allergen = (typeof ALLERGEN_VALUES)[number];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Entity } from "../core";
|
|
2
|
-
|
|
3
|
-
export interface RecipeComment extends Entity {
|
|
4
|
-
recipeId: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
content: string;
|
|
7
|
-
parentId?: string;
|
|
8
|
-
}
|
|
1
|
+
import { Entity } from "../core";
|
|
2
|
+
|
|
3
|
+
export interface RecipeComment extends Entity {
|
|
4
|
+
recipeId: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
content: string;
|
|
7
|
+
parentId?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export const CUISINE_VALUES = [
|
|
2
|
+
// East Asia
|
|
3
|
+
"chinese",
|
|
4
|
+
"japanese",
|
|
5
|
+
"korean",
|
|
6
|
+
|
|
7
|
+
// Southeast Asia
|
|
8
|
+
"filipino",
|
|
9
|
+
"indonesian",
|
|
10
|
+
"malaysian",
|
|
11
|
+
"singaporean",
|
|
12
|
+
"thai",
|
|
13
|
+
"vietnamese",
|
|
14
|
+
|
|
15
|
+
// South Asia
|
|
16
|
+
"bangladeshi",
|
|
17
|
+
"indian",
|
|
18
|
+
"pakistani",
|
|
19
|
+
"sri_lankan",
|
|
20
|
+
|
|
21
|
+
// Middle East
|
|
22
|
+
"emirati",
|
|
23
|
+
"iraqi",
|
|
24
|
+
"jordanian",
|
|
25
|
+
"lebanese",
|
|
26
|
+
"palestinian",
|
|
27
|
+
"saudi",
|
|
28
|
+
"syrian",
|
|
29
|
+
"yemeni",
|
|
30
|
+
|
|
31
|
+
// Central Asia & Caucasus
|
|
32
|
+
"persian",
|
|
33
|
+
"turkish",
|
|
34
|
+
|
|
35
|
+
// North Africa
|
|
36
|
+
"algerian",
|
|
37
|
+
"egyptian",
|
|
38
|
+
"moroccan",
|
|
39
|
+
"sudanese",
|
|
40
|
+
"tunisian",
|
|
41
|
+
|
|
42
|
+
// Sub-Saharan Africa
|
|
43
|
+
"ethiopian",
|
|
44
|
+
"ghanaian",
|
|
45
|
+
"kenyan",
|
|
46
|
+
"nigerian",
|
|
47
|
+
"south_african",
|
|
48
|
+
|
|
49
|
+
// Western Europe
|
|
50
|
+
"british",
|
|
51
|
+
"french",
|
|
52
|
+
"german",
|
|
53
|
+
"irish",
|
|
54
|
+
"italian",
|
|
55
|
+
"portuguese",
|
|
56
|
+
"spanish",
|
|
57
|
+
|
|
58
|
+
// Northern Europe
|
|
59
|
+
"danish",
|
|
60
|
+
"swedish",
|
|
61
|
+
|
|
62
|
+
// Eastern Europe
|
|
63
|
+
"greek",
|
|
64
|
+
"hungarian",
|
|
65
|
+
"polish",
|
|
66
|
+
"russian",
|
|
67
|
+
"ukrainian",
|
|
68
|
+
|
|
69
|
+
// North America
|
|
70
|
+
"american",
|
|
71
|
+
"cajun",
|
|
72
|
+
"mexican",
|
|
73
|
+
|
|
74
|
+
// Caribbean
|
|
75
|
+
"cuban",
|
|
76
|
+
"jamaican",
|
|
77
|
+
"puerto_rican",
|
|
78
|
+
|
|
79
|
+
// South America
|
|
80
|
+
"argentinian",
|
|
81
|
+
"brazilian",
|
|
82
|
+
"colombian",
|
|
83
|
+
"peruvian",
|
|
84
|
+
"venezuelan",
|
|
85
|
+
|
|
86
|
+
// Oceania
|
|
87
|
+
"australian",
|
|
88
|
+
] as const;
|
|
89
|
+
|
|
90
|
+
export type Cuisine = (typeof CUISINE_VALUES)[number];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export const DIETARY_TAG_VALUES = [
|
|
2
|
-
"dairy_free",
|
|
3
|
-
"egg_free",
|
|
4
|
-
"gluten_free",
|
|
5
|
-
"halal",
|
|
6
|
-
"high_protein",
|
|
7
|
-
"keto",
|
|
8
|
-
"low_carb",
|
|
9
|
-
"low_fat",
|
|
10
|
-
"low_sodium",
|
|
11
|
-
"low_sugar",
|
|
12
|
-
"nut_free",
|
|
13
|
-
"pescatarian",
|
|
14
|
-
"soy_free",
|
|
15
|
-
"vegan",
|
|
16
|
-
"vegetarian",
|
|
17
|
-
] as const;
|
|
18
|
-
export type DietaryTag = (typeof DIETARY_TAG_VALUES)[number];
|
|
1
|
+
export const DIETARY_TAG_VALUES = [
|
|
2
|
+
"dairy_free",
|
|
3
|
+
"egg_free",
|
|
4
|
+
"gluten_free",
|
|
5
|
+
"halal",
|
|
6
|
+
"high_protein",
|
|
7
|
+
"keto",
|
|
8
|
+
"low_carb",
|
|
9
|
+
"low_fat",
|
|
10
|
+
"low_sodium",
|
|
11
|
+
"low_sugar",
|
|
12
|
+
"nut_free",
|
|
13
|
+
"pescatarian",
|
|
14
|
+
"soy_free",
|
|
15
|
+
"vegan",
|
|
16
|
+
"vegetarian",
|
|
17
|
+
] as const;
|
|
18
|
+
export type DietaryTag = (typeof DIETARY_TAG_VALUES)[number];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export const DIFFICULTY_VALUES = [
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"expert",
|
|
6
|
-
] as const;
|
|
7
|
-
export type Difficulty = (typeof DIFFICULTY_VALUES)[number];
|
|
1
|
+
export const DIFFICULTY_VALUES = [
|
|
2
|
+
"easy",
|
|
3
|
+
"medium",
|
|
4
|
+
"hard",
|
|
5
|
+
"expert",
|
|
6
|
+
] as const;
|
|
7
|
+
export type Difficulty = (typeof DIFFICULTY_VALUES)[number];
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
export * from "./allergen";
|
|
2
|
-
export * from "./comment";
|
|
3
|
-
export * from "./cuisine";
|
|
4
|
-
export * from "./dietary_tag";
|
|
5
|
-
export * from "./difficulty";
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./unit";
|
|
1
|
+
export * from "./allergen";
|
|
2
|
+
export * from "./comment";
|
|
3
|
+
export * from "./cuisine";
|
|
4
|
+
export * from "./dietary_tag";
|
|
5
|
+
export * from "./difficulty";
|
|
6
|
+
export * from "./instruction";
|
|
7
|
+
export * from "./meal_type";
|
|
8
|
+
export * from "./nutrition";
|
|
9
|
+
export * from "./recipe_source";
|
|
10
|
+
//export * from "./recipe";
|
|
11
|
+
export * from "./spiciness";
|
|
12
|
+
export * from "./temperature_unit";
|
|
13
|
+
export * from "./temperature";
|
|
14
|
+
export * from "./unit";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Temperature } from "./temperature";
|
|
2
|
-
|
|
3
|
-
export interface InstructionMeta {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
temperature?: Temperature;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface InstructionContent {
|
|
13
|
-
step: number;
|
|
14
|
-
text: string;
|
|
15
|
-
tip?: string;
|
|
16
|
-
warning?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface Instruction extends InstructionMeta, InstructionContent {}
|
|
1
|
+
import { Temperature } from "./temperature";
|
|
2
|
+
|
|
3
|
+
export interface InstructionMeta {
|
|
4
|
+
step: number;
|
|
5
|
+
duration?: number;
|
|
6
|
+
equipment?: string[];
|
|
7
|
+
ingredients?: string[];
|
|
8
|
+
optional?: boolean;
|
|
9
|
+
temperature?: Temperature;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface InstructionContent {
|
|
13
|
+
step: number;
|
|
14
|
+
text: string;
|
|
15
|
+
tip?: string;
|
|
16
|
+
warning?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface Instruction extends InstructionMeta, InstructionContent {}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
export const MEAL_TYPE_VALUES = [
|
|
2
|
-
"appetizer",
|
|
3
|
-
"breakfast",
|
|
4
|
-
"brunch",
|
|
5
|
-
"dessert",
|
|
6
|
-
"dinner",
|
|
7
|
-
"drink",
|
|
8
|
-
"lunch",
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
export const MEAL_TYPE_VALUES = [
|
|
2
|
+
"appetizer",
|
|
3
|
+
"breakfast",
|
|
4
|
+
"brunch",
|
|
5
|
+
"dessert",
|
|
6
|
+
"dinner",
|
|
7
|
+
"drink",
|
|
8
|
+
"lunch",
|
|
9
|
+
"sauce",
|
|
10
|
+
"side",
|
|
11
|
+
"snack",
|
|
12
|
+
] as const;
|
|
13
|
+
export type MealType = (typeof MEAL_TYPE_VALUES)[number];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface Nutrition {
|
|
2
|
-
calories: number;
|
|
3
|
-
carbs?: number;
|
|
4
|
-
cholesterol?: number;
|
|
5
|
-
fat?: number;
|
|
6
|
-
fiber?: number;
|
|
7
|
-
protein?: number;
|
|
8
|
-
saturatedFat?: number;
|
|
9
|
-
sodium?: number;
|
|
10
|
-
sugar?: number;
|
|
11
|
-
}
|
|
1
|
+
export interface Nutrition {
|
|
2
|
+
calories: number;
|
|
3
|
+
carbs?: number;
|
|
4
|
+
cholesterol?: number;
|
|
5
|
+
fat?: number;
|
|
6
|
+
fiber?: number;
|
|
7
|
+
protein?: number;
|
|
8
|
+
saturatedFat?: number;
|
|
9
|
+
sodium?: number;
|
|
10
|
+
sugar?: number;
|
|
11
|
+
}
|
|
@@ -1,91 +1,81 @@
|
|
|
1
|
-
import { Entity } from "../core";
|
|
2
|
-
import { Locale } from "../core/locale";
|
|
3
|
-
import { Allergen } from "./allergen";
|
|
4
|
-
import { Cuisine } from "./cuisine";
|
|
5
|
-
import { DietaryTag } from "./dietary_tag";
|
|
6
|
-
import { Difficulty } from "./difficulty";
|
|
7
|
-
import { Equipment, EquipmentContent, EquipmentMeta } from "../equipment";
|
|
8
|
-
import {
|
|
9
|
-
IngredientSection,
|
|
10
|
-
IngredientSectionContent,
|
|
11
|
-
IngredientSectionMeta,
|
|
12
|
-
} from "../
|
|
13
|
-
import {
|
|
14
|
-
Instruction,
|
|
15
|
-
InstructionContent,
|
|
16
|
-
InstructionMeta,
|
|
17
|
-
} from "./instruction";
|
|
18
|
-
import { MealType } from "./meal_type";
|
|
19
|
-
import { Nutrition } from "./nutrition";
|
|
20
|
-
import { RecipeSource } from "./recipe_source";
|
|
21
|
-
import { Spiciness } from "./spiciness";
|
|
22
|
-
|
|
23
|
-
export interface RecipeMeta extends Entity {
|
|
24
|
-
allergens: Allergen[];
|
|
25
|
-
confidence: number;
|
|
26
|
-
createdBy: string;
|
|
27
|
-
|
|
28
|
-
dietaryTags: DietaryTag[];
|
|
29
|
-
difficulty: Difficulty;
|
|
30
|
-
equipment?: EquipmentMeta[];
|
|
31
|
-
images?: string[];
|
|
32
|
-
ingredientSections: IngredientSectionMeta[];
|
|
33
|
-
instructions: InstructionMeta[];
|
|
34
|
-
mealTypes: MealType[];
|
|
35
|
-
nutrition?: Nutrition;
|
|
36
|
-
originalLocale: Locale;
|
|
37
|
-
searchTerms?: string[];
|
|
38
|
-
servings: number;
|
|
39
|
-
source: RecipeSource;
|
|
40
|
-
sourceUrl?: string;
|
|
41
|
-
spiciness: Spiciness;
|
|
42
|
-
time: number;
|
|
43
|
-
videoUrl?: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface RecipeContent {
|
|
47
|
-
description: string;
|
|
48
|
-
equipment?: EquipmentContent[];
|
|
49
|
-
ingredientSections: IngredientSectionContent[];
|
|
50
|
-
instructions: InstructionContent[];
|
|
51
|
-
locale: Locale;
|
|
52
|
-
tips?: string[];
|
|
53
|
-
title: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface Recipe extends Entity {
|
|
57
|
-
allergens: Allergen[];
|
|
58
|
-
confidence: number;
|
|
59
|
-
createdBy: string;
|
|
60
|
-
|
|
61
|
-
description: string;
|
|
62
|
-
dietaryTags: DietaryTag[];
|
|
63
|
-
difficulty: Difficulty;
|
|
64
|
-
equipment?: Equipment[];
|
|
65
|
-
images?: string[];
|
|
66
|
-
ingredientSections: IngredientSection[];
|
|
67
|
-
instructions: Instruction[];
|
|
68
|
-
locale: Locale;
|
|
69
|
-
mealTypes: MealType[];
|
|
70
|
-
nutrition?: Nutrition;
|
|
71
|
-
originalLocale: Locale;
|
|
72
|
-
searchTerms?: string[];
|
|
73
|
-
servings: number;
|
|
74
|
-
source: RecipeSource;
|
|
75
|
-
sourceUrl?: string;
|
|
76
|
-
spiciness: Spiciness;
|
|
77
|
-
time: number;
|
|
78
|
-
tips?: string[];
|
|
79
|
-
title: string;
|
|
80
|
-
videoUrl?: string;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface RecipeStats {
|
|
84
|
-
comments: number;
|
|
85
|
-
likes: number;
|
|
86
|
-
ratingCount: number;
|
|
87
|
-
ratingSum: number;
|
|
88
|
-
saves: number;
|
|
89
|
-
updatedAt: number;
|
|
90
|
-
views: number;
|
|
91
|
-
}
|
|
1
|
+
import { Entity } from "../core";
|
|
2
|
+
import { Locale } from "../core/locale";
|
|
3
|
+
import { Allergen } from "./allergen";
|
|
4
|
+
import { Cuisine } from "./cuisine";
|
|
5
|
+
import { DietaryTag } from "./dietary_tag";
|
|
6
|
+
import { Difficulty } from "./difficulty";
|
|
7
|
+
import { Equipment, EquipmentContent, EquipmentMeta } from "../equipment";
|
|
8
|
+
import {
|
|
9
|
+
IngredientSection,
|
|
10
|
+
IngredientSectionContent,
|
|
11
|
+
IngredientSectionMeta,
|
|
12
|
+
} from "../ingredients";
|
|
13
|
+
import {
|
|
14
|
+
Instruction,
|
|
15
|
+
InstructionContent,
|
|
16
|
+
InstructionMeta,
|
|
17
|
+
} from "./instruction";
|
|
18
|
+
import { MealType } from "./meal_type";
|
|
19
|
+
import { Nutrition } from "./nutrition";
|
|
20
|
+
import { RecipeSource } from "./recipe_source";
|
|
21
|
+
import { Spiciness } from "./spiciness";
|
|
22
|
+
|
|
23
|
+
export interface RecipeMeta extends Entity {
|
|
24
|
+
allergens: Allergen[];
|
|
25
|
+
confidence: number;
|
|
26
|
+
createdBy: string;
|
|
27
|
+
cuisines: Cuisine[];
|
|
28
|
+
dietaryTags: DietaryTag[];
|
|
29
|
+
difficulty: Difficulty;
|
|
30
|
+
equipment?: EquipmentMeta[];
|
|
31
|
+
images?: string[];
|
|
32
|
+
ingredientSections: IngredientSectionMeta[];
|
|
33
|
+
instructions: InstructionMeta[];
|
|
34
|
+
mealTypes: MealType[];
|
|
35
|
+
nutrition?: Nutrition;
|
|
36
|
+
originalLocale: Locale;
|
|
37
|
+
searchTerms?: string[];
|
|
38
|
+
servings: number;
|
|
39
|
+
source: RecipeSource;
|
|
40
|
+
sourceUrl?: string;
|
|
41
|
+
spiciness: Spiciness;
|
|
42
|
+
time: number;
|
|
43
|
+
videoUrl?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface RecipeContent {
|
|
47
|
+
description: string;
|
|
48
|
+
equipment?: EquipmentContent[];
|
|
49
|
+
ingredientSections: IngredientSectionContent[];
|
|
50
|
+
instructions: InstructionContent[];
|
|
51
|
+
locale: Locale;
|
|
52
|
+
tips?: string[];
|
|
53
|
+
title: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface Recipe extends Entity {
|
|
57
|
+
allergens: Allergen[];
|
|
58
|
+
confidence: number;
|
|
59
|
+
createdBy: string;
|
|
60
|
+
cuisines: Cuisine[];
|
|
61
|
+
description: string;
|
|
62
|
+
dietaryTags: DietaryTag[];
|
|
63
|
+
difficulty: Difficulty;
|
|
64
|
+
equipment?: Equipment[];
|
|
65
|
+
images?: string[];
|
|
66
|
+
ingredientSections: IngredientSection[];
|
|
67
|
+
instructions: Instruction[];
|
|
68
|
+
locale: Locale;
|
|
69
|
+
mealTypes: MealType[];
|
|
70
|
+
nutrition?: Nutrition;
|
|
71
|
+
originalLocale: Locale;
|
|
72
|
+
searchTerms?: string[];
|
|
73
|
+
servings: number;
|
|
74
|
+
source: RecipeSource;
|
|
75
|
+
sourceUrl?: string;
|
|
76
|
+
spiciness: Spiciness;
|
|
77
|
+
time: number;
|
|
78
|
+
tips?: string[];
|
|
79
|
+
title: string;
|
|
80
|
+
videoUrl?: string;
|
|
81
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const RECIPE_SOURCE_VALUES = ["image", "text", "url"] as const;
|
|
2
|
-
export type RecipeSource = (typeof RECIPE_SOURCE_VALUES)[number];
|
|
1
|
+
export const RECIPE_SOURCE_VALUES = ["image", "text", "url"] as const;
|
|
2
|
+
export type RecipeSource = (typeof RECIPE_SOURCE_VALUES)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SPICINESS_VALUES = ["none", "mild", "medium", "hot"] as const;
|
|
2
|
-
export type Spiciness = (typeof SPICINESS_VALUES)[number];
|
|
1
|
+
export const SPICINESS_VALUES = ["none", "mild", "medium", "hot", "extreme"] as const;
|
|
2
|
+
export type Spiciness = (typeof SPICINESS_VALUES)[number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TemperatureUnit } from "./temperature_unit";
|
|
2
|
-
|
|
3
|
-
export interface Temperature {
|
|
4
|
-
unit: TemperatureUnit;
|
|
5
|
-
value: number;
|
|
6
|
-
}
|
|
1
|
+
import { TemperatureUnit } from "./temperature_unit";
|
|
2
|
+
|
|
3
|
+
export interface Temperature {
|
|
4
|
+
unit: TemperatureUnit;
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const TEMPERATURE_UNIT_VALUES = ["celsius", "fahrenheit"] as const;
|
|
2
|
-
export type TemperatureUnit = (typeof TEMPERATURE_UNIT_VALUES)[number];
|
|
1
|
+
export const TEMPERATURE_UNIT_VALUES = ["celsius", "fahrenheit"] as const;
|
|
2
|
+
export type TemperatureUnit = (typeof TEMPERATURE_UNIT_VALUES)[number];
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
export const UNIT_VALUES = [
|
|
2
|
-
// Volume (metric)
|
|
3
|
-
"ml",
|
|
4
|
-
"l",
|
|
5
|
-
// Volume (imperial)
|
|
6
|
-
"tsp",
|
|
7
|
-
"tbsp",
|
|
8
|
-
"fl_oz",
|
|
9
|
-
"cup",
|
|
10
|
-
"pint",
|
|
11
|
-
"quart",
|
|
12
|
-
"gallon",
|
|
13
|
-
// Weight (metric)
|
|
14
|
-
"mg",
|
|
15
|
-
"g",
|
|
16
|
-
"kg",
|
|
17
|
-
// Weight (imperial)
|
|
18
|
-
"oz",
|
|
19
|
-
"lb",
|
|
20
|
-
// Count/portion
|
|
21
|
-
"piece",
|
|
22
|
-
"whole",
|
|
23
|
-
"half",
|
|
24
|
-
"quarter",
|
|
25
|
-
"slice",
|
|
26
|
-
"serving",
|
|
27
|
-
// Produce-specific
|
|
28
|
-
"clove",
|
|
29
|
-
"stalk",
|
|
30
|
-
"sprig",
|
|
31
|
-
"leaf",
|
|
32
|
-
"bunch",
|
|
33
|
-
"head",
|
|
34
|
-
"fillet",
|
|
35
|
-
"stick",
|
|
36
|
-
"sheet",
|
|
37
|
-
// Container
|
|
38
|
-
"can",
|
|
39
|
-
"package",
|
|
40
|
-
"bottle",
|
|
41
|
-
"jar",
|
|
42
|
-
// Imprecise
|
|
43
|
-
"handful",
|
|
44
|
-
"pinch",
|
|
45
|
-
"dash",
|
|
46
|
-
"drop",
|
|
47
|
-
] as const;
|
|
48
|
-
export type Unit = (typeof UNIT_VALUES)[number];
|
|
1
|
+
export const UNIT_VALUES = [
|
|
2
|
+
// Volume (metric)
|
|
3
|
+
"ml",
|
|
4
|
+
"l",
|
|
5
|
+
// Volume (imperial)
|
|
6
|
+
"tsp",
|
|
7
|
+
"tbsp",
|
|
8
|
+
"fl_oz",
|
|
9
|
+
"cup",
|
|
10
|
+
"pint",
|
|
11
|
+
"quart",
|
|
12
|
+
"gallon",
|
|
13
|
+
// Weight (metric)
|
|
14
|
+
"mg",
|
|
15
|
+
"g",
|
|
16
|
+
"kg",
|
|
17
|
+
// Weight (imperial)
|
|
18
|
+
"oz",
|
|
19
|
+
"lb",
|
|
20
|
+
// Count/portion
|
|
21
|
+
"piece",
|
|
22
|
+
"whole",
|
|
23
|
+
"half",
|
|
24
|
+
"quarter",
|
|
25
|
+
"slice",
|
|
26
|
+
"serving",
|
|
27
|
+
// Produce-specific
|
|
28
|
+
"clove",
|
|
29
|
+
"stalk",
|
|
30
|
+
"sprig",
|
|
31
|
+
"leaf",
|
|
32
|
+
"bunch",
|
|
33
|
+
"head",
|
|
34
|
+
"fillet",
|
|
35
|
+
"stick",
|
|
36
|
+
"sheet",
|
|
37
|
+
// Container
|
|
38
|
+
"can",
|
|
39
|
+
"package",
|
|
40
|
+
"bottle",
|
|
41
|
+
"jar",
|
|
42
|
+
// Imprecise
|
|
43
|
+
"handful",
|
|
44
|
+
"pinch",
|
|
45
|
+
"dash",
|
|
46
|
+
"drop",
|
|
47
|
+
] as const;
|
|
48
|
+
export type Unit = (typeof UNIT_VALUES)[number];
|