@wix/multilingual 1.0.41 → 1.0.43
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/multilingual",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@wix/multilingual_entity-mapper": "1.0.11",
|
|
22
|
-
"@wix/multilingual_machine-translation": "1.0.
|
|
22
|
+
"@wix/multilingual_machine-translation": "1.0.27",
|
|
23
23
|
"@wix/multilingual_site-translator": "1.0.12",
|
|
24
|
-
"@wix/multilingual_translation-contents": "1.0.
|
|
25
|
-
"@wix/multilingual_translation-published-contents": "1.0.
|
|
26
|
-
"@wix/multilingual_translation-schemas": "1.0.
|
|
24
|
+
"@wix/multilingual_translation-contents": "1.0.19",
|
|
25
|
+
"@wix/multilingual_translation-published-contents": "1.0.6",
|
|
26
|
+
"@wix/multilingual_translation-schemas": "1.0.16"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"glob": "^10.4.1",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": ""
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "7b8581ac40c10abef2b08cf30c65905f341405c0c875b4b9853234cf"
|
|
52
52
|
}
|
|
@@ -532,7 +532,7 @@ interface PublishedContent {
|
|
|
532
532
|
/** Schema key of the published content. */
|
|
533
533
|
schemaKey?: SchemaKey$1;
|
|
534
534
|
/**
|
|
535
|
-
* A unique
|
|
535
|
+
* A unique identifier defined by the app developer to differentiate translation content for various entities within the site. For example, if an app developer is creating translation content for blog posts, the `entityId` can be `'blog-posts-1'`.
|
|
536
536
|
* @readonly
|
|
537
537
|
*/
|
|
538
538
|
entityId?: string;
|
|
@@ -572,15 +572,15 @@ declare enum SchemaScope$1 {
|
|
|
572
572
|
SITE = "SITE"
|
|
573
573
|
}
|
|
574
574
|
interface PublishedContentField extends PublishedContentFieldValueOneOf {
|
|
575
|
-
/** Plain text
|
|
575
|
+
/** Plain text. */
|
|
576
576
|
textValue?: string;
|
|
577
|
-
/** Rich content
|
|
577
|
+
/** Rich content. */
|
|
578
578
|
richContent?: RichContent$2;
|
|
579
|
-
/**
|
|
579
|
+
/** Wix Media Manager image. */
|
|
580
580
|
image?: string;
|
|
581
|
-
/**
|
|
581
|
+
/** Wix Media Manager video. */
|
|
582
582
|
video?: string;
|
|
583
|
-
/**
|
|
583
|
+
/** Wix Media Manager document. */
|
|
584
584
|
document?: string;
|
|
585
585
|
/**
|
|
586
586
|
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
@@ -592,15 +592,15 @@ interface PublishedContentField extends PublishedContentFieldValueOneOf {
|
|
|
592
592
|
}
|
|
593
593
|
/** @oneof */
|
|
594
594
|
interface PublishedContentFieldValueOneOf {
|
|
595
|
-
/** Plain text
|
|
595
|
+
/** Plain text. */
|
|
596
596
|
textValue?: string;
|
|
597
|
-
/** Rich content
|
|
597
|
+
/** Rich content. */
|
|
598
598
|
richContent?: RichContent$2;
|
|
599
|
-
/**
|
|
599
|
+
/** Wix Media Manager image. */
|
|
600
600
|
image?: string;
|
|
601
|
-
/**
|
|
601
|
+
/** Wix Media Manager video. */
|
|
602
602
|
video?: string;
|
|
603
|
-
/**
|
|
603
|
+
/** Wix Media Manager document. */
|
|
604
604
|
document?: string;
|
|
605
605
|
}
|
|
606
606
|
interface RichContent$2 {
|
|
@@ -1776,6 +1776,8 @@ interface OrderedListData$2 {
|
|
|
1776
1776
|
indentation?: number;
|
|
1777
1777
|
/** Offset level from 0-4. */
|
|
1778
1778
|
offset?: number | null;
|
|
1779
|
+
/** List start number. */
|
|
1780
|
+
start?: number | null;
|
|
1779
1781
|
}
|
|
1780
1782
|
interface BulletedListData$2 {
|
|
1781
1783
|
/** Indentation level from 0-4. */
|
|
@@ -2435,7 +2437,19 @@ interface PublishedContentQueryBuilder {
|
|
|
2435
2437
|
declare function queryPublishedContent$1(httpClient: HttpClient): QueryPublishedContentSignature;
|
|
2436
2438
|
interface QueryPublishedContentSignature {
|
|
2437
2439
|
/**
|
|
2438
|
-
*
|
|
2440
|
+
* Retrieves a list of published translation content given the provided paging, filtering, and sorting. Up to 100 published content items can be returned per request.
|
|
2441
|
+
*
|
|
2442
|
+
* The default `sort` is `id` in `ASC`.
|
|
2443
|
+
*
|
|
2444
|
+
* The following query filter fields are required:
|
|
2445
|
+
*
|
|
2446
|
+
* + `schemaKey.appId`
|
|
2447
|
+
* + `schemaKey.entityType`
|
|
2448
|
+
* + `schemaKey.scope`
|
|
2449
|
+
*
|
|
2450
|
+
* For additional field support for filters and sorting, see [Translation Published Content: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-published-content/sort-and-filter).
|
|
2451
|
+
*
|
|
2452
|
+
* To learn how to query translation consent items, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
2439
2453
|
*/
|
|
2440
2454
|
(): PublishedContentQueryBuilder;
|
|
2441
2455
|
}
|
|
@@ -2448,15 +2462,21 @@ declare function createEventModule$2<T extends EventDefinition<any, string>>(eve
|
|
|
2448
2462
|
declare const queryPublishedContent: BuildRESTFunction<typeof queryPublishedContent$1> & typeof queryPublishedContent$1;
|
|
2449
2463
|
|
|
2450
2464
|
type _publicOnPublishedContentCreatedType = typeof onPublishedContentCreated$1;
|
|
2451
|
-
/**
|
|
2465
|
+
/**
|
|
2466
|
+
* Triggered when published content is created.
|
|
2467
|
+
*/
|
|
2452
2468
|
declare const onPublishedContentCreated: ReturnType<typeof createEventModule$2<_publicOnPublishedContentCreatedType>>;
|
|
2453
2469
|
|
|
2454
2470
|
type _publicOnPublishedContentUpdatedType = typeof onPublishedContentUpdated$1;
|
|
2455
|
-
/**
|
|
2471
|
+
/**
|
|
2472
|
+
* Triggered when published content is updated.
|
|
2473
|
+
*/
|
|
2456
2474
|
declare const onPublishedContentUpdated: ReturnType<typeof createEventModule$2<_publicOnPublishedContentUpdatedType>>;
|
|
2457
2475
|
|
|
2458
2476
|
type _publicOnPublishedContentDeletedType = typeof onPublishedContentDeleted$1;
|
|
2459
|
-
/**
|
|
2477
|
+
/**
|
|
2478
|
+
* Triggered when published content is deleted.
|
|
2479
|
+
*/
|
|
2460
2480
|
declare const onPublishedContentDeleted: ReturnType<typeof createEventModule$2<_publicOnPublishedContentDeletedType>>;
|
|
2461
2481
|
|
|
2462
2482
|
type context$4_ExtendedFields = ExtendedFields;
|
|
@@ -3694,6 +3714,8 @@ interface OrderedListData$1 {
|
|
|
3694
3714
|
indentation?: number;
|
|
3695
3715
|
/** Offset level from 0-4. */
|
|
3696
3716
|
offset?: number | null;
|
|
3717
|
+
/** List start number. */
|
|
3718
|
+
start?: number | null;
|
|
3697
3719
|
}
|
|
3698
3720
|
interface BulletedListData$1 {
|
|
3699
3721
|
/** Indentation level from 0-4. */
|
|
@@ -4872,9 +4894,9 @@ interface Content {
|
|
|
4872
4894
|
_updatedDate?: Date;
|
|
4873
4895
|
}
|
|
4874
4896
|
interface ContentField extends ContentFieldValueOneOf {
|
|
4875
|
-
/**
|
|
4897
|
+
/** Plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
4876
4898
|
textValue?: string;
|
|
4877
|
-
/**
|
|
4899
|
+
/** Rich content. */
|
|
4878
4900
|
richContent?: RichContent;
|
|
4879
4901
|
/** Wix Media Manager image. */
|
|
4880
4902
|
image?: string;
|
|
@@ -4910,9 +4932,9 @@ interface ContentField extends ContentFieldValueOneOf {
|
|
|
4910
4932
|
}
|
|
4911
4933
|
/** @oneof */
|
|
4912
4934
|
interface ContentFieldValueOneOf {
|
|
4913
|
-
/**
|
|
4935
|
+
/** Plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
4914
4936
|
textValue?: string;
|
|
4915
|
-
/**
|
|
4937
|
+
/** Rich content. */
|
|
4916
4938
|
richContent?: RichContent;
|
|
4917
4939
|
/** Wix Media Manager image. */
|
|
4918
4940
|
image?: string;
|
|
@@ -6094,6 +6116,8 @@ interface OrderedListData {
|
|
|
6094
6116
|
indentation?: number;
|
|
6095
6117
|
/** Offset level from 0-4. */
|
|
6096
6118
|
offset?: number | null;
|
|
6119
|
+
/** List start number. */
|
|
6120
|
+
start?: number | null;
|
|
6097
6121
|
}
|
|
6098
6122
|
interface BulletedListData {
|
|
6099
6123
|
/** Indentation level from 0-4. */
|
|
@@ -6781,7 +6805,7 @@ interface AggregationResultsResultOneOf {
|
|
|
6781
6805
|
interface BulkCreateContentRequest {
|
|
6782
6806
|
/** List of translation content. */
|
|
6783
6807
|
contents: Content[];
|
|
6784
|
-
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
6808
|
+
/** Whether to include the created translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
6785
6809
|
returnEntity?: boolean;
|
|
6786
6810
|
}
|
|
6787
6811
|
interface BulkCreateContentResponse {
|
|
@@ -6825,7 +6849,7 @@ interface BulkActionMetadata {
|
|
|
6825
6849
|
interface BulkUpdateContentRequest {
|
|
6826
6850
|
/** Contents to be updated. TODO: think again if we want to increase maxSize */
|
|
6827
6851
|
contents: BulkUpdateContentRequestMaskedContent[];
|
|
6828
|
-
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
6852
|
+
/** Whether to include the updated translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
6829
6853
|
returnEntity?: boolean;
|
|
6830
6854
|
}
|
|
6831
6855
|
interface BulkUpdateContentRequestMaskedContent {
|
|
@@ -7590,11 +7614,11 @@ interface SearchContentsOptions {
|
|
|
7590
7614
|
search?: CursorSearch;
|
|
7591
7615
|
}
|
|
7592
7616
|
interface BulkCreateContentOptions {
|
|
7593
|
-
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
7617
|
+
/** Whether to include the created translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
7594
7618
|
returnEntity?: boolean;
|
|
7595
7619
|
}
|
|
7596
7620
|
interface BulkUpdateContentOptions {
|
|
7597
|
-
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
7621
|
+
/** Whether to include the updated translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
7598
7622
|
returnEntity?: boolean;
|
|
7599
7623
|
}
|
|
7600
7624
|
interface BulkUpdateContentByKeyOptions {
|
|
@@ -7670,7 +7694,7 @@ interface QueryContentsSignature {
|
|
|
7670
7694
|
*
|
|
7671
7695
|
* The default `sort` is `id` in `ASC`.
|
|
7672
7696
|
*
|
|
7673
|
-
* For field support for filters and sorting, see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/
|
|
7697
|
+
* For field support for filters and sorting, see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/sort-filter-and-search).
|
|
7674
7698
|
*
|
|
7675
7699
|
* To learn how to query translation consent items, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
7676
7700
|
*/
|
|
@@ -8870,7 +8894,7 @@ interface QuerySchemasSignature {
|
|
|
8870
8894
|
*
|
|
8871
8895
|
* The default `sort` is `id` in `ASC`.
|
|
8872
8896
|
*
|
|
8873
|
-
* For a detailed list of supported operations, see [Translation Schema: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-schema/
|
|
8897
|
+
* For a detailed list of supported operations, see [Translation Schema: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-schema/sort-and-filter).
|
|
8874
8898
|
* To learn how to query translation schemas, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
8875
8899
|
*/
|
|
8876
8900
|
(options?: QuerySchemasOptions | undefined): SchemasQueryBuilder;
|
|
@@ -8894,15 +8918,21 @@ declare const querySchemas: BuildRESTFunction<typeof querySchemas$1> & typeof qu
|
|
|
8894
8918
|
declare const listSiteSchemas: BuildRESTFunction<typeof listSiteSchemas$1> & typeof listSiteSchemas$1;
|
|
8895
8919
|
|
|
8896
8920
|
type _publicOnSchemaCreatedType = typeof onSchemaCreated$1;
|
|
8897
|
-
/**
|
|
8921
|
+
/**
|
|
8922
|
+
* Triggered when a translation schema is created.
|
|
8923
|
+
*/
|
|
8898
8924
|
declare const onSchemaCreated: ReturnType<typeof createEventModule<_publicOnSchemaCreatedType>>;
|
|
8899
8925
|
|
|
8900
8926
|
type _publicOnSchemaUpdatedType = typeof onSchemaUpdated$1;
|
|
8901
|
-
/**
|
|
8927
|
+
/**
|
|
8928
|
+
* Triggered when a translation schema is updated.
|
|
8929
|
+
*/
|
|
8902
8930
|
declare const onSchemaUpdated: ReturnType<typeof createEventModule<_publicOnSchemaUpdatedType>>;
|
|
8903
8931
|
|
|
8904
8932
|
type _publicOnSchemaDeletedType = typeof onSchemaDeleted$1;
|
|
8905
|
-
/**
|
|
8933
|
+
/**
|
|
8934
|
+
* Triggered when a translation schema is deleted.
|
|
8935
|
+
*/
|
|
8906
8936
|
declare const onSchemaDeleted: ReturnType<typeof createEventModule<_publicOnSchemaDeletedType>>;
|
|
8907
8937
|
|
|
8908
8938
|
type context_ActionEvent = ActionEvent;
|
|
@@ -532,7 +532,7 @@ interface PublishedContent {
|
|
|
532
532
|
/** Schema key of the published content. */
|
|
533
533
|
schemaKey?: SchemaKey$1;
|
|
534
534
|
/**
|
|
535
|
-
* A unique
|
|
535
|
+
* A unique identifier defined by the app developer to differentiate translation content for various entities within the site. For example, if an app developer is creating translation content for blog posts, the `entityId` can be `'blog-posts-1'`.
|
|
536
536
|
* @readonly
|
|
537
537
|
*/
|
|
538
538
|
entityId?: string;
|
|
@@ -572,15 +572,15 @@ declare enum SchemaScope$1 {
|
|
|
572
572
|
SITE = "SITE"
|
|
573
573
|
}
|
|
574
574
|
interface PublishedContentField extends PublishedContentFieldValueOneOf {
|
|
575
|
-
/** Plain text
|
|
575
|
+
/** Plain text. */
|
|
576
576
|
textValue?: string;
|
|
577
|
-
/** Rich content
|
|
577
|
+
/** Rich content. */
|
|
578
578
|
richContent?: RichContent$2;
|
|
579
|
-
/**
|
|
579
|
+
/** Wix Media Manager image. */
|
|
580
580
|
image?: string;
|
|
581
|
-
/**
|
|
581
|
+
/** Wix Media Manager video. */
|
|
582
582
|
video?: string;
|
|
583
|
-
/**
|
|
583
|
+
/** Wix Media Manager document. */
|
|
584
584
|
document?: string;
|
|
585
585
|
/**
|
|
586
586
|
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
@@ -592,15 +592,15 @@ interface PublishedContentField extends PublishedContentFieldValueOneOf {
|
|
|
592
592
|
}
|
|
593
593
|
/** @oneof */
|
|
594
594
|
interface PublishedContentFieldValueOneOf {
|
|
595
|
-
/** Plain text
|
|
595
|
+
/** Plain text. */
|
|
596
596
|
textValue?: string;
|
|
597
|
-
/** Rich content
|
|
597
|
+
/** Rich content. */
|
|
598
598
|
richContent?: RichContent$2;
|
|
599
|
-
/**
|
|
599
|
+
/** Wix Media Manager image. */
|
|
600
600
|
image?: string;
|
|
601
|
-
/**
|
|
601
|
+
/** Wix Media Manager video. */
|
|
602
602
|
video?: string;
|
|
603
|
-
/**
|
|
603
|
+
/** Wix Media Manager document. */
|
|
604
604
|
document?: string;
|
|
605
605
|
}
|
|
606
606
|
interface RichContent$2 {
|
|
@@ -1776,6 +1776,8 @@ interface OrderedListData$2 {
|
|
|
1776
1776
|
indentation?: number;
|
|
1777
1777
|
/** Offset level from 0-4. */
|
|
1778
1778
|
offset?: number | null;
|
|
1779
|
+
/** List start number. */
|
|
1780
|
+
start?: number | null;
|
|
1779
1781
|
}
|
|
1780
1782
|
interface BulletedListData$2 {
|
|
1781
1783
|
/** Indentation level from 0-4. */
|
|
@@ -2435,7 +2437,19 @@ interface PublishedContentQueryBuilder {
|
|
|
2435
2437
|
declare function queryPublishedContent$1(httpClient: HttpClient): QueryPublishedContentSignature;
|
|
2436
2438
|
interface QueryPublishedContentSignature {
|
|
2437
2439
|
/**
|
|
2438
|
-
*
|
|
2440
|
+
* Retrieves a list of published translation content given the provided paging, filtering, and sorting. Up to 100 published content items can be returned per request.
|
|
2441
|
+
*
|
|
2442
|
+
* The default `sort` is `id` in `ASC`.
|
|
2443
|
+
*
|
|
2444
|
+
* The following query filter fields are required:
|
|
2445
|
+
*
|
|
2446
|
+
* + `schemaKey.appId`
|
|
2447
|
+
* + `schemaKey.entityType`
|
|
2448
|
+
* + `schemaKey.scope`
|
|
2449
|
+
*
|
|
2450
|
+
* For additional field support for filters and sorting, see [Translation Published Content: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-published-content/sort-and-filter).
|
|
2451
|
+
*
|
|
2452
|
+
* To learn how to query translation consent items, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
2439
2453
|
*/
|
|
2440
2454
|
(): PublishedContentQueryBuilder;
|
|
2441
2455
|
}
|
|
@@ -2448,15 +2462,21 @@ declare function createEventModule$2<T extends EventDefinition<any, string>>(eve
|
|
|
2448
2462
|
declare const queryPublishedContent: BuildRESTFunction<typeof queryPublishedContent$1> & typeof queryPublishedContent$1;
|
|
2449
2463
|
|
|
2450
2464
|
type _publicOnPublishedContentCreatedType = typeof onPublishedContentCreated$1;
|
|
2451
|
-
/**
|
|
2465
|
+
/**
|
|
2466
|
+
* Triggered when published content is created.
|
|
2467
|
+
*/
|
|
2452
2468
|
declare const onPublishedContentCreated: ReturnType<typeof createEventModule$2<_publicOnPublishedContentCreatedType>>;
|
|
2453
2469
|
|
|
2454
2470
|
type _publicOnPublishedContentUpdatedType = typeof onPublishedContentUpdated$1;
|
|
2455
|
-
/**
|
|
2471
|
+
/**
|
|
2472
|
+
* Triggered when published content is updated.
|
|
2473
|
+
*/
|
|
2456
2474
|
declare const onPublishedContentUpdated: ReturnType<typeof createEventModule$2<_publicOnPublishedContentUpdatedType>>;
|
|
2457
2475
|
|
|
2458
2476
|
type _publicOnPublishedContentDeletedType = typeof onPublishedContentDeleted$1;
|
|
2459
|
-
/**
|
|
2477
|
+
/**
|
|
2478
|
+
* Triggered when published content is deleted.
|
|
2479
|
+
*/
|
|
2460
2480
|
declare const onPublishedContentDeleted: ReturnType<typeof createEventModule$2<_publicOnPublishedContentDeletedType>>;
|
|
2461
2481
|
|
|
2462
2482
|
type index_d$4_ExtendedFields = ExtendedFields;
|
|
@@ -3694,6 +3714,8 @@ interface OrderedListData$1 {
|
|
|
3694
3714
|
indentation?: number;
|
|
3695
3715
|
/** Offset level from 0-4. */
|
|
3696
3716
|
offset?: number | null;
|
|
3717
|
+
/** List start number. */
|
|
3718
|
+
start?: number | null;
|
|
3697
3719
|
}
|
|
3698
3720
|
interface BulletedListData$1 {
|
|
3699
3721
|
/** Indentation level from 0-4. */
|
|
@@ -4872,9 +4894,9 @@ interface Content {
|
|
|
4872
4894
|
_updatedDate?: Date;
|
|
4873
4895
|
}
|
|
4874
4896
|
interface ContentField extends ContentFieldValueOneOf {
|
|
4875
|
-
/**
|
|
4897
|
+
/** Plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
4876
4898
|
textValue?: string;
|
|
4877
|
-
/**
|
|
4899
|
+
/** Rich content. */
|
|
4878
4900
|
richContent?: RichContent;
|
|
4879
4901
|
/** Wix Media Manager image. */
|
|
4880
4902
|
image?: string;
|
|
@@ -4910,9 +4932,9 @@ interface ContentField extends ContentFieldValueOneOf {
|
|
|
4910
4932
|
}
|
|
4911
4933
|
/** @oneof */
|
|
4912
4934
|
interface ContentFieldValueOneOf {
|
|
4913
|
-
/**
|
|
4935
|
+
/** Plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
4914
4936
|
textValue?: string;
|
|
4915
|
-
/**
|
|
4937
|
+
/** Rich content. */
|
|
4916
4938
|
richContent?: RichContent;
|
|
4917
4939
|
/** Wix Media Manager image. */
|
|
4918
4940
|
image?: string;
|
|
@@ -6094,6 +6116,8 @@ interface OrderedListData {
|
|
|
6094
6116
|
indentation?: number;
|
|
6095
6117
|
/** Offset level from 0-4. */
|
|
6096
6118
|
offset?: number | null;
|
|
6119
|
+
/** List start number. */
|
|
6120
|
+
start?: number | null;
|
|
6097
6121
|
}
|
|
6098
6122
|
interface BulletedListData {
|
|
6099
6123
|
/** Indentation level from 0-4. */
|
|
@@ -6781,7 +6805,7 @@ interface AggregationResultsResultOneOf {
|
|
|
6781
6805
|
interface BulkCreateContentRequest {
|
|
6782
6806
|
/** List of translation content. */
|
|
6783
6807
|
contents: Content[];
|
|
6784
|
-
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
6808
|
+
/** Whether to include the created translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
6785
6809
|
returnEntity?: boolean;
|
|
6786
6810
|
}
|
|
6787
6811
|
interface BulkCreateContentResponse {
|
|
@@ -6825,7 +6849,7 @@ interface BulkActionMetadata {
|
|
|
6825
6849
|
interface BulkUpdateContentRequest {
|
|
6826
6850
|
/** Contents to be updated. TODO: think again if we want to increase maxSize */
|
|
6827
6851
|
contents: BulkUpdateContentRequestMaskedContent[];
|
|
6828
|
-
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
6852
|
+
/** Whether to include the updated translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
6829
6853
|
returnEntity?: boolean;
|
|
6830
6854
|
}
|
|
6831
6855
|
interface BulkUpdateContentRequestMaskedContent {
|
|
@@ -7590,11 +7614,11 @@ interface SearchContentsOptions {
|
|
|
7590
7614
|
search?: CursorSearch;
|
|
7591
7615
|
}
|
|
7592
7616
|
interface BulkCreateContentOptions {
|
|
7593
|
-
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
7617
|
+
/** Whether to include the created translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
7594
7618
|
returnEntity?: boolean;
|
|
7595
7619
|
}
|
|
7596
7620
|
interface BulkUpdateContentOptions {
|
|
7597
|
-
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
7621
|
+
/** Whether to include the updated translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
7598
7622
|
returnEntity?: boolean;
|
|
7599
7623
|
}
|
|
7600
7624
|
interface BulkUpdateContentByKeyOptions {
|
|
@@ -7670,7 +7694,7 @@ interface QueryContentsSignature {
|
|
|
7670
7694
|
*
|
|
7671
7695
|
* The default `sort` is `id` in `ASC`.
|
|
7672
7696
|
*
|
|
7673
|
-
* For field support for filters and sorting, see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/
|
|
7697
|
+
* For field support for filters and sorting, see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/sort-filter-and-search).
|
|
7674
7698
|
*
|
|
7675
7699
|
* To learn how to query translation consent items, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
7676
7700
|
*/
|
|
@@ -8870,7 +8894,7 @@ interface QuerySchemasSignature {
|
|
|
8870
8894
|
*
|
|
8871
8895
|
* The default `sort` is `id` in `ASC`.
|
|
8872
8896
|
*
|
|
8873
|
-
* For a detailed list of supported operations, see [Translation Schema: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-schema/
|
|
8897
|
+
* For a detailed list of supported operations, see [Translation Schema: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-schema/sort-and-filter).
|
|
8874
8898
|
* To learn how to query translation schemas, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
8875
8899
|
*/
|
|
8876
8900
|
(options?: QuerySchemasOptions | undefined): SchemasQueryBuilder;
|
|
@@ -8894,15 +8918,21 @@ declare const querySchemas: BuildRESTFunction<typeof querySchemas$1> & typeof qu
|
|
|
8894
8918
|
declare const listSiteSchemas: BuildRESTFunction<typeof listSiteSchemas$1> & typeof listSiteSchemas$1;
|
|
8895
8919
|
|
|
8896
8920
|
type _publicOnSchemaCreatedType = typeof onSchemaCreated$1;
|
|
8897
|
-
/**
|
|
8921
|
+
/**
|
|
8922
|
+
* Triggered when a translation schema is created.
|
|
8923
|
+
*/
|
|
8898
8924
|
declare const onSchemaCreated: ReturnType<typeof createEventModule<_publicOnSchemaCreatedType>>;
|
|
8899
8925
|
|
|
8900
8926
|
type _publicOnSchemaUpdatedType = typeof onSchemaUpdated$1;
|
|
8901
|
-
/**
|
|
8927
|
+
/**
|
|
8928
|
+
* Triggered when a translation schema is updated.
|
|
8929
|
+
*/
|
|
8902
8930
|
declare const onSchemaUpdated: ReturnType<typeof createEventModule<_publicOnSchemaUpdatedType>>;
|
|
8903
8931
|
|
|
8904
8932
|
type _publicOnSchemaDeletedType = typeof onSchemaDeleted$1;
|
|
8905
|
-
/**
|
|
8933
|
+
/**
|
|
8934
|
+
* Triggered when a translation schema is deleted.
|
|
8935
|
+
*/
|
|
8906
8936
|
declare const onSchemaDeleted: ReturnType<typeof createEventModule<_publicOnSchemaDeletedType>>;
|
|
8907
8937
|
|
|
8908
8938
|
type index_d_ActionEvent = ActionEvent;
|
|
@@ -47,7 +47,7 @@ interface PublishedContent$1 {
|
|
|
47
47
|
/** Schema key of the published content. */
|
|
48
48
|
schemaKey?: SchemaKey$3;
|
|
49
49
|
/**
|
|
50
|
-
* A unique
|
|
50
|
+
* A unique identifier defined by the app developer to differentiate translation content for various entities within the site. For example, if an app developer is creating translation content for blog posts, the `entityId` can be `'blog-posts-1'`.
|
|
51
51
|
* @readonly
|
|
52
52
|
*/
|
|
53
53
|
entityId?: string;
|
|
@@ -87,15 +87,15 @@ declare enum SchemaScope$3 {
|
|
|
87
87
|
SITE = "SITE"
|
|
88
88
|
}
|
|
89
89
|
interface PublishedContentField$1 extends PublishedContentFieldValueOneOf$1 {
|
|
90
|
-
/** Plain text
|
|
90
|
+
/** Plain text. */
|
|
91
91
|
textValue?: string;
|
|
92
|
-
/** Rich content
|
|
92
|
+
/** Rich content. */
|
|
93
93
|
richContent?: RichContent$5;
|
|
94
|
-
/**
|
|
94
|
+
/** Wix Media Manager image. */
|
|
95
95
|
image?: Image$5;
|
|
96
|
-
/**
|
|
96
|
+
/** Wix Media Manager video. */
|
|
97
97
|
video?: VideoV2$1;
|
|
98
|
-
/**
|
|
98
|
+
/** Wix Media Manager document. */
|
|
99
99
|
document?: Document$1;
|
|
100
100
|
/**
|
|
101
101
|
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
@@ -107,15 +107,15 @@ interface PublishedContentField$1 extends PublishedContentFieldValueOneOf$1 {
|
|
|
107
107
|
}
|
|
108
108
|
/** @oneof */
|
|
109
109
|
interface PublishedContentFieldValueOneOf$1 {
|
|
110
|
-
/** Plain text
|
|
110
|
+
/** Plain text. */
|
|
111
111
|
textValue?: string;
|
|
112
|
-
/** Rich content
|
|
112
|
+
/** Rich content. */
|
|
113
113
|
richContent?: RichContent$5;
|
|
114
|
-
/**
|
|
114
|
+
/** Wix Media Manager image. */
|
|
115
115
|
image?: Image$5;
|
|
116
|
-
/**
|
|
116
|
+
/** Wix Media Manager video. */
|
|
117
117
|
video?: VideoV2$1;
|
|
118
|
-
/**
|
|
118
|
+
/** Wix Media Manager document. */
|
|
119
119
|
document?: Document$1;
|
|
120
120
|
}
|
|
121
121
|
interface RichContent$5 {
|
|
@@ -1272,6 +1272,8 @@ interface OrderedListData$5 {
|
|
|
1272
1272
|
indentation?: number;
|
|
1273
1273
|
/** Offset level from 0-4. */
|
|
1274
1274
|
offset?: number | null;
|
|
1275
|
+
/** List start number. */
|
|
1276
|
+
start?: number | null;
|
|
1275
1277
|
}
|
|
1276
1278
|
interface BulletedListData$5 {
|
|
1277
1279
|
/** Indentation level from 0-4. */
|
|
@@ -1773,7 +1775,7 @@ interface PublishedContent {
|
|
|
1773
1775
|
/** Schema key of the published content. */
|
|
1774
1776
|
schemaKey?: SchemaKey$2;
|
|
1775
1777
|
/**
|
|
1776
|
-
* A unique
|
|
1778
|
+
* A unique identifier defined by the app developer to differentiate translation content for various entities within the site. For example, if an app developer is creating translation content for blog posts, the `entityId` can be `'blog-posts-1'`.
|
|
1777
1779
|
* @readonly
|
|
1778
1780
|
*/
|
|
1779
1781
|
entityId?: string;
|
|
@@ -1813,15 +1815,15 @@ declare enum SchemaScope$2 {
|
|
|
1813
1815
|
SITE = "SITE"
|
|
1814
1816
|
}
|
|
1815
1817
|
interface PublishedContentField extends PublishedContentFieldValueOneOf {
|
|
1816
|
-
/** Plain text
|
|
1818
|
+
/** Plain text. */
|
|
1817
1819
|
textValue?: string;
|
|
1818
|
-
/** Rich content
|
|
1820
|
+
/** Rich content. */
|
|
1819
1821
|
richContent?: RichContent$4;
|
|
1820
|
-
/**
|
|
1822
|
+
/** Wix Media Manager image. */
|
|
1821
1823
|
image?: string;
|
|
1822
|
-
/**
|
|
1824
|
+
/** Wix Media Manager video. */
|
|
1823
1825
|
video?: string;
|
|
1824
|
-
/**
|
|
1826
|
+
/** Wix Media Manager document. */
|
|
1825
1827
|
document?: string;
|
|
1826
1828
|
/**
|
|
1827
1829
|
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
@@ -1833,15 +1835,15 @@ interface PublishedContentField extends PublishedContentFieldValueOneOf {
|
|
|
1833
1835
|
}
|
|
1834
1836
|
/** @oneof */
|
|
1835
1837
|
interface PublishedContentFieldValueOneOf {
|
|
1836
|
-
/** Plain text
|
|
1838
|
+
/** Plain text. */
|
|
1837
1839
|
textValue?: string;
|
|
1838
|
-
/** Rich content
|
|
1840
|
+
/** Rich content. */
|
|
1839
1841
|
richContent?: RichContent$4;
|
|
1840
|
-
/**
|
|
1842
|
+
/** Wix Media Manager image. */
|
|
1841
1843
|
image?: string;
|
|
1842
|
-
/**
|
|
1844
|
+
/** Wix Media Manager video. */
|
|
1843
1845
|
video?: string;
|
|
1844
|
-
/**
|
|
1846
|
+
/** Wix Media Manager document. */
|
|
1845
1847
|
document?: string;
|
|
1846
1848
|
}
|
|
1847
1849
|
interface RichContent$4 {
|
|
@@ -2998,6 +3000,8 @@ interface OrderedListData$4 {
|
|
|
2998
3000
|
indentation?: number;
|
|
2999
3001
|
/** Offset level from 0-4. */
|
|
3000
3002
|
offset?: number | null;
|
|
3003
|
+
/** List start number. */
|
|
3004
|
+
start?: number | null;
|
|
3001
3005
|
}
|
|
3002
3006
|
interface BulletedListData$4 {
|
|
3003
3007
|
/** Indentation level from 0-4. */
|
|
@@ -4619,6 +4623,8 @@ interface OrderedListData$3 {
|
|
|
4619
4623
|
indentation?: number;
|
|
4620
4624
|
/** Offset level from 0-4. */
|
|
4621
4625
|
offset?: number | null;
|
|
4626
|
+
/** List start number. */
|
|
4627
|
+
start?: number | null;
|
|
4622
4628
|
}
|
|
4623
4629
|
interface BulletedListData$3 {
|
|
4624
4630
|
/** Indentation level from 0-4. */
|
|
@@ -6473,6 +6479,8 @@ interface OrderedListData$2 {
|
|
|
6473
6479
|
indentation?: number;
|
|
6474
6480
|
/** Offset level from 0-4. */
|
|
6475
6481
|
offset?: number | null;
|
|
6482
|
+
/** List start number. */
|
|
6483
|
+
start?: number | null;
|
|
6476
6484
|
}
|
|
6477
6485
|
interface BulletedListData$2 {
|
|
6478
6486
|
/** Indentation level from 0-4. */
|
|
@@ -7843,9 +7851,9 @@ interface Content$1 {
|
|
|
7843
7851
|
updatedDate?: Date;
|
|
7844
7852
|
}
|
|
7845
7853
|
interface ContentField$1 extends ContentFieldValueOneOf$1 {
|
|
7846
|
-
/**
|
|
7854
|
+
/** Plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
7847
7855
|
textValue?: string;
|
|
7848
|
-
/**
|
|
7856
|
+
/** Rich content. */
|
|
7849
7857
|
richContent?: RichContent$1;
|
|
7850
7858
|
/** Wix Media Manager image. */
|
|
7851
7859
|
image?: Image$1;
|
|
@@ -7881,9 +7889,9 @@ interface ContentField$1 extends ContentFieldValueOneOf$1 {
|
|
|
7881
7889
|
}
|
|
7882
7890
|
/** @oneof */
|
|
7883
7891
|
interface ContentFieldValueOneOf$1 {
|
|
7884
|
-
/**
|
|
7892
|
+
/** Plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
7885
7893
|
textValue?: string;
|
|
7886
|
-
/**
|
|
7894
|
+
/** Rich content. */
|
|
7887
7895
|
richContent?: RichContent$1;
|
|
7888
7896
|
/** Wix Media Manager image. */
|
|
7889
7897
|
image?: Image$1;
|
|
@@ -9046,6 +9054,8 @@ interface OrderedListData$1 {
|
|
|
9046
9054
|
indentation?: number;
|
|
9047
9055
|
/** Offset level from 0-4. */
|
|
9048
9056
|
offset?: number | null;
|
|
9057
|
+
/** List start number. */
|
|
9058
|
+
start?: number | null;
|
|
9049
9059
|
}
|
|
9050
9060
|
interface BulletedListData$1 {
|
|
9051
9061
|
/** Indentation level from 0-4. */
|
|
@@ -9721,7 +9731,7 @@ interface AggregationResultsResultOneOf$1 {
|
|
|
9721
9731
|
interface BulkCreateContentRequest$1 {
|
|
9722
9732
|
/** List of translation content. */
|
|
9723
9733
|
contents: Content$1[];
|
|
9724
|
-
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
9734
|
+
/** Whether to include the created translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
9725
9735
|
returnEntity?: boolean;
|
|
9726
9736
|
}
|
|
9727
9737
|
interface BulkCreateContentResponse$1 {
|
|
@@ -9765,7 +9775,7 @@ interface BulkActionMetadata$1 {
|
|
|
9765
9775
|
interface BulkUpdateContentRequest$1 {
|
|
9766
9776
|
/** Contents to be updated. TODO: think again if we want to increase maxSize */
|
|
9767
9777
|
contents: BulkUpdateContentRequestMaskedContent$1[];
|
|
9768
|
-
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
9778
|
+
/** Whether to include the updated translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
9769
9779
|
returnEntity?: boolean;
|
|
9770
9780
|
}
|
|
9771
9781
|
interface BulkUpdateContentRequestMaskedContent$1 {
|
|
@@ -9986,9 +9996,9 @@ interface Content {
|
|
|
9986
9996
|
_updatedDate?: Date;
|
|
9987
9997
|
}
|
|
9988
9998
|
interface ContentField extends ContentFieldValueOneOf {
|
|
9989
|
-
/**
|
|
9999
|
+
/** Plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
9990
10000
|
textValue?: string;
|
|
9991
|
-
/**
|
|
10001
|
+
/** Rich content. */
|
|
9992
10002
|
richContent?: RichContent;
|
|
9993
10003
|
/** Wix Media Manager image. */
|
|
9994
10004
|
image?: string;
|
|
@@ -10024,9 +10034,9 @@ interface ContentField extends ContentFieldValueOneOf {
|
|
|
10024
10034
|
}
|
|
10025
10035
|
/** @oneof */
|
|
10026
10036
|
interface ContentFieldValueOneOf {
|
|
10027
|
-
/**
|
|
10037
|
+
/** Plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
10028
10038
|
textValue?: string;
|
|
10029
|
-
/**
|
|
10039
|
+
/** Rich content. */
|
|
10030
10040
|
richContent?: RichContent;
|
|
10031
10041
|
/** Wix Media Manager image. */
|
|
10032
10042
|
image?: string;
|
|
@@ -11189,6 +11199,8 @@ interface OrderedListData {
|
|
|
11189
11199
|
indentation?: number;
|
|
11190
11200
|
/** Offset level from 0-4. */
|
|
11191
11201
|
offset?: number | null;
|
|
11202
|
+
/** List start number. */
|
|
11203
|
+
start?: number | null;
|
|
11192
11204
|
}
|
|
11193
11205
|
interface BulletedListData {
|
|
11194
11206
|
/** Indentation level from 0-4. */
|
|
@@ -11809,7 +11821,7 @@ interface AggregationResultsResultOneOf {
|
|
|
11809
11821
|
interface BulkCreateContentRequest {
|
|
11810
11822
|
/** List of translation content. */
|
|
11811
11823
|
contents: Content[];
|
|
11812
|
-
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
11824
|
+
/** Whether to include the created translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
11813
11825
|
returnEntity?: boolean;
|
|
11814
11826
|
}
|
|
11815
11827
|
interface BulkCreateContentResponse {
|
|
@@ -11853,7 +11865,7 @@ interface BulkActionMetadata {
|
|
|
11853
11865
|
interface BulkUpdateContentRequest {
|
|
11854
11866
|
/** Contents to be updated. TODO: think again if we want to increase maxSize */
|
|
11855
11867
|
contents: BulkUpdateContentRequestMaskedContent[];
|
|
11856
|
-
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
11868
|
+
/** Whether to include the updated translation content items in the response. Set to `true` to receive the translation content items in the response. */
|
|
11857
11869
|
returnEntity?: boolean;
|
|
11858
11870
|
}
|
|
11859
11871
|
interface BulkUpdateContentRequestMaskedContent {
|