@zyacreatives/shared 1.4.4 → 1.4.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.
- package/dist/schemas/file.d.ts +2 -1
- package/dist/schemas/file.js +2 -1
- package/dist/schemas/investor.d.ts +3 -3
- package/dist/schemas/investor.js +3 -3
- package/dist/schemas/user.d.ts +2 -2
- package/dist/schemas/user.js +1 -1
- package/dist/types/brand.d.ts +2 -6
- package/dist/types/investor.d.ts +2 -6
- package/package.json +1 -1
- package/src/schemas/file.ts +3 -1
- package/src/schemas/investor.ts +4 -4
- package/src/schemas/user.ts +1 -1
- package/src/types/brand.ts +2 -7
- package/src/types/investor.ts +11 -15
package/dist/schemas/file.d.ts
CHANGED
|
@@ -37,7 +37,8 @@ export declare const CreateFileOutputSchema: z.ZodObject<{
|
|
|
37
37
|
mimeType: z.ZodString;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
export declare const DeleteFileInputParams: z.ZodObject<{
|
|
40
|
-
fileId: z.ZodCUID2
|
|
40
|
+
fileId: z.ZodOptional<z.ZodCUID2>;
|
|
41
|
+
key: z.ZodOptional<z.ZodCUID2>;
|
|
41
42
|
}, z.core.$strip>;
|
|
42
43
|
export declare const DeleteFileOutputSchema: z.ZodObject<{
|
|
43
44
|
id: z.ZodCUID2;
|
package/dist/schemas/file.js
CHANGED
|
@@ -43,7 +43,8 @@ exports.CreateFileInputSchema = zod_openapi_1.z.object({
|
|
|
43
43
|
});
|
|
44
44
|
exports.CreateFileOutputSchema = exports.FileEntitySchema;
|
|
45
45
|
exports.DeleteFileInputParams = zod_openapi_1.z.object({
|
|
46
|
-
fileId: zod_openapi_1.z.cuid2().openapi({ example: "0irjif0qur09481u90r1u" }),
|
|
46
|
+
fileId: zod_openapi_1.z.cuid2().optional().openapi({ example: "0irjif0qur09481u90r1u" }),
|
|
47
|
+
key: zod_openapi_1.z.cuid2().optional(),
|
|
47
48
|
});
|
|
48
49
|
exports.DeleteFileOutputSchema = zod_openapi_1.z.object({
|
|
49
50
|
id: zod_openapi_1.z.cuid2().openapi({ example: "r90rjnaneifijhi31" }),
|
|
@@ -49,8 +49,8 @@ export declare const InvestorEntitySchema: z.ZodObject<{
|
|
|
49
49
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
export declare const CreateInvestorProfileInputSchema: z.ZodObject<{
|
|
52
|
-
bio: z.
|
|
53
|
-
websiteURL: z.ZodOptional<z.
|
|
52
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
53
|
+
websiteURL: z.ZodOptional<z.ZodURL>;
|
|
54
54
|
experienceLevel: z.ZodDefault<z.ZodEnum<{
|
|
55
55
|
"0-1 year": "0-1 year";
|
|
56
56
|
"1-3 years": "1-3 years";
|
|
@@ -61,7 +61,7 @@ export declare const CreateInvestorProfileInputSchema: z.ZodObject<{
|
|
|
61
61
|
}, z.core.$strip>;
|
|
62
62
|
export declare const UpdateInvestorProfileInputSchema: z.ZodObject<{
|
|
63
63
|
bio: z.ZodOptional<z.ZodString>;
|
|
64
|
-
websiteURL: z.ZodOptional<z.
|
|
64
|
+
websiteURL: z.ZodOptional<z.ZodURL>;
|
|
65
65
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
66
66
|
"0-1 year": "0-1 year";
|
|
67
67
|
"1-3 years": "1-3 years";
|
package/dist/schemas/investor.js
CHANGED
|
@@ -49,10 +49,10 @@ exports.InvestorEntitySchema = zod_openapi_1.z
|
|
|
49
49
|
.openapi("InvestorEntity");
|
|
50
50
|
exports.CreateInvestorProfileInputSchema = zod_openapi_1.z
|
|
51
51
|
.object({
|
|
52
|
-
bio: zod_openapi_1.z.string().max(210).optional().
|
|
52
|
+
bio: zod_openapi_1.z.string().max(210).optional().openapi({
|
|
53
53
|
example: "Angel investor backing early-stage African startups.",
|
|
54
54
|
}),
|
|
55
|
-
websiteURL: zod_openapi_1.z.
|
|
55
|
+
websiteURL: zod_openapi_1.z.url("Invalid url").optional().openapi({
|
|
56
56
|
example: "https://www.investorportfolio.com",
|
|
57
57
|
}),
|
|
58
58
|
experienceLevel: zod_openapi_1.z
|
|
@@ -73,7 +73,7 @@ exports.UpdateInvestorProfileInputSchema = zod_openapi_1.z
|
|
|
73
73
|
bio: zod_openapi_1.z.string().max(210).optional().openapi({
|
|
74
74
|
example: "Seasoned venture capitalist with a focus on healthtech.",
|
|
75
75
|
}),
|
|
76
|
-
websiteURL: zod_openapi_1.z.
|
|
76
|
+
websiteURL: zod_openapi_1.z.url("Invalid url").optional().openapi({
|
|
77
77
|
example: "https://www.vcgroup.com",
|
|
78
78
|
}),
|
|
79
79
|
experienceLevel: zod_openapi_1.z
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
|
141
141
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
142
142
|
tags: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
143
143
|
brandName: z.ZodOptional<z.ZodString>;
|
|
144
|
-
websiteURL: z.ZodOptional<z.
|
|
144
|
+
websiteURL: z.ZodOptional<z.ZodURL>;
|
|
145
145
|
investorType: z.ZodOptional<z.ZodString>;
|
|
146
146
|
investmentSize: z.ZodOptional<z.ZodString>;
|
|
147
147
|
geographicFocus: z.ZodOptional<z.ZodString>;
|
|
@@ -398,7 +398,7 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
|
|
|
398
398
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
399
399
|
tags: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
400
400
|
brandName: z.ZodOptional<z.ZodString>;
|
|
401
|
-
websiteURL: z.ZodOptional<z.
|
|
401
|
+
websiteURL: z.ZodOptional<z.ZodURL>;
|
|
402
402
|
investorType: z.ZodOptional<z.ZodString>;
|
|
403
403
|
investmentSize: z.ZodOptional<z.ZodString>;
|
|
404
404
|
geographicFocus: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -66,7 +66,7 @@ exports.UserProfileEntitySchema = exports.UserEntitySchema.extend({
|
|
|
66
66
|
disciplines: zod_openapi_1.z.array(zod_openapi_1.z.any()).optional(),
|
|
67
67
|
tags: zod_openapi_1.z.array(zod_openapi_1.z.any()).optional(),
|
|
68
68
|
brandName: zod_openapi_1.z.string().optional(),
|
|
69
|
-
websiteURL: zod_openapi_1.z.
|
|
69
|
+
websiteURL: zod_openapi_1.z.url().optional(),
|
|
70
70
|
investorType: zod_openapi_1.z.string().optional(),
|
|
71
71
|
investmentSize: zod_openapi_1.z.string().optional(),
|
|
72
72
|
geographicFocus: zod_openapi_1.z.string().optional(),
|
package/dist/types/brand.d.ts
CHANGED
|
@@ -2,12 +2,8 @@ import { z } from "@hono/zod-openapi";
|
|
|
2
2
|
import { BrandEntitySchema, CreateBrandOutputSchema, CreateBrandProfileInputSchema, GetBrandOutputSchema, GetBrandParamsSchema, GetBrandQuerySchema, ListBrandsInputSchema, UpdateBrandOutputSchema, UpdateBrandProfileInputSchema } from "../schemas";
|
|
3
3
|
export type BrandEntity = z.infer<typeof BrandEntitySchema>;
|
|
4
4
|
export type ListBrandsInput = z.infer<typeof ListBrandsInputSchema>;
|
|
5
|
-
export type CreateBrandInput = z.infer<typeof CreateBrandProfileInputSchema
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export type UpdateBrandInput = z.infer<typeof UpdateBrandProfileInputSchema> & {
|
|
9
|
-
userId: string;
|
|
10
|
-
};
|
|
5
|
+
export type CreateBrandInput = z.infer<typeof CreateBrandProfileInputSchema>;
|
|
6
|
+
export type UpdateBrandInput = z.infer<typeof UpdateBrandProfileInputSchema>;
|
|
11
7
|
export type GetBrandParams = z.infer<typeof GetBrandParamsSchema>;
|
|
12
8
|
export type GetBrandQuery = z.infer<typeof GetBrandQuerySchema>;
|
|
13
9
|
export type CreateBrandOutput = z.infer<typeof CreateBrandOutputSchema>;
|
package/dist/types/investor.d.ts
CHANGED
|
@@ -2,12 +2,8 @@ import { z } from "@hono/zod-openapi";
|
|
|
2
2
|
import { CreateInvestorOutputSchema, CreateInvestorProfileInputSchema, GetInvestorOutputSchema, GetInvestorParamsSchema, GetInvestorQuerySchema, InvestorEntitySchema, ListInvestorsInputSchema, UpdateInvestorOutputSchema, UpdateInvestorProfileInputSchema } from "../schemas/investor";
|
|
3
3
|
export type InvestorEntity = z.infer<typeof InvestorEntitySchema>;
|
|
4
4
|
export type ListInvestorsInput = z.infer<typeof ListInvestorsInputSchema>;
|
|
5
|
-
export type CreateInvestorInput = z.infer<typeof CreateInvestorProfileInputSchema
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export type UpdateInvestorInput = z.infer<typeof UpdateInvestorProfileInputSchema> & {
|
|
9
|
-
userId: string;
|
|
10
|
-
};
|
|
5
|
+
export type CreateInvestorInput = z.infer<typeof CreateInvestorProfileInputSchema>;
|
|
6
|
+
export type UpdateInvestorInput = z.infer<typeof UpdateInvestorProfileInputSchema>;
|
|
11
7
|
export type GetInvestorParams = z.infer<typeof GetInvestorParamsSchema>;
|
|
12
8
|
export type GetInvestorQuery = z.infer<typeof GetInvestorQuerySchema>;
|
|
13
9
|
export type CreateInvestorOutput = z.infer<typeof CreateInvestorOutputSchema>;
|
package/package.json
CHANGED
package/src/schemas/file.ts
CHANGED
|
@@ -36,6 +36,7 @@ export const GetFilePresignedUploadUrlOutputSchema = z.object({
|
|
|
36
36
|
export const GetFilePresignedDownloadUrlParams = z.object({
|
|
37
37
|
fileId: z.cuid2().openapi({ example: "0irjif0qur09481u90r1u" }),
|
|
38
38
|
});
|
|
39
|
+
|
|
39
40
|
export const GetFilePresignedDownloadUrlOutputSchema =
|
|
40
41
|
GetFilePresignedUploadUrlOutputSchema;
|
|
41
42
|
|
|
@@ -49,7 +50,8 @@ export const CreateFileInputSchema = z.object({
|
|
|
49
50
|
export const CreateFileOutputSchema = FileEntitySchema;
|
|
50
51
|
|
|
51
52
|
export const DeleteFileInputParams = z.object({
|
|
52
|
-
fileId: z.cuid2().openapi({ example: "0irjif0qur09481u90r1u" }),
|
|
53
|
+
fileId: z.cuid2().optional().openapi({ example: "0irjif0qur09481u90r1u" }),
|
|
54
|
+
key: z.cuid2().optional(),
|
|
53
55
|
});
|
|
54
56
|
|
|
55
57
|
export const DeleteFileOutputSchema = z.object({
|
package/src/schemas/investor.ts
CHANGED
|
@@ -69,10 +69,10 @@ export const InvestorEntitySchema = z
|
|
|
69
69
|
|
|
70
70
|
export const CreateInvestorProfileInputSchema = z
|
|
71
71
|
.object({
|
|
72
|
-
bio: z.string().max(210).optional().
|
|
72
|
+
bio: z.string().max(210).optional().openapi({
|
|
73
73
|
example: "Angel investor backing early-stage African startups.",
|
|
74
74
|
}),
|
|
75
|
-
websiteURL: z.
|
|
75
|
+
websiteURL: z.url("Invalid url").optional().openapi({
|
|
76
76
|
example: "https://www.investorportfolio.com",
|
|
77
77
|
}),
|
|
78
78
|
experienceLevel: z
|
|
@@ -99,7 +99,7 @@ export const UpdateInvestorProfileInputSchema = z
|
|
|
99
99
|
bio: z.string().max(210).optional().openapi({
|
|
100
100
|
example: "Seasoned venture capitalist with a focus on healthtech.",
|
|
101
101
|
}),
|
|
102
|
-
websiteURL: z.
|
|
102
|
+
websiteURL: z.url("Invalid url").optional().openapi({
|
|
103
103
|
example: "https://www.vcgroup.com",
|
|
104
104
|
}),
|
|
105
105
|
experienceLevel: z
|
|
@@ -198,6 +198,6 @@ export const GetInvestorQuerySchema = ProfileIdentifierSchema;
|
|
|
198
198
|
|
|
199
199
|
export const CreateInvestorOutputSchema = InvestorEntitySchema;
|
|
200
200
|
|
|
201
|
-
export const GetInvestorOutputSchema = InvestorEntitySchema
|
|
201
|
+
export const GetInvestorOutputSchema = InvestorEntitySchema;
|
|
202
202
|
|
|
203
203
|
export const UpdateInvestorOutputSchema = InvestorEntitySchema;
|
package/src/schemas/user.ts
CHANGED
|
@@ -74,7 +74,7 @@ export const UserProfileEntitySchema = UserEntitySchema.extend({
|
|
|
74
74
|
disciplines: z.array(z.any()).optional(),
|
|
75
75
|
tags: z.array(z.any()).optional(),
|
|
76
76
|
brandName: z.string().optional(),
|
|
77
|
-
websiteURL: z.
|
|
77
|
+
websiteURL: z.url().optional(),
|
|
78
78
|
investorType: z.string().optional(),
|
|
79
79
|
investmentSize: z.string().optional(),
|
|
80
80
|
geographicFocus: z.string().optional(),
|
package/src/types/brand.ts
CHANGED
|
@@ -15,14 +15,9 @@ export type BrandEntity = z.infer<typeof BrandEntitySchema>;
|
|
|
15
15
|
|
|
16
16
|
export type ListBrandsInput = z.infer<typeof ListBrandsInputSchema>;
|
|
17
17
|
|
|
18
|
-
export type CreateBrandInput = z.infer<typeof CreateBrandProfileInputSchema>
|
|
19
|
-
userId: string;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type UpdateBrandInput = z.infer<typeof UpdateBrandProfileInputSchema> & {
|
|
23
|
-
userId: string;
|
|
24
|
-
};
|
|
18
|
+
export type CreateBrandInput = z.infer<typeof CreateBrandProfileInputSchema>
|
|
25
19
|
|
|
20
|
+
export type UpdateBrandInput = z.infer<typeof UpdateBrandProfileInputSchema>
|
|
26
21
|
export type GetBrandParams = z.infer<typeof GetBrandParamsSchema>;
|
|
27
22
|
|
|
28
23
|
export type GetBrandQuery = z.infer<typeof GetBrandQuerySchema>;
|
package/src/types/investor.ts
CHANGED
|
@@ -15,24 +15,20 @@ export type InvestorEntity = z.infer<typeof InvestorEntitySchema>;
|
|
|
15
15
|
|
|
16
16
|
export type ListInvestorsInput = z.infer<typeof ListInvestorsInputSchema>;
|
|
17
17
|
|
|
18
|
-
export type CreateInvestorInput = z.infer<
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export type CreateInvestorInput = z.infer<
|
|
19
|
+
typeof CreateInvestorProfileInputSchema
|
|
20
|
+
>;
|
|
21
21
|
|
|
22
|
-
export type UpdateInvestorInput = z.infer<
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
export type UpdateInvestorInput = z.infer<
|
|
23
|
+
typeof UpdateInvestorProfileInputSchema
|
|
24
|
+
>;
|
|
25
25
|
|
|
26
26
|
export type GetInvestorParams = z.infer<typeof GetInvestorParamsSchema>;
|
|
27
27
|
|
|
28
28
|
export type GetInvestorQuery = z.infer<typeof GetInvestorQuerySchema>;
|
|
29
29
|
|
|
30
|
-
export type CreateInvestorOutput = z.infer<
|
|
31
|
-
|
|
32
|
-
>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
>;
|
|
36
|
-
export type UpdateInvestorOutput = z.infer<
|
|
37
|
-
typeof UpdateInvestorOutputSchema
|
|
38
|
-
>;
|
|
30
|
+
export type CreateInvestorOutput = z.infer<typeof CreateInvestorOutputSchema>;
|
|
31
|
+
|
|
32
|
+
export type GetInvestorOutput = z.infer<typeof GetInvestorOutputSchema>;
|
|
33
|
+
|
|
34
|
+
export type UpdateInvestorOutput = z.infer<typeof UpdateInvestorOutputSchema>;
|