import gql from 'graphql-tag'

export const PageSettingType = gql`
  type PageSettingType {
    type: String
    details: [PageSetting]
  }
`

export const PageSetting = gql`
  type PageSetting {
    id: String
    name: String
    description: String
    value: String
    settingDetails: [PageSettingDetails]
  }
`

export const PageSettingDetails = gql`
  type PageSettingDetails {
    id: String
    name: String
    description: String
    rank: Int
  }
`

export const PageSettingInput = gql`
  input PageSettingInput {
    query: Boolean
    filters: [Filter!]
  }
`