Updated users to get exams related to their level

This commit is contained in:
Tiago Ribeiro
2024-02-10 09:10:52 +00:00
parent 1895b9e183
commit 2e894622d0
3 changed files with 29 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ import {Module} from ".";
export type Exam = ReadingExam | ListeningExam | WritingExam | SpeakingExam | LevelExam;
export type Variant = "full" | "partial";
export type InstructorGender = "male" | "female" | "varied";
export type Difficulty = "easy" | "medium" | "hard";
export interface ReadingExam {
parts: ReadingPart[];
@@ -12,6 +13,7 @@ export interface ReadingExam {
type: "academic" | "general";
isDiagnostic: boolean;
variant?: Variant;
difficulty?: Difficulty;
}
export interface ReadingPart {
@@ -29,6 +31,7 @@ export interface LevelExam {
minTimer: number;
isDiagnostic: boolean;
variant?: Variant;
difficulty?: Difficulty;
}
export interface ListeningExam {
@@ -38,6 +41,7 @@ export interface ListeningExam {
minTimer: number;
isDiagnostic: boolean;
variant?: Variant;
difficulty?: Difficulty;
}
export interface ListeningPart {
@@ -69,6 +73,7 @@ export interface WritingExam {
minTimer: number;
isDiagnostic: boolean;
variant?: Variant;
difficulty?: Difficulty;
}
interface WordCounter {
@@ -84,6 +89,7 @@ export interface SpeakingExam {
isDiagnostic: boolean;
variant?: Variant;
instructorGender: InstructorGender;
difficulty?: Difficulty;
}
export type Exercise =