@zyacreatives/shared 2.1.87 → 2.1.88
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.
- package/dist/schemas/post.d.ts +11 -0
- package/dist/schemas/post.js +9 -0
- package/package.json +1 -1
- package/src/constants.ts +0 -1
- package/src/schemas/post.ts +10 -0
package/dist/schemas/post.d.ts
CHANGED
|
@@ -651,6 +651,7 @@ 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<{
|
|
@@ -658,6 +659,14 @@ export declare const PostAnalyticsOutputSchema: z.ZodObject<{
|
|
|
658
659
|
likes: z.ZodNumber;
|
|
659
660
|
comments: z.ZodNumber;
|
|
660
661
|
bookmarks: z.ZodNumber;
|
|
662
|
+
tagsClicked: z.ZodArray<z.ZodObject<{
|
|
663
|
+
x: z.ZodString;
|
|
664
|
+
y: z.ZodNumber;
|
|
665
|
+
}, z.core.$strip>>;
|
|
666
|
+
platformShares: z.ZodArray<z.ZodObject<{
|
|
667
|
+
x: z.ZodString;
|
|
668
|
+
y: z.ZodNumber;
|
|
669
|
+
}, z.core.$strip>>;
|
|
661
670
|
}, z.core.$strip>;
|
|
662
671
|
behavior: z.ZodObject<{
|
|
663
672
|
viralityScore: z.ZodNumber;
|
|
@@ -666,6 +675,8 @@ export declare const PostAnalyticsOutputSchema: z.ZodObject<{
|
|
|
666
675
|
sentiment: z.ZodObject<{
|
|
667
676
|
positive: z.ZodNumber;
|
|
668
677
|
negative: z.ZodNumber;
|
|
678
|
+
reports: z.ZodNumber;
|
|
679
|
+
notInterested: z.ZodNumber;
|
|
669
680
|
status: z.ZodEnum<{
|
|
670
681
|
Healthy: "Healthy";
|
|
671
682
|
Polarizing: "Polarizing";
|
package/dist/schemas/post.js
CHANGED
|
@@ -217,10 +217,15 @@ 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({
|
|
@@ -228,6 +233,8 @@ exports.PostAnalyticsOutputSchema = zod_openapi_1.z.object({
|
|
|
228
233
|
likes: zod_openapi_1.z.number(),
|
|
229
234
|
comments: zod_openapi_1.z.number(),
|
|
230
235
|
bookmarks: zod_openapi_1.z.number(),
|
|
236
|
+
tagsClicked: zod_openapi_1.z.array(AnalyticsChartItemSchema),
|
|
237
|
+
platformShares: zod_openapi_1.z.array(AnalyticsChartItemSchema),
|
|
231
238
|
}),
|
|
232
239
|
behavior: zod_openapi_1.z.object({
|
|
233
240
|
viralityScore: zod_openapi_1.z.number(),
|
|
@@ -236,6 +243,8 @@ exports.PostAnalyticsOutputSchema = zod_openapi_1.z.object({
|
|
|
236
243
|
sentiment: zod_openapi_1.z.object({
|
|
237
244
|
positive: zod_openapi_1.z.number(),
|
|
238
245
|
negative: zod_openapi_1.z.number(),
|
|
246
|
+
reports: zod_openapi_1.z.number(),
|
|
247
|
+
notInterested: zod_openapi_1.z.number(),
|
|
239
248
|
status: zod_openapi_1.z.enum(["Healthy", "Polarizing"]),
|
|
240
249
|
}),
|
|
241
250
|
}),
|
package/package.json
CHANGED
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",
|
package/src/schemas/post.ts
CHANGED
|
@@ -254,10 +254,16 @@ 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({
|
|
@@ -265,6 +271,8 @@ export const PostAnalyticsOutputSchema = z.object({
|
|
|
265
271
|
likes: z.number(),
|
|
266
272
|
comments: z.number(),
|
|
267
273
|
bookmarks: z.number(),
|
|
274
|
+
tagsClicked: z.array(AnalyticsChartItemSchema),
|
|
275
|
+
platformShares: z.array(AnalyticsChartItemSchema),
|
|
268
276
|
}),
|
|
269
277
|
behavior: z.object({
|
|
270
278
|
viralityScore: z.number(),
|
|
@@ -273,6 +281,8 @@ export const PostAnalyticsOutputSchema = z.object({
|
|
|
273
281
|
sentiment: z.object({
|
|
274
282
|
positive: z.number(),
|
|
275
283
|
negative: z.number(),
|
|
284
|
+
reports: z.number(),
|
|
285
|
+
notInterested: z.number(),
|
|
276
286
|
status: z.enum(["Healthy", "Polarizing"]),
|
|
277
287
|
}),
|
|
278
288
|
}),
|