rategame-shared 1.0.27 → 1.0.29
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 +14 -9
- package/dist/schemas/rating.js +4 -3
- package/package.json +1 -1
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;
|
|
@@ -175,27 +180,27 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
175
180
|
export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
176
181
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
177
182
|
teamId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
178
|
-
round: import("zod").ZodOptional<import("zod").
|
|
183
|
+
round: import("zod").ZodOptional<import("zod").ZodString>;
|
|
179
184
|
createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
180
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
|
-
limit: import("zod").ZodOptional<import("zod").
|
|
182
|
-
offset: import("zod").ZodOptional<import("zod").
|
|
186
|
+
limit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
187
|
+
offset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
188
|
}, "strip", import("zod").ZodTypeAny, {
|
|
184
189
|
q?: string | undefined;
|
|
185
190
|
teamId?: string | undefined;
|
|
186
|
-
round?:
|
|
191
|
+
round?: string | undefined;
|
|
187
192
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
188
193
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
189
|
-
limit?:
|
|
190
|
-
offset?:
|
|
194
|
+
limit?: string | undefined;
|
|
195
|
+
offset?: string | undefined;
|
|
191
196
|
}, {
|
|
192
197
|
q?: string | undefined;
|
|
193
198
|
teamId?: string | undefined;
|
|
194
|
-
round?:
|
|
199
|
+
round?: string | undefined;
|
|
195
200
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
196
201
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
197
|
-
limit?:
|
|
198
|
-
offset?:
|
|
202
|
+
limit?: string | undefined;
|
|
203
|
+
offset?: string | undefined;
|
|
199
204
|
}>;
|
|
200
205
|
export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
201
206
|
id: import("zod").ZodString;
|
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)(),
|
|
@@ -22,7 +23,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
22
23
|
exports.searchRatingSchema = (0, zod_1.object)({
|
|
23
24
|
q: (0, zod_1.string)().optional(),
|
|
24
25
|
teamId: (0, zod_1.string)().optional(),
|
|
25
|
-
round: (0, zod_1.
|
|
26
|
+
round: (0, zod_1.string)().optional(),
|
|
26
27
|
createdAt: (0, zod_1.union)([
|
|
27
28
|
(0, zod_1.literal)("12h"),
|
|
28
29
|
(0, zod_1.literal)("daily"),
|
|
@@ -34,8 +35,8 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
34
35
|
(0, zod_1.literal)("createdAt:asc"),
|
|
35
36
|
(0, zod_1.literal)("createdAt:desc"),
|
|
36
37
|
]).optional(),
|
|
37
|
-
limit: (0, zod_1.
|
|
38
|
-
offset: (0, zod_1.
|
|
38
|
+
limit: (0, zod_1.string)().optional(),
|
|
39
|
+
offset: (0, zod_1.string)().optional(),
|
|
39
40
|
});
|
|
40
41
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
41
42
|
id: (0, zod_1.string)(),
|