@zyacreatives/shared 1.1.4 → 1.2.2
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/schemas/brand.d.ts +46 -28
- package/dist/schemas/brand.js +49 -17
- package/dist/schemas/creative.d.ts +89 -29
- package/dist/schemas/creative.js +48 -19
- package/dist/schemas/investor.d.ts +351 -0
- package/dist/schemas/investor.js +162 -0
- package/dist/schemas/project.d.ts +116 -0
- package/dist/schemas/project.js +153 -0
- package/dist/schemas/user.d.ts +116 -52
- package/dist/schemas/user.js +48 -51
- package/dist/schemas/username.d.ts +1 -0
- package/dist/schemas/username.js +2 -0
- package/dist/types/brand.d.ts +13 -21
- package/dist/types/creative.d.ts +13 -25
- package/dist/types/investor.d.ts +13 -27
- package/dist/types/project.d.ts +2 -2
- package/dist/types/user.d.ts +10 -43
- package/dist/utils/slugify.d.ts +3 -0
- package/dist/utils/slugify.js +14 -0
- package/package.json +1 -1
- package/src/schemas/brand.ts +58 -36
- package/src/schemas/creative.ts +66 -41
- package/src/schemas/investor.ts +212 -0
- package/src/schemas/project.ts +162 -0
- package/src/schemas/user.ts +55 -77
- package/src/schemas/username.ts +0 -0
- package/src/types/brand.ts +35 -21
- package/src/types/creative.ts +38 -26
- package/src/types/investor.ts +38 -33
- package/src/types/project.ts +2 -2
- package/src/types/user.ts +33 -59
- package/src/utils/slugify.ts +10 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
export declare const InvestorEntitySchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodCUID2;
|
|
4
|
+
userId: z.ZodCUID2;
|
|
5
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
6
|
+
location: z.ZodOptional<z.ZodString>;
|
|
7
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
"0-1 year": "0-1 year";
|
|
9
|
+
"1-3 years": "1-3 years";
|
|
10
|
+
"3-5 years": "3-5 years";
|
|
11
|
+
"5+ years": "5+ years";
|
|
12
|
+
}>>;
|
|
13
|
+
geographicFocus: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
Africa: "Africa";
|
|
15
|
+
Asia: "Asia";
|
|
16
|
+
Europe: "Europe";
|
|
17
|
+
"North America": "North America";
|
|
18
|
+
"South America": "South America";
|
|
19
|
+
"Middle East": "Middle East";
|
|
20
|
+
Oceania: "Oceania";
|
|
21
|
+
"United Kingdom (UK)": "United Kingdom (UK)";
|
|
22
|
+
"United States (US)": "United States (US)";
|
|
23
|
+
Global: "Global";
|
|
24
|
+
Other: "Other";
|
|
25
|
+
}>>;
|
|
26
|
+
investmentSize: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
"Under 5k USD": "Under 5k USD";
|
|
28
|
+
"5k - 25k USD": "5k - 25k USD";
|
|
29
|
+
"25k - 100k USD": "25k - 100k USD";
|
|
30
|
+
"100k - 500k USD": "100k - 500k USD";
|
|
31
|
+
"500k - 1M USD": "500k - 1M USD";
|
|
32
|
+
"1M+ USD": "1M+ USD";
|
|
33
|
+
}>>;
|
|
34
|
+
investorType: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
"Angel Investor": "Angel Investor";
|
|
36
|
+
"Venture Capitalist": "Venture Capitalist";
|
|
37
|
+
"Private Equity Firm": "Private Equity Firm";
|
|
38
|
+
"Venture Debt Provider": "Venture Debt Provider";
|
|
39
|
+
Bank: "Bank";
|
|
40
|
+
"Convertible Note Investor": "Convertible Note Investor";
|
|
41
|
+
"Revenue Based Financing Investor": "Revenue Based Financing Investor";
|
|
42
|
+
"Corporate Venture Capitalist": "Corporate Venture Capitalist";
|
|
43
|
+
Government: "Government";
|
|
44
|
+
"Social Impact Investor": "Social Impact Investor";
|
|
45
|
+
}>>;
|
|
46
|
+
websiteURL: z.ZodOptional<z.ZodString>;
|
|
47
|
+
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
49
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const InvestorWithUserEntitySchema: z.ZodObject<{
|
|
52
|
+
id: z.ZodCUID2;
|
|
53
|
+
userId: z.ZodCUID2;
|
|
54
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
55
|
+
location: z.ZodOptional<z.ZodString>;
|
|
56
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
"0-1 year": "0-1 year";
|
|
58
|
+
"1-3 years": "1-3 years";
|
|
59
|
+
"3-5 years": "3-5 years";
|
|
60
|
+
"5+ years": "5+ years";
|
|
61
|
+
}>>;
|
|
62
|
+
geographicFocus: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
Africa: "Africa";
|
|
64
|
+
Asia: "Asia";
|
|
65
|
+
Europe: "Europe";
|
|
66
|
+
"North America": "North America";
|
|
67
|
+
"South America": "South America";
|
|
68
|
+
"Middle East": "Middle East";
|
|
69
|
+
Oceania: "Oceania";
|
|
70
|
+
"United Kingdom (UK)": "United Kingdom (UK)";
|
|
71
|
+
"United States (US)": "United States (US)";
|
|
72
|
+
Global: "Global";
|
|
73
|
+
Other: "Other";
|
|
74
|
+
}>>;
|
|
75
|
+
investmentSize: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
"Under 5k USD": "Under 5k USD";
|
|
77
|
+
"5k - 25k USD": "5k - 25k USD";
|
|
78
|
+
"25k - 100k USD": "25k - 100k USD";
|
|
79
|
+
"100k - 500k USD": "100k - 500k USD";
|
|
80
|
+
"500k - 1M USD": "500k - 1M USD";
|
|
81
|
+
"1M+ USD": "1M+ USD";
|
|
82
|
+
}>>;
|
|
83
|
+
investorType: z.ZodOptional<z.ZodEnum<{
|
|
84
|
+
"Angel Investor": "Angel Investor";
|
|
85
|
+
"Venture Capitalist": "Venture Capitalist";
|
|
86
|
+
"Private Equity Firm": "Private Equity Firm";
|
|
87
|
+
"Venture Debt Provider": "Venture Debt Provider";
|
|
88
|
+
Bank: "Bank";
|
|
89
|
+
"Convertible Note Investor": "Convertible Note Investor";
|
|
90
|
+
"Revenue Based Financing Investor": "Revenue Based Financing Investor";
|
|
91
|
+
"Corporate Venture Capitalist": "Corporate Venture Capitalist";
|
|
92
|
+
Government: "Government";
|
|
93
|
+
"Social Impact Investor": "Social Impact Investor";
|
|
94
|
+
}>>;
|
|
95
|
+
websiteURL: z.ZodOptional<z.ZodString>;
|
|
96
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
97
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
98
|
+
user: z.ZodObject<{
|
|
99
|
+
id: z.ZodCUID2;
|
|
100
|
+
username: z.ZodOptional<z.ZodString>;
|
|
101
|
+
email: z.ZodString;
|
|
102
|
+
name: z.ZodOptional<z.ZodString>;
|
|
103
|
+
image: z.ZodOptional<z.ZodString>;
|
|
104
|
+
role: z.ZodEnum<{
|
|
105
|
+
CREATIVE: "CREATIVE";
|
|
106
|
+
BRAND: "BRAND";
|
|
107
|
+
INVESTOR: "INVESTOR";
|
|
108
|
+
ADMIN: "ADMIN";
|
|
109
|
+
}>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
disciplines: z.ZodArray<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export declare const CreateInvestorProfileSchema: z.ZodObject<{
|
|
114
|
+
bio: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
115
|
+
websiteURL: z.ZodOptional<z.ZodString>;
|
|
116
|
+
experienceLevel: z.ZodDefault<z.ZodEnum<{
|
|
117
|
+
"0-1 year": "0-1 year";
|
|
118
|
+
"1-3 years": "1-3 years";
|
|
119
|
+
"3-5 years": "3-5 years";
|
|
120
|
+
"5+ years": "5+ years";
|
|
121
|
+
}>>;
|
|
122
|
+
location: z.ZodString;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export declare const UpdateInvestorProfileSchema: z.ZodObject<{
|
|
125
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
126
|
+
websiteURL: z.ZodOptional<z.ZodString>;
|
|
127
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
128
|
+
"0-1 year": "0-1 year";
|
|
129
|
+
"1-3 years": "1-3 years";
|
|
130
|
+
"3-5 years": "3-5 years";
|
|
131
|
+
"5+ years": "5+ years";
|
|
132
|
+
}>>;
|
|
133
|
+
investorType: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
"Angel Investor": "Angel Investor";
|
|
135
|
+
"Venture Capitalist": "Venture Capitalist";
|
|
136
|
+
"Private Equity Firm": "Private Equity Firm";
|
|
137
|
+
"Venture Debt Provider": "Venture Debt Provider";
|
|
138
|
+
Bank: "Bank";
|
|
139
|
+
"Convertible Note Investor": "Convertible Note Investor";
|
|
140
|
+
"Revenue Based Financing Investor": "Revenue Based Financing Investor";
|
|
141
|
+
"Corporate Venture Capitalist": "Corporate Venture Capitalist";
|
|
142
|
+
Government: "Government";
|
|
143
|
+
"Social Impact Investor": "Social Impact Investor";
|
|
144
|
+
}>>;
|
|
145
|
+
disciplineSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
146
|
+
investmentSize: z.ZodOptional<z.ZodEnum<{
|
|
147
|
+
"Under 5k USD": "Under 5k USD";
|
|
148
|
+
"5k - 25k USD": "5k - 25k USD";
|
|
149
|
+
"25k - 100k USD": "25k - 100k USD";
|
|
150
|
+
"100k - 500k USD": "100k - 500k USD";
|
|
151
|
+
"500k - 1M USD": "500k - 1M USD";
|
|
152
|
+
"1M+ USD": "1M+ USD";
|
|
153
|
+
}>>;
|
|
154
|
+
geographicFocus: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
Africa: "Africa";
|
|
156
|
+
Asia: "Asia";
|
|
157
|
+
Europe: "Europe";
|
|
158
|
+
"North America": "North America";
|
|
159
|
+
"South America": "South America";
|
|
160
|
+
"Middle East": "Middle East";
|
|
161
|
+
Oceania: "Oceania";
|
|
162
|
+
"United Kingdom (UK)": "United Kingdom (UK)";
|
|
163
|
+
"United States (US)": "United States (US)";
|
|
164
|
+
Global: "Global";
|
|
165
|
+
Other: "Other";
|
|
166
|
+
}>>;
|
|
167
|
+
location: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export declare const ListInvestorsInputSchema: z.ZodObject<{
|
|
170
|
+
query: z.ZodOptional<z.ZodString>;
|
|
171
|
+
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
|
+
experienceLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
173
|
+
"0-1 year": "0-1 year";
|
|
174
|
+
"1-3 years": "1-3 years";
|
|
175
|
+
"3-5 years": "3-5 years";
|
|
176
|
+
"5+ years": "5+ years";
|
|
177
|
+
}>>>;
|
|
178
|
+
location: z.ZodOptional<z.ZodString>;
|
|
179
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
180
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
181
|
+
perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
export declare const GetInvestorParamsSchema: z.ZodObject<{
|
|
184
|
+
value: z.ZodCUID2;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export declare const GetInvestorQuerySchema: z.ZodObject<{
|
|
187
|
+
by: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
id: "id";
|
|
189
|
+
userId: "userId";
|
|
190
|
+
}>>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
export declare const CreateInvestorEndpointResponseSchema: z.ZodObject<{
|
|
193
|
+
id: z.ZodCUID2;
|
|
194
|
+
userId: z.ZodCUID2;
|
|
195
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
196
|
+
location: z.ZodOptional<z.ZodString>;
|
|
197
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
198
|
+
"0-1 year": "0-1 year";
|
|
199
|
+
"1-3 years": "1-3 years";
|
|
200
|
+
"3-5 years": "3-5 years";
|
|
201
|
+
"5+ years": "5+ years";
|
|
202
|
+
}>>;
|
|
203
|
+
geographicFocus: z.ZodOptional<z.ZodEnum<{
|
|
204
|
+
Africa: "Africa";
|
|
205
|
+
Asia: "Asia";
|
|
206
|
+
Europe: "Europe";
|
|
207
|
+
"North America": "North America";
|
|
208
|
+
"South America": "South America";
|
|
209
|
+
"Middle East": "Middle East";
|
|
210
|
+
Oceania: "Oceania";
|
|
211
|
+
"United Kingdom (UK)": "United Kingdom (UK)";
|
|
212
|
+
"United States (US)": "United States (US)";
|
|
213
|
+
Global: "Global";
|
|
214
|
+
Other: "Other";
|
|
215
|
+
}>>;
|
|
216
|
+
investmentSize: z.ZodOptional<z.ZodEnum<{
|
|
217
|
+
"Under 5k USD": "Under 5k USD";
|
|
218
|
+
"5k - 25k USD": "5k - 25k USD";
|
|
219
|
+
"25k - 100k USD": "25k - 100k USD";
|
|
220
|
+
"100k - 500k USD": "100k - 500k USD";
|
|
221
|
+
"500k - 1M USD": "500k - 1M USD";
|
|
222
|
+
"1M+ USD": "1M+ USD";
|
|
223
|
+
}>>;
|
|
224
|
+
investorType: z.ZodOptional<z.ZodEnum<{
|
|
225
|
+
"Angel Investor": "Angel Investor";
|
|
226
|
+
"Venture Capitalist": "Venture Capitalist";
|
|
227
|
+
"Private Equity Firm": "Private Equity Firm";
|
|
228
|
+
"Venture Debt Provider": "Venture Debt Provider";
|
|
229
|
+
Bank: "Bank";
|
|
230
|
+
"Convertible Note Investor": "Convertible Note Investor";
|
|
231
|
+
"Revenue Based Financing Investor": "Revenue Based Financing Investor";
|
|
232
|
+
"Corporate Venture Capitalist": "Corporate Venture Capitalist";
|
|
233
|
+
Government: "Government";
|
|
234
|
+
"Social Impact Investor": "Social Impact Investor";
|
|
235
|
+
}>>;
|
|
236
|
+
websiteURL: z.ZodOptional<z.ZodString>;
|
|
237
|
+
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
238
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
239
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
export declare const GetInvestorEndpointResponseSchema: z.ZodObject<{
|
|
242
|
+
id: z.ZodCUID2;
|
|
243
|
+
userId: z.ZodCUID2;
|
|
244
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
245
|
+
location: z.ZodOptional<z.ZodString>;
|
|
246
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
247
|
+
"0-1 year": "0-1 year";
|
|
248
|
+
"1-3 years": "1-3 years";
|
|
249
|
+
"3-5 years": "3-5 years";
|
|
250
|
+
"5+ years": "5+ years";
|
|
251
|
+
}>>;
|
|
252
|
+
geographicFocus: z.ZodOptional<z.ZodEnum<{
|
|
253
|
+
Africa: "Africa";
|
|
254
|
+
Asia: "Asia";
|
|
255
|
+
Europe: "Europe";
|
|
256
|
+
"North America": "North America";
|
|
257
|
+
"South America": "South America";
|
|
258
|
+
"Middle East": "Middle East";
|
|
259
|
+
Oceania: "Oceania";
|
|
260
|
+
"United Kingdom (UK)": "United Kingdom (UK)";
|
|
261
|
+
"United States (US)": "United States (US)";
|
|
262
|
+
Global: "Global";
|
|
263
|
+
Other: "Other";
|
|
264
|
+
}>>;
|
|
265
|
+
investmentSize: z.ZodOptional<z.ZodEnum<{
|
|
266
|
+
"Under 5k USD": "Under 5k USD";
|
|
267
|
+
"5k - 25k USD": "5k - 25k USD";
|
|
268
|
+
"25k - 100k USD": "25k - 100k USD";
|
|
269
|
+
"100k - 500k USD": "100k - 500k USD";
|
|
270
|
+
"500k - 1M USD": "500k - 1M USD";
|
|
271
|
+
"1M+ USD": "1M+ USD";
|
|
272
|
+
}>>;
|
|
273
|
+
investorType: z.ZodOptional<z.ZodEnum<{
|
|
274
|
+
"Angel Investor": "Angel Investor";
|
|
275
|
+
"Venture Capitalist": "Venture Capitalist";
|
|
276
|
+
"Private Equity Firm": "Private Equity Firm";
|
|
277
|
+
"Venture Debt Provider": "Venture Debt Provider";
|
|
278
|
+
Bank: "Bank";
|
|
279
|
+
"Convertible Note Investor": "Convertible Note Investor";
|
|
280
|
+
"Revenue Based Financing Investor": "Revenue Based Financing Investor";
|
|
281
|
+
"Corporate Venture Capitalist": "Corporate Venture Capitalist";
|
|
282
|
+
Government: "Government";
|
|
283
|
+
"Social Impact Investor": "Social Impact Investor";
|
|
284
|
+
}>>;
|
|
285
|
+
websiteURL: z.ZodOptional<z.ZodString>;
|
|
286
|
+
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
287
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
288
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
289
|
+
user: z.ZodObject<{
|
|
290
|
+
id: z.ZodCUID2;
|
|
291
|
+
username: z.ZodOptional<z.ZodString>;
|
|
292
|
+
email: z.ZodString;
|
|
293
|
+
name: z.ZodOptional<z.ZodString>;
|
|
294
|
+
image: z.ZodOptional<z.ZodString>;
|
|
295
|
+
role: z.ZodEnum<{
|
|
296
|
+
CREATIVE: "CREATIVE";
|
|
297
|
+
BRAND: "BRAND";
|
|
298
|
+
INVESTOR: "INVESTOR";
|
|
299
|
+
ADMIN: "ADMIN";
|
|
300
|
+
}>;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
export declare const UpdateInvestorEndpointResponseSchema: z.ZodObject<{
|
|
304
|
+
id: z.ZodCUID2;
|
|
305
|
+
userId: z.ZodCUID2;
|
|
306
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
307
|
+
location: z.ZodOptional<z.ZodString>;
|
|
308
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
309
|
+
"0-1 year": "0-1 year";
|
|
310
|
+
"1-3 years": "1-3 years";
|
|
311
|
+
"3-5 years": "3-5 years";
|
|
312
|
+
"5+ years": "5+ years";
|
|
313
|
+
}>>;
|
|
314
|
+
geographicFocus: z.ZodOptional<z.ZodEnum<{
|
|
315
|
+
Africa: "Africa";
|
|
316
|
+
Asia: "Asia";
|
|
317
|
+
Europe: "Europe";
|
|
318
|
+
"North America": "North America";
|
|
319
|
+
"South America": "South America";
|
|
320
|
+
"Middle East": "Middle East";
|
|
321
|
+
Oceania: "Oceania";
|
|
322
|
+
"United Kingdom (UK)": "United Kingdom (UK)";
|
|
323
|
+
"United States (US)": "United States (US)";
|
|
324
|
+
Global: "Global";
|
|
325
|
+
Other: "Other";
|
|
326
|
+
}>>;
|
|
327
|
+
investmentSize: z.ZodOptional<z.ZodEnum<{
|
|
328
|
+
"Under 5k USD": "Under 5k USD";
|
|
329
|
+
"5k - 25k USD": "5k - 25k USD";
|
|
330
|
+
"25k - 100k USD": "25k - 100k USD";
|
|
331
|
+
"100k - 500k USD": "100k - 500k USD";
|
|
332
|
+
"500k - 1M USD": "500k - 1M USD";
|
|
333
|
+
"1M+ USD": "1M+ USD";
|
|
334
|
+
}>>;
|
|
335
|
+
investorType: z.ZodOptional<z.ZodEnum<{
|
|
336
|
+
"Angel Investor": "Angel Investor";
|
|
337
|
+
"Venture Capitalist": "Venture Capitalist";
|
|
338
|
+
"Private Equity Firm": "Private Equity Firm";
|
|
339
|
+
"Venture Debt Provider": "Venture Debt Provider";
|
|
340
|
+
Bank: "Bank";
|
|
341
|
+
"Convertible Note Investor": "Convertible Note Investor";
|
|
342
|
+
"Revenue Based Financing Investor": "Revenue Based Financing Investor";
|
|
343
|
+
"Corporate Venture Capitalist": "Corporate Venture Capitalist";
|
|
344
|
+
Government: "Government";
|
|
345
|
+
"Social Impact Investor": "Social Impact Investor";
|
|
346
|
+
}>>;
|
|
347
|
+
websiteURL: z.ZodOptional<z.ZodString>;
|
|
348
|
+
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
349
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
350
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
351
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateInvestorEndpointResponseSchema = exports.GetInvestorEndpointResponseSchema = exports.CreateInvestorEndpointResponseSchema = exports.GetInvestorQuerySchema = exports.GetInvestorParamsSchema = exports.ListInvestorsInputSchema = exports.UpdateInvestorProfileSchema = exports.CreateInvestorProfileSchema = exports.InvestorWithUserEntitySchema = exports.InvestorEntitySchema = void 0;
|
|
4
|
+
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
const user_1 = require("./user");
|
|
7
|
+
const common_1 = require("./common");
|
|
8
|
+
exports.InvestorEntitySchema = zod_openapi_1.z
|
|
9
|
+
.object({
|
|
10
|
+
id: zod_openapi_1.z.cuid2().openapi({ example: "inv_cksd0v6q0000s9a5y8z7p3x9" }),
|
|
11
|
+
userId: zod_openapi_1.z.cuid2().openapi({ example: "user_owner_123" }),
|
|
12
|
+
bio: zod_openapi_1.z
|
|
13
|
+
.string()
|
|
14
|
+
.optional()
|
|
15
|
+
.openapi({ example: "Early stage VC focusing on creative technology." }),
|
|
16
|
+
location: zod_openapi_1.z.string().optional().openapi({ example: "New York, USA" }),
|
|
17
|
+
experienceLevel: zod_openapi_1.z
|
|
18
|
+
.enum(Object.values(constants_1.EXPERIENCE_LEVELS))
|
|
19
|
+
.optional()
|
|
20
|
+
.openapi({ example: "EXPERT" }),
|
|
21
|
+
geographicFocus: zod_openapi_1.z
|
|
22
|
+
.enum(Object.values(constants_1.GEOGRAPHIC_FOCUS))
|
|
23
|
+
.optional()
|
|
24
|
+
.openapi({ example: "NORTH_AMERICA" }),
|
|
25
|
+
investmentSize: zod_openapi_1.z
|
|
26
|
+
.enum(Object.values(constants_1.INVESTMENT_SIZES))
|
|
27
|
+
.optional()
|
|
28
|
+
.openapi({ example: "SEED" }),
|
|
29
|
+
investorType: zod_openapi_1.z
|
|
30
|
+
.enum(Object.values(constants_1.INVESTOR_TYPES))
|
|
31
|
+
.optional()
|
|
32
|
+
.openapi({ example: "VC" }),
|
|
33
|
+
websiteURL: zod_openapi_1.z
|
|
34
|
+
.string()
|
|
35
|
+
.url()
|
|
36
|
+
.optional()
|
|
37
|
+
.openapi({ example: "https://investorpartners.com" }),
|
|
38
|
+
disciplines: zod_openapi_1.z
|
|
39
|
+
.array(zod_openapi_1.z.string())
|
|
40
|
+
.optional()
|
|
41
|
+
.openapi({ example: ["Product Design", "AI Strategy"] }),
|
|
42
|
+
createdAt: zod_openapi_1.z.coerce
|
|
43
|
+
.date()
|
|
44
|
+
.optional()
|
|
45
|
+
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
46
|
+
updatedAt: zod_openapi_1.z.coerce
|
|
47
|
+
.date()
|
|
48
|
+
.optional()
|
|
49
|
+
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
50
|
+
})
|
|
51
|
+
.openapi("InvestorEntity");
|
|
52
|
+
exports.InvestorWithUserEntitySchema = exports.InvestorEntitySchema.extend({
|
|
53
|
+
user: user_1.MinimalUserSchema,
|
|
54
|
+
disciplines: zod_openapi_1.z
|
|
55
|
+
.array(zod_openapi_1.z.string())
|
|
56
|
+
.openapi({ example: ["Product Design", "AI Strategy"] }),
|
|
57
|
+
}).openapi("InvestorWithUserEntity");
|
|
58
|
+
exports.CreateInvestorProfileSchema = zod_openapi_1.z
|
|
59
|
+
.object({
|
|
60
|
+
bio: zod_openapi_1.z.string().max(210).optional().default("").openapi({
|
|
61
|
+
example: "Angel investor backing early-stage African startups.",
|
|
62
|
+
}),
|
|
63
|
+
websiteURL: zod_openapi_1.z.string().url("Invalid url").optional().openapi({
|
|
64
|
+
example: "https://www.investorportfolio.com",
|
|
65
|
+
}),
|
|
66
|
+
experienceLevel: zod_openapi_1.z
|
|
67
|
+
.enum(Object.values(constants_1.EXPERIENCE_LEVELS))
|
|
68
|
+
.default(constants_1.EXPERIENCE_LEVELS.YEAR_0_1)
|
|
69
|
+
.openapi({
|
|
70
|
+
example: "0-1 year",
|
|
71
|
+
}),
|
|
72
|
+
location: zod_openapi_1.z.string().openapi({
|
|
73
|
+
example: "UK",
|
|
74
|
+
}),
|
|
75
|
+
})
|
|
76
|
+
.openapi({
|
|
77
|
+
title: "Create Investor Profile",
|
|
78
|
+
});
|
|
79
|
+
exports.UpdateInvestorProfileSchema = zod_openapi_1.z
|
|
80
|
+
.object({
|
|
81
|
+
bio: zod_openapi_1.z.string().max(210).optional().openapi({
|
|
82
|
+
example: "Seasoned venture capitalist with a focus on healthtech.",
|
|
83
|
+
}),
|
|
84
|
+
websiteURL: zod_openapi_1.z.string().url("Invalid url").optional().openapi({
|
|
85
|
+
example: "https://www.vcgroup.com",
|
|
86
|
+
}),
|
|
87
|
+
experienceLevel: zod_openapi_1.z
|
|
88
|
+
.enum(Object.values(constants_1.EXPERIENCE_LEVELS))
|
|
89
|
+
.optional()
|
|
90
|
+
.openapi({
|
|
91
|
+
example: "SENIOR",
|
|
92
|
+
}),
|
|
93
|
+
investorType: zod_openapi_1.z
|
|
94
|
+
.enum(Object.values(constants_1.INVESTOR_TYPES))
|
|
95
|
+
.optional()
|
|
96
|
+
.openapi({
|
|
97
|
+
example: "VC",
|
|
98
|
+
}),
|
|
99
|
+
disciplineSlugs: zod_openapi_1.z
|
|
100
|
+
.array(zod_openapi_1.z.string())
|
|
101
|
+
.min(1, "At least one discipline is required")
|
|
102
|
+
.optional()
|
|
103
|
+
.openapi({
|
|
104
|
+
example: ["fintech", "edtech"],
|
|
105
|
+
}),
|
|
106
|
+
investmentSize: zod_openapi_1.z
|
|
107
|
+
.enum(Object.values(constants_1.INVESTMENT_SIZES))
|
|
108
|
+
.optional()
|
|
109
|
+
.openapi({
|
|
110
|
+
example: "SEED",
|
|
111
|
+
}),
|
|
112
|
+
geographicFocus: zod_openapi_1.z
|
|
113
|
+
.enum(Object.values(constants_1.GEOGRAPHIC_FOCUS))
|
|
114
|
+
.optional()
|
|
115
|
+
.openapi({
|
|
116
|
+
example: "GLOBAL",
|
|
117
|
+
}),
|
|
118
|
+
location: zod_openapi_1.z.string().optional().openapi({
|
|
119
|
+
example: "UK",
|
|
120
|
+
}),
|
|
121
|
+
})
|
|
122
|
+
.openapi({
|
|
123
|
+
title: "Update Investor Profile",
|
|
124
|
+
});
|
|
125
|
+
exports.ListInvestorsInputSchema = zod_openapi_1.z
|
|
126
|
+
.object({
|
|
127
|
+
query: zod_openapi_1.z.string().optional().openapi({ example: "creative tech investor" }),
|
|
128
|
+
disciplines: zod_openapi_1.z
|
|
129
|
+
.array(zod_openapi_1.z.string())
|
|
130
|
+
.optional()
|
|
131
|
+
.openapi({ example: ["branding", "UX"] }),
|
|
132
|
+
experienceLevels: zod_openapi_1.z
|
|
133
|
+
.array(zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)))
|
|
134
|
+
.optional()
|
|
135
|
+
.openapi({
|
|
136
|
+
description: "Filter based on the required experience level.",
|
|
137
|
+
}),
|
|
138
|
+
location: zod_openapi_1.z.string().optional().openapi({ example: "San Francisco" }),
|
|
139
|
+
tags: zod_openapi_1.z
|
|
140
|
+
.array(zod_openapi_1.z.string())
|
|
141
|
+
.optional()
|
|
142
|
+
.openapi({ example: ["design", "future"] }),
|
|
143
|
+
page: zod_openapi_1.z.number().int().min(1).default(1).optional().openapi({ example: 1 }),
|
|
144
|
+
perPage: zod_openapi_1.z
|
|
145
|
+
.number()
|
|
146
|
+
.int()
|
|
147
|
+
.min(1)
|
|
148
|
+
.max(100)
|
|
149
|
+
.default(20)
|
|
150
|
+
.optional()
|
|
151
|
+
.openapi({ example: 20 }),
|
|
152
|
+
})
|
|
153
|
+
.openapi("ListInvestorsInput");
|
|
154
|
+
exports.GetInvestorParamsSchema = zod_openapi_1.z.object({
|
|
155
|
+
value: common_1.CuidSchema,
|
|
156
|
+
});
|
|
157
|
+
exports.GetInvestorQuerySchema = common_1.ProfileIdentifierSchema;
|
|
158
|
+
exports.CreateInvestorEndpointResponseSchema = exports.InvestorEntitySchema;
|
|
159
|
+
exports.GetInvestorEndpointResponseSchema = exports.InvestorEntitySchema.extend({
|
|
160
|
+
user: user_1.MinimalUserSchema,
|
|
161
|
+
});
|
|
162
|
+
exports.UpdateInvestorEndpointResponseSchema = exports.InvestorEntitySchema;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
export declare const ProjectEntitySchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodCUID2;
|
|
4
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
5
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
6
|
+
userId: z.ZodCUID2;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
overview: z.ZodOptional<z.ZodString>;
|
|
10
|
+
url: z.ZodOptional<z.ZodString>;
|
|
11
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
clientType: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
CREATIVE: "CREATIVE";
|
|
14
|
+
BRAND: "BRAND";
|
|
15
|
+
NONE: "NONE";
|
|
16
|
+
}>>;
|
|
17
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
18
|
+
projectCreatorType: z.ZodEnum<{
|
|
19
|
+
CREATIVE: "CREATIVE";
|
|
20
|
+
BRAND: "BRAND";
|
|
21
|
+
INVESTOR: "INVESTOR";
|
|
22
|
+
ADMIN: "ADMIN";
|
|
23
|
+
}>;
|
|
24
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
27
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
28
|
+
imagePlaceholderUrl: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const ProjectFileEntitySchema: z.ZodObject<{
|
|
31
|
+
id: z.ZodCUID2;
|
|
32
|
+
projectId: z.ZodCUID2;
|
|
33
|
+
url: z.ZodString;
|
|
34
|
+
mimeType: z.ZodString;
|
|
35
|
+
fileSize: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const ProjectSocialGraphEntitySchema: z.ZodObject<{
|
|
38
|
+
noOfLikes: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
noOfComments: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
noOfBookmarks: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
noOfViews: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const UserSocialGraphEntitySchema: z.ZodObject<{
|
|
44
|
+
followerCount: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
followingCount: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const ProjectWithFilesEntitySchema: z.ZodObject<{
|
|
48
|
+
id: z.ZodCUID2;
|
|
49
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
50
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
51
|
+
userId: z.ZodCUID2;
|
|
52
|
+
title: z.ZodString;
|
|
53
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54
|
+
overview: z.ZodOptional<z.ZodString>;
|
|
55
|
+
url: z.ZodOptional<z.ZodString>;
|
|
56
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
clientType: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
CREATIVE: "CREATIVE";
|
|
59
|
+
BRAND: "BRAND";
|
|
60
|
+
NONE: "NONE";
|
|
61
|
+
}>>;
|
|
62
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
63
|
+
projectCreatorType: z.ZodEnum<{
|
|
64
|
+
CREATIVE: "CREATIVE";
|
|
65
|
+
BRAND: "BRAND";
|
|
66
|
+
INVESTOR: "INVESTOR";
|
|
67
|
+
ADMIN: "ADMIN";
|
|
68
|
+
}>;
|
|
69
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
72
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
73
|
+
imagePlaceholderUrl: z.ZodOptional<z.ZodString>;
|
|
74
|
+
noOfLikes: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
noOfComments: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
noOfBookmarks: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
noOfViews: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
projectFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
79
|
+
id: z.ZodCUID2;
|
|
80
|
+
projectId: z.ZodCUID2;
|
|
81
|
+
url: z.ZodString;
|
|
82
|
+
mimeType: z.ZodString;
|
|
83
|
+
fileSize: z.ZodNumber;
|
|
84
|
+
}, z.core.$strip>>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export declare const ProjectViewEntitySchema: z.ZodObject<{
|
|
87
|
+
id: z.ZodCUID2;
|
|
88
|
+
userId: z.ZodOptional<z.ZodCUID2>;
|
|
89
|
+
ipAddress: z.ZodOptional<z.ZodIPv4>;
|
|
90
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
91
|
+
projectId: z.ZodCUID2;
|
|
92
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
viewedAt: z.ZodCoercedDate<unknown>;
|
|
94
|
+
viewDate: z.ZodCoercedDate<unknown>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export declare const ProjectLikeEntitySchema: z.ZodObject<{
|
|
97
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
98
|
+
userId: z.ZodCUID2;
|
|
99
|
+
projectId: z.ZodCUID2;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export declare const ProjectCommentEntitySchema: z.ZodObject<{
|
|
102
|
+
id: z.ZodCUID2;
|
|
103
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
104
|
+
userId: z.ZodCUID2;
|
|
105
|
+
projectId: z.ZodCUID2;
|
|
106
|
+
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
107
|
+
content: z.ZodString;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export declare const ProjectBookmarkEntitySchema: z.ZodObject<{
|
|
110
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
111
|
+
userId: z.ZodCUID2;
|
|
112
|
+
projectId: z.ZodCUID2;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export declare const ProjectUpdateOutputEntitySchema: z.ZodObject<{
|
|
115
|
+
id: z.ZodCUID2;
|
|
116
|
+
}, z.core.$strip>;
|