Fill Blanks changes
This commit is contained in:
@@ -36,6 +36,7 @@ export interface LevelExam extends ExamBase {
|
||||
|
||||
export interface LevelPart {
|
||||
context?: string;
|
||||
showContextLines?: boolean;
|
||||
exercises: Exercise[];
|
||||
}
|
||||
|
||||
@@ -187,10 +188,10 @@ export interface InteractiveSpeakingExercise {
|
||||
first_title?: string;
|
||||
second_title?: string;
|
||||
text: string;
|
||||
prompts: {text: string; video_url: string}[];
|
||||
prompts: { text: string; video_url: string }[];
|
||||
userSolutions: {
|
||||
id: string;
|
||||
solution: {questionIndex: number; question: string; answer: string}[];
|
||||
solution: { questionIndex: number; question: string; answer: string }[];
|
||||
evaluation?: InteractiveSpeakingEvaluation;
|
||||
}[];
|
||||
topic?: string;
|
||||
@@ -199,13 +200,23 @@ export interface InteractiveSpeakingExercise {
|
||||
variant?: "initial" | "final";
|
||||
}
|
||||
|
||||
export interface FillBlanksMCOption {
|
||||
id: string;
|
||||
options: {
|
||||
A: string;
|
||||
B: string;
|
||||
C: string;
|
||||
D: string;
|
||||
}
|
||||
}
|
||||
|
||||
export interface FillBlanksExercise {
|
||||
prompt: string; // *EXAMPLE: "Complete the summary below. Click a blank to select the corresponding word for it."
|
||||
type: "fillBlanks";
|
||||
id: string;
|
||||
words: (string | {letter: string; word: string})[]; // *EXAMPLE: ["preserve", "unaware"]
|
||||
words: (string | { letter: string; word: string } | FillBlanksMCOption)[]; // *EXAMPLE: ["preserve", "unaware"]
|
||||
text: string; // *EXAMPLE: "They tried to {{1}} burning"
|
||||
allowRepetition: boolean;
|
||||
allowRepetition?: boolean;
|
||||
solutions: {
|
||||
id: string; // *EXAMPLE: "1"
|
||||
solution: string; // *EXAMPLE: "preserve"
|
||||
@@ -214,6 +225,7 @@ export interface FillBlanksExercise {
|
||||
id: string; // *EXAMPLE: "1"
|
||||
solution: string; // *EXAMPLE: "preserve"
|
||||
}[];
|
||||
variant?: string;
|
||||
}
|
||||
|
||||
export interface TrueFalseExercise {
|
||||
@@ -274,6 +286,7 @@ export interface MultipleChoiceExercise {
|
||||
prompt: string; // *EXAMPLE: "Select the appropriate option."
|
||||
questions: MultipleChoiceQuestion[];
|
||||
userSolutions: {question: string; option: string}[];
|
||||
setContextHighlight?: React.Dispatch<React.SetStateAction<string[]>>
|
||||
}
|
||||
|
||||
export interface MultipleChoiceQuestion {
|
||||
|
||||
Reference in New Issue
Block a user