mailgun.js 5.2.1 → 5.2.2
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 +10 -0
- package/README.md +3 -1
- package/events.d.ts +2 -4
- package/interfaces/Events.d.ts +21 -0
- package/interfaces/Messages.d.ts +1 -1
- package/mailgun.node.js +2 -2
- package/mailgun.node.js.LICENSE.txt +1 -1
- package/mailgun.web.js +2 -2
- package/mailgun.web.js.LICENSE.txt +1 -1
- package/package.json +1 -1
- package/request.d.ts +1 -0
- package/version.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [5.2.2](https://github.com/mailgun/mailgun.js/compare/v5.2.1...v5.2.2) (2022-04-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Fix parsing of a response body with json data ([d57671f](https://github.com/mailgun/mailgun.js/commits/d57671f0b0af0c24e64684697e3f5d9001fa43cd))
|
|
11
|
+
* Update message type. Update readme file ([dd22ec0](https://github.com/mailgun/mailgun.js/commits/dd22ec0588b7ddcf04f2f96f6b109502446f766c))
|
|
12
|
+
* Update query parameter type for events get method ([1705a1f](https://github.com/mailgun/mailgun.js/commits/1705a1f34f855d53471548646dda44dbdd0d6338))
|
|
13
|
+
* Update response handler to support string response ([6e0f305](https://github.com/mailgun/mailgun.js/commits/6e0f3053e2ffe9dec25dd6fa8cfe19140be626ad))
|
|
14
|
+
|
|
5
15
|
### [5.2.1](https://github.com/mailgun/mailgun.js/compare/v5.2.0...v5.2.1) (2022-04-14)
|
|
6
16
|
|
|
7
17
|
|
package/README.md
CHANGED
|
@@ -135,7 +135,9 @@ Options:
|
|
|
135
135
|
|
|
136
136
|
Parameter | Description
|
|
137
137
|
:---------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
138
|
-
to | Email address of the recipient(s). Example: "Bob <bob@host.com>". You can use commas to separate multiple recipients (e.g.: "test@example.com,test@example.com" or ["test@example.com", "test@example.com"]).
|
|
138
|
+
to | Email address of the recipient(s). Example: "Bob <bob@host.com>". You can use commas to separate multiple recipients (e.g.: "test@example.com,test@example.com" or ["test@example.com", "test@example.com"]).
|
|
139
|
+
cc | Same as `To` but for `carbon copy`
|
|
140
|
+
bcc | Same as `To` but for `blind carbon copy`
|
|
139
141
|
html | HTML version of the message.
|
|
140
142
|
text | Text version of the message.
|
|
141
143
|
message | MIME string of the message. Make sure to use multipart/form-data to send this as a file upload.
|
package/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventsList, EventsPage, EventsResponse, ParsedPagesList } from './interfaces/Events';
|
|
1
|
+
import { EventsList, EventsPage, EventsQuery, EventsResponse, ParsedPagesList } from './interfaces/Events';
|
|
2
2
|
import Request from './request';
|
|
3
3
|
export default class EventClient {
|
|
4
4
|
request: Request;
|
|
@@ -7,7 +7,5 @@ export default class EventClient {
|
|
|
7
7
|
_parsePage(id: string, url: string): EventsPage;
|
|
8
8
|
_parsePageLinks(response: EventsResponse): ParsedPagesList;
|
|
9
9
|
_parseEventList(response: EventsResponse): EventsList;
|
|
10
|
-
get(domain: string, query?:
|
|
11
|
-
page: string;
|
|
12
|
-
}): Promise<EventsList>;
|
|
10
|
+
get(domain: string, query?: EventsQuery): Promise<EventsList>;
|
|
13
11
|
}
|
package/interfaces/Events.d.ts
CHANGED
|
@@ -3,6 +3,27 @@ export interface EventsPage {
|
|
|
3
3
|
number: string;
|
|
4
4
|
url: string;
|
|
5
5
|
}
|
|
6
|
+
export interface FilterField {
|
|
7
|
+
event?: string;
|
|
8
|
+
list?: string;
|
|
9
|
+
attachment?: string;
|
|
10
|
+
from?: string;
|
|
11
|
+
'message-id'?: string;
|
|
12
|
+
subject?: string;
|
|
13
|
+
to?: string;
|
|
14
|
+
size?: string;
|
|
15
|
+
recipient?: string;
|
|
16
|
+
recipients?: string;
|
|
17
|
+
tags?: string;
|
|
18
|
+
severity?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface EventsQuery extends FilterField {
|
|
21
|
+
page?: string;
|
|
22
|
+
begin?: string;
|
|
23
|
+
end?: string;
|
|
24
|
+
ascending?: 'yes' | 'no';
|
|
25
|
+
limit?: number;
|
|
26
|
+
}
|
|
6
27
|
export interface PagesList {
|
|
7
28
|
previous: string;
|
|
8
29
|
first: string;
|
package/interfaces/Messages.d.ts
CHANGED