47 lines
787 B
TypeScript
47 lines
787 B
TypeScript
import {UniqueItem} from "./common.ts";
|
|
|
|
export interface Survey extends UniqueItem{
|
|
title: string;
|
|
description: string;
|
|
}
|
|
|
|
|
|
interface Statement extends UniqueItem{
|
|
text: string;
|
|
score_variable: number;
|
|
}
|
|
|
|
export enum QuestionType{
|
|
QuestionPair,
|
|
AgreementQuestion
|
|
}
|
|
|
|
export interface Question extends UniqueItem{
|
|
questionType: QuestionType
|
|
}
|
|
|
|
|
|
export interface QuestionPair extends Question{
|
|
statements: Statement[]
|
|
}
|
|
|
|
|
|
|
|
export interface AgreementQuestion extends Question{
|
|
question: string;
|
|
score_variable: number;
|
|
}
|
|
|
|
|
|
export interface ScoreVariable {
|
|
id: string;
|
|
name: string;
|
|
title: string;
|
|
description: string;
|
|
survey: number;
|
|
}
|
|
|
|
export interface Profession extends UniqueItem {
|
|
name: string;
|
|
description: string;
|
|
} |