@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.
- package/build/cjs/index.d.ts +30 -41
- package/build/cjs/index.js +55 -39
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +122 -135
- package/build/cjs/index.typings.js +26 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1378 -6
- package/build/cjs/meta.js +490 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +30 -41
- package/build/es/index.mjs +55 -39
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +122 -135
- package/build/es/index.typings.mjs +26 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1378 -6
- package/build/es/meta.mjs +442 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +30 -41
- package/build/internal/cjs/index.js +55 -39
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +122 -135
- package/build/internal/cjs/index.typings.js +26 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1378 -6
- package/build/internal/cjs/meta.js +490 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +30 -41
- package/build/internal/es/index.mjs +55 -39
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +122 -135
- package/build/internal/es/index.typings.mjs +26 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1378 -6
- package/build/internal/es/meta.mjs +442 -0
- package/build/internal/es/meta.mjs.map +1 -1
- 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
|
3507
|
-
|
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.
|
3523
|
-
* @
|
3524
|
-
* @slug created
|
3520
|
+
* @eventType wix.blog.v3.post_liked
|
3521
|
+
* @slug liked
|
3525
3522
|
*/
|
3526
|
-
declare function
|
3527
|
-
interface
|
3528
|
-
|
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.
|
3544
|
-
* @
|
3545
|
-
* @slug deleted
|
3538
|
+
* @eventType wix.blog.v3.post_unliked
|
3539
|
+
* @slug unliked
|
3546
3540
|
*/
|
3547
|
-
declare function
|
3548
|
-
interface
|
3549
|
-
|
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
|
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.
|
3558
|
+
* @eventType wix.blog.v3.post_created
|
3565
3559
|
* @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
|
3566
|
-
* @slug
|
3560
|
+
* @slug created
|
3567
3561
|
*/
|
3568
|
-
declare function
|
3569
|
-
interface
|
3570
|
-
|
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
|
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.
|
3579
|
+
* @eventType wix.blog.v3.post_deleted
|
3586
3580
|
* @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
|
3587
|
-
* @slug
|
3581
|
+
* @slug deleted
|
3588
3582
|
*/
|
3589
|
-
declare function
|
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
|
3616
|
-
*
|
3617
|
-
*
|
3618
|
-
*
|
3619
|
-
*
|
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<
|
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
|
-
*
|
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
|
-
*
|
3813
|
-
*
|
3814
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
@@ -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"
|
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"
|
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"
|
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"
|
1529
|
+
["posts.richContent"]
|
1509
1530
|
);
|
1510
1531
|
return {
|
1511
1532
|
items: transformedData?.posts,
|