hollerpost-mcp 0.1.1 → 0.1.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/dist/tools.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/tools.js
CHANGED
|
@@ -371,7 +371,9 @@ export const TOOLS = [
|
|
|
371
371
|
annotations: READ,
|
|
372
372
|
run: async (api, { id }) => {
|
|
373
373
|
const data = await api.request('GET', `/campaigns/${seg(id)}/stats`);
|
|
374
|
-
|
|
374
|
+
// The API nests the numbers under `stats`.
|
|
375
|
+
const st = get(data, 'stats') ?? data;
|
|
376
|
+
const lead = `Stats for ${id}: sent ${get(st, 'sent') ?? 0}, delivered ${get(st, 'delivered') ?? 0}, opened ${get(st, 'opened') ?? 0}, clicked ${get(st, 'clicked') ?? 0}, bounced ${get(st, 'bounced') ?? 0}, unsubscribed ${get(st, 'unsubscribed') ?? 0}.`;
|
|
375
377
|
return { lead, data };
|
|
376
378
|
},
|
|
377
379
|
}),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.2";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Kept in sync with package.json "version" (a test checks it).
|
|
2
|
-
export const VERSION = '0.1.
|
|
2
|
+
export const VERSION = '0.1.2';
|
package/package.json
CHANGED