2019-11-08 20:11:01 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
|
|
|
NodePropertyTypes,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class RocketchatApi implements ICredentialType {
|
|
|
|
name = 'rocketchatApi';
|
|
|
|
displayName = 'Rocket API';
|
|
|
|
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: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Sub Domain',
|
|
|
|
name: 'subdomain',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
placeholder: 'n8n'
|
|
|
|
},
|
2019-11-08 20:11:01 -08:00
|
|
|
];
|
|
|
|
}
|