@zyacreatives/shared 2.0.63 → 2.0.65
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 +0 -20
- package/dist/schemas/brand.js +1 -14
- package/dist/schemas/creative.d.ts +2 -56
- package/dist/schemas/creative.js +9 -1
- package/dist/schemas/project.d.ts +0 -6
- package/dist/schemas/project.js +0 -4
- package/dist/schemas/user.d.ts +0 -2
- package/package.json +1 -1
- package/src/schemas/brand.ts +0 -15
- package/src/schemas/creative.ts +10 -1
- package/src/schemas/project.ts +0 -4
package/dist/schemas/brand.d.ts
CHANGED
|
@@ -265,23 +265,3 @@ export declare const SearchBrandOutputSchema: z.ZodObject<{
|
|
|
265
265
|
}, z.core.$strip>>;
|
|
266
266
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
267
267
|
}, z.core.$strip>;
|
|
268
|
-
export declare const BrandAboutInputSchema: z.ZodObject<{
|
|
269
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
270
|
-
name: z.ZodString;
|
|
271
|
-
url: z.ZodString;
|
|
272
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
273
|
-
readonly INSTAGRAM: "Instagram";
|
|
274
|
-
readonly LINKEDIN: "LinkedIn";
|
|
275
|
-
readonly TWITTER: "Twitter";
|
|
276
|
-
readonly YOUTUBE: "Youtube";
|
|
277
|
-
readonly PORTFOLIO: "Portfolio Website";
|
|
278
|
-
readonly GENERIC_WEBSITE: "Generic Website";
|
|
279
|
-
}>>;
|
|
280
|
-
}, z.core.$strip>>>;
|
|
281
|
-
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
282
|
-
title: z.ZodString;
|
|
283
|
-
description: z.ZodString;
|
|
284
|
-
link: z.ZodOptional<z.ZodString>;
|
|
285
|
-
year: z.ZodOptional<z.ZodNumber>;
|
|
286
|
-
}, z.core.$strip>>>;
|
|
287
|
-
}, z.core.$strip>;
|
package/dist/schemas/brand.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SearchBrandOutputSchema = exports.SearchBrandInputSchema = exports.BrandWithUserEntitySchema = exports.UpdateBrandOutputSchema = exports.GetBrandOutputSchema = exports.CreateBrandOutputSchema = exports.GetBrandQuerySchema = exports.GetBrandInputSchema = exports.UpdateBrandProfileInputSchema = exports.CreateBrandProfileInputSchema = exports.ListBrandsInputSchema = exports.BrandEntitySchema = exports.MinimalBrandEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const common_1 = require("./common");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
@@ -166,16 +166,3 @@ exports.SearchBrandOutputSchema = zod_openapi_1.z.object({
|
|
|
166
166
|
brands: zod_openapi_1.z.array(exports.BrandWithUserEntitySchema),
|
|
167
167
|
nextCursor: zod_openapi_1.z.string().optional(),
|
|
168
168
|
});
|
|
169
|
-
exports.BrandAboutInputSchema = zod_openapi_1.z.object({
|
|
170
|
-
links: zod_openapi_1.z.object({
|
|
171
|
-
name: zod_openapi_1.z.string(),
|
|
172
|
-
url: zod_openapi_1.z.string(),
|
|
173
|
-
type: zod_openapi_1.z.enum(constants_1.LINK_TYPES).default(constants_1.LINK_TYPES.GENERIC_WEBSITE),
|
|
174
|
-
}).array().optional(),
|
|
175
|
-
achievements: zod_openapi_1.z.object({
|
|
176
|
-
title: zod_openapi_1.z.string(),
|
|
177
|
-
description: zod_openapi_1.z.string(),
|
|
178
|
-
link: zod_openapi_1.z.string().optional(),
|
|
179
|
-
year: zod_openapi_1.z.number().int().optional(),
|
|
180
|
-
}).array().optional(),
|
|
181
|
-
});
|
|
@@ -11,6 +11,8 @@ 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
|
+
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
16
|
}, z.core.$strip>;
|
|
15
17
|
export declare const CreativeEntitySchema: z.ZodObject<{
|
|
16
18
|
id: z.ZodCUID2;
|
|
@@ -275,34 +277,6 @@ export declare const CreativeWithUserEntitySchema: z.ZodOptional<z.ZodObject<{
|
|
|
275
277
|
}>>;
|
|
276
278
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
277
279
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
278
|
-
workExperience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
279
|
-
companyName: z.ZodString;
|
|
280
|
-
position: z.ZodString;
|
|
281
|
-
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
282
|
-
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
283
|
-
currentlyWorking: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
-
description: z.ZodOptional<z.ZodString>;
|
|
285
|
-
}, z.core.$strip>>>;
|
|
286
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
|
-
name: z.ZodString;
|
|
288
|
-
url: z.ZodString;
|
|
289
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
290
|
-
readonly INSTAGRAM: "Instagram";
|
|
291
|
-
readonly LINKEDIN: "LinkedIn";
|
|
292
|
-
readonly TWITTER: "Twitter";
|
|
293
|
-
readonly YOUTUBE: "Youtube";
|
|
294
|
-
readonly PORTFOLIO: "Portfolio Website";
|
|
295
|
-
readonly GENERIC_WEBSITE: "Generic Website";
|
|
296
|
-
}>>;
|
|
297
|
-
}, z.core.$strip>>>;
|
|
298
|
-
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
299
|
-
title: z.ZodString;
|
|
300
|
-
description: z.ZodString;
|
|
301
|
-
link: z.ZodOptional<z.ZodString>;
|
|
302
|
-
year: z.ZodOptional<z.ZodNumber>;
|
|
303
|
-
}, z.core.$strip>>>;
|
|
304
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
305
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
306
280
|
user: z.ZodObject<{
|
|
307
281
|
id: z.ZodCUID2;
|
|
308
282
|
username: z.ZodOptional<z.ZodString>;
|
|
@@ -337,34 +311,6 @@ export declare const SearchCreativeOutputSchema: z.ZodObject<{
|
|
|
337
311
|
}>>;
|
|
338
312
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
339
313
|
disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
340
|
-
workExperience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
341
|
-
companyName: z.ZodString;
|
|
342
|
-
position: z.ZodString;
|
|
343
|
-
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
344
|
-
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
345
|
-
currentlyWorking: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
-
description: z.ZodOptional<z.ZodString>;
|
|
347
|
-
}, z.core.$strip>>>;
|
|
348
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
|
-
name: z.ZodString;
|
|
350
|
-
url: z.ZodString;
|
|
351
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
352
|
-
readonly INSTAGRAM: "Instagram";
|
|
353
|
-
readonly LINKEDIN: "LinkedIn";
|
|
354
|
-
readonly TWITTER: "Twitter";
|
|
355
|
-
readonly YOUTUBE: "Youtube";
|
|
356
|
-
readonly PORTFOLIO: "Portfolio Website";
|
|
357
|
-
readonly GENERIC_WEBSITE: "Generic Website";
|
|
358
|
-
}>>;
|
|
359
|
-
}, z.core.$strip>>>;
|
|
360
|
-
achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
361
|
-
title: z.ZodString;
|
|
362
|
-
description: z.ZodString;
|
|
363
|
-
link: z.ZodOptional<z.ZodString>;
|
|
364
|
-
year: z.ZodOptional<z.ZodNumber>;
|
|
365
|
-
}, z.core.$strip>>>;
|
|
366
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
367
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
368
314
|
user: z.ZodObject<{
|
|
369
315
|
id: z.ZodCUID2;
|
|
370
316
|
username: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/creative.js
CHANGED
|
@@ -17,6 +17,14 @@ 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
|
+
disciplines: zod_openapi_1.z
|
|
25
|
+
.array(zod_openapi_1.z.string())
|
|
26
|
+
.optional()
|
|
27
|
+
.openapi({ example: ["Design", "Art Direction"] }),
|
|
20
28
|
});
|
|
21
29
|
exports.CreativeEntitySchema = zod_openapi_1.z
|
|
22
30
|
.object({
|
|
@@ -188,7 +196,7 @@ exports.GetCreativeQuerySchema = common_1.ProfileIdentifierSchema;
|
|
|
188
196
|
exports.CreateCreativeOutputSchema = exports.CreativeEntitySchema;
|
|
189
197
|
exports.GetCreativeOutputSchema = exports.CreativeEntitySchema;
|
|
190
198
|
exports.UpdateCreativeOutputSchema = exports.CreativeEntitySchema;
|
|
191
|
-
exports.CreativeWithUserEntitySchema = exports.
|
|
199
|
+
exports.CreativeWithUserEntitySchema = exports.MinimalCreativeEntitySchema.extend({
|
|
192
200
|
user: user_1.MinimalUserSchema,
|
|
193
201
|
}).optional();
|
|
194
202
|
exports.SearchCreativeInputSchema = zod_openapi_1.z.object({
|
|
@@ -24,7 +24,6 @@ export declare const ProjectEntitySchema: z.ZodObject<{
|
|
|
24
24
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
25
25
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
26
26
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
27
|
-
searchVector: z.ZodString;
|
|
28
27
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
29
28
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
30
29
|
}, z.core.$strip>;
|
|
@@ -66,7 +65,6 @@ export declare const ProjectWithFilesEntitySchema: z.ZodObject<{
|
|
|
66
65
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
67
66
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
68
67
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
69
|
-
searchVector: z.ZodString;
|
|
70
68
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
71
69
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
72
70
|
projectFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -180,7 +178,6 @@ export declare const CreateProjectOutputSchema: z.ZodObject<{
|
|
|
180
178
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
181
179
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
182
180
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
183
|
-
searchVector: z.ZodString;
|
|
184
181
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
185
182
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
186
183
|
}, z.core.$strip>;
|
|
@@ -209,7 +206,6 @@ export declare const UpdateProjectOutputSchema: z.ZodObject<{
|
|
|
209
206
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
210
207
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
211
208
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
212
|
-
searchVector: z.ZodString;
|
|
213
209
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
214
210
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
215
211
|
}, z.core.$strip>;
|
|
@@ -238,7 +234,6 @@ export declare const DeleteProjectOutputSchema: z.ZodObject<{
|
|
|
238
234
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
239
235
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
240
236
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
241
|
-
searchVector: z.ZodString;
|
|
242
237
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
243
238
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
244
239
|
}, z.core.$strip>;
|
|
@@ -267,7 +262,6 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
|
|
|
267
262
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
268
263
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
269
264
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
270
|
-
searchVector: z.ZodString;
|
|
271
265
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
272
266
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
273
267
|
projectFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
package/dist/schemas/project.js
CHANGED
|
@@ -80,10 +80,6 @@ exports.ProjectEntitySchema = zod_openapi_1.z
|
|
|
80
80
|
description: "End date of the project.",
|
|
81
81
|
example: new Date("2024-06-30"),
|
|
82
82
|
}),
|
|
83
|
-
searchVector: zod_openapi_1.z.string().openapi({
|
|
84
|
-
description: "Search vector for full-text search indexing.",
|
|
85
|
-
example: "ecommerce mobile app react native",
|
|
86
|
-
}),
|
|
87
83
|
createdAt: zod_openapi_1.z.coerce.date().openapi({
|
|
88
84
|
description: "Timestamp when the project was created.",
|
|
89
85
|
example: new Date("2024-01-01T00:00:00.000Z"),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -244,7 +244,6 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
|
|
|
244
244
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
245
245
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
246
246
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
247
|
-
searchVector: z.ZodString;
|
|
248
247
|
}, z.core.$strip>>;
|
|
249
248
|
}, z.core.$strip>;
|
|
250
249
|
export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
|
|
@@ -634,7 +633,6 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
|
|
|
634
633
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
635
634
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
636
635
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
637
|
-
searchVector: z.ZodString;
|
|
638
636
|
}, z.core.$strip>>;
|
|
639
637
|
}, z.core.$strip>;
|
|
640
638
|
export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
package/package.json
CHANGED
package/src/schemas/brand.ts
CHANGED
|
@@ -187,18 +187,3 @@ export const SearchBrandOutputSchema = z.object({
|
|
|
187
187
|
brands: z.array(BrandWithUserEntitySchema),
|
|
188
188
|
nextCursor: z.string().optional(),
|
|
189
189
|
})
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
export const BrandAboutInputSchema = z.object({
|
|
193
|
-
links: z.object({
|
|
194
|
-
name: z.string(),
|
|
195
|
-
url: z.string(),
|
|
196
|
-
type: z.enum(LINK_TYPES).default(LINK_TYPES.GENERIC_WEBSITE),
|
|
197
|
-
}).array().optional(),
|
|
198
|
-
achievements: z.object({
|
|
199
|
-
title: z.string(),
|
|
200
|
-
description: z.string(),
|
|
201
|
-
link: z.string().optional(),
|
|
202
|
-
year: z.number().int().optional(),
|
|
203
|
-
}).array().optional(),
|
|
204
|
-
})
|
package/src/schemas/creative.ts
CHANGED
|
@@ -20,6 +20,15 @@ export const MinimalCreativeEntitySchema = z.object({
|
|
|
20
20
|
)
|
|
21
21
|
.optional()
|
|
22
22
|
.openapi({ example: EXPERIENCE_LEVELS.YEAR_0_1 }),
|
|
23
|
+
tags: z
|
|
24
|
+
.array(z.string())
|
|
25
|
+
.optional()
|
|
26
|
+
.openapi({ example: ["branding", "typography", "UX"] }),
|
|
27
|
+
|
|
28
|
+
disciplines: z
|
|
29
|
+
.array(z.string())
|
|
30
|
+
.optional()
|
|
31
|
+
.openapi({ example: ["Design", "Art Direction"] }),
|
|
23
32
|
})
|
|
24
33
|
|
|
25
34
|
export const CreativeEntitySchema = z
|
|
@@ -226,7 +235,7 @@ export const GetCreativeOutputSchema = CreativeEntitySchema;
|
|
|
226
235
|
|
|
227
236
|
export const UpdateCreativeOutputSchema = CreativeEntitySchema;
|
|
228
237
|
|
|
229
|
-
export const CreativeWithUserEntitySchema =
|
|
238
|
+
export const CreativeWithUserEntitySchema = MinimalCreativeEntitySchema.extend({
|
|
230
239
|
user: MinimalUserSchema,
|
|
231
240
|
}).optional();
|
|
232
241
|
|
package/src/schemas/project.ts
CHANGED
|
@@ -79,10 +79,6 @@ export const ProjectEntitySchema = z
|
|
|
79
79
|
description: "End date of the project.",
|
|
80
80
|
example: new Date("2024-06-30"),
|
|
81
81
|
}),
|
|
82
|
-
searchVector: z.string().openapi({
|
|
83
|
-
description: "Search vector for full-text search indexing.",
|
|
84
|
-
example: "ecommerce mobile app react native",
|
|
85
|
-
}),
|
|
86
82
|
createdAt: z.coerce.date().openapi({
|
|
87
83
|
description: "Timestamp when the project was created.",
|
|
88
84
|
example: new Date("2024-01-01T00:00:00.000Z"),
|