rategame-shared 1.0.24 → 1.0.25

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