Skip to content

Commit 28152e7

Browse files
authored
chore: regenerate the schema and models (#229)
## Summary Regenerate against the current API so the checked-in GraphQL schema and models carry its descriptions. Two API changes reach the text: report downloads now describe the holon as the stamped anchor and the default format (robosystems#1658), and a reconciliation's `status` gains `stale` and drops `explained` (robosystems#1657). ## Changes - `robosystems_client/graphql/schema.graphql` (generated): the `reportDownloadUrl` field, its `format` argument and `ReportBundleDownload` describe the holon as stamped at publish and the default, with the Tavi and XBRL built on first download. `ReconciliationSummary.status` lists `not_started`, `stale`, `unreconciled`, `reconciled`, `reviewed`. - `robosystems_client/models/reconciliation_summary.py` (generated): the same `status` docstring. No hand-written facade code changes; the facade's download default already moved to `holon-jsonld` in #228. ## Compatibility INTERNAL. Descriptions only: no export, signature or model field changes. `status` stays a plain string. The values the API returns change server-side (`stale` added, `explained` removed), so code that branches on `explained` should handle `stale` once the server release with robosystems#1657 is deployed. Prod does not have it yet, so this should ship in the next client minor after that deploy. ## Testing Regenerated by hand against a local API running robosystems#1658 on top of `main`. The pre-commit hook ran the test suite: 609 passed, 17 skipped. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
2 parents 1100376 + 23cf27a commit 28152e7

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎robosystems_client/graphql/schema.graphql‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,8 @@ type Query {
505505
506506
The only way to download a report's bundle. Every format resolves to a
507507
short-lived presigned S3 URL which the client follows directly — the
508-
field returns the URL, never the bytes. The Tavi model is stamped at
509-
publish time; the holon and XBRL are materialized and cached on first
508+
field returns the URL, never the bytes. The holon is stamped at
509+
publish time; the Tavi and XBRL are materialized and cached on first
510510
request. `expiresIn`
511511
is the URL's lifetime in seconds, bounded 60-3600.
512512
@@ -518,7 +518,7 @@ type Query {
518518
"""The published report whose bundle to link."""
519519
reportId: String!
520520

521-
"""Serialization flavor. Defaults to the Tavi model."""
521+
"""Serialization flavor. Defaults to the holon."""
522522
format: ReportDownloadFormat = null
523523

524524
"""
@@ -1663,7 +1663,7 @@ type ReconciliationSummary {
16631663
asOf: Date!
16641664

16651665
"""
1666-
`not_started`: not compared for this period. `unreconciled`: the sides differ by more than the materiality. `explained`: they differ and items account for all of it. `reconciled`: nothing is left unexplained. `reviewed`: reconciled and signed off.
1666+
`not_started`: not compared for this period. `stale`: the books have changed since it was compared, so run refresh-reconciliations. `unreconciled`: the sides differ by more than the materiality. `reconciled`: they agree within it. `reviewed`: reconciled and signed off.
16671667
"""
16681668
status: String!
16691669

@@ -3229,7 +3229,7 @@ type InformationBlockChartSeries {
32293229
Presigned-URL response for a published Report's serialization bundle.
32303230
32313231
Every flavor resolves to a short-lived presigned URL pointing at the
3232-
bundle in S3 — the Tavi model is stamped at publish time; the holon and
3232+
bundle in S3 — the holon is stamped at publish time; the Tavi and
32333233
XBRL 2.1 are materialized on first download and cached by
32343234
`generationCount`.
32353235
The client follows `downloadUrl` to fetch the artifact directly

‎robosystems_client/models/reconciliation_summary.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class ReconciliationSummary:
3333
materiality (float): A difference up to this amount still counts as reconciled.
3434
period (str): The period, as YYYY-MM.
3535
as_of (datetime.date): The period's last day.
36-
status (str): `not_started`: not compared for this period. `unreconciled`: the sides differ by more than the
37-
materiality. `explained`: they differ and items account for all of it. `reconciled`: nothing is left
38-
unexplained. `reviewed`: reconciled and signed off.
36+
status (str): `not_started`: not compared for this period. `stale`: the books have changed since it was
37+
compared, so run refresh-reconciliations. `unreconciled`: the sides differ by more than the materiality.
38+
`reconciled`: they agree within it. `reviewed`: reconciled and signed off.
3939
review_required (bool): Whether the close also waits for a sign-off.
4040
separate_reviewer (bool): Whether the reviewer must be someone other than the person who ran the comparison.
4141
element_id (None | str | Unset): The account reconciled; null for a ledger-scope block.

0 commit comments

Comments
 (0)