Repository navigation
Commit 9e76617
authored
chore: regenerate SDK (due dates, aged receivables and payables, discharge allocations) (#267)
## Summary
Regenerates the SDK and the checked-in GraphQL schema snapshot against
the robosystems branch that carries AR/AP aging, so the client covers it
end to end:
- due dates on invoices and bills (robosystems #1884);
- the aged receivables and payables reads (#1886);
- discharge allocations and settlement candidates (#1887).
None of this is in a robosystems release yet: v1.19.2 predates all
three. #1884 and #1886 are merged; #1887 is open. The new request fields
are inert against a server that predates them, and the new GraphQL
fields only resolve once that release deploys.
## Changes
Regenerated, no hand-written code:
- **`models/`**
- `CreateEventBlockRequest` gains `due_date` and `terms_days`.
- `EventBlockEnvelope` gains `due_date`.
- `UpdateEventBlockRequest` gains `due_date` and
`discharge_allocations`.
- New `DischargeAllocation` (`obligation_event_id`, `amount`).
- **`api/`:** the `create_event_block` / `update_event_block` docstrings
follow the operation descriptions.
- **`graphql/schema.graphql`:**
- new fields `agedReceivables`, `agedPayables`, `openItemsForAgent`,
`dischargeCandidates`;
- their types (`AgedBalances`, `AgingBuckets`, `AgedAgentRow`,
`ControlTieOut`, `ControlAccount`, `OpenItem`, `IntercompanyPair`,
`DischargeCandidates`);
- `dueDate` on `EventBlock`;
- the corrected `openReceivables` description.
- No `operations/*.graphql` document or `LedgerClient` method selects
the new fields yet, so `just generate-graphql` produces no change.
Facade methods come with the app work, in the TypeScript and Python
clients together.
## Compatibility
ADDITIVE.
- Every new model field is optional (`| None | Unset = UNSET`),
including `due_date` on the response envelope, so parsing a response
from a server without it is unchanged.
- No export, signature or existing field changed.
## Testing
- The regen was run by Joey against the local stack on the server
branch.
- `just generate-graphql`: no change.
- `just test-all`: 699 passed, 17 skipped; ruff check and format clean;
basedpyright 0 errors.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_013UXnatpnbiixt1ZVHfdZAP8 files changed
Lines changed: 569 additions & 12 deletions
File tree
- robosystems_client
- api/robo_ledger_ledger_events
- graphql
- models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| |||
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
168 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| |||
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
209 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
210 | 216 | | |
211 | 217 | | |
212 | 218 | | |
| |||
250 | 256 | | |
251 | 257 | | |
252 | 258 | | |
253 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
254 | 262 | | |
255 | 263 | | |
256 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
182 | 185 | | |
183 | 186 | | |
184 | 187 | | |
185 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
| |||
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
236 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
237 | 246 | | |
238 | 247 | | |
239 | 248 | | |
| |||
287 | 296 | | |
288 | 297 | | |
289 | 298 | | |
290 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
291 | 303 | | |
292 | 304 | | |
293 | 305 | | |
| |||
0 commit comments