import gql from 'graphql-tag';

export const payerChangeRequest = gql`
  query PayerChangeRequest($input: PayerChangeRequestInput!) {
    payerChangeRequest(input: $input) {
      effectiveDate
      id
      newContractId
      newContractPayerId
      originContractId
      originContractPayerId
      status
      affectedServiceIds
      newContractTitle
    }
  }
`;

export const ContractPayerChangeRequestsFrom = gql`
  query ContractPayerChangeRequestsFrom($input: ContractInput!) {
    contractPayerChangeRequestsFrom(input: $input) {
      affectedServiceIds
      effectiveDate
      id
      newContractId
      newContractPayerId
      newContractTitle
      originContractId
      originContractPayerId
      status
    }
  }
`;

export const ContractPayerChangeRequestsTo = gql`
  query ContractPayerChangeRequestsTo($input: ContractInput!) {
    contractPayerChangeRequestsTo(input: $input) {
      affectedServiceIds
      effectiveDate
      id
      newContractId
      newContractPayerId
      newContractTitle
      originContractId
      originContractPayerId
      status
    }
  }
`;
