91cb011ded
* CodeInput. verify-email page * middleware * Loading toast * Countdown only for registration * Improve middleware * Fix middleware breaking auth flow * Remove old notifications * Remove old onboarding. New segmentation * Remove skip button * Block verify email when verified * useUserEmails composable. Cancel addition * Move user emails queries * Fix fragments etc * redirect updates * HeaderWithEmptyPage * Check env before enforcing * Join workspace * Updates * Fix console warnings on login * Fix register console warnings * Working cache updates * Verify secondary email * Force onboarding off * EMAIL WIP * useIsJustRegistered state * Improve isRequired * Uneeded change * Improved slots * Updates from CR * CR comments * Only show message if forced * Update onboarding middleware * Update loading bar * ref > computed to fix onboarding * Resend tooltip. Better errors * Add other to form. * Email changes * Updates to emails * Remove force email FF * Remove FF's * Hide header on embed * Update graphql.ts * Re-add FF * Update graphql.ts * GQL Fragments * Fix build
147 lines
3.4 KiB
TypeScript
147 lines
3.4 KiB
TypeScript
import { graphql } from '~~/lib/common/generated/gql'
|
|
|
|
export const settingsUpdateWorkspaceMutation = graphql(`
|
|
mutation SettingsUpdateWorkspace($input: WorkspaceUpdateInput!) {
|
|
workspaceMutations {
|
|
update(input: $input) {
|
|
...SettingsWorkspacesGeneral_Workspace
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsCreateUserEmailMutation = graphql(`
|
|
mutation SettingsCreateUserEmail($input: CreateUserEmailInput!) {
|
|
activeUserMutations {
|
|
emailMutations {
|
|
create(input: $input) {
|
|
id
|
|
emails {
|
|
...EmailFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsDeleteUserEmailMutation = graphql(`
|
|
mutation SettingsDeleteUserEmail($input: DeleteUserEmailInput!) {
|
|
activeUserMutations {
|
|
emailMutations {
|
|
delete(input: $input) {
|
|
id
|
|
emails {
|
|
...EmailFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsSetPrimaryUserEmailMutation = graphql(`
|
|
mutation SettingsSetPrimaryUserEmail($input: SetPrimaryUserEmailInput!) {
|
|
activeUserMutations {
|
|
emailMutations {
|
|
setPrimary(input: $input) {
|
|
id
|
|
emails {
|
|
...EmailFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsNewEmailVerificationMutation = graphql(`
|
|
mutation SettingsNewEmailVerification($input: EmailVerificationRequestInput!) {
|
|
activeUserMutations {
|
|
emailMutations {
|
|
requestNewEmailVerification(input: $input)
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsUpdateWorkspaceSecurity = graphql(`
|
|
mutation SettingsUpdateWorkspaceSecurity($input: WorkspaceUpdateInput!) {
|
|
workspaceMutations {
|
|
update(input: $input) {
|
|
id
|
|
domainBasedMembershipProtectionEnabled
|
|
discoverabilityEnabled
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const deleteWorkspaceMutation = graphql(`
|
|
mutation SettingsDeleteWorkspace($workspaceId: String!) {
|
|
workspaceMutations {
|
|
delete(workspaceId: $workspaceId)
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsResendWorkspaceInviteMutation = graphql(`
|
|
mutation SettingsResendWorkspaceInvite($input: WorkspaceInviteResendInput!) {
|
|
workspaceMutations {
|
|
invites {
|
|
resend(input: $input)
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsCancelWorkspaceInviteMutation = graphql(`
|
|
mutation SettingsCancelWorkspaceInvite($workspaceId: String!, $inviteId: String!) {
|
|
workspaceMutations {
|
|
invites {
|
|
cancel(workspaceId: $workspaceId, inviteId: $inviteId) {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsAddWorkspaceDomainMutation = graphql(`
|
|
mutation AddWorkspaceDomain($input: AddDomainToWorkspaceInput!) {
|
|
workspaceMutations {
|
|
addDomain(input: $input) {
|
|
...SettingsWorkspacesSecurity_Workspace
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsDeleteWorkspaceDomainMutation = graphql(`
|
|
mutation DeleteWorkspaceDomain($input: WorkspaceDomainDeleteInput!) {
|
|
workspaceMutations {
|
|
deleteDomain(input: $input) {
|
|
...SettingsWorkspacesSecurityDomainRemoveDialog_Workspace
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsLeaveWorkspaceMutation = graphql(`
|
|
mutation SettingsLeaveWorkspace($leaveId: ID!) {
|
|
workspaceMutations {
|
|
leave(id: $leaveId)
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const settingsBillingCancelCheckoutSessionMutation = graphql(`
|
|
mutation SettingsBillingCancelCheckoutSession($input: CancelCheckoutSessionInput!) {
|
|
workspaceMutations {
|
|
billing {
|
|
cancelCheckoutSession(input: $input)
|
|
}
|
|
}
|
|
}
|
|
`)
|