@zyacreatives/shared 2.1.41 → 2.1.42
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 +2 -12
- package/dist/schemas/brand.js +20 -30
- package/dist/schemas/creative.d.ts +2 -11
- package/dist/schemas/creative.js +14 -19
- package/dist/schemas/job-application.d.ts +2 -2
- package/dist/schemas/notification.d.ts +4 -4
- package/dist/schemas/notification.js +0 -5
- package/dist/schemas/project.d.ts +2 -2
- package/dist/schemas/user.d.ts +17 -21
- package/dist/schemas/user.js +7 -3
- package/package.json +1 -1
- package/src/schemas/brand.ts +159 -168
- package/src/schemas/creative.ts +235 -237
- package/src/schemas/notification.ts +0 -6
- package/src/schemas/user.ts +130 -123
package/dist/schemas/brand.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export declare const MinimalBrandEntitySchema: z.ZodObject<{
|
|
|
4
4
|
userId: z.ZodCUID2;
|
|
5
5
|
brandName: z.ZodString;
|
|
6
6
|
bio: z.ZodOptional<z.ZodString>;
|
|
7
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
7
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
8
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
10
9
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -14,7 +13,6 @@ export declare const BrandEntitySchema: z.ZodObject<{
|
|
|
14
13
|
userId: z.ZodCUID2;
|
|
15
14
|
brandName: z.ZodString;
|
|
16
15
|
bio: z.ZodOptional<z.ZodString>;
|
|
17
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
16
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
17
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
18
|
name: z.ZodString;
|
|
@@ -46,13 +44,11 @@ export declare const ListBrandsInputSchema: z.ZodObject<{
|
|
|
46
44
|
"5+ years": "5+ years";
|
|
47
45
|
}>>>;
|
|
48
46
|
location: z.ZodOptional<z.ZodString>;
|
|
49
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
47
|
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
51
48
|
perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
52
49
|
}, z.core.$strip>;
|
|
53
50
|
export declare const CreateBrandProfileInputSchema: z.ZodObject<{
|
|
54
51
|
brandName: z.ZodString;
|
|
55
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
52
|
disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
57
53
|
}, z.core.$strip>;
|
|
58
54
|
export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
|
|
@@ -74,7 +70,6 @@ export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
|
|
|
74
70
|
year: z.ZodOptional<z.ZodNumber>;
|
|
75
71
|
}, z.core.$strip>>>;
|
|
76
72
|
bio: z.ZodOptional<z.ZodString>;
|
|
77
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
73
|
disciplineSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
74
|
}, z.core.$strip>;
|
|
80
75
|
export declare const GetBrandInputSchema: z.ZodObject<{
|
|
@@ -95,7 +90,6 @@ export declare const CreateBrandOutputSchema: z.ZodObject<{
|
|
|
95
90
|
userId: z.ZodCUID2;
|
|
96
91
|
brandName: z.ZodString;
|
|
97
92
|
bio: z.ZodOptional<z.ZodString>;
|
|
98
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
93
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
100
94
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
101
95
|
name: z.ZodString;
|
|
@@ -122,7 +116,6 @@ export declare const GetBrandOutputSchema: z.ZodObject<{
|
|
|
122
116
|
userId: z.ZodCUID2;
|
|
123
117
|
brandName: z.ZodString;
|
|
124
118
|
bio: z.ZodOptional<z.ZodString>;
|
|
125
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
126
119
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
120
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
128
121
|
name: z.ZodString;
|
|
@@ -149,7 +142,6 @@ export declare const UpdateBrandOutputSchema: z.ZodObject<{
|
|
|
149
142
|
userId: z.ZodCUID2;
|
|
150
143
|
brandName: z.ZodString;
|
|
151
144
|
bio: z.ZodOptional<z.ZodString>;
|
|
152
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
145
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
146
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
155
147
|
name: z.ZodString;
|
|
@@ -176,12 +168,11 @@ export declare const BrandWithUserEntitySchema: z.ZodObject<{
|
|
|
176
168
|
userId: z.ZodCUID2;
|
|
177
169
|
brandName: z.ZodString;
|
|
178
170
|
bio: z.ZodOptional<z.ZodString>;
|
|
179
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
180
171
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
172
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
182
173
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
183
174
|
user: z.ZodObject<{
|
|
184
|
-
email: z.
|
|
175
|
+
email: z.ZodEmail;
|
|
185
176
|
username: z.ZodOptional<z.ZodString>;
|
|
186
177
|
id: z.ZodCUID2;
|
|
187
178
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -205,12 +196,11 @@ export declare const SearchBrandOutputSchema: z.ZodObject<{
|
|
|
205
196
|
userId: z.ZodCUID2;
|
|
206
197
|
brandName: z.ZodString;
|
|
207
198
|
bio: z.ZodOptional<z.ZodString>;
|
|
208
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
209
199
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
200
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
211
201
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
212
202
|
user: z.ZodObject<{
|
|
213
|
-
email: z.
|
|
203
|
+
email: z.ZodEmail;
|
|
214
204
|
username: z.ZodOptional<z.ZodString>;
|
|
215
205
|
id: z.ZodCUID2;
|
|
216
206
|
name: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/brand.js
CHANGED
|
@@ -9,14 +9,9 @@ exports.MinimalBrandEntitySchema = zod_openapi_1.z.object({
|
|
|
9
9
|
id: zod_openapi_1.z.cuid2().openapi({ example: "brd_cksd0v6q0000s9a5y8z7p3x9" }),
|
|
10
10
|
userId: zod_openapi_1.z.cuid2().openapi({ example: "user_owner_123" }),
|
|
11
11
|
brandName: zod_openapi_1.z.string().openapi({ example: "TechInnovate Inc." }),
|
|
12
|
-
bio: zod_openapi_1.z
|
|
13
|
-
.
|
|
14
|
-
|
|
15
|
-
.openapi({ example: "Leading software development firm focused on AI." }),
|
|
16
|
-
tags: zod_openapi_1.z
|
|
17
|
-
.array(zod_openapi_1.z.string())
|
|
18
|
-
.optional()
|
|
19
|
-
.openapi({ example: ["technology", "saas", "startup"] }),
|
|
12
|
+
bio: zod_openapi_1.z.string().optional().openapi({
|
|
13
|
+
example: "Leading software development firm focused on AI.",
|
|
14
|
+
}),
|
|
20
15
|
disciplines: zod_openapi_1.z
|
|
21
16
|
.array(zod_openapi_1.z.string())
|
|
22
17
|
.optional()
|
|
@@ -32,14 +27,9 @@ exports.BrandEntitySchema = zod_openapi_1.z
|
|
|
32
27
|
id: zod_openapi_1.z.cuid2().openapi({ example: "brd_cksd0v6q0000s9a5y8z7p3x9" }),
|
|
33
28
|
userId: zod_openapi_1.z.cuid2().openapi({ example: "user_owner_123" }),
|
|
34
29
|
brandName: zod_openapi_1.z.string().openapi({ example: "TechInnovate Inc." }),
|
|
35
|
-
bio: zod_openapi_1.z
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
.openapi({ example: "Leading software development firm focused on AI." }),
|
|
39
|
-
tags: zod_openapi_1.z
|
|
40
|
-
.array(zod_openapi_1.z.string())
|
|
41
|
-
.optional()
|
|
42
|
-
.openapi({ example: ["technology", "saas", "startup"] }),
|
|
30
|
+
bio: zod_openapi_1.z.string().optional().openapi({
|
|
31
|
+
example: "Leading software development firm focused on AI.",
|
|
32
|
+
}),
|
|
43
33
|
disciplines: zod_openapi_1.z
|
|
44
34
|
.array(zod_openapi_1.z.string())
|
|
45
35
|
.optional()
|
|
@@ -64,7 +54,9 @@ exports.BrandEntitySchema = zod_openapi_1.z
|
|
|
64
54
|
.date()
|
|
65
55
|
.optional()
|
|
66
56
|
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
67
|
-
updatedAt: zod_openapi_1.z.coerce
|
|
57
|
+
updatedAt: zod_openapi_1.z.coerce
|
|
58
|
+
.date()
|
|
59
|
+
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
68
60
|
})
|
|
69
61
|
.openapi("BrandEntitySchema");
|
|
70
62
|
exports.ListBrandsInputSchema = zod_openapi_1.z
|
|
@@ -82,11 +74,13 @@ exports.ListBrandsInputSchema = zod_openapi_1.z
|
|
|
82
74
|
description: "Filter based on the required experience level of partners.",
|
|
83
75
|
}),
|
|
84
76
|
location: zod_openapi_1.z.string().optional().openapi({ example: "San Francisco" }),
|
|
85
|
-
|
|
86
|
-
.
|
|
77
|
+
page: zod_openapi_1.z
|
|
78
|
+
.number()
|
|
79
|
+
.int()
|
|
80
|
+
.min(1)
|
|
81
|
+
.default(1)
|
|
87
82
|
.optional()
|
|
88
|
-
.openapi({ example:
|
|
89
|
-
page: zod_openapi_1.z.number().int().min(1).default(1).optional().openapi({ example: 1 }),
|
|
83
|
+
.openapi({ example: 1 }),
|
|
90
84
|
perPage: zod_openapi_1.z
|
|
91
85
|
.number()
|
|
92
86
|
.int()
|
|
@@ -103,10 +97,6 @@ exports.CreateBrandProfileInputSchema = zod_openapi_1.z
|
|
|
103
97
|
.string()
|
|
104
98
|
.min(1, "Brand name is required")
|
|
105
99
|
.openapi({ example: "Acme Creative Studio" }),
|
|
106
|
-
tags: zod_openapi_1.z
|
|
107
|
-
.array(zod_openapi_1.z.string())
|
|
108
|
-
.optional()
|
|
109
|
-
.openapi({ example: ["branding", "ux", "campaigns"] }),
|
|
110
100
|
disciplineSlugs: zod_openapi_1.z
|
|
111
101
|
.array(zod_openapi_1.z.string())
|
|
112
102
|
.min(1, "At least one discipline is required")
|
|
@@ -118,7 +108,11 @@ exports.CreateBrandProfileInputSchema = zod_openapi_1.z
|
|
|
118
108
|
});
|
|
119
109
|
exports.UpdateBrandProfileInputSchema = zod_openapi_1.z
|
|
120
110
|
.object({
|
|
121
|
-
brandName: zod_openapi_1.z
|
|
111
|
+
brandName: zod_openapi_1.z
|
|
112
|
+
.string()
|
|
113
|
+
.min(1)
|
|
114
|
+
.optional()
|
|
115
|
+
.openapi({ example: "Acme Studio" }),
|
|
122
116
|
links: zod_openapi_1.z
|
|
123
117
|
.object({
|
|
124
118
|
url: zod_openapi_1.z
|
|
@@ -144,10 +138,6 @@ exports.UpdateBrandProfileInputSchema = zod_openapi_1.z
|
|
|
144
138
|
.max(600)
|
|
145
139
|
.optional()
|
|
146
140
|
.openapi({ example: "Updated bio for our creative agency." }),
|
|
147
|
-
tags: zod_openapi_1.z
|
|
148
|
-
.array(zod_openapi_1.z.string())
|
|
149
|
-
.optional()
|
|
150
|
-
.openapi({ example: ["branding", "product", "illustration"] }),
|
|
151
141
|
disciplineSlugs: zod_openapi_1.z
|
|
152
142
|
.array(zod_openapi_1.z.string())
|
|
153
143
|
.min(1, "At least one discipline is required")
|
|
@@ -11,7 +11,6 @@ export declare const MinimalCreativeEntitySchema: z.ZodObject<{
|
|
|
11
11
|
"3-5 years": "3-5 years";
|
|
12
12
|
"5+ years": "5+ years";
|
|
13
13
|
}>>;
|
|
14
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
14
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
15
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
17
16
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -28,7 +27,6 @@ export declare const CreativeEntitySchema: z.ZodObject<{
|
|
|
28
27
|
"3-5 years": "3-5 years";
|
|
29
28
|
"5+ years": "5+ years";
|
|
30
29
|
}>>;
|
|
31
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
30
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
31
|
workExperience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
32
|
companyName: z.ZodString;
|
|
@@ -67,7 +65,6 @@ export declare const ListCreativesInputSchema: z.ZodObject<{
|
|
|
67
65
|
"5+ years": "5+ years";
|
|
68
66
|
}>>>;
|
|
69
67
|
location: z.ZodOptional<z.ZodString>;
|
|
70
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
68
|
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
72
69
|
perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
73
70
|
}, z.core.$strip>;
|
|
@@ -89,7 +86,6 @@ export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
|
|
|
89
86
|
readonly YEAR_3_5: "3-5 years";
|
|
90
87
|
readonly YEAR_5_PLUS: "5+ years";
|
|
91
88
|
}>>;
|
|
92
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
89
|
role: z.ZodOptional<z.ZodString>;
|
|
94
90
|
bio: z.ZodOptional<z.ZodString>;
|
|
95
91
|
location: z.ZodOptional<z.ZodString>;
|
|
@@ -144,7 +140,6 @@ export declare const CreateCreativeOutputSchema: z.ZodObject<{
|
|
|
144
140
|
"3-5 years": "3-5 years";
|
|
145
141
|
"5+ years": "5+ years";
|
|
146
142
|
}>>;
|
|
147
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
148
143
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
149
144
|
workExperience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
145
|
companyName: z.ZodString;
|
|
@@ -185,7 +180,6 @@ export declare const GetCreativeOutputSchema: z.ZodObject<{
|
|
|
185
180
|
"3-5 years": "3-5 years";
|
|
186
181
|
"5+ years": "5+ years";
|
|
187
182
|
}>>;
|
|
188
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
183
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
190
184
|
workExperience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
191
185
|
companyName: z.ZodString;
|
|
@@ -226,7 +220,6 @@ export declare const UpdateCreativeOutputSchema: z.ZodObject<{
|
|
|
226
220
|
"3-5 years": "3-5 years";
|
|
227
221
|
"5+ years": "5+ years";
|
|
228
222
|
}>>;
|
|
229
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
230
223
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
231
224
|
workExperience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
232
225
|
companyName: z.ZodString;
|
|
@@ -267,12 +260,11 @@ export declare const CreativeWithUserEntitySchema: z.ZodObject<{
|
|
|
267
260
|
"3-5 years": "3-5 years";
|
|
268
261
|
"5+ years": "5+ years";
|
|
269
262
|
}>>;
|
|
270
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
271
263
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
272
264
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
273
265
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
274
266
|
user: z.ZodObject<{
|
|
275
|
-
email: z.
|
|
267
|
+
email: z.ZodEmail;
|
|
276
268
|
username: z.ZodOptional<z.ZodString>;
|
|
277
269
|
id: z.ZodCUID2;
|
|
278
270
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -303,12 +295,11 @@ export declare const SearchCreativeOutputSchema: z.ZodObject<{
|
|
|
303
295
|
"3-5 years": "3-5 years";
|
|
304
296
|
"5+ years": "5+ years";
|
|
305
297
|
}>>;
|
|
306
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
307
298
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
308
299
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
309
300
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
310
301
|
user: z.ZodObject<{
|
|
311
|
-
email: z.
|
|
302
|
+
email: z.ZodEmail;
|
|
312
303
|
username: z.ZodOptional<z.ZodString>;
|
|
313
304
|
id: z.ZodCUID2;
|
|
314
305
|
name: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/creative.js
CHANGED
|
@@ -17,10 +17,6 @@ exports.MinimalCreativeEntitySchema = zod_openapi_1.z.object({
|
|
|
17
17
|
.enum(Object.values(constants_1.EXPERIENCE_LEVELS))
|
|
18
18
|
.optional()
|
|
19
19
|
.openapi({ example: constants_1.EXPERIENCE_LEVELS.YEAR_0_1 }),
|
|
20
|
-
tags: zod_openapi_1.z
|
|
21
|
-
.array(zod_openapi_1.z.string())
|
|
22
|
-
.optional()
|
|
23
|
-
.openapi({ example: ["branding", "typography", "UX"] }),
|
|
24
20
|
disciplines: zod_openapi_1.z
|
|
25
21
|
.array(zod_openapi_1.z.string())
|
|
26
22
|
.optional()
|
|
@@ -44,10 +40,6 @@ exports.CreativeEntitySchema = zod_openapi_1.z
|
|
|
44
40
|
.enum(Object.values(constants_1.EXPERIENCE_LEVELS))
|
|
45
41
|
.optional()
|
|
46
42
|
.openapi({ example: constants_1.EXPERIENCE_LEVELS.YEAR_0_1 }),
|
|
47
|
-
tags: zod_openapi_1.z
|
|
48
|
-
.array(zod_openapi_1.z.string())
|
|
49
|
-
.optional()
|
|
50
|
-
.openapi({ example: ["branding", "typography", "UX"] }),
|
|
51
43
|
disciplines: zod_openapi_1.z
|
|
52
44
|
.array(zod_openapi_1.z.string())
|
|
53
45
|
.optional()
|
|
@@ -87,11 +79,13 @@ exports.CreativeEntitySchema = zod_openapi_1.z
|
|
|
87
79
|
.date()
|
|
88
80
|
.optional()
|
|
89
81
|
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
90
|
-
updatedAt: zod_openapi_1.z.coerce
|
|
82
|
+
updatedAt: zod_openapi_1.z.coerce
|
|
83
|
+
.date()
|
|
84
|
+
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
91
85
|
})
|
|
92
86
|
.openapi({
|
|
93
87
|
title: "CreativeEntitySchema",
|
|
94
|
-
description: "Represents a creative profile, including bio, experience level, location, disciplines
|
|
88
|
+
description: "Represents a creative profile, including bio, experience level, location, disciplines and timestamps.",
|
|
95
89
|
});
|
|
96
90
|
exports.ListCreativesInputSchema = zod_openapi_1.z
|
|
97
91
|
.object({
|
|
@@ -104,14 +98,19 @@ exports.ListCreativesInputSchema = zod_openapi_1.z
|
|
|
104
98
|
.array(zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)))
|
|
105
99
|
.optional()
|
|
106
100
|
.openapi({
|
|
107
|
-
example: [
|
|
101
|
+
example: [
|
|
102
|
+
constants_1.EXPERIENCE_LEVELS.YEAR_1_3,
|
|
103
|
+
constants_1.EXPERIENCE_LEVELS.YEAR_5_PLUS,
|
|
104
|
+
],
|
|
108
105
|
}),
|
|
109
106
|
location: zod_openapi_1.z.string().optional().openapi({ example: "Los Angeles" }),
|
|
110
|
-
|
|
111
|
-
.
|
|
107
|
+
page: zod_openapi_1.z
|
|
108
|
+
.number()
|
|
109
|
+
.int()
|
|
110
|
+
.min(1)
|
|
111
|
+
.default(1)
|
|
112
112
|
.optional()
|
|
113
|
-
.openapi({ example:
|
|
114
|
-
page: zod_openapi_1.z.number().int().min(1).default(1).optional().openapi({ example: 1 }),
|
|
113
|
+
.openapi({ example: 1 }),
|
|
115
114
|
perPage: zod_openapi_1.z
|
|
116
115
|
.number()
|
|
117
116
|
.int()
|
|
@@ -162,10 +161,6 @@ exports.UpdateCreativeProfileInputSchema = zod_openapi_1.z
|
|
|
162
161
|
.enum(constants_1.EXPERIENCE_LEVELS)
|
|
163
162
|
.optional()
|
|
164
163
|
.openapi({ example: constants_1.EXPERIENCE_LEVELS.YEAR_3_5 }),
|
|
165
|
-
tags: zod_openapi_1.z
|
|
166
|
-
.array(zod_openapi_1.z.string())
|
|
167
|
-
.optional()
|
|
168
|
-
.openapi({ example: ["react", "design", "product"] }),
|
|
169
164
|
role: zod_openapi_1.z.string().optional().openapi({ example: "Designer" }),
|
|
170
165
|
bio: zod_openapi_1.z
|
|
171
166
|
.string()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
2
|
export declare const MinimalJobApplicationEntitySchema: z.ZodObject<{
|
|
3
3
|
user: z.ZodObject<{
|
|
4
|
-
email: z.
|
|
4
|
+
email: z.ZodEmail;
|
|
5
5
|
username: z.ZodOptional<z.ZodString>;
|
|
6
6
|
id: z.ZodCUID2;
|
|
7
7
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -83,7 +83,7 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
83
83
|
lastName: z.ZodOptional<z.ZodString>;
|
|
84
84
|
jobId: z.ZodCUID2;
|
|
85
85
|
user: z.ZodObject<{
|
|
86
|
-
email: z.
|
|
86
|
+
email: z.ZodEmail;
|
|
87
87
|
username: z.ZodOptional<z.ZodString>;
|
|
88
88
|
id: z.ZodCUID2;
|
|
89
89
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -82,7 +82,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
|
82
82
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
83
83
|
deletedAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
84
84
|
actor: z.ZodObject<{
|
|
85
|
-
email: z.
|
|
85
|
+
email: z.ZodEmail;
|
|
86
86
|
username: z.ZodOptional<z.ZodString>;
|
|
87
87
|
id: z.ZodCUID2;
|
|
88
88
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -95,7 +95,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
|
95
95
|
}>;
|
|
96
96
|
}, z.core.$strip>;
|
|
97
97
|
recipient: z.ZodObject<{
|
|
98
|
-
email: z.
|
|
98
|
+
email: z.ZodEmail;
|
|
99
99
|
username: z.ZodOptional<z.ZodString>;
|
|
100
100
|
id: z.ZodCUID2;
|
|
101
101
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -168,7 +168,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
168
168
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
169
169
|
deletedAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
170
170
|
actor: z.ZodObject<{
|
|
171
|
-
email: z.
|
|
171
|
+
email: z.ZodEmail;
|
|
172
172
|
username: z.ZodOptional<z.ZodString>;
|
|
173
173
|
id: z.ZodCUID2;
|
|
174
174
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -181,7 +181,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
181
181
|
}>;
|
|
182
182
|
}, z.core.$strip>;
|
|
183
183
|
recipient: z.ZodObject<{
|
|
184
|
-
email: z.
|
|
184
|
+
email: z.ZodEmail;
|
|
185
185
|
username: z.ZodOptional<z.ZodString>;
|
|
186
186
|
id: z.ZodCUID2;
|
|
187
187
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -10,18 +10,13 @@ exports.NotificationEntitySchema = zod_openapi_1.z
|
|
|
10
10
|
recipientId: zod_openapi_1.z.cuid2().openapi({ example: "user_recipient_123" }),
|
|
11
11
|
actorId: zod_openapi_1.z.cuid2().openapi({ example: "user_actor_456" }),
|
|
12
12
|
type: zod_openapi_1.z.enum(constants_1.NOTIFICATION_TYPES).openapi({ example: "LIKE" }),
|
|
13
|
-
// 1. ENTITY: The specific thing created (e.g., the Reply)
|
|
14
13
|
entityId: zod_openapi_1.z.cuid2().optional().openapi({ example: "entity_789" }),
|
|
15
|
-
// 2. PARENT: The direct context (e.g., the Comment being replied to)
|
|
16
|
-
// Optional because top-level interactions (like a comment on a project)
|
|
17
|
-
// have no parent other than the root.
|
|
18
14
|
parentId: zod_openapi_1.z
|
|
19
15
|
.cuid2()
|
|
20
16
|
.optional()
|
|
21
17
|
.nullable()
|
|
22
18
|
.openapi({ example: "parent_456" }),
|
|
23
19
|
parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES).optional().nullable(),
|
|
24
|
-
// 3. ROOT: The top-level container (e.g., the Project)
|
|
25
20
|
rootId: zod_openapi_1.z.cuid2().openapi({ example: "root_123" }),
|
|
26
21
|
rootType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES),
|
|
27
22
|
isRead: zod_openapi_1.z.boolean().default(false).openapi({ example: false }),
|
|
@@ -68,7 +68,7 @@ export declare const ProjectDetailsEntitySchema: z.ZodObject<{
|
|
|
68
68
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
69
69
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
70
70
|
user: z.ZodObject<{
|
|
71
|
-
email: z.
|
|
71
|
+
email: z.ZodEmail;
|
|
72
72
|
username: z.ZodOptional<z.ZodString>;
|
|
73
73
|
id: z.ZodCUID2;
|
|
74
74
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -278,7 +278,7 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
|
|
|
278
278
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
279
279
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
280
280
|
user: z.ZodObject<{
|
|
281
|
-
email: z.
|
|
281
|
+
email: z.ZodEmail;
|
|
282
282
|
username: z.ZodOptional<z.ZodString>;
|
|
283
283
|
id: z.ZodCUID2;
|
|
284
284
|
name: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
2
|
export declare const UserEntitySchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodCUID2;
|
|
4
|
-
email: z.
|
|
4
|
+
email: z.ZodEmail;
|
|
5
5
|
emailVerified: z.ZodBoolean;
|
|
6
6
|
name: z.ZodOptional<z.ZodString>;
|
|
7
7
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -33,7 +33,7 @@ export declare const UserEntitySchema: z.ZodObject<{
|
|
|
33
33
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
export declare const MinimalUserSchema: z.ZodObject<{
|
|
36
|
-
email: z.
|
|
36
|
+
email: z.ZodEmail;
|
|
37
37
|
username: z.ZodOptional<z.ZodString>;
|
|
38
38
|
id: z.ZodCUID2;
|
|
39
39
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -52,7 +52,7 @@ export declare const UserStatsEntitySchema: z.ZodObject<{
|
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
54
54
|
id: z.ZodCUID2;
|
|
55
|
-
email: z.
|
|
55
|
+
email: z.ZodEmail;
|
|
56
56
|
emailVerified: z.ZodBoolean;
|
|
57
57
|
name: z.ZodOptional<z.ZodString>;
|
|
58
58
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -92,7 +92,6 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
|
92
92
|
userId: z.ZodCUID2;
|
|
93
93
|
brandName: z.ZodString;
|
|
94
94
|
bio: z.ZodOptional<z.ZodString>;
|
|
95
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
95
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
97
96
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
98
97
|
name: z.ZodString;
|
|
@@ -126,7 +125,6 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
|
126
125
|
"3-5 years": "3-5 years";
|
|
127
126
|
"5+ years": "5+ years";
|
|
128
127
|
}>>;
|
|
129
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
128
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
131
129
|
workExperience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
130
|
companyName: z.ZodString;
|
|
@@ -296,7 +294,7 @@ export declare const GetUserFollowersInputSchema: z.ZodObject<{
|
|
|
296
294
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
297
295
|
}, z.core.$strip>;
|
|
298
296
|
export declare const UserWithFollowingEntitySchema: z.ZodObject<{
|
|
299
|
-
email: z.
|
|
297
|
+
email: z.ZodEmail;
|
|
300
298
|
username: z.ZodOptional<z.ZodString>;
|
|
301
299
|
id: z.ZodCUID2;
|
|
302
300
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -308,7 +306,7 @@ export declare const UserWithFollowingEntitySchema: z.ZodObject<{
|
|
|
308
306
|
ADMIN: "ADMIN";
|
|
309
307
|
}>;
|
|
310
308
|
following: z.ZodArray<z.ZodObject<{
|
|
311
|
-
email: z.
|
|
309
|
+
email: z.ZodEmail;
|
|
312
310
|
username: z.ZodOptional<z.ZodString>;
|
|
313
311
|
id: z.ZodCUID2;
|
|
314
312
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -322,7 +320,7 @@ export declare const UserWithFollowingEntitySchema: z.ZodObject<{
|
|
|
322
320
|
}, z.core.$strip>>;
|
|
323
321
|
}, z.core.$strip>;
|
|
324
322
|
export declare const UserWithFollowersEntitySchema: z.ZodObject<{
|
|
325
|
-
email: z.
|
|
323
|
+
email: z.ZodEmail;
|
|
326
324
|
username: z.ZodOptional<z.ZodString>;
|
|
327
325
|
id: z.ZodCUID2;
|
|
328
326
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -334,7 +332,7 @@ export declare const UserWithFollowersEntitySchema: z.ZodObject<{
|
|
|
334
332
|
ADMIN: "ADMIN";
|
|
335
333
|
}>;
|
|
336
334
|
followers: z.ZodArray<z.ZodObject<{
|
|
337
|
-
email: z.
|
|
335
|
+
email: z.ZodEmail;
|
|
338
336
|
username: z.ZodOptional<z.ZodString>;
|
|
339
337
|
id: z.ZodCUID2;
|
|
340
338
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -406,7 +404,7 @@ export declare const UserWithPostsEntitySchema: z.ZodObject<{
|
|
|
406
404
|
}, z.core.$strip>;
|
|
407
405
|
export declare const GetUserFollowingOutputSchema: z.ZodObject<{
|
|
408
406
|
results: z.ZodObject<{
|
|
409
|
-
email: z.
|
|
407
|
+
email: z.ZodEmail;
|
|
410
408
|
username: z.ZodOptional<z.ZodString>;
|
|
411
409
|
id: z.ZodCUID2;
|
|
412
410
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -418,7 +416,7 @@ export declare const GetUserFollowingOutputSchema: z.ZodObject<{
|
|
|
418
416
|
ADMIN: "ADMIN";
|
|
419
417
|
}>;
|
|
420
418
|
following: z.ZodArray<z.ZodObject<{
|
|
421
|
-
email: z.
|
|
419
|
+
email: z.ZodEmail;
|
|
422
420
|
username: z.ZodOptional<z.ZodString>;
|
|
423
421
|
id: z.ZodCUID2;
|
|
424
422
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -434,7 +432,7 @@ export declare const GetUserFollowingOutputSchema: z.ZodObject<{
|
|
|
434
432
|
}, z.core.$strip>;
|
|
435
433
|
export declare const GetUserFollowersOutputSchema: z.ZodObject<{
|
|
436
434
|
results: z.ZodObject<{
|
|
437
|
-
email: z.
|
|
435
|
+
email: z.ZodEmail;
|
|
438
436
|
username: z.ZodOptional<z.ZodString>;
|
|
439
437
|
id: z.ZodCUID2;
|
|
440
438
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -446,7 +444,7 @@ export declare const GetUserFollowersOutputSchema: z.ZodObject<{
|
|
|
446
444
|
ADMIN: "ADMIN";
|
|
447
445
|
}>;
|
|
448
446
|
followers: z.ZodArray<z.ZodObject<{
|
|
449
|
-
email: z.
|
|
447
|
+
email: z.ZodEmail;
|
|
450
448
|
username: z.ZodOptional<z.ZodString>;
|
|
451
449
|
id: z.ZodCUID2;
|
|
452
450
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -462,7 +460,7 @@ export declare const GetUserFollowersOutputSchema: z.ZodObject<{
|
|
|
462
460
|
}, z.core.$strip>;
|
|
463
461
|
export declare const GetAuthenticatedUserOutputSchema: z.ZodObject<{
|
|
464
462
|
id: z.ZodCUID2;
|
|
465
|
-
email: z.
|
|
463
|
+
email: z.ZodEmail;
|
|
466
464
|
emailVerified: z.ZodBoolean;
|
|
467
465
|
name: z.ZodOptional<z.ZodString>;
|
|
468
466
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -495,7 +493,7 @@ export declare const GetAuthenticatedUserOutputSchema: z.ZodObject<{
|
|
|
495
493
|
}, z.core.$strip>;
|
|
496
494
|
export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
|
|
497
495
|
id: z.ZodCUID2;
|
|
498
|
-
email: z.
|
|
496
|
+
email: z.ZodEmail;
|
|
499
497
|
emailVerified: z.ZodBoolean;
|
|
500
498
|
name: z.ZodOptional<z.ZodString>;
|
|
501
499
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -535,7 +533,6 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
|
|
|
535
533
|
userId: z.ZodCUID2;
|
|
536
534
|
brandName: z.ZodString;
|
|
537
535
|
bio: z.ZodOptional<z.ZodString>;
|
|
538
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
539
536
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
540
537
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
541
538
|
name: z.ZodString;
|
|
@@ -569,7 +566,6 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
|
|
|
569
566
|
"3-5 years": "3-5 years";
|
|
570
567
|
"5+ years": "5+ years";
|
|
571
568
|
}>>;
|
|
572
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
573
569
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
574
570
|
workExperience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
575
571
|
companyName: z.ZodString;
|
|
@@ -705,7 +701,7 @@ export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.Zod
|
|
|
705
701
|
}, z.core.$strip>>;
|
|
706
702
|
}, z.core.$strip>;
|
|
707
703
|
export declare const GetAuthenticatedUserWithUserFollowingOutputSchema: z.ZodObject<{
|
|
708
|
-
email: z.
|
|
704
|
+
email: z.ZodEmail;
|
|
709
705
|
username: z.ZodOptional<z.ZodString>;
|
|
710
706
|
id: z.ZodCUID2;
|
|
711
707
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -717,7 +713,7 @@ export declare const GetAuthenticatedUserWithUserFollowingOutputSchema: z.ZodObj
|
|
|
717
713
|
ADMIN: "ADMIN";
|
|
718
714
|
}>;
|
|
719
715
|
following: z.ZodArray<z.ZodObject<{
|
|
720
|
-
email: z.
|
|
716
|
+
email: z.ZodEmail;
|
|
721
717
|
username: z.ZodOptional<z.ZodString>;
|
|
722
718
|
id: z.ZodCUID2;
|
|
723
719
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -731,7 +727,7 @@ export declare const GetAuthenticatedUserWithUserFollowingOutputSchema: z.ZodObj
|
|
|
731
727
|
}, z.core.$strip>>;
|
|
732
728
|
}, z.core.$strip>;
|
|
733
729
|
export declare const GetAuthenticatedUserWithUserFollowersOutputSchema: z.ZodObject<{
|
|
734
|
-
email: z.
|
|
730
|
+
email: z.ZodEmail;
|
|
735
731
|
username: z.ZodOptional<z.ZodString>;
|
|
736
732
|
id: z.ZodCUID2;
|
|
737
733
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -743,7 +739,7 @@ export declare const GetAuthenticatedUserWithUserFollowersOutputSchema: z.ZodObj
|
|
|
743
739
|
ADMIN: "ADMIN";
|
|
744
740
|
}>;
|
|
745
741
|
followers: z.ZodArray<z.ZodObject<{
|
|
746
|
-
email: z.
|
|
742
|
+
email: z.ZodEmail;
|
|
747
743
|
username: z.ZodOptional<z.ZodString>;
|
|
748
744
|
id: z.ZodCUID2;
|
|
749
745
|
name: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -13,7 +13,7 @@ const post_1 = require("./post");
|
|
|
13
13
|
exports.UserEntitySchema = zod_openapi_1.z
|
|
14
14
|
.object({
|
|
15
15
|
id: zod_openapi_1.z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
|
|
16
|
-
email: zod_openapi_1.z.
|
|
16
|
+
email: zod_openapi_1.z.email().openapi({ example: "user@example.com" }),
|
|
17
17
|
emailVerified: zod_openapi_1.z.boolean().openapi({ example: true }),
|
|
18
18
|
name: zod_openapi_1.z.string().optional().openapi({ example: "John Doe" }),
|
|
19
19
|
image: zod_openapi_1.z
|
|
@@ -35,8 +35,12 @@ exports.UserEntitySchema = zod_openapi_1.z
|
|
|
35
35
|
.openapi({
|
|
36
36
|
example: "DONE",
|
|
37
37
|
}),
|
|
38
|
-
createdAt: zod_openapi_1.z.coerce
|
|
39
|
-
|
|
38
|
+
createdAt: zod_openapi_1.z.coerce
|
|
39
|
+
.date()
|
|
40
|
+
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
41
|
+
updatedAt: zod_openapi_1.z.coerce
|
|
42
|
+
.date()
|
|
43
|
+
.openapi({ example: "2025-10-13T09:00:00.000Z" }),
|
|
40
44
|
})
|
|
41
45
|
.openapi("BaseUserEntity");
|
|
42
46
|
exports.MinimalUserSchema = exports.UserEntitySchema.pick({
|