@cravery/core 0.0.19 → 0.0.21
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 +19 -1
- package/dist/types/ai/recipe.d.ts.map +1 -1
- package/dist/types/ai/recipe.js.map +1 -1
- package/dist/types/ai/translation.d.ts +9 -1
- package/dist/types/ai/translation.d.ts.map +1 -1
- package/dist/types/ai/translation.js.map +1 -1
- package/dist/types/core/asset.d.ts +7 -1
- package/dist/types/core/asset.d.ts.map +1 -1
- package/dist/types/core/asset.js.map +1 -1
- package/dist/types/core/settings.d.ts +24 -2
- package/dist/types/core/settings.d.ts.map +1 -1
- package/dist/types/core/settings.js.map +1 -1
- package/dist/types/iam/profile.d.ts +21 -2
- package/dist/types/iam/profile.d.ts.map +1 -1
- package/dist/types/iam/profile.js.map +1 -1
- package/dist/types/iam/subscription.d.ts +17 -2
- package/dist/types/iam/subscription.d.ts.map +1 -1
- package/dist/types/iam/subscription.js.map +1 -1
- package/dist/types/iam/user.d.ts +18 -1
- package/dist/types/iam/user.d.ts.map +1 -1
- package/dist/types/iam/user.js +1 -0
- package/dist/types/iam/user.js.map +1 -1
- package/dist/types/moderation/moderation.d.ts +36 -4
- package/dist/types/moderation/moderation.d.ts.map +1 -1
- package/dist/types/moderation/moderation.js.map +1 -1
- package/dist/types/recipe/equipment.d.ts +11 -3
- package/dist/types/recipe/equipment.d.ts.map +1 -1
- package/dist/types/recipe/equipment.js.map +1 -1
- package/dist/types/recipe/filters.d.ts +11 -1
- package/dist/types/recipe/filters.d.ts.map +1 -1
- package/dist/types/recipe/filters.js.map +1 -1
- package/dist/types/recipe/ingredient.d.ts +28 -6
- package/dist/types/recipe/ingredient.d.ts.map +1 -1
- package/dist/types/recipe/ingredient.js.map +1 -1
- package/dist/types/recipe/instruction.d.ts +12 -3
- package/dist/types/recipe/instruction.d.ts.map +1 -1
- package/dist/types/recipe/instruction.js.map +1 -1
- package/dist/types/recipe/nutrition.d.ts +11 -1
- package/dist/types/recipe/nutrition.d.ts.map +1 -1
- package/dist/types/recipe/nutrition.js +0 -4
- package/dist/types/recipe/nutrition.js.map +1 -1
- package/dist/types/recipe/recipe.d.ts +79 -4
- package/dist/types/recipe/recipe.d.ts.map +1 -1
- package/dist/types/recipe/recipe.js.map +1 -1
- package/dist/types/recipe/temperature.d.ts +5 -1
- package/dist/types/recipe/temperature.d.ts.map +1 -1
- package/dist/types/recipe/temperature.js.map +1 -1
- package/dist/types/report/report.d.ts +28 -2
- package/dist/types/report/report.d.ts.map +1 -1
- package/dist/types/report/report.js.map +1 -1
- package/package.json +1 -1
- package/src/types/ai/recipe.ts +30 -3
- package/src/types/ai/translation.ts +13 -2
- package/src/types/core/asset.ts +7 -1
- package/src/types/core/settings.ts +30 -4
- package/src/types/iam/profile.ts +23 -4
- package/src/types/iam/subscription.ts +20 -2
- package/src/types/iam/user.ts +16 -2
- package/src/types/moderation/moderation.ts +45 -8
- package/src/types/recipe/equipment.ts +16 -6
- package/src/types/recipe/filters.ts +17 -2
- package/src/types/recipe/ingredient.ts +39 -15
- package/src/types/recipe/instruction.ts +17 -7
- package/src/types/recipe/nutrition.ts +13 -2
- package/src/types/recipe/recipe.ts +97 -8
- package/src/types/recipe/temperature.ts +7 -3
- package/src/types/report/report.ts +33 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,yCAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"ingredient.js","sourceRoot":"","sources":["../../../src/types/recipe/ingredient.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,yCAA0C;AAC1C,mCAAgD;AASnC,QAAA,oBAAoB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE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AAG,UAAC,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,UAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7C,IAAI,EAAE,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,CAAwC,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { z } from "genkit";
|
|
2
|
+
import { type Temperature } from "./temperature";
|
|
3
|
+
export interface InstructionMeta {
|
|
4
|
+
duration?: number;
|
|
5
|
+
step: number;
|
|
6
|
+
temperature?: Temperature;
|
|
7
|
+
}
|
|
2
8
|
export declare const InstructionMetaSchema: z.ZodObject<{
|
|
3
9
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
4
10
|
step: z.ZodNumber;
|
|
@@ -27,7 +33,10 @@ export declare const InstructionMetaSchema: z.ZodObject<{
|
|
|
27
33
|
unit: "celsius" | "fahrenheit";
|
|
28
34
|
} | undefined;
|
|
29
35
|
}>;
|
|
30
|
-
export
|
|
36
|
+
export interface InstructionContent {
|
|
37
|
+
step: number;
|
|
38
|
+
text: string;
|
|
39
|
+
}
|
|
31
40
|
export declare const InstructionContentSchema: z.ZodObject<{
|
|
32
41
|
step: z.ZodNumber;
|
|
33
42
|
text: z.ZodString;
|
|
@@ -38,7 +47,8 @@ export declare const InstructionContentSchema: z.ZodObject<{
|
|
|
38
47
|
text: string;
|
|
39
48
|
step: number;
|
|
40
49
|
}>;
|
|
41
|
-
export
|
|
50
|
+
export interface Instruction extends InstructionMeta, InstructionContent {
|
|
51
|
+
}
|
|
42
52
|
export declare const InstructionSchema: z.ZodObject<{
|
|
43
53
|
step: z.ZodNumber;
|
|
44
54
|
text: z.ZodString;
|
|
@@ -70,5 +80,4 @@ export declare const InstructionSchema: z.ZodObject<{
|
|
|
70
80
|
unit: "celsius" | "fahrenheit";
|
|
71
81
|
} | undefined;
|
|
72
82
|
}>;
|
|
73
|
-
export type Instruction = z.infer<typeof InstructionSchema>;
|
|
74
83
|
//# 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,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAEpE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIK,CAAC;AAExC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;EAGK,CAAC;AAE3C,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,kBAAkB;CAAG;AAE3E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction.js","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,+
|
|
1
|
+
{"version":3,"file":"instruction.js","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,+CAAoE;AAQvD,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,CAAsC,CAAC;AAO3B,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,CAAyC,CAAC;AAI9B,QAAA,iBAAiB,GAAG,UAAC,CAAC,MAAM,iCACpC,6BAAqB,CAAC,KAAK,GAC3B,gCAAwB,CAAC,KAAK,EACA,CAAC"}
|
|
@@ -3,6 +3,17 @@ import { z } from "genkit";
|
|
|
3
3
|
* Nutrition data per serving.
|
|
4
4
|
* Units: calories (kcal), fat/carbs/protein/fiber/sugar (g), cholesterol/sodium (mg)
|
|
5
5
|
*/
|
|
6
|
+
export interface Nutrition {
|
|
7
|
+
calories: number;
|
|
8
|
+
carbs?: number;
|
|
9
|
+
cholesterol?: number;
|
|
10
|
+
fat?: number;
|
|
11
|
+
fiber?: number;
|
|
12
|
+
protein?: number;
|
|
13
|
+
saturatedFat?: number;
|
|
14
|
+
sodium?: number;
|
|
15
|
+
sugar?: number;
|
|
16
|
+
}
|
|
6
17
|
export declare const NutritionSchema: z.ZodObject<{
|
|
7
18
|
calories: z.ZodNumber;
|
|
8
19
|
carbs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -34,5 +45,4 @@ export declare const NutritionSchema: z.ZodObject<{
|
|
|
34
45
|
sodium?: number | undefined;
|
|
35
46
|
sugar?: number | undefined;
|
|
36
47
|
}>;
|
|
37
|
-
export type Nutrition = z.infer<typeof NutritionSchema>;
|
|
38
48
|
//# 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,QAAQ,CAAC;AAE3B;;;GAGG;AACH,
|
|
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,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUK,CAAC"}
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NutritionSchema = void 0;
|
|
4
4
|
const genkit_1 = require("genkit");
|
|
5
|
-
/**
|
|
6
|
-
* Nutrition data per serving.
|
|
7
|
-
* Units: calories (kcal), fat/carbs/protein/fiber/sugar (g), cholesterol/sodium (mg)
|
|
8
|
-
*/
|
|
9
5
|
exports.NutritionSchema = genkit_1.z.object({
|
|
10
6
|
calories: genkit_1.z.number().nonnegative(),
|
|
11
7
|
carbs: genkit_1.z.number().nonnegative().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nutrition.js","sourceRoot":"","sources":["../../../src/types/recipe/nutrition.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;
|
|
1
|
+
{"version":3,"file":"nutrition.js","sourceRoot":"","sources":["../../../src/types/recipe/nutrition.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAkBd,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,CAAgC,CAAC"}
|
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
import { z } from "genkit";
|
|
2
|
+
import type { Timestamp } from "firebase-admin/firestore";
|
|
3
|
+
import { type Locale } from "../core";
|
|
4
|
+
import { type Allergen, type Cuisine, type DietaryTag, type Difficulty, type MealType, type RecipeSource, type RecipeStatus, type Spiciness } from "./enums";
|
|
5
|
+
import { type Equipment, type EquipmentContent, type EquipmentMeta } from "./equipment";
|
|
6
|
+
import { type IngredientSection, type IngredientSectionContent, type IngredientSectionMeta } from "./ingredient";
|
|
7
|
+
import { type Instruction, type InstructionContent, type InstructionMeta } from "./instruction";
|
|
8
|
+
import { type Nutrition } from "./nutrition";
|
|
9
|
+
export interface RecipeMeta {
|
|
10
|
+
allergens: Allergen[];
|
|
11
|
+
confidence: number;
|
|
12
|
+
createdAt: Timestamp;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
cuisine: Cuisine;
|
|
15
|
+
deletedAt?: Timestamp;
|
|
16
|
+
dietaryTags: DietaryTag[];
|
|
17
|
+
difficulty: Difficulty;
|
|
18
|
+
equipment?: EquipmentMeta[];
|
|
19
|
+
id: string;
|
|
20
|
+
imageUrl?: string;
|
|
21
|
+
ingredientSections: IngredientSectionMeta[];
|
|
22
|
+
instructions: InstructionMeta[];
|
|
23
|
+
mealTypes: MealType[];
|
|
24
|
+
nutrition?: Nutrition;
|
|
25
|
+
originalLocale: Locale;
|
|
26
|
+
servings: number;
|
|
27
|
+
source: RecipeSource;
|
|
28
|
+
sourceUrl?: string;
|
|
29
|
+
spiciness: Spiciness;
|
|
30
|
+
status: RecipeStatus;
|
|
31
|
+
time: number;
|
|
32
|
+
updatedAt: Timestamp;
|
|
33
|
+
}
|
|
2
34
|
export declare const RecipeMetaSchema: z.ZodObject<{
|
|
3
35
|
allergens: z.ZodArray<z.ZodEnum<["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"]>, "many">;
|
|
4
36
|
confidence: z.ZodNumber;
|
|
@@ -174,7 +206,15 @@ export declare const RecipeMetaSchema: z.ZodObject<{
|
|
|
174
206
|
time?: unknown;
|
|
175
207
|
updatedAt?: unknown;
|
|
176
208
|
}>;
|
|
177
|
-
export
|
|
209
|
+
export interface RecipeContent {
|
|
210
|
+
description: string;
|
|
211
|
+
equipment?: EquipmentContent[];
|
|
212
|
+
ingredientSections: IngredientSectionContent[];
|
|
213
|
+
instructions: InstructionContent[];
|
|
214
|
+
locale: Locale;
|
|
215
|
+
tips?: string[];
|
|
216
|
+
title: string;
|
|
217
|
+
}
|
|
178
218
|
export declare const RecipeContentSchema: z.ZodObject<{
|
|
179
219
|
description: z.ZodString;
|
|
180
220
|
equipment: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -283,7 +323,35 @@ export declare const RecipeContentSchema: z.ZodObject<{
|
|
|
283
323
|
}[] | undefined;
|
|
284
324
|
tips?: string[] | undefined;
|
|
285
325
|
}>;
|
|
286
|
-
export
|
|
326
|
+
export interface Recipe {
|
|
327
|
+
allergens: Allergen[];
|
|
328
|
+
confidence: number;
|
|
329
|
+
createdAt: Timestamp;
|
|
330
|
+
createdBy: string;
|
|
331
|
+
cuisine: Cuisine;
|
|
332
|
+
deletedAt?: Timestamp;
|
|
333
|
+
description: string;
|
|
334
|
+
dietaryTags: DietaryTag[];
|
|
335
|
+
difficulty: Difficulty;
|
|
336
|
+
equipment?: Equipment[];
|
|
337
|
+
id: string;
|
|
338
|
+
imageUrl?: string;
|
|
339
|
+
ingredientSections: IngredientSection[];
|
|
340
|
+
instructions: Instruction[];
|
|
341
|
+
locale: Locale;
|
|
342
|
+
mealTypes: MealType[];
|
|
343
|
+
nutrition?: Nutrition;
|
|
344
|
+
originalLocale: Locale;
|
|
345
|
+
servings: number;
|
|
346
|
+
source: RecipeSource;
|
|
347
|
+
sourceUrl?: string;
|
|
348
|
+
spiciness: Spiciness;
|
|
349
|
+
status: RecipeStatus;
|
|
350
|
+
time: number;
|
|
351
|
+
tips?: string[];
|
|
352
|
+
title: string;
|
|
353
|
+
updatedAt: Timestamp;
|
|
354
|
+
}
|
|
287
355
|
export declare const RecipeSchema: z.ZodObject<{
|
|
288
356
|
allergens: z.ZodArray<z.ZodEnum<["celery", "dairy", "eggs", "fish", "gluten", "lupin", "mustard", "nuts", "peanuts", "sesame", "shellfish", "soy", "sulfites"]>, "many">;
|
|
289
357
|
confidence: z.ZodNumber;
|
|
@@ -493,7 +561,15 @@ export declare const RecipeSchema: z.ZodObject<{
|
|
|
493
561
|
title?: unknown;
|
|
494
562
|
updatedAt?: unknown;
|
|
495
563
|
}>;
|
|
496
|
-
export
|
|
564
|
+
export interface RecipeStats {
|
|
565
|
+
comments: number;
|
|
566
|
+
likes: number;
|
|
567
|
+
rating: number;
|
|
568
|
+
ratingCount: number;
|
|
569
|
+
saves: number;
|
|
570
|
+
updatedAt: number;
|
|
571
|
+
views: number;
|
|
572
|
+
}
|
|
497
573
|
export declare const RecipeStatsSchema: z.ZodObject<{
|
|
498
574
|
comments: z.ZodNumber;
|
|
499
575
|
likes: z.ZodNumber;
|
|
@@ -519,5 +595,4 @@ export declare const RecipeStatsSchema: z.ZodObject<{
|
|
|
519
595
|
saves: number;
|
|
520
596
|
views: number;
|
|
521
597
|
}>;
|
|
522
|
-
export type RecipeStats = z.infer<typeof RecipeStatsSchema>;
|
|
523
598
|
//# 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,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EASL,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,SAAS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EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BvB,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EAQK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAE3B,
|
|
1
|
+
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAE3B,kCAAoD;AACpD,mCAiBiB;AACjB,2CAOqB;AACrB,6CAOsB;AACtB,+CAOuB;AACvB,2CAA8D;AA4BjD,Q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GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACvC,IAAI,EAAE,UAAC,CAAC,KAAK,CAAC,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7C,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACjC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;CACjC,CAAC,CAAC;AAYU,QAAA,iBAAiB,GAAG,UAAC,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACxC,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,MAAM,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,WAAW,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC3C,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,SAAS,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACtC,CAAkC,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { z } from "genkit";
|
|
2
|
+
import { type TemperatureUnit } from "./enums";
|
|
3
|
+
export interface Temperature {
|
|
4
|
+
unit: TemperatureUnit;
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
2
7
|
export declare const TemperatureSchema: z.ZodObject<{
|
|
3
8
|
unit: z.ZodEnum<["celsius", "fahrenheit"]>;
|
|
4
9
|
value: z.ZodNumber;
|
|
@@ -9,5 +14,4 @@ export declare const TemperatureSchema: z.ZodObject<{
|
|
|
9
14
|
value: number;
|
|
10
15
|
unit: "celsius" | "fahrenheit";
|
|
11
16
|
}>;
|
|
12
|
-
export type Temperature = z.infer<typeof TemperatureSchema>;
|
|
13
17
|
//# 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,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"temperature.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/temperature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAEtE,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;EAGK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temperature.js","sourceRoot":"","sources":["../../../src/types/recipe/temperature.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"temperature.js","sourceRoot":"","sources":["../../../src/types/recipe/temperature.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAC3B,mCAAsE;AAOzD,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,CAAkC,CAAC"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { z } from "genkit";
|
|
2
|
+
import type { Timestamp } from "firebase-admin/firestore";
|
|
3
|
+
import { type ReportPriority, type ReportStatus, type ReportTargetType, type ReportType } from "./enums";
|
|
4
|
+
export interface ReportEvidence {
|
|
5
|
+
aiScore?: number;
|
|
6
|
+
aiSuggestions?: Record<string, unknown>[];
|
|
7
|
+
contentSnapshot?: string;
|
|
8
|
+
imageHashes?: string[];
|
|
9
|
+
}
|
|
2
10
|
export declare const ReportEvidenceSchema: z.ZodObject<{
|
|
3
11
|
aiScore: z.ZodOptional<z.ZodNumber>;
|
|
4
12
|
aiSuggestions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
@@ -15,7 +23,26 @@ export declare const ReportEvidenceSchema: z.ZodObject<{
|
|
|
15
23
|
contentSnapshot?: string | undefined;
|
|
16
24
|
imageHashes?: string[] | undefined;
|
|
17
25
|
}>;
|
|
18
|
-
export
|
|
26
|
+
export interface Report {
|
|
27
|
+
categories: string[];
|
|
28
|
+
createdAt: Timestamp;
|
|
29
|
+
description: string;
|
|
30
|
+
evidence?: ReportEvidence;
|
|
31
|
+
id: string;
|
|
32
|
+
notes?: string;
|
|
33
|
+
priority: ReportPriority;
|
|
34
|
+
reason: string;
|
|
35
|
+
reportedBy?: string;
|
|
36
|
+
resolution?: string;
|
|
37
|
+
reviewedAt?: Timestamp;
|
|
38
|
+
reviewedBy?: string;
|
|
39
|
+
status: ReportStatus;
|
|
40
|
+
targetId: string;
|
|
41
|
+
targetType: ReportTargetType;
|
|
42
|
+
type: ReportType;
|
|
43
|
+
updatedAt: Timestamp;
|
|
44
|
+
userId: string;
|
|
45
|
+
}
|
|
19
46
|
export declare const ReportSchema: z.ZodObject<{
|
|
20
47
|
categories: z.ZodArray<z.ZodString, "many">;
|
|
21
48
|
createdAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
@@ -91,5 +118,4 @@ export declare const ReportSchema: z.ZodObject<{
|
|
|
91
118
|
updatedAt?: unknown;
|
|
92
119
|
userId?: unknown;
|
|
93
120
|
}>;
|
|
94
|
-
export type Report = z.infer<typeof ReportSchema>;
|
|
95
121
|
//# 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,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/types/report/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAChB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAKK,CAAC;AAEvC,MAAM,WAAW,MAAM;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../src/types/report/report.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAE3B,
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../src/types/report/report.ts"],"names":[],"mappings":";;;AAAA,mCAA2B;AAE3B,mCASiB;AASJ,QAAA,oBAAoB,GAAG,UAAC,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,aAAa,EAAE,UAAC,CAAC,KAAK,CAAC,UAAC,CAAC,MAAM,CAAC,UAAC,CAAC,MAAM,EAAE,EAAE,UAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpE,eAAe,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,WAAW,EAAE,UAAC,CAAC,KAAK,CAAC,UAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC5C,CAAqC,CAAC;AAuB1B,QAAA,YAAY,GAAG,UAAC,CAAC,MAAM,CAAC;IACnC,UAAU,EAAE,UAAC,CAAC,KAAK,CAAC,UAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;IAChC,WAAW,EAAE,UAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,4BAAoB,CAAC,QAAQ,EAAE;IACzC,EAAE,EAAE,UAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,4BAAoB;IAC9B,MAAM,EAAE,UAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,UAAC,CAAC,MAAM,EAAa,CAAC,QAAQ,EAAE;IAC5C,UAAU,EAAE,UAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,0BAAkB;IAC1B,QAAQ,EAAE,UAAC,CAAC,MAAM,EAAE;IACpB,UAAU,EAAE,8BAAsB;IAClC,IAAI,EAAE,wBAAgB;IACtB,SAAS,EAAE,UAAC,CAAC,MAAM,EAAa;IAChC,MAAM,EAAE,UAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/types/ai/recipe.ts
CHANGED
|
@@ -10,8 +10,36 @@ import {
|
|
|
10
10
|
MealTypeSchema,
|
|
11
11
|
NutritionSchema,
|
|
12
12
|
SpicinessSchema,
|
|
13
|
+
type Allergen,
|
|
14
|
+
type Cuisine,
|
|
15
|
+
type DietaryTag,
|
|
16
|
+
type Difficulty,
|
|
17
|
+
type Equipment,
|
|
18
|
+
type IngredientSection,
|
|
19
|
+
type Instruction,
|
|
20
|
+
type MealType,
|
|
21
|
+
type Nutrition,
|
|
22
|
+
type Spiciness,
|
|
13
23
|
} from "../recipe";
|
|
14
|
-
|
|
24
|
+
|
|
25
|
+
export interface AIRecipe {
|
|
26
|
+
allergens: Allergen[];
|
|
27
|
+
confidence: number;
|
|
28
|
+
cuisine: Cuisine;
|
|
29
|
+
description: string;
|
|
30
|
+
dietaryTags: DietaryTag[];
|
|
31
|
+
difficulty: Difficulty;
|
|
32
|
+
equipment?: Equipment[];
|
|
33
|
+
ingredientSections: IngredientSection[];
|
|
34
|
+
instructions: Instruction[];
|
|
35
|
+
mealTypes: MealType[];
|
|
36
|
+
nutrition?: Nutrition;
|
|
37
|
+
servings: number;
|
|
38
|
+
spiciness: Spiciness;
|
|
39
|
+
time: number;
|
|
40
|
+
tips?: string[];
|
|
41
|
+
title: string;
|
|
42
|
+
}
|
|
15
43
|
|
|
16
44
|
export const AIRecipeSchema = z.object({
|
|
17
45
|
allergens: z.array(AllergenSchema),
|
|
@@ -30,5 +58,4 @@ export const AIRecipeSchema = z.object({
|
|
|
30
58
|
time: z.number().int().min(1).max(1440),
|
|
31
59
|
tips: z.array(z.string().max(500)).max(10).optional(),
|
|
32
60
|
title: z.string().min(3).max(200),
|
|
33
|
-
})
|
|
34
|
-
export type AIRecipe = z.infer<typeof AIRecipeSchema>;
|
|
61
|
+
}) satisfies z.ZodType<AIRecipe>;
|
|
@@ -3,8 +3,20 @@ import {
|
|
|
3
3
|
EquipmentContentSchema,
|
|
4
4
|
IngredientSectionContentSchema,
|
|
5
5
|
InstructionContentSchema,
|
|
6
|
+
type EquipmentContent,
|
|
7
|
+
type IngredientSectionContent,
|
|
8
|
+
type InstructionContent,
|
|
6
9
|
} from "../recipe";
|
|
7
10
|
|
|
11
|
+
export interface AIRecipeTranslation {
|
|
12
|
+
description: string;
|
|
13
|
+
equipment?: EquipmentContent[];
|
|
14
|
+
ingredientSections: IngredientSectionContent[];
|
|
15
|
+
instructions: InstructionContent[];
|
|
16
|
+
tips?: string[];
|
|
17
|
+
title: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
8
20
|
export const AIRecipeTranslationSchema = z.object({
|
|
9
21
|
description: z.string().min(10).max(2000),
|
|
10
22
|
equipment: z.array(EquipmentContentSchema).optional(),
|
|
@@ -12,5 +24,4 @@ export const AIRecipeTranslationSchema = z.object({
|
|
|
12
24
|
instructions: z.array(InstructionContentSchema).min(1),
|
|
13
25
|
tips: z.array(z.string().max(500)).optional(),
|
|
14
26
|
title: z.string().min(3).max(200),
|
|
15
|
-
})
|
|
16
|
-
export type AIRecipeTranslation = z.infer<typeof AIRecipeTranslationSchema>;
|
|
27
|
+
}) satisfies z.ZodType<AIRecipeTranslation>;
|
package/src/types/core/asset.ts
CHANGED
|
@@ -2,10 +2,16 @@ import { z } from "genkit";
|
|
|
2
2
|
import type { Timestamp } from "firebase-admin/firestore";
|
|
3
3
|
import { SLUG_REGEX } from "../../config";
|
|
4
4
|
|
|
5
|
+
export interface Asset {
|
|
6
|
+
createdAt: Timestamp;
|
|
7
|
+
id: string;
|
|
8
|
+
imageUrl?: string;
|
|
9
|
+
updatedAt: Timestamp;
|
|
10
|
+
}
|
|
11
|
+
|
|
5
12
|
export const AssetSchema = z.object({
|
|
6
13
|
createdAt: z.custom<Timestamp>(),
|
|
7
14
|
id: z.string().regex(SLUG_REGEX),
|
|
8
15
|
imageUrl: z.string().optional(),
|
|
9
16
|
updatedAt: z.custom<Timestamp>(),
|
|
10
17
|
});
|
|
11
|
-
export type Asset = z.infer<typeof AssetSchema>;
|
|
@@ -1,21 +1,48 @@
|
|
|
1
1
|
import { z } from "genkit";
|
|
2
2
|
import type { Timestamp } from "firebase-admin/firestore";
|
|
3
|
-
import { LocaleSchema, MeasurementSystemSchema, ThemeSchema } from "./enums";
|
|
3
|
+
import { LocaleSchema, MeasurementSystemSchema, ThemeSchema, type Locale, type MeasurementSystem, type Theme } from "./enums";
|
|
4
4
|
import {
|
|
5
5
|
AllergenSchema,
|
|
6
6
|
CuisineSchema,
|
|
7
7
|
DietaryTagSchema,
|
|
8
8
|
SpicinessSchema,
|
|
9
9
|
TemperatureUnitSchema,
|
|
10
|
+
type Allergen,
|
|
11
|
+
type Cuisine,
|
|
12
|
+
type DietaryTag,
|
|
13
|
+
type Spiciness,
|
|
14
|
+
type TemperatureUnit,
|
|
10
15
|
} from "../recipe";
|
|
11
16
|
|
|
17
|
+
export interface NotificationSettings {
|
|
18
|
+
email: boolean;
|
|
19
|
+
push: boolean;
|
|
20
|
+
marketing: boolean;
|
|
21
|
+
weeklyDigest: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
12
24
|
export const NotificationSettingsSchema = z.object({
|
|
13
25
|
email: z.boolean(),
|
|
14
26
|
push: z.boolean(),
|
|
15
27
|
marketing: z.boolean(),
|
|
16
28
|
weeklyDigest: z.boolean(),
|
|
17
|
-
})
|
|
18
|
-
|
|
29
|
+
}) satisfies z.ZodType<NotificationSettings>;
|
|
30
|
+
|
|
31
|
+
export interface Settings {
|
|
32
|
+
id: string;
|
|
33
|
+
allergens: Allergen[];
|
|
34
|
+
dietaryTags: DietaryTag[];
|
|
35
|
+
cuisines: Cuisine[];
|
|
36
|
+
spiciness?: Spiciness;
|
|
37
|
+
excludedIngredients: string[];
|
|
38
|
+
locale: Locale;
|
|
39
|
+
temperatureUnit: TemperatureUnit;
|
|
40
|
+
measurementSystem: MeasurementSystem;
|
|
41
|
+
theme: Theme;
|
|
42
|
+
notifications: NotificationSettings;
|
|
43
|
+
createdAt: Timestamp;
|
|
44
|
+
updatedAt: Timestamp;
|
|
45
|
+
}
|
|
19
46
|
|
|
20
47
|
export const SettingsSchema = z.object({
|
|
21
48
|
id: z.string(),
|
|
@@ -32,4 +59,3 @@ export const SettingsSchema = z.object({
|
|
|
32
59
|
createdAt: z.custom<Timestamp>(),
|
|
33
60
|
updatedAt: z.custom<Timestamp>(),
|
|
34
61
|
});
|
|
35
|
-
export type Settings = z.infer<typeof SettingsSchema>;
|
package/src/types/iam/profile.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { z } from "genkit";
|
|
2
2
|
import type { Timestamp } from "firebase-admin/firestore";
|
|
3
|
-
import { ProfileStatusSchema } from "./enums";
|
|
3
|
+
import { ProfileStatusSchema, type ProfileStatus } from "./enums";
|
|
4
|
+
|
|
5
|
+
export interface Profile {
|
|
6
|
+
bio?: string;
|
|
7
|
+
createdAt: Timestamp;
|
|
8
|
+
id: string;
|
|
9
|
+
imageUrl?: string;
|
|
10
|
+
name: string;
|
|
11
|
+
public: boolean;
|
|
12
|
+
status: ProfileStatus;
|
|
13
|
+
updatedAt: Timestamp;
|
|
14
|
+
verified: boolean;
|
|
15
|
+
}
|
|
4
16
|
|
|
5
17
|
export const ProfileSchema = z.object({
|
|
6
18
|
bio: z.string().max(280).optional(),
|
|
@@ -13,7 +25,15 @@ export const ProfileSchema = z.object({
|
|
|
13
25
|
updatedAt: z.custom<Timestamp>(),
|
|
14
26
|
verified: z.boolean(),
|
|
15
27
|
});
|
|
16
|
-
|
|
28
|
+
|
|
29
|
+
export interface ProfileStats {
|
|
30
|
+
followers: number;
|
|
31
|
+
following: number;
|
|
32
|
+
likes: number;
|
|
33
|
+
recipes: number;
|
|
34
|
+
saves: number;
|
|
35
|
+
updatedAt: number;
|
|
36
|
+
}
|
|
17
37
|
|
|
18
38
|
export const ProfileStatsSchema = z.object({
|
|
19
39
|
followers: z.number().int().nonnegative(),
|
|
@@ -22,5 +42,4 @@ export const ProfileStatsSchema = z.object({
|
|
|
22
42
|
recipes: z.number().int().nonnegative(),
|
|
23
43
|
saves: z.number().int().nonnegative(),
|
|
24
44
|
updatedAt: z.number().int(),
|
|
25
|
-
})
|
|
26
|
-
export type ProfileStats = z.infer<typeof ProfileStatsSchema>;
|
|
45
|
+
}) satisfies z.ZodType<ProfileStats>;
|
|
@@ -4,9 +4,20 @@ import {
|
|
|
4
4
|
SubscriptionRoleSchema,
|
|
5
5
|
SubscriptionStatusSchema,
|
|
6
6
|
SubscriptionTierSchema,
|
|
7
|
+
type SubscriptionRole,
|
|
8
|
+
type SubscriptionStatus,
|
|
9
|
+
type SubscriptionTier,
|
|
7
10
|
} from "./enums";
|
|
8
11
|
import { MAX_MEMBERS_FAMILY_PLAN } from "../../config";
|
|
9
12
|
|
|
13
|
+
export interface Member {
|
|
14
|
+
userId: string;
|
|
15
|
+
role: SubscriptionRole;
|
|
16
|
+
status: SubscriptionStatus;
|
|
17
|
+
invitedAt: Timestamp;
|
|
18
|
+
joinedAt?: Timestamp;
|
|
19
|
+
}
|
|
20
|
+
|
|
10
21
|
export const MemberSchema = z.object({
|
|
11
22
|
userId: z.string(),
|
|
12
23
|
role: SubscriptionRoleSchema,
|
|
@@ -14,7 +25,15 @@ export const MemberSchema = z.object({
|
|
|
14
25
|
invitedAt: z.custom<Timestamp>(),
|
|
15
26
|
joinedAt: z.custom<Timestamp>().optional(),
|
|
16
27
|
});
|
|
17
|
-
|
|
28
|
+
|
|
29
|
+
export interface Subscription {
|
|
30
|
+
expiresAt: Timestamp;
|
|
31
|
+
id: string;
|
|
32
|
+
members?: Member[];
|
|
33
|
+
providerId: string;
|
|
34
|
+
tier: SubscriptionTier;
|
|
35
|
+
updatedAt: Timestamp;
|
|
36
|
+
}
|
|
18
37
|
|
|
19
38
|
export const SubscriptionSchema = z.object({
|
|
20
39
|
expiresAt: z.custom<Timestamp>(),
|
|
@@ -24,4 +43,3 @@ export const SubscriptionSchema = z.object({
|
|
|
24
43
|
tier: SubscriptionTierSchema,
|
|
25
44
|
updatedAt: z.custom<Timestamp>(),
|
|
26
45
|
});
|
|
27
|
-
export type Subscription = z.infer<typeof SubscriptionSchema>;
|
package/src/types/iam/user.ts
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import { z } from "genkit";
|
|
2
2
|
import type { Timestamp } from "firebase-admin/firestore";
|
|
3
|
-
import { UserRoleSchema, UserStatusSchema } from "./enums";
|
|
3
|
+
import { UserRoleSchema, UserStatusSchema, type UserRole, type UserStatus } from "./enums";
|
|
4
|
+
|
|
5
|
+
export interface User {
|
|
6
|
+
createdAt: Timestamp;
|
|
7
|
+
deletedAt?: Timestamp;
|
|
8
|
+
email: string;
|
|
9
|
+
id: string;
|
|
10
|
+
imageUrl?: string;
|
|
11
|
+
name: string;
|
|
12
|
+
role: UserRole;
|
|
13
|
+
status: UserStatus;
|
|
14
|
+
subscriptionId?: string;
|
|
15
|
+
updatedAt: Timestamp;
|
|
16
|
+
verified: boolean;
|
|
17
|
+
}
|
|
4
18
|
|
|
5
19
|
export const UserSchema = z.object({
|
|
6
20
|
createdAt: z.custom<Timestamp>(),
|
|
7
21
|
deletedAt: z.custom<Timestamp>().optional(),
|
|
8
22
|
email: z.string().email(),
|
|
9
23
|
id: z.string(),
|
|
24
|
+
imageUrl: z.string().url().optional(),
|
|
10
25
|
name: z.string().min(1).max(50),
|
|
11
26
|
role: UserRoleSchema,
|
|
12
27
|
status: UserStatusSchema,
|
|
@@ -14,4 +29,3 @@ export const UserSchema = z.object({
|
|
|
14
29
|
updatedAt: z.custom<Timestamp>(),
|
|
15
30
|
verified: z.boolean(),
|
|
16
31
|
});
|
|
17
|
-
export type User = z.infer<typeof UserSchema>;
|