d67d6eb2cd
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 2m40s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 2m40s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 3m15s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 4m3s
CI/CD Pipeline / Build Staging Web Image (push) Failing after 4m3s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 7m21s
CI/CD Pipeline / Build Staging API Image (push) Successful in 8m27s
CI/CD Pipeline / Unit Tests (push) Successful in 10m29s
CI/CD Pipeline / Integration Tests (push) Successful in 3m42s
CI/CD Pipeline / CI Gate (push) Failing after 830h14m16s
CI/CD Pipeline / Canary Release to Production (push) Failing after 830h14m48s
CI/CD Pipeline / Deploy Production (push) Failing after 830h14m48s
CI/CD Pipeline / ACR Image Cleanup (push) Failing after 830h16m54s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 830h14m49s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 830h16m54s
CI/CD Pipeline / Build Production Web Image (push) Failing after 830h14m49s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 830h16m56s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 830h25m18s
CI/CD Pipeline / PR Build Web Image (push) Failing after 830h25m20s
CI/CD Pipeline / Frontend Lint (push) Failing after 830h25m20s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 830h25m24s
CI/CD Pipeline / Production Browser E2E (push) Failing after 830h48m19s
CI/CD Pipeline / Build Production API Image (push) Failing after 830h48m20s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 830h50m25s
CI/CD Pipeline / PR Build API Image (push) Failing after 830h58m51s
15 lines
475 B
TypeScript
Executable File
15 lines
475 B
TypeScript
Executable File
import apiClient from "../client"
|
|
import type { ConfirmGenerationRequest, ConfirmGenerationResponse } from "./types"
|
|
|
|
/** 确认生成 — 基于预览任务创建正式生成任务 */
|
|
export const confirmGeneration = async (
|
|
taskId: string,
|
|
params: ConfirmGenerationRequest,
|
|
): Promise<ConfirmGenerationResponse> => {
|
|
const response = await apiClient.post<ConfirmGenerationResponse>(
|
|
`/generation/tasks/${taskId}/confirm`,
|
|
params,
|
|
)
|
|
return response.data
|
|
}
|