@wix/auto_sdk_blog_posts 1.0.34 → 1.0.36
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 +17 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{blog-v3-post-posts.universal-DQPJ111E.d.ts → index.typings.d.ts} +211 -1
- package/build/cjs/index.typings.js +1630 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +17 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/{blog-v3-post-posts.universal-DQPJ111E.d.mts → index.typings.d.mts} +211 -1
- package/build/es/index.typings.mjs +1559 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +17 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{blog-v3-post-posts.universal-rJw2G2He.d.ts → index.typings.d.ts} +211 -1
- package/build/internal/cjs/index.typings.js +1630 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +17 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{blog-v3-post-posts.universal-rJw2G2He.d.mts → index.typings.d.mts} +211 -1
- package/build/internal/es/index.typings.mjs +1559 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
package/build/es/index.d.mts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
2
|
-
import {
|
3
|
-
export {
|
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.mjs';
|
3
|
+
export { ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, CaptionData, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GetPostBySlugRequest, GetPostMetricsRequest, GetPostRequest, GetPostTemplatesSort, GetPostsSort, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsRequest, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, InitialExpandedItems, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LikePostRequest, LikePostResponse, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDemoPostsRequest, ListDemoPostsResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, OldBlogMigratedEvent, Option, OptionDesign, OptionLayout, Order, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, Post, PostCategoriesUpdated, PostCountInfo, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostFieldField, PostLiked, PostLikedInitiatorOneOf, PostOwnerChanged, PostTagsUpdated, PostTranslation, PostUnliked, PostUnlikedInitiatorOneOf, PostsQueryResult, QueryPostCountStatsRequest, QueryPostsRequest, QueryPostsResponse, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsResponse, Reactions, Rel, RestoreInfo, RichContent, ScheduledPostPublished, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, StylesBorder, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewPostRequest, ViewPostResponse, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia } from './index.typings.mjs';
|
4
4
|
|
5
|
+
type PostNonNullablePaths = `_id` | `title` | `excerpt` | `slug` | `featured` | `pinned` | `categoryIds` | `coverMedia.enabled` | `coverMedia.displayed` | `coverMedia.custom` | `memberId` | `hashtags` | `commentingEnabled` | `minutesToRead` | `tagIds` | `relatedPostIds` | `pricingPlanIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `preview` | `moderationDetails.submittedBy` | `moderationDetails.status` | `media.embedMedia.thumbnail.url` | `media.embedMedia.thumbnail.width` | `media.embedMedia.thumbnail.height` | `media.embedMedia.video.url` | `media.embedMedia.video.width` | `media.embedMedia.video.height` | `media.displayed` | `media.custom` | `hasUnpublishedChanges`;
|
5
6
|
declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
|
6
7
|
interface QueryPostCountStatsSignature {
|
7
8
|
/**
|
@@ -16,7 +17,7 @@ interface QueryPostCountStatsSignature {
|
|
16
17
|
* @param - Options specifying time frame, sort, and filter.
|
17
18
|
* @returns Get Blog Post Count Stats response
|
18
19
|
*/
|
19
|
-
(options?: QueryPostCountStatsOptions
|
20
|
+
(options?: QueryPostCountStatsOptions): Promise<NonNullablePaths<QueryPostCountStatsResponse, `stats` | `stats.${number}.postCount`>>;
|
20
21
|
}
|
21
22
|
declare function getTotalPosts$1(httpClient: HttpClient): GetTotalPostsSignature;
|
22
23
|
interface GetTotalPostsSignature {
|
@@ -24,7 +25,7 @@ interface GetTotalPostsSignature {
|
|
24
25
|
* Retrieves the total amount of published posts of the blog.
|
25
26
|
* @param - Language Options.
|
26
27
|
*/
|
27
|
-
(options?: GetTotalPostsOptions
|
28
|
+
(options?: GetTotalPostsOptions): Promise<NonNullablePaths<GetTotalPostsResponse, `total`>>;
|
28
29
|
}
|
29
30
|
declare function getPost$1(httpClient: HttpClient): GetPostSignature;
|
30
31
|
interface GetPostSignature {
|
@@ -33,7 +34,9 @@ interface GetPostSignature {
|
|
33
34
|
* @param - Post ID.
|
34
35
|
* @param - Options specifying which fields to return.
|
35
36
|
*/
|
36
|
-
(postId: string, options?: GetPostOptions
|
37
|
+
(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<GetPostResponse, {
|
38
|
+
[P in PostNonNullablePaths]: `post.${P}`;
|
39
|
+
}[PostNonNullablePaths]>>;
|
37
40
|
}
|
38
41
|
declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
|
39
42
|
interface GetPostBySlugSignature {
|
@@ -47,7 +50,9 @@ interface GetPostBySlugSignature {
|
|
47
50
|
* @param - Slug of the post to retrieve.
|
48
51
|
* @param - Options specifying which fields to return.
|
49
52
|
*/
|
50
|
-
(slug: string, options?: GetPostBySlugOptions
|
53
|
+
(slug: string, options?: GetPostBySlugOptions): Promise<NonNullablePaths<GetPostBySlugResponse, {
|
54
|
+
[P in PostNonNullablePaths]: `post.${P}`;
|
55
|
+
}[PostNonNullablePaths]>>;
|
51
56
|
}
|
52
57
|
declare function listPosts$1(httpClient: HttpClient): ListPostsSignature;
|
53
58
|
interface ListPostsSignature {
|
@@ -60,7 +65,9 @@ interface ListPostsSignature {
|
|
60
65
|
* - `paging.offset` is `0`.
|
61
66
|
* @param - Sort, filter, and paging options.
|
62
67
|
*/
|
63
|
-
(options?: ListPostsOptions
|
68
|
+
(options?: ListPostsOptions): Promise<NonNullablePaths<ListPostsResponse, {
|
69
|
+
[P in PostNonNullablePaths]: `posts.${number}.${P}`;
|
70
|
+
}[PostNonNullablePaths] | `metaData.count` | `metaData.offset` | `metaData.total`>>;
|
64
71
|
}
|
65
72
|
declare function queryPosts$1(httpClient: HttpClient): QueryPostsSignature;
|
66
73
|
interface QueryPostsSignature {
|
@@ -85,7 +92,7 @@ interface QueryPostsSignature {
|
|
85
92
|
* 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`.
|
86
93
|
* @param - Options specifying which fields to return.
|
87
94
|
*/
|
88
|
-
(options?: QueryPostsOptions
|
95
|
+
(options?: QueryPostsOptions): PostsQueryBuilder;
|
89
96
|
}
|
90
97
|
declare function getPostMetrics$1(httpClient: HttpClient): GetPostMetricsSignature;
|
91
98
|
interface GetPostMetricsSignature {
|
@@ -95,7 +102,7 @@ interface GetPostMetricsSignature {
|
|
95
102
|
* A post's metrics include the comments, likes, and views the post receives.
|
96
103
|
* @param - Post ID to retrieve metrics for.
|
97
104
|
*/
|
98
|
-
(postId: string): Promise<GetPostMetricsResponse
|
105
|
+
(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`>>;
|
99
106
|
}
|
100
107
|
declare const onPostCreated$1: EventDefinition<PostCreatedEnvelope, "wix.blog.v3.post_created">;
|
101
108
|
declare const onPostDeleted$1: EventDefinition<PostDeletedEnvelope, "wix.blog.v3.post_deleted">;
|