⬆️ Bump @hey-api/openapi-ts from 0.73.0 to 0.97.3 and migrate to new client (#2388)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Yurii Motov
2026-08-07 18:25:28 +02:00
committed by GitHub
co-authored by dependabot[bot]
parent f8b7926d1c
commit a8f1ba0e70
42 changed files with 2820 additions and 1736 deletions
+8 -4
View File
@@ -1,8 +1,11 @@
// Note: the `PrivateService` is only available when generating the client
// for local environments
import { OpenAPI, PrivateService } from "../../src/client"
import { PrivateService } from "../../src/client"
import { client } from "../../src/client/client.gen"
OpenAPI.BASE = `${process.env.VITE_API_URL}`
client.setConfig({
baseURL: `${process.env.VITE_API_URL}`,
})
export const createUser = async ({
email,
@@ -11,12 +14,13 @@ export const createUser = async ({
email: string
password: string
}) => {
return await PrivateService.createUser({
requestBody: {
const response = await PrivateService.createUser({
body: {
email,
password,
is_verified: true,
full_name: "Test User",
},
})
return response.data
}