refactor: remove job ID handling from website crawl components and update related hooks

This commit is contained in:
twwu
2025-06-06 18:52:32 +08:00
parent 3e2f12b065
commit 9b9640b3db
6 changed files with 97 additions and 26 deletions

View File

@ -158,7 +158,26 @@ export type PipelineDatasourceNodeRunRequest = {
datasource_type: DatasourceType
}
export type PipelineDatasourceNodeRunResponse = Record<string, any>
export type PipelineDatasourceNodeRunResponse = {
job_id?: string
status: 'processing' | 'completed'
result: Record<string, any>
provider_type: DatasourceType
}
export type PipelineDatasourceNodeRunStatusRequest = {
pipeline_id: string
node_id: string
job_id: string
datasource_type: DatasourceType
}
export type PipelineDatasourceNodeRunStatusResponse = {
provider_type: DatasourceType
result: Record<string, any>
status: 'processing' | 'completed'
job_id: string
}
export type PublishedPipelineInfoResponse = {
id: string