@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
@@ -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,13 +3598,14 @@ 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
|
-
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
3611
|
-
*
|
3612
|
-
*
|
3601
|
+
*
|
3602
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
3603
|
+
*
|
3604
|
+
* 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.
|
3605
|
+
*
|
3606
|
+
* >**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.
|
3613
3607
|
* @public
|
3608
|
+
* @param options - Options specifying time frame, sort, and filter.
|
3614
3609
|
* @permissionId BLOG.READ-PUBLICATION
|
3615
3610
|
* @applicableIdentity APP
|
3616
3611
|
* @returns Get Blog Post Count Stats response
|
@@ -3651,6 +3646,7 @@ interface QueryPostCountStatsOptions {
|
|
3651
3646
|
/**
|
3652
3647
|
* Retrieves the total amount of published posts of the blog.
|
3653
3648
|
* @public
|
3649
|
+
* @param options - Language Options.
|
3654
3650
|
* @permissionId BLOG.READ-PUBLICATION
|
3655
3651
|
* @applicableIdentity APP
|
3656
3652
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
@@ -3671,12 +3667,12 @@ interface GetTotalPostsOptions {
|
|
3671
3667
|
* @param postId - Post ID.
|
3672
3668
|
* @public
|
3673
3669
|
* @requiredField postId
|
3670
|
+
* @param options - Options specifying which fields to return.
|
3674
3671
|
* @permissionId BLOG.READ-PUBLICATION
|
3675
3672
|
* @applicableIdentity APP
|
3676
|
-
* @returns Retrieved post info.
|
3677
3673
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
3678
3674
|
*/
|
3679
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
3675
|
+
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
3676
|
interface GetPostOptions {
|
3681
3677
|
/**
|
3682
3678
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
@@ -3696,6 +3692,7 @@ interface GetPostOptions {
|
|
3696
3692
|
* @param slug - Slug of the post to retrieve.
|
3697
3693
|
* @public
|
3698
3694
|
* @requiredField slug
|
3695
|
+
* @param options - Options specifying which fields to return.
|
3699
3696
|
* @permissionId BLOG.READ-PUBLICATION
|
3700
3697
|
* @applicableIdentity APP
|
3701
3698
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
@@ -3723,6 +3720,7 @@ interface GetPostBySlugOptions {
|
|
3723
3720
|
* - `paging.limit` is `50`.
|
3724
3721
|
* - `paging.offset` is `0`.
|
3725
3722
|
* @public
|
3723
|
+
* @param options - Sort, filter, and paging options.
|
3726
3724
|
* @permissionId BLOG.READ-PUBLICATION
|
3727
3725
|
* @applicableIdentity APP
|
3728
3726
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
@@ -3793,23 +3791,26 @@ interface ListPostsOptions {
|
|
3793
3791
|
fieldsets?: PostFieldFieldWithLiterals[];
|
3794
3792
|
}
|
3795
3793
|
/**
|
3796
|
-
*
|
3794
|
+
* Creates a query to retrieve a list of posts.
|
3797
3795
|
*
|
3798
|
-
* Query Posts runs with these defaults, which you can override:
|
3799
|
-
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
3800
|
-
* - `paging.limit` is `50`.
|
3801
|
-
* - `paging.offset` is `0`.
|
3802
3796
|
*
|
3803
|
-
*
|
3804
|
-
*
|
3797
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
3798
|
+
*
|
3799
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
3800
|
+
*
|
3801
|
+
* 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.
|
3802
|
+
*
|
3803
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
3804
|
+
* + `limit(50)`
|
3805
|
+
* + `descending('firstPublishedDate')`
|
3806
|
+
*
|
3807
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
3808
|
+
*
|
3809
|
+
* To learn how to query posts, refer to the table below.
|
3805
3810
|
*
|
3806
|
-
*
|
3807
|
-
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
3808
|
-
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
|
3809
|
-
* [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
3810
|
-
* For a detailed list of supported filters and sortable fields, see
|
3811
|
-
* [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
|
3811
|
+
* 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`.
|
3812
3812
|
* @public
|
3813
|
+
* @param options - Options specifying which fields to return.
|
3813
3814
|
* @permissionId BLOG.READ-PUBLICATION
|
3814
3815
|
* @applicableIdentity APP
|
3815
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", "post.rich_content"]
|
1338
|
+
);
|
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", "post.rich_content"]
|
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", "posts.rich_content"]
|
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", "posts.rich_content"]
|
1509
1530
|
);
|
1510
1531
|
return {
|
1511
1532
|
items: transformedData?.posts,
|