rategame-shared 1.1.10 → 1.1.11
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 +81 -14
- package/dist/schemas/game.js +1 -0
- package/dist/schemas/rating.d.ts +193 -14
- package/dist/schemas/user.d.ts +8 -8
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const gameTeamSchema: z.ZodObject<{
|
|
|
7
7
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
image: z.ZodString;
|
|
9
9
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
12
|
name: string;
|
|
12
13
|
image: string;
|
|
@@ -15,6 +16,7 @@ export declare const gameTeamSchema: z.ZodObject<{
|
|
|
15
16
|
id?: string | undefined;
|
|
16
17
|
isWinner?: boolean | undefined;
|
|
17
18
|
seed?: number | undefined;
|
|
19
|
+
teamCode?: string | undefined;
|
|
18
20
|
}, {
|
|
19
21
|
name: string;
|
|
20
22
|
image: string;
|
|
@@ -23,6 +25,7 @@ export declare const gameTeamSchema: z.ZodObject<{
|
|
|
23
25
|
id?: string | undefined;
|
|
24
26
|
isWinner?: boolean | undefined;
|
|
25
27
|
seed?: number | undefined;
|
|
28
|
+
teamCode?: string | undefined;
|
|
26
29
|
}>;
|
|
27
30
|
export declare const gameRatingAggregateSchema: z.ZodObject<{
|
|
28
31
|
avg: z.ZodNumber;
|
|
@@ -83,6 +86,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
83
86
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
84
87
|
image: z.ZodString;
|
|
85
88
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
86
90
|
}, "strip", z.ZodTypeAny, {
|
|
87
91
|
name: string;
|
|
88
92
|
image: string;
|
|
@@ -91,6 +95,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
91
95
|
id?: string | undefined;
|
|
92
96
|
isWinner?: boolean | undefined;
|
|
93
97
|
seed?: number | undefined;
|
|
98
|
+
teamCode?: string | undefined;
|
|
94
99
|
}, {
|
|
95
100
|
name: string;
|
|
96
101
|
image: string;
|
|
@@ -99,6 +104,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
99
104
|
id?: string | undefined;
|
|
100
105
|
isWinner?: boolean | undefined;
|
|
101
106
|
seed?: number | undefined;
|
|
107
|
+
teamCode?: string | undefined;
|
|
102
108
|
}>;
|
|
103
109
|
awayTeam: z.ZodObject<{
|
|
104
110
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -108,6 +114,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
108
114
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
109
115
|
image: z.ZodString;
|
|
110
116
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
111
118
|
}, "strip", z.ZodTypeAny, {
|
|
112
119
|
name: string;
|
|
113
120
|
image: string;
|
|
@@ -116,6 +123,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
116
123
|
id?: string | undefined;
|
|
117
124
|
isWinner?: boolean | undefined;
|
|
118
125
|
seed?: number | undefined;
|
|
126
|
+
teamCode?: string | undefined;
|
|
119
127
|
}, {
|
|
120
128
|
name: string;
|
|
121
129
|
image: string;
|
|
@@ -124,6 +132,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
124
132
|
id?: string | undefined;
|
|
125
133
|
isWinner?: boolean | undefined;
|
|
126
134
|
seed?: number | undefined;
|
|
135
|
+
teamCode?: string | undefined;
|
|
127
136
|
}>;
|
|
128
137
|
timeRemainingMinutes: z.ZodNumber;
|
|
129
138
|
timeRemainingSeconds: z.ZodNumber;
|
|
@@ -198,6 +207,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
198
207
|
id?: string | undefined;
|
|
199
208
|
isWinner?: boolean | undefined;
|
|
200
209
|
seed?: number | undefined;
|
|
210
|
+
teamCode?: string | undefined;
|
|
201
211
|
};
|
|
202
212
|
awayTeam: {
|
|
203
213
|
name: string;
|
|
@@ -207,6 +217,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
207
217
|
id?: string | undefined;
|
|
208
218
|
isWinner?: boolean | undefined;
|
|
209
219
|
seed?: number | undefined;
|
|
220
|
+
teamCode?: string | undefined;
|
|
210
221
|
};
|
|
211
222
|
timeRemainingMinutes: number;
|
|
212
223
|
timeRemainingSeconds: number;
|
|
@@ -248,6 +259,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
248
259
|
id?: string | undefined;
|
|
249
260
|
isWinner?: boolean | undefined;
|
|
250
261
|
seed?: number | undefined;
|
|
262
|
+
teamCode?: string | undefined;
|
|
251
263
|
};
|
|
252
264
|
awayTeam: {
|
|
253
265
|
name: string;
|
|
@@ -257,6 +269,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
257
269
|
id?: string | undefined;
|
|
258
270
|
isWinner?: boolean | undefined;
|
|
259
271
|
seed?: number | undefined;
|
|
272
|
+
teamCode?: string | undefined;
|
|
260
273
|
};
|
|
261
274
|
timeRemainingMinutes: number;
|
|
262
275
|
timeRemainingSeconds: number;
|
|
@@ -301,6 +314,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
301
314
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
302
315
|
image: z.ZodString;
|
|
303
316
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
317
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
304
318
|
}, "strip", z.ZodTypeAny, {
|
|
305
319
|
name: string;
|
|
306
320
|
image: string;
|
|
@@ -309,6 +323,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
309
323
|
id?: string | undefined;
|
|
310
324
|
isWinner?: boolean | undefined;
|
|
311
325
|
seed?: number | undefined;
|
|
326
|
+
teamCode?: string | undefined;
|
|
312
327
|
}, {
|
|
313
328
|
name: string;
|
|
314
329
|
image: string;
|
|
@@ -317,6 +332,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
317
332
|
id?: string | undefined;
|
|
318
333
|
isWinner?: boolean | undefined;
|
|
319
334
|
seed?: number | undefined;
|
|
335
|
+
teamCode?: string | undefined;
|
|
320
336
|
}>;
|
|
321
337
|
awayTeam: z.ZodObject<{
|
|
322
338
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -326,6 +342,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
326
342
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
327
343
|
image: z.ZodString;
|
|
328
344
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
329
346
|
}, "strip", z.ZodTypeAny, {
|
|
330
347
|
name: string;
|
|
331
348
|
image: string;
|
|
@@ -334,6 +351,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
334
351
|
id?: string | undefined;
|
|
335
352
|
isWinner?: boolean | undefined;
|
|
336
353
|
seed?: number | undefined;
|
|
354
|
+
teamCode?: string | undefined;
|
|
337
355
|
}, {
|
|
338
356
|
name: string;
|
|
339
357
|
image: string;
|
|
@@ -342,6 +360,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
342
360
|
id?: string | undefined;
|
|
343
361
|
isWinner?: boolean | undefined;
|
|
344
362
|
seed?: number | undefined;
|
|
363
|
+
teamCode?: string | undefined;
|
|
345
364
|
}>;
|
|
346
365
|
seriesInfo: z.ZodOptional<z.ZodObject<{
|
|
347
366
|
homeTeamWins: z.ZodNumber;
|
|
@@ -398,6 +417,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
398
417
|
id?: string | undefined;
|
|
399
418
|
isWinner?: boolean | undefined;
|
|
400
419
|
seed?: number | undefined;
|
|
420
|
+
teamCode?: string | undefined;
|
|
401
421
|
};
|
|
402
422
|
awayTeam: {
|
|
403
423
|
name: string;
|
|
@@ -407,6 +427,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
407
427
|
id?: string | undefined;
|
|
408
428
|
isWinner?: boolean | undefined;
|
|
409
429
|
seed?: number | undefined;
|
|
430
|
+
teamCode?: string | undefined;
|
|
410
431
|
};
|
|
411
432
|
id?: string | undefined;
|
|
412
433
|
isClosed?: boolean | undefined;
|
|
@@ -438,6 +459,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
438
459
|
id?: string | undefined;
|
|
439
460
|
isWinner?: boolean | undefined;
|
|
440
461
|
seed?: number | undefined;
|
|
462
|
+
teamCode?: string | undefined;
|
|
441
463
|
};
|
|
442
464
|
awayTeam: {
|
|
443
465
|
name: string;
|
|
@@ -447,6 +469,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
447
469
|
id?: string | undefined;
|
|
448
470
|
isWinner?: boolean | undefined;
|
|
449
471
|
seed?: number | undefined;
|
|
472
|
+
teamCode?: string | undefined;
|
|
450
473
|
};
|
|
451
474
|
id?: string | undefined;
|
|
452
475
|
isClosed?: boolean | undefined;
|
|
@@ -465,7 +488,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
465
488
|
};
|
|
466
489
|
} | undefined;
|
|
467
490
|
}>;
|
|
468
|
-
export declare const basketballGameSchema: z.ZodObject<{
|
|
491
|
+
export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
469
492
|
id: z.ZodOptional<z.ZodString>;
|
|
470
493
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
471
494
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -482,6 +505,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
482
505
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
483
506
|
image: z.ZodString;
|
|
484
507
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
508
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
485
509
|
}, "strip", z.ZodTypeAny, {
|
|
486
510
|
name: string;
|
|
487
511
|
image: string;
|
|
@@ -490,6 +514,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
490
514
|
id?: string | undefined;
|
|
491
515
|
isWinner?: boolean | undefined;
|
|
492
516
|
seed?: number | undefined;
|
|
517
|
+
teamCode?: string | undefined;
|
|
493
518
|
}, {
|
|
494
519
|
name: string;
|
|
495
520
|
image: string;
|
|
@@ -498,6 +523,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
498
523
|
id?: string | undefined;
|
|
499
524
|
isWinner?: boolean | undefined;
|
|
500
525
|
seed?: number | undefined;
|
|
526
|
+
teamCode?: string | undefined;
|
|
501
527
|
}>;
|
|
502
528
|
awayTeam: z.ZodObject<{
|
|
503
529
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -507,6 +533,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
507
533
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
508
534
|
image: z.ZodString;
|
|
509
535
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
536
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
510
537
|
}, "strip", z.ZodTypeAny, {
|
|
511
538
|
name: string;
|
|
512
539
|
image: string;
|
|
@@ -515,6 +542,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
515
542
|
id?: string | undefined;
|
|
516
543
|
isWinner?: boolean | undefined;
|
|
517
544
|
seed?: number | undefined;
|
|
545
|
+
teamCode?: string | undefined;
|
|
518
546
|
}, {
|
|
519
547
|
name: string;
|
|
520
548
|
image: string;
|
|
@@ -523,6 +551,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
523
551
|
id?: string | undefined;
|
|
524
552
|
isWinner?: boolean | undefined;
|
|
525
553
|
seed?: number | undefined;
|
|
554
|
+
teamCode?: string | undefined;
|
|
526
555
|
}>;
|
|
527
556
|
seriesInfo: z.ZodOptional<z.ZodObject<{
|
|
528
557
|
homeTeamWins: z.ZodNumber;
|
|
@@ -565,6 +594,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
565
594
|
options: Record<number, number>;
|
|
566
595
|
};
|
|
567
596
|
}>>;
|
|
597
|
+
}, {
|
|
568
598
|
round: z.ZodNumber;
|
|
569
599
|
timeRemainingMinutes: z.ZodNumber;
|
|
570
600
|
timeRemainingSeconds: z.ZodNumber;
|
|
@@ -583,7 +613,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
583
613
|
}>, "many">;
|
|
584
614
|
periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
|
|
585
615
|
periodDuration: z.ZodNumber;
|
|
586
|
-
}
|
|
616
|
+
}>, "strip", z.ZodTypeAny, {
|
|
587
617
|
round: number;
|
|
588
618
|
status: "live" | "scheduled" | "final";
|
|
589
619
|
startedAt: number;
|
|
@@ -598,6 +628,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
598
628
|
id?: string | undefined;
|
|
599
629
|
isWinner?: boolean | undefined;
|
|
600
630
|
seed?: number | undefined;
|
|
631
|
+
teamCode?: string | undefined;
|
|
601
632
|
};
|
|
602
633
|
awayTeam: {
|
|
603
634
|
name: string;
|
|
@@ -607,6 +638,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
607
638
|
id?: string | undefined;
|
|
608
639
|
isWinner?: boolean | undefined;
|
|
609
640
|
seed?: number | undefined;
|
|
641
|
+
teamCode?: string | undefined;
|
|
610
642
|
};
|
|
611
643
|
timeRemainingMinutes: number;
|
|
612
644
|
timeRemainingSeconds: number;
|
|
@@ -648,6 +680,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
648
680
|
id?: string | undefined;
|
|
649
681
|
isWinner?: boolean | undefined;
|
|
650
682
|
seed?: number | undefined;
|
|
683
|
+
teamCode?: string | undefined;
|
|
651
684
|
};
|
|
652
685
|
awayTeam: {
|
|
653
686
|
name: string;
|
|
@@ -657,6 +690,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
657
690
|
id?: string | undefined;
|
|
658
691
|
isWinner?: boolean | undefined;
|
|
659
692
|
seed?: number | undefined;
|
|
693
|
+
teamCode?: string | undefined;
|
|
660
694
|
};
|
|
661
695
|
timeRemainingMinutes: number;
|
|
662
696
|
timeRemainingSeconds: number;
|
|
@@ -697,7 +731,7 @@ export declare const inningSchema: z.ZodObject<{
|
|
|
697
731
|
homeScore: number;
|
|
698
732
|
inningNumber: number;
|
|
699
733
|
}>;
|
|
700
|
-
export declare const mlbGameSchema: z.ZodObject<{
|
|
734
|
+
export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
701
735
|
id: z.ZodOptional<z.ZodString>;
|
|
702
736
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
703
737
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -714,6 +748,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
714
748
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
715
749
|
image: z.ZodString;
|
|
716
750
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
751
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
717
752
|
}, "strip", z.ZodTypeAny, {
|
|
718
753
|
name: string;
|
|
719
754
|
image: string;
|
|
@@ -722,6 +757,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
722
757
|
id?: string | undefined;
|
|
723
758
|
isWinner?: boolean | undefined;
|
|
724
759
|
seed?: number | undefined;
|
|
760
|
+
teamCode?: string | undefined;
|
|
725
761
|
}, {
|
|
726
762
|
name: string;
|
|
727
763
|
image: string;
|
|
@@ -730,6 +766,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
730
766
|
id?: string | undefined;
|
|
731
767
|
isWinner?: boolean | undefined;
|
|
732
768
|
seed?: number | undefined;
|
|
769
|
+
teamCode?: string | undefined;
|
|
733
770
|
}>;
|
|
734
771
|
awayTeam: z.ZodObject<{
|
|
735
772
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -739,6 +776,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
739
776
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
740
777
|
image: z.ZodString;
|
|
741
778
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
779
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
742
780
|
}, "strip", z.ZodTypeAny, {
|
|
743
781
|
name: string;
|
|
744
782
|
image: string;
|
|
@@ -747,6 +785,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
747
785
|
id?: string | undefined;
|
|
748
786
|
isWinner?: boolean | undefined;
|
|
749
787
|
seed?: number | undefined;
|
|
788
|
+
teamCode?: string | undefined;
|
|
750
789
|
}, {
|
|
751
790
|
name: string;
|
|
752
791
|
image: string;
|
|
@@ -755,6 +794,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
755
794
|
id?: string | undefined;
|
|
756
795
|
isWinner?: boolean | undefined;
|
|
757
796
|
seed?: number | undefined;
|
|
797
|
+
teamCode?: string | undefined;
|
|
758
798
|
}>;
|
|
759
799
|
seriesInfo: z.ZodOptional<z.ZodObject<{
|
|
760
800
|
homeTeamWins: z.ZodNumber;
|
|
@@ -797,6 +837,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
797
837
|
options: Record<number, number>;
|
|
798
838
|
};
|
|
799
839
|
}>>;
|
|
840
|
+
}, {
|
|
800
841
|
totalInningsRemaining: z.ZodNumber;
|
|
801
842
|
innings: z.ZodArray<z.ZodObject<{
|
|
802
843
|
inningNumber: z.ZodNumber;
|
|
@@ -897,7 +938,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
897
938
|
id?: string | undefined;
|
|
898
939
|
}>>;
|
|
899
940
|
outs: z.ZodOptional<z.ZodNumber>;
|
|
900
|
-
}
|
|
941
|
+
}>, "strip", z.ZodTypeAny, {
|
|
901
942
|
status: "live" | "scheduled" | "final";
|
|
902
943
|
startedAt: number;
|
|
903
944
|
finishedAt: number;
|
|
@@ -911,6 +952,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
911
952
|
id?: string | undefined;
|
|
912
953
|
isWinner?: boolean | undefined;
|
|
913
954
|
seed?: number | undefined;
|
|
955
|
+
teamCode?: string | undefined;
|
|
914
956
|
};
|
|
915
957
|
awayTeam: {
|
|
916
958
|
name: string;
|
|
@@ -920,6 +962,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
920
962
|
id?: string | undefined;
|
|
921
963
|
isWinner?: boolean | undefined;
|
|
922
964
|
seed?: number | undefined;
|
|
965
|
+
teamCode?: string | undefined;
|
|
923
966
|
};
|
|
924
967
|
totalInningsRemaining: number;
|
|
925
968
|
innings: {
|
|
@@ -989,6 +1032,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
989
1032
|
id?: string | undefined;
|
|
990
1033
|
isWinner?: boolean | undefined;
|
|
991
1034
|
seed?: number | undefined;
|
|
1035
|
+
teamCode?: string | undefined;
|
|
992
1036
|
};
|
|
993
1037
|
awayTeam: {
|
|
994
1038
|
name: string;
|
|
@@ -998,6 +1042,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
998
1042
|
id?: string | undefined;
|
|
999
1043
|
isWinner?: boolean | undefined;
|
|
1000
1044
|
seed?: number | undefined;
|
|
1045
|
+
teamCode?: string | undefined;
|
|
1001
1046
|
};
|
|
1002
1047
|
totalInningsRemaining: number;
|
|
1003
1048
|
innings: {
|
|
@@ -1054,7 +1099,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
1054
1099
|
} | undefined;
|
|
1055
1100
|
outs?: number | undefined;
|
|
1056
1101
|
}>;
|
|
1057
|
-
export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
1102
|
+
export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
1058
1103
|
id: z.ZodOptional<z.ZodString>;
|
|
1059
1104
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
1060
1105
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1071,6 +1116,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1071
1116
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1072
1117
|
image: z.ZodString;
|
|
1073
1118
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1119
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
1074
1120
|
}, "strip", z.ZodTypeAny, {
|
|
1075
1121
|
name: string;
|
|
1076
1122
|
image: string;
|
|
@@ -1079,6 +1125,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1079
1125
|
id?: string | undefined;
|
|
1080
1126
|
isWinner?: boolean | undefined;
|
|
1081
1127
|
seed?: number | undefined;
|
|
1128
|
+
teamCode?: string | undefined;
|
|
1082
1129
|
}, {
|
|
1083
1130
|
name: string;
|
|
1084
1131
|
image: string;
|
|
@@ -1087,6 +1134,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1087
1134
|
id?: string | undefined;
|
|
1088
1135
|
isWinner?: boolean | undefined;
|
|
1089
1136
|
seed?: number | undefined;
|
|
1137
|
+
teamCode?: string | undefined;
|
|
1090
1138
|
}>;
|
|
1091
1139
|
awayTeam: z.ZodObject<{
|
|
1092
1140
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1096,6 +1144,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1096
1144
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1097
1145
|
image: z.ZodString;
|
|
1098
1146
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1147
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
1099
1148
|
}, "strip", z.ZodTypeAny, {
|
|
1100
1149
|
name: string;
|
|
1101
1150
|
image: string;
|
|
@@ -1104,6 +1153,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1104
1153
|
id?: string | undefined;
|
|
1105
1154
|
isWinner?: boolean | undefined;
|
|
1106
1155
|
seed?: number | undefined;
|
|
1156
|
+
teamCode?: string | undefined;
|
|
1107
1157
|
}, {
|
|
1108
1158
|
name: string;
|
|
1109
1159
|
image: string;
|
|
@@ -1112,6 +1162,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1112
1162
|
id?: string | undefined;
|
|
1113
1163
|
isWinner?: boolean | undefined;
|
|
1114
1164
|
seed?: number | undefined;
|
|
1165
|
+
teamCode?: string | undefined;
|
|
1115
1166
|
}>;
|
|
1116
1167
|
seriesInfo: z.ZodOptional<z.ZodObject<{
|
|
1117
1168
|
homeTeamWins: z.ZodNumber;
|
|
@@ -1154,6 +1205,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1154
1205
|
options: Record<number, number>;
|
|
1155
1206
|
};
|
|
1156
1207
|
}>>;
|
|
1208
|
+
}, {
|
|
1157
1209
|
round: z.ZodNumber;
|
|
1158
1210
|
timeRemainingMinutes: z.ZodNumber;
|
|
1159
1211
|
timeRemainingSeconds: z.ZodNumber;
|
|
@@ -1172,7 +1224,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1172
1224
|
}>, "many">;
|
|
1173
1225
|
periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
|
|
1174
1226
|
periodDuration: z.ZodNumber;
|
|
1175
|
-
}
|
|
1227
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1176
1228
|
round: number;
|
|
1177
1229
|
status: "live" | "scheduled" | "final";
|
|
1178
1230
|
startedAt: number;
|
|
@@ -1187,6 +1239,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1187
1239
|
id?: string | undefined;
|
|
1188
1240
|
isWinner?: boolean | undefined;
|
|
1189
1241
|
seed?: number | undefined;
|
|
1242
|
+
teamCode?: string | undefined;
|
|
1190
1243
|
};
|
|
1191
1244
|
awayTeam: {
|
|
1192
1245
|
name: string;
|
|
@@ -1196,6 +1249,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1196
1249
|
id?: string | undefined;
|
|
1197
1250
|
isWinner?: boolean | undefined;
|
|
1198
1251
|
seed?: number | undefined;
|
|
1252
|
+
teamCode?: string | undefined;
|
|
1199
1253
|
};
|
|
1200
1254
|
timeRemainingMinutes: number;
|
|
1201
1255
|
timeRemainingSeconds: number;
|
|
@@ -1237,6 +1291,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1237
1291
|
id?: string | undefined;
|
|
1238
1292
|
isWinner?: boolean | undefined;
|
|
1239
1293
|
seed?: number | undefined;
|
|
1294
|
+
teamCode?: string | undefined;
|
|
1240
1295
|
};
|
|
1241
1296
|
awayTeam: {
|
|
1242
1297
|
name: string;
|
|
@@ -1246,6 +1301,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1246
1301
|
id?: string | undefined;
|
|
1247
1302
|
isWinner?: boolean | undefined;
|
|
1248
1303
|
seed?: number | undefined;
|
|
1304
|
+
teamCode?: string | undefined;
|
|
1249
1305
|
};
|
|
1250
1306
|
timeRemainingMinutes: number;
|
|
1251
1307
|
timeRemainingSeconds: number;
|
|
@@ -1272,7 +1328,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1272
1328
|
options: Record<number, number>;
|
|
1273
1329
|
};
|
|
1274
1330
|
} | undefined;
|
|
1275
|
-
}>, z.ZodObject<{
|
|
1331
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1276
1332
|
id: z.ZodOptional<z.ZodString>;
|
|
1277
1333
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
1278
1334
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1289,6 +1345,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1289
1345
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1290
1346
|
image: z.ZodString;
|
|
1291
1347
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1348
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
1292
1349
|
}, "strip", z.ZodTypeAny, {
|
|
1293
1350
|
name: string;
|
|
1294
1351
|
image: string;
|
|
@@ -1297,6 +1354,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1297
1354
|
id?: string | undefined;
|
|
1298
1355
|
isWinner?: boolean | undefined;
|
|
1299
1356
|
seed?: number | undefined;
|
|
1357
|
+
teamCode?: string | undefined;
|
|
1300
1358
|
}, {
|
|
1301
1359
|
name: string;
|
|
1302
1360
|
image: string;
|
|
@@ -1305,6 +1363,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1305
1363
|
id?: string | undefined;
|
|
1306
1364
|
isWinner?: boolean | undefined;
|
|
1307
1365
|
seed?: number | undefined;
|
|
1366
|
+
teamCode?: string | undefined;
|
|
1308
1367
|
}>;
|
|
1309
1368
|
awayTeam: z.ZodObject<{
|
|
1310
1369
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1314,6 +1373,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1314
1373
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1315
1374
|
image: z.ZodString;
|
|
1316
1375
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1376
|
+
teamCode: z.ZodOptional<z.ZodString>;
|
|
1317
1377
|
}, "strip", z.ZodTypeAny, {
|
|
1318
1378
|
name: string;
|
|
1319
1379
|
image: string;
|
|
@@ -1322,6 +1382,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1322
1382
|
id?: string | undefined;
|
|
1323
1383
|
isWinner?: boolean | undefined;
|
|
1324
1384
|
seed?: number | undefined;
|
|
1385
|
+
teamCode?: string | undefined;
|
|
1325
1386
|
}, {
|
|
1326
1387
|
name: string;
|
|
1327
1388
|
image: string;
|
|
@@ -1330,6 +1391,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1330
1391
|
id?: string | undefined;
|
|
1331
1392
|
isWinner?: boolean | undefined;
|
|
1332
1393
|
seed?: number | undefined;
|
|
1394
|
+
teamCode?: string | undefined;
|
|
1333
1395
|
}>;
|
|
1334
1396
|
seriesInfo: z.ZodOptional<z.ZodObject<{
|
|
1335
1397
|
homeTeamWins: z.ZodNumber;
|
|
@@ -1372,6 +1434,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1372
1434
|
options: Record<number, number>;
|
|
1373
1435
|
};
|
|
1374
1436
|
}>>;
|
|
1437
|
+
}, {
|
|
1375
1438
|
totalInningsRemaining: z.ZodNumber;
|
|
1376
1439
|
innings: z.ZodArray<z.ZodObject<{
|
|
1377
1440
|
inningNumber: z.ZodNumber;
|
|
@@ -1472,7 +1535,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1472
1535
|
id?: string | undefined;
|
|
1473
1536
|
}>>;
|
|
1474
1537
|
outs: z.ZodOptional<z.ZodNumber>;
|
|
1475
|
-
}
|
|
1538
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1476
1539
|
status: "live" | "scheduled" | "final";
|
|
1477
1540
|
startedAt: number;
|
|
1478
1541
|
finishedAt: number;
|
|
@@ -1486,6 +1549,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1486
1549
|
id?: string | undefined;
|
|
1487
1550
|
isWinner?: boolean | undefined;
|
|
1488
1551
|
seed?: number | undefined;
|
|
1552
|
+
teamCode?: string | undefined;
|
|
1489
1553
|
};
|
|
1490
1554
|
awayTeam: {
|
|
1491
1555
|
name: string;
|
|
@@ -1495,6 +1559,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1495
1559
|
id?: string | undefined;
|
|
1496
1560
|
isWinner?: boolean | undefined;
|
|
1497
1561
|
seed?: number | undefined;
|
|
1562
|
+
teamCode?: string | undefined;
|
|
1498
1563
|
};
|
|
1499
1564
|
totalInningsRemaining: number;
|
|
1500
1565
|
innings: {
|
|
@@ -1564,6 +1629,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1564
1629
|
id?: string | undefined;
|
|
1565
1630
|
isWinner?: boolean | undefined;
|
|
1566
1631
|
seed?: number | undefined;
|
|
1632
|
+
teamCode?: string | undefined;
|
|
1567
1633
|
};
|
|
1568
1634
|
awayTeam: {
|
|
1569
1635
|
name: string;
|
|
@@ -1573,6 +1639,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1573
1639
|
id?: string | undefined;
|
|
1574
1640
|
isWinner?: boolean | undefined;
|
|
1575
1641
|
seed?: number | undefined;
|
|
1642
|
+
teamCode?: string | undefined;
|
|
1576
1643
|
};
|
|
1577
1644
|
totalInningsRemaining: number;
|
|
1578
1645
|
innings: {
|
|
@@ -1640,20 +1707,20 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
1640
1707
|
offset: z.ZodOptional<z.ZodString>;
|
|
1641
1708
|
}, "strip", z.ZodTypeAny, {
|
|
1642
1709
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1643
|
-
|
|
1644
|
-
teamId?: string | undefined;
|
|
1710
|
+
offset?: string | undefined;
|
|
1645
1711
|
round?: string | undefined;
|
|
1712
|
+
q?: string | undefined;
|
|
1646
1713
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
1714
|
+
teamId?: string | undefined;
|
|
1647
1715
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
1648
1716
|
limit?: string | undefined;
|
|
1649
|
-
offset?: string | undefined;
|
|
1650
1717
|
}, {
|
|
1651
1718
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1652
|
-
|
|
1653
|
-
teamId?: string | undefined;
|
|
1719
|
+
offset?: string | undefined;
|
|
1654
1720
|
round?: string | undefined;
|
|
1721
|
+
q?: string | undefined;
|
|
1655
1722
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
1723
|
+
teamId?: string | undefined;
|
|
1656
1724
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
1657
1725
|
limit?: string | undefined;
|
|
1658
|
-
offset?: string | undefined;
|
|
1659
1726
|
}>;
|
package/dist/schemas/game.js
CHANGED
|
@@ -11,6 +11,7 @@ exports.gameTeamSchema = zod_1.z.object({
|
|
|
11
11
|
isWinner: zod_1.z.boolean().optional(),
|
|
12
12
|
image: zod_1.z.string(),
|
|
13
13
|
seed: zod_1.z.number().optional(),
|
|
14
|
+
teamCode: zod_1.z.string().optional(),
|
|
14
15
|
});
|
|
15
16
|
exports.gameRatingAggregateSchema = zod_1.z.object({
|
|
16
17
|
avg: zod_1.z.number(),
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
34
34
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
35
35
|
image: import("zod").ZodString;
|
|
36
36
|
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
37
|
+
teamCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
38
|
}, "strip", import("zod").ZodTypeAny, {
|
|
38
39
|
name: string;
|
|
39
40
|
image: string;
|
|
@@ -42,6 +43,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
42
43
|
id?: string | undefined;
|
|
43
44
|
isWinner?: boolean | undefined;
|
|
44
45
|
seed?: number | undefined;
|
|
46
|
+
teamCode?: string | undefined;
|
|
45
47
|
}, {
|
|
46
48
|
name: string;
|
|
47
49
|
image: string;
|
|
@@ -50,6 +52,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
50
52
|
id?: string | undefined;
|
|
51
53
|
isWinner?: boolean | undefined;
|
|
52
54
|
seed?: number | undefined;
|
|
55
|
+
teamCode?: string | undefined;
|
|
53
56
|
}>;
|
|
54
57
|
awayTeam: import("zod").ZodObject<{
|
|
55
58
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -59,6 +62,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
59
62
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
60
63
|
image: import("zod").ZodString;
|
|
61
64
|
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
65
|
+
teamCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
66
|
}, "strip", import("zod").ZodTypeAny, {
|
|
63
67
|
name: string;
|
|
64
68
|
image: string;
|
|
@@ -67,6 +71,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
67
71
|
id?: string | undefined;
|
|
68
72
|
isWinner?: boolean | undefined;
|
|
69
73
|
seed?: number | undefined;
|
|
74
|
+
teamCode?: string | undefined;
|
|
70
75
|
}, {
|
|
71
76
|
name: string;
|
|
72
77
|
image: string;
|
|
@@ -75,6 +80,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
75
80
|
id?: string | undefined;
|
|
76
81
|
isWinner?: boolean | undefined;
|
|
77
82
|
seed?: number | undefined;
|
|
83
|
+
teamCode?: string | undefined;
|
|
78
84
|
}>;
|
|
79
85
|
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
80
86
|
homeTeamWins: import("zod").ZodNumber;
|
|
@@ -103,6 +109,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
103
109
|
id?: string | undefined;
|
|
104
110
|
isWinner?: boolean | undefined;
|
|
105
111
|
seed?: number | undefined;
|
|
112
|
+
teamCode?: string | undefined;
|
|
106
113
|
};
|
|
107
114
|
awayTeam: {
|
|
108
115
|
name: string;
|
|
@@ -112,6 +119,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
112
119
|
id?: string | undefined;
|
|
113
120
|
isWinner?: boolean | undefined;
|
|
114
121
|
seed?: number | undefined;
|
|
122
|
+
teamCode?: string | undefined;
|
|
115
123
|
};
|
|
116
124
|
round?: number | undefined;
|
|
117
125
|
seriesInfo?: {
|
|
@@ -131,6 +139,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
131
139
|
id?: string | undefined;
|
|
132
140
|
isWinner?: boolean | undefined;
|
|
133
141
|
seed?: number | undefined;
|
|
142
|
+
teamCode?: string | undefined;
|
|
134
143
|
};
|
|
135
144
|
awayTeam: {
|
|
136
145
|
name: string;
|
|
@@ -140,6 +149,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
140
149
|
id?: string | undefined;
|
|
141
150
|
isWinner?: boolean | undefined;
|
|
142
151
|
seed?: number | undefined;
|
|
152
|
+
teamCode?: string | undefined;
|
|
143
153
|
};
|
|
144
154
|
round?: number | undefined;
|
|
145
155
|
seriesInfo?: {
|
|
@@ -172,6 +182,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
172
182
|
id?: string | undefined;
|
|
173
183
|
isWinner?: boolean | undefined;
|
|
174
184
|
seed?: number | undefined;
|
|
185
|
+
teamCode?: string | undefined;
|
|
175
186
|
};
|
|
176
187
|
awayTeam: {
|
|
177
188
|
name: string;
|
|
@@ -181,6 +192,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
181
192
|
id?: string | undefined;
|
|
182
193
|
isWinner?: boolean | undefined;
|
|
183
194
|
seed?: number | undefined;
|
|
195
|
+
teamCode?: string | undefined;
|
|
184
196
|
};
|
|
185
197
|
round?: number | undefined;
|
|
186
198
|
seriesInfo?: {
|
|
@@ -214,6 +226,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
214
226
|
id?: string | undefined;
|
|
215
227
|
isWinner?: boolean | undefined;
|
|
216
228
|
seed?: number | undefined;
|
|
229
|
+
teamCode?: string | undefined;
|
|
217
230
|
};
|
|
218
231
|
awayTeam: {
|
|
219
232
|
name: string;
|
|
@@ -223,6 +236,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
223
236
|
id?: string | undefined;
|
|
224
237
|
isWinner?: boolean | undefined;
|
|
225
238
|
seed?: number | undefined;
|
|
239
|
+
teamCode?: string | undefined;
|
|
226
240
|
};
|
|
227
241
|
round?: number | undefined;
|
|
228
242
|
seriesInfo?: {
|
|
@@ -252,32 +266,32 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
252
266
|
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
253
267
|
}, "strip", import("zod").ZodTypeAny, {
|
|
254
268
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
255
|
-
|
|
256
|
-
teamId?: string | undefined;
|
|
269
|
+
offset?: string | undefined;
|
|
257
270
|
round?: string | undefined;
|
|
271
|
+
q?: string | undefined;
|
|
272
|
+
username?: string | undefined;
|
|
258
273
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
274
|
+
teamId?: string | undefined;
|
|
259
275
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
260
276
|
limit?: string | undefined;
|
|
261
|
-
|
|
277
|
+
comment?: string | undefined;
|
|
262
278
|
gameId?: string | undefined;
|
|
263
279
|
showEmptyRatings?: string | undefined;
|
|
264
|
-
comment?: string | undefined;
|
|
265
|
-
username?: string | undefined;
|
|
266
280
|
following?: string | undefined;
|
|
267
281
|
userId?: string | undefined;
|
|
268
282
|
}, {
|
|
269
283
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
270
|
-
|
|
271
|
-
teamId?: string | undefined;
|
|
284
|
+
offset?: string | undefined;
|
|
272
285
|
round?: string | undefined;
|
|
286
|
+
q?: string | undefined;
|
|
287
|
+
username?: string | undefined;
|
|
273
288
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
289
|
+
teamId?: string | undefined;
|
|
274
290
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
275
291
|
limit?: string | undefined;
|
|
276
|
-
|
|
292
|
+
comment?: string | undefined;
|
|
277
293
|
gameId?: string | undefined;
|
|
278
294
|
showEmptyRatings?: string | undefined;
|
|
279
|
-
comment?: string | undefined;
|
|
280
|
-
username?: string | undefined;
|
|
281
295
|
following?: string | undefined;
|
|
282
296
|
userId?: string | undefined;
|
|
283
297
|
}>;
|
|
@@ -347,10 +361,169 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
347
361
|
};
|
|
348
362
|
agree: boolean;
|
|
349
363
|
}>;
|
|
350
|
-
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
364
|
+
export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
|
|
365
|
+
id: import("zod").ZodString;
|
|
366
|
+
createdAt: import("zod").ZodNumber;
|
|
351
367
|
rating: import("zod").ZodNumber;
|
|
352
368
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
369
|
+
user: import("zod").ZodObject<{
|
|
370
|
+
id: import("zod").ZodString;
|
|
371
|
+
username: import("zod").ZodString;
|
|
372
|
+
avatarUrl: import("zod").ZodString;
|
|
373
|
+
email: import("zod").ZodString;
|
|
374
|
+
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
375
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
376
|
+
id: string;
|
|
377
|
+
email: string;
|
|
378
|
+
username: string;
|
|
379
|
+
avatarUrl: string;
|
|
380
|
+
badge?: string | undefined;
|
|
381
|
+
}, {
|
|
382
|
+
id: string;
|
|
383
|
+
email: string;
|
|
384
|
+
username: string;
|
|
385
|
+
avatarUrl: string;
|
|
386
|
+
badge?: string | undefined;
|
|
387
|
+
}>;
|
|
388
|
+
game: import("zod").ZodObject<{
|
|
389
|
+
id: import("zod").ZodString;
|
|
390
|
+
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
391
|
+
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
|
|
392
|
+
homeTeam: import("zod").ZodObject<{
|
|
393
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
394
|
+
apiTeamId: import("zod").ZodNumber;
|
|
395
|
+
name: import("zod").ZodString;
|
|
396
|
+
score: import("zod").ZodNumber;
|
|
397
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
398
|
+
image: import("zod").ZodString;
|
|
399
|
+
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
400
|
+
teamCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
401
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
402
|
+
name: string;
|
|
403
|
+
image: string;
|
|
404
|
+
apiTeamId: number;
|
|
405
|
+
score: number;
|
|
406
|
+
id?: string | undefined;
|
|
407
|
+
isWinner?: boolean | undefined;
|
|
408
|
+
seed?: number | undefined;
|
|
409
|
+
teamCode?: string | undefined;
|
|
410
|
+
}, {
|
|
411
|
+
name: string;
|
|
412
|
+
image: string;
|
|
413
|
+
apiTeamId: number;
|
|
414
|
+
score: number;
|
|
415
|
+
id?: string | undefined;
|
|
416
|
+
isWinner?: boolean | undefined;
|
|
417
|
+
seed?: number | undefined;
|
|
418
|
+
teamCode?: string | undefined;
|
|
419
|
+
}>;
|
|
420
|
+
awayTeam: import("zod").ZodObject<{
|
|
421
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
422
|
+
apiTeamId: import("zod").ZodNumber;
|
|
423
|
+
name: import("zod").ZodString;
|
|
424
|
+
score: import("zod").ZodNumber;
|
|
425
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
426
|
+
image: import("zod").ZodString;
|
|
427
|
+
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
428
|
+
teamCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
429
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
430
|
+
name: string;
|
|
431
|
+
image: string;
|
|
432
|
+
apiTeamId: number;
|
|
433
|
+
score: number;
|
|
434
|
+
id?: string | undefined;
|
|
435
|
+
isWinner?: boolean | undefined;
|
|
436
|
+
seed?: number | undefined;
|
|
437
|
+
teamCode?: string | undefined;
|
|
438
|
+
}, {
|
|
439
|
+
name: string;
|
|
440
|
+
image: string;
|
|
441
|
+
apiTeamId: number;
|
|
442
|
+
score: number;
|
|
443
|
+
id?: string | undefined;
|
|
444
|
+
isWinner?: boolean | undefined;
|
|
445
|
+
seed?: number | undefined;
|
|
446
|
+
teamCode?: string | undefined;
|
|
447
|
+
}>;
|
|
448
|
+
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
449
|
+
homeTeamWins: import("zod").ZodNumber;
|
|
450
|
+
awayTeamWins: import("zod").ZodNumber;
|
|
451
|
+
gameNumber: import("zod").ZodNumber;
|
|
452
|
+
maxLength: import("zod").ZodNumber;
|
|
453
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
454
|
+
maxLength: number;
|
|
455
|
+
homeTeamWins: number;
|
|
456
|
+
awayTeamWins: number;
|
|
457
|
+
gameNumber: number;
|
|
458
|
+
}, {
|
|
459
|
+
maxLength: number;
|
|
460
|
+
homeTeamWins: number;
|
|
461
|
+
awayTeamWins: number;
|
|
462
|
+
gameNumber: number;
|
|
463
|
+
}>>;
|
|
464
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
465
|
+
id: string;
|
|
466
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
467
|
+
homeTeam: {
|
|
468
|
+
name: string;
|
|
469
|
+
image: string;
|
|
470
|
+
apiTeamId: number;
|
|
471
|
+
score: number;
|
|
472
|
+
id?: string | undefined;
|
|
473
|
+
isWinner?: boolean | undefined;
|
|
474
|
+
seed?: number | undefined;
|
|
475
|
+
teamCode?: string | undefined;
|
|
476
|
+
};
|
|
477
|
+
awayTeam: {
|
|
478
|
+
name: string;
|
|
479
|
+
image: string;
|
|
480
|
+
apiTeamId: number;
|
|
481
|
+
score: number;
|
|
482
|
+
id?: string | undefined;
|
|
483
|
+
isWinner?: boolean | undefined;
|
|
484
|
+
seed?: number | undefined;
|
|
485
|
+
teamCode?: string | undefined;
|
|
486
|
+
};
|
|
487
|
+
round?: number | undefined;
|
|
488
|
+
seriesInfo?: {
|
|
489
|
+
maxLength: number;
|
|
490
|
+
homeTeamWins: number;
|
|
491
|
+
awayTeamWins: number;
|
|
492
|
+
gameNumber: number;
|
|
493
|
+
} | undefined;
|
|
494
|
+
}, {
|
|
495
|
+
id: string;
|
|
496
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
497
|
+
homeTeam: {
|
|
498
|
+
name: string;
|
|
499
|
+
image: string;
|
|
500
|
+
apiTeamId: number;
|
|
501
|
+
score: number;
|
|
502
|
+
id?: string | undefined;
|
|
503
|
+
isWinner?: boolean | undefined;
|
|
504
|
+
seed?: number | undefined;
|
|
505
|
+
teamCode?: string | undefined;
|
|
506
|
+
};
|
|
507
|
+
awayTeam: {
|
|
508
|
+
name: string;
|
|
509
|
+
image: string;
|
|
510
|
+
apiTeamId: number;
|
|
511
|
+
score: number;
|
|
512
|
+
id?: string | undefined;
|
|
513
|
+
isWinner?: boolean | undefined;
|
|
514
|
+
seed?: number | undefined;
|
|
515
|
+
teamCode?: string | undefined;
|
|
516
|
+
};
|
|
517
|
+
round?: number | undefined;
|
|
518
|
+
seriesInfo?: {
|
|
519
|
+
maxLength: number;
|
|
520
|
+
homeTeamWins: number;
|
|
521
|
+
awayTeamWins: number;
|
|
522
|
+
gameNumber: number;
|
|
523
|
+
} | undefined;
|
|
524
|
+
}>;
|
|
353
525
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
526
|
+
}, "id" | "user" | "createdAt">, {
|
|
354
527
|
game: import("zod").ZodObject<Omit<{
|
|
355
528
|
id: import("zod").ZodString;
|
|
356
529
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -363,6 +536,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
363
536
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
364
537
|
image: import("zod").ZodString;
|
|
365
538
|
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
539
|
+
teamCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
366
540
|
}, "strip", import("zod").ZodTypeAny, {
|
|
367
541
|
name: string;
|
|
368
542
|
image: string;
|
|
@@ -371,6 +545,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
371
545
|
id?: string | undefined;
|
|
372
546
|
isWinner?: boolean | undefined;
|
|
373
547
|
seed?: number | undefined;
|
|
548
|
+
teamCode?: string | undefined;
|
|
374
549
|
}, {
|
|
375
550
|
name: string;
|
|
376
551
|
image: string;
|
|
@@ -379,6 +554,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
379
554
|
id?: string | undefined;
|
|
380
555
|
isWinner?: boolean | undefined;
|
|
381
556
|
seed?: number | undefined;
|
|
557
|
+
teamCode?: string | undefined;
|
|
382
558
|
}>;
|
|
383
559
|
awayTeam: import("zod").ZodObject<{
|
|
384
560
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -388,6 +564,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
388
564
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
389
565
|
image: import("zod").ZodString;
|
|
390
566
|
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
567
|
+
teamCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
391
568
|
}, "strip", import("zod").ZodTypeAny, {
|
|
392
569
|
name: string;
|
|
393
570
|
image: string;
|
|
@@ -396,6 +573,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
396
573
|
id?: string | undefined;
|
|
397
574
|
isWinner?: boolean | undefined;
|
|
398
575
|
seed?: number | undefined;
|
|
576
|
+
teamCode?: string | undefined;
|
|
399
577
|
}, {
|
|
400
578
|
name: string;
|
|
401
579
|
image: string;
|
|
@@ -404,6 +582,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
404
582
|
id?: string | undefined;
|
|
405
583
|
isWinner?: boolean | undefined;
|
|
406
584
|
seed?: number | undefined;
|
|
585
|
+
teamCode?: string | undefined;
|
|
407
586
|
}>;
|
|
408
587
|
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
409
588
|
homeTeamWins: import("zod").ZodNumber;
|
|
@@ -441,7 +620,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
441
620
|
} | undefined;
|
|
442
621
|
}>;
|
|
443
622
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
444
|
-
}
|
|
623
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
445
624
|
rating: number;
|
|
446
625
|
game: {
|
|
447
626
|
id: string;
|
|
@@ -453,9 +632,9 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
453
632
|
gameNumber: number;
|
|
454
633
|
} | undefined;
|
|
455
634
|
};
|
|
635
|
+
id?: string | undefined;
|
|
456
636
|
comment?: string | undefined;
|
|
457
637
|
userLikes?: number | undefined;
|
|
458
|
-
id?: string | undefined;
|
|
459
638
|
}, {
|
|
460
639
|
rating: number;
|
|
461
640
|
game: {
|
|
@@ -468,7 +647,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
468
647
|
gameNumber: number;
|
|
469
648
|
} | undefined;
|
|
470
649
|
};
|
|
650
|
+
id?: string | undefined;
|
|
471
651
|
comment?: string | undefined;
|
|
472
652
|
userLikes?: number | undefined;
|
|
473
|
-
id?: string | undefined;
|
|
474
653
|
}>;
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -134,6 +134,10 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
134
134
|
}>;
|
|
135
135
|
askedForPushNotifications: boolean;
|
|
136
136
|
acceptedPushNotifications: boolean;
|
|
137
|
+
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
138
|
+
totalRatedGames?: number | undefined;
|
|
139
|
+
commentsLeft?: number | undefined;
|
|
140
|
+
avgRating?: number | undefined;
|
|
137
141
|
leagues?: {
|
|
138
142
|
nba: {
|
|
139
143
|
totalRatedGames: number;
|
|
@@ -146,9 +150,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
146
150
|
avgRating: number;
|
|
147
151
|
};
|
|
148
152
|
} | undefined;
|
|
149
|
-
totalRatedGames?: number | undefined;
|
|
150
|
-
commentsLeft?: number | undefined;
|
|
151
|
-
avgRating?: number | undefined;
|
|
152
153
|
isRegistrationComplete?: boolean | undefined;
|
|
153
154
|
badge?: string | undefined;
|
|
154
155
|
registrationStep?: number | undefined;
|
|
@@ -162,7 +163,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
162
163
|
youtube?: string | undefined;
|
|
163
164
|
tiktok?: string | undefined;
|
|
164
165
|
} | undefined;
|
|
165
|
-
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
166
166
|
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
167
167
|
notificationSettings?: {
|
|
168
168
|
allGames?: boolean | undefined;
|
|
@@ -182,6 +182,10 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
182
182
|
}>;
|
|
183
183
|
askedForPushNotifications: boolean;
|
|
184
184
|
acceptedPushNotifications: boolean;
|
|
185
|
+
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
186
|
+
totalRatedGames?: number | undefined;
|
|
187
|
+
commentsLeft?: number | undefined;
|
|
188
|
+
avgRating?: number | undefined;
|
|
185
189
|
leagues?: {
|
|
186
190
|
nba: {
|
|
187
191
|
totalRatedGames: number;
|
|
@@ -194,9 +198,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
194
198
|
avgRating: number;
|
|
195
199
|
};
|
|
196
200
|
} | undefined;
|
|
197
|
-
totalRatedGames?: number | undefined;
|
|
198
|
-
commentsLeft?: number | undefined;
|
|
199
|
-
avgRating?: number | undefined;
|
|
200
201
|
isRegistrationComplete?: boolean | undefined;
|
|
201
202
|
badge?: string | undefined;
|
|
202
203
|
registrationStep?: number | undefined;
|
|
@@ -210,7 +211,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
210
211
|
youtube?: string | undefined;
|
|
211
212
|
tiktok?: string | undefined;
|
|
212
213
|
} | undefined;
|
|
213
|
-
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
214
214
|
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
215
215
|
notificationSettings?: {
|
|
216
216
|
allGames?: boolean | undefined;
|