@wix/multilingual 1.0.39 → 1.0.40
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 +3 -3
- package/type-bundles/context.bundle.d.ts +144 -84
- package/type-bundles/index.bundle.d.ts +144 -84
- package/type-bundles/meta.bundle.d.ts +138 -104
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/multilingual",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.40",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@wix/multilingual_entity-mapper": "1.0.11",
|
|
22
22
|
"@wix/multilingual_machine-translation": "1.0.26",
|
|
23
23
|
"@wix/multilingual_site-translator": "1.0.12",
|
|
24
|
-
"@wix/multilingual_translation-contents": "1.0.
|
|
24
|
+
"@wix/multilingual_translation-contents": "1.0.16",
|
|
25
25
|
"@wix/multilingual_translation-published-contents": "1.0.4",
|
|
26
26
|
"@wix/multilingual_translation-schemas": "1.0.14"
|
|
27
27
|
},
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": ""
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "c2ec495b3cb885bb418ba1203b021ab520e5bff219fcb41167eb7fd4"
|
|
52
52
|
}
|
|
@@ -4831,22 +4831,27 @@ declare namespace context$2 {
|
|
|
4831
4831
|
|
|
4832
4832
|
interface Content {
|
|
4833
4833
|
/**
|
|
4834
|
-
*
|
|
4834
|
+
* Translation content ID.
|
|
4835
4835
|
* @readonly
|
|
4836
4836
|
*/
|
|
4837
4837
|
_id?: string | null;
|
|
4838
|
-
/**
|
|
4838
|
+
/** Translation schema ID. */
|
|
4839
4839
|
schemaId?: string;
|
|
4840
|
-
/**
|
|
4840
|
+
/** 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'`. */
|
|
4841
4841
|
entityId?: string;
|
|
4842
|
-
/**
|
|
4842
|
+
/** Translation content locale. */
|
|
4843
4843
|
locale?: string;
|
|
4844
|
-
/** List of fields
|
|
4844
|
+
/** List of fields for the translation content. This property uses a string to map to a `ContentField` (`Map<string, ContentField>`). The string serves as a key, which you'll need to access each field in the content and when referencing a translation schema. */
|
|
4845
4845
|
fields?: Record<string, ContentField>;
|
|
4846
|
-
/**
|
|
4846
|
+
/** A reference to the parent content defined by the app developer. For example, if the content is a menu item, this property would link to the content with the `entityId` of the menu it belongs to. */
|
|
4847
4847
|
parentEntityId?: string | null;
|
|
4848
4848
|
/**
|
|
4849
|
-
* The aggregated published status across all content fields
|
|
4849
|
+
* The aggregated published status across all content fields.
|
|
4850
|
+
*
|
|
4851
|
+
* Supported values:
|
|
4852
|
+
* + `UNPUBLISHED`: None of the fields have been published to the live site.
|
|
4853
|
+
* + `PUBLISHED`: All of the fields have been published to the live site and are visible to site visitors.
|
|
4854
|
+
* + `PARTIALLY_PUBLISHED`: Some of the fields have been published to the live site and are visible to site visitors.
|
|
4850
4855
|
* @readonly
|
|
4851
4856
|
*/
|
|
4852
4857
|
publishStatus?: PublishStatus;
|
|
@@ -4855,53 +4860,65 @@ interface Content {
|
|
|
4855
4860
|
* @readonly
|
|
4856
4861
|
*/
|
|
4857
4862
|
previewField?: string | null;
|
|
4858
|
-
/**
|
|
4863
|
+
/**
|
|
4864
|
+
* Date and time the translation content was created.
|
|
4865
|
+
* @readonly
|
|
4866
|
+
*/
|
|
4859
4867
|
_createdDate?: Date;
|
|
4860
|
-
/**
|
|
4868
|
+
/**
|
|
4869
|
+
* Date and time the translation content was updated.
|
|
4870
|
+
* @readonly
|
|
4871
|
+
*/
|
|
4861
4872
|
_updatedDate?: Date;
|
|
4862
4873
|
}
|
|
4863
4874
|
interface ContentField extends ContentFieldValueOneOf {
|
|
4864
|
-
/**
|
|
4875
|
+
/** Translated plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
4865
4876
|
textValue?: string;
|
|
4866
|
-
/**
|
|
4877
|
+
/** Translated rich content. */
|
|
4867
4878
|
richContent?: RichContent;
|
|
4868
|
-
/**
|
|
4879
|
+
/** Wix Media Manager image. */
|
|
4869
4880
|
image?: string;
|
|
4870
|
-
/**
|
|
4881
|
+
/** Wix Media Manager video. */
|
|
4871
4882
|
video?: string;
|
|
4872
|
-
/**
|
|
4883
|
+
/** Wix Media Manager document. */
|
|
4873
4884
|
document?: string;
|
|
4874
4885
|
/**
|
|
4875
|
-
* Field unique identifier.
|
|
4886
|
+
* Field unique identifier. Validated according to Regex `^[A-Za-z0-9-_)(]+$`. Field IDs may contain parenthesis to reference repeated items, such as images. These parenthesis can't be nested and each open one must have a closed one. For example, `title()()` is valid, while `title)(` and `title(())` aren't valid. The value inside the parenthesis is validated according to Regex `^[^)(\\]\\[\\.]+$`.
|
|
4876
4887
|
* @readonly
|
|
4877
4888
|
*/
|
|
4878
4889
|
_id?: string;
|
|
4879
|
-
/**
|
|
4890
|
+
/** Whether to publish the translation content to the live site, making it visible to site visitors. */
|
|
4880
4891
|
published?: boolean;
|
|
4881
|
-
/**
|
|
4892
|
+
/**
|
|
4893
|
+
* The source that updated the translation content.
|
|
4894
|
+
* Supported values:
|
|
4895
|
+
* + `USER`: The site owner.
|
|
4896
|
+
* + `EXTERNAL_APP`: An external translation app. For example, Smartling.
|
|
4897
|
+
* + `Machine`: Auto translaton service. For example, Google Translate.
|
|
4898
|
+
*/
|
|
4882
4899
|
updatedBy?: UpdaterIdentity;
|
|
4883
4900
|
/**
|
|
4884
|
-
*
|
|
4901
|
+
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
4885
4902
|
* @readonly
|
|
4886
4903
|
*/
|
|
4887
4904
|
schemaFieldKey?: string;
|
|
4888
4905
|
/**
|
|
4889
|
-
*
|
|
4906
|
+
* Field index. Used for cases where the order of the fields are relevant.
|
|
4890
4907
|
* @readonly
|
|
4891
4908
|
*/
|
|
4892
4909
|
index?: number;
|
|
4893
4910
|
}
|
|
4894
4911
|
/** @oneof */
|
|
4895
4912
|
interface ContentFieldValueOneOf {
|
|
4896
|
-
/**
|
|
4913
|
+
/** Translated plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
4897
4914
|
textValue?: string;
|
|
4898
|
-
/**
|
|
4915
|
+
/** Translated rich content. */
|
|
4899
4916
|
richContent?: RichContent;
|
|
4900
|
-
/**
|
|
4917
|
+
/** Wix Media Manager image. */
|
|
4901
4918
|
image?: string;
|
|
4902
|
-
/**
|
|
4919
|
+
/** Wix Media Manager video. */
|
|
4903
4920
|
video?: string;
|
|
4904
|
-
/**
|
|
4921
|
+
/** Wix Media Manager document. */
|
|
4905
4922
|
document?: string;
|
|
4906
4923
|
}
|
|
4907
4924
|
interface RichContent {
|
|
@@ -6162,27 +6179,27 @@ declare enum PublishStatus {
|
|
|
6162
6179
|
PUBLISHED = "PUBLISHED"
|
|
6163
6180
|
}
|
|
6164
6181
|
interface CreateContentRequest {
|
|
6165
|
-
/**
|
|
6182
|
+
/** Translation content to create. */
|
|
6166
6183
|
content: Content;
|
|
6167
6184
|
}
|
|
6168
6185
|
interface CreateContentResponse {
|
|
6169
|
-
/**
|
|
6186
|
+
/** Newly created translation content. */
|
|
6170
6187
|
content?: Content;
|
|
6171
6188
|
}
|
|
6172
6189
|
interface GetContentRequest {
|
|
6173
|
-
/** ID of the
|
|
6190
|
+
/** ID of the translation content to retrieve. */
|
|
6174
6191
|
contentId: string;
|
|
6175
6192
|
}
|
|
6176
6193
|
interface GetContentResponse {
|
|
6177
|
-
/** The requested
|
|
6194
|
+
/** The requested translation content. */
|
|
6178
6195
|
content?: Content;
|
|
6179
6196
|
}
|
|
6180
6197
|
interface UpdateContentRequest {
|
|
6181
|
-
/**
|
|
6198
|
+
/** Translation content to update. */
|
|
6182
6199
|
content: Content;
|
|
6183
6200
|
}
|
|
6184
6201
|
interface UpdateContentResponse {
|
|
6185
|
-
/** Updated
|
|
6202
|
+
/** Updated translation content. */
|
|
6186
6203
|
content?: Content;
|
|
6187
6204
|
}
|
|
6188
6205
|
interface UpdateContentByKeyRequest {
|
|
@@ -6194,13 +6211,13 @@ interface UpdateContentByKeyResponse {
|
|
|
6194
6211
|
content?: Content;
|
|
6195
6212
|
}
|
|
6196
6213
|
interface DeleteContentRequest {
|
|
6197
|
-
/**
|
|
6214
|
+
/** ID of the translation content to delete. */
|
|
6198
6215
|
contentId: string;
|
|
6199
6216
|
}
|
|
6200
6217
|
interface DeleteContentResponse {
|
|
6201
6218
|
}
|
|
6202
6219
|
interface QueryContentsRequest {
|
|
6203
|
-
/**
|
|
6220
|
+
/** Query options. */
|
|
6204
6221
|
query?: CursorQuery$1;
|
|
6205
6222
|
}
|
|
6206
6223
|
interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
|
|
@@ -6254,9 +6271,9 @@ interface CursorPaging$1 {
|
|
|
6254
6271
|
cursor?: string | null;
|
|
6255
6272
|
}
|
|
6256
6273
|
interface QueryContentsResponse {
|
|
6257
|
-
/** List of
|
|
6274
|
+
/** List of translation content. */
|
|
6258
6275
|
contents?: Content[];
|
|
6259
|
-
/**
|
|
6276
|
+
/** Details on the paged set of results returned. */
|
|
6260
6277
|
pagingMetadata?: CursorPagingMetadata$1;
|
|
6261
6278
|
}
|
|
6262
6279
|
interface CursorPagingMetadata$1 {
|
|
@@ -6318,9 +6335,9 @@ interface Paging {
|
|
|
6318
6335
|
offset?: number | null;
|
|
6319
6336
|
}
|
|
6320
6337
|
interface QueryContentsLegacyResponse {
|
|
6321
|
-
/** List of
|
|
6338
|
+
/** List of translation content. */
|
|
6322
6339
|
contents?: Content[];
|
|
6323
|
-
/** Paging metadata */
|
|
6340
|
+
/** Paging metadata. */
|
|
6324
6341
|
pagingMetadata?: PagingMetadataV2;
|
|
6325
6342
|
}
|
|
6326
6343
|
interface PagingMetadataV2 {
|
|
@@ -6593,11 +6610,11 @@ declare enum Mode {
|
|
|
6593
6610
|
AND = "AND"
|
|
6594
6611
|
}
|
|
6595
6612
|
interface SearchContentsResponse {
|
|
6596
|
-
/** List of
|
|
6613
|
+
/** List of translation content. */
|
|
6597
6614
|
contents?: Content[];
|
|
6598
|
-
/**
|
|
6615
|
+
/** Details on the paged set of results returned. */
|
|
6599
6616
|
pagingMetadata?: CursorPagingMetadata$1;
|
|
6600
|
-
/** Aggregation data */
|
|
6617
|
+
/** Aggregation data. */
|
|
6601
6618
|
aggregationData?: AggregationData;
|
|
6602
6619
|
}
|
|
6603
6620
|
interface AggregationData {
|
|
@@ -6762,15 +6779,15 @@ interface AggregationResultsResultOneOf {
|
|
|
6762
6779
|
nested?: NestedResults;
|
|
6763
6780
|
}
|
|
6764
6781
|
interface BulkCreateContentRequest {
|
|
6765
|
-
/** List of
|
|
6782
|
+
/** List of translation content. */
|
|
6766
6783
|
contents: Content[];
|
|
6767
|
-
/**
|
|
6784
|
+
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
6768
6785
|
returnEntity?: boolean;
|
|
6769
6786
|
}
|
|
6770
6787
|
interface BulkCreateContentResponse {
|
|
6771
|
-
/**
|
|
6788
|
+
/** Items created by bulk action. */
|
|
6772
6789
|
results?: BulkContentResult[];
|
|
6773
|
-
/** metadata */
|
|
6790
|
+
/** Bulk action metadata. */
|
|
6774
6791
|
bulkActionMetadata?: BulkActionMetadata;
|
|
6775
6792
|
}
|
|
6776
6793
|
interface ItemMetadata {
|
|
@@ -6792,9 +6809,9 @@ interface ApplicationError {
|
|
|
6792
6809
|
data?: Record<string, any> | null;
|
|
6793
6810
|
}
|
|
6794
6811
|
interface BulkContentResult {
|
|
6795
|
-
/**
|
|
6812
|
+
/** Item metadata. */
|
|
6796
6813
|
itemMetadata?: ItemMetadata;
|
|
6797
|
-
/**
|
|
6814
|
+
/** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
|
|
6798
6815
|
item?: Content;
|
|
6799
6816
|
}
|
|
6800
6817
|
interface BulkActionMetadata {
|
|
@@ -6808,23 +6825,23 @@ interface BulkActionMetadata {
|
|
|
6808
6825
|
interface BulkUpdateContentRequest {
|
|
6809
6826
|
/** Contents to be updated. TODO: think again if we want to increase maxSize */
|
|
6810
6827
|
contents: BulkUpdateContentRequestMaskedContent[];
|
|
6811
|
-
/**
|
|
6828
|
+
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
6812
6829
|
returnEntity?: boolean;
|
|
6813
6830
|
}
|
|
6814
6831
|
interface BulkUpdateContentRequestMaskedContent {
|
|
6815
|
-
/**
|
|
6832
|
+
/** Translation content to update. */
|
|
6816
6833
|
content?: Content;
|
|
6817
6834
|
}
|
|
6818
6835
|
interface BulkUpdateContentResponse {
|
|
6819
|
-
/**
|
|
6836
|
+
/** Items created by bulk action. */
|
|
6820
6837
|
results?: BulkUpdateContentResponseBulkContentResult[];
|
|
6821
|
-
/** metadata */
|
|
6838
|
+
/** Bulk action metadata. */
|
|
6822
6839
|
bulkActionMetadata?: BulkActionMetadata;
|
|
6823
6840
|
}
|
|
6824
6841
|
interface BulkUpdateContentResponseBulkContentResult {
|
|
6825
|
-
/** metadata */
|
|
6842
|
+
/** Item metadata. */
|
|
6826
6843
|
itemMetadata?: ItemMetadata;
|
|
6827
|
-
/**
|
|
6844
|
+
/** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
|
|
6828
6845
|
item?: Content;
|
|
6829
6846
|
}
|
|
6830
6847
|
interface BulkUpdateContentByKeyRequest {
|
|
@@ -6876,13 +6893,13 @@ interface BulkDeleteContentRequest {
|
|
|
6876
6893
|
contentIds: string[];
|
|
6877
6894
|
}
|
|
6878
6895
|
interface BulkDeleteContentResponse {
|
|
6879
|
-
/**
|
|
6896
|
+
/** Items created by bulk action. */
|
|
6880
6897
|
results?: BulkDeleteContentResponseBulkContentResult[];
|
|
6881
|
-
/** metadata */
|
|
6898
|
+
/** Bulk action metadata. */
|
|
6882
6899
|
bulkActionMetadata?: BulkActionMetadata;
|
|
6883
6900
|
}
|
|
6884
6901
|
interface BulkDeleteContentResponseBulkContentResult {
|
|
6885
|
-
/** metadata */
|
|
6902
|
+
/** Item metadata. */
|
|
6886
6903
|
itemMetadata?: ItemMetadata;
|
|
6887
6904
|
}
|
|
6888
6905
|
interface MetaSiteSpecialEvent$1 extends MetaSiteSpecialEventPayloadOneOf$1 {
|
|
@@ -7464,22 +7481,27 @@ interface ContentDeletedEnvelope {
|
|
|
7464
7481
|
}
|
|
7465
7482
|
interface UpdateContent {
|
|
7466
7483
|
/**
|
|
7467
|
-
*
|
|
7484
|
+
* Translation content ID.
|
|
7468
7485
|
* @readonly
|
|
7469
7486
|
*/
|
|
7470
7487
|
_id?: string | null;
|
|
7471
|
-
/**
|
|
7488
|
+
/** Translation schema ID. */
|
|
7472
7489
|
schemaId?: string;
|
|
7473
|
-
/**
|
|
7490
|
+
/** 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'`. */
|
|
7474
7491
|
entityId?: string;
|
|
7475
|
-
/**
|
|
7492
|
+
/** Translation content locale. */
|
|
7476
7493
|
locale?: string;
|
|
7477
|
-
/** List of fields
|
|
7494
|
+
/** List of fields for the translation content. This property uses a string to map to a `ContentField` (`Map<string, ContentField>`). The string serves as a key, which you'll need to access each field in the content and when referencing a translation schema. */
|
|
7478
7495
|
fields?: Record<string, ContentField>;
|
|
7479
|
-
/**
|
|
7496
|
+
/** A reference to the parent content defined by the app developer. For example, if the content is a menu item, this property would link to the content with the `entityId` of the menu it belongs to. */
|
|
7480
7497
|
parentEntityId?: string | null;
|
|
7481
7498
|
/**
|
|
7482
|
-
* The aggregated published status across all content fields
|
|
7499
|
+
* The aggregated published status across all content fields.
|
|
7500
|
+
*
|
|
7501
|
+
* Supported values:
|
|
7502
|
+
* + `UNPUBLISHED`: None of the fields have been published to the live site.
|
|
7503
|
+
* + `PUBLISHED`: All of the fields have been published to the live site and are visible to site visitors.
|
|
7504
|
+
* + `PARTIALLY_PUBLISHED`: Some of the fields have been published to the live site and are visible to site visitors.
|
|
7483
7505
|
* @readonly
|
|
7484
7506
|
*/
|
|
7485
7507
|
publishStatus?: PublishStatus;
|
|
@@ -7488,9 +7510,15 @@ interface UpdateContent {
|
|
|
7488
7510
|
* @readonly
|
|
7489
7511
|
*/
|
|
7490
7512
|
previewField?: string | null;
|
|
7491
|
-
/**
|
|
7513
|
+
/**
|
|
7514
|
+
* Date and time the translation content was created.
|
|
7515
|
+
* @readonly
|
|
7516
|
+
*/
|
|
7492
7517
|
_createdDate?: Date;
|
|
7493
|
-
/**
|
|
7518
|
+
/**
|
|
7519
|
+
* Date and time the translation content was updated.
|
|
7520
|
+
* @readonly
|
|
7521
|
+
*/
|
|
7494
7522
|
_updatedDate?: Date;
|
|
7495
7523
|
}
|
|
7496
7524
|
interface QueryContentsOptions {
|
|
@@ -7557,11 +7585,11 @@ interface SearchContentsOptions {
|
|
|
7557
7585
|
search?: CursorSearch;
|
|
7558
7586
|
}
|
|
7559
7587
|
interface BulkCreateContentOptions {
|
|
7560
|
-
/**
|
|
7588
|
+
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
7561
7589
|
returnEntity?: boolean;
|
|
7562
7590
|
}
|
|
7563
7591
|
interface BulkUpdateContentOptions {
|
|
7564
|
-
/**
|
|
7592
|
+
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
7565
7593
|
returnEntity?: boolean;
|
|
7566
7594
|
}
|
|
7567
7595
|
interface BulkUpdateContentByKeyOptions {
|
|
@@ -7572,36 +7600,52 @@ interface BulkUpdateContentByKeyOptions {
|
|
|
7572
7600
|
declare function createContent$1(httpClient: HttpClient): CreateContentSignature;
|
|
7573
7601
|
interface CreateContentSignature {
|
|
7574
7602
|
/**
|
|
7575
|
-
* Creates a
|
|
7603
|
+
* Creates a translation content item.
|
|
7576
7604
|
*
|
|
7577
|
-
* The
|
|
7578
|
-
* @param -
|
|
7579
|
-
* @returns
|
|
7605
|
+
* The content is validated based on the constraints defined in the corresponding schema.
|
|
7606
|
+
* @param - Translation content to create.
|
|
7607
|
+
* @returns Newly created translation content.
|
|
7580
7608
|
*/
|
|
7581
7609
|
(content: Content): Promise<Content & ContentNonNullableFields>;
|
|
7582
7610
|
}
|
|
7583
7611
|
declare function getContent$1(httpClient: HttpClient): GetContentSignature;
|
|
7584
7612
|
interface GetContentSignature {
|
|
7585
7613
|
/**
|
|
7586
|
-
* Retrieves a
|
|
7587
|
-
* @param - ID of the
|
|
7588
|
-
* @returns The requested
|
|
7614
|
+
* Retrieves a translation content item.
|
|
7615
|
+
* @param - ID of the translation content to retrieve.
|
|
7616
|
+
* @returns The requested translation content.
|
|
7589
7617
|
*/
|
|
7590
7618
|
(contentId: string): Promise<Content & ContentNonNullableFields>;
|
|
7591
7619
|
}
|
|
7592
7620
|
declare function updateContent$1(httpClient: HttpClient): UpdateContentSignature;
|
|
7593
7621
|
interface UpdateContentSignature {
|
|
7594
7622
|
/**
|
|
7595
|
-
* Updates a
|
|
7596
|
-
*
|
|
7597
|
-
*
|
|
7623
|
+
* Updates a translation content item.
|
|
7624
|
+
*
|
|
7625
|
+
* To remove a field, pass the field key with an empty object as the value. For example:
|
|
7626
|
+
*
|
|
7627
|
+
* ```json
|
|
7628
|
+
* "fields": {
|
|
7629
|
+
* "title": {}
|
|
7630
|
+
* }
|
|
7631
|
+
* ```
|
|
7632
|
+
* @param - Translation content ID.
|
|
7633
|
+
* @returns Updated translation content.
|
|
7598
7634
|
*/
|
|
7599
7635
|
(_id: string | null, content: UpdateContent): Promise<Content & ContentNonNullableFields>;
|
|
7600
7636
|
}
|
|
7601
7637
|
declare function updateContentByKey$1(httpClient: HttpClient): UpdateContentByKeySignature;
|
|
7602
7638
|
interface UpdateContentByKeySignature {
|
|
7603
7639
|
/**
|
|
7604
|
-
* Updates a
|
|
7640
|
+
* Updates a translation content item by key.
|
|
7641
|
+
*
|
|
7642
|
+
* To remove a field, pass the field key with an empty object as the value. For example:
|
|
7643
|
+
*
|
|
7644
|
+
* ```js
|
|
7645
|
+
* "fields": {
|
|
7646
|
+
* "title": {}
|
|
7647
|
+
* }
|
|
7648
|
+
* ```
|
|
7605
7649
|
* @param - Content to be updated, may be partial.
|
|
7606
7650
|
*/
|
|
7607
7651
|
(content: Content): Promise<UpdateContentByKeyResponse & UpdateContentByKeyResponseNonNullableFields>;
|
|
@@ -7609,37 +7653,53 @@ interface UpdateContentByKeySignature {
|
|
|
7609
7653
|
declare function deleteContent$1(httpClient: HttpClient): DeleteContentSignature;
|
|
7610
7654
|
interface DeleteContentSignature {
|
|
7611
7655
|
/**
|
|
7612
|
-
* Deletes a
|
|
7613
|
-
* @param -
|
|
7656
|
+
* Deletes a translation content item.
|
|
7657
|
+
* @param - ID of the translation content to delete.
|
|
7614
7658
|
*/
|
|
7615
7659
|
(contentId: string): Promise<void>;
|
|
7616
7660
|
}
|
|
7617
7661
|
declare function queryContents$1(httpClient: HttpClient): QueryContentsSignature;
|
|
7618
7662
|
interface QueryContentsSignature {
|
|
7619
7663
|
/**
|
|
7620
|
-
* Retrieves a list of
|
|
7664
|
+
* Retrieves a list of translation content given the provided paging, filtering, and sorting. Up to 100 translation content items can be returned per request.
|
|
7665
|
+
*
|
|
7666
|
+
* The default `sort` is `id` in `ASC`.
|
|
7667
|
+
*
|
|
7668
|
+
* 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/translation-content-supported-filters-sorting-and-search).
|
|
7669
|
+
*
|
|
7670
|
+
* To learn how to query translation consent items, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
7621
7671
|
*/
|
|
7622
7672
|
(options?: QueryContentsOptions | undefined): ContentsQueryBuilder;
|
|
7623
7673
|
}
|
|
7624
7674
|
declare function searchContents$1(httpClient: HttpClient): SearchContentsSignature;
|
|
7625
7675
|
interface SearchContentsSignature {
|
|
7626
7676
|
/**
|
|
7627
|
-
* Retrieves a list of
|
|
7677
|
+
* Retrieves a list of all translation content associated with a site that matches the search query, with optional data aggregation.
|
|
7678
|
+
*
|
|
7679
|
+
* Note that this method retrieves translation content created by you or others.
|
|
7680
|
+
*
|
|
7681
|
+
* Use this method to search translation content fields on a site for a given expression, and/or to perform data aggregations on a site's translation content fields.
|
|
7682
|
+
*
|
|
7683
|
+
* For field support for filters, sorting, and free-text searching see [Translation Content: Supported Filters, Sorting, and Search](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-content/translation-content-supported-filters-sorting-and-search).
|
|
7684
|
+
*
|
|
7685
|
+
* To learn more about working with the search query, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
7628
7686
|
*/
|
|
7629
7687
|
(options?: SearchContentsOptions | undefined): Promise<SearchContentsResponse & SearchContentsResponseNonNullableFields>;
|
|
7630
7688
|
}
|
|
7631
7689
|
declare function bulkCreateContent$1(httpClient: HttpClient): BulkCreateContentSignature;
|
|
7632
7690
|
interface BulkCreateContentSignature {
|
|
7633
7691
|
/**
|
|
7634
|
-
*
|
|
7635
|
-
*
|
|
7692
|
+
* Creates multiple translation content items.
|
|
7693
|
+
*
|
|
7694
|
+
* The content items are validated based on the constraints defined in the corresponding schema.
|
|
7695
|
+
* @param - List of translation content.
|
|
7636
7696
|
*/
|
|
7637
7697
|
(contents: Content[], options?: BulkCreateContentOptions | undefined): Promise<BulkCreateContentResponse & BulkCreateContentResponseNonNullableFields>;
|
|
7638
7698
|
}
|
|
7639
7699
|
declare function bulkUpdateContent$1(httpClient: HttpClient): BulkUpdateContentSignature;
|
|
7640
7700
|
interface BulkUpdateContentSignature {
|
|
7641
7701
|
/**
|
|
7642
|
-
*
|
|
7702
|
+
* Updates multiple translation content items.
|
|
7643
7703
|
* @param - Contents to be updated. TODO: think again if we want to increase maxSize
|
|
7644
7704
|
*/
|
|
7645
7705
|
(contents: BulkUpdateContentRequestMaskedContent[], options?: BulkUpdateContentOptions | undefined): Promise<BulkUpdateContentResponse & BulkUpdateContentResponseNonNullableFields>;
|
|
@@ -7655,7 +7715,7 @@ interface BulkUpdateContentByKeySignature {
|
|
|
7655
7715
|
declare function bulkDeleteContent$1(httpClient: HttpClient): BulkDeleteContentSignature;
|
|
7656
7716
|
interface BulkDeleteContentSignature {
|
|
7657
7717
|
/**
|
|
7658
|
-
*
|
|
7718
|
+
* Deletes multiple translation content items.
|
|
7659
7719
|
* @param - Content ids to be deleted. TODO: think again if we want to increase maxSize
|
|
7660
7720
|
*/
|
|
7661
7721
|
(contentIds: string[]): Promise<BulkDeleteContentResponse & BulkDeleteContentResponseNonNullableFields>;
|