import gql from 'graphql-tag' ; import { slices } from './fragments' ; export const GET_SUPPORT_QNAS = gql `
  query GetSupportQNAs($input: GetSupportQNAsInput!) {
    getSupportQNAs(input: $input) {
      id
      title
      answer {
        ...AllSlices
      }
      slug
      organization {
        id
        title
        slug
      }
      category {
        title
        description
        slug
      }
      subCategory {
        title
        description
        slug
      }
    }
  }
  ${ slices }
` ; export const GET_SUPPORT_QNAS_IN_CATEGORY = gql `
  query GetSupportQNAsInCategory($input: GetSupportQNAsInCategoryInput!) {
    getSupportQNAsInCategory(input: $input) {
      id
      title
      slug
      subCategory {
        title
        description
        slug
      }
      category {
        title
        description
        slug
      }
      answer {
        ...AllSlices
      }
    }
  }
  ${ slices }
` ; export const GET_SUPPORT_CATEGORY = gql `
  query GET_SUPPORT_CATEGORY($input: GetSupportCategoryInput!) {
    getSupportCategory(input: $input) {
      title
      description
    }
  }
` ; export const GET_SUPPORT_CATEGORIES = gql `
  query GET_SUPPORT_CATEGORIES($input: GetSupportCategoriesInput!) {
    getSupportCategories(input: $input) {
      title
      description
      slug
      organization {
        slug
      }
    }
  }
` ; export const GET_SUPPORT_CATEGORIES_IN_ORGANIZATION = gql `
  query GET_SUPPORT_CATEGORIES_IN_ORGANIZATION(
    $input: GetSupportCategoriesInOrganizationInput!
  ) {
    getSupportCategoriesInOrganization(input: $input) {
      id
      title
      description
      slug
      organization {
        slug
      }
    }
  }
` ; export const GET_SUPPORT_SEARCH_RESULTS_QUERY = gql `
  query GetSupportSearchResults($query: SearcherInput!) {
    searchResults(query: $query) {
      total
      items {
        ... on SupportQNA {
          id
          title
          slug
          category {
            title
            slug
          }
          organization {
            slug
            title
            logo {
              url
            }
          }
        }
      }
      tagCounts {
        key
        value
        count
      }
    }
  }
` ; export const GET_SERVICE_WEB_ORGANIZATION = gql `
  fragment HtmlFields on Html {
    __typename
    id
    document
  }
  query GetServiceWebOrganization($input: GetOrganizationInput!) {
    getOrganization(input: $input) {
      title
      shortTitle
      slug
      link
      logo {
        url
        width
        height
      }
      footerItems {
        title
        content {
          ...HtmlFields
        }
        link {
          text
          url
        }
      }
      phone
      email
      serviceWebTitle
      serviceWebEnabled
    }
  }
` ;