### Context - Update /plan-required page to let users get free trial without credit card plan - Update usePageChangeEffectNavigateLocation to redirect paused and canceled subscription (suspended workspace) to /settings/billing page ### To do - [x] Update usePageChangeEffectNavigateLocation test - [x] Update ChooseYourPlan sb test closes #9520 --------- Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
54 lines
945 B
TypeScript
54 lines
945 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const GET_CLIENT_CONFIG = gql`
|
|
query GetClientConfig {
|
|
clientConfig {
|
|
billing {
|
|
isBillingEnabled
|
|
billingUrl
|
|
trialPeriods {
|
|
duration
|
|
isCreditCardRequired
|
|
}
|
|
}
|
|
authProviders {
|
|
google
|
|
password
|
|
microsoft
|
|
sso {
|
|
id
|
|
name
|
|
type
|
|
status
|
|
issuer
|
|
}
|
|
}
|
|
signInPrefilled
|
|
isMultiWorkspaceEnabled
|
|
isEmailVerificationRequired
|
|
defaultSubdomain
|
|
frontDomain
|
|
debugMode
|
|
analyticsEnabled
|
|
support {
|
|
supportDriver
|
|
supportFrontChatId
|
|
}
|
|
sentry {
|
|
dsn
|
|
environment
|
|
release
|
|
}
|
|
captcha {
|
|
provider
|
|
siteKey
|
|
}
|
|
api {
|
|
mutationMaximumAffectedRecords
|
|
}
|
|
chromeExtensionId
|
|
canManageFeatureFlags
|
|
}
|
|
}
|
|
`;
|