Files
speckle-server/packages/frontend-2/lib/developer-settings/graphql/queries.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

55 lines
914 B
TypeScript

import { graphql } from '~~/lib/common/generated/gql'
export const developerSettingsAccessTokensQuery = graphql(`
query DeveloperSettingsAccessTokens {
activeUser {
id
apiTokens {
id
name
lastUsed
lastChars
createdAt
scopes
}
}
}
`)
export const developerSettingsApplicationsQuery = graphql(`
query DeveloperSettingsApplications {
activeUser {
createdApps {
id
secret
name
description
redirectUrl
scopes {
name
description
}
}
id
}
}
`)
export const developerSettingsAuthorizedAppsQuery = graphql(`
query DeveloperSettingsAuthorizedApps {
activeUser {
id
authorizedApps {
id
description
name
author {
id
name
avatar
}
}
}
}
`)