shipmail 0.4.9 → 0.4.11
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/README.md +5 -0
- package/dist/index.cjs +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -221,6 +221,11 @@ await shipmail.messages.send({
|
|
|
221
221
|
});
|
|
222
222
|
|
|
223
223
|
await shipmail.messages.list({ mailbox_id: "mbx_...", limit: 25 });
|
|
224
|
+
const analytics = await shipmail.messages.listAnalytics({
|
|
225
|
+
updated_after: "2026-07-01T00:00:00.000Z",
|
|
226
|
+
limit: 100,
|
|
227
|
+
});
|
|
228
|
+
// Follow analytics.pagination.next_cursor, then persist analytics.pagination.snapshot_at.
|
|
224
229
|
await shipmail.messages.get("msg_...");
|
|
225
230
|
|
|
226
231
|
await shipmail.messages.reply("msg_...", {
|
package/dist/index.cjs
CHANGED
|
@@ -1042,6 +1042,19 @@ var Messages = class extends ApiResource {
|
|
|
1042
1042
|
limit: params.limit
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
|
+
listAnalytics(params = {}, options) {
|
|
1046
|
+
return this.client.request({
|
|
1047
|
+
method: "GET",
|
|
1048
|
+
path: "/messages/analytics",
|
|
1049
|
+
query: {
|
|
1050
|
+
updated_after: params.updated_after,
|
|
1051
|
+
updated_before: params.updated_before,
|
|
1052
|
+
cursor: params.cursor,
|
|
1053
|
+
limit: params.limit
|
|
1054
|
+
},
|
|
1055
|
+
methodOptions: options
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1045
1058
|
get(id, options) {
|
|
1046
1059
|
return this.client.request({
|
|
1047
1060
|
method: "GET",
|
|
@@ -1555,7 +1568,7 @@ var Webhooks = class extends ApiResource {
|
|
|
1555
1568
|
};
|
|
1556
1569
|
|
|
1557
1570
|
// src/version.ts
|
|
1558
|
-
var VERSION = "0.4.
|
|
1571
|
+
var VERSION = "0.4.11";
|
|
1559
1572
|
|
|
1560
1573
|
// src/client.ts
|
|
1561
1574
|
var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
|