@zyacreatives/shared 2.1.59 → 2.1.62

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.
@@ -51,6 +51,7 @@ export declare const CreateBrandProfileInputSchema: z.ZodObject<{
51
51
  disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
52
52
  }, z.core.$strip>;
53
53
  export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
54
+ expectedUpdatedAt: z.ZodISODateTime;
54
55
  brandName: z.ZodOptional<z.ZodString>;
55
56
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
57
  url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
@@ -99,6 +99,7 @@ exports.CreateBrandProfileInputSchema = zod_openapi_1.z
99
99
  });
100
100
  exports.UpdateBrandProfileInputSchema = zod_openapi_1.z
101
101
  .object({
102
+ expectedUpdatedAt: zod_openapi_1.z.iso.datetime(),
102
103
  brandName: zod_openapi_1.z.string().min(1).optional().openapi({ example: "Acme Studio" }),
103
104
  links: zod_openapi_1.z
104
105
  .object({
@@ -17,7 +17,8 @@ export declare const CommentEntitySchema: z.ZodObject<{
17
17
  commenterImageUrl: z.ZodOptional<z.ZodString>;
18
18
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
19
19
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
20
- isLiked: z.ZodBoolean;
20
+ isLiked: z.ZodDefault<z.ZodBoolean>;
21
+ likesCount: z.ZodDefault<z.ZodInt>;
21
22
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
22
23
  }, z.core.$strip>;
23
24
  export declare const CommentInputSchema: z.ZodObject<{
@@ -46,6 +47,7 @@ export declare const CommentOutputSchema: z.ZodObject<{
46
47
  commenterImageUrl: z.ZodOptional<z.ZodString>;
47
48
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
48
49
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
49
- isLiked: z.ZodBoolean;
50
+ isLiked: z.ZodDefault<z.ZodBoolean>;
51
+ likesCount: z.ZodDefault<z.ZodInt>;
50
52
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
51
53
  }, z.core.$strip>;
@@ -39,7 +39,8 @@ exports.CommentEntitySchema = zod_1.default.object({
39
39
  example: "2023-10-27T10:00:00.000Z",
40
40
  format: "date-time",
41
41
  }),
42
- isLiked: zod_1.default.boolean(),
42
+ isLiked: zod_1.default.boolean().default(false),
43
+ likesCount: zod_1.default.int().default(0),
43
44
  updatedAt: zod_1.default.coerce.date().optional().openapi({
44
45
  description: "The date and time the comment was last updated.",
45
46
  example: "2023-10-27T10:05:00.000Z",
@@ -80,6 +80,7 @@ export declare const CreateCreativeProfileInputSchema: z.ZodObject<{
80
80
  disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
81
81
  }, z.core.$strip>;
82
82
  export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
83
+ expectedUpdatedAt: z.ZodISODateTime;
83
84
  experienceLevel: z.ZodOptional<z.ZodEnum<{
84
85
  readonly YEAR_0_1: "0-1 year";
85
86
  readonly YEAR_1_3: "1-3 years";
@@ -144,6 +144,7 @@ exports.CreateCreativeProfileInputSchema = zod_openapi_1.z
144
144
  });
145
145
  exports.UpdateCreativeProfileInputSchema = zod_openapi_1.z
146
146
  .object({
147
+ expectedUpdatedAt: zod_openapi_1.z.iso.datetime(),
147
148
  experienceLevel: zod_openapi_1.z
148
149
  .enum(constants_1.EXPERIENCE_LEVELS)
149
150
  .optional()
@@ -320,7 +320,8 @@ export declare const PostWithCommentsEntitySchema: z.ZodObject<{
320
320
  commenterImageUrl: z.ZodOptional<z.ZodString>;
321
321
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
322
322
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
323
- isLiked: z.ZodBoolean;
323
+ isLiked: z.ZodDefault<z.ZodBoolean>;
324
+ likesCount: z.ZodDefault<z.ZodInt>;
324
325
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
325
326
  }, z.core.$strip>>;
326
327
  }, z.core.$strip>;
@@ -382,7 +382,8 @@ export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
382
382
  commenterImageUrl: z.ZodOptional<z.ZodString>;
383
383
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
384
384
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
385
- isLiked: z.ZodBoolean;
385
+ isLiked: z.ZodDefault<z.ZodBoolean>;
386
+ likesCount: z.ZodDefault<z.ZodInt>;
386
387
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
387
388
  }, z.core.$strip>>;
388
389
  }, z.core.$strip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.59",
3
+ "version": "2.1.62",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -111,6 +111,7 @@ export const CreateBrandProfileInputSchema = z
111
111
 
112
112
  export const UpdateBrandProfileInputSchema = z
113
113
  .object({
114
+ expectedUpdatedAt: z.iso.datetime(),
114
115
  brandName: z.string().min(1).optional().openapi({ example: "Acme Studio" }),
115
116
  links: z
116
117
  .object({
@@ -36,7 +36,8 @@ export const CommentEntitySchema = z.object({
36
36
  example: "2023-10-27T10:00:00.000Z",
37
37
  format: "date-time",
38
38
  }),
39
- isLiked: z.boolean(),
39
+ isLiked: z.boolean().default(false),
40
+ likesCount: z.int().default(0),
40
41
  updatedAt: z.coerce.date().optional().openapi({
41
42
  description: "The date and time the comment was last updated.",
42
43
  example: "2023-10-27T10:05:00.000Z",
@@ -175,6 +175,7 @@ export const CreateCreativeProfileInputSchema = z
175
175
 
176
176
  export const UpdateCreativeProfileInputSchema = z
177
177
  .object({
178
+ expectedUpdatedAt: z.iso.datetime(),
178
179
  experienceLevel: z
179
180
  .enum(EXPERIENCE_LEVELS)
180
181
  .optional()