UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

84 lines 2.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.contactTagFields = exports.contactTagOperations = void 0; exports.contactTagOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['contactTag'], }, }, options: [ { name: 'Add', value: 'add', description: 'Add a tag to a contact', action: 'Add a contact tag', }, { name: 'Remove', value: 'remove', description: 'Remove a tag from a contact', action: 'Remove a contact tag', }, ], default: 'add', }, ]; exports.contactTagFields = [ // ---------------------------------- // contactTag:add // ---------------------------------- { displayName: 'Tag Name or ID', name: 'tagId', type: 'options', description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>', typeOptions: { loadOptionsMethod: 'getTags', }, default: '', required: true, displayOptions: { show: { operation: ['add'], resource: ['contactTag'], }, }, }, { displayName: 'Contact ID', name: 'contactId', type: 'number', default: '', required: true, displayOptions: { show: { operation: ['add'], resource: ['contactTag'], }, }, }, // ---------------------------------- // contactTag:delete // ---------------------------------- { displayName: 'Contact Tag ID', name: 'contactTagId', type: 'number', displayOptions: { show: { operation: ['remove'], resource: ['contactTag'], }, }, default: 0, required: true, description: 'ID of the contact tag to delete', }, ]; //# sourceMappingURL=ContactTagDescription.js.map