Files
profi-frontend/src/types/survey.ts

47 lines
787 B
TypeScript
Raw Normal View History

2025-05-30 19:32:58 +03:00
import {UniqueItem} from "./common.ts";
export interface Survey extends UniqueItem{
title: string;
2025-05-31 10:57:27 +03:00
description: string;
2025-05-30 19:32:58 +03:00
}
2025-05-31 10:57:27 +03:00
interface Statement extends UniqueItem{
text: string;
score_variable: number;
}
2025-05-31 18:15:52 +03:00
export enum QuestionType{
QuestionPair,
AgreementQuestion
}
export interface Question extends UniqueItem{
2025-06-01 00:52:20 +03:00
questionType: QuestionType
2025-05-31 18:15:52 +03:00
}
2025-05-31 10:57:27 +03:00
2025-05-31 18:15:52 +03:00
export interface QuestionPair extends Question{
statements: Statement[]
}
export interface AgreementQuestion extends Question{
question: string;
score_variable: number;
2025-05-31 10:57:27 +03:00
}
2025-05-31 22:12:25 +03:00
export interface ScoreVariable {
id: string;
name: string;
title: string;
description: string;
2025-06-01 00:52:20 +03:00
survey: number;
2025-06-01 16:17:09 +03:00
}
export interface Profession extends UniqueItem {
name: string;
description: string;
2025-05-31 22:12:25 +03:00
}