Skip to content

Commit c8857f1

Browse files
committed
Update schema
1 parent dc1ad41 commit c8857f1

4 files changed

Lines changed: 16 additions & 4 deletions

File tree

packages/dashboard-client/resources.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
"optionalRequestBody": false,
240240
"requestStructure": {
241241
"type": "account",
242-
"attributes": ["token"],
242+
"attributes": ["token", "account_id"],
243243
"relationships": []
244244
},
245245
"queryParamsRequired": false,

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,9 @@ export type TfaDeactivateRequestInstancesTargetSchema = TfaDeactivateRequest[];
872872
* This interface was referenced by `Account`'s JSON-Schema
873873
* via the `activate_2fa.targetSchema` link.
874874
*
875+
* This interface was referenced by `Account`'s JSON-Schema
876+
* via the `confirm_email_change.targetSchema` link.
877+
*
875878
* This interface was referenced by `DatoApi`'s JSON-Schema
876879
* via the `definition` "session".
877880
*/
@@ -884,6 +887,7 @@ export type SessionCreateTargetSchema = Session;
884887
export type AccountCreateTargetSchema = Session;
885888
export type AccountUpdateTargetSchema = Session;
886889
export type AccountActivate_2FaTargetSchema = Session;
890+
export type AccountConfirmEmailChangeTargetSchema = Session;
887891
/**
888892
* JSON API data
889893
*
@@ -957,7 +961,6 @@ export type Account = {
957961
export type AccountDestroyJobSchema = Account;
958962
export type AccountSelfTargetSchema = Account;
959963
export type AccountDeactivate_2FaTargetSchema = Account;
960-
export type AccountConfirmEmailChangeTargetSchema = Account;
961964
/**
962965
* JSON API data
963966
*
@@ -1366,6 +1369,10 @@ export type AccountConfirmEmailChangeSchema = {
13661369
* Email confirmation token
13671370
*/
13681371
token: string;
1372+
/**
1373+
* Account ID
1374+
*/
1375+
account_id: string;
13691376
};
13701377
/**
13711378
* A project represents a specific DatoCMS administrative area

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,10 @@ export type AccountConfirmEmailChangeSchema = {
21982198
* Email confirmation token
21992199
*/
22002200
token: string;
2201+
/**
2202+
* Account ID
2203+
*/
2204+
account_id: string;
22012205
};
22022206
};
22032207
};
@@ -2206,7 +2210,8 @@ export type AccountConfirmEmailChangeSchema = {
22062210
* via the `confirm_email_change.targetSchema` link.
22072211
*/
22082212
export type AccountConfirmEmailChangeTargetSchema = {
2209-
data: Account;
2213+
data: Session;
2214+
included: Account[];
22102215
};
22112216
/**
22122217
* A per-project subscription record

packages/dashboard-client/src/generated/resources/Account.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export default class Account extends BaseResource {
342342
body,
343343
{
344344
type: 'account',
345-
attributes: ['token'],
345+
attributes: ['token', 'account_id'],
346346
relationships: [],
347347
},
348348
),

0 commit comments

Comments
 (0)