mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 22:54:05 -08:00
54 lines
973 B
TypeScript
54 lines
973 B
TypeScript
import {
|
|
IExecuteSingleFunctions,
|
|
} from 'n8n-core';
|
|
import {
|
|
IDataObject,
|
|
INodeTypeDescription,
|
|
INodeExecutionData,
|
|
INodeType,
|
|
ILoadOptionsFunctions,
|
|
INodePropertyOptions,
|
|
} from 'n8n-workflow';
|
|
import {
|
|
rocketchatApiRequest
|
|
} from './GenericFunctions';
|
|
|
|
|
|
export class Rocketchat implements INodeType {
|
|
|
|
description: INodeTypeDescription = {
|
|
displayName: 'Rocketchat',
|
|
name: 'Rocketchat',
|
|
icon: 'file:Rocketchat.png',
|
|
group: ['output'],
|
|
version: 1,
|
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
description: 'Consume Rocketchat API',
|
|
defaults: {
|
|
name: 'Rocketchat',
|
|
color: '#c02428',
|
|
},
|
|
inputs: ['main'],
|
|
outputs: ['main'],
|
|
credentials: [
|
|
{
|
|
name: 'rocketchatApi',
|
|
required: true,
|
|
}
|
|
],
|
|
properties: [
|
|
|
|
]
|
|
};
|
|
|
|
methods = {
|
|
|
|
};
|
|
|
|
async executeSingle(this: IExecuteSingleFunctions): Promise<INodeExecutionData> {
|
|
return {
|
|
json: {}
|
|
};
|
|
}
|
|
}
|