UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

1,443 lines 190 kB
"use strict"; 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 or Update', value: 'upsert', description: 'Create a new contact, or update the current one if it already exists (upsert)', action: 'Create or update a contact', }, { name: 'Delete', value: 'delete', description: 'Delete a contact', action: 'Delete a contact', }, { name: 'Get', value: 'get', description: 'Get a contact', action: 'Get a contact', }, { name: 'Get Many', value: 'getAll', description: 'Get many contacts', action: 'Get many contacts', }, { name: 'Get Recently Created/Updated', value: 'getRecentlyCreatedUpdated', description: 'Get recently created/updated contacts', action: 'Get recently created/updated contacts', }, { name: 'Search', value: 'search', description: 'Search contacts', action: 'Search contacts', }, ], default: 'upsert', }, ]; exports.contactFields = [ /* -------------------------------------------------------------------------- */ /* contact:upsert */ /* -------------------------------------------------------------------------- */ { displayName: 'Email', name: 'email', type: 'string', placeholder: 'name@email.com', required: true, displayOptions: { show: { resource: ['contact'], operation: ['upsert'], }, }, default: '', }, { displayName: 'Contact Properties', name: 'additionalFields', type: 'collection', placeholder: 'Add Property', default: {}, displayOptions: { show: { resource: ['contact'], operation: ['upsert'], }, }, options: [ { displayName: 'Annual Revenue', name: 'annualRevenue', type: 'number', typeOptions: { minValue: 0, }, default: 0, }, { displayName: 'Associated Company Name or ID', name: 'associatedCompanyId', type: 'options', typeOptions: { loadOptionsMethod: 'getCompanies', }, default: '', description: 'Companies associated with the ticket. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.', }, { displayName: 'Buying Role', name: 'buyingRole', description: 'Role the contact plays during the sales process. Contacts can have multiple roles, and can share roles with others.', type: 'multiOptions', default: [], options: [ { name: 'Blocker', value: 'BLOCKER', }, { name: 'Budget Holder', value: 'BUDGET_HOLDER', }, { name: 'Champion', value: 'CHAMPION', }, { name: 'Decision Maker', value: 'DECISION_MAKER', }, { name: 'End User', value: 'END_USER', }, { name: 'Executive Sponsor', value: 'EXECUTIVE_SPONSOR', }, { name: 'Influencer', value: 'INFLUENCER', }, { name: 'Legal & Compliance', value: 'LEGAL_AND_COMPLIANCE', }, { name: 'Other', value: 'OTHER', }, ], }, { displayName: 'City', name: 'city', type: 'string', default: '', }, { displayName: 'Clicked Facebook Ad', name: 'clickedFacebookAd', type: 'string', default: '', }, { displayName: 'Close Date', name: 'closeDate', type: 'dateTime', default: '', description: 'When using expressions, the time should be specified in YYYY-MM-DD hh-mm-ss format', }, { displayName: 'Company Name', name: 'companyName', type: 'string', default: '', }, { displayName: 'Company Size', name: 'companySize', type: 'string', default: '', }, { displayName: 'Contact Owner Name or ID', name: 'contactOwner', 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: 'getOwners', }, default: '', }, { displayName: 'Contact Properties to Include', name: 'properties', type: 'multiOptions', typeOptions: { loadOptionsMethod: 'getContactProperties', }, displayOptions: { show: { '/resolveData': [false], }, }, default: [], description: 'Whether to include specific Contact properties in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.', }, { displayName: 'Country/Region', name: 'country', type: 'string', default: '', }, { displayName: 'Country/Region Code', name: 'countryRegionCode', description: "The contact's two-letter country code", type: 'string', default: '', }, { displayName: 'Custom Properties', name: 'customPropertiesUi', placeholder: 'Add Custom Property', type: 'fixedCollection', typeOptions: { multipleValues: true, }, default: {}, options: [ { name: 'customPropertiesValues', displayName: 'Custom Property', values: [ { displayName: 'Property Name or ID', name: 'property', type: 'options', typeOptions: { loadOptionsMethod: 'getContactCustomProperties', }, default: '', description: 'Name of the property. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.', }, { displayName: 'Value', name: 'value', type: 'string', default: '', required: true, description: 'Value of the property', }, ], }, ], }, { displayName: 'Date of Birth', name: 'dateOfBirth', type: 'dateTime', default: '', description: 'When using expressions, the time should be specified in YYYY-MM-DD hh-mm-ss format', }, { displayName: 'Degree', name: 'degree', type: 'string', default: '', }, { displayName: 'Email Address Quarantine Reason', name: 'emailCustomerQuarantinedReason', description: 'The reason why the email address has been quarantined', type: 'options', default: '', options: [ { name: 'Suspension Remediation', value: 'SUSPENSION_REMEDIATION', }, { name: 'Blocklist Remediation', value: 'BLOCKLIST_REMEDIATION', }, { name: 'Trust & Safety Remediation', value: 'TRUST_SAFETY_REMEDIATION', }, ], }, { displayName: 'Employment Role', name: 'employmentRole', description: 'Job role', type: 'options', default: '', options: [ { name: 'Accounting', value: 'accounting', }, { name: 'Administrative', value: 'administrative', }, { name: 'Business Development', value: 'business_development', }, { name: 'Communications', value: 'communications', }, { name: 'Consulting', value: 'consulting', }, { name: 'Customer Service', value: 'customer_service', }, { name: 'Design', value: 'design', }, { name: 'Education', value: 'education', }, { name: 'Engineering', value: 'engineering', }, { name: 'Entrepreneurship', value: 'entrepreneurship', }, { name: 'Finance', value: 'finance', }, { name: 'Health Professional', value: 'health_professional', }, { name: 'Human Resources', value: 'human_resources', }, { name: 'Information Technology', value: 'information_technology', }, { name: 'Legal', value: 'legal', }, { name: 'Marketing', value: 'marketing', }, { name: 'Operations', value: 'operations', }, { name: 'Product', value: 'product', }, { name: 'Project Management', value: 'project_management', }, { name: 'Public Relations', value: 'public_relations', }, { name: 'Quality Assurance', value: 'quality_assurance', }, { name: 'Real Estate', value: 'real_estate', }, { name: 'Recruiting', value: 'recruiting', }, { name: 'Research', value: 'research', }, { name: 'Retired', value: 'retired', }, { name: 'Sales', value: 'sales', }, { name: 'Support', value: 'support', }, ], }, { displayName: 'Employment Seniority', name: 'employmentSeniority', description: 'Job Seniority', type: 'options', default: '', options: [ { name: 'Director', value: 'director', }, { name: 'Employee', value: 'employee', }, { name: 'Entry', value: 'entry', }, { name: 'Executive', value: 'executive', }, { name: 'Manager', value: 'manager', }, { name: 'Owner', value: 'owner', }, { name: 'Partner', value: 'partner', }, { name: 'Senior', value: 'senior', }, { name: 'VP', value: 'vp', }, ], }, { displayName: 'Employment Sub Role', name: 'employmentSubRole', description: 'Job sub role', type: 'options', default: '', options: [ { name: 'Account Executive', value: 'account_executive', }, { name: 'Account Manager', value: 'account_manager', }, { name: 'Accountant', value: 'accountant', }, { name: 'Accounting Manager', value: 'accounting_manager', }, { name: 'Administrative Assistant', value: 'administrative_assistant', }, { name: 'Appraisal', value: 'appraisal', }, { name: 'Architect IT', value: 'architect_it', }, { name: 'Assistant', value: 'assistant', }, { name: 'Attorney', value: 'attorney', }, { name: 'Auditor', value: 'auditor', }, { name: 'Brand Marketing', value: 'brand_marketing', }, { name: 'Business Analyst', value: 'business_analyst', }, { name: 'Business Consultant', value: 'business_consultant', }, { name: 'Business Manager', value: 'business_manager', }, { name: 'Chief Compliance Officer', value: 'chief_compliance_officer', }, { name: 'Chief Data Officer', value: 'chief_data_officer', }, { name: 'Chief Executive Officer', value: 'chief_executive_officer', }, { name: 'Chief Experience Officer', value: 'chief_experience_officer', }, { name: 'Chief Financial Officer', value: 'chief_financial_officer', }, { name: 'Chief Human Resources Officer', value: 'chief_human_resources_officer', }, { name: 'Chief Information Officer', value: 'chief_information_officer', }, { name: 'Chief Innovation Officer', value: 'chief_innovation_officer', }, { name: 'Chief Legal Officer', value: 'chief_legal_officer', }, { name: 'Chief Marketing Officer', value: 'chief_marketing_officer', }, { name: 'Chief Operating Officer', value: 'chief_operating_officer', }, { name: 'Chief Product Officer', value: 'chief_product_officer', }, { name: 'Chief Revenue Officer', value: 'chief_revenue_officer', }, { name: 'Chief Risk Officer', value: 'chief_risk_officer', }, { name: 'Chief Security Officer', value: 'chief_security_officer', }, { name: 'Chief Sustainability Officer', value: 'chief_sustainability_officer', }, { name: 'Chief Technology Officer', value: 'chief_technology_officer', }, { name: 'Communications Manager', value: 'communications_manager', }, { name: 'Community', value: 'community', }, { name: 'Content Marketing', value: 'content_marketing', }, { name: 'Contracts', value: 'contracts', }, { name: 'Creative', value: 'creative', }, { name: 'Customer Service Specialist', value: 'customer_service_specialist', }, { name: 'Customer Success', value: 'customer_success', }, { name: 'Data IT', value: 'data_it', }, { name: 'Data Science Engineer', value: 'data_science_engineer', }, { name: 'Database Administrator', value: 'database_administrator', }, { name: 'Design Engineer', value: 'design_engineer', }, { name: 'Development Specialist', value: 'development_specialist', }, { name: 'Devops Engineer', value: 'devops_engineer', }, { name: 'Digital Marketing', value: 'digital_marketing', }, { name: 'Director of Development', value: 'director_of_development', }, { name: 'Editorial', value: 'editorial', }, { name: 'Electrical Engineer', value: 'electrical_engineer', }, { name: 'Engineering Manager', value: 'engineering_manager', }, { name: 'Events', value: 'events', }, { name: 'Executive Assistant', value: 'executive_assistant', }, { name: 'Facilities', value: 'facilities', }, { name: 'Fashion Design', value: 'fashion_design', }, { name: 'Field Marketing', value: 'field_marketing', }, { name: 'Financial Analyst', value: 'financial_analyst', }, { name: 'Financial Controller', value: 'financial_controller', }, { name: 'Fitness', value: 'fitness', }, { name: 'Founder', value: 'founder', }, { name: 'General Counsel', value: 'general_counsel', }, { name: 'General Manager', value: 'general_manager', }, { name: 'General Partner', value: 'general_partner', }, { name: 'Graphic Design', value: 'graphic_design', }, { name: 'Human Resources Specialist', value: 'human_resources_specialist', }, { name: 'Information Technology Specialist', value: 'information_technology_specialist', }, { name: 'Investment', value: 'investment', }, { name: 'Investment Banker', value: 'investment_banker', }, { name: 'Journalist', value: 'journalist', }, { name: 'Key Account Manager', value: 'key_account_manager', }, { name: 'Law Enforcement', value: 'law_enforcement', }, { name: 'Lawyer', value: 'lawyer', }, { name: 'Logistics Manager', value: 'logistics_manager', }, { name: 'Management', value: 'management', }, { name: 'Marketing Specialist', value: 'marketing_specialist', }, { name: 'Mechanical Engineer', value: 'mechanical_engineer', }, { name: 'Medical Doctor', value: 'medical_doctor', }, { name: 'Network Engineer', value: 'network_engineer', }, { name: 'Nurse', value: 'nurse', }, { name: 'Office Management', value: 'office_management', }, { name: 'Office Manager', value: 'office_manager', }, { name: 'Operational Specialist', value: 'operational_specialist', }, { name: 'Owner', value: 'owner', }, { name: 'Paralegal', value: 'paralegal', }, { name: 'Principal', value: 'principal', }, { name: 'Product Design', value: 'product_design', }, { name: 'Product Manager', value: 'product_manager', }, { name: 'Product Marketing', value: 'product_marketing', }, { name: 'Production Manager', value: 'production_manager', }, { name: 'Professor', value: 'professor', }, { name: 'Program Coordinator', value: 'program_coordinator', }, { name: 'Program Manager', value: 'program_manager', }, { name: 'Project Engineer', value: 'project_engineer', }, { name: 'Project Manager', value: 'project_manager', }, { name: 'Property Manager', value: 'property_manager', }, { name: 'QA Engineer', value: 'qa_engineer', }, { name: 'QA IT', value: 'qa_it', }, { name: 'Quality Assurance Manager', value: 'quality_assurance_manager', }, { name: 'Quality Assurance Specialist', value: 'quality_assurance_specialist', }, { name: 'Realtor', value: 'realtor', }, { name: 'Recruiter', value: 'recruiter', }, { name: 'Relationship Manager', value: 'relationship_manager', }, { name: 'Research Analyst', value: 'research_analyst', }, { name: 'Retail', value: 'retail', }, { name: 'Retired', value: 'retired', }, { name: 'Risk Compliance', value: 'risk_compliance', }, { name: 'Sales Executive', value: 'sales_executive', }, { name: 'Sales Operations', value: 'sales_operations', }, { name: 'Sales Specialist', value: 'sales_specialist', }, { name: 'Salesperson', value: 'salesperson', }, { name: 'Secretary', value: 'secretary', }, { name: 'Social Marketing', value: 'social_marketing', }, { name: 'Software Engineer', value: 'software_engineer', }, { name: 'Strategy', value: 'strategy', }, { name: 'Student', value: 'student', }, { name: 'Support', value: 'support', }, { name: 'Support Specialist', value: 'support_specialist', }, { name: 'System Administrator', value: 'system_administrator', }, { name: 'System Analyst', value: 'system_analyst', }, { name: 'Systems Engineer', value: 'systems_engineer', }, { name: 'Talent', value: 'talent', }, { name: 'Tax Audit', value: 'tax_audit', }, { name: 'Teacher', value: 'teacher', }, { name: 'Technical Manager', value: 'technical_manager', }, { name: 'Technical Support Specialist', value: 'technical_support_specialist', }, { name: 'Therapist', value: 'therapist', }, { name: 'Training', value: 'training', }, { name: 'Video', value: 'video', }, { name: 'Web Developer', value: 'web_developer', }, { name: 'Writer', value: 'writer', }, ], }, { displayName: 'Enriched Email Bounce Detected', name: 'enrichedEmailBounceDetected', type: 'boolean', default: false, }, { displayName: 'Facebook Click ID', name: 'facebookClickId', type: 'number', default: '', }, { displayName: 'Fax Number', name: 'faxNumber', type: 'string', default: '', }, { displayName: 'Field Of Study', name: 'fieldOfStudy', type: 'string', default: '', description: "A contact's field of study. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool", }, { displayName: 'First Name', name: 'firstName', type: 'string', default: '', description: "A contact's first name", }, { displayName: 'Gender', name: 'gender', type: 'string', default: '', }, { displayName: 'Google Ad Click ID', name: 'googleAdClickId', type: 'number', default: '', }, { displayName: 'Graduation Date', name: 'graduationDate', type: 'dateTime', default: '', description: "A contact's graduation date. This property is required for the Facebook Ads Integration. This property will be automatically synced via the Lead Ads tool. When using expressions, the time should be specified in YYYY-MM-DD hh-mm-ss format", }, { displayName: 'Industry', name: 'industry', type: 'string', default: '', description: 'The industry a contact is in', }, { displayName: 'Inferred Language Codes', name: 'inferredLanguageCodes', description: 'Inferred languages based on location. ISO 639-1.', type: 'options', default: '', options: [ { name: 'Abkhazian', value: 'ab', }, { name: 'Afar', value: 'aa', }, { name: 'Afrikaans', value: 'af', }, { name: 'Akan', value: 'ak', }, { name: 'Albanian', value: 'sq', }, { name: 'Amharic', value: 'am', }, { name: 'Arabic', value: 'ar', }, { name: 'Aragonese', value: 'an', }, { name: 'Armenian', value: 'hy', }, { name: 'Assamese', value: 'as', }, { name: 'Avaric', value: 'av', }, { name: 'Avestan', value: 'ae', }, { name: 'Aymara', value: 'ay', }, { name: 'Azerbaijani', value: 'az', }, { name: 'Bambara', value: 'bm', }, { name: 'Bashkir', value: 'ba', }, { name: 'Basque', value: 'eu', }, { name: 'Belarusian', value: 'be', }, { name: 'Bengali', value: 'bn', }, { name: 'Bislama', value: 'bi', }, { name: 'Bokmål, Norwegian; Norwegian Bokmål', value: 'nb', }, { name: 'Bosnian', value: 'bs', }, { name: 'Breton', value: 'br', }, { name: 'Bulgarian', value: 'bg', }, { name: 'Burmese', value: 'my', }, { name: 'Catalan; Valencian', value: 'ca', }, { name: 'Central Khmer', value: 'km', }, { name: 'Chamorro', value: 'ch', }, { name: 'Chechen', value: 'ce', }, { name: 'Chichewa; Chewa; Nyanja', value: 'ny', }, { name: 'Chinese', value: 'zh', }, { name: 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic', value: 'cu', }, { name: 'Chuvash', value: 'cv', }, { name: 'Cornish', value: 'kw', }, { name: 'Corsican', value: 'co', }, { name: 'Cree', value: 'cr', }, { name: 'Croatian', value: 'hr', }, { name: 'Czech', value: 'cs', }, { name: 'Danish', value: 'da', }, { name: 'Divehi; Dhivehi; Maldivian', value: 'dv', }, { name: 'Dutch; Flemish', value: 'nl', }, { name: 'Dzongkha', value: 'dz', }, { name: 'English', value: 'en', }, { name: 'Esperanto', value: 'eo', }, { name: 'Estonian', value: 'et', }, { name: 'Ewe', value: 'ee', }, { name: 'Faroese', value: 'fo', }, { name: 'Fijian', value: 'fj', }, { name: 'Finnish', value: 'fi', }, { name: 'French', value: 'fr', }, { name: 'Fulah', value: 'ff', }, { name: 'Gaelic; Scottish Gaelic', value: 'gd', }, { name: 'Galician', value: 'gl', }, { name: 'Ganda', value: 'lg', }, { name: 'Georgian', value: 'ka', }, { name: 'German', value: 'de', }, { name: 'Greek, Modern (1453-)', value: 'el', }, { name: 'Guarani', value: 'gn', }, { name: 'Gujarati', value: 'gu', }, { name: 'Haitian; Haitian Creole', value: 'ht', }, { name: 'Hausa', value: 'ha', }, { name: 'Hebrew', value: 'he', }, { name: 'Herero', value: 'hz', }, { name: 'Hindi', value: 'hi', }, { name: 'Hiri Motu', value: 'ho', }, { name: 'Hungarian', value: 'hu', }, { name: 'Icelandic', value: 'is', }, { name: 'Ido', value: 'io', }, { name: 'Igbo', value: 'ig', }, { name: 'Indonesian', value: 'id', }, { name: 'Interlingua (International Auxiliary Language Association)', value: 'ia', }, { name: 'Interlingue; Occidental', value: 'ie', }, { name: 'Inuktitut', value: 'iu', }, { name: 'Inupiaq', value: 'ik', }, { name: 'Irish', value: 'ga', }, { name: 'Italian', value: 'it', }, { name: 'Japanese', value: 'ja', }, { name: 'Javanese', value: 'jv', }, { name: 'Kalaallisut; Greenlandic', value: 'kl', }, { name: 'Kannada', value: 'kn', }, { name: 'Kanuri', value: 'kr', }, { name: 'Kashmiri', value: 'ks', }, { name: 'Kazakh', value: 'kk', }, { name: 'Kikuyu; Gikuyu', value: 'ki', }, { name: 'Kinyarwanda', value: 'rw', }, { name: 'Kirghiz; Kyrgyz', value: 'ky', }, { name: 'Komi', value: 'kv', }, { name: 'Kongo', value: 'kg', }, { name: 'Korean', value: 'ko', }, { name: 'Kuanyama; Kwanyama', value: 'kj', }, { name: 'Kurdish', value: 'ku', }, { name: 'Lao', value: 'lo', }, { name: 'Latin', value: 'la', }, { name: 'Latvian', value: 'lv', }, { name: 'Limburgan; Limburger; Limburgish', value: 'li', }, { name: 'Lingala', value: 'ln', }, { name: 'Lithuanian', value: 'lt', }, { name: 'Luba-Katanga', value: 'lu', }, { name: 'Luxembourgish; Letzeburgesch', value: 'lb', }, { name: 'Macedonian', value: 'mk', }, { name: 'Malagasy', value: 'mg', }, { name