@types/nodemailer 6.4.20 → 6.4.22
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.
nodemailer v6.4/README.md
CHANGED
|
@@ -8,8 +8,8 @@ This package contains type definitions for nodemailer (https://github.com/nodema
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer/v6.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Mon,
|
|
12
|
-
* Dependencies: [@
|
|
11
|
+
* Last updated: Mon, 26 Jan 2026 19:37:03 GMT
|
|
12
|
+
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
15
15
|
These definitions were written by [Rogier Schouten](https://github.com/rogierschouten), [Piotr Roszatycki](https://github.com/dex4er), and [Daniel Chao](https://github.com/bioball).
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
|
|
3
|
-
import * as aws from "@aws-sdk/client-ses";
|
|
4
3
|
import { EventEmitter } from "node:events";
|
|
5
4
|
|
|
6
5
|
import { Transport, TransportOptions } from "../..";
|
|
@@ -10,6 +9,49 @@ import MailMessage = require("../mailer/mail-message");
|
|
|
10
9
|
import MimeNode = require("../mime-node");
|
|
11
10
|
|
|
12
11
|
declare namespace SESTransport {
|
|
12
|
+
/**
|
|
13
|
+
* Minimal structural shape of SES SendEmail input.
|
|
14
|
+
* This is intentionally structural so @types/nodemailer does not require
|
|
15
|
+
* installing @aws-sdk/client-ses.
|
|
16
|
+
*
|
|
17
|
+
* If you want the full, exact type, install @aws-sdk/client-ses in your
|
|
18
|
+
* app and use its types directly in your own code.
|
|
19
|
+
*/
|
|
20
|
+
interface SendEmailRequestLike {
|
|
21
|
+
Source?: string;
|
|
22
|
+
Destination?: {
|
|
23
|
+
ToAddresses?: string[];
|
|
24
|
+
CcAddresses?: string[];
|
|
25
|
+
BccAddresses?: string[];
|
|
26
|
+
};
|
|
27
|
+
Message?: unknown;
|
|
28
|
+
ReplyToAddresses?: string[];
|
|
29
|
+
ReturnPath?: string;
|
|
30
|
+
SourceArn?: string;
|
|
31
|
+
ReturnPathArn?: string;
|
|
32
|
+
Tags?: Array<{ Name?: string; Value?: string }>;
|
|
33
|
+
ConfigurationSetName?: string;
|
|
34
|
+
// Allow extra fields without forcing the SDK type package
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Structural type matching SES client from @aws-sdk/client-ses */
|
|
39
|
+
interface SESClientLike {
|
|
40
|
+
/** Used with v3 low-level client + SendRawEmailCommand */
|
|
41
|
+
send?(command: unknown): Promise<{ MessageId?: string }>;
|
|
42
|
+
/** Used with v3 high-level SES class or v2 SDK */
|
|
43
|
+
sendRawEmail?(params: unknown, options?: unknown): Promise<{ MessageId?: string }>;
|
|
44
|
+
config?: {
|
|
45
|
+
region?: string | (() => Promise<string>);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Structural type matching the aws module shape */
|
|
50
|
+
interface AwsModuleLike {
|
|
51
|
+
SendRawEmailCommand?: unknown;
|
|
52
|
+
[key: string]: unknown;
|
|
53
|
+
}
|
|
54
|
+
|
|
13
55
|
interface MailOptions extends Mail.Options {
|
|
14
56
|
/** list of keys that SendRawEmail method can take */
|
|
15
57
|
ses?: MailSesOptions | undefined;
|
|
@@ -17,16 +59,16 @@ declare namespace SESTransport {
|
|
|
17
59
|
|
|
18
60
|
// Keep it as an interface for backward-compatibility
|
|
19
61
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
20
|
-
interface MailSesOptions extends Partial<
|
|
62
|
+
interface MailSesOptions extends Partial<SendEmailRequestLike> {}
|
|
21
63
|
|
|
22
64
|
interface Options extends MailOptions, TransportOptions {
|
|
23
65
|
/** An option that expects an instantiated aws.SES object */
|
|
24
66
|
SES:
|
|
25
67
|
| {
|
|
26
|
-
ses:
|
|
27
|
-
aws:
|
|
68
|
+
ses: SESClientLike;
|
|
69
|
+
aws: AwsModuleLike;
|
|
28
70
|
}
|
|
29
|
-
|
|
|
71
|
+
| SESClientLike;
|
|
30
72
|
/** How many messages per second is allowed to be delivered to SES */
|
|
31
73
|
maxConnections?: number | undefined;
|
|
32
74
|
/** How many parallel connections to allow towards SES */
|
|
@@ -34,7 +76,7 @@ declare namespace SESTransport {
|
|
|
34
76
|
}
|
|
35
77
|
|
|
36
78
|
interface SentMessageInfo {
|
|
37
|
-
/** an envelope object {from
|
|
79
|
+
/** an envelope object {from:'address', to:['address']} */
|
|
38
80
|
envelope: MimeNode.Envelope;
|
|
39
81
|
/** the Message-ID header value. This value is derived from the response of SES API, so it differs from the Message-ID values used in logging. */
|
|
40
82
|
messageId: string;
|
nodemailer v6.4/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/nodemailer",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.22",
|
|
4
4
|
"description": "TypeScript definitions for nodemailer",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,10 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"scripts": {},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@aws-sdk/client-ses": "^3.731.1",
|
|
34
33
|
"@types/node": "*"
|
|
35
34
|
},
|
|
36
35
|
"peerDependencies": {},
|
|
37
|
-
"typesPublisherContentHash": "
|
|
36
|
+
"typesPublisherContentHash": "5b60f30661ae52e44ee9e3316e4105d85e1525e26428135f06fc537cb068b360",
|
|
38
37
|
"typeScriptVersion": "5.2"
|
|
39
38
|
}
|