@zyacreatives/shared 2.0.68 → 2.0.69

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.
@@ -18,7 +18,7 @@ export declare const BrandEntitySchema: z.ZodObject<{
18
18
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
19
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
20
  name: z.ZodString;
21
- url: z.ZodString;
21
+ url: z.ZodURL;
22
22
  type: z.ZodDefault<z.ZodEnum<{
23
23
  readonly INSTAGRAM: "Instagram";
24
24
  readonly LINKEDIN: "LinkedIn";
@@ -30,8 +30,7 @@ export declare const BrandEntitySchema: z.ZodObject<{
30
30
  }, z.core.$strip>>>;
31
31
  achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
32
  title: z.ZodString;
33
- description: z.ZodString;
34
- link: z.ZodOptional<z.ZodString>;
33
+ link: z.ZodOptional<z.ZodURL>;
35
34
  year: z.ZodOptional<z.ZodNumber>;
36
35
  }, z.core.$strip>>>;
37
36
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -60,7 +59,7 @@ export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
60
59
  brandName: z.ZodOptional<z.ZodString>;
61
60
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
61
  name: z.ZodString;
63
- url: z.ZodString;
62
+ url: z.ZodURL;
64
63
  type: z.ZodDefault<z.ZodEnum<{
65
64
  readonly INSTAGRAM: "Instagram";
66
65
  readonly LINKEDIN: "LinkedIn";
@@ -72,8 +71,7 @@ export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
72
71
  }, z.core.$strip>>>;
73
72
  achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
73
  title: z.ZodString;
75
- description: z.ZodString;
76
- link: z.ZodOptional<z.ZodString>;
74
+ link: z.ZodOptional<z.ZodURL>;
77
75
  year: z.ZodOptional<z.ZodNumber>;
78
76
  }, z.core.$strip>>>;
79
77
  bio: z.ZodOptional<z.ZodString>;
@@ -102,7 +100,7 @@ export declare const CreateBrandOutputSchema: z.ZodObject<{
102
100
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
103
101
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
102
  name: z.ZodString;
105
- url: z.ZodString;
103
+ url: z.ZodURL;
106
104
  type: z.ZodDefault<z.ZodEnum<{
107
105
  readonly INSTAGRAM: "Instagram";
108
106
  readonly LINKEDIN: "LinkedIn";
@@ -114,8 +112,7 @@ export declare const CreateBrandOutputSchema: z.ZodObject<{
114
112
  }, z.core.$strip>>>;
115
113
  achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
116
114
  title: z.ZodString;
117
- description: z.ZodString;
118
- link: z.ZodOptional<z.ZodString>;
115
+ link: z.ZodOptional<z.ZodURL>;
119
116
  year: z.ZodOptional<z.ZodNumber>;
120
117
  }, z.core.$strip>>>;
121
118
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -130,7 +127,7 @@ export declare const GetBrandOutputSchema: z.ZodObject<{
130
127
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
131
128
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
132
129
  name: z.ZodString;
133
- url: z.ZodString;
130
+ url: z.ZodURL;
134
131
  type: z.ZodDefault<z.ZodEnum<{
135
132
  readonly INSTAGRAM: "Instagram";
136
133
  readonly LINKEDIN: "LinkedIn";
@@ -142,8 +139,7 @@ export declare const GetBrandOutputSchema: z.ZodObject<{
142
139
  }, z.core.$strip>>>;
143
140
  achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
141
  title: z.ZodString;
145
- description: z.ZodString;
146
- link: z.ZodOptional<z.ZodString>;
142
+ link: z.ZodOptional<z.ZodURL>;
147
143
  year: z.ZodOptional<z.ZodNumber>;
148
144
  }, z.core.$strip>>>;
149
145
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -158,7 +154,7 @@ export declare const UpdateBrandOutputSchema: z.ZodObject<{
158
154
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
159
155
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
156
  name: z.ZodString;
161
- url: z.ZodString;
157
+ url: z.ZodURL;
162
158
  type: z.ZodDefault<z.ZodEnum<{
163
159
  readonly INSTAGRAM: "Instagram";
164
160
  readonly LINKEDIN: "LinkedIn";
@@ -170,8 +166,7 @@ export declare const UpdateBrandOutputSchema: z.ZodObject<{
170
166
  }, z.core.$strip>>>;
171
167
  achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
172
168
  title: z.ZodString;
173
- description: z.ZodString;
174
- link: z.ZodOptional<z.ZodString>;
169
+ link: z.ZodOptional<z.ZodURL>;
175
170
  year: z.ZodOptional<z.ZodNumber>;
176
171
  }, z.core.$strip>>>;
177
172
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -44,17 +44,22 @@ exports.BrandEntitySchema = zod_openapi_1.z
44
44
  .array(zod_openapi_1.z.string())
45
45
  .optional()
46
46
  .openapi({ example: ["Marketing", "Product Development"] }),
47
- links: zod_openapi_1.z.object({
47
+ links: zod_openapi_1.z
48
+ .object({
48
49
  name: zod_openapi_1.z.string(),
49
- url: zod_openapi_1.z.string(),
50
+ url: zod_openapi_1.z.url(),
50
51
  type: zod_openapi_1.z.enum(constants_1.LINK_TYPES).default(constants_1.LINK_TYPES.GENERIC_WEBSITE),
51
- }).array().optional(),
52
- achievements: zod_openapi_1.z.object({
52
+ })
53
+ .array()
54
+ .optional(),
55
+ achievements: zod_openapi_1.z
56
+ .object({
53
57
  title: zod_openapi_1.z.string(),
54
- description: zod_openapi_1.z.string(),
55
- link: zod_openapi_1.z.string().optional(),
58
+ link: zod_openapi_1.z.url().optional(),
56
59
  year: zod_openapi_1.z.number().int().optional(),
57
- }).array().optional(),
60
+ })
61
+ .array()
62
+ .optional(),
58
63
  createdAt: zod_openapi_1.z.coerce
59
64
  .date()
60
65
  .optional()
@@ -114,17 +119,22 @@ exports.CreateBrandProfileInputSchema = zod_openapi_1.z
114
119
  exports.UpdateBrandProfileInputSchema = zod_openapi_1.z
115
120
  .object({
116
121
  brandName: zod_openapi_1.z.string().min(1).optional().openapi({ example: "Acme Studio" }),
117
- links: zod_openapi_1.z.object({
122
+ links: zod_openapi_1.z
123
+ .object({
118
124
  name: zod_openapi_1.z.string(),
119
- url: zod_openapi_1.z.string(),
125
+ url: zod_openapi_1.z.url(),
120
126
  type: zod_openapi_1.z.enum(constants_1.LINK_TYPES).default(constants_1.LINK_TYPES.GENERIC_WEBSITE),
121
- }).array().optional(),
122
- achievements: zod_openapi_1.z.object({
127
+ })
128
+ .array()
129
+ .optional(),
130
+ achievements: zod_openapi_1.z
131
+ .object({
123
132
  title: zod_openapi_1.z.string(),
124
- description: zod_openapi_1.z.string(),
125
- link: zod_openapi_1.z.string().optional(),
133
+ link: zod_openapi_1.z.url().optional(),
126
134
  year: zod_openapi_1.z.number().int().optional(),
127
- }).array().optional(),
135
+ })
136
+ .array()
137
+ .optional(),
128
138
  bio: zod_openapi_1.z
129
139
  .string()
130
140
  .max(210)
@@ -40,7 +40,7 @@ export declare const CreativeEntitySchema: z.ZodObject<{
40
40
  }, z.core.$strip>>>;
41
41
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
42
  name: z.ZodString;
43
- url: z.ZodString;
43
+ url: z.ZodURL;
44
44
  type: z.ZodDefault<z.ZodEnum<{
45
45
  readonly INSTAGRAM: "Instagram";
46
46
  readonly LINKEDIN: "LinkedIn";
@@ -106,7 +106,7 @@ export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
106
106
  }, z.core.$strip>>>;
107
107
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
108
  name: z.ZodString;
109
- url: z.ZodString;
109
+ url: z.ZodURL;
110
110
  type: z.ZodDefault<z.ZodEnum<{
111
111
  readonly INSTAGRAM: "Instagram";
112
112
  readonly LINKEDIN: "LinkedIn";
@@ -160,7 +160,7 @@ export declare const CreateCreativeOutputSchema: z.ZodObject<{
160
160
  }, z.core.$strip>>>;
161
161
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
162
162
  name: z.ZodString;
163
- url: z.ZodString;
163
+ url: z.ZodURL;
164
164
  type: z.ZodDefault<z.ZodEnum<{
165
165
  readonly INSTAGRAM: "Instagram";
166
166
  readonly LINKEDIN: "LinkedIn";
@@ -203,7 +203,7 @@ export declare const GetCreativeOutputSchema: z.ZodObject<{
203
203
  }, z.core.$strip>>>;
204
204
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
205
205
  name: z.ZodString;
206
- url: z.ZodString;
206
+ url: z.ZodURL;
207
207
  type: z.ZodDefault<z.ZodEnum<{
208
208
  readonly INSTAGRAM: "Instagram";
209
209
  readonly LINKEDIN: "LinkedIn";
@@ -246,7 +246,7 @@ export declare const UpdateCreativeOutputSchema: z.ZodObject<{
246
246
  }, z.core.$strip>>>;
247
247
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
248
248
  name: z.ZodString;
249
- url: z.ZodString;
249
+ url: z.ZodURL;
250
250
  type: z.ZodDefault<z.ZodEnum<{
251
251
  readonly INSTAGRAM: "Instagram";
252
252
  readonly LINKEDIN: "LinkedIn";
@@ -52,25 +52,34 @@ exports.CreativeEntitySchema = zod_openapi_1.z
52
52
  .array(zod_openapi_1.z.string())
53
53
  .optional()
54
54
  .openapi({ example: ["Design", "Art Direction"] }),
55
- workExperience: zod_openapi_1.z.object({
55
+ workExperience: zod_openapi_1.z
56
+ .object({
56
57
  companyName: zod_openapi_1.z.string(),
57
58
  position: zod_openapi_1.z.string(),
58
59
  startDate: zod_openapi_1.z.coerce.date().optional(),
59
60
  endDate: zod_openapi_1.z.coerce.date().optional(),
60
61
  currentlyWorking: zod_openapi_1.z.boolean().optional(),
61
62
  description: zod_openapi_1.z.string().optional(),
62
- }).array().optional(),
63
- links: zod_openapi_1.z.object({
63
+ })
64
+ .array()
65
+ .optional(),
66
+ links: zod_openapi_1.z
67
+ .object({
64
68
  name: zod_openapi_1.z.string(),
65
- url: zod_openapi_1.z.string(),
69
+ url: zod_openapi_1.z.url(),
66
70
  type: zod_openapi_1.z.enum(constants_1.LINK_TYPES).default(constants_1.LINK_TYPES.GENERIC_WEBSITE),
67
- }).array().optional(),
68
- achievements: zod_openapi_1.z.object({
71
+ })
72
+ .array()
73
+ .optional(),
74
+ achievements: zod_openapi_1.z
75
+ .object({
69
76
  title: zod_openapi_1.z.string(),
70
77
  description: zod_openapi_1.z.string(),
71
78
  link: zod_openapi_1.z.string().optional(),
72
79
  year: zod_openapi_1.z.number().int().optional(),
73
- }).array().optional(),
80
+ })
81
+ .array()
82
+ .optional(),
74
83
  createdAt: zod_openapi_1.z.coerce
75
84
  .date()
76
85
  .optional()
@@ -170,25 +179,34 @@ exports.UpdateCreativeProfileInputSchema = zod_openapi_1.z
170
179
  .min(1, "At least one discipline is required")
171
180
  .optional()
172
181
  .openapi({ example: ["frontend", "ui-ux"] }),
173
- workExperience: zod_openapi_1.z.object({
182
+ workExperience: zod_openapi_1.z
183
+ .object({
174
184
  companyName: zod_openapi_1.z.string(),
175
185
  position: zod_openapi_1.z.string(),
176
186
  startDate: zod_openapi_1.z.coerce.date().optional(),
177
187
  endDate: zod_openapi_1.z.coerce.date().optional(),
178
188
  currentlyWorking: zod_openapi_1.z.boolean().optional(),
179
189
  description: zod_openapi_1.z.string().optional(),
180
- }).array().optional(),
181
- links: zod_openapi_1.z.object({
190
+ })
191
+ .array()
192
+ .optional(),
193
+ links: zod_openapi_1.z
194
+ .object({
182
195
  name: zod_openapi_1.z.string(),
183
- url: zod_openapi_1.z.string(),
196
+ url: zod_openapi_1.z.url(),
184
197
  type: zod_openapi_1.z.enum(constants_1.LINK_TYPES).default(constants_1.LINK_TYPES.GENERIC_WEBSITE),
185
- }).array().optional(),
186
- achievements: zod_openapi_1.z.object({
198
+ })
199
+ .array()
200
+ .optional(),
201
+ achievements: zod_openapi_1.z
202
+ .object({
187
203
  title: zod_openapi_1.z.string(),
188
204
  description: zod_openapi_1.z.string(),
189
205
  link: zod_openapi_1.z.string().optional(),
190
206
  year: zod_openapi_1.z.number().int().optional(),
191
- }).array().optional(),
207
+ })
208
+ .array()
209
+ .optional(),
192
210
  })
193
211
  .openapi({
194
212
  title: "update creative profile",
@@ -104,7 +104,7 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
104
104
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
105
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
106
106
  name: z.ZodString;
107
- url: z.ZodString;
107
+ url: z.ZodURL;
108
108
  type: z.ZodDefault<z.ZodEnum<{
109
109
  readonly INSTAGRAM: "Instagram";
110
110
  readonly LINKEDIN: "LinkedIn";
@@ -116,8 +116,7 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
116
116
  }, z.core.$strip>>>;
117
117
  achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
118
  title: z.ZodString;
119
- description: z.ZodString;
120
- link: z.ZodOptional<z.ZodString>;
119
+ link: z.ZodOptional<z.ZodURL>;
121
120
  year: z.ZodOptional<z.ZodNumber>;
122
121
  }, z.core.$strip>>>;
123
122
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -147,7 +146,7 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
147
146
  }, z.core.$strip>>>;
148
147
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
149
148
  name: z.ZodString;
150
- url: z.ZodString;
149
+ url: z.ZodURL;
151
150
  type: z.ZodDefault<z.ZodEnum<{
152
151
  readonly INSTAGRAM: "Instagram";
153
152
  readonly LINKEDIN: "LinkedIn";
@@ -493,7 +492,7 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
493
492
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
494
493
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
495
494
  name: z.ZodString;
496
- url: z.ZodString;
495
+ url: z.ZodURL;
497
496
  type: z.ZodDefault<z.ZodEnum<{
498
497
  readonly INSTAGRAM: "Instagram";
499
498
  readonly LINKEDIN: "LinkedIn";
@@ -505,8 +504,7 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
505
504
  }, z.core.$strip>>>;
506
505
  achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
507
506
  title: z.ZodString;
508
- description: z.ZodString;
509
- link: z.ZodOptional<z.ZodString>;
507
+ link: z.ZodOptional<z.ZodURL>;
510
508
  year: z.ZodOptional<z.ZodNumber>;
511
509
  }, z.core.$strip>>>;
512
510
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -536,7 +534,7 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
536
534
  }, z.core.$strip>>>;
537
535
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
538
536
  name: z.ZodString;
539
- url: z.ZodString;
537
+ url: z.ZodURL;
540
538
  type: z.ZodDefault<z.ZodEnum<{
541
539
  readonly INSTAGRAM: "Instagram";
542
540
  readonly LINKEDIN: "LinkedIn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.68",
3
+ "version": "2.0.69",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -3,7 +3,6 @@ import { ProfileIdentifierSchema } from "./common";
3
3
  import { EXPERIENCE_LEVELS, ExperienceLevel, LINK_TYPES } from "../constants";
4
4
  import { MinimalUserSchema } from "./user";
5
5
 
6
-
7
6
  export const MinimalBrandEntitySchema = z.object({
8
7
  id: z.cuid2().openapi({ example: "brd_cksd0v6q0000s9a5y8z7p3x9" }),
9
8
  userId: z.cuid2().openapi({ example: "user_owner_123" }),
@@ -25,8 +24,7 @@ export const MinimalBrandEntitySchema = z.object({
25
24
  .optional()
26
25
  .openapi({ example: "2025-10-13T09:00:00.000Z" }),
27
26
  updatedAt: z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
28
-
29
- })
27
+ });
30
28
 
31
29
  export const BrandEntitySchema = z
32
30
  .object({
@@ -46,17 +44,22 @@ export const BrandEntitySchema = z
46
44
  .optional()
47
45
  .openapi({ example: ["Marketing", "Product Development"] }),
48
46
 
49
- links: z.object({
50
- name: z.string(),
51
- url: z.string(),
52
- type: z.enum(LINK_TYPES).default(LINK_TYPES.GENERIC_WEBSITE),
53
- }).array().optional(),
54
- achievements: z.object({
55
- title: z.string(),
56
- description: z.string(),
57
- link: z.string().optional(),
58
- year: z.number().int().optional(),
59
- }).array().optional(),
47
+ links: z
48
+ .object({
49
+ name: z.string(),
50
+ url: z.url(),
51
+ type: z.enum(LINK_TYPES).default(LINK_TYPES.GENERIC_WEBSITE),
52
+ })
53
+ .array()
54
+ .optional(),
55
+ achievements: z
56
+ .object({
57
+ title: z.string(),
58
+ link: z.url().optional(),
59
+ year: z.number().int().optional(),
60
+ })
61
+ .array()
62
+ .optional(),
60
63
  createdAt: z.coerce
61
64
  .date()
62
65
  .optional()
@@ -127,17 +130,22 @@ export const CreateBrandProfileInputSchema = z
127
130
  export const UpdateBrandProfileInputSchema = z
128
131
  .object({
129
132
  brandName: z.string().min(1).optional().openapi({ example: "Acme Studio" }),
130
- links: z.object({
131
- name: z.string(),
132
- url: z.string(),
133
- type: z.enum(LINK_TYPES).default(LINK_TYPES.GENERIC_WEBSITE),
134
- }).array().optional(),
135
- achievements: z.object({
136
- title: z.string(),
137
- description: z.string(),
138
- link: z.string().optional(),
139
- year: z.number().int().optional(),
140
- }).array().optional(),
133
+ links: z
134
+ .object({
135
+ name: z.string(),
136
+ url: z.url(),
137
+ type: z.enum(LINK_TYPES).default(LINK_TYPES.GENERIC_WEBSITE),
138
+ })
139
+ .array()
140
+ .optional(),
141
+ achievements: z
142
+ .object({
143
+ title: z.string(),
144
+ link: z.url().optional(),
145
+ year: z.number().int().optional(),
146
+ })
147
+ .array()
148
+ .optional(),
141
149
  bio: z
142
150
  .string()
143
151
  .max(210)
@@ -191,4 +199,4 @@ export const SearchBrandInputSchema = z.object({
191
199
  export const SearchBrandOutputSchema = z.object({
192
200
  brands: z.array(BrandWithUserEntitySchema),
193
201
  nextCursor: z.string().optional(),
194
- })
202
+ });
@@ -34,7 +34,7 @@ export const MinimalCreativeEntitySchema = z.object({
34
34
  .optional()
35
35
  .openapi({ example: "2025-10-13T09:00:00.000Z" }),
36
36
  updatedAt: z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
37
- })
37
+ });
38
38
 
39
39
  export const CreativeEntitySchema = z
40
40
  .object({
@@ -64,25 +64,34 @@ export const CreativeEntitySchema = z
64
64
  .array(z.string())
65
65
  .optional()
66
66
  .openapi({ example: ["Design", "Art Direction"] }),
67
- workExperience: z.object({
68
- companyName: z.string(),
69
- position: z.string(),
70
- startDate: z.coerce.date().optional(),
71
- endDate: z.coerce.date().optional(),
72
- currentlyWorking: z.boolean().optional(),
73
- description: z.string().optional(),
74
- }).array().optional(),
75
- links: z.object({
76
- name: z.string(),
77
- url: z.string(),
78
- type: z.enum(LINK_TYPES).default(LINK_TYPES.GENERIC_WEBSITE),
79
- }).array().optional(),
80
- achievements: z.object({
81
- title: z.string(),
82
- description: z.string(),
83
- link: z.string().optional(),
84
- year: z.number().int().optional(),
85
- }).array().optional(),
67
+ workExperience: z
68
+ .object({
69
+ companyName: z.string(),
70
+ position: z.string(),
71
+ startDate: z.coerce.date().optional(),
72
+ endDate: z.coerce.date().optional(),
73
+ currentlyWorking: z.boolean().optional(),
74
+ description: z.string().optional(),
75
+ })
76
+ .array()
77
+ .optional(),
78
+ links: z
79
+ .object({
80
+ name: z.string(),
81
+ url: z.url(),
82
+ type: z.enum(LINK_TYPES).default(LINK_TYPES.GENERIC_WEBSITE),
83
+ })
84
+ .array()
85
+ .optional(),
86
+ achievements: z
87
+ .object({
88
+ title: z.string(),
89
+ description: z.string(),
90
+ link: z.string().optional(),
91
+ year: z.number().int().optional(),
92
+ })
93
+ .array()
94
+ .optional(),
86
95
  createdAt: z.coerce
87
96
  .date()
88
97
  .optional()
@@ -203,25 +212,34 @@ export const UpdateCreativeProfileInputSchema = z
203
212
  .min(1, "At least one discipline is required")
204
213
  .optional()
205
214
  .openapi({ example: ["frontend", "ui-ux"] }),
206
- workExperience: z.object({
207
- companyName: z.string(),
208
- position: z.string(),
209
- startDate: z.coerce.date().optional(),
210
- endDate: z.coerce.date().optional(),
211
- currentlyWorking: z.boolean().optional(),
212
- description: z.string().optional(),
213
- }).array().optional(),
214
- links: z.object({
215
- name: z.string(),
216
- url: z.string(),
217
- type: z.enum(LINK_TYPES).default(LINK_TYPES.GENERIC_WEBSITE),
218
- }).array().optional(),
219
- achievements: z.object({
220
- title: z.string(),
221
- description: z.string(),
222
- link: z.string().optional(),
223
- year: z.number().int().optional(),
224
- }).array().optional(),
215
+ workExperience: z
216
+ .object({
217
+ companyName: z.string(),
218
+ position: z.string(),
219
+ startDate: z.coerce.date().optional(),
220
+ endDate: z.coerce.date().optional(),
221
+ currentlyWorking: z.boolean().optional(),
222
+ description: z.string().optional(),
223
+ })
224
+ .array()
225
+ .optional(),
226
+ links: z
227
+ .object({
228
+ name: z.string(),
229
+ url: z.url(),
230
+ type: z.enum(LINK_TYPES).default(LINK_TYPES.GENERIC_WEBSITE),
231
+ })
232
+ .array()
233
+ .optional(),
234
+ achievements: z
235
+ .object({
236
+ title: z.string(),
237
+ description: z.string(),
238
+ link: z.string().optional(),
239
+ year: z.number().int().optional(),
240
+ })
241
+ .array()
242
+ .optional(),
225
243
  })
226
244
  .openapi({
227
245
  title: "update creative profile",
@@ -242,7 +260,7 @@ export const UpdateCreativeOutputSchema = CreativeEntitySchema;
242
260
 
243
261
  export const CreativeWithUserEntitySchema = MinimalCreativeEntitySchema.extend({
244
262
  user: MinimalUserSchema,
245
- })
263
+ });
246
264
 
247
265
  export const SearchCreativeInputSchema = z.object({
248
266
  string: z