feat: add verify process in change email progress (#4306)

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
Qi
2023-09-14 00:54:02 +08:00
committed by GitHub
parent 0b1ba6bf43
commit 0be142e4e2
19 changed files with 443 additions and 81 deletions

View File

@@ -1,5 +1,5 @@
mutation changeEmail($token: String!, $newEmail: String!) {
changeEmail(token: $token, email: $newEmail) {
mutation changeEmail($token: String!) {
changeEmail(token: $token) {
id
name
avatarUrl

View File

@@ -85,8 +85,8 @@ export const changeEmailMutation = {
definitionName: 'changeEmail',
containsFile: false,
query: `
mutation changeEmail($token: String!, $newEmail: String!) {
changeEmail(token: $token, email: $newEmail) {
mutation changeEmail($token: String!) {
changeEmail(token: $token) {
id
name
avatarUrl
@@ -391,6 +391,17 @@ mutation sendSetPasswordEmail($email: String!, $callbackUrl: String!) {
}`,
};
export const sendVerifyChangeEmailMutation = {
id: 'sendVerifyChangeEmailMutation' as const,
operationName: 'sendVerifyChangeEmail',
definitionName: 'sendVerifyChangeEmail',
containsFile: false,
query: `
mutation sendVerifyChangeEmail($token: String!, $email: String!, $callbackUrl: String!) {
sendVerifyChangeEmail(token: $token, email: $email, callbackUrl: $callbackUrl)
}`,
};
export const setRevokePageMutation = {
id: 'setRevokePageMutation' as const,
operationName: 'setRevokePage',

View File

@@ -0,0 +1,7 @@
mutation sendVerifyChangeEmail(
$token: String!
$email: String!
$callbackUrl: String!
) {
sendVerifyChangeEmail(token: $token, email: $email, callbackUrl: $callbackUrl)
}

View File

@@ -101,7 +101,6 @@ export type AllBlobSizesQuery = {
export type ChangeEmailMutationVariables = Exact<{
token: Scalars['String']['input'];
newEmail: Scalars['String']['input'];
}>;
export type ChangeEmailMutation = {
@@ -359,6 +358,17 @@ export type SendSetPasswordEmailMutation = {
sendSetPasswordEmail: boolean;
};
export type SendVerifyChangeEmailMutationVariables = Exact<{
token: Scalars['String']['input'];
email: Scalars['String']['input'];
callbackUrl: Scalars['String']['input'];
}>;
export type SendVerifyChangeEmailMutation = {
__typename?: 'Mutation';
sendVerifyChangeEmail: boolean;
};
export type SetRevokePageMutationVariables = Exact<{
workspaceId: Scalars['String']['input'];
pageId: Scalars['String']['input'];
@@ -611,6 +621,11 @@ export type Mutations =
variables: SendSetPasswordEmailMutationVariables;
response: SendSetPasswordEmailMutation;
}
| {
name: 'sendVerifyChangeEmailMutation';
variables: SendVerifyChangeEmailMutationVariables;
response: SendVerifyChangeEmailMutation;
}
| {
name: 'setRevokePageMutation';
variables: SetRevokePageMutationVariables;