All files / src/services attendeeDashboardService.ts

0% Statements 0/2
100% Branches 0/0
0% Functions 0/1
0% Lines 0/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                                   
/**
 * Attendee Dashboard Service (Story 7.6)
 *
 * HTTP client for the attendee's event-history dashboard. Authenticated — the backend derives the
 * attendee from the JWT (no params). Mirrors `speakerPortalService.getDashboard()`.
 */
 
import apiClient from '@/services/api/apiClient';
import type { components } from '@/types/generated/events-core-api.types';
 
export type AttendeeDashboard = components['schemas']['AttendeeDashboardResponse'];
export type AttendeeEventCard = components['schemas']['AttendeeEventCardResponse'];
 
export async function getDashboard(): Promise<AttendeeDashboard> {
  const response = await apiClient.get<AttendeeDashboard>('/attendee-portal/dashboard');
  return response.data;
}