@wix/auto_sdk_blog_posts 1.0.159 → 1.0.160
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 +15 -11
- package/build/cjs/index.js +31 -85
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +154 -534
- package/build/cjs/index.typings.js +21 -80
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +125 -517
- package/build/cjs/meta.js +15 -74
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +86 -84
- package/build/cjs/schemas.js +153 -147
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +15 -11
- package/build/es/index.mjs +31 -82
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +154 -534
- package/build/es/index.typings.mjs +21 -77
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +125 -517
- package/build/es/meta.mjs +15 -71
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +86 -84
- package/build/es/schemas.mjs +153 -147
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -11
- package/build/internal/cjs/index.js +31 -85
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +154 -534
- package/build/internal/cjs/index.typings.js +21 -80
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +125 -517
- package/build/internal/cjs/meta.js +15 -74
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +86 -84
- package/build/internal/cjs/schemas.js +153 -147
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +15 -11
- package/build/internal/es/index.mjs +31 -82
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +154 -534
- package/build/internal/es/index.typings.mjs +21 -77
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +125 -517
- package/build/internal/es/meta.mjs +15 -71
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +86 -84
- package/build/internal/es/schemas.mjs +153 -147
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { QueryPostCountStatsOptions, QueryPostCountStatsResponse, GetTotalPostsOptions, GetTotalPostsResponse, GetPostOptions,
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner,
|
|
2
|
+
import { QueryPostCountStatsOptions, QueryPostCountStatsResponse, GetTotalPostsOptions, GetTotalPostsResponse, GetPostOptions, GetPostResponse, GetPostBySlugOptions, GetPostBySlugResponse, ListPostsOptions, ListPostsResponse, GetPostMetricsResponse, PostLikedEnvelope, PostUnlikedEnvelope, PostCreatedEnvelope, PostDeletedEnvelope, PostUpdatedEnvelope, PostQuery, QueryPostsOptions, typedQueryPosts, PostsQueryBuilder } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerPosition, BannerPositionWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BorderWidths, BulkDeletePostsRequest, BulkDeletePostsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeletePostRequest, DeletePostResponse, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FieldWithLiterals, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPostBySlugRequest, GetPostCountPerMonthRequest, GetPostCountPerMonthResponse, GetPostCountsRequest, GetPostCountsResponse, GetPostMetricsRequest, GetPostRequest, GetPostsSort, GetPostsSortWithLiterals, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsRequest, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LikePostRequest, LikePostResponse, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDemoPostsRequest, ListDemoPostsResponse, ListItemNodeData, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, ListStyle, ListStyleWithLiterals, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, 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, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, Post, PostCategoriesUpdated, PostCount, PostCountInfo, PostCountPerMonth, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostFieldField, PostFieldFieldWithLiterals, PostLiked, PostLikedInitiatorOneOf, PostOwnerChanged, PostQuerySpec, PostTagsUpdated, PostTranslation, PostUnliked, PostUnlikedInitiatorOneOf, PostsQueryResult, PricingData, QueryPostCountStatsRequest, QueryPostsRequest, QueryPostsResponse, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsRequestOrderWithLiterals, QueryPublicationsCountStatsResponse, Reactions, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, ScheduledPostPublished, SeoSchema, Settings, ShapeData, ShapeDataStyles, SketchData, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, Variant, VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewPostRequest, ViewPostResponse, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, WixMedia, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
|
|
6
6
|
interface QueryPostCountStatsSignature {
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves the number of published posts per month within a specified time range.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* The
|
|
12
|
-
*
|
|
13
|
-
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
14
|
-
*
|
|
15
|
-
*
|
|
10
|
+
*
|
|
11
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
|
12
|
+
*
|
|
13
|
+
* 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.
|
|
14
|
+
*
|
|
15
|
+
* >**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.
|
|
16
|
+
* @param - Options specifying time frame, sort, and filter.
|
|
16
17
|
* @returns Get Blog Post Count Stats response
|
|
17
18
|
*/
|
|
18
19
|
(options?: QueryPostCountStatsOptions): Promise<NonNullablePaths<QueryPostCountStatsResponse, `stats` | `stats.${number}.postCount`, 4>>;
|
|
@@ -21,6 +22,7 @@ declare function getTotalPosts$1(httpClient: HttpClient): GetTotalPostsSignature
|
|
|
21
22
|
interface GetTotalPostsSignature {
|
|
22
23
|
/**
|
|
23
24
|
* Retrieves the total amount of published posts of the blog.
|
|
25
|
+
* @param - Language Options.
|
|
24
26
|
*/
|
|
25
27
|
(options?: GetTotalPostsOptions): Promise<NonNullablePaths<GetTotalPostsResponse, `total`, 2>>;
|
|
26
28
|
}
|
|
@@ -29,9 +31,9 @@ interface GetPostSignature {
|
|
|
29
31
|
/**
|
|
30
32
|
* Retrieves a post by the specified ID.
|
|
31
33
|
* @param - Post ID.
|
|
32
|
-
* @
|
|
34
|
+
* @param - Options specifying which fields to return.
|
|
33
35
|
*/
|
|
34
|
-
(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
36
|
+
(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<GetPostResponse, `post._id` | `post.title` | `post.excerpt` | `post.slug` | `post.featured` | `post.pinned` | `post.categoryIds` | `post.memberId` | `post.hashtags` | `post.commentingEnabled` | `post.minutesToRead` | `post.tagIds` | `post.relatedPostIds` | `post.pricingPlanIds` | `post.seoData.tags` | `post.seoData.tags.${number}.type` | `post.seoData.tags.${number}.children` | `post.seoData.tags.${number}.custom` | `post.seoData.tags.${number}.disabled` | `post.seoData.settings.preventAutoRedirect` | `post.seoData.settings.keywords` | `post.seoData.settings.keywords.${number}.term` | `post.seoData.settings.keywords.${number}.isMain` | `post.preview` | `post.moderationDetails.submittedBy` | `post.moderationDetails.status` | `post.media.embedMedia.thumbnail.url` | `post.media.embedMedia.thumbnail.width` | `post.media.embedMedia.thumbnail.height` | `post.media.embedMedia.video.url` | `post.media.embedMedia.video.width` | `post.media.embedMedia.video.height` | `post.media.displayed` | `post.media.custom` | `post.hasUnpublishedChanges`, 7>>;
|
|
35
37
|
}
|
|
36
38
|
declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
|
|
37
39
|
interface GetPostBySlugSignature {
|
|
@@ -43,6 +45,7 @@ interface GetPostBySlugSignature {
|
|
|
43
45
|
* the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
|
|
44
46
|
* unless specified otherwise.
|
|
45
47
|
* @param - Slug of the post to retrieve.
|
|
48
|
+
* @param - Options specifying which fields to return.
|
|
46
49
|
*/
|
|
47
50
|
(slug: string, options?: GetPostBySlugOptions): Promise<NonNullablePaths<GetPostBySlugResponse, `post._id` | `post.title` | `post.excerpt` | `post.slug` | `post.featured` | `post.pinned` | `post.categoryIds` | `post.memberId` | `post.hashtags` | `post.commentingEnabled` | `post.minutesToRead` | `post.tagIds` | `post.relatedPostIds` | `post.pricingPlanIds` | `post.seoData.tags` | `post.seoData.tags.${number}.type` | `post.seoData.tags.${number}.children` | `post.seoData.tags.${number}.custom` | `post.seoData.tags.${number}.disabled` | `post.seoData.settings.preventAutoRedirect` | `post.seoData.settings.keywords` | `post.seoData.settings.keywords.${number}.term` | `post.seoData.settings.keywords.${number}.isMain` | `post.preview` | `post.moderationDetails.submittedBy` | `post.moderationDetails.status` | `post.media.embedMedia.thumbnail.url` | `post.media.embedMedia.thumbnail.width` | `post.media.embedMedia.thumbnail.height` | `post.media.embedMedia.video.url` | `post.media.embedMedia.video.width` | `post.media.embedMedia.video.height` | `post.media.displayed` | `post.media.custom` | `post.hasUnpublishedChanges`, 7>>;
|
|
48
51
|
}
|
|
@@ -55,6 +58,7 @@ interface ListPostsSignature {
|
|
|
55
58
|
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
56
59
|
* - `paging.limit` is `50`.
|
|
57
60
|
* - `paging.offset` is `0`.
|
|
61
|
+
* @param - Sort, filter, and paging options.
|
|
58
62
|
*/
|
|
59
63
|
(options?: ListPostsOptions): Promise<NonNullablePaths<ListPostsResponse, `posts` | `posts.${number}._id` | `posts.${number}.title` | `posts.${number}.excerpt` | `posts.${number}.slug` | `posts.${number}.featured` | `posts.${number}.pinned` | `posts.${number}.memberId` | `posts.${number}.commentingEnabled` | `posts.${number}.minutesToRead` | `posts.${number}.seoData.settings.preventAutoRedirect` | `posts.${number}.preview` | `posts.${number}.moderationDetails.submittedBy` | `posts.${number}.moderationDetails.status` | `posts.${number}.media.displayed` | `posts.${number}.media.custom` | `posts.${number}.hasUnpublishedChanges` | `metaData.count` | `metaData.offset` | `metaData.total`, 6>>;
|
|
60
64
|
}
|
|
@@ -102,4 +106,4 @@ declare const onPostDeleted: BuildEventDefinition<typeof onPostDeleted$1> & type
|
|
|
102
106
|
*/
|
|
103
107
|
declare const onPostUpdated: BuildEventDefinition<typeof onPostUpdated$1> & typeof onPostUpdated$1;
|
|
104
108
|
|
|
105
|
-
export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse,
|
|
109
|
+
export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetPostResponse, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostQuery, PostUnlikedEnvelope, PostUpdatedEnvelope, PostsQueryBuilder, QueryPostCountStatsOptions, QueryPostCountStatsResponse, QueryPostsOptions, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
|
package/build/cjs/index.js
CHANGED
|
@@ -25,7 +25,6 @@ __export(index_exports, {
|
|
|
25
25
|
AspectRatio: () => AspectRatio,
|
|
26
26
|
BackdropType: () => BackdropType,
|
|
27
27
|
BackgroundType: () => BackgroundType,
|
|
28
|
-
BannerOrigin: () => BannerOrigin,
|
|
29
28
|
BannerPosition: () => BannerPosition,
|
|
30
29
|
ButtonDataType: () => ButtonDataType,
|
|
31
30
|
CardDataBackgroundType: () => CardDataBackgroundType,
|
|
@@ -38,7 +37,6 @@ __export(index_exports, {
|
|
|
38
37
|
Field: () => Field,
|
|
39
38
|
FontType: () => FontType,
|
|
40
39
|
GIFType: () => GIFType,
|
|
41
|
-
GetPostTemplatesSort: () => GetPostTemplatesSort,
|
|
42
40
|
GetPostsSort: () => GetPostsSort,
|
|
43
41
|
GradientType: () => GradientType,
|
|
44
42
|
ImagePosition: () => ImagePosition,
|
|
@@ -52,7 +50,6 @@ __export(index_exports, {
|
|
|
52
50
|
LineStyle: () => LineStyle,
|
|
53
51
|
ListStyle: () => ListStyle,
|
|
54
52
|
MapType: () => MapType,
|
|
55
|
-
ModerationStatusStatus: () => ModerationStatusStatus,
|
|
56
53
|
NodeType: () => NodeType,
|
|
57
54
|
NullValue: () => NullValue,
|
|
58
55
|
Order: () => Order,
|
|
@@ -1378,11 +1375,11 @@ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
|
|
|
1378
1375
|
ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
1379
1376
|
return ImagePosition2;
|
|
1380
1377
|
})(ImagePosition || {});
|
|
1381
|
-
var
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
return
|
|
1385
|
-
})(
|
|
1378
|
+
var Origin = /* @__PURE__ */ ((Origin2) => {
|
|
1379
|
+
Origin2["IMAGE"] = "IMAGE";
|
|
1380
|
+
Origin2["LAYOUT"] = "LAYOUT";
|
|
1381
|
+
return Origin2;
|
|
1382
|
+
})(Origin || {});
|
|
1386
1383
|
var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
|
|
1387
1384
|
BannerPosition2["TOP"] = "TOP";
|
|
1388
1385
|
BannerPosition2["BOTTOM"] = "BOTTOM";
|
|
@@ -1485,73 +1482,12 @@ var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
|
|
|
1485
1482
|
ColumnSize2["EXTRA_LARGE"] = "EXTRA_LARGE";
|
|
1486
1483
|
return ColumnSize2;
|
|
1487
1484
|
})(ColumnSize || {});
|
|
1488
|
-
var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
1489
|
-
ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1490
|
-
ModerationStatusStatus2["APPROVED"] = "APPROVED";
|
|
1491
|
-
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
|
1492
|
-
return ModerationStatusStatus2;
|
|
1493
|
-
})(ModerationStatusStatus || {});
|
|
1494
|
-
var GetPostTemplatesSort = /* @__PURE__ */ ((GetPostTemplatesSort2) => {
|
|
1495
|
-
GetPostTemplatesSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
|
|
1496
|
-
GetPostTemplatesSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
|
|
1497
|
-
return GetPostTemplatesSort2;
|
|
1498
|
-
})(GetPostTemplatesSort || {});
|
|
1499
|
-
var Origin = /* @__PURE__ */ ((Origin2) => {
|
|
1500
|
-
Origin2["UNKNOWN"] = "UNKNOWN";
|
|
1501
|
-
Origin2["ADMIN"] = "ADMIN";
|
|
1502
|
-
Origin2["ADD_CATEGORIES"] = "ADD_CATEGORIES";
|
|
1503
|
-
Origin2["AUTO_SAVE"] = "AUTO_SAVE";
|
|
1504
|
-
Origin2["COPY_TEMPLATE"] = "COPY_TEMPLATE";
|
|
1505
|
-
Origin2["IMPORT"] = "IMPORT";
|
|
1506
|
-
Origin2["IMPORT_BULK"] = "IMPORT_BULK";
|
|
1507
|
-
Origin2["IMPORT_HTML"] = "IMPORT_HTML";
|
|
1508
|
-
Origin2["IMPORT_PATCH"] = "IMPORT_PATCH";
|
|
1509
|
-
Origin2["LANGUAGE_CHANGE"] = "LANGUAGE_CHANGE";
|
|
1510
|
-
Origin2["MANUAL_SAVE"] = "MANUAL_SAVE";
|
|
1511
|
-
Origin2["MIGRATION"] = "MIGRATION";
|
|
1512
|
-
Origin2["MODERATION"] = "MODERATION";
|
|
1513
|
-
Origin2["MOVE_TO_TRASH"] = "MOVE_TO_TRASH";
|
|
1514
|
-
Origin2["PRICING_PLANS_CHANGE"] = "PRICING_PLANS_CHANGE";
|
|
1515
|
-
Origin2["PROVISION"] = "PROVISION";
|
|
1516
|
-
Origin2["PUBLISH"] = "PUBLISH";
|
|
1517
|
-
Origin2["REASSIGN_OWNER"] = "REASSIGN_OWNER";
|
|
1518
|
-
Origin2["REBLOG"] = "REBLOG";
|
|
1519
|
-
Origin2["RESTORE"] = "RESTORE";
|
|
1520
|
-
Origin2["REVERT_TO_DRAFT"] = "REVERT_TO_DRAFT";
|
|
1521
|
-
Origin2["TRANSLATION"] = "TRANSLATION";
|
|
1522
|
-
Origin2["UNPUBLISH"] = "UNPUBLISH";
|
|
1523
|
-
Origin2["UNSCHEDULE"] = "UNSCHEDULE";
|
|
1524
|
-
Origin2["NEW_EDIT_SESSION"] = "NEW_EDIT_SESSION";
|
|
1525
|
-
Origin2["SCHEDULING_SERVICE_SCHEDULE"] = "SCHEDULING_SERVICE_SCHEDULE";
|
|
1526
|
-
Origin2["SCHEDULING_SERVICE_UNSCHEDULE"] = "SCHEDULING_SERVICE_UNSCHEDULE";
|
|
1527
|
-
Origin2["SCHEDULING_SERVICE_PUBLISH"] = "SCHEDULING_SERVICE_PUBLISH";
|
|
1528
|
-
Origin2["SCHEDULE"] = "SCHEDULE";
|
|
1529
|
-
Origin2["REMOVE_FROM_MODERATION"] = "REMOVE_FROM_MODERATION";
|
|
1530
|
-
Origin2["REJECT_FROM_MODERATION"] = "REJECT_FROM_MODERATION";
|
|
1531
|
-
Origin2["APPROVE_IN_MODERATION"] = "APPROVE_IN_MODERATION";
|
|
1532
|
-
Origin2["DELETE_TAG"] = "DELETE_TAG";
|
|
1533
|
-
Origin2["PIN"] = "PIN";
|
|
1534
|
-
Origin2["UNPIN"] = "UNPIN";
|
|
1535
|
-
Origin2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
|
|
1536
|
-
return Origin2;
|
|
1537
|
-
})(Origin || {});
|
|
1538
1485
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
1539
1486
|
Status2["UNKNOWN"] = "UNKNOWN";
|
|
1540
|
-
Status2["
|
|
1541
|
-
Status2["
|
|
1542
|
-
Status2["SCHEDULED"] = "SCHEDULED";
|
|
1543
|
-
Status2["DELETED"] = "DELETED";
|
|
1544
|
-
Status2["IN_REVIEW"] = "IN_REVIEW";
|
|
1487
|
+
Status2["APPROVED"] = "APPROVED";
|
|
1488
|
+
Status2["REJECTED"] = "REJECTED";
|
|
1545
1489
|
return Status2;
|
|
1546
1490
|
})(Status || {});
|
|
1547
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1548
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1549
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1550
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1551
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1552
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1553
|
-
return WebhookIdentityType2;
|
|
1554
|
-
})(WebhookIdentityType || {});
|
|
1555
1491
|
var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
|
|
1556
1492
|
QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
|
|
1557
1493
|
QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
|
|
@@ -1564,6 +1500,14 @@ var Order = /* @__PURE__ */ ((Order2) => {
|
|
|
1564
1500
|
Order2["NEWEST"] = "NEWEST";
|
|
1565
1501
|
return Order2;
|
|
1566
1502
|
})(Order || {});
|
|
1503
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1504
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1505
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1506
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1507
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1508
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1509
|
+
return WebhookIdentityType2;
|
|
1510
|
+
})(WebhookIdentityType || {});
|
|
1567
1511
|
var Field = /* @__PURE__ */ ((Field2) => {
|
|
1568
1512
|
Field2["UNKNOWN"] = "UNKNOWN";
|
|
1569
1513
|
Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
|
|
@@ -1691,8 +1635,8 @@ async function getPost2(postId, options) {
|
|
|
1691
1635
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1692
1636
|
}
|
|
1693
1637
|
]),
|
|
1694
|
-
["post.richContent"]
|
|
1695
|
-
)
|
|
1638
|
+
["post.richContent", "post.rich_content"]
|
|
1639
|
+
);
|
|
1696
1640
|
} catch (err) {
|
|
1697
1641
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1698
1642
|
err,
|
|
@@ -1739,7 +1683,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1739
1683
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1740
1684
|
}
|
|
1741
1685
|
]),
|
|
1742
|
-
["post.richContent"]
|
|
1686
|
+
["post.richContent", "post.rich_content"]
|
|
1743
1687
|
);
|
|
1744
1688
|
} catch (err) {
|
|
1745
1689
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1798,7 +1742,7 @@ async function listPosts2(options) {
|
|
|
1798
1742
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1799
1743
|
}
|
|
1800
1744
|
]),
|
|
1801
|
-
["posts.richContent"]
|
|
1745
|
+
["posts.richContent", "posts.rich_content"]
|
|
1802
1746
|
);
|
|
1803
1747
|
} catch (err) {
|
|
1804
1748
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1868,7 +1812,7 @@ function queryPosts2(options) {
|
|
|
1868
1812
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1869
1813
|
}
|
|
1870
1814
|
]),
|
|
1871
|
-
["posts.richContent"]
|
|
1815
|
+
["posts.richContent", "posts.rich_content"]
|
|
1872
1816
|
);
|
|
1873
1817
|
return {
|
|
1874
1818
|
items: transformedData?.posts,
|
|
@@ -1916,7 +1860,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1916
1860
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1917
1861
|
}
|
|
1918
1862
|
]),
|
|
1919
|
-
["posts.richContent"]
|
|
1863
|
+
["posts.richContent", "posts.rich_content"]
|
|
1920
1864
|
);
|
|
1921
1865
|
} catch (err) {
|
|
1922
1866
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -2030,7 +1974,8 @@ var onPostLiked = (0, import_sdk_types.EventDefinition)(
|
|
|
2030
1974
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2031
1975
|
paths: [{ path: "metadata.eventTime" }]
|
|
2032
1976
|
}
|
|
2033
|
-
])
|
|
1977
|
+
]),
|
|
1978
|
+
["entity.rich_content"]
|
|
2034
1979
|
)
|
|
2035
1980
|
)();
|
|
2036
1981
|
var onPostUnliked = (0, import_sdk_types.EventDefinition)(
|
|
@@ -2042,7 +1987,8 @@ var onPostUnliked = (0, import_sdk_types.EventDefinition)(
|
|
|
2042
1987
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2043
1988
|
paths: [{ path: "metadata.eventTime" }]
|
|
2044
1989
|
}
|
|
2045
|
-
])
|
|
1990
|
+
]),
|
|
1991
|
+
["entity.rich_content"]
|
|
2046
1992
|
)
|
|
2047
1993
|
)();
|
|
2048
1994
|
var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
@@ -2172,7 +2118,8 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
2172
2118
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
2173
2119
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
|
2174
2120
|
}
|
|
2175
|
-
])
|
|
2121
|
+
]),
|
|
2122
|
+
["entity.rich_content"]
|
|
2176
2123
|
)
|
|
2177
2124
|
)();
|
|
2178
2125
|
var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
@@ -2302,7 +2249,8 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
2302
2249
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
2303
2250
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
|
2304
2251
|
}
|
|
2305
|
-
])
|
|
2252
|
+
]),
|
|
2253
|
+
["entity.rich_content"]
|
|
2306
2254
|
)
|
|
2307
2255
|
)();
|
|
2308
2256
|
var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
@@ -2432,7 +2380,8 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
2432
2380
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
2433
2381
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
|
2434
2382
|
}
|
|
2435
|
-
])
|
|
2383
|
+
]),
|
|
2384
|
+
["entity.rich_content"]
|
|
2436
2385
|
)
|
|
2437
2386
|
)();
|
|
2438
2387
|
|
|
@@ -2470,7 +2419,6 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
|
|
|
2470
2419
|
AspectRatio,
|
|
2471
2420
|
BackdropType,
|
|
2472
2421
|
BackgroundType,
|
|
2473
|
-
BannerOrigin,
|
|
2474
2422
|
BannerPosition,
|
|
2475
2423
|
ButtonDataType,
|
|
2476
2424
|
CardDataBackgroundType,
|
|
@@ -2483,7 +2431,6 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
|
|
|
2483
2431
|
Field,
|
|
2484
2432
|
FontType,
|
|
2485
2433
|
GIFType,
|
|
2486
|
-
GetPostTemplatesSort,
|
|
2487
2434
|
GetPostsSort,
|
|
2488
2435
|
GradientType,
|
|
2489
2436
|
ImagePosition,
|
|
@@ -2497,7 +2444,6 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
|
|
|
2497
2444
|
LineStyle,
|
|
2498
2445
|
ListStyle,
|
|
2499
2446
|
MapType,
|
|
2500
|
-
ModerationStatusStatus,
|
|
2501
2447
|
NodeType,
|
|
2502
2448
|
NullValue,
|
|
2503
2449
|
Order,
|