@datocms/cma-client 1.1.20 → 1.1.22
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 +3 -3
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +4 -4
- package/dist/types/generated/SchemaTypes.d.ts +3 -3
- package/dist/types/generated/SimpleSchemaTypes.d.ts +4 -4
- package/package.json +3 -3
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +60 -3
- package/src/generated/SimpleSchemaTypes.ts +80 -4
|
@@ -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 v1.1.
|
|
130
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.1.22', 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 v1.1.
|
|
104
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v1.1.22', 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
|
|
@@ -4642,7 +4642,7 @@ export declare type FieldAttributes = {
|
|
|
4642
4642
|
/**
|
|
4643
4643
|
* Type of input
|
|
4644
4644
|
*/
|
|
4645
|
-
field_type: string;
|
|
4645
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
4646
4646
|
/**
|
|
4647
4647
|
* Whether the field needs to be multilanguage or not
|
|
4648
4648
|
*/
|
|
@@ -4757,7 +4757,7 @@ export declare type FieldCreateSchema = {
|
|
|
4757
4757
|
/**
|
|
4758
4758
|
* Type of input
|
|
4759
4759
|
*/
|
|
4760
|
-
field_type: string;
|
|
4760
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
4761
4761
|
/**
|
|
4762
4762
|
* Field API key
|
|
4763
4763
|
*/
|
|
@@ -4949,7 +4949,7 @@ export declare type FieldUpdateSchema = {
|
|
|
4949
4949
|
/**
|
|
4950
4950
|
* Type of input
|
|
4951
4951
|
*/
|
|
4952
|
-
field_type?: string;
|
|
4952
|
+
field_type?: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
4953
4953
|
/**
|
|
4954
4954
|
* Field hint
|
|
4955
4955
|
*/
|
|
@@ -5149,7 +5149,7 @@ export declare type Field = {
|
|
|
5149
5149
|
/**
|
|
5150
5150
|
* Type of input
|
|
5151
5151
|
*/
|
|
5152
|
-
field_type: string;
|
|
5152
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
5153
5153
|
/**
|
|
5154
5154
|
* Whether the field needs to be multilanguage or not
|
|
5155
5155
|
*/
|
|
@@ -5247,7 +5247,7 @@ export declare type FieldAttributes = {
|
|
|
5247
5247
|
/**
|
|
5248
5248
|
* Type of input
|
|
5249
5249
|
*/
|
|
5250
|
-
field_type: string;
|
|
5250
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
5251
5251
|
/**
|
|
5252
5252
|
* Whether the field needs to be multilanguage or not
|
|
5253
5253
|
*/
|
|
@@ -5347,7 +5347,7 @@ export declare type FieldCreateSchema = {
|
|
|
5347
5347
|
/**
|
|
5348
5348
|
* Type of input
|
|
5349
5349
|
*/
|
|
5350
|
-
field_type: string;
|
|
5350
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
5351
5351
|
/**
|
|
5352
5352
|
* Field API key
|
|
5353
5353
|
*/
|
|
@@ -5510,7 +5510,7 @@ export declare type FieldUpdateSchema = {
|
|
|
5510
5510
|
/**
|
|
5511
5511
|
* Type of input
|
|
5512
5512
|
*/
|
|
5513
|
-
field_type?: string;
|
|
5513
|
+
field_type?: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
5514
5514
|
/**
|
|
5515
5515
|
* Field hint
|
|
5516
5516
|
*/
|
|
@@ -4642,7 +4642,7 @@ export declare type FieldAttributes = {
|
|
|
4642
4642
|
/**
|
|
4643
4643
|
* Type of input
|
|
4644
4644
|
*/
|
|
4645
|
-
field_type: string;
|
|
4645
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
4646
4646
|
/**
|
|
4647
4647
|
* Whether the field needs to be multilanguage or not
|
|
4648
4648
|
*/
|
|
@@ -4757,7 +4757,7 @@ export declare type FieldCreateSchema = {
|
|
|
4757
4757
|
/**
|
|
4758
4758
|
* Type of input
|
|
4759
4759
|
*/
|
|
4760
|
-
field_type: string;
|
|
4760
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
4761
4761
|
/**
|
|
4762
4762
|
* Field API key
|
|
4763
4763
|
*/
|
|
@@ -4949,7 +4949,7 @@ export declare type FieldUpdateSchema = {
|
|
|
4949
4949
|
/**
|
|
4950
4950
|
* Type of input
|
|
4951
4951
|
*/
|
|
4952
|
-
field_type?: string;
|
|
4952
|
+
field_type?: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
4953
4953
|
/**
|
|
4954
4954
|
* Field hint
|
|
4955
4955
|
*/
|
|
@@ -5149,7 +5149,7 @@ export declare type Field = {
|
|
|
5149
5149
|
/**
|
|
5150
5150
|
* Type of input
|
|
5151
5151
|
*/
|
|
5152
|
-
field_type: string;
|
|
5152
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
5153
5153
|
/**
|
|
5154
5154
|
* Whether the field needs to be multilanguage or not
|
|
5155
5155
|
*/
|
|
@@ -5247,7 +5247,7 @@ export declare type FieldAttributes = {
|
|
|
5247
5247
|
/**
|
|
5248
5248
|
* Type of input
|
|
5249
5249
|
*/
|
|
5250
|
-
field_type: string;
|
|
5250
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
5251
5251
|
/**
|
|
5252
5252
|
* Whether the field needs to be multilanguage or not
|
|
5253
5253
|
*/
|
|
@@ -5347,7 +5347,7 @@ export declare type FieldCreateSchema = {
|
|
|
5347
5347
|
/**
|
|
5348
5348
|
* Type of input
|
|
5349
5349
|
*/
|
|
5350
|
-
field_type: string;
|
|
5350
|
+
field_type: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
5351
5351
|
/**
|
|
5352
5352
|
* Field API key
|
|
5353
5353
|
*/
|
|
@@ -5510,7 +5510,7 @@ export declare type FieldUpdateSchema = {
|
|
|
5510
5510
|
/**
|
|
5511
5511
|
* Type of input
|
|
5512
5512
|
*/
|
|
5513
|
-
field_type?: string;
|
|
5513
|
+
field_type?: 'string' | 'text' | 'boolean' | 'integer' | 'float' | 'date' | 'date_time' | 'color' | 'json' | 'lat_lon' | 'seo' | 'slug' | 'video' | 'file' | 'gallery' | 'link' | 'links' | 'rich_text' | 'structured_text';
|
|
5514
5514
|
/**
|
|
5515
5515
|
* Field hint
|
|
5516
5516
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
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.1.16"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@datocms/dashboard-client": "^1.1.
|
|
43
|
+
"@datocms/dashboard-client": "^1.1.21"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "b06c4835b821852c4908a6cf8f0c520925c49b70"
|
|
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 v1.1.
|
|
136
|
+
userAgent: '@datocms/cma-client v1.1.22',
|
|
137
137
|
baseUrl: this.baseUrl,
|
|
138
138
|
preCallStack: new Error().stack,
|
|
139
139
|
extraHeaders: {
|
|
@@ -4907,7 +4907,26 @@ export type FieldAttributes = {
|
|
|
4907
4907
|
/**
|
|
4908
4908
|
* Type of input
|
|
4909
4909
|
*/
|
|
4910
|
-
field_type:
|
|
4910
|
+
field_type:
|
|
4911
|
+
| 'string'
|
|
4912
|
+
| 'text'
|
|
4913
|
+
| 'boolean'
|
|
4914
|
+
| 'integer'
|
|
4915
|
+
| 'float'
|
|
4916
|
+
| 'date'
|
|
4917
|
+
| 'date_time'
|
|
4918
|
+
| 'color'
|
|
4919
|
+
| 'json'
|
|
4920
|
+
| 'lat_lon'
|
|
4921
|
+
| 'seo'
|
|
4922
|
+
| 'slug'
|
|
4923
|
+
| 'video'
|
|
4924
|
+
| 'file'
|
|
4925
|
+
| 'gallery'
|
|
4926
|
+
| 'link'
|
|
4927
|
+
| 'links'
|
|
4928
|
+
| 'rich_text'
|
|
4929
|
+
| 'structured_text';
|
|
4911
4930
|
/**
|
|
4912
4931
|
* Whether the field needs to be multilanguage or not
|
|
4913
4932
|
*/
|
|
@@ -5029,7 +5048,26 @@ export type FieldCreateSchema = {
|
|
|
5029
5048
|
/**
|
|
5030
5049
|
* Type of input
|
|
5031
5050
|
*/
|
|
5032
|
-
field_type:
|
|
5051
|
+
field_type:
|
|
5052
|
+
| 'string'
|
|
5053
|
+
| 'text'
|
|
5054
|
+
| 'boolean'
|
|
5055
|
+
| 'integer'
|
|
5056
|
+
| 'float'
|
|
5057
|
+
| 'date'
|
|
5058
|
+
| 'date_time'
|
|
5059
|
+
| 'color'
|
|
5060
|
+
| 'json'
|
|
5061
|
+
| 'lat_lon'
|
|
5062
|
+
| 'seo'
|
|
5063
|
+
| 'slug'
|
|
5064
|
+
| 'video'
|
|
5065
|
+
| 'file'
|
|
5066
|
+
| 'gallery'
|
|
5067
|
+
| 'link'
|
|
5068
|
+
| 'links'
|
|
5069
|
+
| 'rich_text'
|
|
5070
|
+
| 'structured_text';
|
|
5033
5071
|
/**
|
|
5034
5072
|
* Field API key
|
|
5035
5073
|
*/
|
|
@@ -5234,7 +5272,26 @@ export type FieldUpdateSchema = {
|
|
|
5234
5272
|
/**
|
|
5235
5273
|
* Type of input
|
|
5236
5274
|
*/
|
|
5237
|
-
field_type?:
|
|
5275
|
+
field_type?:
|
|
5276
|
+
| 'string'
|
|
5277
|
+
| 'text'
|
|
5278
|
+
| 'boolean'
|
|
5279
|
+
| 'integer'
|
|
5280
|
+
| 'float'
|
|
5281
|
+
| 'date'
|
|
5282
|
+
| 'date_time'
|
|
5283
|
+
| 'color'
|
|
5284
|
+
| 'json'
|
|
5285
|
+
| 'lat_lon'
|
|
5286
|
+
| 'seo'
|
|
5287
|
+
| 'slug'
|
|
5288
|
+
| 'video'
|
|
5289
|
+
| 'file'
|
|
5290
|
+
| 'gallery'
|
|
5291
|
+
| 'link'
|
|
5292
|
+
| 'links'
|
|
5293
|
+
| 'rich_text'
|
|
5294
|
+
| 'structured_text';
|
|
5238
5295
|
/**
|
|
5239
5296
|
* Field hint
|
|
5240
5297
|
*/
|
|
@@ -5415,7 +5415,26 @@ export type Field = {
|
|
|
5415
5415
|
/**
|
|
5416
5416
|
* Type of input
|
|
5417
5417
|
*/
|
|
5418
|
-
field_type:
|
|
5418
|
+
field_type:
|
|
5419
|
+
| 'string'
|
|
5420
|
+
| 'text'
|
|
5421
|
+
| 'boolean'
|
|
5422
|
+
| 'integer'
|
|
5423
|
+
| 'float'
|
|
5424
|
+
| 'date'
|
|
5425
|
+
| 'date_time'
|
|
5426
|
+
| 'color'
|
|
5427
|
+
| 'json'
|
|
5428
|
+
| 'lat_lon'
|
|
5429
|
+
| 'seo'
|
|
5430
|
+
| 'slug'
|
|
5431
|
+
| 'video'
|
|
5432
|
+
| 'file'
|
|
5433
|
+
| 'gallery'
|
|
5434
|
+
| 'link'
|
|
5435
|
+
| 'links'
|
|
5436
|
+
| 'rich_text'
|
|
5437
|
+
| 'structured_text';
|
|
5419
5438
|
/**
|
|
5420
5439
|
* Whether the field needs to be multilanguage or not
|
|
5421
5440
|
*/
|
|
@@ -5518,7 +5537,26 @@ export type FieldAttributes = {
|
|
|
5518
5537
|
/**
|
|
5519
5538
|
* Type of input
|
|
5520
5539
|
*/
|
|
5521
|
-
field_type:
|
|
5540
|
+
field_type:
|
|
5541
|
+
| 'string'
|
|
5542
|
+
| 'text'
|
|
5543
|
+
| 'boolean'
|
|
5544
|
+
| 'integer'
|
|
5545
|
+
| 'float'
|
|
5546
|
+
| 'date'
|
|
5547
|
+
| 'date_time'
|
|
5548
|
+
| 'color'
|
|
5549
|
+
| 'json'
|
|
5550
|
+
| 'lat_lon'
|
|
5551
|
+
| 'seo'
|
|
5552
|
+
| 'slug'
|
|
5553
|
+
| 'video'
|
|
5554
|
+
| 'file'
|
|
5555
|
+
| 'gallery'
|
|
5556
|
+
| 'link'
|
|
5557
|
+
| 'links'
|
|
5558
|
+
| 'rich_text'
|
|
5559
|
+
| 'structured_text';
|
|
5522
5560
|
/**
|
|
5523
5561
|
* Whether the field needs to be multilanguage or not
|
|
5524
5562
|
*/
|
|
@@ -5625,7 +5663,26 @@ export type FieldCreateSchema = {
|
|
|
5625
5663
|
/**
|
|
5626
5664
|
* Type of input
|
|
5627
5665
|
*/
|
|
5628
|
-
field_type:
|
|
5666
|
+
field_type:
|
|
5667
|
+
| 'string'
|
|
5668
|
+
| 'text'
|
|
5669
|
+
| 'boolean'
|
|
5670
|
+
| 'integer'
|
|
5671
|
+
| 'float'
|
|
5672
|
+
| 'date'
|
|
5673
|
+
| 'date_time'
|
|
5674
|
+
| 'color'
|
|
5675
|
+
| 'json'
|
|
5676
|
+
| 'lat_lon'
|
|
5677
|
+
| 'seo'
|
|
5678
|
+
| 'slug'
|
|
5679
|
+
| 'video'
|
|
5680
|
+
| 'file'
|
|
5681
|
+
| 'gallery'
|
|
5682
|
+
| 'link'
|
|
5683
|
+
| 'links'
|
|
5684
|
+
| 'rich_text'
|
|
5685
|
+
| 'structured_text';
|
|
5629
5686
|
/**
|
|
5630
5687
|
* Field API key
|
|
5631
5688
|
*/
|
|
@@ -5799,7 +5856,26 @@ export type FieldUpdateSchema = {
|
|
|
5799
5856
|
/**
|
|
5800
5857
|
* Type of input
|
|
5801
5858
|
*/
|
|
5802
|
-
field_type?:
|
|
5859
|
+
field_type?:
|
|
5860
|
+
| 'string'
|
|
5861
|
+
| 'text'
|
|
5862
|
+
| 'boolean'
|
|
5863
|
+
| 'integer'
|
|
5864
|
+
| 'float'
|
|
5865
|
+
| 'date'
|
|
5866
|
+
| 'date_time'
|
|
5867
|
+
| 'color'
|
|
5868
|
+
| 'json'
|
|
5869
|
+
| 'lat_lon'
|
|
5870
|
+
| 'seo'
|
|
5871
|
+
| 'slug'
|
|
5872
|
+
| 'video'
|
|
5873
|
+
| 'file'
|
|
5874
|
+
| 'gallery'
|
|
5875
|
+
| 'link'
|
|
5876
|
+
| 'links'
|
|
5877
|
+
| 'rich_text'
|
|
5878
|
+
| 'structured_text';
|
|
5803
5879
|
/**
|
|
5804
5880
|
* Field hint
|
|
5805
5881
|
*/
|