@wix/auto_sdk_blog_posts 1.0.163 → 1.0.165
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 +1 -1
- package/build/cjs/index.js +56 -37
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +364 -338
- package/build/cjs/index.typings.js +52 -33
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +359 -338
- package/build/cjs/meta.js +52 -33
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +2 -2
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +46 -28
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +364 -338
- package/build/es/index.typings.mjs +46 -28
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +359 -338
- package/build/es/meta.mjs +46 -28
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +2 -2
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +56 -37
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +364 -338
- package/build/internal/cjs/index.typings.js +52 -33
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +359 -338
- package/build/internal/cjs/meta.js +52 -33
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +2 -2
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +46 -28
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +364 -338
- package/build/internal/es/index.typings.mjs +46 -28
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +359 -338
- package/build/internal/es/meta.mjs +46 -28
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +2 -2
- package/package.json +2 -2
package/build/cjs/schemas.d.ts
CHANGED
|
@@ -239,11 +239,11 @@ declare const ListPostsRequest: z.ZodObject<{
|
|
|
239
239
|
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
240
|
tagIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
241
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
242
|
-
LIKE_COUNT: "LIKE_COUNT";
|
|
243
|
-
VIEW_COUNT: "VIEW_COUNT";
|
|
244
242
|
FEED: "FEED";
|
|
245
243
|
PUBLISHED_DATE_ASC: "PUBLISHED_DATE_ASC";
|
|
246
244
|
PUBLISHED_DATE_DESC: "PUBLISHED_DATE_DESC";
|
|
245
|
+
VIEW_COUNT: "VIEW_COUNT";
|
|
246
|
+
LIKE_COUNT: "LIKE_COUNT";
|
|
247
247
|
TITLE_ASC: "TITLE_ASC";
|
|
248
248
|
TITLE_DESC: "TITLE_DESC";
|
|
249
249
|
}>>;
|
package/build/es/index.d.mts
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.mjs';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerPosition, BannerPositionWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BorderWidths, BulkDeletePostsRequest, BulkDeletePostsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext,
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerPosition, BannerPositionWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BorderWidths, BulkDeletePostsRequest, BulkDeletePostsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext, 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, 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, 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, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, Order, OrderWithLiterals, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, Placement, PlacementWithLiterals, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, Post, PostCategoriesUpdated, PostCount, PostCountInfo, PostCountPerMonth, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostFieldField, PostFieldFieldWithLiterals, PostLiked, PostLikedInitiatorOneOf, PostOwnerChanged, PostQuerySpec, PostTagsUpdated, PostTranslation, PostUnliked, PostUnlikedInitiatorOneOf, PostsQueryResult, PricingData, QueryPostCountStatsRequest, QueryPostsRequest, QueryPostsResponse, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsRequestOrderWithLiterals, QueryPublicationsCountStatsResponse, Reactions, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, ScheduledPostPublished, SeoSchema, Settings, ShapeData, ShapeDataStyles, SketchData, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, Variant, VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewPostRequest, ViewPostResponse, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, WixMedia, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
|
|
6
6
|
interface QueryPostCountStatsSignature {
|
package/build/es/index.mjs
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
|
|
20
20
|
// src/blog-v3-post-posts.http.ts
|
|
21
21
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
22
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
22
23
|
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
23
24
|
import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
|
|
24
25
|
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
@@ -874,6 +875,17 @@ function listPosts(payload) {
|
|
|
874
875
|
}
|
|
875
876
|
function queryPosts(payload) {
|
|
876
877
|
function __queryPosts({ host }) {
|
|
878
|
+
const serializedData = transformPaths(payload, [
|
|
879
|
+
{
|
|
880
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
881
|
+
paths: [
|
|
882
|
+
{ path: "sort.origin.latitude" },
|
|
883
|
+
{ path: "sort.origin.longitude" },
|
|
884
|
+
{ path: "query.sort.origin.latitude" },
|
|
885
|
+
{ path: "query.sort.origin.longitude" }
|
|
886
|
+
]
|
|
887
|
+
}
|
|
888
|
+
]);
|
|
877
889
|
const metadata = {
|
|
878
890
|
entityFqdn: "wix.blog.v3.post",
|
|
879
891
|
method: "POST",
|
|
@@ -884,10 +896,10 @@ function queryPosts(payload) {
|
|
|
884
896
|
},
|
|
885
897
|
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
|
886
898
|
protoPath: "/v3/posts/query",
|
|
887
|
-
data:
|
|
899
|
+
data: serializedData,
|
|
888
900
|
host
|
|
889
901
|
}),
|
|
890
|
-
data:
|
|
902
|
+
data: serializedData,
|
|
891
903
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
892
904
|
{
|
|
893
905
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -1177,6 +1189,11 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
|
1177
1189
|
TextAlignment2["JUSTIFY"] = "JUSTIFY";
|
|
1178
1190
|
return TextAlignment2;
|
|
1179
1191
|
})(TextAlignment || {});
|
|
1192
|
+
var LineCap = /* @__PURE__ */ ((LineCap2) => {
|
|
1193
|
+
LineCap2["SQUARE"] = "SQUARE";
|
|
1194
|
+
LineCap2["ROUND"] = "ROUND";
|
|
1195
|
+
return LineCap2;
|
|
1196
|
+
})(LineCap || {});
|
|
1180
1197
|
var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
|
|
1181
1198
|
LineStyle2["SINGLE"] = "SINGLE";
|
|
1182
1199
|
LineStyle2["DOUBLE"] = "DOUBLE";
|
|
@@ -1513,6 +1530,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
1513
1530
|
Status2["REJECTED"] = "REJECTED";
|
|
1514
1531
|
return Status2;
|
|
1515
1532
|
})(Status || {});
|
|
1533
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1534
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1535
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1536
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1537
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1538
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1539
|
+
return WebhookIdentityType2;
|
|
1540
|
+
})(WebhookIdentityType || {});
|
|
1516
1541
|
var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
|
|
1517
1542
|
QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
|
|
1518
1543
|
QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
|
|
@@ -1525,22 +1550,16 @@ var Order = /* @__PURE__ */ ((Order2) => {
|
|
|
1525
1550
|
Order2["NEWEST"] = "NEWEST";
|
|
1526
1551
|
return Order2;
|
|
1527
1552
|
})(Order || {});
|
|
1528
|
-
var
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
|
|
1539
|
-
Field2["LIKE_COUNT"] = "LIKE_COUNT";
|
|
1540
|
-
Field2["VIEW_COUNT"] = "VIEW_COUNT";
|
|
1541
|
-
Field2["RATING_COUNT"] = "RATING_COUNT";
|
|
1542
|
-
return Field2;
|
|
1543
|
-
})(Field || {});
|
|
1553
|
+
var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
|
|
1554
|
+
GetPostsSort2["FEED"] = "FEED";
|
|
1555
|
+
GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
|
|
1556
|
+
GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
|
|
1557
|
+
GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
|
|
1558
|
+
GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
|
|
1559
|
+
GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
|
|
1560
|
+
GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
|
|
1561
|
+
return GetPostsSort2;
|
|
1562
|
+
})(GetPostsSort || {});
|
|
1544
1563
|
var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
|
|
1545
1564
|
PostFieldField2["UNKNOWN"] = "UNKNOWN";
|
|
1546
1565
|
PostFieldField2["URL"] = "URL";
|
|
@@ -1552,16 +1571,14 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
|
|
|
1552
1571
|
PostFieldField2["REFERENCE_ID"] = "REFERENCE_ID";
|
|
1553
1572
|
return PostFieldField2;
|
|
1554
1573
|
})(PostFieldField || {});
|
|
1555
|
-
var
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
return GetPostsSort2;
|
|
1564
|
-
})(GetPostsSort || {});
|
|
1574
|
+
var Field = /* @__PURE__ */ ((Field2) => {
|
|
1575
|
+
Field2["UNKNOWN"] = "UNKNOWN";
|
|
1576
|
+
Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
|
|
1577
|
+
Field2["LIKE_COUNT"] = "LIKE_COUNT";
|
|
1578
|
+
Field2["VIEW_COUNT"] = "VIEW_COUNT";
|
|
1579
|
+
Field2["RATING_COUNT"] = "RATING_COUNT";
|
|
1580
|
+
return Field2;
|
|
1581
|
+
})(Field || {});
|
|
1565
1582
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1566
1583
|
SortOrder2["ASC"] = "ASC";
|
|
1567
1584
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -2558,6 +2575,7 @@ export {
|
|
|
2558
2575
|
Layout,
|
|
2559
2576
|
LayoutDataBackgroundType,
|
|
2560
2577
|
LayoutType,
|
|
2578
|
+
LineCap,
|
|
2561
2579
|
LineStyle,
|
|
2562
2580
|
ListStyle,
|
|
2563
2581
|
MapType,
|