fix(connect): Serialize pagination options for auto-pagination#1601
Conversation
Greptile SummaryThis PR fixes a regression where
Confidence Score: 5/5Safe to merge — the change is a targeted, well-scoped fix that correctly serializes filter options before they reach the auto-pagination layer. The only change is calling serializeListApplicationsOptions before constructing AutoPaginatable, mirroring the identical fix applied to other modules. The initial fetch already serialized options correctly; the bug was only on re-fetches inside generatePages, which spread this.options directly into query params. The fix is consistent with the established pattern in the codebase and does not touch any other code paths. No files require special attention. Important Files Changed
|
Summary
listApplicationspassed raw camelCase options toAutoPaginatable,so
generatePagessentorganizationIdinstead oforganization_idon re-fetch — the API rejected it with a 422
listOrganizationFeatureFlagsbroken with auto-pagination #1459, reintroduced when the Connect module wasgenerated in feat(connect): Add Connect module #1597
AutoPaginatableso all subsequent page fetches use snake_case query params
Test plan
await workos.connect.listApplications({ organizationId: '...' }).then(r => r.autoPagination())no longer throws 422bash scripts/cipassesFixes #1600