-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
48 lines (42 loc) · 912 Bytes
/
Copy pathtypes.ts
File metadata and controls
48 lines (42 loc) · 912 Bytes
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
export enum NoteStatus {
DRAFT = 'Draft',
IN_PROGRESS = 'In Progress',
COMPLETED = 'Completed'
}
export enum NoteCategory {
WORK = 'Work',
PERSONAL = 'Personal',
IDEAS = 'Ideas',
UNCATEGORIZED = 'Uncategorized'
}
export interface TimeSession {
id: string;
startTime: number;
endTime?: number;
duration: number; // in seconds
}
export interface Note {
id: string;
title: string;
content: string;
status: NoteStatus;
category: NoteCategory;
tags: string[];
totalTime: number; // total accumulated seconds
sessions: TimeSession[];
createdAt: number;
updatedAt: number;
}
export type ViewMode = 'HOME' | 'DETAIL' | 'STATS' | 'GRAPH';
export interface AIResponse {
text?: string;
tags?: string[];
category?: NoteCategory;
status?: NoteStatus;
summary?: string;
}
export interface ChatMessage {
role: 'user' | 'model';
text: string;
timestamp: number;
}