UNPKG

@goldstack/template-email-send

Version:

Utilities for packages that implement email sending using AWS SES

26 lines 1.36 kB
import type { EmailSendDeployment, EmailSendPackage } from './types/EmailSendPackage'; export type { EmailSendDeployment, EmailSendPackage }; export { connect, getFromDomain, getMockedSES } from './sesConnect'; import type { SESClient, SendEmailRequest } from '@aws-sdk/client-ses'; import type { CreateSESClientType } from './mockedSES'; /** * Creates an SES (Simple Email Service) client. * * This function returns an SES client instance. If a client is provided as an argument, * it will be used; otherwise, a new client will be created using the mocked SES module. * * @param {SESClient} [sesClient] - An optional SES client instance to use. * @returns {SESClient} The SES client instance. */ export declare const createSESClient: CreateSESClientType; /** * Retrieves the list of email send requests that have been sent using the provided SES client. * * This function accesses the internal `_goldstackSentRequests` property of the SES client * to return the list of email requests that have been sent. * * @param {SESClient} sesClient - The SES client instance from which to retrieve sent email requests. * @returns {SendEmailRequest[]} An array of `SendEmailRequest` objects representing the sent emails. */ export declare function getSentEmailRequests(sesClient: SESClient): SendEmailRequest[]; //# sourceMappingURL=templateEmailSend.d.ts.map