@wix/auto_sdk_multilingual_machine-translation 1.0.26 → 1.0.28

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.
@@ -1290,6 +1290,8 @@ interface AppEmbedData extends AppEmbedDataAppDataOneOf {
1290
1290
  cardStyles?: CardStyles;
1291
1291
  /** Styling for the app embed's container. */
1292
1292
  containerData?: PluginContainerData;
1293
+ /** Pricing data for embedded Wix App content. */
1294
+ pricingData?: PricingData;
1293
1295
  }
1294
1296
  /** @oneof */
1295
1297
  interface AppEmbedDataAppDataOneOf {
@@ -1491,6 +1493,33 @@ interface CardStyles {
1491
1493
  */
1492
1494
  textColor?: string | null;
1493
1495
  }
1496
+ interface PricingData {
1497
+ /**
1498
+ * Minimum numeric price value as string (e.g., "10.99").
1499
+ * @decimalValue options { maxScale:2 }
1500
+ */
1501
+ valueFrom?: string | null;
1502
+ /**
1503
+ * Maximum numeric price value as string (e.g., "19.99").
1504
+ * @decimalValue options { maxScale:2 }
1505
+ */
1506
+ valueTo?: string | null;
1507
+ /**
1508
+ * Numeric price value as string after discount application (e.g., "15.99").
1509
+ * @decimalValue options { maxScale:2 }
1510
+ */
1511
+ discountedValue?: string | null;
1512
+ /**
1513
+ * Currency of the value in ISO 4217 format (e.g., "USD", "EUR").
1514
+ * @format CURRENCY
1515
+ */
1516
+ currency?: string | null;
1517
+ /**
1518
+ * Pricing plan ID.
1519
+ * @format GUID
1520
+ */
1521
+ pricingPlanId?: string | null;
1522
+ }
1494
1523
  interface VideoData {
1495
1524
  /** Styling for the video's container. */
1496
1525
  containerData?: PluginContainerData;
@@ -2121,6 +2150,7 @@ interface BulkActionMetadata {
2121
2150
  /** Number of failures without details because detailed failure threshold was exceeded. */
2122
2151
  undetailedFailures?: number;
2123
2152
  }
2153
+ /** @docsIgnore */
2124
2154
  type MachineTranslateApplicationErrors = {
2125
2155
  code?: 'NOT_ENOUGH_CREDITS';
2126
2156
  description?: string;
@@ -2138,6 +2168,7 @@ type MachineTranslateApplicationErrors = {
2138
2168
  description?: string;
2139
2169
  data?: SameLanguageArgumentsError;
2140
2170
  };
2171
+ /** @docsIgnore */
2141
2172
  type BulkMachineTranslateApplicationErrors = {
2142
2173
  code?: 'NOT_ENOUGH_CREDITS';
2143
2174
  description?: string;
@@ -2147,7 +2178,6 @@ type BulkMachineTranslateApplicationErrors = {
2147
2178
  description?: string;
2148
2179
  data?: SameLanguageArgumentsError;
2149
2180
  };
2150
- type TranslatableContentNonNullablePaths = `plainTextContent` | `htmlContent` | `format`;
2151
2181
  /**
2152
2182
  * Translates the text of a translatable unit of content from one supported language to another.
2153
2183
  *
@@ -2179,9 +2209,7 @@ type TranslatableContentNonNullablePaths = `plainTextContent` | `htmlContent` |
2179
2209
  * @applicableIdentity APP
2180
2210
  * @fqn wix.multilingual.machine.v3.MachineTranslation.MachineTranslate
2181
2211
  */
2182
- declare function machineTranslate(sourceLanguage: SupportedLanguageWithLiterals, options: NonNullablePaths<MachineTranslateOptions, `contentToTranslate` | `targetLanguage`>): Promise<NonNullablePaths<MachineTranslateResponse, {
2183
- [P in TranslatableContentNonNullablePaths]: `translatedContent.${P}`;
2184
- }[TranslatableContentNonNullablePaths]> & {
2212
+ declare function machineTranslate(sourceLanguage: SupportedLanguageWithLiterals, options: NonNullablePaths<MachineTranslateOptions, `contentToTranslate` | `targetLanguage`, 2>): Promise<NonNullablePaths<MachineTranslateResponse, `translatedContent.plainTextContent` | `translatedContent.htmlContent` | `translatedContent.format`, 3> & {
2185
2213
  __applicationErrorsType?: MachineTranslateApplicationErrors;
2186
2214
  }>;
2187
2215
  interface MachineTranslateOptions {
@@ -2221,9 +2249,7 @@ interface MachineTranslateOptions {
2221
2249
  * @applicableIdentity APP
2222
2250
  * @fqn wix.multilingual.machine.v3.MachineTranslation.BulkMachineTranslate
2223
2251
  */
2224
- declare function bulkMachineTranslate(sourceLanguage: SupportedLanguageWithLiterals, options?: NonNullablePaths<BulkMachineTranslateOptions, `targetLanguage`>): Promise<NonNullablePaths<BulkMachineTranslateResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
2225
- [P in TranslatableContentNonNullablePaths]: `results.${number}.item.${P}`;
2226
- }[TranslatableContentNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
2252
+ declare function bulkMachineTranslate(sourceLanguage: SupportedLanguageWithLiterals, options?: NonNullablePaths<BulkMachineTranslateOptions, `targetLanguage`, 2>): Promise<NonNullablePaths<BulkMachineTranslateResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.plainTextContent` | `results.${number}.item.htmlContent` | `results.${number}.item.format` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
2227
2253
  __applicationErrorsType?: BulkMachineTranslateApplicationErrors;
2228
2254
  }>;
2229
2255
  interface BulkMachineTranslateOptions {
@@ -2237,4 +2263,4 @@ interface BulkMachineTranslateOptions {
2237
2263
  contentToTranslate?: TranslatableContent[];
2238
2264
  }
2239
2265
 
2240
- export { Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundType, type BackgroundTypeWithLiterals, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkActionMetadata, type BulkMachineTranslateApplicationErrors, type BulkMachineTranslateOptions, type BulkMachineTranslateRequest, type BulkMachineTranslateResponse, type BulkTranslateResult, 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 Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type EmbedData, type EventData, type FileData, type FileSource, type FileSourceDataOneOf, type FontSizeData, FontType, type FontTypeWithLiterals, Format, type FormatWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type Image, type ImageData, type ImageDataStyles, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, Layout, type LayoutCellData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type MachineTranslateApplicationErrors, type MachineTranslateOptions, type MachineTranslateRequest, type MachineTranslateResponse, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type Metadata, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, type NotEnoughCreditsError, 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 Rel, Resizing, type ResizingWithLiterals, type RibbonStyles, type RichContent, type SameLanguageArgumentsError, type Settings, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, SupportedLanguage, type SupportedLanguageWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type TextTooLongError, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TranslatableContent, type TranslatableContentContentOneOf, Type, type TypeWithLiterals, type UnknownFormatError, VerticalAlignment, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkMachineTranslate, machineTranslate };
2266
+ export { Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundType, type BackgroundTypeWithLiterals, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkActionMetadata, type BulkMachineTranslateApplicationErrors, type BulkMachineTranslateOptions, type BulkMachineTranslateRequest, type BulkMachineTranslateResponse, type BulkTranslateResult, 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 Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type EmbedData, type EventData, type FileData, type FileSource, type FileSourceDataOneOf, type FontSizeData, FontType, type FontTypeWithLiterals, Format, type FormatWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type Image, type ImageData, type ImageDataStyles, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, Layout, type LayoutCellData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type MachineTranslateApplicationErrors, type MachineTranslateOptions, type MachineTranslateRequest, type MachineTranslateResponse, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type Metadata, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, type NotEnoughCreditsError, 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 Rel, Resizing, type ResizingWithLiterals, type RibbonStyles, type RichContent, type SameLanguageArgumentsError, type Settings, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, SupportedLanguage, type SupportedLanguageWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type TextTooLongError, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TranslatableContent, type TranslatableContentContentOneOf, Type, type TypeWithLiterals, type UnknownFormatError, VerticalAlignment, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkMachineTranslate, machineTranslate };