2021-01-28 10:00:47 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2021-01-28 10:00:47 -08:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class DiscourseApi implements ICredentialType {
|
|
|
|
name = 'discourseApi';
|
|
|
|
displayName = 'Discourse API';
|
|
|
|
documentationUrl = 'discourse';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2021-01-28 10:00:47 -08:00
|
|
|
{
|
|
|
|
displayName: 'URL',
|
|
|
|
name: 'url',
|
|
|
|
required: true,
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2021-01-28 10:00:47 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
|
|
|
required: true,
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2021-01-28 10:00:47 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Username',
|
|
|
|
name: 'username',
|
|
|
|
required: true,
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2021-01-28 10:00:47 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
2021-06-12 09:39:55 -07:00
|
|
|
}
|