UNPKG

@jorsek/ezd-client

Version:
23 lines (22 loc) 750 B
import { Resource, IResourceArgs } from "./Resource"; import { IFacetValue, ISearchResponse } from "../Types"; export interface ISearchArgs extends IResourceArgs { rootMapId: string; } interface IInputSearchParams { queryString: string; page?: number; sectionPath?: string; } export declare class Search extends Resource { private searchFolders; private search_facets; private rootMapId; private rows_per_page; constructor({ rootMapId, axios, config }: ISearchArgs); get_search_facets(): Promise<Record<string, IFacetValue[]>>; get_results_per_page(): Promise<any>; executeSearch({ queryString, page, sectionPath }: IInputSearchParams): Promise<ISearchResponse>; private setup_search; } export {};