kyungjunleeme commented on code in PR #53597:
URL: https://github.com/apache/airflow/pull/53597#discussion_r2229871044
##########
airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/openapi-gen/queries/queries.ts:
##########
@@ -6,11 +6,7 @@ import { LoginBody } from "../requests/types.gen";
import * as Common from "./common";
export const useSimpleAuthManagerLoginServiceCreateTokenAllAdmins = <TData =
Common.SimpleAuthManagerLoginServiceCreateTokenAllAdminsDefaultResponse, TError
= unknown, TQueryKey extends Array<unknown> = unknown[]>(queryKey?: TQueryKey,
options?: Omit<UseQueryOptions<TData, TError>, "queryKey" | "queryFn">) =>
useQuery<TData, TError>({ queryKey:
Common.UseSimpleAuthManagerLoginServiceCreateTokenAllAdminsKeyFn(queryKey),
queryFn: () => SimpleAuthManagerLoginService.createTokenAllAdmins() as TData,
...options });
export const useSimpleAuthManagerLoginServiceLoginAllAdmins = <TData =
Common.SimpleAuthManagerLoginServiceLoginAllAdminsDefaultResponse, TError =
unknown, TQueryKey extends Array<unknown> = unknown[]>(queryKey?: TQueryKey,
options?: Omit<UseQueryOptions<TData, TError>, "queryKey" | "queryFn">) =>
useQuery<TData, TError>({ queryKey:
Common.UseSimpleAuthManagerLoginServiceLoginAllAdminsKeyFn(queryKey), queryFn:
() => SimpleAuthManagerLoginService.loginAllAdmins() as TData, ...options });
-export const useSimpleAuthManagerLoginServiceCreateToken = <TData =
Common.SimpleAuthManagerLoginServiceCreateTokenMutationResult, TError =
unknown, TContext = unknown>(options?: Omit<UseMutationOptions<TData, TError, {
- requestBody: LoginBody;
-}, TContext>, "mutationFn">) => useMutation<TData, TError, {
- requestBody: LoginBody;
-}, TContext>({ mutationFn: ({ requestBody }) =>
SimpleAuthManagerLoginService.createToken({ requestBody }) as unknown as
Promise<TData>, ...options });
+export const useSimpleAuthManagerLoginServiceCreateToken = <TData =
Common.SimpleAuthManagerLoginServiceCreateTokenMutationResult, TError =
unknown, TContext = unknown>(options?: Omit<UseMutationOptions<TData, TError,
void, TContext>, "mutationFn">) => useMutation<TData, TError, void, TContext>({
mutationFn: () => SimpleAuthManagerLoginService.createToken() as unknown as
Promise<TData>, ...options });
Review Comment:
Due to the issue addressed in
[#53636](https://github.com/apache/airflow/pull/53636), a chain of operations
was not functioning properly.
However, now that this PR has been merged, the issue has been resolved.
I didn’t need to apply any manual fixes.
Thank you for checking.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]