@wix/auto_sdk_blog_posts 1.0.121 → 1.0.122
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 +4 -4
- package/build/cjs/index.js +71 -74
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +230 -143
- package/build/cjs/index.typings.js +47 -55
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +215 -145
- package/build/cjs/meta.js +39 -29
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +68 -74
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +230 -143
- package/build/es/index.typings.mjs +44 -55
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +215 -145
- package/build/es/meta.mjs +39 -29
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +71 -74
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +231 -144
- package/build/internal/cjs/index.typings.js +47 -55
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +215 -145
- package/build/internal/cjs/meta.js +39 -29
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +68 -74
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +231 -144
- package/build/internal/es/index.typings.mjs +44 -55
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +215 -145
- package/build/internal/es/meta.mjs +39 -29
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
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, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BorderWidths, BulkDeletePostsRequest, BulkDeletePostsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CommonQueryWithEntityContext, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse,
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BorderWidths, BulkDeletePostsRequest, BulkDeletePostsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CommonQueryWithEntityContext, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeletePostRequest, DeletePostResponse, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FieldWithLiterals, FileData, FileSource, FileSourceDataOneOf, Filter, FocalPoint, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPostBySlugRequest, GetPostCountPerMonthRequest, GetPostCountPerMonthResponse, GetPostMetricsRequest, GetPostRequest, GetPostTemplatesSort, GetPostTemplatesSortWithLiterals, GetPostsSort, GetPostsSortWithLiterals, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsRequest, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LikePostRequest, LikePostResponse, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDemoPostsRequest, ListDemoPostsResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, ModerationStatusStatusWithLiterals, 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, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, Post, PostCategoriesUpdated, PostCountInfo, PostCountPerMonth, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostFieldField, PostFieldFieldWithLiterals, PostLiked, PostLikedInitiatorOneOf, PostOwnerChanged, PostQuerySpec, PostTagsUpdated, PostTranslation, PostUnliked, PostUnlikedInitiatorOneOf, PostsQueryResult, PricingData, QueryBuilder, QueryPostCountStatsRequest, QueryPostsRequest, QueryPostsResponse, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsRequestOrderWithLiterals, QueryPublicationsCountStatsResponse, Reactions, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, ScheduledPostPublished, SeoSchema, Settings, ShapeData, ShapeDataStyles, Sort, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewPostRequest, ViewPostResponse, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, WixMedia } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
|
|
6
6
|
interface QueryPostCountStatsSignature {
|
|
@@ -33,7 +33,7 @@ interface GetPostSignature {
|
|
|
33
33
|
* @param - Post ID.
|
|
34
34
|
* @param - Options specifying which fields to return.
|
|
35
35
|
*/
|
|
36
|
-
(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<GetPostResponse, `post._id` | `post.title` | `post.excerpt` | `post.slug` | `post.featured` | `post.pinned` | `post.categoryIds` | `post.
|
|
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>>;
|
|
37
37
|
}
|
|
38
38
|
declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
|
|
39
39
|
interface GetPostBySlugSignature {
|
|
@@ -47,7 +47,7 @@ interface GetPostBySlugSignature {
|
|
|
47
47
|
* @param - Slug of the post to retrieve.
|
|
48
48
|
* @param - Options specifying which fields to return.
|
|
49
49
|
*/
|
|
50
|
-
(slug: string, options?: GetPostBySlugOptions): Promise<NonNullablePaths<GetPostBySlugResponse, `post._id` | `post.title` | `post.excerpt` | `post.slug` | `post.featured` | `post.pinned` | `post.categoryIds` | `post.
|
|
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>>;
|
|
51
51
|
}
|
|
52
52
|
declare function listPosts$1(httpClient: HttpClient): ListPostsSignature;
|
|
53
53
|
interface ListPostsSignature {
|
|
@@ -60,7 +60,7 @@ interface ListPostsSignature {
|
|
|
60
60
|
* - `paging.offset` is `0`.
|
|
61
61
|
* @param - Sort, filter, and paging options.
|
|
62
62
|
*/
|
|
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}.
|
|
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>>;
|
|
64
64
|
}
|
|
65
65
|
declare function getPostMetrics$1(httpClient: HttpClient): GetPostMetricsSignature;
|
|
66
66
|
interface GetPostMetricsSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __export(index_exports, {
|
|
|
31
31
|
Direction: () => Direction,
|
|
32
32
|
DividerDataAlignment: () => DividerDataAlignment,
|
|
33
33
|
Field: () => Field,
|
|
34
|
+
Filter: () => Filter,
|
|
34
35
|
FontType: () => FontType,
|
|
35
36
|
GIFType: () => GIFType,
|
|
36
37
|
GetPostTemplatesSort: () => GetPostTemplatesSort,
|
|
@@ -53,10 +54,12 @@ __export(index_exports, {
|
|
|
53
54
|
PollLayoutType: () => PollLayoutType,
|
|
54
55
|
Position: () => Position,
|
|
55
56
|
PostFieldField: () => PostFieldField,
|
|
57
|
+
QueryBuilder: () => QueryBuilder,
|
|
56
58
|
QueryPublicationsCountStatsRequestOrder: () => QueryPublicationsCountStatsRequestOrder,
|
|
57
59
|
Resizing: () => Resizing,
|
|
58
60
|
ResponsivenessBehaviour: () => ResponsivenessBehaviour,
|
|
59
61
|
Scaling: () => Scaling,
|
|
62
|
+
Sort: () => Sort,
|
|
60
63
|
SortOrder: () => SortOrder,
|
|
61
64
|
Source: () => Source,
|
|
62
65
|
Status: () => Status,
|
|
@@ -96,7 +99,6 @@ var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
|
96
99
|
var import_page_url2 = require("@wix/sdk-runtime/transformations/page-url");
|
|
97
100
|
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
98
101
|
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
99
|
-
var import_video2 = require("@wix/sdk-runtime/transformations/video");
|
|
100
102
|
var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
101
103
|
var import_sdk_types = require("@wix/sdk-types");
|
|
102
104
|
|
|
@@ -428,8 +430,6 @@ function getPost(payload) {
|
|
|
428
430
|
paths: [
|
|
429
431
|
{ path: "post.firstPublishedDate" },
|
|
430
432
|
{ path: "post.lastPublishedDate" },
|
|
431
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
|
432
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
433
433
|
{ path: "post.heroImage.urlExpirationDate" },
|
|
434
434
|
{ path: "post.richContent.metadata.createdTimestamp" },
|
|
435
435
|
{ path: "post.richContent.metadata.updatedTimestamp" },
|
|
@@ -453,10 +453,6 @@ function getPost(payload) {
|
|
|
453
453
|
{
|
|
454
454
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
455
455
|
paths: [
|
|
456
|
-
{ path: "post.coverMedia.image.focalPoint.x" },
|
|
457
|
-
{ path: "post.coverMedia.image.focalPoint.y" },
|
|
458
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.x" },
|
|
459
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.y" },
|
|
460
456
|
{ path: "post.heroImage.focalPoint.x" },
|
|
461
457
|
{ path: "post.heroImage.focalPoint.y" },
|
|
462
458
|
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
|
@@ -494,7 +490,14 @@ function getPost(payload) {
|
|
|
494
490
|
{ path: "post.richContent.nodes.videoData.video.duration" },
|
|
495
491
|
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
|
496
492
|
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
|
497
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
|
493
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" },
|
|
494
|
+
{
|
|
495
|
+
path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
499
|
+
},
|
|
500
|
+
{ path: "post.richContent.nodes.shapeData.shape.duration" }
|
|
498
501
|
]
|
|
499
502
|
}
|
|
500
503
|
])
|
|
@@ -525,8 +528,6 @@ function getPostBySlug(payload) {
|
|
|
525
528
|
paths: [
|
|
526
529
|
{ path: "post.firstPublishedDate" },
|
|
527
530
|
{ path: "post.lastPublishedDate" },
|
|
528
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
|
529
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
530
531
|
{ path: "post.heroImage.urlExpirationDate" },
|
|
531
532
|
{ path: "post.richContent.metadata.createdTimestamp" },
|
|
532
533
|
{ path: "post.richContent.metadata.updatedTimestamp" },
|
|
@@ -550,10 +551,6 @@ function getPostBySlug(payload) {
|
|
|
550
551
|
{
|
|
551
552
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
552
553
|
paths: [
|
|
553
|
-
{ path: "post.coverMedia.image.focalPoint.x" },
|
|
554
|
-
{ path: "post.coverMedia.image.focalPoint.y" },
|
|
555
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.x" },
|
|
556
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.y" },
|
|
557
554
|
{ path: "post.heroImage.focalPoint.x" },
|
|
558
555
|
{ path: "post.heroImage.focalPoint.y" },
|
|
559
556
|
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
|
@@ -591,7 +588,14 @@ function getPostBySlug(payload) {
|
|
|
591
588
|
{ path: "post.richContent.nodes.videoData.video.duration" },
|
|
592
589
|
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
|
593
590
|
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
|
594
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
|
591
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" },
|
|
592
|
+
{
|
|
593
|
+
path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
597
|
+
},
|
|
598
|
+
{ path: "post.richContent.nodes.shapeData.shape.duration" }
|
|
595
599
|
]
|
|
596
600
|
}
|
|
597
601
|
])
|
|
@@ -622,8 +626,6 @@ function listPosts(payload) {
|
|
|
622
626
|
paths: [
|
|
623
627
|
{ path: "posts.firstPublishedDate" },
|
|
624
628
|
{ path: "posts.lastPublishedDate" },
|
|
625
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
|
626
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
627
629
|
{ path: "posts.heroImage.urlExpirationDate" },
|
|
628
630
|
{ path: "posts.richContent.metadata.createdTimestamp" },
|
|
629
631
|
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
|
@@ -649,10 +651,6 @@ function listPosts(payload) {
|
|
|
649
651
|
{
|
|
650
652
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
651
653
|
paths: [
|
|
652
|
-
{ path: "posts.coverMedia.image.focalPoint.x" },
|
|
653
|
-
{ path: "posts.coverMedia.image.focalPoint.y" },
|
|
654
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
|
|
655
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
|
|
656
654
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
657
655
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
658
656
|
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
|
@@ -692,7 +690,14 @@ function listPosts(payload) {
|
|
|
692
690
|
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
|
693
691
|
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
|
694
692
|
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
|
695
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
|
693
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" },
|
|
694
|
+
{
|
|
695
|
+
path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
699
|
+
},
|
|
700
|
+
{ path: "posts.richContent.nodes.shapeData.shape.duration" }
|
|
696
701
|
]
|
|
697
702
|
}
|
|
698
703
|
])
|
|
@@ -723,8 +728,6 @@ function queryPosts(payload) {
|
|
|
723
728
|
paths: [
|
|
724
729
|
{ path: "posts.firstPublishedDate" },
|
|
725
730
|
{ path: "posts.lastPublishedDate" },
|
|
726
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
|
727
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
728
731
|
{ path: "posts.heroImage.urlExpirationDate" },
|
|
729
732
|
{ path: "posts.richContent.metadata.createdTimestamp" },
|
|
730
733
|
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
|
@@ -750,10 +753,6 @@ function queryPosts(payload) {
|
|
|
750
753
|
{
|
|
751
754
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
752
755
|
paths: [
|
|
753
|
-
{ path: "posts.coverMedia.image.focalPoint.x" },
|
|
754
|
-
{ path: "posts.coverMedia.image.focalPoint.y" },
|
|
755
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
|
|
756
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
|
|
757
756
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
758
757
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
759
758
|
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
|
@@ -793,7 +792,14 @@ function queryPosts(payload) {
|
|
|
793
792
|
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
|
794
793
|
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
|
795
794
|
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
|
796
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
|
795
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" },
|
|
796
|
+
{
|
|
797
|
+
path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
801
|
+
},
|
|
802
|
+
{ path: "posts.richContent.nodes.shapeData.shape.duration" }
|
|
797
803
|
]
|
|
798
804
|
}
|
|
799
805
|
])
|
|
@@ -833,9 +839,9 @@ function getPostMetrics(payload) {
|
|
|
833
839
|
// src/blog-v3-post-posts.universal.ts
|
|
834
840
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
835
841
|
var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
836
|
-
var import_video = require("@wix/sdk-runtime/transformations/video");
|
|
837
842
|
var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
|
|
838
843
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
844
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
839
845
|
var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
840
846
|
NodeType2["PARAGRAPH"] = "PARAGRAPH";
|
|
841
847
|
NodeType2["TEXT"] = "TEXT";
|
|
@@ -870,6 +876,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
870
876
|
NodeType2["CAPTION"] = "CAPTION";
|
|
871
877
|
NodeType2["LAYOUT"] = "LAYOUT";
|
|
872
878
|
NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
879
|
+
NodeType2["SHAPE"] = "SHAPE";
|
|
873
880
|
return NodeType2;
|
|
874
881
|
})(NodeType || {});
|
|
875
882
|
var WidthType = /* @__PURE__ */ ((WidthType2) => {
|
|
@@ -962,13 +969,14 @@ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
|
|
|
962
969
|
return ThumbnailsAlignment2;
|
|
963
970
|
})(ThumbnailsAlignment || {});
|
|
964
971
|
var GIFType = /* @__PURE__ */ ((GIFType2) => {
|
|
965
|
-
GIFType2["
|
|
972
|
+
GIFType2["NORMAL"] = "NORMAL";
|
|
966
973
|
GIFType2["STICKER"] = "STICKER";
|
|
967
974
|
return GIFType2;
|
|
968
975
|
})(GIFType || {});
|
|
969
976
|
var Source = /* @__PURE__ */ ((Source2) => {
|
|
970
977
|
Source2["HTML"] = "HTML";
|
|
971
978
|
Source2["ADSENSE"] = "ADSENSE";
|
|
979
|
+
Source2["AI"] = "AI";
|
|
972
980
|
return Source2;
|
|
973
981
|
})(Source || {});
|
|
974
982
|
var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
|
|
@@ -1023,6 +1031,10 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
|
1023
1031
|
DecorationType2["COLOR"] = "COLOR";
|
|
1024
1032
|
DecorationType2["FONT_SIZE"] = "FONT_SIZE";
|
|
1025
1033
|
DecorationType2["EXTERNAL"] = "EXTERNAL";
|
|
1034
|
+
DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
1035
|
+
DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
1036
|
+
DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
|
|
1037
|
+
DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
|
|
1026
1038
|
return DecorationType2;
|
|
1027
1039
|
})(DecorationType || {});
|
|
1028
1040
|
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
@@ -1326,14 +1338,9 @@ async function getPost2(postId, options) {
|
|
|
1326
1338
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1327
1339
|
paths: [
|
|
1328
1340
|
{ path: "post.heroImage" },
|
|
1329
|
-
{ path: "post.coverMedia.image" },
|
|
1330
1341
|
{ path: "post.media.wixMedia.image" }
|
|
1331
1342
|
]
|
|
1332
1343
|
},
|
|
1333
|
-
{
|
|
1334
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1335
|
-
paths: [{ path: "post.coverMedia.video" }]
|
|
1336
|
-
},
|
|
1337
1344
|
{
|
|
1338
1345
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1339
1346
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
@@ -1379,14 +1386,9 @@ async function getPostBySlug2(slug, options) {
|
|
|
1379
1386
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1380
1387
|
paths: [
|
|
1381
1388
|
{ path: "post.heroImage" },
|
|
1382
|
-
{ path: "post.coverMedia.image" },
|
|
1383
1389
|
{ path: "post.media.wixMedia.image" }
|
|
1384
1390
|
]
|
|
1385
1391
|
},
|
|
1386
|
-
{
|
|
1387
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1388
|
-
paths: [{ path: "post.coverMedia.video" }]
|
|
1389
|
-
},
|
|
1390
1392
|
{
|
|
1391
1393
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1392
1394
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
@@ -1443,14 +1445,9 @@ async function listPosts2(options) {
|
|
|
1443
1445
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1444
1446
|
paths: [
|
|
1445
1447
|
{ path: "posts.heroImage" },
|
|
1446
|
-
{ path: "posts.coverMedia.image" },
|
|
1447
1448
|
{ path: "posts.media.wixMedia.image" }
|
|
1448
1449
|
]
|
|
1449
1450
|
},
|
|
1450
|
-
{
|
|
1451
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1452
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1453
|
-
},
|
|
1454
1451
|
{
|
|
1455
1452
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1456
1453
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1518,14 +1515,9 @@ function queryPosts2(options) {
|
|
|
1518
1515
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1519
1516
|
paths: [
|
|
1520
1517
|
{ path: "posts.heroImage" },
|
|
1521
|
-
{ path: "posts.coverMedia.image" },
|
|
1522
1518
|
{ path: "posts.media.wixMedia.image" }
|
|
1523
1519
|
]
|
|
1524
1520
|
},
|
|
1525
|
-
{
|
|
1526
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1527
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1528
|
-
},
|
|
1529
1521
|
{
|
|
1530
1522
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1531
1523
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1571,14 +1563,9 @@ async function typedQueryPosts(query, options) {
|
|
|
1571
1563
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1572
1564
|
paths: [
|
|
1573
1565
|
{ path: "posts.heroImage" },
|
|
1574
|
-
{ path: "posts.coverMedia.image" },
|
|
1575
1566
|
{ path: "posts.media.wixMedia.image" }
|
|
1576
1567
|
]
|
|
1577
1568
|
},
|
|
1578
|
-
{
|
|
1579
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1580
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1581
|
-
},
|
|
1582
1569
|
{
|
|
1583
1570
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1584
1571
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1600,6 +1587,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1600
1587
|
throw transformedError;
|
|
1601
1588
|
}
|
|
1602
1589
|
}
|
|
1590
|
+
var { QueryBuilder, Filter, Sort } = (0, import_query_builder_utils.createQueryUtils)();
|
|
1603
1591
|
async function getPostMetrics2(postId) {
|
|
1604
1592
|
const { httpClient, sideEffects } = arguments[1];
|
|
1605
1593
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ postId }, []);
|
|
@@ -1735,7 +1723,6 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
1735
1723
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1736
1724
|
paths: [
|
|
1737
1725
|
{ path: "entity.heroImage" },
|
|
1738
|
-
{ path: "entity.coverMedia.image" },
|
|
1739
1726
|
{ path: "entity.media.wixMedia.image" }
|
|
1740
1727
|
]
|
|
1741
1728
|
},
|
|
@@ -1743,10 +1730,6 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
1743
1730
|
transformFn: import_bytes2.transformRESTBytesToSDKBytes,
|
|
1744
1731
|
paths: [{ path: "entity.richContentCompressed" }]
|
|
1745
1732
|
},
|
|
1746
|
-
{
|
|
1747
|
-
transformFn: import_video2.transformRESTVideoToSDKVideo,
|
|
1748
|
-
paths: [{ path: "entity.coverMedia.video" }]
|
|
1749
|
-
},
|
|
1750
1733
|
{
|
|
1751
1734
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1752
1735
|
paths: [
|
|
@@ -1775,7 +1758,14 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
1775
1758
|
{ path: "entity.richContent.nodes.videoData.video.duration" },
|
|
1776
1759
|
{ path: "entity.richContent.nodes.videoData.thumbnail.duration" },
|
|
1777
1760
|
{ path: "entity.richContent.nodes.audioData.audio.duration" },
|
|
1778
|
-
{ path: "entity.richContent.nodes.audioData.coverImage.duration" }
|
|
1761
|
+
{ path: "entity.richContent.nodes.audioData.coverImage.duration" },
|
|
1762
|
+
{
|
|
1763
|
+
path: "entity.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
path: "entity.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
1767
|
+
},
|
|
1768
|
+
{ path: "entity.richContent.nodes.shapeData.shape.duration" }
|
|
1779
1769
|
]
|
|
1780
1770
|
},
|
|
1781
1771
|
{
|
|
@@ -1811,7 +1801,6 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
1811
1801
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1812
1802
|
paths: [
|
|
1813
1803
|
{ path: "entity.heroImage" },
|
|
1814
|
-
{ path: "entity.coverMedia.image" },
|
|
1815
1804
|
{ path: "entity.media.wixMedia.image" }
|
|
1816
1805
|
]
|
|
1817
1806
|
},
|
|
@@ -1819,10 +1808,6 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
1819
1808
|
transformFn: import_bytes2.transformRESTBytesToSDKBytes,
|
|
1820
1809
|
paths: [{ path: "entity.richContentCompressed" }]
|
|
1821
1810
|
},
|
|
1822
|
-
{
|
|
1823
|
-
transformFn: import_video2.transformRESTVideoToSDKVideo,
|
|
1824
|
-
paths: [{ path: "entity.coverMedia.video" }]
|
|
1825
|
-
},
|
|
1826
1811
|
{
|
|
1827
1812
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1828
1813
|
paths: [
|
|
@@ -1851,7 +1836,14 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
1851
1836
|
{ path: "entity.richContent.nodes.videoData.video.duration" },
|
|
1852
1837
|
{ path: "entity.richContent.nodes.videoData.thumbnail.duration" },
|
|
1853
1838
|
{ path: "entity.richContent.nodes.audioData.audio.duration" },
|
|
1854
|
-
{ path: "entity.richContent.nodes.audioData.coverImage.duration" }
|
|
1839
|
+
{ path: "entity.richContent.nodes.audioData.coverImage.duration" },
|
|
1840
|
+
{
|
|
1841
|
+
path: "entity.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
path: "entity.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
1845
|
+
},
|
|
1846
|
+
{ path: "entity.richContent.nodes.shapeData.shape.duration" }
|
|
1855
1847
|
]
|
|
1856
1848
|
},
|
|
1857
1849
|
{
|
|
@@ -1887,7 +1879,6 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1887
1879
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1888
1880
|
paths: [
|
|
1889
1881
|
{ path: "entity.heroImage" },
|
|
1890
|
-
{ path: "entity.coverMedia.image" },
|
|
1891
1882
|
{ path: "entity.media.wixMedia.image" }
|
|
1892
1883
|
]
|
|
1893
1884
|
},
|
|
@@ -1895,10 +1886,6 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1895
1886
|
transformFn: import_bytes2.transformRESTBytesToSDKBytes,
|
|
1896
1887
|
paths: [{ path: "entity.richContentCompressed" }]
|
|
1897
1888
|
},
|
|
1898
|
-
{
|
|
1899
|
-
transformFn: import_video2.transformRESTVideoToSDKVideo,
|
|
1900
|
-
paths: [{ path: "entity.coverMedia.video" }]
|
|
1901
|
-
},
|
|
1902
1889
|
{
|
|
1903
1890
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1904
1891
|
paths: [
|
|
@@ -1927,7 +1914,14 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1927
1914
|
{ path: "entity.richContent.nodes.videoData.video.duration" },
|
|
1928
1915
|
{ path: "entity.richContent.nodes.videoData.thumbnail.duration" },
|
|
1929
1916
|
{ path: "entity.richContent.nodes.audioData.audio.duration" },
|
|
1930
|
-
{ path: "entity.richContent.nodes.audioData.coverImage.duration" }
|
|
1917
|
+
{ path: "entity.richContent.nodes.audioData.coverImage.duration" },
|
|
1918
|
+
{
|
|
1919
|
+
path: "entity.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
path: "entity.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
1923
|
+
},
|
|
1924
|
+
{ path: "entity.richContent.nodes.shapeData.shape.duration" }
|
|
1931
1925
|
]
|
|
1932
1926
|
},
|
|
1933
1927
|
{
|
|
@@ -1979,6 +1973,7 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
|
|
|
1979
1973
|
Direction,
|
|
1980
1974
|
DividerDataAlignment,
|
|
1981
1975
|
Field,
|
|
1976
|
+
Filter,
|
|
1982
1977
|
FontType,
|
|
1983
1978
|
GIFType,
|
|
1984
1979
|
GetPostTemplatesSort,
|
|
@@ -2001,10 +1996,12 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
|
|
|
2001
1996
|
PollLayoutType,
|
|
2002
1997
|
Position,
|
|
2003
1998
|
PostFieldField,
|
|
1999
|
+
QueryBuilder,
|
|
2004
2000
|
QueryPublicationsCountStatsRequestOrder,
|
|
2005
2001
|
Resizing,
|
|
2006
2002
|
ResponsivenessBehaviour,
|
|
2007
2003
|
Scaling,
|
|
2004
|
+
Sort,
|
|
2008
2005
|
SortOrder,
|
|
2009
2006
|
Source,
|
|
2010
2007
|
Status,
|