@datocms/cma-client 3.3.1 → 3.3.3
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 +10 -2
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +16 -4
- package/dist/types/generated/SchemaTypes.d.ts +10 -2
- package/dist/types/generated/SimpleSchemaTypes.d.ts +16 -4
- package/package.json +4 -4
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +10 -2
- package/src/generated/SimpleSchemaTypes.ts +16 -4
|
@@ -130,7 +130,7 @@ var Client = /** @class */ (function () {
|
|
|
130
130
|
});
|
|
131
131
|
Client.prototype.request = function (options) {
|
|
132
132
|
var _this = this;
|
|
133
|
-
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.
|
|
133
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.3', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
134
134
|
? { 'X-Environment': this.config.environment }
|
|
135
135
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
136
136
|
return _this.jobResultsFetcher
|
|
@@ -104,7 +104,7 @@ var Client = /** @class */ (function () {
|
|
|
104
104
|
});
|
|
105
105
|
Client.prototype.request = function (options) {
|
|
106
106
|
var _this = this;
|
|
107
|
-
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.
|
|
107
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.3', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
108
108
|
? { 'X-Environment': this.config.environment }
|
|
109
109
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
110
110
|
return _this.jobResultsFetcher
|
|
@@ -3143,7 +3143,7 @@ export type SitePlanAttributes = {
|
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Maximum size (in bytes) for a record, including its block records
|
|
3145
3145
|
*/
|
|
3146
|
-
|
|
3146
|
+
item_size_bytes: number;
|
|
3147
3147
|
/**
|
|
3148
3148
|
* Available extra packets
|
|
3149
3149
|
*/
|
|
@@ -9832,9 +9832,13 @@ export type DailyUsageAttributes = {
|
|
|
9832
9832
|
*/
|
|
9833
9833
|
assets_traffic_bytes: number;
|
|
9834
9834
|
/**
|
|
9835
|
-
*
|
|
9835
|
+
* Regular video streaming (max 1080p), in seconds
|
|
9836
9836
|
*/
|
|
9837
9837
|
mux_delivered_seconds: number;
|
|
9838
|
+
/**
|
|
9839
|
+
* High-res video streaming (> 1080p), in seconds
|
|
9840
|
+
*/
|
|
9841
|
+
mux_high_resolution_delivered_seconds: number;
|
|
9838
9842
|
/**
|
|
9839
9843
|
* Video encoding seconds
|
|
9840
9844
|
*/
|
|
@@ -10218,6 +10222,10 @@ export type SiteRelationships = {
|
|
|
10218
10222
|
* via the `definition` "meta".
|
|
10219
10223
|
*/
|
|
10220
10224
|
export type SiteMeta = {
|
|
10225
|
+
/**
|
|
10226
|
+
* Date of project creation
|
|
10227
|
+
*/
|
|
10228
|
+
created_at: string;
|
|
10221
10229
|
/**
|
|
10222
10230
|
* Whether the Improved API Timezone Management option is active or not
|
|
10223
10231
|
*/
|
|
@@ -3527,7 +3527,7 @@ export type SitePlan = {
|
|
|
3527
3527
|
/**
|
|
3528
3528
|
* Maximum size (in bytes) for a record, including its block records
|
|
3529
3529
|
*/
|
|
3530
|
-
|
|
3530
|
+
item_size_bytes: number;
|
|
3531
3531
|
/**
|
|
3532
3532
|
* Available extra packets
|
|
3533
3533
|
*/
|
|
@@ -3763,7 +3763,7 @@ export type SitePlanAttributes = {
|
|
|
3763
3763
|
/**
|
|
3764
3764
|
* Maximum size (in bytes) for a record, including its block records
|
|
3765
3765
|
*/
|
|
3766
|
-
|
|
3766
|
+
item_size_bytes: number;
|
|
3767
3767
|
/**
|
|
3768
3768
|
* Available extra packets
|
|
3769
3769
|
*/
|
|
@@ -9523,9 +9523,13 @@ export type DailyUsage = {
|
|
|
9523
9523
|
*/
|
|
9524
9524
|
assets_traffic_bytes: number;
|
|
9525
9525
|
/**
|
|
9526
|
-
*
|
|
9526
|
+
* Regular video streaming (max 1080p), in seconds
|
|
9527
9527
|
*/
|
|
9528
9528
|
mux_delivered_seconds: number;
|
|
9529
|
+
/**
|
|
9530
|
+
* High-res video streaming (> 1080p), in seconds
|
|
9531
|
+
*/
|
|
9532
|
+
mux_high_resolution_delivered_seconds: number;
|
|
9529
9533
|
/**
|
|
9530
9534
|
* Video encoding seconds
|
|
9531
9535
|
*/
|
|
@@ -9573,9 +9577,13 @@ export type DailyUsageAttributes = {
|
|
|
9573
9577
|
*/
|
|
9574
9578
|
assets_traffic_bytes: number;
|
|
9575
9579
|
/**
|
|
9576
|
-
*
|
|
9580
|
+
* Regular video streaming (max 1080p), in seconds
|
|
9577
9581
|
*/
|
|
9578
9582
|
mux_delivered_seconds: number;
|
|
9583
|
+
/**
|
|
9584
|
+
* High-res video streaming (> 1080p), in seconds
|
|
9585
|
+
*/
|
|
9586
|
+
mux_high_resolution_delivered_seconds: number;
|
|
9579
9587
|
/**
|
|
9580
9588
|
* Video encoding seconds
|
|
9581
9589
|
*/
|
|
@@ -9905,6 +9913,10 @@ export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
|
9905
9913
|
* via the `definition` "meta".
|
|
9906
9914
|
*/
|
|
9907
9915
|
export type SiteMeta = {
|
|
9916
|
+
/**
|
|
9917
|
+
* Date of project creation
|
|
9918
|
+
*/
|
|
9919
|
+
created_at: string;
|
|
9908
9920
|
/**
|
|
9909
9921
|
* Whether the Improved API Timezone Management option is active or not
|
|
9910
9922
|
*/
|
|
@@ -3143,7 +3143,7 @@ export type SitePlanAttributes = {
|
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Maximum size (in bytes) for a record, including its block records
|
|
3145
3145
|
*/
|
|
3146
|
-
|
|
3146
|
+
item_size_bytes: number;
|
|
3147
3147
|
/**
|
|
3148
3148
|
* Available extra packets
|
|
3149
3149
|
*/
|
|
@@ -9832,9 +9832,13 @@ export type DailyUsageAttributes = {
|
|
|
9832
9832
|
*/
|
|
9833
9833
|
assets_traffic_bytes: number;
|
|
9834
9834
|
/**
|
|
9835
|
-
*
|
|
9835
|
+
* Regular video streaming (max 1080p), in seconds
|
|
9836
9836
|
*/
|
|
9837
9837
|
mux_delivered_seconds: number;
|
|
9838
|
+
/**
|
|
9839
|
+
* High-res video streaming (> 1080p), in seconds
|
|
9840
|
+
*/
|
|
9841
|
+
mux_high_resolution_delivered_seconds: number;
|
|
9838
9842
|
/**
|
|
9839
9843
|
* Video encoding seconds
|
|
9840
9844
|
*/
|
|
@@ -10218,6 +10222,10 @@ export type SiteRelationships = {
|
|
|
10218
10222
|
* via the `definition` "meta".
|
|
10219
10223
|
*/
|
|
10220
10224
|
export type SiteMeta = {
|
|
10225
|
+
/**
|
|
10226
|
+
* Date of project creation
|
|
10227
|
+
*/
|
|
10228
|
+
created_at: string;
|
|
10221
10229
|
/**
|
|
10222
10230
|
* Whether the Improved API Timezone Management option is active or not
|
|
10223
10231
|
*/
|
|
@@ -3527,7 +3527,7 @@ export type SitePlan = {
|
|
|
3527
3527
|
/**
|
|
3528
3528
|
* Maximum size (in bytes) for a record, including its block records
|
|
3529
3529
|
*/
|
|
3530
|
-
|
|
3530
|
+
item_size_bytes: number;
|
|
3531
3531
|
/**
|
|
3532
3532
|
* Available extra packets
|
|
3533
3533
|
*/
|
|
@@ -3763,7 +3763,7 @@ export type SitePlanAttributes = {
|
|
|
3763
3763
|
/**
|
|
3764
3764
|
* Maximum size (in bytes) for a record, including its block records
|
|
3765
3765
|
*/
|
|
3766
|
-
|
|
3766
|
+
item_size_bytes: number;
|
|
3767
3767
|
/**
|
|
3768
3768
|
* Available extra packets
|
|
3769
3769
|
*/
|
|
@@ -9523,9 +9523,13 @@ export type DailyUsage = {
|
|
|
9523
9523
|
*/
|
|
9524
9524
|
assets_traffic_bytes: number;
|
|
9525
9525
|
/**
|
|
9526
|
-
*
|
|
9526
|
+
* Regular video streaming (max 1080p), in seconds
|
|
9527
9527
|
*/
|
|
9528
9528
|
mux_delivered_seconds: number;
|
|
9529
|
+
/**
|
|
9530
|
+
* High-res video streaming (> 1080p), in seconds
|
|
9531
|
+
*/
|
|
9532
|
+
mux_high_resolution_delivered_seconds: number;
|
|
9529
9533
|
/**
|
|
9530
9534
|
* Video encoding seconds
|
|
9531
9535
|
*/
|
|
@@ -9573,9 +9577,13 @@ export type DailyUsageAttributes = {
|
|
|
9573
9577
|
*/
|
|
9574
9578
|
assets_traffic_bytes: number;
|
|
9575
9579
|
/**
|
|
9576
|
-
*
|
|
9580
|
+
* Regular video streaming (max 1080p), in seconds
|
|
9577
9581
|
*/
|
|
9578
9582
|
mux_delivered_seconds: number;
|
|
9583
|
+
/**
|
|
9584
|
+
* High-res video streaming (> 1080p), in seconds
|
|
9585
|
+
*/
|
|
9586
|
+
mux_high_resolution_delivered_seconds: number;
|
|
9579
9587
|
/**
|
|
9580
9588
|
* Video encoding seconds
|
|
9581
9589
|
*/
|
|
@@ -9905,6 +9913,10 @@ export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
|
9905
9913
|
* via the `definition` "meta".
|
|
9906
9914
|
*/
|
|
9907
9915
|
export type SiteMeta = {
|
|
9916
|
+
/**
|
|
9917
|
+
* Date of project creation
|
|
9918
|
+
*/
|
|
9919
|
+
created_at: string;
|
|
9908
9920
|
/**
|
|
9909
9921
|
* Whether the Improved API Timezone Management option is active or not
|
|
9910
9922
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": ["datocms", "client"],
|
|
6
6
|
"author": "Stefano Verna <s.verna@datocms.com>",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"url": "https://github.com/datocms/js-rest-api-clients/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@datocms/rest-client-utils": "^3.3.
|
|
33
|
+
"@datocms/rest-client-utils": "^3.3.3",
|
|
34
34
|
"uuid": "^9.0.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@datocms/dashboard-client": "^3.3.
|
|
37
|
+
"@datocms/dashboard-client": "^3.3.3",
|
|
38
38
|
"@types/uuid": "^9.0.7"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "013171f1e33f61c464eaa9d7d8fae2d8fdabefb0"
|
|
41
41
|
}
|
package/src/generated/Client.ts
CHANGED
|
@@ -145,7 +145,7 @@ export class Client {
|
|
|
145
145
|
...this.config,
|
|
146
146
|
...options,
|
|
147
147
|
logFn: this.config.logFn || console.log,
|
|
148
|
-
userAgent: '@datocms/cma-client v3.3.
|
|
148
|
+
userAgent: '@datocms/cma-client v3.3.3',
|
|
149
149
|
baseUrl: this.baseUrl,
|
|
150
150
|
preCallStack: new Error().stack,
|
|
151
151
|
extraHeaders: {
|
|
@@ -3360,7 +3360,7 @@ export type SitePlanAttributes = {
|
|
|
3360
3360
|
/**
|
|
3361
3361
|
* Maximum size (in bytes) for a record, including its block records
|
|
3362
3362
|
*/
|
|
3363
|
-
|
|
3363
|
+
item_size_bytes: number;
|
|
3364
3364
|
/**
|
|
3365
3365
|
* Available extra packets
|
|
3366
3366
|
*/
|
|
@@ -10589,9 +10589,13 @@ export type DailyUsageAttributes = {
|
|
|
10589
10589
|
*/
|
|
10590
10590
|
assets_traffic_bytes: number;
|
|
10591
10591
|
/**
|
|
10592
|
-
*
|
|
10592
|
+
* Regular video streaming (max 1080p), in seconds
|
|
10593
10593
|
*/
|
|
10594
10594
|
mux_delivered_seconds: number;
|
|
10595
|
+
/**
|
|
10596
|
+
* High-res video streaming (> 1080p), in seconds
|
|
10597
|
+
*/
|
|
10598
|
+
mux_high_resolution_delivered_seconds: number;
|
|
10595
10599
|
/**
|
|
10596
10600
|
* Video encoding seconds
|
|
10597
10601
|
*/
|
|
@@ -10995,6 +10999,10 @@ export type SiteRelationships = {
|
|
|
10995
10999
|
* via the `definition` "meta".
|
|
10996
11000
|
*/
|
|
10997
11001
|
export type SiteMeta = {
|
|
11002
|
+
/**
|
|
11003
|
+
* Date of project creation
|
|
11004
|
+
*/
|
|
11005
|
+
created_at: string;
|
|
10998
11006
|
/**
|
|
10999
11007
|
* Whether the Improved API Timezone Management option is active or not
|
|
11000
11008
|
*/
|
|
@@ -3758,7 +3758,7 @@ export type SitePlan = {
|
|
|
3758
3758
|
/**
|
|
3759
3759
|
* Maximum size (in bytes) for a record, including its block records
|
|
3760
3760
|
*/
|
|
3761
|
-
|
|
3761
|
+
item_size_bytes: number;
|
|
3762
3762
|
/**
|
|
3763
3763
|
* Available extra packets
|
|
3764
3764
|
*/
|
|
@@ -3996,7 +3996,7 @@ export type SitePlanAttributes = {
|
|
|
3996
3996
|
/**
|
|
3997
3997
|
* Maximum size (in bytes) for a record, including its block records
|
|
3998
3998
|
*/
|
|
3999
|
-
|
|
3999
|
+
item_size_bytes: number;
|
|
4000
4000
|
/**
|
|
4001
4001
|
* Available extra packets
|
|
4002
4002
|
*/
|
|
@@ -10165,9 +10165,13 @@ export type DailyUsage = {
|
|
|
10165
10165
|
*/
|
|
10166
10166
|
assets_traffic_bytes: number;
|
|
10167
10167
|
/**
|
|
10168
|
-
*
|
|
10168
|
+
* Regular video streaming (max 1080p), in seconds
|
|
10169
10169
|
*/
|
|
10170
10170
|
mux_delivered_seconds: number;
|
|
10171
|
+
/**
|
|
10172
|
+
* High-res video streaming (> 1080p), in seconds
|
|
10173
|
+
*/
|
|
10174
|
+
mux_high_resolution_delivered_seconds: number;
|
|
10171
10175
|
/**
|
|
10172
10176
|
* Video encoding seconds
|
|
10173
10177
|
*/
|
|
@@ -10217,9 +10221,13 @@ export type DailyUsageAttributes = {
|
|
|
10217
10221
|
*/
|
|
10218
10222
|
assets_traffic_bytes: number;
|
|
10219
10223
|
/**
|
|
10220
|
-
*
|
|
10224
|
+
* Regular video streaming (max 1080p), in seconds
|
|
10221
10225
|
*/
|
|
10222
10226
|
mux_delivered_seconds: number;
|
|
10227
|
+
/**
|
|
10228
|
+
* High-res video streaming (> 1080p), in seconds
|
|
10229
|
+
*/
|
|
10230
|
+
mux_high_resolution_delivered_seconds: number;
|
|
10223
10231
|
/**
|
|
10224
10232
|
* Video encoding seconds
|
|
10225
10233
|
*/
|
|
@@ -10558,6 +10566,10 @@ export type SiteUpdateAssetsCdnDefaultSettingsTargetSchema = Site;
|
|
|
10558
10566
|
* via the `definition` "meta".
|
|
10559
10567
|
*/
|
|
10560
10568
|
export type SiteMeta = {
|
|
10569
|
+
/**
|
|
10570
|
+
* Date of project creation
|
|
10571
|
+
*/
|
|
10572
|
+
created_at: string;
|
|
10561
10573
|
/**
|
|
10562
10574
|
* Whether the Improved API Timezone Management option is active or not
|
|
10563
10575
|
*/
|