@zyacreatives/shared 2.5.52 → 2.5.55
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 +0 -1
- package/dist/index.js +0 -1
- package/dist/schemas/activity.d.ts +1 -0
- package/dist/schemas/auth.d.ts +2 -0
- package/dist/schemas/bookmark.d.ts +62 -7
- package/dist/schemas/bookmark.js +32 -30
- package/dist/schemas/brand.d.ts +3 -3
- package/dist/schemas/chat.d.ts +96 -52
- package/dist/schemas/chat.js +44 -18
- package/dist/schemas/comment.d.ts +65 -21
- package/dist/schemas/comment.js +48 -54
- package/dist/schemas/common.d.ts +15 -11
- package/dist/schemas/creative.d.ts +21 -21
- package/dist/schemas/creative.js +3 -3
- package/dist/schemas/discipline.d.ts +63 -12
- package/dist/schemas/discipline.js +62 -65
- package/dist/schemas/entity-stats.d.ts +35 -3
- package/dist/schemas/entity-stats.js +24 -38
- package/dist/schemas/feed.d.ts +50 -3
- package/dist/schemas/feed.js +43 -13
- package/dist/schemas/file.d.ts +65 -24
- package/dist/schemas/file.js +60 -49
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/investor-shortlist.d.ts +68 -11
- package/dist/schemas/investor-shortlist.js +46 -24
- package/dist/schemas/investor-signal.d.ts +52 -12
- package/dist/schemas/investor-signal.js +59 -39
- package/dist/schemas/investor.d.ts +3 -3
- package/dist/schemas/job-application.d.ts +291 -279
- package/dist/schemas/job-application.js +59 -95
- package/dist/schemas/job.d.ts +200 -659
- package/dist/schemas/job.js +98 -231
- package/dist/schemas/like.d.ts +3 -0
- package/dist/schemas/message.d.ts +125 -94
- package/dist/schemas/message.js +54 -55
- package/dist/schemas/notification.d.ts +99 -32
- package/dist/schemas/notification.js +46 -42
- package/dist/schemas/payout-method.d.ts +51 -31
- package/dist/schemas/payout-method.js +48 -58
- package/dist/schemas/post.d.ts +295 -204
- package/dist/schemas/post.js +148 -272
- package/dist/schemas/product.d.ts +308 -229
- package/dist/schemas/product.js +111 -94
- package/dist/schemas/project.d.ts +75 -107
- package/dist/schemas/project.js +1 -5
- package/dist/schemas/seller.d.ts +10 -10
- package/dist/schemas/user-strike.d.ts +3 -0
- package/dist/schemas/user.d.ts +128 -126
- package/dist/schemas/user.js +10 -1
- package/dist/schemas/username.d.ts +1 -0
- package/dist/schemas/view.d.ts +1 -0
- package/dist/types/activity.d.ts +1 -3
- package/dist/types/auth.d.ts +1 -4
- package/dist/types/bookmark.d.ts +1 -3
- package/dist/types/chat.d.ts +1 -11
- package/dist/types/comment.d.ts +1 -5
- package/dist/types/common.d.ts +2 -8
- package/dist/types/discipline.d.ts +1 -11
- package/dist/types/entity-stats.d.ts +1 -3
- package/dist/types/feed.d.ts +1 -5
- package/dist/types/investor-shortlist.d.ts +1 -6
- package/dist/types/investor-signal.d.ts +1 -7
- package/dist/types/like.d.ts +1 -3
- package/dist/types/message.d.ts +1 -9
- package/dist/types/notification.d.ts +1 -9
- package/dist/types/user-strike.d.ts +1 -5
- package/dist/types/username.d.ts +1 -3
- package/package.json +1 -1
- package/src/index.ts +4 -5
- package/src/schemas/activity.ts +5 -4
- package/src/schemas/auth.ts +14 -10
- package/src/schemas/bookmark.ts +48 -29
- package/src/schemas/chat.ts +79 -18
- package/src/schemas/comment.ts +63 -49
- package/src/schemas/common.ts +8 -3
- package/src/schemas/creative.ts +3 -3
- package/src/schemas/discipline.ts +103 -71
- package/src/schemas/entity-stats.ts +32 -38
- package/src/schemas/feed.ts +62 -15
- package/src/schemas/file.ts +85 -58
- package/src/schemas/index.ts +1 -0
- package/src/schemas/investor-shortlist.ts +57 -8
- package/src/schemas/investor-signal.ts +79 -27
- package/src/schemas/job-application.ts +81 -115
- package/src/schemas/job.ts +160 -301
- package/src/schemas/like.ts +5 -1
- package/src/schemas/message.ts +71 -64
- package/src/schemas/notification.ts +63 -51
- package/src/schemas/payout-method.ts +47 -63
- package/src/schemas/post.ts +211 -272
- package/src/schemas/product.ts +202 -139
- package/src/schemas/project.ts +7 -10
- package/src/schemas/user-strike.ts +7 -1
- package/src/schemas/user.ts +17 -5
- package/src/schemas/username.ts +5 -3
- package/src/schemas/view.ts +0 -50
- package/src/types/activity.ts +0 -4
- package/src/types/auth.ts +0 -5
- package/src/types/bookmark.ts +0 -4
- package/src/types/chat.ts +0 -31
- package/src/types/comment.ts +0 -12
- package/src/types/common.ts +0 -14
- package/src/types/discipline.ts +0 -32
- package/src/types/entity-stats.ts +0 -4
- package/src/types/feed.ts +0 -10
- package/src/types/index.ts +0 -16
- package/src/types/investor-shortlist.ts +0 -18
- package/src/types/investor-signal.ts +0 -26
- package/src/types/like.ts +0 -4
- package/src/types/message.ts +0 -26
- package/src/types/notification.ts +0 -34
- package/src/types/user-strike.ts +0 -10
- package/src/types/username.ts +0 -4
package/dist/schemas/post.d.ts
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* --------------------------------
|
|
4
|
+
* SHARED
|
|
5
|
+
* --------------------------------
|
|
6
|
+
*/
|
|
7
|
+
export declare const LinkMetaSchema: z.ZodObject<{
|
|
8
|
+
url: z.ZodURL;
|
|
9
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type LinkMeta = z.infer<typeof LinkMetaSchema>;
|
|
14
|
+
declare const PostTagSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodInt;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type PostTag = z.infer<typeof PostTagSchema>;
|
|
19
|
+
/**
|
|
20
|
+
* --------------------------------
|
|
21
|
+
* SHAPE
|
|
22
|
+
* --------------------------------
|
|
23
|
+
*/
|
|
24
|
+
declare const PostShape: z.ZodObject<{
|
|
4
25
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
5
26
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
6
27
|
readonly PROJECT: "PROJECT";
|
|
@@ -14,11 +35,16 @@ export declare const PostEntitySchema: z.ZodObject<{
|
|
|
14
35
|
readonly COMMENT: "COMMENT";
|
|
15
36
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
16
37
|
}>>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
38
|
+
content: z.ZodOptional<z.ZodString>;
|
|
39
|
+
postType: z.ZodDefault<z.ZodEnum<{
|
|
40
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
41
|
+
readonly PROJECT: "PROJECT";
|
|
42
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
43
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
44
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
45
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
46
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
47
|
+
}>>;
|
|
22
48
|
badge: z.ZodOptional<z.ZodEnum<{
|
|
23
49
|
readonly NETWORKING: "Networking";
|
|
24
50
|
readonly FUNDING: "Funding";
|
|
@@ -29,12 +55,44 @@ export declare const PostEntitySchema: z.ZodObject<{
|
|
|
29
55
|
readonly DISCUSSION: "Discussion";
|
|
30
56
|
readonly MENTORSHIP: "Mentorship";
|
|
31
57
|
}>>;
|
|
32
|
-
|
|
58
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
59
|
+
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
url: z.ZodURL;
|
|
61
|
+
title: z.ZodOptional<z.ZodString>;
|
|
62
|
+
description: z.ZodOptional<z.ZodString>;
|
|
63
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type PostShapeType = z.infer<typeof PostShape>;
|
|
67
|
+
/**
|
|
68
|
+
* --------------------------------
|
|
69
|
+
* BASE ENTITY
|
|
70
|
+
* --------------------------------
|
|
71
|
+
*/
|
|
72
|
+
export declare const PostEntitySchema: z.ZodObject<{
|
|
73
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
+
id: z.ZodInt;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
}, z.core.$strip>>>;
|
|
33
77
|
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
34
78
|
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
35
|
-
creatorImageUrl: z.ZodOptional<z.
|
|
79
|
+
creatorImageUrl: z.ZodOptional<z.ZodString>;
|
|
80
|
+
createdAt: z.ZodISODateTime;
|
|
81
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
82
|
+
parentType: z.ZodDefault<z.ZodEnum<{
|
|
83
|
+
readonly PROJECT: "PROJECT";
|
|
84
|
+
readonly USER: "USER";
|
|
85
|
+
readonly JOB: "JOB";
|
|
86
|
+
readonly POST: "POST";
|
|
87
|
+
readonly PRODUCT: "PRODUCT";
|
|
88
|
+
readonly SIGNAL: "SIGNAL";
|
|
89
|
+
readonly PRODUCT_COVER: "PRODUCT_COVER";
|
|
90
|
+
readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
|
|
91
|
+
readonly COMMENT: "COMMENT";
|
|
92
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
93
|
+
}>>;
|
|
36
94
|
content: z.ZodOptional<z.ZodString>;
|
|
37
|
-
postType: z.ZodEnum<{
|
|
95
|
+
postType: z.ZodDefault<z.ZodEnum<{
|
|
38
96
|
readonly MARKETPLACE: "MARKETPLACE";
|
|
39
97
|
readonly PROJECT: "PROJECT";
|
|
40
98
|
readonly JOB_OPENING: "JOB_OPENING";
|
|
@@ -42,18 +100,42 @@ export declare const PostEntitySchema: z.ZodObject<{
|
|
|
42
100
|
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
43
101
|
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
44
102
|
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
45
|
-
}
|
|
46
|
-
|
|
103
|
+
}>>;
|
|
104
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
readonly NETWORKING: "Networking";
|
|
106
|
+
readonly FUNDING: "Funding";
|
|
107
|
+
readonly COLLABORATION: "Collaboration";
|
|
108
|
+
readonly OPPORTUNITIES: "Opportunities";
|
|
109
|
+
readonly SHOWCASE: "Showcase";
|
|
110
|
+
readonly LEARNING: "Learning";
|
|
111
|
+
readonly DISCUSSION: "Discussion";
|
|
112
|
+
readonly MENTORSHIP: "Mentorship";
|
|
113
|
+
}>>;
|
|
114
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
47
115
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
48
116
|
url: z.ZodURL;
|
|
49
117
|
title: z.ZodOptional<z.ZodString>;
|
|
50
118
|
description: z.ZodOptional<z.ZodString>;
|
|
51
119
|
image: z.ZodOptional<z.ZodURL>;
|
|
52
120
|
}, z.core.$strip>>;
|
|
121
|
+
id: z.ZodCUID2;
|
|
122
|
+
userId: z.ZodCUID2;
|
|
53
123
|
}, z.core.$strip>;
|
|
54
124
|
export type PostEntity = z.infer<typeof PostEntitySchema>;
|
|
125
|
+
/**
|
|
126
|
+
* --------------------------------
|
|
127
|
+
* DERIVED ENTITIES
|
|
128
|
+
* --------------------------------
|
|
129
|
+
*/
|
|
55
130
|
export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
56
|
-
|
|
131
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
+
id: z.ZodInt;
|
|
133
|
+
name: z.ZodString;
|
|
134
|
+
}, z.core.$strip>>>;
|
|
135
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
136
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
137
|
+
creatorImageUrl: z.ZodOptional<z.ZodString>;
|
|
138
|
+
createdAt: z.ZodISODateTime;
|
|
57
139
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
58
140
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
59
141
|
readonly PROJECT: "PROJECT";
|
|
@@ -67,11 +149,16 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
67
149
|
readonly COMMENT: "COMMENT";
|
|
68
150
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
69
151
|
}>>;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
152
|
+
content: z.ZodOptional<z.ZodString>;
|
|
153
|
+
postType: z.ZodDefault<z.ZodEnum<{
|
|
154
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
155
|
+
readonly PROJECT: "PROJECT";
|
|
156
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
157
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
158
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
159
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
160
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
161
|
+
}>>;
|
|
75
162
|
badge: z.ZodOptional<z.ZodEnum<{
|
|
76
163
|
readonly NETWORKING: "Networking";
|
|
77
164
|
readonly FUNDING: "Funding";
|
|
@@ -82,32 +169,21 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
82
169
|
readonly DISCUSSION: "Discussion";
|
|
83
170
|
readonly MENTORSHIP: "Mentorship";
|
|
84
171
|
}>>;
|
|
85
|
-
|
|
86
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
87
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
88
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
89
|
-
content: z.ZodOptional<z.ZodString>;
|
|
90
|
-
postType: z.ZodEnum<{
|
|
91
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
92
|
-
readonly PROJECT: "PROJECT";
|
|
93
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
94
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
95
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
96
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
97
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
98
|
-
}>;
|
|
99
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
172
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
100
173
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
101
174
|
url: z.ZodURL;
|
|
102
175
|
title: z.ZodOptional<z.ZodString>;
|
|
103
176
|
description: z.ZodOptional<z.ZodString>;
|
|
104
177
|
image: z.ZodOptional<z.ZodURL>;
|
|
105
178
|
}, z.core.$strip>>;
|
|
179
|
+
id: z.ZodCUID2;
|
|
180
|
+
userId: z.ZodCUID2;
|
|
106
181
|
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
-
|
|
182
|
+
createdAt: z.ZodISODateTime;
|
|
183
|
+
updatedAt: z.ZodISODateTime;
|
|
184
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
108
185
|
key: z.ZodString;
|
|
109
186
|
mimeType: z.ZodString;
|
|
110
|
-
url: z.ZodURL;
|
|
111
187
|
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
112
188
|
parentType: z.ZodNullable<z.ZodEnum<{
|
|
113
189
|
readonly PROJECT: "PROJECT";
|
|
@@ -123,19 +199,26 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
123
199
|
}>>;
|
|
124
200
|
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
125
201
|
order: z.ZodNumber;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
202
|
+
id: z.ZodCUID2;
|
|
203
|
+
url: z.ZodURL;
|
|
129
204
|
}, z.core.$strip>>>;
|
|
130
205
|
}, z.core.$strip>;
|
|
131
206
|
export type PostWithFilesEntity = z.infer<typeof PostWithFilesEntitySchema>;
|
|
132
207
|
export declare const MinimalPostSchema: z.ZodObject<{
|
|
133
|
-
id: z.ZodCUID2;
|
|
134
208
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
135
209
|
content: z.ZodOptional<z.ZodString>;
|
|
210
|
+
id: z.ZodCUID2;
|
|
136
211
|
}, z.core.$strip>;
|
|
212
|
+
export type MinimalPost = z.infer<typeof MinimalPostSchema>;
|
|
137
213
|
export declare const FeedPostEntitySchema: z.ZodObject<{
|
|
138
|
-
|
|
214
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
215
|
+
id: z.ZodInt;
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
}, z.core.$strip>>>;
|
|
218
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
219
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
220
|
+
creatorImageUrl: z.ZodOptional<z.ZodString>;
|
|
221
|
+
createdAt: z.ZodISODateTime;
|
|
139
222
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
140
223
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
141
224
|
readonly PROJECT: "PROJECT";
|
|
@@ -149,11 +232,16 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
|
|
|
149
232
|
readonly COMMENT: "COMMENT";
|
|
150
233
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
151
234
|
}>>;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
235
|
+
content: z.ZodOptional<z.ZodString>;
|
|
236
|
+
postType: z.ZodDefault<z.ZodEnum<{
|
|
237
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
238
|
+
readonly PROJECT: "PROJECT";
|
|
239
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
240
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
241
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
242
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
243
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
244
|
+
}>>;
|
|
157
245
|
badge: z.ZodOptional<z.ZodEnum<{
|
|
158
246
|
readonly NETWORKING: "Networking";
|
|
159
247
|
readonly FUNDING: "Funding";
|
|
@@ -164,32 +252,21 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
|
|
|
164
252
|
readonly DISCUSSION: "Discussion";
|
|
165
253
|
readonly MENTORSHIP: "Mentorship";
|
|
166
254
|
}>>;
|
|
167
|
-
|
|
168
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
169
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
170
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
171
|
-
content: z.ZodOptional<z.ZodString>;
|
|
172
|
-
postType: z.ZodEnum<{
|
|
173
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
174
|
-
readonly PROJECT: "PROJECT";
|
|
175
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
176
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
177
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
178
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
179
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
180
|
-
}>;
|
|
181
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
255
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
182
256
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
183
257
|
url: z.ZodURL;
|
|
184
258
|
title: z.ZodOptional<z.ZodString>;
|
|
185
259
|
description: z.ZodOptional<z.ZodString>;
|
|
186
260
|
image: z.ZodOptional<z.ZodURL>;
|
|
187
261
|
}, z.core.$strip>>;
|
|
262
|
+
id: z.ZodCUID2;
|
|
263
|
+
userId: z.ZodCUID2;
|
|
188
264
|
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
|
-
|
|
265
|
+
createdAt: z.ZodISODateTime;
|
|
266
|
+
updatedAt: z.ZodISODateTime;
|
|
267
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
190
268
|
key: z.ZodString;
|
|
191
269
|
mimeType: z.ZodString;
|
|
192
|
-
url: z.ZodURL;
|
|
193
270
|
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
194
271
|
parentType: z.ZodNullable<z.ZodEnum<{
|
|
195
272
|
readonly PROJECT: "PROJECT";
|
|
@@ -205,13 +282,12 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
|
|
|
205
282
|
}>>;
|
|
206
283
|
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
207
284
|
order: z.ZodNumber;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
285
|
+
id: z.ZodCUID2;
|
|
286
|
+
url: z.ZodURL;
|
|
211
287
|
}, z.core.$strip>>>;
|
|
212
288
|
stats: z.ZodObject<{
|
|
213
|
-
|
|
214
|
-
|
|
289
|
+
createdAt: z.ZodISODateTime;
|
|
290
|
+
updatedAt: z.ZodISODateTime;
|
|
215
291
|
parentId: z.ZodCUID2;
|
|
216
292
|
parentType: z.ZodEnum<{
|
|
217
293
|
readonly PROJECT: "PROJECT";
|
|
@@ -236,8 +312,12 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
|
|
|
236
312
|
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
237
313
|
}, z.core.$strip>;
|
|
238
314
|
export type FeedPostEntity = z.infer<typeof FeedPostEntitySchema>;
|
|
315
|
+
/**
|
|
316
|
+
* --------------------------------
|
|
317
|
+
* INPUTS
|
|
318
|
+
* --------------------------------
|
|
319
|
+
*/
|
|
239
320
|
export declare const CreatePostInputSchema: z.ZodObject<{
|
|
240
|
-
id: z.ZodCUID2;
|
|
241
321
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
242
322
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
243
323
|
readonly PROJECT: "PROJECT";
|
|
@@ -251,7 +331,6 @@ export declare const CreatePostInputSchema: z.ZodObject<{
|
|
|
251
331
|
readonly COMMENT: "COMMENT";
|
|
252
332
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
253
333
|
}>>;
|
|
254
|
-
content: z.ZodOptional<z.ZodString>;
|
|
255
334
|
postType: z.ZodDefault<z.ZodEnum<{
|
|
256
335
|
readonly MARKETPLACE: "MARKETPLACE";
|
|
257
336
|
readonly PROJECT: "PROJECT";
|
|
@@ -261,6 +340,24 @@ export declare const CreatePostInputSchema: z.ZodObject<{
|
|
|
261
340
|
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
262
341
|
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
263
342
|
}>>;
|
|
343
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
readonly NETWORKING: "Networking";
|
|
345
|
+
readonly FUNDING: "Funding";
|
|
346
|
+
readonly COLLABORATION: "Collaboration";
|
|
347
|
+
readonly OPPORTUNITIES: "Opportunities";
|
|
348
|
+
readonly SHOWCASE: "Showcase";
|
|
349
|
+
readonly LEARNING: "Learning";
|
|
350
|
+
readonly DISCUSSION: "Discussion";
|
|
351
|
+
readonly MENTORSHIP: "Mentorship";
|
|
352
|
+
}>>;
|
|
353
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
354
|
+
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
355
|
+
url: z.ZodURL;
|
|
356
|
+
title: z.ZodOptional<z.ZodString>;
|
|
357
|
+
description: z.ZodOptional<z.ZodString>;
|
|
358
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
359
|
+
}, z.core.$strip>>;
|
|
360
|
+
content: z.ZodOptional<z.ZodString>;
|
|
264
361
|
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
265
362
|
key: z.ZodString;
|
|
266
363
|
mimeType: z.ZodString;
|
|
@@ -281,29 +378,12 @@ export declare const CreatePostInputSchema: z.ZodObject<{
|
|
|
281
378
|
isThumbnail: z.ZodOptional<z.ZodBoolean>;
|
|
282
379
|
}, z.core.$strip>>>;
|
|
283
380
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
284
|
-
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
285
|
-
badge: z.ZodOptional<z.ZodEnum<{
|
|
286
|
-
readonly NETWORKING: "Networking";
|
|
287
|
-
readonly FUNDING: "Funding";
|
|
288
|
-
readonly COLLABORATION: "Collaboration";
|
|
289
|
-
readonly OPPORTUNITIES: "Opportunities";
|
|
290
|
-
readonly SHOWCASE: "Showcase";
|
|
291
|
-
readonly LEARNING: "Learning";
|
|
292
|
-
readonly DISCUSSION: "Discussion";
|
|
293
|
-
readonly MENTORSHIP: "Mentorship";
|
|
294
|
-
}>>;
|
|
295
|
-
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
296
|
-
url: z.ZodURL;
|
|
297
|
-
title: z.ZodOptional<z.ZodString>;
|
|
298
|
-
description: z.ZodOptional<z.ZodString>;
|
|
299
|
-
image: z.ZodOptional<z.ZodString>;
|
|
300
|
-
}, z.core.$strip>>;
|
|
301
381
|
}, z.core.$strip>;
|
|
302
382
|
export type CreatePostInput = z.infer<typeof CreatePostInputSchema>;
|
|
303
|
-
export declare const
|
|
383
|
+
export declare const PostIdInputSchema: z.ZodObject<{
|
|
304
384
|
postId: z.ZodCUID2;
|
|
305
385
|
}, z.core.$strip>;
|
|
306
|
-
export type PostIdInput = z.infer<typeof
|
|
386
|
+
export type PostIdInput = z.infer<typeof PostIdInputSchema>;
|
|
307
387
|
export declare const LinkPreviewInputSchema: z.ZodObject<{
|
|
308
388
|
url: z.ZodURL;
|
|
309
389
|
}, z.core.$strip>;
|
|
@@ -313,7 +393,7 @@ export declare const ReportPostInputSchema: z.ZodObject<{
|
|
|
313
393
|
}, z.core.$strip>;
|
|
314
394
|
export type ReportPostInput = z.infer<typeof ReportPostInputSchema>;
|
|
315
395
|
export declare const GetFeedInputSchema: z.ZodObject<{
|
|
316
|
-
limit: z.
|
|
396
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
317
397
|
cursor: z.ZodOptional<z.ZodString>;
|
|
318
398
|
}, z.core.$strip>;
|
|
319
399
|
export type GetFeedInput = z.infer<typeof GetFeedInputSchema>;
|
|
@@ -322,8 +402,20 @@ export declare const SearchPostInputSchema: z.ZodObject<{
|
|
|
322
402
|
cursor: z.ZodOptional<z.ZodString>;
|
|
323
403
|
}, z.core.$strip>;
|
|
324
404
|
export type SearchPostInput = z.infer<typeof SearchPostInputSchema>;
|
|
405
|
+
/**
|
|
406
|
+
* --------------------------------
|
|
407
|
+
* OUTPUTS
|
|
408
|
+
* --------------------------------
|
|
409
|
+
*/
|
|
325
410
|
export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
326
|
-
|
|
411
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
412
|
+
id: z.ZodInt;
|
|
413
|
+
name: z.ZodString;
|
|
414
|
+
}, z.core.$strip>>>;
|
|
415
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
416
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
417
|
+
creatorImageUrl: z.ZodOptional<z.ZodString>;
|
|
418
|
+
createdAt: z.ZodISODateTime;
|
|
327
419
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
328
420
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
329
421
|
readonly PROJECT: "PROJECT";
|
|
@@ -337,11 +429,16 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
|
337
429
|
readonly COMMENT: "COMMENT";
|
|
338
430
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
339
431
|
}>>;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
432
|
+
content: z.ZodOptional<z.ZodString>;
|
|
433
|
+
postType: z.ZodDefault<z.ZodEnum<{
|
|
434
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
435
|
+
readonly PROJECT: "PROJECT";
|
|
436
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
437
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
438
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
439
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
440
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
441
|
+
}>>;
|
|
345
442
|
badge: z.ZodOptional<z.ZodEnum<{
|
|
346
443
|
readonly NETWORKING: "Networking";
|
|
347
444
|
readonly FUNDING: "Funding";
|
|
@@ -352,31 +449,26 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
|
352
449
|
readonly DISCUSSION: "Discussion";
|
|
353
450
|
readonly MENTORSHIP: "Mentorship";
|
|
354
451
|
}>>;
|
|
355
|
-
|
|
356
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
357
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
358
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
359
|
-
content: z.ZodOptional<z.ZodString>;
|
|
360
|
-
postType: z.ZodEnum<{
|
|
361
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
362
|
-
readonly PROJECT: "PROJECT";
|
|
363
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
364
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
365
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
366
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
367
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
368
|
-
}>;
|
|
369
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
452
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
370
453
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
371
454
|
url: z.ZodURL;
|
|
372
455
|
title: z.ZodOptional<z.ZodString>;
|
|
373
456
|
description: z.ZodOptional<z.ZodString>;
|
|
374
457
|
image: z.ZodOptional<z.ZodURL>;
|
|
375
458
|
}, z.core.$strip>>;
|
|
459
|
+
id: z.ZodCUID2;
|
|
460
|
+
userId: z.ZodCUID2;
|
|
376
461
|
}, z.core.$strip>;
|
|
377
462
|
export type CreatePostOutput = z.infer<typeof CreatePostOutputSchema>;
|
|
378
463
|
export declare const GetPostOutputSchema: z.ZodObject<{
|
|
379
|
-
|
|
464
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
465
|
+
id: z.ZodInt;
|
|
466
|
+
name: z.ZodString;
|
|
467
|
+
}, z.core.$strip>>>;
|
|
468
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
469
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
470
|
+
creatorImageUrl: z.ZodOptional<z.ZodString>;
|
|
471
|
+
createdAt: z.ZodISODateTime;
|
|
380
472
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
381
473
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
382
474
|
readonly PROJECT: "PROJECT";
|
|
@@ -390,11 +482,16 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
390
482
|
readonly COMMENT: "COMMENT";
|
|
391
483
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
392
484
|
}>>;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
485
|
+
content: z.ZodOptional<z.ZodString>;
|
|
486
|
+
postType: z.ZodDefault<z.ZodEnum<{
|
|
487
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
488
|
+
readonly PROJECT: "PROJECT";
|
|
489
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
490
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
491
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
492
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
493
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
494
|
+
}>>;
|
|
398
495
|
badge: z.ZodOptional<z.ZodEnum<{
|
|
399
496
|
readonly NETWORKING: "Networking";
|
|
400
497
|
readonly FUNDING: "Funding";
|
|
@@ -405,32 +502,21 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
405
502
|
readonly DISCUSSION: "Discussion";
|
|
406
503
|
readonly MENTORSHIP: "Mentorship";
|
|
407
504
|
}>>;
|
|
408
|
-
|
|
409
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
410
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
411
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
412
|
-
content: z.ZodOptional<z.ZodString>;
|
|
413
|
-
postType: z.ZodEnum<{
|
|
414
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
415
|
-
readonly PROJECT: "PROJECT";
|
|
416
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
417
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
418
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
419
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
420
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
421
|
-
}>;
|
|
422
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
505
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
423
506
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
424
507
|
url: z.ZodURL;
|
|
425
508
|
title: z.ZodOptional<z.ZodString>;
|
|
426
509
|
description: z.ZodOptional<z.ZodString>;
|
|
427
510
|
image: z.ZodOptional<z.ZodURL>;
|
|
428
511
|
}, z.core.$strip>>;
|
|
512
|
+
id: z.ZodCUID2;
|
|
513
|
+
userId: z.ZodCUID2;
|
|
429
514
|
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
430
|
-
|
|
515
|
+
createdAt: z.ZodISODateTime;
|
|
516
|
+
updatedAt: z.ZodISODateTime;
|
|
517
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
431
518
|
key: z.ZodString;
|
|
432
519
|
mimeType: z.ZodString;
|
|
433
|
-
url: z.ZodURL;
|
|
434
520
|
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
435
521
|
parentType: z.ZodNullable<z.ZodEnum<{
|
|
436
522
|
readonly PROJECT: "PROJECT";
|
|
@@ -446,22 +532,28 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
446
532
|
}>>;
|
|
447
533
|
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
448
534
|
order: z.ZodNumber;
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
535
|
+
id: z.ZodCUID2;
|
|
536
|
+
url: z.ZodURL;
|
|
452
537
|
}, z.core.$strip>>>;
|
|
453
538
|
}, z.core.$strip>;
|
|
454
539
|
export type GetPostOutput = z.infer<typeof GetPostOutputSchema>;
|
|
455
540
|
export declare const LinkPreviewOutputSchema: z.ZodObject<{
|
|
456
|
-
|
|
541
|
+
url: z.ZodURL;
|
|
542
|
+
title: z.ZodOptional<z.ZodString>;
|
|
457
543
|
description: z.ZodOptional<z.ZodString>;
|
|
458
|
-
image: z.ZodOptional<z.
|
|
459
|
-
url: z.ZodOptional<z.ZodString>;
|
|
544
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
460
545
|
}, z.core.$strip>;
|
|
461
546
|
export type LinkPreviewOutput = z.infer<typeof LinkPreviewOutputSchema>;
|
|
462
547
|
export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
463
548
|
feed: z.ZodArray<z.ZodObject<{
|
|
464
|
-
|
|
549
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
550
|
+
id: z.ZodInt;
|
|
551
|
+
name: z.ZodString;
|
|
552
|
+
}, z.core.$strip>>>;
|
|
553
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
554
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
555
|
+
creatorImageUrl: z.ZodOptional<z.ZodString>;
|
|
556
|
+
createdAt: z.ZodISODateTime;
|
|
465
557
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
466
558
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
467
559
|
readonly PROJECT: "PROJECT";
|
|
@@ -475,11 +567,16 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
|
475
567
|
readonly COMMENT: "COMMENT";
|
|
476
568
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
477
569
|
}>>;
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
570
|
+
content: z.ZodOptional<z.ZodString>;
|
|
571
|
+
postType: z.ZodDefault<z.ZodEnum<{
|
|
572
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
573
|
+
readonly PROJECT: "PROJECT";
|
|
574
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
575
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
576
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
577
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
578
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
579
|
+
}>>;
|
|
483
580
|
badge: z.ZodOptional<z.ZodEnum<{
|
|
484
581
|
readonly NETWORKING: "Networking";
|
|
485
582
|
readonly FUNDING: "Funding";
|
|
@@ -490,32 +587,21 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
|
490
587
|
readonly DISCUSSION: "Discussion";
|
|
491
588
|
readonly MENTORSHIP: "Mentorship";
|
|
492
589
|
}>>;
|
|
493
|
-
|
|
494
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
495
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
496
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
497
|
-
content: z.ZodOptional<z.ZodString>;
|
|
498
|
-
postType: z.ZodEnum<{
|
|
499
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
500
|
-
readonly PROJECT: "PROJECT";
|
|
501
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
502
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
503
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
504
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
505
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
506
|
-
}>;
|
|
507
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
590
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
508
591
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
509
592
|
url: z.ZodURL;
|
|
510
593
|
title: z.ZodOptional<z.ZodString>;
|
|
511
594
|
description: z.ZodOptional<z.ZodString>;
|
|
512
595
|
image: z.ZodOptional<z.ZodURL>;
|
|
513
596
|
}, z.core.$strip>>;
|
|
597
|
+
id: z.ZodCUID2;
|
|
598
|
+
userId: z.ZodCUID2;
|
|
514
599
|
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
515
|
-
|
|
600
|
+
createdAt: z.ZodISODateTime;
|
|
601
|
+
updatedAt: z.ZodISODateTime;
|
|
602
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
516
603
|
key: z.ZodString;
|
|
517
604
|
mimeType: z.ZodString;
|
|
518
|
-
url: z.ZodURL;
|
|
519
605
|
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
520
606
|
parentType: z.ZodNullable<z.ZodEnum<{
|
|
521
607
|
readonly PROJECT: "PROJECT";
|
|
@@ -531,13 +617,12 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
|
531
617
|
}>>;
|
|
532
618
|
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
533
619
|
order: z.ZodNumber;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
620
|
+
id: z.ZodCUID2;
|
|
621
|
+
url: z.ZodURL;
|
|
537
622
|
}, z.core.$strip>>>;
|
|
538
623
|
stats: z.ZodObject<{
|
|
539
|
-
|
|
540
|
-
|
|
624
|
+
createdAt: z.ZodISODateTime;
|
|
625
|
+
updatedAt: z.ZodISODateTime;
|
|
541
626
|
parentId: z.ZodCUID2;
|
|
542
627
|
parentType: z.ZodEnum<{
|
|
543
628
|
readonly PROJECT: "PROJECT";
|
|
@@ -561,12 +646,19 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
|
561
646
|
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
562
647
|
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
563
648
|
}, z.core.$strip>>;
|
|
564
|
-
nextCursor: z.
|
|
649
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
565
650
|
}, z.core.$strip>;
|
|
566
651
|
export type GetFeedOutput = z.infer<typeof GetFeedOutputSchema>;
|
|
567
652
|
export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
568
653
|
posts: z.ZodArray<z.ZodObject<{
|
|
569
|
-
|
|
654
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
655
|
+
id: z.ZodInt;
|
|
656
|
+
name: z.ZodString;
|
|
657
|
+
}, z.core.$strip>>>;
|
|
658
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
659
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
660
|
+
creatorImageUrl: z.ZodOptional<z.ZodString>;
|
|
661
|
+
createdAt: z.ZodISODateTime;
|
|
570
662
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
571
663
|
parentType: z.ZodDefault<z.ZodEnum<{
|
|
572
664
|
readonly PROJECT: "PROJECT";
|
|
@@ -580,11 +672,16 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
|
580
672
|
readonly COMMENT: "COMMENT";
|
|
581
673
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
582
674
|
}>>;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
675
|
+
content: z.ZodOptional<z.ZodString>;
|
|
676
|
+
postType: z.ZodDefault<z.ZodEnum<{
|
|
677
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
678
|
+
readonly PROJECT: "PROJECT";
|
|
679
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
680
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
681
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
682
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
683
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
684
|
+
}>>;
|
|
588
685
|
badge: z.ZodOptional<z.ZodEnum<{
|
|
589
686
|
readonly NETWORKING: "Networking";
|
|
590
687
|
readonly FUNDING: "Funding";
|
|
@@ -595,32 +692,21 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
|
595
692
|
readonly DISCUSSION: "Discussion";
|
|
596
693
|
readonly MENTORSHIP: "Mentorship";
|
|
597
694
|
}>>;
|
|
598
|
-
|
|
599
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
600
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
601
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
602
|
-
content: z.ZodOptional<z.ZodString>;
|
|
603
|
-
postType: z.ZodEnum<{
|
|
604
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
605
|
-
readonly PROJECT: "PROJECT";
|
|
606
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
607
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
608
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
609
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
610
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
611
|
-
}>;
|
|
612
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
695
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
613
696
|
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
614
697
|
url: z.ZodURL;
|
|
615
698
|
title: z.ZodOptional<z.ZodString>;
|
|
616
699
|
description: z.ZodOptional<z.ZodString>;
|
|
617
700
|
image: z.ZodOptional<z.ZodURL>;
|
|
618
701
|
}, z.core.$strip>>;
|
|
702
|
+
id: z.ZodCUID2;
|
|
703
|
+
userId: z.ZodCUID2;
|
|
619
704
|
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
620
|
-
|
|
705
|
+
createdAt: z.ZodISODateTime;
|
|
706
|
+
updatedAt: z.ZodISODateTime;
|
|
707
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
621
708
|
key: z.ZodString;
|
|
622
709
|
mimeType: z.ZodString;
|
|
623
|
-
url: z.ZodURL;
|
|
624
710
|
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
625
711
|
parentType: z.ZodNullable<z.ZodEnum<{
|
|
626
712
|
readonly PROJECT: "PROJECT";
|
|
@@ -636,13 +722,12 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
|
636
722
|
}>>;
|
|
637
723
|
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
638
724
|
order: z.ZodNumber;
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
725
|
+
id: z.ZodCUID2;
|
|
726
|
+
url: z.ZodURL;
|
|
642
727
|
}, z.core.$strip>>>;
|
|
643
728
|
stats: z.ZodObject<{
|
|
644
|
-
|
|
645
|
-
|
|
729
|
+
createdAt: z.ZodISODateTime;
|
|
730
|
+
updatedAt: z.ZodISODateTime;
|
|
646
731
|
parentId: z.ZodCUID2;
|
|
647
732
|
parentType: z.ZodEnum<{
|
|
648
733
|
readonly PROJECT: "PROJECT";
|
|
@@ -666,7 +751,7 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
|
666
751
|
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
667
752
|
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
668
753
|
}, z.core.$strip>>;
|
|
669
|
-
nextCursor: z.
|
|
754
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
670
755
|
}, z.core.$strip>;
|
|
671
756
|
export type SearchPostOutput = z.infer<typeof SearchPostOutputSchema>;
|
|
672
757
|
export declare const PostAnalyticsOutputSchema: z.ZodObject<{
|
|
@@ -709,6 +794,11 @@ export declare const PostAnalyticsOutputSchema: z.ZodObject<{
|
|
|
709
794
|
}, z.core.$strip>;
|
|
710
795
|
}, z.core.$strip>;
|
|
711
796
|
export type PostAnalyticsOutput = z.infer<typeof PostAnalyticsOutputSchema>;
|
|
797
|
+
/**
|
|
798
|
+
* --------------------------------
|
|
799
|
+
* SEARCH DOCUMENT
|
|
800
|
+
* --------------------------------
|
|
801
|
+
*/
|
|
712
802
|
export declare const PostSearchDocumentSchema: z.ZodObject<{
|
|
713
803
|
id: z.ZodCUID2;
|
|
714
804
|
userId: z.ZodCUID2;
|
|
@@ -727,7 +817,7 @@ export declare const PostSearchDocumentSchema: z.ZodObject<{
|
|
|
727
817
|
}>;
|
|
728
818
|
creatorUsername: z.ZodNullable<z.ZodString>;
|
|
729
819
|
creatorFullName: z.ZodNullable<z.ZodString>;
|
|
730
|
-
creatorImageUrl: z.ZodNullable<z.
|
|
820
|
+
creatorImageUrl: z.ZodNullable<z.ZodString>;
|
|
731
821
|
tagIds: z.ZodArray<z.ZodNumber>;
|
|
732
822
|
tagNames: z.ZodArray<z.ZodString>;
|
|
733
823
|
badge: z.ZodNullable<z.ZodEnum<{
|
|
@@ -755,10 +845,11 @@ export declare const PostSearchDocumentSchema: z.ZodObject<{
|
|
|
755
845
|
linkUrl: z.ZodNullable<z.ZodURL>;
|
|
756
846
|
linkImage: z.ZodNullable<z.ZodURL>;
|
|
757
847
|
files: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
758
|
-
|
|
848
|
+
createdAt: z.ZodISODateTime;
|
|
849
|
+
updatedAt: z.ZodISODateTime;
|
|
850
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
759
851
|
key: z.ZodString;
|
|
760
852
|
mimeType: z.ZodString;
|
|
761
|
-
url: z.ZodURL;
|
|
762
853
|
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
763
854
|
parentType: z.ZodNullable<z.ZodEnum<{
|
|
764
855
|
readonly PROJECT: "PROJECT";
|
|
@@ -774,11 +865,11 @@ export declare const PostSearchDocumentSchema: z.ZodObject<{
|
|
|
774
865
|
}>>;
|
|
775
866
|
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
776
867
|
order: z.ZodNumber;
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
868
|
+
id: z.ZodCUID2;
|
|
869
|
+
url: z.ZodURL;
|
|
780
870
|
}, z.core.$strip>>>;
|
|
781
871
|
mentions: z.ZodOptional<z.ZodArray<z.ZodCUID2>>;
|
|
782
|
-
createdAt: z.ZodNullable<z.
|
|
872
|
+
createdAt: z.ZodNullable<z.ZodISODateTime>;
|
|
783
873
|
}, z.core.$strip>;
|
|
784
874
|
export type PostSearchDocument = z.infer<typeof PostSearchDocumentSchema>;
|
|
875
|
+
export {};
|