From 20fb39da09b80c76dd593346b025045fb8211435 Mon Sep 17 00:00:00 2001 From: Benoit Rospars <benoit.rospars@inria.fr> Date: Mon, 20 Mar 2023 12:10:10 +0100 Subject: [PATCH] Remove unused properties --- src/v1/epoc.ts | 1 - src/v1/question.ts | 21 +++++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/v1/epoc.ts b/src/v1/epoc.ts index 38b3c93..1fd6822 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 d24cf2d..00cd030 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 -- GitLab