6af6c656a4
* WIP * new permissions table * permissions grouped * updated scope descriptions * more scope copy adjustments * allow auth error handling * manually closable toast notification * fixed mentions rendering * error view * not you? feature * cleanup * minor styling changes * WIP table * finished authorized apps table * minor cleanup * cleaning up comment * testing changes
38 lines
895 B
TypeScript
38 lines
895 B
TypeScript
import { graphql } from '~~/lib/common/generated/gql'
|
|
|
|
export const deleteAccessTokenMutation = graphql(`
|
|
mutation DeleteAccessToken($token: String!) {
|
|
apiTokenRevoke(token: $token)
|
|
}
|
|
`)
|
|
|
|
export const createAccessTokenMutation = graphql(`
|
|
mutation CreateAccessToken($token: ApiTokenCreateInput!) {
|
|
apiTokenCreate(token: $token)
|
|
}
|
|
`)
|
|
|
|
export const deleteApplicationMutation = graphql(`
|
|
mutation DeleteApplication($appId: String!) {
|
|
appDelete(appId: $appId)
|
|
}
|
|
`)
|
|
|
|
export const createApplicationMutation = graphql(`
|
|
mutation CreateApplication($app: AppCreateInput!) {
|
|
appCreate(app: $app)
|
|
}
|
|
`)
|
|
|
|
export const editApplicationMutation = graphql(`
|
|
mutation EditApplication($app: AppUpdateInput!) {
|
|
appUpdate(app: $app)
|
|
}
|
|
`)
|
|
|
|
export const revokeAppAccessMutation = graphql(`
|
|
mutation RevokeAppAccess($appId: String!) {
|
|
appRevokeAccess(appId: $appId)
|
|
}
|
|
`)
|