@zyacreatives/shared 2.1.84 → 2.1.86

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.
Files changed (57) hide show
  1. package/README.md +1 -1
  2. package/dist/schemas/post.d.ts +26 -0
  3. package/dist/schemas/post.js +24 -1
  4. package/dist/types/post.d.ts +2 -1
  5. package/package.json +1 -1
  6. package/src/constants.ts +483 -483
  7. package/src/index.ts +4 -4
  8. package/src/schemas/activity.ts +14 -14
  9. package/src/schemas/auth.ts +43 -43
  10. package/src/schemas/bookmark.ts +38 -38
  11. package/src/schemas/brand.ts +146 -146
  12. package/src/schemas/chat.ts +31 -31
  13. package/src/schemas/comment.ts +60 -60
  14. package/src/schemas/common.ts +22 -22
  15. package/src/schemas/creative.ts +222 -222
  16. package/src/schemas/discipline.ts +88 -88
  17. package/src/schemas/entity-stats.ts +43 -43
  18. package/src/schemas/feed.ts +11 -11
  19. package/src/schemas/file.ts +61 -61
  20. package/src/schemas/index.ts +21 -21
  21. package/src/schemas/investor.ts +211 -211
  22. package/src/schemas/job-application.ts +257 -257
  23. package/src/schemas/job.ts +364 -364
  24. package/src/schemas/like.ts +38 -38
  25. package/src/schemas/message.ts +112 -112
  26. package/src/schemas/notification.ts +71 -71
  27. package/src/schemas/post.ts +279 -255
  28. package/src/schemas/project.ts +298 -298
  29. package/src/schemas/user-strike.ts +21 -21
  30. package/src/schemas/user.ts +283 -283
  31. package/src/schemas/username.ts +11 -11
  32. package/src/schemas/view.ts +50 -50
  33. package/src/types/auth.ts +5 -5
  34. package/src/types/bookmark.ts +4 -4
  35. package/src/types/brand.ts +37 -37
  36. package/src/types/chat.ts +21 -21
  37. package/src/types/comment.ts +12 -12
  38. package/src/types/common.ts +9 -9
  39. package/src/types/creative.ts +33 -33
  40. package/src/types/discipline.ts +32 -32
  41. package/src/types/entity-stats.ts +4 -4
  42. package/src/types/feed.ts +5 -5
  43. package/src/types/file.ts +39 -39
  44. package/src/types/index.ts +22 -22
  45. package/src/types/investor.ts +34 -34
  46. package/src/types/job-application.ts +41 -41
  47. package/src/types/job.ts +71 -71
  48. package/src/types/like.ts +3 -3
  49. package/src/types/message.ts +23 -23
  50. package/src/types/notification.ts +34 -34
  51. package/src/types/post.ts +63 -60
  52. package/src/types/project.ts +65 -65
  53. package/src/types/user-strike.ts +10 -10
  54. package/src/types/user.ts +96 -96
  55. package/src/types/username.ts +4 -4
  56. package/src/utils/slugify.ts +10 -10
  57. package/tsconfig.json +13 -13
package/README.md CHANGED
@@ -1 +1 @@
1
- # shared
1
+ # shared
@@ -647,3 +647,29 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
647
647
  export declare const ReportPostInputSchema: z.ZodObject<{
648
648
  complaint: z.ZodString;
649
649
  }, z.core.$strip>;
650
+ export declare const PostAnalyticsOutputSchema: z.ZodObject<{
651
+ awareness: z.ZodObject<{
652
+ reach: z.ZodNumber;
653
+ impressions: z.ZodNumber;
654
+ newFollowers: z.ZodNumber;
655
+ }, z.core.$strip>;
656
+ engagement: z.ZodObject<{
657
+ rate: z.ZodNumber;
658
+ likes: z.ZodNumber;
659
+ comments: z.ZodNumber;
660
+ bookmarks: z.ZodNumber;
661
+ }, z.core.$strip>;
662
+ behavior: z.ZodObject<{
663
+ viralityScore: z.ZodNumber;
664
+ frictionRatio: z.ZodNumber;
665
+ consumptionDepth: z.ZodNumber;
666
+ sentiment: z.ZodObject<{
667
+ positive: z.ZodNumber;
668
+ negative: z.ZodNumber;
669
+ status: z.ZodEnum<{
670
+ Healthy: "Healthy";
671
+ Polarizing: "Polarizing";
672
+ }>;
673
+ }, z.core.$strip>;
674
+ }, z.core.$strip>;
675
+ }, z.core.$strip>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReportPostInputSchema = exports.SearchPostOutputSchema = exports.SearchPostInputSchema = exports.GetFeedOutputSchema = exports.GetFeedInputSchema = exports.FeedPostEntitySchema = exports.LinkPreviewOutputSchema = exports.LinkPreviewInputSchema = exports.GetPostWithBookmarksOutputSchema = exports.PostWithBookmarksEntitySchema = exports.GetPostWithCommentsOutputSchema = exports.PostWithCommentsEntitySchema = exports.GetPostWithLikesOutputSchema = exports.PostWithLikesEntitySchema = exports.MinimalPostSchema = exports.PostIdSchema = exports.GetPostOutputSchema = exports.CreatePostOutputSchema = exports.CreatePostInputSchema = exports.PostWithFilesEntitySchema = exports.PostFileEntitySchema = exports.PostEntitySchema = void 0;
3
+ exports.PostAnalyticsOutputSchema = exports.ReportPostInputSchema = exports.SearchPostOutputSchema = exports.SearchPostInputSchema = exports.GetFeedOutputSchema = exports.GetFeedInputSchema = exports.FeedPostEntitySchema = exports.LinkPreviewOutputSchema = exports.LinkPreviewInputSchema = exports.GetPostWithBookmarksOutputSchema = exports.PostWithBookmarksEntitySchema = exports.GetPostWithCommentsOutputSchema = exports.PostWithCommentsEntitySchema = exports.GetPostWithLikesOutputSchema = exports.PostWithLikesEntitySchema = exports.MinimalPostSchema = exports.PostIdSchema = exports.GetPostOutputSchema = exports.CreatePostOutputSchema = exports.CreatePostInputSchema = exports.PostWithFilesEntitySchema = exports.PostFileEntitySchema = exports.PostEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  const file_1 = require("./file");
@@ -217,3 +217,26 @@ 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
+ exports.PostAnalyticsOutputSchema = zod_openapi_1.z.object({
221
+ awareness: zod_openapi_1.z.object({
222
+ reach: zod_openapi_1.z.number(),
223
+ impressions: zod_openapi_1.z.number(),
224
+ newFollowers: zod_openapi_1.z.number(),
225
+ }),
226
+ engagement: zod_openapi_1.z.object({
227
+ rate: zod_openapi_1.z.number(),
228
+ likes: zod_openapi_1.z.number(),
229
+ comments: zod_openapi_1.z.number(),
230
+ bookmarks: zod_openapi_1.z.number(),
231
+ }),
232
+ behavior: zod_openapi_1.z.object({
233
+ viralityScore: zod_openapi_1.z.number(),
234
+ frictionRatio: zod_openapi_1.z.number(),
235
+ consumptionDepth: zod_openapi_1.z.number(),
236
+ sentiment: zod_openapi_1.z.object({
237
+ positive: zod_openapi_1.z.number(),
238
+ negative: zod_openapi_1.z.number(),
239
+ status: zod_openapi_1.z.enum(["Healthy", "Polarizing"]),
240
+ }),
241
+ }),
242
+ });
@@ -1,5 +1,5 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import { CreatePostInputSchema, CreatePostOutputSchema, FeedPostEntitySchema, GetFeedInputSchema, GetFeedOutputSchema, GetPostOutputSchema, GetPostWithBookmarksOutputSchema, GetPostWithCommentsOutputSchema, GetPostWithLikesOutputSchema, LinkPreviewInputSchema, LinkPreviewOutputSchema, PostEntitySchema, PostFileEntitySchema, PostIdSchema, PostWithBookmarksEntitySchema, PostWithCommentsEntitySchema, PostWithFilesEntitySchema, PostWithLikesEntitySchema, ReportPostInputSchema, SearchPostInputSchema, SearchPostOutputSchema } from "../schemas/post";
2
+ import { CreatePostInputSchema, CreatePostOutputSchema, FeedPostEntitySchema, GetFeedInputSchema, GetFeedOutputSchema, GetPostOutputSchema, GetPostWithBookmarksOutputSchema, GetPostWithCommentsOutputSchema, GetPostWithLikesOutputSchema, LinkPreviewInputSchema, LinkPreviewOutputSchema, PostAnalyticsOutputSchema, PostEntitySchema, PostFileEntitySchema, PostIdSchema, PostWithBookmarksEntitySchema, PostWithCommentsEntitySchema, PostWithFilesEntitySchema, PostWithLikesEntitySchema, ReportPostInputSchema, SearchPostInputSchema, SearchPostOutputSchema } from "../schemas/post";
3
3
  export type PostEntity = z.infer<typeof PostEntitySchema>;
4
4
  export type PostFileEntity = z.infer<typeof PostFileEntitySchema>;
5
5
  export type PostWithFilesEntity = z.infer<typeof PostWithFilesEntitySchema>;
@@ -21,3 +21,4 @@ export type GetPostWithLikesOutput = z.infer<typeof GetPostWithLikesOutputSchema
21
21
  export type GetPostWithCommentsOutput = z.infer<typeof GetPostWithCommentsOutputSchema>;
22
22
  export type GetPostWithBookmarksOutput = z.infer<typeof GetPostWithBookmarksOutputSchema>;
23
23
  export type ReportPostInput = z.infer<typeof ReportPostInputSchema>;
24
+ export type PostAnalyticsOutput = z.infer<typeof PostAnalyticsOutputSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.84",
3
+ "version": "2.1.86",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",