@zyacreatives/shared 2.1.58 → 2.1.59

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