spscript-b
Version:
ShareP0oint Rest Api Wrappers
25 lines (24 loc) • 638 B
TypeScript
export interface QueryOptions {
sourceid?: string;
startrow?: number;
rowlimit?: number;
selectedproperties?: string[];
refiners?: string[];
refinementfilters?: string[];
hiddencontstraints?: any;
sortlist?: any;
}
export interface Refiner {
RefinerName: string;
RefinerOptions: any[];
}
export interface SearchResultResponse {
elapsedTime: string;
suggestion: any;
resultsCount: number;
totalResults: number;
totalResultsIncludingDuplicates: number;
/** The actual search results that you care about */
items: any[];
refiners?: Refiner[];
}