aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/question.ts
blob: bdd6b994ac0e18448ba9553fe58c68f16e8d3e0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export enum QuestionType {
    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,
    data: { [key: string]: any }
}