@zyacreatives/shared 2.5.15 → 2.5.16

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,7 +1,7 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- /**
3
- * BASE ENTITY SCHEMAS
4
- */
2
+ import { CommentEntitySchema } from "./comment";
3
+ import { ViewEntitySchema } from "./view";
4
+ import { LikeEntitySchema } from "./like";
5
5
  export declare const ProjectEntitySchema: z.ZodObject<{
6
6
  id: z.ZodCUID2;
7
7
  userId: z.ZodCUID2;
@@ -64,6 +64,93 @@ export declare const ProjectEntitySchema: z.ZodObject<{
64
64
  updatedAt: z.ZodCoercedDate<unknown>;
65
65
  version: z.ZodNumber;
66
66
  }, z.core.$strip>;
67
+ export type ProjectEntity = z.infer<typeof ProjectEntitySchema>;
68
+ export declare const ProjectWithFilesEntitySchema: z.ZodObject<{
69
+ id: z.ZodCUID2;
70
+ userId: z.ZodCUID2;
71
+ title: z.ZodString;
72
+ description: z.ZodOptional<z.ZodString>;
73
+ overview: z.ZodOptional<z.ZodString>;
74
+ url: z.ZodOptional<z.ZodURL>;
75
+ imagePlaceholderUrl: z.ZodURL;
76
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ projectCreatorType: z.ZodEnum<{
78
+ readonly CREATIVE: "CREATIVE";
79
+ readonly BRAND: "BRAND";
80
+ readonly INVESTOR: "INVESTOR";
81
+ readonly ADMIN: "ADMIN";
82
+ }>;
83
+ clientId: z.ZodOptional<z.ZodCUID2>;
84
+ status: z.ZodEnum<{
85
+ readonly ACTIVE: "ACTIVE";
86
+ readonly DRAFT: "DRAFT";
87
+ readonly ARCHIVED: "ARCHIVED";
88
+ }>;
89
+ clientType: z.ZodOptional<z.ZodEnum<{
90
+ readonly CREATIVE: "CREATIVE";
91
+ readonly BRAND: "BRAND";
92
+ readonly NONE: "NONE";
93
+ }>>;
94
+ clientName: z.ZodOptional<z.ZodString>;
95
+ isFeatured: z.ZodOptional<z.ZodBoolean>;
96
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
97
+ whoItsFor: z.ZodOptional<z.ZodString>;
98
+ ventureStage: z.ZodOptional<z.ZodEnum<{
99
+ readonly IDEA: "Idea";
100
+ readonly PRE_SEED: "Pre Seed";
101
+ readonly MVP: "MVP";
102
+ readonly SEED: "Seed";
103
+ readonly SERIES_A: "Series A";
104
+ readonly SERIES_B: "Series B";
105
+ readonly SERIES_C: "Series C";
106
+ readonly GROWTH: "Growth";
107
+ readonly EXIT: "Exit";
108
+ }>>;
109
+ capitalLookingToRaise: z.ZodString;
110
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
111
+ readonly USD: "USD (United States Dollar)";
112
+ readonly EUR: "EUR (Euro)";
113
+ readonly GBP: "GBP (British Pound Sterling)";
114
+ readonly NGN: "NGN (Nigerian Naira)";
115
+ readonly CAD: "CAD (Canadian Dollar)";
116
+ readonly AUD: "AUD (Australian Dollar)";
117
+ readonly JPY: "JPY (Japanese Yen)";
118
+ readonly CHF: "CHF (Swiss Franc)";
119
+ readonly INR: "INR (Indian Rupee)";
120
+ readonly ZAR: "ZAR (South African Rand)";
121
+ }>>;
122
+ currentTraction: z.ZodString;
123
+ isOpenToInvestment: z.ZodDefault<z.ZodBoolean>;
124
+ startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
125
+ endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
126
+ createdAt: z.ZodCoercedDate<unknown>;
127
+ updatedAt: z.ZodCoercedDate<unknown>;
128
+ version: z.ZodNumber;
129
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
+ id: z.ZodCUID2;
131
+ key: z.ZodString;
132
+ mimeType: z.ZodString;
133
+ url: z.ZodURL;
134
+ parentId: z.ZodNullable<z.ZodCUID2>;
135
+ parentType: z.ZodNullable<z.ZodEnum<{
136
+ readonly PROJECT: "PROJECT";
137
+ readonly USER: "USER";
138
+ readonly JOB: "JOB";
139
+ readonly POST: "POST";
140
+ readonly PRODUCT: "PRODUCT";
141
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
142
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
143
+ readonly COMMENT: "COMMENT";
144
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
145
+ }>>;
146
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
147
+ order: z.ZodNumber;
148
+ createdAt: z.ZodCoercedDate<unknown>;
149
+ updatedAt: z.ZodCoercedDate<unknown>;
150
+ deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
151
+ }, z.core.$strip>>>;
152
+ }, z.core.$strip>;
153
+ export type ProjectWithFilesEntity = z.infer<typeof ProjectWithFilesEntitySchema>;
67
154
  export declare const MinimalProjectSchema: z.ZodObject<{
68
155
  description: z.ZodOptional<z.ZodString>;
69
156
  title: z.ZodString;
@@ -73,15 +160,13 @@ export declare const MinimalProjectSchema: z.ZodObject<{
73
160
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
74
161
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
75
162
  }, z.core.$strip>;
163
+ export type MinimalProject = z.infer<typeof MinimalProjectSchema>;
76
164
  export declare const ProjectSocialGraphEntitySchema: z.ZodObject<{
77
165
  noOfLikes: z.ZodOptional<z.ZodNumber>;
78
166
  noOfComments: z.ZodOptional<z.ZodNumber>;
79
167
  noOfBookmarks: z.ZodOptional<z.ZodNumber>;
80
168
  noOfViews: z.ZodOptional<z.ZodNumber>;
81
169
  }, z.core.$strip>;
82
- /**
83
- * INPUT SCHEMAS
84
- */
85
170
  export declare const CreateProjectInputSchema: z.ZodObject<{
86
171
  id: z.ZodOptional<z.ZodCUID2>;
87
172
  title: z.ZodString;
@@ -93,6 +178,7 @@ export declare const CreateProjectInputSchema: z.ZodObject<{
93
178
  readonly ARCHIVED: "ARCHIVED";
94
179
  }>>;
95
180
  }, z.core.$strip>;
181
+ export type CreateProjectInput = z.infer<typeof CreateProjectInputSchema>;
96
182
  export declare const UpdateProjectInputSchema: z.ZodObject<{
97
183
  id: z.ZodCUID2;
98
184
  title: z.ZodOptional<z.ZodString>;
@@ -152,12 +238,14 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
152
238
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
153
239
  version: z.ZodNumber;
154
240
  }, z.core.$strip>;
241
+ export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
155
242
  export declare const SearchProjectsInputSchema: z.ZodObject<{
156
243
  query: z.ZodOptional<z.ZodString>;
157
244
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
158
245
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
159
246
  cursor: z.ZodOptional<z.ZodString>;
160
247
  }, z.core.$strip>;
248
+ export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
161
249
  export declare const CommentOnProjectInputSchema: z.ZodObject<{
162
250
  id: z.ZodCUID2;
163
251
  userId: z.ZodCUID2;
@@ -185,9 +273,7 @@ export declare const CommentOnProjectInputSchema: z.ZodObject<{
185
273
  hasReplies: z.ZodOptional<z.ZodBoolean>;
186
274
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
187
275
  }, z.core.$strip>;
188
- /**
189
- * OUTPUT / VIEW SCHEMAS
190
- */
276
+ export type CommentOnProjectInput = z.infer<typeof CommentOnProjectInputSchema>;
191
277
  export declare const ProjectDetailsEntitySchema: z.ZodObject<{
192
278
  id: z.ZodCUID2;
193
279
  userId: z.ZodCUID2;
@@ -262,7 +348,31 @@ export declare const ProjectDetailsEntitySchema: z.ZodObject<{
262
348
  ADMIN: "ADMIN";
263
349
  }>;
264
350
  }, z.core.$strip>;
351
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
352
+ id: z.ZodCUID2;
353
+ key: z.ZodString;
354
+ mimeType: z.ZodString;
355
+ url: z.ZodURL;
356
+ parentId: z.ZodNullable<z.ZodCUID2>;
357
+ parentType: z.ZodNullable<z.ZodEnum<{
358
+ readonly PROJECT: "PROJECT";
359
+ readonly USER: "USER";
360
+ readonly JOB: "JOB";
361
+ readonly POST: "POST";
362
+ readonly PRODUCT: "PRODUCT";
363
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
364
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
365
+ readonly COMMENT: "COMMENT";
366
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
367
+ }>>;
368
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
369
+ order: z.ZodNumber;
370
+ createdAt: z.ZodCoercedDate<unknown>;
371
+ updatedAt: z.ZodCoercedDate<unknown>;
372
+ deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
373
+ }, z.core.$strip>>>;
265
374
  }, z.core.$strip>;
375
+ export type ProjectDetailsEntity = z.infer<typeof ProjectDetailsEntitySchema>;
266
376
  export declare const GetProjectOutputSchema: z.ZodObject<{
267
377
  id: z.ZodCUID2;
268
378
  userId: z.ZodCUID2;
@@ -337,9 +447,33 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
337
447
  ADMIN: "ADMIN";
338
448
  }>;
339
449
  }, z.core.$strip>;
450
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
451
+ id: z.ZodCUID2;
452
+ key: z.ZodString;
453
+ mimeType: z.ZodString;
454
+ url: z.ZodURL;
455
+ parentId: z.ZodNullable<z.ZodCUID2>;
456
+ parentType: z.ZodNullable<z.ZodEnum<{
457
+ readonly PROJECT: "PROJECT";
458
+ readonly USER: "USER";
459
+ readonly JOB: "JOB";
460
+ readonly POST: "POST";
461
+ readonly PRODUCT: "PRODUCT";
462
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
463
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
464
+ readonly COMMENT: "COMMENT";
465
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
466
+ }>>;
467
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
468
+ order: z.ZodNumber;
469
+ createdAt: z.ZodCoercedDate<unknown>;
470
+ updatedAt: z.ZodCoercedDate<unknown>;
471
+ deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
472
+ }, z.core.$strip>>>;
340
473
  isLiked: z.ZodOptional<z.ZodBoolean>;
341
474
  isBookmarked: z.ZodOptional<z.ZodBoolean>;
342
475
  }, z.core.$strip>;
476
+ export type GetProjectOutput = z.infer<typeof GetProjectOutputSchema>;
343
477
  export declare const ProjectSearchDocumentSchema: z.ZodObject<{
344
478
  id: z.ZodString;
345
479
  userId: z.ZodString;
@@ -392,7 +526,31 @@ export declare const ProjectSearchDocumentSchema: z.ZodObject<{
392
526
  isFeatured: z.ZodOptional<z.ZodBoolean>;
393
527
  startDate: z.ZodOptional<z.ZodNumber>;
394
528
  endDate: z.ZodOptional<z.ZodNumber>;
529
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
530
+ id: z.ZodCUID2;
531
+ key: z.ZodString;
532
+ mimeType: z.ZodString;
533
+ url: z.ZodURL;
534
+ parentId: z.ZodNullable<z.ZodCUID2>;
535
+ parentType: z.ZodNullable<z.ZodEnum<{
536
+ readonly PROJECT: "PROJECT";
537
+ readonly USER: "USER";
538
+ readonly JOB: "JOB";
539
+ readonly POST: "POST";
540
+ readonly PRODUCT: "PRODUCT";
541
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
542
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
543
+ readonly COMMENT: "COMMENT";
544
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
545
+ }>>;
546
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
547
+ order: z.ZodNumber;
548
+ createdAt: z.ZodCoercedDate<unknown>;
549
+ updatedAt: z.ZodCoercedDate<unknown>;
550
+ deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
551
+ }, z.core.$strip>>>;
395
552
  }, z.core.$strip>;
553
+ export type ProjectSearchDocument = z.infer<typeof ProjectSearchDocumentSchema>;
396
554
  export declare const SearchProjectsOutputSchema: z.ZodObject<{
397
555
  projects: z.ZodArray<z.ZodObject<{
398
556
  id: z.ZodString;
@@ -446,9 +604,33 @@ export declare const SearchProjectsOutputSchema: z.ZodObject<{
446
604
  isFeatured: z.ZodOptional<z.ZodBoolean>;
447
605
  startDate: z.ZodOptional<z.ZodNumber>;
448
606
  endDate: z.ZodOptional<z.ZodNumber>;
607
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
608
+ id: z.ZodCUID2;
609
+ key: z.ZodString;
610
+ mimeType: z.ZodString;
611
+ url: z.ZodURL;
612
+ parentId: z.ZodNullable<z.ZodCUID2>;
613
+ parentType: z.ZodNullable<z.ZodEnum<{
614
+ readonly PROJECT: "PROJECT";
615
+ readonly USER: "USER";
616
+ readonly JOB: "JOB";
617
+ readonly POST: "POST";
618
+ readonly PRODUCT: "PRODUCT";
619
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
620
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
621
+ readonly COMMENT: "COMMENT";
622
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
623
+ }>>;
624
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
625
+ order: z.ZodNumber;
626
+ createdAt: z.ZodCoercedDate<unknown>;
627
+ updatedAt: z.ZodCoercedDate<unknown>;
628
+ deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
629
+ }, z.core.$strip>>>;
449
630
  }, z.core.$strip>>;
450
631
  nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
451
632
  }, z.core.$strip>;
633
+ export type SearchProjectsOutput = z.infer<typeof SearchProjectsOutputSchema>;
452
634
  export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
453
635
  description: z.ZodOptional<z.ZodString>;
454
636
  title: z.ZodString;
@@ -485,6 +667,7 @@ export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
485
667
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
486
668
  }, z.core.$strip>>;
487
669
  }, z.core.$strip>;
670
+ export type ProjectWithProjectCommentsEntity = z.infer<typeof ProjectWithProjectCommentsEntitySchema>;
488
671
  export declare const GetProjectWithCommentsOutputSchema: z.ZodObject<{
489
672
  description: z.ZodOptional<z.ZodString>;
490
673
  title: z.ZodString;
@@ -522,6 +705,7 @@ export declare const GetProjectWithCommentsOutputSchema: z.ZodObject<{
522
705
  }, z.core.$strip>>;
523
706
  nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
524
707
  }, z.core.$strip>;
708
+ export type GetProjectWithCommentsOutput = z.infer<typeof GetProjectWithCommentsOutputSchema>;
525
709
  export declare const ProjectWithLikesEntitySchema: z.ZodObject<{
526
710
  description: z.ZodOptional<z.ZodString>;
527
711
  title: z.ZodString;
@@ -547,6 +731,7 @@ export declare const ProjectWithLikesEntitySchema: z.ZodObject<{
547
731
  isFollowing: z.ZodOptional<z.ZodBoolean>;
548
732
  }, z.core.$strip>>;
549
733
  }, z.core.$strip>;
734
+ export type ProjectWithLikesEntity = z.infer<typeof ProjectWithLikesEntitySchema>;
550
735
  export declare const GetProjectWithLikesOutputSchema: z.ZodObject<{
551
736
  description: z.ZodOptional<z.ZodString>;
552
737
  title: z.ZodString;
@@ -573,6 +758,7 @@ export declare const GetProjectWithLikesOutputSchema: z.ZodObject<{
573
758
  }, z.core.$strip>>;
574
759
  nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
575
760
  }, z.core.$strip>;
761
+ export type GetProjectWithLikesOutput = z.infer<typeof GetProjectWithLikesOutputSchema>;
576
762
  export declare const ProjectWithProjectViewsEntitySchema: z.ZodObject<{
577
763
  description: z.ZodOptional<z.ZodString>;
578
764
  title: z.ZodString;
@@ -603,6 +789,7 @@ export declare const ProjectWithProjectViewsEntitySchema: z.ZodObject<{
603
789
  viewDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
604
790
  }, z.core.$strip>>;
605
791
  }, z.core.$strip>;
792
+ export type ProjectWithProjectViewsEntity = z.infer<typeof ProjectWithProjectViewsEntitySchema>;
606
793
  export declare const ProjectWithProjectBookmarksEntitySchema: z.ZodObject<{
607
794
  description: z.ZodOptional<z.ZodString>;
608
795
  title: z.ZodString;
@@ -629,6 +816,7 @@ export declare const ProjectWithProjectBookmarksEntitySchema: z.ZodObject<{
629
816
  }>;
630
817
  }, z.core.$strip>>;
631
818
  }, z.core.$strip>;
819
+ export type ProjectWithProjectBookmarksEntity = z.infer<typeof ProjectWithProjectBookmarksEntitySchema>;
632
820
  export declare const ProjectUpdateOutputEntitySchema: z.ZodObject<{
633
821
  id: z.ZodCUID2;
634
822
  }, z.core.$strip>;
@@ -694,6 +882,7 @@ export declare const CreateProjectOutputSchema: z.ZodObject<{
694
882
  updatedAt: z.ZodCoercedDate<unknown>;
695
883
  version: z.ZodNumber;
696
884
  }, z.core.$strip>;
885
+ export type CreateProjectOutput = z.infer<typeof CreateProjectOutputSchema>;
697
886
  export declare const UpdateProjectOutputSchema: z.ZodObject<{
698
887
  id: z.ZodCUID2;
699
888
  userId: z.ZodCUID2;
@@ -756,6 +945,7 @@ export declare const UpdateProjectOutputSchema: z.ZodObject<{
756
945
  updatedAt: z.ZodCoercedDate<unknown>;
757
946
  version: z.ZodNumber;
758
947
  }, z.core.$strip>;
948
+ export type UpdateProjectOutput = z.infer<typeof UpdateProjectOutputSchema>;
759
949
  export declare const DeleteProjectOutputSchema: z.ZodObject<{
760
950
  id: z.ZodCUID2;
761
951
  userId: z.ZodCUID2;
@@ -818,6 +1008,7 @@ export declare const DeleteProjectOutputSchema: z.ZodObject<{
818
1008
  updatedAt: z.ZodCoercedDate<unknown>;
819
1009
  version: z.ZodNumber;
820
1010
  }, z.core.$strip>;
1011
+ export type DeleteProjectOutput = z.infer<typeof DeleteProjectOutputSchema>;
821
1012
  export declare const CommentOnProjectOutputSchema: z.ZodObject<{
822
1013
  id: z.ZodCUID2;
823
1014
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -843,16 +1034,11 @@ export declare const CommentOnProjectOutputSchema: z.ZodObject<{
843
1034
  hasReplies: z.ZodOptional<z.ZodBoolean>;
844
1035
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
845
1036
  }, z.core.$strip>;
846
- /**
847
- * SEARCH & UTILITY SCHEMAS
848
- */
1037
+ export type CommentOnProjectOutput = z.infer<typeof CommentOnProjectOutputSchema>;
849
1038
  export declare const ProjectIdSchema: z.ZodObject<{
850
1039
  projectId: z.ZodCUID2;
851
1040
  }, z.core.$strip>;
852
- export declare const CreateProjectFileInputSchema: z.ZodObject<{
853
- key: z.ZodString;
854
- projectId: z.ZodCUID2;
855
- }, z.core.$strip>;
856
- export declare const DeleteProjectFileInputSchema: z.ZodObject<{
857
- keys: z.ZodArray<z.ZodString>;
858
- }, z.core.$strip>;
1041
+ export type ProjectIdInput = z.infer<typeof ProjectIdSchema>;
1042
+ export type ProjectViewEntity = z.infer<typeof ViewEntitySchema>;
1043
+ export type ProjectLikeEntity = z.infer<typeof LikeEntitySchema>;
1044
+ export type ProjectCommentEntity = z.infer<typeof CommentEntitySchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteProjectFileInputSchema = exports.CreateProjectFileInputSchema = 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.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.ProjectSearchDocumentSchema = exports.GetProjectOutputSchema = exports.ProjectDetailsEntitySchema = exports.CommentOnProjectInputSchema = exports.SearchProjectsInputSchema = 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");
@@ -8,9 +8,7 @@ const bookmark_1 = require("./bookmark");
8
8
  const view_1 = require("./view");
9
9
  const user_1 = require("./user");
10
10
  const activity_1 = require("./activity");
11
- /**
12
- * BASE ENTITY SCHEMAS
13
- */
11
+ const file_1 = require("./file");
14
12
  exports.ProjectEntitySchema = zod_openapi_1.z
15
13
  .object({
16
14
  id: zod_openapi_1.z.cuid2(),
@@ -41,6 +39,9 @@ exports.ProjectEntitySchema = zod_openapi_1.z
41
39
  version: zod_openapi_1.z.number().int(),
42
40
  })
43
41
  .openapi("ProjectEntity");
42
+ exports.ProjectWithFilesEntitySchema = exports.ProjectEntitySchema.extend({
43
+ files: zod_openapi_1.z.array(file_1.FileEntitySchema).optional(),
44
+ }).openapi("ProjectWithFilesEntity");
44
45
  exports.MinimalProjectSchema = exports.ProjectEntitySchema.pick({
45
46
  id: true,
46
47
  title: true,
@@ -58,9 +59,6 @@ exports.ProjectSocialGraphEntitySchema = zod_openapi_1.z
58
59
  noOfViews: zod_openapi_1.z.number().int().optional(),
59
60
  })
60
61
  .openapi("ProjectSocialGraphEntity");
61
- /**
62
- * INPUT SCHEMAS
63
- */
64
62
  exports.CreateProjectInputSchema = zod_openapi_1.z
65
63
  .object({
66
64
  id: zod_openapi_1.z.cuid2().optional(),
@@ -124,11 +122,9 @@ exports.SearchProjectsInputSchema = zod_openapi_1.z
124
122
  })
125
123
  .openapi("SearchProjectsInput");
126
124
  exports.CommentOnProjectInputSchema = comment_1.CommentEntitySchema;
127
- /**
128
- * OUTPUT / VIEW SCHEMAS
129
- */
130
125
  exports.ProjectDetailsEntitySchema = exports.ProjectEntitySchema.extend({
131
126
  user: user_1.MinimalUserSchema,
127
+ files: zod_openapi_1.z.array(file_1.FileEntitySchema).optional(),
132
128
  }).openapi("ProjectDetailsEntity");
133
129
  exports.GetProjectOutputSchema = exports.ProjectDetailsEntitySchema.extend({
134
130
  isLiked: zod_openapi_1.z.boolean().optional(),
@@ -157,6 +153,7 @@ exports.ProjectSearchDocumentSchema = zod_openapi_1.z
157
153
  isFeatured: zod_openapi_1.z.boolean().optional(),
158
154
  startDate: zod_openapi_1.z.number().optional(),
159
155
  endDate: zod_openapi_1.z.number().optional(),
156
+ files: zod_openapi_1.z.array(file_1.FileEntitySchema).optional(),
160
157
  })
161
158
  .openapi("ProjectSearchDocument");
162
159
  exports.SearchProjectsOutputSchema = zod_openapi_1.z
@@ -196,14 +193,4 @@ exports.CommentOnProjectOutputSchema = comment_1.CommentEntitySchema.omit({
196
193
  likesCount: true,
197
194
  isLiked: true,
198
195
  });
199
- /**
200
- * SEARCH & UTILITY SCHEMAS
201
- */
202
196
  exports.ProjectIdSchema = zod_openapi_1.z.object({ projectId: zod_openapi_1.z.cuid2() });
203
- exports.CreateProjectFileInputSchema = zod_openapi_1.z.object({
204
- key: zod_openapi_1.z.string().max(500),
205
- projectId: zod_openapi_1.z.cuid2(),
206
- });
207
- exports.DeleteProjectFileInputSchema = zod_openapi_1.z.object({
208
- keys: zod_openapi_1.z.array(zod_openapi_1.z.string()),
209
- });
@@ -596,6 +596,29 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
596
596
  isFeatured: z.ZodOptional<z.ZodBoolean>;
597
597
  startDate: z.ZodOptional<z.ZodNumber>;
598
598
  endDate: z.ZodOptional<z.ZodNumber>;
599
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
600
+ id: z.ZodCUID2;
601
+ key: z.ZodString;
602
+ mimeType: z.ZodString;
603
+ url: z.ZodURL;
604
+ parentId: z.ZodNullable<z.ZodCUID2>;
605
+ parentType: z.ZodNullable<z.ZodEnum<{
606
+ readonly PROJECT: "PROJECT";
607
+ readonly USER: "USER";
608
+ readonly JOB: "JOB";
609
+ readonly POST: "POST";
610
+ readonly PRODUCT: "PRODUCT";
611
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
612
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
613
+ readonly COMMENT: "COMMENT";
614
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
615
+ }>>;
616
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
617
+ order: z.ZodNumber;
618
+ createdAt: z.ZodCoercedDate<unknown>;
619
+ updatedAt: z.ZodCoercedDate<unknown>;
620
+ deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
621
+ }, z.core.$strip>>>;
599
622
  }, z.core.$strip>;
600
623
  }, z.core.$strip>>;
601
624
  }, z.core.$strip>;
@@ -860,6 +883,29 @@ export declare const GetUserWithProjectBookmarksOutputSchema: z.ZodObject<{
860
883
  isFeatured: z.ZodOptional<z.ZodBoolean>;
861
884
  startDate: z.ZodOptional<z.ZodNumber>;
862
885
  endDate: z.ZodOptional<z.ZodNumber>;
886
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
887
+ id: z.ZodCUID2;
888
+ key: z.ZodString;
889
+ mimeType: z.ZodString;
890
+ url: z.ZodURL;
891
+ parentId: z.ZodNullable<z.ZodCUID2>;
892
+ parentType: z.ZodNullable<z.ZodEnum<{
893
+ readonly PROJECT: "PROJECT";
894
+ readonly USER: "USER";
895
+ readonly JOB: "JOB";
896
+ readonly POST: "POST";
897
+ readonly PRODUCT: "PRODUCT";
898
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
899
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
900
+ readonly COMMENT: "COMMENT";
901
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
902
+ }>>;
903
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
904
+ order: z.ZodNumber;
905
+ createdAt: z.ZodCoercedDate<unknown>;
906
+ updatedAt: z.ZodCoercedDate<unknown>;
907
+ deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
908
+ }, z.core.$strip>>>;
863
909
  }, z.core.$strip>;
864
910
  }, z.core.$strip>>;
865
911
  }, z.core.$strip>;
@@ -1515,6 +1561,29 @@ export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.Zod
1515
1561
  isFeatured: z.ZodOptional<z.ZodBoolean>;
1516
1562
  startDate: z.ZodOptional<z.ZodNumber>;
1517
1563
  endDate: z.ZodOptional<z.ZodNumber>;
1564
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1565
+ id: z.ZodCUID2;
1566
+ key: z.ZodString;
1567
+ mimeType: z.ZodString;
1568
+ url: z.ZodURL;
1569
+ parentId: z.ZodNullable<z.ZodCUID2>;
1570
+ parentType: z.ZodNullable<z.ZodEnum<{
1571
+ readonly PROJECT: "PROJECT";
1572
+ readonly USER: "USER";
1573
+ readonly JOB: "JOB";
1574
+ readonly POST: "POST";
1575
+ readonly PRODUCT: "PRODUCT";
1576
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
1577
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1578
+ readonly COMMENT: "COMMENT";
1579
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
1580
+ }>>;
1581
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
1582
+ order: z.ZodNumber;
1583
+ createdAt: z.ZodCoercedDate<unknown>;
1584
+ updatedAt: z.ZodCoercedDate<unknown>;
1585
+ deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1586
+ }, z.core.$strip>>>;
1518
1587
  }, z.core.$strip>;
1519
1588
  }, z.core.$strip>>;
1520
1589
  }, z.core.$strip>;
@@ -3,7 +3,6 @@ export * from "./bookmark";
3
3
  export * from "./like";
4
4
  export * from "./common";
5
5
  export * from "./discipline";
6
- export * from "./project";
7
6
  export * from "./user";
8
7
  export * from "./comment";
9
8
  export * from "./username";
@@ -19,7 +19,6 @@ __exportStar(require("./bookmark"), exports);
19
19
  __exportStar(require("./like"), exports);
20
20
  __exportStar(require("./common"), exports);
21
21
  __exportStar(require("./discipline"), exports);
22
- __exportStar(require("./project"), exports);
23
22
  __exportStar(require("./user"), exports);
24
23
  __exportStar(require("./comment"), exports);
25
24
  __exportStar(require("./username"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.15",
3
+ "version": "2.5.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,10 +11,8 @@ import { BookmarkEntitySchema } from "./bookmark";
11
11
  import { ViewEntitySchema } from "./view";
12
12
  import { MinimalUserSchema } from "./user";
13
13
  import { ActivitySchema } from "./activity";
14
-
15
- /**
16
- * BASE ENTITY SCHEMAS
17
- */
14
+ import { FileEntitySchema } from "./file";
15
+ import { LikeEntitySchema } from "./like";
18
16
 
19
17
  export const ProjectEntitySchema = z
20
18
  .object({
@@ -47,6 +45,16 @@ export const ProjectEntitySchema = z
47
45
  })
48
46
  .openapi("ProjectEntity");
49
47
 
48
+ export type ProjectEntity = z.infer<typeof ProjectEntitySchema>;
49
+
50
+ export const ProjectWithFilesEntitySchema = ProjectEntitySchema.extend({
51
+ files: z.array(FileEntitySchema).optional(),
52
+ }).openapi("ProjectWithFilesEntity");
53
+
54
+ export type ProjectWithFilesEntity = z.infer<
55
+ typeof ProjectWithFilesEntitySchema
56
+ >;
57
+
50
58
  export const MinimalProjectSchema = ProjectEntitySchema.pick({
51
59
  id: true,
52
60
  title: true,
@@ -57,6 +65,8 @@ export const MinimalProjectSchema = ProjectEntitySchema.pick({
57
65
  imagePlaceholderUrl: true,
58
66
  }).openapi("MinimalProject");
59
67
 
68
+ export type MinimalProject = z.infer<typeof MinimalProjectSchema>;
69
+
60
70
  export const ProjectSocialGraphEntitySchema = z
61
71
  .object({
62
72
  noOfLikes: z.number().int().optional(),
@@ -66,10 +76,6 @@ export const ProjectSocialGraphEntitySchema = z
66
76
  })
67
77
  .openapi("ProjectSocialGraphEntity");
68
78
 
69
- /**
70
- * INPUT SCHEMAS
71
- */
72
-
73
79
  export const CreateProjectInputSchema = z
74
80
  .object({
75
81
  id: z.cuid2().optional(),
@@ -80,6 +86,8 @@ export const CreateProjectInputSchema = z
80
86
  })
81
87
  .openapi("CreateProjectInput");
82
88
 
89
+ export type CreateProjectInput = z.infer<typeof CreateProjectInputSchema>;
90
+
83
91
  export const UpdateProjectInputSchema = z
84
92
  .object({
85
93
  id: z.cuid2(),
@@ -126,6 +134,8 @@ export const UpdateProjectInputSchema = z
126
134
  })
127
135
  .openapi("UpdateProjectInput");
128
136
 
137
+ export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
138
+
129
139
  export const SearchProjectsInputSchema = z
130
140
  .object({
131
141
  query: z.string().optional(),
@@ -135,21 +145,26 @@ export const SearchProjectsInputSchema = z
135
145
  })
136
146
  .openapi("SearchProjectsInput");
137
147
 
148
+ export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
149
+
138
150
  export const CommentOnProjectInputSchema = CommentEntitySchema;
139
151
 
140
- /**
141
- * OUTPUT / VIEW SCHEMAS
142
- */
152
+ export type CommentOnProjectInput = z.infer<typeof CommentOnProjectInputSchema>;
143
153
 
144
154
  export const ProjectDetailsEntitySchema = ProjectEntitySchema.extend({
145
155
  user: MinimalUserSchema,
156
+ files: z.array(FileEntitySchema).optional(),
146
157
  }).openapi("ProjectDetailsEntity");
147
158
 
159
+ export type ProjectDetailsEntity = z.infer<typeof ProjectDetailsEntitySchema>;
160
+
148
161
  export const GetProjectOutputSchema = ProjectDetailsEntitySchema.extend({
149
162
  isLiked: z.boolean().optional(),
150
163
  isBookmarked: z.boolean().optional(),
151
164
  }).openapi("GetProjectOutput");
152
165
 
166
+ export type GetProjectOutput = z.infer<typeof GetProjectOutputSchema>;
167
+
153
168
  export const ProjectSearchDocumentSchema = z
154
169
  .object({
155
170
  id: z.string(),
@@ -173,9 +188,12 @@ export const ProjectSearchDocumentSchema = z
173
188
  isFeatured: z.boolean().optional(),
174
189
  startDate: z.number().optional(),
175
190
  endDate: z.number().optional(),
191
+ files: z.array(FileEntitySchema).optional(),
176
192
  })
177
193
  .openapi("ProjectSearchDocument");
178
194
 
195
+ export type ProjectSearchDocument = z.infer<typeof ProjectSearchDocumentSchema>;
196
+
179
197
  export const SearchProjectsOutputSchema = z
180
198
  .object({
181
199
  projects: z.array(ProjectSearchDocumentSchema),
@@ -183,16 +201,26 @@ export const SearchProjectsOutputSchema = z
183
201
  })
184
202
  .openapi("SearchProjectsOutput");
185
203
 
204
+ export type SearchProjectsOutput = z.infer<typeof SearchProjectsOutputSchema>;
205
+
186
206
  export const ProjectWithProjectCommentsEntitySchema =
187
207
  MinimalProjectSchema.extend({
188
208
  comments: z.array(CommentEntitySchema),
189
209
  }).openapi("ProjectWithProjectCommentsEntity");
190
210
 
211
+ export type ProjectWithProjectCommentsEntity = z.infer<
212
+ typeof ProjectWithProjectCommentsEntitySchema
213
+ >;
214
+
191
215
  export const GetProjectWithCommentsOutputSchema =
192
216
  ProjectWithProjectCommentsEntitySchema.extend({
193
217
  nextCursor: z.string().optional().nullable(),
194
218
  }).openapi("GetProjectWithCommentsOutput");
195
219
 
220
+ export type GetProjectWithCommentsOutput = z.infer<
221
+ typeof GetProjectWithCommentsOutputSchema
222
+ >;
223
+
196
224
  export const ProjectWithLikesEntitySchema = MinimalProjectSchema.extend({
197
225
  likes: z.array(
198
226
  ActivitySchema.extend({
@@ -202,42 +230,60 @@ export const ProjectWithLikesEntitySchema = MinimalProjectSchema.extend({
202
230
  ),
203
231
  }).openapi("ProjectWithLikesEntity");
204
232
 
233
+ export type ProjectWithLikesEntity = z.infer<
234
+ typeof ProjectWithLikesEntitySchema
235
+ >;
236
+
205
237
  export const GetProjectWithLikesOutputSchema =
206
238
  ProjectWithLikesEntitySchema.extend({
207
239
  nextCursor: z.string().optional().nullable(),
208
240
  }).openapi("GetProjectWithLikesOutput");
209
241
 
242
+ export type GetProjectWithLikesOutput = z.infer<
243
+ typeof GetProjectWithLikesOutputSchema
244
+ >;
245
+
210
246
  export const ProjectWithProjectViewsEntitySchema = MinimalProjectSchema.extend({
211
247
  views: z.array(ViewEntitySchema),
212
248
  }).openapi("ProjectWithProjectViewsEntity");
213
249
 
250
+ export type ProjectWithProjectViewsEntity = z.infer<
251
+ typeof ProjectWithProjectViewsEntitySchema
252
+ >;
253
+
214
254
  export const ProjectWithProjectBookmarksEntitySchema =
215
255
  MinimalProjectSchema.extend({
216
256
  bookmarks: z.array(BookmarkEntitySchema),
217
257
  }).openapi("ProjectWithProjectBookmarksEntity");
218
258
 
259
+ export type ProjectWithProjectBookmarksEntity = z.infer<
260
+ typeof ProjectWithProjectBookmarksEntitySchema
261
+ >;
262
+
219
263
  export const ProjectUpdateOutputEntitySchema = z.object({
220
264
  id: z.cuid2(),
221
265
  });
266
+
222
267
  export const CreateProjectOutputSchema = ProjectEntitySchema;
268
+ export type CreateProjectOutput = z.infer<typeof CreateProjectOutputSchema>;
269
+
223
270
  export const UpdateProjectOutputSchema = ProjectEntitySchema;
271
+ export type UpdateProjectOutput = z.infer<typeof UpdateProjectOutputSchema>;
272
+
224
273
  export const DeleteProjectOutputSchema = ProjectEntitySchema;
274
+ export type DeleteProjectOutput = z.infer<typeof DeleteProjectOutputSchema>;
275
+
225
276
  export const CommentOnProjectOutputSchema = CommentEntitySchema.omit({
226
277
  likesCount: true,
227
278
  isLiked: true,
228
279
  });
229
-
230
- /**
231
- * SEARCH & UTILITY SCHEMAS
232
- */
280
+ export type CommentOnProjectOutput = z.infer<
281
+ typeof CommentOnProjectOutputSchema
282
+ >;
233
283
 
234
284
  export const ProjectIdSchema = z.object({ projectId: z.cuid2() });
285
+ export type ProjectIdInput = z.infer<typeof ProjectIdSchema>;
235
286
 
236
- export const CreateProjectFileInputSchema = z.object({
237
- key: z.string().max(500),
238
- projectId: z.cuid2(),
239
- });
240
-
241
- export const DeleteProjectFileInputSchema = z.object({
242
- keys: z.array(z.string()),
243
- });
287
+ export type ProjectViewEntity = z.infer<typeof ViewEntitySchema>;
288
+ export type ProjectLikeEntity = z.infer<typeof LikeEntitySchema>;
289
+ export type ProjectCommentEntity = z.infer<typeof CommentEntitySchema>;
@@ -3,7 +3,6 @@ export * from "./bookmark";
3
3
  export * from "./like";
4
4
  export * from "./common";
5
5
  export * from "./discipline";
6
- export * from "./project";
7
6
  export * from "./user";
8
7
  export * from "./comment";
9
8
  export * from "./username";
@@ -1,81 +0,0 @@
1
- import type { z } from "@hono/zod-openapi";
2
- import type {
3
- ProjectEntitySchema,
4
- ProjectIdSchema,
5
- MinimalProjectSchema,
6
- ProjectDetailsEntitySchema,
7
- ProjectWithProjectViewsEntitySchema,
8
- ProjectWithProjectCommentsEntitySchema,
9
- ProjectWithLikesEntitySchema,
10
- ProjectWithProjectBookmarksEntitySchema,
11
- CreateProjectInputSchema,
12
- CreateProjectOutputSchema,
13
- UpdateProjectInputSchema,
14
- UpdateProjectOutputSchema,
15
- DeleteProjectOutputSchema,
16
- GetProjectOutputSchema,
17
- SearchProjectsInputSchema,
18
- SearchProjectsOutputSchema,
19
- GetProjectWithLikesOutputSchema,
20
- GetProjectWithCommentsOutputSchema,
21
- CommentOnProjectInputSchema,
22
- CommentOnProjectOutputSchema,
23
- ProjectSearchDocumentSchema,
24
- CreateProjectFileInputSchema,
25
- DeleteProjectFileInputSchema,
26
- } from "../schemas/project";
27
- import { ViewEntitySchema } from "../schemas/view";
28
- import { LikeEntitySchema } from "../schemas/like";
29
- import { CommentEntitySchema } from "../schemas/comment";
30
-
31
- export type ProjectEntity = z.infer<typeof ProjectEntitySchema>;
32
- export type ProjectIdInput = z.infer<typeof ProjectIdSchema>;
33
- export type MinimalProject = z.infer<typeof MinimalProjectSchema>;
34
- export type ProjectViewEntity = z.infer<typeof ViewEntitySchema>;
35
- export type ProjectLikeEntity = z.infer<typeof LikeEntitySchema>;
36
- export type ProjectCommentEntity = z.infer<typeof CommentEntitySchema>;
37
-
38
- export type ProjectDetailsEntity = z.infer<typeof ProjectDetailsEntitySchema>;
39
- export type ProjectWithProjectViewsEntity = z.infer<
40
- typeof ProjectWithProjectViewsEntitySchema
41
- >;
42
- export type ProjectWithProjectCommentsEntity = z.infer<
43
- typeof ProjectWithProjectCommentsEntitySchema
44
- >;
45
- export type ProjectWithLikesEntity = z.infer<
46
- typeof ProjectWithLikesEntitySchema
47
- >;
48
- export type ProjectWithProjectBookmarksEntity = z.infer<
49
- typeof ProjectWithProjectBookmarksEntitySchema
50
- >;
51
-
52
- export type CreateProjectInput = z.infer<typeof CreateProjectInputSchema>;
53
- export type CreateProjectOutput = z.infer<typeof CreateProjectOutputSchema>;
54
- export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
55
- export type UpdateProjectOutput = z.infer<typeof UpdateProjectOutputSchema>;
56
- export type DeleteProjectOutput = z.infer<typeof DeleteProjectOutputSchema>;
57
-
58
- export type GetProjectOutput = z.infer<typeof GetProjectOutputSchema>;
59
- export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
60
- export type SearchProjectsOutput = z.infer<typeof SearchProjectsOutputSchema>;
61
-
62
- export type GetProjectWithCommentsOutput = z.infer<
63
- typeof GetProjectWithCommentsOutputSchema
64
- >;
65
-
66
- export type GetProjectWithLikesOutput = z.infer<
67
- typeof GetProjectWithLikesOutputSchema
68
- >;
69
-
70
- export type CommentOnProjectInput = z.infer<typeof CommentOnProjectInputSchema>;
71
-
72
- export type CommentOnProjectOutput = z.infer<
73
- typeof CommentOnProjectOutputSchema
74
- >;
75
-
76
- export type ProjectSearchDocument = z.infer<typeof ProjectSearchDocumentSchema>;
77
-
78
- export type ProjectFileInput = z.infer<typeof CreateProjectFileInputSchema>;
79
- export type DeleteProjectFileInput = z.infer<
80
- typeof DeleteProjectFileInputSchema
81
- >;