rategame-shared 1.0.95 → 1.0.96
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 +22 -10
- package/dist/schemas/game.js +11 -3
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -24,6 +24,28 @@ export declare const gameTeamSchema: z.ZodObject<{
|
|
|
24
24
|
id?: string | undefined;
|
|
25
25
|
isWinner?: boolean | undefined;
|
|
26
26
|
}>;
|
|
27
|
+
export declare const mlbGameTeamSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodOptional<z.ZodString>;
|
|
29
|
+
apiTeamId: z.ZodNumber;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
score: z.ZodNumber;
|
|
32
|
+
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
image: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
name: string;
|
|
36
|
+
image: string;
|
|
37
|
+
apiTeamId: number;
|
|
38
|
+
score: number;
|
|
39
|
+
id?: string | undefined;
|
|
40
|
+
isWinner?: boolean | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
name: string;
|
|
43
|
+
image: string;
|
|
44
|
+
apiTeamId: number;
|
|
45
|
+
score: number;
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
isWinner?: boolean | undefined;
|
|
48
|
+
}>;
|
|
27
49
|
export declare const gameRatingAggregateSchema: z.ZodObject<{
|
|
28
50
|
avg: z.ZodNumber;
|
|
29
51
|
votes: z.ZodObject<{
|
|
@@ -82,12 +104,10 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
82
104
|
score: z.ZodNumber;
|
|
83
105
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
84
106
|
image: z.ZodString;
|
|
85
|
-
seed: z.ZodNumber;
|
|
86
107
|
}, "strip", z.ZodTypeAny, {
|
|
87
108
|
name: string;
|
|
88
109
|
image: string;
|
|
89
110
|
apiTeamId: number;
|
|
90
|
-
seed: number;
|
|
91
111
|
score: number;
|
|
92
112
|
id?: string | undefined;
|
|
93
113
|
isWinner?: boolean | undefined;
|
|
@@ -95,7 +115,6 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
95
115
|
name: string;
|
|
96
116
|
image: string;
|
|
97
117
|
apiTeamId: number;
|
|
98
|
-
seed: number;
|
|
99
118
|
score: number;
|
|
100
119
|
id?: string | undefined;
|
|
101
120
|
isWinner?: boolean | undefined;
|
|
@@ -107,12 +126,10 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
107
126
|
score: z.ZodNumber;
|
|
108
127
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
109
128
|
image: z.ZodString;
|
|
110
|
-
seed: z.ZodNumber;
|
|
111
129
|
}, "strip", z.ZodTypeAny, {
|
|
112
130
|
name: string;
|
|
113
131
|
image: string;
|
|
114
132
|
apiTeamId: number;
|
|
115
|
-
seed: number;
|
|
116
133
|
score: number;
|
|
117
134
|
id?: string | undefined;
|
|
118
135
|
isWinner?: boolean | undefined;
|
|
@@ -120,7 +137,6 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
120
137
|
name: string;
|
|
121
138
|
image: string;
|
|
122
139
|
apiTeamId: number;
|
|
123
|
-
seed: number;
|
|
124
140
|
score: number;
|
|
125
141
|
id?: string | undefined;
|
|
126
142
|
isWinner?: boolean | undefined;
|
|
@@ -194,7 +210,6 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
194
210
|
name: string;
|
|
195
211
|
image: string;
|
|
196
212
|
apiTeamId: number;
|
|
197
|
-
seed: number;
|
|
198
213
|
score: number;
|
|
199
214
|
id?: string | undefined;
|
|
200
215
|
isWinner?: boolean | undefined;
|
|
@@ -203,7 +218,6 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
203
218
|
name: string;
|
|
204
219
|
image: string;
|
|
205
220
|
apiTeamId: number;
|
|
206
|
-
seed: number;
|
|
207
221
|
score: number;
|
|
208
222
|
id?: string | undefined;
|
|
209
223
|
isWinner?: boolean | undefined;
|
|
@@ -244,7 +258,6 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
244
258
|
name: string;
|
|
245
259
|
image: string;
|
|
246
260
|
apiTeamId: number;
|
|
247
|
-
seed: number;
|
|
248
261
|
score: number;
|
|
249
262
|
id?: string | undefined;
|
|
250
263
|
isWinner?: boolean | undefined;
|
|
@@ -253,7 +266,6 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
253
266
|
name: string;
|
|
254
267
|
image: string;
|
|
255
268
|
apiTeamId: number;
|
|
256
|
-
seed: number;
|
|
257
269
|
score: number;
|
|
258
270
|
id?: string | undefined;
|
|
259
271
|
isWinner?: boolean | undefined;
|
package/dist/schemas/game.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.gameSchema = exports.seriesInfoSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema = void 0;
|
|
3
|
+
exports.searchGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.gameSchema = exports.seriesInfoSchema = exports.gameRatingAggregateSchema = exports.mlbGameTeamSchema = exports.gameTeamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const player_1 = require("./player");
|
|
6
6
|
exports.gameTeamSchema = zod_1.z.object({
|
|
@@ -12,6 +12,14 @@ exports.gameTeamSchema = zod_1.z.object({
|
|
|
12
12
|
image: zod_1.z.string(),
|
|
13
13
|
seed: zod_1.z.number(),
|
|
14
14
|
});
|
|
15
|
+
exports.mlbGameTeamSchema = zod_1.z.object({
|
|
16
|
+
id: zod_1.z.string().optional(),
|
|
17
|
+
apiTeamId: zod_1.z.number(),
|
|
18
|
+
name: zod_1.z.string(),
|
|
19
|
+
score: zod_1.z.number(),
|
|
20
|
+
isWinner: zod_1.z.boolean().optional(),
|
|
21
|
+
image: zod_1.z.string(),
|
|
22
|
+
});
|
|
15
23
|
exports.gameRatingAggregateSchema = zod_1.z.object({
|
|
16
24
|
avg: zod_1.z.number(),
|
|
17
25
|
votes: zod_1.z.object({
|
|
@@ -39,8 +47,8 @@ exports.gameSchema = zod_1.z.object({
|
|
|
39
47
|
round: zod_1.z.number(),
|
|
40
48
|
apiGameId: zod_1.z.number(),
|
|
41
49
|
league: zod_1.z.union([zod_1.z.literal("ncaa"), zod_1.z.literal("nba"), zod_1.z.literal("mlb")]),
|
|
42
|
-
homeTeam: exports.
|
|
43
|
-
awayTeam: exports.
|
|
50
|
+
homeTeam: exports.mlbGameTeamSchema,
|
|
51
|
+
awayTeam: exports.mlbGameTeamSchema,
|
|
44
52
|
timeRemainingMinutes: zod_1.z.number(),
|
|
45
53
|
timeRemainingSeconds: zod_1.z.number(),
|
|
46
54
|
periods: zod_1.z.array(zod_1.z.object({
|