text: import { filterOperators } from './constants/sortFilterHelpers';
  
  export const filterParser = ({ field, value, operator }) => {
    const operatorStr = filterOperators.properties[operator].code;
    return `${field}~${operatorStr}~'${value}'`;
  }
  
  export const filterStringGenerator = (filters) => {
    let filterStr = '';
    filters.forEach(filter => {
      filterStr += `~and~${filter}`;
    })
    return filterStr.slice(5);
  }