rategame-shared 1.0.38 → 1.0.40
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 +9 -3
- package/dist/schemas/game.js +7 -1
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare const gameRatingAggregateSchema: z.ZodObject<{
|
|
|
51
51
|
}>;
|
|
52
52
|
export declare const gameSchema: z.ZodObject<{
|
|
53
53
|
id: z.ZodOptional<z.ZodString>;
|
|
54
|
-
status: z.ZodUnion<[z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
54
|
+
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
55
55
|
isClosed: z.ZodBoolean;
|
|
56
56
|
startedAt: z.ZodNumber;
|
|
57
57
|
finishedAt: z.ZodNumber;
|
|
@@ -108,6 +108,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
108
108
|
id?: string | undefined;
|
|
109
109
|
isWinner?: boolean | undefined;
|
|
110
110
|
}>;
|
|
111
|
+
timeRemainingMinutes: z.ZodNumber;
|
|
112
|
+
timeRemainingSeconds: z.ZodNumber;
|
|
111
113
|
periods: z.ZodArray<z.ZodObject<{
|
|
112
114
|
awayScore: z.ZodNumber;
|
|
113
115
|
homeScore: z.ZodNumber;
|
|
@@ -148,7 +150,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
148
150
|
}>;
|
|
149
151
|
}, "strip", z.ZodTypeAny, {
|
|
150
152
|
round: number;
|
|
151
|
-
status: "live" | "final";
|
|
153
|
+
status: "live" | "scheduled" | "final";
|
|
152
154
|
isClosed: boolean;
|
|
153
155
|
startedAt: number;
|
|
154
156
|
finishedAt: number;
|
|
@@ -172,6 +174,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
172
174
|
id?: string | undefined;
|
|
173
175
|
isWinner?: boolean | undefined;
|
|
174
176
|
};
|
|
177
|
+
timeRemainingMinutes: number;
|
|
178
|
+
timeRemainingSeconds: number;
|
|
175
179
|
periods: {
|
|
176
180
|
awayScore: number;
|
|
177
181
|
homeScore: number;
|
|
@@ -187,7 +191,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
187
191
|
id?: string | undefined;
|
|
188
192
|
}, {
|
|
189
193
|
round: number;
|
|
190
|
-
status: "live" | "final";
|
|
194
|
+
status: "live" | "scheduled" | "final";
|
|
191
195
|
isClosed: boolean;
|
|
192
196
|
startedAt: number;
|
|
193
197
|
finishedAt: number;
|
|
@@ -211,6 +215,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
211
215
|
id?: string | undefined;
|
|
212
216
|
isWinner?: boolean | undefined;
|
|
213
217
|
};
|
|
218
|
+
timeRemainingMinutes: number;
|
|
219
|
+
timeRemainingSeconds: number;
|
|
214
220
|
periods: {
|
|
215
221
|
awayScore: number;
|
|
216
222
|
homeScore: number;
|
package/dist/schemas/game.js
CHANGED
|
@@ -20,7 +20,11 @@ exports.gameRatingAggregateSchema = zod_1.z.object({
|
|
|
20
20
|
});
|
|
21
21
|
exports.gameSchema = zod_1.z.object({
|
|
22
22
|
id: zod_1.z.string().optional(),
|
|
23
|
-
status: zod_1.z.union([
|
|
23
|
+
status: zod_1.z.union([
|
|
24
|
+
zod_1.z.literal("scheduled"),
|
|
25
|
+
zod_1.z.literal("live"),
|
|
26
|
+
zod_1.z.literal("final"),
|
|
27
|
+
]),
|
|
24
28
|
isClosed: zod_1.z.boolean(),
|
|
25
29
|
startedAt: zod_1.z.number(),
|
|
26
30
|
finishedAt: zod_1.z.number(),
|
|
@@ -29,6 +33,8 @@ exports.gameSchema = zod_1.z.object({
|
|
|
29
33
|
apiGameId: zod_1.z.number(),
|
|
30
34
|
homeTeam: exports.gameTeamSchema,
|
|
31
35
|
awayTeam: exports.gameTeamSchema,
|
|
36
|
+
timeRemainingMinutes: zod_1.z.number(),
|
|
37
|
+
timeRemainingSeconds: zod_1.z.number(),
|
|
32
38
|
periods: zod_1.z.array(zod_1.z.object({
|
|
33
39
|
awayScore: zod_1.z.number(),
|
|
34
40
|
homeScore: zod_1.z.number(),
|