-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
63 lines (57 loc) · 1.1 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export interface AskMeResultData {
query: {
question: string;
};
documents: AskMeDocumentMultiple[];
duration: number;
pages: AskMePages;
}
export interface AskMePages {
self: number;
next?: number;
previous?: number;
first?: number;
last?: number;
}
export interface AskMeRelatedData {
query: {
doc_id: string;
terms: string;
};
documents: AskMeDocumentMultiple[];
}
export interface AskMeSet {
query: {
index: string;
ids: string;
};
documents: AskMeDocumentMultiple[];
terms: [tfIdf: number, count: number, name: string][];
}
export interface AskMeDocumentMultiple {
identifier: string;
score: number;
nscore: number;
domain: string;
year: number;
title: string;
url: string;
authors: string[];
summary: string;
}
export interface AskMeDocumentSingle {
identifier: string;
domain: string;
year: number;
title: string;
url: string;
authors: string[];
summary: string;
terms: [name: number, count: number, tfIdf: number][];
}
export interface AskMeError {
message: string;
status: number;
stack: string[];
details: any;
}