automation overview page implemeantion initital complete

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-17 08:24:44 +00:00
parent 79398c908d
commit 6b1fa0c1ee
22 changed files with 3789 additions and 178 deletions

View File

@@ -232,6 +232,34 @@ export const automationService = {
return response.runs;
},
/**
* Get enhanced automation run history with pagination
*/
getEnhancedHistory: async (
siteId: number,
page: number = 1,
pageSize: number = 20
): Promise<import('../types/automation').HistoryResponse> => {
return fetchAPI(buildUrl('/history/', { site_id: siteId, page, page_size: pageSize }));
},
/**
* Get overview statistics with predictive analysis
*/
getOverviewStats: async (siteId: number): Promise<import('../types/automation').OverviewStatsResponse> => {
return fetchAPI(buildUrl('/overview_stats/', { site_id: siteId }));
},
/**
* Get detailed information about a specific run
*/
getRunDetail: async (
siteId: number,
runId: string
): Promise<import('../types/automation').RunDetailResponse> => {
return fetchAPI(buildUrl('/run_detail/', { site_id: siteId, run_id: runId }));
},
/**
* Get automation run logs
*/