-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorganization.d.ts
More file actions
72 lines (70 loc) · 1.63 KB
/
Copy pathorganization.d.ts
File metadata and controls
72 lines (70 loc) · 1.63 KB
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
64
65
66
67
68
69
70
71
72
declare namespace Popolo {
interface Organization {
id?: string;
name?: string;
other_names?: OtherName[];
identifiers?: Identifier[];
classification?: string;
parent_id?: string;
parent?: Organization;
area_id?: string;
area?: Area[];
abstract?: string;
description?: string;
founding_date?: string;
dissolution_date?: string;
image?: string;
contact_details?: ContactDetail[];
links?: Link[];
memberships?: Membership[];
posts?: Post[];
motions?: Motion[];
vote_events?: VoteEvent[];
votes?: Vote[];
children?: Organization[];
created_at?: string;
updated_at?: string;
sources?: Link[];
}
interface Membership {
id?: string;
label?: string;
role?: string;
member?: Person | Organization;
person_id?: string;
person?: Person;
organization_id?: string;
organization?: Organization;
post_id?: string;
post?: Post[];
on_behalf_of_id?: string;
on_behalf_of?: Organization;
area_id?: string;
area?: Area[];
start_date?: string;
end_date?: string;
contact_details?: ContactDetail[];
links?: Link[];
created_at?: string;
updated_at?: string;
sources?: Link[];
}
interface Post {
id?: string;
label?: string;
other_label?: string;
role?: string;
organization_id?: string;
organization?: Organization;
area_id?: string;
area?: Area[];
start_date?: string;
end_date?: string;
contact_details?: ContactDetail[];
links?: Link[];
memberships?: Membership[];
created_at?: string;
updated_at?: string;
sources?: Link[];
}
}