/** * Mailjet Node - Version 1 * Discriminator: resource=email, operation=sendTemplate */ interface Credentials { mailjetEmailApi: CredentialReference; mailjetSmsApi: CredentialReference; } /** Send a email template */ export type MailjetV1EmailSendTemplateParams = { resource: 'email'; operation: 'sendTemplate'; /** * Subject line of the email */ subject?: string | Expression | PlaceholderValue; /** * 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; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ templateId?: string | Expression; /** * JSON Parameters * @default false */ jsonParameters?: boolean | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** BCC Recipients of the email separated by , */ bccEmail?: string | Expression | PlaceholderValue; /** Cc recipients of the email separated by , */ ccEmail?: 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; /** Subject */ subject?: string | Expression | PlaceholderValue; /** Template Language * @default false */ templateLanguage?: boolean | Expression; /** Enable or disable open tracking on this message */ trackClicks?: string | Expression | PlaceholderValue; /** Enable or disable open tracking on this message */ trackOpens?: string | Expression | PlaceholderValue; /** Custom Campaign */ customCampaign?: string | Expression | PlaceholderValue; /** Deduplicate Campaign * @default false */ deduplicateCampaign?: boolean | Expression; }; /** * Variables * @displayOptions.show { jsonParameters: [false] } * @default {} */ variablesUi?: { /** Variable */ variablesValues?: Array<{ /** Name */ name?: string | Expression | PlaceholderValue; /** Value */ value?: string | Expression | PlaceholderValue; }>; }; /** * HTML text message of email * @displayOptions.show { jsonParameters: [true] } */ variablesJson?: string | Expression | PlaceholderValue; }; export type MailjetV1EmailSendTemplateOutput = { 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 MailjetV1EmailSendTemplateNode = { type: 'n8n-nodes-base.mailjet'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };