@wix/auto_sdk_blog_posts 1.0.17 → 1.0.19
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/src/blog-v3-post-posts.types.d.ts → blog-v3-post-posts.universal-CEsWp0Fx.d.mts} +535 -748
- package/build/{internal/cjs/src/blog-v3-post-posts.types.d.ts → blog-v3-post-posts.universal-CEsWp0Fx.d.ts} +535 -748
- package/build/index.d.mts +130 -0
- package/build/index.d.ts +130 -0
- package/build/index.js +1975 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1899 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/blog-v3-post-posts.types.d.ts → internal/blog-v3-post-posts.universal-nU7XoyIE.d.mts} +542 -748
- package/build/internal/{es/src/blog-v3-post-posts.types.d.ts → blog-v3-post-posts.universal-nU7XoyIE.d.ts} +542 -748
- package/build/internal/index.d.mts +130 -0
- package/build/internal/index.d.ts +130 -0
- package/build/internal/index.js +1975 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1899 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +2094 -0
- package/build/internal/meta.d.ts +2094 -0
- package/build/internal/meta.js +1002 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +969 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +2094 -0
- package/build/meta.d.ts +2094 -0
- package/build/meta.js +1002 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +969 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.context.d.ts +0 -37
- package/build/cjs/src/blog-v3-post-posts.context.js +0 -82
- package/build/cjs/src/blog-v3-post-posts.context.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.http.d.ts +0 -59
- package/build/cjs/src/blog-v3-post-posts.http.js +0 -892
- package/build/cjs/src/blog-v3-post-posts.http.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.meta.d.ts +0 -25
- package/build/cjs/src/blog-v3-post-posts.meta.js +0 -161
- package/build/cjs/src/blog-v3-post-posts.meta.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.public.d.ts +0 -99
- package/build/cjs/src/blog-v3-post-posts.public.js +0 -320
- package/build/cjs/src/blog-v3-post-posts.public.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.types.js +0 -485
- package/build/cjs/src/blog-v3-post-posts.types.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.universal.d.ts +0 -4037
- package/build/cjs/src/blog-v3-post-posts.universal.js +0 -966
- package/build/cjs/src/blog-v3-post-posts.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/blog-v3-post-posts.context.d.ts +0 -37
- package/build/es/src/blog-v3-post-posts.context.js +0 -37
- package/build/es/src/blog-v3-post-posts.context.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.http.d.ts +0 -59
- package/build/es/src/blog-v3-post-posts.http.js +0 -882
- package/build/es/src/blog-v3-post-posts.http.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.meta.d.ts +0 -25
- package/build/es/src/blog-v3-post-posts.meta.js +0 -128
- package/build/es/src/blog-v3-post-posts.meta.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.public.d.ts +0 -99
- package/build/es/src/blog-v3-post-posts.public.js +0 -268
- package/build/es/src/blog-v3-post-posts.public.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.types.js +0 -482
- package/build/es/src/blog-v3-post-posts.types.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.universal.d.ts +0 -4037
- package/build/es/src/blog-v3-post-posts.universal.js +0 -933
- package/build/es/src/blog-v3-post-posts.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.context.d.ts +0 -37
- package/build/internal/cjs/src/blog-v3-post-posts.context.js +0 -82
- package/build/internal/cjs/src/blog-v3-post-posts.context.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.http.d.ts +0 -59
- package/build/internal/cjs/src/blog-v3-post-posts.http.js +0 -892
- package/build/internal/cjs/src/blog-v3-post-posts.http.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.meta.d.ts +0 -25
- package/build/internal/cjs/src/blog-v3-post-posts.meta.js +0 -161
- package/build/internal/cjs/src/blog-v3-post-posts.meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.public.d.ts +0 -99
- package/build/internal/cjs/src/blog-v3-post-posts.public.js +0 -320
- package/build/internal/cjs/src/blog-v3-post-posts.public.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.types.js +0 -485
- package/build/internal/cjs/src/blog-v3-post-posts.types.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.universal.d.ts +0 -4044
- package/build/internal/cjs/src/blog-v3-post-posts.universal.js +0 -966
- package/build/internal/cjs/src/blog-v3-post-posts.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.context.d.ts +0 -37
- package/build/internal/es/src/blog-v3-post-posts.context.js +0 -37
- package/build/internal/es/src/blog-v3-post-posts.context.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.http.d.ts +0 -59
- package/build/internal/es/src/blog-v3-post-posts.http.js +0 -882
- package/build/internal/es/src/blog-v3-post-posts.http.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.meta.d.ts +0 -25
- package/build/internal/es/src/blog-v3-post-posts.meta.js +0 -128
- package/build/internal/es/src/blog-v3-post-posts.meta.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.public.d.ts +0 -99
- package/build/internal/es/src/blog-v3-post-posts.public.js +0 -268
- package/build/internal/es/src/blog-v3-post-posts.public.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.types.js +0 -482
- package/build/internal/es/src/blog-v3-post-posts.types.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.universal.d.ts +0 -4044
- package/build/internal/es/src/blog-v3-post-posts.universal.js +0 -933
- package/build/internal/es/src/blog-v3-post-posts.universal.js.map +0 -1
@@ -0,0 +1,130 @@
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
2
|
+
import { Q as QueryPostCountStatsOptions, a as QueryPostCountStatsResponse, G as GetTotalPostsOptions, b as GetTotalPostsResponse, c as GetPostOptions, d as GetPostResponse, e as GetPostBySlugOptions, f as GetPostBySlugResponse, L as ListPostsOptions, g as ListPostsResponse, h as QueryPostsOptions, P as PostsQueryBuilder, i as GetPostMetricsResponse } from './blog-v3-post-posts.universal-nU7XoyIE.mjs';
|
3
|
+
export { c1 as ActionEvent, A as Alignment, b9 as AnchorData, bf as AppEmbedData, bg as AppEmbedDataAppDataOneOf, w as AppType, bu as AudioData, a$ as Background, b0 as BackgroundBackgroundOneOf, B as BackgroundType, d0 as BaseEventMetadata, bx as BlockquoteData, c6 as BlogPaging, bh as BookingData, af as Border, bs as BorderColors, cE as BulkGetPostMetricsRequest, cF as BulkGetPostMetricsResponse, cS as BulkGetPostReactionsRequest, cT as BulkGetPostReactionsResponse, bw as BulletedListData, ae as ButtonData, by as CaptionData, c9 as Category, ca as CategoryTranslation, br as CellStyle, aq as CodeBlockData, bn as CollapsibleListData, ba as ColorData, ag as Colors, cX as ConvertDraftJsToRichContentRequest, cY as ConvertDraftJsToRichContentResponse, cZ as ConvertRichContentToDraftJsRequest, c_ as ConvertRichContentToDraftJsResponse, a1 as CoverMedia, a2 as CoverMediaMediaOneOf, cd as CreateDraftPostFromTemplateRequest, ce as CreateDraftPostFromTemplateResponse, C as Crop, cz as CursorPaging, cC as Cursors, b7 as Decoration, b8 as DecorationDataOneOf, D as DecorationType, b5 as Design, bp as Dimensions, x as Direction, as as DividerData, bB as DocumentStyle, bX as DomainEvent, bY as DomainEventBodyOneOf, cf as DraftPost, cg as DraftPostTranslation, bl as EmbedData, bI as EmbedMedia, bJ as EmbedThumbnail, bK as EmbedVideo, bZ as EntityCreatedEvent, c0 as EntityDeletedEvent, b$ as EntityUpdatedEvent, bi as EventData, d1 as EventMetadata, Y as Field, at as FileData, au as FileSource, av as FileSourceDataOneOf, a3 as FocalPoint, bd as FontSizeData, F as FontType, aI as GIF, aH as GIFData, q as GIFType, ax as GalleryData, aD as GalleryOptions, cs as GetPostBySlugRequest, cD as GetPostMetricsRequest, cr as GetPostRequest, R as GetPostTemplatesSort, _ as GetPostsSort, cb as GetTemplateRequest, cc as GetTemplateResponse, ch as GetTotalLikesPerMemberRequest, ci as GetTotalLikesPerMemberResponse, bW as GetTotalPostsRequest, bU as GetTotalPublicationsRequest, bV as GetTotalPublicationsResponse, a_ as Gradient, aK as HTMLData, aL as HTMLDataDataOneOf, aJ as HeadingData, al as Height, c3 as IdentificationData, c4 as IdentificationDataIdOneOf, az as Image, aM as ImageData, aO as ImageDataStyles, I as InitialExpandedItems, cq as InitialPostsCopied, aB as Item, aC as ItemDataOneOf, aF as ItemStyle, a7 as Keyword, aE as Layout, bz as LayoutCellData, o as LayoutType, cI as LikePostRequest, cJ as LikePostResponse, m as LineStyle, an as Link, bb as LinkData, ao as LinkDataOneOf, aP as LinkPreviewData, aQ as LinkPreviewDataStyles, cV as ListDemoPostsRequest, cW as ListDemoPostsResponse, cQ as ListPostsArchiveRequest, cR as ListPostsArchiveResponse, ct as ListPostsRequest, c5 as ListTemplatesRequest, c7 as ListTemplatesResponse, bt as ListValue, aR as MapData, aS as MapSettings, M as MapType, bE as Media, bF as MediaMediaOneOf, bc as MentionData, c2 as MessageEnvelope, c8 as MetaData, bA as Metadata, a5 as Metrics, bD as ModerationDetails, E as ModerationStatusStatus, ab as Node, ac as NodeDataOneOf, ad as NodeStyle, N as NodeType, z as NullValue, bm as Oembed, c$ as OldBlogMigratedEvent, aW as Option, b2 as OptionDesign, aZ as OptionLayout, J as Order, bv as OrderedListData, O as Orientation, U as Origin, aw as PDFSettings, cy as Paging, cB as PagingMetadataV2, aT as ParagraphData, bT as PeriodPostCount, bR as PeriodPublicationsCount, aV as Permissions, cM as PinPostRequest, cN as PinPostResponse, cw as PlatformQuery, cx as PlatformQueryPagingMethodOneOf, bk as PlaybackOptions, ah as PluginContainerData, j as PluginContainerDataAlignment, ai as PluginContainerDataWidth, aj as PluginContainerDataWidthDataOneOf, b3 as Poll, aU as PollData, b4 as PollDataLayout, b1 as PollDesign, aY as PollLayout, v as PollLayoutDirection, u as PollLayoutType, aX as PollSettings, r as Position, a0 as Post, bM as PostCategoriesUpdated, a4 as PostCountInfo, cn as PostCountersUpdated, co as PostCountersUpdatedInitiatorOneOf, d2 as PostCreatedEnvelope, d3 as PostDeletedEnvelope, Z as PostFieldField, cj as PostLiked, d4 as PostLikedEnvelope, ck as PostLikedInitiatorOneOf, cp as PostOwnerChanged, bN as PostTagsUpdated, bL as PostTranslation, cl as PostUnliked, d5 as PostUnlikedEnvelope, cm as PostUnlikedInitiatorOneOf, d6 as PostUpdatedEnvelope, d7 as PostsQueryResult, bS as QueryPostCountStatsRequest, cu as QueryPostsRequest, cA as QueryPostsResponse, bP as QueryPublicationsCountStatsRequest, H as QueryPublicationsCountStatsRequestOrder, bQ as QueryPublicationsCountStatsResponse, cU as Reactions, ap as Rel, b_ as RestoreInfo, aa as RichContent, bO as ScheduledPostPublished, a6 as SeoSchema, a9 as Settings, $ as SortOrder, cv as Sorting, S as Source, ak as Spoiler, be as SpoilerData, X as Status, am as Styles, aN as StylesBorder, bq as TableCellData, bo as TableData, a8 as Tag, k as Target, l as TextAlignment, b6 as TextData, bC as TextNodeStyle, ar as TextStyle, aG as Thumbnails, p as ThumbnailsAlignment, T as Type, cK as UnlikePostRequest, cL as UnlikePostResponse, cO as UnpinPostRequest, cP as UnpinPostResponse, ay as V1Media, y as VerticalAlignment, aA as Video, bj as VideoData, bH as VideoResolution, V as ViewMode, cG as ViewPostRequest, cH as ViewPostResponse, s as ViewRole, t as VoteRole, K as WebhookIdentityType, n as Width, W as WidthType, bG as WixMedia } from './blog-v3-post-posts.universal-nU7XoyIE.mjs';
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
5
|
+
|
6
|
+
declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
|
7
|
+
interface QueryPostCountStatsSignature {
|
8
|
+
/**
|
9
|
+
* Retrieves the number of published posts per month within a specified time range.
|
10
|
+
*
|
11
|
+
*
|
12
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
13
|
+
*
|
14
|
+
* 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.
|
15
|
+
*
|
16
|
+
* >**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.
|
17
|
+
* @param - Options specifying time frame, sort, and filter.
|
18
|
+
* @returns Get Blog Post Count Stats response
|
19
|
+
*/
|
20
|
+
(options?: QueryPostCountStatsOptions | undefined): Promise<QueryPostCountStatsResponse>;
|
21
|
+
}
|
22
|
+
declare function getTotalPosts$1(httpClient: HttpClient): GetTotalPostsSignature;
|
23
|
+
interface GetTotalPostsSignature {
|
24
|
+
/**
|
25
|
+
* Retrieves the total amount of published posts of the blog.
|
26
|
+
* @param - Language Options.
|
27
|
+
*/
|
28
|
+
(options?: GetTotalPostsOptions | undefined): Promise<GetTotalPostsResponse>;
|
29
|
+
}
|
30
|
+
declare function getPost$1(httpClient: HttpClient): GetPostSignature;
|
31
|
+
interface GetPostSignature {
|
32
|
+
/**
|
33
|
+
* Retrieves a post by the specified ID.
|
34
|
+
* @param - Post ID.
|
35
|
+
* @param - Options specifying which fields to return.
|
36
|
+
*/
|
37
|
+
(postId: string, options?: GetPostOptions | undefined): Promise<GetPostResponse>;
|
38
|
+
}
|
39
|
+
declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
|
40
|
+
interface GetPostBySlugSignature {
|
41
|
+
/**
|
42
|
+
* Retrieves a post with the provided slug.
|
43
|
+
*
|
44
|
+
* The slug is the end of a post's URL that refers to a specific post.
|
45
|
+
* For example, if a post's URL is `https:/example.com/blog/post/my-post-slug`,
|
46
|
+
* the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
|
47
|
+
* unless specified otherwise.
|
48
|
+
* @param - Slug of the post to retrieve.
|
49
|
+
* @param - Options specifying which fields to return.
|
50
|
+
*/
|
51
|
+
(slug: string, options?: GetPostBySlugOptions | undefined): Promise<GetPostBySlugResponse>;
|
52
|
+
}
|
53
|
+
declare function listPosts$1(httpClient: HttpClient): ListPostsSignature;
|
54
|
+
interface ListPostsSignature {
|
55
|
+
/**
|
56
|
+
* Retrieves a list of up to 100 published posts per request.
|
57
|
+
*
|
58
|
+
* List Posts runs with these defaults, which you can override:
|
59
|
+
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
60
|
+
* - `paging.limit` is `50`.
|
61
|
+
* - `paging.offset` is `0`.
|
62
|
+
* @param - Sort, filter, and paging options.
|
63
|
+
*/
|
64
|
+
(options?: ListPostsOptions | undefined): Promise<ListPostsResponse>;
|
65
|
+
}
|
66
|
+
declare function queryPosts$1(httpClient: HttpClient): QueryPostsSignature;
|
67
|
+
interface QueryPostsSignature {
|
68
|
+
/**
|
69
|
+
* Creates a query to retrieve a list of posts.
|
70
|
+
*
|
71
|
+
*
|
72
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
73
|
+
*
|
74
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
75
|
+
*
|
76
|
+
* 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.
|
77
|
+
*
|
78
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
79
|
+
* + `limit(50)`
|
80
|
+
* + `descending('firstPublishedDate')`
|
81
|
+
*
|
82
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
83
|
+
*
|
84
|
+
* To learn how to query posts, refer to the table below.
|
85
|
+
*
|
86
|
+
* 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`.
|
87
|
+
* @param - Options specifying which fields to return.
|
88
|
+
*/
|
89
|
+
(options?: QueryPostsOptions | undefined): PostsQueryBuilder;
|
90
|
+
}
|
91
|
+
declare function getPostMetrics$1(httpClient: HttpClient): GetPostMetricsSignature;
|
92
|
+
interface GetPostMetricsSignature {
|
93
|
+
/**
|
94
|
+
* Retrieves a post's metrics.
|
95
|
+
*
|
96
|
+
* A post's metrics include the comments, likes, and views the post receives.
|
97
|
+
* @param - Post ID to retrieve metrics for.
|
98
|
+
*/
|
99
|
+
(postId: string): Promise<GetPostMetricsResponse>;
|
100
|
+
}
|
101
|
+
|
102
|
+
declare const queryPostCountStats: MaybeContext<BuildRESTFunction<typeof queryPostCountStats$1> & typeof queryPostCountStats$1>;
|
103
|
+
declare const getTotalPosts: MaybeContext<BuildRESTFunction<typeof getTotalPosts$1> & typeof getTotalPosts$1>;
|
104
|
+
declare const getPost: MaybeContext<BuildRESTFunction<typeof getPost$1> & typeof getPost$1>;
|
105
|
+
declare const getPostBySlug: MaybeContext<BuildRESTFunction<typeof getPostBySlug$1> & typeof getPostBySlug$1>;
|
106
|
+
declare const listPosts: MaybeContext<BuildRESTFunction<typeof listPosts$1> & typeof listPosts$1>;
|
107
|
+
declare const queryPosts: MaybeContext<BuildRESTFunction<typeof queryPosts$1> & typeof queryPosts$1>;
|
108
|
+
declare const getPostMetrics: MaybeContext<BuildRESTFunction<typeof getPostMetrics$1> & typeof getPostMetrics$1>;
|
109
|
+
/**
|
110
|
+
* Triggered when a post is created.
|
111
|
+
*/
|
112
|
+
declare const onPostCreated: ReturnType<typeof createEventModule<typeof publicOnPostCreated>>;
|
113
|
+
/**
|
114
|
+
* Triggered when a post is deleted.
|
115
|
+
*/
|
116
|
+
declare const onPostDeleted: ReturnType<typeof createEventModule<typeof publicOnPostDeleted>>;
|
117
|
+
/**
|
118
|
+
* Triggered when a post is liked.
|
119
|
+
*/
|
120
|
+
declare const onPostLiked: ReturnType<typeof createEventModule<typeof publicOnPostLiked>>;
|
121
|
+
/**
|
122
|
+
* Triggered when a post is unliked.
|
123
|
+
*/
|
124
|
+
declare const onPostUnliked: ReturnType<typeof createEventModule<typeof publicOnPostUnliked>>;
|
125
|
+
/**
|
126
|
+
* Triggered when a post is updated.
|
127
|
+
*/
|
128
|
+
declare const onPostUpdated: ReturnType<typeof createEventModule<typeof publicOnPostUpdated>>;
|
129
|
+
|
130
|
+
export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetPostResponse, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse, PostsQueryBuilder, QueryPostCountStatsOptions, QueryPostCountStatsResponse, QueryPostsOptions, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
|
@@ -0,0 +1,130 @@
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
2
|
+
import { Q as QueryPostCountStatsOptions, a as QueryPostCountStatsResponse, G as GetTotalPostsOptions, b as GetTotalPostsResponse, c as GetPostOptions, d as GetPostResponse, e as GetPostBySlugOptions, f as GetPostBySlugResponse, L as ListPostsOptions, g as ListPostsResponse, h as QueryPostsOptions, P as PostsQueryBuilder, i as GetPostMetricsResponse } from './blog-v3-post-posts.universal-nU7XoyIE.js';
|
3
|
+
export { c1 as ActionEvent, A as Alignment, b9 as AnchorData, bf as AppEmbedData, bg as AppEmbedDataAppDataOneOf, w as AppType, bu as AudioData, a$ as Background, b0 as BackgroundBackgroundOneOf, B as BackgroundType, d0 as BaseEventMetadata, bx as BlockquoteData, c6 as BlogPaging, bh as BookingData, af as Border, bs as BorderColors, cE as BulkGetPostMetricsRequest, cF as BulkGetPostMetricsResponse, cS as BulkGetPostReactionsRequest, cT as BulkGetPostReactionsResponse, bw as BulletedListData, ae as ButtonData, by as CaptionData, c9 as Category, ca as CategoryTranslation, br as CellStyle, aq as CodeBlockData, bn as CollapsibleListData, ba as ColorData, ag as Colors, cX as ConvertDraftJsToRichContentRequest, cY as ConvertDraftJsToRichContentResponse, cZ as ConvertRichContentToDraftJsRequest, c_ as ConvertRichContentToDraftJsResponse, a1 as CoverMedia, a2 as CoverMediaMediaOneOf, cd as CreateDraftPostFromTemplateRequest, ce as CreateDraftPostFromTemplateResponse, C as Crop, cz as CursorPaging, cC as Cursors, b7 as Decoration, b8 as DecorationDataOneOf, D as DecorationType, b5 as Design, bp as Dimensions, x as Direction, as as DividerData, bB as DocumentStyle, bX as DomainEvent, bY as DomainEventBodyOneOf, cf as DraftPost, cg as DraftPostTranslation, bl as EmbedData, bI as EmbedMedia, bJ as EmbedThumbnail, bK as EmbedVideo, bZ as EntityCreatedEvent, c0 as EntityDeletedEvent, b$ as EntityUpdatedEvent, bi as EventData, d1 as EventMetadata, Y as Field, at as FileData, au as FileSource, av as FileSourceDataOneOf, a3 as FocalPoint, bd as FontSizeData, F as FontType, aI as GIF, aH as GIFData, q as GIFType, ax as GalleryData, aD as GalleryOptions, cs as GetPostBySlugRequest, cD as GetPostMetricsRequest, cr as GetPostRequest, R as GetPostTemplatesSort, _ as GetPostsSort, cb as GetTemplateRequest, cc as GetTemplateResponse, ch as GetTotalLikesPerMemberRequest, ci as GetTotalLikesPerMemberResponse, bW as GetTotalPostsRequest, bU as GetTotalPublicationsRequest, bV as GetTotalPublicationsResponse, a_ as Gradient, aK as HTMLData, aL as HTMLDataDataOneOf, aJ as HeadingData, al as Height, c3 as IdentificationData, c4 as IdentificationDataIdOneOf, az as Image, aM as ImageData, aO as ImageDataStyles, I as InitialExpandedItems, cq as InitialPostsCopied, aB as Item, aC as ItemDataOneOf, aF as ItemStyle, a7 as Keyword, aE as Layout, bz as LayoutCellData, o as LayoutType, cI as LikePostRequest, cJ as LikePostResponse, m as LineStyle, an as Link, bb as LinkData, ao as LinkDataOneOf, aP as LinkPreviewData, aQ as LinkPreviewDataStyles, cV as ListDemoPostsRequest, cW as ListDemoPostsResponse, cQ as ListPostsArchiveRequest, cR as ListPostsArchiveResponse, ct as ListPostsRequest, c5 as ListTemplatesRequest, c7 as ListTemplatesResponse, bt as ListValue, aR as MapData, aS as MapSettings, M as MapType, bE as Media, bF as MediaMediaOneOf, bc as MentionData, c2 as MessageEnvelope, c8 as MetaData, bA as Metadata, a5 as Metrics, bD as ModerationDetails, E as ModerationStatusStatus, ab as Node, ac as NodeDataOneOf, ad as NodeStyle, N as NodeType, z as NullValue, bm as Oembed, c$ as OldBlogMigratedEvent, aW as Option, b2 as OptionDesign, aZ as OptionLayout, J as Order, bv as OrderedListData, O as Orientation, U as Origin, aw as PDFSettings, cy as Paging, cB as PagingMetadataV2, aT as ParagraphData, bT as PeriodPostCount, bR as PeriodPublicationsCount, aV as Permissions, cM as PinPostRequest, cN as PinPostResponse, cw as PlatformQuery, cx as PlatformQueryPagingMethodOneOf, bk as PlaybackOptions, ah as PluginContainerData, j as PluginContainerDataAlignment, ai as PluginContainerDataWidth, aj as PluginContainerDataWidthDataOneOf, b3 as Poll, aU as PollData, b4 as PollDataLayout, b1 as PollDesign, aY as PollLayout, v as PollLayoutDirection, u as PollLayoutType, aX as PollSettings, r as Position, a0 as Post, bM as PostCategoriesUpdated, a4 as PostCountInfo, cn as PostCountersUpdated, co as PostCountersUpdatedInitiatorOneOf, d2 as PostCreatedEnvelope, d3 as PostDeletedEnvelope, Z as PostFieldField, cj as PostLiked, d4 as PostLikedEnvelope, ck as PostLikedInitiatorOneOf, cp as PostOwnerChanged, bN as PostTagsUpdated, bL as PostTranslation, cl as PostUnliked, d5 as PostUnlikedEnvelope, cm as PostUnlikedInitiatorOneOf, d6 as PostUpdatedEnvelope, d7 as PostsQueryResult, bS as QueryPostCountStatsRequest, cu as QueryPostsRequest, cA as QueryPostsResponse, bP as QueryPublicationsCountStatsRequest, H as QueryPublicationsCountStatsRequestOrder, bQ as QueryPublicationsCountStatsResponse, cU as Reactions, ap as Rel, b_ as RestoreInfo, aa as RichContent, bO as ScheduledPostPublished, a6 as SeoSchema, a9 as Settings, $ as SortOrder, cv as Sorting, S as Source, ak as Spoiler, be as SpoilerData, X as Status, am as Styles, aN as StylesBorder, bq as TableCellData, bo as TableData, a8 as Tag, k as Target, l as TextAlignment, b6 as TextData, bC as TextNodeStyle, ar as TextStyle, aG as Thumbnails, p as ThumbnailsAlignment, T as Type, cK as UnlikePostRequest, cL as UnlikePostResponse, cO as UnpinPostRequest, cP as UnpinPostResponse, ay as V1Media, y as VerticalAlignment, aA as Video, bj as VideoData, bH as VideoResolution, V as ViewMode, cG as ViewPostRequest, cH as ViewPostResponse, s as ViewRole, t as VoteRole, K as WebhookIdentityType, n as Width, W as WidthType, bG as WixMedia } from './blog-v3-post-posts.universal-nU7XoyIE.js';
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
5
|
+
|
6
|
+
declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
|
7
|
+
interface QueryPostCountStatsSignature {
|
8
|
+
/**
|
9
|
+
* Retrieves the number of published posts per month within a specified time range.
|
10
|
+
*
|
11
|
+
*
|
12
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
13
|
+
*
|
14
|
+
* 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.
|
15
|
+
*
|
16
|
+
* >**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.
|
17
|
+
* @param - Options specifying time frame, sort, and filter.
|
18
|
+
* @returns Get Blog Post Count Stats response
|
19
|
+
*/
|
20
|
+
(options?: QueryPostCountStatsOptions | undefined): Promise<QueryPostCountStatsResponse>;
|
21
|
+
}
|
22
|
+
declare function getTotalPosts$1(httpClient: HttpClient): GetTotalPostsSignature;
|
23
|
+
interface GetTotalPostsSignature {
|
24
|
+
/**
|
25
|
+
* Retrieves the total amount of published posts of the blog.
|
26
|
+
* @param - Language Options.
|
27
|
+
*/
|
28
|
+
(options?: GetTotalPostsOptions | undefined): Promise<GetTotalPostsResponse>;
|
29
|
+
}
|
30
|
+
declare function getPost$1(httpClient: HttpClient): GetPostSignature;
|
31
|
+
interface GetPostSignature {
|
32
|
+
/**
|
33
|
+
* Retrieves a post by the specified ID.
|
34
|
+
* @param - Post ID.
|
35
|
+
* @param - Options specifying which fields to return.
|
36
|
+
*/
|
37
|
+
(postId: string, options?: GetPostOptions | undefined): Promise<GetPostResponse>;
|
38
|
+
}
|
39
|
+
declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
|
40
|
+
interface GetPostBySlugSignature {
|
41
|
+
/**
|
42
|
+
* Retrieves a post with the provided slug.
|
43
|
+
*
|
44
|
+
* The slug is the end of a post's URL that refers to a specific post.
|
45
|
+
* For example, if a post's URL is `https:/example.com/blog/post/my-post-slug`,
|
46
|
+
* the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
|
47
|
+
* unless specified otherwise.
|
48
|
+
* @param - Slug of the post to retrieve.
|
49
|
+
* @param - Options specifying which fields to return.
|
50
|
+
*/
|
51
|
+
(slug: string, options?: GetPostBySlugOptions | undefined): Promise<GetPostBySlugResponse>;
|
52
|
+
}
|
53
|
+
declare function listPosts$1(httpClient: HttpClient): ListPostsSignature;
|
54
|
+
interface ListPostsSignature {
|
55
|
+
/**
|
56
|
+
* Retrieves a list of up to 100 published posts per request.
|
57
|
+
*
|
58
|
+
* List Posts runs with these defaults, which you can override:
|
59
|
+
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
60
|
+
* - `paging.limit` is `50`.
|
61
|
+
* - `paging.offset` is `0`.
|
62
|
+
* @param - Sort, filter, and paging options.
|
63
|
+
*/
|
64
|
+
(options?: ListPostsOptions | undefined): Promise<ListPostsResponse>;
|
65
|
+
}
|
66
|
+
declare function queryPosts$1(httpClient: HttpClient): QueryPostsSignature;
|
67
|
+
interface QueryPostsSignature {
|
68
|
+
/**
|
69
|
+
* Creates a query to retrieve a list of posts.
|
70
|
+
*
|
71
|
+
*
|
72
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
73
|
+
*
|
74
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
75
|
+
*
|
76
|
+
* 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.
|
77
|
+
*
|
78
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
79
|
+
* + `limit(50)`
|
80
|
+
* + `descending('firstPublishedDate')`
|
81
|
+
*
|
82
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
83
|
+
*
|
84
|
+
* To learn how to query posts, refer to the table below.
|
85
|
+
*
|
86
|
+
* 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`.
|
87
|
+
* @param - Options specifying which fields to return.
|
88
|
+
*/
|
89
|
+
(options?: QueryPostsOptions | undefined): PostsQueryBuilder;
|
90
|
+
}
|
91
|
+
declare function getPostMetrics$1(httpClient: HttpClient): GetPostMetricsSignature;
|
92
|
+
interface GetPostMetricsSignature {
|
93
|
+
/**
|
94
|
+
* Retrieves a post's metrics.
|
95
|
+
*
|
96
|
+
* A post's metrics include the comments, likes, and views the post receives.
|
97
|
+
* @param - Post ID to retrieve metrics for.
|
98
|
+
*/
|
99
|
+
(postId: string): Promise<GetPostMetricsResponse>;
|
100
|
+
}
|
101
|
+
|
102
|
+
declare const queryPostCountStats: MaybeContext<BuildRESTFunction<typeof queryPostCountStats$1> & typeof queryPostCountStats$1>;
|
103
|
+
declare const getTotalPosts: MaybeContext<BuildRESTFunction<typeof getTotalPosts$1> & typeof getTotalPosts$1>;
|
104
|
+
declare const getPost: MaybeContext<BuildRESTFunction<typeof getPost$1> & typeof getPost$1>;
|
105
|
+
declare const getPostBySlug: MaybeContext<BuildRESTFunction<typeof getPostBySlug$1> & typeof getPostBySlug$1>;
|
106
|
+
declare const listPosts: MaybeContext<BuildRESTFunction<typeof listPosts$1> & typeof listPosts$1>;
|
107
|
+
declare const queryPosts: MaybeContext<BuildRESTFunction<typeof queryPosts$1> & typeof queryPosts$1>;
|
108
|
+
declare const getPostMetrics: MaybeContext<BuildRESTFunction<typeof getPostMetrics$1> & typeof getPostMetrics$1>;
|
109
|
+
/**
|
110
|
+
* Triggered when a post is created.
|
111
|
+
*/
|
112
|
+
declare const onPostCreated: ReturnType<typeof createEventModule<typeof publicOnPostCreated>>;
|
113
|
+
/**
|
114
|
+
* Triggered when a post is deleted.
|
115
|
+
*/
|
116
|
+
declare const onPostDeleted: ReturnType<typeof createEventModule<typeof publicOnPostDeleted>>;
|
117
|
+
/**
|
118
|
+
* Triggered when a post is liked.
|
119
|
+
*/
|
120
|
+
declare const onPostLiked: ReturnType<typeof createEventModule<typeof publicOnPostLiked>>;
|
121
|
+
/**
|
122
|
+
* Triggered when a post is unliked.
|
123
|
+
*/
|
124
|
+
declare const onPostUnliked: ReturnType<typeof createEventModule<typeof publicOnPostUnliked>>;
|
125
|
+
/**
|
126
|
+
* Triggered when a post is updated.
|
127
|
+
*/
|
128
|
+
declare const onPostUpdated: ReturnType<typeof createEventModule<typeof publicOnPostUpdated>>;
|
129
|
+
|
130
|
+
export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetPostResponse, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse, PostsQueryBuilder, QueryPostCountStatsOptions, QueryPostCountStatsResponse, QueryPostsOptions, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
|