n8n-nodes-base
Version:
Base nodes of n8n
61 lines (57 loc) • 1.78 kB
text/typescript
/**
* Lemlist Node - Version 1
* Discriminator: resource=lead, operation=create
*/
interface Credentials {
lemlistApi: CredentialReference;
}
export type LemlistV1LeadCreateParams = {
resource: 'lead';
operation: 'create';
/**
* ID of the campaign to create the lead under. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
campaignId?: string | Expression<string>;
/**
* Email of the lead to create
*/
email?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** Company name of the lead to create
*/
companyName?: string | Expression<string> | PlaceholderValue;
/** Whether to do not insert if this email is already present in another campaign
* @default false
*/
deduplicate?: boolean | Expression<boolean>;
/** First name of the lead to create
*/
firstName?: string | Expression<string> | PlaceholderValue;
/** Last name of the lead to create
*/
lastName?: string | Expression<string> | PlaceholderValue;
/** Icebreaker of the lead to create
*/
icebreaker?: string | Expression<string> | PlaceholderValue;
/** Phone number of the lead to create
*/
phone?: string | Expression<string> | PlaceholderValue;
/** Picture URL of the lead to create
*/
picture?: string | Expression<string> | PlaceholderValue;
/** LinkedIn URL of the lead to create
*/
linkedinUrl?: string | Expression<string> | PlaceholderValue;
};
};
export type LemlistV1LeadCreateNode = {
type: 'n8n-nodes-base.lemlist';
version: 1;
credentials?: Credentials;
config: NodeConfig<LemlistV1LeadCreateParams>;
};