n8n-nodes-pilot-status 2.11.0 → 2.12.0

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 CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to `n8n-nodes-pilot-status`.
4
4
 
5
+ ## 2.12.0 - 2026-10-29
6
+
7
+ ### Added
8
+
9
+ - **Template → Get Insights** (`GET /v1/templates/{id}/insights`): Meta's
10
+ sent/delivered/read totals, `readRate`, button `clicks` and a `daily` series, with
11
+ **Days** 7, 30 (default) or 90 sent as `?days=`. `422
12
+ TEMPLATE_INSIGHTS_UNAVAILABLE_SMB` on WhatsApp Business App / coexistence accounts.
13
+
5
14
  ## 2.11.0 - 2026-10-28
6
15
 
7
16
  ### Added
package/README.md CHANGED
@@ -232,6 +232,15 @@ Tenant-scoped credential. Nothing here charges by itself — a human pays the ho
232
232
  - **Sync Payment Intent:** `POST /v1/billing/payment-intents/{id}/sync` → `{ paymentIntentId, status, orderId, orderStatus, amount, currency, credited, balance, cardSaved }` — credits the wallet exactly once; never charges.
233
233
  - ⛔ Never log a `clientSecret`. `503 PAYMENTS_NOT_CONFIGURED` when card payments are unavailable.
234
234
 
235
+ ### 17. Template
236
+
237
+ - **Get Many** / **Get:** `GET /v1/templates[/{id}]`. Only `sendable: true` templates can be sent.
238
+ - **Get Insights:** `GET /v1/templates/{id}/insights?days=7|30|90` (default 30) — Meta's
239
+ sent/delivered/read totals, `readRate`, button `clicks` and a `daily` series for a META
240
+ template. WhatsApp Business App / coexistence accounts answer `422
241
+ TEMPLATE_INSIGHTS_UNAVAILABLE_SMB` (Meta gives no insights there); a non-Meta template
242
+ answers `409 TEMPLATE_NOT_ON_META`. The first call may enable insights on the WABA at Meta.
243
+
235
244
  ### 16. Workspace and Workspace API Key (account key only)
236
245
 
237
246
  These need an **account key** (`ps_account_...`); any other key or an OAuth token answers `403 ACCOUNT_KEY_REQUIRED`. The credential's Workspace ID is ignored here.
@@ -1717,6 +1717,15 @@ class PilotStatus {
1717
1717
  action: 'Get a template',
1718
1718
  routing: { request: { method: 'GET', url: '=/templates/{{$parameter.templateIdForGet}}' } },
1719
1719
  },
1720
+ {
1721
+ name: 'Get Insights',
1722
+ value: 'getInsights',
1723
+ description: 'Meta analytics for one META template: sent/delivered/read totals, readRate (null when nothing was delivered), button clicks and a daily series. WhatsApp Business App / coexistence accounts answer 422 TEMPLATE_INSIGHTS_UNAVAILABLE_SMB (Meta gives no insights there); a non-Meta template answers 409 TEMPLATE_NOT_ON_META. The first call may enable insights on the WABA at Meta.',
1724
+ action: 'Get template insights',
1725
+ routing: {
1726
+ request: { method: 'GET', url: '=/templates/{{$parameter.templateIdForGet}}/insights' },
1727
+ },
1728
+ },
1720
1729
  ],
1721
1730
  default: 'getAll',
1722
1731
  },
@@ -1724,10 +1733,24 @@ class PilotStatus {
1724
1733
  displayName: 'Template ID',
1725
1734
  name: 'templateIdForGet',
1726
1735
  type: 'string',
1727
- displayOptions: { show: { resource: ['template'], operation: ['get'] } },
1736
+ displayOptions: { show: { resource: ['template'], operation: ['get', 'getInsights'] } },
1728
1737
  default: '',
1729
1738
  required: true,
1730
1739
  },
1740
+ {
1741
+ displayName: 'Days',
1742
+ name: 'templateInsightsDays',
1743
+ type: 'options',
1744
+ displayOptions: { show: { resource: ['template'], operation: ['getInsights'] } },
1745
+ options: [
1746
+ { name: '7 Days', value: 7 },
1747
+ { name: '30 Days', value: 30 },
1748
+ { name: '90 Days', value: 90 },
1749
+ ],
1750
+ default: 30,
1751
+ description: 'Window of the insights, ending today',
1752
+ routing: { send: { type: 'query', property: 'days' } },
1753
+ },
1731
1754
  // ----------------------------------
1732
1755
  // Flow Operations
1733
1756
  // ----------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-pilot-status",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "n8n node for Pilot Status API",
5
5
  "keywords": [
6
6
  "n8ncommunity",