rategame-shared 1.0.57 → 1.0.59
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/nba/game.d.ts +19 -16
- package/dist/schemas/nba/game.js +7 -1
- package/package.json +1 -1
|
@@ -82,6 +82,7 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
timeRemainingMinutes: z.ZodNumber;
|
|
84
84
|
timeRemainingSeconds: z.ZodNumber;
|
|
85
|
+
round: z.ZodUnion<[z.ZodLiteral<"quarters">, z.ZodLiteral<"semis">, z.ZodLiteral<"conference">, z.ZodLiteral<"finals">]>;
|
|
85
86
|
quarters: z.ZodArray<z.ZodObject<{
|
|
86
87
|
awayScore: z.ZodNumber;
|
|
87
88
|
homeScore: z.ZodNumber;
|
|
@@ -111,7 +112,7 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
111
112
|
awayTeamWins: number;
|
|
112
113
|
gameNumber: number;
|
|
113
114
|
}>;
|
|
114
|
-
rating: z.ZodObject<{
|
|
115
|
+
rating: z.ZodOptional<z.ZodObject<{
|
|
115
116
|
avg: z.ZodNumber;
|
|
116
117
|
votes: z.ZodObject<{
|
|
117
118
|
options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
|
|
@@ -135,9 +136,10 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
135
136
|
total: number;
|
|
136
137
|
options: Record<number, number>;
|
|
137
138
|
};
|
|
138
|
-
}
|
|
139
|
+
}>>;
|
|
139
140
|
userIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
140
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
round: "quarters" | "conference" | "semis" | "finals";
|
|
141
143
|
status: "live" | "scheduled" | "final";
|
|
142
144
|
quarters: {
|
|
143
145
|
number: number;
|
|
@@ -167,13 +169,6 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
167
169
|
};
|
|
168
170
|
timeRemainingMinutes: number;
|
|
169
171
|
timeRemainingSeconds: number;
|
|
170
|
-
rating: {
|
|
171
|
-
avg: number;
|
|
172
|
-
votes: {
|
|
173
|
-
total: number;
|
|
174
|
-
options: Record<number, number>;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
172
|
seriesInfo: {
|
|
178
173
|
maxLength: number;
|
|
179
174
|
homeTeamWins: number;
|
|
@@ -181,8 +176,16 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
181
176
|
gameNumber: number;
|
|
182
177
|
};
|
|
183
178
|
id?: string | undefined;
|
|
179
|
+
rating?: {
|
|
180
|
+
avg: number;
|
|
181
|
+
votes: {
|
|
182
|
+
total: number;
|
|
183
|
+
options: Record<number, number>;
|
|
184
|
+
};
|
|
185
|
+
} | undefined;
|
|
184
186
|
userIds?: string[] | undefined;
|
|
185
187
|
}, {
|
|
188
|
+
round: "quarters" | "conference" | "semis" | "finals";
|
|
186
189
|
status: "live" | "scheduled" | "final";
|
|
187
190
|
quarters: {
|
|
188
191
|
number: number;
|
|
@@ -212,13 +215,6 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
212
215
|
};
|
|
213
216
|
timeRemainingMinutes: number;
|
|
214
217
|
timeRemainingSeconds: number;
|
|
215
|
-
rating: {
|
|
216
|
-
avg: number;
|
|
217
|
-
votes: {
|
|
218
|
-
total: number;
|
|
219
|
-
options: Record<number, number>;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
218
|
seriesInfo: {
|
|
223
219
|
maxLength: number;
|
|
224
220
|
homeTeamWins: number;
|
|
@@ -226,5 +222,12 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
226
222
|
gameNumber: number;
|
|
227
223
|
};
|
|
228
224
|
id?: string | undefined;
|
|
225
|
+
rating?: {
|
|
226
|
+
avg: number;
|
|
227
|
+
votes: {
|
|
228
|
+
total: number;
|
|
229
|
+
options: Record<number, number>;
|
|
230
|
+
};
|
|
231
|
+
} | undefined;
|
|
229
232
|
userIds?: string[] | undefined;
|
|
230
233
|
}>;
|
package/dist/schemas/nba/game.js
CHANGED
|
@@ -31,8 +31,14 @@ exports.nbaGameSchema = zod_1.z.object({
|
|
|
31
31
|
awayTeam: team_1.nbaTeamSchema,
|
|
32
32
|
timeRemainingMinutes: zod_1.z.number(),
|
|
33
33
|
timeRemainingSeconds: zod_1.z.number(),
|
|
34
|
+
round: zod_1.z.union([
|
|
35
|
+
zod_1.z.literal("quarters"),
|
|
36
|
+
zod_1.z.literal("semis"),
|
|
37
|
+
zod_1.z.literal("conference"),
|
|
38
|
+
zod_1.z.literal("finals"),
|
|
39
|
+
]),
|
|
34
40
|
quarters: exports.quartersSchema,
|
|
35
41
|
seriesInfo: exports.seriesInfoSchema,
|
|
36
|
-
rating: game_1.gameRatingAggregateSchema,
|
|
42
|
+
rating: game_1.gameRatingAggregateSchema.optional(),
|
|
37
43
|
userIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
38
44
|
});
|