Files
n8n/packages/nodes-base/nodes/Lemlist/v2/descriptions/EnrichmentDescription.ts
T
alighasami 3d5eaf9445
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30

173 lines
3.2 KiB
TypeScript

import type { INodeProperties } from 'n8n-workflow';
export const enrichmentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
default: 'get',
options: [
{
name: 'Get',
value: 'get',
action: 'Fetches a previously completed enrichment',
},
{
name: 'Enrich Lead',
value: 'enrichLead',
action: 'Enrich a lead using an email or LinkedIn URL',
},
{
name: 'Enrich Person',
value: 'enrichPerson',
action: 'Enrich a person using an email or LinkedIn URL',
},
],
displayOptions: {
show: {
resource: ['enrich'],
},
},
},
];
export const enrichmentFields: INodeProperties[] = [
// ----------------------------------
// enrichment: get
// ----------------------------------
{
displayName: 'Enrichment ID',
name: 'enrichId',
type: 'string',
default: '',
required: true,
description: 'ID of the enrichment to retrieve',
displayOptions: {
show: {
resource: ['enrich'],
operation: ['get'],
},
},
},
// ----------------------------------
// enrichment: enrichLead
// ----------------------------------
{
displayName: 'Lead ID',
name: 'leadId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: ['enrich'],
operation: ['enrichLead'],
},
},
},
{
displayName: 'Find Email',
name: 'findEmail',
type: 'boolean',
default: false,
displayOptions: {
show: {
resource: ['enrich'],
operation: ['enrichLead', 'enrichPerson'],
},
},
},
{
displayName: 'Verify Email',
name: 'verifyEmail',
type: 'boolean',
default: false,
displayOptions: {
show: {
resource: ['enrich'],
operation: ['enrichLead', 'enrichPerson'],
},
},
},
{
displayName: 'LinkedIn Enrichment',
name: 'linkedinEnrichment',
type: 'boolean',
default: false,
displayOptions: {
show: {
resource: ['enrich'],
operation: ['enrichLead', 'enrichPerson'],
},
},
},
{
displayName: 'Find Phone',
name: 'findPhone',
type: 'boolean',
default: false,
displayOptions: {
show: {
resource: ['enrich'],
operation: ['enrichLead', 'enrichPerson'],
},
},
},
// ----------------------------------
// enrichment: enrichPerson
// ----------------------------------
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['enrich'],
operation: ['enrichPerson'],
},
},
options: [
{
displayName: 'Email',
name: 'email',
type: 'string',
placeholder: 'name@email.com',
default: '',
},
{
displayName: 'First Name',
name: 'firstName',
type: 'string',
default: '',
},
{
displayName: 'Last Name',
name: 'lastName',
type: 'string',
default: '',
},
{
displayName: 'LinkedIn Url',
name: 'linkedinUrl',
type: 'string',
default: '',
},
{
displayName: 'Company Name',
name: 'companyName',
type: 'string',
default: '',
},
{
displayName: 'Company Domain',
name: 'companyDomain',
type: 'string',
default: '',
},
],
},
];