/** * Mailjet Node - Version 1 * Discriminator: resource=email, operation=send */ interface Credentials { mailjetEmailApi: CredentialReference; mailjetSmsApi: CredentialReference; } /** Send a email */ export type MailjetV1EmailSendParams = { resource: 'email'; operation: 'send'; /** * The title for the email */ fromEmail?: string | Expression | PlaceholderValue; /** * Email address of the recipient. Multiple ones can be separated by comma. */ toEmail?: string | Expression | PlaceholderValue; /** * Subject line of the email */ subject?: string | Expression | PlaceholderValue; /** * Plain text message of email */ text?: string | Expression | PlaceholderValue; /** * HTML text message of email */ html?: string | Expression | PlaceholderValue; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Bcc Email address of the recipient. Multiple ones can be separated by comma. */ bccEmail?: string | Expression | PlaceholderValue; /** Cc Email address of the recipient. Multiple ones can be separated by comma. */ ccAddresses?: string | Expression | PlaceholderValue; /** From Name */ fromName?: string | Expression | PlaceholderValue; /** Priority * @default 2 */ priority?: number | Expression; /** The reply-to email address. Multiple ones can be separated by comma. */ replyTo?: string | Expression | PlaceholderValue; /** Template Language * @default false */ templateLanguage?: boolean | Expression; /** Enable or disable open tracking on this message * @default account_default */ trackClicks?: 'account_default' | 'disabled' | 'enabled' | Expression; /** Enable or disable open tracking on this message * @default account_default */ trackOpens?: 'account_default' | 'disabled' | 'enabled' | Expression; /** Custom Campaign */ customCampaign?: string | Expression | PlaceholderValue; /** Deduplicate Campaign * @default false */ deduplicateCampaign?: boolean | Expression; }; /** * HTML text message of email * @displayOptions.show { jsonParameters: [true] } */ variablesJson?: string | Expression | PlaceholderValue; /** * Variables * @displayOptions.show { jsonParameters: [false] } * @default {} */ variablesUi?: { /** Variable */ variablesValues?: Array<{ /** Name */ name?: string | Expression | PlaceholderValue; /** Value */ value?: string | Expression | PlaceholderValue; }>; }; }; export type MailjetV1EmailSendOutput = { Bcc?: Array<{ Email?: string; MessageHref?: string; MessageID?: number; MessageUUID?: string; }>; Cc?: Array<{ Email?: string; MessageHref?: string; MessageID?: number; MessageUUID?: string; }>; CustomID?: string; Status?: string; To?: Array<{ Email?: string; MessageHref?: string; MessageID?: number; MessageUUID?: string; }>; }; export type MailjetV1EmailSendNode = { type: 'n8n-nodes-base.mailjet'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };