@wix/auto_sdk_blog_posts 1.0.121 → 1.0.123
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 +75 -74
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +352 -144
- package/build/cjs/index.typings.js +51 -55
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +215 -145
- package/build/cjs/meta.js +43 -29
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +72 -74
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +352 -144
- package/build/es/index.typings.mjs +48 -55
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +215 -145
- package/build/es/meta.mjs +43 -29
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +75 -74
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +353 -145
- package/build/internal/cjs/index.typings.js +51 -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 +43 -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 +72 -74
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +353 -145
- package/build/internal/es/index.typings.mjs +48 -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 +43 -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
|
|
|
@@ -310,6 +312,10 @@ function resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(opt
|
|
|
310
312
|
{
|
|
311
313
|
srcPath: "/_api/communities-blog-node-api",
|
|
312
314
|
destPath: ""
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
srcPath: "/_api/communities-blog-node-api/v3/multilingual",
|
|
318
|
+
destPath: "/v3/multilingual"
|
|
313
319
|
}
|
|
314
320
|
],
|
|
315
321
|
"social-blog._base_domain_": [
|
|
@@ -428,8 +434,6 @@ function getPost(payload) {
|
|
|
428
434
|
paths: [
|
|
429
435
|
{ path: "post.firstPublishedDate" },
|
|
430
436
|
{ path: "post.lastPublishedDate" },
|
|
431
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
|
432
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
433
437
|
{ path: "post.heroImage.urlExpirationDate" },
|
|
434
438
|
{ path: "post.richContent.metadata.createdTimestamp" },
|
|
435
439
|
{ path: "post.richContent.metadata.updatedTimestamp" },
|
|
@@ -453,10 +457,6 @@ function getPost(payload) {
|
|
|
453
457
|
{
|
|
454
458
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
455
459
|
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
460
|
{ path: "post.heroImage.focalPoint.x" },
|
|
461
461
|
{ path: "post.heroImage.focalPoint.y" },
|
|
462
462
|
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
|
@@ -494,7 +494,14 @@ function getPost(payload) {
|
|
|
494
494
|
{ path: "post.richContent.nodes.videoData.video.duration" },
|
|
495
495
|
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
|
496
496
|
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
|
497
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
|
497
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" },
|
|
498
|
+
{
|
|
499
|
+
path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
503
|
+
},
|
|
504
|
+
{ path: "post.richContent.nodes.shapeData.shape.duration" }
|
|
498
505
|
]
|
|
499
506
|
}
|
|
500
507
|
])
|
|
@@ -525,8 +532,6 @@ function getPostBySlug(payload) {
|
|
|
525
532
|
paths: [
|
|
526
533
|
{ path: "post.firstPublishedDate" },
|
|
527
534
|
{ path: "post.lastPublishedDate" },
|
|
528
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
|
529
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
530
535
|
{ path: "post.heroImage.urlExpirationDate" },
|
|
531
536
|
{ path: "post.richContent.metadata.createdTimestamp" },
|
|
532
537
|
{ path: "post.richContent.metadata.updatedTimestamp" },
|
|
@@ -550,10 +555,6 @@ function getPostBySlug(payload) {
|
|
|
550
555
|
{
|
|
551
556
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
552
557
|
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
558
|
{ path: "post.heroImage.focalPoint.x" },
|
|
558
559
|
{ path: "post.heroImage.focalPoint.y" },
|
|
559
560
|
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
|
@@ -591,7 +592,14 @@ function getPostBySlug(payload) {
|
|
|
591
592
|
{ path: "post.richContent.nodes.videoData.video.duration" },
|
|
592
593
|
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
|
593
594
|
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
|
594
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
|
595
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" },
|
|
596
|
+
{
|
|
597
|
+
path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
601
|
+
},
|
|
602
|
+
{ path: "post.richContent.nodes.shapeData.shape.duration" }
|
|
595
603
|
]
|
|
596
604
|
}
|
|
597
605
|
])
|
|
@@ -622,8 +630,6 @@ function listPosts(payload) {
|
|
|
622
630
|
paths: [
|
|
623
631
|
{ path: "posts.firstPublishedDate" },
|
|
624
632
|
{ path: "posts.lastPublishedDate" },
|
|
625
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
|
626
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
627
633
|
{ path: "posts.heroImage.urlExpirationDate" },
|
|
628
634
|
{ path: "posts.richContent.metadata.createdTimestamp" },
|
|
629
635
|
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
|
@@ -649,10 +655,6 @@ function listPosts(payload) {
|
|
|
649
655
|
{
|
|
650
656
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
651
657
|
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
658
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
657
659
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
658
660
|
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
|
@@ -692,7 +694,14 @@ function listPosts(payload) {
|
|
|
692
694
|
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
|
693
695
|
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
|
694
696
|
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
|
695
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
|
697
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" },
|
|
698
|
+
{
|
|
699
|
+
path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
703
|
+
},
|
|
704
|
+
{ path: "posts.richContent.nodes.shapeData.shape.duration" }
|
|
696
705
|
]
|
|
697
706
|
}
|
|
698
707
|
])
|
|
@@ -723,8 +732,6 @@ function queryPosts(payload) {
|
|
|
723
732
|
paths: [
|
|
724
733
|
{ path: "posts.firstPublishedDate" },
|
|
725
734
|
{ path: "posts.lastPublishedDate" },
|
|
726
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
|
727
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
728
735
|
{ path: "posts.heroImage.urlExpirationDate" },
|
|
729
736
|
{ path: "posts.richContent.metadata.createdTimestamp" },
|
|
730
737
|
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
|
@@ -750,10 +757,6 @@ function queryPosts(payload) {
|
|
|
750
757
|
{
|
|
751
758
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
752
759
|
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
760
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
758
761
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
759
762
|
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
|
@@ -793,7 +796,14 @@ function queryPosts(payload) {
|
|
|
793
796
|
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
|
794
797
|
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
|
795
798
|
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
|
796
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
|
799
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" },
|
|
800
|
+
{
|
|
801
|
+
path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
805
|
+
},
|
|
806
|
+
{ path: "posts.richContent.nodes.shapeData.shape.duration" }
|
|
797
807
|
]
|
|
798
808
|
}
|
|
799
809
|
])
|
|
@@ -833,9 +843,9 @@ function getPostMetrics(payload) {
|
|
|
833
843
|
// src/blog-v3-post-posts.universal.ts
|
|
834
844
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
835
845
|
var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
836
|
-
var import_video = require("@wix/sdk-runtime/transformations/video");
|
|
837
846
|
var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
|
|
838
847
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
848
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
839
849
|
var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
840
850
|
NodeType2["PARAGRAPH"] = "PARAGRAPH";
|
|
841
851
|
NodeType2["TEXT"] = "TEXT";
|
|
@@ -870,6 +880,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
870
880
|
NodeType2["CAPTION"] = "CAPTION";
|
|
871
881
|
NodeType2["LAYOUT"] = "LAYOUT";
|
|
872
882
|
NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
883
|
+
NodeType2["SHAPE"] = "SHAPE";
|
|
873
884
|
return NodeType2;
|
|
874
885
|
})(NodeType || {});
|
|
875
886
|
var WidthType = /* @__PURE__ */ ((WidthType2) => {
|
|
@@ -962,13 +973,14 @@ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
|
|
|
962
973
|
return ThumbnailsAlignment2;
|
|
963
974
|
})(ThumbnailsAlignment || {});
|
|
964
975
|
var GIFType = /* @__PURE__ */ ((GIFType2) => {
|
|
965
|
-
GIFType2["
|
|
976
|
+
GIFType2["NORMAL"] = "NORMAL";
|
|
966
977
|
GIFType2["STICKER"] = "STICKER";
|
|
967
978
|
return GIFType2;
|
|
968
979
|
})(GIFType || {});
|
|
969
980
|
var Source = /* @__PURE__ */ ((Source2) => {
|
|
970
981
|
Source2["HTML"] = "HTML";
|
|
971
982
|
Source2["ADSENSE"] = "ADSENSE";
|
|
983
|
+
Source2["AI"] = "AI";
|
|
972
984
|
return Source2;
|
|
973
985
|
})(Source || {});
|
|
974
986
|
var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
|
|
@@ -1023,6 +1035,10 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
|
1023
1035
|
DecorationType2["COLOR"] = "COLOR";
|
|
1024
1036
|
DecorationType2["FONT_SIZE"] = "FONT_SIZE";
|
|
1025
1037
|
DecorationType2["EXTERNAL"] = "EXTERNAL";
|
|
1038
|
+
DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
1039
|
+
DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
1040
|
+
DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
|
|
1041
|
+
DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
|
|
1026
1042
|
return DecorationType2;
|
|
1027
1043
|
})(DecorationType || {});
|
|
1028
1044
|
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
@@ -1326,14 +1342,9 @@ async function getPost2(postId, options) {
|
|
|
1326
1342
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1327
1343
|
paths: [
|
|
1328
1344
|
{ path: "post.heroImage" },
|
|
1329
|
-
{ path: "post.coverMedia.image" },
|
|
1330
1345
|
{ path: "post.media.wixMedia.image" }
|
|
1331
1346
|
]
|
|
1332
1347
|
},
|
|
1333
|
-
{
|
|
1334
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1335
|
-
paths: [{ path: "post.coverMedia.video" }]
|
|
1336
|
-
},
|
|
1337
1348
|
{
|
|
1338
1349
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1339
1350
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
@@ -1379,14 +1390,9 @@ async function getPostBySlug2(slug, options) {
|
|
|
1379
1390
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1380
1391
|
paths: [
|
|
1381
1392
|
{ path: "post.heroImage" },
|
|
1382
|
-
{ path: "post.coverMedia.image" },
|
|
1383
1393
|
{ path: "post.media.wixMedia.image" }
|
|
1384
1394
|
]
|
|
1385
1395
|
},
|
|
1386
|
-
{
|
|
1387
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1388
|
-
paths: [{ path: "post.coverMedia.video" }]
|
|
1389
|
-
},
|
|
1390
1396
|
{
|
|
1391
1397
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1392
1398
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
@@ -1443,14 +1449,9 @@ async function listPosts2(options) {
|
|
|
1443
1449
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1444
1450
|
paths: [
|
|
1445
1451
|
{ path: "posts.heroImage" },
|
|
1446
|
-
{ path: "posts.coverMedia.image" },
|
|
1447
1452
|
{ path: "posts.media.wixMedia.image" }
|
|
1448
1453
|
]
|
|
1449
1454
|
},
|
|
1450
|
-
{
|
|
1451
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1452
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1453
|
-
},
|
|
1454
1455
|
{
|
|
1455
1456
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1456
1457
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1518,14 +1519,9 @@ function queryPosts2(options) {
|
|
|
1518
1519
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1519
1520
|
paths: [
|
|
1520
1521
|
{ path: "posts.heroImage" },
|
|
1521
|
-
{ path: "posts.coverMedia.image" },
|
|
1522
1522
|
{ path: "posts.media.wixMedia.image" }
|
|
1523
1523
|
]
|
|
1524
1524
|
},
|
|
1525
|
-
{
|
|
1526
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1527
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1528
|
-
},
|
|
1529
1525
|
{
|
|
1530
1526
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1531
1527
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1571,14 +1567,9 @@ async function typedQueryPosts(query, options) {
|
|
|
1571
1567
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
1572
1568
|
paths: [
|
|
1573
1569
|
{ path: "posts.heroImage" },
|
|
1574
|
-
{ path: "posts.coverMedia.image" },
|
|
1575
1570
|
{ path: "posts.media.wixMedia.image" }
|
|
1576
1571
|
]
|
|
1577
1572
|
},
|
|
1578
|
-
{
|
|
1579
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
|
1580
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1581
|
-
},
|
|
1582
1573
|
{
|
|
1583
1574
|
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
1584
1575
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1600,6 +1591,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1600
1591
|
throw transformedError;
|
|
1601
1592
|
}
|
|
1602
1593
|
}
|
|
1594
|
+
var { QueryBuilder, Filter, Sort } = (0, import_query_builder_utils.createQueryUtils)();
|
|
1603
1595
|
async function getPostMetrics2(postId) {
|
|
1604
1596
|
const { httpClient, sideEffects } = arguments[1];
|
|
1605
1597
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ postId }, []);
|
|
@@ -1735,7 +1727,6 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
1735
1727
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1736
1728
|
paths: [
|
|
1737
1729
|
{ path: "entity.heroImage" },
|
|
1738
|
-
{ path: "entity.coverMedia.image" },
|
|
1739
1730
|
{ path: "entity.media.wixMedia.image" }
|
|
1740
1731
|
]
|
|
1741
1732
|
},
|
|
@@ -1743,10 +1734,6 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
1743
1734
|
transformFn: import_bytes2.transformRESTBytesToSDKBytes,
|
|
1744
1735
|
paths: [{ path: "entity.richContentCompressed" }]
|
|
1745
1736
|
},
|
|
1746
|
-
{
|
|
1747
|
-
transformFn: import_video2.transformRESTVideoToSDKVideo,
|
|
1748
|
-
paths: [{ path: "entity.coverMedia.video" }]
|
|
1749
|
-
},
|
|
1750
1737
|
{
|
|
1751
1738
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1752
1739
|
paths: [
|
|
@@ -1775,7 +1762,14 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
1775
1762
|
{ path: "entity.richContent.nodes.videoData.video.duration" },
|
|
1776
1763
|
{ path: "entity.richContent.nodes.videoData.thumbnail.duration" },
|
|
1777
1764
|
{ path: "entity.richContent.nodes.audioData.audio.duration" },
|
|
1778
|
-
{ path: "entity.richContent.nodes.audioData.coverImage.duration" }
|
|
1765
|
+
{ path: "entity.richContent.nodes.audioData.coverImage.duration" },
|
|
1766
|
+
{
|
|
1767
|
+
path: "entity.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
path: "entity.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
1771
|
+
},
|
|
1772
|
+
{ path: "entity.richContent.nodes.shapeData.shape.duration" }
|
|
1779
1773
|
]
|
|
1780
1774
|
},
|
|
1781
1775
|
{
|
|
@@ -1811,7 +1805,6 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
1811
1805
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1812
1806
|
paths: [
|
|
1813
1807
|
{ path: "entity.heroImage" },
|
|
1814
|
-
{ path: "entity.coverMedia.image" },
|
|
1815
1808
|
{ path: "entity.media.wixMedia.image" }
|
|
1816
1809
|
]
|
|
1817
1810
|
},
|
|
@@ -1819,10 +1812,6 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
1819
1812
|
transformFn: import_bytes2.transformRESTBytesToSDKBytes,
|
|
1820
1813
|
paths: [{ path: "entity.richContentCompressed" }]
|
|
1821
1814
|
},
|
|
1822
|
-
{
|
|
1823
|
-
transformFn: import_video2.transformRESTVideoToSDKVideo,
|
|
1824
|
-
paths: [{ path: "entity.coverMedia.video" }]
|
|
1825
|
-
},
|
|
1826
1815
|
{
|
|
1827
1816
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1828
1817
|
paths: [
|
|
@@ -1851,7 +1840,14 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
1851
1840
|
{ path: "entity.richContent.nodes.videoData.video.duration" },
|
|
1852
1841
|
{ path: "entity.richContent.nodes.videoData.thumbnail.duration" },
|
|
1853
1842
|
{ path: "entity.richContent.nodes.audioData.audio.duration" },
|
|
1854
|
-
{ path: "entity.richContent.nodes.audioData.coverImage.duration" }
|
|
1843
|
+
{ path: "entity.richContent.nodes.audioData.coverImage.duration" },
|
|
1844
|
+
{
|
|
1845
|
+
path: "entity.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
path: "entity.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
1849
|
+
},
|
|
1850
|
+
{ path: "entity.richContent.nodes.shapeData.shape.duration" }
|
|
1855
1851
|
]
|
|
1856
1852
|
},
|
|
1857
1853
|
{
|
|
@@ -1887,7 +1883,6 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1887
1883
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1888
1884
|
paths: [
|
|
1889
1885
|
{ path: "entity.heroImage" },
|
|
1890
|
-
{ path: "entity.coverMedia.image" },
|
|
1891
1886
|
{ path: "entity.media.wixMedia.image" }
|
|
1892
1887
|
]
|
|
1893
1888
|
},
|
|
@@ -1895,10 +1890,6 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1895
1890
|
transformFn: import_bytes2.transformRESTBytesToSDKBytes,
|
|
1896
1891
|
paths: [{ path: "entity.richContentCompressed" }]
|
|
1897
1892
|
},
|
|
1898
|
-
{
|
|
1899
|
-
transformFn: import_video2.transformRESTVideoToSDKVideo,
|
|
1900
|
-
paths: [{ path: "entity.coverMedia.video" }]
|
|
1901
|
-
},
|
|
1902
1893
|
{
|
|
1903
1894
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1904
1895
|
paths: [
|
|
@@ -1927,7 +1918,14 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1927
1918
|
{ path: "entity.richContent.nodes.videoData.video.duration" },
|
|
1928
1919
|
{ path: "entity.richContent.nodes.videoData.thumbnail.duration" },
|
|
1929
1920
|
{ path: "entity.richContent.nodes.audioData.audio.duration" },
|
|
1930
|
-
{ path: "entity.richContent.nodes.audioData.coverImage.duration" }
|
|
1921
|
+
{ path: "entity.richContent.nodes.audioData.coverImage.duration" },
|
|
1922
|
+
{
|
|
1923
|
+
path: "entity.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
path: "entity.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
1927
|
+
},
|
|
1928
|
+
{ path: "entity.richContent.nodes.shapeData.shape.duration" }
|
|
1931
1929
|
]
|
|
1932
1930
|
},
|
|
1933
1931
|
{
|
|
@@ -1979,6 +1977,7 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
|
|
|
1979
1977
|
Direction,
|
|
1980
1978
|
DividerDataAlignment,
|
|
1981
1979
|
Field,
|
|
1980
|
+
Filter,
|
|
1982
1981
|
FontType,
|
|
1983
1982
|
GIFType,
|
|
1984
1983
|
GetPostTemplatesSort,
|
|
@@ -2001,10 +2000,12 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
|
|
|
2001
2000
|
PollLayoutType,
|
|
2002
2001
|
Position,
|
|
2003
2002
|
PostFieldField,
|
|
2003
|
+
QueryBuilder,
|
|
2004
2004
|
QueryPublicationsCountStatsRequestOrder,
|
|
2005
2005
|
Resizing,
|
|
2006
2006
|
ResponsivenessBehaviour,
|
|
2007
2007
|
Scaling,
|
|
2008
|
+
Sort,
|
|
2008
2009
|
SortOrder,
|
|
2009
2010
|
Source,
|
|
2010
2011
|
Status,
|