rategame-shared 1.0.35 → 1.0.37

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.
@@ -115,6 +115,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
115
115
  isWinner?: boolean | undefined;
116
116
  };
117
117
  }>;
118
+ ratingLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
118
119
  }, "strip", import("zod").ZodTypeAny, {
119
120
  id: string;
120
121
  user: {
@@ -148,6 +149,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
148
149
  };
149
150
  };
150
151
  comment?: string | undefined;
152
+ ratingLikes?: number | undefined;
151
153
  }, {
152
154
  id: string;
153
155
  user: {
@@ -181,6 +183,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
181
183
  };
182
184
  };
183
185
  comment?: string | undefined;
186
+ ratingLikes?: number | undefined;
184
187
  }>;
185
188
  export declare const searchRatingSchema: import("zod").ZodObject<{
186
189
  q: import("zod").ZodOptional<import("zod").ZodString>;
@@ -263,6 +266,7 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
263
266
  export declare const createRatingSchema: import("zod").ZodObject<{
264
267
  rating: import("zod").ZodNumber;
265
268
  comment: import("zod").ZodOptional<import("zod").ZodString>;
269
+ ratingLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
266
270
  game: import("zod").ZodObject<Omit<{
267
271
  id: import("zod").ZodString;
268
272
  round: import("zod").ZodNumber;
@@ -327,10 +331,12 @@ export declare const createRatingSchema: import("zod").ZodObject<{
327
331
  id: string;
328
332
  };
329
333
  comment?: string | undefined;
334
+ ratingLikes?: number | undefined;
330
335
  }, {
331
336
  rating: number;
332
337
  game: {
333
338
  id: string;
334
339
  };
335
340
  comment?: string | undefined;
341
+ ratingLikes?: number | undefined;
336
342
  }>;
@@ -20,6 +20,7 @@ exports.ratingSchema = (0, zod_1.object)({
20
20
  homeTeam: game_1.gameTeamSchema,
21
21
  awayTeam: game_1.gameTeamSchema,
22
22
  }),
23
+ ratingLikes: (0, zod_1.number)().optional(),
23
24
  });
24
25
  exports.searchRatingSchema = (0, zod_1.object)({
25
26
  q: (0, zod_1.string)().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
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",