(inputFormatValue: unknown)
| 127 | * them straight to the executor's file channel without a re-upload. |
| 128 | */ |
| 129 | export function collectInputFormatFiles(inputFormatValue: unknown): InputFormatFile[] { |
| 130 | if (!Array.isArray(inputFormatValue)) return [] |
| 131 | return inputFormatValue.flatMap((field) => |
| 132 | field && |
| 133 | typeof field === 'object' && |
| 134 | isFileFieldType((field as { type?: unknown }).type as string) |
| 135 | ? parseInputFormatFiles((field as { value?: unknown }).value) |
| 136 | : [] |
| 137 | ) |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Extracts input fields from workflow blocks. |
no test coverage detected