rategame-shared 1.1.24 → 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/rating.d.ts +10 -10
- package/dist/schemas/rating.js +2 -0
- package/package.json +1 -1
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,
|