feat(delivery): add POST /delivery/parsePDF SSE route

- Accepts multipart/form-data PDF, streams LLM extraction via SSE
- Uses libllmorbiter (OpenRouterProvider) with API key from companysetting keys.openrouter
- Extracts manifest basedata, notes, and line items from invoices/delivery notes
- Events: status, llm_call, tool_call, usage, progress, result, error
- Extends generateApiDocs.js: multipart field table + x-sse-events table support
- Docs: docs/api/routes/delivery/parsePDF.md (auto-generated)
This commit is contained in:
seb
2026-09-15 07:45:32 +02:00
parent 367555bb59
commit 12f37ac4c0
8 changed files with 1963 additions and 156 deletions

View File

@@ -20,15 +20,17 @@
"crypto": "^1.0.1",
"dotenv": "^17.4.2",
"express": "^5.2.1",
"google-auth-library": "^11.0.0",
"google-auth-library": "^11.0.2",
"ink": "^7.1.1",
"ink-text-input": "^6.0.0",
"jsonwebtoken": "^9.0.3",
"jszip": "^3.10.1",
"jszip": "^3.10.2",
"libdashstore": "file:../dashdbschema",
"mssql": "^12.7.0",
"react": "^19.2.8",
"sharp": "^0.35.3"
"libllmorbiter": "file:../llmorbiter",
"multer": "^2.4.0",
"mssql": "^12.7.2",
"react": "^19.3.0",
"sharp": "^0.35.4"
},
"devDependencies": {
"swagger-jsdoc": "^6.3.0"