-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
79 lines (73 loc) · 1.79 KB
/
types.ts
File metadata and controls
79 lines (73 loc) · 1.79 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
import { Timestamp } from 'firebase/firestore';
export type UserRole = 'recruiter' | 'candidate' | 'admin';
export interface UserProfile {
uid: string;
email: string;
fullname: string;
role: UserRole;
experience?: number;
phone?: string;
profilePhotoURL?: string;
accountStatus: 'active' | 'disabled';
createdAt: Timestamp;
}
export interface Job {
id: string;
title: string;
description: string;
companyName: string;
qualifications: string;
applyDeadline: Timestamp;
interviewPermission: 'anyone' | 'request';
recruiterUID: string;
recruiterName: string;
createdAt: Timestamp;
}
export interface InterviewRequest {
id: string;
jobId: string;
jobTitle: string;
candidateUID: string;
candidateName: string;
recruiterUID: string;
status: 'pending' | 'accepted' | 'rejected';
createdAt: Timestamp;
respondedAt?: Timestamp;
}
export interface Interview {
id: string;
jobId: string;
jobTitle: string;
jobDescription: string;
candidateUID: string;
candidateName: string;
candidateEmail: string;
candidateResumeURL: string;
questions: string[];
answers: (string | null)[]; // status strings or placeholders
videoURLs: (string | null)[];
transcriptIds: (string | null)[];
transcriptTexts: string[];
feedback: string;
score: string; // "85/100"
resumeScore: string;
qnaScore: string;
status: string;
submittedAt: Timestamp;
meta?: {
tabSwitchCount: number;
};
}
export interface InterviewState {
jobId: string;
jobTitle: string;
jobDescription: string;
candidateResumeURL: string | null;
candidateResumeMimeType: string | null;
questions: string[];
answers: (string | null)[];
videoURLs: (string | null)[];
transcriptIds: (string | null)[];
transcriptTexts: (string | null)[];
currentQuestionIndex: number;
}