Skip to content

Releases: RyanMorash/aionatgrid

v0.4.0

28 Jan 01:05
ee305c2

Choose a tag to compare

Breaking Changes

  • Removed non-typed public API methods: ping(), linked_billing_accounts(), billing_account_info(), energy_usage_costs(), energy_usages(), ami_energy_usages(), realtime_meter_info()
  • Removed public exports: GraphQLRequest, GraphQLResponse, RestRequest, RestResponse, StandardQuery, all *_request() helper functions, RealtimeMeterInfo, realtime_meter_info_request, and all extract_*() functions

New Features

  • Added get_ami_energy_usages() typed client method returning list[AmiEnergyUsage]
  • Added AmiEnergyUsage and AmiEnergyUsagesConnection TypedDict models

Improvements

  • All get_* methods now call execute()/request_rest() directly instead of going through wrapper methods
  • Added Attributes documentation to all TypedDict models
  • Updated Sphinx docs, README, and CLAUDE.md for the simplified typed-only public API
  • Replaced stale "scaffold" terminology with "build" across docstrings

Migration

Replace calls to removed methods with their typed equivalents:

Before After
client.linked_billing_accounts() client.get_linked_accounts()
client.billing_account_info(variables=...) client.get_billing_account(account_number)
client.energy_usage_costs(variables=...) client.get_energy_usage_costs(account_number, query_date, company_code)
client.energy_usages(variables=...) client.get_energy_usages(account_number, from_month)
client.ami_energy_usages(variables=...) client.get_ami_energy_usages(meter_number, premise_number, ...)
client.realtime_meter_info(...) client.get_interval_reads(premise_number, service_point_number, start_datetime)

v0.1.0

27 Jan 02:29
1996fa6

Choose a tag to compare