Vizzuality/landgriffon

View on GitHub
api/src/modules/notifications/email/email.service.interface.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Logger } from '@nestjs/common';

export class SendMailDTO {
  to: string;
  subject: string;
  html: string;
  text?: string;
  attachments?: MailAttachment[];
}

interface MailAttachment {
  content: string;
  filename: string;
  type: string;
  disposition: string;
}

export interface IEmailService {
  logger: Logger;

  sendMail(sendMailDTO: SendMailDTO): Promise<any>;
}