@zyacreatives/shared 2.1.55 → 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.
@@ -296,7 +296,6 @@ export declare const GetPostWithLikesOutputSchema: z.ZodObject<{
296
296
  actorUsername: z.ZodString;
297
297
  actorImageUrl: z.ZodOptional<z.ZodURL>;
298
298
  }, z.core.$strip>>;
299
- totalFetched: z.ZodNumber;
300
299
  totalNo: z.ZodNumber;
301
300
  }, z.core.$strip>;
302
301
  export declare const PostWithCommentsEntitySchema: z.ZodObject<{
@@ -322,6 +321,7 @@ export declare const PostWithCommentsEntitySchema: z.ZodObject<{
322
321
  replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
323
322
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
324
323
  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<{
@@ -361,7 +361,6 @@ export declare const GetPostWithBookmarksOutputSchema: z.ZodObject<{
361
361
  actorUsername: z.ZodString;
362
362
  actorImageUrl: z.ZodOptional<z.ZodURL>;
363
363
  }, z.core.$strip>>;
364
- totalFetched: z.ZodNumber;
365
364
  totalNo: z.ZodNumber;
366
365
  }, z.core.$strip>;
367
366
  export declare const LinkPreviewInputSchema: z.ZodObject<{
@@ -155,11 +155,12 @@ exports.PostWithLikesEntitySchema = exports.MinimalPostSchema.extend({
155
155
  title: "PostWithPostLikesEntity",
156
156
  });
157
157
  exports.GetPostWithLikesOutputSchema = exports.PostWithLikesEntitySchema.extend({
158
- totalFetched: zod_openapi_1.z.number().int(),
159
158
  totalNo: zod_openapi_1.z.number().int(),
160
159
  });
161
160
  exports.PostWithCommentsEntitySchema = exports.MinimalPostSchema.extend({
162
- 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
+ })),
163
164
  }).openapi({
164
165
  title: "PostWithPostCommentsEntity",
165
166
  });
@@ -169,7 +170,6 @@ exports.PostWithBookmarksEntitySchema = exports.MinimalPostSchema.extend({
169
170
  title: "PostWithPostBookmarksEntity",
170
171
  });
171
172
  exports.GetPostWithBookmarksOutputSchema = exports.PostWithBookmarksEntitySchema.extend({
172
- totalFetched: zod_openapi_1.z.number().int(),
173
173
  totalNo: zod_openapi_1.z.number().int(),
174
174
  });
175
175
  exports.LinkPreviewInputSchema = zod_openapi_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.55",
3
+ "version": "2.1.57",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -177,12 +177,15 @@ export const PostWithLikesEntitySchema = MinimalPostSchema.extend({
177
177
  });
178
178
 
179
179
  export const GetPostWithLikesOutputSchema = PostWithLikesEntitySchema.extend({
180
- totalFetched: z.number().int(),
181
180
  totalNo: z.number().int(),
182
181
  });
183
182
 
184
183
  export const PostWithCommentsEntitySchema = MinimalPostSchema.extend({
185
- comments: z.array(CommentEntitySchema),
184
+ comments: z.array(
185
+ CommentEntitySchema.extend({
186
+ isLiked: z.boolean().default(false),
187
+ })
188
+ ),
186
189
  }).openapi({
187
190
  title: "PostWithPostCommentsEntity",
188
191
  });
@@ -195,7 +198,6 @@ export const PostWithBookmarksEntitySchema = MinimalPostSchema.extend({
195
198
 
196
199
  export const GetPostWithBookmarksOutputSchema =
197
200
  PostWithBookmarksEntitySchema.extend({
198
- totalFetched: z.number().int(),
199
201
  totalNo: z.number().int(),
200
202
  });
201
203