@e-group/material-module
Version:
EGroup Team react component modules.
35 lines (34 loc) • 1.01 kB
TypeScript
export declare type QuestionType = 'text' | 'textarea' | 'choiceone' | 'choicemulti' | 'select' | 'email' | 'date' | 'titleBlock' | 'rating' | string;
export declare type ResponseContent = {
responseContent: string;
responseContentCount: number;
};
export declare type Statistics = {
max: number;
mean: number;
min: number;
standardDeviation: number;
totalScore: number;
};
export declare type Question = {
questionId: string;
questionName: string;
questionDescription?: string;
questionNo: number;
questionType: QuestionType;
isRequired?: number;
optionList?: Option[];
questionRatingStartValue?: number;
questionRatingEndValue?: number;
questionRatingStartName?: string;
questionRatingEndName?: string;
questionCount?: number;
responseContentList?: ResponseContent[];
statistics?: Statistics;
};
export declare type Option = {
optionId: string;
optionName: string;
optionCount: number;
isOther?: number;
};