Updated the exams to work based on entities

This commit is contained in:
Tiago Ribeiro
2024-12-30 18:48:27 +00:00
parent f64b50df9e
commit 502cc64f99
3 changed files with 21 additions and 20 deletions

View File

@@ -4,7 +4,7 @@ export type Exam = ReadingExam | ListeningExam | WritingExam | SpeakingExam | Le
export type Variant = "full" | "partial";
export type InstructorGender = "male" | "female" | "varied";
export type Difficulty = BasicDifficulty | CEFRLevels;
export type Difficulty = BasicDifficulty | CEFRLevels;
// Left easy, medium and hard to support older exam versions
export type BasicDifficulty = "easy" | "medium" | "hard";
@@ -19,6 +19,7 @@ export interface ExamBase {
variant?: Variant;
difficulty?: Difficulty;
owners?: string[];
entities?: string[]
shuffle?: boolean;
createdBy?: string; // option as it has been added later
createdAt?: string; // option as it has been added later
@@ -51,7 +52,7 @@ export interface LevelExam extends ExamBase {
}
export interface LevelPart extends Section {
// to support old exams that have reading passage mc on context
// to support old exams that have reading passage mc on context
context?: string;
exercises: Exercise[];
audio?: {