@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
@@ -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
|
3500
|
-
|
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.
|
3516
|
-
* @
|
3517
|
-
* @slug created
|
3513
|
+
* @eventType wix.blog.v3.post_liked
|
3514
|
+
* @slug liked
|
3518
3515
|
*/
|
3519
|
-
declare function
|
3520
|
-
interface
|
3521
|
-
|
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.
|
3537
|
-
* @
|
3538
|
-
* @slug deleted
|
3531
|
+
* @eventType wix.blog.v3.post_unliked
|
3532
|
+
* @slug unliked
|
3539
3533
|
*/
|
3540
|
-
declare function
|
3541
|
-
interface
|
3542
|
-
|
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
|
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.
|
3551
|
+
* @eventType wix.blog.v3.post_created
|
3558
3552
|
* @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
|
3559
|
-
* @slug
|
3553
|
+
* @slug created
|
3560
3554
|
*/
|
3561
|
-
declare function
|
3562
|
-
interface
|
3563
|
-
|
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
|
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.
|
3572
|
+
* @eventType wix.blog.v3.post_deleted
|
3579
3573
|
* @serviceIdentifier com.wixpress.npm.communities.platformized.blog.v3.PostService
|
3580
|
-
* @slug
|
3574
|
+
* @slug deleted
|
3581
3575
|
*/
|
3582
|
-
declare function
|
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
|
3609
|
-
*
|
3610
|
-
*
|
3611
|
-
*
|
3612
|
-
*
|
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<
|
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
|
-
*
|
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
|
-
*
|
3806
|
-
*
|
3807
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
@@ -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"
|
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"
|
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"
|
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"
|
1606
|
+
["posts.richContent"]
|
1586
1607
|
);
|
1587
1608
|
return {
|
1588
1609
|
items: transformedData?.posts,
|