@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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RecipeSource } from "../recipes";
|
|
2
|
+
export interface ExtractionTarget {
|
|
3
|
+
type: "extraction";
|
|
4
|
+
source: RecipeSource;
|
|
5
|
+
sourceRef: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ImageTarget {
|
|
8
|
+
type: "image";
|
|
9
|
+
imageUrl: string;
|
|
10
|
+
}
|
|
11
|
+
export interface RecipeTarget {
|
|
12
|
+
type: "recipe";
|
|
13
|
+
recipeId: string;
|
|
14
|
+
}
|
|
15
|
+
export type ReportTarget = ExtractionTarget | ImageTarget | RecipeTarget;
|
|
16
|
+
//# sourceMappingURL=target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../src/reports/target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,YAAY,GACpB,gBAAgB,GAChB,WAAW,GACX,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target.js","sourceRoot":"","sources":["../../src/reports/target.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Entity } from "../core";
|
|
2
|
+
import { ReportUpdateType } from "./update_type";
|
|
3
|
+
export interface ReportUpdateBase extends Entity {
|
|
4
|
+
content: string;
|
|
5
|
+
reportId: string;
|
|
6
|
+
type: ReportUpdateType;
|
|
7
|
+
}
|
|
8
|
+
export interface AIUpdate extends ReportUpdateBase {
|
|
9
|
+
type: "ai";
|
|
10
|
+
score: number;
|
|
11
|
+
reasoning: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ResolutionUpdate extends ReportUpdateBase {
|
|
14
|
+
type: "resolution";
|
|
15
|
+
action: "dismissed" | "warning_issued" | "content_removed" | "user_suspended";
|
|
16
|
+
}
|
|
17
|
+
export type ReportUpdate = AIUpdate | ReportUpdateBase | ResolutionUpdate;
|
|
18
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/reports/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,QAAS,SAAQ,gBAAgB;IAChD,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,WAAW,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;CAC/E;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../src/reports/update.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update_type.d.ts","sourceRoot":"","sources":["../../src/reports/update_type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,uCAAwC,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update_type.js","sourceRoot":"","sources":["../../src/reports/update_type.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./notification"), exports);
|
|
18
|
+
__exportStar(require("./settings"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/settings/notification.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/settings/notification.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Allergen, Cuisine, DietaryTag, Difficulty, MeasurementSystem, Spiciness, TemperatureUnit } from "../common";
|
|
2
|
+
import { Entity, Locale, Theme } from "../core";
|
|
3
|
+
import { NotificationSettings } from "./notification";
|
|
4
|
+
export interface Settings extends Entity {
|
|
5
|
+
allergens: Allergen[];
|
|
6
|
+
cuisines: Cuisine[];
|
|
7
|
+
defaultServings: number;
|
|
8
|
+
dietaryTags: DietaryTag[];
|
|
9
|
+
excludedIngredients: string[];
|
|
10
|
+
locale: Locale;
|
|
11
|
+
measurementSystem: MeasurementSystem;
|
|
12
|
+
notifications: NotificationSettings;
|
|
13
|
+
skillLevel: Difficulty;
|
|
14
|
+
spiciness: Spiciness;
|
|
15
|
+
temperatureUnit: TemperatureUnit;
|
|
16
|
+
textScale: number;
|
|
17
|
+
theme: Theme;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/settings/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,WAAW,QAAS,SAAQ,MAAM;IACtC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,aAAa,EAAE,oBAAoB,CAAC;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,EAAE,eAAe,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/settings/settings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shopping/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./item_status"), exports);
|
|
18
|
+
__exportStar(require("./item"), exports);
|
|
19
|
+
__exportStar(require("./list"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/shopping/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yCAAuB;AACvB,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/shopping/item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,kBAAkB,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../src/shopping/item.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item_status.d.ts","sourceRoot":"","sources":["../../src/shopping/item_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,8CAI9B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item_status.js","sourceRoot":"","sources":["../../src/shopping/item_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAG;IACzC,SAAS;IACT,WAAW;IACX,SAAS;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/shopping/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../src/shopping/list.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing_period.d.ts","sourceRoot":"","sources":["../../src/subscriptions/billing_period.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,gCAAiC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing_period.js","sourceRoot":"","sources":["../../src/subscriptions/billing_period.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.d.ts","sourceRoot":"","sources":["../../src/subscriptions/cost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.js","sourceRoot":"","sources":["../../src/subscriptions/cost.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./billing_period";
|
|
2
|
+
export * from "./member_status";
|
|
3
|
+
export * from "./member";
|
|
4
|
+
export * from "./store";
|
|
5
|
+
export * from "./subscription_role";
|
|
6
|
+
export * from "./subscription_status";
|
|
7
|
+
export * from "./subscription_tier";
|
|
8
|
+
export * from "./subscription";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/subscriptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./billing_period"), exports);
|
|
18
|
+
__exportStar(require("./member_status"), exports);
|
|
19
|
+
__exportStar(require("./member"), exports);
|
|
20
|
+
__exportStar(require("./store"), exports);
|
|
21
|
+
__exportStar(require("./subscription_role"), exports);
|
|
22
|
+
__exportStar(require("./subscription_status"), exports);
|
|
23
|
+
__exportStar(require("./subscription_tier"), exports);
|
|
24
|
+
__exportStar(require("./subscription"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/subscriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,kDAAgC;AAChC,2CAAyB;AACzB,0CAAwB;AACxB,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Timestamp } from "../core";
|
|
2
|
+
import { MemberStatus } from "./member_status";
|
|
3
|
+
import { SubscriptionRole } from "./subscription_role";
|
|
4
|
+
export interface Member {
|
|
5
|
+
joinedAt: Timestamp | null;
|
|
6
|
+
role: SubscriptionRole;
|
|
7
|
+
status: MemberStatus;
|
|
8
|
+
userId: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=member.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../src/subscriptions/member.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,MAAM;IACrB,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../src/subscriptions/member.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member_status.d.ts","sourceRoot":"","sources":["../../src/subscriptions/member_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,uDAKvB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member_status.js","sourceRoot":"","sources":["../../src/subscriptions/member_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,SAAS;IACT,QAAQ;IACR,UAAU;IACV,SAAS;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/subscriptions/store.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,+DAK5B,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSCRIPTION_STORE_VALUES = void 0;
|
|
4
|
+
exports.SUBSCRIPTION_STORE_VALUES = [
|
|
5
|
+
"app_store",
|
|
6
|
+
"play_store",
|
|
7
|
+
"promotional",
|
|
8
|
+
"stripe",
|
|
9
|
+
];
|
|
10
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/subscriptions/store.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;IACvC,WAAW;IACX,YAAY;IACZ,aAAa;IACb,QAAQ;CACA,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Entity, Timestamp } from "../core";
|
|
2
|
+
import { BillingPeriod } from "./billing_period";
|
|
3
|
+
import { Member } from "./member";
|
|
4
|
+
import { SubscriptionStore } from "./store";
|
|
5
|
+
import { SubscriptionStatus } from "./subscription_status";
|
|
6
|
+
import { SubscriptionTier } from "./subscription_tier";
|
|
7
|
+
export interface Subscription extends Entity {
|
|
8
|
+
billingPeriod: BillingPeriod;
|
|
9
|
+
cancelledAt: Timestamp | null;
|
|
10
|
+
customerId: string;
|
|
11
|
+
entitlementId: string;
|
|
12
|
+
expiresAt: Timestamp;
|
|
13
|
+
members: Member[];
|
|
14
|
+
productId: string;
|
|
15
|
+
purchasedAt: Timestamp;
|
|
16
|
+
renewable: boolean;
|
|
17
|
+
status: SubscriptionStatus;
|
|
18
|
+
store: SubscriptionStore;
|
|
19
|
+
tier: SubscriptionTier;
|
|
20
|
+
trialExpiresAt: Timestamp | null;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/subscriptions/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,aAAa,EAAE,aAAa,CAAC;IAC7B,WAAW,EAAE,SAAS,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,SAAS,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,iBAAiB,CAAC;IACzB,IAAI,EAAE,gBAAgB,CAAC;IACvB,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../src/subscriptions/subscription.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_role.d.ts","sourceRoot":"","sources":["../../src/subscriptions/subscription_role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,8BAA+B,CAAC;AACrE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_role.js","sourceRoot":"","sources":["../../src/subscriptions/subscription_role.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const SUBSCRIPTION_STATUS_VALUES: readonly ["active", "deleted", "expired", "grace", "paused", "pending", "rejected", "trialing"];
|
|
2
|
+
export type SubscriptionStatus = (typeof SUBSCRIPTION_STATUS_VALUES)[number];
|
|
3
|
+
//# sourceMappingURL=subscription_status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_status.d.ts","sourceRoot":"","sources":["../../src/subscriptions/subscription_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,iGAS7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSCRIPTION_STATUS_VALUES = void 0;
|
|
4
|
+
exports.SUBSCRIPTION_STATUS_VALUES = [
|
|
5
|
+
"active",
|
|
6
|
+
"deleted",
|
|
7
|
+
"expired",
|
|
8
|
+
"grace",
|
|
9
|
+
"paused",
|
|
10
|
+
"pending",
|
|
11
|
+
"rejected",
|
|
12
|
+
"trialing",
|
|
13
|
+
];
|
|
14
|
+
//# sourceMappingURL=subscription_status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_status.js","sourceRoot":"","sources":["../../src/subscriptions/subscription_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,QAAQ;IACR,SAAS;IACT,SAAS;IACT,OAAO;IACP,QAAQ;IACR,SAAS;IACT,UAAU;IACV,UAAU;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_tier.d.ts","sourceRoot":"","sources":["../../src/subscriptions/subscription_tier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,oCAAqC,CAAC;AAC3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_tier.js","sourceRoot":"","sources":["../../src/subscriptions/subscription_tier.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cravery/types",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Core types for Cravery",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"typesVersions": {
|
|
14
|
+
"*": {
|
|
15
|
+
"types": [
|
|
16
|
+
"dist/types/index.d.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc",
|
|
22
|
+
"build:watch": "tsc --watch",
|
|
23
|
+
"clean": "rimraf dist && npm run build"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [],
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "^25.0.9",
|
|
28
|
+
"rimraf": "^6.1.2",
|
|
29
|
+
"typescript": "^5.9.3"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist/**/*",
|
|
33
|
+
"src/**/*"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +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];
|