⬆️ 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
+3 -2
View File
@@ -11,7 +11,8 @@ import useAuth from "@/hooks/useAuth"
function getUsersQueryOptions() {
return {
queryFn: () => UsersService.readUsers({ skip: 0, limit: 100 }),
queryFn: async () =>
(await UsersService.readUsers({ query: { skip: 0, limit: 100 } })).data,
queryKey: ["users"],
}
}
@@ -19,7 +20,7 @@ function getUsersQueryOptions() {
export const Route = createFileRoute("/_layout/admin")({
component: Admin,
beforeLoad: async () => {
const user = await UsersService.readUserMe()
const { data: user } = await UsersService.readUserMe()
if (!user.is_superuser) {
throw redirect({
to: "/",
+2 -1
View File
@@ -11,7 +11,8 @@ import PendingItems from "@/components/Pending/PendingItems"
function getItemsQueryOptions() {
return {
queryFn: () => ItemsService.readItems({ skip: 0, limit: 100 }),
queryFn: async () =>
(await ItemsService.readItems({ query: { skip: 0, limit: 100 } })).data,
queryKey: ["items"],
}
}