aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/question.ts
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-13 20:44:04 +0200
committerGravatar ks129 <[email protected]>2020-12-13 20:44:04 +0200
commit3a9c7c146ef3b5ab9650fbb83e1a338eec73ee3a (patch)
tree1d522dc4af0b72985c1b69c45313e627f6d1c302 /src/api/question.ts
parentMerge pull request #28 from python-discord/jb3-patch-1 (diff)
Update question types and interface to match changes in backend
Diffstat (limited to 'src/api/question.ts')
-rw-r--r--src/api/question.ts16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/api/question.ts b/src/api/question.ts
index e051459..bdd6b99 100644
--- a/src/api/question.ts
+++ b/src/api/question.ts
@@ -1,11 +1,17 @@
export enum QuestionType {
- Text,
- Checkbox,
- Radio,
- Code
+ TextArea = "textarea",
+ Checkbox = "checkbox",
+ Radio = "radio",
+ Code = "code",
+ Select = "select",
+ ShortText = "short_text",
+ Range = "range",
+ Section = "section"
}
export interface Question {
+ id: string,
name: string,
- type: QuestionType
+ type: QuestionType,
+ data: { [key: string]: any }
}