@datocms/cma-client 1.1.1 → 1.1.2

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.
@@ -16,6 +16,8 @@ export declare function buildBlockRecord(body: SimpleSchemaTypes.ItemUpdateSchem
16
16
  status?: "published" | "draft" | "updated" | null | undefined;
17
17
  is_valid?: boolean | undefined;
18
18
  current_version?: string | undefined;
19
+ is_current_version_valid?: boolean | null | undefined;
20
+ is_published_version_valid?: boolean | null | undefined;
19
21
  stage?: string | null | undefined;
20
22
  } | undefined;
21
23
  relationships?: {
@@ -516,7 +516,7 @@ export declare type ItemInstancesHrefSchema = {
516
516
  [k: string]: unknown;
517
517
  };
518
518
  /**
519
- * Fields used to order results. You _must_ specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_<DIRECTION(ASC|DESC)>`. You can pass multiple comma separated rules
519
+ * Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
520
520
  */
521
521
  order_by?: string;
522
522
  /**
@@ -843,6 +843,10 @@ export declare type SearchResultInstancesHrefSchema = {
843
843
  * Attributes to filter search results
844
844
  */
845
845
  filter: {
846
+ /**
847
+ * When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
848
+ */
849
+ fuzzy?: string;
846
850
  /**
847
851
  * Text to search
848
852
  */
@@ -5710,6 +5714,14 @@ export declare type ItemMeta = {
5710
5714
  * Whether the current record is valid or not
5711
5715
  */
5712
5716
  is_valid: boolean;
5717
+ /**
5718
+ * Whether the current version of the record is valid or not
5719
+ */
5720
+ is_current_version_valid: null | boolean;
5721
+ /**
5722
+ * Whether the published version of record is valid or not
5723
+ */
5724
+ is_published_version_valid: null | boolean;
5713
5725
  /**
5714
5726
  * The ID of the current record version
5715
5727
  */
@@ -5827,6 +5839,14 @@ export declare type ItemCreateSchema = {
5827
5839
  * Whether the current record is valid or not
5828
5840
  */
5829
5841
  is_valid?: boolean;
5842
+ /**
5843
+ * Whether the current version of the record is valid or not
5844
+ */
5845
+ is_current_version_valid?: null | boolean;
5846
+ /**
5847
+ * Whether the published version of the record is valid or not
5848
+ */
5849
+ is_published_version_valid?: null | boolean;
5830
5850
  /**
5831
5851
  * The ID of the current record version
5832
5852
  */
@@ -5919,6 +5939,14 @@ export declare type ItemUpdateSchema = {
5919
5939
  * The ID of the current record version (for optimistic locking, see the example)
5920
5940
  */
5921
5941
  current_version?: string;
5942
+ /**
5943
+ * Whether the current version of the record is valid or not
5944
+ */
5945
+ is_current_version_valid?: null | boolean;
5946
+ /**
5947
+ * Whether the published version of record is valid or not
5948
+ */
5949
+ is_published_version_valid?: null | boolean;
5922
5950
  /**
5923
5951
  * The new stage to move the record to
5924
5952
  */
@@ -7815,7 +7843,7 @@ export declare type ItemTypeFilterAttributes = {
7815
7843
  */
7816
7844
  name: string;
7817
7845
  /**
7818
- * The actual filter
7846
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7819
7847
  */
7820
7848
  filter: {
7821
7849
  [k: string]: unknown;
@@ -7862,7 +7890,7 @@ export declare type ItemTypeFilterCreateSchema = {
7862
7890
  */
7863
7891
  name: string;
7864
7892
  /**
7865
- * The actual filter
7893
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7866
7894
  */
7867
7895
  filter: {
7868
7896
  [k: string]: unknown;
@@ -7910,7 +7938,7 @@ export declare type ItemTypeFilterUpdateSchema = {
7910
7938
  */
7911
7939
  shared?: boolean;
7912
7940
  /**
7913
- * The actual filter
7941
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7914
7942
  */
7915
7943
  filter: {
7916
7944
  [k: string]: unknown;
@@ -611,7 +611,7 @@ export declare type ItemInstancesHrefSchema = {
611
611
  [k: string]: unknown;
612
612
  };
613
613
  /**
614
- * Fields used to order results. You _must_ specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_<DIRECTION(ASC|DESC)>`. You can pass multiple comma separated rules
614
+ * Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
615
615
  */
616
616
  order_by?: string;
617
617
  /**
@@ -1023,6 +1023,10 @@ export declare type SearchResultInstancesHrefSchema = {
1023
1023
  * Attributes to filter search results
1024
1024
  */
1025
1025
  filter: {
1026
+ /**
1027
+ * When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
1028
+ */
1029
+ fuzzy?: string;
1026
1030
  /**
1027
1031
  * Text to search
1028
1032
  */
@@ -6134,6 +6138,14 @@ export declare type ItemMeta = {
6134
6138
  * Whether the current record is valid or not
6135
6139
  */
6136
6140
  is_valid: boolean;
6141
+ /**
6142
+ * Whether the current version of the record is valid or not
6143
+ */
6144
+ is_current_version_valid: null | boolean;
6145
+ /**
6146
+ * Whether the published version of record is valid or not
6147
+ */
6148
+ is_published_version_valid: null | boolean;
6137
6149
  /**
6138
6150
  * The ID of the current record version
6139
6151
  */
@@ -6221,6 +6233,14 @@ export declare type ItemCreateSchema = {
6221
6233
  * Whether the current record is valid or not
6222
6234
  */
6223
6235
  is_valid?: boolean;
6236
+ /**
6237
+ * Whether the current version of the record is valid or not
6238
+ */
6239
+ is_current_version_valid?: null | boolean;
6240
+ /**
6241
+ * Whether the published version of the record is valid or not
6242
+ */
6243
+ is_published_version_valid?: null | boolean;
6224
6244
  /**
6225
6245
  * The ID of the current record version
6226
6246
  */
@@ -6277,6 +6297,14 @@ export declare type ItemUpdateSchema = {
6277
6297
  * The ID of the current record version (for optimistic locking, see the example)
6278
6298
  */
6279
6299
  current_version?: string;
6300
+ /**
6301
+ * Whether the current version of the record is valid or not
6302
+ */
6303
+ is_current_version_valid?: null | boolean;
6304
+ /**
6305
+ * Whether the published version of record is valid or not
6306
+ */
6307
+ is_published_version_valid?: null | boolean;
6280
6308
  /**
6281
6309
  * The new stage to move the record to
6282
6310
  */
@@ -7807,7 +7835,7 @@ export declare type ItemTypeFilter = {
7807
7835
  */
7808
7836
  name: string;
7809
7837
  /**
7810
- * The actual filter
7838
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7811
7839
  */
7812
7840
  filter: {
7813
7841
  [k: string]: unknown;
@@ -7844,7 +7872,7 @@ export declare type ItemTypeFilterAttributes = {
7844
7872
  */
7845
7873
  name: string;
7846
7874
  /**
7847
- * The actual filter
7875
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7848
7876
  */
7849
7877
  filter: {
7850
7878
  [k: string]: unknown;
@@ -7874,7 +7902,7 @@ export declare type ItemTypeFilterCreateSchema = {
7874
7902
  */
7875
7903
  name: string;
7876
7904
  /**
7877
- * The actual filter
7905
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7878
7906
  */
7879
7907
  filter: {
7880
7908
  [k: string]: unknown;
@@ -7901,7 +7929,7 @@ export declare type ItemTypeFilterUpdateSchema = {
7901
7929
  */
7902
7930
  shared?: boolean;
7903
7931
  /**
7904
- * The actual filter
7932
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7905
7933
  */
7906
7934
  filter: {
7907
7935
  [k: string]: unknown;
@@ -16,6 +16,8 @@ export declare function buildBlockRecord(body: SimpleSchemaTypes.ItemUpdateSchem
16
16
  status?: "published" | "draft" | "updated" | null | undefined;
17
17
  is_valid?: boolean | undefined;
18
18
  current_version?: string | undefined;
19
+ is_current_version_valid?: boolean | null | undefined;
20
+ is_published_version_valid?: boolean | null | undefined;
19
21
  stage?: string | null | undefined;
20
22
  } | undefined;
21
23
  relationships?: {
@@ -516,7 +516,7 @@ export declare type ItemInstancesHrefSchema = {
516
516
  [k: string]: unknown;
517
517
  };
518
518
  /**
519
- * Fields used to order results. You _must_ specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_<DIRECTION(ASC|DESC)>`. You can pass multiple comma separated rules
519
+ * Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
520
520
  */
521
521
  order_by?: string;
522
522
  /**
@@ -843,6 +843,10 @@ export declare type SearchResultInstancesHrefSchema = {
843
843
  * Attributes to filter search results
844
844
  */
845
845
  filter: {
846
+ /**
847
+ * When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
848
+ */
849
+ fuzzy?: string;
846
850
  /**
847
851
  * Text to search
848
852
  */
@@ -5710,6 +5714,14 @@ export declare type ItemMeta = {
5710
5714
  * Whether the current record is valid or not
5711
5715
  */
5712
5716
  is_valid: boolean;
5717
+ /**
5718
+ * Whether the current version of the record is valid or not
5719
+ */
5720
+ is_current_version_valid: null | boolean;
5721
+ /**
5722
+ * Whether the published version of record is valid or not
5723
+ */
5724
+ is_published_version_valid: null | boolean;
5713
5725
  /**
5714
5726
  * The ID of the current record version
5715
5727
  */
@@ -5827,6 +5839,14 @@ export declare type ItemCreateSchema = {
5827
5839
  * Whether the current record is valid or not
5828
5840
  */
5829
5841
  is_valid?: boolean;
5842
+ /**
5843
+ * Whether the current version of the record is valid or not
5844
+ */
5845
+ is_current_version_valid?: null | boolean;
5846
+ /**
5847
+ * Whether the published version of the record is valid or not
5848
+ */
5849
+ is_published_version_valid?: null | boolean;
5830
5850
  /**
5831
5851
  * The ID of the current record version
5832
5852
  */
@@ -5919,6 +5939,14 @@ export declare type ItemUpdateSchema = {
5919
5939
  * The ID of the current record version (for optimistic locking, see the example)
5920
5940
  */
5921
5941
  current_version?: string;
5942
+ /**
5943
+ * Whether the current version of the record is valid or not
5944
+ */
5945
+ is_current_version_valid?: null | boolean;
5946
+ /**
5947
+ * Whether the published version of record is valid or not
5948
+ */
5949
+ is_published_version_valid?: null | boolean;
5922
5950
  /**
5923
5951
  * The new stage to move the record to
5924
5952
  */
@@ -7815,7 +7843,7 @@ export declare type ItemTypeFilterAttributes = {
7815
7843
  */
7816
7844
  name: string;
7817
7845
  /**
7818
- * The actual filter
7846
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7819
7847
  */
7820
7848
  filter: {
7821
7849
  [k: string]: unknown;
@@ -7862,7 +7890,7 @@ export declare type ItemTypeFilterCreateSchema = {
7862
7890
  */
7863
7891
  name: string;
7864
7892
  /**
7865
- * The actual filter
7893
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7866
7894
  */
7867
7895
  filter: {
7868
7896
  [k: string]: unknown;
@@ -7910,7 +7938,7 @@ export declare type ItemTypeFilterUpdateSchema = {
7910
7938
  */
7911
7939
  shared?: boolean;
7912
7940
  /**
7913
- * The actual filter
7941
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7914
7942
  */
7915
7943
  filter: {
7916
7944
  [k: string]: unknown;
@@ -611,7 +611,7 @@ export declare type ItemInstancesHrefSchema = {
611
611
  [k: string]: unknown;
612
612
  };
613
613
  /**
614
- * Fields used to order results. You _must_ specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_<DIRECTION(ASC|DESC)>`. You can pass multiple comma separated rules
614
+ * Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
615
615
  */
616
616
  order_by?: string;
617
617
  /**
@@ -1023,6 +1023,10 @@ export declare type SearchResultInstancesHrefSchema = {
1023
1023
  * Attributes to filter search results
1024
1024
  */
1025
1025
  filter: {
1026
+ /**
1027
+ * When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
1028
+ */
1029
+ fuzzy?: string;
1026
1030
  /**
1027
1031
  * Text to search
1028
1032
  */
@@ -6134,6 +6138,14 @@ export declare type ItemMeta = {
6134
6138
  * Whether the current record is valid or not
6135
6139
  */
6136
6140
  is_valid: boolean;
6141
+ /**
6142
+ * Whether the current version of the record is valid or not
6143
+ */
6144
+ is_current_version_valid: null | boolean;
6145
+ /**
6146
+ * Whether the published version of record is valid or not
6147
+ */
6148
+ is_published_version_valid: null | boolean;
6137
6149
  /**
6138
6150
  * The ID of the current record version
6139
6151
  */
@@ -6221,6 +6233,14 @@ export declare type ItemCreateSchema = {
6221
6233
  * Whether the current record is valid or not
6222
6234
  */
6223
6235
  is_valid?: boolean;
6236
+ /**
6237
+ * Whether the current version of the record is valid or not
6238
+ */
6239
+ is_current_version_valid?: null | boolean;
6240
+ /**
6241
+ * Whether the published version of the record is valid or not
6242
+ */
6243
+ is_published_version_valid?: null | boolean;
6224
6244
  /**
6225
6245
  * The ID of the current record version
6226
6246
  */
@@ -6277,6 +6297,14 @@ export declare type ItemUpdateSchema = {
6277
6297
  * The ID of the current record version (for optimistic locking, see the example)
6278
6298
  */
6279
6299
  current_version?: string;
6300
+ /**
6301
+ * Whether the current version of the record is valid or not
6302
+ */
6303
+ is_current_version_valid?: null | boolean;
6304
+ /**
6305
+ * Whether the published version of record is valid or not
6306
+ */
6307
+ is_published_version_valid?: null | boolean;
6280
6308
  /**
6281
6309
  * The new stage to move the record to
6282
6310
  */
@@ -7807,7 +7835,7 @@ export declare type ItemTypeFilter = {
7807
7835
  */
7808
7836
  name: string;
7809
7837
  /**
7810
- * The actual filter
7838
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7811
7839
  */
7812
7840
  filter: {
7813
7841
  [k: string]: unknown;
@@ -7844,7 +7872,7 @@ export declare type ItemTypeFilterAttributes = {
7844
7872
  */
7845
7873
  name: string;
7846
7874
  /**
7847
- * The actual filter
7875
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7848
7876
  */
7849
7877
  filter: {
7850
7878
  [k: string]: unknown;
@@ -7874,7 +7902,7 @@ export declare type ItemTypeFilterCreateSchema = {
7874
7902
  */
7875
7903
  name: string;
7876
7904
  /**
7877
- * The actual filter
7905
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7878
7906
  */
7879
7907
  filter: {
7880
7908
  [k: string]: unknown;
@@ -7901,7 +7929,7 @@ export declare type ItemTypeFilterUpdateSchema = {
7901
7929
  */
7902
7930
  shared?: boolean;
7903
7931
  /**
7904
- * The actual filter
7932
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7905
7933
  */
7906
7934
  filter: {
7907
7935
  [k: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -37,10 +37,10 @@
37
37
  "url": "https://github.com/datocms/js-rest-api-clients/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@datocms/rest-client-utils": "^1.1.1"
40
+ "@datocms/rest-client-utils": "^1.1.2"
41
41
  },
42
42
  "devDependencies": {
43
- "@datocms/dashboard-client": "^1.1.1"
43
+ "@datocms/dashboard-client": "^1.1.2"
44
44
  },
45
- "gitHead": "d3b88053a1500682a3d679622975b3da7fe6aff5"
45
+ "gitHead": "60159cb125e4a493dbbeefb4ac3764d25c2abae8"
46
46
  }
@@ -520,7 +520,7 @@ export type ItemInstancesHrefSchema = {
520
520
  [k: string]: unknown;
521
521
  };
522
522
  /**
523
- * Fields used to order results. You _must_ specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_<DIRECTION(ASC|DESC)>`. You can pass multiple comma separated rules
523
+ * Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
524
524
  */
525
525
  order_by?: string;
526
526
  /**
@@ -847,6 +847,10 @@ export type SearchResultInstancesHrefSchema = {
847
847
  * Attributes to filter search results
848
848
  */
849
849
  filter: {
850
+ /**
851
+ * When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
852
+ */
853
+ fuzzy?: string;
850
854
  /**
851
855
  * Text to search
852
856
  */
@@ -6105,6 +6109,14 @@ export type ItemMeta = {
6105
6109
  * Whether the current record is valid or not
6106
6110
  */
6107
6111
  is_valid: boolean;
6112
+ /**
6113
+ * Whether the current version of the record is valid or not
6114
+ */
6115
+ is_current_version_valid: null | boolean;
6116
+ /**
6117
+ * Whether the published version of record is valid or not
6118
+ */
6119
+ is_published_version_valid: null | boolean;
6108
6120
  /**
6109
6121
  * The ID of the current record version
6110
6122
  */
@@ -6226,6 +6238,14 @@ export type ItemCreateSchema = {
6226
6238
  * Whether the current record is valid or not
6227
6239
  */
6228
6240
  is_valid?: boolean;
6241
+ /**
6242
+ * Whether the current version of the record is valid or not
6243
+ */
6244
+ is_current_version_valid?: null | boolean;
6245
+ /**
6246
+ * Whether the published version of the record is valid or not
6247
+ */
6248
+ is_published_version_valid?: null | boolean;
6229
6249
  /**
6230
6250
  * The ID of the current record version
6231
6251
  */
@@ -6322,6 +6342,14 @@ export type ItemUpdateSchema = {
6322
6342
  * The ID of the current record version (for optimistic locking, see the example)
6323
6343
  */
6324
6344
  current_version?: string;
6345
+ /**
6346
+ * Whether the current version of the record is valid or not
6347
+ */
6348
+ is_current_version_valid?: null | boolean;
6349
+ /**
6350
+ * Whether the published version of record is valid or not
6351
+ */
6352
+ is_published_version_valid?: null | boolean;
6325
6353
  /**
6326
6354
  * The new stage to move the record to
6327
6355
  */
@@ -8342,7 +8370,7 @@ export type ItemTypeFilterAttributes = {
8342
8370
  */
8343
8371
  name: string;
8344
8372
  /**
8345
- * The actual filter
8373
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
8346
8374
  */
8347
8375
  filter: {
8348
8376
  [k: string]: unknown;
@@ -8392,7 +8420,7 @@ export type ItemTypeFilterCreateSchema = {
8392
8420
  */
8393
8421
  name: string;
8394
8422
  /**
8395
- * The actual filter
8423
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
8396
8424
  */
8397
8425
  filter: {
8398
8426
  [k: string]: unknown;
@@ -8442,7 +8470,7 @@ export type ItemTypeFilterUpdateSchema = {
8442
8470
  */
8443
8471
  shared?: boolean;
8444
8472
  /**
8445
- * The actual filter
8473
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
8446
8474
  */
8447
8475
  filter: {
8448
8476
  [k: string]: unknown;
@@ -615,7 +615,7 @@ export type ItemInstancesHrefSchema = {
615
615
  [k: string]: unknown;
616
616
  };
617
617
  /**
618
- * Fields used to order results. You _must_ specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_<DIRECTION(ASC|DESC)>`. You can pass multiple comma separated rules
618
+ * Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
619
619
  */
620
620
  order_by?: string;
621
621
  /**
@@ -1027,6 +1027,10 @@ export type SearchResultInstancesHrefSchema = {
1027
1027
  * Attributes to filter search results
1028
1028
  */
1029
1029
  filter: {
1030
+ /**
1031
+ * When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
1032
+ */
1033
+ fuzzy?: string;
1030
1034
  /**
1031
1035
  * Text to search
1032
1036
  */
@@ -6526,6 +6530,14 @@ export type ItemMeta = {
6526
6530
  * Whether the current record is valid or not
6527
6531
  */
6528
6532
  is_valid: boolean;
6533
+ /**
6534
+ * Whether the current version of the record is valid or not
6535
+ */
6536
+ is_current_version_valid: null | boolean;
6537
+ /**
6538
+ * Whether the published version of record is valid or not
6539
+ */
6540
+ is_published_version_valid: null | boolean;
6529
6541
  /**
6530
6542
  * The ID of the current record version
6531
6543
  */
@@ -6618,6 +6630,14 @@ export type ItemCreateSchema = {
6618
6630
  * Whether the current record is valid or not
6619
6631
  */
6620
6632
  is_valid?: boolean;
6633
+ /**
6634
+ * Whether the current version of the record is valid or not
6635
+ */
6636
+ is_current_version_valid?: null | boolean;
6637
+ /**
6638
+ * Whether the published version of the record is valid or not
6639
+ */
6640
+ is_published_version_valid?: null | boolean;
6621
6641
  /**
6622
6642
  * The ID of the current record version
6623
6643
  */
@@ -6675,6 +6695,14 @@ export type ItemUpdateSchema = {
6675
6695
  * The ID of the current record version (for optimistic locking, see the example)
6676
6696
  */
6677
6697
  current_version?: string;
6698
+ /**
6699
+ * Whether the current version of the record is valid or not
6700
+ */
6701
+ is_current_version_valid?: null | boolean;
6702
+ /**
6703
+ * Whether the published version of record is valid or not
6704
+ */
6705
+ is_published_version_valid?: null | boolean;
6678
6706
  /**
6679
6707
  * The new stage to move the record to
6680
6708
  */
@@ -8251,7 +8279,7 @@ export type ItemTypeFilter = {
8251
8279
  */
8252
8280
  name: string;
8253
8281
  /**
8254
- * The actual filter
8282
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
8255
8283
  */
8256
8284
  filter: {
8257
8285
  [k: string]: unknown;
@@ -8289,7 +8317,7 @@ export type ItemTypeFilterAttributes = {
8289
8317
  */
8290
8318
  name: string;
8291
8319
  /**
8292
- * The actual filter
8320
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
8293
8321
  */
8294
8322
  filter: {
8295
8323
  [k: string]: unknown;
@@ -8321,7 +8349,7 @@ export type ItemTypeFilterCreateSchema = {
8321
8349
  */
8322
8350
  name: string;
8323
8351
  /**
8324
- * The actual filter
8352
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
8325
8353
  */
8326
8354
  filter: {
8327
8355
  [k: string]: unknown;
@@ -8349,7 +8377,7 @@ export type ItemTypeFilterUpdateSchema = {
8349
8377
  */
8350
8378
  shared?: boolean;
8351
8379
  /**
8352
- * The actual filter
8380
+ * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
8353
8381
  */
8354
8382
  filter: {
8355
8383
  [k: string]: unknown;