Skip to content

storageUsageEstimator.ts: Add breakdown by data category in usage report #678

Description

@Kingsman-99

Description

src/storageUsageEstimator.ts reports total estimated storage usage as a single number. Integrators need a breakdown by category (invoices, events, cache) to identify which data type is driving storage costs.

Acceptance Criteria

  • estimateUsage() returns a StorageReport with a breakdown: Record<string, number> field
  • breakdown keys correspond to data categories registered with the estimator
  • breakdown values sum to the existing totalBytes field
  • Unit tests pass

Context

  • Target file: src/storageUsageEstimator.ts
  • Categories should be registered via a registerCategory(name, estimateFn) method

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions