Updated Writing and Speaking to have a tab system for the evaluation vs the "perfect answer"

This commit is contained in:
Tiago Ribeiro
2023-12-06 14:48:54 +00:00
parent 523149327b
commit 72083439af
5 changed files with 200 additions and 60 deletions

View File

@@ -92,6 +92,17 @@ export interface Evaluation {
overall: number;
task_response: {[key: string]: number};
}
interface InteractiveSpeakingEvaluation extends Evaluation {
perfect_answer_1?: string;
perfect_answer_2?: string;
perfect_answer_3?: string;
}
interface CommonEvaluation extends Evaluation {
perfect_answer?: string;
}
export interface WritingExercise {
id: string;
type: "writing";
@@ -106,7 +117,7 @@ export interface WritingExercise {
userSolutions: {
id: string;
solution: string;
evaluation?: Evaluation;
evaluation?: CommonEvaluation;
}[];
}
@@ -120,7 +131,7 @@ export interface SpeakingExercise {
userSolutions: {
id: string;
solution: string;
evaluation?: Evaluation;
evaluation?: CommonEvaluation;
}[];
}
@@ -133,7 +144,7 @@ export interface InteractiveSpeakingExercise {
userSolutions: {
id: string;
solution: {question: string; answer: string}[];
evaluation?: Evaluation;
evaluation?: InteractiveSpeakingEvaluation;
}[];
}