@zyacreatives/shared 2.1.85 → 2.1.87

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 (56) hide show
  1. package/README.md +1 -1
  2. package/dist/constants.d.ts +5 -2
  3. package/dist/constants.js +5 -2
  4. package/package.json +1 -1
  5. package/src/constants.ts +487 -483
  6. package/src/index.ts +4 -4
  7. package/src/schemas/activity.ts +14 -14
  8. package/src/schemas/auth.ts +43 -43
  9. package/src/schemas/bookmark.ts +38 -38
  10. package/src/schemas/brand.ts +146 -146
  11. package/src/schemas/chat.ts +31 -31
  12. package/src/schemas/comment.ts +60 -60
  13. package/src/schemas/common.ts +22 -22
  14. package/src/schemas/creative.ts +222 -222
  15. package/src/schemas/discipline.ts +88 -88
  16. package/src/schemas/entity-stats.ts +43 -43
  17. package/src/schemas/feed.ts +11 -11
  18. package/src/schemas/file.ts +61 -61
  19. package/src/schemas/index.ts +21 -21
  20. package/src/schemas/investor.ts +211 -211
  21. package/src/schemas/job-application.ts +257 -257
  22. package/src/schemas/job.ts +364 -364
  23. package/src/schemas/like.ts +38 -38
  24. package/src/schemas/message.ts +112 -112
  25. package/src/schemas/notification.ts +71 -71
  26. package/src/schemas/post.ts +279 -279
  27. package/src/schemas/project.ts +298 -298
  28. package/src/schemas/user-strike.ts +21 -21
  29. package/src/schemas/user.ts +283 -283
  30. package/src/schemas/username.ts +11 -11
  31. package/src/schemas/view.ts +50 -50
  32. package/src/types/auth.ts +5 -5
  33. package/src/types/bookmark.ts +4 -4
  34. package/src/types/brand.ts +37 -37
  35. package/src/types/chat.ts +21 -21
  36. package/src/types/comment.ts +12 -12
  37. package/src/types/common.ts +9 -9
  38. package/src/types/creative.ts +33 -33
  39. package/src/types/discipline.ts +32 -32
  40. package/src/types/entity-stats.ts +4 -4
  41. package/src/types/feed.ts +5 -5
  42. package/src/types/file.ts +39 -39
  43. package/src/types/index.ts +22 -22
  44. package/src/types/investor.ts +34 -34
  45. package/src/types/job-application.ts +41 -41
  46. package/src/types/job.ts +71 -71
  47. package/src/types/like.ts +3 -3
  48. package/src/types/message.ts +23 -23
  49. package/src/types/notification.ts +34 -34
  50. package/src/types/post.ts +63 -63
  51. package/src/types/project.ts +65 -65
  52. package/src/types/user-strike.ts +10 -10
  53. package/src/types/user.ts +96 -96
  54. package/src/types/username.ts +4 -4
  55. package/src/utils/slugify.ts +10 -10
  56. package/tsconfig.json +13 -13
package/README.md CHANGED
@@ -1 +1 @@
1
- # shared
1
+ # shared
@@ -346,7 +346,7 @@ export declare const ANALYTICS_EVENTS: {
346
346
  readonly LIKE: "post_like";
347
347
  readonly BOOKMARK: "post_bookmark";
348
348
  readonly VIEW_LIKES_LIST: "post_view_likes_list";
349
- readonly TAG_CLICK: "post_tag_click";
349
+ readonly TAG_CLICK: (tag: string) => string;
350
350
  readonly LINK_PREVIEW_CLICK: "post_link_preview_click";
351
351
  readonly MEDIA_EXPAND: "post_media_expand";
352
352
  readonly LIGHTBOX_NAV: "post_lightbox_nav";
@@ -354,7 +354,10 @@ export declare const ANALYTICS_EVENTS: {
354
354
  readonly VIDEO_VIEW: "post_video_view";
355
355
  readonly SHARE_MENU_OPEN: "post_share_menu_open";
356
356
  readonly LINK_COPIED: "post_link_copied";
357
- readonly EXTERNAL_SHARE: "post_external_share";
357
+ readonly SHARE_TWITTER: "post_shared_twitter";
358
+ readonly SHARE_FACEBOOK: "post_shared_facebook";
359
+ readonly SHARE_LINKEDIN: "post_shared_linkedin";
360
+ readonly SHARE_INSTAGRAM: "post_shared_instagram";
358
361
  readonly DM_CLICK: "post_dm_click";
359
362
  readonly FOLLOW: "post_creator_follow";
360
363
  readonly UNFOLLOW: "post_creator_unfollow";
package/dist/constants.js CHANGED
@@ -383,7 +383,7 @@ exports.ANALYTICS_EVENTS = {
383
383
  LIKE: "post_like",
384
384
  BOOKMARK: "post_bookmark",
385
385
  VIEW_LIKES_LIST: "post_view_likes_list",
386
- TAG_CLICK: "post_tag_click",
386
+ TAG_CLICK: (tag) => `post_tag_click_${tag}`,
387
387
  LINK_PREVIEW_CLICK: "post_link_preview_click",
388
388
  MEDIA_EXPAND: "post_media_expand",
389
389
  LIGHTBOX_NAV: "post_lightbox_nav",
@@ -391,7 +391,10 @@ exports.ANALYTICS_EVENTS = {
391
391
  VIDEO_VIEW: "post_video_view",
392
392
  SHARE_MENU_OPEN: "post_share_menu_open",
393
393
  LINK_COPIED: "post_link_copied",
394
- EXTERNAL_SHARE: "post_external_share",
394
+ SHARE_TWITTER: "post_shared_twitter",
395
+ SHARE_FACEBOOK: "post_shared_facebook",
396
+ SHARE_LINKEDIN: "post_shared_linkedin",
397
+ SHARE_INSTAGRAM: "post_shared_instagram",
395
398
  DM_CLICK: "post_dm_click",
396
399
  FOLLOW: "post_creator_follow",
397
400
  UNFOLLOW: "post_creator_unfollow",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.85",
3
+ "version": "2.1.87",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",