@cravery/core 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ai/flow.d.ts +1 -1
- package/dist/lib/ai/flow.d.ts.map +1 -1
- package/dist/lib/ai/flow.js +11 -11
- package/dist/lib/ai/flow.js.map +1 -1
- package/dist/lib/api.d.ts +1 -1
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/api.js +2 -2
- package/dist/lib/api.js.map +1 -1
- package/dist/lib/utils/sanitize.d.ts +1 -1
- package/dist/lib/utils/sanitize.d.ts.map +1 -1
- package/dist/types/ai/recipe.d.ts +2 -3
- package/dist/types/ai/recipe.d.ts.map +1 -1
- package/dist/types/ai/recipe.js +14 -14
- package/dist/types/ai/recipe.js.map +1 -1
- package/dist/types/ai/translation.d.ts +2 -3
- package/dist/types/ai/translation.d.ts.map +1 -1
- package/dist/types/ai/translation.js +8 -8
- package/dist/types/ai/translation.js.map +1 -1
- package/dist/types/core/asset.d.ts +2 -3
- package/dist/types/core/asset.d.ts.map +1 -1
- package/dist/types/core/asset.js +6 -6
- package/dist/types/core/asset.js.map +1 -1
- package/dist/types/core/enums/image_type.d.ts +1 -1
- package/dist/types/core/enums/image_type.d.ts.map +1 -1
- package/dist/types/core/enums/image_type.js +2 -2
- package/dist/types/core/enums/image_type.js.map +1 -1
- package/dist/types/core/enums/locale.d.ts +1 -1
- package/dist/types/core/enums/locale.d.ts.map +1 -1
- package/dist/types/core/enums/locale.js +2 -2
- package/dist/types/core/enums/locale.js.map +1 -1
- package/dist/types/core/enums/measurement_system.d.ts +1 -1
- package/dist/types/core/enums/measurement_system.d.ts.map +1 -1
- package/dist/types/core/enums/measurement_system.js +2 -2
- package/dist/types/core/enums/measurement_system.js.map +1 -1
- package/dist/types/core/enums/theme.d.ts +1 -1
- package/dist/types/core/enums/theme.d.ts.map +1 -1
- package/dist/types/core/enums/theme.js +2 -2
- package/dist/types/core/enums/theme.js.map +1 -1
- package/dist/types/core/enums/url_type.d.ts +1 -1
- package/dist/types/core/enums/url_type.d.ts.map +1 -1
- package/dist/types/core/enums/url_type.js +2 -2
- package/dist/types/core/enums/url_type.js.map +1 -1
- package/dist/types/core/settings.d.ts +3 -5
- package/dist/types/core/settings.d.ts.map +1 -1
- package/dist/types/core/settings.js +14 -14
- package/dist/types/core/settings.js.map +1 -1
- package/dist/types/iam/enums/profile_status.d.ts +1 -1
- package/dist/types/iam/enums/profile_status.d.ts.map +1 -1
- package/dist/types/iam/enums/profile_status.js +2 -2
- package/dist/types/iam/enums/profile_status.js.map +1 -1
- package/dist/types/iam/enums/subscription_role.d.ts +1 -1
- package/dist/types/iam/enums/subscription_role.d.ts.map +1 -1
- package/dist/types/iam/enums/subscription_role.js +2 -2
- package/dist/types/iam/enums/subscription_role.js.map +1 -1
- package/dist/types/iam/enums/subscription_status.d.ts +1 -1
- package/dist/types/iam/enums/subscription_status.d.ts.map +1 -1
- package/dist/types/iam/enums/subscription_status.js +2 -2
- package/dist/types/iam/enums/subscription_status.js.map +1 -1
- package/dist/types/iam/enums/subscription_tier.d.ts +1 -1
- package/dist/types/iam/enums/subscription_tier.d.ts.map +1 -1
- package/dist/types/iam/enums/subscription_tier.js +2 -2
- package/dist/types/iam/enums/subscription_tier.js.map +1 -1
- package/dist/types/iam/enums/user_role.d.ts +1 -1
- package/dist/types/iam/enums/user_role.d.ts.map +1 -1
- package/dist/types/iam/enums/user_role.js +2 -2
- package/dist/types/iam/enums/user_role.js.map +1 -1
- package/dist/types/iam/enums/user_status.d.ts +1 -1
- package/dist/types/iam/enums/user_status.d.ts.map +1 -1
- package/dist/types/iam/enums/user_status.js +2 -2
- package/dist/types/iam/enums/user_status.js.map +1 -1
- package/dist/types/iam/profile.d.ts +3 -5
- package/dist/types/iam/profile.d.ts.map +1 -1
- package/dist/types/iam/profile.js +17 -17
- package/dist/types/iam/profile.js.map +1 -1
- package/dist/types/iam/subscription.d.ts +3 -5
- package/dist/types/iam/subscription.d.ts.map +1 -1
- package/dist/types/iam/subscription.js +11 -11
- package/dist/types/iam/subscription.js.map +1 -1
- package/dist/types/iam/user.d.ts +2 -3
- package/dist/types/iam/user.d.ts.map +1 -1
- package/dist/types/iam/user.js +10 -10
- package/dist/types/iam/user.js.map +1 -1
- package/dist/types/moderation/enums/moderation_status.d.ts +1 -1
- package/dist/types/moderation/enums/moderation_status.d.ts.map +1 -1
- package/dist/types/moderation/enums/moderation_status.js +2 -2
- package/dist/types/moderation/enums/moderation_status.js.map +1 -1
- package/dist/types/moderation/enums/priority.d.ts +1 -1
- package/dist/types/moderation/enums/priority.d.ts.map +1 -1
- package/dist/types/moderation/enums/priority.js +2 -2
- package/dist/types/moderation/enums/priority.js.map +1 -1
- package/dist/types/moderation/enums/severity.d.ts +1 -1
- package/dist/types/moderation/enums/severity.d.ts.map +1 -1
- package/dist/types/moderation/enums/severity.js +2 -2
- package/dist/types/moderation/enums/severity.js.map +1 -1
- package/dist/types/moderation/enums/suggestion_category.d.ts +1 -1
- package/dist/types/moderation/enums/suggestion_category.d.ts.map +1 -1
- package/dist/types/moderation/enums/suggestion_category.js +2 -2
- package/dist/types/moderation/enums/suggestion_category.js.map +1 -1
- package/dist/types/moderation/moderation.d.ts +5 -9
- package/dist/types/moderation/moderation.d.ts.map +1 -1
- package/dist/types/moderation/moderation.js +25 -25
- package/dist/types/moderation/moderation.js.map +1 -1
- package/dist/types/recipe/enums/allergen.d.ts +1 -1
- package/dist/types/recipe/enums/allergen.d.ts.map +1 -1
- package/dist/types/recipe/enums/allergen.js +2 -2
- package/dist/types/recipe/enums/allergen.js.map +1 -1
- package/dist/types/recipe/enums/cuisine.d.ts +1 -1
- package/dist/types/recipe/enums/cuisine.d.ts.map +1 -1
- package/dist/types/recipe/enums/cuisine.js +2 -2
- package/dist/types/recipe/enums/cuisine.js.map +1 -1
- package/dist/types/recipe/enums/dietary_tag.d.ts +1 -1
- package/dist/types/recipe/enums/dietary_tag.d.ts.map +1 -1
- package/dist/types/recipe/enums/dietary_tag.js +2 -2
- package/dist/types/recipe/enums/dietary_tag.js.map +1 -1
- package/dist/types/recipe/enums/difficulty.d.ts +1 -1
- package/dist/types/recipe/enums/difficulty.d.ts.map +1 -1
- package/dist/types/recipe/enums/difficulty.js +2 -2
- package/dist/types/recipe/enums/difficulty.js.map +1 -1
- package/dist/types/recipe/enums/meal_type.d.ts +1 -1
- package/dist/types/recipe/enums/meal_type.d.ts.map +1 -1
- package/dist/types/recipe/enums/meal_type.js +2 -2
- package/dist/types/recipe/enums/meal_type.js.map +1 -1
- package/dist/types/recipe/enums/recipe_source.d.ts +1 -1
- package/dist/types/recipe/enums/recipe_source.d.ts.map +1 -1
- package/dist/types/recipe/enums/recipe_source.js +2 -2
- package/dist/types/recipe/enums/recipe_source.js.map +1 -1
- package/dist/types/recipe/enums/recipe_status.d.ts +1 -1
- package/dist/types/recipe/enums/recipe_status.d.ts.map +1 -1
- package/dist/types/recipe/enums/recipe_status.js +2 -2
- package/dist/types/recipe/enums/recipe_status.js.map +1 -1
- package/dist/types/recipe/enums/spiciness.d.ts +1 -1
- package/dist/types/recipe/enums/spiciness.d.ts.map +1 -1
- package/dist/types/recipe/enums/spiciness.js +2 -2
- package/dist/types/recipe/enums/spiciness.js.map +1 -1
- package/dist/types/recipe/enums/temperature_unit.d.ts +1 -1
- package/dist/types/recipe/enums/temperature_unit.d.ts.map +1 -1
- package/dist/types/recipe/enums/temperature_unit.js +2 -2
- package/dist/types/recipe/enums/temperature_unit.js.map +1 -1
- package/dist/types/recipe/enums/unit.d.ts +1 -1
- package/dist/types/recipe/enums/unit.d.ts.map +1 -1
- package/dist/types/recipe/enums/unit.js +2 -2
- package/dist/types/recipe/enums/unit.js.map +1 -1
- package/dist/types/recipe/equipment.d.ts +4 -7
- package/dist/types/recipe/equipment.d.ts.map +1 -1
- package/dist/types/recipe/equipment.js +9 -9
- package/dist/types/recipe/equipment.js.map +1 -1
- package/dist/types/recipe/filters.d.ts +2 -3
- package/dist/types/recipe/filters.d.ts.map +1 -1
- package/dist/types/recipe/filters.js +8 -8
- package/dist/types/recipe/filters.js.map +1 -1
- package/dist/types/recipe/ingredient.d.ts +6 -11
- package/dist/types/recipe/ingredient.d.ts.map +1 -1
- package/dist/types/recipe/ingredient.js +21 -21
- package/dist/types/recipe/ingredient.js.map +1 -1
- package/dist/types/recipe/instruction.d.ts +4 -7
- package/dist/types/recipe/instruction.d.ts.map +1 -1
- package/dist/types/recipe/instruction.js +8 -8
- package/dist/types/recipe/instruction.js.map +1 -1
- package/dist/types/recipe/nutrition.d.ts +2 -3
- package/dist/types/recipe/nutrition.d.ts.map +1 -1
- package/dist/types/recipe/nutrition.js +11 -11
- package/dist/types/recipe/nutrition.js.map +1 -1
- package/dist/types/recipe/recipe.d.ts +5 -9
- package/dist/types/recipe/recipe.d.ts.map +1 -1
- package/dist/types/recipe/recipe.js +53 -53
- package/dist/types/recipe/recipe.js.map +1 -1
- package/dist/types/recipe/temperature.d.ts +2 -3
- package/dist/types/recipe/temperature.d.ts.map +1 -1
- package/dist/types/recipe/temperature.js +3 -3
- package/dist/types/recipe/temperature.js.map +1 -1
- package/dist/types/report/enums/report_priority.d.ts +1 -1
- package/dist/types/report/enums/report_priority.d.ts.map +1 -1
- package/dist/types/report/enums/report_priority.js +2 -2
- package/dist/types/report/enums/report_priority.js.map +1 -1
- package/dist/types/report/enums/report_status.d.ts +1 -1
- package/dist/types/report/enums/report_status.d.ts.map +1 -1
- package/dist/types/report/enums/report_status.js +2 -2
- package/dist/types/report/enums/report_status.js.map +1 -1
- package/dist/types/report/enums/report_target_type.d.ts +1 -1
- package/dist/types/report/enums/report_target_type.d.ts.map +1 -1
- package/dist/types/report/enums/report_target_type.js +2 -2
- package/dist/types/report/enums/report_target_type.js.map +1 -1
- package/dist/types/report/enums/report_type.d.ts +1 -1
- package/dist/types/report/enums/report_type.d.ts.map +1 -1
- package/dist/types/report/enums/report_type.js +2 -2
- package/dist/types/report/enums/report_type.js.map +1 -1
- package/dist/types/report/report.d.ts +3 -5
- package/dist/types/report/report.d.ts.map +1 -1
- package/dist/types/report/report.js +20 -20
- package/dist/types/report/report.js.map +1 -1
- package/package.json +56 -57
- package/src/lib/ai/flow.ts +89 -89
- package/src/lib/api.ts +103 -103
- package/src/lib/utils/sanitize.ts +38 -38
- package/src/types/ai/recipe.ts +34 -34
- package/src/types/ai/translation.ts +16 -16
- package/src/types/core/asset.ts +11 -11
- package/src/types/core/enums/image_type.ts +5 -5
- package/src/types/core/enums/locale.ts +5 -5
- package/src/types/core/enums/measurement_system.ts +5 -5
- package/src/types/core/enums/theme.ts +5 -5
- package/src/types/core/enums/url_type.ts +13 -13
- package/src/types/core/settings.ts +35 -35
- package/src/types/iam/enums/profile_status.ts +10 -10
- package/src/types/iam/enums/subscription_role.ts +5 -5
- package/src/types/iam/enums/subscription_status.ts +10 -10
- package/src/types/iam/enums/subscription_tier.ts +4 -4
- package/src/types/iam/enums/user_role.ts +11 -11
- package/src/types/iam/enums/user_status.ts +10 -10
- package/src/types/iam/profile.ts +26 -26
- package/src/types/iam/subscription.ts +27 -27
- package/src/types/iam/user.ts +17 -17
- package/src/types/moderation/enums/moderation_status.ts +9 -9
- package/src/types/moderation/enums/priority.ts +5 -5
- package/src/types/moderation/enums/severity.ts +5 -5
- package/src/types/moderation/enums/suggestion_category.ts +11 -11
- package/src/types/moderation/moderation.ts +50 -50
- package/src/types/recipe/enums/allergen.ts +19 -19
- package/src/types/recipe/enums/cuisine.ts +39 -39
- package/src/types/recipe/enums/dietary_tag.ts +21 -21
- package/src/types/recipe/enums/difficulty.ts +10 -10
- package/src/types/recipe/enums/meal_type.ts +14 -14
- package/src/types/recipe/enums/recipe_source.ts +5 -5
- package/src/types/recipe/enums/recipe_status.ts +12 -12
- package/src/types/recipe/enums/spiciness.ts +5 -5
- package/src/types/recipe/enums/temperature_unit.ts +5 -5
- package/src/types/recipe/enums/unit.ts +51 -51
- package/src/types/recipe/equipment.ts +21 -21
- package/src/types/recipe/filters.ts +20 -20
- package/src/types/recipe/ingredient.ts +46 -46
- package/src/types/recipe/instruction.ts +21 -21
- package/src/types/recipe/nutrition.ts +18 -18
- package/src/types/recipe/recipe.ts +109 -109
- package/src/types/recipe/temperature.ts +8 -8
- package/src/types/report/enums/report_priority.ts +10 -10
- package/src/types/report/enums/report_status.ts +10 -10
- package/src/types/report/enums/report_target_type.ts +10 -10
- package/src/types/report/enums/report_type.ts +12 -12
- package/src/types/report/report.ts +38 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "genkit";
|
|
2
2
|
export declare const IngredientMetaSchema: z.ZodObject<{
|
|
3
3
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
4
4
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -15,8 +15,7 @@ export declare const IngredientMetaSchema: z.ZodObject<{
|
|
|
15
15
|
quantity?: number | undefined;
|
|
16
16
|
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;
|
|
17
17
|
}>;
|
|
18
|
-
export
|
|
19
|
-
}
|
|
18
|
+
export type IngredientMeta = z.infer<typeof IngredientMetaSchema>;
|
|
20
19
|
export declare const IngredientContentSchema: z.ZodObject<{
|
|
21
20
|
name: z.ZodString;
|
|
22
21
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -30,8 +29,7 @@ export declare const IngredientContentSchema: z.ZodObject<{
|
|
|
30
29
|
name: string;
|
|
31
30
|
notes?: string | undefined;
|
|
32
31
|
}>;
|
|
33
|
-
export
|
|
34
|
-
}
|
|
32
|
+
export type IngredientContent = z.infer<typeof IngredientContentSchema>;
|
|
35
33
|
export declare const IngredientSchema: z.ZodObject<{
|
|
36
34
|
name: z.ZodString;
|
|
37
35
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -54,8 +52,7 @@ export declare const IngredientSchema: z.ZodObject<{
|
|
|
54
52
|
quantity?: number | undefined;
|
|
55
53
|
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;
|
|
56
54
|
}>;
|
|
57
|
-
export
|
|
58
|
-
}
|
|
55
|
+
export type Ingredient = z.infer<typeof IngredientSchema>;
|
|
59
56
|
export declare const IngredientSectionMetaSchema: z.ZodObject<{
|
|
60
57
|
ingredients: z.ZodArray<z.ZodObject<{
|
|
61
58
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -91,8 +88,7 @@ export declare const IngredientSectionMetaSchema: z.ZodObject<{
|
|
|
91
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;
|
|
92
89
|
}[];
|
|
93
90
|
}>;
|
|
94
|
-
export
|
|
95
|
-
}
|
|
91
|
+
export type IngredientSectionMeta = z.infer<typeof IngredientSectionMetaSchema>;
|
|
96
92
|
export declare const IngredientSectionContentSchema: z.ZodObject<{
|
|
97
93
|
ingredients: z.ZodArray<z.ZodObject<{
|
|
98
94
|
name: z.ZodString;
|
|
@@ -175,6 +171,5 @@ export declare const IngredientSectionSchema: z.ZodObject<{
|
|
|
175
171
|
}[];
|
|
176
172
|
title?: string | undefined;
|
|
177
173
|
}>;
|
|
178
|
-
export
|
|
179
|
-
}
|
|
174
|
+
export type IngredientSection = z.infer<typeof IngredientSectionSchema>;
|
|
180
175
|
//# sourceMappingURL=ingredient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAG3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IngredientSectionSchema = exports.IngredientSectionContentSchema = exports.IngredientSectionMetaSchema = exports.IngredientSchema = exports.IngredientContentSchema = exports.IngredientMetaSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const genkit_1 = require("genkit");
|
|
5
5
|
const config_1 = require("../../config");
|
|
6
6
|
const enums_1 = require("./enums");
|
|
7
|
-
exports.IngredientMetaSchema =
|
|
8
|
-
quantity:
|
|
9
|
-
required:
|
|
10
|
-
slug:
|
|
7
|
+
exports.IngredientMetaSchema = genkit_1.z.object({
|
|
8
|
+
quantity: genkit_1.z.number().positive().optional(),
|
|
9
|
+
required: genkit_1.z.boolean().optional(),
|
|
10
|
+
slug: genkit_1.z.string().regex(config_1.SLUG_REGEX),
|
|
11
11
|
unit: enums_1.UnitSchema.optional(),
|
|
12
12
|
});
|
|
13
|
-
exports.IngredientContentSchema =
|
|
14
|
-
name:
|
|
15
|
-
notes:
|
|
16
|
-
slug:
|
|
13
|
+
exports.IngredientContentSchema = genkit_1.z.object({
|
|
14
|
+
name: genkit_1.z.string().min(1).max(100),
|
|
15
|
+
notes: genkit_1.z.string().max(200).optional(),
|
|
16
|
+
slug: genkit_1.z.string().regex(config_1.SLUG_REGEX),
|
|
17
17
|
});
|
|
18
|
-
exports.IngredientSchema =
|
|
19
|
-
exports.IngredientSectionMetaSchema =
|
|
20
|
-
ingredients:
|
|
21
|
-
slug:
|
|
18
|
+
exports.IngredientSchema = genkit_1.z.object(Object.assign(Object.assign({}, exports.IngredientMetaSchema.shape), exports.IngredientContentSchema.shape));
|
|
19
|
+
exports.IngredientSectionMetaSchema = genkit_1.z.object({
|
|
20
|
+
ingredients: genkit_1.z.array(exports.IngredientMetaSchema).min(1),
|
|
21
|
+
slug: genkit_1.z.string().regex(config_1.SLUG_REGEX),
|
|
22
22
|
});
|
|
23
|
-
exports.IngredientSectionContentSchema =
|
|
24
|
-
ingredients:
|
|
25
|
-
slug:
|
|
26
|
-
title:
|
|
23
|
+
exports.IngredientSectionContentSchema = genkit_1.z.object({
|
|
24
|
+
ingredients: genkit_1.z.array(exports.IngredientContentSchema).min(1),
|
|
25
|
+
slug: genkit_1.z.string().regex(config_1.SLUG_REGEX),
|
|
26
|
+
title: genkit_1.z.string().max(100).optional(),
|
|
27
27
|
});
|
|
28
|
-
exports.IngredientSectionSchema =
|
|
29
|
-
ingredients:
|
|
30
|
-
slug:
|
|
31
|
-
title:
|
|
28
|
+
exports.IngredientSectionSchema = genkit_1.z.object({
|
|
29
|
+
ingredients: genkit_1.z.array(exports.IngredientSchema).min(1),
|
|
30
|
+
slug: genkit_1.z.string().regex(config_1.SLUG_REGEX),
|
|
31
|
+
title: genkit_1.z.string().max(100).optional(),
|
|
32
32
|
});
|
|
33
33
|
//# sourceMappingURL=ingredient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,yCAA0C;AAC1C,mCAAqC;AAExB,QAAA,oBAAoB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,UAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAA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E,UAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "genkit";
|
|
2
2
|
export declare const InstructionMetaSchema: z.ZodObject<{
|
|
3
3
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
4
4
|
step: z.ZodNumber;
|
|
@@ -27,8 +27,7 @@ export declare const InstructionMetaSchema: z.ZodObject<{
|
|
|
27
27
|
unit: "celsius" | "fahrenheit";
|
|
28
28
|
} | undefined;
|
|
29
29
|
}>;
|
|
30
|
-
export
|
|
31
|
-
}
|
|
30
|
+
export type InstructionMeta = z.infer<typeof InstructionMetaSchema>;
|
|
32
31
|
export declare const InstructionContentSchema: z.ZodObject<{
|
|
33
32
|
step: z.ZodNumber;
|
|
34
33
|
text: z.ZodString;
|
|
@@ -39,8 +38,7 @@ export declare const InstructionContentSchema: z.ZodObject<{
|
|
|
39
38
|
text: string;
|
|
40
39
|
step: number;
|
|
41
40
|
}>;
|
|
42
|
-
export
|
|
43
|
-
}
|
|
41
|
+
export type InstructionContent = z.infer<typeof InstructionContentSchema>;
|
|
44
42
|
export declare const InstructionSchema: z.ZodObject<{
|
|
45
43
|
step: z.ZodNumber;
|
|
46
44
|
text: z.ZodString;
|
|
@@ -72,6 +70,5 @@ export declare const InstructionSchema: z.ZodObject<{
|
|
|
72
70
|
unit: "celsius" | "fahrenheit";
|
|
73
71
|
} | undefined;
|
|
74
72
|
}>;
|
|
75
|
-
export
|
|
76
|
-
}
|
|
73
|
+
export type Instruction = z.infer<typeof InstructionSchema>;
|
|
77
74
|
//# sourceMappingURL=instruction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InstructionSchema = exports.InstructionContentSchema = exports.InstructionMetaSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const genkit_1 = require("genkit");
|
|
5
5
|
const temperature_1 = require("./temperature");
|
|
6
|
-
exports.InstructionMetaSchema =
|
|
7
|
-
duration:
|
|
8
|
-
step:
|
|
6
|
+
exports.InstructionMetaSchema = genkit_1.z.object({
|
|
7
|
+
duration: genkit_1.z.number().int().positive().optional(),
|
|
8
|
+
step: genkit_1.z.number().int().positive(),
|
|
9
9
|
temperature: temperature_1.TemperatureSchema.optional(),
|
|
10
10
|
});
|
|
11
|
-
exports.InstructionContentSchema =
|
|
12
|
-
step:
|
|
13
|
-
text:
|
|
11
|
+
exports.InstructionContentSchema = genkit_1.z.object({
|
|
12
|
+
step: genkit_1.z.number().int().positive(),
|
|
13
|
+
text: genkit_1.z.string().min(1).max(1000),
|
|
14
14
|
});
|
|
15
|
-
exports.InstructionSchema =
|
|
15
|
+
exports.InstructionSchema = genkit_1.z.object(Object.assign(Object.assign({}, exports.InstructionMetaSchema.shape), exports.InstructionContentSchema.shape));
|
|
16
16
|
//# sourceMappingURL=instruction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction.js","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"instruction.js","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,+CAAkD;AAErC,QAAA,qBAAqB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,+BAAiB,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAGU,QAAA,wBAAwB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CAClC,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,UAAC,CAAC,MAAM,iCACpC,6BAAqB,CAAC,KAAK,GAC3B,gCAAwB,CAAC,KAAK,EACjC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "genkit";
|
|
2
2
|
/**
|
|
3
3
|
* Nutrition data per serving.
|
|
4
4
|
* Units: calories (kcal), fat/carbs/protein/fiber/sugar (g), cholesterol/sodium (mg)
|
|
@@ -34,6 +34,5 @@ export declare const NutritionSchema: z.ZodObject<{
|
|
|
34
34
|
sodium?: number | undefined;
|
|
35
35
|
sugar?: number | undefined;
|
|
36
36
|
}>;
|
|
37
|
-
export
|
|
38
|
-
}
|
|
37
|
+
export type Nutrition = z.infer<typeof NutritionSchema>;
|
|
39
38
|
//# sourceMappingURL=nutrition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nutrition.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/nutrition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"nutrition.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/nutrition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NutritionSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const genkit_1 = require("genkit");
|
|
5
5
|
/**
|
|
6
6
|
* Nutrition data per serving.
|
|
7
7
|
* Units: calories (kcal), fat/carbs/protein/fiber/sugar (g), cholesterol/sodium (mg)
|
|
8
8
|
*/
|
|
9
|
-
exports.NutritionSchema =
|
|
10
|
-
calories:
|
|
11
|
-
carbs:
|
|
12
|
-
cholesterol:
|
|
13
|
-
fat:
|
|
14
|
-
fiber:
|
|
15
|
-
protein:
|
|
16
|
-
saturatedFat:
|
|
17
|
-
sodium:
|
|
18
|
-
sugar:
|
|
9
|
+
exports.NutritionSchema = genkit_1.z.object({
|
|
10
|
+
calories: genkit_1.z.number().nonnegative(),
|
|
11
|
+
carbs: genkit_1.z.number().nonnegative().optional(),
|
|
12
|
+
cholesterol: genkit_1.z.number().nonnegative().optional(),
|
|
13
|
+
fat: genkit_1.z.number().nonnegative().optional(),
|
|
14
|
+
fiber: genkit_1.z.number().nonnegative().optional(),
|
|
15
|
+
protein: genkit_1.z.number().nonnegative().optional(),
|
|
16
|
+
saturatedFat: genkit_1.z.number().nonnegative().optional(),
|
|
17
|
+
sodium: genkit_1.z.number().nonnegative().optional(),
|
|
18
|
+
sugar: genkit_1.z.number().nonnegative().optional(),
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=nutrition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nutrition.js","sourceRoot":"","sources":["../../../src/types/recipe/nutrition.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"nutrition.js","sourceRoot":"","sources":["../../../src/types/recipe/nutrition.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAE3B;;;GAGG;AACU,QAAA,eAAe,GAAG,UAAC,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAClC,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAChD,GAAG,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACjD,MAAM,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "genkit";
|
|
2
2
|
export declare const RecipeMetaSchema: z.ZodObject<{
|
|
3
3
|
allergens: z.ZodArray<z.ZodEnum<["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"]>, "many">;
|
|
4
4
|
confidence: z.ZodNumber;
|
|
@@ -174,8 +174,7 @@ export declare const RecipeMetaSchema: z.ZodObject<{
|
|
|
174
174
|
time?: unknown;
|
|
175
175
|
updatedAt?: unknown;
|
|
176
176
|
}>;
|
|
177
|
-
export
|
|
178
|
-
}
|
|
177
|
+
export type RecipeMeta = z.infer<typeof RecipeMetaSchema>;
|
|
179
178
|
export declare const RecipeContentSchema: z.ZodObject<{
|
|
180
179
|
description: z.ZodString;
|
|
181
180
|
equipment: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -284,8 +283,7 @@ export declare const RecipeContentSchema: z.ZodObject<{
|
|
|
284
283
|
}[] | undefined;
|
|
285
284
|
tips?: string[] | undefined;
|
|
286
285
|
}>;
|
|
287
|
-
export
|
|
288
|
-
}
|
|
286
|
+
export type RecipeContent = z.infer<typeof RecipeContentSchema>;
|
|
289
287
|
export declare const RecipeSchema: z.ZodObject<{
|
|
290
288
|
allergens: z.ZodArray<z.ZodEnum<["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"]>, "many">;
|
|
291
289
|
confidence: z.ZodNumber;
|
|
@@ -495,8 +493,7 @@ export declare const RecipeSchema: z.ZodObject<{
|
|
|
495
493
|
title?: unknown;
|
|
496
494
|
updatedAt?: unknown;
|
|
497
495
|
}>;
|
|
498
|
-
export
|
|
499
|
-
}
|
|
496
|
+
export type Recipe = z.infer<typeof RecipeSchema>;
|
|
500
497
|
export declare const RecipeStatsSchema: z.ZodObject<{
|
|
501
498
|
comments: z.ZodNumber;
|
|
502
499
|
likes: z.ZodNumber;
|
|
@@ -522,6 +519,5 @@ export declare const RecipeStatsSchema: z.ZodObject<{
|
|
|
522
519
|
saves: number;
|
|
523
520
|
views: number;
|
|
524
521
|
}>;
|
|
525
|
-
export
|
|
526
|
-
}
|
|
522
|
+
export type RecipeStats = z.infer<typeof RecipeStatsSchema>;
|
|
527
523
|
//# sourceMappingURL=recipe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AA8B3B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EAQ5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RecipeStatsSchema = exports.RecipeSchema = exports.RecipeContentSchema = exports.RecipeMetaSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const genkit_1 = require("genkit");
|
|
5
5
|
const core_1 = require("../core");
|
|
6
6
|
const enums_1 = require("./enums");
|
|
7
7
|
const equipment_1 = require("./equipment");
|
|
8
8
|
const ingredient_1 = require("./ingredient");
|
|
9
9
|
const instruction_1 = require("./instruction");
|
|
10
10
|
const nutrition_1 = require("./nutrition");
|
|
11
|
-
exports.RecipeMetaSchema =
|
|
12
|
-
allergens:
|
|
13
|
-
confidence:
|
|
14
|
-
createdAt:
|
|
15
|
-
createdBy:
|
|
11
|
+
exports.RecipeMetaSchema = genkit_1.z.object({
|
|
12
|
+
allergens: genkit_1.z.array(enums_1.AllergenSchema),
|
|
13
|
+
confidence: genkit_1.z.number().min(0).max(1),
|
|
14
|
+
createdAt: genkit_1.z.custom(),
|
|
15
|
+
createdBy: genkit_1.z.string(),
|
|
16
16
|
cuisine: enums_1.CuisineSchema,
|
|
17
|
-
deletedAt:
|
|
18
|
-
dietaryTags:
|
|
17
|
+
deletedAt: genkit_1.z.custom().optional(),
|
|
18
|
+
dietaryTags: genkit_1.z.array(enums_1.DietaryTagSchema),
|
|
19
19
|
difficulty: enums_1.DifficultySchema,
|
|
20
|
-
equipment:
|
|
21
|
-
id:
|
|
22
|
-
imageUrl:
|
|
23
|
-
ingredientSections:
|
|
24
|
-
instructions:
|
|
25
|
-
mealTypes:
|
|
20
|
+
equipment: genkit_1.z.array(equipment_1.EquipmentMetaSchema).max(30).optional(),
|
|
21
|
+
id: genkit_1.z.string(),
|
|
22
|
+
imageUrl: genkit_1.z.string().optional(),
|
|
23
|
+
ingredientSections: genkit_1.z.array(ingredient_1.IngredientSectionMetaSchema).min(1).max(20),
|
|
24
|
+
instructions: genkit_1.z.array(instruction_1.InstructionMetaSchema).min(1).max(100),
|
|
25
|
+
mealTypes: genkit_1.z.array(enums_1.MealTypeSchema).min(1),
|
|
26
26
|
nutrition: nutrition_1.NutritionSchema.optional(),
|
|
27
27
|
originalLocale: core_1.LocaleSchema,
|
|
28
|
-
servings:
|
|
28
|
+
servings: genkit_1.z.number().int().min(1).max(100),
|
|
29
29
|
source: enums_1.RecipeSourceSchema,
|
|
30
|
-
sourceUrl:
|
|
30
|
+
sourceUrl: genkit_1.z.string().optional(),
|
|
31
31
|
spiciness: enums_1.SpicinessSchema,
|
|
32
32
|
status: enums_1.RecipeStatusSchema,
|
|
33
|
-
time:
|
|
34
|
-
updatedAt:
|
|
33
|
+
time: genkit_1.z.number().int().min(1).max(1440),
|
|
34
|
+
updatedAt: genkit_1.z.custom(),
|
|
35
35
|
});
|
|
36
|
-
exports.RecipeContentSchema =
|
|
37
|
-
description:
|
|
38
|
-
equipment:
|
|
39
|
-
ingredientSections:
|
|
40
|
-
instructions:
|
|
36
|
+
exports.RecipeContentSchema = genkit_1.z.object({
|
|
37
|
+
description: genkit_1.z.string().min(10).max(2000),
|
|
38
|
+
equipment: genkit_1.z.array(equipment_1.EquipmentContentSchema).optional(),
|
|
39
|
+
ingredientSections: genkit_1.z.array(ingredient_1.IngredientSectionContentSchema).min(1).max(20),
|
|
40
|
+
instructions: genkit_1.z.array(instruction_1.InstructionContentSchema).min(1).max(100),
|
|
41
41
|
locale: core_1.LocaleSchema,
|
|
42
|
-
tips:
|
|
43
|
-
title:
|
|
42
|
+
tips: genkit_1.z.array(genkit_1.z.string().max(500)).max(20).optional(),
|
|
43
|
+
title: genkit_1.z.string().min(3).max(200),
|
|
44
44
|
});
|
|
45
|
-
exports.RecipeSchema =
|
|
46
|
-
allergens:
|
|
47
|
-
confidence:
|
|
48
|
-
createdAt:
|
|
49
|
-
createdBy:
|
|
45
|
+
exports.RecipeSchema = genkit_1.z.object({
|
|
46
|
+
allergens: genkit_1.z.array(enums_1.AllergenSchema),
|
|
47
|
+
confidence: genkit_1.z.number().min(0).max(1),
|
|
48
|
+
createdAt: genkit_1.z.custom(),
|
|
49
|
+
createdBy: genkit_1.z.string(),
|
|
50
50
|
cuisine: enums_1.CuisineSchema,
|
|
51
|
-
deletedAt:
|
|
52
|
-
description:
|
|
53
|
-
dietaryTags:
|
|
51
|
+
deletedAt: genkit_1.z.custom().optional(),
|
|
52
|
+
description: genkit_1.z.string().min(10).max(2000),
|
|
53
|
+
dietaryTags: genkit_1.z.array(enums_1.DietaryTagSchema),
|
|
54
54
|
difficulty: enums_1.DifficultySchema,
|
|
55
|
-
equipment:
|
|
56
|
-
id:
|
|
57
|
-
imageUrl:
|
|
58
|
-
ingredientSections:
|
|
59
|
-
instructions:
|
|
55
|
+
equipment: genkit_1.z.array(equipment_1.EquipmentSchema).optional(),
|
|
56
|
+
id: genkit_1.z.string(),
|
|
57
|
+
imageUrl: genkit_1.z.string().optional(),
|
|
58
|
+
ingredientSections: genkit_1.z.array(ingredient_1.IngredientSectionSchema).min(1),
|
|
59
|
+
instructions: genkit_1.z.array(instruction_1.InstructionSchema).min(1),
|
|
60
60
|
locale: core_1.LocaleSchema,
|
|
61
|
-
mealTypes:
|
|
61
|
+
mealTypes: genkit_1.z.array(enums_1.MealTypeSchema).min(1),
|
|
62
62
|
nutrition: nutrition_1.NutritionSchema.optional(),
|
|
63
63
|
originalLocale: core_1.LocaleSchema,
|
|
64
|
-
servings:
|
|
64
|
+
servings: genkit_1.z.number().int().min(1).max(100),
|
|
65
65
|
source: enums_1.RecipeSourceSchema,
|
|
66
|
-
sourceUrl:
|
|
66
|
+
sourceUrl: genkit_1.z.string().optional(),
|
|
67
67
|
spiciness: enums_1.SpicinessSchema,
|
|
68
68
|
status: enums_1.RecipeStatusSchema,
|
|
69
|
-
time:
|
|
70
|
-
tips:
|
|
71
|
-
title:
|
|
72
|
-
updatedAt:
|
|
69
|
+
time: genkit_1.z.number().int().min(1).max(1440),
|
|
70
|
+
tips: genkit_1.z.array(genkit_1.z.string().max(500)).optional(),
|
|
71
|
+
title: genkit_1.z.string().min(3).max(200),
|
|
72
|
+
updatedAt: genkit_1.z.custom(),
|
|
73
73
|
});
|
|
74
|
-
exports.RecipeStatsSchema =
|
|
75
|
-
comments:
|
|
76
|
-
likes:
|
|
77
|
-
rating:
|
|
78
|
-
ratingCount:
|
|
79
|
-
saves:
|
|
80
|
-
updatedAt:
|
|
81
|
-
views:
|
|
74
|
+
exports.RecipeStatsSchema = genkit_1.z.object({
|
|
75
|
+
comments: genkit_1.z.number().int().nonnegative(),
|
|
76
|
+
likes: genkit_1.z.number().int().nonnegative(),
|
|
77
|
+
rating: genkit_1.z.number().min(0).max(5),
|
|
78
|
+
ratingCount: genkit_1.z.number().int().nonnegative(),
|
|
79
|
+
saves: genkit_1.z.number().int().nonnegative(),
|
|
80
|
+
updatedAt: genkit_1.z.number().int(),
|
|
81
|
+
views: genkit_1.z.number().int().nonnegative(),
|
|
82
82
|
});
|
|
83
83
|
//# sourceMappingURL=recipe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAE3B,kCAAuC;AACvC,mCASiB;AACjB,2CAIqB;AACrB,6CAIsB;AACtB,+CAIuB;AACvB,2CAA8C;AAEjC,QAAA,gBAAgB,GAAG,UAAC,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,UAAC,CAAC,KAAK,CAAC,sBAAc,CAAC;IAClC,UAAU,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;IAChC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,qBAAa;IACtB,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,UAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;IACtC,UAAU,EAAE,wBAAgB;IAC5B,SAAS,EAAE,UAAC,CAAC,KAAK,CAAC,+BAAmB,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1D,EAAE,EAAE,UAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,kBAAkB,EAAE,UAAC,CAAC,KAAK,CAAC,wCAA2B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IACvE,YAAY,EAAE,UAAC,CAAC,KAAK,CAAC,mCAAqB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,C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,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "genkit";
|
|
2
2
|
export declare const TemperatureSchema: z.ZodObject<{
|
|
3
3
|
unit: z.ZodEnum<["celsius", "fahrenheit"]>;
|
|
4
4
|
value: z.ZodNumber;
|
|
@@ -9,6 +9,5 @@ export declare const TemperatureSchema: z.ZodObject<{
|
|
|
9
9
|
value: number;
|
|
10
10
|
unit: "celsius" | "fahrenheit";
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
13
|
-
}
|
|
12
|
+
export type Temperature = z.infer<typeof TemperatureSchema>;
|
|
14
13
|
//# sourceMappingURL=temperature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temperature.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/temperature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"temperature.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/temperature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TemperatureSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const genkit_1 = require("genkit");
|
|
5
5
|
const enums_1 = require("./enums");
|
|
6
|
-
exports.TemperatureSchema =
|
|
6
|
+
exports.TemperatureSchema = genkit_1.z.object({
|
|
7
7
|
unit: enums_1.TemperatureUnitSchema,
|
|
8
|
-
value:
|
|
8
|
+
value: genkit_1.z.number().min(-50).max(1000),
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=temperature.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temperature.js","sourceRoot":"","sources":["../../../src/types/recipe/temperature.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"temperature.js","sourceRoot":"","sources":["../../../src/types/recipe/temperature.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,mCAAgD;AAEnC,QAAA,iBAAiB,GAAG,UAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,6BAAqB;IAC3B,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "genkit";
|
|
2
2
|
export declare const REPORT_PRIORITY_VALUES: readonly ["critical", "high", "low", "medium"];
|
|
3
3
|
export declare const ReportPrioritySchema: z.ZodEnum<["critical", "high", "low", "medium"]>;
|
|
4
4
|
export type ReportPriority = (typeof REPORT_PRIORITY_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_priority.d.ts","sourceRoot":"","sources":["../../../../src/types/report/enums/report_priority.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"report_priority.d.ts","sourceRoot":"","sources":["../../../../src/types/report/enums/report_priority.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,sBAAsB,gDAKzB,CAAC;AACX,eAAO,MAAM,oBAAoB,kDAAiC,CAAC;AACnE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReportPrioritySchema = exports.REPORT_PRIORITY_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const genkit_1 = require("genkit");
|
|
5
5
|
exports.REPORT_PRIORITY_VALUES = [
|
|
6
6
|
"critical",
|
|
7
7
|
"high",
|
|
8
8
|
"low",
|
|
9
9
|
"medium",
|
|
10
10
|
];
|
|
11
|
-
exports.ReportPrioritySchema =
|
|
11
|
+
exports.ReportPrioritySchema = genkit_1.z.enum(exports.REPORT_PRIORITY_VALUES);
|
|
12
12
|
//# sourceMappingURL=report_priority.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_priority.js","sourceRoot":"","sources":["../../../../src/types/report/enums/report_priority.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"report_priority.js","sourceRoot":"","sources":["../../../../src/types/report/enums/report_priority.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAEd,QAAA,sBAAsB,GAAG;IACpC,UAAU;IACV,MAAM;IACN,KAAK;IACL,QAAQ;CACA,CAAC;AACE,QAAA,oBAAoB,GAAG,UAAC,CAAC,IAAI,CAAC,8BAAsB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "genkit";
|
|
2
2
|
export declare const REPORT_STATUS_VALUES: readonly ["escalated", "pending", "resolved", "reviewed"];
|
|
3
3
|
export declare const ReportStatusSchema: z.ZodEnum<["escalated", "pending", "resolved", "reviewed"]>;
|
|
4
4
|
export type ReportStatus = (typeof REPORT_STATUS_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_status.d.ts","sourceRoot":"","sources":["../../../../src/types/report/enums/report_status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"report_status.d.ts","sourceRoot":"","sources":["../../../../src/types/report/enums/report_status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,oBAAoB,2DAKvB,CAAC;AACX,eAAO,MAAM,kBAAkB,6DAA+B,CAAC;AAC/D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReportStatusSchema = exports.REPORT_STATUS_VALUES = void 0;
|
|
4
|
-
const
|
|
4
|
+
const genkit_1 = require("genkit");
|
|
5
5
|
exports.REPORT_STATUS_VALUES = [
|
|
6
6
|
"escalated",
|
|
7
7
|
"pending",
|
|
8
8
|
"resolved",
|
|
9
9
|
"reviewed",
|
|
10
10
|
];
|
|
11
|
-
exports.ReportStatusSchema =
|
|
11
|
+
exports.ReportStatusSchema = genkit_1.z.enum(exports.REPORT_STATUS_VALUES);
|
|
12
12
|
//# sourceMappingURL=report_status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_status.js","sourceRoot":"","sources":["../../../../src/types/report/enums/report_status.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"report_status.js","sourceRoot":"","sources":["../../../../src/types/report/enums/report_status.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAEd,QAAA,oBAAoB,GAAG;IAClC,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;CACF,CAAC;AACE,QAAA,kBAAkB,GAAG,UAAC,CAAC,IAAI,CAAC,4BAAoB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "genkit";
|
|
2
2
|
export declare const REPORT_TARGET_TYPE_VALUES: readonly ["image", "profile", "recipe", "user"];
|
|
3
3
|
export declare const ReportTargetTypeSchema: z.ZodEnum<["image", "profile", "recipe", "user"]>;
|
|
4
4
|
export type ReportTargetType = (typeof REPORT_TARGET_TYPE_VALUES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_target_type.d.ts","sourceRoot":"","sources":["../../../../src/types/report/enums/report_target_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"report_target_type.d.ts","sourceRoot":"","sources":["../../../../src/types/report/enums/report_target_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,yBAAyB,iDAK5B,CAAC;AACX,eAAO,MAAM,sBAAsB,mDAAoC,CAAC;AACxE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|