feat: Create Drama 恢复接口接收执行 ID
This commit is contained in:
1 parent
d6cd3ec792
commit
0017965fec
1 file changed
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
import { request, optionalResource } from '../../lib/http'
|
import { request, optionalResource } from '../../lib/http'
|
||||||
import type { Checkpoint } from '../workflows/types'
|
import type { Checkpoint } from '../workflows/types'
|
||||||
|
import type { WorkflowExecutionStart } from '../workflows/execution.types'
|
||||||
import type { CreateProjectInput, DramaState, Project, ProjectDetail, UpdateProjectInput } from './types'
|
import type { CreateProjectInput, DramaState, Project, ProjectDetail, UpdateProjectInput } from './types'
|
||||||
|
|
||||||
/** 项目与 Create Drama API;路径严格对应后端 dev。 */
|
/** 项目与 Create Drama API;路径严格对应后端 dev。 */
|
||||||
@@ -25,5 +26,5 @@ export const projectsApi = {
|
|||||||
checkpoints: (id: string, signal?: AbortSignal) =>
|
checkpoints: (id: string, signal?: AbortSignal) =>
|
||||||
request<Checkpoint[]>(`/projects/${encodeURIComponent(id)}/checkpoints`, { signal }),
|
request<Checkpoint[]>(`/projects/${encodeURIComponent(id)}/checkpoints`, { signal }),
|
||||||
resume: (id: string, action: 'resume-generation' | 'resume-rewrite') =>
|
resume: (id: string, action: 'resume-generation' | 'resume-rewrite') =>
|
||||||
request<unknown>(`/projects/${encodeURIComponent(id)}/${action}`, { method: 'POST', timeoutMs: 0 })
|
request<WorkflowExecutionStart>(`/projects/${encodeURIComponent(id)}/${action}`, { method: 'POST' })
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user