UNPKG

@454creative/easy-email

Version:

A framework-agnostic email service library for Node.js with observability and monitoring

40 lines 4.48 kB
"use strict"; /** * Type definitions for the easy-email library */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SENDGRID_DEFAULT_CONFIG = exports.SENDGRID_ERROR_CODES = exports.SENDGRID_ERROR_TYPES = exports.SES_DEFAULT_CONFIG = exports.SES_ERROR_CODES = exports.SES_ERROR_TYPES = exports.OBSERVABILITY_CONSTANTS = exports.EMAIL_CONSTANTS = exports.SpamDetectionError = exports.QuotaExceededError = exports.ConnectionError = exports.TemplateNotFoundError = exports.InvalidTemplateError = exports.MissingRequiredFieldError = exports.InvalidEmailError = exports.NetworkError = exports.AuthenticationError = exports.RateLimitError = exports.TimeoutError = exports.RetryError = exports.TemplateError = exports.ValidationError = exports.ProviderError = exports.ConfigurationError = exports.EmailServiceError = void 0; // Error types var errors_1 = require("../errors"); Object.defineProperty(exports, "EmailServiceError", { enumerable: true, get: function () { return errors_1.EmailServiceError; } }); Object.defineProperty(exports, "ConfigurationError", { enumerable: true, get: function () { return errors_1.ConfigurationError; } }); Object.defineProperty(exports, "ProviderError", { enumerable: true, get: function () { return errors_1.ProviderError; } }); Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return errors_1.ValidationError; } }); Object.defineProperty(exports, "TemplateError", { enumerable: true, get: function () { return errors_1.TemplateError; } }); Object.defineProperty(exports, "RetryError", { enumerable: true, get: function () { return errors_1.RetryError; } }); Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function () { return errors_1.TimeoutError; } }); Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return errors_1.RateLimitError; } }); Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return errors_1.AuthenticationError; } }); Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_1.NetworkError; } }); Object.defineProperty(exports, "InvalidEmailError", { enumerable: true, get: function () { return errors_1.InvalidEmailError; } }); Object.defineProperty(exports, "MissingRequiredFieldError", { enumerable: true, get: function () { return errors_1.MissingRequiredFieldError; } }); Object.defineProperty(exports, "InvalidTemplateError", { enumerable: true, get: function () { return errors_1.InvalidTemplateError; } }); Object.defineProperty(exports, "TemplateNotFoundError", { enumerable: true, get: function () { return errors_1.TemplateNotFoundError; } }); Object.defineProperty(exports, "ConnectionError", { enumerable: true, get: function () { return errors_1.ConnectionError; } }); Object.defineProperty(exports, "QuotaExceededError", { enumerable: true, get: function () { return errors_1.QuotaExceededError; } }); Object.defineProperty(exports, "SpamDetectionError", { enumerable: true, get: function () { return errors_1.SpamDetectionError; } }); // Constants var constants_1 = require("../config/constants"); Object.defineProperty(exports, "EMAIL_CONSTANTS", { enumerable: true, get: function () { return constants_1.EMAIL_CONSTANTS; } }); Object.defineProperty(exports, "OBSERVABILITY_CONSTANTS", { enumerable: true, get: function () { return constants_1.OBSERVABILITY_CONSTANTS; } }); // SES-specific constants var ses_types_1 = require("./ses.types"); Object.defineProperty(exports, "SES_ERROR_TYPES", { enumerable: true, get: function () { return ses_types_1.SES_ERROR_TYPES; } }); Object.defineProperty(exports, "SES_ERROR_CODES", { enumerable: true, get: function () { return ses_types_1.SES_ERROR_CODES; } }); Object.defineProperty(exports, "SES_DEFAULT_CONFIG", { enumerable: true, get: function () { return ses_types_1.SES_DEFAULT_CONFIG; } }); // SendGrid-specific constants var sendgrid_types_1 = require("./sendgrid.types"); Object.defineProperty(exports, "SENDGRID_ERROR_TYPES", { enumerable: true, get: function () { return sendgrid_types_1.SENDGRID_ERROR_TYPES; } }); Object.defineProperty(exports, "SENDGRID_ERROR_CODES", { enumerable: true, get: function () { return sendgrid_types_1.SENDGRID_ERROR_CODES; } }); Object.defineProperty(exports, "SENDGRID_DEFAULT_CONFIG", { enumerable: true, get: function () { return sendgrid_types_1.SENDGRID_DEFAULT_CONFIG; } }); //# sourceMappingURL=index.js.map