rategame-shared 1.1.8 → 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.
@@ -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>;
@@ -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,7 +583,7 @@ 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;
@@ -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>;
@@ -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,7 +897,7 @@ 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;
@@ -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">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
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" | "nfl" | "nhl" | "mls";
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" | "nfl" | "nhl" | "mls";
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">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
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" | "nfl" | "nhl" | "mls";
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" | "nfl" | "nhl" | "mls";
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;
@@ -1644,20 +1640,20 @@ export declare const searchGameSchema: z.ZodObject<{
1644
1640
  offset: z.ZodOptional<z.ZodString>;
1645
1641
  }, "strip", z.ZodTypeAny, {
1646
1642
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1647
- offset?: string | undefined;
1648
- round?: string | undefined;
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;
1649
+ offset?: string | undefined;
1654
1650
  }, {
1655
1651
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1656
- offset?: string | undefined;
1657
- round?: string | undefined;
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
  }>;
@@ -111,7 +111,10 @@ exports.mlbGameSchema = exports.commonGameSchema.extend({
111
111
  savingPitcher: player_1.mlbPlayerSchema.optional(),
112
112
  outs: zod_1.z.number().optional(),
113
113
  });
114
- 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
+ ]);
115
118
  // export const mlbGameSchema = z.object({
116
119
  // id: z.string().optional(),
117
120
  // status: z.union([
@@ -252,32 +252,32 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
252
252
  userId: import("zod").ZodOptional<import("zod").ZodString>;
253
253
  }, "strip", import("zod").ZodTypeAny, {
254
254
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
255
- offset?: string | undefined;
256
- round?: string | undefined;
257
255
  q?: string | undefined;
258
- username?: string | undefined;
259
- createdAt?: "12h" | "daily" | "weekly" | undefined;
260
256
  teamId?: string | undefined;
257
+ round?: string | undefined;
258
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
261
259
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
262
260
  limit?: string | undefined;
263
- 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
269
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
270
- offset?: string | undefined;
271
- round?: string | undefined;
272
270
  q?: string | undefined;
273
- username?: string | undefined;
274
- createdAt?: "12h" | "daily" | "weekly" | undefined;
275
271
  teamId?: string | undefined;
272
+ round?: string | undefined;
273
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
276
274
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
277
275
  limit?: string | undefined;
278
- 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,159 +347,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
347
347
  };
348
348
  agree: boolean;
349
349
  }>;
350
- export declare const createRatingSchema: import("zod").ZodObject<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">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
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" | "nfl" | "nhl" | "mls";
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" | "nfl" | "nhl" | "mls";
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>;
@@ -590,7 +441,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
590
441
  } | undefined;
591
442
  }>;
592
443
  id: import("zod").ZodOptional<import("zod").ZodString>;
593
- }>, "strip", import("zod").ZodTypeAny, {
444
+ }, "strip", import("zod").ZodTypeAny, {
594
445
  rating: number;
595
446
  game: {
596
447
  id: string;
@@ -602,9 +453,9 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
602
453
  gameNumber: number;
603
454
  } | undefined;
604
455
  };
605
- id?: string | undefined;
606
456
  comment?: string | undefined;
607
457
  userLikes?: number | undefined;
458
+ id?: string | undefined;
608
459
  }, {
609
460
  rating: number;
610
461
  game: {
@@ -617,7 +468,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
617
468
  gameNumber: number;
618
469
  } | undefined;
619
470
  };
620
- id?: string | undefined;
621
471
  comment?: string | undefined;
622
472
  userLikes?: number | undefined;
473
+ id?: string | undefined;
623
474
  }>;
@@ -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.8",
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",