rategame-shared 1.1.23 → 1.1.25
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.
- package/dist/schemas/game.d.ts +3 -3
- package/dist/schemas/game.js +2 -0
- package/dist/schemas/rating.d.ts +10 -10
- package/dist/schemas/rating.js +2 -0
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -1480,13 +1480,13 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
1480
1480
|
q: z.ZodOptional<z.ZodString>;
|
|
1481
1481
|
teamId: z.ZodOptional<z.ZodString>;
|
|
1482
1482
|
round: z.ZodOptional<z.ZodString>;
|
|
1483
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">]>;
|
|
1483
|
+
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">]>;
|
|
1484
1484
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
|
|
1485
1485
|
sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating.avg:asc">, z.ZodLiteral<"rating.avg:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">]>>;
|
|
1486
1486
|
limit: z.ZodOptional<z.ZodString>;
|
|
1487
1487
|
offset: z.ZodOptional<z.ZodString>;
|
|
1488
1488
|
}, "strip", z.ZodTypeAny, {
|
|
1489
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1489
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
1490
1490
|
q?: string | undefined;
|
|
1491
1491
|
teamId?: string | undefined;
|
|
1492
1492
|
round?: string | undefined;
|
|
@@ -1495,7 +1495,7 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
1495
1495
|
limit?: string | undefined;
|
|
1496
1496
|
offset?: string | undefined;
|
|
1497
1497
|
}, {
|
|
1498
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
1498
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
1499
1499
|
q?: string | undefined;
|
|
1500
1500
|
teamId?: string | undefined;
|
|
1501
1501
|
round?: string | undefined;
|
package/dist/schemas/game.js
CHANGED
|
@@ -160,6 +160,8 @@ exports.searchGameSchema = zod_1.z.object({
|
|
|
160
160
|
zod_1.z.literal("nfl"),
|
|
161
161
|
zod_1.z.literal("nhl"),
|
|
162
162
|
zod_1.z.literal("mls"),
|
|
163
|
+
zod_1.z.literal("cfb"),
|
|
164
|
+
zod_1.z.literal("cbb"),
|
|
163
165
|
]),
|
|
164
166
|
createdAt: zod_1.z
|
|
165
167
|
.union([zod_1.z.literal("12h"), zod_1.z.literal("daily"), zod_1.z.literal("weekly")])
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -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">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
|
|
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">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"cbb">]>;
|
|
29
29
|
homeTeam: import("zod").ZodObject<{
|
|
30
30
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
31
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -100,7 +100,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
100
100
|
}>>;
|
|
101
101
|
}, "strip", import("zod").ZodTypeAny, {
|
|
102
102
|
id: string;
|
|
103
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
103
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
104
104
|
homeTeam: {
|
|
105
105
|
name: string;
|
|
106
106
|
image: string;
|
|
@@ -130,7 +130,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
130
130
|
} | undefined;
|
|
131
131
|
}, {
|
|
132
132
|
id: string;
|
|
133
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
133
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
134
134
|
homeTeam: {
|
|
135
135
|
name: string;
|
|
136
136
|
image: string;
|
|
@@ -173,7 +173,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
173
173
|
rating: number;
|
|
174
174
|
game: {
|
|
175
175
|
id: string;
|
|
176
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
176
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
177
177
|
homeTeam: {
|
|
178
178
|
name: string;
|
|
179
179
|
image: string;
|
|
@@ -217,7 +217,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
217
217
|
rating: number;
|
|
218
218
|
game: {
|
|
219
219
|
id: string;
|
|
220
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
220
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
221
221
|
homeTeam: {
|
|
222
222
|
name: string;
|
|
223
223
|
image: string;
|
|
@@ -374,7 +374,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
374
374
|
game: import("zod").ZodObject<Omit<{
|
|
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">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
|
|
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">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"cbb">]>;
|
|
378
378
|
homeTeam: import("zod").ZodObject<{
|
|
379
379
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
380
380
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -449,7 +449,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
449
449
|
}>>;
|
|
450
450
|
}, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
|
|
451
451
|
id: string;
|
|
452
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
452
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
453
453
|
seriesInfo?: {
|
|
454
454
|
maxLength: number;
|
|
455
455
|
homeTeamWins: number;
|
|
@@ -458,7 +458,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
458
458
|
} | undefined;
|
|
459
459
|
}, {
|
|
460
460
|
id: string;
|
|
461
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
461
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
462
462
|
seriesInfo?: {
|
|
463
463
|
maxLength: number;
|
|
464
464
|
homeTeamWins: number;
|
|
@@ -471,7 +471,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
471
471
|
rating: number;
|
|
472
472
|
game: {
|
|
473
473
|
id: string;
|
|
474
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
474
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
475
475
|
seriesInfo?: {
|
|
476
476
|
maxLength: number;
|
|
477
477
|
homeTeamWins: number;
|
|
@@ -486,7 +486,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
486
486
|
rating: number;
|
|
487
487
|
game: {
|
|
488
488
|
id: string;
|
|
489
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
489
|
+
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
|
|
490
490
|
seriesInfo?: {
|
|
491
491
|
maxLength: number;
|
|
492
492
|
homeTeamWins: number;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -25,6 +25,8 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
25
25
|
(0, zod_1.literal)("nfl"),
|
|
26
26
|
(0, zod_1.literal)("nhl"),
|
|
27
27
|
(0, zod_1.literal)("mls"),
|
|
28
|
+
(0, zod_1.literal)("cfb"),
|
|
29
|
+
(0, zod_1.literal)("cbb"),
|
|
28
30
|
]),
|
|
29
31
|
homeTeam: game_1.gameTeamSchema,
|
|
30
32
|
awayTeam: game_1.gameTeamSchema,
|