-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.ts
91 lines (84 loc) · 1.86 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export interface HostInfo {
speaker: { username: string }[];
co_host: { username: string }[];
group_host: {
id: number;
creator: boolean;
username: string;
nickname: string | null;
image_url: string | null;
} | null;
}
export interface RecurringEvent {
interval: string;
start_time: string;
end_time: string;
}
export interface EventSites {
id: number | null;
title: string | null;
location: string | null;
about: string | null;
group_id: number | null;
owner_id: number | null;
created_at: string | null;
formatted_address: null | string;
geo_lat: null | string;
geo_lng: null | string;
}
export interface Participants {
id: number;
check_time: string | null;
created_at: string;
message: string | null;
profile: ProfileSimple;
profile_id: number;
status: string;
event: Event;
role: string;
event_id: number;
}
export interface ProfileSimple {
username: string;
}
export interface Event {
id: number;
title: string;
content: string;
cover_url: string | null;
tags: null | string[];
start_time: string;
end_time: string;
location: null | string;
max_participant: null | number;
min_participant: null | number;
host_info: null | string;
meeting_url: null | string;
event_site: null | EventSites;
event_type: "event" | "checklog";
group_id?: null | number;
owner: ProfileSimple;
notes: string | null;
category: null | string;
recurring_event: null | {
id: number;
interval: string;
start_time: string;
end_time: string;
timezone: string;
};
timezone: null | string;
geo_lng: null | string;
geo_lat: null | string;
participants: null | Participants[];
external_url: null | string;
}
export interface EventMessage {
image: string | null;
caption: string;
}
export interface SolaGroup {
name: string | null;
id: number;
events_count: number;
}