rategame-shared 1.0.40 → 1.0.42
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/schemas/rating.d.ts
CHANGED
|
@@ -8,16 +8,19 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
8
8
|
username: import("zod").ZodString;
|
|
9
9
|
avatarUrl: import("zod").ZodString;
|
|
10
10
|
email: import("zod").ZodString;
|
|
11
|
+
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
12
|
}, "strip", import("zod").ZodTypeAny, {
|
|
12
13
|
id: string;
|
|
13
14
|
email: string;
|
|
14
15
|
username: string;
|
|
15
16
|
avatarUrl: string;
|
|
17
|
+
badge?: string | undefined;
|
|
16
18
|
}, {
|
|
17
19
|
id: string;
|
|
18
20
|
email: string;
|
|
19
21
|
username: string;
|
|
20
22
|
avatarUrl: string;
|
|
23
|
+
badge?: string | undefined;
|
|
21
24
|
}>;
|
|
22
25
|
game: import("zod").ZodObject<{
|
|
23
26
|
id: import("zod").ZodString;
|
|
@@ -123,6 +126,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
123
126
|
email: string;
|
|
124
127
|
username: string;
|
|
125
128
|
avatarUrl: string;
|
|
129
|
+
badge?: string | undefined;
|
|
126
130
|
};
|
|
127
131
|
createdAt: number;
|
|
128
132
|
rating: number;
|
|
@@ -157,6 +161,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
157
161
|
email: string;
|
|
158
162
|
username: string;
|
|
159
163
|
avatarUrl: string;
|
|
164
|
+
badge?: string | undefined;
|
|
160
165
|
};
|
|
161
166
|
createdAt: number;
|
|
162
167
|
rating: number;
|
package/dist/schemas/rating.js
CHANGED
package/dist/schemas/user.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
20
20
|
}>>;
|
|
21
21
|
askedForPushNotifications: import("zod").ZodBoolean;
|
|
22
22
|
acceptedPushNotifications: import("zod").ZodBoolean;
|
|
23
|
+
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
24
|
}, "strip", import("zod").ZodTypeAny, {
|
|
24
25
|
id: string;
|
|
25
26
|
email: string;
|
|
@@ -36,6 +37,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
36
37
|
totalRatedGames?: number | undefined;
|
|
37
38
|
avgRating?: number | undefined;
|
|
38
39
|
isRegistrationComplete?: boolean | undefined;
|
|
40
|
+
badge?: string | undefined;
|
|
39
41
|
}, {
|
|
40
42
|
id: string;
|
|
41
43
|
email: string;
|
|
@@ -52,6 +54,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
52
54
|
totalRatedGames?: number | undefined;
|
|
53
55
|
avgRating?: number | undefined;
|
|
54
56
|
isRegistrationComplete?: boolean | undefined;
|
|
57
|
+
badge?: string | undefined;
|
|
55
58
|
}>;
|
|
56
59
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
57
60
|
id: import("zod").ZodString;
|
|
@@ -75,14 +78,17 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
75
78
|
}>>;
|
|
76
79
|
askedForPushNotifications: import("zod").ZodBoolean;
|
|
77
80
|
acceptedPushNotifications: import("zod").ZodBoolean;
|
|
81
|
+
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
82
|
}, "id" | "createdAt" | "updatedAt" | "totalRatedGames" | "avgRating" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
79
83
|
email: string;
|
|
80
84
|
username: string;
|
|
81
85
|
avatarUrl: string;
|
|
82
86
|
isRegistrationComplete?: boolean | undefined;
|
|
87
|
+
badge?: string | undefined;
|
|
83
88
|
}, {
|
|
84
89
|
email: string;
|
|
85
90
|
username: string;
|
|
86
91
|
avatarUrl: string;
|
|
87
92
|
isRegistrationComplete?: boolean | undefined;
|
|
93
|
+
badge?: string | undefined;
|
|
88
94
|
}>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
18
18
|
})),
|
|
19
19
|
askedForPushNotifications: (0, zod_1.boolean)(),
|
|
20
20
|
acceptedPushNotifications: (0, zod_1.boolean)(),
|
|
21
|
+
badge: (0, zod_1.string)().optional(),
|
|
21
22
|
});
|
|
22
23
|
exports.createUserSchema = exports.userSchema.omit({
|
|
23
24
|
id: true,
|