/** * Emelia Node - Version 1 * Discriminator: resource=campaign, operation=addContact */ interface Credentials { emeliaApi: CredentialReference; } export type EmeliaV1CampaignAddContactParams = { resource: 'campaign'; operation: 'addContact'; /** * The ID of the campaign to add the contact to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ campaignId?: string | Expression; /** * The email of the contact to add to the campaign */ contactEmail?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Filter by custom fields * @default {} */ customFieldsUi?: { /** Custom Field */ customFieldsValues?: Array<{ /** The name of the field to add custom field to */ fieldName?: string | Expression | PlaceholderValue; /** The value to set on custom field */ value?: string | Expression | PlaceholderValue; }>; }; /** First name of the contact to add */ firstName?: string | Expression | PlaceholderValue; /** Last contacted date of the contact to add */ lastContacted?: string | Expression; /** Last name of the contact to add */ lastName?: string | Expression | PlaceholderValue; /** Last opened date of the contact to add */ lastOpen?: string | Expression; /** Last replied date of the contact to add */ lastReplied?: string | Expression; /** Number of emails sent to the contact to add * @default 0 */ mailsSent?: number | Expression; /** Phone number of the contact to add */ phoneNumber?: string | Expression | PlaceholderValue; }; }; export type EmeliaV1CampaignAddContactNode = { type: 'n8n-nodes-base.emelia'; version: 1; credentials?: Credentials; config: NodeConfig; };