rategame-shared 1.1.21 → 1.1.23

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.
@@ -305,7 +305,7 @@ export declare const commonGameSchema: z.ZodObject<{
305
305
  finishedAt: z.ZodNumber;
306
306
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
307
307
  apiGameId: z.ZodNumber;
308
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
308
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">, z.ZodLiteral<"cfb">, z.ZodLiteral<"cbb">]>;
309
309
  homeTeam: z.ZodObject<{
310
310
  id: z.ZodOptional<z.ZodString>;
311
311
  apiTeamId: z.ZodNumber;
@@ -408,7 +408,7 @@ export declare const commonGameSchema: z.ZodObject<{
408
408
  startedAt: number;
409
409
  finishedAt: number;
410
410
  apiGameId: number;
411
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
411
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
412
412
  homeTeam: {
413
413
  name: string;
414
414
  image: string;
@@ -450,7 +450,7 @@ export declare const commonGameSchema: z.ZodObject<{
450
450
  startedAt: number;
451
451
  finishedAt: number;
452
452
  apiGameId: number;
453
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
453
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
454
454
  homeTeam: {
455
455
  name: string;
456
456
  image: string;
@@ -488,7 +488,7 @@ export declare const commonGameSchema: z.ZodObject<{
488
488
  };
489
489
  } | undefined;
490
490
  }>;
491
- export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
491
+ export declare const basketballGameSchema: z.ZodObject<{
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>;
@@ -496,7 +496,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
496
496
  finishedAt: z.ZodNumber;
497
497
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
498
498
  apiGameId: z.ZodNumber;
499
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
499
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">, z.ZodLiteral<"cfb">, z.ZodLiteral<"cbb">]>;
500
500
  homeTeam: z.ZodObject<{
501
501
  id: z.ZodOptional<z.ZodString>;
502
502
  apiTeamId: z.ZodNumber;
@@ -594,7 +594,6 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
594
594
  options: Record<number, number>;
595
595
  };
596
596
  }>>;
597
- }, {
598
597
  round: z.ZodNumber;
599
598
  timeRemainingMinutes: z.ZodNumber;
600
599
  timeRemainingSeconds: z.ZodNumber;
@@ -613,13 +612,13 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
613
612
  }>, "many">;
614
613
  periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
615
614
  periodDuration: z.ZodNumber;
616
- }>, "strip", z.ZodTypeAny, {
615
+ }, "strip", z.ZodTypeAny, {
617
616
  round: number;
618
617
  status: "live" | "scheduled" | "final";
619
618
  startedAt: number;
620
619
  finishedAt: number;
621
620
  apiGameId: number;
622
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
621
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
623
622
  homeTeam: {
624
623
  name: string;
625
624
  image: string;
@@ -671,7 +670,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
671
670
  startedAt: number;
672
671
  finishedAt: number;
673
672
  apiGameId: number;
674
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
673
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
675
674
  homeTeam: {
676
675
  name: string;
677
676
  image: string;
@@ -731,7 +730,7 @@ export declare const inningSchema: z.ZodObject<{
731
730
  homeScore: number;
732
731
  inningNumber: number;
733
732
  }>;
734
- export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
733
+ export declare const mlbGameSchema: z.ZodObject<{
735
734
  id: z.ZodOptional<z.ZodString>;
736
735
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
737
736
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -739,7 +738,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
739
738
  finishedAt: z.ZodNumber;
740
739
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
741
740
  apiGameId: z.ZodNumber;
742
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
741
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">, z.ZodLiteral<"cfb">, z.ZodLiteral<"cbb">]>;
743
742
  homeTeam: z.ZodObject<{
744
743
  id: z.ZodOptional<z.ZodString>;
745
744
  apiTeamId: z.ZodNumber;
@@ -837,7 +836,6 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
837
836
  options: Record<number, number>;
838
837
  };
839
838
  }>>;
840
- }, {
841
839
  totalInningsRemaining: z.ZodNumber;
842
840
  innings: z.ZodArray<z.ZodObject<{
843
841
  inningNumber: z.ZodNumber;
@@ -866,12 +864,12 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
866
864
  runnerOnFirst: z.ZodOptional<z.ZodBoolean>;
867
865
  runnerOnSecond: z.ZodOptional<z.ZodBoolean>;
868
866
  runnerOnThird: z.ZodOptional<z.ZodBoolean>;
869
- }>, "strip", z.ZodTypeAny, {
867
+ }, "strip", z.ZodTypeAny, {
870
868
  status: "live" | "scheduled" | "final";
871
869
  startedAt: number;
872
870
  finishedAt: number;
873
871
  apiGameId: number;
874
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
872
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
875
873
  homeTeam: {
876
874
  name: string;
877
875
  image: string;
@@ -933,7 +931,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
933
931
  startedAt: number;
934
932
  finishedAt: number;
935
933
  apiGameId: number;
936
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
934
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
937
935
  homeTeam: {
938
936
  name: string;
939
937
  image: string;
@@ -991,7 +989,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
991
989
  runnerOnSecond?: boolean | undefined;
992
990
  runnerOnThird?: boolean | undefined;
993
991
  }>;
994
- export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
992
+ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
995
993
  id: z.ZodOptional<z.ZodString>;
996
994
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
997
995
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -999,7 +997,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
999
997
  finishedAt: z.ZodNumber;
1000
998
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
1001
999
  apiGameId: z.ZodNumber;
1002
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
1000
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">, z.ZodLiteral<"cfb">, z.ZodLiteral<"cbb">]>;
1003
1001
  homeTeam: z.ZodObject<{
1004
1002
  id: z.ZodOptional<z.ZodString>;
1005
1003
  apiTeamId: z.ZodNumber;
@@ -1097,7 +1095,6 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1097
1095
  options: Record<number, number>;
1098
1096
  };
1099
1097
  }>>;
1100
- }, {
1101
1098
  round: z.ZodNumber;
1102
1099
  timeRemainingMinutes: z.ZodNumber;
1103
1100
  timeRemainingSeconds: z.ZodNumber;
@@ -1116,13 +1113,13 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1116
1113
  }>, "many">;
1117
1114
  periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
1118
1115
  periodDuration: z.ZodNumber;
1119
- }>, "strip", z.ZodTypeAny, {
1116
+ }, "strip", z.ZodTypeAny, {
1120
1117
  round: number;
1121
1118
  status: "live" | "scheduled" | "final";
1122
1119
  startedAt: number;
1123
1120
  finishedAt: number;
1124
1121
  apiGameId: number;
1125
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1122
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
1126
1123
  homeTeam: {
1127
1124
  name: string;
1128
1125
  image: string;
@@ -1174,7 +1171,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1174
1171
  startedAt: number;
1175
1172
  finishedAt: number;
1176
1173
  apiGameId: number;
1177
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1174
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
1178
1175
  homeTeam: {
1179
1176
  name: string;
1180
1177
  image: string;
@@ -1220,7 +1217,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1220
1217
  options: Record<number, number>;
1221
1218
  };
1222
1219
  } | undefined;
1223
- }>, z.ZodObject<z.objectUtil.extendShape<{
1220
+ }>, z.ZodObject<{
1224
1221
  id: z.ZodOptional<z.ZodString>;
1225
1222
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
1226
1223
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -1228,7 +1225,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1228
1225
  finishedAt: z.ZodNumber;
1229
1226
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
1230
1227
  apiGameId: z.ZodNumber;
1231
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
1228
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">, z.ZodLiteral<"cfb">, z.ZodLiteral<"cbb">]>;
1232
1229
  homeTeam: z.ZodObject<{
1233
1230
  id: z.ZodOptional<z.ZodString>;
1234
1231
  apiTeamId: z.ZodNumber;
@@ -1326,7 +1323,6 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1326
1323
  options: Record<number, number>;
1327
1324
  };
1328
1325
  }>>;
1329
- }, {
1330
1326
  totalInningsRemaining: z.ZodNumber;
1331
1327
  innings: z.ZodArray<z.ZodObject<{
1332
1328
  inningNumber: z.ZodNumber;
@@ -1355,12 +1351,12 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1355
1351
  runnerOnFirst: z.ZodOptional<z.ZodBoolean>;
1356
1352
  runnerOnSecond: z.ZodOptional<z.ZodBoolean>;
1357
1353
  runnerOnThird: z.ZodOptional<z.ZodBoolean>;
1358
- }>, "strip", z.ZodTypeAny, {
1354
+ }, "strip", z.ZodTypeAny, {
1359
1355
  status: "live" | "scheduled" | "final";
1360
1356
  startedAt: number;
1361
1357
  finishedAt: number;
1362
1358
  apiGameId: number;
1363
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1359
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
1364
1360
  homeTeam: {
1365
1361
  name: string;
1366
1362
  image: string;
@@ -1422,7 +1418,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1422
1418
  startedAt: number;
1423
1419
  finishedAt: number;
1424
1420
  apiGameId: number;
1425
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1421
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
1426
1422
  homeTeam: {
1427
1423
  name: string;
1428
1424
  image: string;
@@ -1491,20 +1487,20 @@ export declare const searchGameSchema: z.ZodObject<{
1491
1487
  offset: z.ZodOptional<z.ZodString>;
1492
1488
  }, "strip", z.ZodTypeAny, {
1493
1489
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1494
- offset?: string | undefined;
1495
- round?: string | undefined;
1496
1490
  q?: string | undefined;
1497
- createdAt?: "12h" | "daily" | "weekly" | undefined;
1498
1491
  teamId?: string | undefined;
1492
+ round?: string | undefined;
1493
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
1499
1494
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
1500
1495
  limit?: string | undefined;
1496
+ offset?: string | undefined;
1501
1497
  }, {
1502
1498
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1503
- offset?: string | undefined;
1504
- round?: string | undefined;
1505
1499
  q?: string | undefined;
1506
- createdAt?: "12h" | "daily" | "weekly" | undefined;
1507
1500
  teamId?: string | undefined;
1501
+ round?: string | undefined;
1502
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
1508
1503
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
1509
1504
  limit?: string | undefined;
1505
+ offset?: string | undefined;
1510
1506
  }>;
@@ -79,6 +79,8 @@ exports.commonGameSchema = zod_1.z.object({
79
79
  zod_1.z.literal("nfl"),
80
80
  zod_1.z.literal("nhl"),
81
81
  zod_1.z.literal("mls"),
82
+ zod_1.z.literal("cfb"),
83
+ zod_1.z.literal("cbb"),
82
84
  ]),
83
85
  homeTeam: exports.gameTeamSchema,
84
86
  awayTeam: exports.gameTeamSchema,
@@ -253,7 +253,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
253
253
  q: import("zod").ZodOptional<import("zod").ZodString>;
254
254
  teamId: import("zod").ZodOptional<import("zod").ZodString>;
255
255
  round: import("zod").ZodOptional<import("zod").ZodString>;
256
- 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">]>;
256
+ 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">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"cbb">]>;
257
257
  createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
258
258
  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">]>>;
259
259
  limit: import("zod").ZodOptional<import("zod").ZodString>;
@@ -267,35 +267,35 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
267
267
  mlbTeamLeague: import("zod").ZodOptional<import("zod").ZodString>;
268
268
  division: import("zod").ZodOptional<import("zod").ZodString>;
269
269
  }, "strip", import("zod").ZodTypeAny, {
270
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
271
- offset?: string | undefined;
272
- round?: string | undefined;
270
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
273
271
  q?: string | undefined;
274
- username?: string | undefined;
275
- createdAt?: "12h" | "daily" | "weekly" | undefined;
276
272
  teamId?: string | undefined;
273
+ round?: string | undefined;
274
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
277
275
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
278
276
  limit?: string | undefined;
279
- comment?: string | undefined;
277
+ offset?: string | undefined;
280
278
  gameId?: string | undefined;
281
279
  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
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
288
- offset?: string | undefined;
289
- round?: string | undefined;
287
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
290
288
  q?: string | undefined;
291
- username?: string | undefined;
292
- createdAt?: "12h" | "daily" | "weekly" | undefined;
293
289
  teamId?: string | undefined;
290
+ round?: string | undefined;
291
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
294
292
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
295
293
  limit?: string | undefined;
296
- comment?: string | undefined;
294
+ offset?: string | undefined;
297
295
  gameId?: string | undefined;
298
296
  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,169 +367,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
367
367
  };
368
368
  agree: boolean;
369
369
  }>;
370
- export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
371
- id: import("zod").ZodString;
372
- createdAt: import("zod").ZodNumber;
370
+ export declare const createRatingSchema: import("zod").ZodObject<{
373
371
  rating: import("zod").ZodNumber;
374
372
  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
- }>;
531
373
  userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
532
- }, "id" | "user" | "createdAt">, {
533
374
  game: import("zod").ZodObject<Omit<{
534
375
  id: import("zod").ZodString;
535
376
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -626,7 +467,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
626
467
  } | undefined;
627
468
  }>;
628
469
  id: import("zod").ZodOptional<import("zod").ZodString>;
629
- }>, "strip", import("zod").ZodTypeAny, {
470
+ }, "strip", import("zod").ZodTypeAny, {
630
471
  rating: number;
631
472
  game: {
632
473
  id: string;
@@ -638,9 +479,9 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
638
479
  gameNumber: number;
639
480
  } | undefined;
640
481
  };
641
- id?: string | undefined;
642
482
  comment?: string | undefined;
643
483
  userLikes?: number | undefined;
484
+ id?: string | undefined;
644
485
  }, {
645
486
  rating: number;
646
487
  game: {
@@ -653,7 +494,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
653
494
  gameNumber: number;
654
495
  } | undefined;
655
496
  };
656
- id?: string | undefined;
657
497
  comment?: string | undefined;
658
498
  userLikes?: number | undefined;
499
+ id?: string | undefined;
659
500
  }>;
@@ -43,6 +43,8 @@ exports.searchRatingSchema = (0, zod_1.object)({
43
43
  (0, zod_1.literal)("nfl"),
44
44
  (0, zod_1.literal)("nhl"),
45
45
  (0, zod_1.literal)("mls"),
46
+ (0, zod_1.literal)("cfb"),
47
+ (0, zod_1.literal)("cbb"),
46
48
  ]),
47
49
  createdAt: (0, zod_1.union)([
48
50
  (0, zod_1.literal)("12h"),
@@ -8,14 +8,12 @@ export declare const teamSchema: z.ZodObject<{
8
8
  city: z.ZodOptional<z.ZodString>;
9
9
  conference: z.ZodOptional<z.ZodString>;
10
10
  school: z.ZodOptional<z.ZodString>;
11
- teamCode: z.ZodOptional<z.ZodString>;
12
11
  }, "strip", z.ZodTypeAny, {
13
12
  name: string;
14
13
  image: string;
15
14
  apiTeamId: number;
16
15
  seed: number;
17
16
  id?: string | undefined;
18
- teamCode?: string | undefined;
19
17
  city?: string | undefined;
20
18
  conference?: string | undefined;
21
19
  school?: string | undefined;
@@ -25,7 +23,6 @@ export declare const teamSchema: z.ZodObject<{
25
23
  apiTeamId: number;
26
24
  seed: number;
27
25
  id?: string | undefined;
28
- teamCode?: string | undefined;
29
26
  city?: string | undefined;
30
27
  conference?: string | undefined;
31
28
  school?: string | undefined;
@@ -40,6 +37,7 @@ export declare const mlbTeamSchema: z.ZodObject<{
40
37
  city: z.ZodOptional<z.ZodString>;
41
38
  division: z.ZodUnion<[z.ZodLiteral<"east">, z.ZodLiteral<"central">, z.ZodLiteral<"west">]>;
42
39
  league: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
40
+ teamCode: z.ZodOptional<z.ZodString>;
43
41
  }, "strip", z.ZodTypeAny, {
44
42
  name: string;
45
43
  image: string;
@@ -48,6 +46,7 @@ export declare const mlbTeamSchema: z.ZodObject<{
48
46
  division: "east" | "central" | "west";
49
47
  id?: string | undefined;
50
48
  city?: string | undefined;
49
+ teamCode?: string | undefined;
51
50
  }, {
52
51
  name: string;
53
52
  image: string;
@@ -56,4 +55,5 @@ export declare const mlbTeamSchema: z.ZodObject<{
56
55
  division: "east" | "central" | "west";
57
56
  id?: string | undefined;
58
57
  city?: string | undefined;
58
+ teamCode?: string | undefined;
59
59
  }>;
@@ -11,7 +11,6 @@ exports.teamSchema = zod_1.z.object({
11
11
  city: zod_1.z.string().optional(),
12
12
  conference: zod_1.z.string().optional(),
13
13
  school: zod_1.z.string().optional(),
14
- teamCode: zod_1.z.string().optional(),
15
14
  });
16
15
  exports.divisionSchema = zod_1.z.union([
17
16
  zod_1.z.literal("east"),
@@ -30,4 +29,5 @@ exports.mlbTeamSchema = zod_1.z.object({
30
29
  city: zod_1.z.string().optional(),
31
30
  division: exports.divisionSchema,
32
31
  league: exports.leagueSchema,
32
+ teamCode: zod_1.z.string().optional(),
33
33
  });
@@ -97,6 +97,32 @@ export declare const userSchema: import("zod").ZodObject<{
97
97
  commentsLeft: number;
98
98
  avgRating: number;
99
99
  }>;
100
+ cfb: import("zod").ZodObject<{
101
+ totalRatedGames: import("zod").ZodNumber;
102
+ commentsLeft: import("zod").ZodNumber;
103
+ avgRating: import("zod").ZodNumber;
104
+ }, "strip", import("zod").ZodTypeAny, {
105
+ totalRatedGames: number;
106
+ commentsLeft: number;
107
+ avgRating: number;
108
+ }, {
109
+ totalRatedGames: number;
110
+ commentsLeft: number;
111
+ avgRating: number;
112
+ }>;
113
+ cbb: import("zod").ZodObject<{
114
+ totalRatedGames: import("zod").ZodNumber;
115
+ commentsLeft: import("zod").ZodNumber;
116
+ avgRating: import("zod").ZodNumber;
117
+ }, "strip", import("zod").ZodTypeAny, {
118
+ totalRatedGames: number;
119
+ commentsLeft: number;
120
+ avgRating: number;
121
+ }, {
122
+ totalRatedGames: number;
123
+ commentsLeft: number;
124
+ avgRating: number;
125
+ }>;
100
126
  }, "strip", import("zod").ZodTypeAny, {
101
127
  nba: {
102
128
  totalRatedGames: number;
@@ -128,6 +154,16 @@ export declare const userSchema: import("zod").ZodObject<{
128
154
  commentsLeft: number;
129
155
  avgRating: number;
130
156
  };
157
+ cfb: {
158
+ totalRatedGames: number;
159
+ commentsLeft: number;
160
+ avgRating: number;
161
+ };
162
+ cbb: {
163
+ totalRatedGames: number;
164
+ commentsLeft: number;
165
+ avgRating: number;
166
+ };
131
167
  }, {
132
168
  nba: {
133
169
  totalRatedGames: number;
@@ -159,6 +195,16 @@ export declare const userSchema: import("zod").ZodObject<{
159
195
  commentsLeft: number;
160
196
  avgRating: number;
161
197
  };
198
+ cfb: {
199
+ totalRatedGames: number;
200
+ commentsLeft: number;
201
+ avgRating: number;
202
+ };
203
+ cbb: {
204
+ totalRatedGames: number;
205
+ commentsLeft: number;
206
+ avgRating: number;
207
+ };
162
208
  }>>;
163
209
  totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
164
210
  commentsLeft: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -226,10 +272,6 @@ export declare const userSchema: import("zod").ZodObject<{
226
272
  }>;
227
273
  askedForPushNotifications: boolean;
228
274
  acceptedPushNotifications: boolean;
229
- platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
230
- totalRatedGames?: number | undefined;
231
- commentsLeft?: number | undefined;
232
- avgRating?: number | undefined;
233
275
  leagues?: {
234
276
  nba: {
235
277
  totalRatedGames: number;
@@ -261,7 +303,20 @@ export declare const userSchema: import("zod").ZodObject<{
261
303
  commentsLeft: number;
262
304
  avgRating: number;
263
305
  };
306
+ cfb: {
307
+ totalRatedGames: number;
308
+ commentsLeft: number;
309
+ avgRating: number;
310
+ };
311
+ cbb: {
312
+ totalRatedGames: number;
313
+ commentsLeft: number;
314
+ avgRating: number;
315
+ };
264
316
  } | undefined;
317
+ totalRatedGames?: number | undefined;
318
+ commentsLeft?: number | undefined;
319
+ avgRating?: number | undefined;
265
320
  isRegistrationComplete?: boolean | undefined;
266
321
  badge?: string | undefined;
267
322
  registrationStep?: number | undefined;
@@ -275,6 +330,7 @@ export declare const userSchema: import("zod").ZodObject<{
275
330
  youtube?: string | undefined;
276
331
  tiktok?: string | undefined;
277
332
  } | undefined;
333
+ platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
278
334
  selectedTeamsPerLeague?: Record<string, string[]> | undefined;
279
335
  notificationSettings?: {
280
336
  allGames?: boolean | undefined;
@@ -294,10 +350,6 @@ export declare const userSchema: import("zod").ZodObject<{
294
350
  }>;
295
351
  askedForPushNotifications: boolean;
296
352
  acceptedPushNotifications: boolean;
297
- platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
298
- totalRatedGames?: number | undefined;
299
- commentsLeft?: number | undefined;
300
- avgRating?: number | undefined;
301
353
  leagues?: {
302
354
  nba: {
303
355
  totalRatedGames: number;
@@ -329,7 +381,20 @@ export declare const userSchema: import("zod").ZodObject<{
329
381
  commentsLeft: number;
330
382
  avgRating: number;
331
383
  };
384
+ cfb: {
385
+ totalRatedGames: number;
386
+ commentsLeft: number;
387
+ avgRating: number;
388
+ };
389
+ cbb: {
390
+ totalRatedGames: number;
391
+ commentsLeft: number;
392
+ avgRating: number;
393
+ };
332
394
  } | undefined;
395
+ totalRatedGames?: number | undefined;
396
+ commentsLeft?: number | undefined;
397
+ avgRating?: number | undefined;
333
398
  isRegistrationComplete?: boolean | undefined;
334
399
  badge?: string | undefined;
335
400
  registrationStep?: number | undefined;
@@ -343,6 +408,7 @@ export declare const userSchema: import("zod").ZodObject<{
343
408
  youtube?: string | undefined;
344
409
  tiktok?: string | undefined;
345
410
  } | undefined;
411
+ platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
346
412
  selectedTeamsPerLeague?: Record<string, string[]> | undefined;
347
413
  notificationSettings?: {
348
414
  allGames?: boolean | undefined;
@@ -436,6 +502,32 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
436
502
  commentsLeft: number;
437
503
  avgRating: number;
438
504
  }>;
505
+ cfb: import("zod").ZodObject<{
506
+ totalRatedGames: import("zod").ZodNumber;
507
+ commentsLeft: import("zod").ZodNumber;
508
+ avgRating: import("zod").ZodNumber;
509
+ }, "strip", import("zod").ZodTypeAny, {
510
+ totalRatedGames: number;
511
+ commentsLeft: number;
512
+ avgRating: number;
513
+ }, {
514
+ totalRatedGames: number;
515
+ commentsLeft: number;
516
+ avgRating: number;
517
+ }>;
518
+ cbb: import("zod").ZodObject<{
519
+ totalRatedGames: import("zod").ZodNumber;
520
+ commentsLeft: import("zod").ZodNumber;
521
+ avgRating: import("zod").ZodNumber;
522
+ }, "strip", import("zod").ZodTypeAny, {
523
+ totalRatedGames: number;
524
+ commentsLeft: number;
525
+ avgRating: number;
526
+ }, {
527
+ totalRatedGames: number;
528
+ commentsLeft: number;
529
+ avgRating: number;
530
+ }>;
439
531
  }, "strip", import("zod").ZodTypeAny, {
440
532
  nba: {
441
533
  totalRatedGames: number;
@@ -467,6 +559,16 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
467
559
  commentsLeft: number;
468
560
  avgRating: number;
469
561
  };
562
+ cfb: {
563
+ totalRatedGames: number;
564
+ commentsLeft: number;
565
+ avgRating: number;
566
+ };
567
+ cbb: {
568
+ totalRatedGames: number;
569
+ commentsLeft: number;
570
+ avgRating: number;
571
+ };
470
572
  }, {
471
573
  nba: {
472
574
  totalRatedGames: number;
@@ -498,6 +600,16 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
498
600
  commentsLeft: number;
499
601
  avgRating: number;
500
602
  };
603
+ cfb: {
604
+ totalRatedGames: number;
605
+ commentsLeft: number;
606
+ avgRating: number;
607
+ };
608
+ cbb: {
609
+ totalRatedGames: number;
610
+ commentsLeft: number;
611
+ avgRating: number;
612
+ };
501
613
  }>>;
502
614
  totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
503
615
  commentsLeft: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -589,6 +701,16 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
589
701
  commentsLeft: number;
590
702
  avgRating: number;
591
703
  };
704
+ cfb: {
705
+ totalRatedGames: number;
706
+ commentsLeft: number;
707
+ avgRating: number;
708
+ };
709
+ cbb: {
710
+ totalRatedGames: number;
711
+ commentsLeft: number;
712
+ avgRating: number;
713
+ };
592
714
  } | undefined;
593
715
  isRegistrationComplete?: boolean | undefined;
594
716
  badge?: string | undefined;
@@ -646,6 +768,16 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
646
768
  commentsLeft: number;
647
769
  avgRating: number;
648
770
  };
771
+ cfb: {
772
+ totalRatedGames: number;
773
+ commentsLeft: number;
774
+ avgRating: number;
775
+ };
776
+ cbb: {
777
+ totalRatedGames: number;
778
+ commentsLeft: number;
779
+ avgRating: number;
780
+ };
649
781
  } | undefined;
650
782
  isRegistrationComplete?: boolean | undefined;
651
783
  badge?: string | undefined;
@@ -21,6 +21,8 @@ exports.userSchema = (0, zod_1.object)({
21
21
  nfl: exports.leagueStatsSchema,
22
22
  nhl: exports.leagueStatsSchema,
23
23
  mls: exports.leagueStatsSchema,
24
+ cfb: exports.leagueStatsSchema,
25
+ cbb: exports.leagueStatsSchema,
24
26
  }).optional(),
25
27
  totalRatedGames: (0, zod_1.number)().optional(),
26
28
  commentsLeft: (0, zod_1.number)().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
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",