@cravery/core 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/ai/embedding.d.ts +2 -1
- package/dist/lib/ai/embedding.d.ts.map +1 -1
- package/dist/lib/ai/embedding.js +4 -17
- package/dist/lib/ai/embedding.js.map +1 -1
- package/dist/lib/ai/genkit.d.ts +1 -0
- package/dist/lib/ai/genkit.d.ts.map +1 -1
- package/dist/lib/ai/genkit.js +14 -1
- package/dist/lib/ai/genkit.js.map +1 -1
- package/dist/types/ai/recipe.d.ts +1 -244
- package/dist/types/ai/recipe.d.ts.map +1 -1
- package/dist/types/ai/recipe.js +0 -28
- package/dist/types/ai/recipe.js.map +1 -1
- package/dist/types/ai/translation.d.ts +1 -107
- package/dist/types/ai/translation.d.ts.map +1 -1
- package/dist/types/ai/translation.js +0 -11
- package/dist/types/ai/translation.js.map +1 -1
- package/dist/types/core/api.d.ts +4 -4
- package/dist/types/core/api.d.ts.map +1 -1
- package/dist/types/core/asset.d.ts +2 -22
- package/dist/types/core/asset.d.ts.map +1 -1
- package/dist/types/core/asset.js +0 -9
- package/dist/types/core/asset.js.map +1 -1
- package/dist/types/core/entity.d.ts +7 -0
- package/dist/types/core/entity.d.ts.map +1 -0
- package/dist/types/core/entity.js +3 -0
- package/dist/types/core/entity.js.map +1 -0
- package/dist/types/core/index.d.ts +5 -1
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/index.js +5 -1
- package/dist/types/core/index.js.map +1 -1
- package/dist/types/core/locale.d.ts +3 -0
- package/dist/types/core/locale.d.ts.map +1 -0
- package/dist/types/core/locale.js +5 -0
- package/dist/types/core/locale.js.map +1 -0
- package/dist/types/core/measurement_system.d.ts +3 -0
- package/dist/types/core/measurement_system.d.ts.map +1 -0
- package/dist/types/core/measurement_system.js +5 -0
- package/dist/types/core/measurement_system.js.map +1 -0
- package/dist/types/core/settings.d.ts +5 -88
- package/dist/types/core/settings.d.ts.map +1 -1
- package/dist/types/core/settings.js +0 -25
- package/dist/types/core/settings.js.map +1 -1
- package/dist/types/core/theme.d.ts +3 -0
- package/dist/types/core/theme.d.ts.map +1 -0
- package/dist/types/core/theme.js +5 -0
- package/dist/types/core/theme.js.map +1 -0
- package/dist/types/core/timestamp.d.ts +5 -0
- package/dist/types/core/timestamp.d.ts.map +1 -0
- package/dist/types/core/timestamp.js +3 -0
- package/dist/types/core/timestamp.js.map +1 -0
- package/dist/types/iam/index.d.ts +6 -1
- package/dist/types/iam/index.d.ts.map +1 -1
- package/dist/types/iam/index.js +6 -1
- package/dist/types/iam/index.js.map +1 -1
- package/dist/types/iam/profile.d.ts +2 -56
- package/dist/types/iam/profile.d.ts.map +1 -1
- package/dist/types/iam/profile.js +0 -22
- package/dist/types/iam/profile.js.map +1 -1
- package/dist/types/iam/profile_status.d.ts +3 -0
- package/dist/types/iam/profile_status.d.ts.map +1 -0
- package/dist/types/iam/profile_status.js +10 -0
- package/dist/types/iam/profile_status.js.map +1 -0
- package/dist/types/iam/subscription.d.ts +4 -80
- package/dist/types/iam/subscription.d.ts.map +1 -1
- package/dist/types/iam/subscription.js +0 -19
- package/dist/types/iam/subscription.js.map +1 -1
- package/dist/types/iam/subscription_role.d.ts +3 -0
- package/dist/types/iam/subscription_role.d.ts.map +1 -0
- package/dist/types/iam/subscription_role.js +5 -0
- package/dist/types/iam/subscription_role.js.map +1 -0
- package/dist/types/iam/subscription_status.d.ts +3 -0
- package/dist/types/iam/subscription_status.d.ts.map +1 -0
- package/dist/types/iam/subscription_status.js +10 -0
- package/dist/types/iam/subscription_status.js.map +1 -0
- package/dist/types/iam/subscription_tier.d.ts +3 -0
- package/dist/types/iam/subscription_tier.d.ts.map +1 -0
- package/dist/types/iam/subscription_tier.js +5 -0
- package/dist/types/iam/subscription_tier.js.map +1 -0
- package/dist/types/iam/user.d.ts +3 -42
- package/dist/types/iam/user.d.ts.map +1 -1
- package/dist/types/iam/user.js +0 -16
- package/dist/types/iam/user.js.map +1 -1
- package/dist/types/iam/user_role.d.ts +5 -0
- package/dist/types/iam/user_role.d.ts.map +1 -0
- package/dist/types/iam/user_role.js +16 -0
- package/dist/types/iam/user_role.js.map +1 -0
- package/dist/types/iam/user_status.d.ts +3 -0
- package/dist/types/iam/user_status.d.ts.map +1 -0
- package/dist/types/iam/user_status.js +10 -0
- package/dist/types/iam/user_status.js.map +1 -0
- package/dist/types/moderation/index.d.ts +4 -1
- package/dist/types/moderation/index.d.ts.map +1 -1
- package/dist/types/moderation/index.js +4 -1
- package/dist/types/moderation/index.js.map +1 -1
- package/dist/types/moderation/moderation.d.ts +5 -137
- package/dist/types/moderation/moderation.d.ts.map +1 -1
- package/dist/types/moderation/moderation.js +0 -37
- package/dist/types/moderation/moderation.js.map +1 -1
- package/dist/types/moderation/moderation_status.d.ts +3 -0
- package/dist/types/moderation/moderation_status.d.ts.map +1 -0
- package/dist/types/moderation/moderation_status.js +9 -0
- package/dist/types/moderation/moderation_status.js.map +1 -0
- package/dist/types/moderation/priority.d.ts +3 -0
- package/dist/types/moderation/priority.d.ts.map +1 -0
- package/dist/types/moderation/priority.js +5 -0
- package/dist/types/moderation/priority.js.map +1 -0
- package/dist/types/moderation/severity.d.ts +3 -0
- package/dist/types/moderation/severity.d.ts.map +1 -0
- package/dist/types/moderation/severity.js +5 -0
- package/dist/types/moderation/severity.js.map +1 -0
- package/dist/types/moderation/suggestion_category.d.ts +3 -0
- package/dist/types/moderation/suggestion_category.d.ts.map +1 -0
- package/dist/types/moderation/suggestion_category.js +11 -0
- package/dist/types/moderation/suggestion_category.js.map +1 -0
- package/dist/types/recipe/allergen.d.ts +3 -0
- package/dist/types/recipe/allergen.d.ts.map +1 -0
- package/dist/types/recipe/allergen.js +19 -0
- package/dist/types/recipe/allergen.js.map +1 -0
- package/dist/types/recipe/cuisine.d.ts +3 -0
- package/dist/types/recipe/cuisine.d.ts.map +1 -0
- package/dist/types/recipe/cuisine.js +39 -0
- package/dist/types/recipe/cuisine.js.map +1 -0
- package/dist/types/recipe/dietary_tag.d.ts +3 -0
- package/dist/types/recipe/dietary_tag.d.ts.map +1 -0
- package/dist/types/recipe/dietary_tag.js +21 -0
- package/dist/types/recipe/dietary_tag.js.map +1 -0
- package/dist/types/recipe/difficulty.d.ts +3 -0
- package/dist/types/recipe/difficulty.d.ts.map +1 -0
- package/dist/types/recipe/difficulty.js +10 -0
- package/dist/types/recipe/difficulty.js.map +1 -0
- package/dist/types/recipe/equipment.d.ts +0 -40
- package/dist/types/recipe/equipment.d.ts.map +1 -1
- package/dist/types/recipe/equipment.js +0 -12
- package/dist/types/recipe/equipment.js.map +1 -1
- package/dist/types/recipe/filters.d.ts +5 -30
- package/dist/types/recipe/filters.d.ts.map +1 -1
- package/dist/types/recipe/filters.js +0 -13
- package/dist/types/recipe/filters.js.map +1 -1
- package/dist/types/recipe/index.d.ts +10 -1
- package/dist/types/recipe/index.d.ts.map +1 -1
- package/dist/types/recipe/index.js +10 -1
- package/dist/types/recipe/index.js.map +1 -1
- package/dist/types/recipe/ingredient.d.ts +1 -169
- package/dist/types/recipe/ingredient.d.ts.map +1 -1
- package/dist/types/recipe/ingredient.js +0 -29
- package/dist/types/recipe/ingredient.js.map +1 -1
- package/dist/types/recipe/instruction.d.ts +2 -72
- package/dist/types/recipe/instruction.d.ts.map +1 -1
- package/dist/types/recipe/instruction.js +0 -13
- package/dist/types/recipe/instruction.js.map +1 -1
- package/dist/types/recipe/meal_type.d.ts +3 -0
- package/dist/types/recipe/meal_type.d.ts.map +1 -0
- package/dist/types/recipe/meal_type.js +14 -0
- package/dist/types/recipe/meal_type.js.map +1 -0
- package/dist/types/recipe/nutrition.d.ts +0 -36
- package/dist/types/recipe/nutrition.d.ts.map +1 -1
- package/dist/types/recipe/nutrition.js +0 -13
- package/dist/types/recipe/nutrition.js.map +1 -1
- package/dist/types/recipe/recipe.d.ts +14 -525
- package/dist/types/recipe/recipe.d.ts.map +1 -1
- package/dist/types/recipe/recipe.js +0 -80
- package/dist/types/recipe/recipe.js.map +1 -1
- package/dist/types/recipe/recipe_source.d.ts +3 -0
- package/dist/types/recipe/recipe_source.d.ts.map +1 -0
- package/dist/types/recipe/recipe_source.js +5 -0
- package/dist/types/recipe/recipe_source.js.map +1 -0
- package/dist/types/recipe/recipe_status.d.ts +3 -0
- package/dist/types/recipe/recipe_status.d.ts.map +1 -0
- package/dist/types/recipe/recipe_status.js +12 -0
- package/dist/types/recipe/recipe_status.js.map +1 -0
- package/dist/types/recipe/spiciness.d.ts +3 -0
- package/dist/types/recipe/spiciness.d.ts.map +1 -0
- package/dist/types/recipe/spiciness.js +5 -0
- package/dist/types/recipe/spiciness.js.map +1 -0
- package/dist/types/recipe/temperature.d.ts +1 -12
- package/dist/types/recipe/temperature.d.ts.map +1 -1
- package/dist/types/recipe/temperature.js +0 -7
- package/dist/types/recipe/temperature.js.map +1 -1
- package/dist/types/recipe/temperature_unit.d.ts +3 -0
- package/dist/types/recipe/temperature_unit.d.ts.map +1 -0
- package/dist/types/recipe/temperature_unit.js +5 -0
- package/dist/types/recipe/temperature_unit.js.map +1 -0
- package/dist/types/recipe/unit.d.ts +3 -0
- package/dist/types/recipe/unit.d.ts.map +1 -0
- package/dist/types/recipe/unit.js +51 -0
- package/dist/types/recipe/unit.js.map +1 -0
- package/dist/types/report/index.d.ts +4 -1
- package/dist/types/report/index.d.ts.map +1 -1
- package/dist/types/report/index.js +4 -1
- package/dist/types/report/index.js.map +1 -1
- package/dist/types/report/report.d.ts +5 -94
- package/dist/types/report/report.d.ts.map +1 -1
- package/dist/types/report/report.js +0 -29
- package/dist/types/report/report.js.map +1 -1
- package/dist/types/report/report_priority.d.ts +3 -0
- package/dist/types/report/report_priority.d.ts.map +1 -0
- package/dist/types/report/report_priority.js +10 -0
- package/dist/types/report/report_priority.js.map +1 -0
- package/dist/types/report/report_status.d.ts +3 -0
- package/dist/types/report/report_status.d.ts.map +1 -0
- package/dist/types/report/report_status.js +10 -0
- package/dist/types/report/report_status.js.map +1 -0
- package/dist/types/report/report_target_type.d.ts +3 -0
- package/dist/types/report/report_target_type.d.ts.map +1 -0
- package/dist/types/report/report_target_type.js +10 -0
- package/dist/types/report/report_target_type.js.map +1 -0
- package/dist/types/report/report_type.d.ts +3 -0
- package/dist/types/report/report_type.d.ts.map +1 -0
- package/dist/types/report/report_type.js +12 -0
- package/dist/types/report/report_type.js.map +1 -0
- package/package.json +3 -14
- package/src/index.ts +0 -1
- package/src/types/ai/recipe.ts +10 -47
- package/src/types/ai/translation.ts +1 -18
- package/src/types/core/api.ts +4 -4
- package/src/types/core/asset.ts +2 -14
- package/src/types/core/entity.ts +7 -0
- package/src/types/core/index.ts +5 -1
- package/src/types/core/{enums/locale.ts → locale.ts} +0 -3
- package/src/types/core/{enums/measurement_system.ts → measurement_system.ts} +0 -3
- package/src/types/core/settings.ts +9 -43
- package/src/types/core/{enums/theme.ts → theme.ts} +0 -3
- package/src/types/core/timestamp.ts +4 -0
- package/src/types/iam/index.ts +6 -1
- package/src/types/iam/profile.ts +2 -24
- package/src/types/iam/{enums/profile_status.ts → profile_status.ts} +0 -3
- package/src/types/iam/subscription.ts +4 -28
- package/src/types/iam/{enums/subscription_role.ts → subscription_role.ts} +0 -3
- package/src/types/iam/{enums/subscription_status.ts → subscription_status.ts} +0 -3
- package/src/types/iam/subscription_tier.ts +2 -0
- package/src/types/iam/user.ts +3 -22
- package/src/types/iam/user_role.ts +15 -0
- package/src/types/iam/{enums/user_status.ts → user_status.ts} +0 -3
- package/src/types/moderation/index.ts +4 -1
- package/src/types/moderation/moderation.ts +5 -50
- package/src/types/moderation/{enums/moderation_status.ts → moderation_status.ts} +0 -3
- package/src/types/moderation/{enums/priority.ts → priority.ts} +0 -3
- package/src/types/moderation/{enums/severity.ts → severity.ts} +0 -3
- package/src/types/moderation/suggestion_category.ts +8 -0
- package/src/types/recipe/{enums/allergen.ts → allergen.ts} +0 -3
- package/src/types/recipe/{enums/cuisine.ts → cuisine.ts} +0 -3
- package/src/types/recipe/{enums/dietary_tag.ts → dietary_tag.ts} +0 -3
- package/src/types/recipe/{enums/difficulty.ts → difficulty.ts} +0 -3
- package/src/types/recipe/equipment.ts +0 -18
- package/src/types/recipe/filters.ts +5 -24
- package/src/types/recipe/index.ts +10 -1
- package/src/types/recipe/ingredient.ts +1 -37
- package/src/types/recipe/instruction.ts +2 -19
- package/src/types/recipe/{enums/meal_type.ts → meal_type.ts} +0 -3
- package/src/types/recipe/nutrition.ts +0 -18
- package/src/types/recipe/recipe.ts +18 -118
- package/src/types/recipe/{enums/recipe_source.ts → recipe_source.ts} +0 -3
- package/src/types/recipe/{enums/recipe_status.ts → recipe_status.ts} +0 -3
- package/src/types/recipe/{enums/spiciness.ts → spiciness.ts} +0 -3
- package/src/types/recipe/temperature.ts +1 -7
- package/src/types/recipe/{enums/temperature_unit.ts → temperature_unit.ts} +0 -3
- package/src/types/recipe/{enums/unit.ts → unit.ts} +0 -3
- package/src/types/report/index.ts +4 -1
- package/src/types/report/report.ts +5 -40
- package/src/types/report/{enums/report_priority.ts → report_priority.ts} +0 -3
- package/src/types/report/{enums/report_status.ts → report_status.ts} +0 -3
- package/src/types/report/{enums/report_target_type.ts → report_target_type.ts} +0 -3
- package/src/types/report/{enums/report_type.ts → report_type.ts} +0 -3
- package/src/lib/ai/cost.ts +0 -82
- package/src/lib/ai/embedding.ts +0 -64
- package/src/lib/ai/errors.ts +0 -43
- package/src/lib/ai/flow.ts +0 -134
- package/src/lib/ai/genkit.ts +0 -24
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_role.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription_role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,8BAA+B,CAAC;AACrE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_role.js","sourceRoot":"","sources":["../../../src/types/iam/subscription_role.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_status.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,uDAK7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSCRIPTION_STATUS_VALUES = void 0;
|
|
4
|
+
exports.SUBSCRIPTION_STATUS_VALUES = [
|
|
5
|
+
"active",
|
|
6
|
+
"deleted",
|
|
7
|
+
"pending",
|
|
8
|
+
"rejected",
|
|
9
|
+
];
|
|
10
|
+
//# sourceMappingURL=subscription_status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_status.js","sourceRoot":"","sources":["../../../src/types/iam/subscription_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,QAAQ;IACR,SAAS;IACT,SAAS;IACT,UAAU;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_tier.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription_tier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,oCAAqC,CAAC;AAC3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_tier.js","sourceRoot":"","sources":["../../../src/types/iam/subscription_tier.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC"}
|
package/dist/types/iam/user.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { Timestamp } from "../core";
|
|
2
|
+
import { UserRole } from "./user_role";
|
|
3
|
+
import { UserStatus } from "./user_status";
|
|
4
4
|
export interface User {
|
|
5
5
|
createdAt: Timestamp;
|
|
6
6
|
deletedAt?: Timestamp;
|
|
@@ -14,43 +14,4 @@ export interface User {
|
|
|
14
14
|
updatedAt: Timestamp;
|
|
15
15
|
verified: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare const UserSchema: z.ZodObject<{
|
|
18
|
-
createdAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
19
|
-
deletedAt: z.ZodOptional<z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>>;
|
|
20
|
-
email: z.ZodString;
|
|
21
|
-
id: z.ZodString;
|
|
22
|
-
imageUrl: z.ZodOptional<z.ZodString>;
|
|
23
|
-
name: z.ZodString;
|
|
24
|
-
role: z.ZodEnum<["admin", "moderator", "translator", "user", "guest"]>;
|
|
25
|
-
status: z.ZodEnum<["active", "deleted", "pending", "suspended"]>;
|
|
26
|
-
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
27
|
-
updatedAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
28
|
-
verified: z.ZodBoolean;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
[x: string]: any;
|
|
31
|
-
createdAt?: unknown;
|
|
32
|
-
deletedAt?: unknown;
|
|
33
|
-
email?: unknown;
|
|
34
|
-
id?: unknown;
|
|
35
|
-
imageUrl?: unknown;
|
|
36
|
-
name?: unknown;
|
|
37
|
-
role?: unknown;
|
|
38
|
-
status?: unknown;
|
|
39
|
-
subscriptionId?: unknown;
|
|
40
|
-
updatedAt?: unknown;
|
|
41
|
-
verified?: unknown;
|
|
42
|
-
}, {
|
|
43
|
-
[x: string]: any;
|
|
44
|
-
createdAt?: unknown;
|
|
45
|
-
deletedAt?: unknown;
|
|
46
|
-
email?: unknown;
|
|
47
|
-
id?: unknown;
|
|
48
|
-
imageUrl?: unknown;
|
|
49
|
-
name?: unknown;
|
|
50
|
-
role?: unknown;
|
|
51
|
-
status?: unknown;
|
|
52
|
-
subscriptionId?: unknown;
|
|
53
|
-
updatedAt?: unknown;
|
|
54
|
-
verified?: unknown;
|
|
55
|
-
}>;
|
|
56
17
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,WAAW,IAAI;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
package/dist/types/iam/user.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserSchema = void 0;
|
|
4
|
-
const genkit_1 = require("genkit");
|
|
5
|
-
const enums_1 = require("./enums");
|
|
6
|
-
exports.UserSchema = genkit_1.z.object({
|
|
7
|
-
createdAt: genkit_1.z.custom(),
|
|
8
|
-
deletedAt: genkit_1.z.custom().optional(),
|
|
9
|
-
email: genkit_1.z.string().email(),
|
|
10
|
-
id: genkit_1.z.string(),
|
|
11
|
-
imageUrl: genkit_1.z.string().url().optional(),
|
|
12
|
-
name: genkit_1.z.string().min(1).max(50),
|
|
13
|
-
role: enums_1.UserRoleSchema,
|
|
14
|
-
status: enums_1.UserStatusSchema,
|
|
15
|
-
subscriptionId: genkit_1.z.string().optional(),
|
|
16
|
-
updatedAt: genkit_1.z.custom(),
|
|
17
|
-
verified: genkit_1.z.boolean(),
|
|
18
|
-
});
|
|
19
3
|
//# sourceMappingURL=user.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const USER_ROLE_VALUES: readonly ["admin", "moderator", "translator", "user", "guest"];
|
|
2
|
+
export type UserRole = (typeof USER_ROLE_VALUES)[number];
|
|
3
|
+
export declare const PRIVILEGED_USER_ROLES: UserRole[];
|
|
4
|
+
export type PrivilegedUserRole = (typeof PRIVILEGED_USER_ROLES)[number];
|
|
5
|
+
//# sourceMappingURL=user_role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user_role.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,gEAMnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,qBAAqB,EAAE,QAAQ,EAI3C,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRIVILEGED_USER_ROLES = exports.USER_ROLE_VALUES = void 0;
|
|
4
|
+
exports.USER_ROLE_VALUES = [
|
|
5
|
+
"admin",
|
|
6
|
+
"moderator",
|
|
7
|
+
"translator",
|
|
8
|
+
"user",
|
|
9
|
+
"guest",
|
|
10
|
+
];
|
|
11
|
+
exports.PRIVILEGED_USER_ROLES = [
|
|
12
|
+
"admin",
|
|
13
|
+
"moderator",
|
|
14
|
+
"translator",
|
|
15
|
+
];
|
|
16
|
+
//# sourceMappingURL=user_role.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user_role.js","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,OAAO;IACP,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;CACC,CAAC;AAGE,QAAA,qBAAqB,GAAe;IAC/C,OAAO;IACP,WAAW;IACX,YAAY;CACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user_status.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,wDAKrB,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user_status.js","sourceRoot":"","sources":["../../../src/types/iam/user_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,QAAQ;IACR,SAAS;IACT,SAAS;IACT,WAAW;CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC"}
|
|
@@ -14,6 +14,9 @@ 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("./moderation_status"), exports);
|
|
18
18
|
__exportStar(require("./moderation"), exports);
|
|
19
|
+
__exportStar(require("./priority"), exports);
|
|
20
|
+
__exportStar(require("./severity"), exports);
|
|
21
|
+
__exportStar(require("./suggestion_category"), exports);
|
|
19
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/moderation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,6CAA2B;AAC3B,6CAA2B;AAC3B,wDAAsC"}
|
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Locale, Timestamp } from "../core";
|
|
2
|
+
import { ModerationStatus } from "./moderation_status";
|
|
3
|
+
import { Priority } from "./priority";
|
|
4
|
+
import { Severity } from "./severity";
|
|
5
|
+
import { SuggestionCategory } from "./suggestion_category";
|
|
5
6
|
export interface ModerationSuggestion {
|
|
6
7
|
category: SuggestionCategory;
|
|
7
8
|
field: string;
|
|
8
9
|
severity: Severity;
|
|
9
10
|
suggestion: string;
|
|
10
11
|
}
|
|
11
|
-
export declare const ModerationSuggestionSchema: z.ZodObject<{
|
|
12
|
-
category: z.ZodEnum<["missing_info", "unclear_instruction", "image_quality", "nutrition", "safety"]>;
|
|
13
|
-
field: z.ZodString;
|
|
14
|
-
severity: z.ZodEnum<["low", "medium", "high"]>;
|
|
15
|
-
suggestion: z.ZodString;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
|
|
18
|
-
field: string;
|
|
19
|
-
severity: "medium" | "low" | "high";
|
|
20
|
-
suggestion: string;
|
|
21
|
-
}, {
|
|
22
|
-
category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
|
|
23
|
-
field: string;
|
|
24
|
-
severity: "medium" | "low" | "high";
|
|
25
|
-
suggestion: string;
|
|
26
|
-
}>;
|
|
27
12
|
export interface Moderation {
|
|
28
13
|
assessedAt?: Timestamp;
|
|
29
14
|
createdAt: Timestamp;
|
|
@@ -39,84 +24,11 @@ export interface Moderation {
|
|
|
39
24
|
suggestions?: ModerationSuggestion[];
|
|
40
25
|
userId: string;
|
|
41
26
|
}
|
|
42
|
-
export declare const ModerationSchema: z.ZodObject<{
|
|
43
|
-
assessedAt: z.ZodOptional<z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>>;
|
|
44
|
-
createdAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
45
|
-
id: z.ZodString;
|
|
46
|
-
originalLocale: z.ZodEnum<["en", "ar", "es", "fr", "ru"]>;
|
|
47
|
-
priority: z.ZodEnum<["low", "medium", "high"]>;
|
|
48
|
-
qualityScore: z.ZodOptional<z.ZodNumber>;
|
|
49
|
-
recipeId: z.ZodString;
|
|
50
|
-
rejectionReason: z.ZodOptional<z.ZodString>;
|
|
51
|
-
reviewedAt: z.ZodOptional<z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>>;
|
|
52
|
-
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
53
|
-
status: z.ZodEnum<["approved", "pending", "rejected"]>;
|
|
54
|
-
suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
-
category: z.ZodEnum<["missing_info", "unclear_instruction", "image_quality", "nutrition", "safety"]>;
|
|
56
|
-
field: z.ZodString;
|
|
57
|
-
severity: z.ZodEnum<["low", "medium", "high"]>;
|
|
58
|
-
suggestion: z.ZodString;
|
|
59
|
-
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
|
|
61
|
-
field: string;
|
|
62
|
-
severity: "medium" | "low" | "high";
|
|
63
|
-
suggestion: string;
|
|
64
|
-
}, {
|
|
65
|
-
category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
|
|
66
|
-
field: string;
|
|
67
|
-
severity: "medium" | "low" | "high";
|
|
68
|
-
suggestion: string;
|
|
69
|
-
}>, "many">>;
|
|
70
|
-
userId: z.ZodString;
|
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
[x: string]: any;
|
|
73
|
-
assessedAt?: unknown;
|
|
74
|
-
createdAt?: unknown;
|
|
75
|
-
id?: unknown;
|
|
76
|
-
originalLocale?: unknown;
|
|
77
|
-
priority?: unknown;
|
|
78
|
-
qualityScore?: unknown;
|
|
79
|
-
recipeId?: unknown;
|
|
80
|
-
rejectionReason?: unknown;
|
|
81
|
-
reviewedAt?: unknown;
|
|
82
|
-
reviewedBy?: unknown;
|
|
83
|
-
status?: unknown;
|
|
84
|
-
suggestions?: unknown;
|
|
85
|
-
userId?: unknown;
|
|
86
|
-
}, {
|
|
87
|
-
[x: string]: any;
|
|
88
|
-
assessedAt?: unknown;
|
|
89
|
-
createdAt?: unknown;
|
|
90
|
-
id?: unknown;
|
|
91
|
-
originalLocale?: unknown;
|
|
92
|
-
priority?: unknown;
|
|
93
|
-
qualityScore?: unknown;
|
|
94
|
-
recipeId?: unknown;
|
|
95
|
-
rejectionReason?: unknown;
|
|
96
|
-
reviewedAt?: unknown;
|
|
97
|
-
reviewedBy?: unknown;
|
|
98
|
-
status?: unknown;
|
|
99
|
-
suggestions?: unknown;
|
|
100
|
-
userId?: unknown;
|
|
101
|
-
}>;
|
|
102
27
|
export interface ModerateRecipeInput {
|
|
103
28
|
moderationId: string;
|
|
104
29
|
recipeId: string;
|
|
105
30
|
userId: string;
|
|
106
31
|
}
|
|
107
|
-
export declare const ModerateRecipeInputSchema: z.ZodObject<{
|
|
108
|
-
moderationId: z.ZodString;
|
|
109
|
-
recipeId: z.ZodString;
|
|
110
|
-
userId: z.ZodString;
|
|
111
|
-
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
userId: string;
|
|
113
|
-
recipeId: string;
|
|
114
|
-
moderationId: string;
|
|
115
|
-
}, {
|
|
116
|
-
userId: string;
|
|
117
|
-
recipeId: string;
|
|
118
|
-
moderationId: string;
|
|
119
|
-
}>;
|
|
120
32
|
export interface ModerateRecipeOutput {
|
|
121
33
|
autoApproved: boolean;
|
|
122
34
|
autoRejected: boolean;
|
|
@@ -124,48 +36,4 @@ export interface ModerateRecipeOutput {
|
|
|
124
36
|
rejectionReason?: string;
|
|
125
37
|
suggestions: ModerationSuggestion[];
|
|
126
38
|
}
|
|
127
|
-
export declare const ModerateRecipeOutputSchema: z.ZodObject<{
|
|
128
|
-
autoApproved: z.ZodBoolean;
|
|
129
|
-
autoRejected: z.ZodBoolean;
|
|
130
|
-
qualityScore: z.ZodNumber;
|
|
131
|
-
rejectionReason: z.ZodOptional<z.ZodString>;
|
|
132
|
-
suggestions: z.ZodArray<z.ZodObject<{
|
|
133
|
-
category: z.ZodEnum<["missing_info", "unclear_instruction", "image_quality", "nutrition", "safety"]>;
|
|
134
|
-
field: z.ZodString;
|
|
135
|
-
severity: z.ZodEnum<["low", "medium", "high"]>;
|
|
136
|
-
suggestion: z.ZodString;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
|
|
139
|
-
field: string;
|
|
140
|
-
severity: "medium" | "low" | "high";
|
|
141
|
-
suggestion: string;
|
|
142
|
-
}, {
|
|
143
|
-
category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
|
|
144
|
-
field: string;
|
|
145
|
-
severity: "medium" | "low" | "high";
|
|
146
|
-
suggestion: string;
|
|
147
|
-
}>, "many">;
|
|
148
|
-
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
qualityScore: number;
|
|
150
|
-
suggestions: {
|
|
151
|
-
category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
|
|
152
|
-
field: string;
|
|
153
|
-
severity: "medium" | "low" | "high";
|
|
154
|
-
suggestion: string;
|
|
155
|
-
}[];
|
|
156
|
-
autoApproved: boolean;
|
|
157
|
-
autoRejected: boolean;
|
|
158
|
-
rejectionReason?: string | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
qualityScore: number;
|
|
161
|
-
suggestions: {
|
|
162
|
-
category: "nutrition" | "missing_info" | "unclear_instruction" | "image_quality" | "safety";
|
|
163
|
-
field: string;
|
|
164
|
-
severity: "medium" | "low" | "high";
|
|
165
|
-
suggestion: string;
|
|
166
|
-
}[];
|
|
167
|
-
autoApproved: boolean;
|
|
168
|
-
autoRejected: boolean;
|
|
169
|
-
rejectionReason?: string | undefined;
|
|
170
|
-
}>;
|
|
171
39
|
//# 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,
|
|
1
|
+
{"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrC"}
|
|
@@ -1,40 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModerateRecipeOutputSchema = exports.ModerateRecipeInputSchema = exports.ModerationSchema = exports.ModerationSuggestionSchema = void 0;
|
|
4
|
-
const genkit_1 = require("genkit");
|
|
5
|
-
const core_1 = require("../core");
|
|
6
|
-
const enums_1 = require("./enums");
|
|
7
|
-
exports.ModerationSuggestionSchema = genkit_1.z.object({
|
|
8
|
-
category: enums_1.SuggestionCategorySchema,
|
|
9
|
-
field: genkit_1.z.string(),
|
|
10
|
-
severity: enums_1.SeveritySchema,
|
|
11
|
-
suggestion: genkit_1.z.string(),
|
|
12
|
-
});
|
|
13
|
-
exports.ModerationSchema = genkit_1.z.object({
|
|
14
|
-
assessedAt: genkit_1.z.custom().optional(),
|
|
15
|
-
createdAt: genkit_1.z.custom(),
|
|
16
|
-
id: genkit_1.z.string(),
|
|
17
|
-
originalLocale: core_1.LocaleSchema,
|
|
18
|
-
priority: enums_1.PrioritySchema,
|
|
19
|
-
qualityScore: genkit_1.z.number().min(0).max(1).optional(),
|
|
20
|
-
recipeId: genkit_1.z.string(),
|
|
21
|
-
rejectionReason: genkit_1.z.string().optional(),
|
|
22
|
-
reviewedAt: genkit_1.z.custom().optional(),
|
|
23
|
-
reviewedBy: genkit_1.z.string().optional(),
|
|
24
|
-
status: enums_1.ModerationStatusSchema,
|
|
25
|
-
suggestions: genkit_1.z.array(exports.ModerationSuggestionSchema).optional(),
|
|
26
|
-
userId: genkit_1.z.string(),
|
|
27
|
-
});
|
|
28
|
-
exports.ModerateRecipeInputSchema = genkit_1.z.object({
|
|
29
|
-
moderationId: genkit_1.z.string(),
|
|
30
|
-
recipeId: genkit_1.z.string(),
|
|
31
|
-
userId: genkit_1.z.string(),
|
|
32
|
-
});
|
|
33
|
-
exports.ModerateRecipeOutputSchema = genkit_1.z.object({
|
|
34
|
-
autoApproved: genkit_1.z.boolean(),
|
|
35
|
-
autoRejected: genkit_1.z.boolean(),
|
|
36
|
-
qualityScore: genkit_1.z.number().min(0).max(1),
|
|
37
|
-
rejectionReason: genkit_1.z.string().optional(),
|
|
38
|
-
suggestions: genkit_1.z.array(exports.ModerationSuggestionSchema),
|
|
39
|
-
});
|
|
40
3
|
//# sourceMappingURL=moderation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"moderation.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation_status.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,8CAI3B,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation_status.js","sourceRoot":"","sources":["../../../src/types/moderation/moderation_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,UAAU;IACV,SAAS;IACT,UAAU;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"priority.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/priority.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oCAAqC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"priority.js","sourceRoot":"","sources":["../../../src/types/moderation/priority.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/severity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oCAAqC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"severity.js","sourceRoot":"","sources":["../../../src/types/moderation/severity.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suggestion_category.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/suggestion_category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,0FAM7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUGGESTION_CATEGORY_VALUES = void 0;
|
|
4
|
+
exports.SUGGESTION_CATEGORY_VALUES = [
|
|
5
|
+
"missing_info",
|
|
6
|
+
"unclear_instruction",
|
|
7
|
+
"image_quality",
|
|
8
|
+
"nutrition",
|
|
9
|
+
"safety",
|
|
10
|
+
];
|
|
11
|
+
//# sourceMappingURL=suggestion_category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suggestion_category.js","sourceRoot":"","sources":["../../../src/types/moderation/suggestion_category.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,cAAc;IACd,qBAAqB;IACrB,eAAe;IACf,WAAW;IACX,QAAQ;CACA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allergen.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/allergen.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yIAclB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ALLERGEN_VALUES = void 0;
|
|
4
|
+
exports.ALLERGEN_VALUES = [
|
|
5
|
+
"celery",
|
|
6
|
+
"dairy",
|
|
7
|
+
"eggs",
|
|
8
|
+
"fish",
|
|
9
|
+
"gluten",
|
|
10
|
+
"lupin",
|
|
11
|
+
"mustard",
|
|
12
|
+
"nuts",
|
|
13
|
+
"peanuts",
|
|
14
|
+
"sesame",
|
|
15
|
+
"shellfish",
|
|
16
|
+
"soy",
|
|
17
|
+
"sulfites",
|
|
18
|
+
];
|
|
19
|
+
//# sourceMappingURL=allergen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allergen.js","sourceRoot":"","sources":["../../../src/types/recipe/allergen.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,SAAS;IACT,MAAM;IACN,SAAS;IACT,QAAQ;IACR,WAAW;IACX,KAAK;IACL,UAAU;CACF,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const CUISINE_VALUES: readonly ["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"];
|
|
2
|
+
export type Cuisine = (typeof CUISINE_VALUES)[number];
|
|
3
|
+
//# sourceMappingURL=cuisine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cuisine.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/cuisine.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,+XAkCjB,CAAC;AACX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
|