@zyacreatives/shared 2.1.67 → 2.1.68

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.
@@ -276,6 +276,8 @@ export declare const PostWithLikesEntitySchema: z.ZodObject<{
276
276
  actorId: z.ZodString;
277
277
  actorUsername: z.ZodString;
278
278
  actorImageUrl: z.ZodOptional<z.ZodURL>;
279
+ followsYou: z.ZodOptional<z.ZodBoolean>;
280
+ isFollowing: z.ZodOptional<z.ZodBoolean>;
279
281
  }, z.core.$strip>>;
280
282
  }, z.core.$strip>;
281
283
  export declare const GetPostWithLikesOutputSchema: z.ZodObject<{
@@ -295,6 +297,8 @@ export declare const GetPostWithLikesOutputSchema: z.ZodObject<{
295
297
  actorId: z.ZodString;
296
298
  actorUsername: z.ZodString;
297
299
  actorImageUrl: z.ZodOptional<z.ZodURL>;
300
+ followsYou: z.ZodOptional<z.ZodBoolean>;
301
+ isFollowing: z.ZodOptional<z.ZodBoolean>;
298
302
  }, z.core.$strip>>;
299
303
  totalNo: z.ZodNumber;
300
304
  }, z.core.$strip>;
@@ -158,7 +158,10 @@ exports.MinimalPostSchema = exports.PostEntitySchema.pick({
158
158
  content: true,
159
159
  });
160
160
  exports.PostWithLikesEntitySchema = exports.MinimalPostSchema.extend({
161
- likes: zod_openapi_1.z.array(activity_1.ActivitySchema),
161
+ likes: zod_openapi_1.z.array(activity_1.ActivitySchema.extend({
162
+ followsYou: zod_openapi_1.z.boolean().optional(),
163
+ isFollowing: zod_openapi_1.z.boolean().optional(),
164
+ })),
162
165
  }).openapi({
163
166
  title: "PostWithPostLikesEntity",
164
167
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.67",
3
+ "version": "2.1.68",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -179,7 +179,12 @@ export const MinimalPostSchema = PostEntitySchema.pick({
179
179
  });
180
180
 
181
181
  export const PostWithLikesEntitySchema = MinimalPostSchema.extend({
182
- likes: z.array(ActivitySchema),
182
+ likes: z.array(
183
+ ActivitySchema.extend({
184
+ followsYou: z.boolean().optional(),
185
+ isFollowing: z.boolean().optional(),
186
+ }),
187
+ ),
183
188
  }).openapi({
184
189
  title: "PostWithPostLikesEntity",
185
190
  });