@wix/auto_sdk_rich-content_ricos-documents 1.0.51 → 1.0.52
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 +54 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +33 -1
- package/build/cjs/index.typings.js +46 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +35 -2
- package/build/cjs/meta.js +41 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +53 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +33 -1
- package/build/es/index.typings.mjs +45 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +35 -2
- package/build/es/meta.mjs +40 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +16 -3
- package/build/internal/cjs/index.typings.d.ts +45 -1
- package/build/internal/cjs/meta.d.ts +35 -2
- package/build/internal/es/index.d.mts +16 -3
- package/build/internal/es/index.typings.d.mts +45 -1
- package/build/internal/es/meta.d.mts +35 -2
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { ValidateDocumentOptions, ValidateDocumentResponse, ConvertToRicosDocumentOptions, ConvertToRicosDocumentResponse, RichContent, TargetFormatWithLiterals, ConvertFromRicosDocumentOptions, ConvertFromRicosDocumentResponse } from './index.typings.js';
|
|
3
|
-
export { Alignment, AlignmentWithLiterals, AnchorData, Animation, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerOriginPresenceOneOf, BannerPosition, BannerPositionWithLiterals, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, ColorDataBackground, ColorDataBackgroundType, ColorDataBackgroundTypeWithLiterals, Colors, ColumnSize, ColumnSizeWithLiterals, ConvertFromRicosDocumentOptionsOptionsOneOf, ConvertFromRicosDocumentRequest, ConvertFromRicosDocumentRequestOptionsOneOf, ConvertFromRicosDocumentResponseResultOneOf, ConvertToRicosDocumentOptionsSourceOneOf, ConvertToRicosDocumentRequest, ConvertToRicosDocumentRequestSourceOneOf, Crop, CropWithLiterals, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DividerDataStyles, DocumentStyle, EmbedData, EntranceAnimation, EntranceEffect, EntranceEffectType, EntranceEffectTypeWithLiterals, EventData, FileData, FileSource, FileSourceDataOneOf, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, Image, ImageData, ImageDataCrop, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemStyle, LayerEffect, LayerEffectWithLiterals, Layers, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineCap, LineCapWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListItemNodeData, ListStyle, ListStyleWithLiterals, ListValue, LoopAnimation, LoopEffect, LoopEffectType, LoopEffectTypeWithLiterals, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MentionData, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlainTextOptions, PlaybackOptions, Plugin, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, PluginWithLiterals, PointerEffect, PointerEffectType, PointerEffectTypeWithLiterals, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RibbonStyles, RicosDocumentOptions, RicosDocumentPlaceholder, RicosDocumentViolation, Scaling, ScalingWithLiterals, SectionDivider, Settings, Shape, ShapeData, ShapeDataStyles, ShapeWithLiterals, SketchData, SlotData, SlotDesign, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, Source, SourceWithLiterals, Spoiler, SpoilerData, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetFormat, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, ValidateDocumentRequest, Variant, VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.js';
|
|
3
|
+
export { Alignment, AlignmentWithLiterals, AnchorData, Animation, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerOriginPresenceOneOf, BannerPosition, BannerPositionWithLiterals, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, ColorDataBackground, ColorDataBackgroundType, ColorDataBackgroundTypeWithLiterals, Colors, ColumnSize, ColumnSizeWithLiterals, ConvertFromRicosDocumentOptionsOptionsOneOf, ConvertFromRicosDocumentRequest, ConvertFromRicosDocumentRequestOptionsOneOf, ConvertFromRicosDocumentResponseResultOneOf, ConvertToRicosDocumentOptionsSourceOneOf, ConvertToRicosDocumentRequest, ConvertToRicosDocumentRequestSourceOneOf, Crop, CropWithLiterals, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DividerDataStyles, DocumentStyle, EmbedData, EntranceAnimation, EntranceEffect, EntranceEffectType, EntranceEffectTypeWithLiterals, EventData, FileData, FileDownloadUrl, FileSource, FileSourceDataOneOf, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GenerateFileDownloadUrlApplicationErrors, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, Image, ImageData, ImageDataCrop, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemStyle, LayerEffect, LayerEffectWithLiterals, Layers, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineCap, LineCapWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListItemNodeData, ListStyle, ListStyleWithLiterals, ListValue, LoopAnimation, LoopEffect, LoopEffectType, LoopEffectTypeWithLiterals, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MentionData, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlainTextOptions, PlaybackOptions, Plugin, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, PluginWithLiterals, PointerEffect, PointerEffectType, PointerEffectTypeWithLiterals, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RibbonStyles, RicosDocumentOptions, RicosDocumentPlaceholder, RicosDocumentViolation, Scaling, ScalingWithLiterals, SectionDivider, Settings, Shape, ShapeData, ShapeDataStyles, ShapeWithLiterals, SketchData, SlotData, SlotDesign, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, Source, SourceWithLiterals, Spoiler, SpoilerData, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetFormat, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, ValidateDocumentRequest, Variant, VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function validateDocument$1(httpClient: HttpClient): ValidateDocumentSignature;
|
|
6
6
|
interface ValidateDocumentSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -88,6 +88,7 @@ __export(index_exports, {
|
|
|
88
88
|
WidthType: () => WidthType,
|
|
89
89
|
convertFromRicosDocument: () => convertFromRicosDocument4,
|
|
90
90
|
convertToRicosDocument: () => convertToRicosDocument4,
|
|
91
|
+
generateFileDownloadUrl: () => generateFileDownloadUrl4,
|
|
91
92
|
validateDocument: () => validateDocument4
|
|
92
93
|
});
|
|
93
94
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -758,6 +759,27 @@ function convertFromRicosDocument(payload) {
|
|
|
758
759
|
}
|
|
759
760
|
return __convertFromRicosDocument;
|
|
760
761
|
}
|
|
762
|
+
function generateFileDownloadUrl(payload) {
|
|
763
|
+
function __generateFileDownloadUrl({ host }) {
|
|
764
|
+
const metadata = {
|
|
765
|
+
entityFqdn: "wix.ricos.v1.document",
|
|
766
|
+
method: "POST",
|
|
767
|
+
methodFqn: "wix.ricos.v1.RicosDocument.GenerateFileDownloadUrl",
|
|
768
|
+
packageName: PACKAGE_NAME,
|
|
769
|
+
migrationOptions: {
|
|
770
|
+
optInTransformResponse: true
|
|
771
|
+
},
|
|
772
|
+
url: resolveWixRicosV1RicosDocumentUrl({
|
|
773
|
+
protoPath: "/v1/ricos-document/generate-file-download-url",
|
|
774
|
+
data: payload,
|
|
775
|
+
host
|
|
776
|
+
}),
|
|
777
|
+
data: payload
|
|
778
|
+
};
|
|
779
|
+
return metadata;
|
|
780
|
+
}
|
|
781
|
+
return __generateFileDownloadUrl;
|
|
782
|
+
}
|
|
761
783
|
|
|
762
784
|
// src/ricos-v1-document-ricos-documents.universal.ts
|
|
763
785
|
var Plugin = /* @__PURE__ */ ((Plugin2) => {
|
|
@@ -1412,6 +1434,29 @@ async function convertFromRicosDocument2(document, targetFormat, options) {
|
|
|
1412
1434
|
throw transformedError;
|
|
1413
1435
|
}
|
|
1414
1436
|
}
|
|
1437
|
+
async function generateFileDownloadUrl2(fileId) {
|
|
1438
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1439
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ fileId });
|
|
1440
|
+
const reqOpts = generateFileDownloadUrl(payload);
|
|
1441
|
+
sideEffects?.onSiteCall?.();
|
|
1442
|
+
try {
|
|
1443
|
+
const result = await httpClient.request(reqOpts);
|
|
1444
|
+
sideEffects?.onSuccess?.(result);
|
|
1445
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1446
|
+
} catch (err) {
|
|
1447
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1448
|
+
err,
|
|
1449
|
+
{
|
|
1450
|
+
spreadPathsToArguments: {},
|
|
1451
|
+
explicitPathsToArguments: { fileId: "$[0]" },
|
|
1452
|
+
singleArgumentUnchanged: false
|
|
1453
|
+
},
|
|
1454
|
+
["fileId"]
|
|
1455
|
+
);
|
|
1456
|
+
sideEffects?.onError?.(err);
|
|
1457
|
+
throw transformedError;
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1415
1460
|
|
|
1416
1461
|
// src/ricos-v1-document-ricos-documents.public.ts
|
|
1417
1462
|
function validateDocument3(httpClient) {
|
|
@@ -1438,12 +1483,20 @@ function convertFromRicosDocument3(httpClient) {
|
|
|
1438
1483
|
{ httpClient }
|
|
1439
1484
|
);
|
|
1440
1485
|
}
|
|
1486
|
+
function generateFileDownloadUrl3(httpClient) {
|
|
1487
|
+
return (fileId) => generateFileDownloadUrl2(
|
|
1488
|
+
fileId,
|
|
1489
|
+
// @ts-ignore
|
|
1490
|
+
{ httpClient }
|
|
1491
|
+
);
|
|
1492
|
+
}
|
|
1441
1493
|
|
|
1442
1494
|
// src/ricos-v1-document-ricos-documents.context.ts
|
|
1443
1495
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
1444
1496
|
var validateDocument4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(validateDocument3);
|
|
1445
1497
|
var convertToRicosDocument4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(convertToRicosDocument3);
|
|
1446
1498
|
var convertFromRicosDocument4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(convertFromRicosDocument3);
|
|
1499
|
+
var generateFileDownloadUrl4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(generateFileDownloadUrl3);
|
|
1447
1500
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1448
1501
|
0 && (module.exports = {
|
|
1449
1502
|
Alignment,
|
|
@@ -1514,6 +1567,7 @@ var convertFromRicosDocument4 = /* @__PURE__ */ (0, import_rest_modules2.createR
|
|
|
1514
1567
|
WidthType,
|
|
1515
1568
|
convertFromRicosDocument,
|
|
1516
1569
|
convertToRicosDocument,
|
|
1570
|
+
generateFileDownloadUrl,
|
|
1517
1571
|
validateDocument
|
|
1518
1572
|
});
|
|
1519
1573
|
//# sourceMappingURL=index.js.map
|