0b2ca9a515
* WIP version create * commitCreate migrated * minor cleanup * commitReceived migrated * added Project.object * Project.comment introduced * moving away old API usages in FE1 * ProjectMutations.batchDelete * project pending access requests * WIP project access req tests * project access req tests done * ModelByName test * version mutation tests * project.object tests * batch delete tests * minor improvements to redirect logging
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import { graphql } from '~~/lib/common/generated/gql'
|
|
|
|
export const serverInfoUpdateMutation = graphql(`
|
|
mutation ServerInfoUpdate($info: ServerInfoUpdateInput!) {
|
|
serverInfoUpdate(info: $info)
|
|
}
|
|
`)
|
|
|
|
export const adminDeleteUserMutation = graphql(`
|
|
mutation AdminPanelDeleteUser($userConfirmation: UserDeleteInput!) {
|
|
adminDeleteUser(userConfirmation: $userConfirmation)
|
|
}
|
|
`)
|
|
|
|
export const adminDeleteProjectMutation = graphql(`
|
|
mutation AdminPanelDeleteProject($ids: [String!]!) {
|
|
projectMutations {
|
|
batchDelete(ids: $ids)
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const adminResendInviteMutation = graphql(`
|
|
mutation AdminPanelResendInvite($inviteId: String!) {
|
|
inviteResend(inviteId: $inviteId)
|
|
}
|
|
`)
|
|
|
|
export const adminDeleteInviteMutation = graphql(`
|
|
mutation AdminPanelDeleteInvite($inviteId: String!) {
|
|
inviteDelete(inviteId: $inviteId)
|
|
}
|
|
`)
|
|
|
|
export const changeRoleMutation = graphql(`
|
|
mutation AdminChangeUseRole($userRoleInput: UserRoleInput!) {
|
|
userRoleChange(userRoleInput: $userRoleInput)
|
|
}
|
|
`)
|