Parse large Excel imports asynchronously to avoid gateway 502 timeouts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-03 18:14:17 +03:30
co-authored by Cursor
parent d3fb92a5e2
commit ac57b8ac33
5 changed files with 270 additions and 60 deletions
+13
View File
@@ -1260,6 +1260,19 @@ export interface ImportContactsResult {
/** مرحله بعدی وجود دارد */
hasMore?: boolean;
nextOffset?: number;
/** وضعیت آماده‌سازی ناهمگام فایل بزرگ */
status?: "parsing" | "ready" | "error";
parsed?: number;
}
export interface ExcelImportPrepareStatus {
sessionId: string;
status: "parsing" | "ready" | "error";
total: number;
parsed: number;
error?: string;
hasMore?: boolean;
nextOffset?: number;
}
export interface ExcelFieldOption {