rategame-shared 1.0.90 → 1.0.92
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 +14 -163
- package/dist/schemas/user.d.ts +60 -8
- package/dist/schemas/user.js +6 -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
|
@@ -252,32 +252,32 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
252
252
|
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
253
253
|
}, "strip", import("zod").ZodTypeAny, {
|
|
254
254
|
league: "nba" | "ncaa";
|
|
255
|
-
offset?: string | undefined;
|
|
256
|
-
round?: string | undefined;
|
|
257
255
|
q?: string | undefined;
|
|
258
|
-
username?: string | undefined;
|
|
259
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
260
256
|
teamId?: string | undefined;
|
|
257
|
+
round?: string | undefined;
|
|
258
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
261
259
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
262
260
|
limit?: string | undefined;
|
|
263
|
-
|
|
261
|
+
offset?: string | undefined;
|
|
264
262
|
gameId?: string | undefined;
|
|
265
263
|
showEmptyRatings?: string | undefined;
|
|
264
|
+
comment?: string | undefined;
|
|
265
|
+
username?: string | undefined;
|
|
266
266
|
following?: string | undefined;
|
|
267
267
|
userId?: string | undefined;
|
|
268
268
|
}, {
|
|
269
269
|
league: "nba" | "ncaa";
|
|
270
|
-
offset?: string | undefined;
|
|
271
|
-
round?: string | undefined;
|
|
272
270
|
q?: string | undefined;
|
|
273
|
-
username?: string | undefined;
|
|
274
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
275
271
|
teamId?: string | undefined;
|
|
272
|
+
round?: string | undefined;
|
|
273
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
276
274
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
277
275
|
limit?: string | undefined;
|
|
278
|
-
|
|
276
|
+
offset?: string | undefined;
|
|
279
277
|
gameId?: string | undefined;
|
|
280
278
|
showEmptyRatings?: string | undefined;
|
|
279
|
+
comment?: string | undefined;
|
|
280
|
+
username?: string | undefined;
|
|
281
281
|
following?: string | undefined;
|
|
282
282
|
userId?: string | undefined;
|
|
283
283
|
}>;
|
|
@@ -347,159 +347,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
347
347
|
};
|
|
348
348
|
agree: boolean;
|
|
349
349
|
}>;
|
|
350
|
-
export declare const createRatingSchema: import("zod").ZodObject<
|
|
351
|
-
id: import("zod").ZodString;
|
|
352
|
-
createdAt: import("zod").ZodNumber;
|
|
350
|
+
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
353
351
|
rating: import("zod").ZodNumber;
|
|
354
352
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
355
|
-
user: import("zod").ZodObject<{
|
|
356
|
-
id: import("zod").ZodString;
|
|
357
|
-
username: import("zod").ZodString;
|
|
358
|
-
avatarUrl: import("zod").ZodString;
|
|
359
|
-
email: import("zod").ZodString;
|
|
360
|
-
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
361
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
362
|
-
id: string;
|
|
363
|
-
email: string;
|
|
364
|
-
username: string;
|
|
365
|
-
avatarUrl: string;
|
|
366
|
-
badge?: string | undefined;
|
|
367
|
-
}, {
|
|
368
|
-
id: string;
|
|
369
|
-
email: string;
|
|
370
|
-
username: string;
|
|
371
|
-
avatarUrl: string;
|
|
372
|
-
badge?: string | undefined;
|
|
373
|
-
}>;
|
|
374
|
-
game: import("zod").ZodObject<{
|
|
375
|
-
id: import("zod").ZodString;
|
|
376
|
-
round: import("zod").ZodNumber;
|
|
377
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
378
|
-
homeTeam: import("zod").ZodObject<{
|
|
379
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
380
|
-
apiTeamId: import("zod").ZodNumber;
|
|
381
|
-
name: import("zod").ZodString;
|
|
382
|
-
score: import("zod").ZodNumber;
|
|
383
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
384
|
-
image: import("zod").ZodString;
|
|
385
|
-
seed: import("zod").ZodNumber;
|
|
386
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
387
|
-
name: string;
|
|
388
|
-
image: string;
|
|
389
|
-
apiTeamId: number;
|
|
390
|
-
seed: number;
|
|
391
|
-
score: number;
|
|
392
|
-
id?: string | undefined;
|
|
393
|
-
isWinner?: boolean | undefined;
|
|
394
|
-
}, {
|
|
395
|
-
name: string;
|
|
396
|
-
image: string;
|
|
397
|
-
apiTeamId: number;
|
|
398
|
-
seed: number;
|
|
399
|
-
score: number;
|
|
400
|
-
id?: string | undefined;
|
|
401
|
-
isWinner?: boolean | undefined;
|
|
402
|
-
}>;
|
|
403
|
-
awayTeam: import("zod").ZodObject<{
|
|
404
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
405
|
-
apiTeamId: import("zod").ZodNumber;
|
|
406
|
-
name: import("zod").ZodString;
|
|
407
|
-
score: import("zod").ZodNumber;
|
|
408
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
409
|
-
image: import("zod").ZodString;
|
|
410
|
-
seed: import("zod").ZodNumber;
|
|
411
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
412
|
-
name: string;
|
|
413
|
-
image: string;
|
|
414
|
-
apiTeamId: number;
|
|
415
|
-
seed: number;
|
|
416
|
-
score: number;
|
|
417
|
-
id?: string | undefined;
|
|
418
|
-
isWinner?: boolean | undefined;
|
|
419
|
-
}, {
|
|
420
|
-
name: string;
|
|
421
|
-
image: string;
|
|
422
|
-
apiTeamId: number;
|
|
423
|
-
seed: number;
|
|
424
|
-
score: number;
|
|
425
|
-
id?: string | undefined;
|
|
426
|
-
isWinner?: boolean | undefined;
|
|
427
|
-
}>;
|
|
428
|
-
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
429
|
-
homeTeamWins: import("zod").ZodNumber;
|
|
430
|
-
awayTeamWins: import("zod").ZodNumber;
|
|
431
|
-
gameNumber: import("zod").ZodNumber;
|
|
432
|
-
maxLength: import("zod").ZodNumber;
|
|
433
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
434
|
-
maxLength: number;
|
|
435
|
-
homeTeamWins: number;
|
|
436
|
-
awayTeamWins: number;
|
|
437
|
-
gameNumber: number;
|
|
438
|
-
}, {
|
|
439
|
-
maxLength: number;
|
|
440
|
-
homeTeamWins: number;
|
|
441
|
-
awayTeamWins: number;
|
|
442
|
-
gameNumber: number;
|
|
443
|
-
}>>;
|
|
444
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
445
|
-
id: string;
|
|
446
|
-
round: number;
|
|
447
|
-
league: "nba" | "ncaa";
|
|
448
|
-
homeTeam: {
|
|
449
|
-
name: string;
|
|
450
|
-
image: string;
|
|
451
|
-
apiTeamId: number;
|
|
452
|
-
seed: number;
|
|
453
|
-
score: number;
|
|
454
|
-
id?: string | undefined;
|
|
455
|
-
isWinner?: boolean | undefined;
|
|
456
|
-
};
|
|
457
|
-
awayTeam: {
|
|
458
|
-
name: string;
|
|
459
|
-
image: string;
|
|
460
|
-
apiTeamId: number;
|
|
461
|
-
seed: number;
|
|
462
|
-
score: number;
|
|
463
|
-
id?: string | undefined;
|
|
464
|
-
isWinner?: boolean | undefined;
|
|
465
|
-
};
|
|
466
|
-
seriesInfo?: {
|
|
467
|
-
maxLength: number;
|
|
468
|
-
homeTeamWins: number;
|
|
469
|
-
awayTeamWins: number;
|
|
470
|
-
gameNumber: number;
|
|
471
|
-
} | undefined;
|
|
472
|
-
}, {
|
|
473
|
-
id: string;
|
|
474
|
-
round: number;
|
|
475
|
-
league: "nba" | "ncaa";
|
|
476
|
-
homeTeam: {
|
|
477
|
-
name: string;
|
|
478
|
-
image: string;
|
|
479
|
-
apiTeamId: number;
|
|
480
|
-
seed: number;
|
|
481
|
-
score: number;
|
|
482
|
-
id?: string | undefined;
|
|
483
|
-
isWinner?: boolean | undefined;
|
|
484
|
-
};
|
|
485
|
-
awayTeam: {
|
|
486
|
-
name: string;
|
|
487
|
-
image: string;
|
|
488
|
-
apiTeamId: number;
|
|
489
|
-
seed: number;
|
|
490
|
-
score: number;
|
|
491
|
-
id?: string | undefined;
|
|
492
|
-
isWinner?: boolean | undefined;
|
|
493
|
-
};
|
|
494
|
-
seriesInfo?: {
|
|
495
|
-
maxLength: number;
|
|
496
|
-
homeTeamWins: number;
|
|
497
|
-
awayTeamWins: number;
|
|
498
|
-
gameNumber: number;
|
|
499
|
-
} | undefined;
|
|
500
|
-
}>;
|
|
501
353
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
502
|
-
}, "id" | "user" | "createdAt">, {
|
|
503
354
|
game: import("zod").ZodObject<Omit<{
|
|
504
355
|
id: import("zod").ZodString;
|
|
505
356
|
round: import("zod").ZodNumber;
|
|
@@ -590,7 +441,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
590
441
|
} | undefined;
|
|
591
442
|
}>;
|
|
592
443
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
593
|
-
}
|
|
444
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
594
445
|
rating: number;
|
|
595
446
|
game: {
|
|
596
447
|
id: string;
|
|
@@ -602,9 +453,9 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
602
453
|
gameNumber: number;
|
|
603
454
|
} | undefined;
|
|
604
455
|
};
|
|
605
|
-
id?: string | undefined;
|
|
606
456
|
comment?: string | undefined;
|
|
607
457
|
userLikes?: number | undefined;
|
|
458
|
+
id?: string | undefined;
|
|
608
459
|
}, {
|
|
609
460
|
rating: number;
|
|
610
461
|
game: {
|
|
@@ -617,7 +468,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
617
468
|
gameNumber: number;
|
|
618
469
|
} | undefined;
|
|
619
470
|
};
|
|
620
|
-
id?: string | undefined;
|
|
621
471
|
comment?: string | undefined;
|
|
622
472
|
userLikes?: number | undefined;
|
|
473
|
+
id?: string | undefined;
|
|
623
474
|
}>;
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -107,6 +107,20 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
107
107
|
tiktok?: string | undefined;
|
|
108
108
|
}>>;
|
|
109
109
|
platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
|
|
110
|
+
selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
111
|
+
notificationSettings: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
112
|
+
allGames: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
113
|
+
favoriteLeagues: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
114
|
+
favoriteTeams: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
115
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
116
|
+
allGames?: boolean | undefined;
|
|
117
|
+
favoriteLeagues?: boolean | undefined;
|
|
118
|
+
favoriteTeams?: boolean | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
allGames?: boolean | undefined;
|
|
121
|
+
favoriteLeagues?: boolean | undefined;
|
|
122
|
+
favoriteTeams?: boolean | undefined;
|
|
123
|
+
}>>;
|
|
110
124
|
}, "strip", import("zod").ZodTypeAny, {
|
|
111
125
|
id: string;
|
|
112
126
|
email: string;
|
|
@@ -120,10 +134,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
120
134
|
}>;
|
|
121
135
|
askedForPushNotifications: boolean;
|
|
122
136
|
acceptedPushNotifications: boolean;
|
|
123
|
-
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
124
|
-
totalRatedGames?: number | undefined;
|
|
125
|
-
commentsLeft?: number | undefined;
|
|
126
|
-
avgRating?: number | undefined;
|
|
127
137
|
leagues?: {
|
|
128
138
|
nba: {
|
|
129
139
|
totalRatedGames: number;
|
|
@@ -136,6 +146,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
136
146
|
avgRating: number;
|
|
137
147
|
};
|
|
138
148
|
} | undefined;
|
|
149
|
+
totalRatedGames?: number | undefined;
|
|
150
|
+
commentsLeft?: number | undefined;
|
|
151
|
+
avgRating?: number | undefined;
|
|
139
152
|
isRegistrationComplete?: boolean | undefined;
|
|
140
153
|
badge?: string | undefined;
|
|
141
154
|
registrationStep?: number | undefined;
|
|
@@ -149,6 +162,13 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
149
162
|
youtube?: string | undefined;
|
|
150
163
|
tiktok?: string | undefined;
|
|
151
164
|
} | undefined;
|
|
165
|
+
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
166
|
+
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
167
|
+
notificationSettings?: {
|
|
168
|
+
allGames?: boolean | undefined;
|
|
169
|
+
favoriteLeagues?: boolean | undefined;
|
|
170
|
+
favoriteTeams?: boolean | undefined;
|
|
171
|
+
} | undefined;
|
|
152
172
|
}, {
|
|
153
173
|
id: string;
|
|
154
174
|
email: string;
|
|
@@ -162,10 +182,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
162
182
|
}>;
|
|
163
183
|
askedForPushNotifications: boolean;
|
|
164
184
|
acceptedPushNotifications: boolean;
|
|
165
|
-
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
166
|
-
totalRatedGames?: number | undefined;
|
|
167
|
-
commentsLeft?: number | undefined;
|
|
168
|
-
avgRating?: number | undefined;
|
|
169
185
|
leagues?: {
|
|
170
186
|
nba: {
|
|
171
187
|
totalRatedGames: number;
|
|
@@ -178,6 +194,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
178
194
|
avgRating: number;
|
|
179
195
|
};
|
|
180
196
|
} | undefined;
|
|
197
|
+
totalRatedGames?: number | undefined;
|
|
198
|
+
commentsLeft?: number | undefined;
|
|
199
|
+
avgRating?: number | undefined;
|
|
181
200
|
isRegistrationComplete?: boolean | undefined;
|
|
182
201
|
badge?: string | undefined;
|
|
183
202
|
registrationStep?: number | undefined;
|
|
@@ -191,6 +210,13 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
191
210
|
youtube?: string | undefined;
|
|
192
211
|
tiktok?: string | undefined;
|
|
193
212
|
} | undefined;
|
|
213
|
+
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
214
|
+
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
215
|
+
notificationSettings?: {
|
|
216
|
+
allGames?: boolean | undefined;
|
|
217
|
+
favoriteLeagues?: boolean | undefined;
|
|
218
|
+
favoriteTeams?: boolean | undefined;
|
|
219
|
+
} | undefined;
|
|
194
220
|
}>;
|
|
195
221
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
196
222
|
id: import("zod").ZodString;
|
|
@@ -288,6 +314,20 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
288
314
|
tiktok?: string | undefined;
|
|
289
315
|
}>>;
|
|
290
316
|
platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
|
|
317
|
+
selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
318
|
+
notificationSettings: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
319
|
+
allGames: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
320
|
+
favoriteLeagues: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
321
|
+
favoriteTeams: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
322
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
323
|
+
allGames?: boolean | undefined;
|
|
324
|
+
favoriteLeagues?: boolean | undefined;
|
|
325
|
+
favoriteTeams?: boolean | undefined;
|
|
326
|
+
}, {
|
|
327
|
+
allGames?: boolean | undefined;
|
|
328
|
+
favoriteLeagues?: boolean | undefined;
|
|
329
|
+
favoriteTeams?: boolean | undefined;
|
|
330
|
+
}>>;
|
|
291
331
|
}, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
292
332
|
email: string;
|
|
293
333
|
username: string;
|
|
@@ -319,6 +359,12 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
319
359
|
youtube?: string | undefined;
|
|
320
360
|
tiktok?: string | undefined;
|
|
321
361
|
} | undefined;
|
|
362
|
+
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
363
|
+
notificationSettings?: {
|
|
364
|
+
allGames?: boolean | undefined;
|
|
365
|
+
favoriteLeagues?: boolean | undefined;
|
|
366
|
+
favoriteTeams?: boolean | undefined;
|
|
367
|
+
} | undefined;
|
|
322
368
|
}, {
|
|
323
369
|
email: string;
|
|
324
370
|
username: string;
|
|
@@ -350,4 +396,10 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
350
396
|
youtube?: string | undefined;
|
|
351
397
|
tiktok?: string | undefined;
|
|
352
398
|
} | undefined;
|
|
399
|
+
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
400
|
+
notificationSettings?: {
|
|
401
|
+
allGames?: boolean | undefined;
|
|
402
|
+
favoriteLeagues?: boolean | undefined;
|
|
403
|
+
favoriteTeams?: boolean | undefined;
|
|
404
|
+
} | undefined;
|
|
353
405
|
}>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -47,6 +47,12 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
47
47
|
(0, zod_1.literal)("windows"),
|
|
48
48
|
(0, zod_1.literal)("web"),
|
|
49
49
|
]).optional(),
|
|
50
|
+
selectedTeamsPerLeague: (0, zod_1.record)((0, zod_1.array)((0, zod_1.string)())).optional(),
|
|
51
|
+
notificationSettings: (0, zod_1.object)({
|
|
52
|
+
allGames: (0, zod_1.boolean)().optional(),
|
|
53
|
+
favoriteLeagues: (0, zod_1.boolean)().optional(),
|
|
54
|
+
favoriteTeams: (0, zod_1.boolean)().optional(),
|
|
55
|
+
}).optional(),
|
|
50
56
|
});
|
|
51
57
|
exports.createUserSchema = exports.userSchema.omit({
|
|
52
58
|
id: true,
|