base con autenticacion, registro, modulo encuestas
This commit is contained in:
35
apps/web/feactures/statistics/schemas/statistics.ts
Normal file
35
apps/web/feactures/statistics/schemas/statistics.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user