Repository navigation
feat: get_aged_balances, get_open_items_for_agent, get_discharge_candidates - #268
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
LedgerClientmethods for the AR/AP aging reads, matching the TypeScript client'sgetAgedBalances/getOpenItemsForAgent/getDischargeCandidates. The server fields shipped in robosystems #1886 and #1887, both merged and not yet in a release (v1.19.2 predates them). Against an older server these queries fail validation.Changes
Hand-written
operations/ledger/:AgedReceivables.graphql,AgedPayables.graphql,OpenItemsForAgent.graphql,DischargeCandidates.graphql. Each is self-contained, with no cross-file fragments, since every document is validated on its own againstschema.graphql.LedgerClient:get_aged_balances(graph_id, kind, *, as_of, entity_id, scope)routes toagedReceivablesoragedPayables; both return the same fields.get_open_items_for_agent(graph_id, agent_id, kind, *, as_of, entity_id).get_discharge_candidates(graph_id, event_id), which returnsNonefor no such event.update_event_blockalready takesdischarge_allocationssince the last regen.Generated:
graphql/generated/(ariadne-codegen, hermetic from the checked-inschema.graphql): the four operation modules and theoperations.py/client.py/__init__.pyentries.Compatibility
ADDITIVE: three new methods and generated modules. No signature, export or existing model changed.
Testing
just test-all: 707 passed, 17 skipped; ruff check and format clean; basedpyright 0 errors.🤖 Generated with Claude Code
https://claude.ai/code/session_013UXnatpnbiixt1ZVHfdZAP