rategame-shared 1.1.18 → 1.1.20

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.
@@ -488,7 +488,7 @@ export declare const commonGameSchema: z.ZodObject<{
488
488
  };
489
489
  } | undefined;
490
490
  }>;
491
- export declare const basketballGameSchema: z.ZodObject<{
491
+ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
492
492
  id: z.ZodOptional<z.ZodString>;
493
493
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
494
494
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -594,6 +594,7 @@ export declare const basketballGameSchema: z.ZodObject<{
594
594
  options: Record<number, number>;
595
595
  };
596
596
  }>>;
597
+ }, {
597
598
  round: z.ZodNumber;
598
599
  timeRemainingMinutes: z.ZodNumber;
599
600
  timeRemainingSeconds: z.ZodNumber;
@@ -612,7 +613,7 @@ export declare const basketballGameSchema: z.ZodObject<{
612
613
  }>, "many">;
613
614
  periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
614
615
  periodDuration: z.ZodNumber;
615
- }, "strip", z.ZodTypeAny, {
616
+ }>, "strip", z.ZodTypeAny, {
616
617
  round: number;
617
618
  status: "live" | "scheduled" | "final";
618
619
  startedAt: number;
@@ -730,7 +731,7 @@ export declare const inningSchema: z.ZodObject<{
730
731
  homeScore: number;
731
732
  inningNumber: number;
732
733
  }>;
733
- export declare const mlbGameSchema: z.ZodObject<{
734
+ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
734
735
  id: z.ZodOptional<z.ZodString>;
735
736
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
736
737
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -836,6 +837,7 @@ export declare const mlbGameSchema: z.ZodObject<{
836
837
  options: Record<number, number>;
837
838
  };
838
839
  }>>;
840
+ }, {
839
841
  totalInningsRemaining: z.ZodNumber;
840
842
  innings: z.ZodArray<z.ZodObject<{
841
843
  inningNumber: z.ZodNumber;
@@ -861,7 +863,10 @@ export declare const mlbGameSchema: z.ZodObject<{
861
863
  homeTeamHits: z.ZodNumber;
862
864
  awayTeamErrors: z.ZodNumber;
863
865
  homeTeamErrors: z.ZodNumber;
864
- }, "strip", z.ZodTypeAny, {
866
+ runnerOnFirst: z.ZodOptional<z.ZodBoolean>;
867
+ runnerOnSecond: z.ZodOptional<z.ZodBoolean>;
868
+ runnerOnThird: z.ZodOptional<z.ZodBoolean>;
869
+ }>, "strip", z.ZodTypeAny, {
865
870
  status: "live" | "scheduled" | "final";
866
871
  startedAt: number;
867
872
  finishedAt: number;
@@ -920,6 +925,9 @@ export declare const mlbGameSchema: z.ZodObject<{
920
925
  inningHalf?: "T" | "B" | undefined;
921
926
  savingPitcher?: string | undefined;
922
927
  outs?: number | undefined;
928
+ runnerOnFirst?: boolean | undefined;
929
+ runnerOnSecond?: boolean | undefined;
930
+ runnerOnThird?: boolean | undefined;
923
931
  }, {
924
932
  status: "live" | "scheduled" | "final";
925
933
  startedAt: number;
@@ -979,8 +987,11 @@ export declare const mlbGameSchema: z.ZodObject<{
979
987
  inningHalf?: "T" | "B" | undefined;
980
988
  savingPitcher?: string | undefined;
981
989
  outs?: number | undefined;
990
+ runnerOnFirst?: boolean | undefined;
991
+ runnerOnSecond?: boolean | undefined;
992
+ runnerOnThird?: boolean | undefined;
982
993
  }>;
983
- export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
994
+ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
984
995
  id: z.ZodOptional<z.ZodString>;
985
996
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
986
997
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -1086,6 +1097,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1086
1097
  options: Record<number, number>;
1087
1098
  };
1088
1099
  }>>;
1100
+ }, {
1089
1101
  round: z.ZodNumber;
1090
1102
  timeRemainingMinutes: z.ZodNumber;
1091
1103
  timeRemainingSeconds: z.ZodNumber;
@@ -1104,7 +1116,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1104
1116
  }>, "many">;
1105
1117
  periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
1106
1118
  periodDuration: z.ZodNumber;
1107
- }, "strip", z.ZodTypeAny, {
1119
+ }>, "strip", z.ZodTypeAny, {
1108
1120
  round: number;
1109
1121
  status: "live" | "scheduled" | "final";
1110
1122
  startedAt: number;
@@ -1208,7 +1220,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1208
1220
  options: Record<number, number>;
1209
1221
  };
1210
1222
  } | undefined;
1211
- }>, z.ZodObject<{
1223
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1212
1224
  id: z.ZodOptional<z.ZodString>;
1213
1225
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
1214
1226
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -1314,6 +1326,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1314
1326
  options: Record<number, number>;
1315
1327
  };
1316
1328
  }>>;
1329
+ }, {
1317
1330
  totalInningsRemaining: z.ZodNumber;
1318
1331
  innings: z.ZodArray<z.ZodObject<{
1319
1332
  inningNumber: z.ZodNumber;
@@ -1339,7 +1352,10 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1339
1352
  homeTeamHits: z.ZodNumber;
1340
1353
  awayTeamErrors: z.ZodNumber;
1341
1354
  homeTeamErrors: z.ZodNumber;
1342
- }, "strip", z.ZodTypeAny, {
1355
+ runnerOnFirst: z.ZodOptional<z.ZodBoolean>;
1356
+ runnerOnSecond: z.ZodOptional<z.ZodBoolean>;
1357
+ runnerOnThird: z.ZodOptional<z.ZodBoolean>;
1358
+ }>, "strip", z.ZodTypeAny, {
1343
1359
  status: "live" | "scheduled" | "final";
1344
1360
  startedAt: number;
1345
1361
  finishedAt: number;
@@ -1398,6 +1414,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1398
1414
  inningHalf?: "T" | "B" | undefined;
1399
1415
  savingPitcher?: string | undefined;
1400
1416
  outs?: number | undefined;
1417
+ runnerOnFirst?: boolean | undefined;
1418
+ runnerOnSecond?: boolean | undefined;
1419
+ runnerOnThird?: boolean | undefined;
1401
1420
  }, {
1402
1421
  status: "live" | "scheduled" | "final";
1403
1422
  startedAt: number;
@@ -1457,6 +1476,9 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1457
1476
  inningHalf?: "T" | "B" | undefined;
1458
1477
  savingPitcher?: string | undefined;
1459
1478
  outs?: number | undefined;
1479
+ runnerOnFirst?: boolean | undefined;
1480
+ runnerOnSecond?: boolean | undefined;
1481
+ runnerOnThird?: boolean | undefined;
1460
1482
  }>]>;
1461
1483
  export declare const searchGameSchema: z.ZodObject<{
1462
1484
  q: z.ZodOptional<z.ZodString>;
@@ -1469,20 +1491,20 @@ export declare const searchGameSchema: z.ZodObject<{
1469
1491
  offset: z.ZodOptional<z.ZodString>;
1470
1492
  }, "strip", z.ZodTypeAny, {
1471
1493
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1472
- q?: string | undefined;
1473
- teamId?: string | undefined;
1494
+ offset?: string | undefined;
1474
1495
  round?: string | undefined;
1496
+ q?: string | undefined;
1475
1497
  createdAt?: "12h" | "daily" | "weekly" | undefined;
1498
+ teamId?: string | undefined;
1476
1499
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
1477
1500
  limit?: string | undefined;
1478
- offset?: string | undefined;
1479
1501
  }, {
1480
1502
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1481
- q?: string | undefined;
1482
- teamId?: string | undefined;
1503
+ offset?: string | undefined;
1483
1504
  round?: string | undefined;
1505
+ q?: string | undefined;
1484
1506
  createdAt?: "12h" | "daily" | "weekly" | undefined;
1507
+ teamId?: string | undefined;
1485
1508
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
1486
1509
  limit?: string | undefined;
1487
- offset?: string | undefined;
1488
1510
  }>;
@@ -116,6 +116,9 @@ exports.mlbGameSchema = exports.commonGameSchema.extend({
116
116
  homeTeamHits: zod_1.z.number(),
117
117
  awayTeamErrors: zod_1.z.number(),
118
118
  homeTeamErrors: zod_1.z.number(),
119
+ runnerOnFirst: zod_1.z.boolean().optional(),
120
+ runnerOnSecond: zod_1.z.boolean().optional(),
121
+ runnerOnThird: zod_1.z.boolean().optional(),
119
122
  });
120
123
  exports.unionGameSchema = zod_1.z.union([exports.basketballGameSchema, exports.mlbGameSchema]);
121
124
  // export const mlbGameSchema = z.object({
@@ -5,16 +5,28 @@ 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.ZodOptional<z.ZodBoolean>;
10
+ isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
11
+ isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
8
12
  }, "strip", z.ZodTypeAny, {
9
13
  name: string;
10
14
  wins: number;
11
15
  losses: number;
12
16
  saves: number;
17
+ games: number;
13
18
  id?: string | undefined;
19
+ isWinningPitcher?: boolean | undefined;
20
+ isLosingPitcher?: boolean | undefined;
21
+ isSavingPitcher?: boolean | undefined;
14
22
  }, {
15
23
  name: string;
16
24
  wins: number;
17
25
  losses: number;
18
26
  saves: number;
27
+ games: number;
19
28
  id?: string | undefined;
29
+ isWinningPitcher?: boolean | undefined;
30
+ isLosingPitcher?: boolean | undefined;
31
+ isSavingPitcher?: boolean | undefined;
20
32
  }>;
@@ -8,4 +8,8 @@ exports.mlbPlayerSchema = zod_1.z.object({
8
8
  wins: zod_1.z.number(),
9
9
  losses: zod_1.z.number(),
10
10
  saves: zod_1.z.number(),
11
+ games: zod_1.z.number(),
12
+ isWinningPitcher: zod_1.z.boolean().optional(),
13
+ isLosingPitcher: zod_1.z.boolean().optional(),
14
+ isSavingPitcher: zod_1.z.boolean().optional(),
11
15
  });
@@ -268,34 +268,34 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
268
268
  division: import("zod").ZodOptional<import("zod").ZodString>;
269
269
  }, "strip", import("zod").ZodTypeAny, {
270
270
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
271
- q?: string | undefined;
272
- teamId?: string | undefined;
271
+ offset?: string | undefined;
273
272
  round?: string | undefined;
273
+ q?: string | undefined;
274
+ username?: string | undefined;
274
275
  createdAt?: "12h" | "daily" | "weekly" | undefined;
276
+ teamId?: string | undefined;
275
277
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
276
278
  limit?: string | undefined;
277
- offset?: string | undefined;
279
+ comment?: string | undefined;
278
280
  gameId?: string | undefined;
279
281
  showEmptyRatings?: string | undefined;
280
- comment?: string | undefined;
281
- username?: string | undefined;
282
282
  following?: string | undefined;
283
283
  userId?: string | undefined;
284
284
  mlbTeamLeague?: string | undefined;
285
285
  division?: string | undefined;
286
286
  }, {
287
287
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
288
- q?: string | undefined;
289
- teamId?: string | undefined;
288
+ offset?: string | undefined;
290
289
  round?: string | undefined;
290
+ q?: string | undefined;
291
+ username?: string | undefined;
291
292
  createdAt?: "12h" | "daily" | "weekly" | undefined;
293
+ teamId?: string | undefined;
292
294
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
293
295
  limit?: string | undefined;
294
- offset?: string | undefined;
296
+ comment?: string | undefined;
295
297
  gameId?: string | undefined;
296
298
  showEmptyRatings?: string | undefined;
297
- comment?: string | undefined;
298
- username?: string | undefined;
299
299
  following?: string | undefined;
300
300
  userId?: string | undefined;
301
301
  mlbTeamLeague?: string | undefined;
@@ -367,10 +367,169 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
367
367
  };
368
368
  agree: boolean;
369
369
  }>;
370
- export declare const createRatingSchema: import("zod").ZodObject<{
370
+ export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
371
+ id: import("zod").ZodString;
372
+ createdAt: import("zod").ZodNumber;
371
373
  rating: import("zod").ZodNumber;
372
374
  comment: import("zod").ZodOptional<import("zod").ZodString>;
375
+ user: import("zod").ZodObject<{
376
+ id: import("zod").ZodString;
377
+ username: import("zod").ZodString;
378
+ avatarUrl: import("zod").ZodString;
379
+ email: import("zod").ZodString;
380
+ badge: import("zod").ZodOptional<import("zod").ZodString>;
381
+ }, "strip", import("zod").ZodTypeAny, {
382
+ id: string;
383
+ email: string;
384
+ username: string;
385
+ avatarUrl: string;
386
+ badge?: string | undefined;
387
+ }, {
388
+ id: string;
389
+ email: string;
390
+ username: string;
391
+ avatarUrl: string;
392
+ badge?: string | undefined;
393
+ }>;
394
+ game: import("zod").ZodObject<{
395
+ id: import("zod").ZodString;
396
+ round: import("zod").ZodOptional<import("zod").ZodNumber>;
397
+ 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">]>;
398
+ homeTeam: import("zod").ZodObject<{
399
+ id: import("zod").ZodOptional<import("zod").ZodString>;
400
+ apiTeamId: import("zod").ZodNumber;
401
+ name: import("zod").ZodString;
402
+ score: import("zod").ZodNumber;
403
+ isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
404
+ image: import("zod").ZodString;
405
+ seed: import("zod").ZodOptional<import("zod").ZodNumber>;
406
+ teamCode: import("zod").ZodOptional<import("zod").ZodString>;
407
+ }, "strip", import("zod").ZodTypeAny, {
408
+ name: string;
409
+ image: string;
410
+ apiTeamId: number;
411
+ score: number;
412
+ id?: string | undefined;
413
+ isWinner?: boolean | undefined;
414
+ seed?: number | undefined;
415
+ teamCode?: string | undefined;
416
+ }, {
417
+ name: string;
418
+ image: string;
419
+ apiTeamId: number;
420
+ score: number;
421
+ id?: string | undefined;
422
+ isWinner?: boolean | undefined;
423
+ seed?: number | undefined;
424
+ teamCode?: string | undefined;
425
+ }>;
426
+ awayTeam: import("zod").ZodObject<{
427
+ id: import("zod").ZodOptional<import("zod").ZodString>;
428
+ apiTeamId: import("zod").ZodNumber;
429
+ name: import("zod").ZodString;
430
+ score: import("zod").ZodNumber;
431
+ isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
432
+ image: import("zod").ZodString;
433
+ seed: import("zod").ZodOptional<import("zod").ZodNumber>;
434
+ teamCode: import("zod").ZodOptional<import("zod").ZodString>;
435
+ }, "strip", import("zod").ZodTypeAny, {
436
+ name: string;
437
+ image: string;
438
+ apiTeamId: number;
439
+ score: number;
440
+ id?: string | undefined;
441
+ isWinner?: boolean | undefined;
442
+ seed?: number | undefined;
443
+ teamCode?: string | undefined;
444
+ }, {
445
+ name: string;
446
+ image: string;
447
+ apiTeamId: number;
448
+ score: number;
449
+ id?: string | undefined;
450
+ isWinner?: boolean | undefined;
451
+ seed?: number | undefined;
452
+ teamCode?: string | undefined;
453
+ }>;
454
+ seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
455
+ homeTeamWins: import("zod").ZodNumber;
456
+ awayTeamWins: import("zod").ZodNumber;
457
+ gameNumber: import("zod").ZodNumber;
458
+ maxLength: import("zod").ZodNumber;
459
+ }, "strip", import("zod").ZodTypeAny, {
460
+ maxLength: number;
461
+ homeTeamWins: number;
462
+ awayTeamWins: number;
463
+ gameNumber: number;
464
+ }, {
465
+ maxLength: number;
466
+ homeTeamWins: number;
467
+ awayTeamWins: number;
468
+ gameNumber: number;
469
+ }>>;
470
+ }, "strip", import("zod").ZodTypeAny, {
471
+ id: string;
472
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
473
+ homeTeam: {
474
+ name: string;
475
+ image: string;
476
+ apiTeamId: number;
477
+ score: number;
478
+ id?: string | undefined;
479
+ isWinner?: boolean | undefined;
480
+ seed?: number | undefined;
481
+ teamCode?: string | undefined;
482
+ };
483
+ awayTeam: {
484
+ name: string;
485
+ image: string;
486
+ apiTeamId: number;
487
+ score: number;
488
+ id?: string | undefined;
489
+ isWinner?: boolean | undefined;
490
+ seed?: number | undefined;
491
+ teamCode?: string | undefined;
492
+ };
493
+ round?: number | undefined;
494
+ seriesInfo?: {
495
+ maxLength: number;
496
+ homeTeamWins: number;
497
+ awayTeamWins: number;
498
+ gameNumber: number;
499
+ } | undefined;
500
+ }, {
501
+ id: string;
502
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
503
+ homeTeam: {
504
+ name: string;
505
+ image: string;
506
+ apiTeamId: number;
507
+ score: number;
508
+ id?: string | undefined;
509
+ isWinner?: boolean | undefined;
510
+ seed?: number | undefined;
511
+ teamCode?: string | undefined;
512
+ };
513
+ awayTeam: {
514
+ name: string;
515
+ image: string;
516
+ apiTeamId: number;
517
+ score: number;
518
+ id?: string | undefined;
519
+ isWinner?: boolean | undefined;
520
+ seed?: number | undefined;
521
+ teamCode?: string | undefined;
522
+ };
523
+ round?: number | undefined;
524
+ seriesInfo?: {
525
+ maxLength: number;
526
+ homeTeamWins: number;
527
+ awayTeamWins: number;
528
+ gameNumber: number;
529
+ } | undefined;
530
+ }>;
373
531
  userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
532
+ }, "id" | "user" | "createdAt">, {
374
533
  game: import("zod").ZodObject<Omit<{
375
534
  id: import("zod").ZodString;
376
535
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -467,7 +626,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
467
626
  } | undefined;
468
627
  }>;
469
628
  id: import("zod").ZodOptional<import("zod").ZodString>;
470
- }, "strip", import("zod").ZodTypeAny, {
629
+ }>, "strip", import("zod").ZodTypeAny, {
471
630
  rating: number;
472
631
  game: {
473
632
  id: string;
@@ -479,9 +638,9 @@ export declare const createRatingSchema: import("zod").ZodObject<{
479
638
  gameNumber: number;
480
639
  } | undefined;
481
640
  };
641
+ id?: string | undefined;
482
642
  comment?: string | undefined;
483
643
  userLikes?: number | undefined;
484
- id?: string | undefined;
485
644
  }, {
486
645
  rating: number;
487
646
  game: {
@@ -494,7 +653,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
494
653
  gameNumber: number;
495
654
  } | undefined;
496
655
  };
656
+ id?: string | undefined;
497
657
  comment?: string | undefined;
498
658
  userLikes?: number | undefined;
499
- id?: string | undefined;
500
659
  }>;
@@ -7,6 +7,7 @@ export declare const teamSchema: z.ZodObject<{
7
7
  seed: z.ZodNumber;
8
8
  city: z.ZodOptional<z.ZodString>;
9
9
  conference: z.ZodOptional<z.ZodString>;
10
+ school: z.ZodOptional<z.ZodString>;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  name: string;
12
13
  image: string;
@@ -15,6 +16,7 @@ export declare const teamSchema: z.ZodObject<{
15
16
  id?: string | undefined;
16
17
  city?: string | undefined;
17
18
  conference?: string | undefined;
19
+ school?: string | undefined;
18
20
  }, {
19
21
  name: string;
20
22
  image: string;
@@ -23,6 +25,7 @@ export declare const teamSchema: z.ZodObject<{
23
25
  id?: string | undefined;
24
26
  city?: string | undefined;
25
27
  conference?: string | undefined;
28
+ school?: string | undefined;
26
29
  }>;
27
30
  export declare const divisionSchema: z.ZodUnion<[z.ZodLiteral<"east">, z.ZodLiteral<"central">, z.ZodLiteral<"west">]>;
28
31
  export declare const leagueSchema: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
@@ -10,6 +10,7 @@ exports.teamSchema = zod_1.z.object({
10
10
  seed: zod_1.z.number(),
11
11
  city: zod_1.z.string().optional(),
12
12
  conference: zod_1.z.string().optional(),
13
+ school: zod_1.z.string().optional(),
13
14
  });
14
15
  exports.divisionSchema = zod_1.z.union([
15
16
  zod_1.z.literal("east"),
@@ -226,6 +226,10 @@ export declare const userSchema: import("zod").ZodObject<{
226
226
  }>;
227
227
  askedForPushNotifications: boolean;
228
228
  acceptedPushNotifications: boolean;
229
+ platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
230
+ totalRatedGames?: number | undefined;
231
+ commentsLeft?: number | undefined;
232
+ avgRating?: number | undefined;
229
233
  leagues?: {
230
234
  nba: {
231
235
  totalRatedGames: number;
@@ -258,9 +262,6 @@ export declare const userSchema: import("zod").ZodObject<{
258
262
  avgRating: number;
259
263
  };
260
264
  } | undefined;
261
- totalRatedGames?: number | undefined;
262
- commentsLeft?: number | undefined;
263
- avgRating?: number | undefined;
264
265
  isRegistrationComplete?: boolean | undefined;
265
266
  badge?: string | undefined;
266
267
  registrationStep?: number | undefined;
@@ -274,7 +275,6 @@ export declare const userSchema: import("zod").ZodObject<{
274
275
  youtube?: string | undefined;
275
276
  tiktok?: string | undefined;
276
277
  } | undefined;
277
- platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
278
278
  selectedTeamsPerLeague?: Record<string, string[]> | undefined;
279
279
  notificationSettings?: {
280
280
  allGames?: boolean | undefined;
@@ -294,6 +294,10 @@ export declare const userSchema: import("zod").ZodObject<{
294
294
  }>;
295
295
  askedForPushNotifications: boolean;
296
296
  acceptedPushNotifications: boolean;
297
+ platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
298
+ totalRatedGames?: number | undefined;
299
+ commentsLeft?: number | undefined;
300
+ avgRating?: number | undefined;
297
301
  leagues?: {
298
302
  nba: {
299
303
  totalRatedGames: number;
@@ -326,9 +330,6 @@ export declare const userSchema: import("zod").ZodObject<{
326
330
  avgRating: number;
327
331
  };
328
332
  } | undefined;
329
- totalRatedGames?: number | undefined;
330
- commentsLeft?: number | undefined;
331
- avgRating?: number | undefined;
332
333
  isRegistrationComplete?: boolean | undefined;
333
334
  badge?: string | undefined;
334
335
  registrationStep?: number | undefined;
@@ -342,7 +343,6 @@ export declare const userSchema: import("zod").ZodObject<{
342
343
  youtube?: string | undefined;
343
344
  tiktok?: string | undefined;
344
345
  } | undefined;
345
- platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
346
346
  selectedTeamsPerLeague?: Record<string, string[]> | undefined;
347
347
  notificationSettings?: {
348
348
  allGames?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
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",
@@ -1,5 +0,0 @@
1
- import { z } from "zod";
2
- import { nbaGameSchema, quartersSchema, seriesInfoSchema } from "../../schemas/nba/game";
3
- export type NBAGame = z.infer<typeof nbaGameSchema>;
4
- export type SeriesInfo = z.infer<typeof seriesInfoSchema>;
5
- export type Quarters = z.infer<typeof quartersSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- import { nbaTeamSchema } from "../../schemas/nba/team";
3
- export type NBATeam = z.infer<typeof nbaTeamSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,233 +0,0 @@
1
- import { z } from "zod";
2
- export declare const seriesInfoSchema: z.ZodObject<{
3
- homeTeamWins: z.ZodNumber;
4
- awayTeamWins: z.ZodNumber;
5
- gameNumber: z.ZodNumber;
6
- maxLength: z.ZodNumber;
7
- }, "strip", z.ZodTypeAny, {
8
- maxLength: number;
9
- homeTeamWins: number;
10
- awayTeamWins: number;
11
- gameNumber: number;
12
- }, {
13
- maxLength: number;
14
- homeTeamWins: number;
15
- awayTeamWins: number;
16
- gameNumber: number;
17
- }>;
18
- export declare const quartersSchema: z.ZodArray<z.ZodObject<{
19
- awayScore: z.ZodNumber;
20
- homeScore: z.ZodNumber;
21
- number: z.ZodNumber;
22
- }, "strip", z.ZodTypeAny, {
23
- number: number;
24
- awayScore: number;
25
- homeScore: number;
26
- }, {
27
- number: number;
28
- awayScore: number;
29
- homeScore: number;
30
- }>, "many">;
31
- export declare const nbaGameSchema: z.ZodObject<{
32
- id: z.ZodOptional<z.ZodString>;
33
- status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
34
- isClosed: z.ZodBoolean;
35
- startedAt: z.ZodNumber;
36
- finishedAt: z.ZodNumber;
37
- ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
38
- apiGameId: z.ZodNumber;
39
- homeTeam: z.ZodObject<{
40
- id: z.ZodOptional<z.ZodString>;
41
- apiTeamId: z.ZodNumber;
42
- name: z.ZodString;
43
- city: z.ZodString;
44
- conference: z.ZodString;
45
- image: z.ZodString;
46
- }, "strip", z.ZodTypeAny, {
47
- name: string;
48
- image: string;
49
- apiTeamId: number;
50
- city: string;
51
- conference: string;
52
- id?: string | undefined;
53
- }, {
54
- name: string;
55
- image: string;
56
- apiTeamId: number;
57
- city: string;
58
- conference: string;
59
- id?: string | undefined;
60
- }>;
61
- awayTeam: z.ZodObject<{
62
- id: z.ZodOptional<z.ZodString>;
63
- apiTeamId: z.ZodNumber;
64
- name: z.ZodString;
65
- city: z.ZodString;
66
- conference: z.ZodString;
67
- image: z.ZodString;
68
- }, "strip", z.ZodTypeAny, {
69
- name: string;
70
- image: string;
71
- apiTeamId: number;
72
- city: string;
73
- conference: string;
74
- id?: string | undefined;
75
- }, {
76
- name: string;
77
- image: string;
78
- apiTeamId: number;
79
- city: string;
80
- conference: string;
81
- id?: string | undefined;
82
- }>;
83
- timeRemainingMinutes: z.ZodNumber;
84
- timeRemainingSeconds: z.ZodNumber;
85
- round: z.ZodUnion<[z.ZodLiteral<"quarters">, z.ZodLiteral<"semis">, z.ZodLiteral<"conference">, z.ZodLiteral<"finals">]>;
86
- quarters: z.ZodArray<z.ZodObject<{
87
- awayScore: z.ZodNumber;
88
- homeScore: z.ZodNumber;
89
- number: z.ZodNumber;
90
- }, "strip", z.ZodTypeAny, {
91
- number: number;
92
- awayScore: number;
93
- homeScore: number;
94
- }, {
95
- number: number;
96
- awayScore: number;
97
- homeScore: number;
98
- }>, "many">;
99
- seriesInfo: z.ZodObject<{
100
- homeTeamWins: z.ZodNumber;
101
- awayTeamWins: z.ZodNumber;
102
- gameNumber: z.ZodNumber;
103
- maxLength: z.ZodNumber;
104
- }, "strip", z.ZodTypeAny, {
105
- maxLength: number;
106
- homeTeamWins: number;
107
- awayTeamWins: number;
108
- gameNumber: number;
109
- }, {
110
- maxLength: number;
111
- homeTeamWins: number;
112
- awayTeamWins: number;
113
- gameNumber: number;
114
- }>;
115
- rating: z.ZodOptional<z.ZodObject<{
116
- avg: z.ZodNumber;
117
- votes: z.ZodObject<{
118
- options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
119
- total: z.ZodNumber;
120
- }, "strip", z.ZodTypeAny, {
121
- total: number;
122
- options: Record<number, number>;
123
- }, {
124
- total: number;
125
- options: Record<number, number>;
126
- }>;
127
- }, "strip", z.ZodTypeAny, {
128
- avg: number;
129
- votes: {
130
- total: number;
131
- options: Record<number, number>;
132
- };
133
- }, {
134
- avg: number;
135
- votes: {
136
- total: number;
137
- options: Record<number, number>;
138
- };
139
- }>>;
140
- userIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
141
- }, "strip", z.ZodTypeAny, {
142
- round: "quarters" | "conference" | "semis" | "finals";
143
- status: "live" | "scheduled" | "final";
144
- quarters: {
145
- number: number;
146
- awayScore: number;
147
- homeScore: number;
148
- }[];
149
- isClosed: boolean;
150
- startedAt: number;
151
- finishedAt: number;
152
- apiGameId: number;
153
- homeTeam: {
154
- name: string;
155
- image: string;
156
- apiTeamId: number;
157
- city: string;
158
- conference: string;
159
- id?: string | undefined;
160
- };
161
- awayTeam: {
162
- name: string;
163
- image: string;
164
- apiTeamId: number;
165
- city: string;
166
- conference: string;
167
- id?: string | undefined;
168
- };
169
- timeRemainingMinutes: number;
170
- timeRemainingSeconds: number;
171
- seriesInfo: {
172
- maxLength: number;
173
- homeTeamWins: number;
174
- awayTeamWins: number;
175
- gameNumber: number;
176
- };
177
- id?: string | undefined;
178
- ratingWindowClosedAt?: number | undefined;
179
- rating?: {
180
- avg: number;
181
- votes: {
182
- total: number;
183
- options: Record<number, number>;
184
- };
185
- } | undefined;
186
- userIds?: string[] | undefined;
187
- }, {
188
- round: "quarters" | "conference" | "semis" | "finals";
189
- status: "live" | "scheduled" | "final";
190
- quarters: {
191
- number: number;
192
- awayScore: number;
193
- homeScore: number;
194
- }[];
195
- isClosed: boolean;
196
- startedAt: number;
197
- finishedAt: number;
198
- apiGameId: number;
199
- homeTeam: {
200
- name: string;
201
- image: string;
202
- apiTeamId: number;
203
- city: string;
204
- conference: string;
205
- id?: string | undefined;
206
- };
207
- awayTeam: {
208
- name: string;
209
- image: string;
210
- apiTeamId: number;
211
- city: string;
212
- conference: string;
213
- id?: string | undefined;
214
- };
215
- timeRemainingMinutes: number;
216
- timeRemainingSeconds: number;
217
- seriesInfo: {
218
- maxLength: number;
219
- homeTeamWins: number;
220
- awayTeamWins: number;
221
- gameNumber: number;
222
- };
223
- id?: string | undefined;
224
- ratingWindowClosedAt?: number | undefined;
225
- rating?: {
226
- avg: number;
227
- votes: {
228
- total: number;
229
- options: Record<number, number>;
230
- };
231
- } | undefined;
232
- userIds?: string[] | undefined;
233
- }>;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nbaGameSchema = exports.quartersSchema = exports.seriesInfoSchema = void 0;
4
- const zod_1 = require("zod");
5
- const team_1 = require("./team");
6
- const game_1 = require("../game");
7
- exports.seriesInfoSchema = zod_1.z.object({
8
- homeTeamWins: zod_1.z.number(),
9
- awayTeamWins: zod_1.z.number(),
10
- gameNumber: zod_1.z.number(),
11
- maxLength: zod_1.z.number(),
12
- });
13
- exports.quartersSchema = zod_1.z.array(zod_1.z.object({
14
- awayScore: zod_1.z.number(),
15
- homeScore: zod_1.z.number(),
16
- number: zod_1.z.number(),
17
- }));
18
- exports.nbaGameSchema = zod_1.z.object({
19
- id: zod_1.z.string().optional(),
20
- status: zod_1.z.union([
21
- zod_1.z.literal("scheduled"),
22
- zod_1.z.literal("live"),
23
- zod_1.z.literal("final"),
24
- ]),
25
- isClosed: zod_1.z.boolean(),
26
- startedAt: zod_1.z.number(),
27
- finishedAt: zod_1.z.number(),
28
- ratingWindowClosedAt: zod_1.z.number().optional(),
29
- apiGameId: zod_1.z.number(),
30
- homeTeam: team_1.nbaTeamSchema,
31
- awayTeam: team_1.nbaTeamSchema,
32
- timeRemainingMinutes: zod_1.z.number(),
33
- timeRemainingSeconds: zod_1.z.number(),
34
- round: zod_1.z.union([
35
- zod_1.z.literal("quarters"),
36
- zod_1.z.literal("semis"),
37
- zod_1.z.literal("conference"),
38
- zod_1.z.literal("finals"),
39
- ]),
40
- quarters: exports.quartersSchema,
41
- seriesInfo: exports.seriesInfoSchema,
42
- rating: game_1.gameRatingAggregateSchema.optional(),
43
- userIds: zod_1.z.array(zod_1.z.string()).optional(),
44
- });
@@ -1,23 +0,0 @@
1
- import { z } from "zod";
2
- export declare const nbaTeamSchema: z.ZodObject<{
3
- id: z.ZodOptional<z.ZodString>;
4
- apiTeamId: z.ZodNumber;
5
- name: z.ZodString;
6
- city: z.ZodString;
7
- conference: z.ZodString;
8
- image: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- name: string;
11
- image: string;
12
- apiTeamId: number;
13
- city: string;
14
- conference: string;
15
- id?: string | undefined;
16
- }, {
17
- name: string;
18
- image: string;
19
- apiTeamId: number;
20
- city: string;
21
- conference: string;
22
- id?: string | undefined;
23
- }>;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nbaTeamSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.nbaTeamSchema = zod_1.z.object({
6
- id: zod_1.z.string().optional(),
7
- apiTeamId: zod_1.z.number(),
8
- name: zod_1.z.string(),
9
- city: zod_1.z.string(),
10
- conference: zod_1.z.string(),
11
- image: zod_1.z.string(),
12
- });