chore: remove unused UI components, dummy data, and theme provider
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
export type QuestionType =
|
||||
| "short_text"
|
||||
| "long_text"
|
||||
| "multiple_choice"
|
||||
| "checkbox"
|
||||
| "dropdown"
|
||||
| "date"
|
||||
| "rating"
|
||||
|
||||
export interface QuestionOption {
|
||||
id: number
|
||||
label: string
|
||||
position: number
|
||||
}
|
||||
|
||||
export interface Question {
|
||||
id: string
|
||||
type: QuestionType
|
||||
title: string
|
||||
required: boolean
|
||||
position: number
|
||||
options: QuestionOption[]
|
||||
}
|
||||
|
||||
export interface FormSummary {
|
||||
id: string
|
||||
title: string
|
||||
description: string
|
||||
response_count: number
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export interface FormDetail {
|
||||
id: string
|
||||
user_id: string
|
||||
title: string
|
||||
description: string
|
||||
response_count: number
|
||||
questions: Question[]
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export interface CreateQuestionOption {
|
||||
label: string
|
||||
position: number
|
||||
}
|
||||
|
||||
export interface CreateQuestion {
|
||||
type: QuestionType
|
||||
title: string
|
||||
required: boolean
|
||||
position: number
|
||||
options: CreateQuestionOption[]
|
||||
}
|
||||
|
||||
export interface CreateFormPayload {
|
||||
title: string
|
||||
description: string
|
||||
questions: CreateQuestion[]
|
||||
}
|
||||
|
||||
export interface UpdateFormPayload {
|
||||
title: string
|
||||
description: string
|
||||
questions: CreateQuestion[]
|
||||
}
|
||||
Reference in New Issue
Block a user