-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
80 lines (71 loc) · 1.78 KB
/
Copy pathtypes.ts
File metadata and controls
80 lines (71 loc) · 1.78 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
73
74
75
76
77
78
79
80
export interface Lesson {
id: string;
title: string;
description: string;
content?: string; // Markdown content
sources?: { title: string; uri: string }[]; // Search Grounding sources
videos?: { title: string; videoId: string }[]; // YouTube videos
images?: { title: string; url: string }[]; // Educational images from Google
isCompleted: boolean;
duration: string;
userRating?: number; // 1-5 stars
deadline?: string; // ISO string for deadline
}
export interface Module {
id: string;
title: string;
lessons: Lesson[];
}
export interface Course {
id: string;
title: string;
description: string;
thumbnail: string;
author: string;
category: string;
rating: number;
students: number;
modules: Module[];
progress: number; // 0-100
isGenerated?: boolean;
status: 'published' | 'draft';
visibility: 'public' | 'private';
isCreatedByUser?: boolean;
}
export interface User {
name: string;
avatar: string;
streak: number;
points: number;
xpToday: number;
dailyGoal: number;
streakStatus: ('active' | 'completed' | 'missed' | 'frozen')[]; // Last 7 days status
authDetails?: AuthUser;
settings?: {
isDarkMode: boolean;
language: Language;
};
}
export interface AuthUser {
id: string;
name: string;
email: string;
token?: string;
}
export interface AppNotification {
id: string;
title: string;
message: string;
timestamp: string;
read: boolean;
type: 'deadline' | 'achievement' | 'reminder';
courseId?: string;
}
export interface VerificationResult {
status: 'ACCURATE' | 'PARTIALLY_ACCURATE' | 'INACCURATE';
analysis: string;
suggestedCorrections?: string;
sources: { title: string; uri: string }[];
}
export type Tab = 'home' | 'search' | 'create' | 'chat' | 'settings';
export type Language = 'vi' | 'en';