diff --git a/src/v1/epoc.ts b/src/v1/epoc.ts index ea6555270e3450d0a7a0bc43b55a5c03e4ee4d05..2c0ce081611124a4549a28e6b8a75e50b89ec75d 100644 --- a/src/v1/epoc.ts +++ b/src/v1/epoc.ts @@ -49,6 +49,5 @@ export interface Chapter { export interface Parameters { chapterParameter?: string; - easierScoring?: boolean; openQuestionButton?: string; } diff --git a/src/v1/question.ts b/src/v1/question.ts index 940618228f0607fe53f1d7efbf1fcb6210ccb8ad..919c9e4dfce0a773aa4ba0ce6deeddbc216c6c58 100644 --- a/src/v1/question.ts +++ b/src/v1/question.ts @@ -7,8 +7,17 @@ export interface Question { label: string; responses: Array<Response>; correctResponse: string|Array<string>|Array<{label: string, values: string[]}>; + + /** + * The explanation of the correction of the question + * @deprecated use feedback property + */ explanation: html; - easierScoring?: boolean; + + /** + * The global feedback of the question + */ + feedback: html; } export interface DragAndDropquestion extends Question{ @@ -49,5 +58,6 @@ export interface CustomQuestion extends Question { export interface Response { label: string; value: string; - explanation?: string; + feedback?: string; + score?:number; } \ No newline at end of file diff --git a/src/v2/question.ts b/src/v2/question.ts index 7181b48dfee38e8191d466cdfff8404b9df78acf..8363685ddcb99b718e8a19ceef8b94e1e25068f6 100644 --- a/src/v2/question.ts +++ b/src/v2/question.ts @@ -37,8 +37,14 @@ export interface Question { /** * The explanation of the correction of the question + * @deprecated use feedback property */ explanation: html; + + /** + * The global feedback of the question + */ + feedback: html; } /** @@ -54,6 +60,16 @@ export interface Response { * The hidden value of the response */ value: string; + + /** + * The feedback of this specific response + */ + feedback?: string; + + /** + * The partial score of this particular response. If set the question total score is based on the sum of partial scores + */ + score?: number } /**