UNPKG

1.31 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 title: string;
17 summary: string;
18 previewUrl: string;
19 accountName?: string;
20 postAuthorPhoto?: string;
21 postBody?: string;
22 }
23 interface ISearchSourceType {
24 all: number;
25 sites: number;
26 people: number;
27 }
28 interface IContentSearchResult extends IBaseSearchResult {
29 highlightedSummary: string;
30 spWebUrl: string;
31 serverRedirectedUrl: string;
32 serverRedirectedPreviewUrls: string;
33 pictureUrl: string;
34 fileExtension: string;
35 }
36 interface IPeopleSearchResult extends IBaseSearchResult {
37 aboutMe: string;
38 accountName: string;
39 }
40 interface IPeople {
41 accountName: string;
42 isFollowedPeople: boolean;
43 isProcessing: boolean;
44 }
45}