Skip to content

Version 1.2.2

Choose a tag to compare

@1ClickImpact 1ClickImpact released this 09 Jan 16:30
· 4 commits to main since this release

Added

  • Track API Enhancement: Added certificate field to TrackResponse - 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 organization
    • customerImpact: Impact metrics generated on behalf of your customers
    • Both breakdown objects include treePlanted, wasteRemoved, carbonCaptured, and moneyDonated fields
  • 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 startDate and endDate parameters (YYYY-MM-DD format)
    • New types: GetDailyImpactResponse, DailyImpactRecord, ImpactBreakdown, GetDailyImpactParams

Changed

  • Updated ImpactResponse to include userImpact and customerImpact breakdown 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