@visulima/email 1.0.0-alpha.2 → 1.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +246 -0
- package/LICENSE.md +536 -899
- package/README.md +36 -21
- package/dist/crypto/index.d.ts +147 -4
- package/dist/crypto/index.js +1 -1
- package/dist/index.d.ts +785 -9
- package/dist/index.js +1 -1
- package/dist/packem_shared/{DkimSigner-pFd4c3fZ.js → DkimSigner-CT2DSHD1.js} +4 -4
- package/dist/packem_shared/Mail-D93oo_9g.js +1 -0
- package/dist/packem_shared/MailMessage-BvaH5tZZ.js +1 -0
- package/dist/packem_shared/{SmimeEncrypter-CBevU534.js → SmimeEncrypter-ZhHEgDwY.js} +2 -2
- package/dist/packem_shared/{SmimeSigner-CObA4jzT.js → SmimeSigner-CYSVF6ez.js} +1 -1
- package/dist/packem_shared/{ahaSendProvider-DlFKEQ6D.js → ahaSendProvider-DOAAW65O.js} +1 -1
- package/dist/packem_shared/{attachment-processor-2rHmfa7j.js → attachment-processor-DsmIomKc.js} +1 -1
- package/dist/packem_shared/{awsSesProvider-Ba-eVJxZ.js → awsSesProvider-DX1630Ms.js} +7 -7
- package/dist/packem_shared/azureProvider-EkNYKAiF.js +1 -0
- package/dist/packem_shared/{brevoProvider-5p6jjiK9.js → brevoProvider-CkR4U4RD.js} +1 -1
- package/dist/packem_shared/build-mime-message-6xstxaUV.js +2 -0
- package/dist/packem_shared/defineProvider-CtLH0VBE.js +1 -0
- package/dist/packem_shared/detectMimeType-bo5oxfnt.js +1 -0
- package/dist/packem_shared/failoverProvider-W5ctAhdC.js +1 -0
- package/dist/packem_shared/httpProvider-DUg1AQfO.js +1 -0
- package/dist/packem_shared/{infobipProvider-CtLwrUaP.js → infobipProvider-BhTsWi7e.js} +1 -1
- package/dist/packem_shared/{mailCrabProvider-CM_CFDca.js → mailCrabProvider-B7H6HwWu.js} +1 -1
- package/dist/packem_shared/mailPaceProvider-DRt6Z9Hr.js +1 -0
- package/dist/packem_shared/{mailerSendProvider-CeeIXFnW.js → mailerSendProvider-Dx_iHInH.js} +1 -1
- package/dist/packem_shared/mailgunProvider-ChkLGZZW.js +1 -0
- package/dist/packem_shared/mailjetProvider-BMRhNe6H.js +1 -0
- package/dist/packem_shared/{mailomatProvider-DMQmjKHT.js → mailomatProvider-CydV-JB6.js} +1 -1
- package/dist/packem_shared/{mailtrapProvider-BN3UBEQw.js → mailtrapProvider-CuAfJWDr.js} +1 -1
- package/dist/packem_shared/{make-request-BDzF9W9D.js → make-request-CaT4d5oC.js} +1 -1
- package/dist/packem_shared/{mandrillProvider-370y7CLu.js → mandrillProvider-BBeLbaw0.js} +1 -1
- package/dist/packem_shared/mockProvider-C0P1lKOy.js +1 -0
- package/dist/packem_shared/{nodemailerProvider-_w8QXMU-.js → nodemailerProvider-DFcvoVFv.js} +1 -1
- package/dist/packem_shared/{opentelemetryProvider-C_ZXOLSd.js → opentelemetryProvider-Dwv88G3O.js} +1 -1
- package/dist/packem_shared/{plunkProvider-DfJumQ4U.js → plunkProvider-BQyjG6YT.js} +1 -1
- package/dist/packem_shared/{postalProvider-Bavx2FcH.js → postalProvider-DPHQ620q.js} +1 -1
- package/dist/packem_shared/{postmarkProvider-DFC0uvjO.js → postmarkProvider-bMTC2gdJ.js} +1 -1
- package/dist/packem_shared/provider.d-DcfYeGJJ.d.ts +28 -0
- package/dist/packem_shared/readFile-BAVMZg5e-C4whBIPd.js +1 -0
- package/dist/packem_shared/resendProvider-Cns1tvF5.js +1 -0
- package/dist/packem_shared/roundRobinProvider-FvZQKl6n.js +1 -0
- package/dist/packem_shared/{scalewayProvider-be1HPimL.js → scalewayProvider-O1dHz7iJ.js} +1 -1
- package/dist/packem_shared/{sendGridProvider-BVI1sq3n.js → sendGridProvider-DmywC-eT.js} +1 -1
- package/dist/packem_shared/{smtpProvider-BV-ufR53.js → smtpProvider-Unjao_fn.js} +8 -8
- package/dist/packem_shared/sweegoProvider-D086G6xG.js +1 -0
- package/dist/packem_shared/types.d-CNnnk-Ya.d.ts +102 -0
- package/dist/packem_shared/types.d-nyR1ty1Q.d.ts +9 -0
- package/dist/packem_shared/types.d-wwpgA3to.d.ts +204 -0
- package/dist/packem_shared/validate-email-options-DPo3SgC0.js +1 -0
- package/dist/packem_shared/zeptomailProvider-DKKEpEsW.js +1 -0
- package/dist/providers/ahasend/index.d.ts +36 -3
- package/dist/providers/ahasend/index.js +1 -1
- package/dist/providers/aws-ses/index.d.ts +47 -3
- package/dist/providers/aws-ses/index.js +1 -1
- package/dist/providers/azure/index.d.ts +52 -3
- package/dist/providers/azure/index.js +1 -1
- package/dist/providers/brevo/index.d.ts +65 -3
- package/dist/providers/brevo/index.js +1 -1
- package/dist/providers/failover/index.d.ts +27 -3
- package/dist/providers/failover/index.js +1 -1
- package/dist/providers/http/index.d.ts +35 -3
- package/dist/providers/http/index.js +1 -1
- package/dist/providers/infobip/index.d.ts +56 -3
- package/dist/providers/infobip/index.js +1 -1
- package/dist/providers/mailcrab/index.d.ts +32 -3
- package/dist/providers/mailcrab/index.js +1 -1
- package/dist/providers/mailersend/index.d.ts +51 -3
- package/dist/providers/mailersend/index.js +1 -1
- package/dist/providers/mailgun/index.d.ts +73 -3
- package/dist/providers/mailgun/index.js +1 -1
- package/dist/providers/mailjet/index.d.ts +72 -3
- package/dist/providers/mailjet/index.js +1 -1
- package/dist/providers/mailomat/index.d.ts +40 -3
- package/dist/providers/mailomat/index.js +1 -1
- package/dist/providers/mailpace/index.d.ts +52 -3
- package/dist/providers/mailpace/index.js +1 -1
- package/dist/providers/mailtrap/index.d.ts +44 -3
- package/dist/providers/mailtrap/index.js +1 -1
- package/dist/providers/mandrill/index.d.ts +87 -3
- package/dist/providers/mandrill/index.js +1 -1
- package/dist/providers/mock/index.d.ts +59 -3
- package/dist/providers/mock/index.js +1 -1
- package/dist/providers/nodemailer/index.d.ts +38 -3
- package/dist/providers/nodemailer/index.js +1 -1
- package/dist/providers/opentelemetry/index.d.ts +529 -3
- package/dist/providers/opentelemetry/index.js +1 -1
- package/dist/providers/plunk/index.d.ts +38 -3
- package/dist/providers/plunk/index.js +1 -1
- package/dist/providers/postal/index.d.ts +48 -3
- package/dist/providers/postal/index.js +1 -1
- package/dist/providers/postmark/index.d.ts +60 -3
- package/dist/providers/postmark/index.js +1 -1
- package/dist/providers/resend/index.d.ts +51 -3
- package/dist/providers/resend/index.js +1 -1
- package/dist/providers/roundrobin/index.d.ts +27 -3
- package/dist/providers/roundrobin/index.js +1 -1
- package/dist/providers/scaleway/index.d.ts +44 -3
- package/dist/providers/scaleway/index.js +1 -1
- package/dist/providers/sendgrid/index.d.ts +84 -3
- package/dist/providers/sendgrid/index.js +1 -1
- package/dist/providers/smtp/index.d.ts +71 -3
- package/dist/providers/smtp/index.js +1 -1
- package/dist/providers/sweego/index.d.ts +40 -3
- package/dist/providers/sweego/index.js +1 -1
- package/dist/providers/zeptomail/index.d.ts +37 -3
- package/dist/providers/zeptomail/index.js +1 -1
- package/dist/template-engines/handlebars.d.ts +23 -22
- package/dist/template-engines/handlebars.js +1 -1
- package/dist/template-engines/html-to-text.d.ts +24 -24
- package/dist/template-engines/mjml.d.ts +10 -10
- package/dist/template-engines/react-email.d.ts +9 -9
- package/dist/template-engines/vue-email.d.ts +9 -9
- package/dist/utils/cache.d.ts +49 -48
- package/dist/utils/format-email-address.d.ts +8 -7
- package/dist/utils/normalize-email-aliases.d.ts +20 -20
- package/dist/utils/parse-address.d.ts +18 -17
- package/dist/utils/parse-address.js +1 -1
- package/dist/utils/validation/check-mx-records.d.ts +36 -35
- package/dist/utils/validation/disposable-email-domains.d.ts +1 -13
- package/dist/utils/validation/role-accounts.d.ts +18 -18
- package/dist/utils/validation/validate-email.d.ts +5 -5
- package/dist/utils/validation/verify-email.d.ts +45 -42
- package/dist/utils/validation/verify-email.js +1 -1
- package/dist/utils/validation/verify-smtp.d.ts +35 -34
- package/dist/utils/validation/verify-smtp.js +1 -1
- package/package.json +61 -61
- package/dist/attachment-helpers.d.ts +0 -64
- package/dist/crypto/dkim-signer.d.ts +0 -48
- package/dist/crypto/smime-encrypter.d.ts +0 -53
- package/dist/crypto/smime-signer.d.ts +0 -48
- package/dist/crypto/types.d.ts +0 -101
- package/dist/draft-mail-message.d.ts +0 -13
- package/dist/errors/email-error.d.ts +0 -17
- package/dist/errors/required-option-error.d.ts +0 -10
- package/dist/mail-message.d.ts +0 -425
- package/dist/mail.d.ts +0 -206
- package/dist/packem_shared/Mail-6Bltpy_p.js +0 -1
- package/dist/packem_shared/MailMessage-B76GPBBA.js +0 -1
- package/dist/packem_shared/azureProvider-CQYAkgVF.js +0 -1
- package/dist/packem_shared/build-mime-message-IYaUqqPJ.js +0 -2
- package/dist/packem_shared/defineProvider-B9rSklAJ.js +0 -1
- package/dist/packem_shared/detectMimeType-S8WRsNtY.js +0 -1
- package/dist/packem_shared/failoverProvider-CAHQQueo.js +0 -1
- package/dist/packem_shared/httpProvider-CZD6LZX3.js +0 -1
- package/dist/packem_shared/mailPaceProvider-B6yKvh6z.js +0 -1
- package/dist/packem_shared/mailgunProvider-mmjKzouh.js +0 -1
- package/dist/packem_shared/mailjetProvider-DwN6i0VA.js +0 -1
- package/dist/packem_shared/mockProvider-DN5ZwutD.js +0 -1
- package/dist/packem_shared/readFile-BlZxbhCU-C8bCdiA2.js +0 -1
- package/dist/packem_shared/resendProvider-CfqU7UdE.js +0 -1
- package/dist/packem_shared/roundRobinProvider-1WQnuKR8.js +0 -1
- package/dist/packem_shared/sweegoProvider-7419CSAq.js +0 -1
- package/dist/packem_shared/validate-email-options-DfJ7llf8.js +0 -1
- package/dist/packem_shared/zeptomailProvider-C2lh0Xmo.js +0 -1
- package/dist/providers/ahasend/provider.d.ts +0 -7
- package/dist/providers/ahasend/types.d.ts +0 -28
- package/dist/providers/aws-ses/provider.d.ts +0 -8
- package/dist/providers/aws-ses/types.d.ts +0 -38
- package/dist/providers/azure/provider.d.ts +0 -7
- package/dist/providers/azure/types.d.ts +0 -44
- package/dist/providers/brevo/provider.d.ts +0 -7
- package/dist/providers/brevo/types.d.ts +0 -57
- package/dist/providers/failover/provider.d.ts +0 -7
- package/dist/providers/failover/types.d.ts +0 -19
- package/dist/providers/http/provider.d.ts +0 -7
- package/dist/providers/http/types.d.ts +0 -27
- package/dist/providers/infobip/provider.d.ts +0 -7
- package/dist/providers/infobip/types.d.ts +0 -48
- package/dist/providers/mailcrab/provider.d.ts +0 -9
- package/dist/providers/mailcrab/types.d.ts +0 -22
- package/dist/providers/mailersend/provider.d.ts +0 -7
- package/dist/providers/mailersend/types.d.ts +0 -43
- package/dist/providers/mailgun/provider.d.ts +0 -7
- package/dist/providers/mailgun/types.d.ts +0 -65
- package/dist/providers/mailjet/provider.d.ts +0 -7
- package/dist/providers/mailjet/types.d.ts +0 -64
- package/dist/providers/mailomat/provider.d.ts +0 -7
- package/dist/providers/mailomat/types.d.ts +0 -32
- package/dist/providers/mailpace/provider.d.ts +0 -7
- package/dist/providers/mailpace/types.d.ts +0 -44
- package/dist/providers/mailtrap/provider.d.ts +0 -7
- package/dist/providers/mailtrap/types.d.ts +0 -36
- package/dist/providers/mandrill/provider.d.ts +0 -7
- package/dist/providers/mandrill/types.d.ts +0 -79
- package/dist/providers/mock/provider.d.ts +0 -8
- package/dist/providers/mock/types.d.ts +0 -50
- package/dist/providers/nodemailer/provider.d.ts +0 -7
- package/dist/providers/nodemailer/types.d.ts +0 -30
- package/dist/providers/opentelemetry/provider.d.ts +0 -8
- package/dist/providers/opentelemetry/types.d.ts +0 -31
- package/dist/providers/plunk/provider.d.ts +0 -7
- package/dist/providers/plunk/types.d.ts +0 -30
- package/dist/providers/postal/provider.d.ts +0 -7
- package/dist/providers/postal/types.d.ts +0 -40
- package/dist/providers/postmark/provider.d.ts +0 -7
- package/dist/providers/postmark/types.d.ts +0 -52
- package/dist/providers/provider.d.ts +0 -27
- package/dist/providers/resend/provider.d.ts +0 -7
- package/dist/providers/resend/types.d.ts +0 -43
- package/dist/providers/roundrobin/provider.d.ts +0 -7
- package/dist/providers/roundrobin/types.d.ts +0 -19
- package/dist/providers/scaleway/provider.d.ts +0 -7
- package/dist/providers/scaleway/types.d.ts +0 -36
- package/dist/providers/sendgrid/provider.d.ts +0 -7
- package/dist/providers/sendgrid/types.d.ts +0 -76
- package/dist/providers/smtp/provider.d.ts +0 -7
- package/dist/providers/smtp/types.d.ts +0 -63
- package/dist/providers/sweego/provider.d.ts +0 -7
- package/dist/providers/sweego/types.d.ts +0 -32
- package/dist/providers/utils/address-formatter.d.ts +0 -139
- package/dist/providers/utils/attachment-processor.d.ts +0 -58
- package/dist/providers/utils/index.d.ts +0 -4
- package/dist/providers/utils/payload-builder.d.ts +0 -78
- package/dist/providers/utils/provider-base.d.ts +0 -69
- package/dist/providers/zeptomail/provider.d.ts +0 -7
- package/dist/providers/zeptomail/types.d.ts +0 -29
- package/dist/template-engines/types.d.ts +0 -8
- package/dist/types.d.ts +0 -203
- package/dist/utils/build-mime-message.d.ts +0 -8
- package/dist/utils/create-logger.d.ts +0 -16
- package/dist/utils/format-email-addresses.d.ts +0 -8
- package/dist/utils/generate-boundary.d.ts +0 -7
- package/dist/utils/generate-message-id.d.ts +0 -6
- package/dist/utils/headers-to-record.d.ts +0 -9
- package/dist/utils/is-port-available.d.ts +0 -9
- package/dist/utils/make-request.d.ts +0 -18
- package/dist/utils/retry.d.ts +0 -10
- package/dist/utils/sanitize-header.d.ts +0 -14
- package/dist/utils/to-base64.d.ts +0 -8
- package/dist/utils/validation/validate-email-options.d.ts +0 -8
|
@@ -1,3 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
2
|
+
export { type a as Provider } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-wwpgA3to.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* MailerSend configuration
|
|
7
|
+
*/
|
|
8
|
+
interface MailerSendConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* MailerSend API token
|
|
11
|
+
*/
|
|
12
|
+
apiToken: string;
|
|
13
|
+
/**
|
|
14
|
+
* MailerSend API endpoint
|
|
15
|
+
* Defaults to: https://api.mailersend.com
|
|
16
|
+
*/
|
|
17
|
+
endpoint?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* MailerSend-specific email options
|
|
21
|
+
*/
|
|
22
|
+
interface MailerSendEmailOptions extends EmailOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Domain ID (optional, for domain-specific sending)
|
|
25
|
+
*/
|
|
26
|
+
domainId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Personalization (per-recipient variables)
|
|
29
|
+
*/
|
|
30
|
+
personalization?: {
|
|
31
|
+
data: Record<string, unknown>;
|
|
32
|
+
email: string;
|
|
33
|
+
}[];
|
|
34
|
+
/**
|
|
35
|
+
* Scheduled at (Unix timestamp)
|
|
36
|
+
*/
|
|
37
|
+
scheduledAt?: number;
|
|
38
|
+
/**
|
|
39
|
+
* MailerSend template ID for template-based emails
|
|
40
|
+
*/
|
|
41
|
+
templateId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Template variables for MailerSend templates
|
|
44
|
+
*/
|
|
45
|
+
templateVariables?: Record<string, unknown>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* MailerSend Provider for sending emails through MailerSend API
|
|
49
|
+
*/
|
|
50
|
+
declare const mailerSendProvider: ProviderFactory<MailerSendConfig>;
|
|
51
|
+
export { type MailerSendConfig, type MailerSendEmailOptions, type ProviderFactory, mailerSendProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as a}from"../../packem_shared/mailerSendProvider-
|
|
1
|
+
import{default as a}from"../../packem_shared/mailerSendProvider-Dx_iHInH.js";export{a as mailerSendProvider};
|
|
@@ -1,3 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
2
|
+
export { type a as Provider } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-wwpgA3to.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Mailgun configuration
|
|
7
|
+
*/
|
|
8
|
+
interface MailgunConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Mailgun API key
|
|
11
|
+
*/
|
|
12
|
+
apiKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* Mailgun domain (required for sending emails)
|
|
15
|
+
*/
|
|
16
|
+
domain: string;
|
|
17
|
+
/**
|
|
18
|
+
* Mailgun API endpoint
|
|
19
|
+
* Defaults to US endpoint: https://api.mailgun.net
|
|
20
|
+
* Use https://api.eu.mailgun.net for EU accounts
|
|
21
|
+
*/
|
|
22
|
+
endpoint?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Mailgun-specific email options
|
|
26
|
+
*/
|
|
27
|
+
interface MailgunEmailOptions extends EmailOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Campaign ID for tracking
|
|
30
|
+
*/
|
|
31
|
+
campaignId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Enable/disable click tracking
|
|
34
|
+
*/
|
|
35
|
+
clickTracking?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Delivery time (Unix timestamp or RFC 2822 date)
|
|
38
|
+
*/
|
|
39
|
+
deliveryTime?: string | number;
|
|
40
|
+
/**
|
|
41
|
+
* Enable/disable open tracking
|
|
42
|
+
*/
|
|
43
|
+
openTracking?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Require TLS
|
|
46
|
+
*/
|
|
47
|
+
requireTls?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Skip verification
|
|
50
|
+
*/
|
|
51
|
+
skipVerification?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Mailgun template name
|
|
54
|
+
*/
|
|
55
|
+
template?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Template variables for Mailgun templates
|
|
58
|
+
*/
|
|
59
|
+
templateVariables?: Record<string, unknown>;
|
|
60
|
+
/**
|
|
61
|
+
* Test mode - emails won't actually be sent
|
|
62
|
+
*/
|
|
63
|
+
testMode?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Enable/disable unsubscribe tracking
|
|
66
|
+
*/
|
|
67
|
+
unsubscribeTracking?: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Mailgun Provider for sending emails through Mailgun API
|
|
71
|
+
*/
|
|
72
|
+
declare const mailgunProvider: ProviderFactory<MailgunConfig>;
|
|
73
|
+
export { type MailgunConfig, type MailgunEmailOptions, type ProviderFactory, mailgunProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"../../packem_shared/mailgunProvider-
|
|
1
|
+
import{default as e}from"../../packem_shared/mailgunProvider-ChkLGZZW.js";export{e as mailgunProvider};
|
|
@@ -1,3 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
2
|
+
export { type a as Provider } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-wwpgA3to.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Mailjet configuration
|
|
7
|
+
*/
|
|
8
|
+
interface MailjetConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Mailjet API Key
|
|
11
|
+
*/
|
|
12
|
+
apiKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* Mailjet API Secret
|
|
15
|
+
*/
|
|
16
|
+
apiSecret: string;
|
|
17
|
+
/**
|
|
18
|
+
* Mailjet API endpoint
|
|
19
|
+
* Defaults to: https://api.mailjet.com
|
|
20
|
+
*/
|
|
21
|
+
endpoint?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Mailjet-specific email options
|
|
25
|
+
*/
|
|
26
|
+
interface MailjetEmailOptions extends Omit<EmailOptions, "priority"> {
|
|
27
|
+
/**
|
|
28
|
+
* Custom campaign name
|
|
29
|
+
*/
|
|
30
|
+
campaign?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Custom ID for tracking
|
|
33
|
+
*/
|
|
34
|
+
customId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Deduplicate campaign (prevent duplicate emails)
|
|
37
|
+
*/
|
|
38
|
+
deduplicateCampaign?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Delivery time (Unix timestamp)
|
|
41
|
+
*/
|
|
42
|
+
deliveryTime?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Event payload (for webhooks)
|
|
45
|
+
*/
|
|
46
|
+
eventPayload?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Priority (1-5, where 1 is highest)
|
|
49
|
+
*/
|
|
50
|
+
priority?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Mailjet template ID for template-based emails
|
|
53
|
+
*/
|
|
54
|
+
templateId?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Template language (for multilingual templates)
|
|
57
|
+
*/
|
|
58
|
+
templateLanguage?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Template variables for Mailjet templates
|
|
61
|
+
*/
|
|
62
|
+
templateVariables?: Record<string, unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* URL tags (for tracking)
|
|
65
|
+
*/
|
|
66
|
+
urlTags?: Record<string, string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Mailjet Provider for sending emails through Mailjet API.
|
|
70
|
+
*/
|
|
71
|
+
declare const provider: ProviderFactory<MailjetConfig, unknown, MailjetEmailOptions>;
|
|
72
|
+
export { type MailjetConfig, type MailjetEmailOptions, type ProviderFactory, provider as mailjetProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as a}from"../../packem_shared/mailjetProvider-
|
|
1
|
+
import{default as a}from"../../packem_shared/mailjetProvider-BMRhNe6H.js";export{a as mailjetProvider};
|
|
@@ -1,3 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
2
|
+
export { type a as Provider } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-wwpgA3to.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Mailomat configuration
|
|
7
|
+
*/
|
|
8
|
+
interface MailomatConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Mailomat API key
|
|
11
|
+
*/
|
|
12
|
+
apiKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* Mailomat API endpoint
|
|
15
|
+
* Defaults to: https://api.mailomat.com
|
|
16
|
+
*/
|
|
17
|
+
endpoint?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Mailomat-specific email options
|
|
21
|
+
*/
|
|
22
|
+
interface MailomatEmailOptions extends EmailOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Tags for categorization
|
|
25
|
+
*/
|
|
26
|
+
tags?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Mailomat template ID for template-based emails
|
|
29
|
+
*/
|
|
30
|
+
templateId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Template variables for Mailomat templates
|
|
33
|
+
*/
|
|
34
|
+
templateVariables?: Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Mailomat Provider for sending emails through Mailomat API.
|
|
38
|
+
*/
|
|
39
|
+
declare const mailomatProvider: ProviderFactory<MailomatConfig>;
|
|
40
|
+
export { type MailomatConfig, type MailomatEmailOptions, type ProviderFactory, mailomatProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"../../packem_shared/mailomatProvider-
|
|
1
|
+
import{default as r}from"../../packem_shared/mailomatProvider-CydV-JB6.js";export{r as mailomatProvider};
|
|
@@ -1,3 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
2
|
+
export { type a as Provider } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-wwpgA3to.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* MailPace configuration
|
|
7
|
+
*/
|
|
8
|
+
interface MailPaceConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* MailPace API token
|
|
11
|
+
*/
|
|
12
|
+
apiToken: string;
|
|
13
|
+
/**
|
|
14
|
+
* MailPace API endpoint
|
|
15
|
+
* Defaults to: https://app.mailpace.com/api/v1
|
|
16
|
+
*/
|
|
17
|
+
endpoint?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* MailPace-specific email options
|
|
21
|
+
*/
|
|
22
|
+
interface MailPaceEmailOptions extends Omit<EmailOptions, "attachments"> {
|
|
23
|
+
/**
|
|
24
|
+
* Attachments (MailPace specific format)
|
|
25
|
+
*/
|
|
26
|
+
attachments?: {
|
|
27
|
+
content: string;
|
|
28
|
+
content_type?: string;
|
|
29
|
+
name: string;
|
|
30
|
+
}[];
|
|
31
|
+
/**
|
|
32
|
+
* List unsubscribe header
|
|
33
|
+
*/
|
|
34
|
+
listUnsubscribe?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Tags for categorization
|
|
37
|
+
*/
|
|
38
|
+
tags?: string[];
|
|
39
|
+
/**
|
|
40
|
+
* MailPace template ID for template-based emails
|
|
41
|
+
*/
|
|
42
|
+
templateId?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Template variables for MailPace templates
|
|
45
|
+
*/
|
|
46
|
+
templateVariables?: Record<string, unknown>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* MailPace Provider for sending emails through MailPace API.
|
|
50
|
+
*/
|
|
51
|
+
declare const mailPaceProvider: ProviderFactory<MailPaceConfig, unknown, MailPaceEmailOptions>;
|
|
52
|
+
export { type MailPaceConfig, type MailPaceEmailOptions, type ProviderFactory, mailPaceProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"../../packem_shared/mailPaceProvider-
|
|
1
|
+
import{default as r}from"../../packem_shared/mailPaceProvider-DRt6Z9Hr.js";export{r as mailPaceProvider};
|
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
2
|
+
export { type a as Provider } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-wwpgA3to.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Mailtrap configuration
|
|
7
|
+
*/
|
|
8
|
+
interface MailtrapConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Mailtrap API token
|
|
11
|
+
*/
|
|
12
|
+
apiToken: string;
|
|
13
|
+
/**
|
|
14
|
+
* Mailtrap API endpoint
|
|
15
|
+
* Defaults to: https://send.api.mailtrap.io
|
|
16
|
+
*/
|
|
17
|
+
endpoint?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Mailtrap-specific email options
|
|
21
|
+
*/
|
|
22
|
+
interface MailtrapEmailOptions extends EmailOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Category for categorization
|
|
25
|
+
*/
|
|
26
|
+
category?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Custom variables (key-value pairs)
|
|
29
|
+
*/
|
|
30
|
+
customVariables?: Record<string, unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* Mailtrap template UUID for template-based emails
|
|
33
|
+
*/
|
|
34
|
+
templateUuid?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Template variables for Mailtrap templates
|
|
37
|
+
*/
|
|
38
|
+
templateVariables?: Record<string, unknown>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Mailtrap Provider for sending emails through Mailtrap API
|
|
42
|
+
*/
|
|
43
|
+
declare const mailtrapProvider: ProviderFactory<MailtrapConfig>;
|
|
44
|
+
export { type MailtrapConfig, type MailtrapEmailOptions, type ProviderFactory, mailtrapProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"../../packem_shared/mailtrapProvider-
|
|
1
|
+
import{default as e}from"../../packem_shared/mailtrapProvider-CuAfJWDr.js";export{e as mailtrapProvider};
|
|
@@ -1,3 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
2
|
+
export { type a as Provider } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-wwpgA3to.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Mandrill configuration
|
|
7
|
+
*/
|
|
8
|
+
interface MandrillConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Mandrill API key
|
|
11
|
+
*/
|
|
12
|
+
apiKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* Mandrill API endpoint
|
|
15
|
+
* Defaults to: https://mandrillapp.com/api/1.0
|
|
16
|
+
*/
|
|
17
|
+
endpoint?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Mandrill-specific email options
|
|
21
|
+
*/
|
|
22
|
+
interface MandrillEmailOptions extends EmailOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Global merge variables
|
|
25
|
+
*/
|
|
26
|
+
globalMergeVars?: {
|
|
27
|
+
content: unknown;
|
|
28
|
+
name: string;
|
|
29
|
+
}[];
|
|
30
|
+
/**
|
|
31
|
+
* Google Analytics campaign
|
|
32
|
+
*/
|
|
33
|
+
googleAnalyticsCampaign?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Google Analytics domains
|
|
36
|
+
*/
|
|
37
|
+
googleAnalyticsDomains?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* Per-recipient merge variables
|
|
40
|
+
*/
|
|
41
|
+
mergeVars?: {
|
|
42
|
+
rcpt: string;
|
|
43
|
+
vars: {
|
|
44
|
+
content: unknown;
|
|
45
|
+
name: string;
|
|
46
|
+
}[];
|
|
47
|
+
}[];
|
|
48
|
+
/**
|
|
49
|
+
* Metadata (key-value pairs)
|
|
50
|
+
*/
|
|
51
|
+
metadata?: Record<string, string>;
|
|
52
|
+
/**
|
|
53
|
+
* Send at timestamp (ISO 8601 format)
|
|
54
|
+
*/
|
|
55
|
+
sendAt?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Subaccount ID
|
|
58
|
+
*/
|
|
59
|
+
subaccount?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Tags for categorization
|
|
62
|
+
*/
|
|
63
|
+
tags?: string[];
|
|
64
|
+
/**
|
|
65
|
+
* Template content (for template-based emails)
|
|
66
|
+
*/
|
|
67
|
+
templateContent?: {
|
|
68
|
+
content: string;
|
|
69
|
+
name: string;
|
|
70
|
+
}[];
|
|
71
|
+
/**
|
|
72
|
+
* Mandrill template name
|
|
73
|
+
*/
|
|
74
|
+
templateName?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Template variables (merge vars)
|
|
77
|
+
*/
|
|
78
|
+
templateVariables?: {
|
|
79
|
+
content: unknown;
|
|
80
|
+
name: string;
|
|
81
|
+
}[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Mandrill Provider for sending emails through Mandrill API
|
|
85
|
+
*/
|
|
86
|
+
declare const mandrillProvider: ProviderFactory<MandrillConfig>;
|
|
87
|
+
export { type MandrillConfig, type MandrillEmailOptions, type ProviderFactory, mandrillProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as d}from"../../packem_shared/mandrillProvider-
|
|
1
|
+
import{default as d}from"../../packem_shared/mandrillProvider-BBeLbaw0.js";export{d as mandrillProvider};
|
|
@@ -1,3 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
2
|
+
export { type a as Provider } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
3
|
+
import { d as Receipt, B as BaseConfig, E as EmailOptions, a as EmailResult } from "../../packem_shared/types.d-wwpgA3to.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Random delay range configuration
|
|
7
|
+
*/
|
|
8
|
+
interface RandomDelayRange {
|
|
9
|
+
max: number;
|
|
10
|
+
min: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Mock configuration for testing
|
|
14
|
+
*/
|
|
15
|
+
interface MockConfig extends BaseConfig {
|
|
16
|
+
/**
|
|
17
|
+
* Default response to return for send operations
|
|
18
|
+
*/
|
|
19
|
+
defaultResponse?: Receipt;
|
|
20
|
+
/**
|
|
21
|
+
* Delay in milliseconds before resolving (default: 0)
|
|
22
|
+
* Useful for testing async behavior
|
|
23
|
+
*/
|
|
24
|
+
delay?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Failure rate (0-1) for simulating random failures (default: 0)
|
|
27
|
+
* 0 = never fail, 1 = always fail
|
|
28
|
+
*/
|
|
29
|
+
failureRate?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Random delay range in milliseconds
|
|
32
|
+
* When set, delay will be randomly chosen between min and max
|
|
33
|
+
*/
|
|
34
|
+
randomDelayRange?: RandomDelayRange;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to simulate failures (default: false)
|
|
37
|
+
* When true, sendEmail will return an error
|
|
38
|
+
*/
|
|
39
|
+
simulateFailure?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Mock-specific email options
|
|
43
|
+
*/
|
|
44
|
+
type MockEmailOptions = EmailOptions;
|
|
45
|
+
/**
|
|
46
|
+
* Stored email entry in mock provider
|
|
47
|
+
*/
|
|
48
|
+
interface MockEmailEntry {
|
|
49
|
+
id: string;
|
|
50
|
+
options: EmailOptions;
|
|
51
|
+
result: EmailResult;
|
|
52
|
+
timestamp: Date;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Mock Provider for testing emails without actually sending them
|
|
56
|
+
* Stores emails in memory for later retrieval and inspection
|
|
57
|
+
*/
|
|
58
|
+
declare const mockProvider: ProviderFactory<MockConfig, MockEmailEntry[]>;
|
|
59
|
+
export { type MockConfig, type MockEmailEntry, type MockEmailOptions, type ProviderFactory, type RandomDelayRange, mockProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"../../packem_shared/mockProvider-
|
|
1
|
+
import{default as e}from"../../packem_shared/mockProvider-C0P1lKOy.js";export{e as mockProvider};
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
2
|
+
export { type a as Provider } from "../../packem_shared/provider.d-DcfYeGJJ.js";
|
|
3
|
+
import { b as EmailAddress, B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-wwpgA3to.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Nodemailer configuration
|
|
7
|
+
* Accepts any nodemailer transport configuration
|
|
8
|
+
* Common transports: SMTP, Sendmail, SES, etc.
|
|
9
|
+
*/
|
|
10
|
+
interface NodemailerConfig extends BaseConfig {
|
|
11
|
+
/**
|
|
12
|
+
* Default from address (optional, can be overridden per email)
|
|
13
|
+
*/
|
|
14
|
+
defaultFrom?: EmailAddress;
|
|
15
|
+
/**
|
|
16
|
+
* Nodemailer transport configuration
|
|
17
|
+
* Can be a transport object or a transport name (e.g., 'smtp', 'sendmail')
|
|
18
|
+
* For SMTP: { host, port, secure, auth: { user, pass } }
|
|
19
|
+
* For Sendmail: { path: '/usr/sbin/sendmail' }
|
|
20
|
+
* For SES: { SES: { ... } }
|
|
21
|
+
* See: https://nodemailer.com/transports/
|
|
22
|
+
*/
|
|
23
|
+
transport: Record<string, unknown> | string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Nodemailer-specific email options
|
|
27
|
+
*/
|
|
28
|
+
interface NodemailerEmailOptions extends EmailOptions {
|
|
29
|
+
/**
|
|
30
|
+
* Override transport for this specific email
|
|
31
|
+
*/
|
|
32
|
+
transportOverride?: Record<string, unknown> | string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Nodemailer Provider for sending emails via nodemailer
|
|
36
|
+
*/
|
|
37
|
+
declare const nodemailerProvider: ProviderFactory<NodemailerConfig>;
|
|
38
|
+
export { type NodemailerConfig, type NodemailerEmailOptions, type ProviderFactory, nodemailerProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"../../packem_shared/nodemailerProvider-
|
|
1
|
+
import{default as o}from"../../packem_shared/nodemailerProvider-DFcvoVFv.js";export{o as nodemailerProvider};
|