diff --git a/src/v1/epoc.ts b/src/v1/epoc.ts index 38b3c9376b295ab50c8e1bf9fcebbc65faa0ea8b..1fd6822d3ca2612e9560ab1e5bff800c6c08c3f0 100644 --- a/src/v1/epoc.ts +++ b/src/v1/epoc.ts @@ -35,7 +35,6 @@ export interface Epoc extends EpocMetadata { export interface Chapter { title: string; - image?: string; objectives?: string[]; contents: uid[]; } diff --git a/src/v1/question.ts b/src/v1/question.ts index d24cf2ddba759f25414e03fa0b03dc66cec58fcc..00cd0308579b82e445bdb5e8822dd70361d2384e 100644 --- a/src/v1/question.ts +++ b/src/v1/question.ts @@ -12,27 +12,36 @@ export interface Question { } export interface DragAndDropquestion extends Question{ + type: 'drag-and-drop'; correctResponse: Array<{label: string, values: string[]}>; } export interface MultipleChoiceQuestion extends Question { + type: 'multiple-choice'; correctResponse: Array<string>; } export interface SimpleChoiceQuestion extends Question { + type: 'choice'; correctResponse: string; } -export interface Response { - label: string; - value: string; - explanation?: string; -} - export interface SwipeQuestion extends Question { + type: 'swipe'; correctResponse: Array<{label: string, values: string[]}>; } export interface DropDownListQuestion extends Question { + type: 'dropdown-list'; correctResponse: Array<{label: string, values: string[]}>; +} + +export interface ReorderQuestion extends Question { + type: 'reorder'; +} + +export interface Response { + label: string; + value: string; + explanation?: string; } \ No newline at end of file