rategame-shared 1.0.63 → 1.0.65

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.
@@ -25,6 +25,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
25
25
  game: import("zod").ZodObject<{
26
26
  id: import("zod").ZodString;
27
27
  round: import("zod").ZodNumber;
28
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
28
29
  homeTeam: import("zod").ZodObject<{
29
30
  id: import("zod").ZodOptional<import("zod").ZodString>;
30
31
  apiTeamId: import("zod").ZodNumber;
@@ -78,6 +79,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
78
79
  }, "strip", import("zod").ZodTypeAny, {
79
80
  id: string;
80
81
  round: number;
82
+ league: "ncaa" | "nba";
81
83
  homeTeam: {
82
84
  name: string;
83
85
  image: string;
@@ -99,6 +101,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
99
101
  }, {
100
102
  id: string;
101
103
  round: number;
104
+ league: "ncaa" | "nba";
102
105
  homeTeam: {
103
106
  name: string;
104
107
  image: string;
@@ -133,6 +136,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
133
136
  game: {
134
137
  id: string;
135
138
  round: number;
139
+ league: "ncaa" | "nba";
136
140
  homeTeam: {
137
141
  name: string;
138
142
  image: string;
@@ -168,6 +172,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
168
172
  game: {
169
173
  id: string;
170
174
  round: number;
175
+ league: "ncaa" | "nba";
171
176
  homeTeam: {
172
177
  name: string;
173
178
  image: string;
@@ -194,6 +199,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
194
199
  q: import("zod").ZodOptional<import("zod").ZodString>;
195
200
  teamId: import("zod").ZodOptional<import("zod").ZodString>;
196
201
  round: import("zod").ZodOptional<import("zod").ZodString>;
202
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
197
203
  createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
198
204
  sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">]>>;
199
205
  limit: import("zod").ZodOptional<import("zod").ZodString>;
@@ -201,6 +207,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
201
207
  gameId: import("zod").ZodOptional<import("zod").ZodString>;
202
208
  showEmptyRatings: import("zod").ZodOptional<import("zod").ZodString>;
203
209
  }, "strip", import("zod").ZodTypeAny, {
210
+ league: "ncaa" | "nba";
204
211
  q?: string | undefined;
205
212
  teamId?: string | undefined;
206
213
  round?: string | undefined;
@@ -211,6 +218,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
211
218
  gameId?: string | undefined;
212
219
  showEmptyRatings?: string | undefined;
213
220
  }, {
221
+ league: "ncaa" | "nba";
214
222
  q?: string | undefined;
215
223
  teamId?: string | undefined;
216
224
  round?: string | undefined;
@@ -294,6 +302,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
294
302
  game: import("zod").ZodObject<Omit<{
295
303
  id: import("zod").ZodString;
296
304
  round: import("zod").ZodNumber;
305
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
297
306
  homeTeam: import("zod").ZodObject<{
298
307
  id: import("zod").ZodOptional<import("zod").ZodString>;
299
308
  apiTeamId: import("zod").ZodNumber;
@@ -346,13 +355,16 @@ export declare const createRatingSchema: import("zod").ZodObject<{
346
355
  }>;
347
356
  }, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
348
357
  id: string;
358
+ league: "ncaa" | "nba";
349
359
  }, {
350
360
  id: string;
361
+ league: "ncaa" | "nba";
351
362
  }>;
352
363
  }, "strip", import("zod").ZodTypeAny, {
353
364
  rating: number;
354
365
  game: {
355
366
  id: string;
367
+ league: "ncaa" | "nba";
356
368
  };
357
369
  comment?: string | undefined;
358
370
  userLikes?: number | undefined;
@@ -360,6 +372,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
360
372
  rating: number;
361
373
  game: {
362
374
  id: string;
375
+ league: "ncaa" | "nba";
363
376
  };
364
377
  comment?: string | undefined;
365
378
  userLikes?: number | undefined;
@@ -18,6 +18,7 @@ exports.ratingSchema = (0, zod_1.object)({
18
18
  game: (0, zod_1.object)({
19
19
  id: (0, zod_1.string)(),
20
20
  round: (0, zod_1.number)(),
21
+ league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba")]),
21
22
  homeTeam: game_1.gameTeamSchema,
22
23
  awayTeam: game_1.gameTeamSchema,
23
24
  }),
@@ -27,6 +28,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
27
28
  q: (0, zod_1.string)().optional(),
28
29
  teamId: (0, zod_1.string)().optional(),
29
30
  round: (0, zod_1.string)().optional(),
31
+ league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba")]),
30
32
  createdAt: (0, zod_1.union)([
31
33
  (0, zod_1.literal)("12h"),
32
34
  (0, zod_1.literal)("daily"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
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",