@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
@@ -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;
@@ -3611,14 +3605,13 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
3611
3605
  /**
3612
3606
  * Retrieves the number of published posts per month within a specified time range.
3613
3607
  *
3614
- *
3615
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
3616
- *
3617
- * 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.
3618
- *
3619
- * >**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.
3608
+ * The time range is set using the `rangeStart` and `months` properties.
3609
+ * The time range always starts on the 1st day of the month set in `rangeStart` and
3610
+ * includes the number of `months` following `rangeStart`.
3611
+ * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
3612
+ * 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.
3613
+ * > 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.
3620
3614
  * @public
3621
- * @param options - Options specifying time frame, sort, and filter.
3622
3615
  * @permissionId BLOG.READ-PUBLICATION
3623
3616
  * @applicableIdentity APP
3624
3617
  * @returns Get Blog Post Count Stats response
@@ -3659,7 +3652,6 @@ interface QueryPostCountStatsOptions {
3659
3652
  /**
3660
3653
  * Retrieves the total amount of published posts of the blog.
3661
3654
  * @public
3662
- * @param options - Language Options.
3663
3655
  * @permissionId BLOG.READ-PUBLICATION
3664
3656
  * @applicableIdentity APP
3665
3657
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
@@ -3680,12 +3672,12 @@ interface GetTotalPostsOptions {
3680
3672
  * @param postId - Post ID.
3681
3673
  * @public
3682
3674
  * @requiredField postId
3683
- * @param options - Options specifying which fields to return.
3684
3675
  * @permissionId BLOG.READ-PUBLICATION
3685
3676
  * @applicableIdentity APP
3677
+ * @returns Retrieved post info.
3686
3678
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
3687
3679
  */
3688
- 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>>;
3680
+ 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>>;
3689
3681
  interface GetPostOptions {
3690
3682
  /**
3691
3683
  * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
@@ -3705,7 +3697,6 @@ interface GetPostOptions {
3705
3697
  * @param slug - Slug of the post to retrieve.
3706
3698
  * @public
3707
3699
  * @requiredField slug
3708
- * @param options - Options specifying which fields to return.
3709
3700
  * @permissionId BLOG.READ-PUBLICATION
3710
3701
  * @applicableIdentity APP
3711
3702
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
@@ -3733,7 +3724,6 @@ interface GetPostBySlugOptions {
3733
3724
  * - `paging.limit` is `50`.
3734
3725
  * - `paging.offset` is `0`.
3735
3726
  * @public
3736
- * @param options - Sort, filter, and paging options.
3737
3727
  * @permissionId BLOG.READ-PUBLICATION
3738
3728
  * @applicableIdentity APP
3739
3729
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
@@ -3804,26 +3794,23 @@ interface ListPostsOptions {
3804
3794
  fieldsets?: PostFieldFieldWithLiterals[];
3805
3795
  }
3806
3796
  /**
3807
- * Creates a query to retrieve a list of posts.
3808
- *
3809
- *
3810
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
3797
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
3811
3798
  *
3812
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
3813
- *
3814
- * 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.
3815
- *
3816
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
3817
- * + `limit(50)`
3818
- * + `descending('firstPublishedDate')`
3819
- *
3820
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
3799
+ * Query Posts runs with these defaults, which you can override:
3800
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
3801
+ * - `paging.limit` is `50`.
3802
+ * - `paging.offset` is `0`.
3821
3803
  *
3822
- * To learn how to query posts, refer to the table below.
3804
+ * For field support for filters and sorting, see
3805
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3823
3806
  *
3824
- * 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`.
3807
+ * To learn about working with _Query_ endpoints, see
3808
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3809
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
3810
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3811
+ * For a detailed list of supported filters and sortable fields, see
3812
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3825
3813
  * @public
3826
- * @param options - Options specifying which fields to return.
3827
3814
  * @permissionId BLOG.READ-PUBLICATION
3828
3815
  * @applicableIdentity APP
3829
3816
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
@@ -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,
@@ -1390,8 +1411,8 @@ async function getPost2(postId, options) {
1390
1411
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1391
1412
  }
1392
1413
  ]),
1393
- ["post.richContent", "post.rich_content"]
1394
- );
1414
+ ["post.richContent"]
1415
+ )?.post;
1395
1416
  } catch (err) {
1396
1417
  const transformedError = (0, import_transform_error.transformError)(
1397
1418
  err,
@@ -1443,7 +1464,7 @@ async function getPostBySlug2(slug, options) {
1443
1464
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1444
1465
  }
1445
1466
  ]),
1446
- ["post.richContent", "post.rich_content"]
1467
+ ["post.richContent"]
1447
1468
  );
1448
1469
  } catch (err) {
1449
1470
  const transformedError = (0, import_transform_error.transformError)(
@@ -1507,7 +1528,7 @@ async function listPosts2(options) {
1507
1528
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1508
1529
  }
1509
1530
  ]),
1510
- ["posts.richContent", "posts.rich_content"]
1531
+ ["posts.richContent"]
1511
1532
  );
1512
1533
  } catch (err) {
1513
1534
  const transformedError = (0, import_transform_error.transformError)(
@@ -1582,7 +1603,7 @@ function queryPosts2(options) {
1582
1603
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1583
1604
  }
1584
1605
  ]),
1585
- ["posts.richContent", "posts.rich_content"]
1606
+ ["posts.richContent"]
1586
1607
  );
1587
1608
  return {
1588
1609
  items: transformedData?.posts,