@wix/auto_sdk_multilingual_translation-published-contents 1.0.40 → 1.0.42

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +9 -31
  2. package/build/cjs/index.js +62 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +45 -3
  5. package/build/cjs/index.typings.js +46 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +38 -3
  8. package/build/cjs/meta.js +1 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +9 -31
  11. package/build/es/index.mjs +62 -1
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +45 -3
  14. package/build/es/index.typings.mjs +44 -1
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +38 -3
  17. package/build/es/meta.mjs +1 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +9 -31
  20. package/build/internal/cjs/index.js +62 -1
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +45 -3
  23. package/build/internal/cjs/index.typings.js +46 -2
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +38 -3
  26. package/build/internal/cjs/meta.js +1 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +9 -31
  29. package/build/internal/es/index.mjs +62 -1
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +45 -3
  32. package/build/internal/es/index.typings.mjs +44 -1
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +38 -3
  35. package/build/internal/es/meta.mjs +1 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. 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.
@@ -1212,6 +1214,8 @@ interface Decoration extends DecorationDataOneOf {
1212
1214
  superscriptData?: boolean | null;
1213
1215
  /** Data for a subscript decoration. Defaults to `true`. */
1214
1216
  subscriptData?: boolean | null;
1217
+ /** Data for a font family decoration. */
1218
+ fontFamilyData?: FontFamilyData;
1215
1219
  /** The type of decoration to apply. */
1216
1220
  type?: DecorationTypeWithLiterals;
1217
1221
  }
@@ -1241,6 +1245,8 @@ interface DecorationDataOneOf {
1241
1245
  superscriptData?: boolean | null;
1242
1246
  /** Data for a subscript decoration. Defaults to `true`. */
1243
1247
  subscriptData?: boolean | null;
1248
+ /** Data for a font family decoration. */
1249
+ fontFamilyData?: FontFamilyData;
1244
1250
  }
1245
1251
  declare enum DecorationType {
1246
1252
  BOLD = "BOLD",
@@ -1255,10 +1261,11 @@ declare enum DecorationType {
1255
1261
  EXTERNAL = "EXTERNAL",
1256
1262
  STRIKETHROUGH = "STRIKETHROUGH",
1257
1263
  SUPERSCRIPT = "SUPERSCRIPT",
1258
- SUBSCRIPT = "SUBSCRIPT"
1264
+ SUBSCRIPT = "SUBSCRIPT",
1265
+ FONT_FAMILY = "FONT_FAMILY"
1259
1266
  }
1260
1267
  /** @enumType */
1261
- type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT';
1268
+ type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT' | 'FONT_FAMILY';
1262
1269
  interface AnchorData {
1263
1270
  /** The target node's ID. */
1264
1271
  anchor?: string;
@@ -1297,6 +1304,10 @@ interface SpoilerData {
1297
1304
  /** Spoiler ID. */
1298
1305
  id?: string | null;
1299
1306
  }
1307
+ interface FontFamilyData {
1308
+ /** @maxLength 1000 */
1309
+ value?: string | null;
1310
+ }
1300
1311
  interface AppEmbedData extends AppEmbedDataAppDataOneOf {
1301
1312
  /** Data for embedded Wix Bookings content. */
1302
1313
  bookingData?: BookingData;
@@ -1681,6 +1692,13 @@ interface TableData {
1681
1692
  rowHeader?: boolean | null;
1682
1693
  /** Sets whether the table's first column is a header. Defaults to `false`. */
1683
1694
  columnHeader?: boolean | null;
1695
+ /** The spacing between cells in pixels. Defaults to `0`. */
1696
+ cellSpacing?: number | null;
1697
+ /**
1698
+ * Padding in pixels for cells. Follows CSS order: top, right, bottom, left.
1699
+ * @maxSize 4
1700
+ */
1701
+ cellPadding?: number[];
1684
1702
  }
1685
1703
  interface Dimensions {
1686
1704
  /** An array representing relative width of each column in relation to the other columns. */
@@ -1695,6 +1713,12 @@ interface TableCellData {
1695
1713
  cellStyle?: CellStyle;
1696
1714
  /** The cell's border colors. */
1697
1715
  borderColors?: BorderColors;
1716
+ /** Defines how many columns the cell spans. Default: 1. */
1717
+ colspan?: number | null;
1718
+ /** Defines how many rows the cell spans. Default: 1. */
1719
+ rowspan?: number | null;
1720
+ /** The cell's border widths. */
1721
+ borderWidths?: BorderWidths;
1698
1722
  }
1699
1723
  declare enum VerticalAlignment {
1700
1724
  /** Top alignment */
@@ -1737,6 +1761,16 @@ interface BorderColors {
1737
1761
  */
1738
1762
  bottom?: string | null;
1739
1763
  }
1764
+ interface BorderWidths {
1765
+ /** Left border width in pixels. */
1766
+ left?: number | null;
1767
+ /** Right border width in pixels. */
1768
+ right?: number | null;
1769
+ /** Top border width in pixels. */
1770
+ top?: number | null;
1771
+ /** Bottom border width in pixels. */
1772
+ bottom?: number | null;
1773
+ }
1740
1774
  /**
1741
1775
  * `NullValue` is a singleton enumeration to represent the null value for the
1742
1776
  * `Value` type union.
@@ -1836,6 +1870,8 @@ interface LayoutData {
1836
1870
  responsivenessBehaviour?: ResponsivenessBehaviourWithLiterals;
1837
1871
  /** Size in pixels when responsiveness_behaviour applies */
1838
1872
  responsivenessBreakpoint?: number | null;
1873
+ /** Styling for the layout's container. */
1874
+ containerData?: PluginContainerData;
1839
1875
  }
1840
1876
  declare enum Scaling {
1841
1877
  /** Auto image scaling */
@@ -2464,5 +2500,11 @@ interface PublishedContentQueryBuilder {
2464
2500
  skipTo: (cursor: string) => PublishedContentQueryBuilder;
2465
2501
  find: () => Promise<PublishedContentQueryResult>;
2466
2502
  }
2503
+ /**
2504
+ * @hidden
2505
+ * @fqn com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent
2506
+ * @requiredField query
2507
+ */
2508
+ 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
2509
 
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 };
2510
+ 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 BorderWidths, 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 FontFamilyData, 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
 
@@ -472,6 +473,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
472
473
  DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
473
474
  DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
474
475
  DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
476
+ DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
475
477
  return DecorationType2;
476
478
  })(DecorationType || {});
477
479
  var FontType = /* @__PURE__ */ ((FontType2) => {
@@ -646,6 +648,47 @@ function queryPublishedContent2() {
646
648
  transformationPaths: {}
647
649
  });
648
650
  }
651
+ async function typedQueryPublishedContent(query) {
652
+ const { httpClient, sideEffects } = arguments[1];
653
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query }, []);
654
+ const reqOpts = queryPublishedContent(
655
+ payload
656
+ );
657
+ sideEffects?.onSiteCall?.();
658
+ try {
659
+ const result = await httpClient.request(reqOpts);
660
+ sideEffects?.onSuccess?.(result);
661
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
662
+ (0, import_transform_paths2.transformPaths)(result.data, [
663
+ {
664
+ transformFn: import_image.transformRESTImageToSDKImage,
665
+ paths: [{ path: "publishedContent.fields.image" }]
666
+ },
667
+ {
668
+ transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
669
+ paths: [{ path: "publishedContent.fields.video" }]
670
+ },
671
+ {
672
+ transformFn: import_document.transformRESTDocumentToSDKDocument,
673
+ paths: [{ path: "publishedContent.fields.document" }]
674
+ }
675
+ ]),
676
+ ["publishedContent.fields.richContent"]
677
+ );
678
+ } catch (err) {
679
+ const transformedError = (0, import_transform_error.transformError)(
680
+ err,
681
+ {
682
+ spreadPathsToArguments: {},
683
+ explicitPathsToArguments: { query: "$[0]" },
684
+ singleArgumentUnchanged: false
685
+ },
686
+ ["query"]
687
+ );
688
+ sideEffects?.onError?.(err);
689
+ throw transformedError;
690
+ }
691
+ }
649
692
  // Annotate the CommonJS export names for ESM import in node:
650
693
  0 && (module.exports = {
651
694
  Alignment,
@@ -692,6 +735,7 @@ function queryPublishedContent2() {
692
735
  WebhookIdentityType,
693
736
  Width,
694
737
  WidthType,
695
- queryPublishedContent
738
+ queryPublishedContent,
739
+ typedQueryPublishedContent
696
740
  });
697
741
  //# sourceMappingURL=index.typings.js.map