( subBlocks: Record<string, SubBlockWithValue> | undefined )
| 192 | } |
| 193 | |
| 194 | function getLegacyStarterOutputs( |
| 195 | subBlocks: Record<string, SubBlockWithValue> | undefined |
| 196 | ): OutputDefinition { |
| 197 | const startWorkflowValue = subBlocks?.startWorkflow?.value |
| 198 | |
| 199 | if (startWorkflowValue === 'chat') { |
| 200 | return { ...CHAT_OUTPUTS } |
| 201 | } |
| 202 | |
| 203 | if ( |
| 204 | startWorkflowValue === 'api' || |
| 205 | startWorkflowValue === 'run' || |
| 206 | startWorkflowValue === 'manual' |
| 207 | ) { |
| 208 | const normalizedInputFormat = normalizeInputFormatValue(subBlocks?.inputFormat?.value) |
| 209 | return applyInputFormatFields(normalizedInputFormat, {}) |
| 210 | } |
| 211 | |
| 212 | return {} |
| 213 | } |
| 214 | |
| 215 | function shouldClearBaseOutputs( |
| 216 | blockType: string, |
no test coverage detected