new features

This commit is contained in:
Matthias Hochmeister
2026-03-23 15:07:17 +01:00
parent 34ee80b8c1
commit bfcf1556da
22 changed files with 397 additions and 75 deletions

View File

@@ -108,4 +108,17 @@ export const equipmentApi = {
}
return response.data.data;
},
async getStatusHistory(id: string): Promise<Array<{
alter_status: string;
neuer_status: string;
bemerkung?: string;
geaendert_von_name?: string;
erstellt_am: string;
}>> {
const response = await api.get<{ success: boolean; data: any[] }>(
`/api/equipment/${id}/status-history`
);
return response.data.data ?? [];
},
};