Skip to content

Migrate SDK types from path-based to operation-based#5

Merged
marcqualie merged 3 commits into
mainfrom
use-api-types-0.1.1
Feb 24, 2026
Merged

Migrate SDK types from path-based to operation-based#5
marcqualie merged 3 commits into
mainfrom
use-api-types-0.1.1

Conversation

@sbornia

@sbornia sbornia commented Feb 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Bump @upvio/api-types to 0.1.1 which provides the operations type
  • Rename type helpers to be HTTP-method-agnostic (GetDataResponseData, GetQueryParamsQueryParams, PostDataCreatedResponseData, PostBodyRequestBody) and simplify them to accept operation-level types directly
  • Replace apiTypes.paths['/businesses/{businessId}/...'] with apiTypes.operations['operationName'] across all endpoint files, removing intermediate path type aliases

Provides the `operations` type used to migrate from path-based to
operation-based type references.
Accept operation-level types directly instead of requiring
HTTP-method-specific path entries:
- GetData → ResponseData
- GetQueryParams → QueryParams
- PostData → CreatedResponseData
- PostBody → RequestBody
Replace `apiTypes.paths['/businesses/{businessId}/...']` with
`apiTypes.operations['operationName']` and remove now-unused
intermediate path type aliases.
@sbornia sbornia self-assigned this Feb 24, 2026
@sbornia
sbornia marked this pull request as ready for review February 24, 2026 16:19
@sbornia
sbornia requested a review from marcqualie February 24, 2026 16:19
@marcqualie
marcqualie merged commit 74425de into main Feb 24, 2026
1 check passed
@marcqualie
marcqualie deleted the use-api-types-0.1.1 branch February 24, 2026 16:22
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.

2 participants