⬆️ 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
parent f8b7926d1c
commit a8f1ba0e70
42 changed files with 2820 additions and 1736 deletions
+8 -20
View File
@@ -5,29 +5,17 @@ export default defineConfig({
output: "./src/client",
plugins: [
"legacy/axios",
{ name: "@hey-api/client-axios", throwOnError: true },
{ name: "@hey-api/typescript", case: "preserve" },
{
name: "@hey-api/sdk",
// NOTE: this doesn't allow tree-shaking
asClass: true,
operationId: true,
classNameBuilder: "{{name}}Service",
methodNameBuilder: (operation) => {
// @ts-expect-error
let name: string = operation.name
// @ts-expect-error
const service: string = operation.service
if (service && name.toLowerCase().startsWith(service.toLowerCase())) {
name = name.slice(service.length)
}
return name.charAt(0).toLowerCase() + name.slice(1)
operations: {
// NOTE: this doesn't allow tree-shaking
strategy: "byTags",
methods: "static",
containerName: "{{name}}Service",
methodName: (name: string): string => name.replace(/^[^-]*-/, ""),
},
},
{
name: "@hey-api/schemas",
type: "json",
},
],
})