import { BooleanFilter } from './boolean-filter.model' ; import { Filter } from './filter.model' ; /**
 * A type of filter used in  HierarchicalFacet and extends from  BooleanFilter .
 * This filter has the particularity that it has recursive children.
 *
 *  public export interface HierarchicalFilter extends BooleanFilter { /** Model name to indicate the filter type. */ modelName : 'HierarchicalFilter' ; /** An unique id used to reference the parent filter or null if it hasn't. */ parentId : Filter [ 'id' ] | null ; /** Descendants filters id. */ children ? : Filter [ 'id' ] [ ] ; } /**
 * Type guard to check if a filter is a  HierarchicalFilter .
 *
 *  param filter returns True if the filter is a  HierarchicalFilter , false otherwise.
 *
 *  public export function isHierarchicalFilter ( filter ) { return filter . modelName === 'HierarchicalFilter' ; }