@zyacreatives/shared 1.2.5 → 1.2.7
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/brand.d.ts +31 -11
- package/dist/schemas/brand.js +5 -7
- package/dist/schemas/creative.d.ts +28 -21
- package/dist/schemas/creative.js +2 -5
- package/dist/schemas/investor.d.ts +31 -54
- package/dist/schemas/investor.js +2 -8
- package/dist/types/brand.d.ts +1 -2
- package/dist/types/creative.d.ts +1 -2
- package/dist/types/investor.d.ts +1 -2
- package/package.json +1 -1
- package/src/schemas/brand.ts +5 -7
- package/src/schemas/creative.ts +1 -5
- package/src/schemas/investor.ts +1 -8
- package/src/types/brand.ts +2 -3
- package/src/types/creative.ts +0 -5
- package/src/types/investor.ts +0 -5
package/dist/schemas/brand.d.ts
CHANGED
|
@@ -5,17 +5,6 @@ export declare const BrandEntitySchema: z.ZodObject<{
|
|
|
5
5
|
brandName: z.ZodString;
|
|
6
6
|
bio: z.ZodOptional<z.ZodString>;
|
|
7
7
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
9
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export declare const BrandWithUserEntitySchema: z.ZodObject<{
|
|
12
|
-
id: z.ZodCUID2;
|
|
13
|
-
userId: z.ZodCUID2;
|
|
14
|
-
brandName: z.ZodString;
|
|
15
|
-
bio: z.ZodOptional<z.ZodString>;
|
|
16
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
18
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
19
8
|
user: z.ZodObject<{
|
|
20
9
|
id: z.ZodCUID2;
|
|
21
10
|
username: z.ZodOptional<z.ZodString>;
|
|
@@ -30,6 +19,8 @@ export declare const BrandWithUserEntitySchema: z.ZodObject<{
|
|
|
30
19
|
}>;
|
|
31
20
|
}, z.core.$strip>;
|
|
32
21
|
disciplines: z.ZodArray<z.ZodString>;
|
|
22
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
23
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
33
24
|
}, z.core.$strip>;
|
|
34
25
|
export declare const ListBrandsInputSchema: z.ZodObject<{
|
|
35
26
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -71,6 +62,20 @@ export declare const CreateBrandEndpointResponseSchema: z.ZodObject<{
|
|
|
71
62
|
brandName: z.ZodString;
|
|
72
63
|
bio: z.ZodOptional<z.ZodString>;
|
|
73
64
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
+
user: z.ZodObject<{
|
|
66
|
+
id: z.ZodCUID2;
|
|
67
|
+
username: z.ZodOptional<z.ZodString>;
|
|
68
|
+
email: z.ZodString;
|
|
69
|
+
name: z.ZodOptional<z.ZodString>;
|
|
70
|
+
image: z.ZodOptional<z.ZodString>;
|
|
71
|
+
role: z.ZodEnum<{
|
|
72
|
+
CREATIVE: "CREATIVE";
|
|
73
|
+
BRAND: "BRAND";
|
|
74
|
+
INVESTOR: "INVESTOR";
|
|
75
|
+
ADMIN: "ADMIN";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
disciplines: z.ZodArray<z.ZodString>;
|
|
74
79
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
75
80
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
76
81
|
}, z.core.$strip>;
|
|
@@ -80,6 +85,7 @@ export declare const GetBrandEndpointResponseSchema: z.ZodObject<{
|
|
|
80
85
|
brandName: z.ZodString;
|
|
81
86
|
bio: z.ZodOptional<z.ZodString>;
|
|
82
87
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
88
|
+
disciplines: z.ZodArray<z.ZodString>;
|
|
83
89
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
84
90
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
85
91
|
user: z.ZodObject<{
|
|
@@ -102,6 +108,20 @@ export declare const UpdateBrandEndpointResponseSchema: z.ZodObject<{
|
|
|
102
108
|
brandName: z.ZodString;
|
|
103
109
|
bio: z.ZodOptional<z.ZodString>;
|
|
104
110
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
|
+
user: z.ZodObject<{
|
|
112
|
+
id: z.ZodCUID2;
|
|
113
|
+
username: z.ZodOptional<z.ZodString>;
|
|
114
|
+
email: z.ZodString;
|
|
115
|
+
name: z.ZodOptional<z.ZodString>;
|
|
116
|
+
image: z.ZodOptional<z.ZodString>;
|
|
117
|
+
role: z.ZodEnum<{
|
|
118
|
+
CREATIVE: "CREATIVE";
|
|
119
|
+
BRAND: "BRAND";
|
|
120
|
+
INVESTOR: "INVESTOR";
|
|
121
|
+
ADMIN: "ADMIN";
|
|
122
|
+
}>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
disciplines: z.ZodArray<z.ZodString>;
|
|
105
125
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
106
126
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
107
127
|
}, z.core.$strip>;
|
package/dist/schemas/brand.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateBrandEndpointResponseSchema = exports.GetBrandEndpointResponseSchema = exports.CreateBrandEndpointResponseSchema = exports.GetBrandQuerySchema = exports.GetBrandParamsSchema = exports.UpdateBrandProfileSchema = exports.CreateBrandProfileSchema = exports.ListBrandsInputSchema = exports.
|
|
3
|
+
exports.UpdateBrandEndpointResponseSchema = exports.GetBrandEndpointResponseSchema = exports.CreateBrandEndpointResponseSchema = exports.GetBrandQuerySchema = exports.GetBrandParamsSchema = exports.UpdateBrandProfileSchema = exports.CreateBrandProfileSchema = exports.ListBrandsInputSchema = exports.BrandEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const common_1 = require("./common");
|
|
6
6
|
const user_1 = require("./user");
|
|
@@ -18,6 +18,10 @@ exports.BrandEntitySchema = zod_openapi_1.z
|
|
|
18
18
|
.array(zod_openapi_1.z.string())
|
|
19
19
|
.optional()
|
|
20
20
|
.openapi({ example: ["technology", "saas", "startup"] }),
|
|
21
|
+
user: user_1.MinimalUserSchema,
|
|
22
|
+
disciplines: zod_openapi_1.z
|
|
23
|
+
.array(zod_openapi_1.z.string())
|
|
24
|
+
.openapi({ example: ["Marketing", "Product Development"] }),
|
|
21
25
|
createdAt: zod_openapi_1.z.coerce
|
|
22
26
|
.date()
|
|
23
27
|
.optional()
|
|
@@ -28,12 +32,6 @@ exports.BrandEntitySchema = zod_openapi_1.z
|
|
|
28
32
|
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
29
33
|
})
|
|
30
34
|
.openapi("BrandEntity");
|
|
31
|
-
exports.BrandWithUserEntitySchema = exports.BrandEntitySchema.extend({
|
|
32
|
-
user: user_1.MinimalUserSchema,
|
|
33
|
-
disciplines: zod_openapi_1.z
|
|
34
|
-
.array(zod_openapi_1.z.string())
|
|
35
|
-
.openapi({ example: ["Marketing", "Product Development"] }),
|
|
36
|
-
}).openapi("BrandWithUserEntity");
|
|
37
35
|
exports.ListBrandsInputSchema = zod_openapi_1.z
|
|
38
36
|
.object({
|
|
39
37
|
query: zod_openapi_1.z.string().optional().openapi({ example: "AI software brand" }),
|
|
@@ -12,25 +12,6 @@ export declare const CreativeEntitySchema: z.ZodObject<{
|
|
|
12
12
|
}>>;
|
|
13
13
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
14
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
-
user: z.ZodOptional<z.ZodAny>;
|
|
16
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
17
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export declare const CreativeWithUserEntitySchema: z.ZodObject<{
|
|
20
|
-
id: z.ZodCUID2;
|
|
21
|
-
userId: z.ZodCUID2;
|
|
22
|
-
bio: z.ZodOptional<z.ZodString>;
|
|
23
|
-
location: z.ZodOptional<z.ZodString>;
|
|
24
|
-
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
25
|
-
"0-1 year": "0-1 year";
|
|
26
|
-
"1-3 years": "1-3 years";
|
|
27
|
-
"3-5 years": "3-5 years";
|
|
28
|
-
"5+ years": "5+ years";
|
|
29
|
-
}>>;
|
|
30
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
-
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
33
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
34
15
|
user: z.ZodObject<{
|
|
35
16
|
id: z.ZodCUID2;
|
|
36
17
|
username: z.ZodOptional<z.ZodString>;
|
|
@@ -44,6 +25,8 @@ export declare const CreativeWithUserEntitySchema: z.ZodObject<{
|
|
|
44
25
|
ADMIN: "ADMIN";
|
|
45
26
|
}>;
|
|
46
27
|
}, z.core.$strip>;
|
|
28
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
29
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
47
30
|
}, z.core.$strip>;
|
|
48
31
|
export declare const ListCreativesInputSchema: z.ZodObject<{
|
|
49
32
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -104,7 +87,19 @@ export declare const CreateCreativeEndpointResponseSchema: z.ZodObject<{
|
|
|
104
87
|
}>>;
|
|
105
88
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
89
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
|
-
user: z.
|
|
90
|
+
user: z.ZodObject<{
|
|
91
|
+
id: z.ZodCUID2;
|
|
92
|
+
username: z.ZodOptional<z.ZodString>;
|
|
93
|
+
email: z.ZodString;
|
|
94
|
+
name: z.ZodOptional<z.ZodString>;
|
|
95
|
+
image: z.ZodOptional<z.ZodString>;
|
|
96
|
+
role: z.ZodEnum<{
|
|
97
|
+
CREATIVE: "CREATIVE";
|
|
98
|
+
BRAND: "BRAND";
|
|
99
|
+
INVESTOR: "INVESTOR";
|
|
100
|
+
ADMIN: "ADMIN";
|
|
101
|
+
}>;
|
|
102
|
+
}, z.core.$strip>;
|
|
108
103
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
109
104
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
110
105
|
}, z.core.$strip>;
|
|
@@ -150,7 +145,19 @@ export declare const UpdateCreativeEndpointResponseSchema: z.ZodObject<{
|
|
|
150
145
|
}>>;
|
|
151
146
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
152
147
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
|
-
user: z.
|
|
148
|
+
user: z.ZodObject<{
|
|
149
|
+
id: z.ZodCUID2;
|
|
150
|
+
username: z.ZodOptional<z.ZodString>;
|
|
151
|
+
email: z.ZodString;
|
|
152
|
+
name: z.ZodOptional<z.ZodString>;
|
|
153
|
+
image: z.ZodOptional<z.ZodString>;
|
|
154
|
+
role: z.ZodEnum<{
|
|
155
|
+
CREATIVE: "CREATIVE";
|
|
156
|
+
BRAND: "BRAND";
|
|
157
|
+
INVESTOR: "INVESTOR";
|
|
158
|
+
ADMIN: "ADMIN";
|
|
159
|
+
}>;
|
|
160
|
+
}, z.core.$strip>;
|
|
154
161
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
155
162
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
156
163
|
}, z.core.$strip>;
|
package/dist/schemas/creative.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateCreativeEndpointResponseSchema = exports.GetCreativeEndpointResponseSchema = exports.CreateCreativeEndpointResponseSchema = exports.GetCreativeQuerySchema = exports.GetCreativeParamsSchema = exports.UpdateCreativeProfileSchema = exports.CreateCreativeProfileSchema = exports.ListCreativesInputSchema = exports.
|
|
3
|
+
exports.UpdateCreativeEndpointResponseSchema = exports.GetCreativeEndpointResponseSchema = exports.CreateCreativeEndpointResponseSchema = exports.GetCreativeQuerySchema = exports.GetCreativeParamsSchema = exports.UpdateCreativeProfileSchema = exports.CreateCreativeProfileSchema = exports.ListCreativesInputSchema = exports.CreativeEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const common_1 = require("./common");
|
|
@@ -25,7 +25,7 @@ exports.CreativeEntitySchema = zod_openapi_1.z
|
|
|
25
25
|
.array(zod_openapi_1.z.string())
|
|
26
26
|
.optional()
|
|
27
27
|
.openapi({ example: ["Design", "Art Direction"] }),
|
|
28
|
-
user:
|
|
28
|
+
user: user_1.MinimalUserSchema,
|
|
29
29
|
createdAt: zod_openapi_1.z.coerce
|
|
30
30
|
.date()
|
|
31
31
|
.optional()
|
|
@@ -33,9 +33,6 @@ exports.CreativeEntitySchema = zod_openapi_1.z
|
|
|
33
33
|
updatedAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
34
34
|
})
|
|
35
35
|
.openapi("CreativeEntitySchema");
|
|
36
|
-
exports.CreativeWithUserEntitySchema = exports.CreativeEntitySchema.extend({
|
|
37
|
-
user: user_1.MinimalUserSchema,
|
|
38
|
-
}).openapi("CreativeWithUserEntity");
|
|
39
36
|
exports.ListCreativesInputSchema = zod_openapi_1.z
|
|
40
37
|
.object({
|
|
41
38
|
query: zod_openapi_1.z.string().optional().openapi({ example: "logo designer" }),
|
|
@@ -43,58 +43,9 @@ export declare const InvestorEntitySchema: z.ZodObject<{
|
|
|
43
43
|
Government: "Government";
|
|
44
44
|
"Social Impact Investor": "Social Impact Investor";
|
|
45
45
|
}>>;
|
|
46
|
-
websiteURL: z.ZodOptional<z.
|
|
46
|
+
websiteURL: z.ZodOptional<z.ZodURL>;
|
|
47
47
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
48
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
49
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
export declare const InvestorWithUserEntitySchema: z.ZodObject<{
|
|
52
|
-
id: z.ZodCUID2;
|
|
53
|
-
userId: z.ZodCUID2;
|
|
54
|
-
bio: z.ZodOptional<z.ZodString>;
|
|
55
|
-
location: z.ZodOptional<z.ZodString>;
|
|
56
|
-
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
57
|
-
"0-1 year": "0-1 year";
|
|
58
|
-
"1-3 years": "1-3 years";
|
|
59
|
-
"3-5 years": "3-5 years";
|
|
60
|
-
"5+ years": "5+ years";
|
|
61
|
-
}>>;
|
|
62
|
-
geographicFocus: z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
Africa: "Africa";
|
|
64
|
-
Asia: "Asia";
|
|
65
|
-
Europe: "Europe";
|
|
66
|
-
"North America": "North America";
|
|
67
|
-
"South America": "South America";
|
|
68
|
-
"Middle East": "Middle East";
|
|
69
|
-
Oceania: "Oceania";
|
|
70
|
-
"United Kingdom (UK)": "United Kingdom (UK)";
|
|
71
|
-
"United States (US)": "United States (US)";
|
|
72
|
-
Global: "Global";
|
|
73
|
-
Other: "Other";
|
|
74
|
-
}>>;
|
|
75
|
-
investmentSize: z.ZodOptional<z.ZodEnum<{
|
|
76
|
-
"Under 5k USD": "Under 5k USD";
|
|
77
|
-
"5k - 25k USD": "5k - 25k USD";
|
|
78
|
-
"25k - 100k USD": "25k - 100k USD";
|
|
79
|
-
"100k - 500k USD": "100k - 500k USD";
|
|
80
|
-
"500k - 1M USD": "500k - 1M USD";
|
|
81
|
-
"1M+ USD": "1M+ USD";
|
|
82
|
-
}>>;
|
|
83
|
-
investorType: z.ZodOptional<z.ZodEnum<{
|
|
84
|
-
"Angel Investor": "Angel Investor";
|
|
85
|
-
"Venture Capitalist": "Venture Capitalist";
|
|
86
|
-
"Private Equity Firm": "Private Equity Firm";
|
|
87
|
-
"Venture Debt Provider": "Venture Debt Provider";
|
|
88
|
-
Bank: "Bank";
|
|
89
|
-
"Convertible Note Investor": "Convertible Note Investor";
|
|
90
|
-
"Revenue Based Financing Investor": "Revenue Based Financing Investor";
|
|
91
|
-
"Corporate Venture Capitalist": "Corporate Venture Capitalist";
|
|
92
|
-
Government: "Government";
|
|
93
|
-
"Social Impact Investor": "Social Impact Investor";
|
|
94
|
-
}>>;
|
|
95
|
-
websiteURL: z.ZodOptional<z.ZodString>;
|
|
96
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
97
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
98
49
|
user: z.ZodObject<{
|
|
99
50
|
id: z.ZodCUID2;
|
|
100
51
|
username: z.ZodOptional<z.ZodString>;
|
|
@@ -108,7 +59,7 @@ export declare const InvestorWithUserEntitySchema: z.ZodObject<{
|
|
|
108
59
|
ADMIN: "ADMIN";
|
|
109
60
|
}>;
|
|
110
61
|
}, z.core.$strip>;
|
|
111
|
-
|
|
62
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
112
63
|
}, z.core.$strip>;
|
|
113
64
|
export declare const CreateInvestorProfileSchema: z.ZodObject<{
|
|
114
65
|
bio: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -233,9 +184,22 @@ export declare const CreateInvestorEndpointResponseSchema: z.ZodObject<{
|
|
|
233
184
|
Government: "Government";
|
|
234
185
|
"Social Impact Investor": "Social Impact Investor";
|
|
235
186
|
}>>;
|
|
236
|
-
websiteURL: z.ZodOptional<z.
|
|
187
|
+
websiteURL: z.ZodOptional<z.ZodURL>;
|
|
237
188
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
238
189
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
190
|
+
user: z.ZodObject<{
|
|
191
|
+
id: z.ZodCUID2;
|
|
192
|
+
username: z.ZodOptional<z.ZodString>;
|
|
193
|
+
email: z.ZodString;
|
|
194
|
+
name: z.ZodOptional<z.ZodString>;
|
|
195
|
+
image: z.ZodOptional<z.ZodString>;
|
|
196
|
+
role: z.ZodEnum<{
|
|
197
|
+
CREATIVE: "CREATIVE";
|
|
198
|
+
BRAND: "BRAND";
|
|
199
|
+
INVESTOR: "INVESTOR";
|
|
200
|
+
ADMIN: "ADMIN";
|
|
201
|
+
}>;
|
|
202
|
+
}, z.core.$strip>;
|
|
239
203
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
240
204
|
}, z.core.$strip>;
|
|
241
205
|
export declare const GetInvestorEndpointResponseSchema: z.ZodObject<{
|
|
@@ -282,7 +246,7 @@ export declare const GetInvestorEndpointResponseSchema: z.ZodObject<{
|
|
|
282
246
|
Government: "Government";
|
|
283
247
|
"Social Impact Investor": "Social Impact Investor";
|
|
284
248
|
}>>;
|
|
285
|
-
websiteURL: z.ZodOptional<z.
|
|
249
|
+
websiteURL: z.ZodOptional<z.ZodURL>;
|
|
286
250
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
287
251
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
288
252
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -344,8 +308,21 @@ export declare const UpdateInvestorEndpointResponseSchema: z.ZodObject<{
|
|
|
344
308
|
Government: "Government";
|
|
345
309
|
"Social Impact Investor": "Social Impact Investor";
|
|
346
310
|
}>>;
|
|
347
|
-
websiteURL: z.ZodOptional<z.
|
|
311
|
+
websiteURL: z.ZodOptional<z.ZodURL>;
|
|
348
312
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
349
313
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
314
|
+
user: z.ZodObject<{
|
|
315
|
+
id: z.ZodCUID2;
|
|
316
|
+
username: z.ZodOptional<z.ZodString>;
|
|
317
|
+
email: z.ZodString;
|
|
318
|
+
name: z.ZodOptional<z.ZodString>;
|
|
319
|
+
image: z.ZodOptional<z.ZodString>;
|
|
320
|
+
role: z.ZodEnum<{
|
|
321
|
+
CREATIVE: "CREATIVE";
|
|
322
|
+
BRAND: "BRAND";
|
|
323
|
+
INVESTOR: "INVESTOR";
|
|
324
|
+
ADMIN: "ADMIN";
|
|
325
|
+
}>;
|
|
326
|
+
}, z.core.$strip>;
|
|
350
327
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
351
328
|
}, z.core.$strip>;
|
package/dist/schemas/investor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateInvestorEndpointResponseSchema = exports.GetInvestorEndpointResponseSchema = exports.CreateInvestorEndpointResponseSchema = exports.GetInvestorQuerySchema = exports.GetInvestorParamsSchema = exports.ListInvestorsInputSchema = exports.UpdateInvestorProfileSchema = exports.CreateInvestorProfileSchema = exports.
|
|
3
|
+
exports.UpdateInvestorEndpointResponseSchema = exports.GetInvestorEndpointResponseSchema = exports.CreateInvestorEndpointResponseSchema = exports.GetInvestorQuerySchema = exports.GetInvestorParamsSchema = exports.ListInvestorsInputSchema = exports.UpdateInvestorProfileSchema = exports.CreateInvestorProfileSchema = exports.InvestorEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const user_1 = require("./user");
|
|
@@ -31,7 +31,6 @@ exports.InvestorEntitySchema = zod_openapi_1.z
|
|
|
31
31
|
.optional()
|
|
32
32
|
.openapi({ example: "VC" }),
|
|
33
33
|
websiteURL: zod_openapi_1.z
|
|
34
|
-
.string()
|
|
35
34
|
.url()
|
|
36
35
|
.optional()
|
|
37
36
|
.openapi({ example: "https://investorpartners.com" }),
|
|
@@ -43,18 +42,13 @@ exports.InvestorEntitySchema = zod_openapi_1.z
|
|
|
43
42
|
.date()
|
|
44
43
|
.optional()
|
|
45
44
|
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
45
|
+
user: user_1.MinimalUserSchema,
|
|
46
46
|
updatedAt: zod_openapi_1.z.coerce
|
|
47
47
|
.date()
|
|
48
48
|
.optional()
|
|
49
49
|
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
50
50
|
})
|
|
51
51
|
.openapi("InvestorEntity");
|
|
52
|
-
exports.InvestorWithUserEntitySchema = exports.InvestorEntitySchema.extend({
|
|
53
|
-
user: user_1.MinimalUserSchema,
|
|
54
|
-
disciplines: zod_openapi_1.z
|
|
55
|
-
.array(zod_openapi_1.z.string())
|
|
56
|
-
.openapi({ example: ["Product Design", "AI Strategy"] }),
|
|
57
|
-
}).openapi("InvestorWithUserEntity");
|
|
58
52
|
exports.CreateInvestorProfileSchema = zod_openapi_1.z
|
|
59
53
|
.object({
|
|
60
54
|
bio: zod_openapi_1.z.string().max(210).optional().default("").openapi({
|
package/dist/types/brand.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { BrandEntitySchema,
|
|
2
|
+
import { BrandEntitySchema, CreateBrandEndpointResponseSchema, CreateBrandProfileSchema, GetBrandEndpointResponseSchema, GetBrandParamsSchema, GetBrandQuerySchema, ListBrandsInputSchema, UpdateBrandEndpointResponseSchema, UpdateBrandProfileSchema } from "../schemas";
|
|
3
3
|
export type BrandEntity = z.infer<typeof BrandEntitySchema>;
|
|
4
|
-
export type BrandWithUserEntity = z.infer<typeof BrandWithUserEntitySchema>;
|
|
5
4
|
export type ListBrandsInput = z.infer<typeof ListBrandsInputSchema>;
|
|
6
5
|
export type CreateBrandDto = z.infer<typeof CreateBrandProfileSchema> & {
|
|
7
6
|
userId: string;
|
package/dist/types/creative.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { CreateCreativeEndpointResponseSchema, CreateCreativeProfileSchema, CreativeEntitySchema,
|
|
2
|
+
import { CreateCreativeEndpointResponseSchema, CreateCreativeProfileSchema, CreativeEntitySchema, GetCreativeEndpointResponseSchema, GetCreativeParamsSchema, GetCreativeQuerySchema, ListCreativesInputSchema, UpdateCreativeEndpointResponseSchema, UpdateCreativeProfileSchema } from "../schemas";
|
|
3
3
|
export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
|
|
4
|
-
export type CreativeWithUserEntity = z.infer<typeof CreativeWithUserEntitySchema>;
|
|
5
4
|
export type ListCreativesDto = z.infer<typeof ListCreativesInputSchema>;
|
|
6
5
|
export type CreateCreativeDto = z.infer<typeof CreateCreativeProfileSchema> & {
|
|
7
6
|
userId: string;
|
package/dist/types/investor.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import { CreateInvestorEndpointResponseSchema, CreateInvestorProfileSchema, GetInvestorEndpointResponseSchema, GetInvestorParamsSchema, GetInvestorQuerySchema, InvestorEntitySchema,
|
|
2
|
+
import { CreateInvestorEndpointResponseSchema, CreateInvestorProfileSchema, GetInvestorEndpointResponseSchema, GetInvestorParamsSchema, GetInvestorQuerySchema, InvestorEntitySchema, ListInvestorsInputSchema, UpdateInvestorEndpointResponseSchema, UpdateInvestorProfileSchema } from "../schemas/investor";
|
|
3
3
|
export type InvestorEntity = z.infer<typeof InvestorEntitySchema>;
|
|
4
|
-
export type InvestorWithUserEntity = z.infer<typeof InvestorWithUserEntitySchema>;
|
|
5
4
|
export type ListInvestorsInput = z.infer<typeof ListInvestorsInputSchema>;
|
|
6
5
|
export type CreateInvestorDto = z.infer<typeof CreateInvestorProfileSchema> & {
|
|
7
6
|
userId: string;
|
package/package.json
CHANGED
package/src/schemas/brand.ts
CHANGED
|
@@ -16,6 +16,11 @@ export const BrandEntitySchema = z
|
|
|
16
16
|
.array(z.string())
|
|
17
17
|
.optional()
|
|
18
18
|
.openapi({ example: ["technology", "saas", "startup"] }),
|
|
19
|
+
|
|
20
|
+
user: MinimalUserSchema,
|
|
21
|
+
disciplines: z
|
|
22
|
+
.array(z.string())
|
|
23
|
+
.openapi({ example: ["Marketing", "Product Development"] }),
|
|
19
24
|
createdAt: z.coerce
|
|
20
25
|
.date()
|
|
21
26
|
.optional()
|
|
@@ -27,13 +32,6 @@ export const BrandEntitySchema = z
|
|
|
27
32
|
})
|
|
28
33
|
.openapi("BrandEntity");
|
|
29
34
|
|
|
30
|
-
export const BrandWithUserEntitySchema = BrandEntitySchema.extend({
|
|
31
|
-
user: MinimalUserSchema,
|
|
32
|
-
disciplines: z
|
|
33
|
-
.array(z.string())
|
|
34
|
-
.openapi({ example: ["Marketing", "Product Development"] }),
|
|
35
|
-
}).openapi("BrandWithUserEntity");
|
|
36
|
-
|
|
37
35
|
export const ListBrandsInputSchema = z
|
|
38
36
|
.object({
|
|
39
37
|
query: z.string().optional().openapi({ example: "AI software brand" }),
|
package/src/schemas/creative.ts
CHANGED
|
@@ -28,7 +28,7 @@ export const CreativeEntitySchema = z
|
|
|
28
28
|
.array(z.string())
|
|
29
29
|
.optional()
|
|
30
30
|
.openapi({ example: ["Design", "Art Direction"] }),
|
|
31
|
-
user:
|
|
31
|
+
user: MinimalUserSchema,
|
|
32
32
|
createdAt: z.coerce
|
|
33
33
|
.date()
|
|
34
34
|
.optional()
|
|
@@ -37,10 +37,6 @@ export const CreativeEntitySchema = z
|
|
|
37
37
|
})
|
|
38
38
|
.openapi("CreativeEntitySchema");
|
|
39
39
|
|
|
40
|
-
export const CreativeWithUserEntitySchema = CreativeEntitySchema.extend({
|
|
41
|
-
user: MinimalUserSchema,
|
|
42
|
-
}).openapi("CreativeWithUserEntity");
|
|
43
|
-
|
|
44
40
|
export const ListCreativesInputSchema = z
|
|
45
41
|
.object({
|
|
46
42
|
query: z.string().optional().openapi({ example: "logo designer" }),
|
package/src/schemas/investor.ts
CHANGED
|
@@ -50,7 +50,6 @@ export const InvestorEntitySchema = z
|
|
|
50
50
|
.optional()
|
|
51
51
|
.openapi({ example: "VC" }),
|
|
52
52
|
websiteURL: z
|
|
53
|
-
.string()
|
|
54
53
|
.url()
|
|
55
54
|
.optional()
|
|
56
55
|
.openapi({ example: "https://investorpartners.com" }),
|
|
@@ -62,6 +61,7 @@ export const InvestorEntitySchema = z
|
|
|
62
61
|
.date()
|
|
63
62
|
.optional()
|
|
64
63
|
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
64
|
+
user: MinimalUserSchema,
|
|
65
65
|
updatedAt: z.coerce
|
|
66
66
|
.date()
|
|
67
67
|
.optional()
|
|
@@ -69,13 +69,6 @@ export const InvestorEntitySchema = z
|
|
|
69
69
|
})
|
|
70
70
|
.openapi("InvestorEntity");
|
|
71
71
|
|
|
72
|
-
export const InvestorWithUserEntitySchema = InvestorEntitySchema.extend({
|
|
73
|
-
user: MinimalUserSchema,
|
|
74
|
-
disciplines: z
|
|
75
|
-
.array(z.string())
|
|
76
|
-
.openapi({ example: ["Product Design", "AI Strategy"] }),
|
|
77
|
-
}).openapi("InvestorWithUserEntity");
|
|
78
|
-
|
|
79
72
|
export const CreateInvestorProfileSchema = z
|
|
80
73
|
.object({
|
|
81
74
|
bio: z.string().max(210).optional().default("").openapi({
|
package/src/types/brand.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
2
|
import {
|
|
3
3
|
BrandEntitySchema,
|
|
4
|
-
BrandWithUserEntitySchema,
|
|
5
4
|
CreateBrandEndpointResponseSchema,
|
|
6
5
|
CreateBrandProfileSchema,
|
|
7
6
|
GetBrandEndpointResponseSchema,
|
|
@@ -14,8 +13,6 @@ import {
|
|
|
14
13
|
|
|
15
14
|
export type BrandEntity = z.infer<typeof BrandEntitySchema>;
|
|
16
15
|
|
|
17
|
-
export type BrandWithUserEntity = z.infer<typeof BrandWithUserEntitySchema>;
|
|
18
|
-
|
|
19
16
|
export type ListBrandsInput = z.infer<typeof ListBrandsInputSchema>;
|
|
20
17
|
|
|
21
18
|
export type CreateBrandDto = z.infer<typeof CreateBrandProfileSchema> & {
|
|
@@ -33,9 +30,11 @@ export type GetBrandQuery = z.infer<typeof GetBrandQuerySchema>;
|
|
|
33
30
|
export type CreateBrandEndpointResponse = z.infer<
|
|
34
31
|
typeof CreateBrandEndpointResponseSchema
|
|
35
32
|
>;
|
|
33
|
+
|
|
36
34
|
export type GetBrandEndpointResponse = z.infer<
|
|
37
35
|
typeof GetBrandEndpointResponseSchema
|
|
38
36
|
>;
|
|
37
|
+
|
|
39
38
|
export type UpdateBrandEndpointResponse = z.infer<
|
|
40
39
|
typeof UpdateBrandEndpointResponseSchema
|
|
41
40
|
>;
|
package/src/types/creative.ts
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
CreateCreativeEndpointResponseSchema,
|
|
4
4
|
CreateCreativeProfileSchema,
|
|
5
5
|
CreativeEntitySchema,
|
|
6
|
-
CreativeWithUserEntitySchema,
|
|
7
6
|
GetCreativeEndpointResponseSchema,
|
|
8
7
|
GetCreativeParamsSchema,
|
|
9
8
|
GetCreativeQuerySchema,
|
|
@@ -14,10 +13,6 @@ import {
|
|
|
14
13
|
|
|
15
14
|
export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
|
|
16
15
|
|
|
17
|
-
export type CreativeWithUserEntity = z.infer<
|
|
18
|
-
typeof CreativeWithUserEntitySchema
|
|
19
|
-
>
|
|
20
|
-
|
|
21
16
|
export type ListCreativesDto = z.infer<typeof ListCreativesInputSchema>;
|
|
22
17
|
|
|
23
18
|
export type CreateCreativeDto = z.infer<typeof CreateCreativeProfileSchema> & {
|
package/src/types/investor.ts
CHANGED
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
GetInvestorParamsSchema,
|
|
7
7
|
GetInvestorQuerySchema,
|
|
8
8
|
InvestorEntitySchema,
|
|
9
|
-
InvestorWithUserEntitySchema,
|
|
10
9
|
ListInvestorsInputSchema,
|
|
11
10
|
UpdateInvestorEndpointResponseSchema,
|
|
12
11
|
UpdateInvestorProfileSchema,
|
|
@@ -14,10 +13,6 @@ import {
|
|
|
14
13
|
|
|
15
14
|
export type InvestorEntity = z.infer<typeof InvestorEntitySchema>;
|
|
16
15
|
|
|
17
|
-
export type InvestorWithUserEntity = z.infer<
|
|
18
|
-
typeof InvestorWithUserEntitySchema
|
|
19
|
-
>;
|
|
20
|
-
|
|
21
16
|
export type ListInvestorsInput = z.infer<typeof ListInvestorsInputSchema>;
|
|
22
17
|
|
|
23
18
|
export type CreateInvestorDto = z.infer<typeof CreateInvestorProfileSchema> & {
|