rategame-shared 1.0.36 → 1.0.38

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
+ userLikes: 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
+ userLikes?: 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
+ userLikes?: number | undefined;
184
187
  }>;
185
188
  export declare const searchRatingSchema: import("zod").ZodObject<{
186
189
  q: import("zod").ZodOptional<import("zod").ZodString>;
@@ -190,7 +193,6 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
190
193
  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">]>>;
191
194
  limit: import("zod").ZodOptional<import("zod").ZodString>;
192
195
  offset: import("zod").ZodOptional<import("zod").ZodString>;
193
- ratingLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
194
196
  }, "strip", import("zod").ZodTypeAny, {
195
197
  q?: string | undefined;
196
198
  teamId?: string | undefined;
@@ -199,7 +201,6 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
199
201
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
200
202
  limit?: string | undefined;
201
203
  offset?: string | undefined;
202
- ratingLikes?: number | undefined;
203
204
  }, {
204
205
  q?: string | undefined;
205
206
  teamId?: string | undefined;
@@ -208,7 +209,6 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
208
209
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
209
210
  limit?: string | undefined;
210
211
  offset?: string | undefined;
211
- ratingLikes?: number | undefined;
212
212
  }>;
213
213
  export declare const ratingLikeSchema: import("zod").ZodObject<{
214
214
  ratingId: import("zod").ZodString;
@@ -266,6 +266,7 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
266
266
  export declare const createRatingSchema: import("zod").ZodObject<{
267
267
  rating: import("zod").ZodNumber;
268
268
  comment: import("zod").ZodOptional<import("zod").ZodString>;
269
+ userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
269
270
  game: import("zod").ZodObject<Omit<{
270
271
  id: import("zod").ZodString;
271
272
  round: import("zod").ZodNumber;
@@ -330,10 +331,12 @@ export declare const createRatingSchema: import("zod").ZodObject<{
330
331
  id: string;
331
332
  };
332
333
  comment?: string | undefined;
334
+ userLikes?: number | undefined;
333
335
  }, {
334
336
  rating: number;
335
337
  game: {
336
338
  id: string;
337
339
  };
338
340
  comment?: string | undefined;
341
+ userLikes?: number | undefined;
339
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
+ userLikes: (0, zod_1.number)().optional(),
23
24
  });
24
25
  exports.searchRatingSchema = (0, zod_1.object)({
25
26
  q: (0, zod_1.string)().optional(),
@@ -38,7 +39,6 @@ exports.searchRatingSchema = (0, zod_1.object)({
38
39
  ]).optional(),
39
40
  limit: (0, zod_1.string)().optional(),
40
41
  offset: (0, zod_1.string)().optional(),
41
- ratingLikes: (0, zod_1.number)().optional(),
42
42
  });
43
43
  exports.ratingLikeSchema = (0, zod_1.object)({
44
44
  ratingId: (0, zod_1.string)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
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",