@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
@@ -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;
|
@@ -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,
|