|
|
|
|
@ -11,7 +11,7 @@ export async function createCameraDevice(payload: Record<string, unknown>) { con
|
|
|
|
|
export async function updateCameraDevice(id: number, payload: Record<string, unknown>) { const { data } = await http.put(`/camera-devices/${id}`, payload); return data }
|
|
|
|
|
export async function deleteCameraDevice(id: number) { const { data } = await http.delete(`/camera-devices/${id}`); return data }
|
|
|
|
|
export async function retryCameraDevice(id: number) { const { data } = await http.post(`/camera-devices/${id}/retry`); return data }
|
|
|
|
|
export async function fetchCameraHealth() { const { data } = await http.get('/camera-health'); return data }
|
|
|
|
|
export async function fetchCameraHealth() { const { data } = await http.get('/camera-health', { timeout: 30000 }); return data }
|
|
|
|
|
export async function fetchCameraAlerts(params?: Record<string, unknown>) { const { data } = await http.get('/camera-alerts', { params }); return data }
|
|
|
|
|
export async function acknowledgeCameraAlert(id: number) { const { data } = await http.post(`/camera-alerts/${id}/acknowledge`); return data }
|
|
|
|
|
export async function fetchCameraSettings() { const { data } = await http.get('/camera-monitor-settings'); return data }
|
|
|
|
|
|