@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.
@@ -1,5 +1,5 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { QueryPostCountStatsOptions, QueryPostCountStatsResponse, GetTotalPostsOptions, GetTotalPostsResponse, GetPostOptions, GetPostResponse, GetPostBySlugOptions, GetPostBySlugResponse, ListPostsOptions, ListPostsResponse, QueryPostsOptions, PostsQueryBuilder, GetPostMetricsResponse, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, PostUpdatedEnvelope } from './index.typings.js';
2
+ import { QueryPostCountStatsOptions, QueryPostCountStatsResponse, GetTotalPostsOptions, GetTotalPostsResponse, GetPostOptions, GetPostResponse, GetPostBySlugOptions, GetPostBySlugResponse, ListPostsOptions, ListPostsResponse, QueryPostsOptions, PostsQueryBuilder, GetPostMetricsResponse, PostLikedEnvelope, PostUnlikedEnvelope, PostCreatedEnvelope, PostDeletedEnvelope, PostUpdatedEnvelope } from './index.typings.js';
3
3
  export { ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FieldWithLiterals, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPostBySlugRequest, GetPostMetricsRequest, GetPostRequest, GetPostTemplatesSort, GetPostTemplatesSortWithLiterals, GetPostsSort, GetPostsSortWithLiterals, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsRequest, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LikePostRequest, LikePostResponse, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDemoPostsRequest, ListDemoPostsResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, ModerationStatusStatusWithLiterals, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, OldBlogMigratedEvent, Option, OptionDesign, OptionLayout, Order, OrderWithLiterals, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, Placement, PlacementWithLiterals, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, Post, PostCategoriesUpdated, PostCountInfo, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostFieldField, PostFieldFieldWithLiterals, PostLiked, PostLikedInitiatorOneOf, PostOwnerChanged, PostTagsUpdated, PostTranslation, PostUnliked, PostUnlikedInitiatorOneOf, PostsQueryResult, PricingData, QueryPostCountStatsRequest, QueryPostsRequest, QueryPostsResponse, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsRequestOrderWithLiterals, QueryPublicationsCountStatsResponse, Reactions, Rel, Resizing, ResizingWithLiterals, RestoreInfo, RibbonStyles, RichContent, ScheduledPostPublished, SeoSchema, Settings, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewPostRequest, ViewPostResponse, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, WixMedia } from './index.typings.js';
4
4
 
5
5
  declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
@@ -97,10 +97,10 @@ interface GetPostMetricsSignature {
97
97
  */
98
98
  (postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
99
99
  }
100
- declare const onPostCreated$1: EventDefinition<PostCreatedEnvelope, "wix.blog.v3.post_created">;
101
- declare const onPostDeleted$1: EventDefinition<PostDeletedEnvelope, "wix.blog.v3.post_deleted">;
102
100
  declare const onPostLiked$1: EventDefinition<PostLikedEnvelope, "wix.blog.v3.post_liked">;
103
101
  declare const onPostUnliked$1: EventDefinition<PostUnlikedEnvelope, "wix.blog.v3.post_unliked">;
102
+ declare const onPostCreated$1: EventDefinition<PostCreatedEnvelope, "wix.blog.v3.post_created">;
103
+ declare const onPostDeleted$1: EventDefinition<PostDeletedEnvelope, "wix.blog.v3.post_deleted">;
104
104
  declare const onPostUpdated$1: EventDefinition<PostUpdatedEnvelope, "wix.blog.v3.post_updated">;
105
105
 
106
106
  declare const queryPostCountStats: MaybeContext<BuildRESTFunction<typeof queryPostCountStats$1> & typeof queryPostCountStats$1>;
@@ -110,6 +110,10 @@ declare const getPostBySlug: MaybeContext<BuildRESTFunction<typeof getPostBySlug
110
110
  declare const listPosts: MaybeContext<BuildRESTFunction<typeof listPosts$1> & typeof listPosts$1>;
111
111
  declare const queryPosts: MaybeContext<BuildRESTFunction<typeof queryPosts$1> & typeof queryPosts$1>;
112
112
  declare const getPostMetrics: MaybeContext<BuildRESTFunction<typeof getPostMetrics$1> & typeof getPostMetrics$1>;
113
+ /** */
114
+ declare const onPostLiked: BuildEventDefinition<typeof onPostLiked$1> & typeof onPostLiked$1;
115
+ /** */
116
+ declare const onPostUnliked: BuildEventDefinition<typeof onPostUnliked$1> & typeof onPostUnliked$1;
113
117
  /**
114
118
  * Triggered when a post is created.
115
119
  */
@@ -118,14 +122,6 @@ declare const onPostCreated: BuildEventDefinition<typeof onPostCreated$1> & type
118
122
  * Triggered when a post is deleted.
119
123
  */
120
124
  declare const onPostDeleted: BuildEventDefinition<typeof onPostDeleted$1> & typeof onPostDeleted$1;
121
- /**
122
- * Triggered when a post is liked.
123
- */
124
- declare const onPostLiked: BuildEventDefinition<typeof onPostLiked$1> & typeof onPostLiked$1;
125
- /**
126
- * Triggered when a post is unliked.
127
- */
128
- declare const onPostUnliked: BuildEventDefinition<typeof onPostUnliked$1> & typeof onPostUnliked$1;
129
125
  /**
130
126
  * Triggered when a post is updated.
131
127
  */
@@ -488,6 +488,9 @@ function queryPostCountStats(payload) {
488
488
  method: "GET",
489
489
  methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats",
490
490
  packageName: PACKAGE_NAME,
491
+ migrationOptions: {
492
+ optInTransformResponse: true
493
+ },
491
494
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
492
495
  protoPath: "/v2/stats/post/count",
493
496
  data: serializedData,
@@ -512,6 +515,9 @@ function getTotalPosts(payload) {
512
515
  method: "GET",
513
516
  methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts",
514
517
  packageName: PACKAGE_NAME,
518
+ migrationOptions: {
519
+ optInTransformResponse: true
520
+ },
515
521
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
516
522
  protoPath: "/v2/stats/posts/total",
517
523
  data: payload,
@@ -530,6 +536,9 @@ function getPost(payload) {
530
536
  method: "GET",
531
537
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost",
532
538
  packageName: PACKAGE_NAME,
539
+ migrationOptions: {
540
+ optInTransformResponse: true
541
+ },
533
542
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
534
543
  protoPath: "/v3/posts/{postId}",
535
544
  data: payload,
@@ -624,6 +633,9 @@ function getPostBySlug(payload) {
624
633
  method: "GET",
625
634
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug",
626
635
  packageName: PACKAGE_NAME,
636
+ migrationOptions: {
637
+ optInTransformResponse: true
638
+ },
627
639
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
628
640
  protoPath: "/v3/posts/slugs/{slug}",
629
641
  data: payload,
@@ -718,6 +730,9 @@ function listPosts(payload) {
718
730
  method: "GET",
719
731
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts",
720
732
  packageName: PACKAGE_NAME,
733
+ migrationOptions: {
734
+ optInTransformResponse: true
735
+ },
721
736
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
722
737
  protoPath: "/v3/posts",
723
738
  data: payload,
@@ -816,6 +831,9 @@ function queryPosts(payload) {
816
831
  method: "POST",
817
832
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts",
818
833
  packageName: PACKAGE_NAME,
834
+ migrationOptions: {
835
+ optInTransformResponse: true
836
+ },
819
837
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
820
838
  protoPath: "/v3/posts/query",
821
839
  data: payload,
@@ -914,6 +932,9 @@ function getPostMetrics(payload) {
914
932
  method: "GET",
915
933
  methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics",
916
934
  packageName: PACKAGE_NAME,
935
+ migrationOptions: {
936
+ optInTransformResponse: true
937
+ },
917
938
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
918
939
  protoPath: "/v3/posts/{postId}/metrics",
919
940
  data: payload,
@@ -1694,6 +1715,32 @@ function getPostMetrics3(httpClient) {
1694
1715
  { httpClient }
1695
1716
  );
1696
1717
  }
1718
+ var onPostLiked = (0, import_sdk_types.EventDefinition)(
1719
+ "wix.blog.v3.post_liked",
1720
+ true,
1721
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1722
+ (0, import_transform_paths3.transformPaths)(event, [
1723
+ {
1724
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1725
+ paths: [{ path: "metadata.eventTime" }]
1726
+ }
1727
+ ]),
1728
+ ["entity.rich_content"]
1729
+ )
1730
+ )();
1731
+ var onPostUnliked = (0, import_sdk_types.EventDefinition)(
1732
+ "wix.blog.v3.post_unliked",
1733
+ true,
1734
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1735
+ (0, import_transform_paths3.transformPaths)(event, [
1736
+ {
1737
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1738
+ paths: [{ path: "metadata.eventTime" }]
1739
+ }
1740
+ ]),
1741
+ ["entity.rich_content"]
1742
+ )
1743
+ )();
1697
1744
  var onPostCreated = (0, import_sdk_types.EventDefinition)(
1698
1745
  "wix.blog.v3.post_created",
1699
1746
  true,
@@ -1846,32 +1893,6 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
1846
1893
  ["entity.rich_content"]
1847
1894
  )
1848
1895
  )();
1849
- var onPostLiked = (0, import_sdk_types.EventDefinition)(
1850
- "wix.blog.v3.post_liked",
1851
- true,
1852
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1853
- (0, import_transform_paths3.transformPaths)(event, [
1854
- {
1855
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1856
- paths: [{ path: "metadata.eventTime" }]
1857
- }
1858
- ]),
1859
- ["entity.rich_content"]
1860
- )
1861
- )();
1862
- var onPostUnliked = (0, import_sdk_types.EventDefinition)(
1863
- "wix.blog.v3.post_unliked",
1864
- true,
1865
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1866
- (0, import_transform_paths3.transformPaths)(event, [
1867
- {
1868
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1869
- paths: [{ path: "metadata.eventTime" }]
1870
- }
1871
- ]),
1872
- ["entity.rich_content"]
1873
- )
1874
- )();
1875
1896
  var onPostUpdated = (0, import_sdk_types.EventDefinition)(
1876
1897
  "wix.blog.v3.post_updated",
1877
1898
  true,
@@ -1959,10 +1980,10 @@ var getPostBySlug4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
1959
1980
  var listPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listPosts3);
1960
1981
  var queryPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPosts3);
1961
1982
  var getPostMetrics4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPostMetrics3);
1962
- var onPostCreated2 = (0, import_event_definition_modules.createEventModule)(onPostCreated);
1963
- var onPostDeleted2 = (0, import_event_definition_modules.createEventModule)(onPostDeleted);
1964
1983
  var onPostLiked2 = (0, import_event_definition_modules.createEventModule)(onPostLiked);
1965
1984
  var onPostUnliked2 = (0, import_event_definition_modules.createEventModule)(onPostUnliked);
1985
+ var onPostCreated2 = (0, import_event_definition_modules.createEventModule)(onPostCreated);
1986
+ var onPostDeleted2 = (0, import_event_definition_modules.createEventModule)(onPostDeleted);
1966
1987
  var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPostUpdated);
1967
1988
  // Annotate the CommonJS export names for ESM import in node:
1968
1989
  0 && (module.exports = {