@email-service/email-service
Version:
email-service is a versatile npm package designed to simplify the integration and standardization of email communications across multiple Email Service Providers (ESPs).
15 lines (14 loc) • 395 B
TypeScript
export type StandardError = {
name: string;
message: string;
cause?: string | object;
stack?: string;
};
export type ESPStandardizedError = {
name: string;
cause?: string | object;
stack?: string;
category: Category;
};
type Category = 'UNAUTHORIZED' | 'EMAIL_INVALID' | 'PARAM_INVALID' | 'ACCOUNT_INVALID' | 'INACTIVE_RECIPIENT' | 'SERVER_EXCEPTION';
export {};