@sajari/sdk-react
Version:
React SDK for the Sajari API
19 lines (18 loc) • 674 B
TypeScript
import { Filter } from "./filter";
import { Pipeline } from "./pipeline";
import { Values } from "./values";
export declare class CountAggregateFilter extends Filter {
private _field;
private _counts;
constructor(field: string, pipeline: Pipeline, values: Values, multi?: boolean, type?: string, listField?: boolean);
getCounts(): {
name: string;
count: number;
}[];
reset(): void;
private _addCountToValues;
private _getCounts;
private _genFilterOptions;
private _clearFilterOptions;
}
export declare function filterOptValue(name: string, field: string, type?: string, listField?: boolean): string;