68183b7c85
# Content - Introduce the `workspaceUrls` property. It contains two sub-properties: `customUrl, subdomainUrl`. These endpoints are used to access the workspace. Even if the `workspaceUrls` is invalid for multiple reasons, the `subdomainUrl` remains valid. - Introduce `ResolveField` workspaceEndpoints to avoid unnecessary URL computation on the frontend part. - Add a `forceSubdomainUrl` to avoid custom URL using a query parameter
33 lines
654 B
TypeScript
33 lines
654 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const CHECK_USER_EXISTS = gql`
|
|
query CheckUserExists($email: String!, $captchaToken: String) {
|
|
checkUserExists(email: $email, captchaToken: $captchaToken) {
|
|
__typename
|
|
... on UserExists {
|
|
exists
|
|
availableWorkspaces {
|
|
id
|
|
displayName
|
|
workspaceUrls {
|
|
subdomainUrl
|
|
customUrl
|
|
}
|
|
logo
|
|
sso {
|
|
type
|
|
id
|
|
issuer
|
|
name
|
|
status
|
|
}
|
|
}
|
|
isEmailVerified
|
|
}
|
|
... on UserNotExists {
|
|
exists
|
|
}
|
|
}
|
|
}
|
|
`;
|