n8n-nodes-mautic-advanced
Version:
Enhanced n8n node for Mautic with comprehensive API coverage including tags, campaigns, categories, and advanced contact management
47 lines (46 loc) • 1.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.segmentEmailFields = exports.segmentEmailOperations = void 0;
exports.segmentEmailOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['segmentEmail'],
},
},
options: [
{
name: 'Send',
value: 'send',
action: 'Send an email to a segment',
},
],
default: 'send',
},
];
exports.segmentEmailFields = [
/* -------------------------------------------------------------------------- */
/* segmentEmail:send */
/* -------------------------------------------------------------------------- */
{
displayName: 'Segment Email Name or ID',
name: 'segmentEmailId',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
required: true,
displayOptions: {
show: {
resource: ['segmentEmail'],
operation: ['send'],
},
},
typeOptions: {
loadOptionsMethod: 'getSegmentEmails',
},
default: '',
},
];