automation overview page implemeantion initital complete
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user