rategame-shared 1.1.79 → 1.1.80

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.
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ export declare const leagueSlug: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
2
3
  export declare const gameTeamSchema: z.ZodObject<{
3
4
  id: z.ZodOptional<z.ZodString>;
4
5
  apiTeamId: z.ZodNumber;
@@ -196,7 +197,7 @@ export declare const gameSchema: z.ZodObject<{
196
197
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
197
198
  round: z.ZodNumber;
198
199
  apiGameId: z.ZodNumber;
199
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
200
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
200
201
  homeTeam: z.ZodObject<{
201
202
  id: z.ZodOptional<z.ZodString>;
202
203
  apiTeamId: z.ZodNumber;
@@ -526,7 +527,7 @@ export declare const gameSchema: z.ZodObject<{
526
527
  startedAt: number;
527
528
  finishedAt: number;
528
529
  apiGameId: number;
529
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
530
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
530
531
  homeTeam: {
531
532
  name: string;
532
533
  image: string;
@@ -613,7 +614,7 @@ export declare const gameSchema: z.ZodObject<{
613
614
  startedAt: number;
614
615
  finishedAt: number;
615
616
  apiGameId: number;
616
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
617
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
617
618
  homeTeam: {
618
619
  name: string;
619
620
  image: string;
@@ -703,7 +704,7 @@ export declare const commonGameSchema: z.ZodObject<{
703
704
  finishedAt: z.ZodNumber;
704
705
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
705
706
  apiGameId: z.ZodNumber;
706
- 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">, z.ZodLiteral<"epl">]>;
707
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
707
708
  homeTeam: z.ZodObject<{
708
709
  id: z.ZodOptional<z.ZodString>;
709
710
  apiTeamId: z.ZodNumber;
@@ -1016,7 +1017,7 @@ export declare const commonGameSchema: z.ZodObject<{
1016
1017
  startedAt: number;
1017
1018
  finishedAt: number;
1018
1019
  apiGameId: number;
1019
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
1020
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
1020
1021
  homeTeam: {
1021
1022
  name: string;
1022
1023
  image: string;
@@ -1094,7 +1095,7 @@ export declare const commonGameSchema: z.ZodObject<{
1094
1095
  startedAt: number;
1095
1096
  finishedAt: number;
1096
1097
  apiGameId: number;
1097
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
1098
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
1098
1099
  homeTeam: {
1099
1100
  name: string;
1100
1101
  image: string;
@@ -1176,7 +1177,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
1176
1177
  finishedAt: z.ZodNumber;
1177
1178
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
1178
1179
  apiGameId: z.ZodNumber;
1179
- 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">, z.ZodLiteral<"epl">]>;
1180
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
1180
1181
  homeTeam: z.ZodObject<{
1181
1182
  id: z.ZodOptional<z.ZodString>;
1182
1183
  apiTeamId: z.ZodNumber;
@@ -1509,7 +1510,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
1509
1510
  startedAt: number;
1510
1511
  finishedAt: number;
1511
1512
  apiGameId: number;
1512
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
1513
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
1513
1514
  homeTeam: {
1514
1515
  name: string;
1515
1516
  image: string;
@@ -1597,7 +1598,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
1597
1598
  startedAt: number;
1598
1599
  finishedAt: number;
1599
1600
  apiGameId: number;
1600
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
1601
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
1601
1602
  homeTeam: {
1602
1603
  name: string;
1603
1604
  image: string;
@@ -1701,7 +1702,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
1701
1702
  finishedAt: z.ZodNumber;
1702
1703
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
1703
1704
  apiGameId: z.ZodNumber;
1704
- 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">, z.ZodLiteral<"epl">]>;
1705
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
1705
1706
  homeTeam: z.ZodObject<{
1706
1707
  id: z.ZodOptional<z.ZodString>;
1707
1708
  apiTeamId: z.ZodNumber;
@@ -2043,7 +2044,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
2043
2044
  startedAt: number;
2044
2045
  finishedAt: number;
2045
2046
  apiGameId: number;
2046
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
2047
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
2047
2048
  homeTeam: {
2048
2049
  name: string;
2049
2050
  image: string;
@@ -2141,7 +2142,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
2141
2142
  startedAt: number;
2142
2143
  finishedAt: number;
2143
2144
  apiGameId: number;
2144
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
2145
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
2145
2146
  homeTeam: {
2146
2147
  name: string;
2147
2148
  image: string;
@@ -2243,7 +2244,7 @@ export declare const eplGameSchema: z.ZodObject<z.objectUtil.extendShape<{
2243
2244
  finishedAt: z.ZodNumber;
2244
2245
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
2245
2246
  apiGameId: z.ZodNumber;
2246
- 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">, z.ZodLiteral<"epl">]>;
2247
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
2247
2248
  homeTeam: z.ZodObject<{
2248
2249
  id: z.ZodOptional<z.ZodString>;
2249
2250
  apiTeamId: z.ZodNumber;
@@ -2857,7 +2858,7 @@ export declare const nflGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
2857
2858
  finishedAt: z.ZodNumber;
2858
2859
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
2859
2860
  apiGameId: z.ZodNumber;
2860
- 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">, z.ZodLiteral<"epl">]>;
2861
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
2861
2862
  homeTeam: z.ZodObject<{
2862
2863
  id: z.ZodOptional<z.ZodString>;
2863
2864
  apiTeamId: z.ZodNumber;
@@ -3230,7 +3231,7 @@ export declare const nflGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
3230
3231
  startedAt: number;
3231
3232
  finishedAt: number;
3232
3233
  apiGameId: string;
3233
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
3234
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
3234
3235
  homeTeam: {
3235
3236
  name: string;
3236
3237
  image: string;
@@ -3341,7 +3342,7 @@ export declare const nflGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
3341
3342
  startedAt: number;
3342
3343
  finishedAt: number;
3343
3344
  apiGameId: string;
3344
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
3345
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
3345
3346
  homeTeam: {
3346
3347
  name: string;
3347
3348
  image: string;
@@ -3455,7 +3456,7 @@ export declare const cfbGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
3455
3456
  finishedAt: z.ZodNumber;
3456
3457
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
3457
3458
  apiGameId: z.ZodNumber;
3458
- 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">, z.ZodLiteral<"epl">]>;
3459
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
3459
3460
  homeTeam: z.ZodObject<{
3460
3461
  id: z.ZodOptional<z.ZodString>;
3461
3462
  apiTeamId: z.ZodNumber;
@@ -3824,7 +3825,7 @@ export declare const cfbGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
3824
3825
  startedAt: number;
3825
3826
  finishedAt: number;
3826
3827
  apiGameId: number;
3827
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
3828
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
3828
3829
  homeTeam: {
3829
3830
  name: string;
3830
3831
  image: string;
@@ -3928,7 +3929,7 @@ export declare const cfbGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
3928
3929
  startedAt: number;
3929
3930
  finishedAt: number;
3930
3931
  apiGameId: number;
3931
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
3932
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
3932
3933
  homeTeam: {
3933
3934
  name: string;
3934
3935
  image: string;
@@ -4035,7 +4036,7 @@ export declare const nhlGameSchema: z.ZodObject<z.objectUtil.extendShape<{
4035
4036
  finishedAt: z.ZodNumber;
4036
4037
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
4037
4038
  apiGameId: z.ZodNumber;
4038
- 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">, z.ZodLiteral<"epl">]>;
4039
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
4039
4040
  homeTeam: z.ZodObject<{
4040
4041
  id: z.ZodOptional<z.ZodString>;
4041
4042
  apiTeamId: z.ZodNumber;
@@ -4356,7 +4357,7 @@ export declare const nhlGameSchema: z.ZodObject<z.objectUtil.extendShape<{
4356
4357
  startedAt: number;
4357
4358
  finishedAt: number;
4358
4359
  apiGameId: number;
4359
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
4360
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
4360
4361
  homeTeam: {
4361
4362
  name: string;
4362
4363
  image: string;
@@ -4440,7 +4441,7 @@ export declare const nhlGameSchema: z.ZodObject<z.objectUtil.extendShape<{
4440
4441
  startedAt: number;
4441
4442
  finishedAt: number;
4442
4443
  apiGameId: number;
4443
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
4444
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
4444
4445
  homeTeam: {
4445
4446
  name: string;
4446
4447
  image: string;
@@ -4528,7 +4529,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
4528
4529
  finishedAt: z.ZodNumber;
4529
4530
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
4530
4531
  apiGameId: z.ZodNumber;
4531
- 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">, z.ZodLiteral<"epl">]>;
4532
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
4532
4533
  homeTeam: z.ZodObject<{
4533
4534
  id: z.ZodOptional<z.ZodString>;
4534
4535
  apiTeamId: z.ZodNumber;
@@ -4861,7 +4862,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
4861
4862
  startedAt: number;
4862
4863
  finishedAt: number;
4863
4864
  apiGameId: number;
4864
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
4865
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
4865
4866
  homeTeam: {
4866
4867
  name: string;
4867
4868
  image: string;
@@ -4949,7 +4950,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
4949
4950
  startedAt: number;
4950
4951
  finishedAt: number;
4951
4952
  apiGameId: number;
4952
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
4953
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
4953
4954
  homeTeam: {
4954
4955
  name: string;
4955
4956
  image: string;
@@ -5039,7 +5040,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
5039
5040
  finishedAt: z.ZodNumber;
5040
5041
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
5041
5042
  apiGameId: z.ZodNumber;
5042
- 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">, z.ZodLiteral<"epl">]>;
5043
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
5043
5044
  homeTeam: z.ZodObject<{
5044
5045
  id: z.ZodOptional<z.ZodString>;
5045
5046
  apiTeamId: z.ZodNumber;
@@ -5381,7 +5382,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
5381
5382
  startedAt: number;
5382
5383
  finishedAt: number;
5383
5384
  apiGameId: number;
5384
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
5385
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
5385
5386
  homeTeam: {
5386
5387
  name: string;
5387
5388
  image: string;
@@ -5479,7 +5480,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
5479
5480
  startedAt: number;
5480
5481
  finishedAt: number;
5481
5482
  apiGameId: number;
5482
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
5483
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
5483
5484
  homeTeam: {
5484
5485
  name: string;
5485
5486
  image: string;
@@ -5580,7 +5581,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
5580
5581
  finishedAt: z.ZodNumber;
5581
5582
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
5582
5583
  apiGameId: z.ZodNumber;
5583
- 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">, z.ZodLiteral<"epl">]>;
5584
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
5584
5585
  homeTeam: z.ZodObject<{
5585
5586
  id: z.ZodOptional<z.ZodString>;
5586
5587
  apiTeamId: z.ZodNumber;
@@ -6193,7 +6194,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
6193
6194
  finishedAt: z.ZodNumber;
6194
6195
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
6195
6196
  apiGameId: z.ZodNumber;
6196
- 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">, z.ZodLiteral<"epl">]>;
6197
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
6197
6198
  homeTeam: z.ZodObject<{
6198
6199
  id: z.ZodOptional<z.ZodString>;
6199
6200
  apiTeamId: z.ZodNumber;
@@ -6566,7 +6567,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
6566
6567
  startedAt: number;
6567
6568
  finishedAt: number;
6568
6569
  apiGameId: string;
6569
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
6570
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
6570
6571
  homeTeam: {
6571
6572
  name: string;
6572
6573
  image: string;
@@ -6677,7 +6678,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
6677
6678
  startedAt: number;
6678
6679
  finishedAt: number;
6679
6680
  apiGameId: string;
6680
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
6681
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
6681
6682
  homeTeam: {
6682
6683
  name: string;
6683
6684
  image: string;
@@ -6790,7 +6791,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
6790
6791
  finishedAt: z.ZodNumber;
6791
6792
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
6792
6793
  apiGameId: z.ZodNumber;
6793
- 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">, z.ZodLiteral<"epl">]>;
6794
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
6794
6795
  homeTeam: z.ZodObject<{
6795
6796
  id: z.ZodOptional<z.ZodString>;
6796
6797
  apiTeamId: z.ZodNumber;
@@ -7159,7 +7160,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
7159
7160
  startedAt: number;
7160
7161
  finishedAt: number;
7161
7162
  apiGameId: number;
7162
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7163
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7163
7164
  homeTeam: {
7164
7165
  name: string;
7165
7166
  image: string;
@@ -7263,7 +7264,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
7263
7264
  startedAt: number;
7264
7265
  finishedAt: number;
7265
7266
  apiGameId: number;
7266
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7267
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7267
7268
  homeTeam: {
7268
7269
  name: string;
7269
7270
  image: string;
@@ -7369,7 +7370,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
7369
7370
  finishedAt: z.ZodNumber;
7370
7371
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
7371
7372
  apiGameId: z.ZodNumber;
7372
- 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">, z.ZodLiteral<"epl">]>;
7373
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
7373
7374
  homeTeam: z.ZodObject<{
7374
7375
  id: z.ZodOptional<z.ZodString>;
7375
7376
  apiTeamId: z.ZodNumber;
@@ -7690,7 +7691,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
7690
7691
  startedAt: number;
7691
7692
  finishedAt: number;
7692
7693
  apiGameId: number;
7693
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7694
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7694
7695
  homeTeam: {
7695
7696
  name: string;
7696
7697
  image: string;
@@ -7774,7 +7775,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
7774
7775
  startedAt: number;
7775
7776
  finishedAt: number;
7776
7777
  apiGameId: number;
7777
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7778
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7778
7779
  homeTeam: {
7779
7780
  name: string;
7780
7781
  image: string;
@@ -7858,13 +7859,13 @@ export declare const searchGameSchema: z.ZodObject<{
7858
7859
  q: z.ZodOptional<z.ZodString>;
7859
7860
  teamId: z.ZodOptional<z.ZodString>;
7860
7861
  round: z.ZodOptional<z.ZodString>;
7861
- 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">, z.ZodLiteral<"epl">]>;
7862
+ league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
7862
7863
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Today">, z.ZodLiteral<"This Week">, z.ZodLiteral<"All">, z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
7863
7864
  sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating.avg:asc">, z.ZodLiteral<"rating.avg:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">, z.ZodLiteral<"ratings.weightedRating.avg:asc">, z.ZodLiteral<"ratings.weightedRating.avg:desc">]>>;
7864
7865
  limit: z.ZodOptional<z.ZodString>;
7865
7866
  offset: z.ZodOptional<z.ZodString>;
7866
7867
  }, "strip", z.ZodTypeAny, {
7867
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7868
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7868
7869
  offset?: string | undefined;
7869
7870
  round?: string | undefined;
7870
7871
  q?: string | undefined;
@@ -7873,7 +7874,7 @@ export declare const searchGameSchema: z.ZodObject<{
7873
7874
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | "ratings.weightedRating.avg:asc" | "ratings.weightedRating.avg:desc" | undefined;
7874
7875
  limit?: string | undefined;
7875
7876
  }, {
7876
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7877
+ league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
7877
7878
  offset?: string | undefined;
7878
7879
  round?: string | undefined;
7879
7880
  q?: string | undefined;
@@ -1,7 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchGameSchema = exports.unionGameSchema = exports.nhlGameSchema = exports.cfbGameSchema = exports.nflGameSchema = exports.eplGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.basketballGameSchema = exports.commonGameSchema = exports.gameSchema = exports.seriesInfoSchema = exports.weightedRatingAggregateSchema = exports.weightedRatingAggregateOptionsSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema = void 0;
3
+ exports.searchGameSchema = exports.unionGameSchema = exports.nhlGameSchema = exports.cfbGameSchema = exports.nflGameSchema = exports.eplGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.basketballGameSchema = exports.commonGameSchema = exports.gameSchema = exports.seriesInfoSchema = exports.weightedRatingAggregateSchema = exports.weightedRatingAggregateOptionsSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema = exports.leagueSlug = void 0;
4
4
  const zod_1 = require("zod");
5
+ exports.leagueSlug = zod_1.z.union([
6
+ zod_1.z.literal("nba"),
7
+ zod_1.z.literal("ncaa"),
8
+ zod_1.z.literal("nfl"),
9
+ zod_1.z.literal("nhl"),
10
+ zod_1.z.literal("mlb"),
11
+ zod_1.z.literal("mls"),
12
+ zod_1.z.literal("cbb"),
13
+ zod_1.z.literal("cfb"),
14
+ zod_1.z.literal("epl"),
15
+ zod_1.z.literal("global"),
16
+ ]);
5
17
  exports.gameTeamSchema = zod_1.z.object({
6
18
  id: zod_1.z.string().optional(),
7
19
  apiTeamId: zod_1.z.number(),
@@ -56,14 +68,7 @@ exports.gameSchema = zod_1.z.object({
56
68
  ratingWindowClosedAt: zod_1.z.number().optional(),
57
69
  round: zod_1.z.number(),
58
70
  apiGameId: zod_1.z.number(),
59
- league: zod_1.z.union([
60
- zod_1.z.literal("ncaa"),
61
- zod_1.z.literal("nba"),
62
- zod_1.z.literal("mlb"),
63
- zod_1.z.literal("nfl"),
64
- zod_1.z.literal("nhl"),
65
- zod_1.z.literal("mls"),
66
- ]),
71
+ league: exports.leagueSlug,
67
72
  homeTeam: exports.gameTeamSchema,
68
73
  awayTeam: exports.gameTeamSchema,
69
74
  timeRemainingMinutes: zod_1.z.number(),
@@ -97,17 +102,7 @@ exports.commonGameSchema = zod_1.z.object({
97
102
  finishedAt: zod_1.z.number(),
98
103
  ratingWindowClosedAt: zod_1.z.number().optional(),
99
104
  apiGameId: zod_1.z.number(),
100
- league: zod_1.z.union([
101
- zod_1.z.literal("ncaa"),
102
- zod_1.z.literal("nba"),
103
- zod_1.z.literal("mlb"),
104
- zod_1.z.literal("nfl"),
105
- zod_1.z.literal("nhl"),
106
- zod_1.z.literal("mls"),
107
- zod_1.z.literal("cfb"),
108
- zod_1.z.literal("cbb"),
109
- zod_1.z.literal("epl"),
110
- ]),
105
+ league: exports.leagueSlug,
111
106
  homeTeam: exports.gameTeamSchema,
112
107
  awayTeam: exports.gameTeamSchema,
113
108
  seriesInfo: exports.seriesInfoSchema.optional(),
@@ -290,17 +285,7 @@ exports.searchGameSchema = zod_1.z.object({
290
285
  q: zod_1.z.string().optional(),
291
286
  teamId: zod_1.z.string().optional(),
292
287
  round: zod_1.z.string().optional(),
293
- league: zod_1.z.union([
294
- zod_1.z.literal("ncaa"),
295
- zod_1.z.literal("nba"),
296
- zod_1.z.literal("mlb"),
297
- zod_1.z.literal("nfl"),
298
- zod_1.z.literal("nhl"),
299
- zod_1.z.literal("mls"),
300
- zod_1.z.literal("cfb"),
301
- zod_1.z.literal("cbb"),
302
- zod_1.z.literal("epl"),
303
- ]),
288
+ league: exports.leagueSlug,
304
289
  createdAt: zod_1.z
305
290
  .union([
306
291
  zod_1.z.literal("Today"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.79",
3
+ "version": "1.1.80",
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",