@@ -0,0 +1,21 @@ | |||||
export default interface Question { | |||||
type: 'INPUT' | 'MCQ', | |||||
text: string, | |||||
choices?: Array<string>, | |||||
correctAnswer?: string, | |||||
durationInSeconds: number, | |||||
marks: number, | |||||
} | |||||
export default interface Quiz { | |||||
questions: Array<Question>, | |||||
minScoreToPass: number, | |||||
totalDuration?: number, // Military time 060 is 6 AM, 1300 is 1 PM | |||||
} | |||||
export default interface Assignment { | |||||
heading: string, | |||||
description: string, //Rich text | |||||
deadlineDate: string, | |||||
minimumCriteria: string, | |||||
} |
@@ -0,0 +1,28 @@ | |||||
export default interface skillInformation { | |||||
name: string, | |||||
category: 'FRONT_END' | 'BACKEND' | 'DATABASE' | 'BENIFICIAL' | |||||
}; | |||||
export default interface IUser { | |||||
name: string, | |||||
email: string, | |||||
userType: 'ADMIN' | 'MODERATOR' | 'APPLICANT', | |||||
skillSet?: Array<skillInformation>, | |||||
progress?: Array<{ | |||||
roundType: 'PRELIMINARY' | 'TECHNICAL_INTERVIEW' | 'ASSIGNMENT' | 'FINAL_INTERVIEW', | |||||
score: number, | |||||
status: undefined | 'PASS' | 'FAIL' | 'PAUSED' | 'IN_PROGRESS' | 'REVIEW', | |||||
answers?: Array<string>, | |||||
preferredInterviewSlot?: Date, | |||||
}>, | |||||
userDocuments?: Array<{ | |||||
type: 'ID_PROOF' | 'CERTIFICATES' | 'EXPERIENCE_LETTER' | 'PAYSLIPS', | |||||
status: undefined | 'UPLOADED' | 'VERIFYING' | 'VERIFIED' | 'FAILED', | |||||
comments?: Array<{ | |||||
userName: string, | |||||
comment: string, | |||||
timeStamps: Date, | |||||
}>, | |||||
document: File, | |||||
}>, | |||||
} |
@@ -1,10 +1,8 @@ | |||||
import express from 'express'; | import express from 'express'; | ||||
const app = express(); | const app = express(); | ||||
const port = 3000; | const port = 3000; | ||||
const key = '315740fef6af918da31cc00800d6b6a5'; | |||||
app.get('/', (req, res) => { | app.get('/', (req, res) => { | ||||
res.send("Run it!"); | res.send("Run it!"); | ||||