@wix/auto_sdk_blog_posts 1.0.55 → 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 +7 -11
- package/build/cjs/index.js +49 -28
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +101 -107
- package/build/cjs/index.typings.js +21 -0
- 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 +7 -11
- package/build/es/index.mjs +49 -28
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +101 -107
- package/build/es/index.typings.mjs +21 -0
- 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 +7 -11
- package/build/internal/cjs/index.js +49 -28
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +101 -107
- package/build/internal/cjs/index.typings.js +21 -0
- 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 +7 -11
- package/build/internal/es/index.mjs +49 -28
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +101 -107
- package/build/internal/es/index.typings.mjs +21 -0
- 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;
|
@@ -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,
|