import React from 'react'; import type { JobStatus } from '../services/job/types.js'; import type { ImportEntity, ImportMode } from '../services/types.js'; import type { GridFilters } from '../ui/gridUrl.js'; /** A row of the list, as the GraphQL query gives it. */ export interface GridJob { uuid: string; entity: ImportEntity; mode: ImportMode; status: JobStatus; fileName: string; counts: Record | null; createdByName: string | null; createdAt: { text: string; } | null; viewUrl: string; /** A worker may be writing: the job cannot be deleted. */ active: boolean; } export interface ImportGridTableProps { jobs: readonly GridJob[]; currentFilters: Array<{ key: string; operation: string; value: string; }>; filters: GridFilters; selected: readonly string[]; onSelect(selected: string[]): void; /** A filter changed: the page goes to the address with it. */ onFilter(change: Partial): void; onClear(): void; onDelete(): void; } /** * The table of past imports (spec 8.1): date, file, type, mode, status, rows, * created, updated, failed and who uploaded. A file opens its page. A job that * is at work cannot be selected, because it cannot be deleted. */ export declare function ImportGridTable(props: ImportGridTableProps): React.JSX.Element;