@zyacreatives/shared 1.4.4 → 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.
@@ -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.ZodDefault<z.ZodOptional<z.ZodString>>;
53
- websiteURL: z.ZodOptional<z.ZodString>;
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.ZodString>;
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";
@@ -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().default("").openapi({
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.string().url("Invalid url").optional().openapi({
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.string().url("Invalid url").optional().openapi({
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
@@ -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
- userId: string;
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>;
@@ -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
- userId: string;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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().default("").openapi({
72
+ bio: z.string().max(210).optional().openapi({
73
73
  example: "Angel investor backing early-stage African startups.",
74
74
  }),
75
- websiteURL: z.string().url("Invalid url").optional().openapi({
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.string().url("Invalid url").optional().openapi({
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;
@@ -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>;
@@ -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<typeof CreateInvestorProfileInputSchema> & {
19
- userId: string;
20
- };
18
+ export type CreateInvestorInput = z.infer<
19
+ typeof CreateInvestorProfileInputSchema
20
+ >;
21
21
 
22
- export type UpdateInvestorInput = z.infer<typeof UpdateInvestorProfileInputSchema> & {
23
- userId: string;
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
- typeof CreateInvestorOutputSchema
32
- >;
33
- export type GetInvestorOutput = z.infer<
34
- typeof GetInvestorOutputSchema
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>;