UNPKG

1.55 kBTypeScriptView Raw
1import { Enums } from '../extensibility';
2export declare module Search {
3 interface SearchResultProcessor {
4 (items: Array<ISearchResult>): void;
5 }
6 interface IBaseSearchResult {
7 title: string;
8 highlightedProperties: string;
9 path: string;
10 contentType: Enums.SearchContentTypeEnum;
11 }
12 interface ISearchResult {
13 contentType?: Enums.SearchContentTypeEnum;
14 imageUrl: string;
15 linkUrl: string;
16 originalTitle?: string;
17 title: string;
18 summary: string;
19 previewUrl: string;
20 accountName?: string;
21 postAuthorPhoto?: string;
22 postBody?: string;
23 }
24 interface ISearchSourceType {
25 all: number;
26 sites: number;
27 people: number;
28 }
29 interface IContentSearchResult extends IBaseSearchResult {
30 siteDescription?: string;
31 highlightedSummary: string;
32 spWebUrl: string;
33 serverRedirectedUrl: string;
34 serverRedirectedPreviewUrls: string;
35 pictureUrl: string;
36 fileExtension: string;
37 fullPostBody?: string;
38 postAuthor?: string;
39 }
40 interface IPeopleSearchResult extends IBaseSearchResult {
41 aboutMe: string;
42 accountName: string;
43 }
44 interface IPeople {
45 accountName: string;
46 isFollowedPeople: boolean;
47 isProcessing: boolean;
48 }
49 interface ISearchLimitResult<T> {
50 totalRows: number;
51 limitResults: Array<T>;
52 }
53}