@zyacreatives/shared 1.4.3 → 1.4.5
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/investor.d.ts +3 -3
- package/dist/schemas/investor.js +3 -3
- package/dist/types/brand.d.ts +2 -6
- package/dist/types/creative.d.ts +2 -6
- package/dist/types/investor.d.ts +2 -6
- package/package.json +1 -1
- package/src/schemas/investor.ts +4 -4
- package/src/types/brand.ts +2 -7
- package/src/types/creative.ts +9 -15
- package/src/types/investor.ts +11 -15
|
@@ -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/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/creative.d.ts
CHANGED
|
@@ -2,12 +2,8 @@ import { z } from "@hono/zod-openapi";
|
|
|
2
2
|
import { CreateCreativeOutputSchema, CreateCreativeProfileInputSchema, CreativeEntitySchema, GetCreativeOutputSchema, GetCreativeParamsSchema, GetCreativeQuerySchema, ListCreativesInputSchema, UpdateCreativeOutputSchema, UpdateCreativeProfileInputSchema } from "../schemas";
|
|
3
3
|
export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
|
|
4
4
|
export type ListCreativesInput = z.infer<typeof ListCreativesInputSchema>;
|
|
5
|
-
export type CreateCreativeInput = z.infer<typeof CreateCreativeProfileInputSchema
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export type UpdateCreativeInput = z.infer<typeof UpdateCreativeProfileInputSchema> & {
|
|
9
|
-
userId: string;
|
|
10
|
-
};
|
|
5
|
+
export type CreateCreativeInput = z.infer<typeof CreateCreativeProfileInputSchema>;
|
|
6
|
+
export type UpdateCreativeInput = z.infer<typeof UpdateCreativeProfileInputSchema>;
|
|
11
7
|
export type GetCreativeParams = z.infer<typeof GetCreativeParamsSchema>;
|
|
12
8
|
export type GetCreativeQuery = z.infer<typeof GetCreativeQuerySchema>;
|
|
13
9
|
export type CreateCreativeOutput = z.infer<typeof CreateCreativeOutputSchema>;
|
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/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/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/creative.ts
CHANGED
|
@@ -15,25 +15,19 @@ export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
|
|
|
15
15
|
|
|
16
16
|
export type ListCreativesInput = z.infer<typeof ListCreativesInputSchema>;
|
|
17
17
|
|
|
18
|
-
export type CreateCreativeInput = z.infer<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export type UpdateCreativeInput = z.infer<
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
export type CreateCreativeInput = z.infer<
|
|
19
|
+
typeof CreateCreativeProfileInputSchema
|
|
20
|
+
>;
|
|
21
|
+
export type UpdateCreativeInput = z.infer<
|
|
22
|
+
typeof UpdateCreativeProfileInputSchema
|
|
23
|
+
>;
|
|
24
24
|
|
|
25
25
|
export type GetCreativeParams = z.infer<typeof GetCreativeParamsSchema>;
|
|
26
26
|
|
|
27
27
|
export type GetCreativeQuery = z.infer<typeof GetCreativeQuerySchema>;
|
|
28
28
|
|
|
29
|
-
export type CreateCreativeOutput = z.infer<
|
|
30
|
-
typeof CreateCreativeOutputSchema
|
|
31
|
-
>;
|
|
29
|
+
export type CreateCreativeOutput = z.infer<typeof CreateCreativeOutputSchema>;
|
|
32
30
|
|
|
33
|
-
export type GetCreativeOutput = z.infer<
|
|
34
|
-
typeof GetCreativeOutputSchema
|
|
35
|
-
>;
|
|
31
|
+
export type GetCreativeOutput = z.infer<typeof GetCreativeOutputSchema>;
|
|
36
32
|
|
|
37
|
-
export type UpdateCreativeOutput = z.infer<
|
|
38
|
-
typeof UpdateCreativeOutputSchema
|
|
39
|
-
>;
|
|
33
|
+
export type UpdateCreativeOutput = z.infer<typeof UpdateCreativeOutputSchema>;
|
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>;
|