rategame-shared 1.1.7 → 1.1.9

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.
@@ -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;
@@ -465,7 +465,7 @@ export declare const commonGameSchema: z.ZodObject<{
465
465
  };
466
466
  } | undefined;
467
467
  }>;
468
- export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
468
+ export declare const basketballGameSchema: z.ZodObject<{
469
469
  id: z.ZodOptional<z.ZodString>;
470
470
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
471
471
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -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;
@@ -565,7 +565,6 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
565
565
  options: Record<number, number>;
566
566
  };
567
567
  }>>;
568
- }, {
569
568
  round: z.ZodNumber;
570
569
  timeRemainingMinutes: z.ZodNumber;
571
570
  timeRemainingSeconds: z.ZodNumber;
@@ -584,13 +583,13 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
584
583
  }>, "many">;
585
584
  periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
586
585
  periodDuration: z.ZodNumber;
587
- }>, "strip", z.ZodTypeAny, {
586
+ }, "strip", z.ZodTypeAny, {
588
587
  round: number;
589
588
  status: "live" | "scheduled" | "final";
590
589
  startedAt: number;
591
590
  finishedAt: number;
592
591
  apiGameId: number;
593
- league: "nba" | "ncaa" | "mlb";
592
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
594
593
  homeTeam: {
595
594
  name: string;
596
595
  image: string;
@@ -640,7 +639,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
640
639
  startedAt: number;
641
640
  finishedAt: number;
642
641
  apiGameId: number;
643
- league: "nba" | "ncaa" | "mlb";
642
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
644
643
  homeTeam: {
645
644
  name: string;
646
645
  image: string;
@@ -698,7 +697,7 @@ export declare const inningSchema: z.ZodObject<{
698
697
  homeScore: number;
699
698
  inningNumber: number;
700
699
  }>;
701
- export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
700
+ export declare const mlbGameSchema: z.ZodObject<{
702
701
  id: z.ZodOptional<z.ZodString>;
703
702
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
704
703
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -706,7 +705,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
706
705
  finishedAt: z.ZodNumber;
707
706
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
708
707
  apiGameId: z.ZodNumber;
709
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
708
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
710
709
  homeTeam: z.ZodObject<{
711
710
  id: z.ZodOptional<z.ZodString>;
712
711
  apiTeamId: z.ZodNumber;
@@ -798,7 +797,6 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
798
797
  options: Record<number, number>;
799
798
  };
800
799
  }>>;
801
- }, {
802
800
  totalInningsRemaining: z.ZodNumber;
803
801
  innings: z.ZodArray<z.ZodObject<{
804
802
  inningNumber: z.ZodNumber;
@@ -899,12 +897,12 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
899
897
  id?: string | undefined;
900
898
  }>>;
901
899
  outs: z.ZodOptional<z.ZodNumber>;
902
- }>, "strip", z.ZodTypeAny, {
900
+ }, "strip", z.ZodTypeAny, {
903
901
  status: "live" | "scheduled" | "final";
904
902
  startedAt: number;
905
903
  finishedAt: number;
906
904
  apiGameId: number;
907
- league: "nba" | "ncaa" | "mlb";
905
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
908
906
  homeTeam: {
909
907
  name: string;
910
908
  image: string;
@@ -982,7 +980,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
982
980
  startedAt: number;
983
981
  finishedAt: number;
984
982
  apiGameId: number;
985
- league: "nba" | "ncaa" | "mlb";
983
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
986
984
  homeTeam: {
987
985
  name: string;
988
986
  image: string;
@@ -1056,16 +1054,16 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
1056
1054
  } | undefined;
1057
1055
  outs?: number | undefined;
1058
1056
  }>;
1059
- export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1060
- id: z.ZodOptional<z.ZodString>;
1061
- status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
1062
- isClosed: z.ZodOptional<z.ZodBoolean>;
1063
- startedAt: z.ZodNumber;
1064
- finishedAt: z.ZodNumber;
1065
- ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
1066
- apiGameId: z.ZodNumber;
1067
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
1068
- homeTeam: z.ZodObject<{
1057
+ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1058
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1059
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>>;
1060
+ isClosed: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1061
+ startedAt: z.ZodOptional<z.ZodNumber>;
1062
+ finishedAt: z.ZodOptional<z.ZodNumber>;
1063
+ ratingWindowClosedAt: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1064
+ apiGameId: z.ZodOptional<z.ZodNumber>;
1065
+ league: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>>;
1066
+ homeTeam: z.ZodOptional<z.ZodObject<{
1069
1067
  id: z.ZodOptional<z.ZodString>;
1070
1068
  apiTeamId: z.ZodNumber;
1071
1069
  name: z.ZodString;
@@ -1089,8 +1087,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1089
1087
  id?: string | undefined;
1090
1088
  isWinner?: boolean | undefined;
1091
1089
  seed?: number | undefined;
1092
- }>;
1093
- awayTeam: z.ZodObject<{
1090
+ }>>;
1091
+ awayTeam: z.ZodOptional<z.ZodObject<{
1094
1092
  id: z.ZodOptional<z.ZodString>;
1095
1093
  apiTeamId: z.ZodNumber;
1096
1094
  name: z.ZodString;
@@ -1114,8 +1112,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1114
1112
  id?: string | undefined;
1115
1113
  isWinner?: boolean | undefined;
1116
1114
  seed?: number | undefined;
1117
- }>;
1118
- seriesInfo: z.ZodOptional<z.ZodObject<{
1115
+ }>>;
1116
+ seriesInfo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1119
1117
  homeTeamWins: z.ZodNumber;
1120
1118
  awayTeamWins: z.ZodNumber;
1121
1119
  gameNumber: z.ZodNumber;
@@ -1130,8 +1128,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1130
1128
  homeTeamWins: number;
1131
1129
  awayTeamWins: number;
1132
1130
  gameNumber: number;
1133
- }>>;
1134
- rating: z.ZodOptional<z.ZodObject<{
1131
+ }>>>;
1132
+ rating: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1135
1133
  avg: z.ZodNumber;
1136
1134
  votes: z.ZodObject<{
1137
1135
  options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
@@ -1155,12 +1153,11 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1155
1153
  total: number;
1156
1154
  options: Record<number, number>;
1157
1155
  };
1158
- }>>;
1159
- }, {
1160
- round: z.ZodNumber;
1161
- timeRemainingMinutes: z.ZodNumber;
1162
- timeRemainingSeconds: z.ZodNumber;
1163
- periods: z.ZodArray<z.ZodObject<{
1156
+ }>>>;
1157
+ round: z.ZodOptional<z.ZodNumber>;
1158
+ timeRemainingMinutes: z.ZodOptional<z.ZodNumber>;
1159
+ timeRemainingSeconds: z.ZodOptional<z.ZodNumber>;
1160
+ periods: z.ZodOptional<z.ZodArray<z.ZodObject<{
1164
1161
  awayScore: z.ZodNumber;
1165
1162
  homeScore: z.ZodNumber;
1166
1163
  periodNumber: z.ZodNumber;
@@ -1172,17 +1169,19 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1172
1169
  awayScore: number;
1173
1170
  homeScore: number;
1174
1171
  periodNumber: number;
1175
- }>, "many">;
1176
- periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
1177
- periodDuration: z.ZodNumber;
1178
- }>, "strip", z.ZodTypeAny, {
1179
- round: number;
1180
- status: "live" | "scheduled" | "final";
1181
- startedAt: number;
1182
- finishedAt: number;
1183
- apiGameId: number;
1184
- league: "nba" | "ncaa" | "mlb";
1185
- homeTeam: {
1172
+ }>, "many">>;
1173
+ periodType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>>;
1174
+ periodDuration: z.ZodOptional<z.ZodNumber>;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ id?: string | undefined;
1177
+ status?: "live" | "scheduled" | "final" | undefined;
1178
+ isClosed?: boolean | undefined;
1179
+ startedAt?: number | undefined;
1180
+ finishedAt?: number | undefined;
1181
+ ratingWindowClosedAt?: number | undefined;
1182
+ apiGameId?: number | undefined;
1183
+ league?: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | undefined;
1184
+ homeTeam?: {
1186
1185
  name: string;
1187
1186
  image: string;
1188
1187
  apiTeamId: number;
@@ -1190,8 +1189,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1190
1189
  id?: string | undefined;
1191
1190
  isWinner?: boolean | undefined;
1192
1191
  seed?: number | undefined;
1193
- };
1194
- awayTeam: {
1192
+ } | undefined;
1193
+ awayTeam?: {
1195
1194
  name: string;
1196
1195
  image: string;
1197
1196
  apiTeamId: number;
@@ -1199,19 +1198,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1199
1198
  id?: string | undefined;
1200
1199
  isWinner?: boolean | undefined;
1201
1200
  seed?: number | undefined;
1202
- };
1203
- timeRemainingMinutes: number;
1204
- timeRemainingSeconds: number;
1205
- periods: {
1206
- awayScore: number;
1207
- homeScore: number;
1208
- periodNumber: number;
1209
- }[];
1210
- periodType: "quarter" | "half";
1211
- periodDuration: number;
1212
- id?: string | undefined;
1213
- isClosed?: boolean | undefined;
1214
- ratingWindowClosedAt?: number | undefined;
1201
+ } | undefined;
1215
1202
  seriesInfo?: {
1216
1203
  maxLength: number;
1217
1204
  homeTeamWins: number;
@@ -1225,14 +1212,26 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1225
1212
  options: Record<number, number>;
1226
1213
  };
1227
1214
  } | 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;
1228
1225
  }, {
1229
- round: number;
1230
- status: "live" | "scheduled" | "final";
1231
- startedAt: number;
1232
- finishedAt: number;
1233
- apiGameId: number;
1234
- league: "nba" | "ncaa" | "mlb";
1235
- homeTeam: {
1226
+ id?: string | undefined;
1227
+ status?: "live" | "scheduled" | "final" | undefined;
1228
+ isClosed?: boolean | undefined;
1229
+ startedAt?: number | undefined;
1230
+ finishedAt?: number | undefined;
1231
+ ratingWindowClosedAt?: number | undefined;
1232
+ apiGameId?: number | undefined;
1233
+ league?: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | undefined;
1234
+ homeTeam?: {
1236
1235
  name: string;
1237
1236
  image: string;
1238
1237
  apiTeamId: number;
@@ -1240,8 +1239,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1240
1239
  id?: string | undefined;
1241
1240
  isWinner?: boolean | undefined;
1242
1241
  seed?: number | undefined;
1243
- };
1244
- awayTeam: {
1242
+ } | undefined;
1243
+ awayTeam?: {
1245
1244
  name: string;
1246
1245
  image: string;
1247
1246
  apiTeamId: number;
@@ -1249,19 +1248,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1249
1248
  id?: string | undefined;
1250
1249
  isWinner?: boolean | undefined;
1251
1250
  seed?: number | undefined;
1252
- };
1253
- timeRemainingMinutes: number;
1254
- timeRemainingSeconds: number;
1255
- periods: {
1256
- awayScore: number;
1257
- homeScore: number;
1258
- periodNumber: number;
1259
- }[];
1260
- periodType: "quarter" | "half";
1261
- periodDuration: number;
1262
- id?: string | undefined;
1263
- isClosed?: boolean | undefined;
1264
- ratingWindowClosedAt?: number | undefined;
1251
+ } | undefined;
1265
1252
  seriesInfo?: {
1266
1253
  maxLength: number;
1267
1254
  homeTeamWins: number;
@@ -1275,16 +1262,26 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1275
1262
  options: Record<number, number>;
1276
1263
  };
1277
1264
  } | undefined;
1278
- }>, z.ZodObject<z.objectUtil.extendShape<{
1279
- id: z.ZodOptional<z.ZodString>;
1280
- status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
1281
- isClosed: z.ZodOptional<z.ZodBoolean>;
1282
- startedAt: z.ZodNumber;
1283
- finishedAt: z.ZodNumber;
1284
- ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
1285
- apiGameId: z.ZodNumber;
1286
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
1287
- homeTeam: z.ZodObject<{
1265
+ round?: number | undefined;
1266
+ timeRemainingMinutes?: number | undefined;
1267
+ timeRemainingSeconds?: number | undefined;
1268
+ periods?: {
1269
+ awayScore: number;
1270
+ homeScore: number;
1271
+ periodNumber: number;
1272
+ }[] | undefined;
1273
+ periodType?: "quarter" | "half" | undefined;
1274
+ periodDuration?: number | undefined;
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<{
1288
1285
  id: z.ZodOptional<z.ZodString>;
1289
1286
  apiTeamId: z.ZodNumber;
1290
1287
  name: z.ZodString;
@@ -1308,8 +1305,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1308
1305
  id?: string | undefined;
1309
1306
  isWinner?: boolean | undefined;
1310
1307
  seed?: number | undefined;
1311
- }>;
1312
- awayTeam: z.ZodObject<{
1308
+ }>>;
1309
+ awayTeam: z.ZodOptional<z.ZodObject<{
1313
1310
  id: z.ZodOptional<z.ZodString>;
1314
1311
  apiTeamId: z.ZodNumber;
1315
1312
  name: z.ZodString;
@@ -1333,8 +1330,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1333
1330
  id?: string | undefined;
1334
1331
  isWinner?: boolean | undefined;
1335
1332
  seed?: number | undefined;
1336
- }>;
1337
- seriesInfo: z.ZodOptional<z.ZodObject<{
1333
+ }>>;
1334
+ seriesInfo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1338
1335
  homeTeamWins: z.ZodNumber;
1339
1336
  awayTeamWins: z.ZodNumber;
1340
1337
  gameNumber: z.ZodNumber;
@@ -1349,8 +1346,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1349
1346
  homeTeamWins: number;
1350
1347
  awayTeamWins: number;
1351
1348
  gameNumber: number;
1352
- }>>;
1353
- rating: z.ZodOptional<z.ZodObject<{
1349
+ }>>>;
1350
+ rating: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1354
1351
  avg: z.ZodNumber;
1355
1352
  votes: z.ZodObject<{
1356
1353
  options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
@@ -1374,10 +1371,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1374
1371
  total: number;
1375
1372
  options: Record<number, number>;
1376
1373
  };
1377
- }>>;
1378
- }, {
1379
- totalInningsRemaining: z.ZodNumber;
1380
- innings: z.ZodArray<z.ZodObject<{
1374
+ }>>>;
1375
+ totalInningsRemaining: z.ZodOptional<z.ZodNumber>;
1376
+ innings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1381
1377
  inningNumber: z.ZodNumber;
1382
1378
  awayScore: z.ZodNumber;
1383
1379
  homeScore: z.ZodNumber;
@@ -1389,9 +1385,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1389
1385
  awayScore: number;
1390
1386
  homeScore: number;
1391
1387
  inningNumber: number;
1392
- }>, "many">;
1393
- inningHalf: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"T">, z.ZodLiteral<"B">]>>;
1394
- losingPitcher: z.ZodOptional<z.ZodObject<{
1388
+ }>, "many">>;
1389
+ inningHalf: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"T">, z.ZodLiteral<"B">]>>>;
1390
+ losingPitcher: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1395
1391
  id: z.ZodOptional<z.ZodString>;
1396
1392
  name: z.ZodString;
1397
1393
  wins: z.ZodNumber;
@@ -1418,8 +1414,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1418
1414
  isWinningPitcher: boolean;
1419
1415
  isLosingPitcher: boolean;
1420
1416
  id?: string | undefined;
1421
- }>>;
1422
- winningPitcher: z.ZodOptional<z.ZodObject<{
1417
+ }>>>;
1418
+ winningPitcher: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1423
1419
  id: z.ZodOptional<z.ZodString>;
1424
1420
  name: z.ZodString;
1425
1421
  wins: z.ZodNumber;
@@ -1446,8 +1442,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1446
1442
  isWinningPitcher: boolean;
1447
1443
  isLosingPitcher: boolean;
1448
1444
  id?: string | undefined;
1449
- }>>;
1450
- savingPitcher: z.ZodOptional<z.ZodObject<{
1445
+ }>>>;
1446
+ savingPitcher: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1451
1447
  id: z.ZodOptional<z.ZodString>;
1452
1448
  name: z.ZodString;
1453
1449
  wins: z.ZodNumber;
@@ -1474,15 +1470,18 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1474
1470
  isWinningPitcher: boolean;
1475
1471
  isLosingPitcher: boolean;
1476
1472
  id?: string | undefined;
1477
- }>>;
1478
- outs: z.ZodOptional<z.ZodNumber>;
1479
- }>, "strip", z.ZodTypeAny, {
1480
- status: "live" | "scheduled" | "final";
1481
- startedAt: number;
1482
- finishedAt: number;
1483
- apiGameId: number;
1484
- league: "nba" | "ncaa" | "mlb";
1485
- homeTeam: {
1473
+ }>>>;
1474
+ outs: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1475
+ }, "strip", z.ZodTypeAny, {
1476
+ id?: string | undefined;
1477
+ status?: "live" | "scheduled" | "final" | undefined;
1478
+ isClosed?: boolean | undefined;
1479
+ startedAt?: number | undefined;
1480
+ finishedAt?: number | undefined;
1481
+ ratingWindowClosedAt?: number | undefined;
1482
+ apiGameId?: number | undefined;
1483
+ league?: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | undefined;
1484
+ homeTeam?: {
1486
1485
  name: string;
1487
1486
  image: string;
1488
1487
  apiTeamId: number;
@@ -1490,8 +1489,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1490
1489
  id?: string | undefined;
1491
1490
  isWinner?: boolean | undefined;
1492
1491
  seed?: number | undefined;
1493
- };
1494
- awayTeam: {
1492
+ } | undefined;
1493
+ awayTeam?: {
1495
1494
  name: string;
1496
1495
  image: string;
1497
1496
  apiTeamId: number;
@@ -1499,16 +1498,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1499
1498
  id?: string | undefined;
1500
1499
  isWinner?: boolean | undefined;
1501
1500
  seed?: number | undefined;
1502
- };
1503
- totalInningsRemaining: number;
1504
- innings: {
1505
- awayScore: number;
1506
- homeScore: number;
1507
- inningNumber: number;
1508
- }[];
1509
- id?: string | undefined;
1510
- isClosed?: boolean | undefined;
1511
- ratingWindowClosedAt?: number | undefined;
1501
+ } | undefined;
1512
1502
  seriesInfo?: {
1513
1503
  maxLength: number;
1514
1504
  homeTeamWins: number;
@@ -1522,6 +1512,12 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1522
1512
  options: Record<number, number>;
1523
1513
  };
1524
1514
  } | undefined;
1515
+ totalInningsRemaining?: number | undefined;
1516
+ innings?: {
1517
+ awayScore: number;
1518
+ homeScore: number;
1519
+ inningNumber: number;
1520
+ }[] | undefined;
1525
1521
  inningHalf?: "T" | "B" | undefined;
1526
1522
  losingPitcher?: {
1527
1523
  name: string;
@@ -1555,12 +1551,15 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1555
1551
  } | undefined;
1556
1552
  outs?: number | undefined;
1557
1553
  }, {
1558
- status: "live" | "scheduled" | "final";
1559
- startedAt: number;
1560
- finishedAt: number;
1561
- apiGameId: number;
1562
- league: "nba" | "ncaa" | "mlb";
1563
- homeTeam: {
1554
+ id?: string | undefined;
1555
+ status?: "live" | "scheduled" | "final" | undefined;
1556
+ isClosed?: boolean | undefined;
1557
+ startedAt?: number | undefined;
1558
+ finishedAt?: number | undefined;
1559
+ ratingWindowClosedAt?: number | undefined;
1560
+ apiGameId?: number | undefined;
1561
+ league?: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | undefined;
1562
+ homeTeam?: {
1564
1563
  name: string;
1565
1564
  image: string;
1566
1565
  apiTeamId: number;
@@ -1568,8 +1567,8 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1568
1567
  id?: string | undefined;
1569
1568
  isWinner?: boolean | undefined;
1570
1569
  seed?: number | undefined;
1571
- };
1572
- awayTeam: {
1570
+ } | undefined;
1571
+ awayTeam?: {
1573
1572
  name: string;
1574
1573
  image: string;
1575
1574
  apiTeamId: number;
@@ -1577,16 +1576,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1577
1576
  id?: string | undefined;
1578
1577
  isWinner?: boolean | undefined;
1579
1578
  seed?: number | undefined;
1580
- };
1581
- totalInningsRemaining: number;
1582
- innings: {
1583
- awayScore: number;
1584
- homeScore: number;
1585
- inningNumber: number;
1586
- }[];
1587
- id?: string | undefined;
1588
- isClosed?: boolean | undefined;
1589
- ratingWindowClosedAt?: number | undefined;
1579
+ } | undefined;
1590
1580
  seriesInfo?: {
1591
1581
  maxLength: number;
1592
1582
  homeTeamWins: number;
@@ -1600,6 +1590,12 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1600
1590
  options: Record<number, number>;
1601
1591
  };
1602
1592
  } | undefined;
1593
+ totalInningsRemaining?: number | undefined;
1594
+ innings?: {
1595
+ awayScore: number;
1596
+ homeScore: number;
1597
+ inningNumber: number;
1598
+ }[] | undefined;
1603
1599
  inningHalf?: "T" | "B" | undefined;
1604
1600
  losingPitcher?: {
1605
1601
  name: string;
@@ -1637,27 +1633,27 @@ export declare const searchGameSchema: z.ZodObject<{
1637
1633
  q: z.ZodOptional<z.ZodString>;
1638
1634
  teamId: z.ZodOptional<z.ZodString>;
1639
1635
  round: z.ZodOptional<z.ZodString>;
1640
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
1636
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
1641
1637
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
1642
1638
  sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating.avg:asc">, z.ZodLiteral<"rating.avg:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">]>>;
1643
1639
  limit: z.ZodOptional<z.ZodString>;
1644
1640
  offset: z.ZodOptional<z.ZodString>;
1645
1641
  }, "strip", z.ZodTypeAny, {
1646
- league: "nba" | "ncaa" | "mlb";
1647
- offset?: string | undefined;
1648
- round?: string | undefined;
1642
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1649
1643
  q?: string | undefined;
1650
- createdAt?: "12h" | "daily" | "weekly" | undefined;
1651
1644
  teamId?: string | undefined;
1645
+ round?: string | undefined;
1646
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
1652
1647
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
1653
1648
  limit?: string | undefined;
1654
- }, {
1655
- league: "nba" | "ncaa" | "mlb";
1656
1649
  offset?: string | undefined;
1657
- round?: string | undefined;
1650
+ }, {
1651
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1658
1652
  q?: string | undefined;
1659
- createdAt?: "12h" | "daily" | "weekly" | undefined;
1660
1653
  teamId?: string | undefined;
1654
+ round?: string | undefined;
1655
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
1661
1656
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
1662
1657
  limit?: string | undefined;
1658
+ offset?: string | undefined;
1663
1659
  }>;
@@ -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([zod_1.z.literal("ncaa"), zod_1.z.literal("nba"), zod_1.z.literal("mlb")]),
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([zod_1.z.literal("ncaa"), zod_1.z.literal("nba"), zod_1.z.literal("mlb")]),
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(),
@@ -97,7 +111,10 @@ exports.mlbGameSchema = exports.commonGameSchema.extend({
97
111
  savingPitcher: player_1.mlbPlayerSchema.optional(),
98
112
  outs: zod_1.z.number().optional(),
99
113
  });
100
- exports.unionGameSchema = zod_1.z.union([exports.basketballGameSchema, exports.mlbGameSchema]);
114
+ exports.unionGameSchema = zod_1.z.union([
115
+ exports.basketballGameSchema.partial(),
116
+ exports.mlbGameSchema.partial(),
117
+ ]);
101
118
  // export const mlbGameSchema = z.object({
102
119
  // id: z.string().optional(),
103
120
  // status: z.union([
@@ -128,7 +145,14 @@ exports.searchGameSchema = zod_1.z.object({
128
145
  q: zod_1.z.string().optional(),
129
146
  teamId: zod_1.z.string().optional(),
130
147
  round: zod_1.z.string().optional(),
131
- league: zod_1.z.union([zod_1.z.literal("ncaa"), zod_1.z.literal("nba"), zod_1.z.literal("mlb")]),
148
+ league: zod_1.z.union([
149
+ zod_1.z.literal("ncaa"),
150
+ zod_1.z.literal("nba"),
151
+ zod_1.z.literal("mlb"),
152
+ zod_1.z.literal("nfl"),
153
+ zod_1.z.literal("nhl"),
154
+ zod_1.z.literal("mls"),
155
+ ]),
132
156
  createdAt: zod_1.z
133
157
  .union([zod_1.z.literal("12h"), zod_1.z.literal("daily"), zod_1.z.literal("weekly")])
134
158
  .optional(),
@@ -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,33 +251,33 @@ 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";
255
- offset?: string | undefined;
256
- round?: string | undefined;
254
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
257
255
  q?: string | undefined;
258
- username?: string | undefined;
259
- createdAt?: "12h" | "daily" | "weekly" | undefined;
260
256
  teamId?: string | undefined;
257
+ round?: string | undefined;
258
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
261
259
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
262
260
  limit?: string | undefined;
263
- comment?: string | undefined;
261
+ offset?: string | undefined;
264
262
  gameId?: string | undefined;
265
263
  showEmptyRatings?: string | undefined;
264
+ comment?: string | undefined;
265
+ username?: string | undefined;
266
266
  following?: string | undefined;
267
267
  userId?: string | undefined;
268
268
  }, {
269
- league: "nba" | "ncaa" | "mlb";
270
- offset?: string | undefined;
271
- round?: string | undefined;
269
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
272
270
  q?: string | undefined;
273
- username?: string | undefined;
274
- createdAt?: "12h" | "daily" | "weekly" | undefined;
275
271
  teamId?: string | undefined;
272
+ round?: string | undefined;
273
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
276
274
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
277
275
  limit?: string | undefined;
278
- comment?: string | undefined;
276
+ offset?: string | undefined;
279
277
  gameId?: string | undefined;
280
278
  showEmptyRatings?: string | undefined;
279
+ comment?: string | undefined;
280
+ username?: string | undefined;
281
281
  following?: string | undefined;
282
282
  userId?: string | undefined;
283
283
  }>;
@@ -347,163 +347,14 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
347
347
  };
348
348
  agree: boolean;
349
349
  }>;
350
- export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
351
- id: import("zod").ZodString;
352
- createdAt: import("zod").ZodNumber;
350
+ export declare const createRatingSchema: import("zod").ZodObject<{
353
351
  rating: import("zod").ZodNumber;
354
352
  comment: import("zod").ZodOptional<import("zod").ZodString>;
355
- user: import("zod").ZodObject<{
356
- id: import("zod").ZodString;
357
- username: import("zod").ZodString;
358
- avatarUrl: import("zod").ZodString;
359
- email: import("zod").ZodString;
360
- badge: import("zod").ZodOptional<import("zod").ZodString>;
361
- }, "strip", import("zod").ZodTypeAny, {
362
- id: string;
363
- email: string;
364
- username: string;
365
- avatarUrl: string;
366
- badge?: string | undefined;
367
- }, {
368
- id: string;
369
- email: string;
370
- username: string;
371
- avatarUrl: string;
372
- badge?: string | undefined;
373
- }>;
374
- game: import("zod").ZodObject<{
375
- id: import("zod").ZodString;
376
- round: import("zod").ZodOptional<import("zod").ZodNumber>;
377
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
378
- homeTeam: import("zod").ZodObject<{
379
- id: import("zod").ZodOptional<import("zod").ZodString>;
380
- apiTeamId: import("zod").ZodNumber;
381
- name: import("zod").ZodString;
382
- score: import("zod").ZodNumber;
383
- isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
384
- image: import("zod").ZodString;
385
- seed: import("zod").ZodOptional<import("zod").ZodNumber>;
386
- }, "strip", import("zod").ZodTypeAny, {
387
- name: string;
388
- image: string;
389
- apiTeamId: number;
390
- score: number;
391
- id?: string | undefined;
392
- isWinner?: boolean | undefined;
393
- seed?: number | undefined;
394
- }, {
395
- name: string;
396
- image: string;
397
- apiTeamId: number;
398
- score: number;
399
- id?: string | undefined;
400
- isWinner?: boolean | undefined;
401
- seed?: number | undefined;
402
- }>;
403
- awayTeam: import("zod").ZodObject<{
404
- id: import("zod").ZodOptional<import("zod").ZodString>;
405
- apiTeamId: import("zod").ZodNumber;
406
- name: import("zod").ZodString;
407
- score: import("zod").ZodNumber;
408
- isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
409
- image: import("zod").ZodString;
410
- seed: import("zod").ZodOptional<import("zod").ZodNumber>;
411
- }, "strip", import("zod").ZodTypeAny, {
412
- name: string;
413
- image: string;
414
- apiTeamId: number;
415
- score: number;
416
- id?: string | undefined;
417
- isWinner?: boolean | undefined;
418
- seed?: number | undefined;
419
- }, {
420
- name: string;
421
- image: string;
422
- apiTeamId: number;
423
- score: number;
424
- id?: string | undefined;
425
- isWinner?: boolean | undefined;
426
- seed?: number | undefined;
427
- }>;
428
- seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
429
- homeTeamWins: import("zod").ZodNumber;
430
- awayTeamWins: import("zod").ZodNumber;
431
- gameNumber: import("zod").ZodNumber;
432
- maxLength: import("zod").ZodNumber;
433
- }, "strip", import("zod").ZodTypeAny, {
434
- maxLength: number;
435
- homeTeamWins: number;
436
- awayTeamWins: number;
437
- gameNumber: number;
438
- }, {
439
- maxLength: number;
440
- homeTeamWins: number;
441
- awayTeamWins: number;
442
- gameNumber: number;
443
- }>>;
444
- }, "strip", import("zod").ZodTypeAny, {
445
- id: string;
446
- league: "nba" | "ncaa" | "mlb";
447
- homeTeam: {
448
- name: string;
449
- image: string;
450
- apiTeamId: number;
451
- score: number;
452
- id?: string | undefined;
453
- isWinner?: boolean | undefined;
454
- seed?: number | undefined;
455
- };
456
- awayTeam: {
457
- name: string;
458
- image: string;
459
- apiTeamId: number;
460
- score: number;
461
- id?: string | undefined;
462
- isWinner?: boolean | undefined;
463
- seed?: number | undefined;
464
- };
465
- round?: number | undefined;
466
- seriesInfo?: {
467
- maxLength: number;
468
- homeTeamWins: number;
469
- awayTeamWins: number;
470
- gameNumber: number;
471
- } | undefined;
472
- }, {
473
- id: string;
474
- league: "nba" | "ncaa" | "mlb";
475
- homeTeam: {
476
- name: string;
477
- image: string;
478
- apiTeamId: number;
479
- score: number;
480
- id?: string | undefined;
481
- isWinner?: boolean | undefined;
482
- seed?: number | undefined;
483
- };
484
- awayTeam: {
485
- name: string;
486
- image: string;
487
- apiTeamId: number;
488
- score: number;
489
- id?: string | undefined;
490
- isWinner?: boolean | undefined;
491
- seed?: number | undefined;
492
- };
493
- round?: number | undefined;
494
- seriesInfo?: {
495
- maxLength: number;
496
- homeTeamWins: number;
497
- awayTeamWins: number;
498
- gameNumber: number;
499
- } | undefined;
500
- }>;
501
353
  userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
502
- }, "id" | "user" | "createdAt">, {
503
354
  game: import("zod").ZodObject<Omit<{
504
355
  id: import("zod").ZodString;
505
356
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
506
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
357
+ 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
358
  homeTeam: import("zod").ZodObject<{
508
359
  id: import("zod").ZodOptional<import("zod").ZodString>;
509
360
  apiTeamId: import("zod").ZodNumber;
@@ -572,7 +423,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
572
423
  }>>;
573
424
  }, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
574
425
  id: string;
575
- league: "nba" | "ncaa" | "mlb";
426
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
576
427
  seriesInfo?: {
577
428
  maxLength: number;
578
429
  homeTeamWins: number;
@@ -581,7 +432,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
581
432
  } | undefined;
582
433
  }, {
583
434
  id: string;
584
- league: "nba" | "ncaa" | "mlb";
435
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
585
436
  seriesInfo?: {
586
437
  maxLength: number;
587
438
  homeTeamWins: number;
@@ -590,11 +441,11 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
590
441
  } | undefined;
591
442
  }>;
592
443
  id: import("zod").ZodOptional<import("zod").ZodString>;
593
- }>, "strip", import("zod").ZodTypeAny, {
444
+ }, "strip", import("zod").ZodTypeAny, {
594
445
  rating: number;
595
446
  game: {
596
447
  id: string;
597
- league: "nba" | "ncaa" | "mlb";
448
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
598
449
  seriesInfo?: {
599
450
  maxLength: number;
600
451
  homeTeamWins: number;
@@ -602,14 +453,14 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
602
453
  gameNumber: number;
603
454
  } | undefined;
604
455
  };
605
- id?: string | undefined;
606
456
  comment?: string | undefined;
607
457
  userLikes?: number | undefined;
458
+ id?: string | undefined;
608
459
  }, {
609
460
  rating: number;
610
461
  game: {
611
462
  id: string;
612
- league: "nba" | "ncaa" | "mlb";
463
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
613
464
  seriesInfo?: {
614
465
  maxLength: number;
615
466
  homeTeamWins: number;
@@ -617,7 +468,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
617
468
  gameNumber: number;
618
469
  } | undefined;
619
470
  };
620
- id?: string | undefined;
621
471
  comment?: string | undefined;
622
472
  userLikes?: number | undefined;
473
+ id?: string | undefined;
623
474
  }>;
@@ -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)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba"), (0, zod_1.literal)("mlb")]),
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)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba"), (0, zod_1.literal)("mlb")]),
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"),
@@ -134,10 +134,6 @@ 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;
141
137
  leagues?: {
142
138
  nba: {
143
139
  totalRatedGames: number;
@@ -150,6 +146,9 @@ export declare const userSchema: import("zod").ZodObject<{
150
146
  avgRating: number;
151
147
  };
152
148
  } | undefined;
149
+ totalRatedGames?: number | undefined;
150
+ commentsLeft?: number | undefined;
151
+ avgRating?: number | undefined;
153
152
  isRegistrationComplete?: boolean | undefined;
154
153
  badge?: string | undefined;
155
154
  registrationStep?: number | undefined;
@@ -163,6 +162,7 @@ export declare const userSchema: import("zod").ZodObject<{
163
162
  youtube?: string | undefined;
164
163
  tiktok?: string | undefined;
165
164
  } | 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,10 +182,6 @@ 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;
189
185
  leagues?: {
190
186
  nba: {
191
187
  totalRatedGames: number;
@@ -198,6 +194,9 @@ export declare const userSchema: import("zod").ZodObject<{
198
194
  avgRating: number;
199
195
  };
200
196
  } | undefined;
197
+ totalRatedGames?: number | undefined;
198
+ commentsLeft?: number | undefined;
199
+ avgRating?: number | undefined;
201
200
  isRegistrationComplete?: boolean | undefined;
202
201
  badge?: string | undefined;
203
202
  registrationStep?: number | undefined;
@@ -211,6 +210,7 @@ export declare const userSchema: import("zod").ZodObject<{
211
210
  youtube?: string | undefined;
212
211
  tiktok?: string | undefined;
213
212
  } | undefined;
213
+ platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
214
214
  selectedTeamsPerLeague?: Record<string, string[]> | undefined;
215
215
  notificationSettings?: {
216
216
  allGames?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",