@zyacreatives/shared 2.2.4 → 2.2.6

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.
@@ -223,15 +223,15 @@ export declare const NOTIFICATION_TYPES: {
223
223
  readonly PROJECT_FEATURED: "Project Featured";
224
224
  };
225
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;
226
+ readonly IDEA: "Idea";
227
+ readonly PRE_SEED: "Pre Seed";
228
+ readonly MVP: "MVP";
229
+ readonly SEED: "Seed";
230
+ readonly SERIES_A: "Series A";
231
+ readonly SERIES_B: "Series B";
232
+ readonly SERIES_C: "Series C";
233
+ readonly GROWTH: "Growth";
234
+ readonly EXIT: "Exit";
235
235
  };
236
236
  export type NotificationType = (typeof NOTIFICATION_TYPES)[keyof typeof NOTIFICATION_TYPES];
237
237
  export type ApplicationStatus = (typeof APPLICATION_STATUS)[keyof typeof APPLICATION_STATUS];
@@ -25,15 +25,15 @@ export declare const ProjectEntitySchema: z.ZodObject<{
25
25
  problemBeingSolved: z.ZodOptional<z.ZodString>;
26
26
  whoItsFor: z.ZodOptional<z.ZodString>;
27
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;
28
+ readonly IDEA: "Idea";
29
+ readonly PRE_SEED: "Pre Seed";
30
+ readonly MVP: "MVP";
31
+ readonly SEED: "Seed";
32
+ readonly SERIES_A: "Series A";
33
+ readonly SERIES_B: "Series B";
34
+ readonly SERIES_C: "Series C";
35
+ readonly GROWTH: "Growth";
36
+ readonly EXIT: "Exit";
37
37
  }>>;
38
38
  capitalLookingToRaise: z.ZodString;
39
39
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -94,15 +94,15 @@ export declare const ProjectDetailsEntitySchema: z.ZodObject<{
94
94
  problemBeingSolved: z.ZodOptional<z.ZodString>;
95
95
  whoItsFor: z.ZodOptional<z.ZodString>;
96
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;
97
+ readonly IDEA: "Idea";
98
+ readonly PRE_SEED: "Pre Seed";
99
+ readonly MVP: "MVP";
100
+ readonly SEED: "Seed";
101
+ readonly SERIES_A: "Series A";
102
+ readonly SERIES_B: "Series B";
103
+ readonly SERIES_C: "Series C";
104
+ readonly GROWTH: "Growth";
105
+ readonly EXIT: "Exit";
106
106
  }>>;
107
107
  capitalLookingToRaise: z.ZodString;
108
108
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -210,15 +210,15 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
210
210
  problemBeingSolved: z.ZodOptional<z.ZodString>;
211
211
  whoItsFor: z.ZodOptional<z.ZodString>;
212
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;
213
+ readonly IDEA: "Idea";
214
+ readonly PRE_SEED: "Pre Seed";
215
+ readonly MVP: "MVP";
216
+ readonly SEED: "Seed";
217
+ readonly SERIES_A: "Series A";
218
+ readonly SERIES_B: "Series B";
219
+ readonly SERIES_C: "Series C";
220
+ readonly GROWTH: "Growth";
221
+ readonly EXIT: "Exit";
222
222
  }>>;
223
223
  capitalLookingToRaise: z.ZodOptional<z.ZodString>;
224
224
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -233,7 +233,7 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
233
233
  readonly INR: "INR (Indian Rupee)";
234
234
  readonly ZAR: "ZAR (South African Rand)";
235
235
  }>>;
236
- currentTraction: z.ZodString;
236
+ currentTraction: z.ZodOptional<z.ZodString>;
237
237
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
238
238
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
239
239
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -266,15 +266,15 @@ export declare const CreateProjectOutputSchema: z.ZodObject<{
266
266
  problemBeingSolved: z.ZodOptional<z.ZodString>;
267
267
  whoItsFor: z.ZodOptional<z.ZodString>;
268
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;
269
+ readonly IDEA: "Idea";
270
+ readonly PRE_SEED: "Pre Seed";
271
+ readonly MVP: "MVP";
272
+ readonly SEED: "Seed";
273
+ readonly SERIES_A: "Series A";
274
+ readonly SERIES_B: "Series B";
275
+ readonly SERIES_C: "Series C";
276
+ readonly GROWTH: "Growth";
277
+ readonly EXIT: "Exit";
278
278
  }>>;
279
279
  capitalLookingToRaise: z.ZodString;
280
280
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -322,15 +322,15 @@ export declare const UpdateProjectOutputSchema: z.ZodObject<{
322
322
  problemBeingSolved: z.ZodOptional<z.ZodString>;
323
323
  whoItsFor: z.ZodOptional<z.ZodString>;
324
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;
325
+ readonly IDEA: "Idea";
326
+ readonly PRE_SEED: "Pre Seed";
327
+ readonly MVP: "MVP";
328
+ readonly SEED: "Seed";
329
+ readonly SERIES_A: "Series A";
330
+ readonly SERIES_B: "Series B";
331
+ readonly SERIES_C: "Series C";
332
+ readonly GROWTH: "Growth";
333
+ readonly EXIT: "Exit";
334
334
  }>>;
335
335
  capitalLookingToRaise: z.ZodString;
336
336
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -378,15 +378,15 @@ export declare const DeleteProjectOutputSchema: z.ZodObject<{
378
378
  problemBeingSolved: z.ZodOptional<z.ZodString>;
379
379
  whoItsFor: z.ZodOptional<z.ZodString>;
380
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;
381
+ readonly IDEA: "Idea";
382
+ readonly PRE_SEED: "Pre Seed";
383
+ readonly MVP: "MVP";
384
+ readonly SEED: "Seed";
385
+ readonly SERIES_A: "Series A";
386
+ readonly SERIES_B: "Series B";
387
+ readonly SERIES_C: "Series C";
388
+ readonly GROWTH: "Growth";
389
+ readonly EXIT: "Exit";
390
390
  }>>;
391
391
  capitalLookingToRaise: z.ZodString;
392
392
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -434,15 +434,15 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
434
434
  problemBeingSolved: z.ZodOptional<z.ZodString>;
435
435
  whoItsFor: z.ZodOptional<z.ZodString>;
436
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;
437
+ readonly IDEA: "Idea";
438
+ readonly PRE_SEED: "Pre Seed";
439
+ readonly MVP: "MVP";
440
+ readonly SEED: "Seed";
441
+ readonly SERIES_A: "Series A";
442
+ readonly SERIES_B: "Series B";
443
+ readonly SERIES_C: "Series C";
444
+ readonly GROWTH: "Growth";
445
+ readonly EXIT: "Exit";
446
446
  }>>;
447
447
  capitalLookingToRaise: z.ZodString;
448
448
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -201,7 +201,7 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
201
201
  ventureStage: zod_openapi_1.z.enum(constants_1.VENTURE_STAGES).optional(),
202
202
  capitalLookingToRaise: zod_openapi_1.z.string().optional(),
203
203
  capitalLookingToRaiseCurrency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY).optional(),
204
- currentTraction: zod_openapi_1.z.string().max(600),
204
+ currentTraction: zod_openapi_1.z.string().max(600).optional(),
205
205
  startDate: zod_openapi_1.z.coerce.date().optional(),
206
206
  endDate: zod_openapi_1.z.coerce.date().optional(),
207
207
  createdAt: zod_openapi_1.z.date().optional(),
@@ -236,15 +236,15 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
236
236
  problemBeingSolved: z.ZodOptional<z.ZodString>;
237
237
  whoItsFor: z.ZodOptional<z.ZodString>;
238
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;
239
+ readonly IDEA: "Idea";
240
+ readonly PRE_SEED: "Pre Seed";
241
+ readonly MVP: "MVP";
242
+ readonly SEED: "Seed";
243
+ readonly SERIES_A: "Series A";
244
+ readonly SERIES_B: "Series B";
245
+ readonly SERIES_C: "Series C";
246
+ readonly GROWTH: "Growth";
247
+ readonly EXIT: "Exit";
248
248
  }>>;
249
249
  capitalLookingToRaise: z.ZodString;
250
250
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -747,15 +747,15 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
747
747
  problemBeingSolved: z.ZodOptional<z.ZodString>;
748
748
  whoItsFor: z.ZodOptional<z.ZodString>;
749
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;
750
+ readonly IDEA: "Idea";
751
+ readonly PRE_SEED: "Pre Seed";
752
+ readonly MVP: "MVP";
753
+ readonly SEED: "Seed";
754
+ readonly SERIES_A: "Series A";
755
+ readonly SERIES_B: "Series B";
756
+ readonly SERIES_C: "Series C";
757
+ readonly GROWTH: "Growth";
758
+ readonly EXIT: "Exit";
759
759
  }>>;
760
760
  capitalLookingToRaise: z.ZodString;
761
761
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -260,7 +260,7 @@ export const VENTURE_STAGES = {
260
260
  SERIES_C: "Series C",
261
261
  GROWTH: "Growth",
262
262
  EXIT: "Exit",
263
- };
263
+ } as const;
264
264
 
265
265
  export type NotificationType =
266
266
  (typeof NOTIFICATION_TYPES)[keyof typeof NOTIFICATION_TYPES];
@@ -214,7 +214,7 @@ export const UpdateProjectInputSchema = z
214
214
  ventureStage: z.enum(VENTURE_STAGES).optional(),
215
215
  capitalLookingToRaise: z.string().optional(),
216
216
  capitalLookingToRaiseCurrency: z.enum(WAGES_CURRENCY).optional(),
217
- currentTraction: z.string().max(600),
217
+ currentTraction: z.string().max(600).optional(),
218
218
  startDate: z.coerce.date().optional(),
219
219
  endDate: z.coerce.date().optional(),
220
220
  createdAt: z.date().optional(),