-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
144 lines (127 loc) · 2.65 KB
/
Copy pathtypes.ts
File metadata and controls
144 lines (127 loc) · 2.65 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
export enum AppMode {
DASHBOARD = 'DASHBOARD',
LISTENING = 'LISTENING',
SPEAKING = 'SPEAKING',
READING = 'READING',
WRITING = 'WRITING',
EXAM_PORTAL = 'EXAM_PORTAL',
STORY_LIBRARY = 'STORY_LIBRARY',
}
export interface VocabItem {
id: string;
word: string;
definition: string;
chineseDefinition?: string;
contextSentence: string;
contextSentenceZh?: string;
sourceUrl?: string;
dateAdded: string;
imageUrl?: string;
masteryLevel?: number; // 0 = new, 1 = reviewing, 2 = mastered
language?: string;
}
export interface SavedSentence {
id: string;
text: string;
source: string;
sourceUrl?: string;
notes?: string;
dateAdded: string;
scenario?: string;
advancedVersion?: string;
language?: string;
}
export interface DailyContent {
title: string;
summary: string;
url: string;
content: string;
source: string;
}
export type ContentSourceType = 'reading' | 'listening' | 'both';
export interface CustomContentSource {
id: string;
name: string;
url: string;
type: ContentSourceType;
description?: string;
dateAdded: string;
language?: string;
}
export interface VideoContent {
transcript: string;
summary: string;
keyPoints: string[];
}
export interface WritingFeedback {
original: string;
corrected: string;
upgraded: string;
modelEssay: string;
}
export interface WritingEntry {
id: string;
date: string;
topic: string;
original: string;
feedback: WritingFeedback;
language?: string;
}
export type TodayStoryMode = 'zh' | 'mixed' | 'en';
export interface StoryPhrase {
original: string;
explanation: string;
alternative: string;
}
export interface TodayStoryResult {
title: string;
original: string;
rewritten: string;
keyPhrases: StoryPhrase[];
comment?: string;
tags?: string[];
}
export interface TodayStoryEntry {
id: string;
date: string;
title: string;
mode: TodayStoryMode;
originalText: string;
rewrittenText: string;
keyPhrases: StoryPhrase[];
comment?: string;
tags?: string[];
language?: string;
}
export interface FreeTalkMessage {
id: string;
role: 'user' | 'assistant';
text: string;
}
export interface FreeTalkReply {
reply: string;
followUp?: string;
quickReplies?: string[];
correction?: string;
improvements?: string[];
}
export interface DiaryEntry {
id: string;
date: string;
topic: string;
title: string;
content: string;
sourceLabel: 'Corrected' | 'Pro Upgrade' | 'Model Essay';
language?: string;
}
export interface CustomExamLink {
id: string;
language: string;
name: string;
url: string;
description: string;
tag?: string;
dateAdded?: string;
pinned?: boolean;
order?: number;
}