UNPKG

connect-mailjet

Version:

Mailjet integration for connect-platform

28 lines (25 loc) 676 B
const mailjet = require('../mailjet'); const util = require('../util'); const platform = require('connect-platform'); platform.core.node({ path: '/mailjet/message/to', public: false, inputs: [ 'emailObject' ], outputs: [ 'to' ], hints: { node: 'Construct a to\' list from <span class="hl-blue">emailObject</span>.', inputs: { emailObject: 'The email object that will be used for the contact.' }, outputs: { to: 'A <span class="hl-blue">to</span> list that can be used as the recievers\' emails.', }, } }, (inputs, output, control) => { util.sanitizeEmailObject(inputs); output('to', [ inputs.emailObject ]); });