n8n/packages/nodes-base/credentials/MailgunApi.credentials.ts

43 lines
776 B
TypeScript
Raw Normal View History

2019-06-23 03:35:23 -07:00
import {
ICredentialType,
INodeProperties,
2019-06-23 03:35:23 -07:00
} from 'n8n-workflow';
export class MailgunApi implements ICredentialType {
name = 'mailgunApi';
displayName = 'Mailgun API';
documentationUrl = 'mailgun';
properties: INodeProperties[] = [
2019-06-23 03:35:23 -07:00
{
displayName: 'API Domain',
name: 'apiDomain',
type: 'options',
2019-06-23 03:35:23 -07:00
options: [
{
name: 'api.eu.mailgun.net',
value: 'api.eu.mailgun.net',
},
{
name: 'api.mailgun.net',
value: 'api.mailgun.net',
},
],
default: 'api.mailgun.net',
description: 'The configured mailgun API domain',
2019-06-23 03:35:23 -07:00
},
{
displayName: 'Email Domain',
name: 'emailDomain',
type: 'string',
2019-06-23 03:35:23 -07:00
default: '',
},
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
2019-06-23 03:35:23 -07:00
default: '',
},
];
}