@zyacreatives/shared 2.5.18 → 2.5.20
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/project.d.ts +10 -10
- package/dist/schemas/project.js +3 -3
- package/dist/schemas/user.d.ts +6 -6
- package/dist/schemas/user.js +1 -3
- package/package.json +1 -1
- package/src/schemas/project.ts +3 -3
- package/src/schemas/user.ts +1 -3
|
@@ -43,7 +43,7 @@ export declare const ProjectEntitySchema: z.ZodObject<{
|
|
|
43
43
|
readonly GROWTH: "Growth";
|
|
44
44
|
readonly EXIT: "Exit";
|
|
45
45
|
}>>;
|
|
46
|
-
capitalLookingToRaise: z.
|
|
46
|
+
capitalLookingToRaise: z.ZodNumber;
|
|
47
47
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
48
48
|
readonly USD: "USD (United States Dollar)";
|
|
49
49
|
readonly EUR: "EUR (Euro)";
|
|
@@ -106,7 +106,7 @@ export declare const ProjectWithFilesEntitySchema: z.ZodObject<{
|
|
|
106
106
|
readonly GROWTH: "Growth";
|
|
107
107
|
readonly EXIT: "Exit";
|
|
108
108
|
}>>;
|
|
109
|
-
capitalLookingToRaise: z.
|
|
109
|
+
capitalLookingToRaise: z.ZodNumber;
|
|
110
110
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
111
111
|
readonly USD: "USD (United States Dollar)";
|
|
112
112
|
readonly EUR: "EUR (Euro)";
|
|
@@ -219,7 +219,7 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
|
|
|
219
219
|
readonly GROWTH: "Growth";
|
|
220
220
|
readonly EXIT: "Exit";
|
|
221
221
|
}>>;
|
|
222
|
-
capitalLookingToRaise: z.ZodOptional<z.
|
|
222
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodNumber>;
|
|
223
223
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
224
224
|
readonly USD: "USD (United States Dollar)";
|
|
225
225
|
readonly EUR: "EUR (Euro)";
|
|
@@ -315,7 +315,7 @@ export declare const ProjectDetailsEntitySchema: z.ZodObject<{
|
|
|
315
315
|
readonly GROWTH: "Growth";
|
|
316
316
|
readonly EXIT: "Exit";
|
|
317
317
|
}>>;
|
|
318
|
-
capitalLookingToRaise: z.
|
|
318
|
+
capitalLookingToRaise: z.ZodNumber;
|
|
319
319
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
320
320
|
readonly USD: "USD (United States Dollar)";
|
|
321
321
|
readonly EUR: "EUR (Euro)";
|
|
@@ -414,7 +414,7 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
|
|
|
414
414
|
readonly GROWTH: "Growth";
|
|
415
415
|
readonly EXIT: "Exit";
|
|
416
416
|
}>>;
|
|
417
|
-
capitalLookingToRaise: z.
|
|
417
|
+
capitalLookingToRaise: z.ZodNumber;
|
|
418
418
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
419
419
|
readonly USD: "USD (United States Dollar)";
|
|
420
420
|
readonly EUR: "EUR (Euro)";
|
|
@@ -489,7 +489,7 @@ export declare const ProjectSearchDocumentSchema: z.ZodObject<{
|
|
|
489
489
|
createdAt: z.ZodNumber;
|
|
490
490
|
updatedAt: z.ZodNumber;
|
|
491
491
|
description: z.ZodOptional<z.ZodString>;
|
|
492
|
-
capitalLookingToRaise: z.ZodOptional<z.
|
|
492
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodNumber>;
|
|
493
493
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
494
494
|
readonly USD: "USD (United States Dollar)";
|
|
495
495
|
readonly EUR: "EUR (Euro)";
|
|
@@ -569,7 +569,7 @@ export declare const SearchProjectsOutputSchema: z.ZodObject<{
|
|
|
569
569
|
createdAt: z.ZodNumber;
|
|
570
570
|
updatedAt: z.ZodNumber;
|
|
571
571
|
description: z.ZodOptional<z.ZodString>;
|
|
572
|
-
capitalLookingToRaise: z.ZodOptional<z.
|
|
572
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodNumber>;
|
|
573
573
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
574
574
|
readonly USD: "USD (United States Dollar)";
|
|
575
575
|
readonly EUR: "EUR (Euro)";
|
|
@@ -865,7 +865,7 @@ export declare const CreateProjectOutputSchema: z.ZodObject<{
|
|
|
865
865
|
readonly GROWTH: "Growth";
|
|
866
866
|
readonly EXIT: "Exit";
|
|
867
867
|
}>>;
|
|
868
|
-
capitalLookingToRaise: z.
|
|
868
|
+
capitalLookingToRaise: z.ZodNumber;
|
|
869
869
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
870
870
|
readonly USD: "USD (United States Dollar)";
|
|
871
871
|
readonly EUR: "EUR (Euro)";
|
|
@@ -928,7 +928,7 @@ export declare const UpdateProjectOutputSchema: z.ZodObject<{
|
|
|
928
928
|
readonly GROWTH: "Growth";
|
|
929
929
|
readonly EXIT: "Exit";
|
|
930
930
|
}>>;
|
|
931
|
-
capitalLookingToRaise: z.
|
|
931
|
+
capitalLookingToRaise: z.ZodNumber;
|
|
932
932
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
933
933
|
readonly USD: "USD (United States Dollar)";
|
|
934
934
|
readonly EUR: "EUR (Euro)";
|
|
@@ -991,7 +991,7 @@ export declare const DeleteProjectOutputSchema: z.ZodObject<{
|
|
|
991
991
|
readonly GROWTH: "Growth";
|
|
992
992
|
readonly EXIT: "Exit";
|
|
993
993
|
}>>;
|
|
994
|
-
capitalLookingToRaise: z.
|
|
994
|
+
capitalLookingToRaise: z.ZodNumber;
|
|
995
995
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
996
996
|
readonly USD: "USD (United States Dollar)";
|
|
997
997
|
readonly EUR: "EUR (Euro)";
|
package/dist/schemas/project.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.ProjectEntitySchema = zod_openapi_1.z
|
|
|
28
28
|
problemBeingSolved: zod_openapi_1.z.string().max(600).optional(),
|
|
29
29
|
whoItsFor: zod_openapi_1.z.string().max(600).optional(),
|
|
30
30
|
ventureStage: zod_openapi_1.z.enum(constants_1.VENTURE_STAGES).optional(),
|
|
31
|
-
capitalLookingToRaise: zod_openapi_1.z.
|
|
31
|
+
capitalLookingToRaise: zod_openapi_1.z.number(),
|
|
32
32
|
capitalLookingToRaiseCurrency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY).optional(),
|
|
33
33
|
currentTraction: zod_openapi_1.z.string().max(600),
|
|
34
34
|
isOpenToInvestment: zod_openapi_1.z.boolean().default(false),
|
|
@@ -86,7 +86,7 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
|
|
|
86
86
|
problemBeingSolved: zod_openapi_1.z.string().max(600).optional(),
|
|
87
87
|
whoItsFor: zod_openapi_1.z.string().max(600).optional(),
|
|
88
88
|
ventureStage: zod_openapi_1.z.enum(constants_1.VENTURE_STAGES).optional(),
|
|
89
|
-
capitalLookingToRaise: zod_openapi_1.z.
|
|
89
|
+
capitalLookingToRaise: zod_openapi_1.z.number().optional(),
|
|
90
90
|
capitalLookingToRaiseCurrency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY).optional(),
|
|
91
91
|
currentTraction: zod_openapi_1.z.string().max(600).optional(),
|
|
92
92
|
isOpenToInvestment: zod_openapi_1.z.boolean().default(false),
|
|
@@ -141,7 +141,7 @@ exports.ProjectSearchDocumentSchema = zod_openapi_1.z
|
|
|
141
141
|
createdAt: zod_openapi_1.z.number(),
|
|
142
142
|
updatedAt: zod_openapi_1.z.number(),
|
|
143
143
|
description: zod_openapi_1.z.string().optional(),
|
|
144
|
-
capitalLookingToRaise: zod_openapi_1.z.
|
|
144
|
+
capitalLookingToRaise: zod_openapi_1.z.number().optional(),
|
|
145
145
|
capitalLookingToRaiseCurrency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY).optional(),
|
|
146
146
|
ventureStage: zod_openapi_1.z.enum(constants_1.VENTURE_STAGES).optional(),
|
|
147
147
|
url: zod_openapi_1.z.url().optional(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -267,7 +267,7 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
|
|
|
267
267
|
readonly GROWTH: "Growth";
|
|
268
268
|
readonly EXIT: "Exit";
|
|
269
269
|
}>>;
|
|
270
|
-
capitalLookingToRaise: z.
|
|
270
|
+
capitalLookingToRaise: z.ZodNumber;
|
|
271
271
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
272
272
|
readonly USD: "USD (United States Dollar)";
|
|
273
273
|
readonly EUR: "EUR (Euro)";
|
|
@@ -559,7 +559,7 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
|
|
|
559
559
|
createdAt: z.ZodNumber;
|
|
560
560
|
updatedAt: z.ZodNumber;
|
|
561
561
|
description: z.ZodOptional<z.ZodString>;
|
|
562
|
-
capitalLookingToRaise: z.ZodOptional<z.
|
|
562
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodNumber>;
|
|
563
563
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
564
564
|
readonly USD: "USD (United States Dollar)";
|
|
565
565
|
readonly EUR: "EUR (Euro)";
|
|
@@ -848,7 +848,7 @@ export declare const GetUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
|
|
848
848
|
createdAt: z.ZodNumber;
|
|
849
849
|
updatedAt: z.ZodNumber;
|
|
850
850
|
description: z.ZodOptional<z.ZodString>;
|
|
851
|
-
capitalLookingToRaise: z.ZodOptional<z.
|
|
851
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodNumber>;
|
|
852
852
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
853
853
|
readonly USD: "USD (United States Dollar)";
|
|
854
854
|
readonly EUR: "EUR (Euro)";
|
|
@@ -1475,7 +1475,7 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
|
|
|
1475
1475
|
readonly GROWTH: "Growth";
|
|
1476
1476
|
readonly EXIT: "Exit";
|
|
1477
1477
|
}>>;
|
|
1478
|
-
capitalLookingToRaise: z.
|
|
1478
|
+
capitalLookingToRaise: z.ZodNumber;
|
|
1479
1479
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1480
1480
|
readonly USD: "USD (United States Dollar)";
|
|
1481
1481
|
readonly EUR: "EUR (Euro)";
|
|
@@ -1528,7 +1528,7 @@ export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.Zod
|
|
|
1528
1528
|
createdAt: z.ZodNumber;
|
|
1529
1529
|
updatedAt: z.ZodNumber;
|
|
1530
1530
|
description: z.ZodOptional<z.ZodString>;
|
|
1531
|
-
capitalLookingToRaise: z.ZodOptional<z.
|
|
1531
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodNumber>;
|
|
1532
1532
|
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1533
1533
|
readonly USD: "USD (United States Dollar)";
|
|
1534
1534
|
readonly EUR: "EUR (Euro)";
|
|
@@ -1744,7 +1744,7 @@ export declare const UserSearchDocumentSchema: z.ZodObject<{
|
|
|
1744
1744
|
INVESTOR: "INVESTOR";
|
|
1745
1745
|
ADMIN: "ADMIN";
|
|
1746
1746
|
}>;
|
|
1747
|
-
|
|
1747
|
+
location: z.ZodNullable<z.ZodString>;
|
|
1748
1748
|
disciplines: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1749
1749
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1750
1750
|
createdAt: z.ZodNullable<z.ZodString>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -314,9 +314,7 @@ exports.UserSearchDocumentSchema = zod_openapi_1.z
|
|
|
314
314
|
role: zod_openapi_1.z
|
|
315
315
|
.enum(Object.values(constants_1.ROLES))
|
|
316
316
|
.openapi({ example: "CREATIVE" }),
|
|
317
|
-
|
|
318
|
-
example: "Passionate designer and developer based in Lagos.",
|
|
319
|
-
}),
|
|
317
|
+
location: zod_openapi_1.z.string().nullable().openapi({ example: "Lagos, Nigeria" }),
|
|
320
318
|
disciplines: zod_openapi_1.z
|
|
321
319
|
.array(zod_openapi_1.z.string())
|
|
322
320
|
.nullable()
|
package/package.json
CHANGED
package/src/schemas/project.ts
CHANGED
|
@@ -33,7 +33,7 @@ export const ProjectEntitySchema = z
|
|
|
33
33
|
problemBeingSolved: z.string().max(600).optional(),
|
|
34
34
|
whoItsFor: z.string().max(600).optional(),
|
|
35
35
|
ventureStage: z.enum(VENTURE_STAGES).optional(),
|
|
36
|
-
capitalLookingToRaise: z.
|
|
36
|
+
capitalLookingToRaise: z.number(),
|
|
37
37
|
capitalLookingToRaiseCurrency: z.enum(WAGES_CURRENCY).optional(),
|
|
38
38
|
currentTraction: z.string().max(600),
|
|
39
39
|
isOpenToInvestment: z.boolean().default(false),
|
|
@@ -106,7 +106,7 @@ export const UpdateProjectInputSchema = z
|
|
|
106
106
|
problemBeingSolved: z.string().max(600).optional(),
|
|
107
107
|
whoItsFor: z.string().max(600).optional(),
|
|
108
108
|
ventureStage: z.enum(VENTURE_STAGES).optional(),
|
|
109
|
-
capitalLookingToRaise: z.
|
|
109
|
+
capitalLookingToRaise: z.number().optional(),
|
|
110
110
|
capitalLookingToRaiseCurrency: z.enum(WAGES_CURRENCY).optional(),
|
|
111
111
|
currentTraction: z.string().max(600).optional(),
|
|
112
112
|
isOpenToInvestment: z.boolean().default(false),
|
|
@@ -176,7 +176,7 @@ export const ProjectSearchDocumentSchema = z
|
|
|
176
176
|
createdAt: z.number(),
|
|
177
177
|
updatedAt: z.number(),
|
|
178
178
|
description: z.string().optional(),
|
|
179
|
-
capitalLookingToRaise: z.
|
|
179
|
+
capitalLookingToRaise: z.number().optional(),
|
|
180
180
|
capitalLookingToRaiseCurrency: z.enum(WAGES_CURRENCY).optional(),
|
|
181
181
|
ventureStage: z.enum(VENTURE_STAGES).optional(),
|
|
182
182
|
url: z.url().optional(),
|
package/src/schemas/user.ts
CHANGED
|
@@ -419,9 +419,7 @@ export const UserSearchDocumentSchema = z
|
|
|
419
419
|
role: z
|
|
420
420
|
.enum(Object.values(ROLES) as [Role, ...Role[]])
|
|
421
421
|
.openapi({ example: "CREATIVE" }),
|
|
422
|
-
|
|
423
|
-
example: "Passionate designer and developer based in Lagos.",
|
|
424
|
-
}),
|
|
422
|
+
location: z.string().nullable().openapi({ example: "Lagos, Nigeria" }),
|
|
425
423
|
disciplines: z
|
|
426
424
|
.array(z.string())
|
|
427
425
|
.nullable()
|