aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/question.ts
blob: 9824b601dfb9b791fe9fbb4f0e756cb7025fc45e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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]: string | string[] },
    required: boolean
}