mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
21 lines
389 B
TypeScript
21 lines
389 B
TypeScript
export const configuredOutputs = (
|
|
version: number,
|
|
parameters: { enableResponseOutput?: boolean },
|
|
) => {
|
|
const multipleOutputs = version === 1.3 || (version >= 1.4 && parameters.enableResponseOutput);
|
|
if (multipleOutputs) {
|
|
return [
|
|
{
|
|
type: 'main',
|
|
displayName: 'Input Data',
|
|
},
|
|
{
|
|
type: 'main',
|
|
displayName: 'Response',
|
|
},
|
|
];
|
|
}
|
|
|
|
return ['main'];
|
|
};
|