rategame-shared 1.0.25 → 1.0.27

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.
@@ -177,7 +177,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
177
177
  teamId: import("zod").ZodOptional<import("zod").ZodString>;
178
178
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
179
179
  createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
180
- sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ranking">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">]>>;
180
+ 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">]>>;
181
181
  limit: import("zod").ZodOptional<import("zod").ZodNumber>;
182
182
  offset: import("zod").ZodOptional<import("zod").ZodNumber>;
183
183
  }, "strip", import("zod").ZodTypeAny, {
@@ -185,7 +185,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
185
185
  teamId?: string | undefined;
186
186
  round?: number | undefined;
187
187
  createdAt?: "12h" | "daily" | "weekly" | undefined;
188
- sortBy?: "ranking" | "createdAt:asc" | "createdAt:desc" | undefined;
188
+ sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
189
189
  limit?: number | undefined;
190
190
  offset?: number | undefined;
191
191
  }, {
@@ -193,7 +193,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
193
193
  teamId?: string | undefined;
194
194
  round?: number | undefined;
195
195
  createdAt?: "12h" | "daily" | "weekly" | undefined;
196
- sortBy?: "ranking" | "createdAt:asc" | "createdAt:desc" | undefined;
196
+ sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
197
197
  limit?: number | undefined;
198
198
  offset?: number | undefined;
199
199
  }>;
@@ -29,7 +29,8 @@ exports.searchRatingSchema = (0, zod_1.object)({
29
29
  (0, zod_1.literal)("weekly"),
30
30
  ]).optional(),
31
31
  sortBy: (0, zod_1.union)([
32
- (0, zod_1.literal)("ranking"),
32
+ (0, zod_1.literal)("rating:asc"),
33
+ (0, zod_1.literal)("rating:desc"),
33
34
  (0, zod_1.literal)("createdAt:asc"),
34
35
  (0, zod_1.literal)("createdAt:desc"),
35
36
  ]).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
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",