@wix/auto_sdk_blog_posts 1.0.54 → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +37 -34
- package/build/cjs/index.js +60 -34
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +129 -128
- package/build/cjs/index.typings.js +26 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +21 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +37 -34
- package/build/es/index.mjs +60 -34
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +129 -128
- package/build/es/index.typings.mjs +26 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +21 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +37 -34
- package/build/internal/cjs/index.js +60 -34
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +129 -128
- package/build/internal/cjs/index.typings.js +26 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +21 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +37 -34
- package/build/internal/es/index.mjs +60 -34
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +129 -128
- package/build/internal/es/index.typings.mjs +26 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +21 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
@@ -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,13 +3605,14 @@ 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
|
-
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
3618
|
-
*
|
3619
|
-
*
|
3608
|
+
*
|
3609
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
3610
|
+
*
|
3611
|
+
* 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.
|
3612
|
+
*
|
3613
|
+
* >**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.
|
3620
3614
|
* @public
|
3615
|
+
* @param options - Options specifying time frame, sort, and filter.
|
3621
3616
|
* @permissionId BLOG.READ-PUBLICATION
|
3622
3617
|
* @applicableIdentity APP
|
3623
3618
|
* @returns Get Blog Post Count Stats response
|
@@ -3658,6 +3653,7 @@ interface QueryPostCountStatsOptions {
|
|
3658
3653
|
/**
|
3659
3654
|
* Retrieves the total amount of published posts of the blog.
|
3660
3655
|
* @public
|
3656
|
+
* @param options - Language Options.
|
3661
3657
|
* @permissionId BLOG.READ-PUBLICATION
|
3662
3658
|
* @applicableIdentity APP
|
3663
3659
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
@@ -3678,12 +3674,12 @@ interface GetTotalPostsOptions {
|
|
3678
3674
|
* @param postId - Post ID.
|
3679
3675
|
* @public
|
3680
3676
|
* @requiredField postId
|
3677
|
+
* @param options - Options specifying which fields to return.
|
3681
3678
|
* @permissionId BLOG.READ-PUBLICATION
|
3682
3679
|
* @applicableIdentity APP
|
3683
|
-
* @returns Retrieved post info.
|
3684
3680
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
3685
3681
|
*/
|
3686
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
3682
|
+
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>>;
|
3687
3683
|
interface GetPostOptions {
|
3688
3684
|
/**
|
3689
3685
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
@@ -3703,6 +3699,7 @@ interface GetPostOptions {
|
|
3703
3699
|
* @param slug - Slug of the post to retrieve.
|
3704
3700
|
* @public
|
3705
3701
|
* @requiredField slug
|
3702
|
+
* @param options - Options specifying which fields to return.
|
3706
3703
|
* @permissionId BLOG.READ-PUBLICATION
|
3707
3704
|
* @applicableIdentity APP
|
3708
3705
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
@@ -3730,6 +3727,7 @@ interface GetPostBySlugOptions {
|
|
3730
3727
|
* - `paging.limit` is `50`.
|
3731
3728
|
* - `paging.offset` is `0`.
|
3732
3729
|
* @public
|
3730
|
+
* @param options - Sort, filter, and paging options.
|
3733
3731
|
* @permissionId BLOG.READ-PUBLICATION
|
3734
3732
|
* @applicableIdentity APP
|
3735
3733
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
@@ -3800,23 +3798,26 @@ interface ListPostsOptions {
|
|
3800
3798
|
fieldsets?: PostFieldFieldWithLiterals[];
|
3801
3799
|
}
|
3802
3800
|
/**
|
3803
|
-
*
|
3801
|
+
* Creates a query to retrieve a list of posts.
|
3804
3802
|
*
|
3805
|
-
* Query Posts runs with these defaults, which you can override:
|
3806
|
-
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
3807
|
-
* - `paging.limit` is `50`.
|
3808
|
-
* - `paging.offset` is `0`.
|
3809
3803
|
*
|
3810
|
-
*
|
3811
|
-
*
|
3804
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
3805
|
+
*
|
3806
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
3807
|
+
*
|
3808
|
+
* 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.
|
3809
|
+
*
|
3810
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
3811
|
+
* + `limit(50)`
|
3812
|
+
* + `descending('firstPublishedDate')`
|
3813
|
+
*
|
3814
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
3815
|
+
*
|
3816
|
+
* To learn how to query posts, refer to the table below.
|
3812
3817
|
*
|
3813
|
-
*
|
3814
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
3815
|
-
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
|
3816
|
-
* [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
3817
|
-
* For a detailed list of supported filters and sortable fields, see
|
3818
|
-
* [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
|
3818
|
+
* 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`.
|
3819
3819
|
* @public
|
3820
|
+
* @param options - Options specifying which fields to return.
|
3820
3821
|
* @permissionId BLOG.READ-PUBLICATION
|
3821
3822
|
* @applicableIdentity APP
|
3822
3823
|
* @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", "post.rich_content"]
|
1415
|
+
);
|
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", "post.rich_content"]
|
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", "posts.rich_content"]
|
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", "posts.rich_content"]
|
1586
1607
|
);
|
1587
1608
|
return {
|
1588
1609
|
items: transformedData?.posts,
|