@wix/auto_sdk_multilingual_translation-published-contents 1.0.40 → 1.0.41
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 +9 -31
- package/build/cjs/index.js +61 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +9 -1
- package/build/cjs/index.typings.js +45 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/es/index.d.mts +9 -31
- package/build/es/index.mjs +61 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +9 -1
- package/build/es/index.typings.mjs +43 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -0
- package/build/internal/cjs/index.d.ts +9 -31
- package/build/internal/cjs/index.js +61 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +9 -1
- package/build/internal/cjs/index.typings.js +45 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/es/index.d.mts +9 -31
- package/build/internal/es/index.mjs +61 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +9 -1
- package/build/internal/es/index.typings.mjs +43 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -0
- package/package.json +3 -3
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
1
3
|
interface PublishedContent {
|
|
2
4
|
/**
|
|
3
5
|
* Published content ID.
|
|
@@ -2464,5 +2466,11 @@ interface PublishedContentQueryBuilder {
|
|
|
2464
2466
|
skipTo: (cursor: string) => PublishedContentQueryBuilder;
|
|
2465
2467
|
find: () => Promise<PublishedContentQueryResult>;
|
|
2466
2468
|
}
|
|
2469
|
+
/**
|
|
2470
|
+
* @hidden
|
|
2471
|
+
* @fqn com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent
|
|
2472
|
+
* @requiredField query
|
|
2473
|
+
*/
|
|
2474
|
+
declare function typedQueryPublishedContent(query: CursorQuery): Promise<NonNullablePaths<QueryPublishedContentResponse, `publishedContent` | `publishedContent.${number}.schemaKey.appId` | `publishedContent.${number}.schemaKey.entityType` | `publishedContent.${number}.schemaKey.scope` | `publishedContent.${number}.entityId` | `publishedContent.${number}.locale`, 5>>;
|
|
2467
2475
|
|
|
2468
|
-
export { type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkActionMetadata, type BulkContentResult, type BulkDeletePublishedContentRequest, type BulkDeletePublishedContentResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, Crop, type CropWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeletePublishedContentByFilterRequest, type DeletePublishedContentByFilterResponse, type DeletePublishedContentRequest, type DeletePublishedContentResponse, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, type ExtendedFields, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetPublishedContentRequest, type GetPublishedContentResponse, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type MessageEnvelope, type Metadata, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type PublishedContent, type PublishedContentCreatedEnvelope, type PublishedContentDeletedEnvelope, type PublishedContentField, type PublishedContentFieldValueOneOf, type PublishedContentQueryBuilder, type PublishedContentQueryResult, type PublishedContentUpdatedEnvelope, type QueryPublishedContentRequest, type QueryPublishedContentResponse, type Rel, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type SchemaKey, SchemaScope, type SchemaScopeWithLiterals, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, onPublishedContentCreated, onPublishedContentDeleted, onPublishedContentUpdated, queryPublishedContent };
|
|
2476
|
+
export { type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkActionMetadata, type BulkContentResult, type BulkDeletePublishedContentRequest, type BulkDeletePublishedContentResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, Crop, type CropWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeletePublishedContentByFilterRequest, type DeletePublishedContentByFilterResponse, type DeletePublishedContentRequest, type DeletePublishedContentResponse, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, type ExtendedFields, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetPublishedContentRequest, type GetPublishedContentResponse, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type MessageEnvelope, type Metadata, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type PublishedContent, type PublishedContentCreatedEnvelope, type PublishedContentDeletedEnvelope, type PublishedContentField, type PublishedContentFieldValueOneOf, type PublishedContentQueryBuilder, type PublishedContentQueryResult, type PublishedContentUpdatedEnvelope, type QueryPublishedContentRequest, type QueryPublishedContentResponse, type Rel, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type SchemaKey, SchemaScope, type SchemaScopeWithLiterals, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, onPublishedContentCreated, onPublishedContentDeleted, onPublishedContentUpdated, queryPublishedContent, typedQueryPublishedContent };
|
|
@@ -64,7 +64,8 @@ __export(index_typings_exports, {
|
|
|
64
64
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
65
65
|
Width: () => Width,
|
|
66
66
|
WidthType: () => WidthType,
|
|
67
|
-
queryPublishedContent: () => queryPublishedContent2
|
|
67
|
+
queryPublishedContent: () => queryPublishedContent2,
|
|
68
|
+
typedQueryPublishedContent: () => typedQueryPublishedContent
|
|
68
69
|
});
|
|
69
70
|
module.exports = __toCommonJS(index_typings_exports);
|
|
70
71
|
|
|
@@ -646,6 +647,47 @@ function queryPublishedContent2() {
|
|
|
646
647
|
transformationPaths: {}
|
|
647
648
|
});
|
|
648
649
|
}
|
|
650
|
+
async function typedQueryPublishedContent(query) {
|
|
651
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
652
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query }, []);
|
|
653
|
+
const reqOpts = queryPublishedContent(
|
|
654
|
+
payload
|
|
655
|
+
);
|
|
656
|
+
sideEffects?.onSiteCall?.();
|
|
657
|
+
try {
|
|
658
|
+
const result = await httpClient.request(reqOpts);
|
|
659
|
+
sideEffects?.onSuccess?.(result);
|
|
660
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
661
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
662
|
+
{
|
|
663
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
664
|
+
paths: [{ path: "publishedContent.fields.image" }]
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
|
668
|
+
paths: [{ path: "publishedContent.fields.video" }]
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
transformFn: import_document.transformRESTDocumentToSDKDocument,
|
|
672
|
+
paths: [{ path: "publishedContent.fields.document" }]
|
|
673
|
+
}
|
|
674
|
+
]),
|
|
675
|
+
["publishedContent.fields.richContent"]
|
|
676
|
+
);
|
|
677
|
+
} catch (err) {
|
|
678
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
679
|
+
err,
|
|
680
|
+
{
|
|
681
|
+
spreadPathsToArguments: {},
|
|
682
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
683
|
+
singleArgumentUnchanged: false
|
|
684
|
+
},
|
|
685
|
+
["query"]
|
|
686
|
+
);
|
|
687
|
+
sideEffects?.onError?.(err);
|
|
688
|
+
throw transformedError;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
649
691
|
// Annotate the CommonJS export names for ESM import in node:
|
|
650
692
|
0 && (module.exports = {
|
|
651
693
|
Alignment,
|
|
@@ -692,6 +734,7 @@ function queryPublishedContent2() {
|
|
|
692
734
|
WebhookIdentityType,
|
|
693
735
|
Width,
|
|
694
736
|
WidthType,
|
|
695
|
-
queryPublishedContent
|
|
737
|
+
queryPublishedContent,
|
|
738
|
+
typedQueryPublishedContent
|
|
696
739
|
});
|
|
697
740
|
//# sourceMappingURL=index.typings.js.map
|