@zyacreatives/shared 2.0.70 → 2.0.72
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/creative.d.ts +10 -16
- package/dist/schemas/creative.js +14 -7
- package/dist/schemas/user.d.ts +4 -6
- package/package.json +1 -1
- package/src/schemas/creative.ts +14 -8
|
@@ -39,9 +39,8 @@ export declare const CreativeEntitySchema: z.ZodObject<{
|
|
|
39
39
|
description: z.ZodOptional<z.ZodString>;
|
|
40
40
|
}, z.core.$strip>>>;
|
|
41
41
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
42
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
43
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
45
44
|
readonly INSTAGRAM: "Instagram";
|
|
46
45
|
readonly LINKEDIN: "LinkedIn";
|
|
47
46
|
readonly TWITTER: "Twitter";
|
|
@@ -104,9 +103,8 @@ export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
|
|
|
104
103
|
description: z.ZodOptional<z.ZodString>;
|
|
105
104
|
}, z.core.$strip>>>;
|
|
106
105
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
106
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
107
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
110
108
|
readonly INSTAGRAM: "Instagram";
|
|
111
109
|
readonly LINKEDIN: "LinkedIn";
|
|
112
110
|
readonly TWITTER: "Twitter";
|
|
@@ -117,7 +115,6 @@ export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
|
|
|
117
115
|
}, z.core.$strip>>>;
|
|
118
116
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
117
|
title: z.ZodString;
|
|
120
|
-
description: z.ZodString;
|
|
121
118
|
link: z.ZodOptional<z.ZodString>;
|
|
122
119
|
year: z.ZodOptional<z.ZodNumber>;
|
|
123
120
|
}, z.core.$strip>>>;
|
|
@@ -158,9 +155,8 @@ export declare const CreateCreativeOutputSchema: z.ZodObject<{
|
|
|
158
155
|
description: z.ZodOptional<z.ZodString>;
|
|
159
156
|
}, z.core.$strip>>>;
|
|
160
157
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
158
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
159
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
164
160
|
readonly INSTAGRAM: "Instagram";
|
|
165
161
|
readonly LINKEDIN: "LinkedIn";
|
|
166
162
|
readonly TWITTER: "Twitter";
|
|
@@ -200,9 +196,8 @@ export declare const GetCreativeOutputSchema: z.ZodObject<{
|
|
|
200
196
|
description: z.ZodOptional<z.ZodString>;
|
|
201
197
|
}, z.core.$strip>>>;
|
|
202
198
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
199
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
200
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
206
201
|
readonly INSTAGRAM: "Instagram";
|
|
207
202
|
readonly LINKEDIN: "LinkedIn";
|
|
208
203
|
readonly TWITTER: "Twitter";
|
|
@@ -242,9 +237,8 @@ export declare const UpdateCreativeOutputSchema: z.ZodObject<{
|
|
|
242
237
|
description: z.ZodOptional<z.ZodString>;
|
|
243
238
|
}, z.core.$strip>>>;
|
|
244
239
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
240
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
241
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
248
242
|
readonly INSTAGRAM: "Instagram";
|
|
249
243
|
readonly LINKEDIN: "LinkedIn";
|
|
250
244
|
readonly TWITTER: "Twitter";
|
package/dist/schemas/creative.js
CHANGED
|
@@ -65,9 +65,13 @@ exports.CreativeEntitySchema = zod_openapi_1.z
|
|
|
65
65
|
.optional(),
|
|
66
66
|
links: zod_openapi_1.z
|
|
67
67
|
.object({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
url: zod_openapi_1.z
|
|
69
|
+
.union([
|
|
70
|
+
zod_openapi_1.z.url({ message: "Please enter a valid URL" }),
|
|
71
|
+
zod_openapi_1.z.literal(""),
|
|
72
|
+
])
|
|
73
|
+
.optional(),
|
|
74
|
+
type: zod_openapi_1.z.enum(constants_1.LINK_TYPES).optional(),
|
|
71
75
|
})
|
|
72
76
|
.array()
|
|
73
77
|
.optional(),
|
|
@@ -191,16 +195,19 @@ exports.UpdateCreativeProfileInputSchema = zod_openapi_1.z
|
|
|
191
195
|
.optional(),
|
|
192
196
|
links: zod_openapi_1.z
|
|
193
197
|
.object({
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
198
|
+
url: zod_openapi_1.z
|
|
199
|
+
.union([
|
|
200
|
+
zod_openapi_1.z.url({ message: "Please enter a valid URL" }),
|
|
201
|
+
zod_openapi_1.z.literal(""),
|
|
202
|
+
])
|
|
203
|
+
.optional(),
|
|
204
|
+
type: zod_openapi_1.z.enum(constants_1.LINK_TYPES).optional(),
|
|
197
205
|
})
|
|
198
206
|
.array()
|
|
199
207
|
.optional(),
|
|
200
208
|
achievements: zod_openapi_1.z
|
|
201
209
|
.object({
|
|
202
210
|
title: zod_openapi_1.z.string(),
|
|
203
|
-
description: zod_openapi_1.z.string(),
|
|
204
211
|
link: zod_openapi_1.z.string().optional(),
|
|
205
212
|
year: zod_openapi_1.z.number().int().optional(),
|
|
206
213
|
})
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -145,9 +145,8 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
|
145
145
|
description: z.ZodOptional<z.ZodString>;
|
|
146
146
|
}, z.core.$strip>>>;
|
|
147
147
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
148
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
149
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
151
150
|
readonly INSTAGRAM: "Instagram";
|
|
152
151
|
readonly LINKEDIN: "LinkedIn";
|
|
153
152
|
readonly TWITTER: "Twitter";
|
|
@@ -532,9 +531,8 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
|
|
|
532
531
|
description: z.ZodOptional<z.ZodString>;
|
|
533
532
|
}, z.core.$strip>>>;
|
|
534
533
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
534
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
535
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
538
536
|
readonly INSTAGRAM: "Instagram";
|
|
539
537
|
readonly LINKEDIN: "LinkedIn";
|
|
540
538
|
readonly TWITTER: "Twitter";
|
package/package.json
CHANGED
package/src/schemas/creative.ts
CHANGED
|
@@ -24,7 +24,6 @@ export const MinimalCreativeEntitySchema = z.object({
|
|
|
24
24
|
.array(z.string())
|
|
25
25
|
.optional()
|
|
26
26
|
.openapi({ example: ["branding", "typography", "UX"] }),
|
|
27
|
-
|
|
28
27
|
disciplines: z
|
|
29
28
|
.array(z.string())
|
|
30
29
|
.optional()
|
|
@@ -77,9 +76,13 @@ export const CreativeEntitySchema = z
|
|
|
77
76
|
.optional(),
|
|
78
77
|
links: z
|
|
79
78
|
.object({
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
url: z
|
|
80
|
+
.union([
|
|
81
|
+
z.url({ message: "Please enter a valid URL" }),
|
|
82
|
+
z.literal(""),
|
|
83
|
+
])
|
|
84
|
+
.optional(),
|
|
85
|
+
type: z.enum(LINK_TYPES).optional(),
|
|
83
86
|
})
|
|
84
87
|
.array()
|
|
85
88
|
.optional(),
|
|
@@ -224,16 +227,19 @@ export const UpdateCreativeProfileInputSchema = z
|
|
|
224
227
|
.optional(),
|
|
225
228
|
links: z
|
|
226
229
|
.object({
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
+
url: z
|
|
231
|
+
.union([
|
|
232
|
+
z.url({ message: "Please enter a valid URL" }),
|
|
233
|
+
z.literal(""),
|
|
234
|
+
])
|
|
235
|
+
.optional(),
|
|
236
|
+
type: z.enum(LINK_TYPES).optional(),
|
|
230
237
|
})
|
|
231
238
|
.array()
|
|
232
239
|
.optional(),
|
|
233
240
|
achievements: z
|
|
234
241
|
.object({
|
|
235
242
|
title: z.string(),
|
|
236
|
-
description: z.string(),
|
|
237
243
|
link: z.string().optional(),
|
|
238
244
|
year: z.number().int().optional(),
|
|
239
245
|
})
|