@zyacreatives/shared 2.3.7 → 2.3.9
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/schemas/file.d.ts +73 -12
- package/dist/schemas/file.js +39 -17
- package/dist/schemas/message.d.ts +11 -0
- package/dist/schemas/post.d.ts +318 -201
- package/dist/schemas/post.js +82 -145
- package/dist/schemas/user.d.ts +57 -12
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.js +0 -2
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/schemas/file.ts +60 -17
- package/src/schemas/post.ts +129 -165
- package/src/types/index.ts +0 -2
- package/src/types/file.ts +0 -39
- package/src/types/post.ts +0 -66
package/dist/schemas/post.d.ts
CHANGED
|
@@ -47,12 +47,7 @@ export declare const PostEntitySchema: z.ZodObject<{
|
|
|
47
47
|
image: z.ZodOptional<z.ZodURL>;
|
|
48
48
|
}, z.core.$strip>>;
|
|
49
49
|
}, z.core.$strip>;
|
|
50
|
-
export
|
|
51
|
-
id: z.ZodCUID2;
|
|
52
|
-
postId: z.ZodCUID2;
|
|
53
|
-
fileId: z.ZodCUID2;
|
|
54
|
-
order: z.ZodNumber;
|
|
55
|
-
}, z.core.$strip>;
|
|
50
|
+
export type PostEntity = z.infer<typeof PostEntitySchema>;
|
|
56
51
|
export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
57
52
|
id: z.ZodCUID2;
|
|
58
53
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -100,14 +95,203 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
100
95
|
description: z.ZodOptional<z.ZodString>;
|
|
101
96
|
image: z.ZodOptional<z.ZodURL>;
|
|
102
97
|
}, z.core.$strip>>;
|
|
103
|
-
|
|
98
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
99
|
id: z.ZodCUID2;
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
key: z.ZodString;
|
|
101
|
+
mimeType: z.ZodString;
|
|
102
|
+
url: z.ZodURL;
|
|
103
|
+
userId: z.ZodCUID2;
|
|
104
|
+
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
105
|
+
parentType: z.ZodNullable<z.ZodEnum<{
|
|
106
|
+
readonly PROJECT: "PROJECT";
|
|
107
|
+
readonly USER: "USER";
|
|
108
|
+
readonly JOB: "JOB";
|
|
109
|
+
readonly POST: "POST";
|
|
110
|
+
readonly PRODUCT: "PRODUCT";
|
|
111
|
+
readonly COMMENT: "COMMENT";
|
|
112
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
113
|
+
}>>;
|
|
114
|
+
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
107
115
|
order: z.ZodNumber;
|
|
116
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
117
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
118
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
119
|
+
}, z.core.$strip>>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
export type PostWithFilesEntity = z.infer<typeof PostWithFilesEntitySchema>;
|
|
122
|
+
export declare const MinimalPostSchema: z.ZodObject<{
|
|
123
|
+
id: z.ZodCUID2;
|
|
124
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
125
|
+
content: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export declare const FeedPostEntitySchema: z.ZodObject<{
|
|
128
|
+
id: z.ZodCUID2;
|
|
129
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
130
|
+
parentType: z.ZodDefault<z.ZodEnum<{
|
|
131
|
+
readonly PROJECT: "PROJECT";
|
|
132
|
+
readonly USER: "USER";
|
|
133
|
+
readonly JOB: "JOB";
|
|
134
|
+
readonly POST: "POST";
|
|
135
|
+
readonly PRODUCT: "PRODUCT";
|
|
136
|
+
readonly COMMENT: "COMMENT";
|
|
137
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
138
|
+
}>>;
|
|
139
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
id: z.ZodInt;
|
|
142
|
+
}, z.core.$strip>>>;
|
|
143
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
readonly NETWORKING: "Networking";
|
|
145
|
+
readonly FUNDING: "Funding";
|
|
146
|
+
readonly COLLABORATION: "Collaboration";
|
|
147
|
+
readonly OPPORTUNITIES: "Opportunities";
|
|
148
|
+
readonly SHOWCASE: "Showcase";
|
|
149
|
+
readonly LEARNING: "Learning";
|
|
150
|
+
readonly DISCUSSION: "Discussion";
|
|
151
|
+
readonly MENTORSHIP: "Mentorship";
|
|
152
|
+
}>>;
|
|
153
|
+
userId: z.ZodCUID2;
|
|
154
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
155
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
156
|
+
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
157
|
+
content: z.ZodOptional<z.ZodString>;
|
|
158
|
+
postType: z.ZodEnum<{
|
|
159
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
160
|
+
readonly PROJECT: "PROJECT";
|
|
161
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
162
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
163
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
164
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
165
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
166
|
+
}>;
|
|
167
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
168
|
+
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
108
169
|
url: z.ZodURL;
|
|
170
|
+
title: z.ZodOptional<z.ZodString>;
|
|
171
|
+
description: z.ZodOptional<z.ZodString>;
|
|
172
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
175
|
+
id: z.ZodCUID2;
|
|
176
|
+
key: z.ZodString;
|
|
177
|
+
mimeType: z.ZodString;
|
|
178
|
+
url: z.ZodURL;
|
|
179
|
+
userId: z.ZodCUID2;
|
|
180
|
+
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
181
|
+
parentType: z.ZodNullable<z.ZodEnum<{
|
|
182
|
+
readonly PROJECT: "PROJECT";
|
|
183
|
+
readonly USER: "USER";
|
|
184
|
+
readonly JOB: "JOB";
|
|
185
|
+
readonly POST: "POST";
|
|
186
|
+
readonly PRODUCT: "PRODUCT";
|
|
187
|
+
readonly COMMENT: "COMMENT";
|
|
188
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
189
|
+
}>>;
|
|
190
|
+
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
191
|
+
order: z.ZodNumber;
|
|
192
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
193
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
194
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
109
195
|
}, z.core.$strip>>>;
|
|
196
|
+
stats: z.ZodObject<{
|
|
197
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
198
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
199
|
+
parentId: z.ZodCUID2;
|
|
200
|
+
parentType: z.ZodEnum<{
|
|
201
|
+
readonly PROJECT: "PROJECT";
|
|
202
|
+
readonly USER: "USER";
|
|
203
|
+
readonly JOB: "JOB";
|
|
204
|
+
readonly POST: "POST";
|
|
205
|
+
readonly PRODUCT: "PRODUCT";
|
|
206
|
+
readonly COMMENT: "COMMENT";
|
|
207
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
208
|
+
}>;
|
|
209
|
+
likesCount: z.ZodNumber;
|
|
210
|
+
bookmarksCount: z.ZodNumber;
|
|
211
|
+
viewsCount: z.ZodNumber;
|
|
212
|
+
commentsCount: z.ZodNumber;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
score: z.ZodNumber;
|
|
215
|
+
isLiked: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
217
|
+
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
export type FeedPostEntity = z.infer<typeof FeedPostEntitySchema>;
|
|
220
|
+
export declare const PostWithLikesEntitySchema: z.ZodObject<{
|
|
221
|
+
id: z.ZodCUID2;
|
|
222
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
223
|
+
content: z.ZodOptional<z.ZodString>;
|
|
224
|
+
likes: z.ZodArray<z.ZodObject<{
|
|
225
|
+
id: z.ZodCUID2;
|
|
226
|
+
type: z.ZodEnum<{
|
|
227
|
+
readonly LIKE: "LIKE";
|
|
228
|
+
readonly UNLIKE: "UNLIKE";
|
|
229
|
+
readonly BOOKMARK: "BOOKMARK";
|
|
230
|
+
readonly UNBOOKMARK: "UNBOOKMARK";
|
|
231
|
+
readonly VIEW: "VIEW";
|
|
232
|
+
}>;
|
|
233
|
+
actorName: z.ZodString;
|
|
234
|
+
actorId: z.ZodString;
|
|
235
|
+
actorUsername: z.ZodString;
|
|
236
|
+
actorImageUrl: z.ZodOptional<z.ZodURL>;
|
|
237
|
+
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
export type PostWithPostLikesEntity = z.infer<typeof PostWithLikesEntitySchema>;
|
|
242
|
+
export declare const PostWithCommentsEntitySchema: z.ZodObject<{
|
|
243
|
+
id: z.ZodCUID2;
|
|
244
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
245
|
+
content: z.ZodOptional<z.ZodString>;
|
|
246
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
247
|
+
id: z.ZodCUID2;
|
|
248
|
+
userId: z.ZodCUID2;
|
|
249
|
+
parentId: z.ZodCUID2;
|
|
250
|
+
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
251
|
+
parentType: z.ZodEnum<{
|
|
252
|
+
readonly PROJECT: "PROJECT";
|
|
253
|
+
readonly USER: "USER";
|
|
254
|
+
readonly JOB: "JOB";
|
|
255
|
+
readonly POST: "POST";
|
|
256
|
+
readonly PRODUCT: "PRODUCT";
|
|
257
|
+
readonly COMMENT: "COMMENT";
|
|
258
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
259
|
+
}>;
|
|
260
|
+
content: z.ZodString;
|
|
261
|
+
commenterUsername: z.ZodOptional<z.ZodString>;
|
|
262
|
+
commenterName: z.ZodOptional<z.ZodString>;
|
|
263
|
+
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
264
|
+
replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
|
|
265
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
266
|
+
isLiked: z.ZodDefault<z.ZodBoolean>;
|
|
267
|
+
likesCount: z.ZodDefault<z.ZodInt>;
|
|
268
|
+
hasReplies: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
110
271
|
}, z.core.$strip>;
|
|
272
|
+
export type PostWithPostCommentsEntity = z.infer<typeof PostWithCommentsEntitySchema>;
|
|
273
|
+
export declare const PostWithBookmarksEntitySchema: z.ZodObject<{
|
|
274
|
+
id: z.ZodCUID2;
|
|
275
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
276
|
+
content: z.ZodOptional<z.ZodString>;
|
|
277
|
+
bookmarks: z.ZodArray<z.ZodObject<{
|
|
278
|
+
id: z.ZodCUID2;
|
|
279
|
+
type: z.ZodEnum<{
|
|
280
|
+
readonly LIKE: "LIKE";
|
|
281
|
+
readonly UNLIKE: "UNLIKE";
|
|
282
|
+
readonly BOOKMARK: "BOOKMARK";
|
|
283
|
+
readonly UNBOOKMARK: "UNBOOKMARK";
|
|
284
|
+
readonly VIEW: "VIEW";
|
|
285
|
+
}>;
|
|
286
|
+
actorName: z.ZodString;
|
|
287
|
+
actorId: z.ZodString;
|
|
288
|
+
actorUsername: z.ZodString;
|
|
289
|
+
actorImageUrl: z.ZodOptional<z.ZodURL>;
|
|
290
|
+
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
}, z.core.$strip>>;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
export type PostWithPostBookmarksEntity = z.infer<typeof PostWithBookmarksEntitySchema>;
|
|
111
295
|
export declare const CreatePostInputSchema: z.ZodObject<{
|
|
112
296
|
id: z.ZodCUID2;
|
|
113
297
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -133,7 +317,18 @@ export declare const CreatePostInputSchema: z.ZodObject<{
|
|
|
133
317
|
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
134
318
|
key: z.ZodString;
|
|
135
319
|
mimeType: z.ZodString;
|
|
320
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
321
|
+
parentType: z.ZodOptional<z.ZodEnum<{
|
|
322
|
+
readonly PROJECT: "PROJECT";
|
|
323
|
+
readonly USER: "USER";
|
|
324
|
+
readonly JOB: "JOB";
|
|
325
|
+
readonly POST: "POST";
|
|
326
|
+
readonly PRODUCT: "PRODUCT";
|
|
327
|
+
readonly COMMENT: "COMMENT";
|
|
328
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
329
|
+
}>>;
|
|
136
330
|
order: z.ZodDefault<z.ZodNumber>;
|
|
331
|
+
isThumbnail: z.ZodOptional<z.ZodBoolean>;
|
|
137
332
|
}, z.core.$strip>>>;
|
|
138
333
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
334
|
badge: z.ZodOptional<z.ZodEnum<{
|
|
@@ -153,6 +348,29 @@ export declare const CreatePostInputSchema: z.ZodObject<{
|
|
|
153
348
|
image: z.ZodOptional<z.ZodURL>;
|
|
154
349
|
}, z.core.$strip>>;
|
|
155
350
|
}, z.core.$strip>;
|
|
351
|
+
export type CreatePostInput = z.infer<typeof CreatePostInputSchema>;
|
|
352
|
+
export declare const PostIdSchema: z.ZodObject<{
|
|
353
|
+
postId: z.ZodCUID2;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
export type PostIdInput = z.infer<typeof PostIdSchema>;
|
|
356
|
+
export declare const LinkPreviewInputSchema: z.ZodObject<{
|
|
357
|
+
url: z.ZodURL;
|
|
358
|
+
}, z.core.$strip>;
|
|
359
|
+
export type LinkPreviewInput = z.infer<typeof LinkPreviewInputSchema>;
|
|
360
|
+
export declare const ReportPostInputSchema: z.ZodObject<{
|
|
361
|
+
complaint: z.ZodString;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
export type ReportPostInput = z.infer<typeof ReportPostInputSchema>;
|
|
364
|
+
export declare const GetFeedInputSchema: z.ZodObject<{
|
|
365
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
366
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
export type GetFeedInput = z.infer<typeof GetFeedInputSchema>;
|
|
369
|
+
export declare const SearchPostInputSchema: z.ZodObject<{
|
|
370
|
+
queryString: z.ZodString;
|
|
371
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}, z.core.$strip>;
|
|
373
|
+
export type SearchPostInput = z.infer<typeof SearchPostInputSchema>;
|
|
156
374
|
export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
157
375
|
id: z.ZodCUID2;
|
|
158
376
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -201,6 +419,7 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
|
201
419
|
image: z.ZodOptional<z.ZodURL>;
|
|
202
420
|
}, z.core.$strip>>;
|
|
203
421
|
}, z.core.$strip>;
|
|
422
|
+
export type CreatePostOutput = z.infer<typeof CreatePostOutputSchema>;
|
|
204
423
|
export declare const GetPostOutputSchema: z.ZodObject<{
|
|
205
424
|
id: z.ZodCUID2;
|
|
206
425
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -248,43 +467,37 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
248
467
|
description: z.ZodOptional<z.ZodString>;
|
|
249
468
|
image: z.ZodOptional<z.ZodURL>;
|
|
250
469
|
}, z.core.$strip>>;
|
|
251
|
-
|
|
470
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
252
471
|
id: z.ZodCUID2;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
order: z.ZodNumber;
|
|
472
|
+
key: z.ZodString;
|
|
473
|
+
mimeType: z.ZodString;
|
|
256
474
|
url: z.ZodURL;
|
|
475
|
+
userId: z.ZodCUID2;
|
|
476
|
+
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
477
|
+
parentType: z.ZodNullable<z.ZodEnum<{
|
|
478
|
+
readonly PROJECT: "PROJECT";
|
|
479
|
+
readonly USER: "USER";
|
|
480
|
+
readonly JOB: "JOB";
|
|
481
|
+
readonly POST: "POST";
|
|
482
|
+
readonly PRODUCT: "PRODUCT";
|
|
483
|
+
readonly COMMENT: "COMMENT";
|
|
484
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
485
|
+
}>>;
|
|
486
|
+
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
487
|
+
order: z.ZodNumber;
|
|
488
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
489
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
490
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
257
491
|
}, z.core.$strip>>>;
|
|
258
492
|
}, z.core.$strip>;
|
|
259
|
-
export
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
content: z.ZodOptional<z.ZodString>;
|
|
266
|
-
}, z.core.$strip>;
|
|
267
|
-
export declare const PostWithLikesEntitySchema: z.ZodObject<{
|
|
268
|
-
id: z.ZodCUID2;
|
|
269
|
-
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
270
|
-
content: z.ZodOptional<z.ZodString>;
|
|
271
|
-
likes: z.ZodArray<z.ZodObject<{
|
|
272
|
-
id: z.ZodCUID2;
|
|
273
|
-
type: z.ZodEnum<{
|
|
274
|
-
readonly LIKE: "LIKE";
|
|
275
|
-
readonly UNLIKE: "UNLIKE";
|
|
276
|
-
readonly BOOKMARK: "BOOKMARK";
|
|
277
|
-
readonly UNBOOKMARK: "UNBOOKMARK";
|
|
278
|
-
readonly VIEW: "VIEW";
|
|
279
|
-
}>;
|
|
280
|
-
actorName: z.ZodString;
|
|
281
|
-
actorId: z.ZodString;
|
|
282
|
-
actorUsername: z.ZodString;
|
|
283
|
-
actorImageUrl: z.ZodOptional<z.ZodURL>;
|
|
284
|
-
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
-
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
-
}, z.core.$strip>>;
|
|
493
|
+
export type GetPostOutput = z.infer<typeof GetPostOutputSchema>;
|
|
494
|
+
export declare const LinkPreviewOutputSchema: z.ZodObject<{
|
|
495
|
+
title: z.ZodString;
|
|
496
|
+
description: z.ZodOptional<z.ZodString>;
|
|
497
|
+
image: z.ZodOptional<z.ZodString>;
|
|
498
|
+
url: z.ZodOptional<z.ZodString>;
|
|
287
499
|
}, z.core.$strip>;
|
|
500
|
+
export type LinkPreviewOutput = z.infer<typeof LinkPreviewOutputSchema>;
|
|
288
501
|
export declare const GetPostWithLikesOutputSchema: z.ZodObject<{
|
|
289
502
|
id: z.ZodCUID2;
|
|
290
503
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -307,36 +520,7 @@ export declare const GetPostWithLikesOutputSchema: z.ZodObject<{
|
|
|
307
520
|
}, z.core.$strip>>;
|
|
308
521
|
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
309
522
|
}, z.core.$strip>;
|
|
310
|
-
export
|
|
311
|
-
id: z.ZodCUID2;
|
|
312
|
-
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
313
|
-
content: z.ZodOptional<z.ZodString>;
|
|
314
|
-
comments: z.ZodArray<z.ZodObject<{
|
|
315
|
-
id: z.ZodCUID2;
|
|
316
|
-
userId: z.ZodCUID2;
|
|
317
|
-
parentId: z.ZodCUID2;
|
|
318
|
-
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
319
|
-
parentType: z.ZodEnum<{
|
|
320
|
-
readonly PROJECT: "PROJECT";
|
|
321
|
-
readonly USER: "USER";
|
|
322
|
-
readonly JOB: "JOB";
|
|
323
|
-
readonly POST: "POST";
|
|
324
|
-
readonly PRODUCT: "PRODUCT";
|
|
325
|
-
readonly COMMENT: "COMMENT";
|
|
326
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
327
|
-
}>;
|
|
328
|
-
content: z.ZodString;
|
|
329
|
-
commenterUsername: z.ZodOptional<z.ZodString>;
|
|
330
|
-
commenterName: z.ZodOptional<z.ZodString>;
|
|
331
|
-
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
332
|
-
replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
|
|
333
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
334
|
-
isLiked: z.ZodDefault<z.ZodBoolean>;
|
|
335
|
-
likesCount: z.ZodDefault<z.ZodInt>;
|
|
336
|
-
hasReplies: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
338
|
-
}, z.core.$strip>>;
|
|
339
|
-
}, z.core.$strip>;
|
|
523
|
+
export type GetPostWithLikesOutput = z.infer<typeof GetPostWithLikesOutputSchema>;
|
|
340
524
|
export declare const GetPostWithCommentsOutputSchema: z.ZodObject<{
|
|
341
525
|
id: z.ZodCUID2;
|
|
342
526
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -368,27 +552,7 @@ export declare const GetPostWithCommentsOutputSchema: z.ZodObject<{
|
|
|
368
552
|
}, z.core.$strip>>;
|
|
369
553
|
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
370
554
|
}, z.core.$strip>;
|
|
371
|
-
export
|
|
372
|
-
id: z.ZodCUID2;
|
|
373
|
-
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
374
|
-
content: z.ZodOptional<z.ZodString>;
|
|
375
|
-
bookmarks: z.ZodArray<z.ZodObject<{
|
|
376
|
-
id: z.ZodCUID2;
|
|
377
|
-
type: z.ZodEnum<{
|
|
378
|
-
readonly LIKE: "LIKE";
|
|
379
|
-
readonly UNLIKE: "UNLIKE";
|
|
380
|
-
readonly BOOKMARK: "BOOKMARK";
|
|
381
|
-
readonly UNBOOKMARK: "UNBOOKMARK";
|
|
382
|
-
readonly VIEW: "VIEW";
|
|
383
|
-
}>;
|
|
384
|
-
actorName: z.ZodString;
|
|
385
|
-
actorId: z.ZodString;
|
|
386
|
-
actorUsername: z.ZodString;
|
|
387
|
-
actorImageUrl: z.ZodOptional<z.ZodURL>;
|
|
388
|
-
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
389
|
-
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
390
|
-
}, z.core.$strip>>;
|
|
391
|
-
}, z.core.$strip>;
|
|
555
|
+
export type GetPostWithCommentsOutput = z.infer<typeof GetPostWithCommentsOutputSchema>;
|
|
392
556
|
export declare const GetPostWithBookmarksOutputSchema: z.ZodObject<{
|
|
393
557
|
id: z.ZodCUID2;
|
|
394
558
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -411,96 +575,7 @@ export declare const GetPostWithBookmarksOutputSchema: z.ZodObject<{
|
|
|
411
575
|
}, z.core.$strip>>;
|
|
412
576
|
totalNo: z.ZodNumber;
|
|
413
577
|
}, z.core.$strip>;
|
|
414
|
-
export
|
|
415
|
-
url: z.ZodURL;
|
|
416
|
-
}, z.core.$strip>;
|
|
417
|
-
export declare const LinkPreviewOutputSchema: z.ZodObject<{
|
|
418
|
-
title: z.ZodString;
|
|
419
|
-
description: z.ZodOptional<z.ZodString>;
|
|
420
|
-
image: z.ZodOptional<z.ZodString>;
|
|
421
|
-
url: z.ZodOptional<z.ZodString>;
|
|
422
|
-
}, z.core.$strip>;
|
|
423
|
-
export declare const FeedPostEntitySchema: z.ZodObject<{
|
|
424
|
-
id: z.ZodCUID2;
|
|
425
|
-
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
426
|
-
parentType: z.ZodDefault<z.ZodEnum<{
|
|
427
|
-
readonly PROJECT: "PROJECT";
|
|
428
|
-
readonly USER: "USER";
|
|
429
|
-
readonly JOB: "JOB";
|
|
430
|
-
readonly POST: "POST";
|
|
431
|
-
readonly PRODUCT: "PRODUCT";
|
|
432
|
-
readonly COMMENT: "COMMENT";
|
|
433
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
434
|
-
}>>;
|
|
435
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
436
|
-
name: z.ZodString;
|
|
437
|
-
id: z.ZodInt;
|
|
438
|
-
}, z.core.$strip>>>;
|
|
439
|
-
badge: z.ZodOptional<z.ZodEnum<{
|
|
440
|
-
readonly NETWORKING: "Networking";
|
|
441
|
-
readonly FUNDING: "Funding";
|
|
442
|
-
readonly COLLABORATION: "Collaboration";
|
|
443
|
-
readonly OPPORTUNITIES: "Opportunities";
|
|
444
|
-
readonly SHOWCASE: "Showcase";
|
|
445
|
-
readonly LEARNING: "Learning";
|
|
446
|
-
readonly DISCUSSION: "Discussion";
|
|
447
|
-
readonly MENTORSHIP: "Mentorship";
|
|
448
|
-
}>>;
|
|
449
|
-
userId: z.ZodCUID2;
|
|
450
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
451
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
452
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
453
|
-
content: z.ZodOptional<z.ZodString>;
|
|
454
|
-
postType: z.ZodEnum<{
|
|
455
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
456
|
-
readonly PROJECT: "PROJECT";
|
|
457
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
458
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
459
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
460
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
461
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
462
|
-
}>;
|
|
463
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
464
|
-
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
465
|
-
url: z.ZodURL;
|
|
466
|
-
title: z.ZodOptional<z.ZodString>;
|
|
467
|
-
description: z.ZodOptional<z.ZodString>;
|
|
468
|
-
image: z.ZodOptional<z.ZodURL>;
|
|
469
|
-
}, z.core.$strip>>;
|
|
470
|
-
postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
471
|
-
id: z.ZodCUID2;
|
|
472
|
-
postId: z.ZodCUID2;
|
|
473
|
-
fileId: z.ZodCUID2;
|
|
474
|
-
order: z.ZodNumber;
|
|
475
|
-
url: z.ZodURL;
|
|
476
|
-
}, z.core.$strip>>>;
|
|
477
|
-
stats: z.ZodObject<{
|
|
478
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
479
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
480
|
-
parentId: z.ZodCUID2;
|
|
481
|
-
parentType: z.ZodEnum<{
|
|
482
|
-
readonly PROJECT: "PROJECT";
|
|
483
|
-
readonly USER: "USER";
|
|
484
|
-
readonly JOB: "JOB";
|
|
485
|
-
readonly POST: "POST";
|
|
486
|
-
readonly PRODUCT: "PRODUCT";
|
|
487
|
-
readonly COMMENT: "COMMENT";
|
|
488
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
489
|
-
}>;
|
|
490
|
-
likesCount: z.ZodNumber;
|
|
491
|
-
bookmarksCount: z.ZodNumber;
|
|
492
|
-
viewsCount: z.ZodNumber;
|
|
493
|
-
commentsCount: z.ZodNumber;
|
|
494
|
-
}, z.core.$strip>;
|
|
495
|
-
score: z.ZodNumber;
|
|
496
|
-
isLiked: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
-
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
498
|
-
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
499
|
-
}, z.core.$strip>;
|
|
500
|
-
export declare const GetFeedInputSchema: z.ZodObject<{
|
|
501
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
502
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
503
|
-
}, z.core.$strip>;
|
|
578
|
+
export type GetPostWithBookmarksOutput = z.infer<typeof GetPostWithBookmarksOutputSchema>;
|
|
504
579
|
export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
505
580
|
feed: z.ZodArray<z.ZodObject<{
|
|
506
581
|
id: z.ZodCUID2;
|
|
@@ -549,12 +624,27 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
|
549
624
|
description: z.ZodOptional<z.ZodString>;
|
|
550
625
|
image: z.ZodOptional<z.ZodURL>;
|
|
551
626
|
}, z.core.$strip>>;
|
|
552
|
-
|
|
627
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
553
628
|
id: z.ZodCUID2;
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
order: z.ZodNumber;
|
|
629
|
+
key: z.ZodString;
|
|
630
|
+
mimeType: z.ZodString;
|
|
557
631
|
url: z.ZodURL;
|
|
632
|
+
userId: z.ZodCUID2;
|
|
633
|
+
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
634
|
+
parentType: z.ZodNullable<z.ZodEnum<{
|
|
635
|
+
readonly PROJECT: "PROJECT";
|
|
636
|
+
readonly USER: "USER";
|
|
637
|
+
readonly JOB: "JOB";
|
|
638
|
+
readonly POST: "POST";
|
|
639
|
+
readonly PRODUCT: "PRODUCT";
|
|
640
|
+
readonly COMMENT: "COMMENT";
|
|
641
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
642
|
+
}>>;
|
|
643
|
+
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
644
|
+
order: z.ZodNumber;
|
|
645
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
646
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
647
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
558
648
|
}, z.core.$strip>>>;
|
|
559
649
|
stats: z.ZodObject<{
|
|
560
650
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -581,10 +671,7 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
|
581
671
|
}, z.core.$strip>>;
|
|
582
672
|
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
583
673
|
}, z.core.$strip>;
|
|
584
|
-
export
|
|
585
|
-
queryString: z.ZodString;
|
|
586
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
587
|
-
}, z.core.$strip>;
|
|
674
|
+
export type GetFeedOutput = z.infer<typeof GetFeedOutputSchema>;
|
|
588
675
|
export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
589
676
|
posts: z.ZodArray<z.ZodObject<{
|
|
590
677
|
id: z.ZodCUID2;
|
|
@@ -633,12 +720,27 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
|
633
720
|
description: z.ZodOptional<z.ZodString>;
|
|
634
721
|
image: z.ZodOptional<z.ZodURL>;
|
|
635
722
|
}, z.core.$strip>>;
|
|
636
|
-
|
|
723
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
637
724
|
id: z.ZodCUID2;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
order: z.ZodNumber;
|
|
725
|
+
key: z.ZodString;
|
|
726
|
+
mimeType: z.ZodString;
|
|
641
727
|
url: z.ZodURL;
|
|
728
|
+
userId: z.ZodCUID2;
|
|
729
|
+
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
730
|
+
parentType: z.ZodNullable<z.ZodEnum<{
|
|
731
|
+
readonly PROJECT: "PROJECT";
|
|
732
|
+
readonly USER: "USER";
|
|
733
|
+
readonly JOB: "JOB";
|
|
734
|
+
readonly POST: "POST";
|
|
735
|
+
readonly PRODUCT: "PRODUCT";
|
|
736
|
+
readonly COMMENT: "COMMENT";
|
|
737
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
738
|
+
}>>;
|
|
739
|
+
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
740
|
+
order: z.ZodNumber;
|
|
741
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
742
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
743
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
642
744
|
}, z.core.$strip>>>;
|
|
643
745
|
stats: z.ZodObject<{
|
|
644
746
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -665,9 +767,7 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
|
665
767
|
}, z.core.$strip>>;
|
|
666
768
|
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
667
769
|
}, z.core.$strip>;
|
|
668
|
-
export
|
|
669
|
-
complaint: z.ZodString;
|
|
670
|
-
}, z.core.$strip>;
|
|
770
|
+
export type SearchPostOutput = z.infer<typeof SearchPostOutputSchema>;
|
|
671
771
|
export declare const PostAnalyticsOutputSchema: z.ZodObject<{
|
|
672
772
|
awareness: z.ZodObject<{
|
|
673
773
|
reach: z.ZodNumber;
|
|
@@ -707,6 +807,7 @@ export declare const PostAnalyticsOutputSchema: z.ZodObject<{
|
|
|
707
807
|
}, z.core.$strip>;
|
|
708
808
|
}, z.core.$strip>;
|
|
709
809
|
}, z.core.$strip>;
|
|
810
|
+
export type PostAnalyticsOutput = z.infer<typeof PostAnalyticsOutputSchema>;
|
|
710
811
|
export declare const PostSearchDocumentSchema: z.ZodObject<{
|
|
711
812
|
id: z.ZodCUID2;
|
|
712
813
|
userId: z.ZodCUID2;
|
|
@@ -749,12 +850,28 @@ export declare const PostSearchDocumentSchema: z.ZodObject<{
|
|
|
749
850
|
linkDescription: z.ZodNullable<z.ZodString>;
|
|
750
851
|
linkUrl: z.ZodNullable<z.ZodURL>;
|
|
751
852
|
linkImage: z.ZodNullable<z.ZodURL>;
|
|
752
|
-
|
|
853
|
+
files: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
753
854
|
id: z.ZodCUID2;
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
order: z.ZodNumber;
|
|
855
|
+
key: z.ZodString;
|
|
856
|
+
mimeType: z.ZodString;
|
|
757
857
|
url: z.ZodURL;
|
|
858
|
+
userId: z.ZodCUID2;
|
|
859
|
+
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
860
|
+
parentType: z.ZodNullable<z.ZodEnum<{
|
|
861
|
+
readonly PROJECT: "PROJECT";
|
|
862
|
+
readonly USER: "USER";
|
|
863
|
+
readonly JOB: "JOB";
|
|
864
|
+
readonly POST: "POST";
|
|
865
|
+
readonly PRODUCT: "PRODUCT";
|
|
866
|
+
readonly COMMENT: "COMMENT";
|
|
867
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
868
|
+
}>>;
|
|
869
|
+
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
870
|
+
order: z.ZodNumber;
|
|
871
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
872
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
873
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
758
874
|
}, z.core.$strip>>>;
|
|
759
875
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
760
876
|
}, z.core.$strip>;
|
|
877
|
+
export type PostSearchDocument = z.infer<typeof PostSearchDocumentSchema>;
|