Commit f50bc1b
authored
fix!: match the backend's standardized single-level pagination shape (#50)
* fix!: match the backend's standardized single-level pagination shape
BREAKING CHANGE: the Authorizer backend removed the PaginatedRequest
wrapper type entirely (authorizerdev/authorizer, fix(graphql)! commit
standardizing pagination on PaginationRequest directly, matching the
proto/gRPC surface which never had a double-wrapper). This SDK's
verificationRequests/webhooks/emailTemplates methods hardcoded
PaginatedRequest in both their query strings and Types.PaginatedRequest
parameter type - both now updated to PaginationRequest directly.
Callers previously wrote e.g. `.webhooks({ pagination: { limit: 10 } })`;
now write `.webhooks({ limit: 10 })` directly.
The 6 List*Request types (Clients/TrustedIssuers/SAMLServiceProviders/
Organizations/OrgDomains/OrgMembers) needed no change here: their
`pagination` field was already typed as PaginationRequest in this SDK,
even though the old backend schema actually required the PaginatedRequest
wrapper for those - meaning no strictly-typed caller of this SDK could
have constructed the shape the old schema demanded for those 6 endpoints
in the first place. This backend fix makes those types correct rather
than accidentally correct.
Verified against a locally built authorizer image running the backend
fix: all 26 admin.test.ts integration tests pass (graphql + rest), full
build and typecheck clean.
* chore(ci): bump test image to 2.4.0-rc.9
Picks up the backend's pagination schema fix this PR targets.1 parent 9777e61 commit f50bc1b
4 files changed
Lines changed: 9 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
| 222 | + | |
225 | 223 | | |
226 | 224 | | |
227 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
| 518 | + | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
| 635 | + | |
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | 646 | | |
652 | 647 | | |
653 | 648 | | |
| |||
0 commit comments