Skip to content

Fix query params on HTTP methods and pagination extraction - #2

Merged
javrrr merged 1 commit into
mainfrom
fix/sdk-query-params-and-pagination
Mar 25, 2026
Merged

Fix query params on HTTP methods and pagination extraction#2
javrrr merged 1 commit into
mainfrom
fix/sdk-query-params-and-pagination

Conversation

@javrrr

@javrrr javrrr commented Mar 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • HttpClient: Added optional query parameter to post(), put(), patch(), and delete() methods. The underlying request() already supported query params — these just needed the type exposed.
  • Resource delete() methods: All 14 resource services now accept query in their delete options, enabling spec-defined params like shouldDeleteDataLakeObject on dataStreams.delete().
  • Pagination: Fixed extractItems() to auto-detect array-valued properties on collection responses (dataStreams, connections, dataLakeObjects, etc.) instead of only checking data/metadata/records. This eliminates the need for as any casts when using listAll().

All changes validated against the OpenAPI spec.

Test plan

  • npx tsc --noEmit passes
  • All 208 tests pass (32 test files, 0 failures)
  • Verify dataStreams.delete(id, { query: { shouldDeleteDataLakeObject: true } }) works against a live instance
  • Verify listAll() yields typed items without as any for dataStreams, connections, dataLakeObjects

- Add optional query parameter to post(), put(), patch(), delete() on
  HttpClient (the underlying request() already supported it)
- Add query param support to delete() on all resource services, enabling
  e.g. shouldDeleteDataLakeObject on dataStreams.delete()
- Fix paginate() extractItems to auto-detect array properties on
  collection responses (dataStreams, connections, dataLakeObjects, etc.)
  instead of only checking data/metadata/records
@javrrr
javrrr merged commit 6f4ecbd into main Mar 25, 2026
2 checks passed
@javrrr
javrrr deleted the fix/sdk-query-params-and-pagination branch March 26, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant