UNPKG

n8n-nodes-innotes

Version:

N8N node for InNotes CRM API integration

292 lines (290 loc) 7.5 kB
"use strict"; /** * @author Marco Visin * @date 2025-05-30 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.contactFields = exports.contactOperations = void 0; exports.contactOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['contact'], }, }, options: [ { name: 'Create', value: 'create', description: 'Create a new contact', action: 'Create a contact', }, { name: 'Get', value: 'get', description: 'Get a contact by ID', action: 'Get a contact', }, { name: 'Get Many', value: 'getAll', description: 'Get multiple contacts', action: 'Get many contacts', }, { name: 'Update', value: 'update', description: 'Update a contact', action: 'Update a contact', }, { name: 'Delete', value: 'delete', description: 'Delete a contact', action: 'Delete a contact', }, ], default: 'getAll', }, ]; exports.contactFields = [ // Create fields { displayName: 'Name', name: 'name', type: 'string', required: true, displayOptions: { show: { resource: ['contact'], operation: ['create'], }, }, default: '', description: 'The name of the contact', }, { displayName: 'LinkedIn Key', name: 'linkedin_key', type: 'string', required: true, displayOptions: { show: { resource: ['contact'], operation: ['create'], }, }, default: '', description: 'The LinkedIn profile key/username', }, { displayName: 'LinkedIn User', name: 'linkedin_user', type: 'string', displayOptions: { show: { resource: ['contact'], operation: ['create'], }, }, default: '', description: 'The LinkedIn username', }, { displayName: 'Location', name: 'location', type: 'string', displayOptions: { show: { resource: ['contact'], operation: ['create', 'update'], }, }, default: '', description: 'The location of the contact', }, { displayName: 'Current Company', name: 'current_company', type: 'string', displayOptions: { show: { resource: ['contact'], operation: ['create', 'update'], }, }, default: '', description: 'The current company of the contact', }, { displayName: 'Picture URL', name: 'picture_url', type: 'string', displayOptions: { show: { resource: ['contact'], operation: ['create', 'update'], }, }, default: '', description: 'URL of the contact profile picture', }, { displayName: 'Tags', name: 'tags', type: 'collection', placeholder: 'Add Tag', displayOptions: { show: { resource: ['contact'], operation: ['create', 'update'], }, }, default: [], options: [ { displayName: 'Tag', name: 'tag', type: 'string', default: '', }, ], description: 'Tags to assign to the contact', }, { displayName: 'Status ID', name: 'status_id', type: 'string', displayOptions: { show: { resource: ['contact'], operation: ['create', 'update'], }, }, default: '', description: 'The status ID for the contact', }, // Get fields { displayName: 'Contact ID', name: 'contactId', type: 'string', required: true, displayOptions: { show: { resource: ['contact'], operation: ['get', 'update', 'delete'], }, }, default: '', description: 'The ID of the contact', }, // Get All fields { displayName: 'Return All', name: 'returnAll', type: 'boolean', displayOptions: { show: { resource: ['contact'], 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: ['contact'], operation: ['getAll'], returnAll: [false], }, }, typeOptions: { minValue: 1, }, default: 24, description: 'Max number of results to return', }, { displayName: 'Search Term', name: 'search', type: 'string', displayOptions: { show: { resource: ['contact'], operation: ['getAll'], }, }, default: '', description: 'Search term to filter contacts', }, { displayName: 'Filter by Tags', name: 'tags', type: 'string', displayOptions: { show: { resource: ['contact'], operation: ['getAll'], }, }, default: '', description: 'Comma-separated list of tags to filter by', }, // Update fields { displayName: 'Update Fields', name: 'updateFields', type: 'collection', placeholder: 'Add Field', default: {}, displayOptions: { show: { resource: ['contact'], operation: ['update'], }, }, options: [ { displayName: 'Name', name: 'name', type: 'string', default: '', }, { displayName: 'Location', name: 'location', type: 'string', default: '', }, { displayName: 'Current Company', name: 'current_company', type: 'string', default: '', }, { displayName: 'Picture URL', name: 'picture_url', type: 'string', default: '', }, { displayName: 'Status ID', name: 'status_id', type: 'string', default: '', }, ], }, ]; //# sourceMappingURL=ContactDescription.js.map