kj1352 пре 4 година
родитељ
комит
9db3f37302
3 измењених фајлова са 49 додато и 2 уклоњено
  1. +21
    -0
      models/quiz.ts
  2. +28
    -0
      models/user.ts
  3. +0
    -2
      src/index.ts

+ 21
- 0
models/quiz.ts Прегледај датотеку

@@ -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,
}

+ 28
- 0
models/user.ts Прегледај датотеку

@@ -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,
}>,
}

+ 0
- 2
src/index.ts Прегледај датотеку

@@ -1,10 +1,8 @@
import express from 'express';

const app = express();

const port = 3000;

const key = '315740fef6af918da31cc00800d6b6a5';

app.get('/', (req, res) => {
res.send("Run it!");


Loading…
Откажи
Сачувај