rategame-shared 1.0.65 → 1.0.67

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.
@@ -288,11 +288,13 @@ export declare const searchGameSchema: z.ZodObject<{
288
288
  q: z.ZodOptional<z.ZodString>;
289
289
  teamId: z.ZodOptional<z.ZodString>;
290
290
  round: z.ZodOptional<z.ZodString>;
291
+ league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">]>;
291
292
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
292
293
  sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating.avg:asc">, z.ZodLiteral<"rating.avg:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">]>>;
293
294
  limit: z.ZodOptional<z.ZodString>;
294
295
  offset: z.ZodOptional<z.ZodString>;
295
296
  }, "strip", z.ZodTypeAny, {
297
+ league: "ncaa" | "nba";
296
298
  q?: string | undefined;
297
299
  teamId?: string | undefined;
298
300
  round?: string | undefined;
@@ -301,6 +303,7 @@ export declare const searchGameSchema: z.ZodObject<{
301
303
  limit?: string | undefined;
302
304
  offset?: string | undefined;
303
305
  }, {
306
+ league: "ncaa" | "nba";
304
307
  q?: string | undefined;
305
308
  teamId?: string | undefined;
306
309
  round?: string | undefined;
@@ -56,6 +56,7 @@ exports.searchGameSchema = zod_1.z.object({
56
56
  q: zod_1.z.string().optional(),
57
57
  teamId: zod_1.z.string().optional(),
58
58
  round: zod_1.z.string().optional(),
59
+ league: zod_1.z.union([zod_1.z.literal("ncaa"), zod_1.z.literal("nba")]),
59
60
  createdAt: zod_1.z
60
61
  .union([zod_1.z.literal("12h"), zod_1.z.literal("daily"), zod_1.z.literal("weekly")])
61
62
  .optional(),
@@ -76,6 +76,22 @@ export declare const ratingSchema: import("zod").ZodObject<{
76
76
  id?: string | undefined;
77
77
  isWinner?: boolean | undefined;
78
78
  }>;
79
+ seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
80
+ homeTeamWins: import("zod").ZodNumber;
81
+ awayTeamWins: import("zod").ZodNumber;
82
+ gameNumber: import("zod").ZodNumber;
83
+ maxLength: import("zod").ZodNumber;
84
+ }, "strip", import("zod").ZodTypeAny, {
85
+ maxLength: number;
86
+ homeTeamWins: number;
87
+ awayTeamWins: number;
88
+ gameNumber: number;
89
+ }, {
90
+ maxLength: number;
91
+ homeTeamWins: number;
92
+ awayTeamWins: number;
93
+ gameNumber: number;
94
+ }>>;
79
95
  }, "strip", import("zod").ZodTypeAny, {
80
96
  id: string;
81
97
  round: number;
@@ -98,6 +114,12 @@ export declare const ratingSchema: import("zod").ZodObject<{
98
114
  id?: string | undefined;
99
115
  isWinner?: boolean | undefined;
100
116
  };
117
+ seriesInfo?: {
118
+ maxLength: number;
119
+ homeTeamWins: number;
120
+ awayTeamWins: number;
121
+ gameNumber: number;
122
+ } | undefined;
101
123
  }, {
102
124
  id: string;
103
125
  round: number;
@@ -120,6 +142,12 @@ export declare const ratingSchema: import("zod").ZodObject<{
120
142
  id?: string | undefined;
121
143
  isWinner?: boolean | undefined;
122
144
  };
145
+ seriesInfo?: {
146
+ maxLength: number;
147
+ homeTeamWins: number;
148
+ awayTeamWins: number;
149
+ gameNumber: number;
150
+ } | undefined;
123
151
  }>;
124
152
  userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
125
153
  }, "strip", import("zod").ZodTypeAny, {
@@ -155,6 +183,12 @@ export declare const ratingSchema: import("zod").ZodObject<{
155
183
  id?: string | undefined;
156
184
  isWinner?: boolean | undefined;
157
185
  };
186
+ seriesInfo?: {
187
+ maxLength: number;
188
+ homeTeamWins: number;
189
+ awayTeamWins: number;
190
+ gameNumber: number;
191
+ } | undefined;
158
192
  };
159
193
  comment?: string | undefined;
160
194
  userLikes?: number | undefined;
@@ -191,6 +225,12 @@ export declare const ratingSchema: import("zod").ZodObject<{
191
225
  id?: string | undefined;
192
226
  isWinner?: boolean | undefined;
193
227
  };
228
+ seriesInfo?: {
229
+ maxLength: number;
230
+ homeTeamWins: number;
231
+ awayTeamWins: number;
232
+ gameNumber: number;
233
+ } | undefined;
194
234
  };
195
235
  comment?: string | undefined;
196
236
  userLikes?: number | undefined;
@@ -353,18 +393,52 @@ export declare const createRatingSchema: import("zod").ZodObject<{
353
393
  id?: string | undefined;
354
394
  isWinner?: boolean | undefined;
355
395
  }>;
396
+ seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
397
+ homeTeamWins: import("zod").ZodNumber;
398
+ awayTeamWins: import("zod").ZodNumber;
399
+ gameNumber: import("zod").ZodNumber;
400
+ maxLength: import("zod").ZodNumber;
401
+ }, "strip", import("zod").ZodTypeAny, {
402
+ maxLength: number;
403
+ homeTeamWins: number;
404
+ awayTeamWins: number;
405
+ gameNumber: number;
406
+ }, {
407
+ maxLength: number;
408
+ homeTeamWins: number;
409
+ awayTeamWins: number;
410
+ gameNumber: number;
411
+ }>>;
356
412
  }, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
357
413
  id: string;
358
414
  league: "ncaa" | "nba";
415
+ seriesInfo?: {
416
+ maxLength: number;
417
+ homeTeamWins: number;
418
+ awayTeamWins: number;
419
+ gameNumber: number;
420
+ } | undefined;
359
421
  }, {
360
422
  id: string;
361
423
  league: "ncaa" | "nba";
424
+ seriesInfo?: {
425
+ maxLength: number;
426
+ homeTeamWins: number;
427
+ awayTeamWins: number;
428
+ gameNumber: number;
429
+ } | undefined;
362
430
  }>;
363
431
  }, "strip", import("zod").ZodTypeAny, {
364
432
  rating: number;
365
433
  game: {
366
434
  id: string;
367
435
  league: "ncaa" | "nba";
436
+ seriesInfo?: {
437
+ maxLength: number;
438
+ homeTeamWins: number;
439
+ awayTeamWins: number;
440
+ gameNumber: number;
441
+ } | undefined;
368
442
  };
369
443
  comment?: string | undefined;
370
444
  userLikes?: number | undefined;
@@ -373,6 +447,12 @@ export declare const createRatingSchema: import("zod").ZodObject<{
373
447
  game: {
374
448
  id: string;
375
449
  league: "ncaa" | "nba";
450
+ seriesInfo?: {
451
+ maxLength: number;
452
+ homeTeamWins: number;
453
+ awayTeamWins: number;
454
+ gameNumber: number;
455
+ } | undefined;
376
456
  };
377
457
  comment?: string | undefined;
378
458
  userLikes?: number | undefined;
@@ -21,6 +21,7 @@ exports.ratingSchema = (0, zod_1.object)({
21
21
  league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba")]),
22
22
  homeTeam: game_1.gameTeamSchema,
23
23
  awayTeam: game_1.gameTeamSchema,
24
+ seriesInfo: game_1.seriesInfoSchema.optional(),
24
25
  }),
25
26
  userLikes: (0, zod_1.number)().optional(),
26
27
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
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",