n8n/packages/nodes-base/credentials/DiscourseApi.credentials.ts
Ricardo Espinoza 48362f50ef
Add Discourse Node (#1348)
*  Discourse Node

*  Add missing credential file

*  Improvements

*  Improvements

*  Minor improvements on Discourse Node

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-01-28 19:00:47 +01:00

33 lines
622 B
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class DiscourseApi implements ICredentialType {
name = 'discourseApi';
displayName = 'Discourse API';
documentationUrl = 'discourse';
properties = [
{
displayName: 'URL',
name: 'url',
required: true,
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'API Key',
name: 'apiKey',
required: true,
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Username',
name: 'username',
required: true,
type: 'string' as NodePropertyTypes,
default: '',
},
];
}