@cravery/core 0.0.25 → 0.0.27
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 +3 -16
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"difficulty.js","sourceRoot":"","sources":["../../../src/types/recipe/difficulty.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,UAAU;IACV,cAAc;IACd,UAAU;IACV,QAAQ;CACA,CAAC"}
|
|
@@ -1,52 +1,12 @@
|
|
|
1
|
-
import { z } from "genkit";
|
|
2
1
|
export interface EquipmentMeta {
|
|
3
2
|
required?: boolean;
|
|
4
3
|
slug: string;
|
|
5
4
|
}
|
|
6
|
-
export declare const EquipmentMetaSchema: z.ZodObject<{
|
|
7
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
slug: z.ZodString;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
slug: string;
|
|
11
|
-
required?: boolean | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
slug: string;
|
|
14
|
-
required?: boolean | undefined;
|
|
15
|
-
}>;
|
|
16
5
|
export interface EquipmentContent {
|
|
17
6
|
name: string;
|
|
18
7
|
notes?: string;
|
|
19
8
|
slug: string;
|
|
20
9
|
}
|
|
21
|
-
export declare const EquipmentContentSchema: z.ZodObject<{
|
|
22
|
-
name: z.ZodString;
|
|
23
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
24
|
-
slug: z.ZodString;
|
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
slug: string;
|
|
27
|
-
name: string;
|
|
28
|
-
notes?: string | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
slug: string;
|
|
31
|
-
name: string;
|
|
32
|
-
notes?: string | undefined;
|
|
33
|
-
}>;
|
|
34
10
|
export interface Equipment extends EquipmentMeta, EquipmentContent {
|
|
35
11
|
}
|
|
36
|
-
export declare const EquipmentSchema: z.ZodObject<{
|
|
37
|
-
name: z.ZodString;
|
|
38
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
39
|
-
slug: z.ZodString;
|
|
40
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
slug: string;
|
|
43
|
-
name: string;
|
|
44
|
-
required?: boolean | undefined;
|
|
45
|
-
notes?: string | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
slug: string;
|
|
48
|
-
name: string;
|
|
49
|
-
required?: boolean | undefined;
|
|
50
|
-
notes?: string | undefined;
|
|
51
|
-
}>;
|
|
52
12
|
//# sourceMappingURL=equipment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,gBAAgB;CAAG"}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EquipmentSchema = exports.EquipmentContentSchema = exports.EquipmentMetaSchema = void 0;
|
|
4
|
-
const genkit_1 = require("genkit");
|
|
5
|
-
exports.EquipmentMetaSchema = genkit_1.z.object({
|
|
6
|
-
required: genkit_1.z.boolean().optional(),
|
|
7
|
-
slug: genkit_1.z.string(),
|
|
8
|
-
});
|
|
9
|
-
exports.EquipmentContentSchema = genkit_1.z.object({
|
|
10
|
-
name: genkit_1.z.string(),
|
|
11
|
-
notes: genkit_1.z.string().optional(),
|
|
12
|
-
slug: genkit_1.z.string(),
|
|
13
|
-
});
|
|
14
|
-
exports.EquipmentSchema = genkit_1.z.object(Object.assign(Object.assign({}, exports.EquipmentMetaSchema.shape), exports.EquipmentContentSchema.shape));
|
|
15
3
|
//# sourceMappingURL=equipment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Cuisine } from "./cuisine";
|
|
2
|
+
import { DietaryTag } from "./dietary_tag";
|
|
3
|
+
import { Difficulty } from "./difficulty";
|
|
4
|
+
import { MealType } from "./meal_type";
|
|
5
|
+
import { Spiciness } from "./spiciness";
|
|
3
6
|
export interface RecipeFilters {
|
|
4
7
|
cuisines?: Cuisine[];
|
|
5
8
|
dietaryTags?: DietaryTag[];
|
|
@@ -10,32 +13,4 @@ export interface RecipeFilters {
|
|
|
10
13
|
spiciness?: Spiciness;
|
|
11
14
|
timeLimit?: number;
|
|
12
15
|
}
|
|
13
|
-
export declare const RecipeFiltersSchema: z.ZodObject<{
|
|
14
|
-
cuisines: z.ZodOptional<z.ZodArray<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"]>, "many">>;
|
|
15
|
-
dietaryTags: z.ZodOptional<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">>;
|
|
16
|
-
difficulty: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced", "expert"]>>;
|
|
17
|
-
excludeIngredients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
-
includeIngredients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
|
-
mealTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["appetizer", "breakfast", "brunch", "dessert", "dinner", "drink", "lunch", "snack"]>, "many">>;
|
|
20
|
-
spiciness: z.ZodOptional<z.ZodEnum<["none", "mild", "medium", "hot"]>>;
|
|
21
|
-
timeLimit: z.ZodOptional<z.ZodNumber>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
cuisines?: ("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")[] | undefined;
|
|
24
|
-
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")[] | undefined;
|
|
25
|
-
difficulty?: "beginner" | "intermediate" | "advanced" | "expert" | undefined;
|
|
26
|
-
excludeIngredients?: string[] | undefined;
|
|
27
|
-
includeIngredients?: string[] | undefined;
|
|
28
|
-
mealTypes?: ("appetizer" | "breakfast" | "brunch" | "dessert" | "dinner" | "drink" | "lunch" | "snack")[] | undefined;
|
|
29
|
-
spiciness?: "none" | "mild" | "medium" | "hot" | undefined;
|
|
30
|
-
timeLimit?: number | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
cuisines?: ("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")[] | undefined;
|
|
33
|
-
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")[] | undefined;
|
|
34
|
-
difficulty?: "beginner" | "intermediate" | "advanced" | "expert" | undefined;
|
|
35
|
-
excludeIngredients?: string[] | undefined;
|
|
36
|
-
includeIngredients?: string[] | undefined;
|
|
37
|
-
mealTypes?: ("appetizer" | "breakfast" | "brunch" | "dessert" | "dinner" | "drink" | "lunch" | "snack")[] | undefined;
|
|
38
|
-
spiciness?: "none" | "mild" | "medium" | "hot" | undefined;
|
|
39
|
-
timeLimit?: number | undefined;
|
|
40
|
-
}>;
|
|
41
16
|
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecipeFiltersSchema = void 0;
|
|
4
|
-
const genkit_1 = require("genkit");
|
|
5
|
-
const enums_1 = require("./enums");
|
|
6
|
-
exports.RecipeFiltersSchema = genkit_1.z.object({
|
|
7
|
-
cuisines: genkit_1.z.array(enums_1.CuisineSchema).optional(),
|
|
8
|
-
dietaryTags: genkit_1.z.array(enums_1.DietaryTagSchema).optional(),
|
|
9
|
-
difficulty: enums_1.DifficultySchema.optional(),
|
|
10
|
-
excludeIngredients: genkit_1.z.array(genkit_1.z.string()).optional(),
|
|
11
|
-
includeIngredients: genkit_1.z.array(genkit_1.z.string()).optional(),
|
|
12
|
-
mealTypes: genkit_1.z.array(enums_1.MealTypeSchema).optional(),
|
|
13
|
-
spiciness: enums_1.SpicinessSchema.optional(),
|
|
14
|
-
timeLimit: genkit_1.z.number().int().min(5).max(300).optional(),
|
|
15
|
-
});
|
|
16
3
|
//# sourceMappingURL=filters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./allergen";
|
|
2
|
+
export * from "./cuisine";
|
|
3
|
+
export * from "./dietary_tag";
|
|
4
|
+
export * from "./difficulty";
|
|
2
5
|
export * from "./equipment";
|
|
3
6
|
export * from "./filters";
|
|
4
7
|
export * from "./ingredient";
|
|
5
8
|
export * from "./instruction";
|
|
9
|
+
export * from "./meal_type";
|
|
6
10
|
export * from "./nutrition";
|
|
11
|
+
export * from "./recipe_source";
|
|
12
|
+
export * from "./recipe_status";
|
|
7
13
|
export * from "./recipe";
|
|
14
|
+
export * from "./spiciness";
|
|
15
|
+
export * from "./temperature_unit";
|
|
8
16
|
export * from "./temperature";
|
|
17
|
+
export * from "./unit";
|
|
9
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
|
@@ -14,12 +14,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./allergen"), exports);
|
|
18
|
+
__exportStar(require("./cuisine"), exports);
|
|
19
|
+
__exportStar(require("./dietary_tag"), exports);
|
|
20
|
+
__exportStar(require("./difficulty"), exports);
|
|
18
21
|
__exportStar(require("./equipment"), exports);
|
|
19
22
|
__exportStar(require("./filters"), exports);
|
|
20
23
|
__exportStar(require("./ingredient"), exports);
|
|
21
24
|
__exportStar(require("./instruction"), exports);
|
|
25
|
+
__exportStar(require("./meal_type"), exports);
|
|
22
26
|
__exportStar(require("./nutrition"), exports);
|
|
27
|
+
__exportStar(require("./recipe_source"), exports);
|
|
28
|
+
__exportStar(require("./recipe_status"), exports);
|
|
23
29
|
__exportStar(require("./recipe"), exports);
|
|
30
|
+
__exportStar(require("./spiciness"), exports);
|
|
31
|
+
__exportStar(require("./temperature_unit"), exports);
|
|
24
32
|
__exportStar(require("./temperature"), exports);
|
|
33
|
+
__exportStar(require("./unit"), exports);
|
|
25
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,8CAA4B;AAC5B,8CAA4B;AAC5B,kDAAgC;AAChC,kDAAgC;AAChC,2CAAyB;AACzB,8CAA4B;AAC5B,qDAAmC;AACnC,gDAA8B;AAC9B,yCAAuB"}
|
|
@@ -1,197 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type Unit } from "./enums";
|
|
1
|
+
import { Unit } from "./unit";
|
|
3
2
|
export interface IngredientMeta {
|
|
4
3
|
quantity?: number;
|
|
5
4
|
required?: boolean;
|
|
6
5
|
slug: string;
|
|
7
6
|
unit?: Unit;
|
|
8
7
|
}
|
|
9
|
-
export declare const IngredientMetaSchema: z.ZodObject<{
|
|
10
|
-
quantity: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
slug: z.ZodString;
|
|
13
|
-
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"]>>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
slug: string;
|
|
16
|
-
required?: boolean | undefined;
|
|
17
|
-
quantity?: number | undefined;
|
|
18
|
-
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;
|
|
19
|
-
}, {
|
|
20
|
-
slug: string;
|
|
21
|
-
required?: boolean | undefined;
|
|
22
|
-
quantity?: number | undefined;
|
|
23
|
-
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;
|
|
24
|
-
}>;
|
|
25
8
|
export interface IngredientContent {
|
|
26
9
|
name: string;
|
|
27
10
|
notes?: string;
|
|
28
11
|
slug: string;
|
|
29
12
|
}
|
|
30
|
-
export declare const IngredientContentSchema: z.ZodObject<{
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
33
|
-
slug: z.ZodString;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
slug: string;
|
|
36
|
-
name: string;
|
|
37
|
-
notes?: string | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
slug: string;
|
|
40
|
-
name: string;
|
|
41
|
-
notes?: string | undefined;
|
|
42
|
-
}>;
|
|
43
13
|
export interface Ingredient extends IngredientMeta, IngredientContent {
|
|
44
14
|
}
|
|
45
|
-
export declare const IngredientSchema: 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
|
-
}>;
|
|
67
15
|
export interface IngredientSectionMeta {
|
|
68
16
|
ingredients: IngredientMeta[];
|
|
69
17
|
slug: string;
|
|
70
18
|
}
|
|
71
|
-
export declare const IngredientSectionMetaSchema: z.ZodObject<{
|
|
72
|
-
ingredients: z.ZodArray<z.ZodObject<{
|
|
73
|
-
quantity: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
-
slug: z.ZodString;
|
|
76
|
-
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"]>>;
|
|
77
|
-
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
slug: string;
|
|
79
|
-
required?: boolean | undefined;
|
|
80
|
-
quantity?: number | undefined;
|
|
81
|
-
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;
|
|
82
|
-
}, {
|
|
83
|
-
slug: string;
|
|
84
|
-
required?: boolean | undefined;
|
|
85
|
-
quantity?: number | undefined;
|
|
86
|
-
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;
|
|
87
|
-
}>, "many">;
|
|
88
|
-
slug: z.ZodString;
|
|
89
|
-
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
slug: string;
|
|
91
|
-
ingredients: {
|
|
92
|
-
slug: string;
|
|
93
|
-
required?: boolean | undefined;
|
|
94
|
-
quantity?: number | undefined;
|
|
95
|
-
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;
|
|
96
|
-
}[];
|
|
97
|
-
}, {
|
|
98
|
-
slug: string;
|
|
99
|
-
ingredients: {
|
|
100
|
-
slug: string;
|
|
101
|
-
required?: boolean | undefined;
|
|
102
|
-
quantity?: number | undefined;
|
|
103
|
-
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;
|
|
104
|
-
}[];
|
|
105
|
-
}>;
|
|
106
19
|
export interface IngredientSectionContent {
|
|
107
20
|
ingredients: IngredientContent[];
|
|
108
21
|
slug: string;
|
|
109
22
|
title?: string;
|
|
110
23
|
}
|
|
111
|
-
export declare const IngredientSectionContentSchema: z.ZodObject<{
|
|
112
|
-
ingredients: z.ZodArray<z.ZodObject<{
|
|
113
|
-
name: z.ZodString;
|
|
114
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
115
|
-
slug: z.ZodString;
|
|
116
|
-
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
slug: string;
|
|
118
|
-
name: string;
|
|
119
|
-
notes?: string | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
slug: string;
|
|
122
|
-
name: string;
|
|
123
|
-
notes?: string | undefined;
|
|
124
|
-
}>, "many">;
|
|
125
|
-
slug: z.ZodString;
|
|
126
|
-
title: z.ZodOptional<z.ZodString>;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
slug: string;
|
|
129
|
-
ingredients: {
|
|
130
|
-
slug: string;
|
|
131
|
-
name: string;
|
|
132
|
-
notes?: string | undefined;
|
|
133
|
-
}[];
|
|
134
|
-
title?: string | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
slug: string;
|
|
137
|
-
ingredients: {
|
|
138
|
-
slug: string;
|
|
139
|
-
name: string;
|
|
140
|
-
notes?: string | undefined;
|
|
141
|
-
}[];
|
|
142
|
-
title?: string | undefined;
|
|
143
|
-
}>;
|
|
144
24
|
export interface IngredientSection {
|
|
145
25
|
ingredients: Ingredient[];
|
|
146
26
|
slug: string;
|
|
147
27
|
title?: string;
|
|
148
28
|
}
|
|
149
|
-
export declare const IngredientSectionSchema: z.ZodObject<{
|
|
150
|
-
ingredients: z.ZodArray<z.ZodObject<{
|
|
151
|
-
name: z.ZodString;
|
|
152
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
153
|
-
slug: z.ZodString;
|
|
154
|
-
quantity: z.ZodOptional<z.ZodNumber>;
|
|
155
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
-
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"]>>;
|
|
157
|
-
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
slug: string;
|
|
159
|
-
name: string;
|
|
160
|
-
required?: boolean | undefined;
|
|
161
|
-
notes?: string | undefined;
|
|
162
|
-
quantity?: number | undefined;
|
|
163
|
-
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;
|
|
164
|
-
}, {
|
|
165
|
-
slug: string;
|
|
166
|
-
name: string;
|
|
167
|
-
required?: boolean | undefined;
|
|
168
|
-
notes?: string | undefined;
|
|
169
|
-
quantity?: number | undefined;
|
|
170
|
-
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;
|
|
171
|
-
}>, "many">;
|
|
172
|
-
slug: z.ZodString;
|
|
173
|
-
title: z.ZodOptional<z.ZodString>;
|
|
174
|
-
}, "strip", z.ZodTypeAny, {
|
|
175
|
-
slug: string;
|
|
176
|
-
ingredients: {
|
|
177
|
-
slug: string;
|
|
178
|
-
name: string;
|
|
179
|
-
required?: boolean | undefined;
|
|
180
|
-
notes?: string | undefined;
|
|
181
|
-
quantity?: number | undefined;
|
|
182
|
-
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;
|
|
183
|
-
}[];
|
|
184
|
-
title?: string | undefined;
|
|
185
|
-
}, {
|
|
186
|
-
slug: string;
|
|
187
|
-
ingredients: {
|
|
188
|
-
slug: string;
|
|
189
|
-
name: string;
|
|
190
|
-
required?: boolean | undefined;
|
|
191
|
-
notes?: string | undefined;
|
|
192
|
-
quantity?: number | undefined;
|
|
193
|
-
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;
|
|
194
|
-
}[];
|
|
195
|
-
title?: string | undefined;
|
|
196
|
-
}>;
|
|
197
29
|
//# 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,
|
|
1
|
+
{"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc,EAAE,iBAAiB;CAAG;AAExE,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,32 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IngredientSectionSchema = exports.IngredientSectionContentSchema = exports.IngredientSectionMetaSchema = exports.IngredientSchema = exports.IngredientContentSchema = exports.IngredientMetaSchema = void 0;
|
|
4
|
-
const genkit_1 = require("genkit");
|
|
5
|
-
const enums_1 = require("./enums");
|
|
6
|
-
exports.IngredientMetaSchema = genkit_1.z.object({
|
|
7
|
-
quantity: genkit_1.z.number().optional(),
|
|
8
|
-
required: genkit_1.z.boolean().optional(),
|
|
9
|
-
slug: genkit_1.z.string(),
|
|
10
|
-
unit: enums_1.UnitSchema.optional(),
|
|
11
|
-
});
|
|
12
|
-
exports.IngredientContentSchema = genkit_1.z.object({
|
|
13
|
-
name: genkit_1.z.string(),
|
|
14
|
-
notes: genkit_1.z.string().optional(),
|
|
15
|
-
slug: genkit_1.z.string(),
|
|
16
|
-
});
|
|
17
|
-
exports.IngredientSchema = genkit_1.z.object(Object.assign(Object.assign({}, exports.IngredientMetaSchema.shape), exports.IngredientContentSchema.shape));
|
|
18
|
-
exports.IngredientSectionMetaSchema = genkit_1.z.object({
|
|
19
|
-
ingredients: genkit_1.z.array(exports.IngredientMetaSchema),
|
|
20
|
-
slug: genkit_1.z.string(),
|
|
21
|
-
});
|
|
22
|
-
exports.IngredientSectionContentSchema = genkit_1.z.object({
|
|
23
|
-
ingredients: genkit_1.z.array(exports.IngredientContentSchema),
|
|
24
|
-
slug: genkit_1.z.string(),
|
|
25
|
-
title: genkit_1.z.string().optional(),
|
|
26
|
-
});
|
|
27
|
-
exports.IngredientSectionSchema = genkit_1.z.object({
|
|
28
|
-
ingredients: genkit_1.z.array(exports.IngredientSchema),
|
|
29
|
-
slug: genkit_1.z.string(),
|
|
30
|
-
title: genkit_1.z.string().optional(),
|
|
31
|
-
});
|
|
32
3
|
//# sourceMappingURL=ingredient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":""}
|
|
@@ -1,83 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type Temperature } from "./temperature";
|
|
1
|
+
import { TemperatureUnit } from "./temperature_unit";
|
|
3
2
|
export interface InstructionMeta {
|
|
4
3
|
duration?: number;
|
|
5
4
|
step: number;
|
|
6
|
-
temperature?:
|
|
5
|
+
temperature?: TemperatureUnit;
|
|
7
6
|
}
|
|
8
|
-
export declare const InstructionMetaSchema: z.ZodObject<{
|
|
9
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
step: z.ZodNumber;
|
|
11
|
-
temperature: z.ZodOptional<z.ZodObject<{
|
|
12
|
-
unit: z.ZodEnum<["celsius", "fahrenheit"]>;
|
|
13
|
-
value: z.ZodNumber;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
value: number;
|
|
16
|
-
unit: "celsius" | "fahrenheit";
|
|
17
|
-
}, {
|
|
18
|
-
value: number;
|
|
19
|
-
unit: "celsius" | "fahrenheit";
|
|
20
|
-
}>>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
step: number;
|
|
23
|
-
duration?: number | undefined;
|
|
24
|
-
temperature?: {
|
|
25
|
-
value: number;
|
|
26
|
-
unit: "celsius" | "fahrenheit";
|
|
27
|
-
} | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
step: number;
|
|
30
|
-
duration?: number | undefined;
|
|
31
|
-
temperature?: {
|
|
32
|
-
value: number;
|
|
33
|
-
unit: "celsius" | "fahrenheit";
|
|
34
|
-
} | undefined;
|
|
35
|
-
}>;
|
|
36
7
|
export interface InstructionContent {
|
|
37
8
|
step: number;
|
|
38
9
|
text: string;
|
|
39
10
|
}
|
|
40
|
-
export declare const InstructionContentSchema: z.ZodObject<{
|
|
41
|
-
step: z.ZodNumber;
|
|
42
|
-
text: z.ZodString;
|
|
43
|
-
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
text: string;
|
|
45
|
-
step: number;
|
|
46
|
-
}, {
|
|
47
|
-
text: string;
|
|
48
|
-
step: number;
|
|
49
|
-
}>;
|
|
50
11
|
export interface Instruction extends InstructionMeta, InstructionContent {
|
|
51
12
|
}
|
|
52
|
-
export declare const InstructionSchema: z.ZodObject<{
|
|
53
|
-
step: z.ZodNumber;
|
|
54
|
-
text: z.ZodString;
|
|
55
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
56
|
-
temperature: z.ZodOptional<z.ZodObject<{
|
|
57
|
-
unit: z.ZodEnum<["celsius", "fahrenheit"]>;
|
|
58
|
-
value: z.ZodNumber;
|
|
59
|
-
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
value: number;
|
|
61
|
-
unit: "celsius" | "fahrenheit";
|
|
62
|
-
}, {
|
|
63
|
-
value: number;
|
|
64
|
-
unit: "celsius" | "fahrenheit";
|
|
65
|
-
}>>;
|
|
66
|
-
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
text: string;
|
|
68
|
-
step: number;
|
|
69
|
-
duration?: number | undefined;
|
|
70
|
-
temperature?: {
|
|
71
|
-
value: number;
|
|
72
|
-
unit: "celsius" | "fahrenheit";
|
|
73
|
-
} | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
text: string;
|
|
76
|
-
step: number;
|
|
77
|
-
duration?: number | undefined;
|
|
78
|
-
temperature?: {
|
|
79
|
-
value: number;
|
|
80
|
-
unit: "celsius" | "fahrenheit";
|
|
81
|
-
} | undefined;
|
|
82
|
-
}>;
|
|
83
13
|
//# 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,
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,kBAAkB;CAAG"}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InstructionSchema = exports.InstructionContentSchema = exports.InstructionMetaSchema = void 0;
|
|
4
|
-
const genkit_1 = require("genkit");
|
|
5
|
-
const temperature_1 = require("./temperature");
|
|
6
|
-
exports.InstructionMetaSchema = genkit_1.z.object({
|
|
7
|
-
duration: genkit_1.z.number().optional(),
|
|
8
|
-
step: genkit_1.z.number(),
|
|
9
|
-
temperature: temperature_1.TemperatureSchema.optional(),
|
|
10
|
-
});
|
|
11
|
-
exports.InstructionContentSchema = genkit_1.z.object({
|
|
12
|
-
step: genkit_1.z.number(),
|
|
13
|
-
text: genkit_1.z.string(),
|
|
14
|
-
});
|
|
15
|
-
exports.InstructionSchema = genkit_1.z.object(Object.assign(Object.assign({}, exports.InstructionMetaSchema.shape), exports.InstructionContentSchema.shape));
|
|
16
3
|
//# sourceMappingURL=instruction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction.js","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instruction.js","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meal_type.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/meal_type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,+FASnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MEAL_TYPE_VALUES = void 0;
|
|
4
|
+
exports.MEAL_TYPE_VALUES = [
|
|
5
|
+
"appetizer",
|
|
6
|
+
"breakfast",
|
|
7
|
+
"brunch",
|
|
8
|
+
"dessert",
|
|
9
|
+
"dinner",
|
|
10
|
+
"drink",
|
|
11
|
+
"lunch",
|
|
12
|
+
"snack",
|
|
13
|
+
];
|
|
14
|
+
//# sourceMappingURL=meal_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meal_type.js","sourceRoot":"","sources":["../../../src/types/recipe/meal_type.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,WAAW;IACX,WAAW;IACX,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;CACC,CAAC"}
|