159 lines
3.7 KiB
TypeScript
159 lines
3.7 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 settingsUpdateWorkspaceEmbedOptionsMutation = graphql(`
|
|
mutation SettingsUpdateWorkspaceEmbedOptions(
|
|
$input: WorkspaceUpdateEmbedOptionsInput!
|
|
) {
|
|
workspaceMutations {
|
|
updateEmbedOptions(input: $input) {
|
|
hideSpeckleBranding
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
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)
|
|
}
|
|
}
|
|
}
|
|
`)
|