feat: implement groups risk overview feature with analytics and routes
This commit is contained in:
@@ -19,6 +19,8 @@ import type {
|
||||
GroupDto,
|
||||
GroupInviteInfoDto,
|
||||
GroupList,
|
||||
GroupRiskSummary,
|
||||
GroupsRiskOverview,
|
||||
GroupWaitlistEntryDto,
|
||||
GroupWaitlistList,
|
||||
HomeSummaryDto,
|
||||
@@ -223,6 +225,8 @@ export const getGroupAnalytics = (groupId: string) =>
|
||||
export const getStudentsAtRisk = (groupId: string) =>
|
||||
apiFetch<StudentsAtRisk>(`/api/v1/groups/${groupId}/students-at-risk`)
|
||||
|
||||
export const getGroupsRiskOverview = () => apiFetch<GroupsRiskOverview>('/api/v1/groups-risk/overview')
|
||||
|
||||
export const getAttendeeHistory = (groupId: string, attendeeId: string) =>
|
||||
apiFetch<AttendeeHistory>(`/api/v1/groups/${groupId}/attendees/${attendeeId}/history`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user