2019-11-08 20:11:01 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
|
|
|
NodePropertyTypes,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class RocketchatApi implements ICredentialType {
|
|
|
|
name = 'rocketchatApi';
|
|
|
|
displayName = 'Rocket API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'rocketchat';
|
2019-11-08 20:11:01 -08:00
|
|
|
properties = [
|
|
|
|
{
|
2019-11-09 17:29:05 -08:00
|
|
|
displayName: 'User Id',
|
|
|
|
name: 'userId',
|
2019-11-08 20:11:01 -08:00
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
},
|
2019-11-09 17:29:05 -08:00
|
|
|
{
|
|
|
|
displayName: 'Auth Key',
|
|
|
|
name: 'authKey',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
2019-12-01 08:10:11 -08:00
|
|
|
displayName: 'Domain',
|
|
|
|
name: 'domain',
|
2019-11-09 17:29:05 -08:00
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
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
|
|
|
];
|
|
|
|
}
|