API Reference
Complete function signatures, types, and interfaces for the measurements package
Domain
Measurements
@octopus-energy/measurements: core fetching, filtering, grouping, availability, errors, and types.
Market Supply Points
@octopus-energy/measurements/market-supply-points: fetch, resolve, and inspect supply point descriptors.
Anchor Date
@octopus-energy/measurements/anchor-date: resolveAnchorDate for finding the best starting date.
Transforms
Overview
@octopus-energy/measurements/overview: createMeasurementsOverview and chart-ready output types.
Summary
@octopus-energy/measurements/summary: week-over-week summary transforms and types.
Coral Compat
@octopus-energy/measurements/compat: Coral mappers for overview, summary, and timeframe output.
State
Timeframe
@octopus-energy/measurements/timeframe: timeframe state, actions, resolution, and types.
Preferences
@octopus-energy/measurements/preferences: display preference state, actions, resolution, and types.
Storage
Storage Adapter
@octopus-energy/measurements/storage: core StorageAdapter interface and factory.
Local Storage
@octopus-energy/measurements/storage/local-storage: browser localStorage adapter.
Session Storage
@octopus-energy/measurements/storage/ression-storage: browser sessionStorage adapter.
nuqs Shared Types
@octopus-energy/measurements/storage/nuqs: shared parser default and option types.
nuqs Client
@octopus-energy/measurements/storage/nuqs/client: client URL state adapter and parser configs.
nuqs Server
@octopus-energy/measurements/storage/nuqs/server: server-safe parser configs and scoped param helpers.