@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
|
@@ -7802,22 +7802,27 @@ declare namespace meta$2 {
|
|
|
7802
7802
|
|
|
7803
7803
|
interface Content$1 {
|
|
7804
7804
|
/**
|
|
7805
|
-
*
|
|
7805
|
+
* Translation content ID.
|
|
7806
7806
|
* @readonly
|
|
7807
7807
|
*/
|
|
7808
7808
|
id?: string | null;
|
|
7809
|
-
/**
|
|
7809
|
+
/** Translation schema ID. */
|
|
7810
7810
|
schemaId?: string;
|
|
7811
|
-
/**
|
|
7811
|
+
/** 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'`. */
|
|
7812
7812
|
entityId?: string;
|
|
7813
|
-
/**
|
|
7813
|
+
/** Translation content locale. */
|
|
7814
7814
|
locale?: string;
|
|
7815
|
-
/** List of fields
|
|
7815
|
+
/** 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. */
|
|
7816
7816
|
fields?: Record<string, ContentField$1>;
|
|
7817
|
-
/**
|
|
7817
|
+
/** 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. */
|
|
7818
7818
|
parentEntityId?: string | null;
|
|
7819
7819
|
/**
|
|
7820
|
-
* The aggregated published status across all content fields
|
|
7820
|
+
* The aggregated published status across all content fields.
|
|
7821
|
+
*
|
|
7822
|
+
* Supported values:
|
|
7823
|
+
* + `UNPUBLISHED`: None of the fields have been published to the live site.
|
|
7824
|
+
* + `PUBLISHED`: All of the fields have been published to the live site and are visible to site visitors.
|
|
7825
|
+
* + `PARTIALLY_PUBLISHED`: Some of the fields have been published to the live site and are visible to site visitors.
|
|
7821
7826
|
* @readonly
|
|
7822
7827
|
*/
|
|
7823
7828
|
publishStatus?: PublishStatus$1;
|
|
@@ -7826,53 +7831,65 @@ interface Content$1 {
|
|
|
7826
7831
|
* @readonly
|
|
7827
7832
|
*/
|
|
7828
7833
|
previewField?: string | null;
|
|
7829
|
-
/**
|
|
7834
|
+
/**
|
|
7835
|
+
* Date and time the translation content was created.
|
|
7836
|
+
* @readonly
|
|
7837
|
+
*/
|
|
7830
7838
|
createdDate?: Date;
|
|
7831
|
-
/**
|
|
7839
|
+
/**
|
|
7840
|
+
* Date and time the translation content was updated.
|
|
7841
|
+
* @readonly
|
|
7842
|
+
*/
|
|
7832
7843
|
updatedDate?: Date;
|
|
7833
7844
|
}
|
|
7834
7845
|
interface ContentField$1 extends ContentFieldValueOneOf$1 {
|
|
7835
|
-
/**
|
|
7846
|
+
/** Translated plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
7836
7847
|
textValue?: string;
|
|
7837
|
-
/**
|
|
7848
|
+
/** Translated rich content. */
|
|
7838
7849
|
richContent?: RichContent$1;
|
|
7839
|
-
/**
|
|
7850
|
+
/** Wix Media Manager image. */
|
|
7840
7851
|
image?: Image$1;
|
|
7841
|
-
/**
|
|
7852
|
+
/** Wix Media Manager video. */
|
|
7842
7853
|
video?: VideoV2;
|
|
7843
|
-
/**
|
|
7854
|
+
/** Wix Media Manager document. */
|
|
7844
7855
|
document?: Document;
|
|
7845
7856
|
/**
|
|
7846
|
-
* Field unique identifier.
|
|
7857
|
+
* 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 `^[^)(\\]\\[\\.]+$`.
|
|
7847
7858
|
* @readonly
|
|
7848
7859
|
*/
|
|
7849
7860
|
id?: string;
|
|
7850
|
-
/**
|
|
7861
|
+
/** Whether to publish the translation content to the live site, making it visible to site visitors. */
|
|
7851
7862
|
published?: boolean;
|
|
7852
|
-
/**
|
|
7863
|
+
/**
|
|
7864
|
+
* The source that updated the translation content.
|
|
7865
|
+
* Supported values:
|
|
7866
|
+
* + `USER`: The site owner.
|
|
7867
|
+
* + `EXTERNAL_APP`: An external translation app. For example, Smartling.
|
|
7868
|
+
* + `Machine`: Auto translaton service. For example, Google Translate.
|
|
7869
|
+
*/
|
|
7853
7870
|
updatedBy?: UpdaterIdentity$1;
|
|
7854
7871
|
/**
|
|
7855
|
-
*
|
|
7872
|
+
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
7856
7873
|
* @readonly
|
|
7857
7874
|
*/
|
|
7858
7875
|
schemaFieldKey?: string;
|
|
7859
7876
|
/**
|
|
7860
|
-
*
|
|
7877
|
+
* Field index. Used for cases where the order of the fields are relevant.
|
|
7861
7878
|
* @readonly
|
|
7862
7879
|
*/
|
|
7863
7880
|
index?: number;
|
|
7864
7881
|
}
|
|
7865
7882
|
/** @oneof */
|
|
7866
7883
|
interface ContentFieldValueOneOf$1 {
|
|
7867
|
-
/**
|
|
7884
|
+
/** Translated plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
7868
7885
|
textValue?: string;
|
|
7869
|
-
/**
|
|
7886
|
+
/** Translated rich content. */
|
|
7870
7887
|
richContent?: RichContent$1;
|
|
7871
|
-
/**
|
|
7888
|
+
/** Wix Media Manager image. */
|
|
7872
7889
|
image?: Image$1;
|
|
7873
|
-
/**
|
|
7890
|
+
/** Wix Media Manager video. */
|
|
7874
7891
|
video?: VideoV2;
|
|
7875
|
-
/**
|
|
7892
|
+
/** Wix Media Manager document. */
|
|
7876
7893
|
document?: Document;
|
|
7877
7894
|
}
|
|
7878
7895
|
interface RichContent$1 {
|
|
@@ -9159,27 +9176,27 @@ declare enum PublishStatus$1 {
|
|
|
9159
9176
|
PUBLISHED = "PUBLISHED"
|
|
9160
9177
|
}
|
|
9161
9178
|
interface CreateContentRequest$1 {
|
|
9162
|
-
/**
|
|
9179
|
+
/** Translation content to create. */
|
|
9163
9180
|
content: Content$1;
|
|
9164
9181
|
}
|
|
9165
9182
|
interface CreateContentResponse$1 {
|
|
9166
|
-
/**
|
|
9183
|
+
/** Newly created translation content. */
|
|
9167
9184
|
content?: Content$1;
|
|
9168
9185
|
}
|
|
9169
9186
|
interface GetContentRequest$1 {
|
|
9170
|
-
/** ID of the
|
|
9187
|
+
/** ID of the translation content to retrieve. */
|
|
9171
9188
|
contentId: string;
|
|
9172
9189
|
}
|
|
9173
9190
|
interface GetContentResponse$1 {
|
|
9174
|
-
/** The requested
|
|
9191
|
+
/** The requested translation content. */
|
|
9175
9192
|
content?: Content$1;
|
|
9176
9193
|
}
|
|
9177
9194
|
interface UpdateContentRequest$1 {
|
|
9178
|
-
/**
|
|
9195
|
+
/** Translation content to update. */
|
|
9179
9196
|
content: Content$1;
|
|
9180
9197
|
}
|
|
9181
9198
|
interface UpdateContentResponse$1 {
|
|
9182
|
-
/** Updated
|
|
9199
|
+
/** Updated translation content. */
|
|
9183
9200
|
content?: Content$1;
|
|
9184
9201
|
}
|
|
9185
9202
|
interface UpdateContentByKeyRequest$1 {
|
|
@@ -9191,13 +9208,13 @@ interface UpdateContentByKeyResponse$1 {
|
|
|
9191
9208
|
content?: Content$1;
|
|
9192
9209
|
}
|
|
9193
9210
|
interface DeleteContentRequest$1 {
|
|
9194
|
-
/**
|
|
9211
|
+
/** ID of the translation content to delete. */
|
|
9195
9212
|
contentId: string;
|
|
9196
9213
|
}
|
|
9197
9214
|
interface DeleteContentResponse$1 {
|
|
9198
9215
|
}
|
|
9199
9216
|
interface QueryContentsRequest$1 {
|
|
9200
|
-
/**
|
|
9217
|
+
/** Query options. */
|
|
9201
9218
|
query?: CursorQuery$3;
|
|
9202
9219
|
}
|
|
9203
9220
|
interface CursorQuery$3 extends CursorQueryPagingMethodOneOf$3 {
|
|
@@ -9251,9 +9268,9 @@ interface CursorPaging$3 {
|
|
|
9251
9268
|
cursor?: string | null;
|
|
9252
9269
|
}
|
|
9253
9270
|
interface QueryContentsResponse$1 {
|
|
9254
|
-
/** List of
|
|
9271
|
+
/** List of translation content. */
|
|
9255
9272
|
contents?: Content$1[];
|
|
9256
|
-
/**
|
|
9273
|
+
/** Details on the paged set of results returned. */
|
|
9257
9274
|
pagingMetadata?: CursorPagingMetadata$3;
|
|
9258
9275
|
}
|
|
9259
9276
|
interface CursorPagingMetadata$3 {
|
|
@@ -9533,11 +9550,11 @@ declare enum Mode$1 {
|
|
|
9533
9550
|
AND = "AND"
|
|
9534
9551
|
}
|
|
9535
9552
|
interface SearchContentsResponse$1 {
|
|
9536
|
-
/** List of
|
|
9553
|
+
/** List of translation content. */
|
|
9537
9554
|
contents?: Content$1[];
|
|
9538
|
-
/**
|
|
9555
|
+
/** Details on the paged set of results returned. */
|
|
9539
9556
|
pagingMetadata?: CursorPagingMetadata$3;
|
|
9540
|
-
/** Aggregation data */
|
|
9557
|
+
/** Aggregation data. */
|
|
9541
9558
|
aggregationData?: AggregationData$1;
|
|
9542
9559
|
}
|
|
9543
9560
|
interface AggregationData$1 {
|
|
@@ -9702,15 +9719,15 @@ interface AggregationResultsResultOneOf$1 {
|
|
|
9702
9719
|
nested?: NestedResults$1;
|
|
9703
9720
|
}
|
|
9704
9721
|
interface BulkCreateContentRequest$1 {
|
|
9705
|
-
/** List of
|
|
9722
|
+
/** List of translation content. */
|
|
9706
9723
|
contents: Content$1[];
|
|
9707
|
-
/**
|
|
9724
|
+
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
9708
9725
|
returnEntity?: boolean;
|
|
9709
9726
|
}
|
|
9710
9727
|
interface BulkCreateContentResponse$1 {
|
|
9711
|
-
/**
|
|
9728
|
+
/** Items created by bulk action. */
|
|
9712
9729
|
results?: BulkContentResult$1[];
|
|
9713
|
-
/** metadata */
|
|
9730
|
+
/** Bulk action metadata. */
|
|
9714
9731
|
bulkActionMetadata?: BulkActionMetadata$1;
|
|
9715
9732
|
}
|
|
9716
9733
|
interface ItemMetadata$1 {
|
|
@@ -9732,9 +9749,9 @@ interface ApplicationError$1 {
|
|
|
9732
9749
|
data?: Record<string, any> | null;
|
|
9733
9750
|
}
|
|
9734
9751
|
interface BulkContentResult$1 {
|
|
9735
|
-
/**
|
|
9752
|
+
/** Item metadata. */
|
|
9736
9753
|
itemMetadata?: ItemMetadata$1;
|
|
9737
|
-
/**
|
|
9754
|
+
/** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
|
|
9738
9755
|
item?: Content$1;
|
|
9739
9756
|
}
|
|
9740
9757
|
interface BulkActionMetadata$1 {
|
|
@@ -9748,23 +9765,23 @@ interface BulkActionMetadata$1 {
|
|
|
9748
9765
|
interface BulkUpdateContentRequest$1 {
|
|
9749
9766
|
/** Contents to be updated. TODO: think again if we want to increase maxSize */
|
|
9750
9767
|
contents: BulkUpdateContentRequestMaskedContent$1[];
|
|
9751
|
-
/**
|
|
9768
|
+
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
9752
9769
|
returnEntity?: boolean;
|
|
9753
9770
|
}
|
|
9754
9771
|
interface BulkUpdateContentRequestMaskedContent$1 {
|
|
9755
|
-
/**
|
|
9772
|
+
/** Translation content to update. */
|
|
9756
9773
|
content?: Content$1;
|
|
9757
9774
|
}
|
|
9758
9775
|
interface BulkUpdateContentResponse$1 {
|
|
9759
|
-
/**
|
|
9776
|
+
/** Items created by bulk action. */
|
|
9760
9777
|
results?: BulkUpdateContentResponseBulkContentResult$1[];
|
|
9761
|
-
/** metadata */
|
|
9778
|
+
/** Bulk action metadata. */
|
|
9762
9779
|
bulkActionMetadata?: BulkActionMetadata$1;
|
|
9763
9780
|
}
|
|
9764
9781
|
interface BulkUpdateContentResponseBulkContentResult$1 {
|
|
9765
|
-
/** metadata */
|
|
9782
|
+
/** Item metadata. */
|
|
9766
9783
|
itemMetadata?: ItemMetadata$1;
|
|
9767
|
-
/**
|
|
9784
|
+
/** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
|
|
9768
9785
|
item?: Content$1;
|
|
9769
9786
|
}
|
|
9770
9787
|
interface BulkUpdateContentByKeyRequest$1 {
|
|
@@ -9794,13 +9811,13 @@ interface BulkDeleteContentRequest$1 {
|
|
|
9794
9811
|
contentIds: string[];
|
|
9795
9812
|
}
|
|
9796
9813
|
interface BulkDeleteContentResponse$1 {
|
|
9797
|
-
/**
|
|
9814
|
+
/** Items created by bulk action. */
|
|
9798
9815
|
results?: BulkDeleteContentResponseBulkContentResult$1[];
|
|
9799
|
-
/** metadata */
|
|
9816
|
+
/** Bulk action metadata. */
|
|
9800
9817
|
bulkActionMetadata?: BulkActionMetadata$1;
|
|
9801
9818
|
}
|
|
9802
9819
|
interface BulkDeleteContentResponseBulkContentResult$1 {
|
|
9803
|
-
/** metadata */
|
|
9820
|
+
/** Item metadata. */
|
|
9804
9821
|
itemMetadata?: ItemMetadata$1;
|
|
9805
9822
|
}
|
|
9806
9823
|
interface ContentNonNullableFields$1 {
|
|
@@ -9928,22 +9945,27 @@ interface BulkDeleteContentResponseNonNullableFields$1 {
|
|
|
9928
9945
|
|
|
9929
9946
|
interface Content {
|
|
9930
9947
|
/**
|
|
9931
|
-
*
|
|
9948
|
+
* Translation content ID.
|
|
9932
9949
|
* @readonly
|
|
9933
9950
|
*/
|
|
9934
9951
|
_id?: string | null;
|
|
9935
|
-
/**
|
|
9952
|
+
/** Translation schema ID. */
|
|
9936
9953
|
schemaId?: string;
|
|
9937
|
-
/**
|
|
9954
|
+
/** 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'`. */
|
|
9938
9955
|
entityId?: string;
|
|
9939
|
-
/**
|
|
9956
|
+
/** Translation content locale. */
|
|
9940
9957
|
locale?: string;
|
|
9941
|
-
/** List of fields
|
|
9958
|
+
/** 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. */
|
|
9942
9959
|
fields?: Record<string, ContentField>;
|
|
9943
|
-
/**
|
|
9960
|
+
/** 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. */
|
|
9944
9961
|
parentEntityId?: string | null;
|
|
9945
9962
|
/**
|
|
9946
|
-
* The aggregated published status across all content fields
|
|
9963
|
+
* The aggregated published status across all content fields.
|
|
9964
|
+
*
|
|
9965
|
+
* Supported values:
|
|
9966
|
+
* + `UNPUBLISHED`: None of the fields have been published to the live site.
|
|
9967
|
+
* + `PUBLISHED`: All of the fields have been published to the live site and are visible to site visitors.
|
|
9968
|
+
* + `PARTIALLY_PUBLISHED`: Some of the fields have been published to the live site and are visible to site visitors.
|
|
9947
9969
|
* @readonly
|
|
9948
9970
|
*/
|
|
9949
9971
|
publishStatus?: PublishStatus;
|
|
@@ -9952,53 +9974,65 @@ interface Content {
|
|
|
9952
9974
|
* @readonly
|
|
9953
9975
|
*/
|
|
9954
9976
|
previewField?: string | null;
|
|
9955
|
-
/**
|
|
9977
|
+
/**
|
|
9978
|
+
* Date and time the translation content was created.
|
|
9979
|
+
* @readonly
|
|
9980
|
+
*/
|
|
9956
9981
|
_createdDate?: Date;
|
|
9957
|
-
/**
|
|
9982
|
+
/**
|
|
9983
|
+
* Date and time the translation content was updated.
|
|
9984
|
+
* @readonly
|
|
9985
|
+
*/
|
|
9958
9986
|
_updatedDate?: Date;
|
|
9959
9987
|
}
|
|
9960
9988
|
interface ContentField extends ContentFieldValueOneOf {
|
|
9961
|
-
/**
|
|
9989
|
+
/** Translated plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
9962
9990
|
textValue?: string;
|
|
9963
|
-
/**
|
|
9991
|
+
/** Translated rich content. */
|
|
9964
9992
|
richContent?: RichContent;
|
|
9965
|
-
/**
|
|
9993
|
+
/** Wix Media Manager image. */
|
|
9966
9994
|
image?: string;
|
|
9967
|
-
/**
|
|
9995
|
+
/** Wix Media Manager video. */
|
|
9968
9996
|
video?: string;
|
|
9969
|
-
/**
|
|
9997
|
+
/** Wix Media Manager document. */
|
|
9970
9998
|
document?: string;
|
|
9971
9999
|
/**
|
|
9972
|
-
* Field unique identifier.
|
|
10000
|
+
* 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 `^[^)(\\]\\[\\.]+$`.
|
|
9973
10001
|
* @readonly
|
|
9974
10002
|
*/
|
|
9975
10003
|
_id?: string;
|
|
9976
|
-
/**
|
|
10004
|
+
/** Whether to publish the translation content to the live site, making it visible to site visitors. */
|
|
9977
10005
|
published?: boolean;
|
|
9978
|
-
/**
|
|
10006
|
+
/**
|
|
10007
|
+
* The source that updated the translation content.
|
|
10008
|
+
* Supported values:
|
|
10009
|
+
* + `USER`: The site owner.
|
|
10010
|
+
* + `EXTERNAL_APP`: An external translation app. For example, Smartling.
|
|
10011
|
+
* + `Machine`: Auto translaton service. For example, Google Translate.
|
|
10012
|
+
*/
|
|
9979
10013
|
updatedBy?: UpdaterIdentity;
|
|
9980
10014
|
/**
|
|
9981
|
-
*
|
|
10015
|
+
* Unique string identifier that links a specific content field to its corresponding field in the schema.
|
|
9982
10016
|
* @readonly
|
|
9983
10017
|
*/
|
|
9984
10018
|
schemaFieldKey?: string;
|
|
9985
10019
|
/**
|
|
9986
|
-
*
|
|
10020
|
+
* Field index. Used for cases where the order of the fields are relevant.
|
|
9987
10021
|
* @readonly
|
|
9988
10022
|
*/
|
|
9989
10023
|
index?: number;
|
|
9990
10024
|
}
|
|
9991
10025
|
/** @oneof */
|
|
9992
10026
|
interface ContentFieldValueOneOf {
|
|
9993
|
-
/**
|
|
10027
|
+
/** Translated plain text. Use this field if the corresponding schema `fields.type` is `SHORT_TEXT`, `LONG_TEXT`, `HTML`, or `IMAGE_LINK`. */
|
|
9994
10028
|
textValue?: string;
|
|
9995
|
-
/**
|
|
10029
|
+
/** Translated rich content. */
|
|
9996
10030
|
richContent?: RichContent;
|
|
9997
|
-
/**
|
|
10031
|
+
/** Wix Media Manager image. */
|
|
9998
10032
|
image?: string;
|
|
9999
|
-
/**
|
|
10033
|
+
/** Wix Media Manager video. */
|
|
10000
10034
|
video?: string;
|
|
10001
|
-
/**
|
|
10035
|
+
/** Wix Media Manager document. */
|
|
10002
10036
|
document?: string;
|
|
10003
10037
|
}
|
|
10004
10038
|
interface RichContent {
|
|
@@ -11230,27 +11264,27 @@ declare enum PublishStatus {
|
|
|
11230
11264
|
PUBLISHED = "PUBLISHED"
|
|
11231
11265
|
}
|
|
11232
11266
|
interface CreateContentRequest {
|
|
11233
|
-
/**
|
|
11267
|
+
/** Translation content to create. */
|
|
11234
11268
|
content: Content;
|
|
11235
11269
|
}
|
|
11236
11270
|
interface CreateContentResponse {
|
|
11237
|
-
/**
|
|
11271
|
+
/** Newly created translation content. */
|
|
11238
11272
|
content?: Content;
|
|
11239
11273
|
}
|
|
11240
11274
|
interface GetContentRequest {
|
|
11241
|
-
/** ID of the
|
|
11275
|
+
/** ID of the translation content to retrieve. */
|
|
11242
11276
|
contentId: string;
|
|
11243
11277
|
}
|
|
11244
11278
|
interface GetContentResponse {
|
|
11245
|
-
/** The requested
|
|
11279
|
+
/** The requested translation content. */
|
|
11246
11280
|
content?: Content;
|
|
11247
11281
|
}
|
|
11248
11282
|
interface UpdateContentRequest {
|
|
11249
|
-
/**
|
|
11283
|
+
/** Translation content to update. */
|
|
11250
11284
|
content: Content;
|
|
11251
11285
|
}
|
|
11252
11286
|
interface UpdateContentResponse {
|
|
11253
|
-
/** Updated
|
|
11287
|
+
/** Updated translation content. */
|
|
11254
11288
|
content?: Content;
|
|
11255
11289
|
}
|
|
11256
11290
|
interface UpdateContentByKeyRequest {
|
|
@@ -11262,13 +11296,13 @@ interface UpdateContentByKeyResponse {
|
|
|
11262
11296
|
content?: Content;
|
|
11263
11297
|
}
|
|
11264
11298
|
interface DeleteContentRequest {
|
|
11265
|
-
/**
|
|
11299
|
+
/** ID of the translation content to delete. */
|
|
11266
11300
|
contentId: string;
|
|
11267
11301
|
}
|
|
11268
11302
|
interface DeleteContentResponse {
|
|
11269
11303
|
}
|
|
11270
11304
|
interface QueryContentsRequest {
|
|
11271
|
-
/**
|
|
11305
|
+
/** Query options. */
|
|
11272
11306
|
query?: CursorQuery$2;
|
|
11273
11307
|
}
|
|
11274
11308
|
interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
|
|
@@ -11322,9 +11356,9 @@ interface CursorPaging$2 {
|
|
|
11322
11356
|
cursor?: string | null;
|
|
11323
11357
|
}
|
|
11324
11358
|
interface QueryContentsResponse {
|
|
11325
|
-
/** List of
|
|
11359
|
+
/** List of translation content. */
|
|
11326
11360
|
contents?: Content[];
|
|
11327
|
-
/**
|
|
11361
|
+
/** Details on the paged set of results returned. */
|
|
11328
11362
|
pagingMetadata?: CursorPagingMetadata$2;
|
|
11329
11363
|
}
|
|
11330
11364
|
interface CursorPagingMetadata$2 {
|
|
@@ -11604,11 +11638,11 @@ declare enum Mode {
|
|
|
11604
11638
|
AND = "AND"
|
|
11605
11639
|
}
|
|
11606
11640
|
interface SearchContentsResponse {
|
|
11607
|
-
/** List of
|
|
11641
|
+
/** List of translation content. */
|
|
11608
11642
|
contents?: Content[];
|
|
11609
|
-
/**
|
|
11643
|
+
/** Details on the paged set of results returned. */
|
|
11610
11644
|
pagingMetadata?: CursorPagingMetadata$2;
|
|
11611
|
-
/** Aggregation data */
|
|
11645
|
+
/** Aggregation data. */
|
|
11612
11646
|
aggregationData?: AggregationData;
|
|
11613
11647
|
}
|
|
11614
11648
|
interface AggregationData {
|
|
@@ -11773,15 +11807,15 @@ interface AggregationResultsResultOneOf {
|
|
|
11773
11807
|
nested?: NestedResults;
|
|
11774
11808
|
}
|
|
11775
11809
|
interface BulkCreateContentRequest {
|
|
11776
|
-
/** List of
|
|
11810
|
+
/** List of translation content. */
|
|
11777
11811
|
contents: Content[];
|
|
11778
|
-
/**
|
|
11812
|
+
/** Whether to include the created translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
11779
11813
|
returnEntity?: boolean;
|
|
11780
11814
|
}
|
|
11781
11815
|
interface BulkCreateContentResponse {
|
|
11782
|
-
/**
|
|
11816
|
+
/** Items created by bulk action. */
|
|
11783
11817
|
results?: BulkContentResult[];
|
|
11784
|
-
/** metadata */
|
|
11818
|
+
/** Bulk action metadata. */
|
|
11785
11819
|
bulkActionMetadata?: BulkActionMetadata;
|
|
11786
11820
|
}
|
|
11787
11821
|
interface ItemMetadata {
|
|
@@ -11803,9 +11837,9 @@ interface ApplicationError {
|
|
|
11803
11837
|
data?: Record<string, any> | null;
|
|
11804
11838
|
}
|
|
11805
11839
|
interface BulkContentResult {
|
|
11806
|
-
/**
|
|
11840
|
+
/** Item metadata. */
|
|
11807
11841
|
itemMetadata?: ItemMetadata;
|
|
11808
|
-
/**
|
|
11842
|
+
/** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
|
|
11809
11843
|
item?: Content;
|
|
11810
11844
|
}
|
|
11811
11845
|
interface BulkActionMetadata {
|
|
@@ -11819,23 +11853,23 @@ interface BulkActionMetadata {
|
|
|
11819
11853
|
interface BulkUpdateContentRequest {
|
|
11820
11854
|
/** Contents to be updated. TODO: think again if we want to increase maxSize */
|
|
11821
11855
|
contents: BulkUpdateContentRequestMaskedContent[];
|
|
11822
|
-
/**
|
|
11856
|
+
/** Whether to include the updated translation content in the response. Set to `true` to receive the translation content in the response. */
|
|
11823
11857
|
returnEntity?: boolean;
|
|
11824
11858
|
}
|
|
11825
11859
|
interface BulkUpdateContentRequestMaskedContent {
|
|
11826
|
-
/**
|
|
11860
|
+
/** Translation content to update. */
|
|
11827
11861
|
content?: Content;
|
|
11828
11862
|
}
|
|
11829
11863
|
interface BulkUpdateContentResponse {
|
|
11830
|
-
/**
|
|
11864
|
+
/** Items created by bulk action. */
|
|
11831
11865
|
results?: BulkUpdateContentResponseBulkContentResult[];
|
|
11832
|
-
/** metadata */
|
|
11866
|
+
/** Bulk action metadata. */
|
|
11833
11867
|
bulkActionMetadata?: BulkActionMetadata;
|
|
11834
11868
|
}
|
|
11835
11869
|
interface BulkUpdateContentResponseBulkContentResult {
|
|
11836
|
-
/** metadata */
|
|
11870
|
+
/** Item metadata. */
|
|
11837
11871
|
itemMetadata?: ItemMetadata;
|
|
11838
|
-
/**
|
|
11872
|
+
/** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
|
|
11839
11873
|
item?: Content;
|
|
11840
11874
|
}
|
|
11841
11875
|
interface BulkUpdateContentByKeyRequest {
|
|
@@ -11865,13 +11899,13 @@ interface BulkDeleteContentRequest {
|
|
|
11865
11899
|
contentIds: string[];
|
|
11866
11900
|
}
|
|
11867
11901
|
interface BulkDeleteContentResponse {
|
|
11868
|
-
/**
|
|
11902
|
+
/** Items created by bulk action. */
|
|
11869
11903
|
results?: BulkDeleteContentResponseBulkContentResult[];
|
|
11870
|
-
/** metadata */
|
|
11904
|
+
/** Bulk action metadata. */
|
|
11871
11905
|
bulkActionMetadata?: BulkActionMetadata;
|
|
11872
11906
|
}
|
|
11873
11907
|
interface BulkDeleteContentResponseBulkContentResult {
|
|
11874
|
-
/** metadata */
|
|
11908
|
+
/** Item metadata. */
|
|
11875
11909
|
itemMetadata?: ItemMetadata;
|
|
11876
11910
|
}
|
|
11877
11911
|
interface ContentNonNullableFields {
|