@datocms/cma-client 5.2.7 → 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.
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +84 -52
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +65 -49
- package/dist/esm/generated/resources/User.d.ts +1 -1
- package/dist/types/generated/ApiTypes.d.ts +84 -52
- package/dist/types/generated/RawApiTypes.d.ts +65 -49
- package/dist/types/generated/resources/User.d.ts +1 -1
- package/package.json +4 -4
- package/src/generated/ApiTypes.ts +89 -52
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +65 -49
|
@@ -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.
|
|
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
|
|
@@ -142,7 +142,7 @@ export type UserSelfHrefSchema = {
|
|
|
142
142
|
* This interface was referenced by `User`'s JSON-Schema
|
|
143
143
|
* via the `me.targetSchema` link.
|
|
144
144
|
*/
|
|
145
|
-
export type UserMeTargetSchema = User | SsoUser | AccessToken | Account;
|
|
145
|
+
export type UserMeTargetSchema = User | SsoUser | AccessToken | Account | Organization;
|
|
146
146
|
/**
|
|
147
147
|
* ID of user
|
|
148
148
|
*
|
|
@@ -248,6 +248,21 @@ export type AccountIdentity = string;
|
|
|
248
248
|
* via the `definition` "type".
|
|
249
249
|
*/
|
|
250
250
|
export type AccountType = 'account';
|
|
251
|
+
/**
|
|
252
|
+
* ID of organization
|
|
253
|
+
*
|
|
254
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
255
|
+
* via the `definition` "identity".
|
|
256
|
+
*
|
|
257
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
258
|
+
* via the `definition` "id".
|
|
259
|
+
*/
|
|
260
|
+
export type OrganizationIdentity = string;
|
|
261
|
+
/**
|
|
262
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
263
|
+
* via the `definition` "type".
|
|
264
|
+
*/
|
|
265
|
+
export type OrganizationType = 'organization';
|
|
251
266
|
/**
|
|
252
267
|
* This interface was referenced by `User`'s JSON-Schema
|
|
253
268
|
* via the `me.hrefSchema` link.
|
|
@@ -294,21 +309,6 @@ export type AuditLogEventType = 'audit_log_event';
|
|
|
294
309
|
* via the `query.targetSchema` link.
|
|
295
310
|
*/
|
|
296
311
|
export type AuditLogEventQueryTargetSchema = AuditLogEvent[];
|
|
297
|
-
/**
|
|
298
|
-
* ID of organization
|
|
299
|
-
*
|
|
300
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
301
|
-
* via the `definition` "identity".
|
|
302
|
-
*
|
|
303
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
304
|
-
* via the `definition` "id".
|
|
305
|
-
*/
|
|
306
|
-
export type OrganizationIdentity = string;
|
|
307
|
-
/**
|
|
308
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
309
|
-
* via the `definition` "type".
|
|
310
|
-
*/
|
|
311
|
-
export type OrganizationType = 'organization';
|
|
312
312
|
/**
|
|
313
313
|
* ID of plan
|
|
314
314
|
*
|
|
@@ -3466,6 +3466,42 @@ export type AccountAttributes = {
|
|
|
3466
3466
|
*/
|
|
3467
3467
|
company: string | null;
|
|
3468
3468
|
};
|
|
3469
|
+
/**
|
|
3470
|
+
* DatoCMS organization
|
|
3471
|
+
*
|
|
3472
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3473
|
+
* via the `definition` "organization".
|
|
3474
|
+
*/
|
|
3475
|
+
export type Organization = {
|
|
3476
|
+
id: OrganizationIdentity;
|
|
3477
|
+
type: OrganizationType;
|
|
3478
|
+
/**
|
|
3479
|
+
* Name of the organization
|
|
3480
|
+
*/
|
|
3481
|
+
name: string;
|
|
3482
|
+
};
|
|
3483
|
+
/**
|
|
3484
|
+
* JSON API data
|
|
3485
|
+
*
|
|
3486
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3487
|
+
* via the `definition` "data".
|
|
3488
|
+
*/
|
|
3489
|
+
export type OrganizationData = {
|
|
3490
|
+
type: OrganizationType;
|
|
3491
|
+
id: OrganizationIdentity;
|
|
3492
|
+
};
|
|
3493
|
+
/**
|
|
3494
|
+
* JSON API attributes
|
|
3495
|
+
*
|
|
3496
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3497
|
+
* via the `definition` "attributes".
|
|
3498
|
+
*/
|
|
3499
|
+
export type OrganizationAttributes = {
|
|
3500
|
+
/**
|
|
3501
|
+
* Name of the organization
|
|
3502
|
+
*/
|
|
3503
|
+
name: string;
|
|
3504
|
+
};
|
|
3469
3505
|
/**
|
|
3470
3506
|
* If the Audit log functionality is enabled in a project, logged events can be queried using SQL-like language and fetched in full detail so that they can be exported or analyzed.
|
|
3471
3507
|
*
|
|
@@ -3696,42 +3732,6 @@ export type AuditLogEventQuerySchema = {
|
|
|
3696
3732
|
*/
|
|
3697
3733
|
detailed_log?: boolean;
|
|
3698
3734
|
};
|
|
3699
|
-
/**
|
|
3700
|
-
* DatoCMS organization
|
|
3701
|
-
*
|
|
3702
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3703
|
-
* via the `definition` "organization".
|
|
3704
|
-
*/
|
|
3705
|
-
export type Organization = {
|
|
3706
|
-
id: OrganizationIdentity;
|
|
3707
|
-
type: OrganizationType;
|
|
3708
|
-
/**
|
|
3709
|
-
* Name of the organization
|
|
3710
|
-
*/
|
|
3711
|
-
name: string;
|
|
3712
|
-
};
|
|
3713
|
-
/**
|
|
3714
|
-
* JSON API data
|
|
3715
|
-
*
|
|
3716
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3717
|
-
* via the `definition` "data".
|
|
3718
|
-
*/
|
|
3719
|
-
export type OrganizationData = {
|
|
3720
|
-
type: OrganizationType;
|
|
3721
|
-
id: OrganizationIdentity;
|
|
3722
|
-
};
|
|
3723
|
-
/**
|
|
3724
|
-
* JSON API attributes
|
|
3725
|
-
*
|
|
3726
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3727
|
-
* via the `definition` "attributes".
|
|
3728
|
-
*/
|
|
3729
|
-
export type OrganizationAttributes = {
|
|
3730
|
-
/**
|
|
3731
|
-
* Name of the organization
|
|
3732
|
-
*/
|
|
3733
|
-
name: string;
|
|
3734
|
-
};
|
|
3735
3735
|
/**
|
|
3736
3736
|
* Stores the information regarding the current plan for the project.
|
|
3737
3737
|
*
|
|
@@ -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.
|
|
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
|
|
@@ -226,6 +226,21 @@ export type AccountType = 'account';
|
|
|
226
226
|
* via the `definition` "id".
|
|
227
227
|
*/
|
|
228
228
|
export type AccountIdentity = string;
|
|
229
|
+
/**
|
|
230
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
231
|
+
* via the `definition` "type".
|
|
232
|
+
*/
|
|
233
|
+
export type OrganizationType = 'organization';
|
|
234
|
+
/**
|
|
235
|
+
* ID of organization
|
|
236
|
+
*
|
|
237
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
238
|
+
* via the `definition` "identity".
|
|
239
|
+
*
|
|
240
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
241
|
+
* via the `definition` "id".
|
|
242
|
+
*/
|
|
243
|
+
export type OrganizationIdentity = string;
|
|
229
244
|
/**
|
|
230
245
|
* This interface was referenced by `User`'s JSON-Schema
|
|
231
246
|
* via the `me.hrefSchema` link.
|
|
@@ -267,21 +282,6 @@ export type AuditLogEventType = 'audit_log_event';
|
|
|
267
282
|
* via the `definition` "id".
|
|
268
283
|
*/
|
|
269
284
|
export type AuditLogEventIdentity = string;
|
|
270
|
-
/**
|
|
271
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
272
|
-
* via the `definition` "type".
|
|
273
|
-
*/
|
|
274
|
-
export type OrganizationType = 'organization';
|
|
275
|
-
/**
|
|
276
|
-
* ID of organization
|
|
277
|
-
*
|
|
278
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
279
|
-
* via the `definition` "identity".
|
|
280
|
-
*
|
|
281
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
282
|
-
* via the `definition` "id".
|
|
283
|
-
*/
|
|
284
|
-
export type OrganizationIdentity = string;
|
|
285
285
|
/**
|
|
286
286
|
* This interface was referenced by `SitePlan`'s JSON-Schema
|
|
287
287
|
* via the `definition` "type".
|
|
@@ -2680,7 +2680,7 @@ export type UserSelfTargetSchema = {
|
|
|
2680
2680
|
* via the `me.targetSchema` link.
|
|
2681
2681
|
*/
|
|
2682
2682
|
export type UserMeTargetSchema = {
|
|
2683
|
-
data: User | SsoUser | AccessToken | Account;
|
|
2683
|
+
data: User | SsoUser | AccessToken | Account | Organization;
|
|
2684
2684
|
included?: Role[];
|
|
2685
2685
|
};
|
|
2686
2686
|
/**
|
|
@@ -3035,6 +3035,39 @@ export type AccountData = {
|
|
|
3035
3035
|
type: AccountType;
|
|
3036
3036
|
id: AccountIdentity;
|
|
3037
3037
|
};
|
|
3038
|
+
/**
|
|
3039
|
+
* DatoCMS organization
|
|
3040
|
+
*
|
|
3041
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3042
|
+
* via the `definition` "organization".
|
|
3043
|
+
*/
|
|
3044
|
+
export type Organization = {
|
|
3045
|
+
type: OrganizationType;
|
|
3046
|
+
id: OrganizationIdentity;
|
|
3047
|
+
attributes: OrganizationAttributes;
|
|
3048
|
+
};
|
|
3049
|
+
/**
|
|
3050
|
+
* JSON API attributes
|
|
3051
|
+
*
|
|
3052
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3053
|
+
* via the `definition` "attributes".
|
|
3054
|
+
*/
|
|
3055
|
+
export type OrganizationAttributes = {
|
|
3056
|
+
/**
|
|
3057
|
+
* Name of the organization
|
|
3058
|
+
*/
|
|
3059
|
+
name: string;
|
|
3060
|
+
};
|
|
3061
|
+
/**
|
|
3062
|
+
* JSON API data
|
|
3063
|
+
*
|
|
3064
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3065
|
+
* via the `definition` "data".
|
|
3066
|
+
*/
|
|
3067
|
+
export type OrganizationData = {
|
|
3068
|
+
type: OrganizationType;
|
|
3069
|
+
id: OrganizationIdentity;
|
|
3070
|
+
};
|
|
3038
3071
|
/**
|
|
3039
3072
|
* This interface was referenced by `User`'s JSON-Schema
|
|
3040
3073
|
* via the `destroy.targetSchema` link.
|
|
@@ -3205,39 +3238,6 @@ export type AuditLogEventQueryTargetSchema = {
|
|
|
3205
3238
|
next_token: null | string;
|
|
3206
3239
|
};
|
|
3207
3240
|
};
|
|
3208
|
-
/**
|
|
3209
|
-
* DatoCMS organization
|
|
3210
|
-
*
|
|
3211
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3212
|
-
* via the `definition` "organization".
|
|
3213
|
-
*/
|
|
3214
|
-
export type Organization = {
|
|
3215
|
-
type: OrganizationType;
|
|
3216
|
-
id: OrganizationIdentity;
|
|
3217
|
-
attributes: OrganizationAttributes;
|
|
3218
|
-
};
|
|
3219
|
-
/**
|
|
3220
|
-
* JSON API attributes
|
|
3221
|
-
*
|
|
3222
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3223
|
-
* via the `definition` "attributes".
|
|
3224
|
-
*/
|
|
3225
|
-
export type OrganizationAttributes = {
|
|
3226
|
-
/**
|
|
3227
|
-
* Name of the organization
|
|
3228
|
-
*/
|
|
3229
|
-
name: string;
|
|
3230
|
-
};
|
|
3231
|
-
/**
|
|
3232
|
-
* JSON API data
|
|
3233
|
-
*
|
|
3234
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3235
|
-
* via the `definition` "data".
|
|
3236
|
-
*/
|
|
3237
|
-
export type OrganizationData = {
|
|
3238
|
-
type: OrganizationType;
|
|
3239
|
-
id: OrganizationIdentity;
|
|
3240
|
-
};
|
|
3241
3241
|
/**
|
|
3242
3242
|
* Stores the information regarding the current plan for the project.
|
|
3243
3243
|
*
|
|
@@ -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;
|
|
@@ -65,7 +65,7 @@ export default class User extends BaseResource {
|
|
|
65
65
|
* @throws {ApiError}
|
|
66
66
|
* @throws {TimeoutError}
|
|
67
67
|
*/
|
|
68
|
-
findMe(queryParams?: ApiTypes.UserMeHrefSchema): Promise<ApiTypes.User | ApiTypes.SsoUser | ApiTypes.AccessToken | ApiTypes.Account>;
|
|
68
|
+
findMe(queryParams?: ApiTypes.UserMeHrefSchema): Promise<ApiTypes.User | ApiTypes.SsoUser | ApiTypes.AccessToken | ApiTypes.Account | ApiTypes.Organization>;
|
|
69
69
|
/**
|
|
70
70
|
* Retrieve current signed-in user
|
|
71
71
|
*
|
|
@@ -142,7 +142,7 @@ export type UserSelfHrefSchema = {
|
|
|
142
142
|
* This interface was referenced by `User`'s JSON-Schema
|
|
143
143
|
* via the `me.targetSchema` link.
|
|
144
144
|
*/
|
|
145
|
-
export type UserMeTargetSchema = User | SsoUser | AccessToken | Account;
|
|
145
|
+
export type UserMeTargetSchema = User | SsoUser | AccessToken | Account | Organization;
|
|
146
146
|
/**
|
|
147
147
|
* ID of user
|
|
148
148
|
*
|
|
@@ -248,6 +248,21 @@ export type AccountIdentity = string;
|
|
|
248
248
|
* via the `definition` "type".
|
|
249
249
|
*/
|
|
250
250
|
export type AccountType = 'account';
|
|
251
|
+
/**
|
|
252
|
+
* ID of organization
|
|
253
|
+
*
|
|
254
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
255
|
+
* via the `definition` "identity".
|
|
256
|
+
*
|
|
257
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
258
|
+
* via the `definition` "id".
|
|
259
|
+
*/
|
|
260
|
+
export type OrganizationIdentity = string;
|
|
261
|
+
/**
|
|
262
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
263
|
+
* via the `definition` "type".
|
|
264
|
+
*/
|
|
265
|
+
export type OrganizationType = 'organization';
|
|
251
266
|
/**
|
|
252
267
|
* This interface was referenced by `User`'s JSON-Schema
|
|
253
268
|
* via the `me.hrefSchema` link.
|
|
@@ -294,21 +309,6 @@ export type AuditLogEventType = 'audit_log_event';
|
|
|
294
309
|
* via the `query.targetSchema` link.
|
|
295
310
|
*/
|
|
296
311
|
export type AuditLogEventQueryTargetSchema = AuditLogEvent[];
|
|
297
|
-
/**
|
|
298
|
-
* ID of organization
|
|
299
|
-
*
|
|
300
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
301
|
-
* via the `definition` "identity".
|
|
302
|
-
*
|
|
303
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
304
|
-
* via the `definition` "id".
|
|
305
|
-
*/
|
|
306
|
-
export type OrganizationIdentity = string;
|
|
307
|
-
/**
|
|
308
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
309
|
-
* via the `definition` "type".
|
|
310
|
-
*/
|
|
311
|
-
export type OrganizationType = 'organization';
|
|
312
312
|
/**
|
|
313
313
|
* ID of plan
|
|
314
314
|
*
|
|
@@ -3466,6 +3466,42 @@ export type AccountAttributes = {
|
|
|
3466
3466
|
*/
|
|
3467
3467
|
company: string | null;
|
|
3468
3468
|
};
|
|
3469
|
+
/**
|
|
3470
|
+
* DatoCMS organization
|
|
3471
|
+
*
|
|
3472
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3473
|
+
* via the `definition` "organization".
|
|
3474
|
+
*/
|
|
3475
|
+
export type Organization = {
|
|
3476
|
+
id: OrganizationIdentity;
|
|
3477
|
+
type: OrganizationType;
|
|
3478
|
+
/**
|
|
3479
|
+
* Name of the organization
|
|
3480
|
+
*/
|
|
3481
|
+
name: string;
|
|
3482
|
+
};
|
|
3483
|
+
/**
|
|
3484
|
+
* JSON API data
|
|
3485
|
+
*
|
|
3486
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3487
|
+
* via the `definition` "data".
|
|
3488
|
+
*/
|
|
3489
|
+
export type OrganizationData = {
|
|
3490
|
+
type: OrganizationType;
|
|
3491
|
+
id: OrganizationIdentity;
|
|
3492
|
+
};
|
|
3493
|
+
/**
|
|
3494
|
+
* JSON API attributes
|
|
3495
|
+
*
|
|
3496
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3497
|
+
* via the `definition` "attributes".
|
|
3498
|
+
*/
|
|
3499
|
+
export type OrganizationAttributes = {
|
|
3500
|
+
/**
|
|
3501
|
+
* Name of the organization
|
|
3502
|
+
*/
|
|
3503
|
+
name: string;
|
|
3504
|
+
};
|
|
3469
3505
|
/**
|
|
3470
3506
|
* If the Audit log functionality is enabled in a project, logged events can be queried using SQL-like language and fetched in full detail so that they can be exported or analyzed.
|
|
3471
3507
|
*
|
|
@@ -3696,42 +3732,6 @@ export type AuditLogEventQuerySchema = {
|
|
|
3696
3732
|
*/
|
|
3697
3733
|
detailed_log?: boolean;
|
|
3698
3734
|
};
|
|
3699
|
-
/**
|
|
3700
|
-
* DatoCMS organization
|
|
3701
|
-
*
|
|
3702
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3703
|
-
* via the `definition` "organization".
|
|
3704
|
-
*/
|
|
3705
|
-
export type Organization = {
|
|
3706
|
-
id: OrganizationIdentity;
|
|
3707
|
-
type: OrganizationType;
|
|
3708
|
-
/**
|
|
3709
|
-
* Name of the organization
|
|
3710
|
-
*/
|
|
3711
|
-
name: string;
|
|
3712
|
-
};
|
|
3713
|
-
/**
|
|
3714
|
-
* JSON API data
|
|
3715
|
-
*
|
|
3716
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3717
|
-
* via the `definition` "data".
|
|
3718
|
-
*/
|
|
3719
|
-
export type OrganizationData = {
|
|
3720
|
-
type: OrganizationType;
|
|
3721
|
-
id: OrganizationIdentity;
|
|
3722
|
-
};
|
|
3723
|
-
/**
|
|
3724
|
-
* JSON API attributes
|
|
3725
|
-
*
|
|
3726
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3727
|
-
* via the `definition` "attributes".
|
|
3728
|
-
*/
|
|
3729
|
-
export type OrganizationAttributes = {
|
|
3730
|
-
/**
|
|
3731
|
-
* Name of the organization
|
|
3732
|
-
*/
|
|
3733
|
-
name: string;
|
|
3734
|
-
};
|
|
3735
3735
|
/**
|
|
3736
3736
|
* Stores the information regarding the current plan for the project.
|
|
3737
3737
|
*
|
|
@@ -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;
|
|
@@ -226,6 +226,21 @@ export type AccountType = 'account';
|
|
|
226
226
|
* via the `definition` "id".
|
|
227
227
|
*/
|
|
228
228
|
export type AccountIdentity = string;
|
|
229
|
+
/**
|
|
230
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
231
|
+
* via the `definition` "type".
|
|
232
|
+
*/
|
|
233
|
+
export type OrganizationType = 'organization';
|
|
234
|
+
/**
|
|
235
|
+
* ID of organization
|
|
236
|
+
*
|
|
237
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
238
|
+
* via the `definition` "identity".
|
|
239
|
+
*
|
|
240
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
241
|
+
* via the `definition` "id".
|
|
242
|
+
*/
|
|
243
|
+
export type OrganizationIdentity = string;
|
|
229
244
|
/**
|
|
230
245
|
* This interface was referenced by `User`'s JSON-Schema
|
|
231
246
|
* via the `me.hrefSchema` link.
|
|
@@ -267,21 +282,6 @@ export type AuditLogEventType = 'audit_log_event';
|
|
|
267
282
|
* via the `definition` "id".
|
|
268
283
|
*/
|
|
269
284
|
export type AuditLogEventIdentity = string;
|
|
270
|
-
/**
|
|
271
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
272
|
-
* via the `definition` "type".
|
|
273
|
-
*/
|
|
274
|
-
export type OrganizationType = 'organization';
|
|
275
|
-
/**
|
|
276
|
-
* ID of organization
|
|
277
|
-
*
|
|
278
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
279
|
-
* via the `definition` "identity".
|
|
280
|
-
*
|
|
281
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
282
|
-
* via the `definition` "id".
|
|
283
|
-
*/
|
|
284
|
-
export type OrganizationIdentity = string;
|
|
285
285
|
/**
|
|
286
286
|
* This interface was referenced by `SitePlan`'s JSON-Schema
|
|
287
287
|
* via the `definition` "type".
|
|
@@ -2680,7 +2680,7 @@ export type UserSelfTargetSchema = {
|
|
|
2680
2680
|
* via the `me.targetSchema` link.
|
|
2681
2681
|
*/
|
|
2682
2682
|
export type UserMeTargetSchema = {
|
|
2683
|
-
data: User | SsoUser | AccessToken | Account;
|
|
2683
|
+
data: User | SsoUser | AccessToken | Account | Organization;
|
|
2684
2684
|
included?: Role[];
|
|
2685
2685
|
};
|
|
2686
2686
|
/**
|
|
@@ -3035,6 +3035,39 @@ export type AccountData = {
|
|
|
3035
3035
|
type: AccountType;
|
|
3036
3036
|
id: AccountIdentity;
|
|
3037
3037
|
};
|
|
3038
|
+
/**
|
|
3039
|
+
* DatoCMS organization
|
|
3040
|
+
*
|
|
3041
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3042
|
+
* via the `definition` "organization".
|
|
3043
|
+
*/
|
|
3044
|
+
export type Organization = {
|
|
3045
|
+
type: OrganizationType;
|
|
3046
|
+
id: OrganizationIdentity;
|
|
3047
|
+
attributes: OrganizationAttributes;
|
|
3048
|
+
};
|
|
3049
|
+
/**
|
|
3050
|
+
* JSON API attributes
|
|
3051
|
+
*
|
|
3052
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3053
|
+
* via the `definition` "attributes".
|
|
3054
|
+
*/
|
|
3055
|
+
export type OrganizationAttributes = {
|
|
3056
|
+
/**
|
|
3057
|
+
* Name of the organization
|
|
3058
|
+
*/
|
|
3059
|
+
name: string;
|
|
3060
|
+
};
|
|
3061
|
+
/**
|
|
3062
|
+
* JSON API data
|
|
3063
|
+
*
|
|
3064
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3065
|
+
* via the `definition` "data".
|
|
3066
|
+
*/
|
|
3067
|
+
export type OrganizationData = {
|
|
3068
|
+
type: OrganizationType;
|
|
3069
|
+
id: OrganizationIdentity;
|
|
3070
|
+
};
|
|
3038
3071
|
/**
|
|
3039
3072
|
* This interface was referenced by `User`'s JSON-Schema
|
|
3040
3073
|
* via the `destroy.targetSchema` link.
|
|
@@ -3205,39 +3238,6 @@ export type AuditLogEventQueryTargetSchema = {
|
|
|
3205
3238
|
next_token: null | string;
|
|
3206
3239
|
};
|
|
3207
3240
|
};
|
|
3208
|
-
/**
|
|
3209
|
-
* DatoCMS organization
|
|
3210
|
-
*
|
|
3211
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3212
|
-
* via the `definition` "organization".
|
|
3213
|
-
*/
|
|
3214
|
-
export type Organization = {
|
|
3215
|
-
type: OrganizationType;
|
|
3216
|
-
id: OrganizationIdentity;
|
|
3217
|
-
attributes: OrganizationAttributes;
|
|
3218
|
-
};
|
|
3219
|
-
/**
|
|
3220
|
-
* JSON API attributes
|
|
3221
|
-
*
|
|
3222
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3223
|
-
* via the `definition` "attributes".
|
|
3224
|
-
*/
|
|
3225
|
-
export type OrganizationAttributes = {
|
|
3226
|
-
/**
|
|
3227
|
-
* Name of the organization
|
|
3228
|
-
*/
|
|
3229
|
-
name: string;
|
|
3230
|
-
};
|
|
3231
|
-
/**
|
|
3232
|
-
* JSON API data
|
|
3233
|
-
*
|
|
3234
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3235
|
-
* via the `definition` "data".
|
|
3236
|
-
*/
|
|
3237
|
-
export type OrganizationData = {
|
|
3238
|
-
type: OrganizationType;
|
|
3239
|
-
id: OrganizationIdentity;
|
|
3240
|
-
};
|
|
3241
3241
|
/**
|
|
3242
3242
|
* Stores the information regarding the current plan for the project.
|
|
3243
3243
|
*
|
|
@@ -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;
|
|
@@ -65,7 +65,7 @@ export default class User extends BaseResource {
|
|
|
65
65
|
* @throws {ApiError}
|
|
66
66
|
* @throws {TimeoutError}
|
|
67
67
|
*/
|
|
68
|
-
findMe(queryParams?: ApiTypes.UserMeHrefSchema): Promise<ApiTypes.User | ApiTypes.SsoUser | ApiTypes.AccessToken | ApiTypes.Account>;
|
|
68
|
+
findMe(queryParams?: ApiTypes.UserMeHrefSchema): Promise<ApiTypes.User | ApiTypes.SsoUser | ApiTypes.AccessToken | ApiTypes.Account | ApiTypes.Organization>;
|
|
69
69
|
/**
|
|
70
70
|
* Retrieve current signed-in user
|
|
71
71
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.9",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"url": "https://github.com/datocms/js-rest-api-clients/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@datocms/rest-client-utils": "^5.2.
|
|
40
|
+
"@datocms/rest-client-utils": "^5.2.8",
|
|
41
41
|
"datocms-structured-text-utils": "^5.1.4",
|
|
42
42
|
"uuid": "^9.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@datocms/dashboard-client": "^5.2.
|
|
45
|
+
"@datocms/dashboard-client": "^5.2.9",
|
|
46
46
|
"@types/uuid": "^9.0.7"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "dc1ad4188e2209df4ff0fead429dd7df394bc959"
|
|
49
49
|
}
|
|
@@ -176,7 +176,12 @@ export type UserSelfHrefSchema = {
|
|
|
176
176
|
* This interface was referenced by `User`'s JSON-Schema
|
|
177
177
|
* via the `me.targetSchema` link.
|
|
178
178
|
*/
|
|
179
|
-
export type UserMeTargetSchema =
|
|
179
|
+
export type UserMeTargetSchema =
|
|
180
|
+
| User
|
|
181
|
+
| SsoUser
|
|
182
|
+
| AccessToken
|
|
183
|
+
| Account
|
|
184
|
+
| Organization;
|
|
180
185
|
/**
|
|
181
186
|
* ID of user
|
|
182
187
|
*
|
|
@@ -282,6 +287,21 @@ export type AccountIdentity = string;
|
|
|
282
287
|
* via the `definition` "type".
|
|
283
288
|
*/
|
|
284
289
|
export type AccountType = 'account';
|
|
290
|
+
/**
|
|
291
|
+
* ID of organization
|
|
292
|
+
*
|
|
293
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
294
|
+
* via the `definition` "identity".
|
|
295
|
+
*
|
|
296
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
297
|
+
* via the `definition` "id".
|
|
298
|
+
*/
|
|
299
|
+
export type OrganizationIdentity = string;
|
|
300
|
+
/**
|
|
301
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
302
|
+
* via the `definition` "type".
|
|
303
|
+
*/
|
|
304
|
+
export type OrganizationType = 'organization';
|
|
285
305
|
/**
|
|
286
306
|
* This interface was referenced by `User`'s JSON-Schema
|
|
287
307
|
* via the `me.hrefSchema` link.
|
|
@@ -328,21 +348,6 @@ export type AuditLogEventType = 'audit_log_event';
|
|
|
328
348
|
* via the `query.targetSchema` link.
|
|
329
349
|
*/
|
|
330
350
|
export type AuditLogEventQueryTargetSchema = AuditLogEvent[];
|
|
331
|
-
/**
|
|
332
|
-
* ID of organization
|
|
333
|
-
*
|
|
334
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
335
|
-
* via the `definition` "identity".
|
|
336
|
-
*
|
|
337
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
338
|
-
* via the `definition` "id".
|
|
339
|
-
*/
|
|
340
|
-
export type OrganizationIdentity = string;
|
|
341
|
-
/**
|
|
342
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
343
|
-
* via the `definition` "type".
|
|
344
|
-
*/
|
|
345
|
-
export type OrganizationType = 'organization';
|
|
346
351
|
/**
|
|
347
352
|
* ID of plan
|
|
348
353
|
*
|
|
@@ -3801,6 +3806,42 @@ export type AccountAttributes = {
|
|
|
3801
3806
|
*/
|
|
3802
3807
|
company: string | null;
|
|
3803
3808
|
};
|
|
3809
|
+
/**
|
|
3810
|
+
* DatoCMS organization
|
|
3811
|
+
*
|
|
3812
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3813
|
+
* via the `definition` "organization".
|
|
3814
|
+
*/
|
|
3815
|
+
export type Organization = {
|
|
3816
|
+
id: OrganizationIdentity;
|
|
3817
|
+
type: OrganizationType;
|
|
3818
|
+
/**
|
|
3819
|
+
* Name of the organization
|
|
3820
|
+
*/
|
|
3821
|
+
name: string;
|
|
3822
|
+
};
|
|
3823
|
+
/**
|
|
3824
|
+
* JSON API data
|
|
3825
|
+
*
|
|
3826
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3827
|
+
* via the `definition` "data".
|
|
3828
|
+
*/
|
|
3829
|
+
export type OrganizationData = {
|
|
3830
|
+
type: OrganizationType;
|
|
3831
|
+
id: OrganizationIdentity;
|
|
3832
|
+
};
|
|
3833
|
+
/**
|
|
3834
|
+
* JSON API attributes
|
|
3835
|
+
*
|
|
3836
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3837
|
+
* via the `definition` "attributes".
|
|
3838
|
+
*/
|
|
3839
|
+
export type OrganizationAttributes = {
|
|
3840
|
+
/**
|
|
3841
|
+
* Name of the organization
|
|
3842
|
+
*/
|
|
3843
|
+
name: string;
|
|
3844
|
+
};
|
|
3804
3845
|
/**
|
|
3805
3846
|
* If the Audit log functionality is enabled in a project, logged events can be queried using SQL-like language and fetched in full detail so that they can be exported or analyzed.
|
|
3806
3847
|
*
|
|
@@ -4031,42 +4072,6 @@ export type AuditLogEventQuerySchema = {
|
|
|
4031
4072
|
*/
|
|
4032
4073
|
detailed_log?: boolean;
|
|
4033
4074
|
};
|
|
4034
|
-
/**
|
|
4035
|
-
* DatoCMS organization
|
|
4036
|
-
*
|
|
4037
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
4038
|
-
* via the `definition` "organization".
|
|
4039
|
-
*/
|
|
4040
|
-
export type Organization = {
|
|
4041
|
-
id: OrganizationIdentity;
|
|
4042
|
-
type: OrganizationType;
|
|
4043
|
-
/**
|
|
4044
|
-
* Name of the organization
|
|
4045
|
-
*/
|
|
4046
|
-
name: string;
|
|
4047
|
-
};
|
|
4048
|
-
/**
|
|
4049
|
-
* JSON API data
|
|
4050
|
-
*
|
|
4051
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
4052
|
-
* via the `definition` "data".
|
|
4053
|
-
*/
|
|
4054
|
-
export type OrganizationData = {
|
|
4055
|
-
type: OrganizationType;
|
|
4056
|
-
id: OrganizationIdentity;
|
|
4057
|
-
};
|
|
4058
|
-
/**
|
|
4059
|
-
* JSON API attributes
|
|
4060
|
-
*
|
|
4061
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
4062
|
-
* via the `definition` "attributes".
|
|
4063
|
-
*/
|
|
4064
|
-
export type OrganizationAttributes = {
|
|
4065
|
-
/**
|
|
4066
|
-
* Name of the organization
|
|
4067
|
-
*/
|
|
4068
|
-
name: string;
|
|
4069
|
-
};
|
|
4070
4075
|
/**
|
|
4071
4076
|
* Stores the information regarding the current plan for the project.
|
|
4072
4077
|
*
|
|
@@ -4136,6 +4141,14 @@ export type SitePlan = {
|
|
|
4136
4141
|
* The number of requests made to both our Content Management and Content Delivery APIs
|
|
4137
4142
|
*/
|
|
4138
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;
|
|
4139
4152
|
/**
|
|
4140
4153
|
* The number of streaming seconds delivered by Mux.com
|
|
4141
4154
|
*/
|
|
@@ -4301,6 +4314,14 @@ export type SitePlan = {
|
|
|
4301
4314
|
amount_per_packet: number;
|
|
4302
4315
|
price: number;
|
|
4303
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
|
+
};
|
|
4304
4325
|
mux_streaming_seconds?: {
|
|
4305
4326
|
amount_per_packet: number;
|
|
4306
4327
|
price: number;
|
|
@@ -4384,6 +4405,14 @@ export type SitePlanAttributes = {
|
|
|
4384
4405
|
* The number of requests made to both our Content Management and Content Delivery APIs
|
|
4385
4406
|
*/
|
|
4386
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;
|
|
4387
4416
|
/**
|
|
4388
4417
|
* The number of streaming seconds delivered by Mux.com
|
|
4389
4418
|
*/
|
|
@@ -4549,6 +4578,14 @@ export type SitePlanAttributes = {
|
|
|
4549
4578
|
amount_per_packet: number;
|
|
4550
4579
|
price: number;
|
|
4551
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
|
+
};
|
|
4552
4589
|
mux_streaming_seconds?: {
|
|
4553
4590
|
amount_per_packet: number;
|
|
4554
4591
|
price: number;
|
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',
|
|
154
|
+
userAgent: '@datocms/cma-client v5.2.9',
|
|
155
155
|
baseUrl: this.baseUrl,
|
|
156
156
|
preCallStack: new Error().stack,
|
|
157
157
|
extraHeaders: {
|
|
@@ -254,6 +254,21 @@ export type AccountType = 'account';
|
|
|
254
254
|
* via the `definition` "id".
|
|
255
255
|
*/
|
|
256
256
|
export type AccountIdentity = string;
|
|
257
|
+
/**
|
|
258
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
259
|
+
* via the `definition` "type".
|
|
260
|
+
*/
|
|
261
|
+
export type OrganizationType = 'organization';
|
|
262
|
+
/**
|
|
263
|
+
* ID of organization
|
|
264
|
+
*
|
|
265
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
266
|
+
* via the `definition` "identity".
|
|
267
|
+
*
|
|
268
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
269
|
+
* via the `definition` "id".
|
|
270
|
+
*/
|
|
271
|
+
export type OrganizationIdentity = string;
|
|
257
272
|
/**
|
|
258
273
|
* This interface was referenced by `User`'s JSON-Schema
|
|
259
274
|
* via the `me.hrefSchema` link.
|
|
@@ -295,21 +310,6 @@ export type AuditLogEventType = 'audit_log_event';
|
|
|
295
310
|
* via the `definition` "id".
|
|
296
311
|
*/
|
|
297
312
|
export type AuditLogEventIdentity = string;
|
|
298
|
-
/**
|
|
299
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
300
|
-
* via the `definition` "type".
|
|
301
|
-
*/
|
|
302
|
-
export type OrganizationType = 'organization';
|
|
303
|
-
/**
|
|
304
|
-
* ID of organization
|
|
305
|
-
*
|
|
306
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
307
|
-
* via the `definition` "identity".
|
|
308
|
-
*
|
|
309
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
310
|
-
* via the `definition` "id".
|
|
311
|
-
*/
|
|
312
|
-
export type OrganizationIdentity = string;
|
|
313
313
|
/**
|
|
314
314
|
* This interface was referenced by `SitePlan`'s JSON-Schema
|
|
315
315
|
* via the `definition` "type".
|
|
@@ -2922,7 +2922,7 @@ export type UserSelfTargetSchema = {
|
|
|
2922
2922
|
* via the `me.targetSchema` link.
|
|
2923
2923
|
*/
|
|
2924
2924
|
export type UserMeTargetSchema = {
|
|
2925
|
-
data: User | SsoUser | AccessToken | Account;
|
|
2925
|
+
data: User | SsoUser | AccessToken | Account | Organization;
|
|
2926
2926
|
included?: Role[];
|
|
2927
2927
|
};
|
|
2928
2928
|
/**
|
|
@@ -3291,6 +3291,39 @@ export type AccountData = {
|
|
|
3291
3291
|
type: AccountType;
|
|
3292
3292
|
id: AccountIdentity;
|
|
3293
3293
|
};
|
|
3294
|
+
/**
|
|
3295
|
+
* DatoCMS organization
|
|
3296
|
+
*
|
|
3297
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3298
|
+
* via the `definition` "organization".
|
|
3299
|
+
*/
|
|
3300
|
+
export type Organization = {
|
|
3301
|
+
type: OrganizationType;
|
|
3302
|
+
id: OrganizationIdentity;
|
|
3303
|
+
attributes: OrganizationAttributes;
|
|
3304
|
+
};
|
|
3305
|
+
/**
|
|
3306
|
+
* JSON API attributes
|
|
3307
|
+
*
|
|
3308
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3309
|
+
* via the `definition` "attributes".
|
|
3310
|
+
*/
|
|
3311
|
+
export type OrganizationAttributes = {
|
|
3312
|
+
/**
|
|
3313
|
+
* Name of the organization
|
|
3314
|
+
*/
|
|
3315
|
+
name: string;
|
|
3316
|
+
};
|
|
3317
|
+
/**
|
|
3318
|
+
* JSON API data
|
|
3319
|
+
*
|
|
3320
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3321
|
+
* via the `definition` "data".
|
|
3322
|
+
*/
|
|
3323
|
+
export type OrganizationData = {
|
|
3324
|
+
type: OrganizationType;
|
|
3325
|
+
id: OrganizationIdentity;
|
|
3326
|
+
};
|
|
3294
3327
|
/**
|
|
3295
3328
|
* This interface was referenced by `User`'s JSON-Schema
|
|
3296
3329
|
* via the `destroy.targetSchema` link.
|
|
@@ -3461,39 +3494,6 @@ export type AuditLogEventQueryTargetSchema = {
|
|
|
3461
3494
|
next_token: null | string;
|
|
3462
3495
|
};
|
|
3463
3496
|
};
|
|
3464
|
-
/**
|
|
3465
|
-
* DatoCMS organization
|
|
3466
|
-
*
|
|
3467
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3468
|
-
* via the `definition` "organization".
|
|
3469
|
-
*/
|
|
3470
|
-
export type Organization = {
|
|
3471
|
-
type: OrganizationType;
|
|
3472
|
-
id: OrganizationIdentity;
|
|
3473
|
-
attributes: OrganizationAttributes;
|
|
3474
|
-
};
|
|
3475
|
-
/**
|
|
3476
|
-
* JSON API attributes
|
|
3477
|
-
*
|
|
3478
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3479
|
-
* via the `definition` "attributes".
|
|
3480
|
-
*/
|
|
3481
|
-
export type OrganizationAttributes = {
|
|
3482
|
-
/**
|
|
3483
|
-
* Name of the organization
|
|
3484
|
-
*/
|
|
3485
|
-
name: string;
|
|
3486
|
-
};
|
|
3487
|
-
/**
|
|
3488
|
-
* JSON API data
|
|
3489
|
-
*
|
|
3490
|
-
* This interface was referenced by `Organization`'s JSON-Schema
|
|
3491
|
-
* via the `definition` "data".
|
|
3492
|
-
*/
|
|
3493
|
-
export type OrganizationData = {
|
|
3494
|
-
type: OrganizationType;
|
|
3495
|
-
id: OrganizationIdentity;
|
|
3496
|
-
};
|
|
3497
3497
|
/**
|
|
3498
3498
|
* Stores the information regarding the current plan for the project.
|
|
3499
3499
|
*
|
|
@@ -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;
|