@wix/auto_sdk_blog_posts 1.0.172 → 1.0.174
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 +65 -25
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +136 -24
- package/build/cjs/index.typings.js +44 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +106 -2
- package/build/cjs/meta.js +37 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +84 -82
- package/build/cjs/schemas.js +167 -161
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +15 -11
- package/build/es/index.mjs +63 -25
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +136 -24
- package/build/es/index.typings.mjs +42 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +106 -2
- package/build/es/meta.mjs +35 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +84 -82
- package/build/es/schemas.mjs +167 -161
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -11
- package/build/internal/cjs/index.js +65 -25
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +136 -24
- package/build/internal/cjs/index.typings.js +44 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +106 -2
- package/build/internal/cjs/meta.js +37 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +84 -82
- package/build/internal/cjs/schemas.js +167 -161
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +15 -11
- package/build/internal/es/index.mjs +63 -25
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +136 -24
- package/build/internal/es/index.typings.mjs +42 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +106 -2
- package/build/internal/es/meta.mjs +35 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +84 -82
- package/build/internal/es/schemas.mjs +167 -161
- 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, AddressLocation, Alignment, AlignmentWithLiterals, AnchorData, Animation, 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, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeletePostRequest, DeletePostResponse, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DividerDataStyles, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EntranceAnimation, EntranceEffect, EntranceEffectType, EntranceEffectTypeWithLiterals, 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,
|
|
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, AddressLocation, Alignment, AlignmentWithLiterals, AnchorData, Animation, 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, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeletePostRequest, DeletePostResponse, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DividerDataStyles, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EntranceAnimation, EntranceEffect, EntranceEffectType, EntranceEffectTypeWithLiterals, 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, ImageDataCrop, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, LayerEffect, LayerEffectWithLiterals, Layers, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LikePostRequest, LikePostResponse, LineCap, LineCapWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDemoPostsRequest, ListDemoPostsResponse, ListItemNodeData, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, ListStyle, ListStyleWithLiterals, ListValue, LoopAnimation, LoopEffect, LoopEffectType, LoopEffectTypeWithLiterals, 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, PointerEffect, PointerEffectType, PointerEffectTypeWithLiterals, 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, SectionDivider, SeoSchema, Settings, Shape, ShapeData, ShapeDataStyles, ShapeWithLiterals, 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
|
@@ -46,6 +46,7 @@ __export(index_exports, {
|
|
|
46
46
|
ImageScalingScaling: () => ImageScalingScaling,
|
|
47
47
|
Indentation: () => Indentation,
|
|
48
48
|
InitialExpandedItems: () => InitialExpandedItems,
|
|
49
|
+
LayerEffect: () => LayerEffect,
|
|
49
50
|
Layout: () => Layout,
|
|
50
51
|
LayoutDataBackgroundType: () => LayoutDataBackgroundType,
|
|
51
52
|
LayoutType: () => LayoutType,
|
|
@@ -71,6 +72,7 @@ __export(index_exports, {
|
|
|
71
72
|
Resizing: () => Resizing,
|
|
72
73
|
ResponsivenessBehaviour: () => ResponsivenessBehaviour,
|
|
73
74
|
Scaling: () => Scaling,
|
|
75
|
+
Shape: () => Shape,
|
|
74
76
|
SmartBlockDataType: () => SmartBlockDataType,
|
|
75
77
|
SortOrder: () => SortOrder,
|
|
76
78
|
Source: () => Source,
|
|
@@ -1590,6 +1592,39 @@ var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
|
|
|
1590
1592
|
BannerPosition2["BOTTOM"] = "BOTTOM";
|
|
1591
1593
|
return BannerPosition2;
|
|
1592
1594
|
})(BannerPosition || {});
|
|
1595
|
+
var LayerEffect = /* @__PURE__ */ ((LayerEffect2) => {
|
|
1596
|
+
LayerEffect2["CENTER"] = "CENTER";
|
|
1597
|
+
LayerEffect2["FADE_TO_TOP"] = "FADE_TO_TOP";
|
|
1598
|
+
LayerEffect2["FADE_TO_BOTTOM"] = "FADE_TO_BOTTOM";
|
|
1599
|
+
return LayerEffect2;
|
|
1600
|
+
})(LayerEffect || {});
|
|
1601
|
+
var Shape = /* @__PURE__ */ ((Shape2) => {
|
|
1602
|
+
Shape2["ELLIPSE"] = "ELLIPSE";
|
|
1603
|
+
Shape2["TILT"] = "TILT";
|
|
1604
|
+
Shape2["LIQUID"] = "LIQUID";
|
|
1605
|
+
Shape2["LEFT_WAVE"] = "LEFT_WAVE";
|
|
1606
|
+
Shape2["PAINT_SCRIBBLE"] = "PAINT_SCRIBBLE";
|
|
1607
|
+
Shape2["INVERTED_ELLIPSE"] = "INVERTED_ELLIPSE";
|
|
1608
|
+
Shape2["RIGHT_WAVE"] = "RIGHT_WAVE";
|
|
1609
|
+
Shape2["DUNES"] = "DUNES";
|
|
1610
|
+
Shape2["WAVES"] = "WAVES";
|
|
1611
|
+
Shape2["TRIANGLE"] = "TRIANGLE";
|
|
1612
|
+
Shape2["SEMI_ELLIPSE"] = "SEMI_ELLIPSE";
|
|
1613
|
+
Shape2["PLANTS"] = "PLANTS";
|
|
1614
|
+
Shape2["LAYERED_ELLIPSE"] = "LAYERED_ELLIPSE";
|
|
1615
|
+
Shape2["PIXELS"] = "PIXELS";
|
|
1616
|
+
Shape2["PAINT"] = "PAINT";
|
|
1617
|
+
Shape2["CLOUDS"] = "CLOUDS";
|
|
1618
|
+
Shape2["OPTICAL_ILLUSION"] = "OPTICAL_ILLUSION";
|
|
1619
|
+
Shape2["STRIPES"] = "STRIPES";
|
|
1620
|
+
Shape2["BLOBS"] = "BLOBS";
|
|
1621
|
+
Shape2["SEMI_CIRCLES"] = "SEMI_CIRCLES";
|
|
1622
|
+
Shape2["HILL"] = "HILL";
|
|
1623
|
+
Shape2["BRUSH"] = "BRUSH";
|
|
1624
|
+
Shape2["PEAKS"] = "PEAKS";
|
|
1625
|
+
Shape2["ANGLED_TRIANGLE"] = "ANGLED_TRIANGLE";
|
|
1626
|
+
return Shape2;
|
|
1627
|
+
})(Shape || {});
|
|
1593
1628
|
var BackdropType = /* @__PURE__ */ ((BackdropType2) => {
|
|
1594
1629
|
BackdropType2["COLOR"] = "COLOR";
|
|
1595
1630
|
BackdropType2["GRADIENT"] = "GRADIENT";
|
|
@@ -1848,8 +1883,8 @@ async function getPost2(postId, options) {
|
|
|
1848
1883
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1849
1884
|
}
|
|
1850
1885
|
]),
|
|
1851
|
-
["post.richContent"]
|
|
1852
|
-
)
|
|
1886
|
+
["post.richContent", "post.rich_content"]
|
|
1887
|
+
);
|
|
1853
1888
|
} catch (err) {
|
|
1854
1889
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1855
1890
|
err,
|
|
@@ -1896,7 +1931,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1896
1931
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1897
1932
|
}
|
|
1898
1933
|
]),
|
|
1899
|
-
["post.richContent"]
|
|
1934
|
+
["post.richContent", "post.rich_content"]
|
|
1900
1935
|
);
|
|
1901
1936
|
} catch (err) {
|
|
1902
1937
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1955,7 +1990,7 @@ async function listPosts2(options) {
|
|
|
1955
1990
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1956
1991
|
}
|
|
1957
1992
|
]),
|
|
1958
|
-
["posts.richContent"]
|
|
1993
|
+
["posts.richContent", "posts.rich_content"]
|
|
1959
1994
|
);
|
|
1960
1995
|
} catch (err) {
|
|
1961
1996
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -2025,7 +2060,7 @@ function queryPosts2(options) {
|
|
|
2025
2060
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
2026
2061
|
}
|
|
2027
2062
|
]),
|
|
2028
|
-
["posts.richContent"]
|
|
2063
|
+
["posts.richContent", "posts.rich_content"]
|
|
2029
2064
|
);
|
|
2030
2065
|
return {
|
|
2031
2066
|
items: transformedData?.posts,
|
|
@@ -2073,7 +2108,7 @@ async function typedQueryPosts(query, options) {
|
|
|
2073
2108
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
2074
2109
|
}
|
|
2075
2110
|
]),
|
|
2076
|
-
["posts.richContent"]
|
|
2111
|
+
["posts.richContent", "posts.rich_content"]
|
|
2077
2112
|
);
|
|
2078
2113
|
} catch (err) {
|
|
2079
2114
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -2090,9 +2125,7 @@ async function typedQueryPosts(query, options) {
|
|
|
2090
2125
|
}
|
|
2091
2126
|
}
|
|
2092
2127
|
var utils = {
|
|
2093
|
-
query:
|
|
2094
|
-
...(0, import_query_builder_utils.createQueryUtils)()
|
|
2095
|
-
}
|
|
2128
|
+
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)()
|
|
2096
2129
|
};
|
|
2097
2130
|
async function getPostMetrics2(postId) {
|
|
2098
2131
|
const { httpClient, sideEffects } = arguments[1];
|
|
@@ -2178,7 +2211,7 @@ function getPostMetrics3(httpClient) {
|
|
|
2178
2211
|
{ httpClient }
|
|
2179
2212
|
);
|
|
2180
2213
|
}
|
|
2181
|
-
var onPostLiked = (0, import_sdk_types.EventDefinition)(
|
|
2214
|
+
var onPostLiked = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2182
2215
|
"wix.blog.v3.post_liked",
|
|
2183
2216
|
true,
|
|
2184
2217
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -2187,10 +2220,11 @@ var onPostLiked = (0, import_sdk_types.EventDefinition)(
|
|
|
2187
2220
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2188
2221
|
paths: [{ path: "metadata.eventTime" }]
|
|
2189
2222
|
}
|
|
2190
|
-
])
|
|
2223
|
+
]),
|
|
2224
|
+
["entity.rich_content"]
|
|
2191
2225
|
)
|
|
2192
2226
|
)();
|
|
2193
|
-
var onPostUnliked = (0, import_sdk_types.EventDefinition)(
|
|
2227
|
+
var onPostUnliked = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2194
2228
|
"wix.blog.v3.post_unliked",
|
|
2195
2229
|
true,
|
|
2196
2230
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -2199,10 +2233,11 @@ var onPostUnliked = (0, import_sdk_types.EventDefinition)(
|
|
|
2199
2233
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
2200
2234
|
paths: [{ path: "metadata.eventTime" }]
|
|
2201
2235
|
}
|
|
2202
|
-
])
|
|
2236
|
+
]),
|
|
2237
|
+
["entity.rich_content"]
|
|
2203
2238
|
)
|
|
2204
2239
|
)();
|
|
2205
|
-
var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
2240
|
+
var onPostCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2206
2241
|
"wix.blog.v3.post_created",
|
|
2207
2242
|
true,
|
|
2208
2243
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -2360,10 +2395,11 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
2360
2395
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
2361
2396
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
|
2362
2397
|
}
|
|
2363
|
-
])
|
|
2398
|
+
]),
|
|
2399
|
+
["entity.rich_content"]
|
|
2364
2400
|
)
|
|
2365
2401
|
)();
|
|
2366
|
-
var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
2402
|
+
var onPostDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2367
2403
|
"wix.blog.v3.post_deleted",
|
|
2368
2404
|
true,
|
|
2369
2405
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -2521,10 +2557,11 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
2521
2557
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
2522
2558
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
|
2523
2559
|
}
|
|
2524
|
-
])
|
|
2560
|
+
]),
|
|
2561
|
+
["entity.rich_content"]
|
|
2525
2562
|
)
|
|
2526
2563
|
)();
|
|
2527
|
-
var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
2564
|
+
var onPostUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
2528
2565
|
"wix.blog.v3.post_updated",
|
|
2529
2566
|
true,
|
|
2530
2567
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -2682,7 +2719,8 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
2682
2719
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
2683
2720
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
|
2684
2721
|
}
|
|
2685
|
-
])
|
|
2722
|
+
]),
|
|
2723
|
+
["entity.rich_content"]
|
|
2686
2724
|
)
|
|
2687
2725
|
)();
|
|
2688
2726
|
|
|
@@ -2691,7 +2729,7 @@ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
|
2691
2729
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
2692
2730
|
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
2693
2731
|
function customQueryPosts(httpClient) {
|
|
2694
|
-
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
2732
|
+
const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
|
|
2695
2733
|
builderQueryFunction: (options) => queryPosts3(httpClient)(options),
|
|
2696
2734
|
typedQueryFunction: (query, options) => typedQueryPosts2(httpClient)(query, options),
|
|
2697
2735
|
hasOptionsParameter: true
|
|
@@ -2708,11 +2746,11 @@ var getPostBySlug4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(
|
|
|
2708
2746
|
var listPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listPosts3);
|
|
2709
2747
|
var getPostMetrics4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPostMetrics3);
|
|
2710
2748
|
var queryPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryPosts);
|
|
2711
|
-
var onPostLiked2 = (0, import_event_definition_modules.createEventModule)(onPostLiked);
|
|
2712
|
-
var onPostUnliked2 = (0, import_event_definition_modules.createEventModule)(onPostUnliked);
|
|
2713
|
-
var onPostCreated2 = (0, import_event_definition_modules.createEventModule)(onPostCreated);
|
|
2714
|
-
var onPostDeleted2 = (0, import_event_definition_modules.createEventModule)(onPostDeleted);
|
|
2715
|
-
var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPostUpdated);
|
|
2749
|
+
var onPostLiked2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onPostLiked);
|
|
2750
|
+
var onPostUnliked2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onPostUnliked);
|
|
2751
|
+
var onPostCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onPostCreated);
|
|
2752
|
+
var onPostDeleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onPostDeleted);
|
|
2753
|
+
var onPostUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onPostUpdated);
|
|
2716
2754
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2717
2755
|
0 && (module.exports = {
|
|
2718
2756
|
Alignment,
|
|
@@ -2741,6 +2779,7 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
|
|
|
2741
2779
|
ImageScalingScaling,
|
|
2742
2780
|
Indentation,
|
|
2743
2781
|
InitialExpandedItems,
|
|
2782
|
+
LayerEffect,
|
|
2744
2783
|
Layout,
|
|
2745
2784
|
LayoutDataBackgroundType,
|
|
2746
2785
|
LayoutType,
|
|
@@ -2766,6 +2805,7 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
|
|
|
2766
2805
|
Resizing,
|
|
2767
2806
|
ResponsivenessBehaviour,
|
|
2768
2807
|
Scaling,
|
|
2808
|
+
Shape,
|
|
2769
2809
|
SmartBlockDataType,
|
|
2770
2810
|
SortOrder,
|
|
2771
2811
|
Source,
|