rategame-shared 1.1.210 → 1.1.212
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/models/list.d.ts +2 -1
- package/dist/schemas/list.d.ts +25 -0
- package/dist/schemas/list.js +10 -1
- package/package.json +1 -1
package/dist/models/list.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { listCreateSchema, listSchema, listCommentSchema, listCommentLikeSchema } from "../schemas/list";
|
|
2
|
+
import { listCreateSchema, listSchema, listCommentSchema, listCommentLikeSchema, searchListSchema } from "../schemas/list";
|
|
3
3
|
export type List = z.infer<typeof listSchema>;
|
|
4
4
|
export type ListCreate = z.infer<typeof listCreateSchema>;
|
|
5
5
|
export type ListComment = z.infer<typeof listCommentSchema>;
|
|
6
6
|
export type ListCommentLike = z.infer<typeof listCommentLikeSchema>;
|
|
7
|
+
export type SearchList = z.infer<typeof searchListSchema>;
|
package/dist/schemas/list.d.ts
CHANGED
|
@@ -4276,3 +4276,28 @@ export declare const listCommentLikeSchema: z.ZodObject<{
|
|
|
4276
4276
|
listId: string;
|
|
4277
4277
|
commentParentId?: string | null | undefined;
|
|
4278
4278
|
}>;
|
|
4279
|
+
export declare const searchListSchema: z.ZodObject<{
|
|
4280
|
+
q: z.ZodOptional<z.ZodString>;
|
|
4281
|
+
sortBy: z.ZodOptional<z.ZodString>;
|
|
4282
|
+
offset: z.ZodOptional<z.ZodString>;
|
|
4283
|
+
limit: z.ZodOptional<z.ZodString>;
|
|
4284
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
4285
|
+
showPrivate: z.ZodOptional<z.ZodBoolean>;
|
|
4286
|
+
type: z.ZodOptional<z.ZodEnum<["game", "rating"]>>;
|
|
4287
|
+
}, "strip", z.ZodTypeAny, {
|
|
4288
|
+
type?: "rating" | "game" | undefined;
|
|
4289
|
+
offset?: string | undefined;
|
|
4290
|
+
q?: string | undefined;
|
|
4291
|
+
limit?: string | undefined;
|
|
4292
|
+
sortBy?: string | undefined;
|
|
4293
|
+
userId?: string | undefined;
|
|
4294
|
+
showPrivate?: boolean | undefined;
|
|
4295
|
+
}, {
|
|
4296
|
+
type?: "rating" | "game" | undefined;
|
|
4297
|
+
offset?: string | undefined;
|
|
4298
|
+
q?: string | undefined;
|
|
4299
|
+
limit?: string | undefined;
|
|
4300
|
+
sortBy?: string | undefined;
|
|
4301
|
+
userId?: string | undefined;
|
|
4302
|
+
showPrivate?: boolean | undefined;
|
|
4303
|
+
}>;
|
package/dist/schemas/list.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listCommentLikeSchema = exports.listCommentSchema = exports.listCreateSchema = exports.listSchema = void 0;
|
|
3
|
+
exports.searchListSchema = exports.listCommentLikeSchema = exports.listCommentSchema = exports.listCreateSchema = exports.listSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const user_1 = require("./user");
|
|
6
6
|
exports.listSchema = zod_1.z.object({
|
|
@@ -41,3 +41,12 @@ exports.listCommentLikeSchema = zod_1.z.object({
|
|
|
41
41
|
commentId: zod_1.z.string(),
|
|
42
42
|
commentParentId: zod_1.z.string().nullable().optional(),
|
|
43
43
|
});
|
|
44
|
+
exports.searchListSchema = zod_1.z.object({
|
|
45
|
+
q: zod_1.z.string().optional(),
|
|
46
|
+
sortBy: zod_1.z.string().optional(),
|
|
47
|
+
offset: zod_1.z.string().optional(),
|
|
48
|
+
limit: zod_1.z.string().optional(),
|
|
49
|
+
userId: zod_1.z.string().optional(),
|
|
50
|
+
showPrivate: zod_1.z.boolean().optional(),
|
|
51
|
+
type: zod_1.z.enum(["game", "rating"]).optional(),
|
|
52
|
+
});
|