@cravery/core 0.0.16 → 0.0.18
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/types/ai/recipe.d.ts +2 -1
- package/dist/types/ai/recipe.d.ts.map +1 -1
- package/dist/types/ai/translation.d.ts +2 -1
- package/dist/types/ai/translation.d.ts.map +1 -1
- package/dist/types/core/asset.d.ts +2 -1
- package/dist/types/core/asset.d.ts.map +1 -1
- package/dist/types/core/settings.d.ts +4 -2
- package/dist/types/core/settings.d.ts.map +1 -1
- package/dist/types/iam/profile.d.ts +4 -2
- package/dist/types/iam/profile.d.ts.map +1 -1
- package/dist/types/iam/subscription.d.ts +4 -2
- package/dist/types/iam/subscription.d.ts.map +1 -1
- package/dist/types/iam/user.d.ts +2 -1
- package/dist/types/iam/user.d.ts.map +1 -1
- package/dist/types/moderation/moderation.d.ts +8 -4
- package/dist/types/moderation/moderation.d.ts.map +1 -1
- package/dist/types/recipe/equipment.d.ts +6 -3
- package/dist/types/recipe/equipment.d.ts.map +1 -1
- package/dist/types/recipe/filters.d.ts +2 -1
- package/dist/types/recipe/filters.d.ts.map +1 -1
- package/dist/types/recipe/ingredient.d.ts +10 -5
- package/dist/types/recipe/ingredient.d.ts.map +1 -1
- package/dist/types/recipe/instruction.d.ts +6 -3
- package/dist/types/recipe/instruction.d.ts.map +1 -1
- package/dist/types/recipe/nutrition.d.ts +2 -1
- package/dist/types/recipe/nutrition.d.ts.map +1 -1
- package/dist/types/recipe/recipe.d.ts +8 -4
- package/dist/types/recipe/recipe.d.ts.map +1 -1
- package/dist/types/recipe/temperature.d.ts +2 -1
- package/dist/types/recipe/temperature.d.ts.map +1 -1
- package/dist/types/report/report.d.ts +4 -2
- package/dist/types/report/report.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/ai/recipe.ts +1 -1
- package/src/types/ai/translation.ts +1 -1
- package/src/types/core/asset.ts +1 -1
- package/src/types/core/settings.ts +2 -2
- package/src/types/iam/profile.ts +2 -2
- package/src/types/iam/subscription.ts +2 -2
- package/src/types/iam/user.ts +1 -1
- package/src/types/moderation/moderation.ts +4 -4
- package/src/types/recipe/equipment.ts +3 -3
- package/src/types/recipe/filters.ts +1 -1
- package/src/types/recipe/ingredient.ts +5 -5
- package/src/types/recipe/instruction.ts +3 -3
- package/src/types/recipe/nutrition.ts +1 -1
- package/src/types/recipe/recipe.ts +4 -4
- package/src/types/recipe/temperature.ts +1 -1
- package/src/types/report/report.ts +2 -2
- package/src/nul +0 -0
|
@@ -241,5 +241,6 @@ export declare const AIRecipeSchema: z.ZodObject<{
|
|
|
241
241
|
} | undefined;
|
|
242
242
|
tips?: string[] | undefined;
|
|
243
243
|
}>;
|
|
244
|
-
export
|
|
244
|
+
export interface AIRecipe extends z.infer<typeof AIRecipeSchema> {
|
|
245
|
+
}
|
|
245
246
|
//# sourceMappingURL=recipe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBzB,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/ai/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBzB,CAAC;AACH,MAAM,WAAW,QAAS,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC;CAAG"}
|
|
@@ -104,5 +104,6 @@ export declare const AIRecipeTranslationSchema: z.ZodObject<{
|
|
|
104
104
|
}[] | undefined;
|
|
105
105
|
tips?: string[] | undefined;
|
|
106
106
|
}>;
|
|
107
|
-
export
|
|
107
|
+
export interface AIRecipeTranslation extends z.infer<typeof AIRecipeTranslationSchema> {
|
|
108
|
+
}
|
|
108
109
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/types/ai/translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AACH,MAAM,WAAW,mBAAoB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC;CAAG"}
|
|
@@ -15,5 +15,6 @@ export declare const AssetSchema: z.ZodObject<{
|
|
|
15
15
|
imageUrl?: string | undefined;
|
|
16
16
|
updatedAt?: any;
|
|
17
17
|
}>;
|
|
18
|
-
export
|
|
18
|
+
export interface Asset extends z.infer<typeof AssetSchema> {
|
|
19
|
+
}
|
|
19
20
|
//# sourceMappingURL=asset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;EAKtB,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;EAKtB,CAAC;AACH,MAAM,WAAW,KAAM,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC;CAAG"}
|
|
@@ -15,7 +15,8 @@ export declare const NotificationSettingsSchema: z.ZodObject<{
|
|
|
15
15
|
marketing: boolean;
|
|
16
16
|
weeklyDigest: boolean;
|
|
17
17
|
}>;
|
|
18
|
-
export
|
|
18
|
+
export interface NotificationSettings extends z.infer<typeof NotificationSettingsSchema> {
|
|
19
|
+
}
|
|
19
20
|
export declare const SettingsSchema: z.ZodObject<{
|
|
20
21
|
id: z.ZodString;
|
|
21
22
|
allergens: z.ZodArray<z.ZodEnum<["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"]>, "many">;
|
|
@@ -84,5 +85,6 @@ export declare const SettingsSchema: z.ZodObject<{
|
|
|
84
85
|
createdAt?: any;
|
|
85
86
|
updatedAt?: any;
|
|
86
87
|
}>;
|
|
87
|
-
export
|
|
88
|
+
export interface Settings extends z.infer<typeof SettingsSchema> {
|
|
89
|
+
}
|
|
88
90
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/types/core/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/types/core/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AACH,MAAM,WAAW,oBAAqB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC;CAAG;AAE3F,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAczB,CAAC;AACH,MAAM,WAAW,QAAS,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC;CAAG"}
|
|
@@ -30,7 +30,8 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
30
30
|
updatedAt?: any;
|
|
31
31
|
bio?: string | undefined;
|
|
32
32
|
}>;
|
|
33
|
-
export
|
|
33
|
+
export interface Profile extends z.infer<typeof ProfileSchema> {
|
|
34
|
+
}
|
|
34
35
|
export declare const ProfileStatsSchema: z.ZodObject<{
|
|
35
36
|
followers: z.ZodNumber;
|
|
36
37
|
following: z.ZodNumber;
|
|
@@ -53,5 +54,6 @@ export declare const ProfileStatsSchema: z.ZodObject<{
|
|
|
53
54
|
following: number;
|
|
54
55
|
recipes: number;
|
|
55
56
|
}>;
|
|
56
|
-
export
|
|
57
|
+
export interface ProfileStats extends z.infer<typeof ProfileStatsSchema> {
|
|
58
|
+
}
|
|
57
59
|
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/types/iam/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxB,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/types/iam/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxB,CAAC;AACH,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC;CAAG;AAEjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AACH,MAAM,WAAW,YAAa,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC;CAAG"}
|
|
@@ -20,7 +20,8 @@ export declare const MemberSchema: z.ZodObject<{
|
|
|
20
20
|
invitedAt?: unknown;
|
|
21
21
|
joinedAt?: unknown;
|
|
22
22
|
}>;
|
|
23
|
-
export
|
|
23
|
+
export interface Member extends z.infer<typeof MemberSchema> {
|
|
24
|
+
}
|
|
24
25
|
export declare const SubscriptionSchema: z.ZodObject<{
|
|
25
26
|
expiresAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
26
27
|
id: z.ZodString;
|
|
@@ -77,5 +78,6 @@ export declare const SubscriptionSchema: z.ZodObject<{
|
|
|
77
78
|
joinedAt?: unknown;
|
|
78
79
|
}[] | undefined;
|
|
79
80
|
}>;
|
|
80
|
-
export
|
|
81
|
+
export interface Subscription extends z.infer<typeof SubscriptionSchema> {
|
|
82
|
+
}
|
|
81
83
|
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;EAMvB,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;EAMvB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC;CAAG;AAE/D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AACH,MAAM,WAAW,YAAa,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC;CAAG"}
|
package/dist/types/iam/user.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrB,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrB,CAAC;AACH,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC;CAAG"}
|
|
@@ -15,7 +15,8 @@ export declare const ModerationSuggestionSchema: z.ZodObject<{
|
|
|
15
15
|
severity: "medium" | "low" | "high";
|
|
16
16
|
suggestion: string;
|
|
17
17
|
}>;
|
|
18
|
-
export
|
|
18
|
+
export interface ModerationSuggestion extends z.infer<typeof ModerationSuggestionSchema> {
|
|
19
|
+
}
|
|
19
20
|
export declare const ModerationSchema: z.ZodObject<{
|
|
20
21
|
assessedAt: z.ZodOptional<z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>>;
|
|
21
22
|
createdAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
@@ -76,7 +77,8 @@ export declare const ModerationSchema: z.ZodObject<{
|
|
|
76
77
|
suggestions?: unknown;
|
|
77
78
|
userId?: unknown;
|
|
78
79
|
}>;
|
|
79
|
-
export
|
|
80
|
+
export interface Moderation extends z.infer<typeof ModerationSchema> {
|
|
81
|
+
}
|
|
80
82
|
export declare const ModerateRecipeInputSchema: z.ZodObject<{
|
|
81
83
|
moderationId: z.ZodString;
|
|
82
84
|
recipeId: z.ZodString;
|
|
@@ -90,7 +92,8 @@ export declare const ModerateRecipeInputSchema: z.ZodObject<{
|
|
|
90
92
|
recipeId: string;
|
|
91
93
|
moderationId: string;
|
|
92
94
|
}>;
|
|
93
|
-
export
|
|
95
|
+
export interface ModerateRecipeInput extends z.infer<typeof ModerateRecipeInputSchema> {
|
|
96
|
+
}
|
|
94
97
|
export declare const ModerateRecipeOutputSchema: z.ZodObject<{
|
|
95
98
|
autoApproved: z.ZodBoolean;
|
|
96
99
|
autoRejected: z.ZodBoolean;
|
|
@@ -135,5 +138,6 @@ export declare const ModerateRecipeOutputSchema: z.ZodObject<{
|
|
|
135
138
|
autoRejected: boolean;
|
|
136
139
|
rejectionReason?: string | undefined;
|
|
137
140
|
}>;
|
|
138
|
-
export
|
|
141
|
+
export interface ModerateRecipeOutput extends z.infer<typeof ModerateRecipeOutputSchema> {
|
|
142
|
+
}
|
|
139
143
|
//# sourceMappingURL=moderation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AACH,MAAM,WAAW,oBAAqB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC;CAAG;AAE3F,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc3B,CAAC;AACH,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC;AACH,MAAM,WAAW,mBAAoB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC;CAAG;AAEzF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AACH,MAAM,WAAW,oBAAqB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC;CAAG"}
|
|
@@ -9,7 +9,8 @@ export declare const EquipmentMetaSchema: z.ZodObject<{
|
|
|
9
9
|
slug: string;
|
|
10
10
|
required?: boolean | undefined;
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
12
|
+
export interface EquipmentMeta extends z.infer<typeof EquipmentMetaSchema> {
|
|
13
|
+
}
|
|
13
14
|
export declare const EquipmentContentSchema: z.ZodObject<{
|
|
14
15
|
name: z.ZodString;
|
|
15
16
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -23,7 +24,8 @@ export declare const EquipmentContentSchema: z.ZodObject<{
|
|
|
23
24
|
name: string;
|
|
24
25
|
notes?: string | undefined;
|
|
25
26
|
}>;
|
|
26
|
-
export
|
|
27
|
+
export interface EquipmentContent extends z.infer<typeof EquipmentContentSchema> {
|
|
28
|
+
}
|
|
27
29
|
export declare const EquipmentSchema: z.ZodObject<{
|
|
28
30
|
name: z.ZodString;
|
|
29
31
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -40,5 +42,6 @@ export declare const EquipmentSchema: z.ZodObject<{
|
|
|
40
42
|
required?: boolean | undefined;
|
|
41
43
|
notes?: string | undefined;
|
|
42
44
|
}>;
|
|
43
|
-
export
|
|
45
|
+
export interface Equipment extends z.infer<typeof EquipmentSchema> {
|
|
46
|
+
}
|
|
44
47
|
//# sourceMappingURL=equipment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/equipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AACH,MAAM,WAAW,aAAc,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAE7E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AACH,MAAM,WAAW,gBAAiB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC;CAAG;AAEnF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAG1B,CAAC;AACH,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC;CAAG"}
|
|
@@ -27,5 +27,6 @@ export declare const RecipeFiltersSchema: z.ZodObject<{
|
|
|
27
27
|
spiciness?: "none" | "mild" | "medium" | "hot" | undefined;
|
|
28
28
|
timeLimit?: number | undefined;
|
|
29
29
|
}>;
|
|
30
|
-
export
|
|
30
|
+
export interface RecipeFilters extends z.infer<typeof RecipeFiltersSchema> {
|
|
31
|
+
}
|
|
31
32
|
//# 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,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAC;AACH,MAAM,WAAW,aAAc,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CAAG"}
|
|
@@ -15,7 +15,8 @@ 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
|
|
18
|
+
export interface IngredientMeta extends z.infer<typeof IngredientMetaSchema> {
|
|
19
|
+
}
|
|
19
20
|
export declare const IngredientContentSchema: z.ZodObject<{
|
|
20
21
|
name: z.ZodString;
|
|
21
22
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -29,7 +30,8 @@ export declare const IngredientContentSchema: z.ZodObject<{
|
|
|
29
30
|
name: string;
|
|
30
31
|
notes?: string | undefined;
|
|
31
32
|
}>;
|
|
32
|
-
export
|
|
33
|
+
export interface IngredientContent extends z.infer<typeof IngredientContentSchema> {
|
|
34
|
+
}
|
|
33
35
|
export declare const IngredientSchema: z.ZodObject<{
|
|
34
36
|
name: z.ZodString;
|
|
35
37
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -52,7 +54,8 @@ export declare const IngredientSchema: z.ZodObject<{
|
|
|
52
54
|
quantity?: number | undefined;
|
|
53
55
|
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;
|
|
54
56
|
}>;
|
|
55
|
-
export
|
|
57
|
+
export interface Ingredient extends z.infer<typeof IngredientSchema> {
|
|
58
|
+
}
|
|
56
59
|
export declare const IngredientSectionMetaSchema: z.ZodObject<{
|
|
57
60
|
ingredients: z.ZodArray<z.ZodObject<{
|
|
58
61
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -88,7 +91,8 @@ export declare const IngredientSectionMetaSchema: z.ZodObject<{
|
|
|
88
91
|
unit?: "ml" | "l" | "tsp" | "tbsp" | "fl_oz" | "cup" | "pint" | "quart" | "gallon" | "mg" | "g" | "kg" | "oz" | "lb" | "piece" | "whole" | "half" | "quarter" | "slice" | "serving" | "clove" | "stalk" | "sprig" | "leaf" | "bunch" | "head" | "fillet" | "stick" | "sheet" | "can" | "package" | "bottle" | "jar" | "handful" | "pinch" | "dash" | "drop" | undefined;
|
|
89
92
|
}[];
|
|
90
93
|
}>;
|
|
91
|
-
export
|
|
94
|
+
export interface IngredientSectionMeta extends z.infer<typeof IngredientSectionMetaSchema> {
|
|
95
|
+
}
|
|
92
96
|
export declare const IngredientSectionContentSchema: z.ZodObject<{
|
|
93
97
|
ingredients: z.ZodArray<z.ZodObject<{
|
|
94
98
|
name: z.ZodString;
|
|
@@ -171,5 +175,6 @@ export declare const IngredientSectionSchema: z.ZodObject<{
|
|
|
171
175
|
}[];
|
|
172
176
|
title?: string | undefined;
|
|
173
177
|
}>;
|
|
174
|
-
export
|
|
178
|
+
export interface IngredientSection extends z.infer<typeof IngredientSectionSchema> {
|
|
179
|
+
}
|
|
175
180
|
//# 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,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AACH,MAAM,WAAW,cAAe,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAE/E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AACH,MAAM,WAAW,iBAAkB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC;CAAG;AAErF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAG3B,CAAC;AACH,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAEvE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AACH,MAAM,WAAW,qBAAsB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC;CAAG;AAE7F,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,WAAW,iBAAkB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC;CAAG"}
|
|
@@ -27,7 +27,8 @@ export declare const InstructionMetaSchema: z.ZodObject<{
|
|
|
27
27
|
unit: "celsius" | "fahrenheit";
|
|
28
28
|
} | undefined;
|
|
29
29
|
}>;
|
|
30
|
-
export
|
|
30
|
+
export interface InstructionMeta extends z.infer<typeof InstructionMetaSchema> {
|
|
31
|
+
}
|
|
31
32
|
export declare const InstructionContentSchema: z.ZodObject<{
|
|
32
33
|
step: z.ZodNumber;
|
|
33
34
|
text: z.ZodString;
|
|
@@ -38,7 +39,8 @@ export declare const InstructionContentSchema: z.ZodObject<{
|
|
|
38
39
|
text: string;
|
|
39
40
|
step: number;
|
|
40
41
|
}>;
|
|
41
|
-
export
|
|
42
|
+
export interface InstructionContent extends z.infer<typeof InstructionContentSchema> {
|
|
43
|
+
}
|
|
42
44
|
export declare const InstructionSchema: z.ZodObject<{
|
|
43
45
|
step: z.ZodNumber;
|
|
44
46
|
text: z.ZodString;
|
|
@@ -70,5 +72,6 @@ export declare const InstructionSchema: z.ZodObject<{
|
|
|
70
72
|
unit: "celsius" | "fahrenheit";
|
|
71
73
|
} | undefined;
|
|
72
74
|
}>;
|
|
73
|
-
export
|
|
75
|
+
export interface Instruction extends z.infer<typeof InstructionSchema> {
|
|
76
|
+
}
|
|
74
77
|
//# 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,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAC;AACH,MAAM,WAAW,eAAgB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC;CAAG;AAEjF,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AACH,MAAM,WAAW,kBAAmB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC;CAAG;AAEvF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AACH,MAAM,WAAW,WAAY,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC;CAAG"}
|
|
@@ -34,5 +34,6 @@ export declare const NutritionSchema: z.ZodObject<{
|
|
|
34
34
|
sodium?: number | undefined;
|
|
35
35
|
sugar?: number | undefined;
|
|
36
36
|
}>;
|
|
37
|
-
export
|
|
37
|
+
export interface Nutrition extends z.infer<typeof NutritionSchema> {
|
|
38
|
+
}
|
|
38
39
|
//# 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,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1B,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"nutrition.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/nutrition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1B,CAAC;AACH,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC;CAAG"}
|
|
@@ -174,7 +174,8 @@ export declare const RecipeMetaSchema: z.ZodObject<{
|
|
|
174
174
|
time?: unknown;
|
|
175
175
|
updatedAt?: unknown;
|
|
176
176
|
}>;
|
|
177
|
-
export
|
|
177
|
+
export interface RecipeMeta extends z.infer<typeof RecipeMetaSchema> {
|
|
178
|
+
}
|
|
178
179
|
export declare const RecipeContentSchema: z.ZodObject<{
|
|
179
180
|
description: z.ZodString;
|
|
180
181
|
equipment: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -283,7 +284,8 @@ export declare const RecipeContentSchema: z.ZodObject<{
|
|
|
283
284
|
}[] | undefined;
|
|
284
285
|
tips?: string[] | undefined;
|
|
285
286
|
}>;
|
|
286
|
-
export
|
|
287
|
+
export interface RecipeContent extends z.infer<typeof RecipeContentSchema> {
|
|
288
|
+
}
|
|
287
289
|
export declare const RecipeSchema: z.ZodObject<{
|
|
288
290
|
allergens: z.ZodArray<z.ZodEnum<["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"]>, "many">;
|
|
289
291
|
confidence: z.ZodNumber;
|
|
@@ -493,7 +495,8 @@ export declare const RecipeSchema: z.ZodObject<{
|
|
|
493
495
|
title?: unknown;
|
|
494
496
|
updatedAt?: unknown;
|
|
495
497
|
}>;
|
|
496
|
-
export
|
|
498
|
+
export interface Recipe extends z.infer<typeof RecipeSchema> {
|
|
499
|
+
}
|
|
497
500
|
export declare const RecipeStatsSchema: z.ZodObject<{
|
|
498
501
|
comments: z.ZodNumber;
|
|
499
502
|
likes: z.ZodNumber;
|
|
@@ -519,5 +522,6 @@ export declare const RecipeStatsSchema: z.ZodObject<{
|
|
|
519
522
|
saves: number;
|
|
520
523
|
views: number;
|
|
521
524
|
}>;
|
|
522
|
-
export
|
|
525
|
+
export interface RecipeStats extends z.infer<typeof RecipeStatsSchema> {
|
|
526
|
+
}
|
|
523
527
|
//# 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,KAAK,CAAC;AA8BxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB3B,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8BxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB3B,CAAC;AACH,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAEvE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ9B,CAAC;AACH,MAAM,WAAW,aAAc,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAE7E,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BvB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC;CAAG;AAE/D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EAQ5B,CAAC;AACH,MAAM,WAAW,WAAY,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC;CAAG"}
|
|
@@ -9,5 +9,6 @@ export declare const TemperatureSchema: z.ZodObject<{
|
|
|
9
9
|
value: number;
|
|
10
10
|
unit: "celsius" | "fahrenheit";
|
|
11
11
|
}>;
|
|
12
|
-
export
|
|
12
|
+
export interface Temperature extends z.infer<typeof TemperatureSchema> {
|
|
13
|
+
}
|
|
13
14
|
//# 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,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"temperature.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/temperature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AACH,MAAM,WAAW,WAAY,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC;CAAG"}
|
|
@@ -15,7 +15,8 @@ export declare const ReportEvidenceSchema: z.ZodObject<{
|
|
|
15
15
|
contentSnapshot?: string | undefined;
|
|
16
16
|
imageHashes?: string[] | undefined;
|
|
17
17
|
}>;
|
|
18
|
-
export
|
|
18
|
+
export interface ReportEvidence extends z.infer<typeof ReportEvidenceSchema> {
|
|
19
|
+
}
|
|
19
20
|
export declare const ReportSchema: z.ZodObject<{
|
|
20
21
|
categories: z.ZodArray<z.ZodString, "many">;
|
|
21
22
|
createdAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
@@ -91,5 +92,6 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
91
92
|
updatedAt?: unknown;
|
|
92
93
|
userId?: unknown;
|
|
93
94
|
}>;
|
|
94
|
-
export
|
|
95
|
+
export interface Report extends z.infer<typeof ReportSchema> {
|
|
96
|
+
}
|
|
95
97
|
//# sourceMappingURL=report.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/types/report/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/types/report/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AACH,MAAM,WAAW,cAAe,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAE/E,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBvB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC;CAAG"}
|
package/package.json
CHANGED
package/src/types/ai/recipe.ts
CHANGED
|
@@ -31,4 +31,4 @@ export const AIRecipeSchema = z.object({
|
|
|
31
31
|
tips: z.array(z.string().max(500)).max(10).optional(),
|
|
32
32
|
title: z.string().min(3).max(200),
|
|
33
33
|
});
|
|
34
|
-
export
|
|
34
|
+
export interface AIRecipe extends z.infer<typeof AIRecipeSchema> {}
|
|
@@ -13,4 +13,4 @@ export const AIRecipeTranslationSchema = z.object({
|
|
|
13
13
|
tips: z.array(z.string().max(500)).optional(),
|
|
14
14
|
title: z.string().min(3).max(200),
|
|
15
15
|
});
|
|
16
|
-
export
|
|
16
|
+
export interface AIRecipeTranslation extends z.infer<typeof AIRecipeTranslationSchema> {}
|
package/src/types/core/asset.ts
CHANGED
|
@@ -15,7 +15,7 @@ export const NotificationSettingsSchema = z.object({
|
|
|
15
15
|
marketing: z.boolean(),
|
|
16
16
|
weeklyDigest: z.boolean(),
|
|
17
17
|
});
|
|
18
|
-
export
|
|
18
|
+
export interface NotificationSettings extends z.infer<typeof NotificationSettingsSchema> {}
|
|
19
19
|
|
|
20
20
|
export const SettingsSchema = z.object({
|
|
21
21
|
id: z.string(),
|
|
@@ -32,4 +32,4 @@ export const SettingsSchema = z.object({
|
|
|
32
32
|
createdAt: z.custom<Timestamp>(),
|
|
33
33
|
updatedAt: z.custom<Timestamp>(),
|
|
34
34
|
});
|
|
35
|
-
export
|
|
35
|
+
export interface Settings extends z.infer<typeof SettingsSchema> {}
|
package/src/types/iam/profile.ts
CHANGED
|
@@ -13,7 +13,7 @@ export const ProfileSchema = z.object({
|
|
|
13
13
|
updatedAt: z.custom<Timestamp>(),
|
|
14
14
|
verified: z.boolean(),
|
|
15
15
|
});
|
|
16
|
-
export
|
|
16
|
+
export interface Profile extends z.infer<typeof ProfileSchema> {}
|
|
17
17
|
|
|
18
18
|
export const ProfileStatsSchema = z.object({
|
|
19
19
|
followers: z.number().int().nonnegative(),
|
|
@@ -23,4 +23,4 @@ export const ProfileStatsSchema = z.object({
|
|
|
23
23
|
saves: z.number().int().nonnegative(),
|
|
24
24
|
updatedAt: z.number().int(),
|
|
25
25
|
});
|
|
26
|
-
export
|
|
26
|
+
export interface ProfileStats extends z.infer<typeof ProfileStatsSchema> {}
|
|
@@ -14,7 +14,7 @@ export const MemberSchema = z.object({
|
|
|
14
14
|
invitedAt: z.custom<Timestamp>(),
|
|
15
15
|
joinedAt: z.custom<Timestamp>().optional(),
|
|
16
16
|
});
|
|
17
|
-
export
|
|
17
|
+
export interface Member extends z.infer<typeof MemberSchema> {}
|
|
18
18
|
|
|
19
19
|
export const SubscriptionSchema = z.object({
|
|
20
20
|
expiresAt: z.custom<Timestamp>(),
|
|
@@ -24,4 +24,4 @@ export const SubscriptionSchema = z.object({
|
|
|
24
24
|
tier: SubscriptionTierSchema,
|
|
25
25
|
updatedAt: z.custom<Timestamp>(),
|
|
26
26
|
});
|
|
27
|
-
export
|
|
27
|
+
export interface Subscription extends z.infer<typeof SubscriptionSchema> {}
|
package/src/types/iam/user.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const ModerationSuggestionSchema = z.object({
|
|
|
14
14
|
severity: SeveritySchema,
|
|
15
15
|
suggestion: z.string(),
|
|
16
16
|
});
|
|
17
|
-
export
|
|
17
|
+
export interface ModerationSuggestion extends z.infer<typeof ModerationSuggestionSchema> {}
|
|
18
18
|
|
|
19
19
|
export const ModerationSchema = z.object({
|
|
20
20
|
assessedAt: z.custom<Timestamp>().optional(),
|
|
@@ -31,14 +31,14 @@ export const ModerationSchema = z.object({
|
|
|
31
31
|
suggestions: z.array(ModerationSuggestionSchema).optional(),
|
|
32
32
|
userId: z.string(),
|
|
33
33
|
});
|
|
34
|
-
export
|
|
34
|
+
export interface Moderation extends z.infer<typeof ModerationSchema> {}
|
|
35
35
|
|
|
36
36
|
export const ModerateRecipeInputSchema = z.object({
|
|
37
37
|
moderationId: z.string(),
|
|
38
38
|
recipeId: z.string(),
|
|
39
39
|
userId: z.string(),
|
|
40
40
|
});
|
|
41
|
-
export
|
|
41
|
+
export interface ModerateRecipeInput extends z.infer<typeof ModerateRecipeInputSchema> {}
|
|
42
42
|
|
|
43
43
|
export const ModerateRecipeOutputSchema = z.object({
|
|
44
44
|
autoApproved: z.boolean(),
|
|
@@ -47,4 +47,4 @@ export const ModerateRecipeOutputSchema = z.object({
|
|
|
47
47
|
rejectionReason: z.string().optional(),
|
|
48
48
|
suggestions: z.array(ModerationSuggestionSchema),
|
|
49
49
|
});
|
|
50
|
-
export
|
|
50
|
+
export interface ModerateRecipeOutput extends z.infer<typeof ModerateRecipeOutputSchema> {}
|
|
@@ -5,17 +5,17 @@ export const EquipmentMetaSchema = z.object({
|
|
|
5
5
|
required: z.boolean().optional(),
|
|
6
6
|
slug: z.string().regex(SLUG_REGEX),
|
|
7
7
|
});
|
|
8
|
-
export
|
|
8
|
+
export interface EquipmentMeta extends z.infer<typeof EquipmentMetaSchema> {}
|
|
9
9
|
|
|
10
10
|
export const EquipmentContentSchema = z.object({
|
|
11
11
|
name: z.string().min(1).max(100),
|
|
12
12
|
notes: z.string().max(200).optional(),
|
|
13
13
|
slug: z.string().regex(SLUG_REGEX),
|
|
14
14
|
});
|
|
15
|
-
export
|
|
15
|
+
export interface EquipmentContent extends z.infer<typeof EquipmentContentSchema> {}
|
|
16
16
|
|
|
17
17
|
export const EquipmentSchema = z.object({
|
|
18
18
|
...EquipmentMetaSchema.shape,
|
|
19
19
|
...EquipmentContentSchema.shape,
|
|
20
20
|
});
|
|
21
|
-
export
|
|
21
|
+
export interface Equipment extends z.infer<typeof EquipmentSchema> {}
|
|
@@ -17,4 +17,4 @@ export const RecipeFiltersSchema = z.object({
|
|
|
17
17
|
spiciness: SpicinessSchema.optional(),
|
|
18
18
|
timeLimit: z.number().int().min(5).max(300).optional(),
|
|
19
19
|
});
|
|
20
|
-
export
|
|
20
|
+
export interface RecipeFilters extends z.infer<typeof RecipeFiltersSchema> {}
|
|
@@ -8,26 +8,26 @@ export const IngredientMetaSchema = z.object({
|
|
|
8
8
|
slug: z.string().regex(SLUG_REGEX),
|
|
9
9
|
unit: UnitSchema.optional(),
|
|
10
10
|
});
|
|
11
|
-
export
|
|
11
|
+
export interface IngredientMeta extends z.infer<typeof IngredientMetaSchema> {}
|
|
12
12
|
|
|
13
13
|
export const IngredientContentSchema = z.object({
|
|
14
14
|
name: z.string().min(1).max(100),
|
|
15
15
|
notes: z.string().max(200).optional(),
|
|
16
16
|
slug: z.string().regex(SLUG_REGEX),
|
|
17
17
|
});
|
|
18
|
-
export
|
|
18
|
+
export interface IngredientContent extends z.infer<typeof IngredientContentSchema> {}
|
|
19
19
|
|
|
20
20
|
export const IngredientSchema = z.object({
|
|
21
21
|
...IngredientMetaSchema.shape,
|
|
22
22
|
...IngredientContentSchema.shape,
|
|
23
23
|
});
|
|
24
|
-
export
|
|
24
|
+
export interface Ingredient extends z.infer<typeof IngredientSchema> {}
|
|
25
25
|
|
|
26
26
|
export const IngredientSectionMetaSchema = z.object({
|
|
27
27
|
ingredients: z.array(IngredientMetaSchema).min(1),
|
|
28
28
|
slug: z.string().regex(SLUG_REGEX),
|
|
29
29
|
});
|
|
30
|
-
export
|
|
30
|
+
export interface IngredientSectionMeta extends z.infer<typeof IngredientSectionMetaSchema> {}
|
|
31
31
|
|
|
32
32
|
export const IngredientSectionContentSchema = z.object({
|
|
33
33
|
ingredients: z.array(IngredientContentSchema).min(1),
|
|
@@ -43,4 +43,4 @@ export const IngredientSectionSchema = z.object({
|
|
|
43
43
|
slug: z.string().regex(SLUG_REGEX),
|
|
44
44
|
title: z.string().max(100).optional(),
|
|
45
45
|
});
|
|
46
|
-
export
|
|
46
|
+
export interface IngredientSection extends z.infer<typeof IngredientSectionSchema> {}
|
|
@@ -6,16 +6,16 @@ export const InstructionMetaSchema = z.object({
|
|
|
6
6
|
step: z.number().int().positive(),
|
|
7
7
|
temperature: TemperatureSchema.optional(),
|
|
8
8
|
});
|
|
9
|
-
export
|
|
9
|
+
export interface InstructionMeta extends z.infer<typeof InstructionMetaSchema> {}
|
|
10
10
|
|
|
11
11
|
export const InstructionContentSchema = z.object({
|
|
12
12
|
step: z.number().int().positive(),
|
|
13
13
|
text: z.string().min(1).max(1000),
|
|
14
14
|
});
|
|
15
|
-
export
|
|
15
|
+
export interface InstructionContent extends z.infer<typeof InstructionContentSchema> {}
|
|
16
16
|
|
|
17
17
|
export const InstructionSchema = z.object({
|
|
18
18
|
...InstructionMetaSchema.shape,
|
|
19
19
|
...InstructionContentSchema.shape,
|
|
20
20
|
});
|
|
21
|
-
export
|
|
21
|
+
export interface Instruction extends z.infer<typeof InstructionSchema> {}
|
|
@@ -15,4 +15,4 @@ export const NutritionSchema = z.object({
|
|
|
15
15
|
sodium: z.number().nonnegative().optional(),
|
|
16
16
|
sugar: z.number().nonnegative().optional(),
|
|
17
17
|
});
|
|
18
|
-
export
|
|
18
|
+
export interface Nutrition extends z.infer<typeof NutritionSchema> {}
|
|
@@ -53,7 +53,7 @@ export const RecipeMetaSchema = z.object({
|
|
|
53
53
|
time: z.number().int().min(1).max(1440),
|
|
54
54
|
updatedAt: z.custom<Timestamp>(),
|
|
55
55
|
});
|
|
56
|
-
export
|
|
56
|
+
export interface RecipeMeta extends z.infer<typeof RecipeMetaSchema> {}
|
|
57
57
|
|
|
58
58
|
export const RecipeContentSchema = z.object({
|
|
59
59
|
description: z.string().min(10).max(2000),
|
|
@@ -64,7 +64,7 @@ export const RecipeContentSchema = z.object({
|
|
|
64
64
|
tips: z.array(z.string().max(500)).max(20).optional(),
|
|
65
65
|
title: z.string().min(3).max(200),
|
|
66
66
|
});
|
|
67
|
-
export
|
|
67
|
+
export interface RecipeContent extends z.infer<typeof RecipeContentSchema> {}
|
|
68
68
|
|
|
69
69
|
export const RecipeSchema = z.object({
|
|
70
70
|
allergens: z.array(AllergenSchema),
|
|
@@ -95,7 +95,7 @@ export const RecipeSchema = z.object({
|
|
|
95
95
|
title: z.string().min(3).max(200),
|
|
96
96
|
updatedAt: z.custom<Timestamp>(),
|
|
97
97
|
});
|
|
98
|
-
export
|
|
98
|
+
export interface Recipe extends z.infer<typeof RecipeSchema> {}
|
|
99
99
|
|
|
100
100
|
export const RecipeStatsSchema = z.object({
|
|
101
101
|
comments: z.number().int().nonnegative(),
|
|
@@ -106,4 +106,4 @@ export const RecipeStatsSchema = z.object({
|
|
|
106
106
|
updatedAt: z.number().int(),
|
|
107
107
|
views: z.number().int().nonnegative(),
|
|
108
108
|
});
|
|
109
|
-
export
|
|
109
|
+
export interface RecipeStats extends z.infer<typeof RecipeStatsSchema> {}
|
|
@@ -13,7 +13,7 @@ export const ReportEvidenceSchema = z.object({
|
|
|
13
13
|
contentSnapshot: z.string().optional(),
|
|
14
14
|
imageHashes: z.array(z.string()).optional(),
|
|
15
15
|
});
|
|
16
|
-
export
|
|
16
|
+
export interface ReportEvidence extends z.infer<typeof ReportEvidenceSchema> {}
|
|
17
17
|
|
|
18
18
|
export const ReportSchema = z.object({
|
|
19
19
|
categories: z.array(z.string()),
|
|
@@ -35,4 +35,4 @@ export const ReportSchema = z.object({
|
|
|
35
35
|
updatedAt: z.custom<Timestamp>(),
|
|
36
36
|
userId: z.string(),
|
|
37
37
|
});
|
|
38
|
-
export
|
|
38
|
+
export interface Report extends z.infer<typeof ReportSchema> {}
|
package/src/nul
DELETED
|
File without changes
|