rategame-shared 1.0.85 → 1.0.87
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
|
@@ -248,6 +248,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
248
248
|
showEmptyRatings: import("zod").ZodOptional<import("zod").ZodString>;
|
|
249
249
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
250
250
|
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
251
|
+
followedUsers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
251
252
|
}, "strip", import("zod").ZodTypeAny, {
|
|
252
253
|
league: "nba" | "ncaa";
|
|
253
254
|
offset?: string | undefined;
|
|
@@ -261,6 +262,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
261
262
|
comment?: string | undefined;
|
|
262
263
|
gameId?: string | undefined;
|
|
263
264
|
showEmptyRatings?: string | undefined;
|
|
265
|
+
followedUsers?: string[] | undefined;
|
|
264
266
|
}, {
|
|
265
267
|
league: "nba" | "ncaa";
|
|
266
268
|
offset?: string | undefined;
|
|
@@ -274,6 +276,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
274
276
|
comment?: string | undefined;
|
|
275
277
|
gameId?: string | undefined;
|
|
276
278
|
showEmptyRatings?: string | undefined;
|
|
279
|
+
followedUsers?: string[] | undefined;
|
|
277
280
|
}>;
|
|
278
281
|
export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
279
282
|
ratingId: import("zod").ZodString;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -49,6 +49,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
49
49
|
showEmptyRatings: (0, zod_1.string)().optional(),
|
|
50
50
|
comment: (0, zod_1.string)().optional(),
|
|
51
51
|
username: (0, zod_1.string)().optional(),
|
|
52
|
+
followedUsers: (0, zod_1.string)().array().optional(),
|
|
52
53
|
});
|
|
53
54
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
54
55
|
ratingId: (0, zod_1.string)(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
106
106
|
youtube?: string | undefined;
|
|
107
107
|
tiktok?: string | undefined;
|
|
108
108
|
}>>;
|
|
109
|
+
platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">]>>;
|
|
109
110
|
}, "strip", import("zod").ZodTypeAny, {
|
|
110
111
|
id: string;
|
|
111
112
|
email: string;
|
|
@@ -119,6 +120,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
119
120
|
}>;
|
|
120
121
|
askedForPushNotifications: boolean;
|
|
121
122
|
acceptedPushNotifications: boolean;
|
|
123
|
+
platform?: "ios" | "android" | undefined;
|
|
122
124
|
totalRatedGames?: number | undefined;
|
|
123
125
|
commentsLeft?: number | undefined;
|
|
124
126
|
avgRating?: number | undefined;
|
|
@@ -160,6 +162,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
160
162
|
}>;
|
|
161
163
|
askedForPushNotifications: boolean;
|
|
162
164
|
acceptedPushNotifications: boolean;
|
|
165
|
+
platform?: "ios" | "android" | undefined;
|
|
163
166
|
totalRatedGames?: number | undefined;
|
|
164
167
|
commentsLeft?: number | undefined;
|
|
165
168
|
avgRating?: number | undefined;
|
|
@@ -284,10 +287,12 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
284
287
|
youtube?: string | undefined;
|
|
285
288
|
tiktok?: string | undefined;
|
|
286
289
|
}>>;
|
|
290
|
+
platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">]>>;
|
|
287
291
|
}, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
288
292
|
email: string;
|
|
289
293
|
username: string;
|
|
290
294
|
avatarUrl: string;
|
|
295
|
+
platform?: "ios" | "android" | undefined;
|
|
291
296
|
commentsLeft?: number | undefined;
|
|
292
297
|
leagues?: {
|
|
293
298
|
nba: {
|
|
@@ -318,6 +323,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
318
323
|
email: string;
|
|
319
324
|
username: string;
|
|
320
325
|
avatarUrl: string;
|
|
326
|
+
platform?: "ios" | "android" | undefined;
|
|
321
327
|
commentsLeft?: number | undefined;
|
|
322
328
|
leagues?: {
|
|
323
329
|
nba: {
|
package/dist/schemas/user.js
CHANGED
|
@@ -40,6 +40,7 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
40
40
|
youtube: (0, zod_1.string)().optional(),
|
|
41
41
|
tiktok: (0, zod_1.string)().optional(),
|
|
42
42
|
}).optional(),
|
|
43
|
+
platform: (0, zod_1.union)([(0, zod_1.literal)("ios"), (0, zod_1.literal)("android")]).optional(),
|
|
43
44
|
});
|
|
44
45
|
exports.createUserSchema = exports.userSchema.omit({
|
|
45
46
|
id: true,
|