feat(legal-aid): add /api/legal-aid/parse-pdf-report endpoint
Ports the pdfplumber-based parser from the (currently inactive) n8n workflow legal-aid-report-ingest.json so EspoCRM's GreenInvoiceBilling extension can do manual upload + dry-run preview of monthly Legal Aid payment reports without depending on n8n being live. Auth: X-Api-Key (matches admin_kb pattern). Response shape: same JSON the existing LegalAidPaymentReportService ingest pipeline expects, so the EspoCRM controller can hand it straight back to ::ingest($payload, $pdf, dryRun=true). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ dependencies = [
|
||||
"openai>=1.50.0",
|
||||
"pyyaml>=6.0",
|
||||
"pymupdf>=1.24.0",
|
||||
"pdfplumber>=0.11.0",
|
||||
"asyncpg>=0.30.0",
|
||||
"python-docx>=1.1.2",
|
||||
"boto3>=1.35.0",
|
||||
|
||||
Reference in New Issue
Block a user