@zyacreatives/shared 2.2.1 → 2.2.3

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.
@@ -222,6 +222,17 @@ export declare const NOTIFICATION_TYPES: {
222
222
  readonly SYSTEM_STRIKE: "System Strike";
223
223
  readonly PROJECT_FEATURED: "Project Featured";
224
224
  };
225
+ export declare const VENTURE_STAGES: {
226
+ IDEA: string;
227
+ PRE_SEED: string;
228
+ MVP: string;
229
+ SEED: string;
230
+ SERIES_A: string;
231
+ SERIES_B: string;
232
+ SERIES_C: string;
233
+ GROWTH: string;
234
+ EXIT: string;
235
+ };
225
236
  export type NotificationType = (typeof NOTIFICATION_TYPES)[keyof typeof NOTIFICATION_TYPES];
226
237
  export type ApplicationStatus = (typeof APPLICATION_STATUS)[keyof typeof APPLICATION_STATUS];
227
238
  export type ActivityType = (typeof ACTIVITY_TYPES)[keyof typeof ACTIVITY_TYPES];
@@ -249,6 +260,7 @@ export type InvestmentSize = (typeof INVESTMENT_SIZES)[keyof typeof INVESTMENT_S
249
260
  export type GeographicFocus = (typeof GEOGRAPHIC_FOCUS)[keyof typeof GEOGRAPHIC_FOCUS];
250
261
  export type InvestorVerificationDocumentStatus = (typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES];
251
262
  export type InvestorVerificationDocumentType = (typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES];
263
+ export type VentureStage = (typeof VENTURE_STAGES)[keyof typeof VENTURE_STAGES];
252
264
  export declare const API_ROUTES: {
253
265
  readonly healthCheck: "/health";
254
266
  readonly username: {
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ANALYTICS_EVENTS = exports.DEFAULT_DISCIPLINES = exports.API_ROUTES = exports.NOTIFICATION_TYPES = exports.APPLICATION_STATUS = exports.LINK_TYPES = exports.ACTIVITY_TYPES = exports.POST_BADGE_TYPES = exports.JOB_STATUS = exports.WAGES_CURRENCY = exports.GIG_TYPE = exports.MESSAGE_TYPES = exports.JOB_LOCATIONS = exports.JOB_SECTIONS = exports.WAGE_TYPES = exports.JOB_AVAILABILITY_TYPES = exports.EMPLOYMENT_TYPE = exports.WORK_MODE = exports.JOB_TYPE = exports.POST_TYPES = exports.ACTIVITY_PARENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_STATUSES = exports.GEOGRAPHIC_FOCUS = exports.INVESTMENT_SIZES = exports.INVESTOR_TYPES = exports.ONBOARDING_PAGES = exports.EXPERIENCE_LEVELS = exports.CLIENT_TYPES = exports.USER_STATUSES = exports.ROLES = void 0;
3
+ exports.ANALYTICS_EVENTS = exports.DEFAULT_DISCIPLINES = exports.API_ROUTES = exports.VENTURE_STAGES = exports.NOTIFICATION_TYPES = exports.APPLICATION_STATUS = exports.LINK_TYPES = exports.ACTIVITY_TYPES = exports.POST_BADGE_TYPES = exports.JOB_STATUS = exports.WAGES_CURRENCY = exports.GIG_TYPE = exports.MESSAGE_TYPES = exports.JOB_LOCATIONS = exports.JOB_SECTIONS = exports.WAGE_TYPES = exports.JOB_AVAILABILITY_TYPES = exports.EMPLOYMENT_TYPE = exports.WORK_MODE = exports.JOB_TYPE = exports.POST_TYPES = exports.ACTIVITY_PARENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_STATUSES = exports.GEOGRAPHIC_FOCUS = exports.INVESTMENT_SIZES = exports.INVESTOR_TYPES = exports.ONBOARDING_PAGES = exports.EXPERIENCE_LEVELS = exports.CLIENT_TYPES = exports.USER_STATUSES = exports.ROLES = void 0;
4
4
  exports.ROLES = {
5
5
  CREATIVE: "CREATIVE",
6
6
  BRAND: "BRAND",
@@ -224,6 +224,17 @@ exports.NOTIFICATION_TYPES = {
224
224
  SYSTEM_STRIKE: "System Strike",
225
225
  PROJECT_FEATURED: "Project Featured",
226
226
  };
227
+ exports.VENTURE_STAGES = {
228
+ IDEA: "Idea",
229
+ PRE_SEED: "Pre Seed",
230
+ MVP: "MVP",
231
+ SEED: "Seed",
232
+ SERIES_A: "Series A",
233
+ SERIES_B: "Series B",
234
+ SERIES_C: "Series C",
235
+ GROWTH: "Growth",
236
+ EXIT: "Exit",
237
+ };
227
238
  exports.API_ROUTES = {
228
239
  healthCheck: "/health",
229
240
  username: {
@@ -1000,37 +1000,15 @@ export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
1000
1000
  export declare const GetJobsInputSchema: z.ZodObject<{
1001
1001
  q: z.ZodOptional<z.ZodString>;
1002
1002
  jobType: z.ZodOptional<z.ZodEnum<{
1003
- GIG: "GIG";
1004
- ROLE: "ROLE";
1005
- }>>;
1006
- workMode: z.ZodOptional<z.ZodEnum<{
1007
- Remote: "Remote";
1008
- Hybrid: "Hybrid";
1009
- "On Site": "On Site";
1003
+ [x: string]: string;
1010
1004
  }>>;
1005
+ workMode: z.ZodOptional<z.ZodString>;
1011
1006
  location: z.ZodOptional<z.ZodEnum<{
1012
- Africa: "Africa";
1013
- Asia: "Asia";
1014
- Europe: "Europe";
1015
- "North America": "North America";
1016
- "South America": "South America";
1017
- "Middle East": "Middle East";
1018
- Oceania: "Oceania";
1019
- Global: "Global";
1020
- Other: "Other";
1021
- Remote: "Remote";
1022
- EMEA: "EMEA";
1023
- "Asia Pacific": "Asia Pacific";
1024
- }>>;
1025
- employmentType: z.ZodOptional<z.ZodEnum<{
1026
- "Full Time": "Full Time";
1027
- "Part Time": "Part Time";
1028
- Freelance: "Freelance";
1029
- Internship: "Internship";
1007
+ [x: string]: string;
1030
1008
  }>>;
1009
+ employmentType: z.ZodOptional<z.ZodString>;
1031
1010
  gigType: z.ZodOptional<z.ZodEnum<{
1032
- "One Time": "One Time";
1033
- Recurring: "Recurring";
1011
+ [x: string]: string;
1034
1012
  }>>;
1035
1013
  requiredSkills: z.ZodOptional<z.ZodString>;
1036
1014
  status: z.ZodOptional<z.ZodString>;
@@ -1249,6 +1227,7 @@ export declare const GetJobsOutputSchema: z.ZodObject<{
1249
1227
  }, z.core.$strip>]>>;
1250
1228
  total: z.ZodNumber;
1251
1229
  page: z.ZodNumber;
1230
+ limit: z.ZodNumber;
1252
1231
  totalPages: z.ZodNumber;
1253
1232
  hasNextPage: z.ZodBoolean;
1254
1233
  hasPrevPage: z.ZodBoolean;
@@ -216,25 +216,20 @@ exports.GetCreatedJobsOutputSchema = zod_1.z.object({
216
216
  });
217
217
  exports.GetJobsInputSchema = zod_1.z.object({
218
218
  q: zod_1.z.string().optional(),
219
- jobType: zod_1.z
220
- .enum(Object.values(constants_1.JOB_TYPE))
221
- .optional(),
219
+ jobType: zod_1.z.enum(Object.values(constants_1.JOB_TYPE)).optional(),
222
220
  workMode: zod_1.z
223
- .enum(Object.values(constants_1.WORK_MODE))
224
- .optional(),
221
+ .string()
222
+ .optional()
223
+ .describe("Comma-separated values, e.g. 'Remote,Hybrid'"),
225
224
  location: zod_1.z
226
225
  .enum(Object.values(constants_1.JOB_LOCATIONS))
227
226
  .optional(),
228
227
  employmentType: zod_1.z
229
- .enum(Object.values(constants_1.EMPLOYMENT_TYPE))
230
- .optional(),
231
- gigType: zod_1.z
232
- .enum(Object.values(constants_1.GIG_TYPE))
233
- .optional(),
234
- requiredSkills: zod_1.z
235
228
  .string()
236
229
  .optional()
237
- .describe("Comma-separated: React,Node.js"),
230
+ .describe("Comma-separated values, e.g. 'Full Time,Freelance'"),
231
+ gigType: zod_1.z.enum(Object.values(constants_1.GIG_TYPE)).optional(),
232
+ requiredSkills: zod_1.z.string().optional().describe("Comma-separated skills"),
238
233
  status: zod_1.z.string().optional(),
239
234
  page: zod_1.z.coerce.number().min(1).default(1),
240
235
  limit: zod_1.z.coerce.number().min(1).max(100).default(20),
@@ -243,6 +238,7 @@ exports.GetJobsOutputSchema = zod_1.z.object({
243
238
  jobs: zod_1.z.array(exports.NormalizedJobSchema),
244
239
  total: zod_1.z.number(),
245
240
  page: zod_1.z.number(),
241
+ limit: zod_1.z.number(),
246
242
  totalPages: zod_1.z.number(),
247
243
  hasNextPage: zod_1.z.boolean(),
248
244
  hasPrevPage: zod_1.z.boolean(),
@@ -22,6 +22,33 @@ export declare const ProjectEntitySchema: z.ZodObject<{
22
22
  }>>;
23
23
  clientName: z.ZodOptional<z.ZodString>;
24
24
  isFeatured: z.ZodOptional<z.ZodBoolean>;
25
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
26
+ whoItsFor: z.ZodOptional<z.ZodString>;
27
+ ventureStage: z.ZodOptional<z.ZodEnum<{
28
+ IDEA: string;
29
+ PRE_SEED: string;
30
+ MVP: string;
31
+ SEED: string;
32
+ SERIES_A: string;
33
+ SERIES_B: string;
34
+ SERIES_C: string;
35
+ GROWTH: string;
36
+ EXIT: string;
37
+ }>>;
38
+ capitalLookingToRaise: z.ZodString;
39
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
40
+ readonly USD: "USD (United States Dollar)";
41
+ readonly EUR: "EUR (Euro)";
42
+ readonly GBP: "GBP (British Pound Sterling)";
43
+ readonly NGN: "NGN (Nigerian Naira)";
44
+ readonly CAD: "CAD (Canadian Dollar)";
45
+ readonly AUD: "AUD (Australian Dollar)";
46
+ readonly JPY: "JPY (Japanese Yen)";
47
+ readonly CHF: "CHF (Swiss Franc)";
48
+ readonly INR: "INR (Indian Rupee)";
49
+ readonly ZAR: "ZAR (South African Rand)";
50
+ }>>;
51
+ currentTraction: z.ZodString;
25
52
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
26
53
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
27
54
  createdAt: z.ZodCoercedDate<unknown>;
@@ -64,6 +91,33 @@ export declare const ProjectDetailsEntitySchema: z.ZodObject<{
64
91
  }>>;
65
92
  clientName: z.ZodOptional<z.ZodString>;
66
93
  isFeatured: z.ZodOptional<z.ZodBoolean>;
94
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
95
+ whoItsFor: z.ZodOptional<z.ZodString>;
96
+ ventureStage: z.ZodOptional<z.ZodEnum<{
97
+ IDEA: string;
98
+ PRE_SEED: string;
99
+ MVP: string;
100
+ SEED: string;
101
+ SERIES_A: string;
102
+ SERIES_B: string;
103
+ SERIES_C: string;
104
+ GROWTH: string;
105
+ EXIT: string;
106
+ }>>;
107
+ capitalLookingToRaise: z.ZodString;
108
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
109
+ readonly USD: "USD (United States Dollar)";
110
+ readonly EUR: "EUR (Euro)";
111
+ readonly GBP: "GBP (British Pound Sterling)";
112
+ readonly NGN: "NGN (Nigerian Naira)";
113
+ readonly CAD: "CAD (Canadian Dollar)";
114
+ readonly AUD: "AUD (Australian Dollar)";
115
+ readonly JPY: "JPY (Japanese Yen)";
116
+ readonly CHF: "CHF (Swiss Franc)";
117
+ readonly INR: "INR (Indian Rupee)";
118
+ readonly ZAR: "ZAR (South African Rand)";
119
+ }>>;
120
+ currentTraction: z.ZodString;
67
121
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
68
122
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
69
123
  createdAt: z.ZodCoercedDate<unknown>;
@@ -153,6 +207,33 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
153
207
  }>>;
154
208
  clientName: z.ZodOptional<z.ZodString>;
155
209
  isFeatured: z.ZodOptional<z.ZodBoolean>;
210
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
211
+ whoItsFor: z.ZodOptional<z.ZodString>;
212
+ ventureStage: z.ZodOptional<z.ZodEnum<{
213
+ IDEA: string;
214
+ PRE_SEED: string;
215
+ MVP: string;
216
+ SEED: string;
217
+ SERIES_A: string;
218
+ SERIES_B: string;
219
+ SERIES_C: string;
220
+ GROWTH: string;
221
+ EXIT: string;
222
+ }>>;
223
+ capitalLookingToRaise: z.ZodString;
224
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
225
+ readonly USD: "USD (United States Dollar)";
226
+ readonly EUR: "EUR (Euro)";
227
+ readonly GBP: "GBP (British Pound Sterling)";
228
+ readonly NGN: "NGN (Nigerian Naira)";
229
+ readonly CAD: "CAD (Canadian Dollar)";
230
+ readonly AUD: "AUD (Australian Dollar)";
231
+ readonly JPY: "JPY (Japanese Yen)";
232
+ readonly CHF: "CHF (Swiss Franc)";
233
+ readonly INR: "INR (Indian Rupee)";
234
+ readonly ZAR: "ZAR (South African Rand)";
235
+ }>>;
236
+ currentTraction: z.ZodString;
156
237
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
157
238
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
158
239
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -182,6 +263,33 @@ export declare const CreateProjectOutputSchema: z.ZodObject<{
182
263
  }>>;
183
264
  clientName: z.ZodOptional<z.ZodString>;
184
265
  isFeatured: z.ZodOptional<z.ZodBoolean>;
266
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
267
+ whoItsFor: z.ZodOptional<z.ZodString>;
268
+ ventureStage: z.ZodOptional<z.ZodEnum<{
269
+ IDEA: string;
270
+ PRE_SEED: string;
271
+ MVP: string;
272
+ SEED: string;
273
+ SERIES_A: string;
274
+ SERIES_B: string;
275
+ SERIES_C: string;
276
+ GROWTH: string;
277
+ EXIT: string;
278
+ }>>;
279
+ capitalLookingToRaise: z.ZodString;
280
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
281
+ readonly USD: "USD (United States Dollar)";
282
+ readonly EUR: "EUR (Euro)";
283
+ readonly GBP: "GBP (British Pound Sterling)";
284
+ readonly NGN: "NGN (Nigerian Naira)";
285
+ readonly CAD: "CAD (Canadian Dollar)";
286
+ readonly AUD: "AUD (Australian Dollar)";
287
+ readonly JPY: "JPY (Japanese Yen)";
288
+ readonly CHF: "CHF (Swiss Franc)";
289
+ readonly INR: "INR (Indian Rupee)";
290
+ readonly ZAR: "ZAR (South African Rand)";
291
+ }>>;
292
+ currentTraction: z.ZodString;
185
293
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
186
294
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
187
295
  createdAt: z.ZodCoercedDate<unknown>;
@@ -211,6 +319,33 @@ export declare const UpdateProjectOutputSchema: z.ZodObject<{
211
319
  }>>;
212
320
  clientName: z.ZodOptional<z.ZodString>;
213
321
  isFeatured: z.ZodOptional<z.ZodBoolean>;
322
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
323
+ whoItsFor: z.ZodOptional<z.ZodString>;
324
+ ventureStage: z.ZodOptional<z.ZodEnum<{
325
+ IDEA: string;
326
+ PRE_SEED: string;
327
+ MVP: string;
328
+ SEED: string;
329
+ SERIES_A: string;
330
+ SERIES_B: string;
331
+ SERIES_C: string;
332
+ GROWTH: string;
333
+ EXIT: string;
334
+ }>>;
335
+ capitalLookingToRaise: z.ZodString;
336
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
337
+ readonly USD: "USD (United States Dollar)";
338
+ readonly EUR: "EUR (Euro)";
339
+ readonly GBP: "GBP (British Pound Sterling)";
340
+ readonly NGN: "NGN (Nigerian Naira)";
341
+ readonly CAD: "CAD (Canadian Dollar)";
342
+ readonly AUD: "AUD (Australian Dollar)";
343
+ readonly JPY: "JPY (Japanese Yen)";
344
+ readonly CHF: "CHF (Swiss Franc)";
345
+ readonly INR: "INR (Indian Rupee)";
346
+ readonly ZAR: "ZAR (South African Rand)";
347
+ }>>;
348
+ currentTraction: z.ZodString;
214
349
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
215
350
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
216
351
  createdAt: z.ZodCoercedDate<unknown>;
@@ -240,6 +375,33 @@ export declare const DeleteProjectOutputSchema: z.ZodObject<{
240
375
  }>>;
241
376
  clientName: z.ZodOptional<z.ZodString>;
242
377
  isFeatured: z.ZodOptional<z.ZodBoolean>;
378
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
379
+ whoItsFor: z.ZodOptional<z.ZodString>;
380
+ ventureStage: z.ZodOptional<z.ZodEnum<{
381
+ IDEA: string;
382
+ PRE_SEED: string;
383
+ MVP: string;
384
+ SEED: string;
385
+ SERIES_A: string;
386
+ SERIES_B: string;
387
+ SERIES_C: string;
388
+ GROWTH: string;
389
+ EXIT: string;
390
+ }>>;
391
+ capitalLookingToRaise: z.ZodString;
392
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
393
+ readonly USD: "USD (United States Dollar)";
394
+ readonly EUR: "EUR (Euro)";
395
+ readonly GBP: "GBP (British Pound Sterling)";
396
+ readonly NGN: "NGN (Nigerian Naira)";
397
+ readonly CAD: "CAD (Canadian Dollar)";
398
+ readonly AUD: "AUD (Australian Dollar)";
399
+ readonly JPY: "JPY (Japanese Yen)";
400
+ readonly CHF: "CHF (Swiss Franc)";
401
+ readonly INR: "INR (Indian Rupee)";
402
+ readonly ZAR: "ZAR (South African Rand)";
403
+ }>>;
404
+ currentTraction: z.ZodString;
243
405
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
244
406
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
245
407
  createdAt: z.ZodCoercedDate<unknown>;
@@ -269,6 +431,33 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
269
431
  }>>;
270
432
  clientName: z.ZodOptional<z.ZodString>;
271
433
  isFeatured: z.ZodOptional<z.ZodBoolean>;
434
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
435
+ whoItsFor: z.ZodOptional<z.ZodString>;
436
+ ventureStage: z.ZodOptional<z.ZodEnum<{
437
+ IDEA: string;
438
+ PRE_SEED: string;
439
+ MVP: string;
440
+ SEED: string;
441
+ SERIES_A: string;
442
+ SERIES_B: string;
443
+ SERIES_C: string;
444
+ GROWTH: string;
445
+ EXIT: string;
446
+ }>>;
447
+ capitalLookingToRaise: z.ZodString;
448
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
449
+ readonly USD: "USD (United States Dollar)";
450
+ readonly EUR: "EUR (Euro)";
451
+ readonly GBP: "GBP (British Pound Sterling)";
452
+ readonly NGN: "NGN (Nigerian Naira)";
453
+ readonly CAD: "CAD (Canadian Dollar)";
454
+ readonly AUD: "AUD (Australian Dollar)";
455
+ readonly JPY: "JPY (Japanese Yen)";
456
+ readonly CHF: "CHF (Swiss Franc)";
457
+ readonly INR: "INR (Indian Rupee)";
458
+ readonly ZAR: "ZAR (South African Rand)";
459
+ }>>;
460
+ currentTraction: z.ZodString;
272
461
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
273
462
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
274
463
  createdAt: z.ZodCoercedDate<unknown>;
@@ -66,6 +66,12 @@ exports.ProjectEntitySchema = zod_openapi_1.z
66
66
  description: "Whether the project is featured.",
67
67
  example: true,
68
68
  }),
69
+ problemBeingSolved: zod_openapi_1.z.string().max(600).optional(),
70
+ whoItsFor: zod_openapi_1.z.string().max(600).optional(),
71
+ ventureStage: zod_openapi_1.z.enum(constants_1.VENTURE_STAGES).optional(),
72
+ capitalLookingToRaise: zod_openapi_1.z.string(),
73
+ capitalLookingToRaiseCurrency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY).optional(),
74
+ currentTraction: zod_openapi_1.z.string().max(600),
69
75
  startDate: zod_openapi_1.z.coerce
70
76
  .date()
71
77
  .optional()
@@ -190,6 +196,12 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
190
196
  clientType: zod_openapi_1.z.enum(constants_1.CLIENT_TYPES).optional(),
191
197
  clientName: zod_openapi_1.z.string().optional(),
192
198
  isFeatured: zod_openapi_1.z.boolean().optional(),
199
+ problemBeingSolved: zod_openapi_1.z.string().max(600).optional(),
200
+ whoItsFor: zod_openapi_1.z.string().max(600).optional(),
201
+ ventureStage: zod_openapi_1.z.enum(constants_1.VENTURE_STAGES).optional(),
202
+ capitalLookingToRaise: zod_openapi_1.z.string(),
203
+ capitalLookingToRaiseCurrency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY).optional(),
204
+ currentTraction: zod_openapi_1.z.string().max(600),
193
205
  startDate: zod_openapi_1.z.coerce.date().optional(),
194
206
  endDate: zod_openapi_1.z.coerce.date().optional(),
195
207
  createdAt: zod_openapi_1.z.date().optional(),
@@ -233,6 +233,33 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
233
233
  }>>;
234
234
  clientName: z.ZodOptional<z.ZodString>;
235
235
  isFeatured: z.ZodOptional<z.ZodBoolean>;
236
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
237
+ whoItsFor: z.ZodOptional<z.ZodString>;
238
+ ventureStage: z.ZodOptional<z.ZodEnum<{
239
+ IDEA: string;
240
+ PRE_SEED: string;
241
+ MVP: string;
242
+ SEED: string;
243
+ SERIES_A: string;
244
+ SERIES_B: string;
245
+ SERIES_C: string;
246
+ GROWTH: string;
247
+ EXIT: string;
248
+ }>>;
249
+ capitalLookingToRaise: z.ZodString;
250
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
251
+ readonly USD: "USD (United States Dollar)";
252
+ readonly EUR: "EUR (Euro)";
253
+ readonly GBP: "GBP (British Pound Sterling)";
254
+ readonly NGN: "NGN (Nigerian Naira)";
255
+ readonly CAD: "CAD (Canadian Dollar)";
256
+ readonly AUD: "AUD (Australian Dollar)";
257
+ readonly JPY: "JPY (Japanese Yen)";
258
+ readonly CHF: "CHF (Swiss Franc)";
259
+ readonly INR: "INR (Indian Rupee)";
260
+ readonly ZAR: "ZAR (South African Rand)";
261
+ }>>;
262
+ currentTraction: z.ZodString;
236
263
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
237
264
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
238
265
  version: z.ZodInt;
@@ -717,6 +744,33 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
717
744
  }>>;
718
745
  clientName: z.ZodOptional<z.ZodString>;
719
746
  isFeatured: z.ZodOptional<z.ZodBoolean>;
747
+ problemBeingSolved: z.ZodOptional<z.ZodString>;
748
+ whoItsFor: z.ZodOptional<z.ZodString>;
749
+ ventureStage: z.ZodOptional<z.ZodEnum<{
750
+ IDEA: string;
751
+ PRE_SEED: string;
752
+ MVP: string;
753
+ SEED: string;
754
+ SERIES_A: string;
755
+ SERIES_B: string;
756
+ SERIES_C: string;
757
+ GROWTH: string;
758
+ EXIT: string;
759
+ }>>;
760
+ capitalLookingToRaise: z.ZodString;
761
+ capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
762
+ readonly USD: "USD (United States Dollar)";
763
+ readonly EUR: "EUR (Euro)";
764
+ readonly GBP: "GBP (British Pound Sterling)";
765
+ readonly NGN: "NGN (Nigerian Naira)";
766
+ readonly CAD: "CAD (Canadian Dollar)";
767
+ readonly AUD: "AUD (Australian Dollar)";
768
+ readonly JPY: "JPY (Japanese Yen)";
769
+ readonly CHF: "CHF (Swiss Franc)";
770
+ readonly INR: "INR (Indian Rupee)";
771
+ readonly ZAR: "ZAR (South African Rand)";
772
+ }>>;
773
+ currentTraction: z.ZodString;
720
774
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
721
775
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
722
776
  version: z.ZodInt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -250,6 +250,18 @@ export const NOTIFICATION_TYPES = {
250
250
  PROJECT_FEATURED: "Project Featured",
251
251
  } as const;
252
252
 
253
+ export const VENTURE_STAGES = {
254
+ IDEA: "Idea",
255
+ PRE_SEED: "Pre Seed",
256
+ MVP: "MVP",
257
+ SEED: "Seed",
258
+ SERIES_A: "Series A",
259
+ SERIES_B: "Series B",
260
+ SERIES_C: "Series C",
261
+ GROWTH: "Growth",
262
+ EXIT: "Exit",
263
+ };
264
+
253
265
  export type NotificationType =
254
266
  (typeof NOTIFICATION_TYPES)[keyof typeof NOTIFICATION_TYPES];
255
267
 
@@ -291,6 +303,7 @@ export type InvestorVerificationDocumentStatus =
291
303
  (typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES];
292
304
  export type InvestorVerificationDocumentType =
293
305
  (typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES];
306
+ export type VentureStage = (typeof VENTURE_STAGES)[keyof typeof VENTURE_STAGES];
294
307
 
295
308
  export const API_ROUTES = {
296
309
  healthCheck: "/health",
@@ -297,28 +297,20 @@ export const GetCreatedJobsOutputSchema = z.object({
297
297
 
298
298
  export const GetJobsInputSchema = z.object({
299
299
  q: z.string().optional(),
300
- jobType: z
301
- .enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]])
302
- .optional(),
300
+ jobType: z.enum(Object.values(JOB_TYPE) as [string, ...string[]]).optional(),
303
301
  workMode: z
304
- .enum(Object.values(WORK_MODE) as [WorkMode, ...WorkMode[]])
305
- .optional(),
302
+ .string()
303
+ .optional()
304
+ .describe("Comma-separated values, e.g. 'Remote,Hybrid'"),
306
305
  location: z
307
- .enum(Object.values(JOB_LOCATIONS) as [JobLocation, ...JobLocation[]])
306
+ .enum(Object.values(JOB_LOCATIONS) as [string, ...string[]])
308
307
  .optional(),
309
308
  employmentType: z
310
- .enum(
311
- Object.values(EMPLOYMENT_TYPE) as [EmploymentType, ...EmploymentType[]],
312
- )
313
- .optional(),
314
- gigType: z
315
- .enum(Object.values(GIG_TYPE) as [GigType, ...GigType[]])
316
- .optional(),
317
- requiredSkills: z
318
309
  .string()
319
310
  .optional()
320
- .describe("Comma-separated: React,Node.js"),
321
-
311
+ .describe("Comma-separated values, e.g. 'Full Time,Freelance'"),
312
+ gigType: z.enum(Object.values(GIG_TYPE) as [string, ...string[]]).optional(),
313
+ requiredSkills: z.string().optional().describe("Comma-separated skills"),
322
314
  status: z.string().optional(),
323
315
  page: z.coerce.number().min(1).default(1),
324
316
  limit: z.coerce.number().min(1).max(100).default(20),
@@ -328,6 +320,7 @@ export const GetJobsOutputSchema = z.object({
328
320
  jobs: z.array(NormalizedJobSchema),
329
321
  total: z.number(),
330
322
  page: z.number(),
323
+ limit: z.number(),
331
324
  totalPages: z.number(),
332
325
  hasNextPage: z.boolean(),
333
326
  hasPrevPage: z.boolean(),
@@ -1,5 +1,10 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import { CLIENT_TYPES, ROLES } from "../constants";
2
+ import {
3
+ CLIENT_TYPES,
4
+ ROLES,
5
+ VENTURE_STAGES,
6
+ WAGES_CURRENCY,
7
+ } from "../constants";
3
8
  import { CreateFileInputSchema, FileEntitySchema } from "./file";
4
9
  import { CommentEntitySchema } from "./comment";
5
10
  import { BookmarkEntitySchema } from "./bookmark";
@@ -65,6 +70,12 @@ export const ProjectEntitySchema = z
65
70
  description: "Whether the project is featured.",
66
71
  example: true,
67
72
  }),
73
+ problemBeingSolved: z.string().max(600).optional(),
74
+ whoItsFor: z.string().max(600).optional(),
75
+ ventureStage: z.enum(VENTURE_STAGES).optional(),
76
+ capitalLookingToRaise: z.string(),
77
+ capitalLookingToRaiseCurrency: z.enum(WAGES_CURRENCY).optional(),
78
+ currentTraction: z.string().max(600),
68
79
  startDate: z.coerce
69
80
  .date()
70
81
  .optional()
@@ -198,6 +209,12 @@ export const UpdateProjectInputSchema = z
198
209
  clientType: z.enum(CLIENT_TYPES).optional(),
199
210
  clientName: z.string().optional(),
200
211
  isFeatured: z.boolean().optional(),
212
+ problemBeingSolved: z.string().max(600).optional(),
213
+ whoItsFor: z.string().max(600).optional(),
214
+ ventureStage: z.enum(VENTURE_STAGES).optional(),
215
+ capitalLookingToRaise: z.string(),
216
+ capitalLookingToRaiseCurrency: z.enum(WAGES_CURRENCY).optional(),
217
+ currentTraction: z.string().max(600),
201
218
  startDate: z.coerce.date().optional(),
202
219
  endDate: z.coerce.date().optional(),
203
220
  createdAt: z.date().optional(),