@visulima/email
Version:
A comprehensive email library with multi-provider support, crypto utilities, and template engines
28 lines (27 loc) • 679 B
TypeScript
import type { EmailOptions } from "../../types.d.ts";
/**
* HTTP email configuration
*/
export interface HttpEmailConfig {
apiKey?: string;
endpoint: string;
headers?: Record<string, string>;
method?: "GET" | "POST" | "PUT";
}
/**
* HTTP-specific email options
*/
export interface HttpEmailOptions extends EmailOptions {
/**
* Custom parameters to include in the request payload
*/
customParams?: Record<string, unknown>;
/**
* Override the endpoint for this specific email
*/
endpointOverride?: string;
/**
* Override the HTTP method for this specific email
*/
methodOverride?: "GET" | "POST" | "PUT";
}