Skip to content

Add GetUsageSummary additionalProperties example#4472

Draft
charlie-zhang109 wants to merge 3 commits into
masterfrom
czhang/usage-summary-additional-properties-example
Draft

Add GetUsageSummary additionalProperties example#4472
charlie-zhang109 wants to merge 3 commits into
masterfrom
czhang/usage-summary-additional-properties-example

Conversation

@charlie-zhang109

Copy link
Copy Markdown

Summary

  • Adds GetUsageSummary_additional_properties.ts example showing how to combine the v2 getUsageSummaryAvailableFields call with the v1 getUsageSummary call
  • Demonstrates iterating responseFields, dateFields, and dateOrgFields over additionalProperties at each nesting level (top-level, per-date, per-org)
  • Useful for customers who need to read all usage fields programmatically without hardcoding field names

Test plan

  • Verify file compiles (tsc --noEmit from repo root or the examples tsconfig)
  • Run against a test org to confirm all three field lists iterate correctly

🤖 Generated with Claude Code

charlie-zhang109 and others added 3 commits June 15, 2026 14:22
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… all layers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant