@zyacreatives/shared 2.1.54 → 2.1.55

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