Version 1.2.2
Added
- Track API Enhancement: Added
certificatefield toTrackResponse- provides certificate URL for impacts (only available in production environment) - Impact API Breakdown: Enhanced
getImpact()to include detailed breakdown:userImpact: Impact metrics generated directly by your organizationcustomerImpact: Impact metrics generated on behalf of your customers- Both breakdown objects include
treePlanted,wasteRemoved,carbonCaptured, andmoneyDonatedfields
- Daily Impact API: New
getDailyImpact()method for time-series impact data- Returns daily impact records with date, trees planted, waste removed, carbon captured, and money donated
- Supports optional date range filtering with
startDateandendDateparameters (YYYY-MM-DD format) - New types:
GetDailyImpactResponse,DailyImpactRecord,ImpactBreakdown,GetDailyImpactParams
Changed
- Updated
ImpactResponseto includeuserImpactandcustomerImpactbreakdown fields - Enhanced documentation with examples for new impact breakdown and daily impact features
- Updated test suite to validate new fields and functionality
Documentation
- Updated README with examples for impact breakdown and daily impact retrieval
- Added certificate field documentation to Track API section
- Improved examples showing how to access direct vs customer impact metrics
Full Changelog: v1.1.0...v1.2.2