Finalized the Speaking module exercise

This commit is contained in:
Tiago Ribeiro
2023-07-14 12:08:25 +01:00
parent 6a2fab4f88
commit 2c10a203a5
8 changed files with 128 additions and 24 deletions

View File

@@ -69,12 +69,11 @@ export type Exercise =
| WritingExercise
| SpeakingExercise;
export interface WritingEvaluation {
export interface Evaluation {
comment: string;
overall: number;
task_response: {[key: string]: number};
}
export interface WritingExercise {
id: string;
type: "writing";
@@ -85,11 +84,10 @@ export interface WritingExercise {
url: string;
description: string;
}; //* The url for an image to work as an attachment to show the user
evaluation?: WritingEvaluation;
userSolutions: {
id: string;
solution: string;
evaluation?: WritingEvaluation;
evaluation?: Evaluation;
}[];
}
@@ -102,6 +100,7 @@ export interface SpeakingExercise {
userSolutions: {
id: string;
solution: string;
evaluation?: Evaluation;
}[];
}