rategame-shared 1.0.26 → 1.0.28
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
CHANGED
|
@@ -6,12 +6,15 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
6
6
|
user: import("zod").ZodObject<{
|
|
7
7
|
id: import("zod").ZodString;
|
|
8
8
|
username: import("zod").ZodString;
|
|
9
|
+
avatarUrl: import("zod").ZodString;
|
|
9
10
|
}, "strip", import("zod").ZodTypeAny, {
|
|
10
11
|
id: string;
|
|
11
12
|
username: string;
|
|
13
|
+
avatarUrl: string;
|
|
12
14
|
}, {
|
|
13
15
|
id: string;
|
|
14
16
|
username: string;
|
|
17
|
+
avatarUrl: string;
|
|
15
18
|
}>;
|
|
16
19
|
game: import("zod").ZodObject<{
|
|
17
20
|
id: import("zod").ZodString;
|
|
@@ -114,6 +117,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
114
117
|
user: {
|
|
115
118
|
id: string;
|
|
116
119
|
username: string;
|
|
120
|
+
avatarUrl: string;
|
|
117
121
|
};
|
|
118
122
|
createdAt: number;
|
|
119
123
|
rating: number;
|
|
@@ -145,6 +149,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
145
149
|
user: {
|
|
146
150
|
id: string;
|
|
147
151
|
username: string;
|
|
152
|
+
avatarUrl: string;
|
|
148
153
|
};
|
|
149
154
|
createdAt: number;
|
|
150
155
|
rating: number;
|
|
@@ -177,7 +182,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
177
182
|
teamId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
178
183
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
179
184
|
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<"
|
|
185
|
+
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
186
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
182
187
|
offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
183
188
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -185,7 +190,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
185
190
|
teamId?: string | undefined;
|
|
186
191
|
round?: number | undefined;
|
|
187
192
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
188
|
-
sortBy?: "
|
|
193
|
+
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
189
194
|
limit?: number | undefined;
|
|
190
195
|
offset?: number | undefined;
|
|
191
196
|
}, {
|
|
@@ -193,7 +198,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
193
198
|
teamId?: string | undefined;
|
|
194
199
|
round?: number | undefined;
|
|
195
200
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
196
|
-
sortBy?: "
|
|
201
|
+
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
197
202
|
limit?: number | undefined;
|
|
198
203
|
offset?: number | undefined;
|
|
199
204
|
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -11,6 +11,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
11
11
|
user: (0, zod_1.object)({
|
|
12
12
|
id: (0, zod_1.string)(),
|
|
13
13
|
username: (0, zod_1.string)(),
|
|
14
|
+
avatarUrl: (0, zod_1.string)(),
|
|
14
15
|
}),
|
|
15
16
|
game: (0, zod_1.object)({
|
|
16
17
|
id: (0, zod_1.string)(),
|
|
@@ -29,8 +30,8 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
29
30
|
(0, zod_1.literal)("weekly"),
|
|
30
31
|
]).optional(),
|
|
31
32
|
sortBy: (0, zod_1.union)([
|
|
32
|
-
(0, zod_1.literal)("
|
|
33
|
-
(0, zod_1.literal)("
|
|
33
|
+
(0, zod_1.literal)("rating:asc"),
|
|
34
|
+
(0, zod_1.literal)("rating:desc"),
|
|
34
35
|
(0, zod_1.literal)("createdAt:asc"),
|
|
35
36
|
(0, zod_1.literal)("createdAt:desc"),
|
|
36
37
|
]).optional(),
|