mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat: send email to owner after member accepted invitation / leave workspace (#4152)
Co-authored-by: DarkSky <darksky2048@gmail.com>
This commit is contained in:
@@ -301,8 +301,12 @@ export const leaveWorkspaceMutation = {
|
||||
definitionName: 'leaveWorkspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation leaveWorkspace($workspaceId: String!) {
|
||||
leaveWorkspace(workspaceId: $workspaceId)
|
||||
mutation leaveWorkspace($workspaceId: String!, $workspaceName: String!, $sendLeaveMail: Boolean) {
|
||||
leaveWorkspace(
|
||||
workspaceId: $workspaceId
|
||||
workspaceName: $workspaceName
|
||||
sendLeaveMail: $sendLeaveMail
|
||||
)
|
||||
}`,
|
||||
};
|
||||
|
||||
@@ -475,8 +479,12 @@ export const acceptInviteByInviteIdMutation = {
|
||||
definitionName: 'acceptInviteById',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation acceptInviteByInviteId($workspaceId: String!, $inviteId: String!) {
|
||||
acceptInviteById(workspaceId: $workspaceId, inviteId: $inviteId)
|
||||
mutation acceptInviteByInviteId($workspaceId: String!, $inviteId: String!, $sendAcceptMail: Boolean) {
|
||||
acceptInviteById(
|
||||
workspaceId: $workspaceId
|
||||
inviteId: $inviteId
|
||||
sendAcceptMail: $sendAcceptMail
|
||||
)
|
||||
}`,
|
||||
};
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
mutation leaveWorkspace($workspaceId: String!) {
|
||||
leaveWorkspace(workspaceId: $workspaceId)
|
||||
mutation leaveWorkspace(
|
||||
$workspaceId: String!
|
||||
$workspaceName: String!
|
||||
$sendLeaveMail: Boolean
|
||||
) {
|
||||
leaveWorkspace(
|
||||
workspaceId: $workspaceId
|
||||
workspaceName: $workspaceName
|
||||
sendLeaveMail: $sendLeaveMail
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
mutation acceptInviteByInviteId($workspaceId: String!, $inviteId: String!) {
|
||||
acceptInviteById(workspaceId: $workspaceId, inviteId: $inviteId)
|
||||
mutation acceptInviteByInviteId(
|
||||
$workspaceId: String!
|
||||
$inviteId: String!
|
||||
$sendAcceptMail: Boolean
|
||||
) {
|
||||
acceptInviteById(
|
||||
workspaceId: $workspaceId
|
||||
inviteId: $inviteId
|
||||
sendAcceptMail: $sendAcceptMail
|
||||
)
|
||||
}
|
||||
|
||||
@@ -279,6 +279,8 @@ export type GetWorkspacesQuery = {
|
||||
|
||||
export type LeaveWorkspaceMutationVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
workspaceName: Scalars['String']['input'];
|
||||
sendLeaveMail: InputMaybe<Scalars['Boolean']['input']>;
|
||||
}>;
|
||||
|
||||
export type LeaveWorkspaceMutation = {
|
||||
@@ -428,6 +430,7 @@ export type InviteByEmailMutation = { __typename?: 'Mutation'; invite: string };
|
||||
export type AcceptInviteByInviteIdMutationVariables = Exact<{
|
||||
workspaceId: Scalars['String']['input'];
|
||||
inviteId: Scalars['String']['input'];
|
||||
sendAcceptMail: InputMaybe<Scalars['Boolean']['input']>;
|
||||
}>;
|
||||
|
||||
export type AcceptInviteByInviteIdMutation = {
|
||||
|
||||
Reference in New Issue
Block a user