@fleetkeep/cli 0.8.0 → 0.8.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/README.md CHANGED
@@ -193,4 +193,12 @@ retry with the same key returns the original record instead of creating a duplic
193
193
 
194
194
  The private email-forwarding address requires `tolls:write`, including when reading it: anyone holding that address can submit statements. Read-only integrations do not receive it.
195
195
 
196
- CLI toll statement imports accept CSV files up to 256 KiB, the published API limit. Email forwarding accepts up to five CSV attachments of 512 KiB each. Preview and confirm the exact file digest before a CLI import is applied.
196
+ CLI toll statement imports accept CSV files up to 256 KiB, the published API limit. Email forwarding accepts up to five PDF or CSV attachments of 512 KiB each. PDF charges always wait for approval. Preview and confirm the exact file digest before a CLI import is applied.
197
+
198
+ ### PDF invoices
199
+
200
+ Forward the original PDF invoice to the account’s private forwarding address, or upload it in Toll Control. PDF charges wait for review before saving. CSV statements remain supported. Text-based GBP PDFs from recognised UK toll providers are supported; scanned, encrypted or ambiguous documents return an actionable error rather than guessed charges.
201
+
202
+ `fleetkeep api call listTollPdfReviews` lists the signed-in account’s extracted rows and confirmation digests. Check the rows against the original invoice, then use `fleetkeep api call confirmTollPdfReview --data-file reviewed-pdf.json` with `batchId`, `confirmDigest`, `csv` and `confirmed: true`. The CSV is the reviewed structured data, not a file the customer needs to prepare. Keep the digest from the current review. Repeat confirmation is idempotent; a different account cannot read or confirm the invoice.
203
+
204
+ These operations require a CLI release containing the PDF operation definitions. The backend candidate must be deployed before use.
package/fleetkeep.mjs CHANGED
@@ -452,7 +452,8 @@ function printImport(payload, jsonOutput) {
452
452
  function printTollForwarding(payload, jsonOutput) {
453
453
  const lines = [
454
454
  `Email forwarding: ${payload.available === false ? 'not available' : payload.enabled ? 'enabled' : 'not enabled'}`,
455
- ...(payload.address ? [`Forward CSV statements to: ${payload.address}`] : []),
455
+ ...(payload.address ? [`Forward PDF invoices or CSV statements to: ${payload.address}`] : []),
456
+ 'PDF charges wait for review: fleetkeep api call listTollPdfReviews',
456
457
  `Inbox checked every ${payload.pollIntervalMinutes.toLocaleString('en-GB')} minutes.`,
457
458
  ...(payload.enabled || payload.available === false
458
459
  ? []
package/operations.mjs CHANGED
@@ -300,6 +300,8 @@ const definitions = [
300
300
  'tolls:write',
301
301
  { idempotency: true }
302
302
  ],
303
+ ['listTollPdfReviews', 'GET', '/api/v1/tolls/pdf-reviews', 'tolls:read'],
304
+ ['confirmTollPdfReview', 'POST', '/api/v1/tolls/pdf-reviews', 'tolls:write'],
303
305
  ['getTollForwarding', 'GET', '/api/v1/tolls/forwarding', 'tolls:write'],
304
306
  ['enableTollForwarding', 'POST', '/api/v1/tolls/forwarding', 'tolls:write'],
305
307
  ['previewTollImport', 'POST', '/api/v1/tolls/imports/preview', 'tolls:read'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetkeep/cli",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Operate every published Fleetkeep API workflow with guarded writes and machine-readable output",
5
5
  "type": "module",
6
6
  "bin": {