rategame-shared 1.1.210 → 1.1.211

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.
@@ -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>;
@@ -4276,3 +4276,31 @@ 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.ZodString;
4281
+ createdAt: z.ZodString;
4282
+ updatedAt: z.ZodString;
4283
+ offset: z.ZodString;
4284
+ limit: z.ZodString;
4285
+ userId: z.ZodString;
4286
+ showPrivate: z.ZodBoolean;
4287
+ type: z.ZodEnum<["game", "rating"]>;
4288
+ }, "strip", z.ZodTypeAny, {
4289
+ type: "rating" | "game";
4290
+ offset: string;
4291
+ q: string;
4292
+ createdAt: string;
4293
+ updatedAt: string;
4294
+ limit: string;
4295
+ userId: string;
4296
+ showPrivate: boolean;
4297
+ }, {
4298
+ type: "rating" | "game";
4299
+ offset: string;
4300
+ q: string;
4301
+ createdAt: string;
4302
+ updatedAt: string;
4303
+ limit: string;
4304
+ userId: string;
4305
+ showPrivate: boolean;
4306
+ }>;
@@ -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,13 @@ 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(),
46
+ createdAt: zod_1.z.string(),
47
+ updatedAt: zod_1.z.string(),
48
+ offset: zod_1.z.string(),
49
+ limit: zod_1.z.string(),
50
+ userId: zod_1.z.string(),
51
+ showPrivate: zod_1.z.boolean(),
52
+ type: zod_1.z.enum(["game", "rating"]),
53
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.210",
3
+ "version": "1.1.211",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",