rategame-shared 1.0.84 → 1.0.85

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.
@@ -241,7 +241,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
241
241
  round: import("zod").ZodOptional<import("zod").ZodString>;
242
242
  league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
243
243
  createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
244
- 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">]>>;
244
+ 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">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
245
245
  limit: import("zod").ZodOptional<import("zod").ZodString>;
246
246
  offset: import("zod").ZodOptional<import("zod").ZodString>;
247
247
  gameId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -256,7 +256,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
256
256
  username?: string | undefined;
257
257
  createdAt?: "12h" | "daily" | "weekly" | undefined;
258
258
  teamId?: string | undefined;
259
- sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
259
+ sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
260
260
  limit?: string | undefined;
261
261
  comment?: string | undefined;
262
262
  gameId?: string | undefined;
@@ -269,7 +269,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
269
269
  username?: string | undefined;
270
270
  createdAt?: "12h" | "daily" | "weekly" | undefined;
271
271
  teamId?: string | undefined;
272
- sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
272
+ sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
273
273
  limit?: string | undefined;
274
274
  comment?: string | undefined;
275
275
  gameId?: string | undefined;
@@ -40,6 +40,8 @@ exports.searchRatingSchema = (0, zod_1.object)({
40
40
  (0, zod_1.literal)("rating:desc"),
41
41
  (0, zod_1.literal)("createdAt:asc"),
42
42
  (0, zod_1.literal)("createdAt:desc"),
43
+ (0, zod_1.literal)("userLikes:asc"),
44
+ (0, zod_1.literal)("userLikes:desc"),
43
45
  ]).optional(),
44
46
  limit: (0, zod_1.string)().optional(),
45
47
  offset: (0, zod_1.string)().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
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",