@datocms/cma-client 5.2.8 → 5.2.9

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.
@@ -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.2.8', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
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.2.9', 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
@@ -3801,6 +3801,14 @@ export type SitePlan = {
3801
3801
  * The number of requests made to both our Content Management and Content Delivery APIs
3802
3802
  */
3803
3803
  api_calls: null | number;
3804
+ /**
3805
+ * The number of requests made to our Content Delivery API
3806
+ */
3807
+ cda_api_calls?: null | number;
3808
+ /**
3809
+ * The number of requests made to our Content Management API
3810
+ */
3811
+ cma_api_calls?: null | number;
3804
3812
  /**
3805
3813
  * The number of streaming seconds delivered by Mux.com
3806
3814
  */
@@ -3966,6 +3974,14 @@ export type SitePlan = {
3966
3974
  amount_per_packet: number;
3967
3975
  price: number;
3968
3976
  };
3977
+ cda_api_calls?: {
3978
+ amount_per_packet: number;
3979
+ price: number;
3980
+ };
3981
+ cma_api_calls?: {
3982
+ amount_per_packet: number;
3983
+ price: number;
3984
+ };
3969
3985
  mux_streaming_seconds?: {
3970
3986
  amount_per_packet: number;
3971
3987
  price: number;
@@ -4049,6 +4065,14 @@ export type SitePlanAttributes = {
4049
4065
  * The number of requests made to both our Content Management and Content Delivery APIs
4050
4066
  */
4051
4067
  api_calls: null | number;
4068
+ /**
4069
+ * The number of requests made to our Content Delivery API
4070
+ */
4071
+ cda_api_calls?: null | number;
4072
+ /**
4073
+ * The number of requests made to our Content Management API
4074
+ */
4075
+ cma_api_calls?: null | number;
4052
4076
  /**
4053
4077
  * The number of streaming seconds delivered by Mux.com
4054
4078
  */
@@ -4214,6 +4238,14 @@ export type SitePlanAttributes = {
4214
4238
  amount_per_packet: number;
4215
4239
  price: number;
4216
4240
  };
4241
+ cda_api_calls?: {
4242
+ amount_per_packet: number;
4243
+ price: number;
4244
+ };
4245
+ cma_api_calls?: {
4246
+ amount_per_packet: number;
4247
+ price: number;
4248
+ };
4217
4249
  mux_streaming_seconds?: {
4218
4250
  amount_per_packet: number;
4219
4251
  price: number;
@@ -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.2.8', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
67
+ return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.2.9', 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
@@ -3316,6 +3316,14 @@ export type SitePlanAttributes = {
3316
3316
  * The number of requests made to both our Content Management and Content Delivery APIs
3317
3317
  */
3318
3318
  api_calls: null | number;
3319
+ /**
3320
+ * The number of requests made to our Content Delivery API
3321
+ */
3322
+ cda_api_calls?: null | number;
3323
+ /**
3324
+ * The number of requests made to our Content Management API
3325
+ */
3326
+ cma_api_calls?: null | number;
3319
3327
  /**
3320
3328
  * The number of streaming seconds delivered by Mux.com
3321
3329
  */
@@ -3481,6 +3489,14 @@ export type SitePlanAttributes = {
3481
3489
  amount_per_packet: number;
3482
3490
  price: number;
3483
3491
  };
3492
+ cda_api_calls?: {
3493
+ amount_per_packet: number;
3494
+ price: number;
3495
+ };
3496
+ cma_api_calls?: {
3497
+ amount_per_packet: number;
3498
+ price: number;
3499
+ };
3484
3500
  mux_streaming_seconds?: {
3485
3501
  amount_per_packet: number;
3486
3502
  price: number;
@@ -3801,6 +3801,14 @@ export type SitePlan = {
3801
3801
  * The number of requests made to both our Content Management and Content Delivery APIs
3802
3802
  */
3803
3803
  api_calls: null | number;
3804
+ /**
3805
+ * The number of requests made to our Content Delivery API
3806
+ */
3807
+ cda_api_calls?: null | number;
3808
+ /**
3809
+ * The number of requests made to our Content Management API
3810
+ */
3811
+ cma_api_calls?: null | number;
3804
3812
  /**
3805
3813
  * The number of streaming seconds delivered by Mux.com
3806
3814
  */
@@ -3966,6 +3974,14 @@ export type SitePlan = {
3966
3974
  amount_per_packet: number;
3967
3975
  price: number;
3968
3976
  };
3977
+ cda_api_calls?: {
3978
+ amount_per_packet: number;
3979
+ price: number;
3980
+ };
3981
+ cma_api_calls?: {
3982
+ amount_per_packet: number;
3983
+ price: number;
3984
+ };
3969
3985
  mux_streaming_seconds?: {
3970
3986
  amount_per_packet: number;
3971
3987
  price: number;
@@ -4049,6 +4065,14 @@ export type SitePlanAttributes = {
4049
4065
  * The number of requests made to both our Content Management and Content Delivery APIs
4050
4066
  */
4051
4067
  api_calls: null | number;
4068
+ /**
4069
+ * The number of requests made to our Content Delivery API
4070
+ */
4071
+ cda_api_calls?: null | number;
4072
+ /**
4073
+ * The number of requests made to our Content Management API
4074
+ */
4075
+ cma_api_calls?: null | number;
4052
4076
  /**
4053
4077
  * The number of streaming seconds delivered by Mux.com
4054
4078
  */
@@ -4214,6 +4238,14 @@ export type SitePlanAttributes = {
4214
4238
  amount_per_packet: number;
4215
4239
  price: number;
4216
4240
  };
4241
+ cda_api_calls?: {
4242
+ amount_per_packet: number;
4243
+ price: number;
4244
+ };
4245
+ cma_api_calls?: {
4246
+ amount_per_packet: number;
4247
+ price: number;
4248
+ };
4217
4249
  mux_streaming_seconds?: {
4218
4250
  amount_per_packet: number;
4219
4251
  price: number;
@@ -3316,6 +3316,14 @@ export type SitePlanAttributes = {
3316
3316
  * The number of requests made to both our Content Management and Content Delivery APIs
3317
3317
  */
3318
3318
  api_calls: null | number;
3319
+ /**
3320
+ * The number of requests made to our Content Delivery API
3321
+ */
3322
+ cda_api_calls?: null | number;
3323
+ /**
3324
+ * The number of requests made to our Content Management API
3325
+ */
3326
+ cma_api_calls?: null | number;
3319
3327
  /**
3320
3328
  * The number of streaming seconds delivered by Mux.com
3321
3329
  */
@@ -3481,6 +3489,14 @@ export type SitePlanAttributes = {
3481
3489
  amount_per_packet: number;
3482
3490
  price: number;
3483
3491
  };
3492
+ cda_api_calls?: {
3493
+ amount_per_packet: number;
3494
+ price: number;
3495
+ };
3496
+ cma_api_calls?: {
3497
+ amount_per_packet: number;
3498
+ price: number;
3499
+ };
3484
3500
  mux_streaming_seconds?: {
3485
3501
  amount_per_packet: number;
3486
3502
  price: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "5.2.8",
3
+ "version": "5.2.9",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -42,8 +42,8 @@
42
42
  "uuid": "^9.0.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@datocms/dashboard-client": "^5.2.8",
45
+ "@datocms/dashboard-client": "^5.2.9",
46
46
  "@types/uuid": "^9.0.7"
47
47
  },
48
- "gitHead": "c51b4a38abc04eeb1dd6106d29908b1c694f5b30"
48
+ "gitHead": "dc1ad4188e2209df4ff0fead429dd7df394bc959"
49
49
  }
@@ -4141,6 +4141,14 @@ export type SitePlan = {
4141
4141
  * The number of requests made to both our Content Management and Content Delivery APIs
4142
4142
  */
4143
4143
  api_calls: null | number;
4144
+ /**
4145
+ * The number of requests made to our Content Delivery API
4146
+ */
4147
+ cda_api_calls?: null | number;
4148
+ /**
4149
+ * The number of requests made to our Content Management API
4150
+ */
4151
+ cma_api_calls?: null | number;
4144
4152
  /**
4145
4153
  * The number of streaming seconds delivered by Mux.com
4146
4154
  */
@@ -4306,6 +4314,14 @@ export type SitePlan = {
4306
4314
  amount_per_packet: number;
4307
4315
  price: number;
4308
4316
  };
4317
+ cda_api_calls?: {
4318
+ amount_per_packet: number;
4319
+ price: number;
4320
+ };
4321
+ cma_api_calls?: {
4322
+ amount_per_packet: number;
4323
+ price: number;
4324
+ };
4309
4325
  mux_streaming_seconds?: {
4310
4326
  amount_per_packet: number;
4311
4327
  price: number;
@@ -4389,6 +4405,14 @@ export type SitePlanAttributes = {
4389
4405
  * The number of requests made to both our Content Management and Content Delivery APIs
4390
4406
  */
4391
4407
  api_calls: null | number;
4408
+ /**
4409
+ * The number of requests made to our Content Delivery API
4410
+ */
4411
+ cda_api_calls?: null | number;
4412
+ /**
4413
+ * The number of requests made to our Content Management API
4414
+ */
4415
+ cma_api_calls?: null | number;
4392
4416
  /**
4393
4417
  * The number of streaming seconds delivered by Mux.com
4394
4418
  */
@@ -4554,6 +4578,14 @@ export type SitePlanAttributes = {
4554
4578
  amount_per_packet: number;
4555
4579
  price: number;
4556
4580
  };
4581
+ cda_api_calls?: {
4582
+ amount_per_packet: number;
4583
+ price: number;
4584
+ };
4585
+ cma_api_calls?: {
4586
+ amount_per_packet: number;
4587
+ price: number;
4588
+ };
4557
4589
  mux_streaming_seconds?: {
4558
4590
  amount_per_packet: number;
4559
4591
  price: number;
@@ -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.2.8',
154
+ userAgent: '@datocms/cma-client v5.2.9',
155
155
  baseUrl: this.baseUrl,
156
156
  preCallStack: new Error().stack,
157
157
  extraHeaders: {
@@ -3572,6 +3572,14 @@ export type SitePlanAttributes = {
3572
3572
  * The number of requests made to both our Content Management and Content Delivery APIs
3573
3573
  */
3574
3574
  api_calls: null | number;
3575
+ /**
3576
+ * The number of requests made to our Content Delivery API
3577
+ */
3578
+ cda_api_calls?: null | number;
3579
+ /**
3580
+ * The number of requests made to our Content Management API
3581
+ */
3582
+ cma_api_calls?: null | number;
3575
3583
  /**
3576
3584
  * The number of streaming seconds delivered by Mux.com
3577
3585
  */
@@ -3737,6 +3745,14 @@ export type SitePlanAttributes = {
3737
3745
  amount_per_packet: number;
3738
3746
  price: number;
3739
3747
  };
3748
+ cda_api_calls?: {
3749
+ amount_per_packet: number;
3750
+ price: number;
3751
+ };
3752
+ cma_api_calls?: {
3753
+ amount_per_packet: number;
3754
+ price: number;
3755
+ };
3740
3756
  mux_streaming_seconds?: {
3741
3757
  amount_per_packet: number;
3742
3758
  price: number;