2020-02-13 07:43:59 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2020-02-13 07:43:59 -08:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class MailjetEmailApi implements ICredentialType {
|
|
|
|
name = 'mailjetEmailApi';
|
|
|
|
displayName = 'Mailjet Email API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'mailjet';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-02-13 07:43:59 -08:00
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-02-13 07:43:59 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Secret Key',
|
|
|
|
name: 'secretKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-02-13 07:43:59 -08:00
|
|
|
default: '',
|
|
|
|
},
|
2022-03-20 12:13:18 -07:00
|
|
|
{
|
|
|
|
displayName: 'Sandbox Mode',
|
|
|
|
name: 'sandboxMode',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
description: 'Allow to run the API call in a Sandbox mode, where all validations of the payload will be done without delivering the message',
|
|
|
|
},
|
2020-02-13 07:43:59 -08:00
|
|
|
];
|
|
|
|
}
|