@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.
@@ -176,6 +176,23 @@ interface Post {
176
176
  */
177
177
  referenceId?: string | null;
178
178
  }
179
+ interface PostCountInfo {
180
+ /**
181
+ * Total number of post comments
182
+ * @readonly
183
+ */
184
+ comments?: number;
185
+ /**
186
+ * Total number of post likes
187
+ * @readonly
188
+ */
189
+ likes?: number;
190
+ /**
191
+ * Total number of post views
192
+ * @readonly
193
+ */
194
+ views?: number;
195
+ }
179
196
  interface FocalPoint {
180
197
  /** X-coordinate of the focal point. */
181
198
  x?: number;
@@ -2037,6 +2054,66 @@ interface ScheduledPostPublished {
2037
2054
  */
2038
2055
  postId?: string;
2039
2056
  }
2057
+ interface PostLiked extends PostLikedInitiatorOneOf {
2058
+ /**
2059
+ * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2060
+ * @format GUID
2061
+ */
2062
+ memberId?: string | null;
2063
+ /**
2064
+ * Visitor ID of person who liked the post when they are not logged in.
2065
+ * @format GUID
2066
+ */
2067
+ anonymousVisitorId?: string | null;
2068
+ /**
2069
+ * ID of the liked post.
2070
+ * @format GUID
2071
+ */
2072
+ postId?: string;
2073
+ }
2074
+ /** @oneof */
2075
+ interface PostLikedInitiatorOneOf {
2076
+ /**
2077
+ * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2078
+ * @format GUID
2079
+ */
2080
+ memberId?: string | null;
2081
+ /**
2082
+ * Visitor ID of person who liked the post when they are not logged in.
2083
+ * @format GUID
2084
+ */
2085
+ anonymousVisitorId?: string | null;
2086
+ }
2087
+ interface PostUnliked extends PostUnlikedInitiatorOneOf {
2088
+ /**
2089
+ * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2090
+ * @format GUID
2091
+ */
2092
+ memberId?: string | null;
2093
+ /**
2094
+ * Visitor ID of person who unliked the post when they are not logged in.
2095
+ * @format GUID
2096
+ */
2097
+ anonymousVisitorId?: string | null;
2098
+ /**
2099
+ * ID of the unliked post.
2100
+ * @format GUID
2101
+ */
2102
+ postId?: string;
2103
+ }
2104
+ /** @oneof */
2105
+ interface PostUnlikedInitiatorOneOf {
2106
+ /**
2107
+ * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2108
+ * @format GUID
2109
+ */
2110
+ memberId?: string | null;
2111
+ /**
2112
+ * Visitor ID of person who unliked the post when they are not logged in.
2113
+ * @format GUID
2114
+ */
2115
+ anonymousVisitorId?: string | null;
2116
+ }
2040
2117
  /** Get Blog Publications Count Stats request */
2041
2118
  interface QueryPublicationsCountStatsRequest {
2042
2119
  /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
@@ -2738,66 +2815,6 @@ interface GetTotalLikesPerMemberResponse {
2738
2815
  /** The total number of likes of the member. */
2739
2816
  total?: number;
2740
2817
  }
2741
- interface PostLiked extends PostLikedInitiatorOneOf {
2742
- /**
2743
- * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2744
- * @format GUID
2745
- */
2746
- memberId?: string | null;
2747
- /**
2748
- * Visitor ID of person who liked the post when they are not logged in.
2749
- * @format GUID
2750
- */
2751
- anonymousVisitorId?: string | null;
2752
- /**
2753
- * ID of the liked post.
2754
- * @format GUID
2755
- */
2756
- postId?: string;
2757
- }
2758
- /** @oneof */
2759
- interface PostLikedInitiatorOneOf {
2760
- /**
2761
- * Member ID of person who liked the post (only returned when the member was logged in when liking the post).
2762
- * @format GUID
2763
- */
2764
- memberId?: string | null;
2765
- /**
2766
- * Visitor ID of person who liked the post when they are not logged in.
2767
- * @format GUID
2768
- */
2769
- anonymousVisitorId?: string | null;
2770
- }
2771
- interface PostUnliked extends PostUnlikedInitiatorOneOf {
2772
- /**
2773
- * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2774
- * @format GUID
2775
- */
2776
- memberId?: string | null;
2777
- /**
2778
- * Visitor ID of person who unliked the post when they are not logged in.
2779
- * @format GUID
2780
- */
2781
- anonymousVisitorId?: string | null;
2782
- /**
2783
- * ID of the unliked post.
2784
- * @format GUID
2785
- */
2786
- postId?: string;
2787
- }
2788
- /** @oneof */
2789
- interface PostUnlikedInitiatorOneOf {
2790
- /**
2791
- * Member ID of person who unliked the post (returned when the member was logged in when unliking the post).
2792
- * @format GUID
2793
- */
2794
- memberId?: string | null;
2795
- /**
2796
- * Visitor ID of person who unliked the post when they are not logged in.
2797
- * @format GUID
2798
- */
2799
- anonymousVisitorId?: string | null;
2800
- }
2801
2818
  interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
2802
2819
  /**
2803
2820
  * Member ID of person who triggered the counter update
@@ -3422,23 +3439,6 @@ interface CoverMediaMediaOneOf {
3422
3439
  /** Video url. */
3423
3440
  video?: string;
3424
3441
  }
3425
- interface PostCountInfo {
3426
- /**
3427
- * Total number of post comments
3428
- * @readonly
3429
- */
3430
- comments?: number;
3431
- /**
3432
- * Total number of post likes
3433
- * @readonly
3434
- */
3435
- likes?: number;
3436
- /**
3437
- * Total number of post views
3438
- * @readonly
3439
- */
3440
- views?: number;
3441
- }
3442
3442
  interface OldBlogMigratedEvent {
3443
3443
  /**
3444
3444
  * Instance id of new version of blog
@@ -3503,13 +3503,11 @@ interface EventMetadata extends BaseEventMetadata {
3503
3503
  */
3504
3504
  entityEventSequence?: string | null;
3505
3505
  }
3506
- interface PostCreatedEnvelope {
3507
- entity: Post;
3506
+ interface PostLikedEnvelope {
3507
+ data: PostLiked;
3508
3508
  metadata: EventMetadata;
3509
3509
  }
3510
- /**
3511
- * Triggered when a post is created.
3512
- * @permissionScope Read Blog
3510
+ /** @permissionScope Read Blog
3513
3511
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3514
3512
  * @permissionScope Manage Blog
3515
3513
  * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
@@ -3519,18 +3517,15 @@ interface PostCreatedEnvelope {
3519
3517
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3520
3518
  * @permissionId BLOG.READ-PUBLICATION
3521
3519
  * @webhook
3522
- * @eventType wix.blog.v3.post_created
3523
- * @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
3524
- * @slug created
3520
+ * @eventType wix.blog.v3.post_liked
3521
+ * @slug liked
3525
3522
  */
3526
- declare function onPostCreated(handler: (event: PostCreatedEnvelope) => void | Promise<void>): void;
3527
- interface PostDeletedEnvelope {
3528
- entity: Post;
3523
+ declare function onPostLiked(handler: (event: PostLikedEnvelope) => void | Promise<void>): void;
3524
+ interface PostUnlikedEnvelope {
3525
+ data: PostUnliked;
3529
3526
  metadata: EventMetadata;
3530
3527
  }
3531
- /**
3532
- * Triggered when a post is deleted.
3533
- * @permissionScope Read Blog
3528
+ /** @permissionScope Read Blog
3534
3529
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3535
3530
  * @permissionScope Manage Blog
3536
3531
  * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
@@ -3540,17 +3535,16 @@ interface PostDeletedEnvelope {
3540
3535
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3541
3536
  * @permissionId BLOG.READ-PUBLICATION
3542
3537
  * @webhook
3543
- * @eventType wix.blog.v3.post_deleted
3544
- * @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
3545
- * @slug deleted
3538
+ * @eventType wix.blog.v3.post_unliked
3539
+ * @slug unliked
3546
3540
  */
3547
- declare function onPostDeleted(handler: (event: PostDeletedEnvelope) => void | Promise<void>): void;
3548
- interface PostLikedEnvelope {
3549
- data: PostLiked;
3541
+ declare function onPostUnliked(handler: (event: PostUnlikedEnvelope) => void | Promise<void>): void;
3542
+ interface PostCreatedEnvelope {
3543
+ entity: Post;
3550
3544
  metadata: EventMetadata;
3551
3545
  }
3552
3546
  /**
3553
- * Triggered when a post is liked.
3547
+ * Triggered when a post is created.
3554
3548
  * @permissionScope Read Blog
3555
3549
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3556
3550
  * @permissionScope Manage Blog
@@ -3561,17 +3555,17 @@ interface PostLikedEnvelope {
3561
3555
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3562
3556
  * @permissionId BLOG.READ-PUBLICATION
3563
3557
  * @webhook
3564
- * @eventType wix.blog.v3.post_liked
3558
+ * @eventType wix.blog.v3.post_created
3565
3559
  * @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
3566
- * @slug liked
3560
+ * @slug created
3567
3561
  */
3568
- declare function onPostLiked(handler: (event: PostLikedEnvelope) => void | Promise<void>): void;
3569
- interface PostUnlikedEnvelope {
3570
- data: PostUnliked;
3562
+ declare function onPostCreated(handler: (event: PostCreatedEnvelope) => void | Promise<void>): void;
3563
+ interface PostDeletedEnvelope {
3564
+ entity: Post;
3571
3565
  metadata: EventMetadata;
3572
3566
  }
3573
3567
  /**
3574
- * Triggered when a post is unliked.
3568
+ * Triggered when a post is deleted.
3575
3569
  * @permissionScope Read Blog
3576
3570
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3577
3571
  * @permissionScope Manage Blog
@@ -3582,11 +3576,11 @@ interface PostUnlikedEnvelope {
3582
3576
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3583
3577
  * @permissionId BLOG.READ-PUBLICATION
3584
3578
  * @webhook
3585
- * @eventType wix.blog.v3.post_unliked
3579
+ * @eventType wix.blog.v3.post_deleted
3586
3580
  * @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
3587
- * @slug unliked
3581
+ * @slug deleted
3588
3582
  */
3589
- declare function onPostUnliked(handler: (event: PostUnlikedEnvelope) => void | Promise<void>): void;
3583
+ declare function onPostDeleted(handler: (event: PostDeletedEnvelope) => void | Promise<void>): void;
3590
3584
  interface PostUpdatedEnvelope {
3591
3585
  entity: Post;
3592
3586
  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,