rategame-shared 1.1.135 → 1.1.136
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/models/game.d.ts +2 -2
- package/dist/schemas/game.d.ts +1 -1
- package/dist/schemas/game.js +3 -3
- package/package.json +1 -1
package/dist/models/game.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { basketballGameSchema, cfbGameSchema, creatorPickSchema,
|
|
2
|
+
import { basketballGameSchema, cfbGameSchema, creatorPickSchema, footballGameSchema, gameRatingAggregateSchema, gameSchema, gameTeamSchema, mlbGameSchema, nflGameSchema, nhlGameSchema, searchGameSchema, unionGameSchema, weightedRatingAggregateOptionsSchema, weightedRatingAggregateSchema } from "../schemas/game";
|
|
3
3
|
export type Game = z.infer<typeof gameSchema>;
|
|
4
4
|
export type BasketballGame = z.infer<typeof basketballGameSchema>;
|
|
5
5
|
export type MLBGame = z.infer<typeof mlbGameSchema>;
|
|
@@ -7,7 +7,7 @@ export type GameRatingAggregate = z.infer<typeof gameRatingAggregateSchema>;
|
|
|
7
7
|
export type GameTeam = z.infer<typeof gameTeamSchema>;
|
|
8
8
|
export type SearchGame = z.infer<typeof searchGameSchema>;
|
|
9
9
|
export type UnionGame = z.infer<typeof unionGameSchema>;
|
|
10
|
-
export type
|
|
10
|
+
export type FootballGame = z.infer<typeof footballGameSchema>;
|
|
11
11
|
export type NFLGame = z.infer<typeof nflGameSchema>;
|
|
12
12
|
export type CFBGame = z.infer<typeof cfbGameSchema>;
|
|
13
13
|
export type NHLGame = z.infer<typeof nhlGameSchema>;
|
package/dist/schemas/game.d.ts
CHANGED
|
@@ -7767,7 +7767,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7767
7767
|
runnerOnSecond?: boolean | undefined;
|
|
7768
7768
|
runnerOnThird?: boolean | undefined;
|
|
7769
7769
|
}>;
|
|
7770
|
-
export declare const
|
|
7770
|
+
export declare const footballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
7771
7771
|
id: z.ZodOptional<z.ZodString>;
|
|
7772
7772
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">, z.ZodLiteral<"postponed">, z.ZodLiteral<"canceled">]>;
|
|
7773
7773
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
package/dist/schemas/game.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.creatorPickSchema = exports.searchGameSchema = exports.unionGameSchema = exports.nhlGameSchema = exports.cfbGameSchema = exports.nflGameSchema = exports.
|
|
3
|
+
exports.creatorPickSchema = exports.searchGameSchema = exports.unionGameSchema = exports.nhlGameSchema = exports.cfbGameSchema = exports.nflGameSchema = exports.footballGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.basketballGameSchema = exports.commonGameSchema = exports.gameSchema = exports.seriesInfoSchema = exports.weightedRatingAggregateSchema = exports.weightedRatingAggregateOptionsSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const sharedTypes_1 = require("./sharedTypes");
|
|
6
6
|
const user_1 = require("./user");
|
|
@@ -175,7 +175,7 @@ exports.mlbGameSchema = exports.commonGameSchema.extend({
|
|
|
175
175
|
runnerOnSecond: zod_1.z.boolean().optional(),
|
|
176
176
|
runnerOnThird: zod_1.z.boolean().optional(),
|
|
177
177
|
});
|
|
178
|
-
exports.
|
|
178
|
+
exports.footballGameSchema = exports.commonGameSchema.extend({
|
|
179
179
|
league: zod_1.z.literal("epl"),
|
|
180
180
|
week: zod_1.z.number(),
|
|
181
181
|
period: zod_1.z.string(),
|
|
@@ -274,7 +274,7 @@ exports.nhlGameSchema = exports.commonGameSchema.extend({
|
|
|
274
274
|
exports.unionGameSchema = zod_1.z.union([
|
|
275
275
|
exports.basketballGameSchema,
|
|
276
276
|
exports.mlbGameSchema,
|
|
277
|
-
exports.
|
|
277
|
+
exports.footballGameSchema,
|
|
278
278
|
exports.nflGameSchema,
|
|
279
279
|
exports.cfbGameSchema,
|
|
280
280
|
exports.nhlGameSchema,
|