@wix/auto_sdk_multilingual_translation-published-contents 1.0.28 → 1.0.30
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 +2 -2
- package/build/cjs/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.ts → index.typings.d.ts} +67 -1
- package/build/cjs/index.typings.js +598 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.mts → index.typings.d.mts} +67 -1
- package/build/es/index.typings.mjs +541 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.ts → index.typings.d.ts} +67 -1
- package/build/internal/cjs/index.typings.js +598 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.mts → index.typings.d.mts} +67 -1
- package/build/internal/es/index.typings.mjs +541 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { PublishedContentQueryBuilder, PublishedContentCreatedEnvelope, PublishedContentDeletedEnvelope, PublishedContentUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulletedListData, ButtonData, CaptionData, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, Crop, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DeletePublishedContentRequest, DeletePublishedContentResponse, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, ExtendedFields, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GetPublishedContentRequest, GetPublishedContentResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, InitialExpandedItems, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, Media, MentionData, MessageEnvelope, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, PDFSettings, ParagraphData, Permissions, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, Position, PublishedContent, PublishedContentField, PublishedContentFieldValueOneOf, PublishedContentQueryResult, QueryPublishedContentRequest, QueryPublishedContentResponse, Rel, RestoreInfo, RichContent, SchemaKey, SchemaScope, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Styles, StylesBorder, TableCellData, TableData, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function queryPublishedContent$1(httpClient: HttpClient): QueryPublishedContentSignature;
|
|
6
6
|
interface QueryPublishedContentSignature {
|
|
@@ -1509,6 +1509,8 @@ declare enum NullValue {
|
|
|
1509
1509
|
/** Null value. */
|
|
1510
1510
|
NULL_VALUE = "NULL_VALUE"
|
|
1511
1511
|
}
|
|
1512
|
+
/** @enumType */
|
|
1513
|
+
type NullValueWithLiterals = NullValue | 'NULL_VALUE';
|
|
1512
1514
|
/**
|
|
1513
1515
|
* `ListValue` is a wrapper around a repeated field of values.
|
|
1514
1516
|
*
|
|
@@ -1934,14 +1936,78 @@ interface PublishedContentCreatedEnvelope {
|
|
|
1934
1936
|
entity: PublishedContent;
|
|
1935
1937
|
metadata: EventMetadata;
|
|
1936
1938
|
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Triggered when published content is created.
|
|
1941
|
+
* @permissionScope Wix Multilingual
|
|
1942
|
+
* @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS
|
|
1943
|
+
* @permissionScope Wix Multilingual - Translation Content + Published Content Read
|
|
1944
|
+
* @permissionScopeId SCOPE.DC-MULTILINGUAL.READ_TRANSLATION_CONTENT
|
|
1945
|
+
* @permissionId WIX_MULTILINGUAL.READ_PUBLISHED_TRANSLATIONS
|
|
1946
|
+
* @webhook
|
|
1947
|
+
* @eventType wix.multilingual.localization_public.v3.published_content_created
|
|
1948
|
+
* @slug created
|
|
1949
|
+
*/
|
|
1950
|
+
declare function onPublishedContentCreated(handler: (event: PublishedContentCreatedEnvelope) => void | Promise<void>): void;
|
|
1937
1951
|
interface PublishedContentDeletedEnvelope {
|
|
1938
1952
|
entity: PublishedContent;
|
|
1939
1953
|
metadata: EventMetadata;
|
|
1940
1954
|
}
|
|
1955
|
+
/**
|
|
1956
|
+
* Triggered when published content is deleted.
|
|
1957
|
+
* @permissionScope Wix Multilingual
|
|
1958
|
+
* @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS
|
|
1959
|
+
* @permissionScope Wix Multilingual - Translation Content + Published Content Read
|
|
1960
|
+
* @permissionScopeId SCOPE.DC-MULTILINGUAL.READ_TRANSLATION_CONTENT
|
|
1961
|
+
* @permissionId WIX_MULTILINGUAL.READ_PUBLISHED_TRANSLATIONS
|
|
1962
|
+
* @webhook
|
|
1963
|
+
* @eventType wix.multilingual.localization_public.v3.published_content_deleted
|
|
1964
|
+
* @slug deleted
|
|
1965
|
+
*/
|
|
1966
|
+
declare function onPublishedContentDeleted(handler: (event: PublishedContentDeletedEnvelope) => void | Promise<void>): void;
|
|
1941
1967
|
interface PublishedContentUpdatedEnvelope {
|
|
1942
1968
|
entity: PublishedContent;
|
|
1943
1969
|
metadata: EventMetadata;
|
|
1944
1970
|
}
|
|
1971
|
+
/**
|
|
1972
|
+
* Triggered when published content is updated.
|
|
1973
|
+
* @permissionScope Wix Multilingual
|
|
1974
|
+
* @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS
|
|
1975
|
+
* @permissionScope Wix Multilingual - Translation Content + Published Content Read
|
|
1976
|
+
* @permissionScopeId SCOPE.DC-MULTILINGUAL.READ_TRANSLATION_CONTENT
|
|
1977
|
+
* @permissionId WIX_MULTILINGUAL.READ_PUBLISHED_TRANSLATIONS
|
|
1978
|
+
* @webhook
|
|
1979
|
+
* @eventType wix.multilingual.localization_public.v3.published_content_updated
|
|
1980
|
+
* @slug updated
|
|
1981
|
+
*/
|
|
1982
|
+
declare function onPublishedContentUpdated(handler: (event: PublishedContentUpdatedEnvelope) => void | Promise<void>): void;
|
|
1983
|
+
/**
|
|
1984
|
+
* Creates a query to retrieve a list of translation content items.
|
|
1985
|
+
*
|
|
1986
|
+
* The `queryPublishedContent()` function builds a query to retrieve a list of translation content items and returns a `PublishedContentQueryBuilder` object.
|
|
1987
|
+
*
|
|
1988
|
+
* The returned object contains the query definition, which is used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/find) function.
|
|
1989
|
+
*
|
|
1990
|
+
* You can refine the query by chaining `PublishedContentQueryBuilder` functions onto the query. `PublishedContentQueryBuilder` functions enable you to filter, sort, and control the results that `queryPublishedContent()` returns.
|
|
1991
|
+
*
|
|
1992
|
+
* `queryPublishedContent()` runs with the following `PublishedContentQueryBuilder` defaults which you can override:
|
|
1993
|
+
*
|
|
1994
|
+
* + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/limit)
|
|
1995
|
+
* + [`ascending('_id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/ascending)
|
|
1996
|
+
*
|
|
1997
|
+
* The following query filter fields are required:
|
|
1998
|
+
*
|
|
1999
|
+
* + `schemaKey.appId`
|
|
2000
|
+
* + `schemaKey.entityType`
|
|
2001
|
+
* + `schemaKey.scope`
|
|
2002
|
+
*
|
|
2003
|
+
* The following `PublishedContentQueryBuilder` functions are supported for `queryPublishedContent()`. For a full description of the operations object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-result/items) property in `PublishedContentQueryResult`.
|
|
2004
|
+
* @public
|
|
2005
|
+
* @permissionId WIX_MULTILINGUAL.READ_PUBLISHED_TRANSLATIONS
|
|
2006
|
+
* @applicableIdentity APP
|
|
2007
|
+
* @applicableIdentity VISITOR
|
|
2008
|
+
* @fqn com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent
|
|
2009
|
+
*/
|
|
2010
|
+
declare function queryPublishedContent(): PublishedContentQueryBuilder;
|
|
1945
2011
|
interface QueryCursorResult {
|
|
1946
2012
|
cursors: Cursors;
|
|
1947
2013
|
hasNext: () => boolean;
|
|
@@ -2001,4 +2067,4 @@ interface PublishedContentQueryBuilder {
|
|
|
2001
2067
|
find: () => Promise<PublishedContentQueryResult>;
|
|
2002
2068
|
}
|
|
2003
2069
|
|
|
2004
|
-
export { type
|
|
2070
|
+
export { type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulletedListData, type ButtonData, type CaptionData, 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 DeletePublishedContentRequest, type DeletePublishedContentResponse, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, 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 GetPublishedContentRequest, type GetPublishedContentResponse, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Item, type ItemDataOneOf, type ItemStyle, type Layout, type LayoutCellData, LayoutType, type LayoutTypeWithLiterals, 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, 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 PublishedContent, type PublishedContentCreatedEnvelope, type PublishedContentDeletedEnvelope, type PublishedContentField, type PublishedContentFieldValueOneOf, type PublishedContentQueryBuilder, type PublishedContentQueryResult, type PublishedContentUpdatedEnvelope, type QueryPublishedContentRequest, type QueryPublishedContentResponse, type Rel, type RestoreInfo, type RichContent, type SchemaKey, SchemaScope, type SchemaScopeWithLiterals, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, 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, 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 };
|