rategame-shared 1.0.84 → 1.0.86
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/game.d.ts +10 -10
- package/dist/schemas/rating.d.ts +17 -166
- package/dist/schemas/rating.js +2 -0
- package/dist/schemas/user.d.ts +12 -6
- package/dist/schemas/user.js +1 -0
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -538,9 +538,10 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
538
538
|
inningNumber: number;
|
|
539
539
|
}[];
|
|
540
540
|
id?: string | undefined;
|
|
541
|
-
round?: number | undefined;
|
|
542
541
|
isClosed?: boolean | undefined;
|
|
543
542
|
ratingWindowClosedAt?: number | undefined;
|
|
543
|
+
round?: number | undefined;
|
|
544
|
+
inningHalf?: "T" | "B" | undefined;
|
|
544
545
|
seriesInfo?: {
|
|
545
546
|
maxLength: number;
|
|
546
547
|
homeTeamWins: number;
|
|
@@ -554,7 +555,6 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
554
555
|
options: Record<number, number>;
|
|
555
556
|
};
|
|
556
557
|
} | undefined;
|
|
557
|
-
inningHalf?: "T" | "B" | undefined;
|
|
558
558
|
losingPitcherId?: string | undefined;
|
|
559
559
|
winningPitcherId?: string | undefined;
|
|
560
560
|
savingPitcherId?: string | undefined;
|
|
@@ -621,9 +621,10 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
621
621
|
inningNumber: number;
|
|
622
622
|
}[];
|
|
623
623
|
id?: string | undefined;
|
|
624
|
-
round?: number | undefined;
|
|
625
624
|
isClosed?: boolean | undefined;
|
|
626
625
|
ratingWindowClosedAt?: number | undefined;
|
|
626
|
+
round?: number | undefined;
|
|
627
|
+
inningHalf?: "T" | "B" | undefined;
|
|
627
628
|
seriesInfo?: {
|
|
628
629
|
maxLength: number;
|
|
629
630
|
homeTeamWins: number;
|
|
@@ -637,7 +638,6 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
637
638
|
options: Record<number, number>;
|
|
638
639
|
};
|
|
639
640
|
} | undefined;
|
|
640
|
-
inningHalf?: "T" | "B" | undefined;
|
|
641
641
|
losingPitcherId?: string | undefined;
|
|
642
642
|
winningPitcherId?: string | undefined;
|
|
643
643
|
savingPitcherId?: string | undefined;
|
|
@@ -686,20 +686,20 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
686
686
|
offset: z.ZodOptional<z.ZodString>;
|
|
687
687
|
}, "strip", z.ZodTypeAny, {
|
|
688
688
|
league: "nba" | "ncaa";
|
|
689
|
-
offset?: string | undefined;
|
|
690
|
-
round?: string | undefined;
|
|
691
689
|
q?: string | undefined;
|
|
692
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
693
690
|
teamId?: string | undefined;
|
|
691
|
+
round?: string | undefined;
|
|
692
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
694
693
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
695
694
|
limit?: string | undefined;
|
|
695
|
+
offset?: string | undefined;
|
|
696
696
|
}, {
|
|
697
697
|
league: "nba" | "ncaa";
|
|
698
|
-
offset?: string | undefined;
|
|
699
|
-
round?: string | undefined;
|
|
700
698
|
q?: string | undefined;
|
|
701
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
702
699
|
teamId?: string | undefined;
|
|
700
|
+
round?: string | undefined;
|
|
701
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
703
702
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
704
703
|
limit?: string | undefined;
|
|
704
|
+
offset?: string | undefined;
|
|
705
705
|
}>;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -241,7 +241,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
241
241
|
round: import("zod").ZodOptional<import("zod").ZodString>;
|
|
242
242
|
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
243
243
|
createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
244
|
-
sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">]>>;
|
|
244
|
+
sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
245
245
|
limit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
246
246
|
offset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
247
247
|
gameId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -250,30 +250,30 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
250
250
|
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
251
251
|
}, "strip", import("zod").ZodTypeAny, {
|
|
252
252
|
league: "nba" | "ncaa";
|
|
253
|
-
offset?: string | undefined;
|
|
254
|
-
round?: string | undefined;
|
|
255
253
|
q?: string | undefined;
|
|
256
|
-
username?: string | undefined;
|
|
257
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
258
254
|
teamId?: string | undefined;
|
|
259
|
-
|
|
255
|
+
round?: string | undefined;
|
|
256
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
257
|
+
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
260
258
|
limit?: string | undefined;
|
|
261
|
-
|
|
259
|
+
offset?: string | undefined;
|
|
262
260
|
gameId?: string | undefined;
|
|
263
261
|
showEmptyRatings?: string | undefined;
|
|
262
|
+
comment?: string | undefined;
|
|
263
|
+
username?: string | undefined;
|
|
264
264
|
}, {
|
|
265
265
|
league: "nba" | "ncaa";
|
|
266
|
-
offset?: string | undefined;
|
|
267
|
-
round?: string | undefined;
|
|
268
266
|
q?: string | undefined;
|
|
269
|
-
username?: string | undefined;
|
|
270
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
271
267
|
teamId?: string | undefined;
|
|
272
|
-
|
|
268
|
+
round?: string | undefined;
|
|
269
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
270
|
+
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
273
271
|
limit?: string | undefined;
|
|
274
|
-
|
|
272
|
+
offset?: string | undefined;
|
|
275
273
|
gameId?: string | undefined;
|
|
276
274
|
showEmptyRatings?: string | undefined;
|
|
275
|
+
comment?: string | undefined;
|
|
276
|
+
username?: string | undefined;
|
|
277
277
|
}>;
|
|
278
278
|
export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
279
279
|
ratingId: import("zod").ZodString;
|
|
@@ -341,159 +341,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
341
341
|
};
|
|
342
342
|
agree: boolean;
|
|
343
343
|
}>;
|
|
344
|
-
export declare const createRatingSchema: import("zod").ZodObject<
|
|
345
|
-
id: import("zod").ZodString;
|
|
346
|
-
createdAt: import("zod").ZodNumber;
|
|
344
|
+
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
347
345
|
rating: import("zod").ZodNumber;
|
|
348
346
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
349
|
-
user: import("zod").ZodObject<{
|
|
350
|
-
id: import("zod").ZodString;
|
|
351
|
-
username: import("zod").ZodString;
|
|
352
|
-
avatarUrl: import("zod").ZodString;
|
|
353
|
-
email: import("zod").ZodString;
|
|
354
|
-
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
355
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
356
|
-
id: string;
|
|
357
|
-
email: string;
|
|
358
|
-
username: string;
|
|
359
|
-
avatarUrl: string;
|
|
360
|
-
badge?: string | undefined;
|
|
361
|
-
}, {
|
|
362
|
-
id: string;
|
|
363
|
-
email: string;
|
|
364
|
-
username: string;
|
|
365
|
-
avatarUrl: string;
|
|
366
|
-
badge?: string | undefined;
|
|
367
|
-
}>;
|
|
368
|
-
game: import("zod").ZodObject<{
|
|
369
|
-
id: import("zod").ZodString;
|
|
370
|
-
round: import("zod").ZodNumber;
|
|
371
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
372
|
-
homeTeam: import("zod").ZodObject<{
|
|
373
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
374
|
-
apiTeamId: import("zod").ZodNumber;
|
|
375
|
-
name: import("zod").ZodString;
|
|
376
|
-
score: import("zod").ZodNumber;
|
|
377
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
378
|
-
image: import("zod").ZodString;
|
|
379
|
-
seed: import("zod").ZodNumber;
|
|
380
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
381
|
-
name: string;
|
|
382
|
-
image: string;
|
|
383
|
-
apiTeamId: number;
|
|
384
|
-
seed: number;
|
|
385
|
-
score: number;
|
|
386
|
-
id?: string | undefined;
|
|
387
|
-
isWinner?: boolean | undefined;
|
|
388
|
-
}, {
|
|
389
|
-
name: string;
|
|
390
|
-
image: string;
|
|
391
|
-
apiTeamId: number;
|
|
392
|
-
seed: number;
|
|
393
|
-
score: number;
|
|
394
|
-
id?: string | undefined;
|
|
395
|
-
isWinner?: boolean | undefined;
|
|
396
|
-
}>;
|
|
397
|
-
awayTeam: import("zod").ZodObject<{
|
|
398
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
399
|
-
apiTeamId: import("zod").ZodNumber;
|
|
400
|
-
name: import("zod").ZodString;
|
|
401
|
-
score: import("zod").ZodNumber;
|
|
402
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
403
|
-
image: import("zod").ZodString;
|
|
404
|
-
seed: import("zod").ZodNumber;
|
|
405
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
406
|
-
name: string;
|
|
407
|
-
image: string;
|
|
408
|
-
apiTeamId: number;
|
|
409
|
-
seed: number;
|
|
410
|
-
score: number;
|
|
411
|
-
id?: string | undefined;
|
|
412
|
-
isWinner?: boolean | undefined;
|
|
413
|
-
}, {
|
|
414
|
-
name: string;
|
|
415
|
-
image: string;
|
|
416
|
-
apiTeamId: number;
|
|
417
|
-
seed: number;
|
|
418
|
-
score: number;
|
|
419
|
-
id?: string | undefined;
|
|
420
|
-
isWinner?: boolean | undefined;
|
|
421
|
-
}>;
|
|
422
|
-
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
423
|
-
homeTeamWins: import("zod").ZodNumber;
|
|
424
|
-
awayTeamWins: import("zod").ZodNumber;
|
|
425
|
-
gameNumber: import("zod").ZodNumber;
|
|
426
|
-
maxLength: import("zod").ZodNumber;
|
|
427
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
428
|
-
maxLength: number;
|
|
429
|
-
homeTeamWins: number;
|
|
430
|
-
awayTeamWins: number;
|
|
431
|
-
gameNumber: number;
|
|
432
|
-
}, {
|
|
433
|
-
maxLength: number;
|
|
434
|
-
homeTeamWins: number;
|
|
435
|
-
awayTeamWins: number;
|
|
436
|
-
gameNumber: number;
|
|
437
|
-
}>>;
|
|
438
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
439
|
-
id: string;
|
|
440
|
-
round: number;
|
|
441
|
-
league: "nba" | "ncaa";
|
|
442
|
-
homeTeam: {
|
|
443
|
-
name: string;
|
|
444
|
-
image: string;
|
|
445
|
-
apiTeamId: number;
|
|
446
|
-
seed: number;
|
|
447
|
-
score: number;
|
|
448
|
-
id?: string | undefined;
|
|
449
|
-
isWinner?: boolean | undefined;
|
|
450
|
-
};
|
|
451
|
-
awayTeam: {
|
|
452
|
-
name: string;
|
|
453
|
-
image: string;
|
|
454
|
-
apiTeamId: number;
|
|
455
|
-
seed: number;
|
|
456
|
-
score: number;
|
|
457
|
-
id?: string | undefined;
|
|
458
|
-
isWinner?: boolean | undefined;
|
|
459
|
-
};
|
|
460
|
-
seriesInfo?: {
|
|
461
|
-
maxLength: number;
|
|
462
|
-
homeTeamWins: number;
|
|
463
|
-
awayTeamWins: number;
|
|
464
|
-
gameNumber: number;
|
|
465
|
-
} | undefined;
|
|
466
|
-
}, {
|
|
467
|
-
id: string;
|
|
468
|
-
round: number;
|
|
469
|
-
league: "nba" | "ncaa";
|
|
470
|
-
homeTeam: {
|
|
471
|
-
name: string;
|
|
472
|
-
image: string;
|
|
473
|
-
apiTeamId: number;
|
|
474
|
-
seed: number;
|
|
475
|
-
score: number;
|
|
476
|
-
id?: string | undefined;
|
|
477
|
-
isWinner?: boolean | undefined;
|
|
478
|
-
};
|
|
479
|
-
awayTeam: {
|
|
480
|
-
name: string;
|
|
481
|
-
image: string;
|
|
482
|
-
apiTeamId: number;
|
|
483
|
-
seed: number;
|
|
484
|
-
score: number;
|
|
485
|
-
id?: string | undefined;
|
|
486
|
-
isWinner?: boolean | undefined;
|
|
487
|
-
};
|
|
488
|
-
seriesInfo?: {
|
|
489
|
-
maxLength: number;
|
|
490
|
-
homeTeamWins: number;
|
|
491
|
-
awayTeamWins: number;
|
|
492
|
-
gameNumber: number;
|
|
493
|
-
} | undefined;
|
|
494
|
-
}>;
|
|
495
347
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
496
|
-
}, "id" | "user" | "createdAt">, {
|
|
497
348
|
game: import("zod").ZodObject<Omit<{
|
|
498
349
|
id: import("zod").ZodString;
|
|
499
350
|
round: import("zod").ZodNumber;
|
|
@@ -584,7 +435,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
584
435
|
} | undefined;
|
|
585
436
|
}>;
|
|
586
437
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
587
|
-
}
|
|
438
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
588
439
|
rating: number;
|
|
589
440
|
game: {
|
|
590
441
|
id: string;
|
|
@@ -596,9 +447,9 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
596
447
|
gameNumber: number;
|
|
597
448
|
} | undefined;
|
|
598
449
|
};
|
|
599
|
-
id?: string | undefined;
|
|
600
450
|
comment?: string | undefined;
|
|
601
451
|
userLikes?: number | undefined;
|
|
452
|
+
id?: string | undefined;
|
|
602
453
|
}, {
|
|
603
454
|
rating: number;
|
|
604
455
|
game: {
|
|
@@ -611,7 +462,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
611
462
|
gameNumber: number;
|
|
612
463
|
} | undefined;
|
|
613
464
|
};
|
|
614
|
-
id?: string | undefined;
|
|
615
465
|
comment?: string | undefined;
|
|
616
466
|
userLikes?: number | undefined;
|
|
467
|
+
id?: string | undefined;
|
|
617
468
|
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -40,6 +40,8 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
40
40
|
(0, zod_1.literal)("rating:desc"),
|
|
41
41
|
(0, zod_1.literal)("createdAt:asc"),
|
|
42
42
|
(0, zod_1.literal)("createdAt:desc"),
|
|
43
|
+
(0, zod_1.literal)("userLikes:asc"),
|
|
44
|
+
(0, zod_1.literal)("userLikes:desc"),
|
|
43
45
|
]).optional(),
|
|
44
46
|
limit: (0, zod_1.string)().optional(),
|
|
45
47
|
offset: (0, zod_1.string)().optional(),
|
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,9 +120,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
119
120
|
}>;
|
|
120
121
|
askedForPushNotifications: boolean;
|
|
121
122
|
acceptedPushNotifications: boolean;
|
|
122
|
-
totalRatedGames?: number | undefined;
|
|
123
|
-
commentsLeft?: number | undefined;
|
|
124
|
-
avgRating?: number | undefined;
|
|
125
123
|
leagues?: {
|
|
126
124
|
nba: {
|
|
127
125
|
totalRatedGames: number;
|
|
@@ -134,6 +132,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
134
132
|
avgRating: number;
|
|
135
133
|
};
|
|
136
134
|
} | undefined;
|
|
135
|
+
totalRatedGames?: number | undefined;
|
|
136
|
+
commentsLeft?: number | undefined;
|
|
137
|
+
avgRating?: number | undefined;
|
|
137
138
|
isRegistrationComplete?: boolean | undefined;
|
|
138
139
|
badge?: string | undefined;
|
|
139
140
|
registrationStep?: number | undefined;
|
|
@@ -147,6 +148,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
147
148
|
youtube?: string | undefined;
|
|
148
149
|
tiktok?: string | undefined;
|
|
149
150
|
} | undefined;
|
|
151
|
+
platform?: "ios" | "android" | undefined;
|
|
150
152
|
}, {
|
|
151
153
|
id: string;
|
|
152
154
|
email: string;
|
|
@@ -160,9 +162,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
160
162
|
}>;
|
|
161
163
|
askedForPushNotifications: boolean;
|
|
162
164
|
acceptedPushNotifications: boolean;
|
|
163
|
-
totalRatedGames?: number | undefined;
|
|
164
|
-
commentsLeft?: number | undefined;
|
|
165
|
-
avgRating?: number | undefined;
|
|
166
165
|
leagues?: {
|
|
167
166
|
nba: {
|
|
168
167
|
totalRatedGames: number;
|
|
@@ -175,6 +174,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
175
174
|
avgRating: number;
|
|
176
175
|
};
|
|
177
176
|
} | undefined;
|
|
177
|
+
totalRatedGames?: number | undefined;
|
|
178
|
+
commentsLeft?: number | undefined;
|
|
179
|
+
avgRating?: number | undefined;
|
|
178
180
|
isRegistrationComplete?: boolean | undefined;
|
|
179
181
|
badge?: string | undefined;
|
|
180
182
|
registrationStep?: number | undefined;
|
|
@@ -188,6 +190,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
188
190
|
youtube?: string | undefined;
|
|
189
191
|
tiktok?: string | undefined;
|
|
190
192
|
} | undefined;
|
|
193
|
+
platform?: "ios" | "android" | undefined;
|
|
191
194
|
}>;
|
|
192
195
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
193
196
|
id: import("zod").ZodString;
|
|
@@ -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,
|