mailpit-api 1.0.2 → 1.0.3
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/dist/cjs/index.d.ts +45 -1
- package/dist/mjs/index.d.ts +45 -1
- package/package.json +5 -5
- package/src/index.ts +45 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -87,7 +87,51 @@ export interface MailpitMessageSummaryResponse {
|
|
|
87
87
|
];
|
|
88
88
|
}
|
|
89
89
|
export interface MailpitMessagesSummaryResponse {
|
|
90
|
-
messages: [
|
|
90
|
+
messages: [
|
|
91
|
+
{
|
|
92
|
+
Attachments: number;
|
|
93
|
+
Size: number;
|
|
94
|
+
Snippet: string;
|
|
95
|
+
Subject: string;
|
|
96
|
+
Tags: [string];
|
|
97
|
+
ID: string;
|
|
98
|
+
MessageID: string;
|
|
99
|
+
Read: boolean;
|
|
100
|
+
Bcc: [
|
|
101
|
+
{
|
|
102
|
+
Address: string;
|
|
103
|
+
Name: string;
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
Cc: [
|
|
107
|
+
{
|
|
108
|
+
Address: string;
|
|
109
|
+
Name: string;
|
|
110
|
+
}
|
|
111
|
+
];
|
|
112
|
+
From: {
|
|
113
|
+
Address: string;
|
|
114
|
+
Name: string;
|
|
115
|
+
};
|
|
116
|
+
ReplyTo: [
|
|
117
|
+
{
|
|
118
|
+
Address: string;
|
|
119
|
+
Name: string;
|
|
120
|
+
}
|
|
121
|
+
];
|
|
122
|
+
To: [
|
|
123
|
+
{
|
|
124
|
+
Address: string;
|
|
125
|
+
Name: string;
|
|
126
|
+
}
|
|
127
|
+
];
|
|
128
|
+
}
|
|
129
|
+
];
|
|
130
|
+
messages_count: number;
|
|
131
|
+
start: number;
|
|
132
|
+
tags: [string];
|
|
133
|
+
total: number;
|
|
134
|
+
unread: number;
|
|
91
135
|
}
|
|
92
136
|
export interface MailpitMessageHeadersResponse {
|
|
93
137
|
[key: string]: string;
|
package/dist/mjs/index.d.ts
CHANGED
|
@@ -87,7 +87,51 @@ export interface MailpitMessageSummaryResponse {
|
|
|
87
87
|
];
|
|
88
88
|
}
|
|
89
89
|
export interface MailpitMessagesSummaryResponse {
|
|
90
|
-
messages: [
|
|
90
|
+
messages: [
|
|
91
|
+
{
|
|
92
|
+
Attachments: number;
|
|
93
|
+
Size: number;
|
|
94
|
+
Snippet: string;
|
|
95
|
+
Subject: string;
|
|
96
|
+
Tags: [string];
|
|
97
|
+
ID: string;
|
|
98
|
+
MessageID: string;
|
|
99
|
+
Read: boolean;
|
|
100
|
+
Bcc: [
|
|
101
|
+
{
|
|
102
|
+
Address: string;
|
|
103
|
+
Name: string;
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
Cc: [
|
|
107
|
+
{
|
|
108
|
+
Address: string;
|
|
109
|
+
Name: string;
|
|
110
|
+
}
|
|
111
|
+
];
|
|
112
|
+
From: {
|
|
113
|
+
Address: string;
|
|
114
|
+
Name: string;
|
|
115
|
+
};
|
|
116
|
+
ReplyTo: [
|
|
117
|
+
{
|
|
118
|
+
Address: string;
|
|
119
|
+
Name: string;
|
|
120
|
+
}
|
|
121
|
+
];
|
|
122
|
+
To: [
|
|
123
|
+
{
|
|
124
|
+
Address: string;
|
|
125
|
+
Name: string;
|
|
126
|
+
}
|
|
127
|
+
];
|
|
128
|
+
}
|
|
129
|
+
];
|
|
130
|
+
messages_count: number;
|
|
131
|
+
start: number;
|
|
132
|
+
tags: [string];
|
|
133
|
+
total: number;
|
|
134
|
+
unread: number;
|
|
91
135
|
}
|
|
92
136
|
export interface MailpitMessageHeadersResponse {
|
|
93
137
|
[key: string]: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mailpit-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A NodeJS client library, written in TypeScript, to interact with the Mailpit API.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"author": "Matthew Spahr",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"axios": "^1.7.
|
|
35
|
+
"axios": "^1.7.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@eslint/js": "^8.57.0",
|
|
39
|
-
"@types/node": "^20.14.
|
|
39
|
+
"@types/node": "^20.14.15",
|
|
40
40
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
41
41
|
"@typescript-eslint/parser": "^7.18.0",
|
|
42
42
|
"eslint": "^8.57.0",
|
|
43
|
-
"globals": "^15.
|
|
43
|
+
"globals": "^15.9.0",
|
|
44
44
|
"jest": "^29.7.0",
|
|
45
45
|
"prettier": "3.3.3",
|
|
46
|
-
"tsx": "^4.
|
|
46
|
+
"tsx": "^4.17.0",
|
|
47
47
|
"typescript": "^5.5.4",
|
|
48
48
|
"typescript-eslint": "^7.18.0"
|
|
49
49
|
}
|
package/src/index.ts
CHANGED
|
@@ -92,7 +92,51 @@ export interface MailpitMessageSummaryResponse {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
export interface MailpitMessagesSummaryResponse {
|
|
95
|
-
messages: [
|
|
95
|
+
messages: [
|
|
96
|
+
{
|
|
97
|
+
Attachments: number;
|
|
98
|
+
Size: number;
|
|
99
|
+
Snippet: string;
|
|
100
|
+
Subject: string;
|
|
101
|
+
Tags: [string];
|
|
102
|
+
ID: string;
|
|
103
|
+
MessageID: string;
|
|
104
|
+
Read: boolean;
|
|
105
|
+
Bcc: [
|
|
106
|
+
{
|
|
107
|
+
Address: string;
|
|
108
|
+
Name: string;
|
|
109
|
+
},
|
|
110
|
+
];
|
|
111
|
+
Cc: [
|
|
112
|
+
{
|
|
113
|
+
Address: string;
|
|
114
|
+
Name: string;
|
|
115
|
+
},
|
|
116
|
+
];
|
|
117
|
+
From: {
|
|
118
|
+
Address: string;
|
|
119
|
+
Name: string;
|
|
120
|
+
};
|
|
121
|
+
ReplyTo: [
|
|
122
|
+
{
|
|
123
|
+
Address: string;
|
|
124
|
+
Name: string;
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
To: [
|
|
128
|
+
{
|
|
129
|
+
Address: string;
|
|
130
|
+
Name: string;
|
|
131
|
+
},
|
|
132
|
+
];
|
|
133
|
+
},
|
|
134
|
+
];
|
|
135
|
+
messages_count: number;
|
|
136
|
+
start: number;
|
|
137
|
+
tags: [string];
|
|
138
|
+
total: number;
|
|
139
|
+
unread: number;
|
|
96
140
|
}
|
|
97
141
|
|
|
98
142
|
export interface MailpitMessageHeadersResponse {
|