aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
authorMax Nanis2025-06-06 16:32:17 +0700
committerMax Nanis2025-06-06 16:32:17 +0700
commit696dee6a6a9506fcf771d0ec4911dcc82a279fda (patch)
tree3e8d0bde7cded0f3e1fba82e3af1f2253c06bcbf /src/types.ts
parent2f675eecec576b1ab17260e2513e1eec187a81d2 (diff)
downloadpanel-ui-696dee6a6a9506fcf771d0ec4911dcc82a279fda.tar.gz
panel-ui-696dee6a6a9506fcf771d0ec4911dcc82a279fda.zip
Lots of reducer work to organize active Question in redux state (rather than useState). Various UX/CSS checks for Pagination state.
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts74
1 files changed, 0 insertions, 74 deletions
diff --git a/src/types.ts b/src/types.ts
deleted file mode 100644
index b6b46b9..0000000
--- a/src/types.ts
+++ /dev/null
@@ -1,74 +0,0 @@
-/* ------ Generic ------ */
-export interface GRLWidgetSettings {
- targetId: string,
- bpid: string;
- bpuid: string;
- offerwall: string;
- walletMode: boolean;
- panelName: string | null;
- leaderboard: boolean;
-}
-
-/* ------ Buckets ------ */
-
-/* ------ Profiling Questions ------ */
-export type QuestionType = "MC" | "TE"
-export type SelectorType = "SL" | "ML" | "SA" | "MA"
-
-export interface PatternType {
- message: string
- pattern: string
-}
-
-export interface ValidationType {
- patterns: PatternType[]
-}
-
-export interface ChoiceType {
- order: number; // 0 index
- choice_id: string; // string of a number
- choice_text: string
-
- exclusive?: boolean
- task_count?: number
- task_score?: number
-}
-
-export interface ConfigurationType {
- max_length?: number
- max_select?: number
-}
-
-export interface ProfilingQuestionType {
- $comment?: string
-
- choices: ChoiceType[]
- validation: ValidationType
- configuration: ConfigurationType
-
- country_iso: string
- language_iso: string
-
- question_id: string
- question_text: string
- question_type: QuestionType
-
- selector: SelectorType
- task_count?: number
- task_score: number
- p: number
-
- // Private!
- _complete: boolean
- _processing: boolean
- _answer: string[]
-}
-
-export interface AnswerValueItemType {
- value: string
-}
-
-export interface AnswerType {
- question_id: string
- values: AnswerValueItemType[]
-} \ No newline at end of file