add imutable ids to some exam arrays to detect and log changes between two exams.

This commit is contained in:
Joao Correia
2025-03-02 00:10:57 +00:00
parent 4e3cfec9e8
commit 32cd8495d6
12 changed files with 309 additions and 225 deletions

View File

@@ -241,6 +241,7 @@ export interface InteractiveSpeakingExercise extends Section {
}
export interface FillBlanksMCOption {
uuid: string; // added later to fulfill the need for an immutable identifier.
id: string;
options: {
A: string;
@@ -258,6 +259,7 @@ export interface FillBlanksExercise {
text: string; // *EXAMPLE: "They tried to {{1}} burning"
allowRepetition?: boolean;
solutions: {
uuid: string; // added later to fulfill the need for an immutable identifier.
id: string; // *EXAMPLE: "1"
solution: string; // *EXAMPLE: "preserve"
}[];
@@ -281,6 +283,7 @@ export interface TrueFalseExercise {
}
export interface TrueFalseQuestion {
uuid: string; // added later to fulfill the need for an immutable identifier.
id: string; // *EXAMPLE: "1"
prompt: string; // *EXAMPLE: "What does her briefcase look like?"
solution: "true" | "false" | "not_given" | undefined; // *EXAMPLE: "True"
@@ -293,6 +296,7 @@ export interface WriteBlanksExercise {
id: string;
text: string; // *EXAMPLE: "The Government plans to give ${{14}}"
solutions: {
uuid: string; // added later to fulfill the need for an immutable identifier.
id: string; // *EXAMPLE: "14"
solution: string[]; // *EXAMPLE: ["Prescott"] - All possible solutions (case sensitive)
}[];
@@ -319,12 +323,14 @@ export interface MatchSentencesExercise {
}
export interface MatchSentenceExerciseSentence {
uuid: string; // added later to fulfill the need for an immutable identifier.
id: string;
sentence: string;
solution: string;
}
export interface MatchSentenceExerciseOption {
uuid: string; // added later to fulfill the need for an immutable identifier.
id: string;
sentence: string;
}
@@ -346,6 +352,7 @@ export interface MultipleChoiceExercise {
export interface MultipleChoiceQuestion {
variant: "image" | "text";
uuid: string; // added later to fulfill the need for an immutable identifier.
id: string; // *EXAMPLE: "1"
prompt: string; // *EXAMPLE: "What does her briefcase look like?"
solution: string; // *EXAMPLE: "A"