hey-api / openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client
https://heyapi.vercel.app
Other
1.07k stars 89 forks source link

fix: make TanStack Query plugin work with class-based services #1096

Closed mrlubos closed 3 days ago

mrlubos commented 3 days ago

Closes https://github.com/hey-api/openapi-ts/issues/1090

stackblitz[bot] commented 3 days ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

changeset-bot[bot] commented 3 days ago

🦋 Changeset detected

Latest commit: b6e350a9cc2d82ac4496b7d57ec8b58978c951c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------- | ----- | | @hey-api/openapi-ts | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 3 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hey-api-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 3:46pm
pkg-pr-new[bot] commented 3 days ago

Open in Stackblitz

pnpm add https://pkg.pr.new/@hey-api/client-axios@1096
pnpm add https://pkg.pr.new/@hey-api/client-fetch@1096
pnpm add https://pkg.pr.new/@hey-api/openapi-ts@1096

commit: b6e350a

codecov[bot] commented 3 days ago

Codecov Report

Attention: Patch coverage is 64.70588% with 18 lines in your changes missing coverage. Please review.

Project coverage is 81.14%. Comparing base (867682d) to head (b6e350a). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...napi-ts/src/plugins/@tanstack/query-core/plugin.ts 10.52% 17 Missing :warning:
packages/openapi-ts/src/generate/transformers.ts 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1096 +/- ## ========================================== - Coverage 81.21% 81.14% -0.08% ========================================== Files 102 102 Lines 11506 11540 +34 Branches 1232 1234 +2 ========================================== + Hits 9345 9364 +19 - Misses 2158 2173 +15 Partials 3 3 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1096/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1096/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `81.14% <64.70%> (-0.08%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.