feat: implement groups risk overview feature with analytics and routes

This commit is contained in:
Jose Selesan
2026-09-24 20:45:11 -03:00
parent 2e184845e1
commit efde1aaf33
11 changed files with 382 additions and 16 deletions

View File

@@ -64,4 +64,20 @@ export const UpdateStudentStatusResultSchema = z.object({
attendeeId: z.string(),
status: attendeeStatusSchema,
});
export type UpdateStudentStatusResult = z.output<typeof UpdateStudentStatusResultSchema>;
export type UpdateStudentStatusResult = z.output<typeof UpdateStudentStatusResultSchema>;
export const groupRiskLevelSchema = z.enum(['NONE', 'MEDIUM', 'HIGH']);
export type GroupRiskLevel = z.output<typeof groupRiskLevelSchema>;
export const GroupRiskSummarySchema = z.object({
groupId: z.string(),
groupName: z.string(),
riskLevel: groupRiskLevelSchema,
});
export type GroupRiskSummary = z.output<typeof GroupRiskSummarySchema>;
export const GroupsRiskOverviewSchema = z.object({
items: z.array(GroupRiskSummarySchema),
});
export type GroupsRiskOverview = z.output<typeof GroupsRiskOverviewSchema>;
export type GroupsRiskOverviewDto = GroupsRiskOverview;