@zyacreatives/shared 2.1.44 → 2.1.45
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.
|
@@ -37,15 +37,15 @@ export declare const CreativeEntitySchema: z.ZodObject<{
|
|
|
37
37
|
description: z.ZodString;
|
|
38
38
|
}, z.core.$strip>>>;
|
|
39
39
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
-
url: z.
|
|
41
|
-
type: z.
|
|
40
|
+
url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
41
|
+
type: z.ZodEnum<{
|
|
42
42
|
readonly INSTAGRAM: "Instagram";
|
|
43
43
|
readonly LINKEDIN: "LinkedIn";
|
|
44
44
|
readonly TWITTER: "Twitter";
|
|
45
45
|
readonly YOUTUBE: "Youtube";
|
|
46
46
|
readonly PORTFOLIO: "Portfolio Website";
|
|
47
47
|
readonly GENERIC_WEBSITE: "Generic Website";
|
|
48
|
-
}
|
|
48
|
+
}>;
|
|
49
49
|
}, z.core.$strip>>>;
|
|
50
50
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
51
|
title: z.ZodString;
|
|
@@ -150,15 +150,15 @@ export declare const CreateCreativeOutputSchema: z.ZodObject<{
|
|
|
150
150
|
description: z.ZodString;
|
|
151
151
|
}, z.core.$strip>>>;
|
|
152
152
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
153
|
-
url: z.
|
|
154
|
-
type: z.
|
|
153
|
+
url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
154
|
+
type: z.ZodEnum<{
|
|
155
155
|
readonly INSTAGRAM: "Instagram";
|
|
156
156
|
readonly LINKEDIN: "LinkedIn";
|
|
157
157
|
readonly TWITTER: "Twitter";
|
|
158
158
|
readonly YOUTUBE: "Youtube";
|
|
159
159
|
readonly PORTFOLIO: "Portfolio Website";
|
|
160
160
|
readonly GENERIC_WEBSITE: "Generic Website";
|
|
161
|
-
}
|
|
161
|
+
}>;
|
|
162
162
|
}, z.core.$strip>>>;
|
|
163
163
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
164
|
title: z.ZodString;
|
|
@@ -190,15 +190,15 @@ export declare const GetCreativeOutputSchema: z.ZodObject<{
|
|
|
190
190
|
description: z.ZodString;
|
|
191
191
|
}, z.core.$strip>>>;
|
|
192
192
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
|
-
url: z.
|
|
194
|
-
type: z.
|
|
193
|
+
url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
194
|
+
type: z.ZodEnum<{
|
|
195
195
|
readonly INSTAGRAM: "Instagram";
|
|
196
196
|
readonly LINKEDIN: "LinkedIn";
|
|
197
197
|
readonly TWITTER: "Twitter";
|
|
198
198
|
readonly YOUTUBE: "Youtube";
|
|
199
199
|
readonly PORTFOLIO: "Portfolio Website";
|
|
200
200
|
readonly GENERIC_WEBSITE: "Generic Website";
|
|
201
|
-
}
|
|
201
|
+
}>;
|
|
202
202
|
}, z.core.$strip>>>;
|
|
203
203
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
204
204
|
title: z.ZodString;
|
|
@@ -230,15 +230,15 @@ export declare const UpdateCreativeOutputSchema: z.ZodObject<{
|
|
|
230
230
|
description: z.ZodString;
|
|
231
231
|
}, z.core.$strip>>>;
|
|
232
232
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
233
|
-
url: z.
|
|
234
|
-
type: z.
|
|
233
|
+
url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
234
|
+
type: z.ZodEnum<{
|
|
235
235
|
readonly INSTAGRAM: "Instagram";
|
|
236
236
|
readonly LINKEDIN: "LinkedIn";
|
|
237
237
|
readonly TWITTER: "Twitter";
|
|
238
238
|
readonly YOUTUBE: "Youtube";
|
|
239
239
|
readonly PORTFOLIO: "Portfolio Website";
|
|
240
240
|
readonly GENERIC_WEBSITE: "Generic Website";
|
|
241
|
-
}
|
|
241
|
+
}>;
|
|
242
242
|
}, z.core.$strip>>>;
|
|
243
243
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
244
244
|
title: z.ZodString;
|
package/dist/schemas/creative.js
CHANGED
|
@@ -57,13 +57,11 @@ exports.CreativeEntitySchema = zod_openapi_1.z
|
|
|
57
57
|
.optional(),
|
|
58
58
|
links: zod_openapi_1.z
|
|
59
59
|
.object({
|
|
60
|
-
url: zod_openapi_1.z
|
|
61
|
-
.union([
|
|
60
|
+
url: zod_openapi_1.z.union([
|
|
62
61
|
zod_openapi_1.z.url({ message: "Please enter a valid URL" }),
|
|
63
62
|
zod_openapi_1.z.literal(""),
|
|
64
|
-
])
|
|
65
|
-
|
|
66
|
-
type: zod_openapi_1.z.enum(constants_1.LINK_TYPES).optional(),
|
|
63
|
+
]),
|
|
64
|
+
type: zod_openapi_1.z.enum(constants_1.LINK_TYPES),
|
|
67
65
|
})
|
|
68
66
|
.array()
|
|
69
67
|
.optional(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -135,15 +135,15 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
|
135
135
|
description: z.ZodString;
|
|
136
136
|
}, z.core.$strip>>>;
|
|
137
137
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
138
|
-
url: z.
|
|
139
|
-
type: z.
|
|
138
|
+
url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
139
|
+
type: z.ZodEnum<{
|
|
140
140
|
readonly INSTAGRAM: "Instagram";
|
|
141
141
|
readonly LINKEDIN: "LinkedIn";
|
|
142
142
|
readonly TWITTER: "Twitter";
|
|
143
143
|
readonly YOUTUBE: "Youtube";
|
|
144
144
|
readonly PORTFOLIO: "Portfolio Website";
|
|
145
145
|
readonly GENERIC_WEBSITE: "Generic Website";
|
|
146
|
-
}
|
|
146
|
+
}>;
|
|
147
147
|
}, z.core.$strip>>>;
|
|
148
148
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
149
149
|
title: z.ZodString;
|
|
@@ -576,15 +576,15 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
|
|
|
576
576
|
description: z.ZodString;
|
|
577
577
|
}, z.core.$strip>>>;
|
|
578
578
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
579
|
-
url: z.
|
|
580
|
-
type: z.
|
|
579
|
+
url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
580
|
+
type: z.ZodEnum<{
|
|
581
581
|
readonly INSTAGRAM: "Instagram";
|
|
582
582
|
readonly LINKEDIN: "LinkedIn";
|
|
583
583
|
readonly TWITTER: "Twitter";
|
|
584
584
|
readonly YOUTUBE: "Youtube";
|
|
585
585
|
readonly PORTFOLIO: "Portfolio Website";
|
|
586
586
|
readonly GENERIC_WEBSITE: "Generic Website";
|
|
587
|
-
}
|
|
587
|
+
}>;
|
|
588
588
|
}, z.core.$strip>>>;
|
|
589
589
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
590
590
|
title: z.ZodString;
|
package/package.json
CHANGED
package/src/schemas/creative.ts
CHANGED
|
@@ -68,13 +68,11 @@ export const CreativeEntitySchema = z
|
|
|
68
68
|
.optional(),
|
|
69
69
|
links: z
|
|
70
70
|
.object({
|
|
71
|
-
url: z
|
|
72
|
-
.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.optional(),
|
|
77
|
-
type: z.enum(LINK_TYPES).optional(),
|
|
71
|
+
url: z.union([
|
|
72
|
+
z.url({ message: "Please enter a valid URL" }),
|
|
73
|
+
z.literal(""),
|
|
74
|
+
]),
|
|
75
|
+
type: z.enum(LINK_TYPES),
|
|
78
76
|
})
|
|
79
77
|
.array()
|
|
80
78
|
.optional(),
|