54 lines
995 B
TypeScript
54 lines
995 B
TypeScript
// This query cannot be put in the graphQL folder because it cannot be generated by the graphQL codegen.
|
|
import { gql } from '@apollo/client';
|
|
|
|
export const GET_CURRENT_USER = gql`
|
|
query GetCurrentUser {
|
|
currentUser {
|
|
id
|
|
firstName
|
|
lastName
|
|
email
|
|
canImpersonate
|
|
supportUserHash
|
|
workspaceMember {
|
|
id
|
|
name {
|
|
firstName
|
|
lastName
|
|
}
|
|
colorScheme
|
|
avatarUrl
|
|
locale
|
|
}
|
|
defaultWorkspace {
|
|
id
|
|
displayName
|
|
logo
|
|
domainName
|
|
inviteHash
|
|
allowImpersonation
|
|
subscriptionStatus
|
|
activationStatus
|
|
featureFlags {
|
|
id
|
|
key
|
|
value
|
|
workspaceId
|
|
}
|
|
currentBillingSubscription {
|
|
status
|
|
interval
|
|
}
|
|
}
|
|
workspaces {
|
|
workspace {
|
|
id
|
|
displayName
|
|
logo
|
|
domainName
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|