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

35 lines
580 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{
questionType: QuestionType,
answer?: number;
}
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
}