UNPKG

n8n-nodes-mautic-advanced

Version:

Enhanced n8n node for Mautic with comprehensive API coverage including tags, campaigns, categories, and advanced contact management

130 lines (129 loc) 4.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.themeFields = exports.themeOperations = void 0; exports.themeOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['theme'], }, }, options: [ { name: 'Create', value: 'create', description: 'Create a new theme from a zip file', action: 'Create a theme', }, { name: 'Delete', value: 'delete', description: 'Delete a theme', action: 'Delete a theme', }, { name: 'Get', value: 'get', description: 'Get a theme as a zip file', action: 'Get a theme', }, { name: 'Get Many', value: 'getAll', description: 'Get data of many themes', action: 'Get many themes', }, ], default: 'getAll', }, ]; exports.themeFields = [ /* -------------------------------------------------------------------------- */ /* theme:create */ /* -------------------------------------------------------------------------- */ { displayName: 'File', name: 'file', type: 'string', required: true, displayOptions: { show: { resource: ['theme'], operation: ['create'], }, }, default: '', description: 'Binary property name containing the zip file to upload', }, /* -------------------------------------------------------------------------- */ /* theme:get */ /* -------------------------------------------------------------------------- */ { displayName: 'Theme Name', name: 'themeName', type: 'string', required: true, displayOptions: { show: { operation: ['get'], resource: ['theme'], }, }, default: '', description: 'The name of the theme to retrieve', }, /* -------------------------------------------------------------------------- */ /* theme:getAll */ /* -------------------------------------------------------------------------- */ { displayName: 'Return All', name: 'returnAll', type: 'boolean', displayOptions: { show: { resource: ['theme'], operation: ['getAll'], }, }, default: false, description: 'Whether to return all results or only up to a given limit', }, { displayName: 'Limit', name: 'limit', type: 'number', displayOptions: { show: { resource: ['theme'], operation: ['getAll'], returnAll: [false], }, }, typeOptions: { minValue: 1, }, default: 50, description: 'Max number of results to return', }, /* -------------------------------------------------------------------------- */ /* theme:delete */ /* -------------------------------------------------------------------------- */ { displayName: 'Theme Name', name: 'themeName', type: 'string', required: true, displayOptions: { show: { operation: ['delete'], resource: ['theme'], }, }, default: '', description: 'The name of the theme to delete', }, ];