feat(ui): surface rollback actions in the service catalog

Add retryRollback / releaseRollback / retryCloudDMRegistration API
bindings and wire the corresponding actions and status presentation
into the delivery task view.
This commit is contained in:
Hungerdream
2026-07-28 14:29:34 +08:00
parent be39f2a03c
commit d5bf42ad01
2 changed files with 184 additions and 10 deletions
+18
View File
@@ -79,6 +79,24 @@ export const deliveryApi = {
method: 'POST',
})
},
async retryRollback(taskId: string): Promise<void> {
await authRequest(`/auth/api/v1/delivery/tasks/${encodeURIComponent(taskId)}/rollback/retry`, {
method: 'POST',
})
},
async releaseRollback(taskId: string): Promise<void> {
await authRequest(`/auth/api/v1/delivery/tasks/${encodeURIComponent(taskId)}/rollback/release`, {
method: 'POST',
})
},
async retryCloudDMRegistration(taskId: string): Promise<void> {
await authRequest(`/auth/api/v1/delivery/tasks/${encodeURIComponent(taskId)}/clouddm/retry`, {
method: 'POST',
})
},
}
function createIdempotencyKey(payload: CreateMySQLDeliveryPayload) {