-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Migrate to autogenerated OpenAPI client (#112)
* feat: add openapi client generation * feat: add openapi generated API * feat: migrate library to backend api * feat: migrate single item page * feat: migrate season page * chore: add auto-generated client to the ignore for linting * refactor: format and lint * feat: add backend proxy * feat: add status code forwarding to the proxy * refactor: lint * feat: migrate summary page * refactor: add type to summary page loader * feat: migrate settings to api * feat: add settings type schema * feat: migrate onboarding to new client * feat: migrate item request to new client * feat: remove the old api routes * refactor: lint * refactor: move client into lib * fix: update path for generating the client * fix: fix imports on hooks
- Loading branch information
1 parent
5da9ef4
commit 53a4caa
Showing
41 changed files
with
6,659 additions
and
836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ pnpm-lock.yaml | |
package-lock.json | ||
yarn.lock | ||
CHANGELOG.md | ||
.idea | ||
.idea | ||
src/lib/client/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { defineConfig } from '@hey-api/openapi-ts'; | ||
|
||
export default defineConfig({ | ||
client: '@hey-api/client-fetch', | ||
input: 'http://localhost:8080/openapi.json', | ||
output: 'src/lib/client', | ||
services: { | ||
// This does not suppport tree-shaking and could lead to a larger bundle size | ||
asClass: true | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.