(overrides: Partial<WorkflowGroup> & { id: string })
| 12 | import type { RowExecutionMetadata, TableRow, WorkflowGroup } from '@/lib/table/types' |
| 13 | |
| 14 | function makeGroup(overrides: Partial<WorkflowGroup> & { id: string }): WorkflowGroup { |
| 15 | return { |
| 16 | workflowId: `wf-${overrides.id}`, |
| 17 | outputs: [{ blockId: 'b1', path: 'out', columnName: `${overrides.id}_out` }], |
| 18 | ...overrides, |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | function makeRow( |
| 23 | data: Record<string, unknown> = {}, |