UNPKG

nd-common

Version:

42 lines (41 loc) 1.09 kB
import { QueryField } from "../models"; /** * Contains information about the number of documents with a specific value. Or in the * case of a pivot values that occur with the value and the number of documents with * the combination of both. */ export interface IValueCount { value?: string; count?: number; pivots?: IValueCount[]; pivotField?: QueryField; field?: QueryField; selected?: boolean; applied?: boolean; parent?: number; parentValue?: string; order?: number; disabled?: boolean; } /** * A facet contains information about how many documents contain a specific * value in a specific field. */ export interface IFacet { icon?: string; type?: string; dataType?: string; field?: QueryField; parent?: number; parentName?: string; parentValue?: string; count?: number; selectedCount?: number; selected?: boolean; hasDescriptions?: boolean; name?: string; values?: IValueCount[]; isActive?: boolean; startDate?: Date; endDate?: Date; }