@visulima/email 2.1.5 → 2.1.7
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 +14 -0
- package/dist/crypto/index.d.ts +183 -183
- package/dist/crypto/index.js +1 -1
- package/dist/deliverability/dmarc-report.d.ts +43 -43
- package/dist/deliverability/dmarc-report.js +1 -1
- package/dist/deliverability/index.d.ts +201 -201
- package/dist/events/index.d.ts +17 -17
- package/dist/inbound/index.d.ts +180 -180
- package/dist/index.d.ts +35 -46
- package/dist/index.js +1 -1
- package/dist/middleware/index.d.ts +213 -216
- package/dist/middleware/index.js +1 -1
- package/dist/packem_shared/{DkimSigner-CiLBaXrg.js → DkimSigner-sLcIw9bp.js} +6 -6
- package/dist/packem_shared/{DraftMailMessage-CGTVuy2z.js → DraftMailMessage-C3YTXqWo.js} +1 -1
- package/dist/packem_shared/EmailError-CDvYwuqz.js +1 -0
- package/dist/packem_shared/{Mail-CYAwMRnX.js → Mail-CIyxkmxu.js} +1 -1
- package/dist/packem_shared/MailMessage-DuEXJiCg.js +1 -0
- package/dist/packem_shared/{RequiredOptionError-DuNNY_a5.js → RequiredOptionError-DU2lxzk3.js} +1 -1
- package/dist/packem_shared/SmimeEncrypter-CzTbQM-z.js +6 -0
- package/dist/packem_shared/SmimeSigner-DjLShaOw.js +8 -0
- package/dist/packem_shared/{ahaSendProvider-DSuZIzaQ.js → ahaSendProvider-br1yB2un.js} +1 -1
- package/dist/packem_shared/arcMessageSignatureBase-D54jQIWu.js +17 -0
- package/dist/packem_shared/attachment-processor-D1cbAhQi.js +1 -0
- package/dist/packem_shared/{autoSendProvider-DqAoelWR.js → autoSendProvider-BSP8ueOC.js} +1 -1
- package/dist/packem_shared/{awsSesProvider-ClK1FUln.js → awsSesProvider-zRICW1pH.js} +13 -13
- package/dist/packem_shared/azureProvider-DwN4c5dC.js +1 -0
- package/dist/packem_shared/{brevoProvider-CIzuIDlt.js → brevoProvider-C491beE_.js} +1 -1
- package/dist/packem_shared/{build-mime-message-BW5FQ2Bt.js → build-mime-message-DT67qfMp.js} +1 -1
- package/dist/packem_shared/{circuitBreakerMiddleware-D2SA_07f.js → circuitBreakerMiddleware-N0CKF90q.js} +1 -1
- package/dist/packem_shared/{cloudflareEmailProvider-B8mOEl3N.js → cloudflareEmailProvider-8JxzLbpX.js} +1 -1
- package/dist/packem_shared/{createTestEmail-f12yLlWn.js → createTestEmail-D_ksEez3.js} +1 -1
- package/dist/packem_shared/dedupeMiddleware-CYYI_O7S.js +1 -0
- package/dist/packem_shared/{detectMimeType-DFH3kp6K.js → detectMimeType-CmYmWDXE.js} +1 -1
- package/dist/packem_shared/event-bus.d-BNQA-FZE.d.ts +104 -0
- package/dist/packem_shared/{failoverProvider-BgX6zfnY.js → failoverProvider-6qwE_HSJ.js} +1 -1
- package/dist/packem_shared/generate-boundary-0xGe9GqK.js +1 -0
- package/dist/packem_shared/{httpProvider-aBfTXyCT.js → httpProvider-BqrdZhGw.js} +1 -1
- package/dist/packem_shared/index-Gd7m-UQA.js +11 -0
- package/dist/packem_shared/{infobipProvider-DxzsONUX.js → infobipProvider-C2FU6VMP.js} +1 -1
- package/dist/packem_shared/isValidSigningCertUrl-DNxPA0Q-.js +3 -0
- package/dist/packem_shared/{loopsProvider-QBsAH6Ee.js → loopsProvider-Bz63so6m.js} +1 -1
- package/dist/packem_shared/mail.d-xKtvoKMK.d.ts +909 -0
- package/dist/packem_shared/{mailCrabProvider-DRE5snM9.js → mailCrabProvider-bkQy-2a1.js} +1 -1
- package/dist/packem_shared/{mailPaceProvider-DCa-4ghl.js → mailPaceProvider-S1AB-AYq.js} +1 -1
- package/dist/packem_shared/{mailchannelsProvider-GiwkYBdD.js → mailchannelsProvider-B_K6X4VY.js} +1 -1
- package/dist/packem_shared/{mailerSendProvider-RK6IbUrL.js → mailerSendProvider-DPEww2H1.js} +1 -1
- package/dist/packem_shared/mailgunProvider-DKxzVbDW.js +1 -0
- package/dist/packem_shared/mailjetProvider-C2TQcujL.js +1 -0
- package/dist/packem_shared/{mailomatProvider-DPDpVS8r.js → mailomatProvider-B8-5bQsu.js} +1 -1
- package/dist/packem_shared/{mailtrapProvider-DtrS4Q34.js → mailtrapProvider-DW7TLOdG.js} +1 -1
- package/dist/packem_shared/{make-request-B9XjBynA.js → make-request-CylyuRaN.js} +1 -1
- package/dist/packem_shared/{mandrillProvider-B84zH-eV.js → mandrillProvider-S-0lKNGd.js} +1 -1
- package/dist/packem_shared/{mockProvider-Behywbl1.js → mockProvider-BAl292mW.js} +1 -1
- package/dist/packem_shared/{netcoreProvider-D-wtCyJj.js → netcoreProvider-DajMprlo.js} +1 -1
- package/dist/packem_shared/{nodemailerProvider-BFHobXxt.js → nodemailerProvider-DRo0lJ6g.js} +1 -1
- package/dist/packem_shared/{opentelemetryProvider-ByHC01ub.js → opentelemetryProvider-C6spx2CD.js} +1 -1
- package/dist/packem_shared/{outlook365Provider-Btk4Emig.js → outlook365Provider-B0o7UZBW.js} +1 -1
- package/dist/packem_shared/{plunkProvider-Bw8e6460.js → plunkProvider-DJzEUEtU.js} +1 -1
- package/dist/packem_shared/{postalProvider-CT8zr89z.js → postalProvider-DHFjFE3Y.js} +1 -1
- package/dist/packem_shared/{postmarkProvider-CQSqZWDs.js → postmarkProvider-Dt1EGGBA.js} +1 -1
- package/dist/packem_shared/{provider-base-C7PuopYK.js → provider-base-DjPzWncP.js} +1 -1
- package/dist/packem_shared/{provider.d-J-y6iogK.d.ts → provider.d-Cx5YQJdP.d.ts} +9 -9
- package/dist/packem_shared/{resendProvider-drJYlvLP.js → resendProvider-qjI86j_d.js} +1 -1
- package/dist/packem_shared/{retry-ipI5DRJ8.js → retry-CG9iT2wF.js} +1 -1
- package/dist/packem_shared/{roundRobinProvider-D1by5KGW.js → roundRobinProvider-CO5YvhgR.js} +1 -1
- package/dist/packem_shared/{scalewayProvider-DU5gXQrl.js → scalewayProvider-CihQKhw6.js} +1 -1
- package/dist/packem_shared/{sendGridProvider-BuTbEXW8.js → sendGridProvider-Dkc5AKlC.js} +1 -1
- package/dist/packem_shared/{smtpProvider-5MI3-EPh.js → smtpProvider-CIXMxPu-.js} +12 -12
- package/dist/packem_shared/{sparkpostProvider-UAsFYIjP.js → sparkpostProvider-CKxQhpyB.js} +1 -1
- package/dist/packem_shared/{sweegoProvider-SUz0LIcA.js → sweegoProvider-DjmAs6La.js} +1 -1
- package/dist/packem_shared/{tracer.d-MU42G1jG.d.ts → tracer.d-sb5yrt_n.d.ts} +2 -2
- package/dist/packem_shared/types.d-B0t3PQ3t.d.ts +107 -0
- package/dist/packem_shared/{types.d-ejzh-xBP.d.ts → types.d-B9295M4_.d.ts} +82 -82
- package/dist/packem_shared/types.d-BzoHR9nB.d.ts +61 -0
- package/dist/packem_shared/types.d-C5geVKes.d.ts +51 -0
- package/dist/packem_shared/types.d-GKqPNk0I.d.ts +24 -0
- package/dist/packem_shared/types.d-I-KeZ5w2.d.ts +9 -0
- package/dist/packem_shared/types.d-kHO4kX9q.d.ts +69 -0
- package/dist/packem_shared/utils-DjEtR3qT.js +1 -0
- package/dist/packem_shared/verifyMailgunWebhook-DNk080BF.js +1 -0
- package/dist/packem_shared/verifyPostmarkWebhook-B4OIEHQF.js +1 -0
- package/dist/packem_shared/verifyResendWebhook-C7E32LZ1.js +1 -0
- package/dist/packem_shared/verifySendGridWebhook-1l9bqIMw.js +1 -0
- package/dist/packem_shared/withEvents-CytsykaK.js +1 -0
- package/dist/packem_shared/{withSuppression-DBaZDMAr.js → withSuppression-BoaO4Qdz.js} +1 -1
- package/dist/packem_shared/{zeptomailProvider-DXNX9mG_.js → zeptomailProvider-DSTC9pUi.js} +1 -1
- package/dist/providers/ahasend/index.d.ts +18 -18
- package/dist/providers/ahasend/index.js +1 -1
- package/dist/providers/autosend/index.d.ts +30 -30
- package/dist/providers/autosend/index.js +1 -1
- package/dist/providers/aws-ses/index.d.ts +20 -20
- package/dist/providers/aws-ses/index.js +1 -1
- package/dist/providers/azure/index.d.ts +26 -26
- package/dist/providers/azure/index.js +1 -1
- package/dist/providers/brevo/index.d.ts +35 -35
- package/dist/providers/brevo/index.js +1 -1
- package/dist/providers/cloudflare-email/index.d.ts +25 -25
- package/dist/providers/cloudflare-email/index.js +1 -1
- package/dist/providers/failover/index.d.ts +14 -14
- package/dist/providers/failover/index.js +1 -1
- package/dist/providers/http/index.d.ts +15 -15
- package/dist/providers/http/index.js +1 -1
- package/dist/providers/infobip/index.d.ts +28 -28
- package/dist/providers/infobip/index.js +1 -1
- package/dist/providers/loops/index.d.ts +25 -25
- package/dist/providers/loops/index.js +1 -1
- package/dist/providers/mailchannels/index.d.ts +13 -13
- package/dist/providers/mailchannels/index.js +1 -1
- package/dist/providers/mailcrab/index.d.ts +17 -17
- package/dist/providers/mailcrab/index.js +1 -1
- package/dist/providers/mailersend/index.d.ts +24 -24
- package/dist/providers/mailersend/index.js +1 -1
- package/dist/providers/mailgun/index.d.ts +37 -37
- package/dist/providers/mailgun/index.js +1 -1
- package/dist/providers/mailjet/index.d.ts +36 -36
- package/dist/providers/mailjet/index.js +1 -1
- package/dist/providers/mailomat/index.d.ts +20 -20
- package/dist/providers/mailomat/index.js +1 -1
- package/dist/providers/mailpace/index.d.ts +24 -24
- package/dist/providers/mailpace/index.js +1 -1
- package/dist/providers/mailtrap/index.d.ts +22 -22
- package/dist/providers/mailtrap/index.js +1 -1
- package/dist/providers/mandrill/index.d.ts +36 -36
- package/dist/providers/mandrill/index.js +1 -1
- package/dist/providers/mock/index.d.ts +8 -8
- package/dist/providers/mock/index.js +1 -1
- package/dist/providers/netcore/index.d.ts +17 -17
- package/dist/providers/netcore/index.js +1 -1
- package/dist/providers/nodemailer/index.d.ts +22 -22
- package/dist/providers/nodemailer/index.js +1 -1
- package/dist/providers/opentelemetry/index.d.ts +20 -20
- package/dist/providers/opentelemetry/index.js +1 -1
- package/dist/providers/outlook365/index.d.ts +82 -82
- package/dist/providers/outlook365/index.js +1 -1
- package/dist/providers/plunk/index.d.ts +18 -18
- package/dist/providers/plunk/index.js +1 -1
- package/dist/providers/postal/index.d.ts +24 -24
- package/dist/providers/postal/index.js +1 -1
- package/dist/providers/postmark/index.d.ts +30 -30
- package/dist/providers/postmark/index.js +1 -1
- package/dist/providers/resend/index.d.ts +24 -24
- package/dist/providers/resend/index.js +1 -1
- package/dist/providers/roundrobin/index.d.ts +14 -14
- package/dist/providers/roundrobin/index.js +1 -1
- package/dist/providers/scaleway/index.d.ts +22 -22
- package/dist/providers/scaleway/index.js +1 -1
- package/dist/providers/sendgrid/index.d.ts +25 -25
- package/dist/providers/sendgrid/index.js +1 -1
- package/dist/providers/smtp/index.d.ts +11 -11
- package/dist/providers/smtp/index.js +1 -1
- package/dist/providers/sparkpost/index.d.ts +21 -21
- package/dist/providers/sparkpost/index.js +1 -1
- package/dist/providers/sweego/index.d.ts +20 -20
- package/dist/providers/sweego/index.js +1 -1
- package/dist/providers/zeptomail/index.d.ts +17 -17
- package/dist/providers/zeptomail/index.js +1 -1
- package/dist/queue/bullmq-queue.d.ts +26 -26
- package/dist/queue/index.d.ts +86 -86
- package/dist/queue/pg-boss-queue.d.ts +13 -13
- package/dist/queue/sqs-queue.d.ts +20 -20
- package/dist/queue/unstorage-queue.d.ts +47 -47
- package/dist/queue/unstorage-queue.js +1 -1
- package/dist/render/cid.d.ts +12 -12
- package/dist/render/css-inline.d.ts +12 -12
- package/dist/render/css-inline.js +1 -1
- package/dist/render/dark-mode.d.ts +12 -12
- package/dist/render/preheader.d.ts +16 -16
- package/dist/template-engines/handlebars.d.ts +19 -19
- package/dist/template-engines/handlebars.js +1 -1
- package/dist/template-engines/html-to-text.d.ts +12 -12
- package/dist/template-engines/html-to-text.js +1 -1
- package/dist/template-engines/i18n.d.ts +43 -43
- package/dist/template-engines/i18n.js +1 -1
- package/dist/template-engines/jsx-email.d.ts +8 -8
- package/dist/template-engines/jsx-email.js +1 -1
- package/dist/template-engines/liquid.d.ts +9 -9
- package/dist/template-engines/liquid.js +1 -1
- package/dist/template-engines/mjml.d.ts +9 -9
- package/dist/template-engines/mjml.js +1 -1
- package/dist/template-engines/react-email.d.ts +8 -8
- package/dist/template-engines/react-email.js +1 -1
- package/dist/template-engines/vue-email.d.ts +8 -8
- package/dist/template-engines/vue-email.js +1 -1
- package/dist/test/index.d.ts +89 -89
- package/dist/test/index.js +1 -1
- package/dist/utils/cache.d.ts +27 -27
- package/dist/utils/format-email-address.d.ts +6 -6
- package/dist/utils/format-email-address.js +1 -1
- package/dist/utils/normalize-email-aliases.d.ts +19 -19
- package/dist/utils/parse-address.d.ts +16 -16
- package/dist/utils/parse-eml.d.ts +18 -18
- package/dist/utils/result.d.ts +30 -30
- package/dist/utils/result.js +1 -1
- package/dist/utils/validation/check-feature-support.d.ts +33 -33
- package/dist/utils/validation/validate-email.d.ts +4 -4
- package/dist/webhooks/index.d.ts +134 -134
- package/dist/webhooks/index.js +1 -1
- package/package.json +1 -1
- package/dist/packem_shared/EmailError-B-sEf3bp.js +0 -1
- package/dist/packem_shared/MailMessage-DQRgs5Dz.js +0 -1
- package/dist/packem_shared/SmimeEncrypter-DavopRlE.js +0 -6
- package/dist/packem_shared/SmimeSigner-0onWksAv.js +0 -8
- package/dist/packem_shared/arcMessageSignatureBase-DDLEHW2E.js +0 -17
- package/dist/packem_shared/attachment-processor-CMp7qqMI.js +0 -1
- package/dist/packem_shared/azureProvider-Cw_Tmde6.js +0 -1
- package/dist/packem_shared/dedupeMiddleware-B6ajWOTi.js +0 -1
- package/dist/packem_shared/event-bus.d-DEl3w_EW.d.ts +0 -104
- package/dist/packem_shared/generate-boundary-DQbzDiOI.js +0 -1
- package/dist/packem_shared/index-BoZvzveg.js +0 -11
- package/dist/packem_shared/isValidSigningCertUrl-Bii1AMGC.js +0 -3
- package/dist/packem_shared/mail.d-B9SSqyy0.d.ts +0 -909
- package/dist/packem_shared/mailgunProvider-D9HUWGKN.js +0 -1
- package/dist/packem_shared/mailjetProvider-DelLs2Vt.js +0 -1
- package/dist/packem_shared/types.d-BId55FW2.d.ts +0 -107
- package/dist/packem_shared/types.d-CmoWvdZi.d.ts +0 -61
- package/dist/packem_shared/types.d-DCkecJse.d.ts +0 -51
- package/dist/packem_shared/types.d-Mpu0HZoG.d.ts +0 -24
- package/dist/packem_shared/types.d-lcJZmwRK.d.ts +0 -69
- package/dist/packem_shared/types.d-nyR1ty1Q.d.ts +0 -9
- package/dist/packem_shared/utils-BfYfPB_I.js +0 -1
- package/dist/packem_shared/verifyMailgunWebhook-Cwl0OD3P.js +0 -1
- package/dist/packem_shared/verifyPostmarkWebhook-C72ZvbrG.js +0 -1
- package/dist/packem_shared/verifyResendWebhook-YK2zNDXR.js +0 -1
- package/dist/packem_shared/verifySendGridWebhook-Dbwc1tfG.js +0 -1
- package/dist/packem_shared/withEvents-CCVblSqj.js +0 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* Scaleway configuration
|
|
7
|
-
*/
|
|
6
|
+
* Scaleway configuration
|
|
7
|
+
*/
|
|
8
8
|
interface ScalewayConfig extends BaseConfig {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* Scaleway API key
|
|
11
|
+
*/
|
|
12
12
|
apiKey: string;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
* Scaleway API endpoint
|
|
15
|
+
* Defaults to: https://api.scaleway.com/transactional-email/v1alpha1
|
|
16
|
+
*/
|
|
17
17
|
endpoint?: string;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
* Scaleway region (e.g., "fr-par", "nl-ams")
|
|
20
|
+
*/
|
|
21
21
|
region: string;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Scaleway-specific email options
|
|
25
|
-
*/
|
|
24
|
+
* Scaleway-specific email options
|
|
25
|
+
*/
|
|
26
26
|
interface ScalewayEmailOptions extends EmailOptions {
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
* Project ID (optional)
|
|
29
|
+
*/
|
|
30
30
|
projectId?: string;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
* Scaleway template ID for template-based emails
|
|
33
|
+
*/
|
|
34
34
|
templateId?: string;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
* Template variables for Scaleway templates
|
|
37
|
+
*/
|
|
38
38
|
templateVariables?: Record<string, unknown>;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* Scaleway Provider for sending emails through Scaleway API
|
|
42
|
-
*/
|
|
41
|
+
* Scaleway Provider for sending emails through Scaleway API
|
|
42
|
+
*/
|
|
43
43
|
declare const scalewayProvider: ProviderFactory<ScalewayConfig>;
|
|
44
44
|
export { type ProviderFactory, type ScalewayConfig, type ScalewayEmailOptions, scalewayProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"../../packem_shared/scalewayProvider-
|
|
1
|
+
import{default as r}from"../../packem_shared/scalewayProvider-CihQKhw6.js";export{r as scalewayProvider};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* SendGrid configuration
|
|
7
|
-
*/
|
|
6
|
+
* SendGrid configuration
|
|
7
|
+
*/
|
|
8
8
|
interface SendGridConfig extends BaseConfig {
|
|
9
9
|
apiKey: string;
|
|
10
10
|
endpoint?: string;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* SendGrid-specific email options
|
|
14
|
-
*/
|
|
13
|
+
* SendGrid-specific email options
|
|
14
|
+
*/
|
|
15
15
|
interface SendGridEmailOptions extends EmailOptions {
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* ASM (Advanced Suppression Management) group ID for unsubscribe
|
|
18
|
+
*/
|
|
19
19
|
asmGroupId?: number;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* Batch ID for batch sending
|
|
22
|
+
*/
|
|
23
23
|
batchId?: string;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
* IP pool name
|
|
26
|
+
*/
|
|
27
27
|
ipPoolName?: string;
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
* Mail settings (click tracking, open tracking, etc.)
|
|
30
|
+
*/
|
|
31
31
|
mailSettings?: {
|
|
32
32
|
bypassListManagement?: boolean;
|
|
33
33
|
footer?: {
|
|
@@ -38,20 +38,20 @@ interface SendGridEmailOptions extends EmailOptions {
|
|
|
38
38
|
sandboxMode?: boolean;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
* Send at timestamp (Unix timestamp)
|
|
42
|
+
*/
|
|
43
43
|
sendAt?: number;
|
|
44
44
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
* Dynamic template data for SendGrid dynamic templates
|
|
46
|
+
*/
|
|
47
47
|
templateData?: Record<string, unknown>;
|
|
48
48
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
* SendGrid template ID for template-based emails
|
|
50
|
+
*/
|
|
51
51
|
templateId?: string;
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
* Tracking settings
|
|
54
|
+
*/
|
|
55
55
|
trackingSettings?: {
|
|
56
56
|
clickTracking?: {
|
|
57
57
|
enable?: boolean;
|
|
@@ -78,7 +78,7 @@ interface SendGridEmailOptions extends EmailOptions {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* SendGrid Provider for sending emails through SendGrid API
|
|
82
|
-
*/
|
|
81
|
+
* SendGrid Provider for sending emails through SendGrid API
|
|
82
|
+
*/
|
|
83
83
|
declare const sendGridProvider: ProviderFactory<SendGridConfig>;
|
|
84
84
|
export { type ProviderFactory, type SendGridConfig, type SendGridEmailOptions, sendGridProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"../../packem_shared/sendGridProvider-
|
|
1
|
+
import{default as e}from"../../packem_shared/sendGridProvider-Dkc5AKlC.js";export{e as sendGridProvider};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* SMTP configuration
|
|
7
|
-
*/
|
|
6
|
+
* SMTP configuration
|
|
7
|
+
*/
|
|
8
8
|
interface SmtpConfig extends BaseConfig {
|
|
9
9
|
authMethod?: "LOGIN" | "PLAIN" | "CRAM-MD5" | "OAUTH2";
|
|
10
10
|
dkim?: {
|
|
@@ -30,12 +30,12 @@ interface SmtpConfig extends BaseConfig {
|
|
|
30
30
|
user?: string;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* SMTP-specific email options
|
|
34
|
-
*/
|
|
33
|
+
* SMTP-specific email options
|
|
34
|
+
*/
|
|
35
35
|
interface SmtpEmailOptions extends EmailOptions {
|
|
36
36
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
* Delivery Status Notification options
|
|
38
|
+
*/
|
|
39
39
|
dsn?: {
|
|
40
40
|
/** Request notification on delay */
|
|
41
41
|
delay?: boolean;
|
|
@@ -65,7 +65,7 @@ interface SmtpEmailOptions extends EmailOptions {
|
|
|
65
65
|
useDkim?: boolean;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
* SMTP provider for sending emails via SMTP protocol
|
|
69
|
-
*/
|
|
68
|
+
* SMTP provider for sending emails via SMTP protocol
|
|
69
|
+
*/
|
|
70
70
|
declare const smtpProvider: ProviderFactory<SmtpConfig>;
|
|
71
71
|
export { type ProviderFactory, type SmtpConfig, type SmtpEmailOptions, smtpProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"../../packem_shared/smtpProvider-
|
|
1
|
+
import{default as o}from"../../packem_shared/smtpProvider-CIXMxPu-.js";export{o as smtpProvider};
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* SparkPost configuration.
|
|
7
|
-
*/
|
|
6
|
+
* SparkPost configuration.
|
|
7
|
+
*/
|
|
8
8
|
interface SparkPostConfig extends BaseConfig {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* SparkPost API key (sent as the `Authorization` header).
|
|
11
|
+
*/
|
|
12
12
|
apiKey: string;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* API endpoint override. Use `https://api.eu.sparkpost.com/api/v1` for the EU region.
|
|
15
|
+
*/
|
|
16
16
|
endpoint?: string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* SparkPost-specific email options.
|
|
20
|
-
*/
|
|
19
|
+
* SparkPost-specific email options.
|
|
20
|
+
*/
|
|
21
21
|
interface SparkPostEmailOptions extends EmailOptions {
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
* Campaign id applied to the transmission.
|
|
24
|
+
*/
|
|
25
25
|
campaignId?: string;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
* Stored template id to send instead of inline content.
|
|
28
|
+
*/
|
|
29
29
|
templateId?: string;
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
* Whether click tracking is enabled.
|
|
32
|
+
*/
|
|
33
33
|
trackClicks?: boolean;
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
* Whether engagement tracking (opens/clicks) is enabled.
|
|
36
|
+
*/
|
|
37
37
|
trackOpens?: boolean;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* SparkPost provider — sends email through the SparkPost Transmissions API.
|
|
41
|
-
*/
|
|
40
|
+
* SparkPost provider — sends email through the SparkPost Transmissions API.
|
|
41
|
+
*/
|
|
42
42
|
declare const sparkpostProvider: ProviderFactory<SparkPostConfig>;
|
|
43
43
|
export { type ProviderFactory, type SparkPostConfig, type SparkPostEmailOptions, sparkpostProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as a}from"../../packem_shared/sparkpostProvider-
|
|
1
|
+
import{default as a}from"../../packem_shared/sparkpostProvider-CKxQhpyB.js";export{a as sparkpostProvider};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* Sweego configuration
|
|
7
|
-
*/
|
|
6
|
+
* Sweego configuration
|
|
7
|
+
*/
|
|
8
8
|
interface SweegoConfig extends BaseConfig {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* Sweego API key
|
|
11
|
+
*/
|
|
12
12
|
apiKey: string;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
* Sweego API endpoint
|
|
15
|
+
* Defaults to: https://api.sweego.com
|
|
16
|
+
*/
|
|
17
17
|
endpoint?: string;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Sweego-specific email options
|
|
21
|
-
*/
|
|
20
|
+
* Sweego-specific email options
|
|
21
|
+
*/
|
|
22
22
|
interface SweegoEmailOptions extends EmailOptions {
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* Tags for categorization
|
|
25
|
+
*/
|
|
26
26
|
tags?: string[];
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
* Sweego template ID for template-based emails
|
|
29
|
+
*/
|
|
30
30
|
templateId?: string;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
* Template variables for Sweego templates
|
|
33
|
+
*/
|
|
34
34
|
templateVariables?: Record<string, unknown>;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* Sweego Provider for sending emails through Sweego API
|
|
38
|
-
*/
|
|
37
|
+
* Sweego Provider for sending emails through Sweego API
|
|
38
|
+
*/
|
|
39
39
|
declare const sweegoProvider: ProviderFactory<SweegoConfig>;
|
|
40
40
|
export { type ProviderFactory, type SweegoConfig, type SweegoEmailOptions, sweegoProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"../../packem_shared/sweegoProvider-
|
|
1
|
+
import{default as r}from"../../packem_shared/sweegoProvider-DjmAs6La.js";export{r as sweegoProvider};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* Zeptomail configuration
|
|
7
|
-
*/
|
|
6
|
+
* Zeptomail configuration
|
|
7
|
+
*/
|
|
8
8
|
interface ZeptomailConfig extends BaseConfig {
|
|
9
9
|
endpoint?: string;
|
|
10
10
|
token: string;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Zeptomail-specific email options
|
|
14
|
-
*/
|
|
13
|
+
* Zeptomail-specific email options
|
|
14
|
+
*/
|
|
15
15
|
interface ZeptomailEmailOptions extends EmailOptions {
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* Client reference - identifier set by the user to track a particular transaction
|
|
18
|
+
*/
|
|
19
19
|
clientReference?: string;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* MIME headers - additional headers sent in the email for reference
|
|
22
|
+
*/
|
|
23
23
|
mimeHeaders?: Record<string, string>;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
* Track email clicks - enables tracking for click events
|
|
26
|
+
*/
|
|
27
27
|
trackClicks?: boolean;
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
* Track email opens - enables tracking for open events
|
|
30
|
+
*/
|
|
31
31
|
trackOpens?: boolean;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Zeptomail Provider for sending emails through Zeptomail API
|
|
35
|
-
*/
|
|
34
|
+
* Zeptomail Provider for sending emails through Zeptomail API
|
|
35
|
+
*/
|
|
36
36
|
declare const zeptomailProvider: ProviderFactory<ZeptomailConfig>;
|
|
37
37
|
export { type ProviderFactory, type ZeptomailConfig, type ZeptomailEmailOptions, zeptomailProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"../../packem_shared/zeptomailProvider-
|
|
1
|
+
import{default as r}from"../../packem_shared/zeptomailProvider-DSTC9pUi.js";export{r as zeptomailProvider};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as EmailOptions, a as EmailResult, R as Result } from "../packem_shared/types.d-
|
|
2
|
-
import { E as EnqueueOptions } from "../packem_shared/types.d-
|
|
1
|
+
import { E as EmailOptions, a as EmailResult, R as Result } from "../packem_shared/types.d-B9295M4_.js";
|
|
2
|
+
import { E as EnqueueOptions } from "../packem_shared/types.d-kHO4kX9q.js";
|
|
3
3
|
import 'node:buffer';
|
|
4
4
|
/**
|
|
5
|
-
* The subset of a [BullMQ](https://docs.bullmq.io/) `Queue` this adapter uses.
|
|
6
|
-
*/
|
|
5
|
+
* The subset of a [BullMQ](https://docs.bullmq.io/) `Queue` this adapter uses.
|
|
6
|
+
*/
|
|
7
7
|
interface BullmqQueueLike {
|
|
8
8
|
add: (name: string, data: unknown, options?: {
|
|
9
9
|
delay?: number;
|
|
@@ -12,35 +12,35 @@ interface BullmqQueueLike {
|
|
|
12
12
|
}>;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* A BullMQ job, narrowed to its `data` payload.
|
|
16
|
-
*/
|
|
15
|
+
* A BullMQ job, narrowed to its `data` payload.
|
|
16
|
+
*/
|
|
17
17
|
interface BullmqJobLike {
|
|
18
18
|
data: EmailOptions;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* A BullMQ `Worker` processor that sends a job's message and resolves with the send result.
|
|
22
|
-
*/
|
|
21
|
+
* A BullMQ `Worker` processor that sends a job's message and resolves with the send result.
|
|
22
|
+
*/
|
|
23
23
|
type BullmqProcessor = (job: BullmqJobLike) => Promise<EmailResult>;
|
|
24
24
|
/**
|
|
25
|
-
* Adds a message to a BullMQ queue.
|
|
26
|
-
*
|
|
27
|
-
* BullMQ is push-based — jobs are consumed by a BullMQ `Worker`, not the pull-based reserve/ack model
|
|
28
|
-
* of `EmailQueue`. Use this to enqueue and {@link createBullmqProcessor} to consume.
|
|
29
|
-
* @param queue A BullMQ `Queue` instance to add the job to (optional peer).
|
|
30
|
-
* @param message The email payload stored as the BullMQ job data.
|
|
31
|
-
* @param options Optional scheduling — `scheduledAt` maps to a BullMQ `delay`.
|
|
32
|
-
* @param jobName The name to enqueue the job under.
|
|
33
|
-
* @returns The id of the created BullMQ job.
|
|
34
|
-
*/
|
|
25
|
+
* Adds a message to a BullMQ queue.
|
|
26
|
+
*
|
|
27
|
+
* BullMQ is push-based — jobs are consumed by a BullMQ `Worker`, not the pull-based reserve/ack model
|
|
28
|
+
* of `EmailQueue`. Use this to enqueue and {@link createBullmqProcessor} to consume.
|
|
29
|
+
* @param queue A BullMQ `Queue` instance to add the job to (optional peer).
|
|
30
|
+
* @param message The email payload stored as the BullMQ job data.
|
|
31
|
+
* @param options Optional scheduling — `scheduledAt` maps to a BullMQ `delay`.
|
|
32
|
+
* @param jobName The name to enqueue the job under.
|
|
33
|
+
* @returns The id of the created BullMQ job.
|
|
34
|
+
*/
|
|
35
35
|
declare const enqueueToBullmq: (queue: BullmqQueueLike, message: EmailOptions, options?: EnqueueOptions, jobName?: string) => Promise<string>;
|
|
36
36
|
/**
|
|
37
|
-
* Builds a BullMQ `Worker` processor that sends each job's message via the given send function.
|
|
38
|
-
*
|
|
39
|
-
* Pass it to `new Worker(queueName, createBullmqProcessor(mail.send.bind(mail)), { concurrency })`.
|
|
40
|
-
* BullMQ then handles concurrency, retries (via the job's `attempts`/`backoff`) and dead-lettering. A
|
|
41
|
-
* failed send throws so BullMQ records the attempt.
|
|
42
|
-
* @param send The send function — typically `mail.send.bind(mail)`.
|
|
43
|
-
* @returns A BullMQ processor function.
|
|
44
|
-
*/
|
|
37
|
+
* Builds a BullMQ `Worker` processor that sends each job's message via the given send function.
|
|
38
|
+
*
|
|
39
|
+
* Pass it to `new Worker(queueName, createBullmqProcessor(mail.send.bind(mail)), { concurrency })`.
|
|
40
|
+
* BullMQ then handles concurrency, retries (via the job's `attempts`/`backoff`) and dead-lettering. A
|
|
41
|
+
* failed send throws so BullMQ records the attempt.
|
|
42
|
+
* @param send The send function — typically `mail.send.bind(mail)`.
|
|
43
|
+
* @returns A BullMQ processor function.
|
|
44
|
+
*/
|
|
45
45
|
declare const createBullmqProcessor: (send: (message: EmailOptions) => Promise<Result<EmailResult>>) => BullmqProcessor;
|
|
46
46
|
export { BullmqJobLike, BullmqProcessor, BullmqQueueLike, createBullmqProcessor, enqueueToBullmq };
|