mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
* feat: update n8n-users-list to no longer use preset list of actions * feat: prepared users settings for invite links feature * refactor: Return invite link URLs when inviting users (#5079) * refactor: Return invite link URLs when inviting users * test: Refactor and add tests to mailer * feat: Add FE inviteAcceptUrl integration (#5085) * feat: update n8n-users-list to no longer use preset list of actions * feat: prepared users settings for invite links feature * feat: add integration with new inviteAcceptUrl changes * feat: Add inviteAcceptUrl to user list for pending users Co-authored-by: Alex Grozav <alex@grozav.com> * fix conflicts * fix lint issue * test: Make sure inviteAcceptUrl is defined * feat: update smtp setup suggestion * feat: add invite link summary when inviting multiple users * refactor: Add telemetry flag for when email is sent * fix: add email_sent correctly to telemetry event * feat: move SMTP info-tip to invite modal Co-authored-by: Omar Ajoue <krynble@gmail.com>
33 lines
645 B
TypeScript
33 lines
645 B
TypeScript
export interface UserManagementMailerImplementation {
|
|
init: () => Promise<void>;
|
|
sendMail: (mailData: MailData) => Promise<SendEmailResult>;
|
|
verifyConnection: () => Promise<void>;
|
|
}
|
|
|
|
export type InviteEmailData = {
|
|
email: string;
|
|
firstName?: string;
|
|
lastName?: string;
|
|
inviteAcceptUrl: string;
|
|
domain: string;
|
|
};
|
|
|
|
export type PasswordResetData = {
|
|
email: string;
|
|
firstName?: string;
|
|
lastName?: string;
|
|
passwordResetUrl: string;
|
|
domain: string;
|
|
};
|
|
|
|
export type SendEmailResult = {
|
|
emailSent: boolean;
|
|
};
|
|
|
|
export type MailData = {
|
|
body: string | Buffer;
|
|
emailRecipients: string | string[];
|
|
subject: string;
|
|
textOnly?: string;
|
|
};
|