@wix/auto_sdk_blog_posts 1.0.55 → 1.0.56

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.
@@ -169,6 +169,23 @@ interface Post {
169
169
  */
170
170
  referenceId?: string | null;
171
171
  }
172
+ interface PostCountInfo {
173
+ /**
174
+ * Total number of post comments
175
+ * @readonly
176
+ */
177
+ comments?: number;
178
+ /**
179
+ * Total number of post likes
180
+ * @readonly
181
+ */
182
+ likes?: number;
183
+ /**
184
+ * Total number of post views
185
+ * @readonly
186
+ */
187
+ views?: number;
188
+ }
172
189
  interface FocalPoint {
173
190
  /** X-coordinate of the focal point. */
174
191
  x?: number;
@@ -2030,6 +2047,66 @@ interface ScheduledPostPublished {
2030
2047
  */
2031
2048
  postId?: string;
2032
2049
  }
2050
+ interface PostLiked extends PostLikedInitiatorOneOf {
2051
+ /**
2052
+ * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2053
+ * @format GUID
2054
+ */
2055
+ memberId?: string | null;
2056
+ /**
2057
+ * Visitor ID of person who liked the post when they are not logged in.
2058
+ * @format GUID
2059
+ */
2060
+ anonymousVisitorId?: string | null;
2061
+ /**
2062
+ * ID of the liked post.
2063
+ * @format GUID
2064
+ */
2065
+ postId?: string;
2066
+ }
2067
+ /** @oneof */
2068
+ interface PostLikedInitiatorOneOf {
2069
+ /**
2070
+ * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2071
+ * @format GUID
2072
+ */
2073
+ memberId?: string | null;
2074
+ /**
2075
+ * Visitor ID of person who liked the post when they are not logged in.
2076
+ * @format GUID
2077
+ */
2078
+ anonymousVisitorId?: string | null;
2079
+ }
2080
+ interface PostUnliked extends PostUnlikedInitiatorOneOf {
2081
+ /**
2082
+ * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2083
+ * @format GUID
2084
+ */
2085
+ memberId?: string | null;
2086
+ /**
2087
+ * Visitor ID of person who unliked the post when they are not logged in.
2088
+ * @format GUID
2089
+ */
2090
+ anonymousVisitorId?: string | null;
2091
+ /**
2092
+ * ID of the unliked post.
2093
+ * @format GUID
2094
+ */
2095
+ postId?: string;
2096
+ }
2097
+ /** @oneof */
2098
+ interface PostUnlikedInitiatorOneOf {
2099
+ /**
2100
+ * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2101
+ * @format GUID
2102
+ */
2103
+ memberId?: string | null;
2104
+ /**
2105
+ * Visitor ID of person who unliked the post when they are not logged in.
2106
+ * @format GUID
2107
+ */
2108
+ anonymousVisitorId?: string | null;
2109
+ }
2033
2110
  /** Get Blog Publications Count Stats request */
2034
2111
  interface QueryPublicationsCountStatsRequest {
2035
2112
  /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
@@ -2731,66 +2808,6 @@ interface GetTotalLikesPerMemberResponse {
2731
2808
  /** The total number of likes of the member. */
2732
2809
  total?: number;
2733
2810
  }
2734
- interface PostLiked extends PostLikedInitiatorOneOf {
2735
- /**
2736
- * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2737
- * @format GUID
2738
- */
2739
- memberId?: string | null;
2740
- /**
2741
- * Visitor ID of person who liked the post when they are not logged in.
2742
- * @format GUID
2743
- */
2744
- anonymousVisitorId?: string | null;
2745
- /**
2746
- * ID of the liked post.
2747
- * @format GUID
2748
- */
2749
- postId?: string;
2750
- }
2751
- /** @oneof */
2752
- interface PostLikedInitiatorOneOf {
2753
- /**
2754
- * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2755
- * @format GUID
2756
- */
2757
- memberId?: string | null;
2758
- /**
2759
- * Visitor ID of person who liked the post when they are not logged in.
2760
- * @format GUID
2761
- */
2762
- anonymousVisitorId?: string | null;
2763
- }
2764
- interface PostUnliked extends PostUnlikedInitiatorOneOf {
2765
- /**
2766
- * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2767
- * @format GUID
2768
- */
2769
- memberId?: string | null;
2770
- /**
2771
- * Visitor ID of person who unliked the post when they are not logged in.
2772
- * @format GUID
2773
- */
2774
- anonymousVisitorId?: string | null;
2775
- /**
2776
- * ID of the unliked post.
2777
- * @format GUID
2778
- */
2779
- postId?: string;
2780
- }
2781
- /** @oneof */
2782
- interface PostUnlikedInitiatorOneOf {
2783
- /**
2784
- * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2785
- * @format GUID
2786
- */
2787
- memberId?: string | null;
2788
- /**
2789
- * Visitor ID of person who unliked the post when they are not logged in.
2790
- * @format GUID
2791
- */
2792
- anonymousVisitorId?: string | null;
2793
- }
2794
2811
  interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
2795
2812
  /**
2796
2813
  * Member ID of person who triggered the counter update
@@ -3415,23 +3432,6 @@ interface CoverMediaMediaOneOf {
3415
3432
  /** Video url. */
3416
3433
  video?: string;
3417
3434
  }
3418
- interface PostCountInfo {
3419
- /**
3420
- * Total number of post comments
3421
- * @readonly
3422
- */
3423
- comments?: number;
3424
- /**
3425
- * Total number of post likes
3426
- * @readonly
3427
- */
3428
- likes?: number;
3429
- /**
3430
- * Total number of post views
3431
- * @readonly
3432
- */
3433
- views?: number;
3434
- }
3435
3435
  interface OldBlogMigratedEvent {
3436
3436
  /**
3437
3437
  * Instance id of new version of blog
@@ -3496,13 +3496,11 @@ interface EventMetadata extends BaseEventMetadata {
3496
3496
  */
3497
3497
  entityEventSequence?: string | null;
3498
3498
  }
3499
- interface PostCreatedEnvelope {
3500
- entity: Post;
3499
+ interface PostLikedEnvelope {
3500
+ data: PostLiked;
3501
3501
  metadata: EventMetadata;
3502
3502
  }
3503
- /**
3504
- * Triggered when a post is created.
3505
- * @permissionScope Read Blog
3503
+ /** @permissionScope Read Blog
3506
3504
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3507
3505
  * @permissionScope Manage Blog
3508
3506
  * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
@@ -3512,18 +3510,15 @@ interface PostCreatedEnvelope {
3512
3510
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3513
3511
  * @permissionId BLOG.READ-PUBLICATION
3514
3512
  * @webhook
3515
- * @eventType wix.blog.v3.post_created
3516
- * @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
3517
- * @slug created
3513
+ * @eventType wix.blog.v3.post_liked
3514
+ * @slug liked
3518
3515
  */
3519
- declare function onPostCreated(handler: (event: PostCreatedEnvelope) => void | Promise<void>): void;
3520
- interface PostDeletedEnvelope {
3521
- entity: Post;
3516
+ declare function onPostLiked(handler: (event: PostLikedEnvelope) => void | Promise<void>): void;
3517
+ interface PostUnlikedEnvelope {
3518
+ data: PostUnliked;
3522
3519
  metadata: EventMetadata;
3523
3520
  }
3524
- /**
3525
- * Triggered when a post is deleted.
3526
- * @permissionScope Read Blog
3521
+ /** @permissionScope Read Blog
3527
3522
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3528
3523
  * @permissionScope Manage Blog
3529
3524
  * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
@@ -3533,17 +3528,16 @@ interface PostDeletedEnvelope {
3533
3528
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3534
3529
  * @permissionId BLOG.READ-PUBLICATION
3535
3530
  * @webhook
3536
- * @eventType wix.blog.v3.post_deleted
3537
- * @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
3538
- * @slug deleted
3531
+ * @eventType wix.blog.v3.post_unliked
3532
+ * @slug unliked
3539
3533
  */
3540
- declare function onPostDeleted(handler: (event: PostDeletedEnvelope) => void | Promise<void>): void;
3541
- interface PostLikedEnvelope {
3542
- data: PostLiked;
3534
+ declare function onPostUnliked(handler: (event: PostUnlikedEnvelope) => void | Promise<void>): void;
3535
+ interface PostCreatedEnvelope {
3536
+ entity: Post;
3543
3537
  metadata: EventMetadata;
3544
3538
  }
3545
3539
  /**
3546
- * Triggered when a post is liked.
3540
+ * Triggered when a post is created.
3547
3541
  * @permissionScope Read Blog
3548
3542
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3549
3543
  * @permissionScope Manage Blog
@@ -3554,17 +3548,17 @@ interface PostLikedEnvelope {
3554
3548
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3555
3549
  * @permissionId BLOG.READ-PUBLICATION
3556
3550
  * @webhook
3557
- * @eventType wix.blog.v3.post_liked
3551
+ * @eventType wix.blog.v3.post_created
3558
3552
  * @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
3559
- * @slug liked
3553
+ * @slug created
3560
3554
  */
3561
- declare function onPostLiked(handler: (event: PostLikedEnvelope) => void | Promise<void>): void;
3562
- interface PostUnlikedEnvelope {
3563
- data: PostUnliked;
3555
+ declare function onPostCreated(handler: (event: PostCreatedEnvelope) => void | Promise<void>): void;
3556
+ interface PostDeletedEnvelope {
3557
+ entity: Post;
3564
3558
  metadata: EventMetadata;
3565
3559
  }
3566
3560
  /**
3567
- * Triggered when a post is unliked.
3561
+ * Triggered when a post is deleted.
3568
3562
  * @permissionScope Read Blog
3569
3563
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3570
3564
  * @permissionScope Manage Blog
@@ -3575,11 +3569,11 @@ interface PostUnlikedEnvelope {
3575
3569
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3576
3570
  * @permissionId BLOG.READ-PUBLICATION
3577
3571
  * @webhook
3578
- * @eventType wix.blog.v3.post_unliked
3572
+ * @eventType wix.blog.v3.post_deleted
3579
3573
  * @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
3580
- * @slug unliked
3574
+ * @slug deleted
3581
3575
  */
3582
- declare function onPostUnliked(handler: (event: PostUnlikedEnvelope) => void | Promise<void>): void;
3576
+ declare function onPostDeleted(handler: (event: PostDeletedEnvelope) => void | Promise<void>): void;
3583
3577
  interface PostUpdatedEnvelope {
3584
3578
  entity: Post;
3585
3579
  metadata: EventMetadata;
@@ -471,6 +471,9 @@ function queryPostCountStats(payload) {
471
471
  method: "GET",
472
472
  methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats",
473
473
  packageName: PACKAGE_NAME,
474
+ migrationOptions: {
475
+ optInTransformResponse: true
476
+ },
474
477
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
475
478
  protoPath: "/v2/stats/post/count",
476
479
  data: serializedData,
@@ -495,6 +498,9 @@ function getTotalPosts(payload) {
495
498
  method: "GET",
496
499
  methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts",
497
500
  packageName: PACKAGE_NAME,
501
+ migrationOptions: {
502
+ optInTransformResponse: true
503
+ },
498
504
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
499
505
  protoPath: "/v2/stats/posts/total",
500
506
  data: payload,
@@ -513,6 +519,9 @@ function getPost(payload) {
513
519
  method: "GET",
514
520
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost",
515
521
  packageName: PACKAGE_NAME,
522
+ migrationOptions: {
523
+ optInTransformResponse: true
524
+ },
516
525
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
517
526
  protoPath: "/v3/posts/{postId}",
518
527
  data: payload,
@@ -607,6 +616,9 @@ function getPostBySlug(payload) {
607
616
  method: "GET",
608
617
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug",
609
618
  packageName: PACKAGE_NAME,
619
+ migrationOptions: {
620
+ optInTransformResponse: true
621
+ },
610
622
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
611
623
  protoPath: "/v3/posts/slugs/{slug}",
612
624
  data: payload,
@@ -701,6 +713,9 @@ function listPosts(payload) {
701
713
  method: "GET",
702
714
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts",
703
715
  packageName: PACKAGE_NAME,
716
+ migrationOptions: {
717
+ optInTransformResponse: true
718
+ },
704
719
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
705
720
  protoPath: "/v3/posts",
706
721
  data: payload,
@@ -799,6 +814,9 @@ function queryPosts(payload) {
799
814
  method: "POST",
800
815
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts",
801
816
  packageName: PACKAGE_NAME,
817
+ migrationOptions: {
818
+ optInTransformResponse: true
819
+ },
802
820
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
803
821
  protoPath: "/v3/posts/query",
804
822
  data: payload,
@@ -897,6 +915,9 @@ function getPostMetrics(payload) {
897
915
  method: "GET",
898
916
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics",
899
917
  packageName: PACKAGE_NAME,
918
+ migrationOptions: {
919
+ optInTransformResponse: true
920
+ },
900
921
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
901
922
  protoPath: "/v3/posts/{postId}/metrics",
902
923
  data: payload,