import gql from 'graphql-tag';

export const FIBERSERVICESINFO = gql`
  query FiberServicesInfo($input: CustomerServicesInput!) {
    fiberServices(input: $input) {
      services {
        id
        nickname
        propertyDescription
        status
        user {
          name
        }
      }
    }
  }
`;

export const FIBER_SERVICES_CONTRACT_INFO = gql`
  query FiberServicesContractInfo($input: ContractsInput!) {
    contracts(input: $input) {
      contracts {
        id
        payerId
        contractItems {
          ... on ServiceContractItem {
            serviceId
            status
            variantId
            service {
              ... on FiberService {
                propertyDescription
                nickname
                name
                user {
                  name
                }
              }
            }
          }
        }
      }
    }
  }
`;
