rategame-shared 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,7 @@ export declare const gameSchema: z.ZodObject<{
74
74
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
75
75
  round: z.ZodNumber;
76
76
  apiGameId: z.ZodNumber;
77
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
77
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
78
78
  homeTeam: z.ZodObject<{
79
79
  id: z.ZodOptional<z.ZodString>;
80
80
  apiTeamId: z.ZodNumber;
@@ -189,7 +189,7 @@ export declare const gameSchema: z.ZodObject<{
189
189
  startedAt: number;
190
190
  finishedAt: number;
191
191
  apiGameId: number;
192
- league: "nba" | "ncaa" | "mlb";
192
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
193
193
  homeTeam: {
194
194
  name: string;
195
195
  image: string;
@@ -239,7 +239,7 @@ export declare const gameSchema: z.ZodObject<{
239
239
  startedAt: number;
240
240
  finishedAt: number;
241
241
  apiGameId: number;
242
- league: "nba" | "ncaa" | "mlb";
242
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
243
243
  homeTeam: {
244
244
  name: string;
245
245
  image: string;
@@ -292,7 +292,7 @@ export declare const commonGameSchema: z.ZodObject<{
292
292
  finishedAt: z.ZodNumber;
293
293
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
294
294
  apiGameId: z.ZodNumber;
295
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
295
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
296
296
  homeTeam: z.ZodObject<{
297
297
  id: z.ZodOptional<z.ZodString>;
298
298
  apiTeamId: z.ZodNumber;
@@ -389,7 +389,7 @@ export declare const commonGameSchema: z.ZodObject<{
389
389
  startedAt: number;
390
390
  finishedAt: number;
391
391
  apiGameId: number;
392
- league: "nba" | "ncaa" | "mlb";
392
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
393
393
  homeTeam: {
394
394
  name: string;
395
395
  image: string;
@@ -429,7 +429,7 @@ export declare const commonGameSchema: z.ZodObject<{
429
429
  startedAt: number;
430
430
  finishedAt: number;
431
431
  apiGameId: number;
432
- league: "nba" | "ncaa" | "mlb";
432
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
433
433
  homeTeam: {
434
434
  name: string;
435
435
  image: string;
@@ -473,7 +473,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
473
473
  finishedAt: z.ZodNumber;
474
474
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
475
475
  apiGameId: z.ZodNumber;
476
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
476
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
477
477
  homeTeam: z.ZodObject<{
478
478
  id: z.ZodOptional<z.ZodString>;
479
479
  apiTeamId: z.ZodNumber;
@@ -590,7 +590,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
590
590
  startedAt: number;
591
591
  finishedAt: number;
592
592
  apiGameId: number;
593
- league: "nba" | "ncaa" | "mlb";
593
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
594
594
  homeTeam: {
595
595
  name: string;
596
596
  image: string;
@@ -640,7 +640,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
640
640
  startedAt: number;
641
641
  finishedAt: number;
642
642
  apiGameId: number;
643
- league: "nba" | "ncaa" | "mlb";
643
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
644
644
  homeTeam: {
645
645
  name: string;
646
646
  image: string;
@@ -706,7 +706,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
706
706
  finishedAt: z.ZodNumber;
707
707
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
708
708
  apiGameId: z.ZodNumber;
709
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
709
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
710
710
  homeTeam: z.ZodObject<{
711
711
  id: z.ZodOptional<z.ZodString>;
712
712
  apiTeamId: z.ZodNumber;
@@ -904,7 +904,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
904
904
  startedAt: number;
905
905
  finishedAt: number;
906
906
  apiGameId: number;
907
- league: "nba" | "ncaa" | "mlb";
907
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
908
908
  homeTeam: {
909
909
  name: string;
910
910
  image: string;
@@ -982,7 +982,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
982
982
  startedAt: number;
983
983
  finishedAt: number;
984
984
  apiGameId: number;
985
- league: "nba" | "ncaa" | "mlb";
985
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
986
986
  homeTeam: {
987
987
  name: string;
988
988
  image: string;
@@ -1064,7 +1064,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1064
1064
  finishedAt: z.ZodNumber;
1065
1065
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
1066
1066
  apiGameId: z.ZodNumber;
1067
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
1067
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
1068
1068
  homeTeam: z.ZodObject<{
1069
1069
  id: z.ZodOptional<z.ZodString>;
1070
1070
  apiTeamId: z.ZodNumber;
@@ -1181,7 +1181,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1181
1181
  startedAt: number;
1182
1182
  finishedAt: number;
1183
1183
  apiGameId: number;
1184
- league: "nba" | "ncaa" | "mlb";
1184
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1185
1185
  homeTeam: {
1186
1186
  name: string;
1187
1187
  image: string;
@@ -1231,7 +1231,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1231
1231
  startedAt: number;
1232
1232
  finishedAt: number;
1233
1233
  apiGameId: number;
1234
- league: "nba" | "ncaa" | "mlb";
1234
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1235
1235
  homeTeam: {
1236
1236
  name: string;
1237
1237
  image: string;
@@ -1283,7 +1283,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1283
1283
  finishedAt: z.ZodNumber;
1284
1284
  ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
1285
1285
  apiGameId: z.ZodNumber;
1286
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
1286
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
1287
1287
  homeTeam: z.ZodObject<{
1288
1288
  id: z.ZodOptional<z.ZodString>;
1289
1289
  apiTeamId: z.ZodNumber;
@@ -1481,7 +1481,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1481
1481
  startedAt: number;
1482
1482
  finishedAt: number;
1483
1483
  apiGameId: number;
1484
- league: "nba" | "ncaa" | "mlb";
1484
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1485
1485
  homeTeam: {
1486
1486
  name: string;
1487
1487
  image: string;
@@ -1559,7 +1559,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
1559
1559
  startedAt: number;
1560
1560
  finishedAt: number;
1561
1561
  apiGameId: number;
1562
- league: "nba" | "ncaa" | "mlb";
1562
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1563
1563
  homeTeam: {
1564
1564
  name: string;
1565
1565
  image: string;
@@ -1637,13 +1637,13 @@ export declare const searchGameSchema: z.ZodObject<{
1637
1637
  q: z.ZodOptional<z.ZodString>;
1638
1638
  teamId: z.ZodOptional<z.ZodString>;
1639
1639
  round: z.ZodOptional<z.ZodString>;
1640
- league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">]>;
1640
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
1641
1641
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
1642
1642
  sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating.avg:asc">, z.ZodLiteral<"rating.avg:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">]>>;
1643
1643
  limit: z.ZodOptional<z.ZodString>;
1644
1644
  offset: z.ZodOptional<z.ZodString>;
1645
1645
  }, "strip", z.ZodTypeAny, {
1646
- league: "nba" | "ncaa" | "mlb";
1646
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1647
1647
  offset?: string | undefined;
1648
1648
  round?: string | undefined;
1649
1649
  q?: string | undefined;
@@ -1652,7 +1652,7 @@ export declare const searchGameSchema: z.ZodObject<{
1652
1652
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
1653
1653
  limit?: string | undefined;
1654
1654
  }, {
1655
- league: "nba" | "ncaa" | "mlb";
1655
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
1656
1656
  offset?: string | undefined;
1657
1657
  round?: string | undefined;
1658
1658
  q?: string | undefined;
@@ -38,7 +38,14 @@ exports.gameSchema = zod_1.z.object({
38
38
  ratingWindowClosedAt: zod_1.z.number().optional(),
39
39
  round: zod_1.z.number(),
40
40
  apiGameId: zod_1.z.number(),
41
- league: zod_1.z.union([zod_1.z.literal("ncaa"), zod_1.z.literal("nba"), zod_1.z.literal("mlb")]),
41
+ league: zod_1.z.union([
42
+ zod_1.z.literal("ncaa"),
43
+ zod_1.z.literal("nba"),
44
+ zod_1.z.literal("mlb"),
45
+ zod_1.z.literal("nfl"),
46
+ zod_1.z.literal("nhl"),
47
+ zod_1.z.literal("mls"),
48
+ ]),
42
49
  homeTeam: exports.gameTeamSchema,
43
50
  awayTeam: exports.gameTeamSchema,
44
51
  timeRemainingMinutes: zod_1.z.number(),
@@ -65,7 +72,14 @@ exports.commonGameSchema = zod_1.z.object({
65
72
  finishedAt: zod_1.z.number(),
66
73
  ratingWindowClosedAt: zod_1.z.number().optional(),
67
74
  apiGameId: zod_1.z.number(),
68
- league: zod_1.z.union([zod_1.z.literal("ncaa"), zod_1.z.literal("nba"), zod_1.z.literal("mlb")]),
75
+ league: zod_1.z.union([
76
+ zod_1.z.literal("ncaa"),
77
+ zod_1.z.literal("nba"),
78
+ zod_1.z.literal("mlb"),
79
+ zod_1.z.literal("nfl"),
80
+ zod_1.z.literal("nhl"),
81
+ zod_1.z.literal("mls"),
82
+ ]),
69
83
  homeTeam: exports.gameTeamSchema,
70
84
  awayTeam: exports.gameTeamSchema,
71
85
  seriesInfo: exports.seriesInfoSchema.optional(),
@@ -128,7 +142,14 @@ exports.searchGameSchema = zod_1.z.object({
128
142
  q: zod_1.z.string().optional(),
129
143
  teamId: zod_1.z.string().optional(),
130
144
  round: zod_1.z.string().optional(),
131
- league: zod_1.z.union([zod_1.z.literal("ncaa"), zod_1.z.literal("nba"), zod_1.z.literal("mlb")]),
145
+ league: zod_1.z.union([
146
+ zod_1.z.literal("ncaa"),
147
+ zod_1.z.literal("nba"),
148
+ zod_1.z.literal("mlb"),
149
+ zod_1.z.literal("nfl"),
150
+ zod_1.z.literal("nhl"),
151
+ zod_1.z.literal("mls"),
152
+ ]),
132
153
  createdAt: zod_1.z
133
154
  .union([zod_1.z.literal("12h"), zod_1.z.literal("daily"), zod_1.z.literal("weekly")])
134
155
  .optional(),
@@ -25,7 +25,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
25
25
  game: import("zod").ZodObject<{
26
26
  id: import("zod").ZodString;
27
27
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
28
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
28
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
29
29
  homeTeam: import("zod").ZodObject<{
30
30
  id: import("zod").ZodOptional<import("zod").ZodString>;
31
31
  apiTeamId: import("zod").ZodNumber;
@@ -94,7 +94,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
94
94
  }>>;
95
95
  }, "strip", import("zod").ZodTypeAny, {
96
96
  id: string;
97
- league: "nba" | "ncaa" | "mlb";
97
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
98
98
  homeTeam: {
99
99
  name: string;
100
100
  image: string;
@@ -122,7 +122,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
122
122
  } | undefined;
123
123
  }, {
124
124
  id: string;
125
- league: "nba" | "ncaa" | "mlb";
125
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
126
126
  homeTeam: {
127
127
  name: string;
128
128
  image: string;
@@ -163,7 +163,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
163
163
  rating: number;
164
164
  game: {
165
165
  id: string;
166
- league: "nba" | "ncaa" | "mlb";
166
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
167
167
  homeTeam: {
168
168
  name: string;
169
169
  image: string;
@@ -205,7 +205,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
205
205
  rating: number;
206
206
  game: {
207
207
  id: string;
208
- league: "nba" | "ncaa" | "mlb";
208
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
209
209
  homeTeam: {
210
210
  name: string;
211
211
  image: string;
@@ -239,7 +239,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
239
239
  q: import("zod").ZodOptional<import("zod").ZodString>;
240
240
  teamId: import("zod").ZodOptional<import("zod").ZodString>;
241
241
  round: import("zod").ZodOptional<import("zod").ZodString>;
242
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
242
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
243
243
  createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
244
244
  sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
245
245
  limit: import("zod").ZodOptional<import("zod").ZodString>;
@@ -251,7 +251,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
251
251
  following: import("zod").ZodOptional<import("zod").ZodString>;
252
252
  userId: import("zod").ZodOptional<import("zod").ZodString>;
253
253
  }, "strip", import("zod").ZodTypeAny, {
254
- league: "nba" | "ncaa" | "mlb";
254
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
255
255
  offset?: string | undefined;
256
256
  round?: string | undefined;
257
257
  q?: string | undefined;
@@ -266,7 +266,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
266
266
  following?: string | undefined;
267
267
  userId?: string | undefined;
268
268
  }, {
269
- league: "nba" | "ncaa" | "mlb";
269
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
270
270
  offset?: string | undefined;
271
271
  round?: string | undefined;
272
272
  q?: string | undefined;
@@ -374,7 +374,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
374
374
  game: import("zod").ZodObject<{
375
375
  id: import("zod").ZodString;
376
376
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
377
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
377
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
378
378
  homeTeam: import("zod").ZodObject<{
379
379
  id: import("zod").ZodOptional<import("zod").ZodString>;
380
380
  apiTeamId: import("zod").ZodNumber;
@@ -443,7 +443,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
443
443
  }>>;
444
444
  }, "strip", import("zod").ZodTypeAny, {
445
445
  id: string;
446
- league: "nba" | "ncaa" | "mlb";
446
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
447
447
  homeTeam: {
448
448
  name: string;
449
449
  image: string;
@@ -471,7 +471,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
471
471
  } | undefined;
472
472
  }, {
473
473
  id: string;
474
- league: "nba" | "ncaa" | "mlb";
474
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
475
475
  homeTeam: {
476
476
  name: string;
477
477
  image: string;
@@ -503,7 +503,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
503
503
  game: import("zod").ZodObject<Omit<{
504
504
  id: import("zod").ZodString;
505
505
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
506
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
506
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
507
507
  homeTeam: import("zod").ZodObject<{
508
508
  id: import("zod").ZodOptional<import("zod").ZodString>;
509
509
  apiTeamId: import("zod").ZodNumber;
@@ -572,7 +572,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
572
572
  }>>;
573
573
  }, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
574
574
  id: string;
575
- league: "nba" | "ncaa" | "mlb";
575
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
576
576
  seriesInfo?: {
577
577
  maxLength: number;
578
578
  homeTeamWins: number;
@@ -581,7 +581,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
581
581
  } | undefined;
582
582
  }, {
583
583
  id: string;
584
- league: "nba" | "ncaa" | "mlb";
584
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
585
585
  seriesInfo?: {
586
586
  maxLength: number;
587
587
  homeTeamWins: number;
@@ -594,7 +594,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
594
594
  rating: number;
595
595
  game: {
596
596
  id: string;
597
- league: "nba" | "ncaa" | "mlb";
597
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
598
598
  seriesInfo?: {
599
599
  maxLength: number;
600
600
  homeTeamWins: number;
@@ -609,7 +609,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
609
609
  rating: number;
610
610
  game: {
611
611
  id: string;
612
- league: "nba" | "ncaa" | "mlb";
612
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
613
613
  seriesInfo?: {
614
614
  maxLength: number;
615
615
  homeTeamWins: number;
@@ -18,7 +18,14 @@ exports.ratingSchema = (0, zod_1.object)({
18
18
  game: (0, zod_1.object)({
19
19
  id: (0, zod_1.string)(),
20
20
  round: (0, zod_1.number)().optional(),
21
- league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba"), (0, zod_1.literal)("mlb")]),
21
+ league: (0, zod_1.union)([
22
+ (0, zod_1.literal)("ncaa"),
23
+ (0, zod_1.literal)("nba"),
24
+ (0, zod_1.literal)("mlb"),
25
+ (0, zod_1.literal)("nfl"),
26
+ (0, zod_1.literal)("nhl"),
27
+ (0, zod_1.literal)("mls"),
28
+ ]),
22
29
  homeTeam: game_1.gameTeamSchema,
23
30
  awayTeam: game_1.gameTeamSchema,
24
31
  seriesInfo: game_1.seriesInfoSchema.optional(),
@@ -29,7 +36,14 @@ exports.searchRatingSchema = (0, zod_1.object)({
29
36
  q: (0, zod_1.string)().optional(),
30
37
  teamId: (0, zod_1.string)().optional(),
31
38
  round: (0, zod_1.string)().optional(),
32
- league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba"), (0, zod_1.literal)("mlb")]),
39
+ league: (0, zod_1.union)([
40
+ (0, zod_1.literal)("ncaa"),
41
+ (0, zod_1.literal)("nba"),
42
+ (0, zod_1.literal)("mlb"),
43
+ (0, zod_1.literal)("nfl"),
44
+ (0, zod_1.literal)("nhl"),
45
+ (0, zod_1.literal)("mls"),
46
+ ]),
33
47
  createdAt: (0, zod_1.union)([
34
48
  (0, zod_1.literal)("12h"),
35
49
  (0, zod_1.literal)("daily"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
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",