aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/question.ts
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-14 19:18:19 +0000
committerGravatar GitHub <[email protected]>2020-12-14 19:18:19 +0000
commita1963eb56f9682a6315a06a075d09314822dbfd9 (patch)
treed0856e1326516447a33951de623770787f6ef996 /src/api/question.ts
parentMerge pull request #29 from python-discord/dependabot/npm_and_yarn/ini-1.3.8 (diff)
parentSimplify Axios client baseURL definition (diff)
Merge pull request #30 from python-discord/ks123/discovery
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 }
}