rategame-shared 1.0.63 → 1.0.64

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;
@@ -294,6 +299,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
294
299
  game: import("zod").ZodObject<Omit<{
295
300
  id: import("zod").ZodString;
296
301
  round: import("zod").ZodNumber;
302
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
297
303
  homeTeam: import("zod").ZodObject<{
298
304
  id: import("zod").ZodOptional<import("zod").ZodString>;
299
305
  apiTeamId: import("zod").ZodNumber;
@@ -346,13 +352,16 @@ export declare const createRatingSchema: import("zod").ZodObject<{
346
352
  }>;
347
353
  }, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
348
354
  id: string;
355
+ league: "ncaa" | "nba";
349
356
  }, {
350
357
  id: string;
358
+ league: "ncaa" | "nba";
351
359
  }>;
352
360
  }, "strip", import("zod").ZodTypeAny, {
353
361
  rating: number;
354
362
  game: {
355
363
  id: string;
364
+ league: "ncaa" | "nba";
356
365
  };
357
366
  comment?: string | undefined;
358
367
  userLikes?: number | undefined;
@@ -360,6 +369,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
360
369
  rating: number;
361
370
  game: {
362
371
  id: string;
372
+ league: "ncaa" | "nba";
363
373
  };
364
374
  comment?: string | undefined;
365
375
  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
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
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",