@datocms/cma-client 3.2.1 → 3.3.0

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.
@@ -129,7 +129,7 @@ var Client = /** @class */ (function () {
129
129
  });
130
130
  Client.prototype.request = function (options) {
131
131
  var _this = this;
132
- return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.2.1', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
132
+ 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.0', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
133
133
  ? { 'X-Environment': this.config.environment }
134
134
  : {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
135
135
  return _this.jobResultsFetcher
@@ -103,7 +103,7 @@ var Client = /** @class */ (function () {
103
103
  });
104
104
  Client.prototype.request = function (options) {
105
105
  var _this = this;
106
- return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.2.1', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
106
+ return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.3.0', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
107
107
  ? { 'X-Environment': this.config.environment }
108
108
  : {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
109
109
  return _this.jobResultsFetcher
@@ -9640,6 +9640,10 @@ export type DailyUsageAttributes = {
9640
9640
  * Content delivery API traffic
9641
9641
  */
9642
9642
  cda_traffic_bytes: number;
9643
+ /**
9644
+ * Content management API traffic
9645
+ */
9646
+ cma_traffic_bytes: number;
9643
9647
  /**
9644
9648
  * Uploads requests traffic
9645
9649
  */
@@ -9648,6 +9652,10 @@ export type DailyUsageAttributes = {
9648
9652
  * Video streaming seconds
9649
9653
  */
9650
9654
  mux_delivered_seconds: number;
9655
+ /**
9656
+ * Video encoding seconds
9657
+ */
9658
+ mux_encoded_seconds: number;
9651
9659
  };
9652
9660
  /**
9653
9661
  * JSON API data
@@ -9349,6 +9349,10 @@ export type DailyUsage = {
9349
9349
  * Content delivery API traffic
9350
9350
  */
9351
9351
  cda_traffic_bytes: number;
9352
+ /**
9353
+ * Content management API traffic
9354
+ */
9355
+ cma_traffic_bytes: number;
9352
9356
  /**
9353
9357
  * Uploads requests traffic
9354
9358
  */
@@ -9357,6 +9361,10 @@ export type DailyUsage = {
9357
9361
  * Video streaming seconds
9358
9362
  */
9359
9363
  mux_delivered_seconds: number;
9364
+ /**
9365
+ * Video encoding seconds
9366
+ */
9367
+ mux_encoded_seconds: number;
9360
9368
  };
9361
9369
  /**
9362
9370
  * JSON API data
@@ -9391,6 +9399,10 @@ export type DailyUsageAttributes = {
9391
9399
  * Content delivery API traffic
9392
9400
  */
9393
9401
  cda_traffic_bytes: number;
9402
+ /**
9403
+ * Content management API traffic
9404
+ */
9405
+ cma_traffic_bytes: number;
9394
9406
  /**
9395
9407
  * Uploads requests traffic
9396
9408
  */
@@ -9399,6 +9411,10 @@ export type DailyUsageAttributes = {
9399
9411
  * Video streaming seconds
9400
9412
  */
9401
9413
  mux_delivered_seconds: number;
9414
+ /**
9415
+ * Video encoding seconds
9416
+ */
9417
+ mux_encoded_seconds: number;
9402
9418
  };
9403
9419
  /**
9404
9420
  * You can use counters to analyze your project's data consumption over a period of time. Counters are especially useful if your project is exceeding its API calls/traffic quota limits, to better understand where and how requests are originating. Counters are updated every minute, so you can debug in real-time the results of your changes.
@@ -9640,6 +9640,10 @@ export type DailyUsageAttributes = {
9640
9640
  * Content delivery API traffic
9641
9641
  */
9642
9642
  cda_traffic_bytes: number;
9643
+ /**
9644
+ * Content management API traffic
9645
+ */
9646
+ cma_traffic_bytes: number;
9643
9647
  /**
9644
9648
  * Uploads requests traffic
9645
9649
  */
@@ -9648,6 +9652,10 @@ export type DailyUsageAttributes = {
9648
9652
  * Video streaming seconds
9649
9653
  */
9650
9654
  mux_delivered_seconds: number;
9655
+ /**
9656
+ * Video encoding seconds
9657
+ */
9658
+ mux_encoded_seconds: number;
9651
9659
  };
9652
9660
  /**
9653
9661
  * JSON API data
@@ -9349,6 +9349,10 @@ export type DailyUsage = {
9349
9349
  * Content delivery API traffic
9350
9350
  */
9351
9351
  cda_traffic_bytes: number;
9352
+ /**
9353
+ * Content management API traffic
9354
+ */
9355
+ cma_traffic_bytes: number;
9352
9356
  /**
9353
9357
  * Uploads requests traffic
9354
9358
  */
@@ -9357,6 +9361,10 @@ export type DailyUsage = {
9357
9361
  * Video streaming seconds
9358
9362
  */
9359
9363
  mux_delivered_seconds: number;
9364
+ /**
9365
+ * Video encoding seconds
9366
+ */
9367
+ mux_encoded_seconds: number;
9360
9368
  };
9361
9369
  /**
9362
9370
  * JSON API data
@@ -9391,6 +9399,10 @@ export type DailyUsageAttributes = {
9391
9399
  * Content delivery API traffic
9392
9400
  */
9393
9401
  cda_traffic_bytes: number;
9402
+ /**
9403
+ * Content management API traffic
9404
+ */
9405
+ cma_traffic_bytes: number;
9394
9406
  /**
9395
9407
  * Uploads requests traffic
9396
9408
  */
@@ -9399,6 +9411,10 @@ export type DailyUsageAttributes = {
9399
9411
  * Video streaming seconds
9400
9412
  */
9401
9413
  mux_delivered_seconds: number;
9414
+ /**
9415
+ * Video encoding seconds
9416
+ */
9417
+ mux_encoded_seconds: number;
9402
9418
  };
9403
9419
  /**
9404
9420
  * You can use counters to analyze your project's data consumption over a period of time. Counters are especially useful if your project is exceeding its API calls/traffic quota limits, to better understand where and how requests are originating. Counters are updated every minute, so you can debug in real-time the results of your changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
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.2.1",
33
+ "@datocms/rest-client-utils": "^3.3.0",
34
34
  "uuid": "^9.0.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@datocms/dashboard-client": "^3.2.1",
37
+ "@datocms/dashboard-client": "^3.3.0",
38
38
  "@types/uuid": "^9.0.7"
39
39
  },
40
- "gitHead": "09b5f0f4abbbc3cced5b6afb9f7445dc882a9db8"
40
+ "gitHead": "1797aa66113ed33fd845d1433317f45c4ca6a47a"
41
41
  }
@@ -143,7 +143,7 @@ export class Client {
143
143
  ...this.config,
144
144
  ...options,
145
145
  logFn: this.config.logFn || console.log,
146
- userAgent: '@datocms/cma-client v3.2.1',
146
+ userAgent: '@datocms/cma-client v3.3.0',
147
147
  baseUrl: this.baseUrl,
148
148
  preCallStack: new Error().stack,
149
149
  extraHeaders: {
@@ -10384,6 +10384,10 @@ export type DailyUsageAttributes = {
10384
10384
  * Content delivery API traffic
10385
10385
  */
10386
10386
  cda_traffic_bytes: number;
10387
+ /**
10388
+ * Content management API traffic
10389
+ */
10390
+ cma_traffic_bytes: number;
10387
10391
  /**
10388
10392
  * Uploads requests traffic
10389
10393
  */
@@ -10392,6 +10396,10 @@ export type DailyUsageAttributes = {
10392
10396
  * Video streaming seconds
10393
10397
  */
10394
10398
  mux_delivered_seconds: number;
10399
+ /**
10400
+ * Video encoding seconds
10401
+ */
10402
+ mux_encoded_seconds: number;
10395
10403
  };
10396
10404
 
10397
10405
  /**
@@ -9986,6 +9986,10 @@ export type DailyUsage = {
9986
9986
  * Content delivery API traffic
9987
9987
  */
9988
9988
  cda_traffic_bytes: number;
9989
+ /**
9990
+ * Content management API traffic
9991
+ */
9992
+ cma_traffic_bytes: number;
9989
9993
  /**
9990
9994
  * Uploads requests traffic
9991
9995
  */
@@ -9994,6 +9998,10 @@ export type DailyUsage = {
9994
9998
  * Video streaming seconds
9995
9999
  */
9996
10000
  mux_delivered_seconds: number;
10001
+ /**
10002
+ * Video encoding seconds
10003
+ */
10004
+ mux_encoded_seconds: number;
9997
10005
  };
9998
10006
 
9999
10007
  /**
@@ -10030,6 +10038,10 @@ export type DailyUsageAttributes = {
10030
10038
  * Content delivery API traffic
10031
10039
  */
10032
10040
  cda_traffic_bytes: number;
10041
+ /**
10042
+ * Content management API traffic
10043
+ */
10044
+ cma_traffic_bytes: number;
10033
10045
  /**
10034
10046
  * Uploads requests traffic
10035
10047
  */
@@ -10038,6 +10050,10 @@ export type DailyUsageAttributes = {
10038
10050
  * Video streaming seconds
10039
10051
  */
10040
10052
  mux_delivered_seconds: number;
10053
+ /**
10054
+ * Video encoding seconds
10055
+ */
10056
+ mux_encoded_seconds: number;
10041
10057
  };
10042
10058
 
10043
10059
  /**