@datocms/cma-client 5.6.0 → 5.6.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.
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +42 -0
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +21 -0
- package/dist/types/generated/ApiTypes.d.ts +42 -0
- package/dist/types/generated/RawApiTypes.d.ts +21 -0
- package/package.json +3 -3
- package/src/generated/ApiTypes.ts +42 -0
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +21 -0
|
@@ -90,7 +90,7 @@ class Client {
|
|
|
90
90
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
91
91
|
}
|
|
92
92
|
request(options) {
|
|
93
|
-
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.6.
|
|
93
|
+
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.6.2', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
94
94
|
? { 'X-Environment': this.config.environment }
|
|
95
95
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
96
96
|
return this.jobResultsFetcher
|
|
@@ -10490,6 +10490,27 @@ export type PublicInfo = {
|
|
|
10490
10490
|
blocks_depth: number;
|
|
10491
10491
|
blocks_per_item: number;
|
|
10492
10492
|
maximum_single_upload_bytes: number;
|
|
10493
|
+
/**
|
|
10494
|
+
* Amount of each resource included in the current plan before additional charges may apply.
|
|
10495
|
+
*/
|
|
10496
|
+
overage_thresholds: {
|
|
10497
|
+
/**
|
|
10498
|
+
* Number of sandbox environments included in the current plan before additional charges may apply
|
|
10499
|
+
*/
|
|
10500
|
+
environments?: number;
|
|
10501
|
+
/**
|
|
10502
|
+
* Number of project collaborators included in the current plan before additional charges may apply
|
|
10503
|
+
*/
|
|
10504
|
+
collaborators?: number;
|
|
10505
|
+
/**
|
|
10506
|
+
* Number of locales included in the current plan before additional charges may apply
|
|
10507
|
+
*/
|
|
10508
|
+
locales?: number;
|
|
10509
|
+
/**
|
|
10510
|
+
* Number of models included in the current plan before additional charges may apply
|
|
10511
|
+
*/
|
|
10512
|
+
models?: number;
|
|
10513
|
+
};
|
|
10493
10514
|
[k: string]: unknown;
|
|
10494
10515
|
};
|
|
10495
10516
|
};
|
|
@@ -10661,6 +10682,27 @@ export type PublicInfoAttributes = {
|
|
|
10661
10682
|
blocks_depth: number;
|
|
10662
10683
|
blocks_per_item: number;
|
|
10663
10684
|
maximum_single_upload_bytes: number;
|
|
10685
|
+
/**
|
|
10686
|
+
* Amount of each resource included in the current plan before additional charges may apply.
|
|
10687
|
+
*/
|
|
10688
|
+
overage_thresholds: {
|
|
10689
|
+
/**
|
|
10690
|
+
* Number of sandbox environments included in the current plan before additional charges may apply
|
|
10691
|
+
*/
|
|
10692
|
+
environments?: number;
|
|
10693
|
+
/**
|
|
10694
|
+
* Number of project collaborators included in the current plan before additional charges may apply
|
|
10695
|
+
*/
|
|
10696
|
+
collaborators?: number;
|
|
10697
|
+
/**
|
|
10698
|
+
* Number of locales included in the current plan before additional charges may apply
|
|
10699
|
+
*/
|
|
10700
|
+
locales?: number;
|
|
10701
|
+
/**
|
|
10702
|
+
* Number of models included in the current plan before additional charges may apply
|
|
10703
|
+
*/
|
|
10704
|
+
models?: number;
|
|
10705
|
+
};
|
|
10664
10706
|
[k: string]: unknown;
|
|
10665
10707
|
};
|
|
10666
10708
|
};
|
|
@@ -64,7 +64,7 @@ export class Client {
|
|
|
64
64
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
65
65
|
}
|
|
66
66
|
request(options) {
|
|
67
|
-
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.6.
|
|
67
|
+
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.6.2', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
68
68
|
? { 'X-Environment': this.config.environment }
|
|
69
69
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
70
70
|
return this.jobResultsFetcher
|
|
@@ -11101,6 +11101,27 @@ export type PublicInfoAttributes = {
|
|
|
11101
11101
|
blocks_depth: number;
|
|
11102
11102
|
blocks_per_item: number;
|
|
11103
11103
|
maximum_single_upload_bytes: number;
|
|
11104
|
+
/**
|
|
11105
|
+
* Amount of each resource included in the current plan before additional charges may apply.
|
|
11106
|
+
*/
|
|
11107
|
+
overage_thresholds: {
|
|
11108
|
+
/**
|
|
11109
|
+
* Number of sandbox environments included in the current plan before additional charges may apply
|
|
11110
|
+
*/
|
|
11111
|
+
environments?: number;
|
|
11112
|
+
/**
|
|
11113
|
+
* Number of project collaborators included in the current plan before additional charges may apply
|
|
11114
|
+
*/
|
|
11115
|
+
collaborators?: number;
|
|
11116
|
+
/**
|
|
11117
|
+
* Number of locales included in the current plan before additional charges may apply
|
|
11118
|
+
*/
|
|
11119
|
+
locales?: number;
|
|
11120
|
+
/**
|
|
11121
|
+
* Number of models included in the current plan before additional charges may apply
|
|
11122
|
+
*/
|
|
11123
|
+
models?: number;
|
|
11124
|
+
};
|
|
11104
11125
|
[k: string]: unknown;
|
|
11105
11126
|
};
|
|
11106
11127
|
};
|
|
@@ -10490,6 +10490,27 @@ export type PublicInfo = {
|
|
|
10490
10490
|
blocks_depth: number;
|
|
10491
10491
|
blocks_per_item: number;
|
|
10492
10492
|
maximum_single_upload_bytes: number;
|
|
10493
|
+
/**
|
|
10494
|
+
* Amount of each resource included in the current plan before additional charges may apply.
|
|
10495
|
+
*/
|
|
10496
|
+
overage_thresholds: {
|
|
10497
|
+
/**
|
|
10498
|
+
* Number of sandbox environments included in the current plan before additional charges may apply
|
|
10499
|
+
*/
|
|
10500
|
+
environments?: number;
|
|
10501
|
+
/**
|
|
10502
|
+
* Number of project collaborators included in the current plan before additional charges may apply
|
|
10503
|
+
*/
|
|
10504
|
+
collaborators?: number;
|
|
10505
|
+
/**
|
|
10506
|
+
* Number of locales included in the current plan before additional charges may apply
|
|
10507
|
+
*/
|
|
10508
|
+
locales?: number;
|
|
10509
|
+
/**
|
|
10510
|
+
* Number of models included in the current plan before additional charges may apply
|
|
10511
|
+
*/
|
|
10512
|
+
models?: number;
|
|
10513
|
+
};
|
|
10493
10514
|
[k: string]: unknown;
|
|
10494
10515
|
};
|
|
10495
10516
|
};
|
|
@@ -10661,6 +10682,27 @@ export type PublicInfoAttributes = {
|
|
|
10661
10682
|
blocks_depth: number;
|
|
10662
10683
|
blocks_per_item: number;
|
|
10663
10684
|
maximum_single_upload_bytes: number;
|
|
10685
|
+
/**
|
|
10686
|
+
* Amount of each resource included in the current plan before additional charges may apply.
|
|
10687
|
+
*/
|
|
10688
|
+
overage_thresholds: {
|
|
10689
|
+
/**
|
|
10690
|
+
* Number of sandbox environments included in the current plan before additional charges may apply
|
|
10691
|
+
*/
|
|
10692
|
+
environments?: number;
|
|
10693
|
+
/**
|
|
10694
|
+
* Number of project collaborators included in the current plan before additional charges may apply
|
|
10695
|
+
*/
|
|
10696
|
+
collaborators?: number;
|
|
10697
|
+
/**
|
|
10698
|
+
* Number of locales included in the current plan before additional charges may apply
|
|
10699
|
+
*/
|
|
10700
|
+
locales?: number;
|
|
10701
|
+
/**
|
|
10702
|
+
* Number of models included in the current plan before additional charges may apply
|
|
10703
|
+
*/
|
|
10704
|
+
models?: number;
|
|
10705
|
+
};
|
|
10664
10706
|
[k: string]: unknown;
|
|
10665
10707
|
};
|
|
10666
10708
|
};
|
|
@@ -11101,6 +11101,27 @@ export type PublicInfoAttributes = {
|
|
|
11101
11101
|
blocks_depth: number;
|
|
11102
11102
|
blocks_per_item: number;
|
|
11103
11103
|
maximum_single_upload_bytes: number;
|
|
11104
|
+
/**
|
|
11105
|
+
* Amount of each resource included in the current plan before additional charges may apply.
|
|
11106
|
+
*/
|
|
11107
|
+
overage_thresholds: {
|
|
11108
|
+
/**
|
|
11109
|
+
* Number of sandbox environments included in the current plan before additional charges may apply
|
|
11110
|
+
*/
|
|
11111
|
+
environments?: number;
|
|
11112
|
+
/**
|
|
11113
|
+
* Number of project collaborators included in the current plan before additional charges may apply
|
|
11114
|
+
*/
|
|
11115
|
+
collaborators?: number;
|
|
11116
|
+
/**
|
|
11117
|
+
* Number of locales included in the current plan before additional charges may apply
|
|
11118
|
+
*/
|
|
11119
|
+
locales?: number;
|
|
11120
|
+
/**
|
|
11121
|
+
* Number of models included in the current plan before additional charges may apply
|
|
11122
|
+
*/
|
|
11123
|
+
models?: number;
|
|
11124
|
+
};
|
|
11104
11125
|
[k: string]: unknown;
|
|
11105
11126
|
};
|
|
11106
11127
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.2",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"uuid": "^11.1.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@datocms/dashboard-client": "^5.6.
|
|
45
|
+
"@datocms/dashboard-client": "^5.6.2"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "610752bd142c5d3bf0f7e1f84d18d2e19757ade1"
|
|
48
48
|
}
|
|
@@ -11263,6 +11263,27 @@ export type PublicInfo = {
|
|
|
11263
11263
|
blocks_depth: number;
|
|
11264
11264
|
blocks_per_item: number;
|
|
11265
11265
|
maximum_single_upload_bytes: number;
|
|
11266
|
+
/**
|
|
11267
|
+
* Amount of each resource included in the current plan before additional charges may apply.
|
|
11268
|
+
*/
|
|
11269
|
+
overage_thresholds: {
|
|
11270
|
+
/**
|
|
11271
|
+
* Number of sandbox environments included in the current plan before additional charges may apply
|
|
11272
|
+
*/
|
|
11273
|
+
environments?: number;
|
|
11274
|
+
/**
|
|
11275
|
+
* Number of project collaborators included in the current plan before additional charges may apply
|
|
11276
|
+
*/
|
|
11277
|
+
collaborators?: number;
|
|
11278
|
+
/**
|
|
11279
|
+
* Number of locales included in the current plan before additional charges may apply
|
|
11280
|
+
*/
|
|
11281
|
+
locales?: number;
|
|
11282
|
+
/**
|
|
11283
|
+
* Number of models included in the current plan before additional charges may apply
|
|
11284
|
+
*/
|
|
11285
|
+
models?: number;
|
|
11286
|
+
};
|
|
11266
11287
|
[k: string]: unknown;
|
|
11267
11288
|
};
|
|
11268
11289
|
};
|
|
@@ -11434,6 +11455,27 @@ export type PublicInfoAttributes = {
|
|
|
11434
11455
|
blocks_depth: number;
|
|
11435
11456
|
blocks_per_item: number;
|
|
11436
11457
|
maximum_single_upload_bytes: number;
|
|
11458
|
+
/**
|
|
11459
|
+
* Amount of each resource included in the current plan before additional charges may apply.
|
|
11460
|
+
*/
|
|
11461
|
+
overage_thresholds: {
|
|
11462
|
+
/**
|
|
11463
|
+
* Number of sandbox environments included in the current plan before additional charges may apply
|
|
11464
|
+
*/
|
|
11465
|
+
environments?: number;
|
|
11466
|
+
/**
|
|
11467
|
+
* Number of project collaborators included in the current plan before additional charges may apply
|
|
11468
|
+
*/
|
|
11469
|
+
collaborators?: number;
|
|
11470
|
+
/**
|
|
11471
|
+
* Number of locales included in the current plan before additional charges may apply
|
|
11472
|
+
*/
|
|
11473
|
+
locales?: number;
|
|
11474
|
+
/**
|
|
11475
|
+
* Number of models included in the current plan before additional charges may apply
|
|
11476
|
+
*/
|
|
11477
|
+
models?: number;
|
|
11478
|
+
};
|
|
11437
11479
|
[k: string]: unknown;
|
|
11438
11480
|
};
|
|
11439
11481
|
};
|
package/src/generated/Client.ts
CHANGED
|
@@ -151,7 +151,7 @@ export class Client {
|
|
|
151
151
|
...this.config,
|
|
152
152
|
...options,
|
|
153
153
|
logFn: this.config.logFn || console.log,
|
|
154
|
-
userAgent: '@datocms/cma-client v5.6.
|
|
154
|
+
userAgent: '@datocms/cma-client v5.6.2',
|
|
155
155
|
baseUrl: this.baseUrl,
|
|
156
156
|
preCallStack: new Error().stack,
|
|
157
157
|
extraHeaders: {
|
|
@@ -11713,6 +11713,27 @@ export type PublicInfoAttributes = {
|
|
|
11713
11713
|
blocks_depth: number;
|
|
11714
11714
|
blocks_per_item: number;
|
|
11715
11715
|
maximum_single_upload_bytes: number;
|
|
11716
|
+
/**
|
|
11717
|
+
* Amount of each resource included in the current plan before additional charges may apply.
|
|
11718
|
+
*/
|
|
11719
|
+
overage_thresholds: {
|
|
11720
|
+
/**
|
|
11721
|
+
* Number of sandbox environments included in the current plan before additional charges may apply
|
|
11722
|
+
*/
|
|
11723
|
+
environments?: number;
|
|
11724
|
+
/**
|
|
11725
|
+
* Number of project collaborators included in the current plan before additional charges may apply
|
|
11726
|
+
*/
|
|
11727
|
+
collaborators?: number;
|
|
11728
|
+
/**
|
|
11729
|
+
* Number of locales included in the current plan before additional charges may apply
|
|
11730
|
+
*/
|
|
11731
|
+
locales?: number;
|
|
11732
|
+
/**
|
|
11733
|
+
* Number of models included in the current plan before additional charges may apply
|
|
11734
|
+
*/
|
|
11735
|
+
models?: number;
|
|
11736
|
+
};
|
|
11716
11737
|
[k: string]: unknown;
|
|
11717
11738
|
};
|
|
11718
11739
|
};
|