@zyacreatives/shared 2.1.56 → 2.1.57

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.
@@ -321,6 +321,7 @@ export declare const PostWithCommentsEntitySchema: z.ZodObject<{
321
321
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
322
322
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
323
323
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
324
+ isLiked: z.ZodDefault<z.ZodBoolean>;
324
325
  }, z.core.$strip>>;
325
326
  }, z.core.$strip>;
326
327
  export declare const PostWithBookmarksEntitySchema: z.ZodObject<{
@@ -158,7 +158,9 @@ exports.GetPostWithLikesOutputSchema = exports.PostWithLikesEntitySchema.extend(
158
158
  totalNo: zod_openapi_1.z.number().int(),
159
159
  });
160
160
  exports.PostWithCommentsEntitySchema = exports.MinimalPostSchema.extend({
161
- comments: zod_openapi_1.z.array(comment_1.CommentEntitySchema),
161
+ comments: zod_openapi_1.z.array(comment_1.CommentEntitySchema.extend({
162
+ isLiked: zod_openapi_1.z.boolean().default(false),
163
+ })),
162
164
  }).openapi({
163
165
  title: "PostWithPostCommentsEntity",
164
166
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.56",
3
+ "version": "2.1.57",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -181,7 +181,11 @@ export const GetPostWithLikesOutputSchema = PostWithLikesEntitySchema.extend({
181
181
  });
182
182
 
183
183
  export const PostWithCommentsEntitySchema = MinimalPostSchema.extend({
184
- comments: z.array(CommentEntitySchema),
184
+ comments: z.array(
185
+ CommentEntitySchema.extend({
186
+ isLiked: z.boolean().default(false),
187
+ })
188
+ ),
185
189
  }).openapi({
186
190
  title: "PostWithPostCommentsEntity",
187
191
  });