Files
speckle-server/packages/frontend-2/lib/developer-settings/graphql/mutations.ts
T
Kristaps Fabians Geikins 6af6c656a4 feat(fe2): app authorization workflow redesign [WBX-217] (#2044)
* 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
2024-02-23 16:50:07 +02:00

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)
}
`)