@zyacreatives/shared 2.5.20 → 2.5.21

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.
@@ -239,13 +239,6 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
239
239
  version: z.ZodNumber;
240
240
  }, z.core.$strip>;
241
241
  export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
242
- export declare const SearchProjectsInputSchema: z.ZodObject<{
243
- query: z.ZodOptional<z.ZodString>;
244
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
245
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
246
- cursor: z.ZodOptional<z.ZodString>;
247
- }, z.core.$strip>;
248
- export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
249
242
  export declare const CommentOnProjectInputSchema: z.ZodObject<{
250
243
  id: z.ZodCUID2;
251
244
  userId: z.ZodCUID2;
@@ -553,6 +546,38 @@ export declare const ProjectSearchDocumentSchema: z.ZodObject<{
553
546
  }, z.core.$strip>>>;
554
547
  }, z.core.$strip>;
555
548
  export type ProjectSearchDocument = z.infer<typeof ProjectSearchDocumentSchema>;
549
+ export declare const SearchProjectsInputSchema: z.ZodObject<{
550
+ query: z.ZodOptional<z.ZodString>;
551
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
552
+ cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
553
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
554
+ isOpenToInvestment: z.ZodOptional<z.ZodBoolean>;
555
+ minCapital: z.ZodOptional<z.ZodNumber>;
556
+ maxCapital: z.ZodOptional<z.ZodNumber>;
557
+ ventureStages: z.ZodOptional<z.ZodArray<z.ZodEnum<{
558
+ readonly IDEA: "Idea";
559
+ readonly PRE_SEED: "Pre Seed";
560
+ readonly MVP: "MVP";
561
+ readonly SEED: "Seed";
562
+ readonly SERIES_A: "Series A";
563
+ readonly SERIES_B: "Series B";
564
+ readonly SERIES_C: "Series C";
565
+ readonly GROWTH: "Growth";
566
+ readonly EXIT: "Exit";
567
+ }>>>;
568
+ projectCreatorTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
569
+ readonly CREATIVE: "CREATIVE";
570
+ readonly BRAND: "BRAND";
571
+ readonly INVESTOR: "INVESTOR";
572
+ readonly ADMIN: "ADMIN";
573
+ }>>>;
574
+ clientTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
575
+ readonly CREATIVE: "CREATIVE";
576
+ readonly BRAND: "BRAND";
577
+ readonly NONE: "NONE";
578
+ }>>>;
579
+ }, z.core.$strip>;
580
+ export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
556
581
  export declare const SearchProjectsOutputSchema: z.ZodObject<{
557
582
  projects: z.ZodArray<z.ZodObject<{
558
583
  id: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProjectIdSchema = exports.CommentOnProjectOutputSchema = exports.DeleteProjectOutputSchema = exports.UpdateProjectOutputSchema = exports.CreateProjectOutputSchema = exports.ProjectUpdateOutputEntitySchema = exports.ProjectWithProjectBookmarksEntitySchema = exports.ProjectWithProjectViewsEntitySchema = exports.GetProjectWithLikesOutputSchema = exports.ProjectWithLikesEntitySchema = exports.GetProjectWithCommentsOutputSchema = exports.ProjectWithProjectCommentsEntitySchema = exports.SearchProjectsOutputSchema = exports.ProjectSearchDocumentSchema = exports.GetProjectOutputSchema = exports.ProjectDetailsEntitySchema = exports.CommentOnProjectInputSchema = exports.SearchProjectsInputSchema = exports.UpdateProjectInputSchema = exports.CreateProjectInputSchema = exports.ProjectSocialGraphEntitySchema = exports.MinimalProjectSchema = exports.ProjectWithFilesEntitySchema = exports.ProjectEntitySchema = void 0;
3
+ exports.ProjectIdSchema = exports.CommentOnProjectOutputSchema = exports.DeleteProjectOutputSchema = exports.UpdateProjectOutputSchema = exports.CreateProjectOutputSchema = exports.ProjectUpdateOutputEntitySchema = exports.ProjectWithProjectBookmarksEntitySchema = exports.ProjectWithProjectViewsEntitySchema = exports.GetProjectWithLikesOutputSchema = exports.ProjectWithLikesEntitySchema = exports.GetProjectWithCommentsOutputSchema = exports.ProjectWithProjectCommentsEntitySchema = exports.SearchProjectsOutputSchema = exports.SearchProjectsInputSchema = exports.ProjectSearchDocumentSchema = exports.GetProjectOutputSchema = exports.ProjectDetailsEntitySchema = exports.CommentOnProjectInputSchema = exports.UpdateProjectInputSchema = exports.CreateProjectInputSchema = exports.ProjectSocialGraphEntitySchema = exports.MinimalProjectSchema = exports.ProjectWithFilesEntitySchema = exports.ProjectEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  const comment_1 = require("./comment");
@@ -113,14 +113,6 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
113
113
  }
114
114
  })
115
115
  .openapi("UpdateProjectInput");
116
- exports.SearchProjectsInputSchema = zod_openapi_1.z
117
- .object({
118
- query: zod_openapi_1.z.string().optional(),
119
- tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
120
- limit: zod_openapi_1.z.coerce.number().min(1).max(100).default(20),
121
- cursor: zod_openapi_1.z.string().optional(),
122
- })
123
- .openapi("SearchProjectsInput");
124
116
  exports.CommentOnProjectInputSchema = comment_1.CommentEntitySchema;
125
117
  exports.ProjectDetailsEntitySchema = exports.ProjectEntitySchema.extend({
126
118
  user: user_1.MinimalUserSchema,
@@ -158,6 +150,20 @@ exports.ProjectSearchDocumentSchema = zod_openapi_1.z
158
150
  files: zod_openapi_1.z.array(file_1.FileEntitySchema).optional(),
159
151
  })
160
152
  .openapi("ProjectSearchDocument");
153
+ exports.SearchProjectsInputSchema = zod_openapi_1.z
154
+ .object({
155
+ query: zod_openapi_1.z.string().optional(),
156
+ limit: zod_openapi_1.z.number().optional().default(40),
157
+ cursor: zod_openapi_1.z.string().optional().nullable(),
158
+ tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
159
+ isOpenToInvestment: zod_openapi_1.z.boolean().optional(),
160
+ minCapital: zod_openapi_1.z.number().optional(),
161
+ maxCapital: zod_openapi_1.z.number().optional(),
162
+ ventureStages: zod_openapi_1.z.array(zod_openapi_1.z.enum(constants_1.VENTURE_STAGES)).optional(),
163
+ projectCreatorTypes: zod_openapi_1.z.array(zod_openapi_1.z.enum(constants_1.ROLES)).optional(),
164
+ clientTypes: zod_openapi_1.z.array(zod_openapi_1.z.enum(constants_1.CLIENT_TYPES)).optional(),
165
+ })
166
+ .openapi("SearchProjectsInput");
161
167
  exports.SearchProjectsOutputSchema = zod_openapi_1.z
162
168
  .object({
163
169
  projects: zod_openapi_1.z.array(exports.ProjectSearchDocumentSchema),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.20",
3
+ "version": "2.5.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -136,17 +136,6 @@ export const UpdateProjectInputSchema = z
136
136
 
137
137
  export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
138
138
 
139
- export const SearchProjectsInputSchema = z
140
- .object({
141
- query: z.string().optional(),
142
- tags: z.array(z.string()).optional(),
143
- limit: z.coerce.number().min(1).max(100).default(20),
144
- cursor: z.string().optional(),
145
- })
146
- .openapi("SearchProjectsInput");
147
-
148
- export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
149
-
150
139
  export const CommentOnProjectInputSchema = CommentEntitySchema;
151
140
 
152
141
  export type CommentOnProjectInput = z.infer<typeof CommentOnProjectInputSchema>;
@@ -196,6 +185,23 @@ export const ProjectSearchDocumentSchema = z
196
185
 
197
186
  export type ProjectSearchDocument = z.infer<typeof ProjectSearchDocumentSchema>;
198
187
 
188
+ export const SearchProjectsInputSchema = z
189
+ .object({
190
+ query: z.string().optional(),
191
+ limit: z.number().optional().default(40),
192
+ cursor: z.string().optional().nullable(),
193
+ tags: z.array(z.string()).optional(),
194
+ isOpenToInvestment: z.boolean().optional(),
195
+ minCapital: z.number().optional(),
196
+ maxCapital: z.number().optional(),
197
+ ventureStages: z.array(z.enum(VENTURE_STAGES)).optional(),
198
+ projectCreatorTypes: z.array(z.enum(ROLES)).optional(),
199
+ clientTypes: z.array(z.enum(CLIENT_TYPES)).optional(),
200
+ })
201
+ .openapi("SearchProjectsInput");
202
+
203
+ export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
204
+
199
205
  export const SearchProjectsOutputSchema = z
200
206
  .object({
201
207
  projects: z.array(ProjectSearchDocumentSchema),