@zyacreatives/shared 2.1.44 → 2.1.46
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 +15 -15
- package/dist/schemas/creative.js +6 -10
- package/dist/schemas/user.d.ts +6 -6
- package/package.json +1 -1
- package/src/schemas/creative.ts +10 -14
|
@@ -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;
|
|
@@ -99,15 +99,15 @@ export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
|
|
|
99
99
|
description: z.ZodOptional<z.ZodString>;
|
|
100
100
|
}, z.core.$strip>>>;
|
|
101
101
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
-
url: z.
|
|
103
|
-
type: z.
|
|
102
|
+
url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
103
|
+
type: z.ZodEnum<{
|
|
104
104
|
readonly INSTAGRAM: "Instagram";
|
|
105
105
|
readonly LINKEDIN: "LinkedIn";
|
|
106
106
|
readonly TWITTER: "Twitter";
|
|
107
107
|
readonly YOUTUBE: "Youtube";
|
|
108
108
|
readonly PORTFOLIO: "Portfolio Website";
|
|
109
109
|
readonly GENERIC_WEBSITE: "Generic Website";
|
|
110
|
-
}
|
|
110
|
+
}>;
|
|
111
111
|
}, z.core.$strip>>>;
|
|
112
112
|
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
113
|
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(),
|
|
@@ -179,13 +177,11 @@ exports.UpdateCreativeProfileInputSchema = zod_openapi_1.z
|
|
|
179
177
|
.optional(),
|
|
180
178
|
links: zod_openapi_1.z
|
|
181
179
|
.object({
|
|
182
|
-
url: zod_openapi_1.z
|
|
183
|
-
.union([
|
|
180
|
+
url: zod_openapi_1.z.union([
|
|
184
181
|
zod_openapi_1.z.url({ message: "Please enter a valid URL" }),
|
|
185
182
|
zod_openapi_1.z.literal(""),
|
|
186
|
-
])
|
|
187
|
-
|
|
188
|
-
type: zod_openapi_1.z.enum(constants_1.LINK_TYPES).optional(),
|
|
183
|
+
]),
|
|
184
|
+
type: zod_openapi_1.z.enum(constants_1.LINK_TYPES),
|
|
189
185
|
})
|
|
190
186
|
.array()
|
|
191
187
|
.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(),
|
|
@@ -210,13 +208,11 @@ export const UpdateCreativeProfileInputSchema = z
|
|
|
210
208
|
.optional(),
|
|
211
209
|
links: z
|
|
212
210
|
.object({
|
|
213
|
-
url: z
|
|
214
|
-
.
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
.optional(),
|
|
219
|
-
type: z.enum(LINK_TYPES).optional(),
|
|
211
|
+
url: z.union([
|
|
212
|
+
z.url({ message: "Please enter a valid URL" }),
|
|
213
|
+
z.literal(""),
|
|
214
|
+
]),
|
|
215
|
+
type: z.enum(LINK_TYPES),
|
|
220
216
|
})
|
|
221
217
|
.array()
|
|
222
218
|
.optional(),
|