feat: add functionality to fetch and display ongoing extractions with toast notifications
This commit is contained in:
@@ -125,6 +125,16 @@ export class ExtractionsService {
|
||||
const response = await apiClient.get<GetExtractionsResponse>(url)
|
||||
return response
|
||||
}
|
||||
|
||||
/**
|
||||
* Get currently processing extractions
|
||||
*/
|
||||
async getProcessingExtractions(): Promise<ExtractionInfo[]> {
|
||||
const response = await apiClient.get<ExtractionInfo[]>(
|
||||
'/api/v1/extractions/processing/current'
|
||||
)
|
||||
return response
|
||||
}
|
||||
}
|
||||
|
||||
export const extractionsService = new ExtractionsService()
|
||||
|
||||
Reference in New Issue
Block a user