v0.1.8: Three data-shape bug fixes: GET envelope, profile sub-fields, source type
Three data-shape bug fixes: GET envelope, profile sub-fields, source type
All three tools that call single-record GET endpoints were broken against
the real ReliefWeb API due to shape mismatches in the service layer.
Fixed:
- reliefweb_get_report / reliefweb_get_disaster: GET endpoint returns data
as an array, not a single object; unwrap data[0] (#3) - reliefweb_get_country / reliefweb_get_disaster: profile sub-fields
(key_content, appeals_response_plans, useful_links) are { title, active,
archive } objects, not flat arrays; concatenate active + archive (#4) - reliefweb_list_sources: type field is a single { name } object, not an
array; types was always absent from results; filter docs showed wrong
values (e.g. 'NGO' vs 'Non-governmental Organization') (#5)
Service-level tests added in tests/services/reliefweb-service.test.ts
covering all three shapes; 136 tests pass total.
bun run devcheck clean.