-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
65 lines (58 loc) · 1.1 KB
/
types.ts
File metadata and controls
65 lines (58 loc) · 1.1 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
export enum Emotion {
Happy = 'Happy',
Sad = 'Sad',
Anxious = 'Anxious',
Stressed = 'Stressed',
Grateful = 'Grateful',
Lonely = 'Lonely',
Overwhelmed = 'Overwhelmed',
}
export enum RequestStatus {
Pending = 'Pending',
Accepted = 'Accepted',
Rejected = 'Rejected',
}
export interface User {
username: string;
email: string;
profilePic: string;
status: string;
}
export interface JournalEntry {
id: string;
author: string;
content: string;
emotion: Emotion;
timestamp: string;
reactions: number;
}
export interface ConnectionRequest {
id: string;
fromUser: string;
toUser: string;
status: RequestStatus;
timestamp: string;
emotion: Emotion;
profilePic?: string;
}
export interface Connection {
id: string;
users: string[];
profilePics: string[];
timestamp: string;
emotion: Emotion;
}
export interface VoiceNote {
id: string;
url: string;
timestamp: string;
emotion?: Emotion;
}
export interface ChatMessage {
id: string;
sender: string;
text: string;
timestamp: string;
status: 'sent' | 'read';
reactions?: { [key: string]: string[] };
}