@wix/multilingual 1.0.38 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/multilingual",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -23,7 +23,7 @@
23
23
  "@wix/multilingual_site-translator": "1.0.12",
24
24
  "@wix/multilingual_translation-contents": "1.0.15",
25
25
  "@wix/multilingual_translation-published-contents": "1.0.4",
26
- "@wix/multilingual_translation-schemas": "1.0.13"
26
+ "@wix/multilingual_translation-schemas": "1.0.14"
27
27
  },
28
28
  "devDependencies": {
29
29
  "glob": "^10.4.1",
@@ -48,5 +48,5 @@
48
48
  "fqdn": ""
49
49
  }
50
50
  },
51
- "falconPackageHash": "397f35632bfffabd2d3e701e76e553c7e04d867d07fd1d7550f58394"
51
+ "falconPackageHash": "37a235f0ee89098d7ac7c94dccd0ba00860896c0b2cefd9c3c2aae0a"
52
52
  }
@@ -7986,29 +7986,35 @@ declare namespace context$1 {
7986
7986
 
7987
7987
  interface Schema {
7988
7988
  /**
7989
- * Schema ID.
7989
+ * Translation schema ID.
7990
7990
  * @readonly
7991
7991
  */
7992
7992
  _id?: string | null;
7993
- /** (compound key) Schema key. */
7993
+ /** Translation schema unique key identifier. */
7994
7994
  key?: SchemaKey;
7995
- /** A list of unique fields on the entity in the specific language */
7995
+ /** 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. */
7996
7996
  fields?: Record<string, SchemaField>;
7997
- /** Fields that will be displayed in content previews (e.g., product name for products). */
7997
+ /** Fields displayed in content previews. For example, a product name for a product translation schema. */
7998
7998
  previewFields?: PreviewFields;
7999
- /** Whether the schema is hidden from the site. */
7999
+ /** Whether the translation schema is hidden from the site. */
8000
8000
  hidden?: boolean | null;
8001
- /** The name of the schema */
8001
+ /** Translation schema name. */
8002
8002
  displayName?: string | null;
8003
- /** Higher level schema, group_by_name will point to an entity of this schema. */
8003
+ /** 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. */
8004
8004
  parentId?: string | null;
8005
8005
  /** @readonly */
8006
8006
  revision?: string | null;
8007
- /** @readonly */
8007
+ /**
8008
+ * Date and time the translation schema was created.
8009
+ * @readonly
8010
+ */
8008
8011
  _createdDate?: Date;
8009
- /** @readonly */
8012
+ /**
8013
+ * Date and time the translation schema was updated.
8014
+ * @readonly
8015
+ */
8010
8016
  _updatedDate?: Date;
8011
- /** indicate if the content should be duplicated when the site is cloned */
8017
+ /** Whether to duplicate the translated content in the schema when a site containing the translation schema and content is duplicated. */
8012
8018
  duplicateContent?: boolean | null;
8013
8019
  }
8014
8020
  interface SchemaKey {
@@ -8017,9 +8023,14 @@ interface SchemaKey {
8017
8023
  * @readonly
8018
8024
  */
8019
8025
  appId?: string;
8020
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
8026
+ /** 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'`. */
8021
8027
  entityType?: string;
8022
- /** Scope schema is defined in (Global/Site) */
8028
+ /**
8029
+ * Scope of the translation schema.
8030
+ * Supported values:
8031
+ * + `GLOBAL`: A global schema for all sites.
8032
+ * + `SITE`: A custom schema for a specific site.
8033
+ */
8023
8034
  scope?: SchemaScope;
8024
8035
  }
8025
8036
  declare enum SchemaScope {
@@ -8031,27 +8042,38 @@ declare enum SchemaScope {
8031
8042
  }
8032
8043
  interface SchemaField {
8033
8044
  /**
8034
- * Field ID.
8045
+ * 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 `^[^)(\\]\\[\\.]+$`.
8035
8046
  * @readonly
8036
8047
  */
8037
8048
  _id?: string;
8038
- /** Field type. */
8049
+ /**
8050
+ * Field type.
8051
+ * Supported values:
8052
+ * + `SHORT_TEXT`: Short plain text.
8053
+ * + `LONG_TEXT`: Long plain text.
8054
+ * + `HTML`: Long text including styles, images, and links.
8055
+ * + `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.
8056
+ * + `IMAGE`: Wix Media Manager image.
8057
+ * + `IMAGE_LINK`: Image URL without metadata.
8058
+ * + `VIDEO`: Wix Media Manager video.
8059
+ * + `DOCUMENT`: Wix Media Manager document.
8060
+ */
8039
8061
  type?: FieldType;
8040
- /** Field descriptive name. */
8062
+ /** Field name. */
8041
8063
  displayName?: string | null;
8042
- /** Field semantic grouping */
8064
+ /** Field group name. */
8043
8065
  groupName?: string | null;
8044
- /** Field minimum length (in case of text field) */
8066
+ /** Field minimum text length. */
8045
8067
  minLength?: number | null;
8046
- /** Field maximum length (in case text field) */
8068
+ /** Field maximum text length. */
8047
8069
  maxLength?: number | null;
8048
- /** Field format. If set - must be one of the values of wix.api.format as string (case insensitive) */
8070
+ /** 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. */
8049
8071
  format?: string | null;
8050
- /** Whether the field is hidden from the site. Hidden field constraints (type, min/max length) are still active! */
8072
+ /** Whether the field is hidden from the site. Hidden fields are still validated. */
8051
8073
  hidden?: boolean;
8052
- /** Whether the field is for display only and should not allowed to be translated */
8074
+ /** 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. */
8053
8075
  displayOnly?: boolean;
8054
- /** In cases where the order of the fields holds meaning, use this index */
8076
+ /** Field index. Use for cases where the order of the fields are relevant. */
8055
8077
  index?: number | null;
8056
8078
  }
8057
8079
  declare enum FieldType {
@@ -8083,31 +8105,31 @@ interface PreviewFields {
8083
8105
  imageFieldId?: string | null;
8084
8106
  }
8085
8107
  interface CreateSchemaRequest {
8086
- /** Schema to be created. */
8108
+ /** Translation schema to create. */
8087
8109
  schema?: Schema;
8088
8110
  }
8089
8111
  interface CreateSchemaResponse {
8090
- /** The created Schema. */
8112
+ /** Newly created translation schema. */
8091
8113
  schema?: Schema;
8092
8114
  }
8093
8115
  interface GetSchemaRequest {
8094
- /** ID of the Schema to retrieve. */
8116
+ /** ID of the translation schema to retrieve. */
8095
8117
  schemaId: string;
8096
8118
  }
8097
8119
  interface GetSchemaResponse {
8098
- /** The requested Schema. */
8120
+ /** The requested translation schema. */
8099
8121
  schema?: Schema;
8100
8122
  }
8101
8123
  interface GetSchemaByKeyRequest {
8102
- /** ID of the Schema to retrieve. */
8124
+ /** ID of the translation schema to retrieve. */
8103
8125
  key: SchemaKey;
8104
8126
  }
8105
8127
  interface GetSchemaByKeyResponse {
8106
- /** The requested Schema. */
8128
+ /** The requested translation schema. */
8107
8129
  schema?: Schema;
8108
8130
  }
8109
8131
  interface UpdateSchemaRequest {
8110
- /** Schema to be updated, may be partial. */
8132
+ /** Translation schema to update. */
8111
8133
  schema?: Schema;
8112
8134
  }
8113
8135
  interface UpdateSchemaResponse {
@@ -8115,36 +8137,42 @@ interface UpdateSchemaResponse {
8115
8137
  schema?: Schema;
8116
8138
  }
8117
8139
  interface DeleteSchemaRequest {
8118
- /** Id of the Schema to delete. */
8140
+ /** ID of the translation schema to delete. */
8119
8141
  schemaId?: string;
8120
8142
  }
8121
8143
  interface DeleteSchemaResponse {
8122
8144
  }
8123
8145
  interface QuerySchemasRequest {
8124
- /** WQL expression. */
8146
+ /** Query options. */
8125
8147
  query?: CursorQuery;
8126
8148
  }
8127
8149
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
8128
- /** 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`. */
8150
+ /**
8151
+ * Cursor paging options.
8152
+ *
8153
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
8154
+ */
8129
8155
  cursorPaging?: CursorPaging;
8130
8156
  /**
8131
- * Filter object in the following format:
8132
- * `"filter" : {
8133
- * "fieldName1": "value1",
8134
- * "fieldName2":{"$operator":"value2"}
8135
- * }`
8136
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
8157
+ * Filter object.
8158
+ *
8159
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
8137
8160
  */
8138
8161
  filter?: Record<string, any> | null;
8139
8162
  /**
8140
- * Sort object in the following format:
8141
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
8163
+ * Sort object.
8164
+ *
8165
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
8142
8166
  */
8143
8167
  sort?: Sorting[];
8144
8168
  }
8145
8169
  /** @oneof */
8146
8170
  interface CursorQueryPagingMethodOneOf {
8147
- /** 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`. */
8171
+ /**
8172
+ * Cursor paging options.
8173
+ *
8174
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
8175
+ */
8148
8176
  cursorPaging?: CursorPaging;
8149
8177
  }
8150
8178
  interface Sorting {
@@ -8169,13 +8197,13 @@ interface CursorPaging {
8169
8197
  cursor?: string | null;
8170
8198
  }
8171
8199
  interface QuerySchemasResponse {
8172
- /** List of Schemas. */
8200
+ /** List of translation schemas. */
8173
8201
  schemas?: Schema[];
8174
- /** Paging metadata */
8202
+ /** Paging metadata for the next page of results. */
8175
8203
  pagingMetadata?: CursorPagingMetadata;
8176
8204
  }
8177
8205
  interface CursorPagingMetadata {
8178
- /** Number of items returned in the response. */
8206
+ /** Number of items returned in current page. */
8179
8207
  count?: number | null;
8180
8208
  /** Cursor strings that point to the next page, previous page, or both. */
8181
8209
  cursors?: Cursors;
@@ -8198,9 +8226,9 @@ interface ListSiteSchemasRequest {
8198
8226
  paging?: CursorPaging;
8199
8227
  }
8200
8228
  interface ListSiteSchemasResponse {
8201
- /** List of Schemas. */
8229
+ /** List of translation schemas. */
8202
8230
  schemas?: Schema[];
8203
- /** Paging metadata */
8231
+ /** Paging metadata for the next page of results. */
8204
8232
  pagingMetadata?: CursorPagingMetadata;
8205
8233
  }
8206
8234
  interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
@@ -8671,9 +8699,14 @@ interface GetSchemaByKeyIdentifiers {
8671
8699
  * @readonly
8672
8700
  */
8673
8701
  keyAppId?: string;
8674
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
8702
+ /** 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'`. */
8675
8703
  keyEntityType?: string;
8676
- /** Scope schema is defined in (Global/Site) */
8704
+ /**
8705
+ * Scope of the translation schema.
8706
+ * Supported values:
8707
+ * + `GLOBAL`: A global schema for all sites.
8708
+ * + `SITE`: A custom schema for a specific site.
8709
+ */
8677
8710
  keyScope?: SchemaScope;
8678
8711
  }
8679
8712
  interface QuerySchemasOptions {
@@ -8743,30 +8776,39 @@ interface ListSiteSchemasOptions {
8743
8776
  declare function getSchema$1(httpClient: HttpClient): GetSchemaSignature;
8744
8777
  interface GetSchemaSignature {
8745
8778
  /**
8746
- * Retrieves a Schema.
8747
- * @param - ID of the Schema to retrieve.
8748
- * @returns The requested Schema.
8779
+ * Retrieves a translation schema.
8780
+ * @param - ID of the translation schema to retrieve.
8781
+ * @returns The requested translation schema.
8749
8782
  */
8750
8783
  (schemaId: string): Promise<Schema & SchemaNonNullableFields>;
8751
8784
  }
8752
8785
  declare function getSchemaByKey$1(httpClient: HttpClient): GetSchemaByKeySignature;
8753
8786
  interface GetSchemaByKeySignature {
8754
8787
  /**
8755
- * Retrieves a Schema by key.
8788
+ * Retrieves a translation schema by key.
8756
8789
  */
8757
8790
  (identifiers: GetSchemaByKeyIdentifiers, key: GetSchemaByKey): Promise<GetSchemaByKeyResponse & GetSchemaByKeyResponseNonNullableFields>;
8758
8791
  }
8759
8792
  declare function querySchemas$1(httpClient: HttpClient): QuerySchemasSignature;
8760
8793
  interface QuerySchemasSignature {
8761
8794
  /**
8762
- * Retrieves a list of Schemas, given the provided [paging, filtering, and sorting][1].
8795
+ * Retrieves a list of schemas, given the provided paging, filtering, and sorting. Up to 100 schemas can be returned per request.
8796
+ *
8797
+ * > **Note:**
8798
+ * >
8799
+ * > This method can retrieve all schemas with a `GLOBAL` scope and `SITE` scope schemas for the site you are authorized for in the current API request.
8800
+ *
8801
+ * The default `sort` is `id` in `ASC`.
8802
+ *
8803
+ * For a detailed list of supported operations, see [Translation Schema: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-schema/translation-schema/sort-and-filter).
8804
+ * To learn how to query translation schemas, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
8763
8805
  */
8764
8806
  (options?: QuerySchemasOptions | undefined): SchemasQueryBuilder;
8765
8807
  }
8766
8808
  declare function listSiteSchemas$1(httpClient: HttpClient): ListSiteSchemasSignature;
8767
8809
  interface ListSiteSchemasSignature {
8768
8810
  /**
8769
- * Retrieves a list of Schemas of app installed on site.
8811
+ * Retrieves a list of all translation schemas associated with a site, including those created by you or other developers.
8770
8812
  */
8771
8813
  (options?: ListSiteSchemasOptions | undefined): Promise<ListSiteSchemasResponse & ListSiteSchemasResponseNonNullableFields>;
8772
8814
  }
@@ -7986,29 +7986,35 @@ declare namespace index_d$1 {
7986
7986
 
7987
7987
  interface Schema {
7988
7988
  /**
7989
- * Schema ID.
7989
+ * Translation schema ID.
7990
7990
  * @readonly
7991
7991
  */
7992
7992
  _id?: string | null;
7993
- /** (compound key) Schema key. */
7993
+ /** Translation schema unique key identifier. */
7994
7994
  key?: SchemaKey;
7995
- /** A list of unique fields on the entity in the specific language */
7995
+ /** 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. */
7996
7996
  fields?: Record<string, SchemaField>;
7997
- /** Fields that will be displayed in content previews (e.g., product name for products). */
7997
+ /** Fields displayed in content previews. For example, a product name for a product translation schema. */
7998
7998
  previewFields?: PreviewFields;
7999
- /** Whether the schema is hidden from the site. */
7999
+ /** Whether the translation schema is hidden from the site. */
8000
8000
  hidden?: boolean | null;
8001
- /** The name of the schema */
8001
+ /** Translation schema name. */
8002
8002
  displayName?: string | null;
8003
- /** Higher level schema, group_by_name will point to an entity of this schema. */
8003
+ /** 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. */
8004
8004
  parentId?: string | null;
8005
8005
  /** @readonly */
8006
8006
  revision?: string | null;
8007
- /** @readonly */
8007
+ /**
8008
+ * Date and time the translation schema was created.
8009
+ * @readonly
8010
+ */
8008
8011
  _createdDate?: Date;
8009
- /** @readonly */
8012
+ /**
8013
+ * Date and time the translation schema was updated.
8014
+ * @readonly
8015
+ */
8010
8016
  _updatedDate?: Date;
8011
- /** indicate if the content should be duplicated when the site is cloned */
8017
+ /** Whether to duplicate the translated content in the schema when a site containing the translation schema and content is duplicated. */
8012
8018
  duplicateContent?: boolean | null;
8013
8019
  }
8014
8020
  interface SchemaKey {
@@ -8017,9 +8023,14 @@ interface SchemaKey {
8017
8023
  * @readonly
8018
8024
  */
8019
8025
  appId?: string;
8020
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
8026
+ /** 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'`. */
8021
8027
  entityType?: string;
8022
- /** Scope schema is defined in (Global/Site) */
8028
+ /**
8029
+ * Scope of the translation schema.
8030
+ * Supported values:
8031
+ * + `GLOBAL`: A global schema for all sites.
8032
+ * + `SITE`: A custom schema for a specific site.
8033
+ */
8023
8034
  scope?: SchemaScope;
8024
8035
  }
8025
8036
  declare enum SchemaScope {
@@ -8031,27 +8042,38 @@ declare enum SchemaScope {
8031
8042
  }
8032
8043
  interface SchemaField {
8033
8044
  /**
8034
- * Field ID.
8045
+ * 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 `^[^)(\\]\\[\\.]+$`.
8035
8046
  * @readonly
8036
8047
  */
8037
8048
  _id?: string;
8038
- /** Field type. */
8049
+ /**
8050
+ * Field type.
8051
+ * Supported values:
8052
+ * + `SHORT_TEXT`: Short plain text.
8053
+ * + `LONG_TEXT`: Long plain text.
8054
+ * + `HTML`: Long text including styles, images, and links.
8055
+ * + `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.
8056
+ * + `IMAGE`: Wix Media Manager image.
8057
+ * + `IMAGE_LINK`: Image URL without metadata.
8058
+ * + `VIDEO`: Wix Media Manager video.
8059
+ * + `DOCUMENT`: Wix Media Manager document.
8060
+ */
8039
8061
  type?: FieldType;
8040
- /** Field descriptive name. */
8062
+ /** Field name. */
8041
8063
  displayName?: string | null;
8042
- /** Field semantic grouping */
8064
+ /** Field group name. */
8043
8065
  groupName?: string | null;
8044
- /** Field minimum length (in case of text field) */
8066
+ /** Field minimum text length. */
8045
8067
  minLength?: number | null;
8046
- /** Field maximum length (in case text field) */
8068
+ /** Field maximum text length. */
8047
8069
  maxLength?: number | null;
8048
- /** Field format. If set - must be one of the values of wix.api.format as string (case insensitive) */
8070
+ /** 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. */
8049
8071
  format?: string | null;
8050
- /** Whether the field is hidden from the site. Hidden field constraints (type, min/max length) are still active! */
8072
+ /** Whether the field is hidden from the site. Hidden fields are still validated. */
8051
8073
  hidden?: boolean;
8052
- /** Whether the field is for display only and should not allowed to be translated */
8074
+ /** 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. */
8053
8075
  displayOnly?: boolean;
8054
- /** In cases where the order of the fields holds meaning, use this index */
8076
+ /** Field index. Use for cases where the order of the fields are relevant. */
8055
8077
  index?: number | null;
8056
8078
  }
8057
8079
  declare enum FieldType {
@@ -8083,31 +8105,31 @@ interface PreviewFields {
8083
8105
  imageFieldId?: string | null;
8084
8106
  }
8085
8107
  interface CreateSchemaRequest {
8086
- /** Schema to be created. */
8108
+ /** Translation schema to create. */
8087
8109
  schema?: Schema;
8088
8110
  }
8089
8111
  interface CreateSchemaResponse {
8090
- /** The created Schema. */
8112
+ /** Newly created translation schema. */
8091
8113
  schema?: Schema;
8092
8114
  }
8093
8115
  interface GetSchemaRequest {
8094
- /** ID of the Schema to retrieve. */
8116
+ /** ID of the translation schema to retrieve. */
8095
8117
  schemaId: string;
8096
8118
  }
8097
8119
  interface GetSchemaResponse {
8098
- /** The requested Schema. */
8120
+ /** The requested translation schema. */
8099
8121
  schema?: Schema;
8100
8122
  }
8101
8123
  interface GetSchemaByKeyRequest {
8102
- /** ID of the Schema to retrieve. */
8124
+ /** ID of the translation schema to retrieve. */
8103
8125
  key: SchemaKey;
8104
8126
  }
8105
8127
  interface GetSchemaByKeyResponse {
8106
- /** The requested Schema. */
8128
+ /** The requested translation schema. */
8107
8129
  schema?: Schema;
8108
8130
  }
8109
8131
  interface UpdateSchemaRequest {
8110
- /** Schema to be updated, may be partial. */
8132
+ /** Translation schema to update. */
8111
8133
  schema?: Schema;
8112
8134
  }
8113
8135
  interface UpdateSchemaResponse {
@@ -8115,36 +8137,42 @@ interface UpdateSchemaResponse {
8115
8137
  schema?: Schema;
8116
8138
  }
8117
8139
  interface DeleteSchemaRequest {
8118
- /** Id of the Schema to delete. */
8140
+ /** ID of the translation schema to delete. */
8119
8141
  schemaId?: string;
8120
8142
  }
8121
8143
  interface DeleteSchemaResponse {
8122
8144
  }
8123
8145
  interface QuerySchemasRequest {
8124
- /** WQL expression. */
8146
+ /** Query options. */
8125
8147
  query?: CursorQuery;
8126
8148
  }
8127
8149
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
8128
- /** 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`. */
8150
+ /**
8151
+ * Cursor paging options.
8152
+ *
8153
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
8154
+ */
8129
8155
  cursorPaging?: CursorPaging;
8130
8156
  /**
8131
- * Filter object in the following format:
8132
- * `"filter" : {
8133
- * "fieldName1": "value1",
8134
- * "fieldName2":{"$operator":"value2"}
8135
- * }`
8136
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
8157
+ * Filter object.
8158
+ *
8159
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
8137
8160
  */
8138
8161
  filter?: Record<string, any> | null;
8139
8162
  /**
8140
- * Sort object in the following format:
8141
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
8163
+ * Sort object.
8164
+ *
8165
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
8142
8166
  */
8143
8167
  sort?: Sorting[];
8144
8168
  }
8145
8169
  /** @oneof */
8146
8170
  interface CursorQueryPagingMethodOneOf {
8147
- /** 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`. */
8171
+ /**
8172
+ * Cursor paging options.
8173
+ *
8174
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
8175
+ */
8148
8176
  cursorPaging?: CursorPaging;
8149
8177
  }
8150
8178
  interface Sorting {
@@ -8169,13 +8197,13 @@ interface CursorPaging {
8169
8197
  cursor?: string | null;
8170
8198
  }
8171
8199
  interface QuerySchemasResponse {
8172
- /** List of Schemas. */
8200
+ /** List of translation schemas. */
8173
8201
  schemas?: Schema[];
8174
- /** Paging metadata */
8202
+ /** Paging metadata for the next page of results. */
8175
8203
  pagingMetadata?: CursorPagingMetadata;
8176
8204
  }
8177
8205
  interface CursorPagingMetadata {
8178
- /** Number of items returned in the response. */
8206
+ /** Number of items returned in current page. */
8179
8207
  count?: number | null;
8180
8208
  /** Cursor strings that point to the next page, previous page, or both. */
8181
8209
  cursors?: Cursors;
@@ -8198,9 +8226,9 @@ interface ListSiteSchemasRequest {
8198
8226
  paging?: CursorPaging;
8199
8227
  }
8200
8228
  interface ListSiteSchemasResponse {
8201
- /** List of Schemas. */
8229
+ /** List of translation schemas. */
8202
8230
  schemas?: Schema[];
8203
- /** Paging metadata */
8231
+ /** Paging metadata for the next page of results. */
8204
8232
  pagingMetadata?: CursorPagingMetadata;
8205
8233
  }
8206
8234
  interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
@@ -8671,9 +8699,14 @@ interface GetSchemaByKeyIdentifiers {
8671
8699
  * @readonly
8672
8700
  */
8673
8701
  keyAppId?: string;
8674
- /** Unique name defined by the creator app, used to distinguish between different entities in the the app domain. */
8702
+ /** 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'`. */
8675
8703
  keyEntityType?: string;
8676
- /** Scope schema is defined in (Global/Site) */
8704
+ /**
8705
+ * Scope of the translation schema.
8706
+ * Supported values:
8707
+ * + `GLOBAL`: A global schema for all sites.
8708
+ * + `SITE`: A custom schema for a specific site.
8709
+ */
8677
8710
  keyScope?: SchemaScope;
8678
8711
  }
8679
8712
  interface QuerySchemasOptions {
@@ -8743,30 +8776,39 @@ interface ListSiteSchemasOptions {
8743
8776
  declare function getSchema$1(httpClient: HttpClient): GetSchemaSignature;
8744
8777
  interface GetSchemaSignature {
8745
8778
  /**
8746
- * Retrieves a Schema.
8747
- * @param - ID of the Schema to retrieve.
8748
- * @returns The requested Schema.
8779
+ * Retrieves a translation schema.
8780
+ * @param - ID of the translation schema to retrieve.
8781
+ * @returns The requested translation schema.
8749
8782
  */
8750
8783
  (schemaId: string): Promise<Schema & SchemaNonNullableFields>;
8751
8784
  }
8752
8785
  declare function getSchemaByKey$1(httpClient: HttpClient): GetSchemaByKeySignature;
8753
8786
  interface GetSchemaByKeySignature {
8754
8787
  /**
8755
- * Retrieves a Schema by key.
8788
+ * Retrieves a translation schema by key.
8756
8789
  */
8757
8790
  (identifiers: GetSchemaByKeyIdentifiers, key: GetSchemaByKey): Promise<GetSchemaByKeyResponse & GetSchemaByKeyResponseNonNullableFields>;
8758
8791
  }
8759
8792
  declare function querySchemas$1(httpClient: HttpClient): QuerySchemasSignature;
8760
8793
  interface QuerySchemasSignature {
8761
8794
  /**
8762
- * Retrieves a list of Schemas, given the provided [paging, filtering, and sorting][1].
8795
+ * Retrieves a list of schemas, given the provided paging, filtering, and sorting. Up to 100 schemas can be returned per request.
8796
+ *
8797
+ * > **Note:**
8798
+ * >
8799
+ * > This method can retrieve all schemas with a `GLOBAL` scope and `SITE` scope schemas for the site you are authorized for in the current API request.
8800
+ *
8801
+ * The default `sort` is `id` in `ASC`.
8802
+ *
8803
+ * For a detailed list of supported operations, see [Translation Schema: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/multilingual/translation/translation-schema/translation-schema/sort-and-filter).
8804
+ * To learn how to query translation schemas, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
8763
8805
  */
8764
8806
  (options?: QuerySchemasOptions | undefined): SchemasQueryBuilder;
8765
8807
  }
8766
8808
  declare function listSiteSchemas$1(httpClient: HttpClient): ListSiteSchemasSignature;
8767
8809
  interface ListSiteSchemasSignature {
8768
8810
  /**
8769
- * Retrieves a list of Schemas of app installed on site.
8811
+ * Retrieves a list of all translation schemas associated with a site, including those created by you or other developers.
8770
8812
  */
8771
8813
  (options?: ListSiteSchemasOptions | undefined): Promise<ListSiteSchemasResponse & ListSiteSchemasResponseNonNullableFields>;
8772
8814
  }
@@ -12042,29 +12042,35 @@ declare namespace meta$1 {
12042
12042
 
12043
12043
  interface Schema$1 {
12044
12044
  /**
12045
- * Schema ID.
12045
+ * Translation schema ID.
12046
12046
  * @readonly
12047
12047
  */
12048
12048
  id?: string | null;
12049
- /** (compound key) Schema key. */
12049
+ /** Translation schema unique key identifier. */
12050
12050
  key?: SchemaKey$1;
12051
- /** 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. */
12052
12052
  fields?: Record<string, SchemaField$1>;
12053
- /** 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. */
12054
12054
  previewFields?: PreviewFields$1;
12055
- /** Whether the schema is hidden from the site. */
12055
+ /** Whether the translation schema is hidden from the site. */
12056
12056
  hidden?: boolean | null;
12057
- /** The name of the schema */
12057
+ /** Translation schema name. */
12058
12058
  displayName?: string | null;
12059
- /** 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. */
12060
12060
  parentId?: string | null;
12061
12061
  /** @readonly */
12062
12062
  revision?: string | null;
12063
- /** @readonly */
12063
+ /**
12064
+ * Date and time the translation schema was created.
12065
+ * @readonly
12066
+ */
12064
12067
  createdDate?: Date;
12065
- /** @readonly */
12068
+ /**
12069
+ * Date and time the translation schema was updated.
12070
+ * @readonly
12071
+ */
12066
12072
  updatedDate?: Date;
12067
- /** 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. */
12068
12074
  duplicateContent?: boolean | null;
12069
12075
  }
12070
12076
  interface SchemaKey$1 {
@@ -12073,9 +12079,14 @@ interface SchemaKey$1 {
12073
12079
  * @readonly
12074
12080
  */
12075
12081
  appId?: string;
12076
- /** 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'`. */
12077
12083
  entityType?: string;
12078
- /** 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
+ */
12079
12090
  scope?: SchemaScope$1;
12080
12091
  }
12081
12092
  declare enum SchemaScope$1 {
@@ -12087,27 +12098,38 @@ declare enum SchemaScope$1 {
12087
12098
  }
12088
12099
  interface SchemaField$1 {
12089
12100
  /**
12090
- * 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 `^[^)(\\]\\[\\.]+$`.
12091
12102
  * @readonly
12092
12103
  */
12093
12104
  id?: string;
12094
- /** 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
+ */
12095
12117
  type?: FieldType$1;
12096
- /** Field descriptive name. */
12118
+ /** Field name. */
12097
12119
  displayName?: string | null;
12098
- /** Field semantic grouping */
12120
+ /** Field group name. */
12099
12121
  groupName?: string | null;
12100
- /** Field minimum length (in case of text field) */
12122
+ /** Field minimum text length. */
12101
12123
  minLength?: number | null;
12102
- /** Field maximum length (in case text field) */
12124
+ /** Field maximum text length. */
12103
12125
  maxLength?: number | null;
12104
- /** 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. */
12105
12127
  format?: string | null;
12106
- /** 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. */
12107
12129
  hidden?: boolean;
12108
- /** 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. */
12109
12131
  displayOnly?: boolean;
12110
- /** 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. */
12111
12133
  index?: number | null;
12112
12134
  }
12113
12135
  declare enum FieldType$1 {
@@ -12139,46 +12161,52 @@ interface PreviewFields$1 {
12139
12161
  imageFieldId?: string | null;
12140
12162
  }
12141
12163
  interface GetSchemaRequest$1 {
12142
- /** ID of the Schema to retrieve. */
12164
+ /** ID of the translation schema to retrieve. */
12143
12165
  schemaId: string;
12144
12166
  }
12145
12167
  interface GetSchemaResponse$1 {
12146
- /** The requested Schema. */
12168
+ /** The requested translation schema. */
12147
12169
  schema?: Schema$1;
12148
12170
  }
12149
12171
  interface GetSchemaByKeyRequest$1 {
12150
- /** ID of the Schema to retrieve. */
12172
+ /** ID of the translation schema to retrieve. */
12151
12173
  key: SchemaKey$1;
12152
12174
  }
12153
12175
  interface GetSchemaByKeyResponse$1 {
12154
- /** The requested Schema. */
12176
+ /** The requested translation schema. */
12155
12177
  schema?: Schema$1;
12156
12178
  }
12157
12179
  interface QuerySchemasRequest$1 {
12158
- /** WQL expression. */
12180
+ /** Query options. */
12159
12181
  query?: CursorQuery$1;
12160
12182
  }
12161
12183
  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`. */
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
+ */
12163
12189
  cursorPaging?: CursorPaging$1;
12164
12190
  /**
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`
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).
12171
12194
  */
12172
12195
  filter?: Record<string, any> | null;
12173
12196
  /**
12174
- * Sort object in the following format:
12175
- * `[{"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).
12176
12200
  */
12177
12201
  sort?: Sorting$1[];
12178
12202
  }
12179
12203
  /** @oneof */
12180
12204
  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`. */
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
+ */
12182
12210
  cursorPaging?: CursorPaging$1;
12183
12211
  }
12184
12212
  interface Sorting$1 {
@@ -12203,13 +12231,13 @@ interface CursorPaging$1 {
12203
12231
  cursor?: string | null;
12204
12232
  }
12205
12233
  interface QuerySchemasResponse$1 {
12206
- /** List of Schemas. */
12234
+ /** List of translation schemas. */
12207
12235
  schemas?: Schema$1[];
12208
- /** Paging metadata */
12236
+ /** Paging metadata for the next page of results. */
12209
12237
  pagingMetadata?: CursorPagingMetadata$1;
12210
12238
  }
12211
12239
  interface CursorPagingMetadata$1 {
12212
- /** Number of items returned in the response. */
12240
+ /** Number of items returned in current page. */
12213
12241
  count?: number | null;
12214
12242
  /** Cursor strings that point to the next page, previous page, or both. */
12215
12243
  cursors?: Cursors$1;
@@ -12232,9 +12260,9 @@ interface ListSiteSchemasRequest$1 {
12232
12260
  paging?: CursorPaging$1;
12233
12261
  }
12234
12262
  interface ListSiteSchemasResponse$1 {
12235
- /** List of Schemas. */
12263
+ /** List of translation schemas. */
12236
12264
  schemas?: Schema$1[];
12237
- /** Paging metadata */
12265
+ /** Paging metadata for the next page of results. */
12238
12266
  pagingMetadata?: CursorPagingMetadata$1;
12239
12267
  }
12240
12268
  interface SchemaKeyNonNullableFields$1 {
@@ -12260,29 +12288,35 @@ interface ListSiteSchemasResponseNonNullableFields$1 {
12260
12288
 
12261
12289
  interface Schema {
12262
12290
  /**
12263
- * Schema ID.
12291
+ * Translation schema ID.
12264
12292
  * @readonly
12265
12293
  */
12266
12294
  _id?: string | null;
12267
- /** (compound key) Schema key. */
12295
+ /** Translation schema unique key identifier. */
12268
12296
  key?: SchemaKey;
12269
- /** 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. */
12270
12298
  fields?: Record<string, SchemaField>;
12271
- /** 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. */
12272
12300
  previewFields?: PreviewFields;
12273
- /** Whether the schema is hidden from the site. */
12301
+ /** Whether the translation schema is hidden from the site. */
12274
12302
  hidden?: boolean | null;
12275
- /** The name of the schema */
12303
+ /** Translation schema name. */
12276
12304
  displayName?: string | null;
12277
- /** 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. */
12278
12306
  parentId?: string | null;
12279
12307
  /** @readonly */
12280
12308
  revision?: string | null;
12281
- /** @readonly */
12309
+ /**
12310
+ * Date and time the translation schema was created.
12311
+ * @readonly
12312
+ */
12282
12313
  _createdDate?: Date;
12283
- /** @readonly */
12314
+ /**
12315
+ * Date and time the translation schema was updated.
12316
+ * @readonly
12317
+ */
12284
12318
  _updatedDate?: Date;
12285
- /** 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. */
12286
12320
  duplicateContent?: boolean | null;
12287
12321
  }
12288
12322
  interface SchemaKey {
@@ -12291,9 +12325,14 @@ interface SchemaKey {
12291
12325
  * @readonly
12292
12326
  */
12293
12327
  appId?: string;
12294
- /** 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'`. */
12295
12329
  entityType?: string;
12296
- /** 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
+ */
12297
12336
  scope?: SchemaScope;
12298
12337
  }
12299
12338
  declare enum SchemaScope {
@@ -12305,27 +12344,38 @@ declare enum SchemaScope {
12305
12344
  }
12306
12345
  interface SchemaField {
12307
12346
  /**
12308
- * 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 `^[^)(\\]\\[\\.]+$`.
12309
12348
  * @readonly
12310
12349
  */
12311
12350
  _id?: string;
12312
- /** 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
+ */
12313
12363
  type?: FieldType;
12314
- /** Field descriptive name. */
12364
+ /** Field name. */
12315
12365
  displayName?: string | null;
12316
- /** Field semantic grouping */
12366
+ /** Field group name. */
12317
12367
  groupName?: string | null;
12318
- /** Field minimum length (in case of text field) */
12368
+ /** Field minimum text length. */
12319
12369
  minLength?: number | null;
12320
- /** Field maximum length (in case text field) */
12370
+ /** Field maximum text length. */
12321
12371
  maxLength?: number | null;
12322
- /** 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. */
12323
12373
  format?: string | null;
12324
- /** 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. */
12325
12375
  hidden?: boolean;
12326
- /** 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. */
12327
12377
  displayOnly?: boolean;
12328
- /** 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. */
12329
12379
  index?: number | null;
12330
12380
  }
12331
12381
  declare enum FieldType {
@@ -12357,46 +12407,52 @@ interface PreviewFields {
12357
12407
  imageFieldId?: string | null;
12358
12408
  }
12359
12409
  interface GetSchemaRequest {
12360
- /** ID of the Schema to retrieve. */
12410
+ /** ID of the translation schema to retrieve. */
12361
12411
  schemaId: string;
12362
12412
  }
12363
12413
  interface GetSchemaResponse {
12364
- /** The requested Schema. */
12414
+ /** The requested translation schema. */
12365
12415
  schema?: Schema;
12366
12416
  }
12367
12417
  interface GetSchemaByKeyRequest {
12368
- /** ID of the Schema to retrieve. */
12418
+ /** ID of the translation schema to retrieve. */
12369
12419
  key: SchemaKey;
12370
12420
  }
12371
12421
  interface GetSchemaByKeyResponse {
12372
- /** The requested Schema. */
12422
+ /** The requested translation schema. */
12373
12423
  schema?: Schema;
12374
12424
  }
12375
12425
  interface QuerySchemasRequest {
12376
- /** WQL expression. */
12426
+ /** Query options. */
12377
12427
  query?: CursorQuery;
12378
12428
  }
12379
12429
  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`. */
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
+ */
12381
12435
  cursorPaging?: CursorPaging;
12382
12436
  /**
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`
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).
12389
12440
  */
12390
12441
  filter?: Record<string, any> | null;
12391
12442
  /**
12392
- * Sort object in the following format:
12393
- * `[{"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).
12394
12446
  */
12395
12447
  sort?: Sorting[];
12396
12448
  }
12397
12449
  /** @oneof */
12398
12450
  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`. */
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
+ */
12400
12456
  cursorPaging?: CursorPaging;
12401
12457
  }
12402
12458
  interface Sorting {
@@ -12421,13 +12477,13 @@ interface CursorPaging {
12421
12477
  cursor?: string | null;
12422
12478
  }
12423
12479
  interface QuerySchemasResponse {
12424
- /** List of Schemas. */
12480
+ /** List of translation schemas. */
12425
12481
  schemas?: Schema[];
12426
- /** Paging metadata */
12482
+ /** Paging metadata for the next page of results. */
12427
12483
  pagingMetadata?: CursorPagingMetadata;
12428
12484
  }
12429
12485
  interface CursorPagingMetadata {
12430
- /** Number of items returned in the response. */
12486
+ /** Number of items returned in current page. */
12431
12487
  count?: number | null;
12432
12488
  /** Cursor strings that point to the next page, previous page, or both. */
12433
12489
  cursors?: Cursors;
@@ -12450,9 +12506,9 @@ interface ListSiteSchemasRequest {
12450
12506
  paging?: CursorPaging;
12451
12507
  }
12452
12508
  interface ListSiteSchemasResponse {
12453
- /** List of Schemas. */
12509
+ /** List of translation schemas. */
12454
12510
  schemas?: Schema[];
12455
- /** Paging metadata */
12511
+ /** Paging metadata for the next page of results. */
12456
12512
  pagingMetadata?: CursorPagingMetadata;
12457
12513
  }
12458
12514
  interface SchemaKeyNonNullableFields {