@wix/auto_sdk_multilingual_translation-published-contents 1.0.29 → 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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { P as PublishedContentQueryBuilder, a as PublishedContentCreatedEnvelope, b as PublishedContentDeletedEnvelope, c as PublishedContentUpdatedEnvelope } from './multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.js';
3
- export { bz as ActionEvent, A as Alignment, aO as AnchorData, aU as AppEmbedData, aV as AppEmbedDataAppDataOneOf, p as AppType, b7 as AudioData, aE as Background, aF as BackgroundBackgroundOneOf, B as BackgroundType, bG as BaseEventMetadata, ba as BlockquoteData, aW as BookingData, K as Border, b5 as BorderColors, b9 as BulletedListData, J as ButtonData, bb as CaptionData, b4 as CellStyle, a3 as CodeBlockData, b0 as CollapsibleListData, aP as ColorData, Q as Colors, C as Crop, bp as CursorPaging, br as CursorPagingMetadata, bm as CursorQuery, bn as CursorQueryPagingMethodOneOf, bs as Cursors, aM as Decoration, aN as DecorationDataOneOf, D as DecorationType, bB as DeletePublishedContentRequest, bC as DeletePublishedContentResponse, aK as Design, b2 as Dimensions, q as Direction, a5 as DividerData, be as DocumentStyle, bt as DomainEvent, bu as DomainEventBodyOneOf, a_ as EmbedData, bA as Empty, bv as EntityCreatedEvent, by as EntityDeletedEvent, bx as EntityUpdatedEvent, aX as EventData, bH as EventMetadata, bi as ExtendedFields, a6 as FileData, a7 as FileSource, a8 as FileSourceDataOneOf, bg as FocalPoint, aS as FontSizeData, F as FontType, al as GIF, ak as GIFData, G as GIFType, aa as GalleryData, ag as GalleryOptions, bj as GetPublishedContentRequest, bk as GetPublishedContentResponse, aD as Gradient, an as HTMLData, ao as HTMLDataDataOneOf, am as HeadingData, _ as Height, bE as IdentificationData, bF as IdentificationDataIdOneOf, ac as Image, ap as ImageData, ar as ImageDataStyles, I as InitialExpandedItems, ae as Item, af as ItemDataOneOf, ai as ItemStyle, ah as Layout, bc as LayoutCellData, h as LayoutType, L as LineStyle, a0 as Link, aQ as LinkData, a1 as LinkDataOneOf, as as LinkPreviewData, at as LinkPreviewDataStyles, b6 as ListValue, au as MapData, av as MapSettings, M as MapType, ab as Media, aR as MentionData, bD as MessageEnvelope, bd as Metadata, z as Node, E as NodeDataOneOf, H as NodeStyle, N as NodeType, s as NullValue, a$ as Oembed, az as Option, aH as OptionDesign, aC as OptionLayout, b8 as OrderedListData, O as Orientation, a9 as PDFSettings, aw as ParagraphData, ay as Permissions, aZ as PlaybackOptions, U as PluginContainerData, d as PluginContainerDataAlignment, X as PluginContainerDataWidth, Y as PluginContainerDataWidthDataOneOf, aI as Poll, ax as PollData, aJ as PollDataLayout, aG as PollDesign, aB as PollLayout, o as PollLayoutDirection, n as PollLayoutType, k as Position, v as PublishedContent, x as PublishedContentField, y as PublishedContentFieldValueOneOf, bI as PublishedContentQueryResult, bl as QueryPublishedContentRequest, bq as QueryPublishedContentResponse, a2 as Rel, bw as RestoreInfo, R as RichContent, w as SchemaKey, S as SchemaScope, aA as Settings, t as SortOrder, bo as Sorting, j as Source, Z as Spoiler, aT as SpoilerData, $ as Styles, aq as StylesBorder, b3 as TableCellData, b1 as TableData, e as Target, f as TextAlignment, aL as TextData, bf as TextNodeStyle, a4 as TextStyle, aj as Thumbnails, i as ThumbnailsAlignment, T as Type, r as VerticalAlignment, ad as Video, aY as VideoData, bh as VideoResolution, V as ViewMode, l as ViewRole, m as VoteRole, u as WebhookIdentityType, g as Width, W as WidthType } from './multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.js';
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 Styles as $, Alignment as A, BackgroundType as B, Crop as C, DecorationType as D, type NodeDataOneOf as E, FontType as F, GIFType as G, type NodeStyle as H, InitialExpandedItems as I, type ButtonData as J, type Border as K, LineStyle as L, MapType as M, NodeType as N, Orientation as O, type PublishedContentQueryBuilder as P, type Colors as Q, type RichContent as R, SchemaScope as S, Type as T, type PluginContainerData as U, ViewMode as V, WidthType as W, type PluginContainerDataWidth as X, type PluginContainerDataWidthDataOneOf as Y, type Spoiler as Z, type Height as _, type PublishedContentCreatedEnvelope as a, type Oembed as a$, type Link as a0, type LinkDataOneOf as a1, type Rel as a2, type CodeBlockData as a3, type TextStyle as a4, type DividerData as a5, type FileData as a6, type FileSource as a7, type FileSourceDataOneOf as a8, type PDFSettings as a9, type Settings as aA, type PollLayout as aB, type OptionLayout as aC, type Gradient as aD, type Background as aE, type BackgroundBackgroundOneOf as aF, type PollDesign as aG, type OptionDesign as aH, type Poll as aI, type PollDataLayout as aJ, type Design as aK, type TextData as aL, type Decoration as aM, type DecorationDataOneOf as aN, type AnchorData as aO, type ColorData as aP, type LinkData as aQ, type MentionData as aR, type FontSizeData as aS, type SpoilerData as aT, type AppEmbedData as aU, type AppEmbedDataAppDataOneOf as aV, type BookingData as aW, type EventData as aX, type VideoData as aY, type PlaybackOptions as aZ, type EmbedData as a_, type GalleryData as aa, type Media as ab, type Image as ac, type Video as ad, type Item as ae, type ItemDataOneOf as af, type GalleryOptions as ag, type Layout as ah, type ItemStyle as ai, type Thumbnails as aj, type GIFData as ak, type GIF as al, type HeadingData as am, type HTMLData as an, type HTMLDataDataOneOf as ao, type ImageData as ap, type StylesBorder as aq, type ImageDataStyles as ar, type LinkPreviewData as as, type LinkPreviewDataStyles as at, type MapData as au, type MapSettings as av, type ParagraphData as aw, type PollData as ax, type Permissions as ay, type Option as az, type PublishedContentDeletedEnvelope as b, type CollapsibleListData as b0, type TableData as b1, type Dimensions as b2, type TableCellData as b3, type CellStyle as b4, type BorderColors as b5, type ListValue as b6, type AudioData as b7, type OrderedListData as b8, type BulletedListData as b9, type Empty as bA, type DeletePublishedContentRequest as bB, type DeletePublishedContentResponse as bC, type MessageEnvelope as bD, type IdentificationData as bE, type IdentificationDataIdOneOf as bF, type BaseEventMetadata as bG, type EventMetadata as bH, type PublishedContentQueryResult as bI, type BlockquoteData as ba, type CaptionData as bb, type LayoutCellData as bc, type Metadata as bd, type DocumentStyle as be, type TextNodeStyle as bf, type FocalPoint as bg, type VideoResolution as bh, type ExtendedFields as bi, type GetPublishedContentRequest as bj, type GetPublishedContentResponse as bk, type QueryPublishedContentRequest as bl, type CursorQuery as bm, type CursorQueryPagingMethodOneOf as bn, type Sorting as bo, type CursorPaging as bp, type QueryPublishedContentResponse as bq, type CursorPagingMetadata as br, type Cursors as bs, type DomainEvent as bt, type DomainEventBodyOneOf as bu, type EntityCreatedEvent as bv, type RestoreInfo as bw, type EntityUpdatedEvent as bx, type EntityDeletedEvent as by, type ActionEvent as bz, type PublishedContentUpdatedEnvelope as c, PluginContainerDataAlignment as d, Target as e, TextAlignment as f, Width as g, LayoutType as h, ThumbnailsAlignment as i, Source as j, Position as k, ViewRole as l, VoteRole as m, PollLayoutType as n, PollLayoutDirection as o, AppType as p, Direction as q, VerticalAlignment as r, NullValue as s, SortOrder as t, WebhookIdentityType as u, type PublishedContent as v, type SchemaKey as w, type PublishedContentField as x, type PublishedContentFieldValueOneOf as y, type Node as z };
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 };