Files
br-acc/api
bruno cesar c8f4b6762e Add exposure index + timeline endpoints, fix investigation router prefix
- Investigation router: prefix-based routing (relative paths), shared route on separate mini-router
- FastAPI: redirect_slashes=False safety net
- Schema: added Sanction.date_start and Amendment.date indexes
- New models: ExposureFactor, ExposureResponse, TimelineEvent, TimelineResponse
- New Cypher: entity_score, entity_score_peers, entity_timeline (cursor-paginated)
- New service: score_service.py with weighted exposure index (connections/sources/financial/patterns/baseline)
- New endpoints: GET /entity/{id}/exposure, GET /entity/{id}/timeline
- Fix: meta.py dict type annotations (pre-existing mypy errors)
- Tests: 17 new tests (score_service + entity_timeline), all 143 pass

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 04:22:21 -03:00
..