UNPKG

n8n-nodes-close-crm

Version:

N8N community node for Close CRM integration with comprehensive lead, opportunity, task, note, call management, and enhanced triggers for workflow automation

117 lines (116 loc) 3.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fieldEnrichmentFields = exports.fieldEnrichmentOperations = void 0; exports.fieldEnrichmentOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['fieldEnrichment'], }, }, options: [ { name: 'Enrich Field', value: 'enrich', description: 'Use AI to populate a custom field on a lead or contact', action: 'Enrich a field', }, ], default: 'enrich', }, ]; exports.fieldEnrichmentFields = [ { displayName: 'Organization ID', name: 'organizationId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['fieldEnrichment'], operation: ['enrich'], }, }, description: 'The ID of the organization that owns the target object', }, { displayName: 'Object Type', name: 'objectType', type: 'options', options: [ { name: 'Lead', value: 'lead' }, { name: 'Contact', value: 'contact' }, ], default: 'lead', required: true, displayOptions: { show: { resource: ['fieldEnrichment'], operation: ['enrich'], }, }, description: 'Type of object to enrich', }, { displayName: 'Object ID', name: 'objectId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['fieldEnrichment'], operation: ['enrich'], }, }, description: 'The ID of the lead or contact to enrich', }, { displayName: 'Field ID', name: 'fieldId', type: 'string', required: true, default: '', displayOptions: { show: { resource: ['fieldEnrichment'], operation: ['enrich'], }, }, description: 'The ID of the custom field to enrich', }, { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', default: {}, displayOptions: { show: { resource: ['fieldEnrichment'], operation: ['enrich'], }, }, options: [ { displayName: 'Set New Value', name: 'setNewValue', type: 'boolean', default: true, description: 'Whether to update the field with the enriched value', }, { displayName: 'Overwrite Existing Value', name: 'overwriteExistingValue', type: 'boolean', default: false, description: 'Whether to overwrite the existing field value if one is set', }, ], }, ];