rategame-shared 1.0.24 → 1.0.26
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.
- package/dist/schemas/rating.d.ts +6 -3
- package/dist/schemas/rating.js +11 -1
- package/package.json +1 -1
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -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
|
-
|
|
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:asc">, import("zod").ZodLiteral<"ranking:desc">, 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
|
-
|
|
187
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
188
|
+
sortBy?: "ranking:asc" | "ranking:desc" | "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
|
-
|
|
195
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
196
|
+
sortBy?: "ranking:asc" | "ranking:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
194
197
|
limit?: number | undefined;
|
|
195
198
|
offset?: number | undefined;
|
|
196
199
|
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -23,7 +23,17 @@ 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
|
-
|
|
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:asc"),
|
|
33
|
+
(0, zod_1.literal)("ranking:desc"),
|
|
34
|
+
(0, zod_1.literal)("createdAt:asc"),
|
|
35
|
+
(0, zod_1.literal)("createdAt:desc"),
|
|
36
|
+
]).optional(),
|
|
27
37
|
limit: (0, zod_1.number)().optional(),
|
|
28
38
|
offset: (0, zod_1.number)().optional(),
|
|
29
39
|
});
|