mutation Login($input: LoginInput!) {
  login(input: $input) {
    token
    permissions
    role
  }
}

mutation Logout {
  logout
}

mutation Register($input: RegisterInput!) {
  register(input: $input) {
    token
    permissions
    role
  }
}

mutation BanUser($id: ID!) {
  banUser(id: $id) {
    id
    name
    email
    is_active
    profile {
      id
      avatar {
        id
        original
        thumbnail
      }
      bio
    }
    created_at
  }
}

mutation ActiveUser($id: ID!) {
  activeUser(id: $id) {
    id
    id
    name
    email
    is_active
    profile {
      id
      avatar {
        id
        original
        thumbnail
      }
      bio
    }
    created_at
  }
}

mutation ChangePassword($input: ChangePasswordInput!) {
  changePassword(input: $input) {
    message
    success
  }
}

mutation ForgetPassword($input: ForgetPasswordInput!) {
  forgetPassword(input: $input) {
    message
    success
  }
}
mutation VerifyForgetPasswordToken($input: VerifyForgetPasswordTokenInput!) {
  verifyForgetPasswordToken(input: $input) {
    message
    success
  }
}
mutation ResetPassword($input: ResetPasswordInput!) {
  resetPassword(input: $input) {
    message
    success
  }
}

mutation UpdateCustomer($input: UpdateUserInput!) {
  updateUser(input: $input) {
    id
    name
    email
    profile {
      id
      avatar {
        id
        thumbnail
        original
      }
      bio
      socials {
        type
        link
      }
      contact
    }
    address {
      title
      default
      type
      address {
        country
        city
        state
        zip
      }
      location {
        lat
        lng
        street_number
        route
        street_address
        city
        state
        country
        zip
        formattedAddress
      }
    }
  }
}
mutation ResendVerificationEmail {
  resendVerificationEmail {
    message
    success
  }
}
mutation LicenseKey($license_key: String!) {
  licenseKeyValidation(license_key: $license_key)
}
