@wix/auto_sdk_multilingual_translation-published-contents 1.0.46 → 1.0.48
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 +4 -4
- package/build/cjs/index.js +77 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +79 -3
- package/build/cjs/index.typings.js +7 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +11 -1
- package/build/cjs/meta.js +7 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +76 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +79 -3
- package/build/es/index.typings.mjs +6 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +11 -1
- package/build/es/meta.mjs +6 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +77 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +79 -3
- package/build/internal/cjs/index.typings.js +7 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +11 -1
- package/build/internal/cjs/meta.js +7 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +76 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +79 -3
- package/build/internal/es/index.typings.mjs +6 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +11 -1
- package/build/internal/es/meta.mjs +6 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
|
+
import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
3
|
interface PublishedContent {
|
|
4
4
|
/**
|
|
@@ -1869,6 +1869,8 @@ interface LayoutData {
|
|
|
1869
1869
|
responsivenessBreakpoint?: number | null;
|
|
1870
1870
|
/** Styling for the layout's container. */
|
|
1871
1871
|
containerData?: PluginContainerData;
|
|
1872
|
+
/** Defines where selected design propertied applies to */
|
|
1873
|
+
designTarget?: DesignTargetWithLiterals;
|
|
1872
1874
|
}
|
|
1873
1875
|
declare enum Scaling {
|
|
1874
1876
|
/** Auto image scaling */
|
|
@@ -1930,6 +1932,14 @@ declare enum ResponsivenessBehaviour {
|
|
|
1930
1932
|
}
|
|
1931
1933
|
/** @enumType */
|
|
1932
1934
|
type ResponsivenessBehaviourWithLiterals = ResponsivenessBehaviour | 'STACK' | 'WRAP';
|
|
1935
|
+
declare enum DesignTarget {
|
|
1936
|
+
/** Design applied to layout */
|
|
1937
|
+
LAYOUT = "LAYOUT",
|
|
1938
|
+
/** Design applied to cells */
|
|
1939
|
+
CELL = "CELL"
|
|
1940
|
+
}
|
|
1941
|
+
/** @enumType */
|
|
1942
|
+
type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';
|
|
1933
1943
|
interface LayoutCellData {
|
|
1934
1944
|
/** Size of the cell in 12 columns grid. */
|
|
1935
1945
|
colSpan?: number | null;
|
|
@@ -2399,6 +2409,8 @@ declare function onPublishedContentDeleted(handler: (event: PublishedContentDele
|
|
|
2399
2409
|
interface PublishedContentUpdatedEnvelope {
|
|
2400
2410
|
entity: PublishedContent;
|
|
2401
2411
|
metadata: EventMetadata;
|
|
2412
|
+
/** @hidden */
|
|
2413
|
+
modifiedFields: Record<string, any>;
|
|
2402
2414
|
}
|
|
2403
2415
|
/**
|
|
2404
2416
|
* Triggered when published content is updated.
|
|
@@ -2502,6 +2514,70 @@ interface PublishedContentQueryBuilder {
|
|
|
2502
2514
|
* @fqn com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent
|
|
2503
2515
|
* @requiredField query
|
|
2504
2516
|
*/
|
|
2505
|
-
declare function typedQueryPublishedContent(query:
|
|
2517
|
+
declare function typedQueryPublishedContent(query: PublishedContentQuery): Promise<NonNullablePaths<QueryPublishedContentResponse, `publishedContent` | `publishedContent.${number}.schemaKey.appId` | `publishedContent.${number}.schemaKey.entityType` | `publishedContent.${number}.schemaKey.scope` | `publishedContent.${number}.entityId` | `publishedContent.${number}.locale`, 5>>;
|
|
2518
|
+
interface PublishedContentQuerySpec extends QuerySpec {
|
|
2519
|
+
paging: 'cursor';
|
|
2520
|
+
wql: [
|
|
2521
|
+
{
|
|
2522
|
+
fields: [
|
|
2523
|
+
'_id',
|
|
2524
|
+
'entityId',
|
|
2525
|
+
'locale',
|
|
2526
|
+
'parentEntityId',
|
|
2527
|
+
'schemaKey.appId',
|
|
2528
|
+
'schemaKey.entityType',
|
|
2529
|
+
'schemaKey.scope'
|
|
2530
|
+
];
|
|
2531
|
+
operators: '*';
|
|
2532
|
+
sort: 'BOTH';
|
|
2533
|
+
}
|
|
2534
|
+
];
|
|
2535
|
+
}
|
|
2536
|
+
type CommonQueryWithEntityContext = Query<PublishedContent, PublishedContentQuerySpec>;
|
|
2537
|
+
type PublishedContentQuery = {
|
|
2538
|
+
/**
|
|
2539
|
+
Cursor paging options.
|
|
2540
|
+
|
|
2541
|
+
Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2542
|
+
*/
|
|
2543
|
+
cursorPaging?: {
|
|
2544
|
+
/**
|
|
2545
|
+
Maximum number of items to return in the results.
|
|
2546
|
+
@max: 100
|
|
2547
|
+
*/
|
|
2548
|
+
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
2549
|
+
/**
|
|
2550
|
+
Pointer to the next or previous page in the list of results.
|
|
2551
|
+
|
|
2552
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
2553
|
+
Not relevant for the first request.
|
|
2554
|
+
@maxLength: 16000
|
|
2555
|
+
*/
|
|
2556
|
+
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
2557
|
+
};
|
|
2558
|
+
/**
|
|
2559
|
+
Filter object.
|
|
2560
|
+
|
|
2561
|
+
Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
2562
|
+
*/
|
|
2563
|
+
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
2564
|
+
/**
|
|
2565
|
+
Sort object.
|
|
2566
|
+
|
|
2567
|
+
Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
2568
|
+
@maxSize: 5
|
|
2569
|
+
*/
|
|
2570
|
+
sort?: {
|
|
2571
|
+
/**
|
|
2572
|
+
Name of the field to sort by.
|
|
2573
|
+
@maxLength: 512
|
|
2574
|
+
*/
|
|
2575
|
+
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
2576
|
+
/**
|
|
2577
|
+
Sort order.
|
|
2578
|
+
*/
|
|
2579
|
+
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
2580
|
+
}[];
|
|
2581
|
+
};
|
|
2506
2582
|
|
|
2507
|
-
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 };
|
|
2583
|
+
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, type CommonQueryWithEntityContext, 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, DesignTarget, type DesignTargetWithLiterals, 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 PublishedContentQuery, type PublishedContentQueryBuilder, type PublishedContentQueryResult, type PublishedContentQuerySpec, 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 };
|
|
@@ -27,6 +27,7 @@ __export(index_typings_exports, {
|
|
|
27
27
|
ButtonDataType: () => ButtonDataType,
|
|
28
28
|
Crop: () => Crop,
|
|
29
29
|
DecorationType: () => DecorationType,
|
|
30
|
+
DesignTarget: () => DesignTarget,
|
|
30
31
|
Direction: () => Direction,
|
|
31
32
|
DividerDataAlignment: () => DividerDataAlignment,
|
|
32
33
|
FontType: () => FontType,
|
|
@@ -574,6 +575,11 @@ var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
|
|
|
574
575
|
ResponsivenessBehaviour2["WRAP"] = "WRAP";
|
|
575
576
|
return ResponsivenessBehaviour2;
|
|
576
577
|
})(ResponsivenessBehaviour || {});
|
|
578
|
+
var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
|
|
579
|
+
DesignTarget2["LAYOUT"] = "LAYOUT";
|
|
580
|
+
DesignTarget2["CELL"] = "CELL";
|
|
581
|
+
return DesignTarget2;
|
|
582
|
+
})(DesignTarget || {});
|
|
577
583
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
578
584
|
SortOrder2["ASC"] = "ASC";
|
|
579
585
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -698,6 +704,7 @@ async function typedQueryPublishedContent(query) {
|
|
|
698
704
|
ButtonDataType,
|
|
699
705
|
Crop,
|
|
700
706
|
DecorationType,
|
|
707
|
+
DesignTarget,
|
|
701
708
|
Direction,
|
|
702
709
|
DividerDataAlignment,
|
|
703
710
|
FontType,
|