@zyacreatives/shared 2.2.64 → 2.2.66

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,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchUsersOutputSchema = exports.SearchUsersInputSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.UserWithPostsEntitySchema = exports.GetUserFollowingOutputSchema = exports.GetUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithPostBookmarksEntitySchema = exports.UserWithPostLikesEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserStatsEntitySchema = exports.MinimalUserSchema = exports.UserEntitySchema = void 0;
3
+ exports.UserSearchDocumentSchema = exports.SearchUsersOutputSchema = exports.SearchUsersInputSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.UserWithPostsEntitySchema = exports.GetUserFollowingOutputSchema = exports.GetUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithPostBookmarksEntitySchema = exports.UserWithPostLikesEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserStatsEntitySchema = exports.MinimalUserSchema = exports.UserEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  const project_1 = require("./project");
@@ -35,9 +35,9 @@ exports.UserEntitySchema = zod_openapi_1.z
35
35
  .openapi({
36
36
  example: "DONE",
37
37
  }),
38
- createdAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
39
- version: zod_openapi_1.z.int(),
40
- updatedAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
38
+ createdAt: zod_openapi_1.z.coerce.date().openapi({ example: "2026-03-11T09:00:00.000Z" }),
39
+ version: zod_openapi_1.z.int().openapi({ example: 1 }),
40
+ updatedAt: zod_openapi_1.z.coerce.date().openapi({ example: "2026-03-11T09:00:00.000Z" }),
41
41
  })
42
42
  .openapi("BaseUserEntity");
43
43
  exports.MinimalUserSchema = exports.UserEntitySchema.pick({
@@ -49,25 +49,33 @@ exports.MinimalUserSchema = exports.UserEntitySchema.pick({
49
49
  role: true,
50
50
  }).openapi("MinimalUser");
51
51
  exports.UserStatsEntitySchema = zod_openapi_1.z.object({
52
- followerCount: zod_openapi_1.z.int(),
53
- followingCount: zod_openapi_1.z.int(),
54
- followingIds: zod_openapi_1.z.array(zod_openapi_1.z.string()),
52
+ followerCount: zod_openapi_1.z.int().openapi({ example: 1540 }),
53
+ followingCount: zod_openapi_1.z.int().openapi({ example: 234 }),
54
+ followingIds: zod_openapi_1.z
55
+ .array(zod_openapi_1.z.cuid2())
56
+ .openapi({ example: ["cksd0v6q0000s9a5y8z7p3x9", "clm1a2b3c0000abc"] }),
55
57
  });
56
58
  exports.UserProfileEntitySchema = exports.UserEntitySchema.extend({
57
- profileType: zod_openapi_1.z.enum(["creative", "brand", "investor"]).optional(),
59
+ profileType: zod_openapi_1.z
60
+ .enum(["creative", "brand", "investor"])
61
+ .optional()
62
+ .openapi({ example: "creative" }),
58
63
  brand: brand_1.BrandEntitySchema,
59
64
  creative: creative_1.CreativeEntitySchema,
60
65
  investor: investor_1.InvestorEntitySchema,
61
66
  }).openapi("UserProfileEntity");
62
67
  exports.UserWithProjectsEntitySchema = zod_openapi_1.z
63
68
  .object({
64
- userId: zod_openapi_1.z.cuid2(),
65
- projects: zod_openapi_1.z.array(project_1.ProjectEntitySchema.omit({ overview: true })),
69
+ userId: zod_openapi_1.z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
70
+ projects: zod_openapi_1.z
71
+ .array(project_1.ProjectEntitySchema.omit({ overview: true }))
72
+ .openapi({ example: [] }),
66
73
  })
67
74
  .openapi("UserWithProjectsEntity");
68
75
  exports.UserWithProjectLikesEntitySchema = zod_openapi_1.z.object({
69
- userId: zod_openapi_1.z.cuid2(),
70
- projectLikes: zod_openapi_1.z.array(like_1.LikeEntitySchema.extend({
76
+ userId: zod_openapi_1.z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
77
+ projectLikes: zod_openapi_1.z
78
+ .array(like_1.LikeEntitySchema.extend({
71
79
  project: project_1.ProjectEntitySchema.pick({
72
80
  id: true,
73
81
  title: true,
@@ -77,25 +85,29 @@ exports.UserWithProjectLikesEntitySchema = zod_openapi_1.z.object({
77
85
  endDate: true,
78
86
  imagePlaceholderUrl: true,
79
87
  }),
80
- })),
88
+ }))
89
+ .openapi({ example: [] }),
81
90
  });
82
91
  exports.UserWithPostLikesEntitySchema = zod_openapi_1.z.object({
83
- userId: zod_openapi_1.z.cuid2(),
84
- postLikes: zod_openapi_1.z.array(like_1.LikeEntitySchema.extend({
92
+ userId: zod_openapi_1.z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
93
+ postLikes: zod_openapi_1.z
94
+ .array(like_1.LikeEntitySchema.extend({
85
95
  post: post_1.PostEntitySchema.pick({
86
96
  id: true,
87
97
  parentId: true,
88
- title: true,
98
+ title: true, // Note: Make sure 'title' exists on PostEntitySchema in your post.ts!
89
99
  content: true,
90
100
  tags: true,
91
101
  createdAt: true,
92
- updatedAt: true,
102
+ updatedAt: true, // Note: Make sure 'updatedAt' exists on PostEntitySchema as well!
93
103
  }),
94
- })),
104
+ }))
105
+ .openapi({ example: [] }),
95
106
  });
96
107
  exports.UserWithPostBookmarksEntitySchema = zod_openapi_1.z.object({
97
- userId: zod_openapi_1.z.cuid2(),
98
- postBookmarks: zod_openapi_1.z.array(bookmark_1.BookmarkEntitySchema.extend({
108
+ userId: zod_openapi_1.z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
109
+ postBookmarks: zod_openapi_1.z
110
+ .array(bookmark_1.BookmarkEntitySchema.extend({
99
111
  post: post_1.PostEntitySchema.pick({
100
112
  id: true,
101
113
  parentId: true,
@@ -105,12 +117,14 @@ exports.UserWithPostBookmarksEntitySchema = zod_openapi_1.z.object({
105
117
  createdAt: true,
106
118
  updatedAt: true,
107
119
  }),
108
- })),
120
+ }))
121
+ .openapi({ example: [] }),
109
122
  });
110
123
  exports.UserWithProjectBookmarksEntitySchema = zod_openapi_1.z
111
124
  .object({
112
- userId: zod_openapi_1.z.cuid2(),
113
- projectBookmarks: zod_openapi_1.z.array(bookmark_1.BookmarkEntitySchema.extend({
125
+ userId: zod_openapi_1.z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
126
+ projectBookmarks: zod_openapi_1.z
127
+ .array(bookmark_1.BookmarkEntitySchema.extend({
114
128
  project: project_1.ProjectEntitySchema.pick({
115
129
  id: true,
116
130
  title: true,
@@ -120,7 +134,8 @@ exports.UserWithProjectBookmarksEntitySchema = zod_openapi_1.z
120
134
  endDate: true,
121
135
  imagePlaceholderUrl: true,
122
136
  }),
123
- })),
137
+ }))
138
+ .openapi({ example: [] }),
124
139
  })
125
140
  .openapi("UserWithProjectBookmarksEntity");
126
141
  exports.GetUserFollowingInputSchema = zod_openapi_1.z.object({
@@ -134,37 +149,47 @@ exports.GetUserFollowersInputSchema = zod_openapi_1.z.object({
134
149
  exports.UserWithFollowingEntitySchema = exports.MinimalUserSchema.extend({
135
150
  following: zod_openapi_1.z
136
151
  .array(exports.MinimalUserSchema.extend({
137
- isFollowing: zod_openapi_1.z.boolean().optional(),
138
- followsYou: zod_openapi_1.z.boolean().optional(),
152
+ isFollowing: zod_openapi_1.z.boolean().optional().openapi({ example: true }),
153
+ followsYou: zod_openapi_1.z.boolean().optional().openapi({ example: false }),
139
154
  }))
140
- .openapi({ description: "List of users this user is following." }),
155
+ .openapi({
156
+ description: "List of users this user is following.",
157
+ example: [],
158
+ }),
141
159
  }).openapi("UserWithFollowingEntity");
142
160
  exports.UserWithFollowersEntitySchema = exports.MinimalUserSchema.extend({
143
161
  followers: zod_openapi_1.z
144
162
  .array(exports.MinimalUserSchema.extend({
145
- isFollowing: zod_openapi_1.z.boolean().optional(),
146
- followsYou: zod_openapi_1.z.boolean().optional(),
163
+ isFollowing: zod_openapi_1.z.boolean().optional().openapi({ example: false }),
164
+ followsYou: zod_openapi_1.z.boolean().optional().openapi({ example: true }),
147
165
  }))
148
- .openapi({ description: "List of users who follow this user." }),
166
+ .openapi({
167
+ description: "List of users who follow this user.",
168
+ example: [],
169
+ }),
149
170
  }).openapi("UserWithFollowersEntity");
150
171
  exports.GetUserFollowersOutputSchema = zod_openapi_1.z.object({
151
- nextCursor: zod_openapi_1.z.string(),
152
- followers: zod_openapi_1.z.array(exports.MinimalUserSchema.extend({
153
- isFollowing: zod_openapi_1.z.boolean().optional(),
154
- followsYou: zod_openapi_1.z.boolean().optional(),
155
- })),
172
+ nextCursor: zod_openapi_1.z.string().openapi({ example: "cksd0v6q0000nxtcur" }),
173
+ followers: zod_openapi_1.z
174
+ .array(exports.MinimalUserSchema.extend({
175
+ isFollowing: zod_openapi_1.z.boolean().optional().openapi({ example: false }),
176
+ followsYou: zod_openapi_1.z.boolean().optional().openapi({ example: true }),
177
+ }))
178
+ .openapi({ example: [] }),
156
179
  });
157
180
  exports.GetUserFollowingOutputSchema = zod_openapi_1.z.object({
158
- nextCursor: zod_openapi_1.z.string(),
159
- following: zod_openapi_1.z.array(exports.MinimalUserSchema.extend({
160
- isFollowing: zod_openapi_1.z.boolean().optional(),
161
- followsYou: zod_openapi_1.z.boolean().optional(),
162
- })),
181
+ nextCursor: zod_openapi_1.z.string().openapi({ example: "cksd0v6q0000nxtcur" }),
182
+ following: zod_openapi_1.z
183
+ .array(exports.MinimalUserSchema.extend({
184
+ isFollowing: zod_openapi_1.z.boolean().optional().openapi({ example: true }),
185
+ followsYou: zod_openapi_1.z.boolean().optional().openapi({ example: false }),
186
+ }))
187
+ .openapi({ example: [] }),
163
188
  });
164
189
  exports.UserWithPostsEntitySchema = zod_openapi_1.z
165
190
  .object({
166
- userId: zod_openapi_1.z.cuid2(),
167
- posts: zod_openapi_1.z.array(post_1.PostWithFilesEntitySchema),
191
+ userId: zod_openapi_1.z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
192
+ posts: zod_openapi_1.z.array(post_1.PostWithFilesEntitySchema).openapi({ example: [] }),
168
193
  })
169
194
  .openapi("UserWithPostsEntity");
170
195
  exports.GetAuthenticatedUserOutputSchema = exports.UserEntitySchema;
@@ -175,33 +200,70 @@ exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.UserWithFoll
175
200
  exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema;
176
201
  exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.UserWithProjectLikesEntitySchema;
177
202
  exports.GetUserActivityInputSchema = zod_openapi_1.z.object({
178
- activityType: zod_openapi_1.z.enum(Object.values(constants_1.ACTIVITY_TYPES)),
203
+ activityType: zod_openapi_1.z
204
+ .enum(Object.values(constants_1.ACTIVITY_TYPES))
205
+ .openapi({ example: "LIKE" }),
179
206
  });
180
- exports.GetUserActivityOutputSchema = zod_openapi_1.z.array(zod_openapi_1.z.object({
181
- parentId: zod_openapi_1.z.string(),
182
- parentType: zod_openapi_1.z.enum(Object.values(constants_1.ACTIVITY_PARENT_TYPES)),
183
- }));
207
+ exports.GetUserActivityOutputSchema = zod_openapi_1.z
208
+ .array(zod_openapi_1.z.object({
209
+ parentId: zod_openapi_1.z.cuid2().openapi({ example: "ckj1a2b3c0000prt" }),
210
+ parentType: zod_openapi_1.z
211
+ .enum(Object.values(constants_1.ACTIVITY_PARENT_TYPES))
212
+ .openapi({ example: "POST" }),
213
+ }))
214
+ .openapi({ example: [] });
184
215
  exports.SearchUsersInputSchema = zod_openapi_1.z.object({
185
216
  query: zod_openapi_1.z.string().default("").openapi({
186
217
  example: "john",
187
218
  description: "Search by name, email, username, or discipline",
188
219
  }),
189
- role: zod_openapi_1.z.enum(Object.values(constants_1.ROLES)).optional(),
220
+ role: zod_openapi_1.z
221
+ .enum(Object.values(constants_1.ROLES))
222
+ .optional()
223
+ .openapi({ example: "CREATIVE" }),
190
224
  limit: zod_openapi_1.z.coerce.number().min(1).max(100).default(20).openapi({ example: 20 }),
191
225
  cursor: zod_openapi_1.z.string().optional().openapi({
192
- example: 0,
226
+ example: "cksd0v6q0000cursor",
193
227
  description: "The offset/cursor for pagination",
194
228
  }),
195
229
  });
196
230
  exports.SearchUsersOutputSchema = zod_openapi_1.z.object({
197
- users: zod_openapi_1.z.array(exports.MinimalUserSchema.extend({
198
- isFollowing: zod_openapi_1.z.boolean().optional(),
199
- followsYou: zod_openapi_1.z.boolean().optional(),
200
- noOfFollowers: zod_openapi_1.z.number().int().nonnegative().optional(),
201
- disciplines: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
202
- })),
231
+ users: zod_openapi_1.z
232
+ .array(exports.MinimalUserSchema.extend({
233
+ isFollowing: zod_openapi_1.z.boolean().optional().openapi({ example: false }),
234
+ followsYou: zod_openapi_1.z.boolean().optional().openapi({ example: true }),
235
+ noOfFollowers: zod_openapi_1.z
236
+ .number()
237
+ .int()
238
+ .nonnegative()
239
+ .optional()
240
+ .openapi({ example: 1200 }),
241
+ disciplines: zod_openapi_1.z
242
+ .array(zod_openapi_1.z.string())
243
+ .optional()
244
+ .openapi({ example: ["UI/UX", "Frontend"] }),
245
+ }))
246
+ .openapi({ example: [] }),
203
247
  nextCursor: zod_openapi_1.z.string().optional().openapi({
204
- example: "abc123",
248
+ example: "abc123nxt",
205
249
  description: "The next cursor for pagination",
206
250
  }),
207
251
  });
252
+ exports.UserSearchDocumentSchema = zod_openapi_1.z.object({
253
+ id: zod_openapi_1.z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
254
+ email: zod_openapi_1.z.email().openapi({ example: "user@example.com" }),
255
+ username: zod_openapi_1.z.string().nullable().openapi({ example: "johndoe" }),
256
+ name: zod_openapi_1.z.string().nullable().openapi({ example: "John Doe" }),
257
+ image: zod_openapi_1.z.string().nullable().openapi({ example: "https://example.com/avatar.png" }),
258
+ role: zod_openapi_1.z
259
+ .enum(Object.values(constants_1.ROLES))
260
+ .openapi({ example: "CREATIVE" }),
261
+ bio: zod_openapi_1.z.string().nullable().openapi({ example: "Passionate designer and developer based in Lagos." }),
262
+ location: zod_openapi_1.z.string().nullable().openapi({ example: "Lagos, Nigeria" }),
263
+ disciplines: zod_openapi_1.z.array(zod_openapi_1.z.string()).nullable().openapi({ example: ["Design Systems", "Web Development"] }),
264
+ updatedAt: zod_openapi_1.z.string().nullable().openapi({ example: "2026-03-11T09:00:00.000Z" }),
265
+ createdAt: zod_openapi_1.z.string().nullable().openapi({ example: "2026-03-11T09:00:00.000Z" }),
266
+ }).openapi({
267
+ title: "User Search Document",
268
+ description: "Flattened schema used for indexing users in search engines.",
269
+ });
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { JobEntitySchema, GigJobEntitySchema, RoleJobEntitySchema, CreateJobInputSchema, CreateRoleJobInputSchema, CreateGigJobInputSchema, UpdateRoleJobInputSchema, UpdateGigJobInputSchema, UpdateJobInputSchema, JobWithGigDetailsEntitySchema, JobWithRoleDetailsEntitySchema, BaseJobEntitySchema, JobIdSchema, GetJobsOutputSchema, GetJobsInputSchema, GetCreatedJobsOutputSchema } from "../schemas/job";
2
+ import { JobEntitySchema, GigJobEntitySchema, RoleJobEntitySchema, CreateJobInputSchema, CreateRoleJobInputSchema, CreateGigJobInputSchema, UpdateRoleJobInputSchema, UpdateGigJobInputSchema, UpdateJobInputSchema, JobWithGigDetailsEntitySchema, JobWithRoleDetailsEntitySchema, BaseJobEntitySchema, JobIdSchema, GetJobsOutputSchema, GetJobsInputSchema, GetCreatedJobsOutputSchema, JobSearchDocumentSchema } from "../schemas/job";
3
3
  export type BaseJobEntity = z.infer<typeof BaseJobEntitySchema>;
4
4
  export type JobIdInput = z.infer<typeof JobIdSchema>;
5
5
  export type JobEntity = z.infer<typeof JobEntitySchema>;
@@ -24,3 +24,4 @@ export type GetJobsInput = z.infer<typeof GetJobsInputSchema>;
24
24
  export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
25
25
  export type GetCreatedJobsOutput = z.infer<typeof GetCreatedJobsOutputSchema>;
26
26
  export type NormalizedJobEntity = JobEntity | JobWithGigDetailsEntity | JobWithRoleDetailsEntity;
27
+ export type JobSearchDocument = z.infer<typeof JobSearchDocumentSchema>;
@@ -1,5 +1,5 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import { CreatePostInputSchema, CreatePostOutputSchema, FeedPostEntitySchema, GetFeedInputSchema, GetFeedOutputSchema, GetPostOutputSchema, GetPostWithBookmarksOutputSchema, GetPostWithCommentsOutputSchema, GetPostWithLikesOutputSchema, LinkPreviewInputSchema, LinkPreviewOutputSchema, PostAnalyticsOutputSchema, PostEntitySchema, PostFileEntitySchema, PostIdSchema, PostWithBookmarksEntitySchema, PostWithCommentsEntitySchema, PostWithFilesEntitySchema, PostWithLikesEntitySchema, ReportPostInputSchema, SearchPostInputSchema, SearchPostOutputSchema } from "../schemas/post";
2
+ import { CreatePostInputSchema, CreatePostOutputSchema, FeedPostEntitySchema, GetFeedInputSchema, GetFeedOutputSchema, GetPostOutputSchema, GetPostWithBookmarksOutputSchema, GetPostWithCommentsOutputSchema, GetPostWithLikesOutputSchema, LinkPreviewInputSchema, LinkPreviewOutputSchema, PostAnalyticsOutputSchema, PostEntitySchema, PostFileEntitySchema, PostIdSchema, PostSearchDocumentSchema, PostWithBookmarksEntitySchema, PostWithCommentsEntitySchema, PostWithFilesEntitySchema, PostWithLikesEntitySchema, ReportPostInputSchema, SearchPostInputSchema, SearchPostOutputSchema } from "../schemas/post";
3
3
  export type PostEntity = z.infer<typeof PostEntitySchema>;
4
4
  export type PostFileEntity = z.infer<typeof PostFileEntitySchema>;
5
5
  export type PostWithFilesEntity = z.infer<typeof PostWithFilesEntitySchema>;
@@ -22,3 +22,4 @@ export type GetPostWithCommentsOutput = z.infer<typeof GetPostWithCommentsOutput
22
22
  export type GetPostWithBookmarksOutput = z.infer<typeof GetPostWithBookmarksOutputSchema>;
23
23
  export type ReportPostInput = z.infer<typeof ReportPostInputSchema>;
24
24
  export type PostAnalyticsOutput = z.infer<typeof PostAnalyticsOutputSchema>;
25
+ export type PostSearchDocument = z.infer<typeof PostSearchDocumentSchema>;
@@ -1,4 +1,4 @@
1
- import { MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema, SearchUsersInputSchema, UserWithProjectLikesEntitySchema, GetAuthenticatedUserWithProjectLikesOutputSchema, GetUserActivityInputSchema, GetUserActivityOutputSchema, UserStatsEntitySchema, UserWithPostsEntitySchema, SearchUsersOutputSchema, UserWithPostBookmarksEntitySchema, UserWithPostLikesEntitySchema } from "../schemas/user";
1
+ import { MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema, SearchUsersInputSchema, UserWithProjectLikesEntitySchema, GetAuthenticatedUserWithProjectLikesOutputSchema, GetUserActivityInputSchema, GetUserActivityOutputSchema, UserStatsEntitySchema, UserWithPostsEntitySchema, SearchUsersOutputSchema, UserWithPostBookmarksEntitySchema, UserWithPostLikesEntitySchema, UserSearchDocumentSchema } from "../schemas/user";
2
2
  import { z } from "@hono/zod-openapi";
3
3
  export type BaseUserEntity = z.infer<typeof UserEntitySchema>;
4
4
  export type MinimalUser = z.infer<typeof MinimalUserSchema>;
@@ -28,3 +28,4 @@ export type GetUserActivityOutput = z.infer<typeof GetUserActivityOutputSchema>;
28
28
  export type UserStatsEntity = z.infer<typeof UserStatsEntitySchema>;
29
29
  export type SearchUsersInput = z.infer<typeof SearchUsersInputSchema>;
30
30
  export type SearchUsersOutput = z.infer<typeof SearchUsersOutputSchema>;
31
+ export type UserSearchDocument = z.infer<typeof UserSearchDocumentSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.64",
3
+ "version": "2.2.66",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",