@cravery/types 0.0.1
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 +18 -0
- package/dist/common/allergen.d.ts +3 -0
- package/dist/common/allergen.d.ts.map +1 -0
- package/dist/common/allergen.js +19 -0
- package/dist/common/allergen.js.map +1 -0
- package/dist/common/cuisine.d.ts +3 -0
- package/dist/common/cuisine.d.ts.map +1 -0
- package/dist/common/cuisine.js +79 -0
- package/dist/common/cuisine.js.map +1 -0
- package/dist/common/currency.d.ts +6 -0
- package/dist/common/currency.d.ts.map +1 -0
- package/dist/common/currency.js +3 -0
- package/dist/common/currency.js.map +1 -0
- package/dist/common/currency_code.d.ts +3 -0
- package/dist/common/currency_code.d.ts.map +1 -0
- package/dist/common/currency_code.js +13 -0
- package/dist/common/currency_code.js.map +1 -0
- package/dist/common/dietary_tag.d.ts +3 -0
- package/dist/common/dietary_tag.d.ts.map +1 -0
- package/dist/common/dietary_tag.js +21 -0
- package/dist/common/dietary_tag.js.map +1 -0
- package/dist/common/difficulty.d.ts +3 -0
- package/dist/common/difficulty.d.ts.map +1 -0
- package/dist/common/difficulty.js +5 -0
- package/dist/common/difficulty.js.map +1 -0
- package/dist/common/index.d.ts +14 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +30 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/meal_type.d.ts +3 -0
- package/dist/common/meal_type.d.ts.map +1 -0
- package/dist/common/meal_type.js +16 -0
- package/dist/common/meal_type.js.map +1 -0
- package/dist/common/measurement_system.d.ts +3 -0
- package/dist/common/measurement_system.d.ts.map +1 -0
- package/dist/common/measurement_system.js +5 -0
- package/dist/common/measurement_system.js.map +1 -0
- package/dist/common/nutrition.d.ts +12 -0
- package/dist/common/nutrition.d.ts.map +1 -0
- package/dist/common/nutrition.js +3 -0
- package/dist/common/nutrition.js.map +1 -0
- package/dist/common/price.d.ts +6 -0
- package/dist/common/price.d.ts.map +1 -0
- package/dist/common/price.js +3 -0
- package/dist/common/price.js.map +1 -0
- package/dist/common/spiciness.d.ts +3 -0
- package/dist/common/spiciness.d.ts.map +1 -0
- package/dist/common/spiciness.js +11 -0
- package/dist/common/spiciness.js.map +1 -0
- package/dist/common/temperature.d.ts +6 -0
- package/dist/common/temperature.d.ts.map +1 -0
- package/dist/common/temperature.js +3 -0
- package/dist/common/temperature.js.map +1 -0
- package/dist/common/temperature_unit.d.ts +3 -0
- package/dist/common/temperature_unit.d.ts.map +1 -0
- package/dist/common/temperature_unit.js +5 -0
- package/dist/common/temperature_unit.js.map +1 -0
- package/dist/common/unit.d.ts +3 -0
- package/dist/common/unit.d.ts.map +1 -0
- package/dist/common/unit.js +51 -0
- package/dist/common/unit.js.map +1 -0
- package/dist/core/api.d.ts +16 -0
- package/dist/core/api.d.ts.map +1 -0
- package/dist/core/api.js +14 -0
- package/dist/core/api.js.map +1 -0
- package/dist/core/entity.d.ts +8 -0
- package/dist/core/entity.d.ts.map +1 -0
- package/dist/core/entity.js +3 -0
- package/dist/core/entity.js.map +1 -0
- package/dist/core/errors.d.ts +44 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +108 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +24 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/locale.d.ts +3 -0
- package/dist/core/locale.d.ts.map +1 -0
- package/dist/core/locale.js +5 -0
- package/dist/core/locale.js.map +1 -0
- package/dist/core/pagination.d.ts +14 -0
- package/dist/core/pagination.d.ts.map +1 -0
- package/dist/core/pagination.js +3 -0
- package/dist/core/pagination.js.map +1 -0
- package/dist/core/theme.d.ts +3 -0
- package/dist/core/theme.d.ts.map +1 -0
- package/dist/core/theme.js +5 -0
- package/dist/core/theme.js.map +1 -0
- package/dist/core/timestamp.d.ts +5 -0
- package/dist/core/timestamp.d.ts.map +1 -0
- package/dist/core/timestamp.js +3 -0
- package/dist/core/timestamp.js.map +1 -0
- package/dist/equipment/category.d.ts +3 -0
- package/dist/equipment/category.d.ts.map +1 -0
- package/dist/equipment/category.js +18 -0
- package/dist/equipment/category.js.map +1 -0
- package/dist/equipment/entity.d.ts +16 -0
- package/dist/equipment/entity.d.ts.map +1 -0
- package/dist/equipment/entity.js +3 -0
- package/dist/equipment/entity.js.map +1 -0
- package/dist/equipment/index.d.ts +5 -0
- package/dist/equipment/index.d.ts.map +1 -0
- package/dist/equipment/index.js +21 -0
- package/dist/equipment/index.js.map +1 -0
- package/dist/equipment/recipe.d.ts +13 -0
- package/dist/equipment/recipe.d.ts.map +1 -0
- package/dist/equipment/recipe.js +3 -0
- package/dist/equipment/recipe.js.map +1 -0
- package/dist/equipment/user.d.ts +10 -0
- package/dist/equipment/user.d.ts.map +1 -0
- package/dist/equipment/user.js +3 -0
- package/dist/equipment/user.js.map +1 -0
- package/dist/feed/category.d.ts +3 -0
- package/dist/feed/category.d.ts.map +1 -0
- package/dist/feed/category.js +31 -0
- package/dist/feed/category.js.map +1 -0
- package/dist/feed/index.d.ts +2 -0
- package/dist/feed/index.d.ts.map +1 -0
- package/dist/feed/index.js +18 -0
- package/dist/feed/index.js.map +1 -0
- package/dist/feed/recipe.d.ts +19 -0
- package/dist/feed/recipe.d.ts.map +1 -0
- package/dist/feed/recipe.js +43 -0
- package/dist/feed/recipe.js.map +1 -0
- package/dist/iam/index.d.ts +3 -0
- package/dist/iam/index.d.ts.map +1 -0
- package/dist/iam/index.js +19 -0
- package/dist/iam/index.js.map +1 -0
- package/dist/iam/role.d.ts +3 -0
- package/dist/iam/role.d.ts.map +1 -0
- package/dist/iam/role.js +11 -0
- package/dist/iam/role.js.map +1 -0
- package/dist/iam/user.d.ts +12 -0
- package/dist/iam/user.d.ts.map +1 -0
- package/dist/iam/user.js +3 -0
- package/dist/iam/user.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/ingredients/category.d.ts +3 -0
- package/dist/ingredients/category.d.ts.map +1 -0
- package/dist/ingredients/category.js +31 -0
- package/dist/ingredients/category.js.map +1 -0
- package/dist/ingredients/entity.d.ts +19 -0
- package/dist/ingredients/entity.d.ts.map +1 -0
- package/dist/ingredients/entity.js +3 -0
- package/dist/ingredients/entity.js.map +1 -0
- package/dist/ingredients/group.d.ts +3 -0
- package/dist/ingredients/group.d.ts.map +1 -0
- package/dist/ingredients/group.js +11 -0
- package/dist/ingredients/group.js.map +1 -0
- package/dist/ingredients/index.d.ts +7 -0
- package/dist/ingredients/index.d.ts.map +1 -0
- package/dist/ingredients/index.js +23 -0
- package/dist/ingredients/index.js.map +1 -0
- package/dist/ingredients/recipe.d.ts +15 -0
- package/dist/ingredients/recipe.d.ts.map +1 -0
- package/dist/ingredients/recipe.js +3 -0
- package/dist/ingredients/recipe.js.map +1 -0
- package/dist/ingredients/section.d.ts +16 -0
- package/dist/ingredients/section.d.ts.map +1 -0
- package/dist/ingredients/section.js +3 -0
- package/dist/ingredients/section.js.map +1 -0
- package/dist/ingredients/user.d.ts +14 -0
- package/dist/ingredients/user.d.ts.map +1 -0
- package/dist/ingredients/user.js +3 -0
- package/dist/ingredients/user.js.map +1 -0
- package/dist/interactions/collection.d.ts +7 -0
- package/dist/interactions/collection.d.ts.map +1 -0
- package/dist/interactions/collection.js +3 -0
- package/dist/interactions/collection.js.map +1 -0
- package/dist/interactions/cooked.d.ts +6 -0
- package/dist/interactions/cooked.d.ts.map +1 -0
- package/dist/interactions/cooked.js +3 -0
- package/dist/interactions/cooked.js.map +1 -0
- package/dist/interactions/event.d.ts +10 -0
- package/dist/interactions/event.d.ts.map +1 -0
- package/dist/interactions/event.js +3 -0
- package/dist/interactions/event.js.map +1 -0
- package/dist/interactions/event_type.d.ts +3 -0
- package/dist/interactions/event_type.d.ts.map +1 -0
- package/dist/interactions/event_type.js +12 -0
- package/dist/interactions/event_type.js.map +1 -0
- package/dist/interactions/index.d.ts +6 -0
- package/dist/interactions/index.d.ts.map +1 -0
- package/dist/interactions/index.js +22 -0
- package/dist/interactions/index.js.map +1 -0
- package/dist/interactions/rated.d.ts +6 -0
- package/dist/interactions/rated.d.ts.map +1 -0
- package/dist/interactions/rated.js +3 -0
- package/dist/interactions/rated.js.map +1 -0
- package/dist/interactions/saved.d.ts +6 -0
- package/dist/interactions/saved.d.ts.map +1 -0
- package/dist/interactions/saved.js +3 -0
- package/dist/interactions/saved.js.map +1 -0
- package/dist/limits/index.d.ts +4 -0
- package/dist/limits/index.d.ts.map +1 -0
- package/dist/limits/index.js +20 -0
- package/dist/limits/index.js.map +1 -0
- package/dist/limits/limits.d.ts +5 -0
- package/dist/limits/limits.d.ts.map +1 -0
- package/dist/limits/limits.js +3 -0
- package/dist/limits/limits.js.map +1 -0
- package/dist/limits/operation.d.ts +3 -0
- package/dist/limits/operation.d.ts.map +1 -0
- package/dist/limits/operation.js +13 -0
- package/dist/limits/operation.js.map +1 -0
- package/dist/limits/usage.d.ts +8 -0
- package/dist/limits/usage.d.ts.map +1 -0
- package/dist/limits/usage.js +3 -0
- package/dist/limits/usage.js.map +1 -0
- package/dist/mealplan/day.d.ts +6 -0
- package/dist/mealplan/day.d.ts.map +1 -0
- package/dist/mealplan/day.js +3 -0
- package/dist/mealplan/day.js.map +1 -0
- package/dist/mealplan/index.d.ts +5 -0
- package/dist/mealplan/index.d.ts.map +1 -0
- package/dist/mealplan/index.js +21 -0
- package/dist/mealplan/index.js.map +1 -0
- package/dist/mealplan/meal.d.ts +9 -0
- package/dist/mealplan/meal.d.ts.map +1 -0
- package/dist/mealplan/meal.js +3 -0
- package/dist/mealplan/meal.js.map +1 -0
- package/dist/mealplan/plan.d.ts +9 -0
- package/dist/mealplan/plan.d.ts.map +1 -0
- package/dist/mealplan/plan.js +3 -0
- package/dist/mealplan/plan.js.map +1 -0
- package/dist/mealplan/slot.d.ts +3 -0
- package/dist/mealplan/slot.d.ts.map +1 -0
- package/dist/mealplan/slot.js +10 -0
- package/dist/mealplan/slot.js.map +1 -0
- package/dist/recipes/admin.d.ts +12 -0
- package/dist/recipes/admin.d.ts.map +1 -0
- package/dist/recipes/admin.js +3 -0
- package/dist/recipes/admin.js.map +1 -0
- package/dist/recipes/content.d.ts +14 -0
- package/dist/recipes/content.d.ts.map +1 -0
- package/dist/recipes/content.js +3 -0
- package/dist/recipes/content.js.map +1 -0
- package/dist/recipes/index.d.ts +5 -0
- package/dist/recipes/index.d.ts.map +1 -0
- package/dist/recipes/index.js +21 -0
- package/dist/recipes/index.js.map +1 -0
- package/dist/recipes/instruction.d.ts +18 -0
- package/dist/recipes/instruction.d.ts.map +1 -0
- package/dist/recipes/instruction.js +3 -0
- package/dist/recipes/instruction.js.map +1 -0
- package/dist/recipes/meta.d.ts +33 -0
- package/dist/recipes/meta.d.ts.map +1 -0
- package/dist/recipes/meta.js +3 -0
- package/dist/recipes/meta.js.map +1 -0
- package/dist/recipes/recipe.d.ts +30 -0
- package/dist/recipes/recipe.d.ts.map +1 -0
- package/dist/recipes/recipe.js +3 -0
- package/dist/recipes/recipe.js.map +1 -0
- package/dist/recipes/source.d.ts +3 -0
- package/dist/recipes/source.d.ts.map +1 -0
- package/dist/recipes/source.js +5 -0
- package/dist/recipes/source.js.map +1 -0
- package/dist/recipes/stats.d.ts +10 -0
- package/dist/recipes/stats.d.ts.map +1 -0
- package/dist/recipes/stats.js +3 -0
- package/dist/recipes/stats.js.map +1 -0
- package/dist/recipes/status.d.ts +3 -0
- package/dist/recipes/status.d.ts.map +1 -0
- package/dist/recipes/status.js +11 -0
- package/dist/recipes/status.js.map +1 -0
- package/dist/reports/category.d.ts +3 -0
- package/dist/reports/category.d.ts.map +1 -0
- package/dist/reports/category.js +14 -0
- package/dist/reports/category.js.map +1 -0
- package/dist/reports/index.d.ts +9 -0
- package/dist/reports/index.d.ts.map +1 -0
- package/dist/reports/index.js +25 -0
- package/dist/reports/index.js.map +1 -0
- package/dist/reports/priority.d.ts +3 -0
- package/dist/reports/priority.d.ts.map +1 -0
- package/dist/reports/priority.js +10 -0
- package/dist/reports/priority.js.map +1 -0
- package/dist/reports/report.d.ts +17 -0
- package/dist/reports/report.d.ts.map +1 -0
- package/dist/reports/report.js +3 -0
- package/dist/reports/report.js.map +1 -0
- package/dist/reports/status.d.ts +3 -0
- package/dist/reports/status.d.ts.map +1 -0
- package/dist/reports/status.js +12 -0
- package/dist/reports/status.js.map +1 -0
- package/dist/reports/submission.d.ts +8 -0
- package/dist/reports/submission.d.ts.map +1 -0
- package/dist/reports/submission.js +3 -0
- package/dist/reports/submission.js.map +1 -0
- package/dist/reports/target.d.ts +16 -0
- package/dist/reports/target.d.ts.map +1 -0
- package/dist/reports/target.js +3 -0
- package/dist/reports/target.js.map +1 -0
- package/dist/reports/update.d.ts +18 -0
- package/dist/reports/update.d.ts.map +1 -0
- package/dist/reports/update.js +3 -0
- package/dist/reports/update.js.map +1 -0
- package/dist/reports/update_type.d.ts +3 -0
- package/dist/reports/update_type.d.ts.map +1 -0
- package/dist/reports/update_type.js +5 -0
- package/dist/reports/update_type.js.map +1 -0
- package/dist/settings/index.d.ts +3 -0
- package/dist/settings/index.d.ts.map +1 -0
- package/dist/settings/index.js +19 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/settings/notification.d.ts +7 -0
- package/dist/settings/notification.d.ts.map +1 -0
- package/dist/settings/notification.js +3 -0
- package/dist/settings/notification.js.map +1 -0
- package/dist/settings/settings.d.ts +19 -0
- package/dist/settings/settings.d.ts.map +1 -0
- package/dist/settings/settings.js +3 -0
- package/dist/settings/settings.js.map +1 -0
- package/dist/shopping/index.d.ts +4 -0
- package/dist/shopping/index.d.ts.map +1 -0
- package/dist/shopping/index.js +20 -0
- package/dist/shopping/index.js.map +1 -0
- package/dist/shopping/item.d.ts +9 -0
- package/dist/shopping/item.d.ts.map +1 -0
- package/dist/shopping/item.js +3 -0
- package/dist/shopping/item.js.map +1 -0
- package/dist/shopping/item_status.d.ts +3 -0
- package/dist/shopping/item_status.d.ts.map +1 -0
- package/dist/shopping/item_status.js +9 -0
- package/dist/shopping/item_status.js.map +1 -0
- package/dist/shopping/list.d.ts +9 -0
- package/dist/shopping/list.d.ts.map +1 -0
- package/dist/shopping/list.js +3 -0
- package/dist/shopping/list.js.map +1 -0
- package/dist/subscriptions/billing_period.d.ts +3 -0
- package/dist/subscriptions/billing_period.d.ts.map +1 -0
- package/dist/subscriptions/billing_period.js +5 -0
- package/dist/subscriptions/billing_period.js.map +1 -0
- package/dist/subscriptions/cost.d.ts +7 -0
- package/dist/subscriptions/cost.d.ts.map +1 -0
- package/dist/subscriptions/cost.js +3 -0
- package/dist/subscriptions/cost.js.map +1 -0
- package/dist/subscriptions/index.d.ts +9 -0
- package/dist/subscriptions/index.d.ts.map +1 -0
- package/dist/subscriptions/index.js +25 -0
- package/dist/subscriptions/index.js.map +1 -0
- package/dist/subscriptions/member.d.ts +10 -0
- package/dist/subscriptions/member.d.ts.map +1 -0
- package/dist/subscriptions/member.js +3 -0
- package/dist/subscriptions/member.js.map +1 -0
- package/dist/subscriptions/member_status.d.ts +3 -0
- package/dist/subscriptions/member_status.d.ts.map +1 -0
- package/dist/subscriptions/member_status.js +10 -0
- package/dist/subscriptions/member_status.js.map +1 -0
- package/dist/subscriptions/store.d.ts +3 -0
- package/dist/subscriptions/store.d.ts.map +1 -0
- package/dist/subscriptions/store.js +10 -0
- package/dist/subscriptions/store.js.map +1 -0
- package/dist/subscriptions/subscription.d.ts +22 -0
- package/dist/subscriptions/subscription.d.ts.map +1 -0
- package/dist/subscriptions/subscription.js +3 -0
- package/dist/subscriptions/subscription.js.map +1 -0
- package/dist/subscriptions/subscription_role.d.ts +3 -0
- package/dist/subscriptions/subscription_role.d.ts.map +1 -0
- package/dist/subscriptions/subscription_role.js +5 -0
- package/dist/subscriptions/subscription_role.js.map +1 -0
- package/dist/subscriptions/subscription_status.d.ts +3 -0
- package/dist/subscriptions/subscription_status.d.ts.map +1 -0
- package/dist/subscriptions/subscription_status.js +14 -0
- package/dist/subscriptions/subscription_status.js.map +1 -0
- package/dist/subscriptions/subscription_tier.d.ts +3 -0
- package/dist/subscriptions/subscription_tier.d.ts.map +1 -0
- package/dist/subscriptions/subscription_tier.js +5 -0
- package/dist/subscriptions/subscription_tier.js.map +1 -0
- package/package.json +35 -0
- package/src/common/allergen.ts +16 -0
- package/src/common/cuisine.ts +77 -0
- package/src/common/currency.ts +6 -0
- package/src/common/currency_code.ts +10 -0
- package/src/common/dietary_tag.ts +18 -0
- package/src/common/difficulty.ts +2 -0
- package/src/common/index.ts +13 -0
- package/src/common/meal_type.ts +13 -0
- package/src/common/measurement_system.ts +2 -0
- package/src/common/nutrition.ts +11 -0
- package/src/common/spiciness.ts +8 -0
- package/src/common/temperature.ts +6 -0
- package/src/common/temperature_unit.ts +2 -0
- package/src/common/unit.ts +48 -0
- package/src/core/api.ts +30 -0
- package/src/core/entity.ts +8 -0
- package/src/core/errors.ts +118 -0
- package/src/core/index.ts +7 -0
- package/src/core/locale.ts +2 -0
- package/src/core/pagination.ts +15 -0
- package/src/core/theme.ts +2 -0
- package/src/core/timestamp.ts +4 -0
- package/src/equipment/category.ts +15 -0
- package/src/equipment/entity.ts +18 -0
- package/src/equipment/index.ts +4 -0
- package/src/equipment/recipe.ts +14 -0
- package/src/equipment/user.ts +10 -0
- package/src/feed/index.ts +1 -0
- package/src/feed/recipe.ts +61 -0
- package/src/iam/index.ts +2 -0
- package/src/iam/role.ts +8 -0
- package/src/iam/user.ts +12 -0
- package/src/index.ts +13 -0
- package/src/ingredients/category.ts +28 -0
- package/src/ingredients/entity.ts +21 -0
- package/src/ingredients/group.ts +8 -0
- package/src/ingredients/index.ts +6 -0
- package/src/ingredients/recipe.ts +17 -0
- package/src/ingredients/section.ts +22 -0
- package/src/ingredients/user.ts +14 -0
- package/src/interactions/collection.ts +7 -0
- package/src/interactions/cooked.ts +6 -0
- package/src/interactions/event.ts +10 -0
- package/src/interactions/event_type.ts +9 -0
- package/src/interactions/index.ts +5 -0
- package/src/interactions/rated.ts +6 -0
- package/src/interactions/saved.ts +6 -0
- package/src/limits/index.ts +3 -0
- package/src/limits/limits.ts +6 -0
- package/src/limits/operation.ts +10 -0
- package/src/limits/usage.ts +9 -0
- package/src/mealplan/day.ts +6 -0
- package/src/mealplan/index.ts +4 -0
- package/src/mealplan/meal.ts +9 -0
- package/src/mealplan/plan.ts +9 -0
- package/src/mealplan/slot.ts +7 -0
- package/src/recipes/admin.ts +12 -0
- package/src/recipes/content.ts +14 -0
- package/src/recipes/index.ts +4 -0
- package/src/recipes/instruction.ts +19 -0
- package/src/recipes/meta.ts +42 -0
- package/src/recipes/recipe.ts +39 -0
- package/src/recipes/source.ts +2 -0
- package/src/recipes/stats.ts +9 -0
- package/src/recipes/status.ts +8 -0
- package/src/reports/category.ts +11 -0
- package/src/reports/index.ts +8 -0
- package/src/reports/priority.ts +7 -0
- package/src/reports/report.ts +18 -0
- package/src/reports/status.ts +9 -0
- package/src/reports/submission.ts +8 -0
- package/src/reports/target.ts +22 -0
- package/src/reports/update.ts +21 -0
- package/src/reports/update_type.ts +2 -0
- package/src/settings/index.ts +2 -0
- package/src/settings/notification.ts +6 -0
- package/src/settings/settings.ts +27 -0
- package/src/shopping/index.ts +3 -0
- package/src/shopping/item.ts +9 -0
- package/src/shopping/item_status.ts +6 -0
- package/src/shopping/list.ts +9 -0
- package/src/subscriptions/billing_period.ts +2 -0
- package/src/subscriptions/index.ts +8 -0
- package/src/subscriptions/member.ts +10 -0
- package/src/subscriptions/member_status.ts +7 -0
- package/src/subscriptions/store.ts +7 -0
- package/src/subscriptions/subscription.ts +22 -0
- package/src/subscriptions/subscription_role.ts +2 -0
- package/src/subscriptions/subscription_status.ts +11 -0
- package/src/subscriptions/subscription_tier.ts +2 -0
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @cravery/types
|
|
2
|
+
|
|
3
|
+
[](https://cravery.app)
|
|
4
|
+
|
|
5
|
+
Core SDK for Cravery backend services.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @cravery/types
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
// Import everything
|
|
17
|
+
import { ... } from "@cravery/types";
|
|
18
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allergen.d.ts","sourceRoot":"","sources":["../../src/common/allergen.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yIAclB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ALLERGEN_VALUES = void 0;
|
|
4
|
+
exports.ALLERGEN_VALUES = [
|
|
5
|
+
"celery",
|
|
6
|
+
"dairy",
|
|
7
|
+
"eggs",
|
|
8
|
+
"fish",
|
|
9
|
+
"gluten",
|
|
10
|
+
"lupin",
|
|
11
|
+
"mustard",
|
|
12
|
+
"nuts",
|
|
13
|
+
"peanuts",
|
|
14
|
+
"sesame",
|
|
15
|
+
"shellfish",
|
|
16
|
+
"soy",
|
|
17
|
+
"sulfites",
|
|
18
|
+
];
|
|
19
|
+
//# sourceMappingURL=allergen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allergen.js","sourceRoot":"","sources":["../../src/common/allergen.ts"],"names":[],"mappings":";;;AAAa,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"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const CUISINE_VALUES: readonly ["chinese", "japanese", "korean", "filipino", "indonesian", "malaysian", "singaporean", "thai", "vietnamese", "bangladeshi", "indian", "pakistani", "sri_lankan", "emirati", "iraqi", "jordanian", "lebanese", "palestinian", "saudi", "syrian", "yemeni", "persian", "turkish", "algerian", "egyptian", "moroccan", "sudanese", "tunisian", "ethiopian", "ghanaian", "kenyan", "nigerian", "south_african", "british", "french", "german", "irish", "italian", "portuguese", "spanish", "danish", "swedish", "greek", "hungarian", "polish", "russian", "ukrainian", "american", "cajun", "mexican", "cuban", "jamaican", "puerto_rican", "argentinian", "brazilian", "colombian", "peruvian", "venezuelan", "australian"];
|
|
2
|
+
export type Cuisine = (typeof CUISINE_VALUES)[number];
|
|
3
|
+
//# sourceMappingURL=cuisine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuisine.d.ts","sourceRoot":"","sources":["../../src/common/cuisine.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,ssBA0EjB,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CUISINE_VALUES = void 0;
|
|
4
|
+
exports.CUISINE_VALUES = [
|
|
5
|
+
// East Asia
|
|
6
|
+
"chinese",
|
|
7
|
+
"japanese",
|
|
8
|
+
"korean",
|
|
9
|
+
// Southeast Asia
|
|
10
|
+
"filipino",
|
|
11
|
+
"indonesian",
|
|
12
|
+
"malaysian",
|
|
13
|
+
"singaporean",
|
|
14
|
+
"thai",
|
|
15
|
+
"vietnamese",
|
|
16
|
+
// South Asia
|
|
17
|
+
"bangladeshi",
|
|
18
|
+
"indian",
|
|
19
|
+
"pakistani",
|
|
20
|
+
"sri_lankan",
|
|
21
|
+
// Middle East
|
|
22
|
+
"emirati",
|
|
23
|
+
"iraqi",
|
|
24
|
+
"jordanian",
|
|
25
|
+
"lebanese",
|
|
26
|
+
"palestinian",
|
|
27
|
+
"saudi",
|
|
28
|
+
"syrian",
|
|
29
|
+
"yemeni",
|
|
30
|
+
// Central Asia & Caucasus
|
|
31
|
+
"persian",
|
|
32
|
+
"turkish",
|
|
33
|
+
// North Africa
|
|
34
|
+
"algerian",
|
|
35
|
+
"egyptian",
|
|
36
|
+
"moroccan",
|
|
37
|
+
"sudanese",
|
|
38
|
+
"tunisian",
|
|
39
|
+
// Sub-Saharan Africa
|
|
40
|
+
"ethiopian",
|
|
41
|
+
"ghanaian",
|
|
42
|
+
"kenyan",
|
|
43
|
+
"nigerian",
|
|
44
|
+
"south_african",
|
|
45
|
+
// Western Europe
|
|
46
|
+
"british",
|
|
47
|
+
"french",
|
|
48
|
+
"german",
|
|
49
|
+
"irish",
|
|
50
|
+
"italian",
|
|
51
|
+
"portuguese",
|
|
52
|
+
"spanish",
|
|
53
|
+
// Northern Europe
|
|
54
|
+
"danish",
|
|
55
|
+
"swedish",
|
|
56
|
+
// Eastern Europe
|
|
57
|
+
"greek",
|
|
58
|
+
"hungarian",
|
|
59
|
+
"polish",
|
|
60
|
+
"russian",
|
|
61
|
+
"ukrainian",
|
|
62
|
+
// North America
|
|
63
|
+
"american",
|
|
64
|
+
"cajun",
|
|
65
|
+
"mexican",
|
|
66
|
+
// Caribbean
|
|
67
|
+
"cuban",
|
|
68
|
+
"jamaican",
|
|
69
|
+
"puerto_rican",
|
|
70
|
+
// South America
|
|
71
|
+
"argentinian",
|
|
72
|
+
"brazilian",
|
|
73
|
+
"colombian",
|
|
74
|
+
"peruvian",
|
|
75
|
+
"venezuelan",
|
|
76
|
+
// Oceania
|
|
77
|
+
"australian",
|
|
78
|
+
];
|
|
79
|
+
//# sourceMappingURL=cuisine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuisine.js","sourceRoot":"","sources":["../../src/common/cuisine.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,YAAY;IACZ,SAAS;IACT,UAAU;IACV,QAAQ;IACR,iBAAiB;IACjB,UAAU;IACV,YAAY;IACZ,WAAW;IACX,aAAa;IACb,MAAM;IACN,YAAY;IACZ,aAAa;IACb,aAAa;IACb,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,cAAc;IACd,SAAS;IACT,OAAO;IACP,WAAW;IACX,UAAU;IACV,aAAa;IACb,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,0BAA0B;IAC1B,SAAS;IACT,SAAS;IACT,eAAe;IACf,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,qBAAqB;IACrB,WAAW;IACX,UAAU;IACV,QAAQ;IACR,UAAU;IACV,eAAe;IACf,iBAAiB;IACjB,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,SAAS;IACT,YAAY;IACZ,SAAS;IACT,kBAAkB;IAClB,QAAQ;IACR,SAAS;IACT,iBAAiB;IACjB,OAAO;IACP,WAAW;IACX,QAAQ;IACR,SAAS;IACT,WAAW;IACX,gBAAgB;IAChB,UAAU;IACV,OAAO;IACP,SAAS;IACT,YAAY;IACZ,OAAO;IACP,UAAU;IACV,cAAc;IACd,gBAAgB;IAChB,aAAa;IACb,WAAW;IACX,WAAW;IACX,UAAU;IACV,YAAY;IACZ,UAAU;IACV,YAAY;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../src/common/currency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/common/currency.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency_code.d.ts","sourceRoot":"","sources":["../../src/common/currency_code.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,4DAQvB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CURRENCY_CODE_VALUES = void 0;
|
|
4
|
+
exports.CURRENCY_CODE_VALUES = [
|
|
5
|
+
"USD",
|
|
6
|
+
"CAD",
|
|
7
|
+
"GBP",
|
|
8
|
+
"EUR",
|
|
9
|
+
"EGP",
|
|
10
|
+
"AED",
|
|
11
|
+
"SAR",
|
|
12
|
+
];
|
|
13
|
+
//# sourceMappingURL=currency_code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency_code.js","sourceRoot":"","sources":["../../src/common/currency_code.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACG,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
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"];
|
|
2
|
+
export type DietaryTag = (typeof DIETARY_TAG_VALUES)[number];
|
|
3
|
+
//# sourceMappingURL=dietary_tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dietary_tag.d.ts","sourceRoot":"","sources":["../../src/common/dietary_tag.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,qMAgBrB,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DIETARY_TAG_VALUES = void 0;
|
|
4
|
+
exports.DIETARY_TAG_VALUES = [
|
|
5
|
+
"dairy_free",
|
|
6
|
+
"egg_free",
|
|
7
|
+
"gluten_free",
|
|
8
|
+
"halal",
|
|
9
|
+
"high_protein",
|
|
10
|
+
"keto",
|
|
11
|
+
"low_carb",
|
|
12
|
+
"low_fat",
|
|
13
|
+
"low_sodium",
|
|
14
|
+
"low_sugar",
|
|
15
|
+
"nut_free",
|
|
16
|
+
"pescatarian",
|
|
17
|
+
"soy_free",
|
|
18
|
+
"vegan",
|
|
19
|
+
"vegetarian",
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=dietary_tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dietary_tag.js","sourceRoot":"","sources":["../../src/common/dietary_tag.ts"],"names":[],"mappings":";;;AAAa,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"difficulty.d.ts","sourceRoot":"","sources":["../../src/common/difficulty.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,+CAAgD,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"difficulty.js","sourceRoot":"","sources":["../../src/common/difficulty.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAU,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./allergen";
|
|
2
|
+
export * from "./cuisine";
|
|
3
|
+
export * from "./currency";
|
|
4
|
+
export * from "./currency_code";
|
|
5
|
+
export * from "./dietary_tag";
|
|
6
|
+
export * from "./difficulty";
|
|
7
|
+
export * from "./meal_type";
|
|
8
|
+
export * from "./measurement_system";
|
|
9
|
+
export * from "./nutrition";
|
|
10
|
+
export * from "./spiciness";
|
|
11
|
+
export * from "./temperature_unit";
|
|
12
|
+
export * from "./temperature";
|
|
13
|
+
export * from "./unit";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./allergen"), exports);
|
|
18
|
+
__exportStar(require("./cuisine"), exports);
|
|
19
|
+
__exportStar(require("./currency"), exports);
|
|
20
|
+
__exportStar(require("./currency_code"), exports);
|
|
21
|
+
__exportStar(require("./dietary_tag"), exports);
|
|
22
|
+
__exportStar(require("./difficulty"), exports);
|
|
23
|
+
__exportStar(require("./meal_type"), exports);
|
|
24
|
+
__exportStar(require("./measurement_system"), exports);
|
|
25
|
+
__exportStar(require("./nutrition"), exports);
|
|
26
|
+
__exportStar(require("./spiciness"), exports);
|
|
27
|
+
__exportStar(require("./temperature_unit"), exports);
|
|
28
|
+
__exportStar(require("./temperature"), exports);
|
|
29
|
+
__exportStar(require("./unit"), exports);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B;AAC3B,kDAAgC;AAChC,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,uDAAqC;AACrC,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,gDAA8B;AAC9B,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meal_type.d.ts","sourceRoot":"","sources":["../../src/common/meal_type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,gHAWnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MEAL_TYPE_VALUES = void 0;
|
|
4
|
+
exports.MEAL_TYPE_VALUES = [
|
|
5
|
+
"appetizer",
|
|
6
|
+
"breakfast",
|
|
7
|
+
"brunch",
|
|
8
|
+
"dessert",
|
|
9
|
+
"dinner",
|
|
10
|
+
"drink",
|
|
11
|
+
"lunch",
|
|
12
|
+
"sauce",
|
|
13
|
+
"side",
|
|
14
|
+
"snack",
|
|
15
|
+
];
|
|
16
|
+
//# sourceMappingURL=meal_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meal_type.js","sourceRoot":"","sources":["../../src/common/meal_type.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,WAAW;IACX,WAAW;IACX,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;CACC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measurement_system.d.ts","sourceRoot":"","sources":["../../src/common/measurement_system.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,iCAAkC,CAAC;AACzE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measurement_system.js","sourceRoot":"","sources":["../../src/common/measurement_system.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nutrition.d.ts","sourceRoot":"","sources":["../../src/common/nutrition.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nutrition.js","sourceRoot":"","sources":["../../src/common/nutrition.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../src/common/price.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"price.js","sourceRoot":"","sources":["../../src/common/price.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spiciness.d.ts","sourceRoot":"","sources":["../../src/common/spiciness.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,uDAMnB,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spiciness.js","sourceRoot":"","sources":["../../src/common/spiciness.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,MAAM;IACN,MAAM;IACN,QAAQ;IACR,KAAK;IACL,SAAS;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temperature.d.ts","sourceRoot":"","sources":["../../src/common/temperature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temperature.js","sourceRoot":"","sources":["../../src/common/temperature.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temperature_unit.d.ts","sourceRoot":"","sources":["../../src/common/temperature_unit.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,oCAAqC,CAAC;AAC1E,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temperature_unit.js","sourceRoot":"","sources":["../../src/common/temperature_unit.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG,CAAC,SAAS,EAAE,YAAY,CAAU,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
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"];
|
|
2
|
+
export type Unit = (typeof UNIT_VALUES)[number];
|
|
3
|
+
//# sourceMappingURL=unit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../src/common/unit.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,6TA8Cd,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UNIT_VALUES = void 0;
|
|
4
|
+
exports.UNIT_VALUES = [
|
|
5
|
+
// Volume (metric)
|
|
6
|
+
"ml",
|
|
7
|
+
"l",
|
|
8
|
+
// Volume (imperial)
|
|
9
|
+
"tsp",
|
|
10
|
+
"tbsp",
|
|
11
|
+
"fl_oz",
|
|
12
|
+
"cup",
|
|
13
|
+
"pint",
|
|
14
|
+
"quart",
|
|
15
|
+
"gallon",
|
|
16
|
+
// Weight (metric)
|
|
17
|
+
"mg",
|
|
18
|
+
"g",
|
|
19
|
+
"kg",
|
|
20
|
+
// Weight (imperial)
|
|
21
|
+
"oz",
|
|
22
|
+
"lb",
|
|
23
|
+
// Count/portion
|
|
24
|
+
"piece",
|
|
25
|
+
"whole",
|
|
26
|
+
"half",
|
|
27
|
+
"quarter",
|
|
28
|
+
"slice",
|
|
29
|
+
"serving",
|
|
30
|
+
// Produce-specific
|
|
31
|
+
"clove",
|
|
32
|
+
"stalk",
|
|
33
|
+
"sprig",
|
|
34
|
+
"leaf",
|
|
35
|
+
"bunch",
|
|
36
|
+
"head",
|
|
37
|
+
"fillet",
|
|
38
|
+
"stick",
|
|
39
|
+
"sheet",
|
|
40
|
+
// Container
|
|
41
|
+
"can",
|
|
42
|
+
"package",
|
|
43
|
+
"bottle",
|
|
44
|
+
"jar",
|
|
45
|
+
// Imprecise
|
|
46
|
+
"handful",
|
|
47
|
+
"pinch",
|
|
48
|
+
"dash",
|
|
49
|
+
"drop",
|
|
50
|
+
];
|
|
51
|
+
//# sourceMappingURL=unit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.js","sourceRoot":"","sources":["../../src/common/unit.ts"],"names":[],"mappings":";;;AAAa,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AppErrorCode } from "./errors";
|
|
2
|
+
export interface ApiSuccessResponse<T> {
|
|
3
|
+
success: true;
|
|
4
|
+
data: T;
|
|
5
|
+
}
|
|
6
|
+
export interface ApiErrorResponse {
|
|
7
|
+
success: false;
|
|
8
|
+
error: {
|
|
9
|
+
code: AppErrorCode;
|
|
10
|
+
message: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export type ApiResponse<T> = ApiSuccessResponse<T> | ApiErrorResponse;
|
|
14
|
+
export declare function success<T>(data: T): ApiSuccessResponse<T>;
|
|
15
|
+
export declare function failure(code: AppErrorCode, message: string): ApiErrorResponse;
|
|
16
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/core/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,CAAC,CAAC;CACT;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE;QACL,IAAI,EAAE,YAAY,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAEtE,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAEzD;AAED,wBAAgB,OAAO,CACrB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,MAAM,GACd,gBAAgB,CAKlB"}
|
package/dist/core/api.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.success = success;
|
|
4
|
+
exports.failure = failure;
|
|
5
|
+
function success(data) {
|
|
6
|
+
return { success: true, data };
|
|
7
|
+
}
|
|
8
|
+
function failure(code, message) {
|
|
9
|
+
return {
|
|
10
|
+
success: false,
|
|
11
|
+
error: { code, message },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/core/api.ts"],"names":[],"mappings":";;AAiBA,0BAEC;AAED,0BAQC;AAZD,SAAgB,OAAO,CAAI,IAAO;IAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACjC,CAAC;AAED,SAAgB,OAAO,CACrB,IAAkB,EAClB,OAAe;IAEf,OAAO;QACL,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KACzB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/core/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../src/core/entity.ts"],"names":[],"mappings":""}
|