UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

21 lines (20 loc) 679 B
import { SendGridCredentials } from '../../credentials/sendGrid'; import * as factory from '../../factory'; import type { ActionRepo } from '../../repo/action'; import type { MessageRepo } from '../../repo/message'; import type { ProjectRepo } from '../../repo/project'; /** * https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html */ declare function sendEmailMessage(params: factory.task.sendEmailMessage.IActionAttributes & { sameAs?: { id: string; }; }): (repos: { action: ActionRepo; message: MessageRepo; project: ProjectRepo; }, credentials: { sendGrid: SendGridCredentials; }) => Promise<void>; export { sendEmailMessage };