@wix/auto_sdk_multilingual_translation-published-contents 1.0.29 → 1.0.31
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/index.js +69 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.ts → index.typings.d.ts} +280 -12
- package/build/cjs/index.typings.js +649 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +214 -12
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +62 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.mts → index.typings.d.mts} +280 -12
- package/build/es/index.typings.mjs +585 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +214 -12
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +69 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.ts → index.typings.d.ts} +280 -12
- package/build/internal/cjs/index.typings.js +649 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +214 -12
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +62 -18
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{multilingual-localization-public-v3-published-content-translation-published-contents.universal-7wjuj2Yv.d.mts → index.typings.d.mts} +280 -12
- package/build/internal/es/index.typings.mjs +585 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +214 -12
- package/package.json +2 -2
|
@@ -287,7 +287,7 @@ interface ButtonData {
|
|
|
287
287
|
/** Styling for the button's container. */
|
|
288
288
|
containerData?: PluginContainerData;
|
|
289
289
|
/** The button type. */
|
|
290
|
-
type?:
|
|
290
|
+
type?: ButtonDataTypeWithLiterals;
|
|
291
291
|
/** Styling for the button. */
|
|
292
292
|
styles?: Styles;
|
|
293
293
|
/** The text to display on the button. */
|
|
@@ -395,14 +395,14 @@ interface Height {
|
|
|
395
395
|
/** A custom height value in pixels. */
|
|
396
396
|
custom?: string | null;
|
|
397
397
|
}
|
|
398
|
-
declare enum
|
|
398
|
+
declare enum ButtonDataType {
|
|
399
399
|
/** Regular link button */
|
|
400
400
|
LINK = "LINK",
|
|
401
401
|
/** Triggers custom action that is defined in plugin configuration by the consumer */
|
|
402
402
|
ACTION = "ACTION"
|
|
403
403
|
}
|
|
404
404
|
/** @enumType */
|
|
405
|
-
type
|
|
405
|
+
type ButtonDataTypeWithLiterals = ButtonDataType | 'LINK' | 'ACTION';
|
|
406
406
|
interface Styles {
|
|
407
407
|
/**
|
|
408
408
|
* Deprecated: Use `borderWidth` and `borderRadius` instead.
|
|
@@ -535,7 +535,7 @@ interface DividerData {
|
|
|
535
535
|
/** Divider width. */
|
|
536
536
|
width?: WidthWithLiterals;
|
|
537
537
|
/** Divider alignment. */
|
|
538
|
-
alignment?:
|
|
538
|
+
alignment?: DividerDataAlignmentWithLiterals;
|
|
539
539
|
}
|
|
540
540
|
declare enum LineStyle {
|
|
541
541
|
/** Single Line */
|
|
@@ -559,7 +559,7 @@ declare enum Width {
|
|
|
559
559
|
}
|
|
560
560
|
/** @enumType */
|
|
561
561
|
type WidthWithLiterals = Width | 'LARGE' | 'MEDIUM' | 'SMALL';
|
|
562
|
-
declare enum
|
|
562
|
+
declare enum DividerDataAlignment {
|
|
563
563
|
/** Center alignment */
|
|
564
564
|
CENTER = "CENTER",
|
|
565
565
|
/** Left alignment */
|
|
@@ -568,7 +568,7 @@ declare enum Alignment {
|
|
|
568
568
|
RIGHT = "RIGHT"
|
|
569
569
|
}
|
|
570
570
|
/** @enumType */
|
|
571
|
-
type
|
|
571
|
+
type DividerDataAlignmentWithLiterals = DividerDataAlignment | 'CENTER' | 'LEFT' | 'RIGHT';
|
|
572
572
|
interface FileData {
|
|
573
573
|
/** Styling for the file's container. */
|
|
574
574
|
containerData?: PluginContainerData;
|
|
@@ -693,7 +693,7 @@ interface ItemDataOneOf {
|
|
|
693
693
|
}
|
|
694
694
|
interface GalleryOptions {
|
|
695
695
|
/** Gallery layout. */
|
|
696
|
-
layout?:
|
|
696
|
+
layout?: GalleryOptionsLayout;
|
|
697
697
|
/** Styling for gallery items. */
|
|
698
698
|
item?: ItemStyle;
|
|
699
699
|
/** Styling for gallery thumbnail images. */
|
|
@@ -753,7 +753,7 @@ declare enum ThumbnailsAlignment {
|
|
|
753
753
|
}
|
|
754
754
|
/** @enumType */
|
|
755
755
|
type ThumbnailsAlignmentWithLiterals = ThumbnailsAlignment | 'TOP' | 'RIGHT' | 'BOTTOM' | 'LEFT' | 'NONE';
|
|
756
|
-
interface
|
|
756
|
+
interface GalleryOptionsLayout {
|
|
757
757
|
/** Gallery layout type. */
|
|
758
758
|
type?: LayoutTypeWithLiterals;
|
|
759
759
|
/** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */
|
|
@@ -915,7 +915,7 @@ interface LinkPreviewData {
|
|
|
915
915
|
/** Styling for the link preview. */
|
|
916
916
|
styles?: LinkPreviewDataStyles;
|
|
917
917
|
}
|
|
918
|
-
declare enum
|
|
918
|
+
declare enum StylesPosition {
|
|
919
919
|
/** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
|
|
920
920
|
START = "START",
|
|
921
921
|
/** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
|
|
@@ -926,7 +926,7 @@ declare enum Position {
|
|
|
926
926
|
HIDDEN = "HIDDEN"
|
|
927
927
|
}
|
|
928
928
|
/** @enumType */
|
|
929
|
-
type
|
|
929
|
+
type StylesPositionWithLiterals = StylesPosition | 'START' | 'END' | 'TOP' | 'HIDDEN';
|
|
930
930
|
interface LinkPreviewDataStyles {
|
|
931
931
|
/**
|
|
932
932
|
* Background color as a hexadecimal value.
|
|
@@ -958,7 +958,7 @@ interface LinkPreviewDataStyles {
|
|
|
958
958
|
*/
|
|
959
959
|
borderColor?: string | null;
|
|
960
960
|
/** Position of thumbnail. Defaults to `START`. */
|
|
961
|
-
thumbnailPosition?:
|
|
961
|
+
thumbnailPosition?: StylesPositionWithLiterals;
|
|
962
962
|
}
|
|
963
963
|
interface MapData {
|
|
964
964
|
/** Styling for the map's container. */
|
|
@@ -1312,6 +1312,32 @@ interface AppEmbedData extends AppEmbedDataAppDataOneOf {
|
|
|
1312
1312
|
url?: string | null;
|
|
1313
1313
|
/** An image for the embedded content. */
|
|
1314
1314
|
image?: Media;
|
|
1315
|
+
/** Whether to hide the image. */
|
|
1316
|
+
hideImage?: boolean | null;
|
|
1317
|
+
/** Whether to hide the title. */
|
|
1318
|
+
hideTitle?: boolean | null;
|
|
1319
|
+
/** Whether to hide the price. */
|
|
1320
|
+
hidePrice?: boolean | null;
|
|
1321
|
+
/** Whether to hide the description (Event and Booking). */
|
|
1322
|
+
hideDescription?: boolean | null;
|
|
1323
|
+
/** Whether to hide the date and time (Event). */
|
|
1324
|
+
hideDateTime?: boolean | null;
|
|
1325
|
+
/** Whether to hide the location (Event). */
|
|
1326
|
+
hideLocation?: boolean | null;
|
|
1327
|
+
/** Whether to hide the duration (Booking). */
|
|
1328
|
+
hideDuration?: boolean | null;
|
|
1329
|
+
/** Whether to hide the button. */
|
|
1330
|
+
hideButton?: boolean | null;
|
|
1331
|
+
/** Whether to hide the ribbon. */
|
|
1332
|
+
hideRibbon?: boolean | null;
|
|
1333
|
+
/** Button styling options. */
|
|
1334
|
+
buttonStyles?: ButtonStyles;
|
|
1335
|
+
/** Image styling options. */
|
|
1336
|
+
imageStyles?: ImageStyles;
|
|
1337
|
+
/** Ribbon styling options. */
|
|
1338
|
+
ribbonStyles?: RibbonStyles;
|
|
1339
|
+
/** Card styling options. */
|
|
1340
|
+
cardStyles?: CardStyles;
|
|
1315
1341
|
}
|
|
1316
1342
|
/** @oneof */
|
|
1317
1343
|
interface AppEmbedDataAppDataOneOf {
|
|
@@ -1320,6 +1346,66 @@ interface AppEmbedDataAppDataOneOf {
|
|
|
1320
1346
|
/** Data for embedded Wix Events content. */
|
|
1321
1347
|
eventData?: EventData;
|
|
1322
1348
|
}
|
|
1349
|
+
declare enum Position {
|
|
1350
|
+
/** Image positioned at the start (left in LTR layouts, right in RTL layouts) */
|
|
1351
|
+
START = "START",
|
|
1352
|
+
/** Image positioned at the end (right in LTR layouts, left in RTL layouts) */
|
|
1353
|
+
END = "END",
|
|
1354
|
+
/** Image positioned at the top */
|
|
1355
|
+
TOP = "TOP"
|
|
1356
|
+
}
|
|
1357
|
+
/** @enumType */
|
|
1358
|
+
type PositionWithLiterals = Position | 'START' | 'END' | 'TOP';
|
|
1359
|
+
declare enum AspectRatio {
|
|
1360
|
+
/** 1:1 aspect ratio */
|
|
1361
|
+
SQUARE = "SQUARE",
|
|
1362
|
+
/** 16:9 aspect ratio */
|
|
1363
|
+
RECTANGLE = "RECTANGLE"
|
|
1364
|
+
}
|
|
1365
|
+
/** @enumType */
|
|
1366
|
+
type AspectRatioWithLiterals = AspectRatio | 'SQUARE' | 'RECTANGLE';
|
|
1367
|
+
declare enum Resizing {
|
|
1368
|
+
/** Fill the container, may crop the image */
|
|
1369
|
+
FILL = "FILL",
|
|
1370
|
+
/** Fit the image within the container */
|
|
1371
|
+
FIT = "FIT"
|
|
1372
|
+
}
|
|
1373
|
+
/** @enumType */
|
|
1374
|
+
type ResizingWithLiterals = Resizing | 'FILL' | 'FIT';
|
|
1375
|
+
declare enum Placement {
|
|
1376
|
+
/** Ribbon placed on the image */
|
|
1377
|
+
IMAGE = "IMAGE",
|
|
1378
|
+
/** Ribbon placed on the product information */
|
|
1379
|
+
PRODUCT_INFO = "PRODUCT_INFO"
|
|
1380
|
+
}
|
|
1381
|
+
/** @enumType */
|
|
1382
|
+
type PlacementWithLiterals = Placement | 'IMAGE' | 'PRODUCT_INFO';
|
|
1383
|
+
declare enum Type {
|
|
1384
|
+
/** Card with visible border and background */
|
|
1385
|
+
CONTAINED = "CONTAINED",
|
|
1386
|
+
/** Card without visible border */
|
|
1387
|
+
FRAMELESS = "FRAMELESS"
|
|
1388
|
+
}
|
|
1389
|
+
/** @enumType */
|
|
1390
|
+
type TypeWithLiterals = Type | 'CONTAINED' | 'FRAMELESS';
|
|
1391
|
+
declare enum Alignment {
|
|
1392
|
+
/** Content aligned to start (left in LTR layouts, right in RTL layouts) */
|
|
1393
|
+
START = "START",
|
|
1394
|
+
/** Content centered */
|
|
1395
|
+
CENTER = "CENTER",
|
|
1396
|
+
/** Content aligned to end (right in LTR layouts, left in RTL layouts) */
|
|
1397
|
+
END = "END"
|
|
1398
|
+
}
|
|
1399
|
+
/** @enumType */
|
|
1400
|
+
type AlignmentWithLiterals = Alignment | 'START' | 'CENTER' | 'END';
|
|
1401
|
+
declare enum Layout {
|
|
1402
|
+
/** Elements stacked vertically */
|
|
1403
|
+
STACKED = "STACKED",
|
|
1404
|
+
/** Elements arranged horizontally */
|
|
1405
|
+
SIDE_BY_SIDE = "SIDE_BY_SIDE"
|
|
1406
|
+
}
|
|
1407
|
+
/** @enumType */
|
|
1408
|
+
type LayoutWithLiterals = Layout | 'STACKED' | 'SIDE_BY_SIDE';
|
|
1323
1409
|
declare enum AppType {
|
|
1324
1410
|
PRODUCT = "PRODUCT",
|
|
1325
1411
|
EVENT = "EVENT",
|
|
@@ -1337,6 +1423,122 @@ interface EventData {
|
|
|
1337
1423
|
/** Event location. */
|
|
1338
1424
|
location?: string | null;
|
|
1339
1425
|
}
|
|
1426
|
+
interface ButtonStyles {
|
|
1427
|
+
/** Text to display on the button. */
|
|
1428
|
+
buttonText?: string | null;
|
|
1429
|
+
/** Border width in pixels. */
|
|
1430
|
+
borderWidth?: number | null;
|
|
1431
|
+
/** Border radius in pixels. */
|
|
1432
|
+
borderRadius?: number | null;
|
|
1433
|
+
/**
|
|
1434
|
+
* Border color as a hexadecimal value.
|
|
1435
|
+
* @format COLOR_HEX
|
|
1436
|
+
*/
|
|
1437
|
+
borderColor?: string | null;
|
|
1438
|
+
/**
|
|
1439
|
+
* Text color as a hexadecimal value.
|
|
1440
|
+
* @format COLOR_HEX
|
|
1441
|
+
*/
|
|
1442
|
+
textColor?: string | null;
|
|
1443
|
+
/**
|
|
1444
|
+
* Background color as a hexadecimal value.
|
|
1445
|
+
* @format COLOR_HEX
|
|
1446
|
+
*/
|
|
1447
|
+
backgroundColor?: string | null;
|
|
1448
|
+
/**
|
|
1449
|
+
* Border color as a hexadecimal value (hover state).
|
|
1450
|
+
* @format COLOR_HEX
|
|
1451
|
+
*/
|
|
1452
|
+
borderColorHover?: string | null;
|
|
1453
|
+
/**
|
|
1454
|
+
* Text color as a hexadecimal value (hover state).
|
|
1455
|
+
* @format COLOR_HEX
|
|
1456
|
+
*/
|
|
1457
|
+
textColorHover?: string | null;
|
|
1458
|
+
/**
|
|
1459
|
+
* Background color as a hexadecimal value (hover state).
|
|
1460
|
+
* @format COLOR_HEX
|
|
1461
|
+
*/
|
|
1462
|
+
backgroundColorHover?: string | null;
|
|
1463
|
+
/** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
|
|
1464
|
+
buttonSize?: string | null;
|
|
1465
|
+
}
|
|
1466
|
+
interface ImageStyles {
|
|
1467
|
+
/** Whether to hide the image. */
|
|
1468
|
+
hideImage?: boolean | null;
|
|
1469
|
+
/** Position of image. Defaults to `START`. */
|
|
1470
|
+
imagePosition?: PositionWithLiterals;
|
|
1471
|
+
/** Aspect ratio for the image. Defaults to `SQUARE`. */
|
|
1472
|
+
aspectRatio?: AspectRatioWithLiterals;
|
|
1473
|
+
/** How the image should be resized. Defaults to `FILL`. */
|
|
1474
|
+
resizing?: ResizingWithLiterals;
|
|
1475
|
+
/**
|
|
1476
|
+
* Image border color as a hexadecimal value.
|
|
1477
|
+
* @format COLOR_HEX
|
|
1478
|
+
*/
|
|
1479
|
+
borderColor?: string | null;
|
|
1480
|
+
/** Image border width in pixels. */
|
|
1481
|
+
borderWidth?: number | null;
|
|
1482
|
+
/** Image border radius in pixels. */
|
|
1483
|
+
borderRadius?: number | null;
|
|
1484
|
+
}
|
|
1485
|
+
interface RibbonStyles {
|
|
1486
|
+
/** Text to display on the ribbon. */
|
|
1487
|
+
ribbonText?: string | null;
|
|
1488
|
+
/**
|
|
1489
|
+
* Ribbon background color as a hexadecimal value.
|
|
1490
|
+
* @format COLOR_HEX
|
|
1491
|
+
*/
|
|
1492
|
+
backgroundColor?: string | null;
|
|
1493
|
+
/**
|
|
1494
|
+
* Ribbon text color as a hexadecimal value.
|
|
1495
|
+
* @format COLOR_HEX
|
|
1496
|
+
*/
|
|
1497
|
+
textColor?: string | null;
|
|
1498
|
+
/**
|
|
1499
|
+
* Ribbon border color as a hexadecimal value.
|
|
1500
|
+
* @format COLOR_HEX
|
|
1501
|
+
*/
|
|
1502
|
+
borderColor?: string | null;
|
|
1503
|
+
/** Ribbon border width in pixels. */
|
|
1504
|
+
borderWidth?: number | null;
|
|
1505
|
+
/** Ribbon border radius in pixels. */
|
|
1506
|
+
borderRadius?: number | null;
|
|
1507
|
+
/** Placement of the ribbon. Defaults to `IMAGE`. */
|
|
1508
|
+
ribbonPlacement?: PlacementWithLiterals;
|
|
1509
|
+
}
|
|
1510
|
+
interface CardStyles {
|
|
1511
|
+
/**
|
|
1512
|
+
* Card background color as a hexadecimal value.
|
|
1513
|
+
* @format COLOR_HEX
|
|
1514
|
+
*/
|
|
1515
|
+
backgroundColor?: string | null;
|
|
1516
|
+
/**
|
|
1517
|
+
* Card border color as a hexadecimal value.
|
|
1518
|
+
* @format COLOR_HEX
|
|
1519
|
+
*/
|
|
1520
|
+
borderColor?: string | null;
|
|
1521
|
+
/** Card border width in pixels. */
|
|
1522
|
+
borderWidth?: number | null;
|
|
1523
|
+
/** Card border radius in pixels. */
|
|
1524
|
+
borderRadius?: number | null;
|
|
1525
|
+
/** Card type. Defaults to `CONTAINED`. */
|
|
1526
|
+
type?: TypeWithLiterals;
|
|
1527
|
+
/** Content alignment. Defaults to `START`. */
|
|
1528
|
+
alignment?: AlignmentWithLiterals;
|
|
1529
|
+
/** Layout for title and price. Defaults to `STACKED`. */
|
|
1530
|
+
titlePriceLayout?: LayoutWithLiterals;
|
|
1531
|
+
/**
|
|
1532
|
+
* Title text color as a hexadecimal value.
|
|
1533
|
+
* @format COLOR_HEX
|
|
1534
|
+
*/
|
|
1535
|
+
titleColor?: string | null;
|
|
1536
|
+
/**
|
|
1537
|
+
* Text color as a hexadecimal value.
|
|
1538
|
+
* @format COLOR_HEX
|
|
1539
|
+
*/
|
|
1540
|
+
textColor?: string | null;
|
|
1541
|
+
}
|
|
1340
1542
|
interface VideoData {
|
|
1341
1543
|
/** Styling for the video's container. */
|
|
1342
1544
|
containerData?: PluginContainerData;
|
|
@@ -1509,6 +1711,8 @@ declare enum NullValue {
|
|
|
1509
1711
|
/** Null value. */
|
|
1510
1712
|
NULL_VALUE = "NULL_VALUE"
|
|
1511
1713
|
}
|
|
1714
|
+
/** @enumType */
|
|
1715
|
+
type NullValueWithLiterals = NullValue | 'NULL_VALUE';
|
|
1512
1716
|
/**
|
|
1513
1717
|
* `ListValue` is a wrapper around a repeated field of values.
|
|
1514
1718
|
*
|
|
@@ -1934,14 +2138,78 @@ interface PublishedContentCreatedEnvelope {
|
|
|
1934
2138
|
entity: PublishedContent;
|
|
1935
2139
|
metadata: EventMetadata;
|
|
1936
2140
|
}
|
|
2141
|
+
/**
|
|
2142
|
+
* Triggered when published content is created.
|
|
2143
|
+
* @permissionScope Wix Multilingual
|
|
2144
|
+
* @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS
|
|
2145
|
+
* @permissionScope Wix Multilingual - Translation Content + Published Content Read
|
|
2146
|
+
* @permissionScopeId SCOPE.DC-MULTILINGUAL.READ_TRANSLATION_CONTENT
|
|
2147
|
+
* @permissionId WIX_MULTILINGUAL.READ_PUBLISHED_TRANSLATIONS
|
|
2148
|
+
* @webhook
|
|
2149
|
+
* @eventType wix.multilingual.localization_public.v3.published_content_created
|
|
2150
|
+
* @slug created
|
|
2151
|
+
*/
|
|
2152
|
+
declare function onPublishedContentCreated(handler: (event: PublishedContentCreatedEnvelope) => void | Promise<void>): void;
|
|
1937
2153
|
interface PublishedContentDeletedEnvelope {
|
|
1938
2154
|
entity: PublishedContent;
|
|
1939
2155
|
metadata: EventMetadata;
|
|
1940
2156
|
}
|
|
2157
|
+
/**
|
|
2158
|
+
* Triggered when published content is deleted.
|
|
2159
|
+
* @permissionScope Wix Multilingual
|
|
2160
|
+
* @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS
|
|
2161
|
+
* @permissionScope Wix Multilingual - Translation Content + Published Content Read
|
|
2162
|
+
* @permissionScopeId SCOPE.DC-MULTILINGUAL.READ_TRANSLATION_CONTENT
|
|
2163
|
+
* @permissionId WIX_MULTILINGUAL.READ_PUBLISHED_TRANSLATIONS
|
|
2164
|
+
* @webhook
|
|
2165
|
+
* @eventType wix.multilingual.localization_public.v3.published_content_deleted
|
|
2166
|
+
* @slug deleted
|
|
2167
|
+
*/
|
|
2168
|
+
declare function onPublishedContentDeleted(handler: (event: PublishedContentDeletedEnvelope) => void | Promise<void>): void;
|
|
1941
2169
|
interface PublishedContentUpdatedEnvelope {
|
|
1942
2170
|
entity: PublishedContent;
|
|
1943
2171
|
metadata: EventMetadata;
|
|
1944
2172
|
}
|
|
2173
|
+
/**
|
|
2174
|
+
* Triggered when published content is updated.
|
|
2175
|
+
* @permissionScope Wix Multilingual
|
|
2176
|
+
* @permissionScopeId SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS
|
|
2177
|
+
* @permissionScope Wix Multilingual - Translation Content + Published Content Read
|
|
2178
|
+
* @permissionScopeId SCOPE.DC-MULTILINGUAL.READ_TRANSLATION_CONTENT
|
|
2179
|
+
* @permissionId WIX_MULTILINGUAL.READ_PUBLISHED_TRANSLATIONS
|
|
2180
|
+
* @webhook
|
|
2181
|
+
* @eventType wix.multilingual.localization_public.v3.published_content_updated
|
|
2182
|
+
* @slug updated
|
|
2183
|
+
*/
|
|
2184
|
+
declare function onPublishedContentUpdated(handler: (event: PublishedContentUpdatedEnvelope) => void | Promise<void>): void;
|
|
2185
|
+
/**
|
|
2186
|
+
* Creates a query to retrieve a list of translation content items.
|
|
2187
|
+
*
|
|
2188
|
+
* The `queryPublishedContent()` function builds a query to retrieve a list of translation content items and returns a `PublishedContentQueryBuilder` object.
|
|
2189
|
+
*
|
|
2190
|
+
* 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.
|
|
2191
|
+
*
|
|
2192
|
+
* 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.
|
|
2193
|
+
*
|
|
2194
|
+
* `queryPublishedContent()` runs with the following `PublishedContentQueryBuilder` defaults which you can override:
|
|
2195
|
+
*
|
|
2196
|
+
* + [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/limit)
|
|
2197
|
+
* + [`ascending('_id')`](https://dev.wix.com/docs/sdk/backend-modules/multilingual/translation/translation-published-content/published-content-query-builder/ascending)
|
|
2198
|
+
*
|
|
2199
|
+
* The following query filter fields are required:
|
|
2200
|
+
*
|
|
2201
|
+
* + `schemaKey.appId`
|
|
2202
|
+
* + `schemaKey.entityType`
|
|
2203
|
+
* + `schemaKey.scope`
|
|
2204
|
+
*
|
|
2205
|
+
* 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`.
|
|
2206
|
+
* @public
|
|
2207
|
+
* @permissionId WIX_MULTILINGUAL.READ_PUBLISHED_TRANSLATIONS
|
|
2208
|
+
* @applicableIdentity APP
|
|
2209
|
+
* @applicableIdentity VISITOR
|
|
2210
|
+
* @fqn com.wixpress.localizationpublic.v3.TranslationPublishedContent.QueryPublishedContent
|
|
2211
|
+
*/
|
|
2212
|
+
declare function queryPublishedContent(): PublishedContentQueryBuilder;
|
|
1945
2213
|
interface QueryCursorResult {
|
|
1946
2214
|
cursors: Cursors;
|
|
1947
2215
|
hasNext: () => boolean;
|
|
@@ -2001,4 +2269,4 @@ interface PublishedContentQueryBuilder {
|
|
|
2001
2269
|
find: () => Promise<PublishedContentQueryResult>;
|
|
2002
2270
|
}
|
|
2003
2271
|
|
|
2004
|
-
export { type
|
|
2272
|
+
export { type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, 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 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, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Item, type ItemDataOneOf, 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 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 PublishedContent, type PublishedContentCreatedEnvelope, type PublishedContentDeletedEnvelope, type PublishedContentField, type PublishedContentFieldValueOneOf, type PublishedContentQueryBuilder, type PublishedContentQueryResult, type PublishedContentUpdatedEnvelope, type QueryPublishedContentRequest, type QueryPublishedContentResponse, type Rel, Resizing, type ResizingWithLiterals, type RestoreInfo, type RibbonStyles, 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, 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, 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 };
|