2019-11-08 20:11:01 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2019-11-08 20:11:01 -08:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class RocketchatApi implements ICredentialType {
|
|
|
|
name = 'rocketchatApi';
|
|
|
|
displayName = 'Rocket API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'rocketchat';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-11-08 20:11:01 -08:00
|
|
|
{
|
2019-11-09 17:29:05 -08:00
|
|
|
displayName: 'User Id',
|
|
|
|
name: 'userId',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-11-08 20:11:01 -08:00
|
|
|
default: '',
|
|
|
|
},
|
2019-11-09 17:29:05 -08:00
|
|
|
{
|
|
|
|
displayName: 'Auth Key',
|
|
|
|
name: 'authKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-11-09 17:29:05 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
2019-12-01 08:10:11 -08:00
|
|
|
displayName: 'Domain',
|
|
|
|
name: 'domain',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-11-09 17:29:05 -08:00
|
|
|
default: '',
|
2019-12-01 11:51:05 -08:00
|
|
|
placeholder: 'https://n8n.rocket.chat',
|
2019-11-09 17:29:05 -08:00
|
|
|
},
|
2019-11-08 20:11:01 -08:00
|
|
|
];
|
|
|
|
}
|