Files
speckle-server/packages/frontend-2/lib/developer-settings/graphql/mutations.ts
T
andrewwallacespeckle 76cbcef4e6 Feature - FE2 - Developer Settings (#1822)
* WIP Developer Settings

* Access Tokens

* scopes load fix

* mapping to correct struct

* Updates to Application

* Update to apps.js to fix scopes error

* Application table done

* Token confirmation done.

* Application Success

* Fix ts

* Darkmode fixes

* Responsive fix

* Fixes for PR

* Pass size prop to Editable Avatar

* Updates from PR comments

* Section Header - TS Types

* Add Typeguard to Delete Dialog

* Add Description to scopes query

* minor type guard fix

* edit application cache update fix

* Fix Dialog Expansion

* Rename mutations to correct casing

* Remove unneeded import for defineProps

---------

Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
2023-10-26 12:51:05 +01:00

32 lines
757 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)
}
`)