@trycourier/courier 3.2.0 → 3.2.1
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 +6 -1
- package/lib/client.js +9 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased][unreleased]
|
|
7
7
|
|
|
8
|
+
## [v3.2.1] - 2022-01-13
|
|
9
|
+
|
|
10
|
+
- Fixes `getMessages` query params
|
|
11
|
+
|
|
8
12
|
## [v3.2.0] - 2021-11-18
|
|
9
13
|
|
|
10
14
|
- adds idempotency expiration support for send and send list endpoints
|
|
@@ -185,7 +189,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
185
189
|
|
|
186
190
|
## v1.0.1 - 2019-07-12
|
|
187
191
|
|
|
188
|
-
[unreleased]: https://github.com/trycourier/courier-node/compare/v3.2.
|
|
192
|
+
[unreleased]: https://github.com/trycourier/courier-node/compare/v3.2.1...HEAD
|
|
193
|
+
[v3.2.1]: https://github.com/trycourier/courier-node/compare/v3.2.0...v3.2.1
|
|
189
194
|
[v3.2.0]: https://github.com/trycourier/courier-node/compare/v3.1.0...v3.2.0
|
|
190
195
|
[v3.1.0]: https://github.com/trycourier/courier-node/compare/v3.0.0...v3.1.0
|
|
191
196
|
[v3.0.0]: https://github.com/trycourier/courier-node/compare/v2.8.0...v3.0.0
|
package/lib/client.js
CHANGED
|
@@ -120,13 +120,15 @@ var getMessages = function (options) {
|
|
|
120
120
|
return __generator(this, function (_a) {
|
|
121
121
|
switch (_a.label) {
|
|
122
122
|
case 0: return [4 /*yield*/, options.httpClient.get("/messages", {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
params: {
|
|
124
|
+
cursor: params === null || params === void 0 ? void 0 : params.cursor,
|
|
125
|
+
event: params === null || params === void 0 ? void 0 : params.eventId,
|
|
126
|
+
list: params === null || params === void 0 ? void 0 : params.listId,
|
|
127
|
+
messageId: params === null || params === void 0 ? void 0 : params.messageId,
|
|
128
|
+
notification: params === null || params === void 0 ? void 0 : params.notificationId,
|
|
129
|
+
recipient: params === null || params === void 0 ? void 0 : params.recipientId,
|
|
130
|
+
status: params === null || params === void 0 ? void 0 : params.status
|
|
131
|
+
}
|
|
130
132
|
})];
|
|
131
133
|
case 1:
|
|
132
134
|
res = _a.sent();
|