rategame-shared 1.0.32 → 1.0.34
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 +17 -12
- package/dist/schemas/rating.js +5 -4
- package/package.json +1 -1
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -6,15 +6,18 @@ 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
|
email: import("zod").ZodString;
|
|
10
11
|
}, "strip", import("zod").ZodTypeAny, {
|
|
11
12
|
id: string;
|
|
12
13
|
email: string;
|
|
13
14
|
username: string;
|
|
15
|
+
avatarUrl: string;
|
|
14
16
|
}, {
|
|
15
17
|
id: string;
|
|
16
18
|
email: string;
|
|
17
19
|
username: string;
|
|
20
|
+
avatarUrl: string;
|
|
18
21
|
}>;
|
|
19
22
|
game: import("zod").ZodObject<{
|
|
20
23
|
id: import("zod").ZodString;
|
|
@@ -118,6 +121,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
118
121
|
id: string;
|
|
119
122
|
email: string;
|
|
120
123
|
username: string;
|
|
124
|
+
avatarUrl: string;
|
|
121
125
|
};
|
|
122
126
|
createdAt: number;
|
|
123
127
|
rating: number;
|
|
@@ -150,6 +154,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
150
154
|
id: string;
|
|
151
155
|
email: string;
|
|
152
156
|
username: string;
|
|
157
|
+
avatarUrl: string;
|
|
153
158
|
};
|
|
154
159
|
createdAt: number;
|
|
155
160
|
rating: number;
|
|
@@ -180,30 +185,30 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
180
185
|
export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
181
186
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
187
|
teamId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
|
-
round: import("zod").ZodOptional<import("zod").
|
|
188
|
+
round: import("zod").ZodOptional<import("zod").ZodString>;
|
|
184
189
|
createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
185
190
|
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">]>>;
|
|
186
|
-
limit: import("zod").ZodOptional<import("zod").
|
|
187
|
-
offset: import("zod").ZodOptional<import("zod").
|
|
191
|
+
limit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
192
|
+
offset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
188
193
|
}, "strip", import("zod").ZodTypeAny, {
|
|
189
194
|
q?: string | undefined;
|
|
190
195
|
teamId?: string | undefined;
|
|
191
|
-
round?:
|
|
196
|
+
round?: string | undefined;
|
|
192
197
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
193
198
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
194
|
-
limit?:
|
|
195
|
-
offset?:
|
|
199
|
+
limit?: string | undefined;
|
|
200
|
+
offset?: string | undefined;
|
|
196
201
|
}, {
|
|
197
202
|
q?: string | undefined;
|
|
198
203
|
teamId?: string | undefined;
|
|
199
|
-
round?:
|
|
204
|
+
round?: string | undefined;
|
|
200
205
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
201
206
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
202
|
-
limit?:
|
|
203
|
-
offset?:
|
|
207
|
+
limit?: string | undefined;
|
|
208
|
+
offset?: string | undefined;
|
|
204
209
|
}>;
|
|
205
210
|
export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
206
|
-
|
|
211
|
+
ratingId: import("zod").ZodString;
|
|
207
212
|
user: import("zod").ZodObject<{
|
|
208
213
|
id: import("zod").ZodString;
|
|
209
214
|
username: import("zod").ZodString;
|
|
@@ -219,20 +224,20 @@ export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
|
219
224
|
}>;
|
|
220
225
|
likedAt: import("zod").ZodNumber;
|
|
221
226
|
}, "strip", import("zod").ZodTypeAny, {
|
|
222
|
-
id: string;
|
|
223
227
|
user: {
|
|
224
228
|
id: string;
|
|
225
229
|
email: string;
|
|
226
230
|
username: string;
|
|
227
231
|
};
|
|
232
|
+
ratingId: string;
|
|
228
233
|
likedAt: number;
|
|
229
234
|
}, {
|
|
230
|
-
id: string;
|
|
231
235
|
user: {
|
|
232
236
|
id: string;
|
|
233
237
|
email: string;
|
|
234
238
|
username: string;
|
|
235
239
|
};
|
|
240
|
+
ratingId: string;
|
|
236
241
|
likedAt: number;
|
|
237
242
|
}>;
|
|
238
243
|
export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
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
|
email: (0, zod_1.string)(),
|
|
15
16
|
}),
|
|
16
17
|
game: (0, zod_1.object)({
|
|
@@ -23,7 +24,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
23
24
|
exports.searchRatingSchema = (0, zod_1.object)({
|
|
24
25
|
q: (0, zod_1.string)().optional(),
|
|
25
26
|
teamId: (0, zod_1.string)().optional(),
|
|
26
|
-
round: (0, zod_1.
|
|
27
|
+
round: (0, zod_1.string)().optional(),
|
|
27
28
|
createdAt: (0, zod_1.union)([
|
|
28
29
|
(0, zod_1.literal)("12h"),
|
|
29
30
|
(0, zod_1.literal)("daily"),
|
|
@@ -35,11 +36,11 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
35
36
|
(0, zod_1.literal)("createdAt:asc"),
|
|
36
37
|
(0, zod_1.literal)("createdAt:desc"),
|
|
37
38
|
]).optional(),
|
|
38
|
-
limit: (0, zod_1.
|
|
39
|
-
offset: (0, zod_1.
|
|
39
|
+
limit: (0, zod_1.string)().optional(),
|
|
40
|
+
offset: (0, zod_1.string)().optional(),
|
|
40
41
|
});
|
|
41
42
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
42
|
-
|
|
43
|
+
ratingId: (0, zod_1.string)(),
|
|
43
44
|
user: (0, zod_1.object)({
|
|
44
45
|
id: (0, zod_1.string)(),
|
|
45
46
|
username: (0, zod_1.string)(),
|