Add tenant import progress polling

This commit is contained in:
2026-07-14 17:27:59 +02:00
parent 473c92d2e4
commit a9b063aa89
4 changed files with 253 additions and 111 deletions

View File

@@ -54,11 +54,20 @@ export type TenantImportResult = {
tenantId: number
tables: { table: string; rows: number }[]
files: { restored: number; skipped: number }
importId?: string
exportId?: string
status?: string
filename?: string
filesDone?: number
filesTotal?: number
error?: string | null
}
export type TenantExportJob = {
exportId: string
importId?: string
tenantId?: number
operation?: "export" | "import" | string
status: "queued" | "running" | "ready" | "failed" | string
filename: string
fileSize?: number | null