rategame-shared 1.0.83 → 1.0.85
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
|
@@ -241,20 +241,24 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
241
241
|
round: import("zod").ZodOptional<import("zod").ZodString>;
|
|
242
242
|
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
243
243
|
createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
244
|
-
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">]>>;
|
|
244
|
+
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">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
245
245
|
limit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
246
246
|
offset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
247
247
|
gameId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
248
248
|
showEmptyRatings: import("zod").ZodOptional<import("zod").ZodString>;
|
|
249
|
+
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
250
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
249
251
|
}, "strip", import("zod").ZodTypeAny, {
|
|
250
252
|
league: "nba" | "ncaa";
|
|
251
253
|
offset?: string | undefined;
|
|
252
254
|
round?: string | undefined;
|
|
253
255
|
q?: string | undefined;
|
|
256
|
+
username?: string | undefined;
|
|
254
257
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
255
258
|
teamId?: string | undefined;
|
|
256
|
-
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
259
|
+
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
257
260
|
limit?: string | undefined;
|
|
261
|
+
comment?: string | undefined;
|
|
258
262
|
gameId?: string | undefined;
|
|
259
263
|
showEmptyRatings?: string | undefined;
|
|
260
264
|
}, {
|
|
@@ -262,10 +266,12 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
262
266
|
offset?: string | undefined;
|
|
263
267
|
round?: string | undefined;
|
|
264
268
|
q?: string | undefined;
|
|
269
|
+
username?: string | undefined;
|
|
265
270
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
266
271
|
teamId?: string | undefined;
|
|
267
|
-
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
272
|
+
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
268
273
|
limit?: string | undefined;
|
|
274
|
+
comment?: string | undefined;
|
|
269
275
|
gameId?: string | undefined;
|
|
270
276
|
showEmptyRatings?: string | undefined;
|
|
271
277
|
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -40,11 +40,15 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
40
40
|
(0, zod_1.literal)("rating:desc"),
|
|
41
41
|
(0, zod_1.literal)("createdAt:asc"),
|
|
42
42
|
(0, zod_1.literal)("createdAt:desc"),
|
|
43
|
+
(0, zod_1.literal)("userLikes:asc"),
|
|
44
|
+
(0, zod_1.literal)("userLikes:desc"),
|
|
43
45
|
]).optional(),
|
|
44
46
|
limit: (0, zod_1.string)().optional(),
|
|
45
47
|
offset: (0, zod_1.string)().optional(),
|
|
46
48
|
gameId: (0, zod_1.string)().optional(),
|
|
47
49
|
showEmptyRatings: (0, zod_1.string)().optional(),
|
|
50
|
+
comment: (0, zod_1.string)().optional(),
|
|
51
|
+
username: (0, zod_1.string)().optional(),
|
|
48
52
|
});
|
|
49
53
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
50
54
|
ratingId: (0, zod_1.string)(),
|