35 lines
669 B
TypeScript
35 lines
669 B
TypeScript
export interface SurveyStatisticsData {
|
|
totalSurveys: number;
|
|
totalResponses: number;
|
|
completionRate: number;
|
|
surveysByMonth: {
|
|
month: string;
|
|
count: number;
|
|
}[];
|
|
responsesByAudience: {
|
|
name: string;
|
|
value: number;
|
|
}[];
|
|
responseDistribution: {
|
|
title: string;
|
|
responses: number;
|
|
}[];
|
|
surveyDetails: SurveyDetail[];
|
|
}
|
|
|
|
export interface SurveyDetail {
|
|
id: number;
|
|
title: string;
|
|
description: string;
|
|
totalResponses: number;
|
|
targetAudience: string;
|
|
createdAt: string;
|
|
closingDate?: string;
|
|
questionStats: QuestionStat[];
|
|
}
|
|
|
|
export interface QuestionStat {
|
|
questionId: string;
|
|
label: string;
|
|
count: number;
|
|
} |