@cravery/core 0.0.27 → 0.0.29
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/core/settings.d.ts +2 -5
- package/dist/types/core/settings.d.ts.map +1 -1
- package/dist/types/iam/profile.d.ts +2 -5
- package/dist/types/iam/profile.d.ts.map +1 -1
- package/dist/types/iam/subscription.d.ts +2 -4
- package/dist/types/iam/subscription.d.ts.map +1 -1
- package/dist/types/iam/user.d.ts +2 -5
- package/dist/types/iam/user.d.ts.map +1 -1
- package/dist/types/moderation/moderation.d.ts +2 -4
- package/dist/types/moderation/moderation.d.ts.map +1 -1
- package/dist/types/recipe/instruction.d.ts +2 -2
- package/dist/types/recipe/instruction.d.ts.map +1 -1
- package/dist/types/recipe/recipe.d.ts +3 -9
- package/dist/types/recipe/recipe.d.ts.map +1 -1
- package/dist/types/report/report.d.ts +2 -5
- package/dist/types/report/report.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/core/settings.ts +2 -5
- package/src/types/iam/profile.ts +2 -5
- package/src/types/iam/subscription.ts +2 -4
- package/src/types/iam/user.ts +2 -5
- package/src/types/moderation/moderation.ts +2 -4
- package/src/types/recipe/instruction.ts +2 -2
- package/src/types/recipe/recipe.ts +3 -9
- package/src/types/report/report.ts +2 -5
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { Allergen, Cuisine, DietaryTag, Spiciness, TemperatureUnit } from "../recipe";
|
|
2
|
+
import { Entity } from "./entity";
|
|
2
3
|
import { Locale } from "./locale";
|
|
3
4
|
import { MeasurementSystem } from "./measurement_system";
|
|
4
5
|
import { Theme } from "./theme";
|
|
5
|
-
import { Timestamp } from "./timestamp";
|
|
6
6
|
export interface NotificationSettings {
|
|
7
7
|
email: boolean;
|
|
8
8
|
push: boolean;
|
|
9
9
|
marketing: boolean;
|
|
10
10
|
weeklyDigest: boolean;
|
|
11
11
|
}
|
|
12
|
-
export interface Settings {
|
|
13
|
-
id: string;
|
|
12
|
+
export interface Settings extends Entity {
|
|
14
13
|
allergens: Allergen[];
|
|
15
14
|
dietaryTags: DietaryTag[];
|
|
16
15
|
cuisines: Cuisine[];
|
|
@@ -21,7 +20,5 @@ export interface Settings {
|
|
|
21
20
|
measurementSystem: MeasurementSystem;
|
|
22
21
|
theme: Theme;
|
|
23
22
|
notifications: NotificationSettings;
|
|
24
|
-
createdAt: Timestamp;
|
|
25
|
-
updatedAt: Timestamp;
|
|
26
23
|
}
|
|
27
24
|
//# 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,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAAS,EACT,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/types/core/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAAS,EACT,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,QAAS,SAAQ,MAAM;IACtC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,eAAe,CAAC;IACjC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,oBAAoB,CAAC;CACrC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from "../core";
|
|
2
2
|
import { ProfileStatus } from "./profile_status";
|
|
3
|
-
export interface Profile {
|
|
3
|
+
export interface Profile extends Entity {
|
|
4
4
|
bio?: string;
|
|
5
|
-
createdAt: Timestamp;
|
|
6
|
-
id: string;
|
|
7
5
|
imageUrl?: string;
|
|
8
6
|
name: string;
|
|
9
7
|
public: boolean;
|
|
10
8
|
status: ProfileStatus;
|
|
11
|
-
updatedAt: Timestamp;
|
|
12
9
|
verified: boolean;
|
|
13
10
|
}
|
|
14
11
|
export interface ProfileStats {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/types/iam/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/types/iam/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,OAAQ,SAAQ,MAAM;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Timestamp } from "../core";
|
|
1
|
+
import { Entity, Timestamp } from "../core";
|
|
2
2
|
import { SubscriptionRole } from "./subscription_role";
|
|
3
3
|
import { SubscriptionStatus } from "./subscription_status";
|
|
4
4
|
import { SubscriptionTier } from "./subscription_tier";
|
|
@@ -9,12 +9,10 @@ export interface Member {
|
|
|
9
9
|
invitedAt: Timestamp;
|
|
10
10
|
joinedAt?: Timestamp;
|
|
11
11
|
}
|
|
12
|
-
export interface Subscription {
|
|
12
|
+
export interface Subscription extends Entity {
|
|
13
13
|
expiresAt: Timestamp;
|
|
14
|
-
id: string;
|
|
15
14
|
members?: Member[];
|
|
16
15
|
providerId: string;
|
|
17
16
|
tier: SubscriptionTier;
|
|
18
|
-
updatedAt: Timestamp;
|
|
19
17
|
}
|
|
20
18
|
//# 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,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,gBAAgB,CAAC;CACxB"}
|
package/dist/types/iam/user.d.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { Timestamp } from "../core";
|
|
1
|
+
import { Entity, Timestamp } from "../core";
|
|
2
2
|
import { UserRole } from "./user_role";
|
|
3
3
|
import { UserStatus } from "./user_status";
|
|
4
|
-
export interface User {
|
|
5
|
-
createdAt: Timestamp;
|
|
4
|
+
export interface User extends Entity {
|
|
6
5
|
deletedAt?: Timestamp;
|
|
7
6
|
email: string;
|
|
8
|
-
id: string;
|
|
9
7
|
imageUrl?: string;
|
|
10
8
|
name: string;
|
|
11
9
|
role: UserRole;
|
|
12
10
|
status: UserStatus;
|
|
13
11
|
subscriptionId?: string;
|
|
14
|
-
updatedAt: Timestamp;
|
|
15
12
|
verified: boolean;
|
|
16
13
|
}
|
|
17
14
|
//# 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,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,WAAW,IAAK,SAAQ,MAAM;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,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,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Locale, Timestamp } from "../core";
|
|
1
|
+
import { Entity, Locale, Timestamp } from "../core";
|
|
2
2
|
import { ModerationStatus } from "./moderation_status";
|
|
3
3
|
import { Priority } from "./priority";
|
|
4
4
|
import { Severity } from "./severity";
|
|
@@ -9,10 +9,8 @@ export interface ModerationSuggestion {
|
|
|
9
9
|
severity: Severity;
|
|
10
10
|
suggestion: string;
|
|
11
11
|
}
|
|
12
|
-
export interface Moderation {
|
|
12
|
+
export interface Moderation extends Entity {
|
|
13
13
|
assessedAt?: Timestamp;
|
|
14
|
-
createdAt: Timestamp;
|
|
15
|
-
id: string;
|
|
16
14
|
originalLocale: Locale;
|
|
17
15
|
priority: Priority;
|
|
18
16
|
qualityScore?: number;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"moderation.d.ts","sourceRoot":"","sources":["../../../src/types/moderation/moderation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpD,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,UAAW,SAAQ,MAAM;IACxC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,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,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Temperature } from "./temperature";
|
|
2
2
|
export interface InstructionMeta {
|
|
3
3
|
duration?: number;
|
|
4
4
|
step: number;
|
|
5
|
-
temperature?:
|
|
5
|
+
temperature?: Temperature;
|
|
6
6
|
}
|
|
7
7
|
export interface InstructionContent {
|
|
8
8
|
step: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,kBAAkB;CAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Timestamp } from "../core";
|
|
1
|
+
import { Entity, Timestamp } from "../core";
|
|
2
2
|
import { Locale } from "../core/locale";
|
|
3
3
|
import { Allergen } from "./allergen";
|
|
4
4
|
import { Cuisine } from "./cuisine";
|
|
@@ -12,17 +12,15 @@ import { Nutrition } from "./nutrition";
|
|
|
12
12
|
import { RecipeSource } from "./recipe_source";
|
|
13
13
|
import { RecipeStatus } from "./recipe_status";
|
|
14
14
|
import { Spiciness } from "./spiciness";
|
|
15
|
-
export interface RecipeMeta {
|
|
15
|
+
export interface RecipeMeta extends Entity {
|
|
16
16
|
allergens: Allergen[];
|
|
17
17
|
confidence: number;
|
|
18
|
-
createdAt: Timestamp;
|
|
19
18
|
createdBy: string;
|
|
20
19
|
cuisine: Cuisine;
|
|
21
20
|
deletedAt?: Timestamp;
|
|
22
21
|
dietaryTags: DietaryTag[];
|
|
23
22
|
difficulty: Difficulty;
|
|
24
23
|
equipment?: EquipmentMeta[];
|
|
25
|
-
id: string;
|
|
26
24
|
imageUrl?: string;
|
|
27
25
|
ingredientSections: IngredientSectionMeta[];
|
|
28
26
|
instructions: InstructionMeta[];
|
|
@@ -35,7 +33,6 @@ export interface RecipeMeta {
|
|
|
35
33
|
spiciness: Spiciness;
|
|
36
34
|
status: RecipeStatus;
|
|
37
35
|
time: number;
|
|
38
|
-
updatedAt: Timestamp;
|
|
39
36
|
}
|
|
40
37
|
export interface RecipeContent {
|
|
41
38
|
description: string;
|
|
@@ -46,10 +43,9 @@ export interface RecipeContent {
|
|
|
46
43
|
tips?: string[];
|
|
47
44
|
title: string;
|
|
48
45
|
}
|
|
49
|
-
export interface Recipe {
|
|
46
|
+
export interface Recipe extends Entity {
|
|
50
47
|
allergens: Allergen[];
|
|
51
48
|
confidence: number;
|
|
52
|
-
createdAt: Timestamp;
|
|
53
49
|
createdBy: string;
|
|
54
50
|
cuisine: Cuisine;
|
|
55
51
|
deletedAt?: Timestamp;
|
|
@@ -57,7 +53,6 @@ export interface Recipe {
|
|
|
57
53
|
dietaryTags: DietaryTag[];
|
|
58
54
|
difficulty: Difficulty;
|
|
59
55
|
equipment?: Equipment[];
|
|
60
|
-
id: string;
|
|
61
56
|
imageUrl?: string;
|
|
62
57
|
ingredientSections: IngredientSection[];
|
|
63
58
|
instructions: Instruction[];
|
|
@@ -73,7 +68,6 @@ export interface Recipe {
|
|
|
73
68
|
time: number;
|
|
74
69
|
tips?: string[];
|
|
75
70
|
title: string;
|
|
76
|
-
updatedAt: Timestamp;
|
|
77
71
|
}
|
|
78
72
|
export interface RecipeStats {
|
|
79
73
|
comments: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe.ts"],"names":[],"mappings":"A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AAM,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;CACf;AAED,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Timestamp } from "../core";
|
|
1
|
+
import { Entity, Timestamp } from "../core";
|
|
2
2
|
import { ReportPriority } from "./report_priority";
|
|
3
3
|
import { ReportStatus } from "./report_status";
|
|
4
4
|
import { ReportTargetType } from "./report_target_type";
|
|
@@ -9,12 +9,10 @@ export interface ReportEvidence {
|
|
|
9
9
|
contentSnapshot?: string;
|
|
10
10
|
imageHashes?: string[];
|
|
11
11
|
}
|
|
12
|
-
export interface Report {
|
|
12
|
+
export interface Report extends Entity {
|
|
13
13
|
categories: string[];
|
|
14
|
-
createdAt: Timestamp;
|
|
15
14
|
description: string;
|
|
16
15
|
evidence?: ReportEvidence;
|
|
17
|
-
id: string;
|
|
18
16
|
notes?: string;
|
|
19
17
|
priority: ReportPriority;
|
|
20
18
|
reason: string;
|
|
@@ -26,7 +24,6 @@ export interface Report {
|
|
|
26
24
|
targetId: string;
|
|
27
25
|
targetType: ReportTargetType;
|
|
28
26
|
type: ReportType;
|
|
29
|
-
updatedAt: Timestamp;
|
|
30
27
|
userId: string;
|
|
31
28
|
}
|
|
32
29
|
//# 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,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/types/report/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,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,MAAM,WAAW,MAAO,SAAQ,MAAM;IACpC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,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,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
package/package.json
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
Spiciness,
|
|
6
6
|
TemperatureUnit,
|
|
7
7
|
} from "../recipe";
|
|
8
|
+
import { Entity } from "./entity";
|
|
8
9
|
import { Locale } from "./locale";
|
|
9
10
|
import { MeasurementSystem } from "./measurement_system";
|
|
10
11
|
import { Theme } from "./theme";
|
|
11
|
-
import { Timestamp } from "./timestamp";
|
|
12
12
|
|
|
13
13
|
export interface NotificationSettings {
|
|
14
14
|
email: boolean;
|
|
@@ -17,8 +17,7 @@ export interface NotificationSettings {
|
|
|
17
17
|
weeklyDigest: boolean;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export interface Settings {
|
|
21
|
-
id: string;
|
|
20
|
+
export interface Settings extends Entity {
|
|
22
21
|
allergens: Allergen[];
|
|
23
22
|
dietaryTags: DietaryTag[];
|
|
24
23
|
cuisines: Cuisine[];
|
|
@@ -29,6 +28,4 @@ export interface Settings {
|
|
|
29
28
|
measurementSystem: MeasurementSystem;
|
|
30
29
|
theme: Theme;
|
|
31
30
|
notifications: NotificationSettings;
|
|
32
|
-
createdAt: Timestamp;
|
|
33
|
-
updatedAt: Timestamp;
|
|
34
31
|
}
|
package/src/types/iam/profile.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from "../core";
|
|
2
2
|
import { ProfileStatus } from "./profile_status";
|
|
3
3
|
|
|
4
|
-
export interface Profile {
|
|
4
|
+
export interface Profile extends Entity {
|
|
5
5
|
bio?: string;
|
|
6
|
-
createdAt: Timestamp;
|
|
7
|
-
id: string;
|
|
8
6
|
imageUrl?: string;
|
|
9
7
|
name: string;
|
|
10
8
|
public: boolean;
|
|
11
9
|
status: ProfileStatus;
|
|
12
|
-
updatedAt: Timestamp;
|
|
13
10
|
verified: boolean;
|
|
14
11
|
}
|
|
15
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Timestamp } from "../core";
|
|
1
|
+
import { Entity, Timestamp } from "../core";
|
|
2
2
|
import { SubscriptionRole } from "./subscription_role";
|
|
3
3
|
import { SubscriptionStatus } from "./subscription_status";
|
|
4
4
|
import { SubscriptionTier } from "./subscription_tier";
|
|
@@ -11,11 +11,9 @@ export interface Member {
|
|
|
11
11
|
joinedAt?: Timestamp;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface Subscription {
|
|
14
|
+
export interface Subscription extends Entity {
|
|
15
15
|
expiresAt: Timestamp;
|
|
16
|
-
id: string;
|
|
17
16
|
members?: Member[];
|
|
18
17
|
providerId: string;
|
|
19
18
|
tier: SubscriptionTier;
|
|
20
|
-
updatedAt: Timestamp;
|
|
21
19
|
}
|
package/src/types/iam/user.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { Timestamp } from "../core";
|
|
1
|
+
import { Entity, Timestamp } from "../core";
|
|
2
2
|
import { UserRole } from "./user_role";
|
|
3
3
|
import { UserStatus } from "./user_status";
|
|
4
4
|
|
|
5
|
-
export interface User {
|
|
6
|
-
createdAt: Timestamp;
|
|
5
|
+
export interface User extends Entity {
|
|
7
6
|
deletedAt?: Timestamp;
|
|
8
7
|
email: string;
|
|
9
|
-
id: string;
|
|
10
8
|
imageUrl?: string;
|
|
11
9
|
name: string;
|
|
12
10
|
role: UserRole;
|
|
13
11
|
status: UserStatus;
|
|
14
12
|
subscriptionId?: string;
|
|
15
|
-
updatedAt: Timestamp;
|
|
16
13
|
verified: boolean;
|
|
17
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Locale, Timestamp } from "../core";
|
|
1
|
+
import { Entity, Locale, Timestamp } from "../core";
|
|
2
2
|
import { ModerationStatus } from "./moderation_status";
|
|
3
3
|
import { Priority } from "./priority";
|
|
4
4
|
import { Severity } from "./severity";
|
|
@@ -11,10 +11,8 @@ export interface ModerationSuggestion {
|
|
|
11
11
|
suggestion: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface Moderation {
|
|
14
|
+
export interface Moderation extends Entity {
|
|
15
15
|
assessedAt?: Timestamp;
|
|
16
|
-
createdAt: Timestamp;
|
|
17
|
-
id: string;
|
|
18
16
|
originalLocale: Locale;
|
|
19
17
|
priority: Priority;
|
|
20
18
|
qualityScore?: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Temperature } from "./temperature";
|
|
2
2
|
|
|
3
3
|
export interface InstructionMeta {
|
|
4
4
|
duration?: number;
|
|
5
5
|
step: number;
|
|
6
|
-
temperature?:
|
|
6
|
+
temperature?: Temperature;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export interface InstructionContent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Timestamp } from "../core";
|
|
1
|
+
import { Entity, Timestamp } from "../core";
|
|
2
2
|
import { Locale } from "../core/locale";
|
|
3
3
|
import { Allergen } from "./allergen";
|
|
4
4
|
import { Cuisine } from "./cuisine";
|
|
@@ -21,17 +21,15 @@ import { RecipeSource } from "./recipe_source";
|
|
|
21
21
|
import { RecipeStatus } from "./recipe_status";
|
|
22
22
|
import { Spiciness } from "./spiciness";
|
|
23
23
|
|
|
24
|
-
export interface RecipeMeta {
|
|
24
|
+
export interface RecipeMeta extends Entity {
|
|
25
25
|
allergens: Allergen[];
|
|
26
26
|
confidence: number;
|
|
27
|
-
createdAt: Timestamp;
|
|
28
27
|
createdBy: string;
|
|
29
28
|
cuisine: Cuisine;
|
|
30
29
|
deletedAt?: Timestamp;
|
|
31
30
|
dietaryTags: DietaryTag[];
|
|
32
31
|
difficulty: Difficulty;
|
|
33
32
|
equipment?: EquipmentMeta[];
|
|
34
|
-
id: string;
|
|
35
33
|
imageUrl?: string;
|
|
36
34
|
ingredientSections: IngredientSectionMeta[];
|
|
37
35
|
instructions: InstructionMeta[];
|
|
@@ -44,7 +42,6 @@ export interface RecipeMeta {
|
|
|
44
42
|
spiciness: Spiciness;
|
|
45
43
|
status: RecipeStatus;
|
|
46
44
|
time: number;
|
|
47
|
-
updatedAt: Timestamp;
|
|
48
45
|
}
|
|
49
46
|
|
|
50
47
|
export interface RecipeContent {
|
|
@@ -57,10 +54,9 @@ export interface RecipeContent {
|
|
|
57
54
|
title: string;
|
|
58
55
|
}
|
|
59
56
|
|
|
60
|
-
export interface Recipe {
|
|
57
|
+
export interface Recipe extends Entity {
|
|
61
58
|
allergens: Allergen[];
|
|
62
59
|
confidence: number;
|
|
63
|
-
createdAt: Timestamp;
|
|
64
60
|
createdBy: string;
|
|
65
61
|
cuisine: Cuisine;
|
|
66
62
|
deletedAt?: Timestamp;
|
|
@@ -68,7 +64,6 @@ export interface Recipe {
|
|
|
68
64
|
dietaryTags: DietaryTag[];
|
|
69
65
|
difficulty: Difficulty;
|
|
70
66
|
equipment?: Equipment[];
|
|
71
|
-
id: string;
|
|
72
67
|
imageUrl?: string;
|
|
73
68
|
ingredientSections: IngredientSection[];
|
|
74
69
|
instructions: Instruction[];
|
|
@@ -84,7 +79,6 @@ export interface Recipe {
|
|
|
84
79
|
time: number;
|
|
85
80
|
tips?: string[];
|
|
86
81
|
title: string;
|
|
87
|
-
updatedAt: Timestamp;
|
|
88
82
|
}
|
|
89
83
|
|
|
90
84
|
export interface RecipeStats {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Timestamp } from "../core";
|
|
1
|
+
import { Entity, Timestamp } from "../core";
|
|
2
2
|
import { ReportPriority } from "./report_priority";
|
|
3
3
|
import { ReportStatus } from "./report_status";
|
|
4
4
|
import { ReportTargetType } from "./report_target_type";
|
|
@@ -11,12 +11,10 @@ export interface ReportEvidence {
|
|
|
11
11
|
imageHashes?: string[];
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface Report {
|
|
14
|
+
export interface Report extends Entity {
|
|
15
15
|
categories: string[];
|
|
16
|
-
createdAt: Timestamp;
|
|
17
16
|
description: string;
|
|
18
17
|
evidence?: ReportEvidence;
|
|
19
|
-
id: string;
|
|
20
18
|
notes?: string;
|
|
21
19
|
priority: ReportPriority;
|
|
22
20
|
reason: string;
|
|
@@ -28,6 +26,5 @@ export interface Report {
|
|
|
28
26
|
targetId: string;
|
|
29
27
|
targetType: ReportTargetType;
|
|
30
28
|
type: ReportType;
|
|
31
|
-
updatedAt: Timestamp;
|
|
32
29
|
userId: string;
|
|
33
30
|
}
|