Skip to content

Commit 01150b6

Browse files
committed
Update schema
1 parent c51b4a3 commit 01150b6

4 files changed

Lines changed: 208 additions & 101 deletions

File tree

packages/cma-client/src/generated/ApiTypes.ts

Lines changed: 89 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,12 @@ export type UserSelfHrefSchema = {
176176
* This interface was referenced by `User`'s JSON-Schema
177177
* via the `me.targetSchema` link.
178178
*/
179-
export type UserMeTargetSchema = User | SsoUser | AccessToken | Account;
179+
export type UserMeTargetSchema =
180+
| User
181+
| SsoUser
182+
| AccessToken
183+
| Account
184+
| Organization;
180185
/**
181186
* ID of user
182187
*
@@ -282,6 +287,21 @@ export type AccountIdentity = string;
282287
* via the `definition` "type".
283288
*/
284289
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';
285305
/**
286306
* This interface was referenced by `User`'s JSON-Schema
287307
* via the `me.hrefSchema` link.
@@ -328,21 +348,6 @@ export type AuditLogEventType = 'audit_log_event';
328348
* via the `query.targetSchema` link.
329349
*/
330350
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';
346351
/**
347352
* ID of plan
348353
*
@@ -3801,6 +3806,42 @@ export type AccountAttributes = {
38013806
*/
38023807
company: string | null;
38033808
};
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+
};
38043845
/**
38053846
* 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.
38063847
*
@@ -4031,42 +4072,6 @@ export type AuditLogEventQuerySchema = {
40314072
*/
40324073
detailed_log?: boolean;
40334074
};
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-
};
40704075
/**
40714076
* Stores the information regarding the current plan for the project.
40724077
*
@@ -4136,6 +4141,14 @@ export type SitePlan = {
41364141
* The number of requests made to both our Content Management and Content Delivery APIs
41374142
*/
41384143
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;
41394152
/**
41404153
* The number of streaming seconds delivered by Mux.com
41414154
*/
@@ -4301,6 +4314,14 @@ export type SitePlan = {
43014314
amount_per_packet: number;
43024315
price: number;
43034316
};
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+
};
43044325
mux_streaming_seconds?: {
43054326
amount_per_packet: number;
43064327
price: number;
@@ -4384,6 +4405,14 @@ export type SitePlanAttributes = {
43844405
* The number of requests made to both our Content Management and Content Delivery APIs
43854406
*/
43864407
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;
43874416
/**
43884417
* The number of streaming seconds delivered by Mux.com
43894418
*/
@@ -4549,6 +4578,14 @@ export type SitePlanAttributes = {
45494578
amount_per_packet: number;
45504579
price: number;
45514580
};
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+
};
45524589
mux_streaming_seconds?: {
45534590
amount_per_packet: number;
45544591
price: number;

packages/cma-client/src/generated/RawApiTypes.ts

Lines changed: 65 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,21 @@ export type AccountType = 'account';
254254
* via the `definition` "id".
255255
*/
256256
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;
257272
/**
258273
* This interface was referenced by `User`'s JSON-Schema
259274
* via the `me.hrefSchema` link.
@@ -295,21 +310,6 @@ export type AuditLogEventType = 'audit_log_event';
295310
* via the `definition` "id".
296311
*/
297312
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;
313313
/**
314314
* This interface was referenced by `SitePlan`'s JSON-Schema
315315
* via the `definition` "type".
@@ -2922,7 +2922,7 @@ export type UserSelfTargetSchema = {
29222922
* via the `me.targetSchema` link.
29232923
*/
29242924
export type UserMeTargetSchema = {
2925-
data: User | SsoUser | AccessToken | Account;
2925+
data: User | SsoUser | AccessToken | Account | Organization;
29262926
included?: Role[];
29272927
};
29282928
/**
@@ -3291,6 +3291,39 @@ export type AccountData = {
32913291
type: AccountType;
32923292
id: AccountIdentity;
32933293
};
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+
};
32943327
/**
32953328
* This interface was referenced by `User`'s JSON-Schema
32963329
* via the `destroy.targetSchema` link.
@@ -3461,39 +3494,6 @@ export type AuditLogEventQueryTargetSchema = {
34613494
next_token: null | string;
34623495
};
34633496
};
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-
};
34973497
/**
34983498
* Stores the information regarding the current plan for the project.
34993499
*
@@ -3572,6 +3572,14 @@ export type SitePlanAttributes = {
35723572
* The number of requests made to both our Content Management and Content Delivery APIs
35733573
*/
35743574
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;
35753583
/**
35763584
* The number of streaming seconds delivered by Mux.com
35773585
*/
@@ -3737,6 +3745,14 @@ export type SitePlanAttributes = {
37373745
amount_per_packet: number;
37383746
price: number;
37393747
};
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+
};
37403756
mux_streaming_seconds?: {
37413757
amount_per_packet: number;
37423758
price: number;

0 commit comments

Comments
 (0)