rategame-shared 1.1.6 → 1.1.8
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 +111 -21
- package/dist/schemas/game.js +24 -3
- package/dist/schemas/player.d.ts +9 -0
- package/dist/schemas/player.js +3 -0
- package/dist/schemas/rating.d.ts +16 -16
- package/dist/schemas/rating.js +16 -2
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
74
74
|
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
75
75
|
round: z.ZodNumber;
|
|
76
76
|
apiGameId: z.ZodNumber;
|
|
77
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
|
|
77
|
+
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
78
78
|
homeTeam: z.ZodObject<{
|
|
79
79
|
id: z.ZodOptional<z.ZodString>;
|
|
80
80
|
apiTeamId: z.ZodNumber;
|
|
@@ -189,7 +189,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
189
189
|
startedAt: number;
|
|
190
190
|
finishedAt: number;
|
|
191
191
|
apiGameId: number;
|
|
192
|
-
league: "nba" | "ncaa" | "mlb";
|
|
192
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
193
193
|
homeTeam: {
|
|
194
194
|
name: string;
|
|
195
195
|
image: string;
|
|
@@ -239,7 +239,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
239
239
|
startedAt: number;
|
|
240
240
|
finishedAt: number;
|
|
241
241
|
apiGameId: number;
|
|
242
|
-
league: "nba" | "ncaa" | "mlb";
|
|
242
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
243
243
|
homeTeam: {
|
|
244
244
|
name: string;
|
|
245
245
|
image: string;
|
|
@@ -292,7 +292,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
292
292
|
finishedAt: z.ZodNumber;
|
|
293
293
|
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
294
294
|
apiGameId: z.ZodNumber;
|
|
295
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
|
|
295
|
+
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
296
296
|
homeTeam: z.ZodObject<{
|
|
297
297
|
id: z.ZodOptional<z.ZodString>;
|
|
298
298
|
apiTeamId: z.ZodNumber;
|
|
@@ -389,7 +389,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
389
389
|
startedAt: number;
|
|
390
390
|
finishedAt: number;
|
|
391
391
|
apiGameId: number;
|
|
392
|
-
league: "nba" | "ncaa" | "mlb";
|
|
392
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
393
393
|
homeTeam: {
|
|
394
394
|
name: string;
|
|
395
395
|
image: string;
|
|
@@ -429,7 +429,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
429
429
|
startedAt: number;
|
|
430
430
|
finishedAt: number;
|
|
431
431
|
apiGameId: number;
|
|
432
|
-
league: "nba" | "ncaa" | "mlb";
|
|
432
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
433
433
|
homeTeam: {
|
|
434
434
|
name: string;
|
|
435
435
|
image: string;
|
|
@@ -473,7 +473,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
473
473
|
finishedAt: z.ZodNumber;
|
|
474
474
|
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
475
475
|
apiGameId: z.ZodNumber;
|
|
476
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
|
|
476
|
+
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
477
477
|
homeTeam: z.ZodObject<{
|
|
478
478
|
id: z.ZodOptional<z.ZodString>;
|
|
479
479
|
apiTeamId: z.ZodNumber;
|
|
@@ -590,7 +590,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
590
590
|
startedAt: number;
|
|
591
591
|
finishedAt: number;
|
|
592
592
|
apiGameId: number;
|
|
593
|
-
league: "nba" | "ncaa" | "mlb";
|
|
593
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
594
594
|
homeTeam: {
|
|
595
595
|
name: string;
|
|
596
596
|
image: string;
|
|
@@ -640,7 +640,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
640
640
|
startedAt: number;
|
|
641
641
|
finishedAt: number;
|
|
642
642
|
apiGameId: number;
|
|
643
|
-
league: "nba" | "ncaa" | "mlb";
|
|
643
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
644
644
|
homeTeam: {
|
|
645
645
|
name: string;
|
|
646
646
|
image: string;
|
|
@@ -706,7 +706,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
706
706
|
finishedAt: z.ZodNumber;
|
|
707
707
|
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
708
708
|
apiGameId: z.ZodNumber;
|
|
709
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
|
|
709
|
+
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
710
710
|
homeTeam: z.ZodObject<{
|
|
711
711
|
id: z.ZodOptional<z.ZodString>;
|
|
712
712
|
apiTeamId: z.ZodNumber;
|
|
@@ -820,17 +820,26 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
820
820
|
wins: z.ZodNumber;
|
|
821
821
|
losses: z.ZodNumber;
|
|
822
822
|
saves: z.ZodNumber;
|
|
823
|
+
games: z.ZodNumber;
|
|
824
|
+
isWinningPitcher: z.ZodBoolean;
|
|
825
|
+
isLosingPitcher: z.ZodBoolean;
|
|
823
826
|
}, "strip", z.ZodTypeAny, {
|
|
824
827
|
name: string;
|
|
825
828
|
wins: number;
|
|
826
829
|
losses: number;
|
|
827
830
|
saves: number;
|
|
831
|
+
games: number;
|
|
832
|
+
isWinningPitcher: boolean;
|
|
833
|
+
isLosingPitcher: boolean;
|
|
828
834
|
id?: string | undefined;
|
|
829
835
|
}, {
|
|
830
836
|
name: string;
|
|
831
837
|
wins: number;
|
|
832
838
|
losses: number;
|
|
833
839
|
saves: number;
|
|
840
|
+
games: number;
|
|
841
|
+
isWinningPitcher: boolean;
|
|
842
|
+
isLosingPitcher: boolean;
|
|
834
843
|
id?: string | undefined;
|
|
835
844
|
}>>;
|
|
836
845
|
winningPitcher: z.ZodOptional<z.ZodObject<{
|
|
@@ -839,17 +848,26 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
839
848
|
wins: z.ZodNumber;
|
|
840
849
|
losses: z.ZodNumber;
|
|
841
850
|
saves: z.ZodNumber;
|
|
851
|
+
games: z.ZodNumber;
|
|
852
|
+
isWinningPitcher: z.ZodBoolean;
|
|
853
|
+
isLosingPitcher: z.ZodBoolean;
|
|
842
854
|
}, "strip", z.ZodTypeAny, {
|
|
843
855
|
name: string;
|
|
844
856
|
wins: number;
|
|
845
857
|
losses: number;
|
|
846
858
|
saves: number;
|
|
859
|
+
games: number;
|
|
860
|
+
isWinningPitcher: boolean;
|
|
861
|
+
isLosingPitcher: boolean;
|
|
847
862
|
id?: string | undefined;
|
|
848
863
|
}, {
|
|
849
864
|
name: string;
|
|
850
865
|
wins: number;
|
|
851
866
|
losses: number;
|
|
852
867
|
saves: number;
|
|
868
|
+
games: number;
|
|
869
|
+
isWinningPitcher: boolean;
|
|
870
|
+
isLosingPitcher: boolean;
|
|
853
871
|
id?: string | undefined;
|
|
854
872
|
}>>;
|
|
855
873
|
savingPitcher: z.ZodOptional<z.ZodObject<{
|
|
@@ -858,17 +876,26 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
858
876
|
wins: z.ZodNumber;
|
|
859
877
|
losses: z.ZodNumber;
|
|
860
878
|
saves: z.ZodNumber;
|
|
879
|
+
games: z.ZodNumber;
|
|
880
|
+
isWinningPitcher: z.ZodBoolean;
|
|
881
|
+
isLosingPitcher: z.ZodBoolean;
|
|
861
882
|
}, "strip", z.ZodTypeAny, {
|
|
862
883
|
name: string;
|
|
863
884
|
wins: number;
|
|
864
885
|
losses: number;
|
|
865
886
|
saves: number;
|
|
887
|
+
games: number;
|
|
888
|
+
isWinningPitcher: boolean;
|
|
889
|
+
isLosingPitcher: boolean;
|
|
866
890
|
id?: string | undefined;
|
|
867
891
|
}, {
|
|
868
892
|
name: string;
|
|
869
893
|
wins: number;
|
|
870
894
|
losses: number;
|
|
871
895
|
saves: number;
|
|
896
|
+
games: number;
|
|
897
|
+
isWinningPitcher: boolean;
|
|
898
|
+
isLosingPitcher: boolean;
|
|
872
899
|
id?: string | undefined;
|
|
873
900
|
}>>;
|
|
874
901
|
outs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -877,7 +904,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
877
904
|
startedAt: number;
|
|
878
905
|
finishedAt: number;
|
|
879
906
|
apiGameId: number;
|
|
880
|
-
league: "nba" | "ncaa" | "mlb";
|
|
907
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
881
908
|
homeTeam: {
|
|
882
909
|
name: string;
|
|
883
910
|
image: string;
|
|
@@ -924,6 +951,9 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
924
951
|
wins: number;
|
|
925
952
|
losses: number;
|
|
926
953
|
saves: number;
|
|
954
|
+
games: number;
|
|
955
|
+
isWinningPitcher: boolean;
|
|
956
|
+
isLosingPitcher: boolean;
|
|
927
957
|
id?: string | undefined;
|
|
928
958
|
} | undefined;
|
|
929
959
|
winningPitcher?: {
|
|
@@ -931,6 +961,9 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
931
961
|
wins: number;
|
|
932
962
|
losses: number;
|
|
933
963
|
saves: number;
|
|
964
|
+
games: number;
|
|
965
|
+
isWinningPitcher: boolean;
|
|
966
|
+
isLosingPitcher: boolean;
|
|
934
967
|
id?: string | undefined;
|
|
935
968
|
} | undefined;
|
|
936
969
|
savingPitcher?: {
|
|
@@ -938,6 +971,9 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
938
971
|
wins: number;
|
|
939
972
|
losses: number;
|
|
940
973
|
saves: number;
|
|
974
|
+
games: number;
|
|
975
|
+
isWinningPitcher: boolean;
|
|
976
|
+
isLosingPitcher: boolean;
|
|
941
977
|
id?: string | undefined;
|
|
942
978
|
} | undefined;
|
|
943
979
|
outs?: number | undefined;
|
|
@@ -946,7 +982,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
946
982
|
startedAt: number;
|
|
947
983
|
finishedAt: number;
|
|
948
984
|
apiGameId: number;
|
|
949
|
-
league: "nba" | "ncaa" | "mlb";
|
|
985
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
950
986
|
homeTeam: {
|
|
951
987
|
name: string;
|
|
952
988
|
image: string;
|
|
@@ -993,6 +1029,9 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
993
1029
|
wins: number;
|
|
994
1030
|
losses: number;
|
|
995
1031
|
saves: number;
|
|
1032
|
+
games: number;
|
|
1033
|
+
isWinningPitcher: boolean;
|
|
1034
|
+
isLosingPitcher: boolean;
|
|
996
1035
|
id?: string | undefined;
|
|
997
1036
|
} | undefined;
|
|
998
1037
|
winningPitcher?: {
|
|
@@ -1000,6 +1039,9 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1000
1039
|
wins: number;
|
|
1001
1040
|
losses: number;
|
|
1002
1041
|
saves: number;
|
|
1042
|
+
games: number;
|
|
1043
|
+
isWinningPitcher: boolean;
|
|
1044
|
+
isLosingPitcher: boolean;
|
|
1003
1045
|
id?: string | undefined;
|
|
1004
1046
|
} | undefined;
|
|
1005
1047
|
savingPitcher?: {
|
|
@@ -1007,6 +1049,9 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1007
1049
|
wins: number;
|
|
1008
1050
|
losses: number;
|
|
1009
1051
|
saves: number;
|
|
1052
|
+
games: number;
|
|
1053
|
+
isWinningPitcher: boolean;
|
|
1054
|
+
isLosingPitcher: boolean;
|
|
1010
1055
|
id?: string | undefined;
|
|
1011
1056
|
} | undefined;
|
|
1012
1057
|
outs?: number | undefined;
|
|
@@ -1019,7 +1064,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1019
1064
|
finishedAt: z.ZodNumber;
|
|
1020
1065
|
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
1021
1066
|
apiGameId: z.ZodNumber;
|
|
1022
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
|
|
1067
|
+
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
1023
1068
|
homeTeam: z.ZodObject<{
|
|
1024
1069
|
id: z.ZodOptional<z.ZodString>;
|
|
1025
1070
|
apiTeamId: z.ZodNumber;
|
|
@@ -1136,7 +1181,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1136
1181
|
startedAt: number;
|
|
1137
1182
|
finishedAt: number;
|
|
1138
1183
|
apiGameId: number;
|
|
1139
|
-
league: "nba" | "ncaa" | "mlb";
|
|
1184
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1140
1185
|
homeTeam: {
|
|
1141
1186
|
name: string;
|
|
1142
1187
|
image: string;
|
|
@@ -1186,7 +1231,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1186
1231
|
startedAt: number;
|
|
1187
1232
|
finishedAt: number;
|
|
1188
1233
|
apiGameId: number;
|
|
1189
|
-
league: "nba" | "ncaa" | "mlb";
|
|
1234
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1190
1235
|
homeTeam: {
|
|
1191
1236
|
name: string;
|
|
1192
1237
|
image: string;
|
|
@@ -1238,7 +1283,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1238
1283
|
finishedAt: z.ZodNumber;
|
|
1239
1284
|
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
1240
1285
|
apiGameId: z.ZodNumber;
|
|
1241
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
|
|
1286
|
+
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
1242
1287
|
homeTeam: z.ZodObject<{
|
|
1243
1288
|
id: z.ZodOptional<z.ZodString>;
|
|
1244
1289
|
apiTeamId: z.ZodNumber;
|
|
@@ -1352,17 +1397,26 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1352
1397
|
wins: z.ZodNumber;
|
|
1353
1398
|
losses: z.ZodNumber;
|
|
1354
1399
|
saves: z.ZodNumber;
|
|
1400
|
+
games: z.ZodNumber;
|
|
1401
|
+
isWinningPitcher: z.ZodBoolean;
|
|
1402
|
+
isLosingPitcher: z.ZodBoolean;
|
|
1355
1403
|
}, "strip", z.ZodTypeAny, {
|
|
1356
1404
|
name: string;
|
|
1357
1405
|
wins: number;
|
|
1358
1406
|
losses: number;
|
|
1359
1407
|
saves: number;
|
|
1408
|
+
games: number;
|
|
1409
|
+
isWinningPitcher: boolean;
|
|
1410
|
+
isLosingPitcher: boolean;
|
|
1360
1411
|
id?: string | undefined;
|
|
1361
1412
|
}, {
|
|
1362
1413
|
name: string;
|
|
1363
1414
|
wins: number;
|
|
1364
1415
|
losses: number;
|
|
1365
1416
|
saves: number;
|
|
1417
|
+
games: number;
|
|
1418
|
+
isWinningPitcher: boolean;
|
|
1419
|
+
isLosingPitcher: boolean;
|
|
1366
1420
|
id?: string | undefined;
|
|
1367
1421
|
}>>;
|
|
1368
1422
|
winningPitcher: z.ZodOptional<z.ZodObject<{
|
|
@@ -1371,17 +1425,26 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1371
1425
|
wins: z.ZodNumber;
|
|
1372
1426
|
losses: z.ZodNumber;
|
|
1373
1427
|
saves: z.ZodNumber;
|
|
1428
|
+
games: z.ZodNumber;
|
|
1429
|
+
isWinningPitcher: z.ZodBoolean;
|
|
1430
|
+
isLosingPitcher: z.ZodBoolean;
|
|
1374
1431
|
}, "strip", z.ZodTypeAny, {
|
|
1375
1432
|
name: string;
|
|
1376
1433
|
wins: number;
|
|
1377
1434
|
losses: number;
|
|
1378
1435
|
saves: number;
|
|
1436
|
+
games: number;
|
|
1437
|
+
isWinningPitcher: boolean;
|
|
1438
|
+
isLosingPitcher: boolean;
|
|
1379
1439
|
id?: string | undefined;
|
|
1380
1440
|
}, {
|
|
1381
1441
|
name: string;
|
|
1382
1442
|
wins: number;
|
|
1383
1443
|
losses: number;
|
|
1384
1444
|
saves: number;
|
|
1445
|
+
games: number;
|
|
1446
|
+
isWinningPitcher: boolean;
|
|
1447
|
+
isLosingPitcher: boolean;
|
|
1385
1448
|
id?: string | undefined;
|
|
1386
1449
|
}>>;
|
|
1387
1450
|
savingPitcher: z.ZodOptional<z.ZodObject<{
|
|
@@ -1390,17 +1453,26 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1390
1453
|
wins: z.ZodNumber;
|
|
1391
1454
|
losses: z.ZodNumber;
|
|
1392
1455
|
saves: z.ZodNumber;
|
|
1456
|
+
games: z.ZodNumber;
|
|
1457
|
+
isWinningPitcher: z.ZodBoolean;
|
|
1458
|
+
isLosingPitcher: z.ZodBoolean;
|
|
1393
1459
|
}, "strip", z.ZodTypeAny, {
|
|
1394
1460
|
name: string;
|
|
1395
1461
|
wins: number;
|
|
1396
1462
|
losses: number;
|
|
1397
1463
|
saves: number;
|
|
1464
|
+
games: number;
|
|
1465
|
+
isWinningPitcher: boolean;
|
|
1466
|
+
isLosingPitcher: boolean;
|
|
1398
1467
|
id?: string | undefined;
|
|
1399
1468
|
}, {
|
|
1400
1469
|
name: string;
|
|
1401
1470
|
wins: number;
|
|
1402
1471
|
losses: number;
|
|
1403
1472
|
saves: number;
|
|
1473
|
+
games: number;
|
|
1474
|
+
isWinningPitcher: boolean;
|
|
1475
|
+
isLosingPitcher: boolean;
|
|
1404
1476
|
id?: string | undefined;
|
|
1405
1477
|
}>>;
|
|
1406
1478
|
outs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1409,7 +1481,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1409
1481
|
startedAt: number;
|
|
1410
1482
|
finishedAt: number;
|
|
1411
1483
|
apiGameId: number;
|
|
1412
|
-
league: "nba" | "ncaa" | "mlb";
|
|
1484
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1413
1485
|
homeTeam: {
|
|
1414
1486
|
name: string;
|
|
1415
1487
|
image: string;
|
|
@@ -1456,6 +1528,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1456
1528
|
wins: number;
|
|
1457
1529
|
losses: number;
|
|
1458
1530
|
saves: number;
|
|
1531
|
+
games: number;
|
|
1532
|
+
isWinningPitcher: boolean;
|
|
1533
|
+
isLosingPitcher: boolean;
|
|
1459
1534
|
id?: string | undefined;
|
|
1460
1535
|
} | undefined;
|
|
1461
1536
|
winningPitcher?: {
|
|
@@ -1463,6 +1538,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1463
1538
|
wins: number;
|
|
1464
1539
|
losses: number;
|
|
1465
1540
|
saves: number;
|
|
1541
|
+
games: number;
|
|
1542
|
+
isWinningPitcher: boolean;
|
|
1543
|
+
isLosingPitcher: boolean;
|
|
1466
1544
|
id?: string | undefined;
|
|
1467
1545
|
} | undefined;
|
|
1468
1546
|
savingPitcher?: {
|
|
@@ -1470,6 +1548,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1470
1548
|
wins: number;
|
|
1471
1549
|
losses: number;
|
|
1472
1550
|
saves: number;
|
|
1551
|
+
games: number;
|
|
1552
|
+
isWinningPitcher: boolean;
|
|
1553
|
+
isLosingPitcher: boolean;
|
|
1473
1554
|
id?: string | undefined;
|
|
1474
1555
|
} | undefined;
|
|
1475
1556
|
outs?: number | undefined;
|
|
@@ -1478,7 +1559,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1478
1559
|
startedAt: number;
|
|
1479
1560
|
finishedAt: number;
|
|
1480
1561
|
apiGameId: number;
|
|
1481
|
-
league: "nba" | "ncaa" | "mlb";
|
|
1562
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1482
1563
|
homeTeam: {
|
|
1483
1564
|
name: string;
|
|
1484
1565
|
image: string;
|
|
@@ -1525,6 +1606,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1525
1606
|
wins: number;
|
|
1526
1607
|
losses: number;
|
|
1527
1608
|
saves: number;
|
|
1609
|
+
games: number;
|
|
1610
|
+
isWinningPitcher: boolean;
|
|
1611
|
+
isLosingPitcher: boolean;
|
|
1528
1612
|
id?: string | undefined;
|
|
1529
1613
|
} | undefined;
|
|
1530
1614
|
winningPitcher?: {
|
|
@@ -1532,6 +1616,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1532
1616
|
wins: number;
|
|
1533
1617
|
losses: number;
|
|
1534
1618
|
saves: number;
|
|
1619
|
+
games: number;
|
|
1620
|
+
isWinningPitcher: boolean;
|
|
1621
|
+
isLosingPitcher: boolean;
|
|
1535
1622
|
id?: string | undefined;
|
|
1536
1623
|
} | undefined;
|
|
1537
1624
|
savingPitcher?: {
|
|
@@ -1539,6 +1626,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1539
1626
|
wins: number;
|
|
1540
1627
|
losses: number;
|
|
1541
1628
|
saves: number;
|
|
1629
|
+
games: number;
|
|
1630
|
+
isWinningPitcher: boolean;
|
|
1631
|
+
isLosingPitcher: boolean;
|
|
1542
1632
|
id?: string | undefined;
|
|
1543
1633
|
} | undefined;
|
|
1544
1634
|
outs?: number | undefined;
|
|
@@ -1547,13 +1637,13 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
1547
1637
|
q: z.ZodOptional<z.ZodString>;
|
|
1548
1638
|
teamId: z.ZodOptional<z.ZodString>;
|
|
1549
1639
|
round: z.ZodOptional<z.ZodString>;
|
|
1550
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
|
|
1640
|
+
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
1551
1641
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
|
|
1552
1642
|
sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating.avg:asc">, z.ZodLiteral<"rating.avg:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">]>>;
|
|
1553
1643
|
limit: z.ZodOptional<z.ZodString>;
|
|
1554
1644
|
offset: z.ZodOptional<z.ZodString>;
|
|
1555
1645
|
}, "strip", z.ZodTypeAny, {
|
|
1556
|
-
league: "nba" | "ncaa" | "mlb";
|
|
1646
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1557
1647
|
offset?: string | undefined;
|
|
1558
1648
|
round?: string | undefined;
|
|
1559
1649
|
q?: string | undefined;
|
|
@@ -1562,7 +1652,7 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
1562
1652
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
1563
1653
|
limit?: string | undefined;
|
|
1564
1654
|
}, {
|
|
1565
|
-
league: "nba" | "ncaa" | "mlb";
|
|
1655
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1566
1656
|
offset?: string | undefined;
|
|
1567
1657
|
round?: string | undefined;
|
|
1568
1658
|
q?: string | undefined;
|
package/dist/schemas/game.js
CHANGED
|
@@ -38,7 +38,14 @@ exports.gameSchema = zod_1.z.object({
|
|
|
38
38
|
ratingWindowClosedAt: zod_1.z.number().optional(),
|
|
39
39
|
round: zod_1.z.number(),
|
|
40
40
|
apiGameId: zod_1.z.number(),
|
|
41
|
-
league: zod_1.z.union([
|
|
41
|
+
league: zod_1.z.union([
|
|
42
|
+
zod_1.z.literal("ncaa"),
|
|
43
|
+
zod_1.z.literal("nba"),
|
|
44
|
+
zod_1.z.literal("mlb"),
|
|
45
|
+
zod_1.z.literal("nfl"),
|
|
46
|
+
zod_1.z.literal("nhl"),
|
|
47
|
+
zod_1.z.literal("mls"),
|
|
48
|
+
]),
|
|
42
49
|
homeTeam: exports.gameTeamSchema,
|
|
43
50
|
awayTeam: exports.gameTeamSchema,
|
|
44
51
|
timeRemainingMinutes: zod_1.z.number(),
|
|
@@ -65,7 +72,14 @@ exports.commonGameSchema = zod_1.z.object({
|
|
|
65
72
|
finishedAt: zod_1.z.number(),
|
|
66
73
|
ratingWindowClosedAt: zod_1.z.number().optional(),
|
|
67
74
|
apiGameId: zod_1.z.number(),
|
|
68
|
-
league: zod_1.z.union([
|
|
75
|
+
league: zod_1.z.union([
|
|
76
|
+
zod_1.z.literal("ncaa"),
|
|
77
|
+
zod_1.z.literal("nba"),
|
|
78
|
+
zod_1.z.literal("mlb"),
|
|
79
|
+
zod_1.z.literal("nfl"),
|
|
80
|
+
zod_1.z.literal("nhl"),
|
|
81
|
+
zod_1.z.literal("mls"),
|
|
82
|
+
]),
|
|
69
83
|
homeTeam: exports.gameTeamSchema,
|
|
70
84
|
awayTeam: exports.gameTeamSchema,
|
|
71
85
|
seriesInfo: exports.seriesInfoSchema.optional(),
|
|
@@ -128,7 +142,14 @@ exports.searchGameSchema = zod_1.z.object({
|
|
|
128
142
|
q: zod_1.z.string().optional(),
|
|
129
143
|
teamId: zod_1.z.string().optional(),
|
|
130
144
|
round: zod_1.z.string().optional(),
|
|
131
|
-
league: zod_1.z.union([
|
|
145
|
+
league: zod_1.z.union([
|
|
146
|
+
zod_1.z.literal("ncaa"),
|
|
147
|
+
zod_1.z.literal("nba"),
|
|
148
|
+
zod_1.z.literal("mlb"),
|
|
149
|
+
zod_1.z.literal("nfl"),
|
|
150
|
+
zod_1.z.literal("nhl"),
|
|
151
|
+
zod_1.z.literal("mls"),
|
|
152
|
+
]),
|
|
132
153
|
createdAt: zod_1.z
|
|
133
154
|
.union([zod_1.z.literal("12h"), zod_1.z.literal("daily"), zod_1.z.literal("weekly")])
|
|
134
155
|
.optional(),
|
package/dist/schemas/player.d.ts
CHANGED
|
@@ -5,16 +5,25 @@ export declare const mlbPlayerSchema: z.ZodObject<{
|
|
|
5
5
|
wins: z.ZodNumber;
|
|
6
6
|
losses: z.ZodNumber;
|
|
7
7
|
saves: z.ZodNumber;
|
|
8
|
+
games: z.ZodNumber;
|
|
9
|
+
isWinningPitcher: z.ZodBoolean;
|
|
10
|
+
isLosingPitcher: z.ZodBoolean;
|
|
8
11
|
}, "strip", z.ZodTypeAny, {
|
|
9
12
|
name: string;
|
|
10
13
|
wins: number;
|
|
11
14
|
losses: number;
|
|
12
15
|
saves: number;
|
|
16
|
+
games: number;
|
|
17
|
+
isWinningPitcher: boolean;
|
|
18
|
+
isLosingPitcher: boolean;
|
|
13
19
|
id?: string | undefined;
|
|
14
20
|
}, {
|
|
15
21
|
name: string;
|
|
16
22
|
wins: number;
|
|
17
23
|
losses: number;
|
|
18
24
|
saves: number;
|
|
25
|
+
games: number;
|
|
26
|
+
isWinningPitcher: boolean;
|
|
27
|
+
isLosingPitcher: boolean;
|
|
19
28
|
id?: string | undefined;
|
|
20
29
|
}>;
|
package/dist/schemas/player.js
CHANGED
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
25
25
|
game: import("zod").ZodObject<{
|
|
26
26
|
id: import("zod").ZodString;
|
|
27
27
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
28
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
28
|
+
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">]>;
|
|
29
29
|
homeTeam: import("zod").ZodObject<{
|
|
30
30
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
31
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -94,7 +94,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
94
94
|
}>>;
|
|
95
95
|
}, "strip", import("zod").ZodTypeAny, {
|
|
96
96
|
id: string;
|
|
97
|
-
league: "nba" | "ncaa" | "mlb";
|
|
97
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
98
98
|
homeTeam: {
|
|
99
99
|
name: string;
|
|
100
100
|
image: string;
|
|
@@ -122,7 +122,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
122
122
|
} | undefined;
|
|
123
123
|
}, {
|
|
124
124
|
id: string;
|
|
125
|
-
league: "nba" | "ncaa" | "mlb";
|
|
125
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
126
126
|
homeTeam: {
|
|
127
127
|
name: string;
|
|
128
128
|
image: string;
|
|
@@ -163,7 +163,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
163
163
|
rating: number;
|
|
164
164
|
game: {
|
|
165
165
|
id: string;
|
|
166
|
-
league: "nba" | "ncaa" | "mlb";
|
|
166
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
167
167
|
homeTeam: {
|
|
168
168
|
name: string;
|
|
169
169
|
image: string;
|
|
@@ -205,7 +205,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
205
205
|
rating: number;
|
|
206
206
|
game: {
|
|
207
207
|
id: string;
|
|
208
|
-
league: "nba" | "ncaa" | "mlb";
|
|
208
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
209
209
|
homeTeam: {
|
|
210
210
|
name: string;
|
|
211
211
|
image: string;
|
|
@@ -239,7 +239,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
239
239
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
240
240
|
teamId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
241
241
|
round: import("zod").ZodOptional<import("zod").ZodString>;
|
|
242
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
242
|
+
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">]>;
|
|
243
243
|
createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
244
244
|
sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
245
245
|
limit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -251,7 +251,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
251
251
|
following: import("zod").ZodOptional<import("zod").ZodString>;
|
|
252
252
|
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
253
253
|
}, "strip", import("zod").ZodTypeAny, {
|
|
254
|
-
league: "nba" | "ncaa" | "mlb";
|
|
254
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
255
255
|
offset?: string | undefined;
|
|
256
256
|
round?: string | undefined;
|
|
257
257
|
q?: string | undefined;
|
|
@@ -266,7 +266,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
266
266
|
following?: string | undefined;
|
|
267
267
|
userId?: string | undefined;
|
|
268
268
|
}, {
|
|
269
|
-
league: "nba" | "ncaa" | "mlb";
|
|
269
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
270
270
|
offset?: string | undefined;
|
|
271
271
|
round?: string | undefined;
|
|
272
272
|
q?: string | undefined;
|
|
@@ -374,7 +374,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
374
374
|
game: import("zod").ZodObject<{
|
|
375
375
|
id: import("zod").ZodString;
|
|
376
376
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
377
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
377
|
+
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">]>;
|
|
378
378
|
homeTeam: import("zod").ZodObject<{
|
|
379
379
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
380
380
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -443,7 +443,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
443
443
|
}>>;
|
|
444
444
|
}, "strip", import("zod").ZodTypeAny, {
|
|
445
445
|
id: string;
|
|
446
|
-
league: "nba" | "ncaa" | "mlb";
|
|
446
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
447
447
|
homeTeam: {
|
|
448
448
|
name: string;
|
|
449
449
|
image: string;
|
|
@@ -471,7 +471,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
471
471
|
} | undefined;
|
|
472
472
|
}, {
|
|
473
473
|
id: string;
|
|
474
|
-
league: "nba" | "ncaa" | "mlb";
|
|
474
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
475
475
|
homeTeam: {
|
|
476
476
|
name: string;
|
|
477
477
|
image: string;
|
|
@@ -503,7 +503,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
503
503
|
game: import("zod").ZodObject<Omit<{
|
|
504
504
|
id: import("zod").ZodString;
|
|
505
505
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
506
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
506
|
+
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">]>;
|
|
507
507
|
homeTeam: import("zod").ZodObject<{
|
|
508
508
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
509
509
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -572,7 +572,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
572
572
|
}>>;
|
|
573
573
|
}, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
|
|
574
574
|
id: string;
|
|
575
|
-
league: "nba" | "ncaa" | "mlb";
|
|
575
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
576
576
|
seriesInfo?: {
|
|
577
577
|
maxLength: number;
|
|
578
578
|
homeTeamWins: number;
|
|
@@ -581,7 +581,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
581
581
|
} | undefined;
|
|
582
582
|
}, {
|
|
583
583
|
id: string;
|
|
584
|
-
league: "nba" | "ncaa" | "mlb";
|
|
584
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
585
585
|
seriesInfo?: {
|
|
586
586
|
maxLength: number;
|
|
587
587
|
homeTeamWins: number;
|
|
@@ -594,7 +594,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
594
594
|
rating: number;
|
|
595
595
|
game: {
|
|
596
596
|
id: string;
|
|
597
|
-
league: "nba" | "ncaa" | "mlb";
|
|
597
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
598
598
|
seriesInfo?: {
|
|
599
599
|
maxLength: number;
|
|
600
600
|
homeTeamWins: number;
|
|
@@ -609,7 +609,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
609
609
|
rating: number;
|
|
610
610
|
game: {
|
|
611
611
|
id: string;
|
|
612
|
-
league: "nba" | "ncaa" | "mlb";
|
|
612
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
613
613
|
seriesInfo?: {
|
|
614
614
|
maxLength: number;
|
|
615
615
|
homeTeamWins: number;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -18,7 +18,14 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
18
18
|
game: (0, zod_1.object)({
|
|
19
19
|
id: (0, zod_1.string)(),
|
|
20
20
|
round: (0, zod_1.number)().optional(),
|
|
21
|
-
league: (0, zod_1.union)([
|
|
21
|
+
league: (0, zod_1.union)([
|
|
22
|
+
(0, zod_1.literal)("ncaa"),
|
|
23
|
+
(0, zod_1.literal)("nba"),
|
|
24
|
+
(0, zod_1.literal)("mlb"),
|
|
25
|
+
(0, zod_1.literal)("nfl"),
|
|
26
|
+
(0, zod_1.literal)("nhl"),
|
|
27
|
+
(0, zod_1.literal)("mls"),
|
|
28
|
+
]),
|
|
22
29
|
homeTeam: game_1.gameTeamSchema,
|
|
23
30
|
awayTeam: game_1.gameTeamSchema,
|
|
24
31
|
seriesInfo: game_1.seriesInfoSchema.optional(),
|
|
@@ -29,7 +36,14 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
29
36
|
q: (0, zod_1.string)().optional(),
|
|
30
37
|
teamId: (0, zod_1.string)().optional(),
|
|
31
38
|
round: (0, zod_1.string)().optional(),
|
|
32
|
-
league: (0, zod_1.union)([
|
|
39
|
+
league: (0, zod_1.union)([
|
|
40
|
+
(0, zod_1.literal)("ncaa"),
|
|
41
|
+
(0, zod_1.literal)("nba"),
|
|
42
|
+
(0, zod_1.literal)("mlb"),
|
|
43
|
+
(0, zod_1.literal)("nfl"),
|
|
44
|
+
(0, zod_1.literal)("nhl"),
|
|
45
|
+
(0, zod_1.literal)("mls"),
|
|
46
|
+
]),
|
|
33
47
|
createdAt: (0, zod_1.union)([
|
|
34
48
|
(0, zod_1.literal)("12h"),
|
|
35
49
|
(0, zod_1.literal)("daily"),
|