-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
49 lines (44 loc) · 976 Bytes
/
index.d.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
declare type Listener = {
/* name by which the listener is identified */
name: string;
/* organisations for which title change should be send to this listener */
interestedOrgs: string[];
/* URI where the listener can be reached with the payload */
webhookuri: string;
}
declare type MediaDefinition = {
feeds: FeedList;
}
declare type FeedList = {
[key: string]: MediumDefinition[];
}
declare type MediumDefinition = {
name: string;
prefix: string;
suffix: string;
feeds: string[];
id_container: string;
id_mask: string;
page_id_location: string;
page_id_query: string;
match_domains: string[];
title_query: string[];
}
declare type Article = {
_id?: string;
org: string;
articleID: string;
feedtitle: string;
sourcefeed: string;
lang: string;
link: string;
guid: string;
titles: Title[];
first_seen: string;
pub_date: string;
}
declare type Title = {
title: string;
datetime: string;
timestamp: number;
}