4dae1569cd
* list invites table * invites list works * update last reminded date on resend * fix FE * WIP invitedialog + updated debounced utility * invite create works * exclude users correctly * more adjustments * minor cleanup * using workspace invite server role * test fix * fixed multiple root eslint issues * minor adjustments
34 lines
735 B
TypeScript
34 lines
735 B
TypeScript
import { graphql } from '~~/lib/common/generated/gql'
|
|
|
|
export const workspaceUpdateRoleMutation = graphql(`
|
|
mutation UpdateRole($input: WorkspaceRoleUpdateInput!) {
|
|
workspaceMutations {
|
|
updateRole(input: $input) {
|
|
id
|
|
team {
|
|
id
|
|
role
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const inviteToWorkspaceMutation = graphql(`
|
|
mutation InviteToWorkspace(
|
|
$workspaceId: String!
|
|
$input: [WorkspaceInviteCreateInput!]!
|
|
) {
|
|
workspaceMutations {
|
|
invites {
|
|
batchCreate(workspaceId: $workspaceId, input: $input) {
|
|
id
|
|
invitedTeam {
|
|
...SettingsWorkspacesMembersInvitesTable_PendingWorkspaceCollaborator
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|