import { gql } from "apollo-boost";

export const QUERY_BODYSHOP = gql`
  query QUERY_BODYSHOP {
    bodyshops(where: { associations: { active: { _eq: true } } }) {
      address1
      address2
      city
      country
      created_at
      email
      federal_tax_id
      id
      insurance_vendor_id
      logo_img_path
      md_ro_statuses
      md_order_statuses
      shopname
      state
      state_tax_id
      updated_at
      zip_post
      region_config
      md_responsibility_centers
      employees {
        id
        first_name
        last_name
        employee_number
        cost_center
      }
    }
  }
`;

export const QUERY_SHOP_ID = gql`
  query QUERY_SHOP_ID {
    bodyshops(where: { associations: { active: { _eq: true } } }) {
      id
    }
  }
`;
