(counts: Record<string, number>, ...keys: string[])
| 71 | } |
| 72 | |
| 73 | const getAggregateCount = (counts: Record<string, number>, ...keys: string[]): number => |
| 74 | keys.reduce((total, key) => total + getCountValue(counts, key), 0) |
| 75 | |
| 76 | const hasActiveDocumentsStatus = (counts: Record<string, number>): boolean => |
| 77 | getAggregateCount(counts, 'PROCESSING', 'processing', 'PARSING', 'parsing', 'ANALYZING', 'analyzing') > 0 || |
no test coverage detected