@wix/auto_sdk_blog_posts 1.0.30 → 1.0.32

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