Firmenbuch (JustizOnline HVD): register numbers and politicians' company functions

- firmenbuch.search: register number for companies linked to people/parties, only for
  one current register entry with the same name
- firmenbuch.extracts: current extracts; officers/shareholders who are politicians in
  the database (exact birth date + name, new person hint birth_date) become company_role
  claims; nobody else is stored, raw responses are not archived, addresses never read;
  the register's daily change list triggers re-extracts
- enrich.firmenbuch closes roles a newer extract no longer lists
- Request.data (raw body, part of the fingerprint); SOAP faults are not retried
- firmenbuch_number drops leading zeros; migration 0009 adds company_role and aligns
  stored numbers; internal politrack_org ids are no longer stored as identifiers
- company_role in API types, MCP docs, person money tab, connections, labels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
simonandClaude Opus 5.5 committed 2026-11-19 11:33:01 +01:00
1 parent 68be25a953
commit 10c677ca70
30 files changed
+597 -20

No files matched your search

+2 -1
View File
@@ -37,7 +37,7 @@ run, state, app_user operations
| `parlament` | person | Parliament person id (PAD) – `parlament.gv.at/person/<id>` |
| `wikidata` | person, org | Wikidata QID |
| `ep` | person | European Parliament MEP id |
| `firmenbuch` | org | Austrian company register number (FN), normalised `306527a` (`text.firmenbuch_number`) – from side-job declarations, procurement, party holdings |
| `firmenbuch` | org | Austrian company register number (FN), normalised `306527a` without leading zeros (`text.firmenbuch_number`) – from side-job declarations, procurement, party holdings and the register search (`firmenbuch.search`) |
| `zvr` | org | Austrian association register number (ZVR) – from party reports (affiliated organisations) |
| `uid` | org | VAT id (ATU…) |
| `rtr` | org | legal entity id in the RTR media-transparency data |
@@ -59,6 +59,7 @@ counterpart (`counterpart_person_id`, `counterpart_org_id`), time (`occurred_at`
| `donation` | `money_flow` | Rechnungshof donation lists, party reports |
| `money_flow` | `money_flow` | procurement, RTR media transparency, party funding, political ads |
| `side_job` | – (`data`, counterpart org) | parliament declarations |
| `company_role` | – (`data.function`, `data.fn`, counterpart = company) | Firmenbuch extracts (`firmenbuch.extracts`); ended when a newer extract no longer lists it (`enrich.firmenbuch`) |
| `statement` | `statement` (context, platform, url, excerpt) | speeches, social posts |
| `appearance`, `meeting`, `travel` | `event_participant` → `event` | calendar, hearings, Council of Ministers, `enrich.events`, EC meetings |
| `legal_proceeding` | `legal_proceeding` (stage, offense, authority) | immunity reports, `enrich.legal` (reviewed) |