mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
rocketchat-node-setup
This commit is contained in:
53
packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts
Normal file
53
packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
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: {}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user