@zyacreatives/shared 2.0.34 → 2.0.36

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.
@@ -322,6 +322,8 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
322
322
  commentsCount: z.ZodNumber;
323
323
  }, z.core.$strip>;
324
324
  score: z.ZodNumber;
325
+ isLiked: z.ZodOptional<z.ZodBoolean>;
326
+ isBookmarked: z.ZodOptional<z.ZodBoolean>;
325
327
  }, z.core.$strip>;
326
328
  export declare const GetFeedInputSchema: z.ZodObject<{
327
329
  limit: z.ZodOptional<z.ZodNumber>;
@@ -383,4 +385,6 @@ export declare const GetFeedOutputSchema: z.ZodArray<z.ZodObject<{
383
385
  commentsCount: z.ZodNumber;
384
386
  }, z.core.$strip>;
385
387
  score: z.ZodNumber;
388
+ isLiked: z.ZodOptional<z.ZodBoolean>;
389
+ isBookmarked: z.ZodOptional<z.ZodBoolean>;
386
390
  }, z.core.$strip>>;
@@ -154,6 +154,8 @@ exports.LinkPreviewOutputSchema = zod_openapi_1.z.object({
154
154
  exports.FeedPostEntitySchema = exports.PostWithFilesEntitySchema.extend({
155
155
  stats: entity_stats_1.EntityStatsSchema,
156
156
  score: zod_openapi_1.z.number(),
157
+ isLiked: zod_openapi_1.z.boolean().optional(),
158
+ isBookmarked: zod_openapi_1.z.boolean().optional()
157
159
  });
158
160
  exports.GetFeedInputSchema = zod_openapi_1.z.object({
159
161
  limit: zod_openapi_1.z.number().optional(),
@@ -1,3 +1,5 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import { CommentEntitySchema } from "../schemas/comment";
2
+ import { CommentEntitySchema, CommentInputSchema, CommentOutputSchema } from "../schemas/comment";
3
3
  export type CommentEntity = z.infer<typeof CommentEntitySchema>;
4
+ export type CommentInput = z.infer<typeof CommentInputSchema>;
5
+ export type CommentOutput = z.infer<typeof CommentOutputSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.34",
3
+ "version": "2.0.36",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -169,6 +169,8 @@ export const LinkPreviewOutputSchema = z.object({
169
169
  export const FeedPostEntitySchema = PostWithFilesEntitySchema.extend({
170
170
  stats: EntityStatsSchema,
171
171
  score: z.number(),
172
+ isLiked: z.boolean().optional(),
173
+ isBookmarked: z.boolean().optional()
172
174
  });
173
175
 
174
176
  export const GetFeedInputSchema = z.object({
@@ -1,4 +1,12 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import { CommentEntitySchema } from "../schemas/comment";
2
+ import {
3
+ CommentEntitySchema,
4
+ CommentInputSchema,
5
+ CommentOutputSchema,
6
+ } from "../schemas/comment";
3
7
 
4
8
  export type CommentEntity = z.infer<typeof CommentEntitySchema>;
9
+
10
+ export type CommentInput = z.infer<typeof CommentInputSchema>;
11
+
12
+ export type CommentOutput = z.infer<typeof CommentOutputSchema>;