import type { DashboardResponse, EnvironmentHealth, DatabaseInfo } from './dto/dashboard' export function getDashboard(): Promise { return useApi().get('/dashboard', undefined, { toast: false, }) } export function getEnvironmentHealth(envId: number): Promise { return useApi().get(`/environments/${envId}/health`, undefined, { toast: false, }) } export function getDatabaseInfo(envId: number): Promise { return useApi().get(`/environments/${envId}/database`, undefined, { toast: false, }) }