@wix/multilingual 1.0.51 → 1.0.52

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.
@@ -37,10 +37,9 @@ declare namespace meta$5 {
37
37
  export { type __PublicMethodMetaInfo$5 as __PublicMethodMetaInfo, meta$5_syncEditorData as syncEditorData };
38
38
  }
39
39
 
40
- /** Represents a content of an entity with its published translations */
41
40
  interface PublishedContent$1 {
42
41
  /**
43
- * Pubished content ID.
42
+ * Published content ID.
44
43
  * @readonly
45
44
  */
46
45
  id?: string | null;
@@ -58,14 +57,14 @@ interface PublishedContent$1 {
58
57
  locale?: string;
59
58
  /** List of fields that have been translated and published for the given locale. */
60
59
  fields?: PublishedContentField$1[];
61
- /** 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 of the menu it belongs to. */
60
+ /** A reference to the parent content. For example, if the content is a menu item, this property would contain the `entityId` of the menu it belongs to. */
62
61
  parentEntityId?: string | null;
63
62
  /** Custom field data for the published content object. */
64
63
  extendedFields?: ExtendedFields$1;
65
64
  }
66
65
  interface SchemaKey$3 {
67
66
  /**
68
- * ID of app that created the schema.
67
+ * ID of the app that created the schema.
69
68
  * @readonly
70
69
  */
71
70
  appId?: string;
@@ -1765,10 +1764,9 @@ interface QueryPublishedContentResponseNonNullableFields$1 {
1765
1764
  publishedContent: PublishedContentNonNullableFields$1[];
1766
1765
  }
1767
1766
 
1768
- /** Represents a content of an entity with its published translations */
1769
1767
  interface PublishedContent {
1770
1768
  /**
1771
- * Pubished content ID.
1769
+ * Published content ID.
1772
1770
  * @readonly
1773
1771
  */
1774
1772
  _id?: string | null;
@@ -1786,14 +1784,14 @@ interface PublishedContent {
1786
1784
  locale?: string;
1787
1785
  /** List of fields that have been translated and published for the given locale. */
1788
1786
  fields?: PublishedContentField[];
1789
- /** 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 of the menu it belongs to. */
1787
+ /** A reference to the parent content. For example, if the content is a menu item, this property would contain the `entityId` of the menu it belongs to. */
1790
1788
  parentEntityId?: string | null;
1791
1789
  /** Custom field data for the published content object. */
1792
1790
  extendedFields?: ExtendedFields;
1793
1791
  }
1794
1792
  interface SchemaKey$2 {
1795
1793
  /**
1796
- * ID of app that created the schema.
1794
+ * ID of the app that created the schema.
1797
1795
  * @readonly
1798
1796
  */
1799
1797
  appId?: string;
@@ -7822,20 +7820,20 @@ interface Content$1 {
7822
7820
  locale?: string;
7823
7821
  /** 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. */
7824
7822
  fields?: Record<string, ContentField$1>;
7825
- /** 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. */
7823
+ /** A reference to the parent content. For example, if the content is a menu item, this property would contain the `entityId` of the menu it belongs to. */
7826
7824
  parentEntityId?: string | null;
7827
7825
  /**
7828
7826
  * The aggregated published status across all content fields.
7829
7827
  *
7830
7828
  * Supported values:
7831
- * + `UNPUBLISHED`: None of the fields have been published to the live site.
7832
- * + `PUBLISHED`: All of the fields have been published to the live site and are visible to site visitors.
7833
- * + `PARTIALLY_PUBLISHED`: Some of the fields have been published to the live site and are visible to site visitors.
7829
+ * + `UNPUBLISHED`: None of the fields have been sent for publication.
7830
+ * + `PUBLISHED`: All of the fields have been sent for publication.
7831
+ * + `PARTIALLY_PUBLISHED`: Some of the fields have been sent for publication.
7834
7832
  * @readonly
7835
7833
  */
7836
7834
  publishStatus?: PublishStatus$1;
7837
7835
  /**
7838
- * Contains the value of the preview field according to the schema if exists.
7836
+ * Contains the value of the preview field if the schema defines one.
7839
7837
  * @readonly
7840
7838
  */
7841
7839
  previewField?: string | null;
@@ -7862,18 +7860,22 @@ interface ContentField$1 extends ContentFieldValueOneOf$1 {
7862
7860
  /** Wix Media Manager document. */
7863
7861
  document?: Document;
7864
7862
  /**
7865
- * 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 `^[^)(\\]\\[\\.]+$`.
7863
+ * Field unique identifier. Validated according to Regex `^[A-Za-z0-9-_)(]+$`. Field IDs may contain parentheses to reference repeated items, such as images. These parentheses can't be nested and each opening parenthesis must be followed by a closing one. For example, `title()()` is valid, while `title)(` and `title(())` aren't valid. The value inside the parenthesis is validated according to Regex `^[^)(\\]\\[\\.]+$`.
7866
7864
  * @readonly
7867
7865
  */
7868
7866
  id?: string;
7869
- /** Whether to publish the translation content to the live site, making it visible to site visitors. */
7867
+ /**
7868
+ * Whether to publish the translation content to the live site, making it visible to site visitors.
7869
+ *
7870
+ * Default: `false`
7871
+ */
7870
7872
  published?: boolean;
7871
7873
  /**
7872
- * The source that updated the translation content.
7874
+ * *Required.** The source that updated the translation content.
7873
7875
  * Supported values:
7874
- * + `USER`: The site owner.
7875
- * + `EXTERNAL_APP`: An external translation app. For example, Smartling.
7876
- * + `Machine`: Auto translaton service. For example, Google Translate.
7876
+ * + `USER`: The Wix user.
7877
+ * + `EXTERNAL_APP`: An external translation app.
7878
+ * + `MACHINE`: Machine translaton service.
7877
7879
  */
7878
7880
  updatedBy?: UpdaterIdentity$1;
7879
7881
  /**
@@ -9210,7 +9212,7 @@ interface UpdateContentResponse$1 {
9210
9212
  content?: Content$1;
9211
9213
  }
9212
9214
  interface UpdateContentByKeyRequest$1 {
9213
- /** Content to be updated, may be partial. */
9215
+ /** Content to update. */
9214
9216
  content: Content$1;
9215
9217
  }
9216
9218
  interface UpdateContentByKeyResponse$1 {
@@ -9303,7 +9305,7 @@ interface Cursors$3 {
9303
9305
  prev?: string | null;
9304
9306
  }
9305
9307
  interface SearchContentsRequest$1 {
9306
- /** WQL expression, Aggregation and Search */
9308
+ /** Search query and aggregation information. */
9307
9309
  search?: CursorSearch$1;
9308
9310
  }
9309
9311
  interface CursorSearch$1 extends CursorSearchPagingMethodOneOf$1 {
@@ -9761,7 +9763,7 @@ interface ApplicationError$1 {
9761
9763
  interface BulkContentResult$1 {
9762
9764
  /** Item metadata. */
9763
9765
  itemMetadata?: ItemMetadata$1;
9764
- /** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
9766
+ /** Translation content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
9765
9767
  item?: Content$1;
9766
9768
  }
9767
9769
  interface BulkActionMetadata$1 {
@@ -9773,7 +9775,7 @@ interface BulkActionMetadata$1 {
9773
9775
  undetailedFailures?: number;
9774
9776
  }
9775
9777
  interface BulkUpdateContentRequest$1 {
9776
- /** Contents to be updated. TODO: think again if we want to increase maxSize */
9778
+ /** Translation content items to update. */
9777
9779
  contents: BulkUpdateContentRequestMaskedContent$1[];
9778
9780
  /** Whether to include the updated translation content items in the response. Set to `true` to receive the translation content items in the response. */
9779
9781
  returnEntity?: boolean;
@@ -9791,33 +9793,33 @@ interface BulkUpdateContentResponse$1 {
9791
9793
  interface BulkUpdateContentResponseBulkContentResult$1 {
9792
9794
  /** Item metadata. */
9793
9795
  itemMetadata?: ItemMetadata$1;
9794
- /** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
9796
+ /** Translation content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
9795
9797
  item?: Content$1;
9796
9798
  }
9797
9799
  interface BulkUpdateContentByKeyRequest$1 {
9798
- /** Contents to be updated. TODO: think again if we want to increase maxSize */
9800
+ /** Translation content items to update. */
9799
9801
  contents: MaskedContent$1[];
9800
- /** set to `true` if you wish to receive back the created contents in the response */
9802
+ /** Whether to include the created translation content items in the response. Set to `true` to receive the translation content items in the response. */
9801
9803
  returnEntity?: boolean;
9802
9804
  }
9803
9805
  interface MaskedContent$1 {
9804
- /** Content to be updated, may be partial */
9806
+ /** Translation content to update. */
9805
9807
  content?: Content$1;
9806
9808
  }
9807
9809
  interface BulkUpdateContentByKeyResponse$1 {
9808
- /** List of results */
9810
+ /** Items created by bulk action. */
9809
9811
  results?: BulkUpdateContentByKeyResponseBulkContentResult$1[];
9810
- /** metadata */
9812
+ /** Bulk action metadata. */
9811
9813
  bulkActionMetadata?: BulkActionMetadata$1;
9812
9814
  }
9813
9815
  interface BulkUpdateContentByKeyResponseBulkContentResult$1 {
9814
- /** metadata */
9816
+ /** Item metadata. */
9815
9817
  itemMetadata?: ItemMetadata$1;
9816
- /** Only exists if `returnEntity` was set to true in the request */
9818
+ /** Translation content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
9817
9819
  item?: Content$1;
9818
9820
  }
9819
9821
  interface BulkDeleteContentRequest$1 {
9820
- /** Content ids to be deleted. TODO: think again if we want to increase maxSize */
9822
+ /** IDs of the translation content items to delete. */
9821
9823
  contentIds: string[];
9822
9824
  }
9823
9825
  interface BulkDeleteContentResponse$1 {
@@ -9967,20 +9969,20 @@ interface Content {
9967
9969
  locale?: string;
9968
9970
  /** 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. */
9969
9971
  fields?: Record<string, ContentField>;
9970
- /** 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. */
9972
+ /** A reference to the parent content. For example, if the content is a menu item, this property would contain the `entityId` of the menu it belongs to. */
9971
9973
  parentEntityId?: string | null;
9972
9974
  /**
9973
9975
  * The aggregated published status across all content fields.
9974
9976
  *
9975
9977
  * Supported values:
9976
- * + `UNPUBLISHED`: None of the fields have been published to the live site.
9977
- * + `PUBLISHED`: All of the fields have been published to the live site and are visible to site visitors.
9978
- * + `PARTIALLY_PUBLISHED`: Some of the fields have been published to the live site and are visible to site visitors.
9978
+ * + `UNPUBLISHED`: None of the fields have been sent for publication.
9979
+ * + `PUBLISHED`: All of the fields have been sent for publication.
9980
+ * + `PARTIALLY_PUBLISHED`: Some of the fields have been sent for publication.
9979
9981
  * @readonly
9980
9982
  */
9981
9983
  publishStatus?: PublishStatus;
9982
9984
  /**
9983
- * Contains the value of the preview field according to the schema if exists.
9985
+ * Contains the value of the preview field if the schema defines one.
9984
9986
  * @readonly
9985
9987
  */
9986
9988
  previewField?: string | null;
@@ -10007,18 +10009,22 @@ interface ContentField extends ContentFieldValueOneOf {
10007
10009
  /** Wix Media Manager document. */
10008
10010
  document?: string;
10009
10011
  /**
10010
- * 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 `^[^)(\\]\\[\\.]+$`.
10012
+ * Field unique identifier. Validated according to Regex `^[A-Za-z0-9-_)(]+$`. Field IDs may contain parentheses to reference repeated items, such as images. These parentheses can't be nested and each opening parenthesis must be followed by a closing one. For example, `title()()` is valid, while `title)(` and `title(())` aren't valid. The value inside the parenthesis is validated according to Regex `^[^)(\\]\\[\\.]+$`.
10011
10013
  * @readonly
10012
10014
  */
10013
10015
  _id?: string;
10014
- /** Whether to publish the translation content to the live site, making it visible to site visitors. */
10016
+ /**
10017
+ * Whether to publish the translation content to the live site, making it visible to site visitors.
10018
+ *
10019
+ * Default: `false`
10020
+ */
10015
10021
  published?: boolean;
10016
10022
  /**
10017
- * The source that updated the translation content.
10023
+ * *Required.** The source that updated the translation content.
10018
10024
  * Supported values:
10019
- * + `USER`: The site owner.
10020
- * + `EXTERNAL_APP`: An external translation app. For example, Smartling.
10021
- * + `Machine`: Auto translaton service. For example, Google Translate.
10025
+ * + `USER`: The Wix user.
10026
+ * + `EXTERNAL_APP`: An external translation app.
10027
+ * + `MACHINE`: Machine translaton service.
10022
10028
  */
10023
10029
  updatedBy?: UpdaterIdentity;
10024
10030
  /**
@@ -11300,7 +11306,7 @@ interface UpdateContentResponse {
11300
11306
  content?: Content;
11301
11307
  }
11302
11308
  interface UpdateContentByKeyRequest {
11303
- /** Content to be updated, may be partial. */
11309
+ /** Content to update. */
11304
11310
  content: Content;
11305
11311
  }
11306
11312
  interface UpdateContentByKeyResponse {
@@ -11393,7 +11399,7 @@ interface Cursors$2 {
11393
11399
  prev?: string | null;
11394
11400
  }
11395
11401
  interface SearchContentsRequest {
11396
- /** WQL expression, Aggregation and Search */
11402
+ /** Search query and aggregation information. */
11397
11403
  search?: CursorSearch;
11398
11404
  }
11399
11405
  interface CursorSearch extends CursorSearchPagingMethodOneOf {
@@ -11851,7 +11857,7 @@ interface ApplicationError {
11851
11857
  interface BulkContentResult {
11852
11858
  /** Item metadata. */
11853
11859
  itemMetadata?: ItemMetadata;
11854
- /** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
11860
+ /** Translation content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
11855
11861
  item?: Content;
11856
11862
  }
11857
11863
  interface BulkActionMetadata {
@@ -11863,7 +11869,7 @@ interface BulkActionMetadata {
11863
11869
  undetailedFailures?: number;
11864
11870
  }
11865
11871
  interface BulkUpdateContentRequest {
11866
- /** Contents to be updated. TODO: think again if we want to increase maxSize */
11872
+ /** Translation content items to update. */
11867
11873
  contents: BulkUpdateContentRequestMaskedContent[];
11868
11874
  /** Whether to include the updated translation content items in the response. Set to `true` to receive the translation content items in the response. */
11869
11875
  returnEntity?: boolean;
@@ -11881,33 +11887,33 @@ interface BulkUpdateContentResponse {
11881
11887
  interface BulkUpdateContentResponseBulkContentResult {
11882
11888
  /** Item metadata. */
11883
11889
  itemMetadata?: ItemMetadata;
11884
- /** Translation Content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
11890
+ /** Translation content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
11885
11891
  item?: Content;
11886
11892
  }
11887
11893
  interface BulkUpdateContentByKeyRequest {
11888
- /** Contents to be updated. TODO: think again if we want to increase maxSize */
11894
+ /** Translation content items to update. */
11889
11895
  contents: MaskedContent[];
11890
- /** set to `true` if you wish to receive back the created contents in the response */
11896
+ /** Whether to include the created translation content items in the response. Set to `true` to receive the translation content items in the response. */
11891
11897
  returnEntity?: boolean;
11892
11898
  }
11893
11899
  interface MaskedContent {
11894
- /** Content to be updated, may be partial */
11900
+ /** Translation content to update. */
11895
11901
  content?: Content;
11896
11902
  }
11897
11903
  interface BulkUpdateContentByKeyResponse {
11898
- /** List of results */
11904
+ /** Items created by bulk action. */
11899
11905
  results?: BulkUpdateContentByKeyResponseBulkContentResult[];
11900
- /** metadata */
11906
+ /** Bulk action metadata. */
11901
11907
  bulkActionMetadata?: BulkActionMetadata;
11902
11908
  }
11903
11909
  interface BulkUpdateContentByKeyResponseBulkContentResult {
11904
- /** metadata */
11910
+ /** Item metadata. */
11905
11911
  itemMetadata?: ItemMetadata;
11906
- /** Only exists if `returnEntity` was set to true in the request */
11912
+ /** Translation content. This field is only returned if the operation was successful and `returnEntity` was set to true in the request. */
11907
11913
  item?: Content;
11908
11914
  }
11909
11915
  interface BulkDeleteContentRequest {
11910
- /** Content ids to be deleted. TODO: think again if we want to increase maxSize */
11916
+ /** IDs of the translation content items to delete. */
11911
11917
  contentIds: string[];
11912
11918
  }
11913
11919
  interface BulkDeleteContentResponse {
@@ -12098,13 +12104,20 @@ interface Schema$1 {
12098
12104
  fields?: Record<string, SchemaField$1>;
12099
12105
  /** Fields displayed in content previews. For example, a product name for a product translation schema. */
12100
12106
  previewFields?: PreviewFields$1;
12101
- /** Whether the translation schema is hidden from the site. */
12107
+ /**
12108
+ * Whether the translation schema is hidden from the site.
12109
+ *
12110
+ * Default: `false`
12111
+ */
12102
12112
  hidden?: boolean | null;
12103
- /** Translation schema name. */
12113
+ /** Translation schema name displayed in the https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager. */
12104
12114
  displayName?: string | null;
12105
- /** 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. */
12115
+ /** A reference to the parent schema. For example, if the schema is for a menu item, this property would contain the schema ID of the menu it belongs to. */
12106
12116
  parentId?: string | null;
12107
- /** @readonly */
12117
+ /**
12118
+ * Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing `revision` must be used when updating a schema.
12119
+ * @readonly
12120
+ */
12108
12121
  revision?: string | null;
12109
12122
  /**
12110
12123
  * Date and time the translation schema was created.
@@ -12116,12 +12129,16 @@ interface Schema$1 {
12116
12129
  * @readonly
12117
12130
  */
12118
12131
  updatedDate?: Date;
12119
- /** Whether to duplicate the translated content in the schema when a site containing the translation schema and content is duplicated. */
12132
+ /**
12133
+ * Whether to duplicate the translated content when a site containing the translation schema and content is duplicated.
12134
+ *
12135
+ * Default: `false`
12136
+ */
12120
12137
  duplicateContent?: boolean | null;
12121
12138
  }
12122
12139
  interface SchemaKey$1 {
12123
12140
  /**
12124
- * ID of app that created the schema.
12141
+ * ID of the app that created the schema.
12125
12142
  * @readonly
12126
12143
  */
12127
12144
  appId?: string;
@@ -12144,24 +12161,24 @@ declare enum SchemaScope$1 {
12144
12161
  }
12145
12162
  interface SchemaField$1 {
12146
12163
  /**
12147
- * 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 `^[^)(\\]\\[\\.]+$`.
12164
+ * Field ID. Validated according to Regex `^[A-Za-z0-9-_)(]+$`. Field IDs may contain parentheses to reference repeated items, such as images. These parentheses can't be nested and each opening parenthesis must be followed by a closing one. For example, `title()()` is valid, while `title)(` and `title(())` aren't valid. The value inside the parenthesis is validated according to Regex `^[^)(\\]\\[\\.]+$`.
12148
12165
  * @readonly
12149
12166
  */
12150
12167
  id?: string;
12151
12168
  /**
12152
- * Field type.
12169
+ * *Required.** Field type.
12153
12170
  * Supported values:
12154
- * + `SHORT_TEXT`: Short plain text.
12155
- * + `LONG_TEXT`: Long plain text.
12171
+ * + `SHORT_TEXT`: Short plain text displayed as a single line in the UI.
12172
+ * + `LONG_TEXT`: Long plain text displayed as multiple lines in the UI.
12156
12173
  * + `HTML`: Long text including styles, images, and links.
12157
- * + `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.
12174
+ * + `RICH_CONTENT`: Rich-Content using the [Wix Ricos](https://dev.wix.com/docs/go-headless/tutorials-templates/other-tutorials/working-with-rich-content) format.
12158
12175
  * + `IMAGE`: Wix Media Manager image.
12159
12176
  * + `IMAGE_LINK`: Image URL without metadata.
12160
12177
  * + `VIDEO`: Wix Media Manager video.
12161
12178
  * + `DOCUMENT`: Wix Media Manager document.
12162
12179
  */
12163
12180
  type?: FieldType$1;
12164
- /** Field name. */
12181
+ /** Field name displayed in the https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager. */
12165
12182
  displayName?: string | null;
12166
12183
  /** Field group name. */
12167
12184
  groupName?: string | null;
@@ -12169,11 +12186,11 @@ interface SchemaField$1 {
12169
12186
  minLength?: number | null;
12170
12187
  /** Field maximum text length. */
12171
12188
  maxLength?: number | null;
12172
- /** 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. */
12189
+ /** Field format. Content is 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. */
12173
12190
  format?: string | null;
12174
12191
  /** Whether the field is hidden from the site. Hidden fields are still validated. */
12175
12192
  hidden?: boolean;
12176
- /** 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. */
12193
+ /** Whether the field is read-only, and not intended to be translated. For example, an image. Use this field when you want an image to remain in the [Translation Manager](https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager) for context, but without being translated. */
12177
12194
  displayOnly?: boolean;
12178
12195
  /** Field index. Use for cases where the order of the fields are relevant. */
12179
12196
  index?: number | null;
@@ -12201,9 +12218,9 @@ declare enum FieldType$1 {
12201
12218
  DOCUMENT = "DOCUMENT"
12202
12219
  }
12203
12220
  interface PreviewFields$1 {
12204
- /** ID of field representing the schema's title. */
12221
+ /** ID of the field representing the schema's title. */
12205
12222
  titleFieldId?: string | null;
12206
- /** ID of field representing the schema's image. */
12223
+ /** ID of the field representing the schema's image. */
12207
12224
  imageFieldId?: string | null;
12208
12225
  }
12209
12226
  interface GetSchemaRequest$1 {
@@ -12355,13 +12372,20 @@ interface Schema {
12355
12372
  fields?: Record<string, SchemaField>;
12356
12373
  /** Fields displayed in content previews. For example, a product name for a product translation schema. */
12357
12374
  previewFields?: PreviewFields;
12358
- /** Whether the translation schema is hidden from the site. */
12375
+ /**
12376
+ * Whether the translation schema is hidden from the site.
12377
+ *
12378
+ * Default: `false`
12379
+ */
12359
12380
  hidden?: boolean | null;
12360
- /** Translation schema name. */
12381
+ /** Translation schema name displayed in the https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager. */
12361
12382
  displayName?: string | null;
12362
- /** 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. */
12383
+ /** A reference to the parent schema. For example, if the schema is for a menu item, this property would contain the schema ID of the menu it belongs to. */
12363
12384
  parentId?: string | null;
12364
- /** @readonly */
12385
+ /**
12386
+ * Revision number, which increments by 1 each time the schema is updated. To prevent conflicting changes, the existing `revision` must be used when updating a schema.
12387
+ * @readonly
12388
+ */
12365
12389
  revision?: string | null;
12366
12390
  /**
12367
12391
  * Date and time the translation schema was created.
@@ -12373,12 +12397,16 @@ interface Schema {
12373
12397
  * @readonly
12374
12398
  */
12375
12399
  _updatedDate?: Date;
12376
- /** Whether to duplicate the translated content in the schema when a site containing the translation schema and content is duplicated. */
12400
+ /**
12401
+ * Whether to duplicate the translated content when a site containing the translation schema and content is duplicated.
12402
+ *
12403
+ * Default: `false`
12404
+ */
12377
12405
  duplicateContent?: boolean | null;
12378
12406
  }
12379
12407
  interface SchemaKey {
12380
12408
  /**
12381
- * ID of app that created the schema.
12409
+ * ID of the app that created the schema.
12382
12410
  * @readonly
12383
12411
  */
12384
12412
  appId?: string;
@@ -12401,24 +12429,24 @@ declare enum SchemaScope {
12401
12429
  }
12402
12430
  interface SchemaField {
12403
12431
  /**
12404
- * 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 `^[^)(\\]\\[\\.]+$`.
12432
+ * Field ID. Validated according to Regex `^[A-Za-z0-9-_)(]+$`. Field IDs may contain parentheses to reference repeated items, such as images. These parentheses can't be nested and each opening parenthesis must be followed by a closing one. For example, `title()()` is valid, while `title)(` and `title(())` aren't valid. The value inside the parenthesis is validated according to Regex `^[^)(\\]\\[\\.]+$`.
12405
12433
  * @readonly
12406
12434
  */
12407
12435
  _id?: string;
12408
12436
  /**
12409
- * Field type.
12437
+ * *Required.** Field type.
12410
12438
  * Supported values:
12411
- * + `SHORT_TEXT`: Short plain text.
12412
- * + `LONG_TEXT`: Long plain text.
12439
+ * + `SHORT_TEXT`: Short plain text displayed as a single line in the UI.
12440
+ * + `LONG_TEXT`: Long plain text displayed as multiple lines in the UI.
12413
12441
  * + `HTML`: Long text including styles, images, and links.
12414
- * + `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.
12442
+ * + `RICH_CONTENT`: Rich-Content using the [Wix Ricos](https://dev.wix.com/docs/go-headless/tutorials-templates/other-tutorials/working-with-rich-content) format.
12415
12443
  * + `IMAGE`: Wix Media Manager image.
12416
12444
  * + `IMAGE_LINK`: Image URL without metadata.
12417
12445
  * + `VIDEO`: Wix Media Manager video.
12418
12446
  * + `DOCUMENT`: Wix Media Manager document.
12419
12447
  */
12420
12448
  type?: FieldType;
12421
- /** Field name. */
12449
+ /** Field name displayed in the https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager. */
12422
12450
  displayName?: string | null;
12423
12451
  /** Field group name. */
12424
12452
  groupName?: string | null;
@@ -12426,11 +12454,11 @@ interface SchemaField {
12426
12454
  minLength?: number | null;
12427
12455
  /** Field maximum text length. */
12428
12456
  maxLength?: number | null;
12429
- /** 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. */
12457
+ /** Field format. Content is 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. */
12430
12458
  format?: string | null;
12431
12459
  /** Whether the field is hidden from the site. Hidden fields are still validated. */
12432
12460
  hidden?: boolean;
12433
- /** 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. */
12461
+ /** Whether the field is read-only, and not intended to be translated. For example, an image. Use this field when you want an image to remain in the [Translation Manager](https://support.wix.com/en/article/wix-multilingual-using-the-translation-manager) for context, but without being translated. */
12434
12462
  displayOnly?: boolean;
12435
12463
  /** Field index. Use for cases where the order of the fields are relevant. */
12436
12464
  index?: number | null;
@@ -12458,9 +12486,9 @@ declare enum FieldType {
12458
12486
  DOCUMENT = "DOCUMENT"
12459
12487
  }
12460
12488
  interface PreviewFields {
12461
- /** ID of field representing the schema's title. */
12489
+ /** ID of the field representing the schema's title. */
12462
12490
  titleFieldId?: string | null;
12463
- /** ID of field representing the schema's image. */
12491
+ /** ID of the field representing the schema's image. */
12464
12492
  imageFieldId?: string | null;
12465
12493
  }
12466
12494
  interface GetSchemaRequest {