⬆️ 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
+1 -2
View File
@@ -72,8 +72,7 @@ const AddUser = () => {
})
const mutation = useMutation({
mutationFn: (data: UserCreate) =>
UsersService.createUser({ requestBody: data }),
mutationFn: (data: UserCreate) => UsersService.createUser({ body: data }),
onSuccess: () => {
showSuccessToast("User created successfully")
form.reset()
+1 -1
View File
@@ -31,7 +31,7 @@ const DeleteUser = ({ id, onSuccess }: DeleteUserProps) => {
const { handleSubmit } = useForm()
const deleteUser = async (id: string) => {
await UsersService.deleteUser({ userId: id })
await UsersService.deleteUser({ path: { user_id: id } })
}
const mutation = useMutation({
+1 -1
View File
@@ -75,7 +75,7 @@ const EditUser = ({ user, onSuccess }: EditUserProps) => {
const mutation = useMutation({
mutationFn: (data: FormData) =>
UsersService.updateUser({ userId: user.id, requestBody: data }),
UsersService.updateUser({ path: { user_id: user.id }, body: data }),
onSuccess: () => {
showSuccessToast("User updated successfully")
setIsOpen(false)