fragment basicMutationReturnFields on MutationReturnInterface{
  code
  message
  success
}

query SystemSettings {
  system {
    settings {
      autoUpgrade {
        allowReboot
        enable
      }
      ssh {
        enable
        passwordAuthentication
      }
      timezone
    }
  }
}

query SystemIsUsingBinds {
  system {
    info {
      usingBinds
    }
  }
}

query DomainInfo {
  system {
    domainInfo {
      domain
      hostname
      provider
      requiredDnsRecords {
        content
        name
        priority
        recordType
        ttl
      }
    }
  }
}

mutation ChangeTimezone($timezone: String!) {
  changeTimezone(timezone: $timezone) {
    ...basicMutationReturnFields
    timezone
  }
}

mutation ChangeAutoUpgradeSettings($settings: AutoUpgradeSettingsInput!) {
  changeAutoUpgradeSettings(settings: $settings) {
    ...basicMutationReturnFields
    allowReboot
    enableAutoUpgrade
  }
}
