@wix/auto_sdk_blog_posts 1.0.55 → 1.0.57

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 (37) hide show
  1. package/build/cjs/index.d.ts +30 -41
  2. package/build/cjs/index.js +55 -39
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +122 -135
  5. package/build/cjs/index.typings.js +26 -5
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1378 -6
  8. package/build/cjs/meta.js +490 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +30 -41
  11. package/build/es/index.mjs +55 -39
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +122 -135
  14. package/build/es/index.typings.mjs +26 -5
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +1378 -6
  17. package/build/es/meta.mjs +442 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +30 -41
  20. package/build/internal/cjs/index.js +55 -39
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +122 -135
  23. package/build/internal/cjs/index.typings.js +26 -5
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +1378 -6
  26. package/build/internal/cjs/meta.js +490 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +30 -41
  29. package/build/internal/es/index.mjs +55 -39
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +122 -135
  32. package/build/internal/es/index.typings.mjs +26 -5
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +1378 -6
  35. package/build/internal/es/meta.mjs +442 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -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;
@@ -3604,14 +3598,13 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
3604
3598
  /**
3605
3599
  * Retrieves the number of published posts per month within a specified time range.
3606
3600
  *
3607
- *
3608
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
3609
- *
3610
- * You can set the time range using the `rangeStart` and `months` properties. The time range always starts on the 1st day of the month set in `rangeStart` and includes the number of `months` following `rangeStart`. For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`, the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range ends on the last day of the month.
3611
- *
3612
- * >**Note:** If there are no published posts in a specific month, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022. If `rangeStart` is set to `'2022-01-01'` and `months` is set to `3`, the response includes `postCount` values for January and March, but not February.
3601
+ * The time range is set using the `rangeStart` and `months` properties.
3602
+ * The time range always starts on the 1st day of the month set in `rangeStart` and
3603
+ * includes the number of `months` following `rangeStart`.
3604
+ * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
3605
+ * the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range always ends on the last day of the month.
3606
+ * > Note: If there are no published posts in a month within the time range, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022. If `rangeStart` is set to `'2022-01-01'` and `months` is set to `3`, the response includes `postCount` values for January and March, but not February.
3613
3607
  * @public
3614
- * @param options - Options specifying time frame, sort, and filter.
3615
3608
  * @permissionId BLOG.READ-PUBLICATION
3616
3609
  * @applicableIdentity APP
3617
3610
  * @returns Get Blog Post Count Stats response
@@ -3652,7 +3645,6 @@ interface QueryPostCountStatsOptions {
3652
3645
  /**
3653
3646
  * Retrieves the total amount of published posts of the blog.
3654
3647
  * @public
3655
- * @param options - Language Options.
3656
3648
  * @permissionId BLOG.READ-PUBLICATION
3657
3649
  * @applicableIdentity APP
3658
3650
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
@@ -3673,12 +3665,12 @@ interface GetTotalPostsOptions {
3673
3665
  * @param postId - Post ID.
3674
3666
  * @public
3675
3667
  * @requiredField postId
3676
- * @param options - Options specifying which fields to return.
3677
3668
  * @permissionId BLOG.READ-PUBLICATION
3678
3669
  * @applicableIdentity APP
3670
+ * @returns Retrieved post info.
3679
3671
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
3680
3672
  */
3681
- declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<GetPostResponse, `post._id` | `post.title` | `post.excerpt` | `post.slug` | `post.featured` | `post.pinned` | `post.categoryIds` | `post.coverMedia.enabled` | `post.coverMedia.displayed` | `post.coverMedia.custom` | `post.memberId` | `post.hashtags` | `post.commentingEnabled` | `post.minutesToRead` | `post.tagIds` | `post.relatedPostIds` | `post.pricingPlanIds` | `post.seoData.tags` | `post.seoData.tags.${number}.type` | `post.seoData.tags.${number}.children` | `post.seoData.tags.${number}.custom` | `post.seoData.tags.${number}.disabled` | `post.seoData.settings.preventAutoRedirect` | `post.seoData.settings.keywords` | `post.seoData.settings.keywords.${number}.term` | `post.seoData.settings.keywords.${number}.isMain` | `post.preview` | `post.moderationDetails.submittedBy` | `post.moderationDetails.status` | `post.media.embedMedia.thumbnail.url` | `post.media.embedMedia.thumbnail.width` | `post.media.embedMedia.thumbnail.height` | `post.media.embedMedia.video.url` | `post.media.embedMedia.video.width` | `post.media.embedMedia.video.height` | `post.media.displayed` | `post.media.custom` | `post.hasUnpublishedChanges`, 7>>;
3673
+ declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<Post, `_id` | `title` | `excerpt` | `slug` | `featured` | `pinned` | `categoryIds` | `coverMedia.enabled` | `coverMedia.displayed` | `coverMedia.custom` | `memberId` | `hashtags` | `commentingEnabled` | `minutesToRead` | `tagIds` | `relatedPostIds` | `pricingPlanIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `preview` | `moderationDetails.submittedBy` | `moderationDetails.status` | `media.embedMedia.thumbnail.url` | `media.embedMedia.thumbnail.width` | `media.embedMedia.thumbnail.height` | `media.embedMedia.video.url` | `media.embedMedia.video.width` | `media.embedMedia.video.height` | `media.displayed` | `media.custom` | `hasUnpublishedChanges`, 6>>;
3682
3674
  interface GetPostOptions {
3683
3675
  /**
3684
3676
  * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
@@ -3698,7 +3690,6 @@ interface GetPostOptions {
3698
3690
  * @param slug - Slug of the post to retrieve.
3699
3691
  * @public
3700
3692
  * @requiredField slug
3701
- * @param options - Options specifying which fields to return.
3702
3693
  * @permissionId BLOG.READ-PUBLICATION
3703
3694
  * @applicableIdentity APP
3704
3695
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
@@ -3726,7 +3717,6 @@ interface GetPostBySlugOptions {
3726
3717
  * - `paging.limit` is `50`.
3727
3718
  * - `paging.offset` is `0`.
3728
3719
  * @public
3729
- * @param options - Sort, filter, and paging options.
3730
3720
  * @permissionId BLOG.READ-PUBLICATION
3731
3721
  * @applicableIdentity APP
3732
3722
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
@@ -3797,26 +3787,23 @@ interface ListPostsOptions {
3797
3787
  fieldsets?: PostFieldFieldWithLiterals[];
3798
3788
  }
3799
3789
  /**
3800
- * Creates a query to retrieve a list of posts.
3801
- *
3802
- *
3803
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
3790
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
3804
3791
  *
3805
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
3806
- *
3807
- * You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.
3808
- *
3809
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
3810
- * + `limit(50)`
3811
- * + `descending('firstPublishedDate')`
3812
- *
3813
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
3792
+ * Query Posts runs with these defaults, which you can override:
3793
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
3794
+ * - `paging.limit` is `50`.
3795
+ * - `paging.offset` is `0`.
3814
3796
  *
3815
- * To learn how to query posts, refer to the table below.
3797
+ * For field support for filters and sorting, see
3798
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3816
3799
  *
3817
- * The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the `items` property in `PostsQueryResult`.
3800
+ * To learn about working with _Query_ endpoints, see
3801
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3802
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
3803
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3804
+ * For a detailed list of supported filters and sortable fields, see
3805
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3818
3806
  * @public
3819
- * @param options - Options specifying which fields to return.
3820
3807
  * @permissionId BLOG.READ-PUBLICATION
3821
3808
  * @applicableIdentity APP
3822
3809
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
@@ -394,6 +394,9 @@ function queryPostCountStats(payload) {
394
394
  method: "GET",
395
395
  methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats",
396
396
  packageName: PACKAGE_NAME,
397
+ migrationOptions: {
398
+ optInTransformResponse: true
399
+ },
397
400
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
398
401
  protoPath: "/v2/stats/post/count",
399
402
  data: serializedData,
@@ -418,6 +421,9 @@ function getTotalPosts(payload) {
418
421
  method: "GET",
419
422
  methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts",
420
423
  packageName: PACKAGE_NAME,
424
+ migrationOptions: {
425
+ optInTransformResponse: true
426
+ },
421
427
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
422
428
  protoPath: "/v2/stats/posts/total",
423
429
  data: payload,
@@ -436,6 +442,9 @@ function getPost(payload) {
436
442
  method: "GET",
437
443
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost",
438
444
  packageName: PACKAGE_NAME,
445
+ migrationOptions: {
446
+ optInTransformResponse: true
447
+ },
439
448
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
440
449
  protoPath: "/v3/posts/{postId}",
441
450
  data: payload,
@@ -530,6 +539,9 @@ function getPostBySlug(payload) {
530
539
  method: "GET",
531
540
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug",
532
541
  packageName: PACKAGE_NAME,
542
+ migrationOptions: {
543
+ optInTransformResponse: true
544
+ },
533
545
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
534
546
  protoPath: "/v3/posts/slugs/{slug}",
535
547
  data: payload,
@@ -624,6 +636,9 @@ function listPosts(payload) {
624
636
  method: "GET",
625
637
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts",
626
638
  packageName: PACKAGE_NAME,
639
+ migrationOptions: {
640
+ optInTransformResponse: true
641
+ },
627
642
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
628
643
  protoPath: "/v3/posts",
629
644
  data: payload,
@@ -722,6 +737,9 @@ function queryPosts(payload) {
722
737
  method: "POST",
723
738
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts",
724
739
  packageName: PACKAGE_NAME,
740
+ migrationOptions: {
741
+ optInTransformResponse: true
742
+ },
725
743
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
726
744
  protoPath: "/v3/posts/query",
727
745
  data: payload,
@@ -820,6 +838,9 @@ function getPostMetrics(payload) {
820
838
  method: "GET",
821
839
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics",
822
840
  packageName: PACKAGE_NAME,
841
+ migrationOptions: {
842
+ optInTransformResponse: true
843
+ },
823
844
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
824
845
  protoPath: "/v3/posts/{postId}/metrics",
825
846
  data: payload,
@@ -1313,8 +1334,8 @@ async function getPost2(postId, options) {
1313
1334
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1314
1335
  }
1315
1336
  ]),
1316
- ["post.richContent", "post.rich_content"]
1317
- );
1337
+ ["post.richContent"]
1338
+ )?.post;
1318
1339
  } catch (err) {
1319
1340
  const transformedError = sdkTransformError(
1320
1341
  err,
@@ -1366,7 +1387,7 @@ async function getPostBySlug2(slug, options) {
1366
1387
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1367
1388
  }
1368
1389
  ]),
1369
- ["post.richContent", "post.rich_content"]
1390
+ ["post.richContent"]
1370
1391
  );
1371
1392
  } catch (err) {
1372
1393
  const transformedError = sdkTransformError(
@@ -1430,7 +1451,7 @@ async function listPosts2(options) {
1430
1451
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1431
1452
  }
1432
1453
  ]),
1433
- ["posts.richContent", "posts.rich_content"]
1454
+ ["posts.richContent"]
1434
1455
  );
1435
1456
  } catch (err) {
1436
1457
  const transformedError = sdkTransformError(
@@ -1505,7 +1526,7 @@ function queryPosts2(options) {
1505
1526
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1506
1527
  }
1507
1528
  ]),
1508
- ["posts.richContent", "posts.rich_content"]
1529
+ ["posts.richContent"]
1509
1530
  );
1510
1531
  return {
1511
1532
  items: transformedData?.posts,