@wix/multilingual 1.0.37 → 1.0.39

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.
@@ -40,26 +40,27 @@ declare namespace meta$5 {
40
40
  /** Represents a content of an entity with its published translations */
41
41
  interface PublishedContent$1 {
42
42
  /**
43
- * Content ID.
43
+ * Pubished content ID.
44
44
  * @readonly
45
45
  */
46
46
  id?: string | null;
47
- /** Schema key of the content. */
47
+ /** Schema key of the published content. */
48
48
  schemaKey?: SchemaKey$3;
49
49
  /**
50
- * Unique identifier that represents a specific entity under the schema key
50
+ * 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'`.
51
51
  * @readonly
52
52
  */
53
53
  entityId?: string;
54
54
  /**
55
- * Indicates the locale of this content
55
+ * Published content locale.
56
56
  * @readonly
57
57
  */
58
58
  locale?: string;
59
- /** List of fields localized in the given locale */
59
+ /** List of fields that have been translated and published for the given locale. */
60
60
  fields?: PublishedContentField$1[];
61
- /** Optional field for the ID of the parent of this entity. */
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. */
62
62
  parentEntityId?: string | null;
63
+ /** Custom field data for the published content object. */
63
64
  extendedFields?: ExtendedFields$1;
64
65
  }
65
66
  interface SchemaKey$3 {
@@ -68,9 +69,14 @@ interface SchemaKey$3 {
68
69
  * @readonly
69
70
  */
70
71
  appId?: string;
71
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
72
+ /** 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'`. */
72
73
  entityType?: string;
73
- /** Scope schema is defined in (Global/Site) */
74
+ /**
75
+ * Scope of the translation schema.
76
+ * Supported values:
77
+ * + `GLOBAL`: A global schema for all sites.
78
+ * + `SITE`: A custom schema for a specific site.
79
+ */
74
80
  scope?: SchemaScope$3;
75
81
  }
76
82
  declare enum SchemaScope$3 {
@@ -92,11 +98,11 @@ interface PublishedContentField$1 extends PublishedContentFieldValueOneOf$1 {
92
98
  /** Document media item */
93
99
  document?: Document$1;
94
100
  /**
95
- * The corresponding field key in the schema in a clean format (nothing between the parenthesis)
101
+ * Unique string identifier that links a specific content field to its corresponding field in the schema.
96
102
  * @readonly
97
103
  */
98
104
  schemaFieldKey?: string;
99
- /** In case of a repeated field, this will hold the IDs of the messages drilling down to this field. */
105
+ /** For repeated fields. Contains the IDs of the messages linked to this field. */
100
106
  sequenceIds?: string[];
101
107
  }
102
108
  /** @oneof */
@@ -1389,7 +1395,7 @@ interface ExtendedFields$1 {
1389
1395
  namespaces?: Record<string, Record<string, any>>;
1390
1396
  }
1391
1397
  interface QueryPublishedContentRequest$1 {
1392
- /** The query to filter the published content */
1398
+ /** Query options. Note that some query filters are required. See the API description for a list of required filters. */
1393
1399
  query: CursorQuery$5;
1394
1400
  }
1395
1401
  interface CursorQuery$5 extends CursorQueryPagingMethodOneOf$5 {
@@ -1443,9 +1449,9 @@ interface CursorPaging$5 {
1443
1449
  cursor?: string | null;
1444
1450
  }
1445
1451
  interface QueryPublishedContentResponse$1 {
1446
- /** The published content */
1452
+ /** The published translation content. */
1447
1453
  publishedContent?: PublishedContent$1[];
1448
- /** Paging information */
1454
+ /** Details on the paged set of results returned. */
1449
1455
  pagingMetadata?: CursorPagingMetadata$5;
1450
1456
  }
1451
1457
  interface CursorPagingMetadata$5 {
@@ -1760,26 +1766,27 @@ interface QueryPublishedContentResponseNonNullableFields$1 {
1760
1766
  /** Represents a content of an entity with its published translations */
1761
1767
  interface PublishedContent {
1762
1768
  /**
1763
- * Content ID.
1769
+ * Pubished content ID.
1764
1770
  * @readonly
1765
1771
  */
1766
1772
  _id?: string | null;
1767
- /** Schema key of the content. */
1773
+ /** Schema key of the published content. */
1768
1774
  schemaKey?: SchemaKey$2;
1769
1775
  /**
1770
- * Unique identifier that represents a specific entity under the schema key
1776
+ * 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'`.
1771
1777
  * @readonly
1772
1778
  */
1773
1779
  entityId?: string;
1774
1780
  /**
1775
- * Indicates the locale of this content
1781
+ * Published content locale.
1776
1782
  * @readonly
1777
1783
  */
1778
1784
  locale?: string;
1779
- /** List of fields localized in the given locale */
1785
+ /** List of fields that have been translated and published for the given locale. */
1780
1786
  fields?: PublishedContentField[];
1781
- /** Optional field for the ID of the parent of this entity. */
1787
+ /** 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. */
1782
1788
  parentEntityId?: string | null;
1789
+ /** Custom field data for the published content object. */
1783
1790
  extendedFields?: ExtendedFields;
1784
1791
  }
1785
1792
  interface SchemaKey$2 {
@@ -1788,9 +1795,14 @@ interface SchemaKey$2 {
1788
1795
  * @readonly
1789
1796
  */
1790
1797
  appId?: string;
1791
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
1798
+ /** 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'`. */
1792
1799
  entityType?: string;
1793
- /** Scope schema is defined in (Global/Site) */
1800
+ /**
1801
+ * Scope of the translation schema.
1802
+ * Supported values:
1803
+ * + `GLOBAL`: A global schema for all sites.
1804
+ * + `SITE`: A custom schema for a specific site.
1805
+ */
1794
1806
  scope?: SchemaScope$2;
1795
1807
  }
1796
1808
  declare enum SchemaScope$2 {
@@ -1812,11 +1824,11 @@ interface PublishedContentField extends PublishedContentFieldValueOneOf {
1812
1824
  /** Document media item */
1813
1825
  document?: string;
1814
1826
  /**
1815
- * The corresponding field key in the schema in a clean format (nothing between the parenthesis)
1827
+ * Unique string identifier that links a specific content field to its corresponding field in the schema.
1816
1828
  * @readonly
1817
1829
  */
1818
1830
  schemaFieldKey?: string;
1819
- /** In case of a repeated field, this will hold the IDs of the messages drilling down to this field. */
1831
+ /** For repeated fields. Contains the IDs of the messages linked to this field. */
1820
1832
  sequenceIds?: string[];
1821
1833
  }
1822
1834
  /** @oneof */
@@ -3054,7 +3066,7 @@ interface ExtendedFields {
3054
3066
  namespaces?: Record<string, Record<string, any>>;
3055
3067
  }
3056
3068
  interface QueryPublishedContentRequest {
3057
- /** The query to filter the published content */
3069
+ /** Query options. Note that some query filters are required. See the API description for a list of required filters. */
3058
3070
  query: CursorQuery$4;
3059
3071
  }
3060
3072
  interface CursorQuery$4 extends CursorQueryPagingMethodOneOf$4 {
@@ -3108,9 +3120,9 @@ interface CursorPaging$4 {
3108
3120
  cursor?: string | null;
3109
3121
  }
3110
3122
  interface QueryPublishedContentResponse {
3111
- /** The published content */
3123
+ /** The published translation content. */
3112
3124
  publishedContent?: PublishedContent[];
3113
- /** Paging information */
3125
+ /** Details on the paged set of results returned. */
3114
3126
  pagingMetadata?: CursorPagingMetadata$4;
3115
3127
  }
3116
3128
  interface CursorPagingMetadata$4 {
@@ -12030,29 +12042,35 @@ declare namespace meta$1 {
12030
12042
 
12031
12043
  interface Schema$1 {
12032
12044
  /**
12033
- * Schema ID.
12045
+ * Translation schema ID.
12034
12046
  * @readonly
12035
12047
  */
12036
12048
  id?: string | null;
12037
- /** (compound key) Schema key. */
12049
+ /** Translation schema unique key identifier. */
12038
12050
  key?: SchemaKey$1;
12039
- /** A list of unique fields on the entity in the specific language */
12051
+ /** 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. */
12040
12052
  fields?: Record<string, SchemaField$1>;
12041
- /** Fields that will be displayed in content previews (e.g., product name for products). */
12053
+ /** Fields displayed in content previews. For example, a product name for a product translation schema. */
12042
12054
  previewFields?: PreviewFields$1;
12043
- /** Whether the schema is hidden from the site. */
12055
+ /** Whether the translation schema is hidden from the site. */
12044
12056
  hidden?: boolean | null;
12045
- /** The name of the schema */
12057
+ /** Translation schema name. */
12046
12058
  displayName?: string | null;
12047
- /** Higher level schema, group_by_name will point to an entity of this schema. */
12059
+ /** 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. */
12048
12060
  parentId?: string | null;
12049
12061
  /** @readonly */
12050
12062
  revision?: string | null;
12051
- /** @readonly */
12063
+ /**
12064
+ * Date and time the translation schema was created.
12065
+ * @readonly
12066
+ */
12052
12067
  createdDate?: Date;
12053
- /** @readonly */
12068
+ /**
12069
+ * Date and time the translation schema was updated.
12070
+ * @readonly
12071
+ */
12054
12072
  updatedDate?: Date;
12055
- /** indicate if the content should be duplicated when the site is cloned */
12073
+ /** Whether to duplicate the translated content in the schema when a site containing the translation schema and content is duplicated. */
12056
12074
  duplicateContent?: boolean | null;
12057
12075
  }
12058
12076
  interface SchemaKey$1 {
@@ -12061,9 +12079,14 @@ interface SchemaKey$1 {
12061
12079
  * @readonly
12062
12080
  */
12063
12081
  appId?: string;
12064
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
12082
+ /** 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'`. */
12065
12083
  entityType?: string;
12066
- /** Scope schema is defined in (Global/Site) */
12084
+ /**
12085
+ * Scope of the translation schema.
12086
+ * Supported values:
12087
+ * + `GLOBAL`: A global schema for all sites.
12088
+ * + `SITE`: A custom schema for a specific site.
12089
+ */
12067
12090
  scope?: SchemaScope$1;
12068
12091
  }
12069
12092
  declare enum SchemaScope$1 {
@@ -12075,27 +12098,38 @@ declare enum SchemaScope$1 {
12075
12098
  }
12076
12099
  interface SchemaField$1 {
12077
12100
  /**
12078
- * Field ID.
12101
+ * 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 `^[^)(\\]\\[\\.]+$`.
12079
12102
  * @readonly
12080
12103
  */
12081
12104
  id?: string;
12082
- /** Field type. */
12105
+ /**
12106
+ * Field type.
12107
+ * Supported values:
12108
+ * + `SHORT_TEXT`: Short plain text.
12109
+ * + `LONG_TEXT`: Long plain text.
12110
+ * + `HTML`: Long text including styles, images, and links.
12111
+ * + `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.
12112
+ * + `IMAGE`: Wix Media Manager image.
12113
+ * + `IMAGE_LINK`: Image URL without metadata.
12114
+ * + `VIDEO`: Wix Media Manager video.
12115
+ * + `DOCUMENT`: Wix Media Manager document.
12116
+ */
12083
12117
  type?: FieldType$1;
12084
- /** Field descriptive name. */
12118
+ /** Field name. */
12085
12119
  displayName?: string | null;
12086
- /** Field semantic grouping */
12120
+ /** Field group name. */
12087
12121
  groupName?: string | null;
12088
- /** Field minimum length (in case of text field) */
12122
+ /** Field minimum text length. */
12089
12123
  minLength?: number | null;
12090
- /** Field maximum length (in case text field) */
12124
+ /** Field maximum text length. */
12091
12125
  maxLength?: number | null;
12092
- /** Field format. If set - must be one of the values of wix.api.format as string (case insensitive) */
12126
+ /** 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. */
12093
12127
  format?: string | null;
12094
- /** Whether the field is hidden from the site. Hidden field constraints (type, min/max length) are still active! */
12128
+ /** Whether the field is hidden from the site. Hidden fields are still validated. */
12095
12129
  hidden?: boolean;
12096
- /** Whether the field is for display only and should not allowed to be translated */
12130
+ /** 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. */
12097
12131
  displayOnly?: boolean;
12098
- /** In cases where the order of the fields holds meaning, use this index */
12132
+ /** Field index. Use for cases where the order of the fields are relevant. */
12099
12133
  index?: number | null;
12100
12134
  }
12101
12135
  declare enum FieldType$1 {
@@ -12127,46 +12161,52 @@ interface PreviewFields$1 {
12127
12161
  imageFieldId?: string | null;
12128
12162
  }
12129
12163
  interface GetSchemaRequest$1 {
12130
- /** ID of the Schema to retrieve. */
12164
+ /** ID of the translation schema to retrieve. */
12131
12165
  schemaId: string;
12132
12166
  }
12133
12167
  interface GetSchemaResponse$1 {
12134
- /** The requested Schema. */
12168
+ /** The requested translation schema. */
12135
12169
  schema?: Schema$1;
12136
12170
  }
12137
12171
  interface GetSchemaByKeyRequest$1 {
12138
- /** ID of the Schema to retrieve. */
12172
+ /** ID of the translation schema to retrieve. */
12139
12173
  key: SchemaKey$1;
12140
12174
  }
12141
12175
  interface GetSchemaByKeyResponse$1 {
12142
- /** The requested Schema. */
12176
+ /** The requested translation schema. */
12143
12177
  schema?: Schema$1;
12144
12178
  }
12145
12179
  interface QuerySchemasRequest$1 {
12146
- /** WQL expression. */
12180
+ /** Query options. */
12147
12181
  query?: CursorQuery$1;
12148
12182
  }
12149
12183
  interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
12150
- /** 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`. */
12184
+ /**
12185
+ * Cursor paging options.
12186
+ *
12187
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
12188
+ */
12151
12189
  cursorPaging?: CursorPaging$1;
12152
12190
  /**
12153
- * Filter object in the following format:
12154
- * `"filter" : {
12155
- * "fieldName1": "value1",
12156
- * "fieldName2":{"$operator":"value2"}
12157
- * }`
12158
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
12191
+ * Filter object.
12192
+ *
12193
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
12159
12194
  */
12160
12195
  filter?: Record<string, any> | null;
12161
12196
  /**
12162
- * Sort object in the following format:
12163
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
12197
+ * Sort object.
12198
+ *
12199
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
12164
12200
  */
12165
12201
  sort?: Sorting$1[];
12166
12202
  }
12167
12203
  /** @oneof */
12168
12204
  interface CursorQueryPagingMethodOneOf$1 {
12169
- /** 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`. */
12205
+ /**
12206
+ * Cursor paging options.
12207
+ *
12208
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
12209
+ */
12170
12210
  cursorPaging?: CursorPaging$1;
12171
12211
  }
12172
12212
  interface Sorting$1 {
@@ -12191,13 +12231,13 @@ interface CursorPaging$1 {
12191
12231
  cursor?: string | null;
12192
12232
  }
12193
12233
  interface QuerySchemasResponse$1 {
12194
- /** List of Schemas. */
12234
+ /** List of translation schemas. */
12195
12235
  schemas?: Schema$1[];
12196
- /** Paging metadata */
12236
+ /** Paging metadata for the next page of results. */
12197
12237
  pagingMetadata?: CursorPagingMetadata$1;
12198
12238
  }
12199
12239
  interface CursorPagingMetadata$1 {
12200
- /** Number of items returned in the response. */
12240
+ /** Number of items returned in current page. */
12201
12241
  count?: number | null;
12202
12242
  /** Cursor strings that point to the next page, previous page, or both. */
12203
12243
  cursors?: Cursors$1;
@@ -12220,9 +12260,9 @@ interface ListSiteSchemasRequest$1 {
12220
12260
  paging?: CursorPaging$1;
12221
12261
  }
12222
12262
  interface ListSiteSchemasResponse$1 {
12223
- /** List of Schemas. */
12263
+ /** List of translation schemas. */
12224
12264
  schemas?: Schema$1[];
12225
- /** Paging metadata */
12265
+ /** Paging metadata for the next page of results. */
12226
12266
  pagingMetadata?: CursorPagingMetadata$1;
12227
12267
  }
12228
12268
  interface SchemaKeyNonNullableFields$1 {
@@ -12248,29 +12288,35 @@ interface ListSiteSchemasResponseNonNullableFields$1 {
12248
12288
 
12249
12289
  interface Schema {
12250
12290
  /**
12251
- * Schema ID.
12291
+ * Translation schema ID.
12252
12292
  * @readonly
12253
12293
  */
12254
12294
  _id?: string | null;
12255
- /** (compound key) Schema key. */
12295
+ /** Translation schema unique key identifier. */
12256
12296
  key?: SchemaKey;
12257
- /** A list of unique fields on the entity in the specific language */
12297
+ /** 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. */
12258
12298
  fields?: Record<string, SchemaField>;
12259
- /** Fields that will be displayed in content previews (e.g., product name for products). */
12299
+ /** Fields displayed in content previews. For example, a product name for a product translation schema. */
12260
12300
  previewFields?: PreviewFields;
12261
- /** Whether the schema is hidden from the site. */
12301
+ /** Whether the translation schema is hidden from the site. */
12262
12302
  hidden?: boolean | null;
12263
- /** The name of the schema */
12303
+ /** Translation schema name. */
12264
12304
  displayName?: string | null;
12265
- /** Higher level schema, group_by_name will point to an entity of this schema. */
12305
+ /** 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. */
12266
12306
  parentId?: string | null;
12267
12307
  /** @readonly */
12268
12308
  revision?: string | null;
12269
- /** @readonly */
12309
+ /**
12310
+ * Date and time the translation schema was created.
12311
+ * @readonly
12312
+ */
12270
12313
  _createdDate?: Date;
12271
- /** @readonly */
12314
+ /**
12315
+ * Date and time the translation schema was updated.
12316
+ * @readonly
12317
+ */
12272
12318
  _updatedDate?: Date;
12273
- /** indicate if the content should be duplicated when the site is cloned */
12319
+ /** Whether to duplicate the translated content in the schema when a site containing the translation schema and content is duplicated. */
12274
12320
  duplicateContent?: boolean | null;
12275
12321
  }
12276
12322
  interface SchemaKey {
@@ -12279,9 +12325,14 @@ interface SchemaKey {
12279
12325
  * @readonly
12280
12326
  */
12281
12327
  appId?: string;
12282
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
12328
+ /** 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'`. */
12283
12329
  entityType?: string;
12284
- /** Scope schema is defined in (Global/Site) */
12330
+ /**
12331
+ * Scope of the translation schema.
12332
+ * Supported values:
12333
+ * + `GLOBAL`: A global schema for all sites.
12334
+ * + `SITE`: A custom schema for a specific site.
12335
+ */
12285
12336
  scope?: SchemaScope;
12286
12337
  }
12287
12338
  declare enum SchemaScope {
@@ -12293,27 +12344,38 @@ declare enum SchemaScope {
12293
12344
  }
12294
12345
  interface SchemaField {
12295
12346
  /**
12296
- * Field ID.
12347
+ * 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 `^[^)(\\]\\[\\.]+$`.
12297
12348
  * @readonly
12298
12349
  */
12299
12350
  _id?: string;
12300
- /** Field type. */
12351
+ /**
12352
+ * Field type.
12353
+ * Supported values:
12354
+ * + `SHORT_TEXT`: Short plain text.
12355
+ * + `LONG_TEXT`: Long plain text.
12356
+ * + `HTML`: Long text including styles, images, and links.
12357
+ * + `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.
12358
+ * + `IMAGE`: Wix Media Manager image.
12359
+ * + `IMAGE_LINK`: Image URL without metadata.
12360
+ * + `VIDEO`: Wix Media Manager video.
12361
+ * + `DOCUMENT`: Wix Media Manager document.
12362
+ */
12301
12363
  type?: FieldType;
12302
- /** Field descriptive name. */
12364
+ /** Field name. */
12303
12365
  displayName?: string | null;
12304
- /** Field semantic grouping */
12366
+ /** Field group name. */
12305
12367
  groupName?: string | null;
12306
- /** Field minimum length (in case of text field) */
12368
+ /** Field minimum text length. */
12307
12369
  minLength?: number | null;
12308
- /** Field maximum length (in case text field) */
12370
+ /** Field maximum text length. */
12309
12371
  maxLength?: number | null;
12310
- /** Field format. If set - must be one of the values of wix.api.format as string (case insensitive) */
12372
+ /** 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. */
12311
12373
  format?: string | null;
12312
- /** Whether the field is hidden from the site. Hidden field constraints (type, min/max length) are still active! */
12374
+ /** Whether the field is hidden from the site. Hidden fields are still validated. */
12313
12375
  hidden?: boolean;
12314
- /** Whether the field is for display only and should not allowed to be translated */
12376
+ /** 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. */
12315
12377
  displayOnly?: boolean;
12316
- /** In cases where the order of the fields holds meaning, use this index */
12378
+ /** Field index. Use for cases where the order of the fields are relevant. */
12317
12379
  index?: number | null;
12318
12380
  }
12319
12381
  declare enum FieldType {
@@ -12345,46 +12407,52 @@ interface PreviewFields {
12345
12407
  imageFieldId?: string | null;
12346
12408
  }
12347
12409
  interface GetSchemaRequest {
12348
- /** ID of the Schema to retrieve. */
12410
+ /** ID of the translation schema to retrieve. */
12349
12411
  schemaId: string;
12350
12412
  }
12351
12413
  interface GetSchemaResponse {
12352
- /** The requested Schema. */
12414
+ /** The requested translation schema. */
12353
12415
  schema?: Schema;
12354
12416
  }
12355
12417
  interface GetSchemaByKeyRequest {
12356
- /** ID of the Schema to retrieve. */
12418
+ /** ID of the translation schema to retrieve. */
12357
12419
  key: SchemaKey;
12358
12420
  }
12359
12421
  interface GetSchemaByKeyResponse {
12360
- /** The requested Schema. */
12422
+ /** The requested translation schema. */
12361
12423
  schema?: Schema;
12362
12424
  }
12363
12425
  interface QuerySchemasRequest {
12364
- /** WQL expression. */
12426
+ /** Query options. */
12365
12427
  query?: CursorQuery;
12366
12428
  }
12367
12429
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
12368
- /** 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`. */
12430
+ /**
12431
+ * Cursor paging options.
12432
+ *
12433
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
12434
+ */
12369
12435
  cursorPaging?: CursorPaging;
12370
12436
  /**
12371
- * Filter object in the following format:
12372
- * `"filter" : {
12373
- * "fieldName1": "value1",
12374
- * "fieldName2":{"$operator":"value2"}
12375
- * }`
12376
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
12437
+ * Filter object.
12438
+ *
12439
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
12377
12440
  */
12378
12441
  filter?: Record<string, any> | null;
12379
12442
  /**
12380
- * Sort object in the following format:
12381
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
12443
+ * Sort object.
12444
+ *
12445
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
12382
12446
  */
12383
12447
  sort?: Sorting[];
12384
12448
  }
12385
12449
  /** @oneof */
12386
12450
  interface CursorQueryPagingMethodOneOf {
12387
- /** 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`. */
12451
+ /**
12452
+ * Cursor paging options.
12453
+ *
12454
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
12455
+ */
12388
12456
  cursorPaging?: CursorPaging;
12389
12457
  }
12390
12458
  interface Sorting {
@@ -12409,13 +12477,13 @@ interface CursorPaging {
12409
12477
  cursor?: string | null;
12410
12478
  }
12411
12479
  interface QuerySchemasResponse {
12412
- /** List of Schemas. */
12480
+ /** List of translation schemas. */
12413
12481
  schemas?: Schema[];
12414
- /** Paging metadata */
12482
+ /** Paging metadata for the next page of results. */
12415
12483
  pagingMetadata?: CursorPagingMetadata;
12416
12484
  }
12417
12485
  interface CursorPagingMetadata {
12418
- /** Number of items returned in the response. */
12486
+ /** Number of items returned in current page. */
12419
12487
  count?: number | null;
12420
12488
  /** Cursor strings that point to the next page, previous page, or both. */
12421
12489
  cursors?: Cursors;
@@ -12438,9 +12506,9 @@ interface ListSiteSchemasRequest {
12438
12506
  paging?: CursorPaging;
12439
12507
  }
12440
12508
  interface ListSiteSchemasResponse {
12441
- /** List of Schemas. */
12509
+ /** List of translation schemas. */
12442
12510
  schemas?: Schema[];
12443
- /** Paging metadata */
12511
+ /** Paging metadata for the next page of results. */
12444
12512
  pagingMetadata?: CursorPagingMetadata;
12445
12513
  }
12446
12514
  interface SchemaKeyNonNullableFields {