mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
48362f50ef
* ✨ Discourse Node * ⚡ Add missing credential file * ⚡ Improvements * ⚡ Improvements * ⚡ Minor improvements on Discourse Node Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
33 lines
622 B
TypeScript
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: '',
|
|
},
|
|
];
|
|
} |