@wix/auto_sdk_multilingual_translation-published-contents 1.0.68 → 1.0.69
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 +34 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +49 -1
- package/build/cjs/index.typings.js +30 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +44 -1
- package/build/cjs/meta.js +30 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +28 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +49 -1
- package/build/es/index.typings.mjs +28 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +44 -1
- package/build/es/meta.mjs +28 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +34 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +49 -1
- package/build/internal/cjs/index.typings.js +30 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +44 -1
- package/build/internal/cjs/meta.js +30 -5
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +28 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +49 -1
- package/build/internal/es/index.typings.mjs +28 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +44 -1
- package/build/internal/es/meta.mjs +28 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventDefinition, MaybeContext, BuildRESTFunction, HttpClient, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { PublishedContentCreatedEnvelope, PublishedContentDeletedEnvelope, PublishedContentUpdatedEnvelope, PublishedContentQueryBuilder, PublishedContentQuery, typedQueryPublishedContent } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerPosition, BannerPositionWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulkActionMetadata, BulkContentResult, BulkDeletePublishedContentRequest, BulkDeletePublishedContentResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeletePublishedContentByFilterRequest, DeletePublishedContentByFilterResponse, DeletePublishedContentRequest, DeletePublishedContentResponse, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, ExtendedFields, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPublishedContentRequest, GetPublishedContentResponse, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataCrop, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListItemNodeData, ListStyle, ListStyleWithLiterals, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MentionData, MessageEnvelope, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, PublishedContent, PublishedContentField, PublishedContentFieldValueOneOf, PublishedContentQueryResult, PublishedContentQuerySpec, QueryPublishedContentRequest, QueryPublishedContentResponse, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, SchemaKey, SchemaScope, SchemaScopeWithLiterals, Settings, ShapeData, ShapeDataStyles, SketchData, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, Variant, VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, utils } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerPosition, BannerPositionWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulkActionMetadata, BulkContentResult, BulkDeletePublishedContentRequest, BulkDeletePublishedContentResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeletePublishedContentByFilterRequest, DeletePublishedContentByFilterResponse, DeletePublishedContentRequest, DeletePublishedContentResponse, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DividerDataStyles, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, ExtendedFields, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPublishedContentRequest, GetPublishedContentResponse, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataCrop, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineCap, LineCapWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListItemNodeData, ListStyle, ListStyleWithLiterals, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MentionData, MessageEnvelope, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, PublishedContent, PublishedContentField, PublishedContentFieldValueOneOf, PublishedContentQueryResult, PublishedContentQuerySpec, QueryPublishedContentRequest, QueryPublishedContentResponse, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, SchemaKey, SchemaScope, SchemaScopeWithLiterals, Settings, ShapeData, ShapeDataStyles, SketchData, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, Variant, VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare const onPublishedContentCreated$1: EventDefinition<PublishedContentCreatedEnvelope, "wix.multilingual.localization_public.v3.published_content_created">;
|
|
6
6
|
declare const onPublishedContentDeleted$1: EventDefinition<PublishedContentDeletedEnvelope, "wix.multilingual.localization_public.v3.published_content_deleted">;
|
package/build/cjs/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __export(index_exports, {
|
|
|
45
45
|
Layout: () => Layout,
|
|
46
46
|
LayoutDataBackgroundType: () => LayoutDataBackgroundType,
|
|
47
47
|
LayoutType: () => LayoutType,
|
|
48
|
+
LineCap: () => LineCap,
|
|
48
49
|
LineStyle: () => LineStyle,
|
|
49
50
|
ListStyle: () => ListStyle,
|
|
50
51
|
MapType: () => MapType,
|
|
@@ -90,7 +91,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
90
91
|
// src/multilingual-localization-public-v3-published-content-translation-published-contents.public.ts
|
|
91
92
|
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
92
93
|
var import_document2 = require("@wix/sdk-runtime/transformations/document");
|
|
93
|
-
var
|
|
94
|
+
var import_float3 = require("@wix/sdk-runtime/transformations/float");
|
|
94
95
|
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
95
96
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
96
97
|
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -105,6 +106,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
|
|
|
105
106
|
// src/multilingual-localization-public-v3-published-content-translation-published-contents.http.ts
|
|
106
107
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
107
108
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
109
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
108
110
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
109
111
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
110
112
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
@@ -172,6 +174,15 @@ function resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(op
|
|
|
172
174
|
var PACKAGE_NAME = "@wix/auto_sdk_multilingual_translation-published-contents";
|
|
173
175
|
function queryPublishedContent(payload) {
|
|
174
176
|
function __queryPublishedContent({ host }) {
|
|
177
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
178
|
+
{
|
|
179
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
180
|
+
paths: [
|
|
181
|
+
{ path: "query.sort.origin.latitude" },
|
|
182
|
+
{ path: "query.sort.origin.longitude" }
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
]);
|
|
175
186
|
const metadata = {
|
|
176
187
|
entityFqdn: "wix.multilingual.localization_public.v3.published_content",
|
|
177
188
|
method: "GET",
|
|
@@ -181,12 +192,16 @@ function queryPublishedContent(payload) {
|
|
|
181
192
|
optInTransformResponse: true
|
|
182
193
|
},
|
|
183
194
|
url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(
|
|
184
|
-
{
|
|
195
|
+
{
|
|
196
|
+
protoPath: "/v3/published-contents/query",
|
|
197
|
+
data: serializedData,
|
|
198
|
+
host
|
|
199
|
+
}
|
|
185
200
|
),
|
|
186
|
-
params: (0, import_rest_modules.toURLSearchParams)(
|
|
201
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
187
202
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
188
203
|
{
|
|
189
|
-
transformFn:
|
|
204
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
190
205
|
paths: [
|
|
191
206
|
{
|
|
192
207
|
path: "publishedContent.fields.richContent.nodes.buttonData.styles.background.gradient.centerX"
|
|
@@ -387,9 +402,13 @@ function queryPublishedContent(payload) {
|
|
|
387
402
|
{
|
|
388
403
|
method: "POST",
|
|
389
404
|
url: resolveComWixpressLocalizationpublicV3TranslationPublishedContentUrl(
|
|
390
|
-
{
|
|
405
|
+
{
|
|
406
|
+
protoPath: "/v3/published-contents/query",
|
|
407
|
+
data: serializedData,
|
|
408
|
+
host
|
|
409
|
+
}
|
|
391
410
|
),
|
|
392
|
-
data:
|
|
411
|
+
data: serializedData
|
|
393
412
|
}
|
|
394
413
|
]
|
|
395
414
|
};
|
|
@@ -494,6 +513,11 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
|
494
513
|
TextAlignment2["JUSTIFY"] = "JUSTIFY";
|
|
495
514
|
return TextAlignment2;
|
|
496
515
|
})(TextAlignment || {});
|
|
516
|
+
var LineCap = /* @__PURE__ */ ((LineCap2) => {
|
|
517
|
+
LineCap2["SQUARE"] = "SQUARE";
|
|
518
|
+
LineCap2["ROUND"] = "ROUND";
|
|
519
|
+
return LineCap2;
|
|
520
|
+
})(LineCap || {});
|
|
497
521
|
var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
|
|
498
522
|
LineStyle2["SINGLE"] = "SINGLE";
|
|
499
523
|
LineStyle2["DOUBLE"] = "DOUBLE";
|
|
@@ -977,7 +1001,7 @@ var onPublishedContentCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
977
1001
|
paths: [{ path: "entity.fields.document" }]
|
|
978
1002
|
},
|
|
979
1003
|
{
|
|
980
|
-
transformFn:
|
|
1004
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
981
1005
|
paths: [
|
|
982
1006
|
{
|
|
983
1007
|
path: "entity.fields.richContent.nodes.buttonData.styles.background.gradient.centerX"
|
|
@@ -1144,7 +1168,7 @@ var onPublishedContentDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
1144
1168
|
paths: [{ path: "entity.fields.document" }]
|
|
1145
1169
|
},
|
|
1146
1170
|
{
|
|
1147
|
-
transformFn:
|
|
1171
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1148
1172
|
paths: [
|
|
1149
1173
|
{
|
|
1150
1174
|
path: "entity.fields.richContent.nodes.buttonData.styles.background.gradient.centerX"
|
|
@@ -1320,7 +1344,7 @@ var onPublishedContentUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1320
1344
|
]
|
|
1321
1345
|
},
|
|
1322
1346
|
{
|
|
1323
|
-
transformFn:
|
|
1347
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1324
1348
|
paths: [
|
|
1325
1349
|
{
|
|
1326
1350
|
path: "entity.fields.richContent.nodes.buttonData.styles.background.gradient.centerX"
|
|
@@ -1678,6 +1702,7 @@ var onPublishedContentUpdated2 = (0, import_event_definition_modules.createEvent
|
|
|
1678
1702
|
Layout,
|
|
1679
1703
|
LayoutDataBackgroundType,
|
|
1680
1704
|
LayoutType,
|
|
1705
|
+
LineCap,
|
|
1681
1706
|
LineStyle,
|
|
1682
1707
|
ListStyle,
|
|
1683
1708
|
MapType,
|