2019-06-23 03:35:23 -07:00
|
|
|
import { IExecuteFunctions } from 'n8n-core';
|
2022-08-17 08:50:24 -07:00
|
|
|
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
export class NoOp implements INodeType {
|
|
|
|
description: INodeTypeDescription = {
|
2019-07-26 02:27:46 -07:00
|
|
|
displayName: 'No Operation, do nothing',
|
2019-06-23 03:35:23 -07:00
|
|
|
name: 'noOp',
|
2019-07-26 02:27:46 -07:00
|
|
|
icon: 'fa:arrow-right',
|
2019-06-23 03:35:23 -07:00
|
|
|
group: ['organization'],
|
|
|
|
version: 1,
|
|
|
|
description: 'No Operation',
|
|
|
|
defaults: {
|
|
|
|
name: 'NoOp',
|
|
|
|
color: '#b0b0b0',
|
|
|
|
},
|
|
|
|
inputs: ['main'],
|
|
|
|
outputs: ['main'],
|
2022-08-17 08:50:24 -07:00
|
|
|
properties: [],
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
|
|
|
|
2022-12-02 12:54:28 -08:00
|
|
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
2019-06-23 03:35:23 -07:00
|
|
|
const items = this.getInputData();
|
|
|
|
|
|
|
|
return this.prepareOutputData(items);
|
|
|
|
}
|
|
|
|
}
|