@zyacreatives/shared 2.0.63 → 2.0.64

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.
@@ -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>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BrandAboutInputSchema = 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;
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>;
@@ -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.CreativeEntitySchema.extend({
199
+ exports.CreativeWithUserEntitySchema = exports.MinimalCreativeEntitySchema.extend({
192
200
  user: user_1.MinimalUserSchema,
193
201
  }).optional();
194
202
  exports.SearchCreativeInputSchema = zod_openapi_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.63",
3
+ "version": "2.0.64",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- })
@@ -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 = CreativeEntitySchema.extend({
238
+ export const CreativeWithUserEntitySchema = MinimalCreativeEntitySchema.extend({
230
239
  user: MinimalUserSchema,
231
240
  }).optional();
232
241