@wix/multilingual 1.0.38 → 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.
@@ -7802,22 +7802,27 @@ declare namespace meta$2 {
7802
7802
 
7803
7803
  interface Content$1 {
7804
7804
  /**
7805
- * Content ID.
7805
+ * Translation content ID.
7806
7806
  * @readonly
7807
7807
  */
7808
7808
  id?: string | null;
7809
- /** Schema unique identifier */
7809
+ /** Translation schema ID. */
7810
7810
  schemaId?: string;
7811
- /** Unique identifier that represents a specific entity in the app */
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
- /** Indicates the locale of this content */
7813
+ /** Translation content locale. */
7814
7814
  locale?: string;
7815
- /** List of fields localized in the given language */
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
- /** Optional field that will group in the UI contents with the same group name */
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
- /** @readonly */
7834
+ /**
7835
+ * Date and time the translation content was created.
7836
+ * @readonly
7837
+ */
7830
7838
  createdDate?: Date;
7831
- /** @readonly */
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
- /** Field actual localized content as simple text type */
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
- /** Use this field to send rich content. */
7848
+ /** Translated rich content. */
7838
7849
  richContent?: RichContent$1;
7839
- /** Image media item */
7850
+ /** Wix Media Manager image. */
7840
7851
  image?: Image$1;
7841
- /** Video media item */
7852
+ /** Wix Media Manager video. */
7842
7853
  video?: VideoV2;
7843
- /** Document media item */
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
- /** Is content published to live site or not */
7861
+ /** Whether to publish the translation content to the live site, making it visible to site visitors. */
7851
7862
  published?: boolean;
7852
- /** Describes the updater identity (site owner / app / auto translator) */
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
- * The corresponding field key in the schema in a clean format (nothing between the parenthesis), must have a matching schema field key.
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
- * Index is populated according to index of schema field (if exists), and grouping repeated fields.
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
- /** Field actual localized content as simple text type */
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
- /** Use this field to send rich content. */
7886
+ /** Translated rich content. */
7870
7887
  richContent?: RichContent$1;
7871
- /** Image media item */
7888
+ /** Wix Media Manager image. */
7872
7889
  image?: Image$1;
7873
- /** Video media item */
7890
+ /** Wix Media Manager video. */
7874
7891
  video?: VideoV2;
7875
- /** Document media item */
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
- /** Content to be created. */
9179
+ /** Translation content to create. */
9163
9180
  content: Content$1;
9164
9181
  }
9165
9182
  interface CreateContentResponse$1 {
9166
- /** The created Content. */
9183
+ /** Newly created translation content. */
9167
9184
  content?: Content$1;
9168
9185
  }
9169
9186
  interface GetContentRequest$1 {
9170
- /** ID of the Content to retrieve. */
9187
+ /** ID of the translation content to retrieve. */
9171
9188
  contentId: string;
9172
9189
  }
9173
9190
  interface GetContentResponse$1 {
9174
- /** The requested Content. */
9191
+ /** The requested translation content. */
9175
9192
  content?: Content$1;
9176
9193
  }
9177
9194
  interface UpdateContentRequest$1 {
9178
- /** Content to be updated, may be partial. */
9195
+ /** Translation content to update. */
9179
9196
  content: Content$1;
9180
9197
  }
9181
9198
  interface UpdateContentResponse$1 {
9182
- /** Updated Content. */
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
- /** Id of the Content to delete. */
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
- /** WQL expression. */
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 Contents. */
9271
+ /** List of translation content. */
9255
9272
  contents?: Content$1[];
9256
- /** Paging metadata */
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 Contents. */
9553
+ /** List of translation content. */
9537
9554
  contents?: Content$1[];
9538
- /** Paging metadata */
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 Contents to be created TODO: think again if we want to increase maxSize */
9722
+ /** List of translation content. */
9706
9723
  contents: Content$1[];
9707
- /** set to `true` if you wish to receive back the created contents in the response */
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
- /** List of results */
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
- /** Defined in wix.commons */
9752
+ /** Item metadata. */
9736
9753
  itemMetadata?: ItemMetadata$1;
9737
- /** Only exists if `returnEntity` was set to true in the request */
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
- /** set to `true` if you wish to receive back the created contents in the response */
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
- /** Content to be updated, may be partial */
9772
+ /** Translation content to update. */
9756
9773
  content?: Content$1;
9757
9774
  }
9758
9775
  interface BulkUpdateContentResponse$1 {
9759
- /** List of results */
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
- /** Only exists if `returnEntity` was set to true in the request */
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
- /** List of results */
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
- * Content ID.
9948
+ * Translation content ID.
9932
9949
  * @readonly
9933
9950
  */
9934
9951
  _id?: string | null;
9935
- /** Schema unique identifier */
9952
+ /** Translation schema ID. */
9936
9953
  schemaId?: string;
9937
- /** Unique identifier that represents a specific entity in the app */
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
- /** Indicates the locale of this content */
9956
+ /** Translation content locale. */
9940
9957
  locale?: string;
9941
- /** List of fields localized in the given language */
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
- /** Optional field that will group in the UI contents with the same group name */
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
- /** @readonly */
9977
+ /**
9978
+ * Date and time the translation content was created.
9979
+ * @readonly
9980
+ */
9956
9981
  _createdDate?: Date;
9957
- /** @readonly */
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
- /** Field actual localized content as simple text type */
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
- /** Use this field to send rich content. */
9991
+ /** Translated rich content. */
9964
9992
  richContent?: RichContent;
9965
- /** Image media item */
9993
+ /** Wix Media Manager image. */
9966
9994
  image?: string;
9967
- /** Video media item */
9995
+ /** Wix Media Manager video. */
9968
9996
  video?: string;
9969
- /** Document media item */
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
- /** Is content published to live site or not */
10004
+ /** Whether to publish the translation content to the live site, making it visible to site visitors. */
9977
10005
  published?: boolean;
9978
- /** Describes the updater identity (site owner / app / auto translator) */
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
- * The corresponding field key in the schema in a clean format (nothing between the parenthesis), must have a matching schema field key.
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
- * Index is populated according to index of schema field (if exists), and grouping repeated fields.
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
- /** Field actual localized content as simple text type */
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
- /** Use this field to send rich content. */
10029
+ /** Translated rich content. */
9996
10030
  richContent?: RichContent;
9997
- /** Image media item */
10031
+ /** Wix Media Manager image. */
9998
10032
  image?: string;
9999
- /** Video media item */
10033
+ /** Wix Media Manager video. */
10000
10034
  video?: string;
10001
- /** Document media item */
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
- /** Content to be created. */
11267
+ /** Translation content to create. */
11234
11268
  content: Content;
11235
11269
  }
11236
11270
  interface CreateContentResponse {
11237
- /** The created Content. */
11271
+ /** Newly created translation content. */
11238
11272
  content?: Content;
11239
11273
  }
11240
11274
  interface GetContentRequest {
11241
- /** ID of the Content to retrieve. */
11275
+ /** ID of the translation content to retrieve. */
11242
11276
  contentId: string;
11243
11277
  }
11244
11278
  interface GetContentResponse {
11245
- /** The requested Content. */
11279
+ /** The requested translation content. */
11246
11280
  content?: Content;
11247
11281
  }
11248
11282
  interface UpdateContentRequest {
11249
- /** Content to be updated, may be partial. */
11283
+ /** Translation content to update. */
11250
11284
  content: Content;
11251
11285
  }
11252
11286
  interface UpdateContentResponse {
11253
- /** Updated Content. */
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
- /** Id of the Content to delete. */
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
- /** WQL expression. */
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 Contents. */
11359
+ /** List of translation content. */
11326
11360
  contents?: Content[];
11327
- /** Paging metadata */
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 Contents. */
11641
+ /** List of translation content. */
11608
11642
  contents?: Content[];
11609
- /** Paging metadata */
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 Contents to be created TODO: think again if we want to increase maxSize */
11810
+ /** List of translation content. */
11777
11811
  contents: Content[];
11778
- /** set to `true` if you wish to receive back the created contents in the response */
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
- /** List of results */
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
- /** Defined in wix.commons */
11840
+ /** Item metadata. */
11807
11841
  itemMetadata?: ItemMetadata;
11808
- /** Only exists if `returnEntity` was set to true in the request */
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
- /** set to `true` if you wish to receive back the created contents in the response */
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
- /** Content to be updated, may be partial */
11860
+ /** Translation content to update. */
11827
11861
  content?: Content;
11828
11862
  }
11829
11863
  interface BulkUpdateContentResponse {
11830
- /** List of results */
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
- /** Only exists if `returnEntity` was set to true in the request */
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
- /** List of results */
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 {
@@ -12042,29 +12076,35 @@ declare namespace meta$1 {
12042
12076
 
12043
12077
  interface Schema$1 {
12044
12078
  /**
12045
- * Schema ID.
12079
+ * Translation schema ID.
12046
12080
  * @readonly
12047
12081
  */
12048
12082
  id?: string | null;
12049
- /** (compound key) Schema key. */
12083
+ /** Translation schema unique key identifier. */
12050
12084
  key?: SchemaKey$1;
12051
- /** A list of unique fields on the entity in the specific language */
12085
+ /** List of fields for the translation schema. This property uses a string to map to a `SchemaField` (`Map<string, SchemaField>`). The string serves as a key, which you'll need to access each field in the schema and when adding translation content. */
12052
12086
  fields?: Record<string, SchemaField$1>;
12053
- /** Fields that will be displayed in content previews (e.g., product name for products). */
12087
+ /** Fields displayed in content previews. For example, a product name for a product translation schema. */
12054
12088
  previewFields?: PreviewFields$1;
12055
- /** Whether the schema is hidden from the site. */
12089
+ /** Whether the translation schema is hidden from the site. */
12056
12090
  hidden?: boolean | null;
12057
- /** The name of the schema */
12091
+ /** Translation schema name. */
12058
12092
  displayName?: string | null;
12059
- /** Higher level schema, group_by_name will point to an entity of this schema. */
12093
+ /** A reference to the parent schema defined by the app developer. For example, if the schema is for a menu item, this property would link to the schema of the menu it belongs to. */
12060
12094
  parentId?: string | null;
12061
12095
  /** @readonly */
12062
12096
  revision?: string | null;
12063
- /** @readonly */
12097
+ /**
12098
+ * Date and time the translation schema was created.
12099
+ * @readonly
12100
+ */
12064
12101
  createdDate?: Date;
12065
- /** @readonly */
12102
+ /**
12103
+ * Date and time the translation schema was updated.
12104
+ * @readonly
12105
+ */
12066
12106
  updatedDate?: Date;
12067
- /** indicate if the content should be duplicated when the site is cloned */
12107
+ /** Whether to duplicate the translated content in the schema when a site containing the translation schema and content is duplicated. */
12068
12108
  duplicateContent?: boolean | null;
12069
12109
  }
12070
12110
  interface SchemaKey$1 {
@@ -12073,9 +12113,14 @@ interface SchemaKey$1 {
12073
12113
  * @readonly
12074
12114
  */
12075
12115
  appId?: string;
12076
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
12116
+ /** A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`. */
12077
12117
  entityType?: string;
12078
- /** Scope schema is defined in (Global/Site) */
12118
+ /**
12119
+ * Scope of the translation schema.
12120
+ * Supported values:
12121
+ * + `GLOBAL`: A global schema for all sites.
12122
+ * + `SITE`: A custom schema for a specific site.
12123
+ */
12079
12124
  scope?: SchemaScope$1;
12080
12125
  }
12081
12126
  declare enum SchemaScope$1 {
@@ -12087,27 +12132,38 @@ declare enum SchemaScope$1 {
12087
12132
  }
12088
12133
  interface SchemaField$1 {
12089
12134
  /**
12090
- * Field ID.
12135
+ * Field ID. 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 `^[^)(\\]\\[\\.]+$`.
12091
12136
  * @readonly
12092
12137
  */
12093
12138
  id?: string;
12094
- /** Field type. */
12139
+ /**
12140
+ * Field type.
12141
+ * Supported values:
12142
+ * + `SHORT_TEXT`: Short plain text.
12143
+ * + `LONG_TEXT`: Long plain text.
12144
+ * + `HTML`: Long text including styles, images, and links.
12145
+ * + `RICH_CONTENT`: Rich-Content using the [Wix Ricos.js](https://dev.wix.com/docs/go-headless/tutorials-templates/other-tutorials/working-with-rich-content) format.
12146
+ * + `IMAGE`: Wix Media Manager image.
12147
+ * + `IMAGE_LINK`: Image URL without metadata.
12148
+ * + `VIDEO`: Wix Media Manager video.
12149
+ * + `DOCUMENT`: Wix Media Manager document.
12150
+ */
12095
12151
  type?: FieldType$1;
12096
- /** Field descriptive name. */
12152
+ /** Field name. */
12097
12153
  displayName?: string | null;
12098
- /** Field semantic grouping */
12154
+ /** Field group name. */
12099
12155
  groupName?: string | null;
12100
- /** Field minimum length (in case of text field) */
12156
+ /** Field minimum text length. */
12101
12157
  minLength?: number | null;
12102
- /** Field maximum length (in case text field) */
12158
+ /** Field maximum text length. */
12103
12159
  maxLength?: number | null;
12104
- /** Field format. If set - must be one of the values of wix.api.format as string (case insensitive) */
12160
+ /** Field format. The content will be validated based on the format set here in the field schema. For example, if the format is `EMAIL`, then the content for this field must be a valid email address. */
12105
12161
  format?: string | null;
12106
- /** Whether the field is hidden from the site. Hidden field constraints (type, min/max length) are still active! */
12162
+ /** Whether the field is hidden from the site. Hidden fields are still validated. */
12107
12163
  hidden?: boolean;
12108
- /** Whether the field is for display only and should not allowed to be translated */
12164
+ /** Whether the field is read-only, and is not meant to be translated. For example, an image. Use this field as a way to provide more context for the field in the Multilingual Dashboard. */
12109
12165
  displayOnly?: boolean;
12110
- /** In cases where the order of the fields holds meaning, use this index */
12166
+ /** Field index. Use for cases where the order of the fields are relevant. */
12111
12167
  index?: number | null;
12112
12168
  }
12113
12169
  declare enum FieldType$1 {
@@ -12139,46 +12195,52 @@ interface PreviewFields$1 {
12139
12195
  imageFieldId?: string | null;
12140
12196
  }
12141
12197
  interface GetSchemaRequest$1 {
12142
- /** ID of the Schema to retrieve. */
12198
+ /** ID of the translation schema to retrieve. */
12143
12199
  schemaId: string;
12144
12200
  }
12145
12201
  interface GetSchemaResponse$1 {
12146
- /** The requested Schema. */
12202
+ /** The requested translation schema. */
12147
12203
  schema?: Schema$1;
12148
12204
  }
12149
12205
  interface GetSchemaByKeyRequest$1 {
12150
- /** ID of the Schema to retrieve. */
12206
+ /** ID of the translation schema to retrieve. */
12151
12207
  key: SchemaKey$1;
12152
12208
  }
12153
12209
  interface GetSchemaByKeyResponse$1 {
12154
- /** The requested Schema. */
12210
+ /** The requested translation schema. */
12155
12211
  schema?: Schema$1;
12156
12212
  }
12157
12213
  interface QuerySchemasRequest$1 {
12158
- /** WQL expression. */
12214
+ /** Query options. */
12159
12215
  query?: CursorQuery$1;
12160
12216
  }
12161
12217
  interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
12162
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
12218
+ /**
12219
+ * Cursor paging options.
12220
+ *
12221
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
12222
+ */
12163
12223
  cursorPaging?: CursorPaging$1;
12164
12224
  /**
12165
- * Filter object in the following format:
12166
- * `"filter" : {
12167
- * "fieldName1": "value1",
12168
- * "fieldName2":{"$operator":"value2"}
12169
- * }`
12170
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
12225
+ * Filter object.
12226
+ *
12227
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
12171
12228
  */
12172
12229
  filter?: Record<string, any> | null;
12173
12230
  /**
12174
- * Sort object in the following format:
12175
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
12231
+ * Sort object.
12232
+ *
12233
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
12176
12234
  */
12177
12235
  sort?: Sorting$1[];
12178
12236
  }
12179
12237
  /** @oneof */
12180
12238
  interface CursorQueryPagingMethodOneOf$1 {
12181
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
12239
+ /**
12240
+ * Cursor paging options.
12241
+ *
12242
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
12243
+ */
12182
12244
  cursorPaging?: CursorPaging$1;
12183
12245
  }
12184
12246
  interface Sorting$1 {
@@ -12203,13 +12265,13 @@ interface CursorPaging$1 {
12203
12265
  cursor?: string | null;
12204
12266
  }
12205
12267
  interface QuerySchemasResponse$1 {
12206
- /** List of Schemas. */
12268
+ /** List of translation schemas. */
12207
12269
  schemas?: Schema$1[];
12208
- /** Paging metadata */
12270
+ /** Paging metadata for the next page of results. */
12209
12271
  pagingMetadata?: CursorPagingMetadata$1;
12210
12272
  }
12211
12273
  interface CursorPagingMetadata$1 {
12212
- /** Number of items returned in the response. */
12274
+ /** Number of items returned in current page. */
12213
12275
  count?: number | null;
12214
12276
  /** Cursor strings that point to the next page, previous page, or both. */
12215
12277
  cursors?: Cursors$1;
@@ -12232,9 +12294,9 @@ interface ListSiteSchemasRequest$1 {
12232
12294
  paging?: CursorPaging$1;
12233
12295
  }
12234
12296
  interface ListSiteSchemasResponse$1 {
12235
- /** List of Schemas. */
12297
+ /** List of translation schemas. */
12236
12298
  schemas?: Schema$1[];
12237
- /** Paging metadata */
12299
+ /** Paging metadata for the next page of results. */
12238
12300
  pagingMetadata?: CursorPagingMetadata$1;
12239
12301
  }
12240
12302
  interface SchemaKeyNonNullableFields$1 {
@@ -12260,29 +12322,35 @@ interface ListSiteSchemasResponseNonNullableFields$1 {
12260
12322
 
12261
12323
  interface Schema {
12262
12324
  /**
12263
- * Schema ID.
12325
+ * Translation schema ID.
12264
12326
  * @readonly
12265
12327
  */
12266
12328
  _id?: string | null;
12267
- /** (compound key) Schema key. */
12329
+ /** Translation schema unique key identifier. */
12268
12330
  key?: SchemaKey;
12269
- /** A list of unique fields on the entity in the specific language */
12331
+ /** List of fields for the translation schema. This property uses a string to map to a `SchemaField` (`Map<string, SchemaField>`). The string serves as a key, which you'll need to access each field in the schema and when adding translation content. */
12270
12332
  fields?: Record<string, SchemaField>;
12271
- /** Fields that will be displayed in content previews (e.g., product name for products). */
12333
+ /** Fields displayed in content previews. For example, a product name for a product translation schema. */
12272
12334
  previewFields?: PreviewFields;
12273
- /** Whether the schema is hidden from the site. */
12335
+ /** Whether the translation schema is hidden from the site. */
12274
12336
  hidden?: boolean | null;
12275
- /** The name of the schema */
12337
+ /** Translation schema name. */
12276
12338
  displayName?: string | null;
12277
- /** Higher level schema, group_by_name will point to an entity of this schema. */
12339
+ /** A reference to the parent schema defined by the app developer. For example, if the schema is for a menu item, this property would link to the schema of the menu it belongs to. */
12278
12340
  parentId?: string | null;
12279
12341
  /** @readonly */
12280
12342
  revision?: string | null;
12281
- /** @readonly */
12343
+ /**
12344
+ * Date and time the translation schema was created.
12345
+ * @readonly
12346
+ */
12282
12347
  _createdDate?: Date;
12283
- /** @readonly */
12348
+ /**
12349
+ * Date and time the translation schema was updated.
12350
+ * @readonly
12351
+ */
12284
12352
  _updatedDate?: Date;
12285
- /** indicate if the content should be duplicated when the site is cloned */
12353
+ /** Whether to duplicate the translated content in the schema when a site containing the translation schema and content is duplicated. */
12286
12354
  duplicateContent?: boolean | null;
12287
12355
  }
12288
12356
  interface SchemaKey {
@@ -12291,9 +12359,14 @@ interface SchemaKey {
12291
12359
  * @readonly
12292
12360
  */
12293
12361
  appId?: string;
12294
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
12362
+ /** A unique name defined by the app developer to differentiate translation schemas for various entities within their app. For example, if an app developer is creating a translation schema for blog posts, the `entityType` can be `'blog-posts'`. */
12295
12363
  entityType?: string;
12296
- /** Scope schema is defined in (Global/Site) */
12364
+ /**
12365
+ * Scope of the translation schema.
12366
+ * Supported values:
12367
+ * + `GLOBAL`: A global schema for all sites.
12368
+ * + `SITE`: A custom schema for a specific site.
12369
+ */
12297
12370
  scope?: SchemaScope;
12298
12371
  }
12299
12372
  declare enum SchemaScope {
@@ -12305,27 +12378,38 @@ declare enum SchemaScope {
12305
12378
  }
12306
12379
  interface SchemaField {
12307
12380
  /**
12308
- * Field ID.
12381
+ * Field ID. 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 `^[^)(\\]\\[\\.]+$`.
12309
12382
  * @readonly
12310
12383
  */
12311
12384
  _id?: string;
12312
- /** Field type. */
12385
+ /**
12386
+ * Field type.
12387
+ * Supported values:
12388
+ * + `SHORT_TEXT`: Short plain text.
12389
+ * + `LONG_TEXT`: Long plain text.
12390
+ * + `HTML`: Long text including styles, images, and links.
12391
+ * + `RICH_CONTENT`: Rich-Content using the [Wix Ricos.js](https://dev.wix.com/docs/go-headless/tutorials-templates/other-tutorials/working-with-rich-content) format.
12392
+ * + `IMAGE`: Wix Media Manager image.
12393
+ * + `IMAGE_LINK`: Image URL without metadata.
12394
+ * + `VIDEO`: Wix Media Manager video.
12395
+ * + `DOCUMENT`: Wix Media Manager document.
12396
+ */
12313
12397
  type?: FieldType;
12314
- /** Field descriptive name. */
12398
+ /** Field name. */
12315
12399
  displayName?: string | null;
12316
- /** Field semantic grouping */
12400
+ /** Field group name. */
12317
12401
  groupName?: string | null;
12318
- /** Field minimum length (in case of text field) */
12402
+ /** Field minimum text length. */
12319
12403
  minLength?: number | null;
12320
- /** Field maximum length (in case text field) */
12404
+ /** Field maximum text length. */
12321
12405
  maxLength?: number | null;
12322
- /** Field format. If set - must be one of the values of wix.api.format as string (case insensitive) */
12406
+ /** Field format. The content will be validated based on the format set here in the field schema. For example, if the format is `EMAIL`, then the content for this field must be a valid email address. */
12323
12407
  format?: string | null;
12324
- /** Whether the field is hidden from the site. Hidden field constraints (type, min/max length) are still active! */
12408
+ /** Whether the field is hidden from the site. Hidden fields are still validated. */
12325
12409
  hidden?: boolean;
12326
- /** Whether the field is for display only and should not allowed to be translated */
12410
+ /** Whether the field is read-only, and is not meant to be translated. For example, an image. Use this field as a way to provide more context for the field in the Multilingual Dashboard. */
12327
12411
  displayOnly?: boolean;
12328
- /** In cases where the order of the fields holds meaning, use this index */
12412
+ /** Field index. Use for cases where the order of the fields are relevant. */
12329
12413
  index?: number | null;
12330
12414
  }
12331
12415
  declare enum FieldType {
@@ -12357,46 +12441,52 @@ interface PreviewFields {
12357
12441
  imageFieldId?: string | null;
12358
12442
  }
12359
12443
  interface GetSchemaRequest {
12360
- /** ID of the Schema to retrieve. */
12444
+ /** ID of the translation schema to retrieve. */
12361
12445
  schemaId: string;
12362
12446
  }
12363
12447
  interface GetSchemaResponse {
12364
- /** The requested Schema. */
12448
+ /** The requested translation schema. */
12365
12449
  schema?: Schema;
12366
12450
  }
12367
12451
  interface GetSchemaByKeyRequest {
12368
- /** ID of the Schema to retrieve. */
12452
+ /** ID of the translation schema to retrieve. */
12369
12453
  key: SchemaKey;
12370
12454
  }
12371
12455
  interface GetSchemaByKeyResponse {
12372
- /** The requested Schema. */
12456
+ /** The requested translation schema. */
12373
12457
  schema?: Schema;
12374
12458
  }
12375
12459
  interface QuerySchemasRequest {
12376
- /** WQL expression. */
12460
+ /** Query options. */
12377
12461
  query?: CursorQuery;
12378
12462
  }
12379
12463
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
12380
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
12464
+ /**
12465
+ * Cursor paging options.
12466
+ *
12467
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
12468
+ */
12381
12469
  cursorPaging?: CursorPaging;
12382
12470
  /**
12383
- * Filter object in the following format:
12384
- * `"filter" : {
12385
- * "fieldName1": "value1",
12386
- * "fieldName2":{"$operator":"value2"}
12387
- * }`
12388
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
12471
+ * Filter object.
12472
+ *
12473
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
12389
12474
  */
12390
12475
  filter?: Record<string, any> | null;
12391
12476
  /**
12392
- * Sort object in the following format:
12393
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
12477
+ * Sort object.
12478
+ *
12479
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
12394
12480
  */
12395
12481
  sort?: Sorting[];
12396
12482
  }
12397
12483
  /** @oneof */
12398
12484
  interface CursorQueryPagingMethodOneOf {
12399
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
12485
+ /**
12486
+ * Cursor paging options.
12487
+ *
12488
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
12489
+ */
12400
12490
  cursorPaging?: CursorPaging;
12401
12491
  }
12402
12492
  interface Sorting {
@@ -12421,13 +12511,13 @@ interface CursorPaging {
12421
12511
  cursor?: string | null;
12422
12512
  }
12423
12513
  interface QuerySchemasResponse {
12424
- /** List of Schemas. */
12514
+ /** List of translation schemas. */
12425
12515
  schemas?: Schema[];
12426
- /** Paging metadata */
12516
+ /** Paging metadata for the next page of results. */
12427
12517
  pagingMetadata?: CursorPagingMetadata;
12428
12518
  }
12429
12519
  interface CursorPagingMetadata {
12430
- /** Number of items returned in the response. */
12520
+ /** Number of items returned in current page. */
12431
12521
  count?: number | null;
12432
12522
  /** Cursor strings that point to the next page, previous page, or both. */
12433
12523
  cursors?: Cursors;
@@ -12450,9 +12540,9 @@ interface ListSiteSchemasRequest {
12450
12540
  paging?: CursorPaging;
12451
12541
  }
12452
12542
  interface ListSiteSchemasResponse {
12453
- /** List of Schemas. */
12543
+ /** List of translation schemas. */
12454
12544
  schemas?: Schema[];
12455
- /** Paging metadata */
12545
+ /** Paging metadata for the next page of results. */
12456
12546
  pagingMetadata?: CursorPagingMetadata;
12457
12547
  }
12458
12548
  interface SchemaKeyNonNullableFields {