rategame-shared 1.0.96 → 1.0.98
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 +13 -10
- package/dist/schemas/game.js +5 -4
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -104,10 +104,12 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
104
104
|
score: z.ZodNumber;
|
|
105
105
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
106
106
|
image: z.ZodString;
|
|
107
|
+
seed: z.ZodNumber;
|
|
107
108
|
}, "strip", z.ZodTypeAny, {
|
|
108
109
|
name: string;
|
|
109
110
|
image: string;
|
|
110
111
|
apiTeamId: number;
|
|
112
|
+
seed: number;
|
|
111
113
|
score: number;
|
|
112
114
|
id?: string | undefined;
|
|
113
115
|
isWinner?: boolean | undefined;
|
|
@@ -115,6 +117,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
115
117
|
name: string;
|
|
116
118
|
image: string;
|
|
117
119
|
apiTeamId: number;
|
|
120
|
+
seed: number;
|
|
118
121
|
score: number;
|
|
119
122
|
id?: string | undefined;
|
|
120
123
|
isWinner?: boolean | undefined;
|
|
@@ -126,10 +129,12 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
126
129
|
score: z.ZodNumber;
|
|
127
130
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
128
131
|
image: z.ZodString;
|
|
132
|
+
seed: z.ZodNumber;
|
|
129
133
|
}, "strip", z.ZodTypeAny, {
|
|
130
134
|
name: string;
|
|
131
135
|
image: string;
|
|
132
136
|
apiTeamId: number;
|
|
137
|
+
seed: number;
|
|
133
138
|
score: number;
|
|
134
139
|
id?: string | undefined;
|
|
135
140
|
isWinner?: boolean | undefined;
|
|
@@ -137,6 +142,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
137
142
|
name: string;
|
|
138
143
|
image: string;
|
|
139
144
|
apiTeamId: number;
|
|
145
|
+
seed: number;
|
|
140
146
|
score: number;
|
|
141
147
|
id?: string | undefined;
|
|
142
148
|
isWinner?: boolean | undefined;
|
|
@@ -210,6 +216,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
210
216
|
name: string;
|
|
211
217
|
image: string;
|
|
212
218
|
apiTeamId: number;
|
|
219
|
+
seed: number;
|
|
213
220
|
score: number;
|
|
214
221
|
id?: string | undefined;
|
|
215
222
|
isWinner?: boolean | undefined;
|
|
@@ -218,6 +225,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
218
225
|
name: string;
|
|
219
226
|
image: string;
|
|
220
227
|
apiTeamId: number;
|
|
228
|
+
seed: number;
|
|
221
229
|
score: number;
|
|
222
230
|
id?: string | undefined;
|
|
223
231
|
isWinner?: boolean | undefined;
|
|
@@ -258,6 +266,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
258
266
|
name: string;
|
|
259
267
|
image: string;
|
|
260
268
|
apiTeamId: number;
|
|
269
|
+
seed: number;
|
|
261
270
|
score: number;
|
|
262
271
|
id?: string | undefined;
|
|
263
272
|
isWinner?: boolean | undefined;
|
|
@@ -266,6 +275,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
266
275
|
name: string;
|
|
267
276
|
image: string;
|
|
268
277
|
apiTeamId: number;
|
|
278
|
+
seed: number;
|
|
269
279
|
score: number;
|
|
270
280
|
id?: string | undefined;
|
|
271
281
|
isWinner?: boolean | undefined;
|
|
@@ -312,6 +322,7 @@ export declare const inningSchema: z.ZodObject<{
|
|
|
312
322
|
export declare const mlbGameSchema: z.ZodObject<{
|
|
313
323
|
id: z.ZodOptional<z.ZodString>;
|
|
314
324
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
325
|
+
league: z.ZodString;
|
|
315
326
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
316
327
|
startedAt: z.ZodNumber;
|
|
317
328
|
finishedAt: z.ZodNumber;
|
|
@@ -325,12 +336,10 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
325
336
|
score: z.ZodNumber;
|
|
326
337
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
327
338
|
image: z.ZodString;
|
|
328
|
-
seed: z.ZodNumber;
|
|
329
339
|
}, "strip", z.ZodTypeAny, {
|
|
330
340
|
name: string;
|
|
331
341
|
image: string;
|
|
332
342
|
apiTeamId: number;
|
|
333
|
-
seed: number;
|
|
334
343
|
score: number;
|
|
335
344
|
id?: string | undefined;
|
|
336
345
|
isWinner?: boolean | undefined;
|
|
@@ -338,7 +347,6 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
338
347
|
name: string;
|
|
339
348
|
image: string;
|
|
340
349
|
apiTeamId: number;
|
|
341
|
-
seed: number;
|
|
342
350
|
score: number;
|
|
343
351
|
id?: string | undefined;
|
|
344
352
|
isWinner?: boolean | undefined;
|
|
@@ -350,12 +358,10 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
350
358
|
score: z.ZodNumber;
|
|
351
359
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
352
360
|
image: z.ZodString;
|
|
353
|
-
seed: z.ZodNumber;
|
|
354
361
|
}, "strip", z.ZodTypeAny, {
|
|
355
362
|
name: string;
|
|
356
363
|
image: string;
|
|
357
364
|
apiTeamId: number;
|
|
358
|
-
seed: number;
|
|
359
365
|
score: number;
|
|
360
366
|
id?: string | undefined;
|
|
361
367
|
isWinner?: boolean | undefined;
|
|
@@ -363,7 +369,6 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
363
369
|
name: string;
|
|
364
370
|
image: string;
|
|
365
371
|
apiTeamId: number;
|
|
366
|
-
seed: number;
|
|
367
372
|
score: number;
|
|
368
373
|
id?: string | undefined;
|
|
369
374
|
isWinner?: boolean | undefined;
|
|
@@ -525,11 +530,11 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
525
530
|
startedAt: number;
|
|
526
531
|
finishedAt: number;
|
|
527
532
|
apiGameId: number;
|
|
533
|
+
league: string;
|
|
528
534
|
homeTeam: {
|
|
529
535
|
name: string;
|
|
530
536
|
image: string;
|
|
531
537
|
apiTeamId: number;
|
|
532
|
-
seed: number;
|
|
533
538
|
score: number;
|
|
534
539
|
id?: string | undefined;
|
|
535
540
|
isWinner?: boolean | undefined;
|
|
@@ -538,7 +543,6 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
538
543
|
name: string;
|
|
539
544
|
image: string;
|
|
540
545
|
apiTeamId: number;
|
|
541
|
-
seed: number;
|
|
542
546
|
score: number;
|
|
543
547
|
id?: string | undefined;
|
|
544
548
|
isWinner?: boolean | undefined;
|
|
@@ -608,11 +612,11 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
608
612
|
startedAt: number;
|
|
609
613
|
finishedAt: number;
|
|
610
614
|
apiGameId: number;
|
|
615
|
+
league: string;
|
|
611
616
|
homeTeam: {
|
|
612
617
|
name: string;
|
|
613
618
|
image: string;
|
|
614
619
|
apiTeamId: number;
|
|
615
|
-
seed: number;
|
|
616
620
|
score: number;
|
|
617
621
|
id?: string | undefined;
|
|
618
622
|
isWinner?: boolean | undefined;
|
|
@@ -621,7 +625,6 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
621
625
|
name: string;
|
|
622
626
|
image: string;
|
|
623
627
|
apiTeamId: number;
|
|
624
|
-
seed: number;
|
|
625
628
|
score: number;
|
|
626
629
|
id?: string | undefined;
|
|
627
630
|
isWinner?: boolean | undefined;
|
package/dist/schemas/game.js
CHANGED
|
@@ -47,8 +47,8 @@ exports.gameSchema = zod_1.z.object({
|
|
|
47
47
|
round: zod_1.z.number(),
|
|
48
48
|
apiGameId: zod_1.z.number(),
|
|
49
49
|
league: zod_1.z.union([zod_1.z.literal("ncaa"), zod_1.z.literal("nba"), zod_1.z.literal("mlb")]),
|
|
50
|
-
homeTeam: exports.
|
|
51
|
-
awayTeam: exports.
|
|
50
|
+
homeTeam: exports.gameTeamSchema,
|
|
51
|
+
awayTeam: exports.gameTeamSchema,
|
|
52
52
|
timeRemainingMinutes: zod_1.z.number(),
|
|
53
53
|
timeRemainingSeconds: zod_1.z.number(),
|
|
54
54
|
periods: zod_1.z.array(zod_1.z.object({
|
|
@@ -73,14 +73,15 @@ exports.mlbGameSchema = zod_1.z.object({
|
|
|
73
73
|
zod_1.z.literal("live"),
|
|
74
74
|
zod_1.z.literal("final"),
|
|
75
75
|
]),
|
|
76
|
+
league: zod_1.z.string(),
|
|
76
77
|
isClosed: zod_1.z.boolean().optional(),
|
|
77
78
|
startedAt: zod_1.z.number(),
|
|
78
79
|
finishedAt: zod_1.z.number(),
|
|
79
80
|
ratingWindowClosedAt: zod_1.z.number().optional(),
|
|
80
81
|
round: zod_1.z.number().optional(),
|
|
81
82
|
apiGameId: zod_1.z.number(),
|
|
82
|
-
homeTeam: exports.
|
|
83
|
-
awayTeam: exports.
|
|
83
|
+
homeTeam: exports.mlbGameTeamSchema,
|
|
84
|
+
awayTeam: exports.mlbGameTeamSchema,
|
|
84
85
|
totalInningsRemaining: zod_1.z.number(),
|
|
85
86
|
innings: zod_1.z.array(exports.inningSchema),
|
|
86
87
|
inningHalf: zod_1.z.union([zod_1.z.literal("T"), zod_1.z.literal("B")]).optional(),
|