rategame-shared 1.1.9 → 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 +211 -144
- package/dist/schemas/game.js +2 -4
- 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,16 +1099,16 @@ 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<{
|
|
1058
|
-
id: z.ZodOptional<z.
|
|
1059
|
-
status: z.
|
|
1060
|
-
isClosed: z.ZodOptional<z.
|
|
1061
|
-
startedAt: z.
|
|
1062
|
-
finishedAt: z.
|
|
1063
|
-
ratingWindowClosedAt: z.ZodOptional<z.
|
|
1064
|
-
apiGameId: z.
|
|
1065
|
-
league: z.
|
|
1066
|
-
homeTeam: z.
|
|
1102
|
+
export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
1103
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
1105
|
+
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
1106
|
+
startedAt: z.ZodNumber;
|
|
1107
|
+
finishedAt: z.ZodNumber;
|
|
1108
|
+
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
1109
|
+
apiGameId: z.ZodNumber;
|
|
1110
|
+
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
1111
|
+
homeTeam: z.ZodObject<{
|
|
1067
1112
|
id: z.ZodOptional<z.ZodString>;
|
|
1068
1113
|
apiTeamId: z.ZodNumber;
|
|
1069
1114
|
name: z.ZodString;
|
|
@@ -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,8 +1134,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1087
1134
|
id?: string | undefined;
|
|
1088
1135
|
isWinner?: boolean | undefined;
|
|
1089
1136
|
seed?: number | undefined;
|
|
1090
|
-
|
|
1091
|
-
|
|
1137
|
+
teamCode?: string | undefined;
|
|
1138
|
+
}>;
|
|
1139
|
+
awayTeam: z.ZodObject<{
|
|
1092
1140
|
id: z.ZodOptional<z.ZodString>;
|
|
1093
1141
|
apiTeamId: z.ZodNumber;
|
|
1094
1142
|
name: 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,8 +1162,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1112
1162
|
id?: string | undefined;
|
|
1113
1163
|
isWinner?: boolean | undefined;
|
|
1114
1164
|
seed?: number | undefined;
|
|
1115
|
-
|
|
1116
|
-
|
|
1165
|
+
teamCode?: string | undefined;
|
|
1166
|
+
}>;
|
|
1167
|
+
seriesInfo: z.ZodOptional<z.ZodObject<{
|
|
1117
1168
|
homeTeamWins: z.ZodNumber;
|
|
1118
1169
|
awayTeamWins: z.ZodNumber;
|
|
1119
1170
|
gameNumber: z.ZodNumber;
|
|
@@ -1128,8 +1179,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1128
1179
|
homeTeamWins: number;
|
|
1129
1180
|
awayTeamWins: number;
|
|
1130
1181
|
gameNumber: number;
|
|
1131
|
-
}
|
|
1132
|
-
rating: z.ZodOptional<z.
|
|
1182
|
+
}>>;
|
|
1183
|
+
rating: z.ZodOptional<z.ZodObject<{
|
|
1133
1184
|
avg: z.ZodNumber;
|
|
1134
1185
|
votes: z.ZodObject<{
|
|
1135
1186
|
options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
|
|
@@ -1153,11 +1204,12 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1153
1204
|
total: number;
|
|
1154
1205
|
options: Record<number, number>;
|
|
1155
1206
|
};
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1207
|
+
}>>;
|
|
1208
|
+
}, {
|
|
1209
|
+
round: z.ZodNumber;
|
|
1210
|
+
timeRemainingMinutes: z.ZodNumber;
|
|
1211
|
+
timeRemainingSeconds: z.ZodNumber;
|
|
1212
|
+
periods: z.ZodArray<z.ZodObject<{
|
|
1161
1213
|
awayScore: z.ZodNumber;
|
|
1162
1214
|
homeScore: z.ZodNumber;
|
|
1163
1215
|
periodNumber: z.ZodNumber;
|
|
@@ -1169,19 +1221,17 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1169
1221
|
awayScore: number;
|
|
1170
1222
|
homeScore: number;
|
|
1171
1223
|
periodNumber: number;
|
|
1172
|
-
}>, "many"
|
|
1173
|
-
periodType: z.
|
|
1174
|
-
periodDuration: z.
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
status
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
league?: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | undefined;
|
|
1184
|
-
homeTeam?: {
|
|
1224
|
+
}>, "many">;
|
|
1225
|
+
periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
|
|
1226
|
+
periodDuration: z.ZodNumber;
|
|
1227
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1228
|
+
round: number;
|
|
1229
|
+
status: "live" | "scheduled" | "final";
|
|
1230
|
+
startedAt: number;
|
|
1231
|
+
finishedAt: number;
|
|
1232
|
+
apiGameId: number;
|
|
1233
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1234
|
+
homeTeam: {
|
|
1185
1235
|
name: string;
|
|
1186
1236
|
image: string;
|
|
1187
1237
|
apiTeamId: number;
|
|
@@ -1189,8 +1239,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1189
1239
|
id?: string | undefined;
|
|
1190
1240
|
isWinner?: boolean | undefined;
|
|
1191
1241
|
seed?: number | undefined;
|
|
1192
|
-
|
|
1193
|
-
|
|
1242
|
+
teamCode?: string | undefined;
|
|
1243
|
+
};
|
|
1244
|
+
awayTeam: {
|
|
1194
1245
|
name: string;
|
|
1195
1246
|
image: string;
|
|
1196
1247
|
apiTeamId: number;
|
|
@@ -1198,7 +1249,20 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1198
1249
|
id?: string | undefined;
|
|
1199
1250
|
isWinner?: boolean | undefined;
|
|
1200
1251
|
seed?: number | undefined;
|
|
1201
|
-
|
|
1252
|
+
teamCode?: string | undefined;
|
|
1253
|
+
};
|
|
1254
|
+
timeRemainingMinutes: number;
|
|
1255
|
+
timeRemainingSeconds: number;
|
|
1256
|
+
periods: {
|
|
1257
|
+
awayScore: number;
|
|
1258
|
+
homeScore: number;
|
|
1259
|
+
periodNumber: number;
|
|
1260
|
+
}[];
|
|
1261
|
+
periodType: "quarter" | "half";
|
|
1262
|
+
periodDuration: number;
|
|
1263
|
+
id?: string | undefined;
|
|
1264
|
+
isClosed?: boolean | undefined;
|
|
1265
|
+
ratingWindowClosedAt?: number | undefined;
|
|
1202
1266
|
seriesInfo?: {
|
|
1203
1267
|
maxLength: number;
|
|
1204
1268
|
homeTeamWins: number;
|
|
@@ -1212,26 +1276,14 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1212
1276
|
options: Record<number, number>;
|
|
1213
1277
|
};
|
|
1214
1278
|
} | undefined;
|
|
1215
|
-
round?: number | undefined;
|
|
1216
|
-
timeRemainingMinutes?: number | undefined;
|
|
1217
|
-
timeRemainingSeconds?: number | undefined;
|
|
1218
|
-
periods?: {
|
|
1219
|
-
awayScore: number;
|
|
1220
|
-
homeScore: number;
|
|
1221
|
-
periodNumber: number;
|
|
1222
|
-
}[] | undefined;
|
|
1223
|
-
periodType?: "quarter" | "half" | undefined;
|
|
1224
|
-
periodDuration?: number | undefined;
|
|
1225
1279
|
}, {
|
|
1226
|
-
|
|
1227
|
-
status
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
league?: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | undefined;
|
|
1234
|
-
homeTeam?: {
|
|
1280
|
+
round: number;
|
|
1281
|
+
status: "live" | "scheduled" | "final";
|
|
1282
|
+
startedAt: number;
|
|
1283
|
+
finishedAt: number;
|
|
1284
|
+
apiGameId: number;
|
|
1285
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1286
|
+
homeTeam: {
|
|
1235
1287
|
name: string;
|
|
1236
1288
|
image: string;
|
|
1237
1289
|
apiTeamId: number;
|
|
@@ -1239,8 +1291,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1239
1291
|
id?: string | undefined;
|
|
1240
1292
|
isWinner?: boolean | undefined;
|
|
1241
1293
|
seed?: number | undefined;
|
|
1242
|
-
|
|
1243
|
-
|
|
1294
|
+
teamCode?: string | undefined;
|
|
1295
|
+
};
|
|
1296
|
+
awayTeam: {
|
|
1244
1297
|
name: string;
|
|
1245
1298
|
image: string;
|
|
1246
1299
|
apiTeamId: number;
|
|
@@ -1248,7 +1301,20 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1248
1301
|
id?: string | undefined;
|
|
1249
1302
|
isWinner?: boolean | undefined;
|
|
1250
1303
|
seed?: number | undefined;
|
|
1251
|
-
|
|
1304
|
+
teamCode?: string | undefined;
|
|
1305
|
+
};
|
|
1306
|
+
timeRemainingMinutes: number;
|
|
1307
|
+
timeRemainingSeconds: number;
|
|
1308
|
+
periods: {
|
|
1309
|
+
awayScore: number;
|
|
1310
|
+
homeScore: number;
|
|
1311
|
+
periodNumber: number;
|
|
1312
|
+
}[];
|
|
1313
|
+
periodType: "quarter" | "half";
|
|
1314
|
+
periodDuration: number;
|
|
1315
|
+
id?: string | undefined;
|
|
1316
|
+
isClosed?: boolean | undefined;
|
|
1317
|
+
ratingWindowClosedAt?: number | undefined;
|
|
1252
1318
|
seriesInfo?: {
|
|
1253
1319
|
maxLength: number;
|
|
1254
1320
|
homeTeamWins: number;
|
|
@@ -1262,26 +1328,16 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1262
1328
|
options: Record<number, number>;
|
|
1263
1329
|
};
|
|
1264
1330
|
} | undefined;
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
}>, z.ZodObject<{
|
|
1276
|
-
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1277
|
-
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>>;
|
|
1278
|
-
isClosed: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1279
|
-
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1280
|
-
finishedAt: z.ZodOptional<z.ZodNumber>;
|
|
1281
|
-
ratingWindowClosedAt: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1282
|
-
apiGameId: z.ZodOptional<z.ZodNumber>;
|
|
1283
|
-
league: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>>;
|
|
1284
|
-
homeTeam: z.ZodOptional<z.ZodObject<{
|
|
1331
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1332
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1333
|
+
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
1334
|
+
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
1335
|
+
startedAt: z.ZodNumber;
|
|
1336
|
+
finishedAt: z.ZodNumber;
|
|
1337
|
+
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
1338
|
+
apiGameId: z.ZodNumber;
|
|
1339
|
+
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
1340
|
+
homeTeam: z.ZodObject<{
|
|
1285
1341
|
id: z.ZodOptional<z.ZodString>;
|
|
1286
1342
|
apiTeamId: z.ZodNumber;
|
|
1287
1343
|
name: z.ZodString;
|
|
@@ -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,8 +1363,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1305
1363
|
id?: string | undefined;
|
|
1306
1364
|
isWinner?: boolean | undefined;
|
|
1307
1365
|
seed?: number | undefined;
|
|
1308
|
-
|
|
1309
|
-
|
|
1366
|
+
teamCode?: string | undefined;
|
|
1367
|
+
}>;
|
|
1368
|
+
awayTeam: z.ZodObject<{
|
|
1310
1369
|
id: z.ZodOptional<z.ZodString>;
|
|
1311
1370
|
apiTeamId: z.ZodNumber;
|
|
1312
1371
|
name: 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,8 +1391,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1330
1391
|
id?: string | undefined;
|
|
1331
1392
|
isWinner?: boolean | undefined;
|
|
1332
1393
|
seed?: number | undefined;
|
|
1333
|
-
|
|
1334
|
-
|
|
1394
|
+
teamCode?: string | undefined;
|
|
1395
|
+
}>;
|
|
1396
|
+
seriesInfo: z.ZodOptional<z.ZodObject<{
|
|
1335
1397
|
homeTeamWins: z.ZodNumber;
|
|
1336
1398
|
awayTeamWins: z.ZodNumber;
|
|
1337
1399
|
gameNumber: z.ZodNumber;
|
|
@@ -1346,8 +1408,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1346
1408
|
homeTeamWins: number;
|
|
1347
1409
|
awayTeamWins: number;
|
|
1348
1410
|
gameNumber: number;
|
|
1349
|
-
}
|
|
1350
|
-
rating: z.ZodOptional<z.
|
|
1411
|
+
}>>;
|
|
1412
|
+
rating: z.ZodOptional<z.ZodObject<{
|
|
1351
1413
|
avg: z.ZodNumber;
|
|
1352
1414
|
votes: z.ZodObject<{
|
|
1353
1415
|
options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
|
|
@@ -1371,9 +1433,10 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1371
1433
|
total: number;
|
|
1372
1434
|
options: Record<number, number>;
|
|
1373
1435
|
};
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1436
|
+
}>>;
|
|
1437
|
+
}, {
|
|
1438
|
+
totalInningsRemaining: z.ZodNumber;
|
|
1439
|
+
innings: z.ZodArray<z.ZodObject<{
|
|
1377
1440
|
inningNumber: z.ZodNumber;
|
|
1378
1441
|
awayScore: z.ZodNumber;
|
|
1379
1442
|
homeScore: z.ZodNumber;
|
|
@@ -1385,9 +1448,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1385
1448
|
awayScore: number;
|
|
1386
1449
|
homeScore: number;
|
|
1387
1450
|
inningNumber: number;
|
|
1388
|
-
}>, "many"
|
|
1389
|
-
inningHalf: z.ZodOptional<z.
|
|
1390
|
-
losingPitcher: z.ZodOptional<z.
|
|
1451
|
+
}>, "many">;
|
|
1452
|
+
inningHalf: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"T">, z.ZodLiteral<"B">]>>;
|
|
1453
|
+
losingPitcher: z.ZodOptional<z.ZodObject<{
|
|
1391
1454
|
id: z.ZodOptional<z.ZodString>;
|
|
1392
1455
|
name: z.ZodString;
|
|
1393
1456
|
wins: z.ZodNumber;
|
|
@@ -1414,8 +1477,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1414
1477
|
isWinningPitcher: boolean;
|
|
1415
1478
|
isLosingPitcher: boolean;
|
|
1416
1479
|
id?: string | undefined;
|
|
1417
|
-
}
|
|
1418
|
-
winningPitcher: z.ZodOptional<z.
|
|
1480
|
+
}>>;
|
|
1481
|
+
winningPitcher: z.ZodOptional<z.ZodObject<{
|
|
1419
1482
|
id: z.ZodOptional<z.ZodString>;
|
|
1420
1483
|
name: z.ZodString;
|
|
1421
1484
|
wins: z.ZodNumber;
|
|
@@ -1442,8 +1505,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1442
1505
|
isWinningPitcher: boolean;
|
|
1443
1506
|
isLosingPitcher: boolean;
|
|
1444
1507
|
id?: string | undefined;
|
|
1445
|
-
}
|
|
1446
|
-
savingPitcher: z.ZodOptional<z.
|
|
1508
|
+
}>>;
|
|
1509
|
+
savingPitcher: z.ZodOptional<z.ZodObject<{
|
|
1447
1510
|
id: z.ZodOptional<z.ZodString>;
|
|
1448
1511
|
name: z.ZodString;
|
|
1449
1512
|
wins: z.ZodNumber;
|
|
@@ -1470,18 +1533,15 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1470
1533
|
isWinningPitcher: boolean;
|
|
1471
1534
|
isLosingPitcher: boolean;
|
|
1472
1535
|
id?: string | undefined;
|
|
1473
|
-
}
|
|
1474
|
-
outs: z.ZodOptional<z.
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
apiGameId?: number | undefined;
|
|
1483
|
-
league?: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | undefined;
|
|
1484
|
-
homeTeam?: {
|
|
1536
|
+
}>>;
|
|
1537
|
+
outs: z.ZodOptional<z.ZodNumber>;
|
|
1538
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1539
|
+
status: "live" | "scheduled" | "final";
|
|
1540
|
+
startedAt: number;
|
|
1541
|
+
finishedAt: number;
|
|
1542
|
+
apiGameId: number;
|
|
1543
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1544
|
+
homeTeam: {
|
|
1485
1545
|
name: string;
|
|
1486
1546
|
image: string;
|
|
1487
1547
|
apiTeamId: number;
|
|
@@ -1489,8 +1549,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1489
1549
|
id?: string | undefined;
|
|
1490
1550
|
isWinner?: boolean | undefined;
|
|
1491
1551
|
seed?: number | undefined;
|
|
1492
|
-
|
|
1493
|
-
|
|
1552
|
+
teamCode?: string | undefined;
|
|
1553
|
+
};
|
|
1554
|
+
awayTeam: {
|
|
1494
1555
|
name: string;
|
|
1495
1556
|
image: string;
|
|
1496
1557
|
apiTeamId: number;
|
|
@@ -1498,7 +1559,17 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1498
1559
|
id?: string | undefined;
|
|
1499
1560
|
isWinner?: boolean | undefined;
|
|
1500
1561
|
seed?: number | undefined;
|
|
1501
|
-
|
|
1562
|
+
teamCode?: string | undefined;
|
|
1563
|
+
};
|
|
1564
|
+
totalInningsRemaining: number;
|
|
1565
|
+
innings: {
|
|
1566
|
+
awayScore: number;
|
|
1567
|
+
homeScore: number;
|
|
1568
|
+
inningNumber: number;
|
|
1569
|
+
}[];
|
|
1570
|
+
id?: string | undefined;
|
|
1571
|
+
isClosed?: boolean | undefined;
|
|
1572
|
+
ratingWindowClosedAt?: number | undefined;
|
|
1502
1573
|
seriesInfo?: {
|
|
1503
1574
|
maxLength: number;
|
|
1504
1575
|
homeTeamWins: number;
|
|
@@ -1512,12 +1583,6 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1512
1583
|
options: Record<number, number>;
|
|
1513
1584
|
};
|
|
1514
1585
|
} | undefined;
|
|
1515
|
-
totalInningsRemaining?: number | undefined;
|
|
1516
|
-
innings?: {
|
|
1517
|
-
awayScore: number;
|
|
1518
|
-
homeScore: number;
|
|
1519
|
-
inningNumber: number;
|
|
1520
|
-
}[] | undefined;
|
|
1521
1586
|
inningHalf?: "T" | "B" | undefined;
|
|
1522
1587
|
losingPitcher?: {
|
|
1523
1588
|
name: string;
|
|
@@ -1551,15 +1616,12 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1551
1616
|
} | undefined;
|
|
1552
1617
|
outs?: number | undefined;
|
|
1553
1618
|
}, {
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
apiGameId?: number | undefined;
|
|
1561
|
-
league?: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | undefined;
|
|
1562
|
-
homeTeam?: {
|
|
1619
|
+
status: "live" | "scheduled" | "final";
|
|
1620
|
+
startedAt: number;
|
|
1621
|
+
finishedAt: number;
|
|
1622
|
+
apiGameId: number;
|
|
1623
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1624
|
+
homeTeam: {
|
|
1563
1625
|
name: string;
|
|
1564
1626
|
image: string;
|
|
1565
1627
|
apiTeamId: number;
|
|
@@ -1567,8 +1629,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1567
1629
|
id?: string | undefined;
|
|
1568
1630
|
isWinner?: boolean | undefined;
|
|
1569
1631
|
seed?: number | undefined;
|
|
1570
|
-
|
|
1571
|
-
|
|
1632
|
+
teamCode?: string | undefined;
|
|
1633
|
+
};
|
|
1634
|
+
awayTeam: {
|
|
1572
1635
|
name: string;
|
|
1573
1636
|
image: string;
|
|
1574
1637
|
apiTeamId: number;
|
|
@@ -1576,7 +1639,17 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1576
1639
|
id?: string | undefined;
|
|
1577
1640
|
isWinner?: boolean | undefined;
|
|
1578
1641
|
seed?: number | undefined;
|
|
1579
|
-
|
|
1642
|
+
teamCode?: string | undefined;
|
|
1643
|
+
};
|
|
1644
|
+
totalInningsRemaining: number;
|
|
1645
|
+
innings: {
|
|
1646
|
+
awayScore: number;
|
|
1647
|
+
homeScore: number;
|
|
1648
|
+
inningNumber: number;
|
|
1649
|
+
}[];
|
|
1650
|
+
id?: string | undefined;
|
|
1651
|
+
isClosed?: boolean | undefined;
|
|
1652
|
+
ratingWindowClosedAt?: number | undefined;
|
|
1580
1653
|
seriesInfo?: {
|
|
1581
1654
|
maxLength: number;
|
|
1582
1655
|
homeTeamWins: number;
|
|
@@ -1590,12 +1663,6 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1590
1663
|
options: Record<number, number>;
|
|
1591
1664
|
};
|
|
1592
1665
|
} | undefined;
|
|
1593
|
-
totalInningsRemaining?: number | undefined;
|
|
1594
|
-
innings?: {
|
|
1595
|
-
awayScore: number;
|
|
1596
|
-
homeScore: number;
|
|
1597
|
-
inningNumber: number;
|
|
1598
|
-
}[] | undefined;
|
|
1599
1666
|
inningHalf?: "T" | "B" | undefined;
|
|
1600
1667
|
losingPitcher?: {
|
|
1601
1668
|
name: string;
|
|
@@ -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
|
}>;
|