@zyacreatives/shared 2.1.53 → 2.1.54

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.
@@ -279,9 +279,6 @@ export declare const PostWithLikesEntitySchema: z.ZodObject<{
279
279
  }, z.core.$strip>>;
280
280
  }, z.core.$strip>;
281
281
  export declare const GetPostWithLikesOutputSchema: z.ZodObject<{
282
- id: z.ZodCUID2;
283
- parentId: z.ZodOptional<z.ZodCUID2>;
284
- content: z.ZodOptional<z.ZodString>;
285
282
  likes: z.ZodArray<z.ZodObject<{
286
283
  id: z.ZodCUID2;
287
284
  type: z.ZodEnum<{
@@ -344,9 +341,6 @@ export declare const PostWithBookmarksEntitySchema: z.ZodObject<{
344
341
  }, z.core.$strip>>;
345
342
  }, z.core.$strip>;
346
343
  export declare const GetPostWithBookmarksOutputSchema: z.ZodObject<{
347
- id: z.ZodCUID2;
348
- parentId: z.ZodOptional<z.ZodCUID2>;
349
- content: z.ZodOptional<z.ZodString>;
350
344
  bookmarks: z.ZodArray<z.ZodObject<{
351
345
  id: z.ZodCUID2;
352
346
  type: z.ZodEnum<{
@@ -154,7 +154,8 @@ exports.PostWithLikesEntitySchema = exports.MinimalPostSchema.extend({
154
154
  }).openapi({
155
155
  title: "PostWithPostLikesEntity",
156
156
  });
157
- exports.GetPostWithLikesOutputSchema = exports.PostWithLikesEntitySchema.extend({
157
+ exports.GetPostWithLikesOutputSchema = zod_openapi_1.z.object({
158
+ likes: exports.PostWithLikesEntitySchema.shape.likes,
158
159
  totalFetched: zod_openapi_1.z.number().int(),
159
160
  totalNo: zod_openapi_1.z.number().int(),
160
161
  });
@@ -168,7 +169,8 @@ exports.PostWithBookmarksEntitySchema = exports.MinimalPostSchema.extend({
168
169
  }).openapi({
169
170
  title: "PostWithPostBookmarksEntity",
170
171
  });
171
- exports.GetPostWithBookmarksOutputSchema = exports.PostWithBookmarksEntitySchema.extend({
172
+ exports.GetPostWithBookmarksOutputSchema = zod_openapi_1.z.object({
173
+ bookmarks: exports.PostWithBookmarksEntitySchema.shape.bookmarks,
172
174
  totalFetched: zod_openapi_1.z.number().int(),
173
175
  totalNo: zod_openapi_1.z.number().int(),
174
176
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.53",
3
+ "version": "2.1.54",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -176,7 +176,8 @@ export const PostWithLikesEntitySchema = MinimalPostSchema.extend({
176
176
  title: "PostWithPostLikesEntity",
177
177
  });
178
178
 
179
- export const GetPostWithLikesOutputSchema = PostWithLikesEntitySchema.extend({
179
+ export const GetPostWithLikesOutputSchema = z.object({
180
+ likes: PostWithLikesEntitySchema.shape.likes,
180
181
  totalFetched: z.number().int(),
181
182
  totalNo: z.number().int(),
182
183
  });
@@ -193,11 +194,11 @@ export const PostWithBookmarksEntitySchema = MinimalPostSchema.extend({
193
194
  title: "PostWithPostBookmarksEntity",
194
195
  });
195
196
 
196
- export const GetPostWithBookmarksOutputSchema =
197
- PostWithBookmarksEntitySchema.extend({
198
- totalFetched: z.number().int(),
199
- totalNo: z.number().int(),
200
- });
197
+ export const GetPostWithBookmarksOutputSchema = z.object({
198
+ bookmarks: PostWithBookmarksEntitySchema.shape.bookmarks,
199
+ totalFetched: z.number().int(),
200
+ totalNo: z.number().int(),
201
+ });
201
202
 
202
203
  export const LinkPreviewInputSchema = z.object({
203
204
  url: z.string(),