view data fixes
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { DashboardApiClient } from './DashboardApiClient';
|
||||
|
||||
describe('DashboardApiClient', () => {
|
||||
it('should be defined', () => {
|
||||
expect(DashboardApiClient).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,14 @@
|
||||
import { BaseApiClient } from '../base/BaseApiClient';
|
||||
import type { DashboardOverviewDTO } from '../../types/generated/DashboardOverviewDTO';
|
||||
|
||||
/**
|
||||
* Dashboard API Client
|
||||
*
|
||||
* Handles dashboard overview data aggregation.
|
||||
*/
|
||||
export class DashboardApiClient extends BaseApiClient {
|
||||
/** Get dashboard overview data */
|
||||
getDashboardOverview(): Promise<DashboardOverviewDTO> {
|
||||
return this.get<DashboardOverviewDTO>('/dashboard/overview');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user