2019-06-23 03:35:23 -07:00
|
|
|
import { IExecuteFunctions } from 'n8n-core';
|
|
|
|
import {
|
|
|
|
INodeExecutionData,
|
|
|
|
INodeType,
|
|
|
|
INodeTypeDescription,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
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'],
|
|
|
|
properties: [
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
|
|
|
const items = this.getInputData();
|
|
|
|
|
|
|
|
return this.prepareOutputData(items);
|
|
|
|
}
|
|
|
|
}
|