| 30 | type UploadJobStatus = "QUEUED" | "RUNNING" | "COMPLETED" | "FAILED"; |
| 31 | |
| 32 | export interface UploadJobRecord { |
| 33 | id: string; |
| 34 | sourceId: string; |
| 35 | fileName: string; |
| 36 | title: string; |
| 37 | status: UploadJobStatus; |
| 38 | stage: IngestProgressStage; |
| 39 | message: string; |
| 40 | progress: number; |
| 41 | chunkCount?: number; |
| 42 | eventCount?: number; |
| 43 | currentChunk?: number; |
| 44 | totalChunks?: number; |
| 45 | documentId?: string; |
| 46 | traceId?: string; |
| 47 | error?: string; |
| 48 | createdAt: string; |
| 49 | updatedAt: string; |
| 50 | } |
| 51 | |
| 52 | export class WebuiService { |
| 53 | private readonly uploadJobs = new Map<string, UploadJobRecord>(); |
nothing calls this directly
no outgoing calls
no test coverage detected