Merged in feature/training-content (pull request #62)

Feature/training content

Approved-by: Tiago Ribeiro
This commit is contained in:
carlos.mesquita
2024-08-06 18:46:43 +00:00
committed by Tiago Ribeiro
17 changed files with 1110 additions and 448 deletions

View File

@@ -1,4 +1,4 @@
import {Module} from ".";
import { Module } from ".";
export type Exam = ReadingExam | ListeningExam | WritingExam | SpeakingExam | LevelExam;
export type Variant = "full" | "partial";
@@ -100,17 +100,21 @@ export interface Evaluation {
misspelled_pairs?: {correction: string | null; misspelled: string}[];
}
interface InteractiveSpeakingEvaluation extends Evaluation {
perfect_answer_1?: {answer: string};
transcript_1?: string;
fixed_text_1?: string;
perfect_answer_2?: {answer: string};
transcript_2?: string;
fixed_text_2?: string;
perfect_answer_3?: {answer: string};
transcript_3?: string;
fixed_text_3?: string;
}
type InteractivePerfectAnswerKey = `perfect_answer_${number}`;
type InteractiveTranscriptKey = `transcript_${number}`;
type InteractiveFixedTextKey = `fixed_text_${number}`;
type InteractivePerfectAnswerType = { [key in InteractivePerfectAnswerKey]: { answer: string } };
type InteractiveTranscriptType = { [key in InteractiveTranscriptKey]?: string };
type InteractiveFixedTextType = { [key in InteractiveFixedTextKey]?: string };
interface InteractiveSpeakingEvaluation extends Evaluation,
InteractivePerfectAnswerType,
InteractiveTranscriptType,
InteractiveFixedTextType
{}
interface SpeakingEvaluation extends CommonEvaluation {
perfect_answer_1?: string;