rategame-shared 1.0.62 → 1.0.63

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.
@@ -71,7 +71,7 @@ export declare const gameSchema: z.ZodObject<{
71
71
  isClosed: z.ZodBoolean;
72
72
  startedAt: z.ZodNumber;
73
73
  finishedAt: z.ZodNumber;
74
- ratingWindowClosedAt: z.ZodNumber;
74
+ ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
75
75
  round: z.ZodNumber;
76
76
  apiGameId: z.ZodNumber;
77
77
  league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">]>;
@@ -158,7 +158,7 @@ export declare const gameSchema: z.ZodObject<{
158
158
  awayTeamWins: number;
159
159
  gameNumber: number;
160
160
  }>>;
161
- rating: z.ZodObject<{
161
+ rating: z.ZodOptional<z.ZodObject<{
162
162
  avg: z.ZodNumber;
163
163
  votes: z.ZodObject<{
164
164
  options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
@@ -182,14 +182,13 @@ export declare const gameSchema: z.ZodObject<{
182
182
  total: number;
183
183
  options: Record<number, number>;
184
184
  };
185
- }>;
185
+ }>>;
186
186
  }, "strip", z.ZodTypeAny, {
187
187
  round: number;
188
188
  status: "live" | "scheduled" | "final";
189
189
  isClosed: boolean;
190
190
  startedAt: number;
191
191
  finishedAt: number;
192
- ratingWindowClosedAt: number;
193
192
  apiGameId: number;
194
193
  league: "ncaa" | "nba";
195
194
  homeTeam: {
@@ -219,27 +218,27 @@ export declare const gameSchema: z.ZodObject<{
219
218
  }[];
220
219
  periodType: "quarter" | "half";
221
220
  periodDuration: number;
222
- rating: {
223
- avg: number;
224
- votes: {
225
- total: number;
226
- options: Record<number, number>;
227
- };
228
- };
229
221
  id?: string | undefined;
222
+ ratingWindowClosedAt?: number | undefined;
230
223
  seriesInfo?: {
231
224
  maxLength: number;
232
225
  homeTeamWins: number;
233
226
  awayTeamWins: number;
234
227
  gameNumber: number;
235
228
  } | undefined;
229
+ rating?: {
230
+ avg: number;
231
+ votes: {
232
+ total: number;
233
+ options: Record<number, number>;
234
+ };
235
+ } | undefined;
236
236
  }, {
237
237
  round: number;
238
238
  status: "live" | "scheduled" | "final";
239
239
  isClosed: boolean;
240
240
  startedAt: number;
241
241
  finishedAt: number;
242
- ratingWindowClosedAt: number;
243
242
  apiGameId: number;
244
243
  league: "ncaa" | "nba";
245
244
  homeTeam: {
@@ -269,20 +268,21 @@ export declare const gameSchema: z.ZodObject<{
269
268
  }[];
270
269
  periodType: "quarter" | "half";
271
270
  periodDuration: number;
272
- rating: {
273
- avg: number;
274
- votes: {
275
- total: number;
276
- options: Record<number, number>;
277
- };
278
- };
279
271
  id?: string | undefined;
272
+ ratingWindowClosedAt?: number | undefined;
280
273
  seriesInfo?: {
281
274
  maxLength: number;
282
275
  homeTeamWins: number;
283
276
  awayTeamWins: number;
284
277
  gameNumber: number;
285
278
  } | undefined;
279
+ rating?: {
280
+ avg: number;
281
+ votes: {
282
+ total: number;
283
+ options: Record<number, number>;
284
+ };
285
+ } | undefined;
286
286
  }>;
287
287
  export declare const searchGameSchema: z.ZodObject<{
288
288
  q: z.ZodOptional<z.ZodString>;
@@ -34,7 +34,7 @@ exports.gameSchema = zod_1.z.object({
34
34
  isClosed: zod_1.z.boolean(),
35
35
  startedAt: zod_1.z.number(),
36
36
  finishedAt: zod_1.z.number(),
37
- ratingWindowClosedAt: zod_1.z.number(),
37
+ ratingWindowClosedAt: zod_1.z.number().optional(),
38
38
  round: zod_1.z.number(),
39
39
  apiGameId: zod_1.z.number(),
40
40
  league: zod_1.z.union([zod_1.z.literal("ncaa"), zod_1.z.literal("nba")]),
@@ -50,7 +50,7 @@ exports.gameSchema = zod_1.z.object({
50
50
  periodType: zod_1.z.union([zod_1.z.literal("half"), zod_1.z.literal("quarter")]),
51
51
  periodDuration: zod_1.z.number(),
52
52
  seriesInfo: exports.seriesInfoSchema.optional(),
53
- rating: exports.gameRatingAggregateSchema,
53
+ rating: exports.gameRatingAggregateSchema.optional(),
54
54
  });
55
55
  exports.searchGameSchema = zod_1.z.object({
56
56
  q: zod_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",