rategame-shared 1.1.547 → 1.1.548
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,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { classicTimelineGameSchema,
|
|
2
|
+
import { classicTimelineGameSchema, classicsTimelineResponseSchema } from "../schemas/classics";
|
|
3
3
|
export type ClassicTimelineGame = z.infer<typeof classicTimelineGameSchema>;
|
|
4
|
-
export type
|
|
4
|
+
export type ClassicsTimelineResponse = z.infer<typeof classicsTimelineResponseSchema>;
|
|
@@ -4614,7 +4614,7 @@ export declare const classicTimelineGameSchema: z.ZodObject<Pick<{
|
|
|
4614
4614
|
league?: string | undefined;
|
|
4615
4615
|
roundName?: string | undefined;
|
|
4616
4616
|
}>;
|
|
4617
|
-
export declare const
|
|
4617
|
+
export declare const classicsTimelineResponseSchema: z.ZodObject<{
|
|
4618
4618
|
games: z.ZodArray<z.ZodObject<Pick<{
|
|
4619
4619
|
id: z.ZodOptional<z.ZodString>;
|
|
4620
4620
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">, z.ZodLiteral<"postponed">, z.ZodLiteral<"canceled">]>;
|
package/dist/schemas/classics.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.classicsTimelineResponseSchema = exports.classicTimelineGameSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const game_1 = require("./game");
|
|
6
6
|
exports.classicTimelineGameSchema = game_1.commonGameSchema
|
|
@@ -10,7 +10,7 @@ exports.classicTimelineGameSchema = game_1.commonGameSchema
|
|
|
10
10
|
homeTeam: game_1.gameTeamSchema.pick({ name: true }),
|
|
11
11
|
awayTeam: game_1.gameTeamSchema.pick({ name: true }),
|
|
12
12
|
});
|
|
13
|
-
exports.
|
|
13
|
+
exports.classicsTimelineResponseSchema = zod_1.z.object({
|
|
14
14
|
games: zod_1.z.array(exports.classicTimelineGameSchema),
|
|
15
15
|
expiresAt: zod_1.z.number(),
|
|
16
16
|
});
|