mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
feat: add verify process in change email progress (#4306)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
mutation sendVerifyChangeEmail(
|
||||
$token: String!
|
||||
$email: String!
|
||||
$callbackUrl: String!
|
||||
) {
|
||||
sendVerifyChangeEmail(token: $token, email: $email, callbackUrl: $callbackUrl)
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user