@cravery/core 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/ai/recipe.d.ts +1 -244
- package/dist/types/ai/recipe.d.ts.map +1 -1
- package/dist/types/ai/recipe.js +0 -28
- package/dist/types/ai/recipe.js.map +1 -1
- package/dist/types/ai/translation.d.ts +1 -107
- package/dist/types/ai/translation.d.ts.map +1 -1
- package/dist/types/ai/translation.js +0 -11
- package/dist/types/ai/translation.js.map +1 -1
- package/dist/types/core/api.d.ts +4 -4
- package/dist/types/core/api.d.ts.map +1 -1
- package/dist/types/core/asset.d.ts +2 -22
- package/dist/types/core/asset.d.ts.map +1 -1
- package/dist/types/core/asset.js +0 -9
- package/dist/types/core/asset.js.map +1 -1
- package/dist/types/core/entity.d.ts +7 -0
- package/dist/types/core/entity.d.ts.map +1 -0
- package/dist/types/core/entity.js +3 -0
- package/dist/types/core/entity.js.map +1 -0
- package/dist/types/core/index.d.ts +5 -1
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/index.js +5 -1
- package/dist/types/core/index.js.map +1 -1
- package/dist/types/core/locale.d.ts +3 -0
- package/dist/types/core/locale.d.ts.map +1 -0
- package/dist/types/core/locale.js +5 -0
- package/dist/types/core/locale.js.map +1 -0
- package/dist/types/core/measurement_system.d.ts +3 -0
- package/dist/types/core/measurement_system.d.ts.map +1 -0
- package/dist/types/core/measurement_system.js +5 -0
- package/dist/types/core/measurement_system.js.map +1 -0
- package/dist/types/core/settings.d.ts +5 -88
- package/dist/types/core/settings.d.ts.map +1 -1
- package/dist/types/core/settings.js +0 -25
- package/dist/types/core/settings.js.map +1 -1
- package/dist/types/core/theme.d.ts +3 -0
- package/dist/types/core/theme.d.ts.map +1 -0
- package/dist/types/core/theme.js +5 -0
- package/dist/types/core/theme.js.map +1 -0
- package/dist/types/core/timestamp.d.ts +5 -0
- package/dist/types/core/timestamp.d.ts.map +1 -0
- package/dist/types/core/timestamp.js +3 -0
- package/dist/types/core/timestamp.js.map +1 -0
- package/dist/types/iam/index.d.ts +6 -1
- package/dist/types/iam/index.d.ts.map +1 -1
- package/dist/types/iam/index.js +6 -1
- package/dist/types/iam/index.js.map +1 -1
- package/dist/types/iam/profile.d.ts +2 -56
- package/dist/types/iam/profile.d.ts.map +1 -1
- package/dist/types/iam/profile.js +0 -22
- package/dist/types/iam/profile.js.map +1 -1
- package/dist/types/iam/profile_status.d.ts +3 -0
- package/dist/types/iam/profile_status.d.ts.map +1 -0
- package/dist/types/iam/profile_status.js +10 -0
- package/dist/types/iam/profile_status.js.map +1 -0
- package/dist/types/iam/subscription.d.ts +4 -80
- package/dist/types/iam/subscription.d.ts.map +1 -1
- package/dist/types/iam/subscription.js +0 -19
- package/dist/types/iam/subscription.js.map +1 -1
- package/dist/types/iam/subscription_role.d.ts +3 -0
- package/dist/types/iam/subscription_role.d.ts.map +1 -0
- package/dist/types/iam/subscription_role.js +5 -0
- package/dist/types/iam/subscription_role.js.map +1 -0
- package/dist/types/iam/subscription_status.d.ts +3 -0
- package/dist/types/iam/subscription_status.d.ts.map +1 -0
- package/dist/types/iam/subscription_status.js +10 -0
- package/dist/types/iam/subscription_status.js.map +1 -0
- package/dist/types/iam/subscription_tier.d.ts +3 -0
- package/dist/types/iam/subscription_tier.d.ts.map +1 -0
- package/dist/types/iam/subscription_tier.js +5 -0
- package/dist/types/iam/subscription_tier.js.map +1 -0
- package/dist/types/iam/user.d.ts +3 -42
- package/dist/types/iam/user.d.ts.map +1 -1
- package/dist/types/iam/user.js +0 -16
- package/dist/types/iam/user.js.map +1 -1
- package/dist/types/iam/user_role.d.ts +5 -0
- package/dist/types/iam/user_role.d.ts.map +1 -0
- package/dist/types/iam/user_role.js +16 -0
- package/dist/types/iam/user_role.js.map +1 -0
- package/dist/types/iam/user_status.d.ts +3 -0
- package/dist/types/iam/user_status.d.ts.map +1 -0
- package/dist/types/iam/user_status.js +10 -0
- package/dist/types/iam/user_status.js.map +1 -0
- package/dist/types/moderation/index.d.ts +4 -1
- package/dist/types/moderation/index.d.ts.map +1 -1
- package/dist/types/moderation/index.js +4 -1
- package/dist/types/moderation/index.js.map +1 -1
- package/dist/types/moderation/moderation.d.ts +5 -137
- package/dist/types/moderation/moderation.d.ts.map +1 -1
- package/dist/types/moderation/moderation.js +0 -37
- package/dist/types/moderation/moderation.js.map +1 -1
- package/dist/types/moderation/moderation_status.d.ts +3 -0
- package/dist/types/moderation/moderation_status.d.ts.map +1 -0
- package/dist/types/moderation/moderation_status.js +9 -0
- package/dist/types/moderation/moderation_status.js.map +1 -0
- package/dist/types/moderation/priority.d.ts +3 -0
- package/dist/types/moderation/priority.d.ts.map +1 -0
- package/dist/types/moderation/priority.js +5 -0
- package/dist/types/moderation/priority.js.map +1 -0
- package/dist/types/moderation/severity.d.ts +3 -0
- package/dist/types/moderation/severity.d.ts.map +1 -0
- package/dist/types/moderation/severity.js +5 -0
- package/dist/types/moderation/severity.js.map +1 -0
- package/dist/types/moderation/suggestion_category.d.ts +3 -0
- package/dist/types/moderation/suggestion_category.d.ts.map +1 -0
- package/dist/types/moderation/suggestion_category.js +11 -0
- package/dist/types/moderation/suggestion_category.js.map +1 -0
- package/dist/types/recipe/allergen.d.ts +3 -0
- package/dist/types/recipe/allergen.d.ts.map +1 -0
- package/dist/types/recipe/allergen.js +19 -0
- package/dist/types/recipe/allergen.js.map +1 -0
- package/dist/types/recipe/cuisine.d.ts +3 -0
- package/dist/types/recipe/cuisine.d.ts.map +1 -0
- package/dist/types/recipe/cuisine.js +39 -0
- package/dist/types/recipe/cuisine.js.map +1 -0
- package/dist/types/recipe/dietary_tag.d.ts +3 -0
- package/dist/types/recipe/dietary_tag.d.ts.map +1 -0
- package/dist/types/recipe/dietary_tag.js +21 -0
- package/dist/types/recipe/dietary_tag.js.map +1 -0
- package/dist/types/recipe/difficulty.d.ts +3 -0
- package/dist/types/recipe/difficulty.d.ts.map +1 -0
- package/dist/types/recipe/difficulty.js +10 -0
- package/dist/types/recipe/difficulty.js.map +1 -0
- package/dist/types/recipe/equipment.d.ts +0 -40
- package/dist/types/recipe/equipment.d.ts.map +1 -1
- package/dist/types/recipe/equipment.js +0 -12
- package/dist/types/recipe/equipment.js.map +1 -1
- package/dist/types/recipe/filters.d.ts +5 -30
- package/dist/types/recipe/filters.d.ts.map +1 -1
- package/dist/types/recipe/filters.js +0 -13
- package/dist/types/recipe/filters.js.map +1 -1
- package/dist/types/recipe/index.d.ts +10 -1
- package/dist/types/recipe/index.d.ts.map +1 -1
- package/dist/types/recipe/index.js +10 -1
- package/dist/types/recipe/index.js.map +1 -1
- package/dist/types/recipe/ingredient.d.ts +1 -169
- package/dist/types/recipe/ingredient.d.ts.map +1 -1
- package/dist/types/recipe/ingredient.js +0 -29
- package/dist/types/recipe/ingredient.js.map +1 -1
- package/dist/types/recipe/instruction.d.ts +2 -72
- package/dist/types/recipe/instruction.d.ts.map +1 -1
- package/dist/types/recipe/instruction.js +0 -13
- package/dist/types/recipe/instruction.js.map +1 -1
- package/dist/types/recipe/meal_type.d.ts +3 -0
- package/dist/types/recipe/meal_type.d.ts.map +1 -0
- package/dist/types/recipe/meal_type.js +14 -0
- package/dist/types/recipe/meal_type.js.map +1 -0
- package/dist/types/recipe/nutrition.d.ts +0 -36
- package/dist/types/recipe/nutrition.d.ts.map +1 -1
- package/dist/types/recipe/nutrition.js +0 -13
- package/dist/types/recipe/nutrition.js.map +1 -1
- package/dist/types/recipe/recipe.d.ts +14 -525
- package/dist/types/recipe/recipe.d.ts.map +1 -1
- package/dist/types/recipe/recipe.js +0 -80
- package/dist/types/recipe/recipe.js.map +1 -1
- package/dist/types/recipe/recipe_source.d.ts +3 -0
- package/dist/types/recipe/recipe_source.d.ts.map +1 -0
- package/dist/types/recipe/recipe_source.js +5 -0
- package/dist/types/recipe/recipe_source.js.map +1 -0
- package/dist/types/recipe/recipe_status.d.ts +3 -0
- package/dist/types/recipe/recipe_status.d.ts.map +1 -0
- package/dist/types/recipe/recipe_status.js +12 -0
- package/dist/types/recipe/recipe_status.js.map +1 -0
- package/dist/types/recipe/spiciness.d.ts +3 -0
- package/dist/types/recipe/spiciness.d.ts.map +1 -0
- package/dist/types/recipe/spiciness.js +5 -0
- package/dist/types/recipe/spiciness.js.map +1 -0
- package/dist/types/recipe/temperature.d.ts +1 -12
- package/dist/types/recipe/temperature.d.ts.map +1 -1
- package/dist/types/recipe/temperature.js +0 -7
- package/dist/types/recipe/temperature.js.map +1 -1
- package/dist/types/recipe/temperature_unit.d.ts +3 -0
- package/dist/types/recipe/temperature_unit.d.ts.map +1 -0
- package/dist/types/recipe/temperature_unit.js +5 -0
- package/dist/types/recipe/temperature_unit.js.map +1 -0
- package/dist/types/recipe/unit.d.ts +3 -0
- package/dist/types/recipe/unit.d.ts.map +1 -0
- package/dist/types/recipe/unit.js +51 -0
- package/dist/types/recipe/unit.js.map +1 -0
- package/dist/types/report/index.d.ts +4 -1
- package/dist/types/report/index.d.ts.map +1 -1
- package/dist/types/report/index.js +4 -1
- package/dist/types/report/index.js.map +1 -1
- package/dist/types/report/report.d.ts +5 -94
- package/dist/types/report/report.d.ts.map +1 -1
- package/dist/types/report/report.js +0 -29
- package/dist/types/report/report.js.map +1 -1
- package/dist/types/report/report_priority.d.ts +3 -0
- package/dist/types/report/report_priority.d.ts.map +1 -0
- package/dist/types/report/report_priority.js +10 -0
- package/dist/types/report/report_priority.js.map +1 -0
- package/dist/types/report/report_status.d.ts +3 -0
- package/dist/types/report/report_status.d.ts.map +1 -0
- package/dist/types/report/report_status.js +10 -0
- package/dist/types/report/report_status.js.map +1 -0
- package/dist/types/report/report_target_type.d.ts +3 -0
- package/dist/types/report/report_target_type.d.ts.map +1 -0
- package/dist/types/report/report_target_type.js +10 -0
- package/dist/types/report/report_target_type.js.map +1 -0
- package/dist/types/report/report_type.d.ts +3 -0
- package/dist/types/report/report_type.d.ts.map +1 -0
- package/dist/types/report/report_type.js +12 -0
- package/dist/types/report/report_type.js.map +1 -0
- package/package.json +3 -14
- package/src/index.ts +0 -1
- package/src/types/ai/recipe.ts +10 -47
- package/src/types/ai/translation.ts +1 -18
- package/src/types/core/api.ts +4 -4
- package/src/types/core/asset.ts +2 -14
- package/src/types/core/entity.ts +7 -0
- package/src/types/core/index.ts +5 -1
- package/src/types/core/{enums/locale.ts → locale.ts} +0 -3
- package/src/types/core/{enums/measurement_system.ts → measurement_system.ts} +0 -3
- package/src/types/core/settings.ts +9 -43
- package/src/types/core/{enums/theme.ts → theme.ts} +0 -3
- package/src/types/core/timestamp.ts +4 -0
- package/src/types/iam/index.ts +6 -1
- package/src/types/iam/profile.ts +2 -24
- package/src/types/iam/{enums/profile_status.ts → profile_status.ts} +0 -3
- package/src/types/iam/subscription.ts +4 -28
- package/src/types/iam/{enums/subscription_role.ts → subscription_role.ts} +0 -3
- package/src/types/iam/{enums/subscription_status.ts → subscription_status.ts} +0 -3
- package/src/types/iam/subscription_tier.ts +2 -0
- package/src/types/iam/user.ts +3 -22
- package/src/types/iam/user_role.ts +15 -0
- package/src/types/iam/{enums/user_status.ts → user_status.ts} +0 -3
- package/src/types/moderation/index.ts +4 -1
- package/src/types/moderation/moderation.ts +5 -50
- package/src/types/moderation/{enums/moderation_status.ts → moderation_status.ts} +0 -3
- package/src/types/moderation/{enums/priority.ts → priority.ts} +0 -3
- package/src/types/moderation/{enums/severity.ts → severity.ts} +0 -3
- package/src/types/moderation/suggestion_category.ts +8 -0
- package/src/types/recipe/{enums/allergen.ts → allergen.ts} +0 -3
- package/src/types/recipe/{enums/cuisine.ts → cuisine.ts} +0 -3
- package/src/types/recipe/{enums/dietary_tag.ts → dietary_tag.ts} +0 -3
- package/src/types/recipe/{enums/difficulty.ts → difficulty.ts} +0 -3
- package/src/types/recipe/equipment.ts +0 -18
- package/src/types/recipe/filters.ts +5 -24
- package/src/types/recipe/index.ts +10 -1
- package/src/types/recipe/ingredient.ts +1 -37
- package/src/types/recipe/instruction.ts +2 -19
- package/src/types/recipe/{enums/meal_type.ts → meal_type.ts} +0 -3
- package/src/types/recipe/nutrition.ts +0 -18
- package/src/types/recipe/recipe.ts +18 -118
- package/src/types/recipe/{enums/recipe_source.ts → recipe_source.ts} +0 -3
- package/src/types/recipe/{enums/recipe_status.ts → recipe_status.ts} +0 -3
- package/src/types/recipe/{enums/spiciness.ts → spiciness.ts} +0 -3
- package/src/types/recipe/temperature.ts +1 -7
- package/src/types/recipe/{enums/temperature_unit.ts → temperature_unit.ts} +0 -3
- package/src/types/recipe/{enums/unit.ts → unit.ts} +0 -3
- package/src/types/report/index.ts +4 -1
- package/src/types/report/report.ts +5 -40
- package/src/types/report/{enums/report_priority.ts → report_priority.ts} +0 -3
- package/src/types/report/{enums/report_status.ts → report_status.ts} +0 -3
- package/src/types/report/{enums/report_target_type.ts → report_target_type.ts} +0 -3
- package/src/types/report/{enums/report_type.ts → report_type.ts} +0 -3
- package/src/lib/ai/cost.ts +0 -82
- package/src/lib/ai/embedding.ts +0 -49
- package/src/lib/ai/errors.ts +0 -43
- package/src/lib/ai/flow.ts +0 -134
- package/src/lib/ai/genkit.ts +0 -39
- package/src/lib/ai/image.ts +0 -27
- package/src/lib/ai/index.ts +0 -6
- package/src/lib/api.ts +0 -103
- package/src/lib/firebase.ts +0 -5
- package/src/lib/iam.ts +0 -37
- package/src/lib/index.ts +0 -7
- package/src/lib/storage.ts +0 -60
- package/src/lib/usage/index.ts +0 -1
- package/src/lib/usage/usage.service.ts +0 -192
- package/src/lib/utils/index.ts +0 -2
- package/src/lib/utils/sanitize.ts +0 -38
- package/src/lib/utils/slug.ts +0 -33
- package/src/types/core/enums/image_type.ts +0 -5
- package/src/types/core/enums/index.ts +0 -5
- package/src/types/core/enums/url_type.ts +0 -13
- package/src/types/iam/enums/index.ts +0 -6
- package/src/types/iam/enums/subscription_tier.ts +0 -4
- package/src/types/iam/enums/user_role.ts +0 -11
- package/src/types/moderation/enums/index.ts +0 -4
- package/src/types/moderation/enums/suggestion_category.ts +0 -11
- package/src/types/recipe/enums/index.ts +0 -10
- package/src/types/report/enums/index.ts +0 -4
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./config"), exports);
|
|
18
|
-
__exportStar(require("./lib"), exports);
|
|
19
18
|
__exportStar(require("./types"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type Allergen, type Cuisine, type DietaryTag, type Difficulty, type Equipment, type IngredientSection, type Instruction, type MealType, type Nutrition, type Spiciness } from "../recipe";
|
|
1
|
+
import { Allergen, Cuisine, DietaryTag, Difficulty, Equipment, IngredientSection, Instruction, MealType, Nutrition, Spiciness } from "../recipe";
|
|
3
2
|
export interface AIRecipe {
|
|
4
3
|
allergens: Allergen[];
|
|
5
4
|
confidence: number;
|
|
@@ -18,246 +17,4 @@ export interface AIRecipe {
|
|
|
18
17
|
tips?: string[];
|
|
19
18
|
title: string;
|
|
20
19
|
}
|
|
21
|
-
export declare const AIRecipeSchema: z.ZodObject<{
|
|
22
|
-
allergens: z.ZodArray<z.ZodEnum<["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"]>, "many">;
|
|
23
|
-
confidence: z.ZodNumber;
|
|
24
|
-
cuisine: z.ZodEnum<["african", "american", "brazilian", "british", "caribbean", "chinese", "egyptian", "emirati", "ethiopian", "filipino", "french", "fusion", "german", "greek", "indian", "indonesian", "italian", "japanese", "korean", "lebanese", "malaysian", "mexican", "moroccan", "pakistani", "persian", "russian", "saudi", "spanish", "sudanese", "thai", "turkish", "vietnamese", "other"]>;
|
|
25
|
-
description: z.ZodString;
|
|
26
|
-
dietaryTags: z.ZodArray<z.ZodEnum<["dairy_free", "egg_free", "gluten_free", "halal", "high_protein", "keto", "low_carb", "low_fat", "low_sodium", "low_sugar", "nut_free", "pescatarian", "soy_free", "vegan", "vegetarian"]>, "many">;
|
|
27
|
-
difficulty: z.ZodEnum<["beginner", "intermediate", "advanced", "expert"]>;
|
|
28
|
-
equipment: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29
|
-
name: z.ZodString;
|
|
30
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
31
|
-
slug: z.ZodString;
|
|
32
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
slug: string;
|
|
35
|
-
name: string;
|
|
36
|
-
required?: boolean | undefined;
|
|
37
|
-
notes?: string | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
slug: string;
|
|
40
|
-
name: string;
|
|
41
|
-
required?: boolean | undefined;
|
|
42
|
-
notes?: string | undefined;
|
|
43
|
-
}>, "many">>;
|
|
44
|
-
ingredientSections: z.ZodArray<z.ZodObject<{
|
|
45
|
-
ingredients: z.ZodArray<z.ZodObject<{
|
|
46
|
-
name: z.ZodString;
|
|
47
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
48
|
-
slug: z.ZodString;
|
|
49
|
-
quantity: z.ZodOptional<z.ZodNumber>;
|
|
50
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
unit: z.ZodOptional<z.ZodEnum<["ml", "l", "tsp", "tbsp", "fl_oz", "cup", "pint", "quart", "gallon", "mg", "g", "kg", "oz", "lb", "piece", "whole", "half", "quarter", "slice", "serving", "clove", "stalk", "sprig", "leaf", "bunch", "head", "fillet", "stick", "sheet", "can", "package", "bottle", "jar", "handful", "pinch", "dash", "drop"]>>;
|
|
52
|
-
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
slug: string;
|
|
54
|
-
name: string;
|
|
55
|
-
required?: boolean | undefined;
|
|
56
|
-
notes?: string | undefined;
|
|
57
|
-
quantity?: number | undefined;
|
|
58
|
-
unit?: "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" | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
slug: string;
|
|
61
|
-
name: string;
|
|
62
|
-
required?: boolean | undefined;
|
|
63
|
-
notes?: string | undefined;
|
|
64
|
-
quantity?: number | undefined;
|
|
65
|
-
unit?: "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" | undefined;
|
|
66
|
-
}>, "many">;
|
|
67
|
-
slug: z.ZodString;
|
|
68
|
-
title: z.ZodOptional<z.ZodString>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
slug: string;
|
|
71
|
-
ingredients: {
|
|
72
|
-
slug: string;
|
|
73
|
-
name: string;
|
|
74
|
-
required?: boolean | undefined;
|
|
75
|
-
notes?: string | undefined;
|
|
76
|
-
quantity?: number | undefined;
|
|
77
|
-
unit?: "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" | undefined;
|
|
78
|
-
}[];
|
|
79
|
-
title?: string | undefined;
|
|
80
|
-
}, {
|
|
81
|
-
slug: string;
|
|
82
|
-
ingredients: {
|
|
83
|
-
slug: string;
|
|
84
|
-
name: string;
|
|
85
|
-
required?: boolean | undefined;
|
|
86
|
-
notes?: string | undefined;
|
|
87
|
-
quantity?: number | undefined;
|
|
88
|
-
unit?: "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" | undefined;
|
|
89
|
-
}[];
|
|
90
|
-
title?: string | undefined;
|
|
91
|
-
}>, "many">;
|
|
92
|
-
instructions: z.ZodArray<z.ZodObject<{
|
|
93
|
-
step: z.ZodNumber;
|
|
94
|
-
text: z.ZodString;
|
|
95
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
temperature: z.ZodOptional<z.ZodObject<{
|
|
97
|
-
unit: z.ZodEnum<["celsius", "fahrenheit"]>;
|
|
98
|
-
value: z.ZodNumber;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
value: number;
|
|
101
|
-
unit: "celsius" | "fahrenheit";
|
|
102
|
-
}, {
|
|
103
|
-
value: number;
|
|
104
|
-
unit: "celsius" | "fahrenheit";
|
|
105
|
-
}>>;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
text: string;
|
|
108
|
-
step: number;
|
|
109
|
-
duration?: number | undefined;
|
|
110
|
-
temperature?: {
|
|
111
|
-
value: number;
|
|
112
|
-
unit: "celsius" | "fahrenheit";
|
|
113
|
-
} | undefined;
|
|
114
|
-
}, {
|
|
115
|
-
text: string;
|
|
116
|
-
step: number;
|
|
117
|
-
duration?: number | undefined;
|
|
118
|
-
temperature?: {
|
|
119
|
-
value: number;
|
|
120
|
-
unit: "celsius" | "fahrenheit";
|
|
121
|
-
} | undefined;
|
|
122
|
-
}>, "many">;
|
|
123
|
-
mealTypes: z.ZodArray<z.ZodEnum<["appetizer", "breakfast", "brunch", "dessert", "dinner", "drink", "lunch", "snack"]>, "many">;
|
|
124
|
-
nutrition: z.ZodOptional<z.ZodObject<{
|
|
125
|
-
calories: z.ZodNumber;
|
|
126
|
-
carbs: z.ZodOptional<z.ZodNumber>;
|
|
127
|
-
cholesterol: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
fat: z.ZodOptional<z.ZodNumber>;
|
|
129
|
-
fiber: z.ZodOptional<z.ZodNumber>;
|
|
130
|
-
protein: z.ZodOptional<z.ZodNumber>;
|
|
131
|
-
saturatedFat: z.ZodOptional<z.ZodNumber>;
|
|
132
|
-
sodium: z.ZodOptional<z.ZodNumber>;
|
|
133
|
-
sugar: z.ZodOptional<z.ZodNumber>;
|
|
134
|
-
}, "strip", z.ZodTypeAny, {
|
|
135
|
-
calories: number;
|
|
136
|
-
carbs?: number | undefined;
|
|
137
|
-
cholesterol?: number | undefined;
|
|
138
|
-
fat?: number | undefined;
|
|
139
|
-
fiber?: number | undefined;
|
|
140
|
-
protein?: number | undefined;
|
|
141
|
-
saturatedFat?: number | undefined;
|
|
142
|
-
sodium?: number | undefined;
|
|
143
|
-
sugar?: number | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
calories: number;
|
|
146
|
-
carbs?: number | undefined;
|
|
147
|
-
cholesterol?: number | undefined;
|
|
148
|
-
fat?: number | undefined;
|
|
149
|
-
fiber?: number | undefined;
|
|
150
|
-
protein?: number | undefined;
|
|
151
|
-
saturatedFat?: number | undefined;
|
|
152
|
-
sodium?: number | undefined;
|
|
153
|
-
sugar?: number | undefined;
|
|
154
|
-
}>>;
|
|
155
|
-
servings: z.ZodNumber;
|
|
156
|
-
spiciness: z.ZodEnum<["none", "mild", "medium", "hot"]>;
|
|
157
|
-
time: z.ZodNumber;
|
|
158
|
-
tips: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
159
|
-
title: z.ZodString;
|
|
160
|
-
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
dietaryTags: ("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")[];
|
|
162
|
-
difficulty: "beginner" | "intermediate" | "advanced" | "expert";
|
|
163
|
-
mealTypes: ("appetizer" | "breakfast" | "brunch" | "dessert" | "dinner" | "drink" | "lunch" | "snack")[];
|
|
164
|
-
spiciness: "none" | "mild" | "medium" | "hot";
|
|
165
|
-
title: string;
|
|
166
|
-
allergens: ("celery" | "dairy" | "eggs" | "fish" | "gluten" | "lupin" | "mustard" | "nuts" | "peanuts" | "sesame" | "shellfish" | "soy" | "sulfites")[];
|
|
167
|
-
confidence: number;
|
|
168
|
-
cuisine: "african" | "american" | "brazilian" | "british" | "caribbean" | "chinese" | "egyptian" | "emirati" | "ethiopian" | "filipino" | "french" | "fusion" | "german" | "greek" | "indian" | "indonesian" | "italian" | "japanese" | "korean" | "lebanese" | "malaysian" | "mexican" | "moroccan" | "pakistani" | "persian" | "russian" | "saudi" | "spanish" | "sudanese" | "thai" | "turkish" | "vietnamese" | "other";
|
|
169
|
-
ingredientSections: {
|
|
170
|
-
slug: string;
|
|
171
|
-
ingredients: {
|
|
172
|
-
slug: string;
|
|
173
|
-
name: string;
|
|
174
|
-
required?: boolean | undefined;
|
|
175
|
-
notes?: string | undefined;
|
|
176
|
-
quantity?: number | undefined;
|
|
177
|
-
unit?: "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" | undefined;
|
|
178
|
-
}[];
|
|
179
|
-
title?: string | undefined;
|
|
180
|
-
}[];
|
|
181
|
-
instructions: {
|
|
182
|
-
text: string;
|
|
183
|
-
step: number;
|
|
184
|
-
duration?: number | undefined;
|
|
185
|
-
temperature?: {
|
|
186
|
-
value: number;
|
|
187
|
-
unit: "celsius" | "fahrenheit";
|
|
188
|
-
} | undefined;
|
|
189
|
-
}[];
|
|
190
|
-
servings: number;
|
|
191
|
-
time: number;
|
|
192
|
-
description: string;
|
|
193
|
-
equipment?: {
|
|
194
|
-
slug: string;
|
|
195
|
-
name: string;
|
|
196
|
-
required?: boolean | undefined;
|
|
197
|
-
notes?: string | undefined;
|
|
198
|
-
}[] | undefined;
|
|
199
|
-
nutrition?: {
|
|
200
|
-
calories: number;
|
|
201
|
-
carbs?: number | undefined;
|
|
202
|
-
cholesterol?: number | undefined;
|
|
203
|
-
fat?: number | undefined;
|
|
204
|
-
fiber?: number | undefined;
|
|
205
|
-
protein?: number | undefined;
|
|
206
|
-
saturatedFat?: number | undefined;
|
|
207
|
-
sodium?: number | undefined;
|
|
208
|
-
sugar?: number | undefined;
|
|
209
|
-
} | undefined;
|
|
210
|
-
tips?: string[] | undefined;
|
|
211
|
-
}, {
|
|
212
|
-
dietaryTags: ("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")[];
|
|
213
|
-
difficulty: "beginner" | "intermediate" | "advanced" | "expert";
|
|
214
|
-
mealTypes: ("appetizer" | "breakfast" | "brunch" | "dessert" | "dinner" | "drink" | "lunch" | "snack")[];
|
|
215
|
-
spiciness: "none" | "mild" | "medium" | "hot";
|
|
216
|
-
title: string;
|
|
217
|
-
allergens: ("celery" | "dairy" | "eggs" | "fish" | "gluten" | "lupin" | "mustard" | "nuts" | "peanuts" | "sesame" | "shellfish" | "soy" | "sulfites")[];
|
|
218
|
-
confidence: number;
|
|
219
|
-
cuisine: "african" | "american" | "brazilian" | "british" | "caribbean" | "chinese" | "egyptian" | "emirati" | "ethiopian" | "filipino" | "french" | "fusion" | "german" | "greek" | "indian" | "indonesian" | "italian" | "japanese" | "korean" | "lebanese" | "malaysian" | "mexican" | "moroccan" | "pakistani" | "persian" | "russian" | "saudi" | "spanish" | "sudanese" | "thai" | "turkish" | "vietnamese" | "other";
|
|
220
|
-
ingredientSections: {
|
|
221
|
-
slug: string;
|
|
222
|
-
ingredients: {
|
|
223
|
-
slug: string;
|
|
224
|
-
name: string;
|
|
225
|
-
required?: boolean | undefined;
|
|
226
|
-
notes?: string | undefined;
|
|
227
|
-
quantity?: number | undefined;
|
|
228
|
-
unit?: "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" | undefined;
|
|
229
|
-
}[];
|
|
230
|
-
title?: string | undefined;
|
|
231
|
-
}[];
|
|
232
|
-
instructions: {
|
|
233
|
-
text: string;
|
|
234
|
-
step: number;
|
|
235
|
-
duration?: number | undefined;
|
|
236
|
-
temperature?: {
|
|
237
|
-
value: number;
|
|
238
|
-
unit: "celsius" | "fahrenheit";
|
|
239
|
-
} | undefined;
|
|
240
|
-
}[];
|
|
241
|
-
servings: number;
|
|
242
|
-
time: number;
|
|
243
|
-
description: string;
|
|
244
|
-
equipment?: {
|
|
245
|
-
slug: string;
|
|
246
|
-
name: string;
|
|
247
|
-
required?: boolean | undefined;
|
|
248
|
-
notes?: string | undefined;
|
|
249
|
-
}[] | undefined;
|
|
250
|
-
nutrition?: {
|
|
251
|
-
calories: number;
|
|
252
|
-
carbs?: number | undefined;
|
|
253
|
-
cholesterol?: number | undefined;
|
|
254
|
-
fat?: number | undefined;
|
|
255
|
-
fiber?: number | undefined;
|
|
256
|
-
protein?: number | undefined;
|
|
257
|
-
saturatedFat?: number | undefined;
|
|
258
|
-
sodium?: number | undefined;
|
|
259
|
-
sugar?: number | undefined;
|
|
260
|
-
} | undefined;
|
|
261
|
-
tips?: string[] | undefined;
|
|
262
|
-
}>;
|
|
263
20
|
//# sourceMappingURL=recipe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,SAAS,EACT,SAAS,EACV,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;IACxB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
package/dist/types/ai/recipe.js
CHANGED
|
@@ -1,31 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AIRecipeSchema = void 0;
|
|
4
|
-
const genkit_1 = require("genkit");
|
|
5
|
-
const recipe_1 = require("../recipe");
|
|
6
|
-
// Simplified schema for Gemini structured output
|
|
7
|
-
// Removed complex constraints that cause "too many states" errors:
|
|
8
|
-
// - Regex patterns on slugs (removed from nested schemas)
|
|
9
|
-
// - High array max limits (instructions max 50, equipment max 20, etc)
|
|
10
|
-
// - Numeric min/max bounds (confidence 0-1, servings 1-100, time 1-1440, etc)
|
|
11
|
-
// - String length constraints (description 10-2000, title 3-200, etc)
|
|
12
|
-
// These validations should be done in application logic if needed
|
|
13
|
-
exports.AIRecipeSchema = genkit_1.z.object({
|
|
14
|
-
allergens: genkit_1.z.array(recipe_1.AllergenSchema),
|
|
15
|
-
confidence: genkit_1.z.number(),
|
|
16
|
-
cuisine: recipe_1.CuisineSchema,
|
|
17
|
-
description: genkit_1.z.string(),
|
|
18
|
-
dietaryTags: genkit_1.z.array(recipe_1.DietaryTagSchema),
|
|
19
|
-
difficulty: recipe_1.DifficultySchema,
|
|
20
|
-
equipment: genkit_1.z.array(recipe_1.EquipmentSchema).optional(),
|
|
21
|
-
ingredientSections: genkit_1.z.array(recipe_1.IngredientSectionSchema),
|
|
22
|
-
instructions: genkit_1.z.array(recipe_1.InstructionSchema),
|
|
23
|
-
mealTypes: genkit_1.z.array(recipe_1.MealTypeSchema),
|
|
24
|
-
nutrition: recipe_1.NutritionSchema.optional(),
|
|
25
|
-
servings: genkit_1.z.number(),
|
|
26
|
-
spiciness: recipe_1.SpicinessSchema,
|
|
27
|
-
time: genkit_1.z.number(),
|
|
28
|
-
tips: genkit_1.z.array(genkit_1.z.string()).optional(),
|
|
29
|
-
title: genkit_1.z.string(),
|
|
30
|
-
});
|
|
31
3
|
//# sourceMappingURL=recipe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type EquipmentContent, type IngredientSectionContent, type InstructionContent } from "../recipe";
|
|
1
|
+
import { EquipmentContent, IngredientSectionContent, InstructionContent } from "../recipe";
|
|
3
2
|
export interface AIRecipeTranslation {
|
|
4
3
|
description: string;
|
|
5
4
|
equipment?: EquipmentContent[];
|
|
@@ -8,109 +7,4 @@ export interface AIRecipeTranslation {
|
|
|
8
7
|
tips?: string[];
|
|
9
8
|
title: string;
|
|
10
9
|
}
|
|
11
|
-
export declare const AIRecipeTranslationSchema: z.ZodObject<{
|
|
12
|
-
description: z.ZodString;
|
|
13
|
-
equipment: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
-
name: z.ZodString;
|
|
15
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
16
|
-
slug: z.ZodString;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
slug: string;
|
|
19
|
-
name: string;
|
|
20
|
-
notes?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
slug: string;
|
|
23
|
-
name: string;
|
|
24
|
-
notes?: string | undefined;
|
|
25
|
-
}>, "many">>;
|
|
26
|
-
ingredientSections: z.ZodArray<z.ZodObject<{
|
|
27
|
-
ingredients: z.ZodArray<z.ZodObject<{
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
30
|
-
slug: z.ZodString;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
slug: string;
|
|
33
|
-
name: string;
|
|
34
|
-
notes?: string | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
slug: string;
|
|
37
|
-
name: string;
|
|
38
|
-
notes?: string | undefined;
|
|
39
|
-
}>, "many">;
|
|
40
|
-
slug: z.ZodString;
|
|
41
|
-
title: z.ZodOptional<z.ZodString>;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
slug: string;
|
|
44
|
-
ingredients: {
|
|
45
|
-
slug: string;
|
|
46
|
-
name: string;
|
|
47
|
-
notes?: string | undefined;
|
|
48
|
-
}[];
|
|
49
|
-
title?: string | undefined;
|
|
50
|
-
}, {
|
|
51
|
-
slug: string;
|
|
52
|
-
ingredients: {
|
|
53
|
-
slug: string;
|
|
54
|
-
name: string;
|
|
55
|
-
notes?: string | undefined;
|
|
56
|
-
}[];
|
|
57
|
-
title?: string | undefined;
|
|
58
|
-
}>, "many">;
|
|
59
|
-
instructions: z.ZodArray<z.ZodObject<{
|
|
60
|
-
step: z.ZodNumber;
|
|
61
|
-
text: z.ZodString;
|
|
62
|
-
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
text: string;
|
|
64
|
-
step: number;
|
|
65
|
-
}, {
|
|
66
|
-
text: string;
|
|
67
|
-
step: number;
|
|
68
|
-
}>, "many">;
|
|
69
|
-
tips: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
70
|
-
title: z.ZodString;
|
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
title: string;
|
|
73
|
-
ingredientSections: {
|
|
74
|
-
slug: string;
|
|
75
|
-
ingredients: {
|
|
76
|
-
slug: string;
|
|
77
|
-
name: string;
|
|
78
|
-
notes?: string | undefined;
|
|
79
|
-
}[];
|
|
80
|
-
title?: string | undefined;
|
|
81
|
-
}[];
|
|
82
|
-
instructions: {
|
|
83
|
-
text: string;
|
|
84
|
-
step: number;
|
|
85
|
-
}[];
|
|
86
|
-
description: string;
|
|
87
|
-
equipment?: {
|
|
88
|
-
slug: string;
|
|
89
|
-
name: string;
|
|
90
|
-
notes?: string | undefined;
|
|
91
|
-
}[] | undefined;
|
|
92
|
-
tips?: string[] | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
title: string;
|
|
95
|
-
ingredientSections: {
|
|
96
|
-
slug: string;
|
|
97
|
-
ingredients: {
|
|
98
|
-
slug: string;
|
|
99
|
-
name: string;
|
|
100
|
-
notes?: string | undefined;
|
|
101
|
-
}[];
|
|
102
|
-
title?: string | undefined;
|
|
103
|
-
}[];
|
|
104
|
-
instructions: {
|
|
105
|
-
text: string;
|
|
106
|
-
step: number;
|
|
107
|
-
}[];
|
|
108
|
-
description: string;
|
|
109
|
-
equipment?: {
|
|
110
|
-
slug: string;
|
|
111
|
-
name: string;
|
|
112
|
-
notes?: string | undefined;
|
|
113
|
-
}[] | undefined;
|
|
114
|
-
tips?: string[] | undefined;
|
|
115
|
-
}>;
|
|
116
10
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE3F,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,kBAAkB,EAAE,wBAAwB,EAAE,CAAC;IAC/C,YAAY,EAAE,kBAAkB,EAAE,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AIRecipeTranslationSchema = void 0;
|
|
4
|
-
const genkit_1 = require("genkit");
|
|
5
|
-
const recipe_1 = require("../recipe");
|
|
6
|
-
exports.AIRecipeTranslationSchema = genkit_1.z.object({
|
|
7
|
-
description: genkit_1.z.string().min(10).max(2000),
|
|
8
|
-
equipment: genkit_1.z.array(recipe_1.EquipmentContentSchema).optional(),
|
|
9
|
-
ingredientSections: genkit_1.z.array(recipe_1.IngredientSectionContentSchema).min(1),
|
|
10
|
-
instructions: genkit_1.z.array(recipe_1.InstructionContentSchema).min(1),
|
|
11
|
-
tips: genkit_1.z.array(genkit_1.z.string().max(500)).optional(),
|
|
12
|
-
title: genkit_1.z.string().min(3).max(200),
|
|
13
|
-
});
|
|
14
3
|
//# sourceMappingURL=translation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":""}
|
package/dist/types/core/api.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface ApiSuccessResponse<T> {
|
|
2
2
|
success: true;
|
|
3
3
|
data: T;
|
|
4
|
-
}
|
|
5
|
-
export
|
|
4
|
+
}
|
|
5
|
+
export interface ApiErrorResponse {
|
|
6
6
|
success: false;
|
|
7
7
|
error: {
|
|
8
8
|
code: string;
|
|
9
9
|
message: string;
|
|
10
10
|
details?: unknown;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
export type ApiResponse<T> = ApiSuccessResponse<T> | ApiErrorResponse;
|
|
14
14
|
export declare function success<T>(data: T): ApiSuccessResponse<T>;
|
|
15
15
|
export declare function failure(code: string, message: string, details?: unknown): ApiErrorResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/types/core/api.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/types/core/api.ts"],"names":[],"mappings":"AAAA,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,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,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,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,gBAAgB,CAKlB"}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface Asset {
|
|
4
|
-
createdAt: Timestamp;
|
|
5
|
-
id: string;
|
|
1
|
+
import { Entity } from "./entity";
|
|
2
|
+
export interface Asset extends Entity {
|
|
6
3
|
imageUrl?: string;
|
|
7
|
-
updatedAt: Timestamp;
|
|
8
4
|
}
|
|
9
|
-
export declare const AssetSchema: z.ZodObject<{
|
|
10
|
-
createdAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
13
|
-
updatedAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
id: string;
|
|
16
|
-
createdAt?: any;
|
|
17
|
-
imageUrl?: string | undefined;
|
|
18
|
-
updatedAt?: any;
|
|
19
|
-
}, {
|
|
20
|
-
id: string;
|
|
21
|
-
createdAt?: any;
|
|
22
|
-
imageUrl?: string | undefined;
|
|
23
|
-
updatedAt?: any;
|
|
24
|
-
}>;
|
|
25
5
|
//# sourceMappingURL=asset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,KAAM,SAAQ,MAAM;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/types/core/asset.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AssetSchema = void 0;
|
|
4
|
-
const genkit_1 = require("genkit");
|
|
5
|
-
const config_1 = require("../../config");
|
|
6
|
-
exports.AssetSchema = genkit_1.z.object({
|
|
7
|
-
createdAt: genkit_1.z.custom(),
|
|
8
|
-
id: genkit_1.z.string().regex(config_1.SLUG_REGEX),
|
|
9
|
-
imageUrl: genkit_1.z.string().optional(),
|
|
10
|
-
updatedAt: genkit_1.z.custom(),
|
|
11
|
-
});
|
|
12
3
|
//# sourceMappingURL=asset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.js","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"asset.js","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/types/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;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/types/core/entity.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from "./api";
|
|
2
2
|
export * from "./asset";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./entity";
|
|
4
4
|
export * from "./errors";
|
|
5
|
+
export * from "./locale";
|
|
6
|
+
export * from "./measurement_system";
|
|
5
7
|
export * from "./settings";
|
|
8
|
+
export * from "./theme";
|
|
9
|
+
export * from "./timestamp";
|
|
6
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
package/dist/types/core/index.js
CHANGED
|
@@ -16,7 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./api"), exports);
|
|
18
18
|
__exportStar(require("./asset"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./entity"), exports);
|
|
20
20
|
__exportStar(require("./errors"), exports);
|
|
21
|
+
__exportStar(require("./locale"), exports);
|
|
22
|
+
__exportStar(require("./measurement_system"), exports);
|
|
21
23
|
__exportStar(require("./settings"), exports);
|
|
24
|
+
__exportStar(require("./theme"), exports);
|
|
25
|
+
__exportStar(require("./timestamp"), exports);
|
|
22
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,uDAAqC;AACrC,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/types/core/locale.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,yCAA0C,CAAC;AACrE,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../../src/types/core/locale.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC"}
|