Skip to content

Commit

Permalink
Re-run static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar-foss committed Oct 29, 2024
1 parent e0ac0b9 commit a1eea28
Show file tree
Hide file tree
Showing 8 changed files with 1,609 additions and 1,306 deletions.
824 changes: 452 additions & 372 deletions airflow/api_fastapi/core_api/openapi/v1-generated.yaml

Large diffs are not rendered by default.

207 changes: 115 additions & 92 deletions airflow/ui/openapi-gen/queries/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
ConnectionService,
DagRunService,
DagService,
DagSourceService,
DagsService,
DashboardService,
MonitorService,
Expand Down Expand Up @@ -105,6 +106,50 @@ export const UseDagsServiceRecentDagRunsKeyFn = (
},
]),
];
export type ConnectionServiceGetConnectionDefaultResponse = Awaited<
ReturnType<typeof ConnectionService.getConnection>
>;
export type ConnectionServiceGetConnectionQueryResult<
TData = ConnectionServiceGetConnectionDefaultResponse,
TError = unknown,
> = UseQueryResult<TData, TError>;
export const useConnectionServiceGetConnectionKey =
"ConnectionServiceGetConnection";
export const UseConnectionServiceGetConnectionKeyFn = (
{
connectionId,
}: {
connectionId: string;
},
queryKey?: Array<unknown>,
) => [
useConnectionServiceGetConnectionKey,
...(queryKey ?? [{ connectionId }]),
];
export type ConnectionServiceGetConnectionsDefaultResponse = Awaited<
ReturnType<typeof ConnectionService.getConnections>
>;
export type ConnectionServiceGetConnectionsQueryResult<
TData = ConnectionServiceGetConnectionsDefaultResponse,
TError = unknown,
> = UseQueryResult<TData, TError>;
export const useConnectionServiceGetConnectionsKey =
"ConnectionServiceGetConnections";
export const UseConnectionServiceGetConnectionsKeyFn = (
{
limit,
offset,
orderBy,
}: {
limit?: number;
offset?: number;
orderBy?: string;
} = {},
queryKey?: Array<unknown>,
) => [
useConnectionServiceGetConnectionsKey,
...(queryKey ?? [{ limit, offset, orderBy }]),
];
export type DagServiceGetDagsDefaultResponse = Awaited<
ReturnType<typeof DagService.getDags>
>;
Expand Down Expand Up @@ -212,89 +257,6 @@ export const UseDagServiceGetDagDetailsKeyFn = (
},
queryKey?: Array<unknown>,
) => [useDagServiceGetDagDetailsKey, ...(queryKey ?? [{ dagId }])];
export type ConnectionServiceGetConnectionDefaultResponse = Awaited<
ReturnType<typeof ConnectionService.getConnection>
>;
export type ConnectionServiceGetConnectionQueryResult<
TData = ConnectionServiceGetConnectionDefaultResponse,
TError = unknown,
> = UseQueryResult<TData, TError>;
export const useConnectionServiceGetConnectionKey =
"ConnectionServiceGetConnection";
export const UseConnectionServiceGetConnectionKeyFn = (
{
connectionId,
}: {
connectionId: string;
},
queryKey?: Array<unknown>,
) => [
useConnectionServiceGetConnectionKey,
...(queryKey ?? [{ connectionId }]),
];
export type ConnectionServiceGetConnectionsDefaultResponse = Awaited<
ReturnType<typeof ConnectionService.getConnections>
>;
export type ConnectionServiceGetConnectionsQueryResult<
TData = ConnectionServiceGetConnectionsDefaultResponse,
TError = unknown,
> = UseQueryResult<TData, TError>;
export const useConnectionServiceGetConnectionsKey =
"ConnectionServiceGetConnections";
export const UseConnectionServiceGetConnectionsKeyFn = (
{
limit,
offset,
orderBy,
}: {
limit?: number;
offset?: number;
orderBy?: string;
} = {},
queryKey?: Array<unknown>,
) => [
useConnectionServiceGetConnectionsKey,
...(queryKey ?? [{ limit, offset, orderBy }]),
];
export type VariableServiceGetVariableDefaultResponse = Awaited<
ReturnType<typeof VariableService.getVariable>
>;
export type VariableServiceGetVariableQueryResult<
TData = VariableServiceGetVariableDefaultResponse,
TError = unknown,
> = UseQueryResult<TData, TError>;
export const useVariableServiceGetVariableKey = "VariableServiceGetVariable";
export const UseVariableServiceGetVariableKeyFn = (
{
variableKey,
}: {
variableKey: string;
},
queryKey?: Array<unknown>,
) => [useVariableServiceGetVariableKey, ...(queryKey ?? [{ variableKey }])];
export type VariableServiceGetVariablesDefaultResponse = Awaited<
ReturnType<typeof VariableService.getVariables>
>;
export type VariableServiceGetVariablesQueryResult<
TData = VariableServiceGetVariablesDefaultResponse,
TError = unknown,
> = UseQueryResult<TData, TError>;
export const useVariableServiceGetVariablesKey = "VariableServiceGetVariables";
export const UseVariableServiceGetVariablesKeyFn = (
{
limit,
offset,
orderBy,
}: {
limit?: number;
offset?: number;
orderBy?: string;
} = {},
queryKey?: Array<unknown>,
) => [
useVariableServiceGetVariablesKey,
...(queryKey ?? [{ limit, offset, orderBy }]),
];
export type DagRunServiceGetDagRunDefaultResponse = Awaited<
ReturnType<typeof DagRunService.getDagRun>
>;
Expand All @@ -313,6 +275,28 @@ export const UseDagRunServiceGetDagRunKeyFn = (
},
queryKey?: Array<unknown>,
) => [useDagRunServiceGetDagRunKey, ...(queryKey ?? [{ dagId, dagRunId }])];
export type DagSourceServiceGetDagSourceDefaultResponse = Awaited<
ReturnType<typeof DagSourceService.getDagSource>
>;
export type DagSourceServiceGetDagSourceQueryResult<
TData = DagSourceServiceGetDagSourceDefaultResponse,
TError = unknown,
> = UseQueryResult<TData, TError>;
export const useDagSourceServiceGetDagSourceKey =
"DagSourceServiceGetDagSource";
export const UseDagSourceServiceGetDagSourceKeyFn = (
{
accept,
fileToken,
}: {
accept?: string;
fileToken: string;
},
queryKey?: Array<unknown>,
) => [
useDagSourceServiceGetDagSourceKey,
...(queryKey ?? [{ accept, fileToken }]),
];
export type MonitorServiceGetHealthDefaultResponse = Awaited<
ReturnType<typeof MonitorService.getHealth>
>;
Expand Down Expand Up @@ -409,36 +393,75 @@ export const UseVersionServiceGetVersionKeyFn = (queryKey?: Array<unknown>) => [
useVersionServiceGetVersionKey,
...(queryKey ?? []),
];
export type VariableServicePostVariableMutationResult = Awaited<
ReturnType<typeof VariableService.postVariable>
export type VariableServiceGetVariableDefaultResponse = Awaited<
ReturnType<typeof VariableService.getVariable>
>;
export type VariableServiceGetVariableQueryResult<
TData = VariableServiceGetVariableDefaultResponse,
TError = unknown,
> = UseQueryResult<TData, TError>;
export const useVariableServiceGetVariableKey = "VariableServiceGetVariable";
export const UseVariableServiceGetVariableKeyFn = (
{
variableKey,
}: {
variableKey: string;
},
queryKey?: Array<unknown>,
) => [useVariableServiceGetVariableKey, ...(queryKey ?? [{ variableKey }])];
export type VariableServiceGetVariablesDefaultResponse = Awaited<
ReturnType<typeof VariableService.getVariables>
>;
export type VariableServiceGetVariablesQueryResult<
TData = VariableServiceGetVariablesDefaultResponse,
TError = unknown,
> = UseQueryResult<TData, TError>;
export const useVariableServiceGetVariablesKey = "VariableServiceGetVariables";
export const UseVariableServiceGetVariablesKeyFn = (
{
limit,
offset,
orderBy,
}: {
limit?: number;
offset?: number;
orderBy?: string;
} = {},
queryKey?: Array<unknown>,
) => [
useVariableServiceGetVariablesKey,
...(queryKey ?? [{ limit, offset, orderBy }]),
];
export type PoolServicePostPoolMutationResult = Awaited<
ReturnType<typeof PoolService.postPool>
>;
export type VariableServicePostVariableMutationResult = Awaited<
ReturnType<typeof VariableService.postVariable>
>;
export type DagServicePatchDagsMutationResult = Awaited<
ReturnType<typeof DagService.patchDags>
>;
export type DagServicePatchDagMutationResult = Awaited<
ReturnType<typeof DagService.patchDag>
>;
export type VariableServicePatchVariableMutationResult = Awaited<
ReturnType<typeof VariableService.patchVariable>
>;
export type PoolServicePatchPoolMutationResult = Awaited<
ReturnType<typeof PoolService.patchPool>
>;
export type DagServiceDeleteDagMutationResult = Awaited<
ReturnType<typeof DagService.deleteDag>
export type VariableServicePatchVariableMutationResult = Awaited<
ReturnType<typeof VariableService.patchVariable>
>;
export type ConnectionServiceDeleteConnectionMutationResult = Awaited<
ReturnType<typeof ConnectionService.deleteConnection>
>;
export type VariableServiceDeleteVariableMutationResult = Awaited<
ReturnType<typeof VariableService.deleteVariable>
export type DagServiceDeleteDagMutationResult = Awaited<
ReturnType<typeof DagService.deleteDag>
>;
export type DagRunServiceDeleteDagRunMutationResult = Awaited<
ReturnType<typeof DagRunService.deleteDagRun>
>;
export type PoolServiceDeletePoolMutationResult = Awaited<
ReturnType<typeof PoolService.deletePool>
>;
export type VariableServiceDeleteVariableMutationResult = Awaited<
ReturnType<typeof VariableService.deleteVariable>
>;
Loading

0 comments on commit a1eea28

Please sign in to comment.