@datocms/cma-client 2.2.4 → 2.2.6
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/dist/cjs/generated/Client.js +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +48 -24
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +48 -24
- package/dist/types/generated/SchemaTypes.d.ts +48 -24
- package/dist/types/generated/SimpleSchemaTypes.d.ts +48 -24
- package/package.json +3 -3
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +48 -24
- package/src/generated/SimpleSchemaTypes.ts +48 -24
|
@@ -127,7 +127,7 @@ var Client = /** @class */ (function () {
|
|
|
127
127
|
});
|
|
128
128
|
Client.prototype.request = function (options) {
|
|
129
129
|
var _this = this;
|
|
130
|
-
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v2.2.
|
|
130
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v2.2.6', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
131
131
|
? { 'X-Environment': this.config.environment }
|
|
132
132
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
133
133
|
return _this.jobResultsFetcher
|
|
@@ -101,7 +101,7 @@ var Client = /** @class */ (function () {
|
|
|
101
101
|
});
|
|
102
102
|
Client.prototype.request = function (options) {
|
|
103
103
|
var _this = this;
|
|
104
|
-
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v2.2.
|
|
104
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v2.2.6', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
105
105
|
? { 'X-Environment': this.config.environment }
|
|
106
106
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
107
107
|
return _this.jobResultsFetcher
|
|
@@ -3967,7 +3967,7 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
3967
3967
|
*
|
|
3968
3968
|
* Below you'll find a summary of all the validators available for each field type with their settings.
|
|
3969
3969
|
*
|
|
3970
|
-
* Some validators are required for a specific type of field. For example, the
|
|
3970
|
+
* Some validators are required for a specific type of field. For example, the _Modular Content_ field needs to have a `rich_text_blocks` validator, specifying which types of blocks it can contain.
|
|
3971
3971
|
*
|
|
3972
3972
|
* ### Specifying the appearance
|
|
3973
3973
|
*
|
|
@@ -4153,23 +4153,22 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4153
4153
|
* <details>
|
|
4154
4154
|
* <summary>SEO and Social (<code>seo</code>)</summary>
|
|
4155
4155
|
*
|
|
4156
|
-
* | Property | Value
|
|
4157
|
-
* | ------------------------------ |
|
|
4158
|
-
* | Code | `seo`
|
|
4159
|
-
* | Built-in editors for the field | `seo`
|
|
4160
|
-
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `title_length`, `description_length` |
|
|
4156
|
+
* | Property | Value |
|
|
4157
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
4158
|
+
* | Code | `seo` |
|
|
4159
|
+
* | Built-in editors for the field | `seo` |
|
|
4160
|
+
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `title_length`, `description_length` |
|
|
4161
4161
|
*
|
|
4162
4162
|
* </details>
|
|
4163
4163
|
*
|
|
4164
4164
|
* <details>
|
|
4165
4165
|
* <summary>Slug (<code>slug</code>)</summary>
|
|
4166
4166
|
*
|
|
4167
|
-
* | Property | Value
|
|
4168
|
-
* | ------------------------------ |
|
|
4169
|
-
* | Code | `slug`
|
|
4170
|
-
* | Built-in editors for the field | `slug`
|
|
4171
|
-
* |
|
|
4172
|
-
* | Other validators available | `required`, `length`, `slug_format` |
|
|
4167
|
+
* | Property | Value |
|
|
4168
|
+
* | ------------------------------ | ------------------------------------------------------- |
|
|
4169
|
+
* | Code | `slug` |
|
|
4170
|
+
* | Built-in editors for the field | `slug` |
|
|
4171
|
+
* | Available validators | `required`, `length`, `slug_format`, `slug_title_field` |
|
|
4173
4172
|
*
|
|
4174
4173
|
* </details>
|
|
4175
4174
|
*
|
|
@@ -4187,22 +4186,22 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4187
4186
|
* <details>
|
|
4188
4187
|
* <summary>Single-asset (<code>file</code>)</summary>
|
|
4189
4188
|
*
|
|
4190
|
-
* | Property | Value
|
|
4191
|
-
* | ------------------------------ |
|
|
4192
|
-
* | Code | `file`
|
|
4193
|
-
* | Built-in editors for the field | `file`
|
|
4194
|
-
* | Available validators | `required`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4189
|
+
* | Property | Value |
|
|
4190
|
+
* | ------------------------------ | ---------------------------------------------------------------------------------------------------- |
|
|
4191
|
+
* | Code | `file` |
|
|
4192
|
+
* | Built-in editors for the field | `file` |
|
|
4193
|
+
* | Available validators | `required`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4195
4194
|
*
|
|
4196
4195
|
* </details>
|
|
4197
4196
|
*
|
|
4198
4197
|
* <details>
|
|
4199
4198
|
* <summary>Asset gallery (<code>gallery</code>)</summary>
|
|
4200
4199
|
*
|
|
4201
|
-
* | Property | Value
|
|
4202
|
-
* | ------------------------------ |
|
|
4203
|
-
* | Code | `gallery`
|
|
4204
|
-
* | Built-in editors for the field | `gallery`
|
|
4205
|
-
* | Available validators | `size`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4200
|
+
* | Property | Value |
|
|
4201
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
4202
|
+
* | Code | `gallery` |
|
|
4203
|
+
* | Built-in editors for the field | `gallery` |
|
|
4204
|
+
* | Available validators | `size`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4206
4205
|
*
|
|
4207
4206
|
* </details>
|
|
4208
4207
|
*
|
|
@@ -4358,7 +4357,7 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4358
4357
|
* <details>
|
|
4359
4358
|
* <summary><code>image_dimensions</code></summary>
|
|
4360
4359
|
*
|
|
4361
|
-
* Accept assets only within a specified height
|
|
4360
|
+
* Accept assets only within a specified height and width range.
|
|
4362
4361
|
*
|
|
4363
4362
|
* | Parameter | Type | Required | Description |
|
|
4364
4363
|
* | ------------------ | --------- | -------- | -------------------------------- |
|
|
@@ -4367,7 +4366,25 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4367
4366
|
* | `height_min_value` | `Integer` | | Numeric value for minimum width |
|
|
4368
4367
|
* | `height_max_value` | `Integer` | | Numeric value for maximum height |
|
|
4369
4368
|
*
|
|
4370
|
-
* At least one
|
|
4369
|
+
* At least one pair of height/width parameters must be specified.
|
|
4370
|
+
*
|
|
4371
|
+
* </details>
|
|
4372
|
+
*
|
|
4373
|
+
* <details>
|
|
4374
|
+
* <summary><code>image_aspect_ratio</code></summary>
|
|
4375
|
+
*
|
|
4376
|
+
* Accept assets only within a specified aspect ratio range.
|
|
4377
|
+
*
|
|
4378
|
+
* | Parameter | Type | Required | Description |
|
|
4379
|
+
* | -------------------- | --------- | -------- | ---------------------------------------------- |
|
|
4380
|
+
* | `min_ar_numerator` | `Integer` | | Numerator part of the minimum aspect ratio |
|
|
4381
|
+
* | `min_ar_denominator` | `Integer` | | Denominator part of the minimum aspect ratio |
|
|
4382
|
+
* | `eq_ar_numerator` | `Integer` | | Numerator part for the required aspect ratio |
|
|
4383
|
+
* | `eq_ar_denominator` | `Integer` | | Denominator part for the required aspect ratio |
|
|
4384
|
+
* | `max_ar_numerator` | `Integer` | | Numerator part of the maximum aspect ratio |
|
|
4385
|
+
* | `max_ar_denominator` | `Integer` | | Denominator part of the maximum aspect ratio |
|
|
4386
|
+
*
|
|
4387
|
+
* At least one pair of numerator/denominator must be specified.
|
|
4371
4388
|
*
|
|
4372
4389
|
* </details>
|
|
4373
4390
|
*
|
|
@@ -5896,6 +5913,13 @@ export declare type BuildEventSelfTargetSchema = {
|
|
|
5896
5913
|
/**
|
|
5897
5914
|
* DatoCMS stores the individual pieces of content you create from a model as records, which are much like table rows in a database. For backward-compatibility reasons, the API refers to records as "items".
|
|
5898
5915
|
*
|
|
5916
|
+
* You can learn how the records are structured at the API level, and everything that is necessary to interact with the records through CMA in the following detail sections:
|
|
5917
|
+
*
|
|
5918
|
+
* * [List/filter records](https://www.datocms.com/docs/content-management-api/resources/item/instances)
|
|
5919
|
+
* * [Create new records](https://www.datocms.com/docs/content-management-api/resources/item/create)
|
|
5920
|
+
* * [Update existing records](https://www.datocms.com/docs/content-management-api/resources/item/update)
|
|
5921
|
+
*
|
|
5922
|
+
*
|
|
5899
5923
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
5900
5924
|
* via the `definition` "item".
|
|
5901
5925
|
*/
|
|
@@ -4488,7 +4488,7 @@ export declare type JobData = {
|
|
|
4488
4488
|
*
|
|
4489
4489
|
* Below you'll find a summary of all the validators available for each field type with their settings.
|
|
4490
4490
|
*
|
|
4491
|
-
* Some validators are required for a specific type of field. For example, the
|
|
4491
|
+
* Some validators are required for a specific type of field. For example, the _Modular Content_ field needs to have a `rich_text_blocks` validator, specifying which types of blocks it can contain.
|
|
4492
4492
|
*
|
|
4493
4493
|
* ### Specifying the appearance
|
|
4494
4494
|
*
|
|
@@ -4674,23 +4674,22 @@ export declare type JobData = {
|
|
|
4674
4674
|
* <details>
|
|
4675
4675
|
* <summary>SEO and Social (<code>seo</code>)</summary>
|
|
4676
4676
|
*
|
|
4677
|
-
* | Property | Value
|
|
4678
|
-
* | ------------------------------ |
|
|
4679
|
-
* | Code | `seo`
|
|
4680
|
-
* | Built-in editors for the field | `seo`
|
|
4681
|
-
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `title_length`, `description_length` |
|
|
4677
|
+
* | Property | Value |
|
|
4678
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
4679
|
+
* | Code | `seo` |
|
|
4680
|
+
* | Built-in editors for the field | `seo` |
|
|
4681
|
+
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `title_length`, `description_length` |
|
|
4682
4682
|
*
|
|
4683
4683
|
* </details>
|
|
4684
4684
|
*
|
|
4685
4685
|
* <details>
|
|
4686
4686
|
* <summary>Slug (<code>slug</code>)</summary>
|
|
4687
4687
|
*
|
|
4688
|
-
* | Property | Value
|
|
4689
|
-
* | ------------------------------ |
|
|
4690
|
-
* | Code | `slug`
|
|
4691
|
-
* | Built-in editors for the field | `slug`
|
|
4692
|
-
* |
|
|
4693
|
-
* | Other validators available | `required`, `length`, `slug_format` |
|
|
4688
|
+
* | Property | Value |
|
|
4689
|
+
* | ------------------------------ | ------------------------------------------------------- |
|
|
4690
|
+
* | Code | `slug` |
|
|
4691
|
+
* | Built-in editors for the field | `slug` |
|
|
4692
|
+
* | Available validators | `required`, `length`, `slug_format`, `slug_title_field` |
|
|
4694
4693
|
*
|
|
4695
4694
|
* </details>
|
|
4696
4695
|
*
|
|
@@ -4708,22 +4707,22 @@ export declare type JobData = {
|
|
|
4708
4707
|
* <details>
|
|
4709
4708
|
* <summary>Single-asset (<code>file</code>)</summary>
|
|
4710
4709
|
*
|
|
4711
|
-
* | Property | Value
|
|
4712
|
-
* | ------------------------------ |
|
|
4713
|
-
* | Code | `file`
|
|
4714
|
-
* | Built-in editors for the field | `file`
|
|
4715
|
-
* | Available validators | `required`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4710
|
+
* | Property | Value |
|
|
4711
|
+
* | ------------------------------ | ---------------------------------------------------------------------------------------------------- |
|
|
4712
|
+
* | Code | `file` |
|
|
4713
|
+
* | Built-in editors for the field | `file` |
|
|
4714
|
+
* | Available validators | `required`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4716
4715
|
*
|
|
4717
4716
|
* </details>
|
|
4718
4717
|
*
|
|
4719
4718
|
* <details>
|
|
4720
4719
|
* <summary>Asset gallery (<code>gallery</code>)</summary>
|
|
4721
4720
|
*
|
|
4722
|
-
* | Property | Value
|
|
4723
|
-
* | ------------------------------ |
|
|
4724
|
-
* | Code | `gallery`
|
|
4725
|
-
* | Built-in editors for the field | `gallery`
|
|
4726
|
-
* | Available validators | `size`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4721
|
+
* | Property | Value |
|
|
4722
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
4723
|
+
* | Code | `gallery` |
|
|
4724
|
+
* | Built-in editors for the field | `gallery` |
|
|
4725
|
+
* | Available validators | `size`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4727
4726
|
*
|
|
4728
4727
|
* </details>
|
|
4729
4728
|
*
|
|
@@ -4879,7 +4878,7 @@ export declare type JobData = {
|
|
|
4879
4878
|
* <details>
|
|
4880
4879
|
* <summary><code>image_dimensions</code></summary>
|
|
4881
4880
|
*
|
|
4882
|
-
* Accept assets only within a specified height
|
|
4881
|
+
* Accept assets only within a specified height and width range.
|
|
4883
4882
|
*
|
|
4884
4883
|
* | Parameter | Type | Required | Description |
|
|
4885
4884
|
* | ------------------ | --------- | -------- | -------------------------------- |
|
|
@@ -4888,7 +4887,25 @@ export declare type JobData = {
|
|
|
4888
4887
|
* | `height_min_value` | `Integer` | | Numeric value for minimum width |
|
|
4889
4888
|
* | `height_max_value` | `Integer` | | Numeric value for maximum height |
|
|
4890
4889
|
*
|
|
4891
|
-
* At least one
|
|
4890
|
+
* At least one pair of height/width parameters must be specified.
|
|
4891
|
+
*
|
|
4892
|
+
* </details>
|
|
4893
|
+
*
|
|
4894
|
+
* <details>
|
|
4895
|
+
* <summary><code>image_aspect_ratio</code></summary>
|
|
4896
|
+
*
|
|
4897
|
+
* Accept assets only within a specified aspect ratio range.
|
|
4898
|
+
*
|
|
4899
|
+
* | Parameter | Type | Required | Description |
|
|
4900
|
+
* | -------------------- | --------- | -------- | ---------------------------------------------- |
|
|
4901
|
+
* | `min_ar_numerator` | `Integer` | | Numerator part of the minimum aspect ratio |
|
|
4902
|
+
* | `min_ar_denominator` | `Integer` | | Denominator part of the minimum aspect ratio |
|
|
4903
|
+
* | `eq_ar_numerator` | `Integer` | | Numerator part for the required aspect ratio |
|
|
4904
|
+
* | `eq_ar_denominator` | `Integer` | | Denominator part for the required aspect ratio |
|
|
4905
|
+
* | `max_ar_numerator` | `Integer` | | Numerator part of the maximum aspect ratio |
|
|
4906
|
+
* | `max_ar_denominator` | `Integer` | | Denominator part of the maximum aspect ratio |
|
|
4907
|
+
*
|
|
4908
|
+
* At least one pair of numerator/denominator must be specified.
|
|
4892
4909
|
*
|
|
4893
4910
|
* </details>
|
|
4894
4911
|
*
|
|
@@ -6330,6 +6347,13 @@ export declare type BuildEventRelationships = {
|
|
|
6330
6347
|
/**
|
|
6331
6348
|
* DatoCMS stores the individual pieces of content you create from a model as records, which are much like table rows in a database. For backward-compatibility reasons, the API refers to records as "items".
|
|
6332
6349
|
*
|
|
6350
|
+
* You can learn how the records are structured at the API level, and everything that is necessary to interact with the records through CMA in the following detail sections:
|
|
6351
|
+
*
|
|
6352
|
+
* * [List/filter records](https://www.datocms.com/docs/content-management-api/resources/item/instances)
|
|
6353
|
+
* * [Create new records](https://www.datocms.com/docs/content-management-api/resources/item/create)
|
|
6354
|
+
* * [Update existing records](https://www.datocms.com/docs/content-management-api/resources/item/update)
|
|
6355
|
+
*
|
|
6356
|
+
*
|
|
6333
6357
|
* This interface was referenced by `ScheduledPublication`'s JSON-Schema
|
|
6334
6358
|
* via the `destroy.targetSchema` link.
|
|
6335
6359
|
*
|
|
@@ -3967,7 +3967,7 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
3967
3967
|
*
|
|
3968
3968
|
* Below you'll find a summary of all the validators available for each field type with their settings.
|
|
3969
3969
|
*
|
|
3970
|
-
* Some validators are required for a specific type of field. For example, the
|
|
3970
|
+
* Some validators are required for a specific type of field. For example, the _Modular Content_ field needs to have a `rich_text_blocks` validator, specifying which types of blocks it can contain.
|
|
3971
3971
|
*
|
|
3972
3972
|
* ### Specifying the appearance
|
|
3973
3973
|
*
|
|
@@ -4153,23 +4153,22 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4153
4153
|
* <details>
|
|
4154
4154
|
* <summary>SEO and Social (<code>seo</code>)</summary>
|
|
4155
4155
|
*
|
|
4156
|
-
* | Property | Value
|
|
4157
|
-
* | ------------------------------ |
|
|
4158
|
-
* | Code | `seo`
|
|
4159
|
-
* | Built-in editors for the field | `seo`
|
|
4160
|
-
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `title_length`, `description_length` |
|
|
4156
|
+
* | Property | Value |
|
|
4157
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
4158
|
+
* | Code | `seo` |
|
|
4159
|
+
* | Built-in editors for the field | `seo` |
|
|
4160
|
+
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `title_length`, `description_length` |
|
|
4161
4161
|
*
|
|
4162
4162
|
* </details>
|
|
4163
4163
|
*
|
|
4164
4164
|
* <details>
|
|
4165
4165
|
* <summary>Slug (<code>slug</code>)</summary>
|
|
4166
4166
|
*
|
|
4167
|
-
* | Property | Value
|
|
4168
|
-
* | ------------------------------ |
|
|
4169
|
-
* | Code | `slug`
|
|
4170
|
-
* | Built-in editors for the field | `slug`
|
|
4171
|
-
* |
|
|
4172
|
-
* | Other validators available | `required`, `length`, `slug_format` |
|
|
4167
|
+
* | Property | Value |
|
|
4168
|
+
* | ------------------------------ | ------------------------------------------------------- |
|
|
4169
|
+
* | Code | `slug` |
|
|
4170
|
+
* | Built-in editors for the field | `slug` |
|
|
4171
|
+
* | Available validators | `required`, `length`, `slug_format`, `slug_title_field` |
|
|
4173
4172
|
*
|
|
4174
4173
|
* </details>
|
|
4175
4174
|
*
|
|
@@ -4187,22 +4186,22 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4187
4186
|
* <details>
|
|
4188
4187
|
* <summary>Single-asset (<code>file</code>)</summary>
|
|
4189
4188
|
*
|
|
4190
|
-
* | Property | Value
|
|
4191
|
-
* | ------------------------------ |
|
|
4192
|
-
* | Code | `file`
|
|
4193
|
-
* | Built-in editors for the field | `file`
|
|
4194
|
-
* | Available validators | `required`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4189
|
+
* | Property | Value |
|
|
4190
|
+
* | ------------------------------ | ---------------------------------------------------------------------------------------------------- |
|
|
4191
|
+
* | Code | `file` |
|
|
4192
|
+
* | Built-in editors for the field | `file` |
|
|
4193
|
+
* | Available validators | `required`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4195
4194
|
*
|
|
4196
4195
|
* </details>
|
|
4197
4196
|
*
|
|
4198
4197
|
* <details>
|
|
4199
4198
|
* <summary>Asset gallery (<code>gallery</code>)</summary>
|
|
4200
4199
|
*
|
|
4201
|
-
* | Property | Value
|
|
4202
|
-
* | ------------------------------ |
|
|
4203
|
-
* | Code | `gallery`
|
|
4204
|
-
* | Built-in editors for the field | `gallery`
|
|
4205
|
-
* | Available validators | `size`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4200
|
+
* | Property | Value |
|
|
4201
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
4202
|
+
* | Code | `gallery` |
|
|
4203
|
+
* | Built-in editors for the field | `gallery` |
|
|
4204
|
+
* | Available validators | `size`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4206
4205
|
*
|
|
4207
4206
|
* </details>
|
|
4208
4207
|
*
|
|
@@ -4358,7 +4357,7 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4358
4357
|
* <details>
|
|
4359
4358
|
* <summary><code>image_dimensions</code></summary>
|
|
4360
4359
|
*
|
|
4361
|
-
* Accept assets only within a specified height
|
|
4360
|
+
* Accept assets only within a specified height and width range.
|
|
4362
4361
|
*
|
|
4363
4362
|
* | Parameter | Type | Required | Description |
|
|
4364
4363
|
* | ------------------ | --------- | -------- | -------------------------------- |
|
|
@@ -4367,7 +4366,25 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
4367
4366
|
* | `height_min_value` | `Integer` | | Numeric value for minimum width |
|
|
4368
4367
|
* | `height_max_value` | `Integer` | | Numeric value for maximum height |
|
|
4369
4368
|
*
|
|
4370
|
-
* At least one
|
|
4369
|
+
* At least one pair of height/width parameters must be specified.
|
|
4370
|
+
*
|
|
4371
|
+
* </details>
|
|
4372
|
+
*
|
|
4373
|
+
* <details>
|
|
4374
|
+
* <summary><code>image_aspect_ratio</code></summary>
|
|
4375
|
+
*
|
|
4376
|
+
* Accept assets only within a specified aspect ratio range.
|
|
4377
|
+
*
|
|
4378
|
+
* | Parameter | Type | Required | Description |
|
|
4379
|
+
* | -------------------- | --------- | -------- | ---------------------------------------------- |
|
|
4380
|
+
* | `min_ar_numerator` | `Integer` | | Numerator part of the minimum aspect ratio |
|
|
4381
|
+
* | `min_ar_denominator` | `Integer` | | Denominator part of the minimum aspect ratio |
|
|
4382
|
+
* | `eq_ar_numerator` | `Integer` | | Numerator part for the required aspect ratio |
|
|
4383
|
+
* | `eq_ar_denominator` | `Integer` | | Denominator part for the required aspect ratio |
|
|
4384
|
+
* | `max_ar_numerator` | `Integer` | | Numerator part of the maximum aspect ratio |
|
|
4385
|
+
* | `max_ar_denominator` | `Integer` | | Denominator part of the maximum aspect ratio |
|
|
4386
|
+
*
|
|
4387
|
+
* At least one pair of numerator/denominator must be specified.
|
|
4371
4388
|
*
|
|
4372
4389
|
* </details>
|
|
4373
4390
|
*
|
|
@@ -5896,6 +5913,13 @@ export declare type BuildEventSelfTargetSchema = {
|
|
|
5896
5913
|
/**
|
|
5897
5914
|
* DatoCMS stores the individual pieces of content you create from a model as records, which are much like table rows in a database. For backward-compatibility reasons, the API refers to records as "items".
|
|
5898
5915
|
*
|
|
5916
|
+
* You can learn how the records are structured at the API level, and everything that is necessary to interact with the records through CMA in the following detail sections:
|
|
5917
|
+
*
|
|
5918
|
+
* * [List/filter records](https://www.datocms.com/docs/content-management-api/resources/item/instances)
|
|
5919
|
+
* * [Create new records](https://www.datocms.com/docs/content-management-api/resources/item/create)
|
|
5920
|
+
* * [Update existing records](https://www.datocms.com/docs/content-management-api/resources/item/update)
|
|
5921
|
+
*
|
|
5922
|
+
*
|
|
5899
5923
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
5900
5924
|
* via the `definition` "item".
|
|
5901
5925
|
*/
|
|
@@ -4488,7 +4488,7 @@ export declare type JobData = {
|
|
|
4488
4488
|
*
|
|
4489
4489
|
* Below you'll find a summary of all the validators available for each field type with their settings.
|
|
4490
4490
|
*
|
|
4491
|
-
* Some validators are required for a specific type of field. For example, the
|
|
4491
|
+
* Some validators are required for a specific type of field. For example, the _Modular Content_ field needs to have a `rich_text_blocks` validator, specifying which types of blocks it can contain.
|
|
4492
4492
|
*
|
|
4493
4493
|
* ### Specifying the appearance
|
|
4494
4494
|
*
|
|
@@ -4674,23 +4674,22 @@ export declare type JobData = {
|
|
|
4674
4674
|
* <details>
|
|
4675
4675
|
* <summary>SEO and Social (<code>seo</code>)</summary>
|
|
4676
4676
|
*
|
|
4677
|
-
* | Property | Value
|
|
4678
|
-
* | ------------------------------ |
|
|
4679
|
-
* | Code | `seo`
|
|
4680
|
-
* | Built-in editors for the field | `seo`
|
|
4681
|
-
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `title_length`, `description_length` |
|
|
4677
|
+
* | Property | Value |
|
|
4678
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
4679
|
+
* | Code | `seo` |
|
|
4680
|
+
* | Built-in editors for the field | `seo` |
|
|
4681
|
+
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `title_length`, `description_length` |
|
|
4682
4682
|
*
|
|
4683
4683
|
* </details>
|
|
4684
4684
|
*
|
|
4685
4685
|
* <details>
|
|
4686
4686
|
* <summary>Slug (<code>slug</code>)</summary>
|
|
4687
4687
|
*
|
|
4688
|
-
* | Property | Value
|
|
4689
|
-
* | ------------------------------ |
|
|
4690
|
-
* | Code | `slug`
|
|
4691
|
-
* | Built-in editors for the field | `slug`
|
|
4692
|
-
* |
|
|
4693
|
-
* | Other validators available | `required`, `length`, `slug_format` |
|
|
4688
|
+
* | Property | Value |
|
|
4689
|
+
* | ------------------------------ | ------------------------------------------------------- |
|
|
4690
|
+
* | Code | `slug` |
|
|
4691
|
+
* | Built-in editors for the field | `slug` |
|
|
4692
|
+
* | Available validators | `required`, `length`, `slug_format`, `slug_title_field` |
|
|
4694
4693
|
*
|
|
4695
4694
|
* </details>
|
|
4696
4695
|
*
|
|
@@ -4708,22 +4707,22 @@ export declare type JobData = {
|
|
|
4708
4707
|
* <details>
|
|
4709
4708
|
* <summary>Single-asset (<code>file</code>)</summary>
|
|
4710
4709
|
*
|
|
4711
|
-
* | Property | Value
|
|
4712
|
-
* | ------------------------------ |
|
|
4713
|
-
* | Code | `file`
|
|
4714
|
-
* | Built-in editors for the field | `file`
|
|
4715
|
-
* | Available validators | `required`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4710
|
+
* | Property | Value |
|
|
4711
|
+
* | ------------------------------ | ---------------------------------------------------------------------------------------------------- |
|
|
4712
|
+
* | Code | `file` |
|
|
4713
|
+
* | Built-in editors for the field | `file` |
|
|
4714
|
+
* | Available validators | `required`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4716
4715
|
*
|
|
4717
4716
|
* </details>
|
|
4718
4717
|
*
|
|
4719
4718
|
* <details>
|
|
4720
4719
|
* <summary>Asset gallery (<code>gallery</code>)</summary>
|
|
4721
4720
|
*
|
|
4722
|
-
* | Property | Value
|
|
4723
|
-
* | ------------------------------ |
|
|
4724
|
-
* | Code | `gallery`
|
|
4725
|
-
* | Built-in editors for the field | `gallery`
|
|
4726
|
-
* | Available validators | `size`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4721
|
+
* | Property | Value |
|
|
4722
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
4723
|
+
* | Code | `gallery` |
|
|
4724
|
+
* | Built-in editors for the field | `gallery` |
|
|
4725
|
+
* | Available validators | `size`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4727
4726
|
*
|
|
4728
4727
|
* </details>
|
|
4729
4728
|
*
|
|
@@ -4879,7 +4878,7 @@ export declare type JobData = {
|
|
|
4879
4878
|
* <details>
|
|
4880
4879
|
* <summary><code>image_dimensions</code></summary>
|
|
4881
4880
|
*
|
|
4882
|
-
* Accept assets only within a specified height
|
|
4881
|
+
* Accept assets only within a specified height and width range.
|
|
4883
4882
|
*
|
|
4884
4883
|
* | Parameter | Type | Required | Description |
|
|
4885
4884
|
* | ------------------ | --------- | -------- | -------------------------------- |
|
|
@@ -4888,7 +4887,25 @@ export declare type JobData = {
|
|
|
4888
4887
|
* | `height_min_value` | `Integer` | | Numeric value for minimum width |
|
|
4889
4888
|
* | `height_max_value` | `Integer` | | Numeric value for maximum height |
|
|
4890
4889
|
*
|
|
4891
|
-
* At least one
|
|
4890
|
+
* At least one pair of height/width parameters must be specified.
|
|
4891
|
+
*
|
|
4892
|
+
* </details>
|
|
4893
|
+
*
|
|
4894
|
+
* <details>
|
|
4895
|
+
* <summary><code>image_aspect_ratio</code></summary>
|
|
4896
|
+
*
|
|
4897
|
+
* Accept assets only within a specified aspect ratio range.
|
|
4898
|
+
*
|
|
4899
|
+
* | Parameter | Type | Required | Description |
|
|
4900
|
+
* | -------------------- | --------- | -------- | ---------------------------------------------- |
|
|
4901
|
+
* | `min_ar_numerator` | `Integer` | | Numerator part of the minimum aspect ratio |
|
|
4902
|
+
* | `min_ar_denominator` | `Integer` | | Denominator part of the minimum aspect ratio |
|
|
4903
|
+
* | `eq_ar_numerator` | `Integer` | | Numerator part for the required aspect ratio |
|
|
4904
|
+
* | `eq_ar_denominator` | `Integer` | | Denominator part for the required aspect ratio |
|
|
4905
|
+
* | `max_ar_numerator` | `Integer` | | Numerator part of the maximum aspect ratio |
|
|
4906
|
+
* | `max_ar_denominator` | `Integer` | | Denominator part of the maximum aspect ratio |
|
|
4907
|
+
*
|
|
4908
|
+
* At least one pair of numerator/denominator must be specified.
|
|
4892
4909
|
*
|
|
4893
4910
|
* </details>
|
|
4894
4911
|
*
|
|
@@ -6330,6 +6347,13 @@ export declare type BuildEventRelationships = {
|
|
|
6330
6347
|
/**
|
|
6331
6348
|
* DatoCMS stores the individual pieces of content you create from a model as records, which are much like table rows in a database. For backward-compatibility reasons, the API refers to records as "items".
|
|
6332
6349
|
*
|
|
6350
|
+
* You can learn how the records are structured at the API level, and everything that is necessary to interact with the records through CMA in the following detail sections:
|
|
6351
|
+
*
|
|
6352
|
+
* * [List/filter records](https://www.datocms.com/docs/content-management-api/resources/item/instances)
|
|
6353
|
+
* * [Create new records](https://www.datocms.com/docs/content-management-api/resources/item/create)
|
|
6354
|
+
* * [Update existing records](https://www.datocms.com/docs/content-management-api/resources/item/update)
|
|
6355
|
+
*
|
|
6356
|
+
*
|
|
6333
6357
|
* This interface was referenced by `ScheduledPublication`'s JSON-Schema
|
|
6334
6358
|
* via the `destroy.targetSchema` link.
|
|
6335
6359
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@datocms/rest-client-utils": "^1.3.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@datocms/dashboard-client": "^2.2.
|
|
43
|
+
"@datocms/dashboard-client": "^2.2.6"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "bd9638f6ab59f61a8b3bc19c6e5b4ecc98d817f0"
|
|
46
46
|
}
|
package/src/generated/Client.ts
CHANGED
|
@@ -133,7 +133,7 @@ export class Client {
|
|
|
133
133
|
...this.config,
|
|
134
134
|
...options,
|
|
135
135
|
logFn: this.config.logFn || console.log,
|
|
136
|
-
userAgent: '@datocms/cma-client v2.2.
|
|
136
|
+
userAgent: '@datocms/cma-client v2.2.6',
|
|
137
137
|
baseUrl: this.baseUrl,
|
|
138
138
|
preCallStack: new Error().stack,
|
|
139
139
|
extraHeaders: {
|
|
@@ -4234,7 +4234,7 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4234
4234
|
*
|
|
4235
4235
|
* Below you'll find a summary of all the validators available for each field type with their settings.
|
|
4236
4236
|
*
|
|
4237
|
-
* Some validators are required for a specific type of field. For example, the
|
|
4237
|
+
* Some validators are required for a specific type of field. For example, the _Modular Content_ field needs to have a `rich_text_blocks` validator, specifying which types of blocks it can contain.
|
|
4238
4238
|
*
|
|
4239
4239
|
* ### Specifying the appearance
|
|
4240
4240
|
*
|
|
@@ -4420,23 +4420,22 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4420
4420
|
* <details>
|
|
4421
4421
|
* <summary>SEO and Social (<code>seo</code>)</summary>
|
|
4422
4422
|
*
|
|
4423
|
-
* | Property | Value
|
|
4424
|
-
* | ------------------------------ |
|
|
4425
|
-
* | Code | `seo`
|
|
4426
|
-
* | Built-in editors for the field | `seo`
|
|
4427
|
-
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `title_length`, `description_length` |
|
|
4423
|
+
* | Property | Value |
|
|
4424
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
4425
|
+
* | Code | `seo` |
|
|
4426
|
+
* | Built-in editors for the field | `seo` |
|
|
4427
|
+
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `title_length`, `description_length` |
|
|
4428
4428
|
*
|
|
4429
4429
|
* </details>
|
|
4430
4430
|
*
|
|
4431
4431
|
* <details>
|
|
4432
4432
|
* <summary>Slug (<code>slug</code>)</summary>
|
|
4433
4433
|
*
|
|
4434
|
-
* | Property | Value
|
|
4435
|
-
* | ------------------------------ |
|
|
4436
|
-
* | Code | `slug`
|
|
4437
|
-
* | Built-in editors for the field | `slug`
|
|
4438
|
-
* |
|
|
4439
|
-
* | Other validators available | `required`, `length`, `slug_format` |
|
|
4434
|
+
* | Property | Value |
|
|
4435
|
+
* | ------------------------------ | ------------------------------------------------------- |
|
|
4436
|
+
* | Code | `slug` |
|
|
4437
|
+
* | Built-in editors for the field | `slug` |
|
|
4438
|
+
* | Available validators | `required`, `length`, `slug_format`, `slug_title_field` |
|
|
4440
4439
|
*
|
|
4441
4440
|
* </details>
|
|
4442
4441
|
*
|
|
@@ -4454,22 +4453,22 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4454
4453
|
* <details>
|
|
4455
4454
|
* <summary>Single-asset (<code>file</code>)</summary>
|
|
4456
4455
|
*
|
|
4457
|
-
* | Property | Value
|
|
4458
|
-
* | ------------------------------ |
|
|
4459
|
-
* | Code | `file`
|
|
4460
|
-
* | Built-in editors for the field | `file`
|
|
4461
|
-
* | Available validators | `required`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4456
|
+
* | Property | Value |
|
|
4457
|
+
* | ------------------------------ | ---------------------------------------------------------------------------------------------------- |
|
|
4458
|
+
* | Code | `file` |
|
|
4459
|
+
* | Built-in editors for the field | `file` |
|
|
4460
|
+
* | Available validators | `required`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4462
4461
|
*
|
|
4463
4462
|
* </details>
|
|
4464
4463
|
*
|
|
4465
4464
|
* <details>
|
|
4466
4465
|
* <summary>Asset gallery (<code>gallery</code>)</summary>
|
|
4467
4466
|
*
|
|
4468
|
-
* | Property | Value
|
|
4469
|
-
* | ------------------------------ |
|
|
4470
|
-
* | Code | `gallery`
|
|
4471
|
-
* | Built-in editors for the field | `gallery`
|
|
4472
|
-
* | Available validators | `size`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4467
|
+
* | Property | Value |
|
|
4468
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
4469
|
+
* | Code | `gallery` |
|
|
4470
|
+
* | Built-in editors for the field | `gallery` |
|
|
4471
|
+
* | Available validators | `size`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4473
4472
|
*
|
|
4474
4473
|
* </details>
|
|
4475
4474
|
*
|
|
@@ -4625,7 +4624,7 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4625
4624
|
* <details>
|
|
4626
4625
|
* <summary><code>image_dimensions</code></summary>
|
|
4627
4626
|
*
|
|
4628
|
-
* Accept assets only within a specified height
|
|
4627
|
+
* Accept assets only within a specified height and width range.
|
|
4629
4628
|
*
|
|
4630
4629
|
* | Parameter | Type | Required | Description |
|
|
4631
4630
|
* | ------------------ | --------- | -------- | -------------------------------- |
|
|
@@ -4634,7 +4633,25 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4634
4633
|
* | `height_min_value` | `Integer` | | Numeric value for minimum width |
|
|
4635
4634
|
* | `height_max_value` | `Integer` | | Numeric value for maximum height |
|
|
4636
4635
|
*
|
|
4637
|
-
* At least one
|
|
4636
|
+
* At least one pair of height/width parameters must be specified.
|
|
4637
|
+
*
|
|
4638
|
+
* </details>
|
|
4639
|
+
*
|
|
4640
|
+
* <details>
|
|
4641
|
+
* <summary><code>image_aspect_ratio</code></summary>
|
|
4642
|
+
*
|
|
4643
|
+
* Accept assets only within a specified aspect ratio range.
|
|
4644
|
+
*
|
|
4645
|
+
* | Parameter | Type | Required | Description |
|
|
4646
|
+
* | -------------------- | --------- | -------- | ---------------------------------------------- |
|
|
4647
|
+
* | `min_ar_numerator` | `Integer` | | Numerator part of the minimum aspect ratio |
|
|
4648
|
+
* | `min_ar_denominator` | `Integer` | | Denominator part of the minimum aspect ratio |
|
|
4649
|
+
* | `eq_ar_numerator` | `Integer` | | Numerator part for the required aspect ratio |
|
|
4650
|
+
* | `eq_ar_denominator` | `Integer` | | Denominator part for the required aspect ratio |
|
|
4651
|
+
* | `max_ar_numerator` | `Integer` | | Numerator part of the maximum aspect ratio |
|
|
4652
|
+
* | `max_ar_denominator` | `Integer` | | Denominator part of the maximum aspect ratio |
|
|
4653
|
+
*
|
|
4654
|
+
* At least one pair of numerator/denominator must be specified.
|
|
4638
4655
|
*
|
|
4639
4656
|
* </details>
|
|
4640
4657
|
*
|
|
@@ -6348,6 +6365,13 @@ export type BuildEventSelfTargetSchema = {
|
|
|
6348
6365
|
/**
|
|
6349
6366
|
* DatoCMS stores the individual pieces of content you create from a model as records, which are much like table rows in a database. For backward-compatibility reasons, the API refers to records as "items".
|
|
6350
6367
|
*
|
|
6368
|
+
* You can learn how the records are structured at the API level, and everything that is necessary to interact with the records through CMA in the following detail sections:
|
|
6369
|
+
*
|
|
6370
|
+
* * [List/filter records](https://www.datocms.com/docs/content-management-api/resources/item/instances)
|
|
6371
|
+
* * [Create new records](https://www.datocms.com/docs/content-management-api/resources/item/create)
|
|
6372
|
+
* * [Update existing records](https://www.datocms.com/docs/content-management-api/resources/item/update)
|
|
6373
|
+
*
|
|
6374
|
+
*
|
|
6351
6375
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
6352
6376
|
* via the `definition` "item".
|
|
6353
6377
|
*/
|
|
@@ -4759,7 +4759,7 @@ export type JobData = {
|
|
|
4759
4759
|
*
|
|
4760
4760
|
* Below you'll find a summary of all the validators available for each field type with their settings.
|
|
4761
4761
|
*
|
|
4762
|
-
* Some validators are required for a specific type of field. For example, the
|
|
4762
|
+
* Some validators are required for a specific type of field. For example, the _Modular Content_ field needs to have a `rich_text_blocks` validator, specifying which types of blocks it can contain.
|
|
4763
4763
|
*
|
|
4764
4764
|
* ### Specifying the appearance
|
|
4765
4765
|
*
|
|
@@ -4945,23 +4945,22 @@ export type JobData = {
|
|
|
4945
4945
|
* <details>
|
|
4946
4946
|
* <summary>SEO and Social (<code>seo</code>)</summary>
|
|
4947
4947
|
*
|
|
4948
|
-
* | Property | Value
|
|
4949
|
-
* | ------------------------------ |
|
|
4950
|
-
* | Code | `seo`
|
|
4951
|
-
* | Built-in editors for the field | `seo`
|
|
4952
|
-
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `title_length`, `description_length` |
|
|
4948
|
+
* | Property | Value |
|
|
4949
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
4950
|
+
* | Code | `seo` |
|
|
4951
|
+
* | Built-in editors for the field | `seo` |
|
|
4952
|
+
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `title_length`, `description_length` |
|
|
4953
4953
|
*
|
|
4954
4954
|
* </details>
|
|
4955
4955
|
*
|
|
4956
4956
|
* <details>
|
|
4957
4957
|
* <summary>Slug (<code>slug</code>)</summary>
|
|
4958
4958
|
*
|
|
4959
|
-
* | Property | Value
|
|
4960
|
-
* | ------------------------------ |
|
|
4961
|
-
* | Code | `slug`
|
|
4962
|
-
* | Built-in editors for the field | `slug`
|
|
4963
|
-
* |
|
|
4964
|
-
* | Other validators available | `required`, `length`, `slug_format` |
|
|
4959
|
+
* | Property | Value |
|
|
4960
|
+
* | ------------------------------ | ------------------------------------------------------- |
|
|
4961
|
+
* | Code | `slug` |
|
|
4962
|
+
* | Built-in editors for the field | `slug` |
|
|
4963
|
+
* | Available validators | `required`, `length`, `slug_format`, `slug_title_field` |
|
|
4965
4964
|
*
|
|
4966
4965
|
* </details>
|
|
4967
4966
|
*
|
|
@@ -4979,22 +4978,22 @@ export type JobData = {
|
|
|
4979
4978
|
* <details>
|
|
4980
4979
|
* <summary>Single-asset (<code>file</code>)</summary>
|
|
4981
4980
|
*
|
|
4982
|
-
* | Property | Value
|
|
4983
|
-
* | ------------------------------ |
|
|
4984
|
-
* | Code | `file`
|
|
4985
|
-
* | Built-in editors for the field | `file`
|
|
4986
|
-
* | Available validators | `required`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4981
|
+
* | Property | Value |
|
|
4982
|
+
* | ------------------------------ | ---------------------------------------------------------------------------------------------------- |
|
|
4983
|
+
* | Code | `file` |
|
|
4984
|
+
* | Built-in editors for the field | `file` |
|
|
4985
|
+
* | Available validators | `required`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4987
4986
|
*
|
|
4988
4987
|
* </details>
|
|
4989
4988
|
*
|
|
4990
4989
|
* <details>
|
|
4991
4990
|
* <summary>Asset gallery (<code>gallery</code>)</summary>
|
|
4992
4991
|
*
|
|
4993
|
-
* | Property | Value
|
|
4994
|
-
* | ------------------------------ |
|
|
4995
|
-
* | Code | `gallery`
|
|
4996
|
-
* | Built-in editors for the field | `gallery`
|
|
4997
|
-
* | Available validators | `size`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
4992
|
+
* | Property | Value |
|
|
4993
|
+
* | ------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
4994
|
+
* | Code | `gallery` |
|
|
4995
|
+
* | Built-in editors for the field | `gallery` |
|
|
4996
|
+
* | Available validators | `size`, `file_size`, `image_dimensions`, `image_aspect_ratio`, `extension`, `required_alt_title` |
|
|
4998
4997
|
*
|
|
4999
4998
|
* </details>
|
|
5000
4999
|
*
|
|
@@ -5150,7 +5149,7 @@ export type JobData = {
|
|
|
5150
5149
|
* <details>
|
|
5151
5150
|
* <summary><code>image_dimensions</code></summary>
|
|
5152
5151
|
*
|
|
5153
|
-
* Accept assets only within a specified height
|
|
5152
|
+
* Accept assets only within a specified height and width range.
|
|
5154
5153
|
*
|
|
5155
5154
|
* | Parameter | Type | Required | Description |
|
|
5156
5155
|
* | ------------------ | --------- | -------- | -------------------------------- |
|
|
@@ -5159,7 +5158,25 @@ export type JobData = {
|
|
|
5159
5158
|
* | `height_min_value` | `Integer` | | Numeric value for minimum width |
|
|
5160
5159
|
* | `height_max_value` | `Integer` | | Numeric value for maximum height |
|
|
5161
5160
|
*
|
|
5162
|
-
* At least one
|
|
5161
|
+
* At least one pair of height/width parameters must be specified.
|
|
5162
|
+
*
|
|
5163
|
+
* </details>
|
|
5164
|
+
*
|
|
5165
|
+
* <details>
|
|
5166
|
+
* <summary><code>image_aspect_ratio</code></summary>
|
|
5167
|
+
*
|
|
5168
|
+
* Accept assets only within a specified aspect ratio range.
|
|
5169
|
+
*
|
|
5170
|
+
* | Parameter | Type | Required | Description |
|
|
5171
|
+
* | -------------------- | --------- | -------- | ---------------------------------------------- |
|
|
5172
|
+
* | `min_ar_numerator` | `Integer` | | Numerator part of the minimum aspect ratio |
|
|
5173
|
+
* | `min_ar_denominator` | `Integer` | | Denominator part of the minimum aspect ratio |
|
|
5174
|
+
* | `eq_ar_numerator` | `Integer` | | Numerator part for the required aspect ratio |
|
|
5175
|
+
* | `eq_ar_denominator` | `Integer` | | Denominator part for the required aspect ratio |
|
|
5176
|
+
* | `max_ar_numerator` | `Integer` | | Numerator part of the maximum aspect ratio |
|
|
5177
|
+
* | `max_ar_denominator` | `Integer` | | Denominator part of the maximum aspect ratio |
|
|
5178
|
+
*
|
|
5179
|
+
* At least one pair of numerator/denominator must be specified.
|
|
5163
5180
|
*
|
|
5164
5181
|
* </details>
|
|
5165
5182
|
*
|
|
@@ -6803,6 +6820,13 @@ export type BuildEventRelationships = {
|
|
|
6803
6820
|
/**
|
|
6804
6821
|
* DatoCMS stores the individual pieces of content you create from a model as records, which are much like table rows in a database. For backward-compatibility reasons, the API refers to records as "items".
|
|
6805
6822
|
*
|
|
6823
|
+
* You can learn how the records are structured at the API level, and everything that is necessary to interact with the records through CMA in the following detail sections:
|
|
6824
|
+
*
|
|
6825
|
+
* * [List/filter records](https://www.datocms.com/docs/content-management-api/resources/item/instances)
|
|
6826
|
+
* * [Create new records](https://www.datocms.com/docs/content-management-api/resources/item/create)
|
|
6827
|
+
* * [Update existing records](https://www.datocms.com/docs/content-management-api/resources/item/update)
|
|
6828
|
+
*
|
|
6829
|
+
*
|
|
6806
6830
|
* This interface was referenced by `ScheduledPublication`'s JSON-Schema
|
|
6807
6831
|
* via the `destroy.targetSchema` link.
|
|
6808
6832
|
*
|