n8n/packages/nodes-base/nodes/Start/Start.node.ts
कारतोफ्फेलस्क्रिप्ट™ 6aa7b93473
refactor(core): Deprecate prepareOutputData (no-changelog) (#7091)
2023-09-05 12:59:02 +02:00

42 lines
948 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type {
IExecuteFunctions,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
export class Start implements INodeType {
description: INodeTypeDescription = {
displayName: 'Start',
name: 'start',
icon: 'fa:play',
group: ['input'],
version: 1,
description: 'Starts the workflow execution from this node',
maxNodes: 1,
hidden: true,
defaults: {
name: 'Start',
color: '#00e000',
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
inputs: [],
outputs: ['main'],
properties: [
{
displayName:
'This node is where a manual workflow execution starts. To make one, go back to the canvas and click execute workflow',
name: 'notice',
type: 'notice',
default: '',
},
],
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const items = this.getInputData();
return [items];
}
}