Repository navigation
Expand file tree
/
Copy pathstudent.ts
More file actions
85 lines (75 loc) · 1.75 KB
/
Copy pathstudent.ts
File metadata and controls
85 lines (75 loc) · 1.75 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
import { AcademicDomain } from '@/lib/educational/syllabus-mapper';
export interface ParsedResume {
name: string;
email: string;
phone: string;
skills: string[];
education: Education[];
experience: Experience[];
}
export interface Education {
institution: string;
degree: string;
field: string;
startDate: string;
endDate: string;
}
export interface Experience {
company: string;
role: string;
startDate: string;
endDate: string;
description: string;
}
export interface StudentProfile {
githubUsername: string;
name: string;
email: string;
phone?: string;
skills: string[];
careerInterests?: string[];
graduationYear?: number;
education: Education[];
experience: Experience[];
resumeUrl?: string;
resumeFileName?: string;
createdAt: Date;
updatedAt: Date;
learningCurve?: LearningCurveData;
activeStudyStreak?: StudyStreak;
}
export interface ResumeUploadResponse {
success: boolean;
data?: ParsedResume;
fileName?: string;
error?: string;
}
export interface ResumeConfirmResponse {
success: boolean;
error?: string;
}
export interface DomainStats {
domain: AcademicDomain;
commitCount: number;
linesAdded: number;
linesDeleted: number;
primaryLanguagesUsed: string[];
}
export interface LearningCurveDataPoint {
date: string; // ISO string format (e.g., '2026-04-15')
domains: Partial<Record<AcademicDomain, DomainStats>>;
totalDailyCommits: number;
}
export interface LearningCurveData {
timeline: LearningCurveDataPoint[]; // Rolling 30-day array
primaryDomain: AcademicDomain;
totalStudyDays: number;
}
export interface StudyStreak {
currentStreak: number;
longestStreak: number;
startDate: string;
endDate: string;
activeDomains: AcademicDomain[];
isActive: boolean;
}