@zyacreatives/shared 2.1.87 → 2.1.89

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.
@@ -651,13 +651,23 @@ export declare const PostAnalyticsOutputSchema: z.ZodObject<{
651
651
  awareness: z.ZodObject<{
652
652
  reach: z.ZodNumber;
653
653
  impressions: z.ZodNumber;
654
+ visitors: z.ZodNumber;
654
655
  newFollowers: z.ZodNumber;
655
656
  }, z.core.$strip>;
656
657
  engagement: z.ZodObject<{
657
658
  rate: z.ZodNumber;
658
659
  likes: z.ZodNumber;
659
660
  comments: z.ZodNumber;
661
+ linkCopied: z.ZodNumber;
660
662
  bookmarks: z.ZodNumber;
663
+ tagsClicked: z.ZodArray<z.ZodObject<{
664
+ x: z.ZodString;
665
+ y: z.ZodNumber;
666
+ }, z.core.$strip>>;
667
+ platformShares: z.ZodArray<z.ZodObject<{
668
+ x: z.ZodString;
669
+ y: z.ZodNumber;
670
+ }, z.core.$strip>>;
661
671
  }, z.core.$strip>;
662
672
  behavior: z.ZodObject<{
663
673
  viralityScore: z.ZodNumber;
@@ -666,6 +676,8 @@ export declare const PostAnalyticsOutputSchema: z.ZodObject<{
666
676
  sentiment: z.ZodObject<{
667
677
  positive: z.ZodNumber;
668
678
  negative: z.ZodNumber;
679
+ reports: z.ZodNumber;
680
+ notInterested: z.ZodNumber;
669
681
  status: z.ZodEnum<{
670
682
  Healthy: "Healthy";
671
683
  Polarizing: "Polarizing";
@@ -217,17 +217,25 @@ exports.ReportPostInputSchema = zod_openapi_1.z.object({
217
217
  .string()
218
218
  .max(200, { error: "Complaint cannot be longer than 200 characters" }),
219
219
  });
220
+ const AnalyticsChartItemSchema = zod_openapi_1.z.object({
221
+ x: zod_openapi_1.z.string(),
222
+ y: zod_openapi_1.z.number(),
223
+ });
220
224
  exports.PostAnalyticsOutputSchema = zod_openapi_1.z.object({
221
225
  awareness: zod_openapi_1.z.object({
222
226
  reach: zod_openapi_1.z.number(),
223
227
  impressions: zod_openapi_1.z.number(),
228
+ visitors: zod_openapi_1.z.number(),
224
229
  newFollowers: zod_openapi_1.z.number(),
225
230
  }),
226
231
  engagement: zod_openapi_1.z.object({
227
232
  rate: zod_openapi_1.z.number(),
228
233
  likes: zod_openapi_1.z.number(),
229
234
  comments: zod_openapi_1.z.number(),
235
+ linkCopied: zod_openapi_1.z.number(),
230
236
  bookmarks: zod_openapi_1.z.number(),
237
+ tagsClicked: zod_openapi_1.z.array(AnalyticsChartItemSchema),
238
+ platformShares: zod_openapi_1.z.array(AnalyticsChartItemSchema),
231
239
  }),
232
240
  behavior: zod_openapi_1.z.object({
233
241
  viralityScore: zod_openapi_1.z.number(),
@@ -236,6 +244,8 @@ exports.PostAnalyticsOutputSchema = zod_openapi_1.z.object({
236
244
  sentiment: zod_openapi_1.z.object({
237
245
  positive: zod_openapi_1.z.number(),
238
246
  negative: zod_openapi_1.z.number(),
247
+ reports: zod_openapi_1.z.number(),
248
+ notInterested: zod_openapi_1.z.number(),
239
249
  status: zod_openapi_1.z.enum(["Healthy", "Polarizing"]),
240
250
  }),
241
251
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.87",
3
+ "version": "2.1.89",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -465,7 +465,6 @@ export const ANALYTICS_EVENTS = {
465
465
  SHARE_FACEBOOK: "post_shared_facebook",
466
466
  SHARE_LINKEDIN: "post_shared_linkedin",
467
467
  SHARE_INSTAGRAM: "post_shared_instagram",
468
-
469
468
  DM_CLICK: "post_dm_click",
470
469
  FOLLOW: "post_creator_follow",
471
470
  UNFOLLOW: "post_creator_unfollow",
@@ -254,17 +254,26 @@ export const ReportPostInputSchema = z.object({
254
254
  .max(200, { error: "Complaint cannot be longer than 200 characters" }),
255
255
  });
256
256
 
257
+ const AnalyticsChartItemSchema = z.object({
258
+ x: z.string(),
259
+ y: z.number(),
260
+ });
261
+
257
262
  export const PostAnalyticsOutputSchema = z.object({
258
263
  awareness: z.object({
259
264
  reach: z.number(),
260
265
  impressions: z.number(),
266
+ visitors: z.number(),
261
267
  newFollowers: z.number(),
262
268
  }),
263
269
  engagement: z.object({
264
270
  rate: z.number(),
265
271
  likes: z.number(),
266
272
  comments: z.number(),
273
+ linkCopied: z.number(),
267
274
  bookmarks: z.number(),
275
+ tagsClicked: z.array(AnalyticsChartItemSchema),
276
+ platformShares: z.array(AnalyticsChartItemSchema),
268
277
  }),
269
278
  behavior: z.object({
270
279
  viralityScore: z.number(),
@@ -273,6 +282,8 @@ export const PostAnalyticsOutputSchema = z.object({
273
282
  sentiment: z.object({
274
283
  positive: z.number(),
275
284
  negative: z.number(),
285
+ reports: z.number(),
286
+ notInterested: z.number(),
276
287
  status: z.enum(["Healthy", "Polarizing"]),
277
288
  }),
278
289
  }),