diff --git a/.secrets.baseline b/.secrets.baseline index c1f2d555a..41982a327 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -641,7 +641,7 @@ "filename": "frontend/app/src/lib/api/model/configFieldType.ts", "hashed_secret": "e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4", "is_verified": false, - "line_number": 18, + "line_number": 17, "is_secret": false } ], @@ -1023,5 +1023,5 @@ } ] }, - "generated_at": "2026-09-28T18:05:11Z" + "generated_at": "2026-09-28T22:15:39Z" } diff --git a/frontend/app/orval.config.ts b/frontend/app/orval.config.ts index 8cd312ec2..7775af950 100644 --- a/frontend/app/orval.config.ts +++ b/frontend/app/orval.config.ts @@ -1,5 +1,9 @@ import { defineConfig } from 'orval'; +// Orval 8 settings that keep the client's orval 6 shapes. Leave +// override.query.useQuery/useMutation unset: orval 8 applies them to every +// verb, and a GET with both becomes a mutation. Unset, GETs get query hooks +// and the other verbs get mutation hooks. export default defineConfig({ dataing: { input: { @@ -10,16 +14,31 @@ export default defineConfig({ target: 'src/lib/api/generated', schemas: 'src/lib/api/model', client: 'react-query', + // customInstance takes one request config ({ url, method, params, data, + // signal }), which is what the axios client passes to a mutator. The + // default fetch client would call it as (url, init). Nothing imports + // axios: customInstance makes the request. + httpClient: 'axios', mock: false, + // Orval 6 sorted model properties alphabetically. + propertySortOrder: 'Alphabetical', + // Orval picks import extensions from tsconfig.json, where Vite's + // allowImportingTsExtensions makes it write "../../client.ts". The same + // module settings without that flag keep imports extensionless. + tsconfig: { + compilerOptions: { + module: 'ESNext', + moduleResolution: 'bundler', + }, + }, override: { mutator: { path: './src/lib/api/client.ts', name: 'customInstance', }, - query: { - useQuery: true, - useMutation: true, - }, + // Orval 6 named nullable property types (FooBar = string | null); + // orval 8 inlines them unless this is set. + aliasCombinedTypes: true, }, }, hooks: { diff --git a/frontend/app/src/lib/api/generated/analytics/analytics.ts b/frontend/app/src/lib/api/generated/analytics/analytics.ts index 19d14a542..62f555bf0 100644 --- a/frontend/app/src/lib/api/generated/analytics/analytics.ts +++ b/frontend/app/src/lib/api/generated/analytics/analytics.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { ActivationFunnelResponse, ActivationStatusResponse, @@ -23,17 +29,36 @@ import type { HTTPValidationError, WeeklyUsageListResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Get weekly usage statistics for the current tenant. - -Returns aggregated metrics per week including: -- Issues created -- Investigations started and completed -- Issues resolved -- Active teams count -- Issue resolution rate + * + * Returns aggregated metrics per week including: + * - Issues created + * - Investigations started and completed + * - Issues resolved + * - Active teams count + * - Issue resolution rate * @summary Get Weekly Usage */ export const getWeeklyUsageApiV1AnalyticsWeeklyUsageGet = ( @@ -89,7 +114,7 @@ export const getGetWeeklyUsageApiV1AnalyticsWeeklyUsageGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetWeeklyUsageApiV1AnalyticsWeeklyUsageGetQueryResult = NonNullable< @@ -98,10 +123,91 @@ export type GetWeeklyUsageApiV1AnalyticsWeeklyUsageGetQueryResult = NonNullable< export type GetWeeklyUsageApiV1AnalyticsWeeklyUsageGetQueryError = HTTPValidationError; +export function useGetWeeklyUsageApiV1AnalyticsWeeklyUsageGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: undefined | GetWeeklyUsageApiV1AnalyticsWeeklyUsageGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetWeeklyUsageApiV1AnalyticsWeeklyUsageGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: GetWeeklyUsageApiV1AnalyticsWeeklyUsageGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetWeeklyUsageApiV1AnalyticsWeeklyUsageGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: GetWeeklyUsageApiV1AnalyticsWeeklyUsageGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Weekly Usage */ -export const useGetWeeklyUsageApiV1AnalyticsWeeklyUsageGet = < + +export function useGetWeeklyUsageApiV1AnalyticsWeeklyUsageGet< TData = Awaited< ReturnType >, @@ -117,27 +223,29 @@ export const useGetWeeklyUsageApiV1AnalyticsWeeklyUsageGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetWeeklyUsageApiV1AnalyticsWeeklyUsageGetQueryOptions(params, options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get activation status for the current tenant. - -Activation is defined as having both: -- Created at least one issue -- Completed at least one investigation - -Within the first 7 days of account creation. + * + * Activation is defined as having both: + * - Created at least one issue + * - Completed at least one investigation + * + * Within the first 7 days of account creation. * @summary Get Activation Status */ export const getActivationStatusApiV1AnalyticsActivationGet = ( @@ -184,7 +292,7 @@ export const getGetActivationStatusApiV1AnalyticsActivationGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetActivationStatusApiV1AnalyticsActivationGetQueryResult = @@ -193,47 +301,139 @@ export type GetActivationStatusApiV1AnalyticsActivationGetQueryResult = >; export type GetActivationStatusApiV1AnalyticsActivationGetQueryError = unknown; +export function useGetActivationStatusApiV1AnalyticsActivationGet< + TData = Awaited< + ReturnType + >, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetActivationStatusApiV1AnalyticsActivationGet< + TData = Awaited< + ReturnType + >, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetActivationStatusApiV1AnalyticsActivationGet< + TData = Awaited< + ReturnType + >, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Activation Status */ -export const useGetActivationStatusApiV1AnalyticsActivationGet = < + +export function useGetActivationStatusApiV1AnalyticsActivationGet< TData = Awaited< ReturnType >, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited< - ReturnType - >, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetActivationStatusApiV1AnalyticsActivationGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get activation funnel statistics. - -Returns aggregated funnel metrics showing: -- Total tenants created in period -- Tenants that created at least one issue -- Tenants that completed at least one investigation -- Tenants that achieved activation - -Note: This endpoint requires admin permissions in production. + * + * Returns aggregated funnel metrics showing: + * - Total tenants created in period + * - Tenants that created at least one issue + * - Tenants that completed at least one investigation + * - Tenants that achieved activation + * + * Note: This endpoint requires admin permissions in production. * @summary Get Activation Funnel */ export const getActivationFunnelApiV1AnalyticsActivationFunnelGet = ( @@ -298,7 +498,7 @@ export const getGetActivationFunnelApiV1AnalyticsActivationFunnelGetQueryOptions >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetActivationFunnelApiV1AnalyticsActivationFunnelGetQueryResult = @@ -310,10 +510,117 @@ export type GetActivationFunnelApiV1AnalyticsActivationFunnelGetQueryResult = export type GetActivationFunnelApiV1AnalyticsActivationFunnelGetQueryError = HTTPValidationError; +export function useGetActivationFunnelApiV1AnalyticsActivationFunnelGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: + | undefined + | GetActivationFunnelApiV1AnalyticsActivationFunnelGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getActivationFunnelApiV1AnalyticsActivationFunnelGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getActivationFunnelApiV1AnalyticsActivationFunnelGet + > + >, + TError, + Awaited< + ReturnType< + typeof getActivationFunnelApiV1AnalyticsActivationFunnelGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetActivationFunnelApiV1AnalyticsActivationFunnelGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: GetActivationFunnelApiV1AnalyticsActivationFunnelGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getActivationFunnelApiV1AnalyticsActivationFunnelGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getActivationFunnelApiV1AnalyticsActivationFunnelGet + > + >, + TError, + Awaited< + ReturnType< + typeof getActivationFunnelApiV1AnalyticsActivationFunnelGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetActivationFunnelApiV1AnalyticsActivationFunnelGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: GetActivationFunnelApiV1AnalyticsActivationFunnelGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getActivationFunnelApiV1AnalyticsActivationFunnelGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Activation Funnel */ -export const useGetActivationFunnelApiV1AnalyticsActivationFunnelGet = < + +export function useGetActivationFunnelApiV1AnalyticsActivationFunnelGet< TData = Awaited< ReturnType >, @@ -333,35 +640,43 @@ export const useGetActivationFunnelApiV1AnalyticsActivationFunnelGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetActivationFunnelApiV1AnalyticsActivationFunnelGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Refresh the weekly usage statistics materialized view. - -This is typically called by a scheduled job but can be triggered manually. + * + * This is typically called by a scheduled job but can be triggered manually. * @summary Refresh Weekly Stats */ -export const refreshWeeklyStatsApiV1AnalyticsRefreshPost = () => { +export const refreshWeeklyStatsApiV1AnalyticsRefreshPost = ( + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/analytics/refresh`, method: "POST", + signal, }); }; +export const getRefreshWeeklyStatsApiV1AnalyticsRefreshPostMutationKey = () => + ["refreshWeeklyStatsApiV1AnalyticsRefreshPost"] as const; + export const getRefreshWeeklyStatsApiV1AnalyticsRefreshPostMutationOptions = < TError = unknown, TContext = unknown, @@ -378,7 +693,15 @@ export const getRefreshWeeklyStatsApiV1AnalyticsRefreshPostMutationOptions = < void, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getRefreshWeeklyStatsApiV1AnalyticsRefreshPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, @@ -403,21 +726,24 @@ export type RefreshWeeklyStatsApiV1AnalyticsRefreshPostMutationError = unknown; export const useRefreshWeeklyStatsApiV1AnalyticsRefreshPost = < TError = unknown, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - void, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, void, TContext > => { - const mutationOptions = - getRefreshWeeklyStatsApiV1AnalyticsRefreshPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getRefreshWeeklyStatsApiV1AnalyticsRefreshPostMutationOptions(options), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/asset-instances/asset-instances.ts b/frontend/app/src/lib/api/generated/asset-instances/asset-instances.ts index 8412d130f..bc3e1acf0 100644 --- a/frontend/app/src/lib/api/generated/asset-instances/asset-instances.ts +++ b/frontend/app/src/lib/api/generated/asset-instances/asset-instances.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,28 +7,53 @@ */ import { useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { AssetInstanceSearchResponse, HTTPValidationError, SearchAssetInstancesApiV1AssetInstancesSearchGetParams, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Search for asset instances (tables/views) across all tenant datasources. - -Returns fully qualified asset instances with datasource context, -suitable for binding to a notebook context. - -Results are ranked by match quality: -- name_prefix: Query matches start of table name -- path_match: Query matches in native path -- fuzzy: Query appears anywhere in name or path + * + * Returns fully qualified asset instances with datasource context, + * suitable for binding to a notebook context. + * + * Results are ranked by match quality: + * - name_prefix: Query matches start of table name + * - path_match: Query matches in native path + * - fuzzy: Query appears anywhere in name or path * @summary Search Asset Instances */ export const searchAssetInstancesApiV1AssetInstancesSearchGet = ( @@ -44,7 +69,7 @@ export const searchAssetInstancesApiV1AssetInstancesSearchGet = ( }; export const getSearchAssetInstancesApiV1AssetInstancesSearchGetQueryKey = ( - params: SearchAssetInstancesApiV1AssetInstancesSearchGetParams, + params?: SearchAssetInstancesApiV1AssetInstancesSearchGetParams, ) => { return [ `/api/v1/asset-instances/search`, @@ -88,7 +113,7 @@ export const getSearchAssetInstancesApiV1AssetInstancesSearchGetQueryOptions = < >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type SearchAssetInstancesApiV1AssetInstancesSearchGetQueryResult = @@ -98,10 +123,101 @@ export type SearchAssetInstancesApiV1AssetInstancesSearchGetQueryResult = export type SearchAssetInstancesApiV1AssetInstancesSearchGetQueryError = HTTPValidationError; +export function useSearchAssetInstancesApiV1AssetInstancesSearchGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: SearchAssetInstancesApiV1AssetInstancesSearchGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useSearchAssetInstancesApiV1AssetInstancesSearchGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: SearchAssetInstancesApiV1AssetInstancesSearchGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useSearchAssetInstancesApiV1AssetInstancesSearchGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: SearchAssetInstancesApiV1AssetInstancesSearchGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Search Asset Instances */ -export const useSearchAssetInstancesApiV1AssetInstancesSearchGet = < + +export function useSearchAssetInstancesApiV1AssetInstancesSearchGet< TData = Awaited< ReturnType >, @@ -119,18 +235,20 @@ export const useSearchAssetInstancesApiV1AssetInstancesSearchGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getSearchAssetInstancesApiV1AssetInstancesSearchGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/auth/auth.ts b/frontend/app/src/lib/api/generated/auth/auth.ts index 4ac257929..fa3610bd2 100644 --- a/frontend/app/src/lib/api/generated/auth/auth.ts +++ b/frontend/app/src/lib/api/generated/auth/auth.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { ConfirmPasswordResetApiV1AuthPasswordResetConfirmPost200, GetCurrentUserApiV1AuthMeGet200, @@ -29,28 +35,54 @@ import type { RequestPasswordResetApiV1AuthPasswordResetRequestPost200, TokenResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Authenticate user and return tokens. - -Args: - body: Login credentials. - service: Auth service. - -Returns: - Access and refresh tokens with user/org info. + * + * Args: + * body: Login credentials. + * service: Auth service. + * + * Returns: + * Access and refresh tokens with user/org info. * @summary Login */ -export const loginApiV1AuthLoginPost = (loginRequest: LoginRequest) => { +export const loginApiV1AuthLoginPost = ( + loginRequest: LoginRequest, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/auth/login`, method: "POST", headers: { "Content-Type": "application/json" }, data: loginRequest, + signal, }); }; +export const getLoginApiV1AuthLoginPostMutationKey = () => + ["loginApiV1AuthLoginPost"] as const; + export const getLoginApiV1AuthLoginPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -58,20 +90,27 @@ export const getLoginApiV1AuthLoginPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: LoginRequest }, + LoginApiV1AuthLoginPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: LoginRequest }, + LoginApiV1AuthLoginPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getLoginApiV1AuthLoginPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: LoginRequest } + LoginApiV1AuthLoginPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -86,6 +125,7 @@ export type LoginApiV1AuthLoginPostMutationResult = NonNullable< >; export type LoginApiV1AuthLoginPostMutationBody = LoginRequest; export type LoginApiV1AuthLoginPostMutationError = HTTPValidationError; +export type LoginApiV1AuthLoginPostMutationVariables = { data: LoginRequest }; /** * @summary Login @@ -93,45 +133,54 @@ export type LoginApiV1AuthLoginPostMutationError = HTTPValidationError; export const useLoginApiV1AuthLoginPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: LoginRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + LoginApiV1AuthLoginPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: LoginRequest }, + LoginApiV1AuthLoginPostMutationVariables, TContext > => { - const mutationOptions = getLoginApiV1AuthLoginPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getLoginApiV1AuthLoginPostMutationOptions(options), + queryClient, + ); }; /** * Register new user and create organization. - -Args: - body: Registration info. - service: Auth service. - -Returns: - Access and refresh tokens with user/org info. + * + * Args: + * body: Registration info. + * service: Auth service. + * + * Returns: + * Access and refresh tokens with user/org info. * @summary Register */ export const registerApiV1AuthRegisterPost = ( registerRequest: RegisterRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/auth/register`, method: "POST", headers: { "Content-Type": "application/json" }, data: registerRequest, + signal, }); }; +export const getRegisterApiV1AuthRegisterPostMutationKey = () => + ["registerApiV1AuthRegisterPost"] as const; + export const getRegisterApiV1AuthRegisterPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -139,20 +188,27 @@ export const getRegisterApiV1AuthRegisterPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: RegisterRequest }, + RegisterApiV1AuthRegisterPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: RegisterRequest }, + RegisterApiV1AuthRegisterPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getRegisterApiV1AuthRegisterPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: RegisterRequest } + RegisterApiV1AuthRegisterPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -167,6 +223,9 @@ export type RegisterApiV1AuthRegisterPostMutationResult = NonNullable< >; export type RegisterApiV1AuthRegisterPostMutationBody = RegisterRequest; export type RegisterApiV1AuthRegisterPostMutationError = HTTPValidationError; +export type RegisterApiV1AuthRegisterPostMutationVariables = { + data: RegisterRequest; +}; /** * @summary Register @@ -174,44 +233,54 @@ export type RegisterApiV1AuthRegisterPostMutationError = HTTPValidationError; export const useRegisterApiV1AuthRegisterPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: RegisterRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + RegisterApiV1AuthRegisterPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: RegisterRequest }, + RegisterApiV1AuthRegisterPostMutationVariables, TContext > => { - const mutationOptions = - getRegisterApiV1AuthRegisterPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getRegisterApiV1AuthRegisterPostMutationOptions(options), + queryClient, + ); }; /** * Refresh access token. - -Args: - body: Refresh token and org ID. - service: Auth service. - -Returns: - New access token. + * + * Args: + * body: Refresh token and org ID. + * service: Auth service. + * + * Returns: + * New access token. * @summary Refresh */ -export const refreshApiV1AuthRefreshPost = (refreshRequest: RefreshRequest) => { +export const refreshApiV1AuthRefreshPost = ( + refreshRequest: RefreshRequest, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/auth/refresh`, method: "POST", headers: { "Content-Type": "application/json" }, data: refreshRequest, + signal, }); }; +export const getRefreshApiV1AuthRefreshPostMutationKey = () => + ["refreshApiV1AuthRefreshPost"] as const; + export const getRefreshApiV1AuthRefreshPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -219,20 +288,27 @@ export const getRefreshApiV1AuthRefreshPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: RefreshRequest }, + RefreshApiV1AuthRefreshPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: RefreshRequest }, + RefreshApiV1AuthRefreshPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getRefreshApiV1AuthRefreshPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: RefreshRequest } + RefreshApiV1AuthRefreshPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -247,6 +323,9 @@ export type RefreshApiV1AuthRefreshPostMutationResult = NonNullable< >; export type RefreshApiV1AuthRefreshPostMutationBody = RefreshRequest; export type RefreshApiV1AuthRefreshPostMutationError = HTTPValidationError; +export type RefreshApiV1AuthRefreshPostMutationVariables = { + data: RefreshRequest; +}; /** * @summary Refresh @@ -254,23 +333,26 @@ export type RefreshApiV1AuthRefreshPostMutationError = HTTPValidationError; export const useRefreshApiV1AuthRefreshPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: RefreshRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + RefreshApiV1AuthRefreshPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: RefreshRequest }, + RefreshApiV1AuthRefreshPostMutationVariables, TContext > => { - const mutationOptions = - getRefreshApiV1AuthRefreshPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getRefreshApiV1AuthRefreshPostMutationOptions(options), + queryClient, + ); }; /** * Get current authenticated user info. @@ -313,7 +395,7 @@ export const getGetCurrentUserApiV1AuthMeGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetCurrentUserApiV1AuthMeGetQueryResult = NonNullable< @@ -321,36 +403,108 @@ export type GetCurrentUserApiV1AuthMeGetQueryResult = NonNullable< >; export type GetCurrentUserApiV1AuthMeGetQueryError = unknown; +export function useGetCurrentUserApiV1AuthMeGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetCurrentUserApiV1AuthMeGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetCurrentUserApiV1AuthMeGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Current User */ -export const useGetCurrentUserApiV1AuthMeGet = < + +export function useGetCurrentUserApiV1AuthMeGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetCurrentUserApiV1AuthMeGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get all organizations the current user belongs to. - -Returns list of orgs with role for each. + * + * Returns list of orgs with role for each. * @summary Get User Orgs */ export const getUserOrgsApiV1AuthMeOrgsGet = (signal?: AbortSignal) => { @@ -390,7 +544,7 @@ export const getGetUserOrgsApiV1AuthMeOrgsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetUserOrgsApiV1AuthMeOrgsGetQueryResult = NonNullable< @@ -398,57 +552,134 @@ export type GetUserOrgsApiV1AuthMeOrgsGetQueryResult = NonNullable< >; export type GetUserOrgsApiV1AuthMeOrgsGetQueryError = unknown; +export function useGetUserOrgsApiV1AuthMeOrgsGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetUserOrgsApiV1AuthMeOrgsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetUserOrgsApiV1AuthMeOrgsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get User Orgs */ -export const useGetUserOrgsApiV1AuthMeOrgsGet = < + +export function useGetUserOrgsApiV1AuthMeOrgsGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetUserOrgsApiV1AuthMeOrgsGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get the recovery method for a user's email. - -This tells the frontend what UI to show (email form, admin contact, etc.). - -Args: - body: Request containing the user's email. - service: Auth service. - recovery_adapter: Password recovery adapter. - -Returns: - Recovery method describing how the user can reset their password. + * + * This tells the frontend what UI to show (email form, admin contact, etc.). + * + * Args: + * body: Request containing the user's email. + * service: Auth service. + * recovery_adapter: Password recovery adapter. + * + * Returns: + * Recovery method describing how the user can reset their password. * @summary Get Recovery Method */ export const getRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPost = ( passwordResetRequest: PasswordResetRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/auth/password-reset/recovery-method`, method: "POST", headers: { "Content-Type": "application/json" }, data: passwordResetRequest, + signal, }); }; +export const getGetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationKey = + () => ["getRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPost"] as const; + export const getGetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -458,7 +689,7 @@ export const getGetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutatio > >, TError, - { data: PasswordResetRequest }, + GetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationVariables, TContext >; }): UseMutationOptions< @@ -468,10 +699,18 @@ export const getGetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutatio > >, TError, - { data: PasswordResetRequest }, + GetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getGetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -479,7 +718,7 @@ export const getGetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutatio typeof getRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPost > >, - { data: PasswordResetRequest } + GetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -501,6 +740,8 @@ export type GetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationBod PasswordResetRequest; export type GetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationError = HTTPValidationError; +export type GetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationVariables = + { data: PasswordResetRequest }; /** * @summary Get Recovery Method @@ -508,55 +749,59 @@ export type GetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationErr export const useGetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof getRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPost - > - >, - TError, - { data: PasswordResetRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof getRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPost + > + >, + TError, + GetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { data: PasswordResetRequest }, + GetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getGetRecoveryMethodApiV1AuthPasswordResetRecoveryMethodPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Request a password reset. - -For security, this always returns success regardless of whether -the email exists. This prevents email enumeration attacks. - -The actual recovery method depends on the configured adapter: -- email: Sends reset link via email -- console: Prints reset link to server console (demo/dev mode) -- admin_contact: Logs the request for admin visibility - -Args: - body: Request containing the user's email. - service: Auth service. - recovery_adapter: Password recovery adapter. - frontend_url: Frontend URL for building reset links. - -Returns: - Success message. + * + * For security, this always returns success regardless of whether + * the email exists. This prevents email enumeration attacks. + * + * The actual recovery method depends on the configured adapter: + * - email: Sends reset link via email + * - console: Prints reset link to server console (demo/dev mode) + * - admin_contact: Logs the request for admin visibility + * + * Args: + * body: Request containing the user's email. + * service: Auth service. + * recovery_adapter: Password recovery adapter. + * frontend_url: Frontend URL for building reset links. + * + * Returns: + * Success message. * @summary Request Password Reset */ export const requestPasswordResetApiV1AuthPasswordResetRequestPost = ( passwordResetRequest: PasswordResetRequest, + signal?: AbortSignal, ) => { return customInstance( { @@ -564,10 +809,14 @@ export const requestPasswordResetApiV1AuthPasswordResetRequestPost = ( method: "POST", headers: { "Content-Type": "application/json" }, data: passwordResetRequest, + signal, }, ); }; +export const getRequestPasswordResetApiV1AuthPasswordResetRequestPostMutationKey = + () => ["requestPasswordResetApiV1AuthPasswordResetRequestPost"] as const; + export const getRequestPasswordResetApiV1AuthPasswordResetRequestPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -575,7 +824,7 @@ export const getRequestPasswordResetApiV1AuthPasswordResetRequestPostMutationOpt ReturnType >, TError, - { data: PasswordResetRequest }, + RequestPasswordResetApiV1AuthPasswordResetRequestPostMutationVariables, TContext >; }): UseMutationOptions< @@ -583,16 +832,24 @@ export const getRequestPasswordResetApiV1AuthPasswordResetRequestPostMutationOpt ReturnType >, TError, - { data: PasswordResetRequest }, + RequestPasswordResetApiV1AuthPasswordResetRequestPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getRequestPasswordResetApiV1AuthPasswordResetRequestPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { data: PasswordResetRequest } + RequestPasswordResetApiV1AuthPasswordResetRequestPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -612,6 +869,8 @@ export type RequestPasswordResetApiV1AuthPasswordResetRequestPostMutationBody = PasswordResetRequest; export type RequestPasswordResetApiV1AuthPasswordResetRequestPostMutationError = HTTPValidationError; +export type RequestPasswordResetApiV1AuthPasswordResetRequestPostMutationVariables = + { data: PasswordResetRequest }; /** * @summary Request Password Reset @@ -619,46 +878,50 @@ export type RequestPasswordResetApiV1AuthPasswordResetRequestPostMutationError = export const useRequestPasswordResetApiV1AuthPasswordResetRequestPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { data: PasswordResetRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + RequestPasswordResetApiV1AuthPasswordResetRequestPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { data: PasswordResetRequest }, + RequestPasswordResetApiV1AuthPasswordResetRequestPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getRequestPasswordResetApiV1AuthPasswordResetRequestPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Reset password using a valid token. - -Args: - body: Request containing the reset token and new password. - service: Auth service. - -Returns: - Success message. - -Raises: - HTTPException: If token is invalid, expired, or already used. + * + * Args: + * body: Request containing the reset token and new password. + * service: Auth service. + * + * Returns: + * Success message. + * + * Raises: + * HTTPException: If token is invalid, expired, or already used. * @summary Confirm Password Reset */ export const confirmPasswordResetApiV1AuthPasswordResetConfirmPost = ( passwordResetConfirm: PasswordResetConfirm, + signal?: AbortSignal, ) => { return customInstance( { @@ -666,10 +929,14 @@ export const confirmPasswordResetApiV1AuthPasswordResetConfirmPost = ( method: "POST", headers: { "Content-Type": "application/json" }, data: passwordResetConfirm, + signal, }, ); }; +export const getConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationKey = + () => ["confirmPasswordResetApiV1AuthPasswordResetConfirmPost"] as const; + export const getConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -677,7 +944,7 @@ export const getConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationOpt ReturnType >, TError, - { data: PasswordResetConfirm }, + ConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationVariables, TContext >; }): UseMutationOptions< @@ -685,16 +952,24 @@ export const getConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationOpt ReturnType >, TError, - { data: PasswordResetConfirm }, + ConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { data: PasswordResetConfirm } + ConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -714,6 +989,8 @@ export type ConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationBody = PasswordResetConfirm; export type ConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationError = HTTPValidationError; +export type ConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationVariables = + { data: PasswordResetConfirm }; /** * @summary Confirm Password Reset @@ -721,27 +998,30 @@ export type ConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationError = export const useConfirmPasswordResetApiV1AuthPasswordResetConfirmPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { data: PasswordResetConfirm }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + ConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { data: PasswordResetConfirm }, + ConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getConfirmPasswordResetApiV1AuthPasswordResetConfirmPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/comment-votes/comment-votes.ts b/frontend/app/src/lib/api/generated/comment-votes/comment-votes.ts index a5a161cc6..25fc02dd0 100644 --- a/frontend/app/src/lib/api/generated/comment-votes/comment-votes.ts +++ b/frontend/app/src/lib/api/generated/comment-votes/comment-votes.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -8,10 +8,13 @@ import { useMutation } from "@tanstack/react-query"; import type { MutationFunction, + QueryClient, UseMutationOptions, UseMutationResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, VoteCreate } from "../../model"; + import { customInstance } from "../../client"; /** @@ -22,15 +25,20 @@ export const voteOnCommentApiV1CommentsCommentTypeCommentIdVotePost = ( commentType: "schema" | "knowledge", commentId: string, voteCreate: VoteCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/comments/${commentType}/${commentId}/vote`, method: "POST", headers: { "Content-Type": "application/json" }, data: voteCreate, + signal, }); }; +export const getVoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationKey = + () => ["voteOnCommentApiV1CommentsCommentTypeCommentIdVotePost"] as const; + export const getVoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -40,11 +48,7 @@ export const getVoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationOp > >, TError, - { - commentType: "schema" | "knowledge"; - commentId: string; - data: VoteCreate; - }, + VoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationVariables, TContext >; }): UseMutationOptions< @@ -52,14 +56,18 @@ export const getVoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationOp ReturnType >, TError, - { - commentType: "schema" | "knowledge"; - commentId: string; - data: VoteCreate; - }, + VoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getVoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -67,11 +75,7 @@ export const getVoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationOp typeof voteOnCommentApiV1CommentsCommentTypeCommentIdVotePost > >, - { - commentType: "schema" | "knowledge"; - commentId: string; - data: VoteCreate; - } + VoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationVariables > = (props) => { const { commentType, commentId, data } = props ?? {}; @@ -95,6 +99,8 @@ export type VoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationBody = VoteCreate; export type VoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationError = HTTPValidationError; +export type VoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationVariables = + { commentType: "schema" | "knowledge"; commentId: string; data: VoteCreate }; /** * @summary Vote On Comment @@ -102,33 +108,34 @@ export type VoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationError export const useVoteOnCommentApiV1CommentsCommentTypeCommentIdVotePost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { - commentType: "schema" | "knowledge"; - commentId: string; - data: VoteCreate; - }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof voteOnCommentApiV1CommentsCommentTypeCommentIdVotePost + > + >, + TError, + VoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { commentType: "schema" | "knowledge"; commentId: string; data: VoteCreate }, + VoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getVoteOnCommentApiV1CommentsCommentTypeCommentIdVotePostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Remove vote from a comment. @@ -137,13 +144,18 @@ export const useVoteOnCommentApiV1CommentsCommentTypeCommentIdVotePost = < export const removeVoteApiV1CommentsCommentTypeCommentIdVoteDelete = ( commentType: "schema" | "knowledge", commentId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/comments/${commentType}/${commentId}/vote`, method: "DELETE", + signal, }); }; +export const getRemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationKey = + () => ["removeVoteApiV1CommentsCommentTypeCommentIdVoteDelete"] as const; + export const getRemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -151,7 +163,7 @@ export const getRemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationOpt ReturnType >, TError, - { commentType: "schema" | "knowledge"; commentId: string }, + RemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -159,16 +171,24 @@ export const getRemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationOpt ReturnType >, TError, - { commentType: "schema" | "knowledge"; commentId: string }, + RemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getRemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { commentType: "schema" | "knowledge"; commentId: string } + RemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationVariables > = (props) => { const { commentType, commentId } = props ?? {}; @@ -190,6 +210,8 @@ export type RemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationResult export type RemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationError = HTTPValidationError; +export type RemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationVariables = + { commentType: "schema" | "knowledge"; commentId: string }; /** * @summary Remove Vote @@ -197,27 +219,30 @@ export type RemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationError = export const useRemoveVoteApiV1CommentsCommentTypeCommentIdVoteDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { commentType: "schema" | "knowledge"; commentId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + RemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { commentType: "schema" | "knowledge"; commentId: string }, + RemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getRemoveVoteApiV1CommentsCommentTypeCommentIdVoteDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/context/context.ts b/frontend/app/src/lib/api/generated/context/context.ts index f86420d9c..2766f287b 100644 --- a/frontend/app/src/lib/api/generated/context/context.ts +++ b/frontend/app/src/lib/api/generated/context/context.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { AmbiguousAssetsResponse, ContextBundleResponse, @@ -25,36 +31,60 @@ import type { ExplainResponse, HTTPValidationError, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Create a context bundle for the given assets. - -This endpoint resolves asset references to concrete datasources, -gathers context (lineage, operational facts, anomalies), and returns -a cacheable bundle. - -If any asset reference is ambiguous (matches multiple datasources), -returns 409 with candidates and a hint for disambiguation. - -The response includes: -- bundle_id: Unique identifier for this bundle -- resolved_assets: Per-asset resolution with datasource binding -- bundle_hash: Server-computed cache key (also returned as ETag header) -- Context data (lineage, operational, anomalies) based on request flags + * + * This endpoint resolves asset references to concrete datasources, + * gathers context (lineage, operational facts, anomalies), and returns + * a cacheable bundle. + * + * If any asset reference is ambiguous (matches multiple datasources), + * returns 409 with candidates and a hint for disambiguation. + * + * The response includes: + * - bundle_id: Unique identifier for this bundle + * - resolved_assets: Per-asset resolution with datasource binding + * - bundle_hash: Server-computed cache key (also returned as ETag header) + * - Context data (lineage, operational, anomalies) based on request flags * @summary Create Bundle */ export const createBundleApiV1ContextBundlesPost = ( createBundleRequest: CreateBundleRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/context/bundles`, method: "POST", headers: { "Content-Type": "application/json" }, data: createBundleRequest, + signal, }); }; +export const getCreateBundleApiV1ContextBundlesPostMutationKey = () => + ["createBundleApiV1ContextBundlesPost"] as const; + export const getCreateBundleApiV1ContextBundlesPostMutationOptions = < TError = AmbiguousAssetsResponse | HTTPValidationError, TContext = unknown, @@ -62,20 +92,27 @@ export const getCreateBundleApiV1ContextBundlesPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: CreateBundleRequest }, + CreateBundleApiV1ContextBundlesPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: CreateBundleRequest }, + CreateBundleApiV1ContextBundlesPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getCreateBundleApiV1ContextBundlesPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: CreateBundleRequest } + CreateBundleApiV1ContextBundlesPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -93,6 +130,9 @@ export type CreateBundleApiV1ContextBundlesPostMutationBody = export type CreateBundleApiV1ContextBundlesPostMutationError = | AmbiguousAssetsResponse | HTTPValidationError; +export type CreateBundleApiV1ContextBundlesPostMutationVariables = { + data: CreateBundleRequest; +}; /** * @summary Create Bundle @@ -100,28 +140,31 @@ export type CreateBundleApiV1ContextBundlesPostMutationError = export const useCreateBundleApiV1ContextBundlesPost = < TError = AmbiguousAssetsResponse | HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: CreateBundleRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreateBundleApiV1ContextBundlesPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: CreateBundleRequest }, + CreateBundleApiV1ContextBundlesPostMutationVariables, TContext > => { - const mutationOptions = - getCreateBundleApiV1ContextBundlesPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateBundleApiV1ContextBundlesPostMutationOptions(options), + queryClient, + ); }; /** * Get an existing context bundle by ID. - -Returns the bundle if found and belongs to the authenticated tenant. + * + * Returns the bundle if found and belongs to the authenticated tenant. * @summary Get Bundle */ export const getBundleApiV1ContextBundlesBundleIdGet = ( @@ -169,13 +212,13 @@ export const getGetBundleApiV1ContextBundlesBundleIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!bundleId, + enabled: bundleId !== null && bundleId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetBundleApiV1ContextBundlesBundleIdGetQueryResult = NonNullable< @@ -184,10 +227,81 @@ export type GetBundleApiV1ContextBundlesBundleIdGetQueryResult = NonNullable< export type GetBundleApiV1ContextBundlesBundleIdGetQueryError = HTTPValidationError; +export function useGetBundleApiV1ContextBundlesBundleIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + bundleId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetBundleApiV1ContextBundlesBundleIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + bundleId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetBundleApiV1ContextBundlesBundleIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + bundleId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Bundle */ -export const useGetBundleApiV1ContextBundlesBundleIdGet = < + +export function useGetBundleApiV1ContextBundlesBundleIdGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -201,46 +315,55 @@ export const useGetBundleApiV1ContextBundlesBundleIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetBundleApiV1ContextBundlesBundleIdGetQueryOptions( bundleId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Compute metric difference over a time window. - -Compares the current value of a metric to its historical value -based on the specified time window. - -Supported metrics: -- row_count: Number of rows in the dataset -- null_rate: Percentage of null values -- distinct_count: Number of distinct values -- freshness: Time since last update - -Returns the current and previous values, absolute delta, -percentage change, and trend direction. + * + * Compares the current value of a metric to its historical value + * based on the specified time window. + * + * Supported metrics: + * - row_count: Number of rows in the dataset + * - null_rate: Percentage of null values + * - distinct_count: Number of distinct values + * - freshness: Time since last update + * + * Returns the current and previous values, absolute delta, + * percentage change, and trend direction. * @summary Compute Diff */ -export const computeDiffApiV1ContextDiffPost = (diffRequest: DiffRequest) => { +export const computeDiffApiV1ContextDiffPost = ( + diffRequest: DiffRequest, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/context/diff`, method: "POST", headers: { "Content-Type": "application/json" }, data: diffRequest, + signal, }); }; +export const getComputeDiffApiV1ContextDiffPostMutationKey = () => + ["computeDiffApiV1ContextDiffPost"] as const; + export const getComputeDiffApiV1ContextDiffPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -248,20 +371,27 @@ export const getComputeDiffApiV1ContextDiffPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: DiffRequest }, + ComputeDiffApiV1ContextDiffPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: DiffRequest }, + ComputeDiffApiV1ContextDiffPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getComputeDiffApiV1ContextDiffPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: DiffRequest } + ComputeDiffApiV1ContextDiffPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -276,6 +406,9 @@ export type ComputeDiffApiV1ContextDiffPostMutationResult = NonNullable< >; export type ComputeDiffApiV1ContextDiffPostMutationBody = DiffRequest; export type ComputeDiffApiV1ContextDiffPostMutationError = HTTPValidationError; +export type ComputeDiffApiV1ContextDiffPostMutationVariables = { + data: DiffRequest; +}; /** * @summary Compute Diff @@ -283,48 +416,56 @@ export type ComputeDiffApiV1ContextDiffPostMutationError = HTTPValidationError; export const useComputeDiffApiV1ContextDiffPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: DiffRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + ComputeDiffApiV1ContextDiffPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: DiffRequest }, + ComputeDiffApiV1ContextDiffPostMutationVariables, TContext > => { - const mutationOptions = - getComputeDiffApiV1ContextDiffPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getComputeDiffApiV1ContextDiffPostMutationOptions(options), + queryClient, + ); }; /** * Get an AI-powered explanation of the context bundle. - -Analyzes the assets, lineage, and anomalies in the bundle -and provides a natural language explanation with insights -and recommendations. - -Focus areas: -- anomalies: Focus on detected data quality issues -- lineage: Focus on data dependencies and flow -- data_quality: General data quality assessment + * + * Analyzes the assets, lineage, and anomalies in the bundle + * and provides a natural language explanation with insights + * and recommendations. + * + * Focus areas: + * - anomalies: Focus on detected data quality issues + * - lineage: Focus on data dependencies and flow + * - data_quality: General data quality assessment * @summary Explain Context */ export const explainContextApiV1ContextExplainPost = ( explainRequest: ExplainRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/context/explain`, method: "POST", headers: { "Content-Type": "application/json" }, data: explainRequest, + signal, }); }; +export const getExplainContextApiV1ContextExplainPostMutationKey = () => + ["explainContextApiV1ContextExplainPost"] as const; + export const getExplainContextApiV1ContextExplainPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -332,20 +473,27 @@ export const getExplainContextApiV1ContextExplainPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: ExplainRequest }, + ExplainContextApiV1ContextExplainPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: ExplainRequest }, + ExplainContextApiV1ContextExplainPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getExplainContextApiV1ContextExplainPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: ExplainRequest } + ExplainContextApiV1ContextExplainPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -361,6 +509,9 @@ export type ExplainContextApiV1ContextExplainPostMutationResult = NonNullable< export type ExplainContextApiV1ContextExplainPostMutationBody = ExplainRequest; export type ExplainContextApiV1ContextExplainPostMutationError = HTTPValidationError; +export type ExplainContextApiV1ContextExplainPostMutationVariables = { + data: ExplainRequest; +}; /** * @summary Explain Context @@ -368,21 +519,24 @@ export type ExplainContextApiV1ContextExplainPostMutationError = export const useExplainContextApiV1ContextExplainPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: ExplainRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + ExplainContextApiV1ContextExplainPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: ExplainRequest }, + ExplainContextApiV1ContextExplainPostMutationVariables, TContext > => { - const mutationOptions = - getExplainContextApiV1ContextExplainPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getExplainContextApiV1ContextExplainPostMutationOptions(options), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/credentials/credentials.ts b/frontend/app/src/lib/api/generated/credentials/credentials.ts index f5de69e2a..a35d38768 100644 --- a/frontend/app/src/lib/api/generated/credentials/credentials.ts +++ b/frontend/app/src/lib/api/generated/credentials/credentials.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { CredentialsStatusResponse, CredentialsTestResponse, @@ -22,27 +28,51 @@ import type { HTTPValidationError, SaveCredentialsRequest, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Save or update credentials for a datasource. - -Users can store their own database credentials which will be used -for query execution. The database enforces permissions, not Dataing. + * + * Users can store their own database credentials which will be used + * for query execution. The database enforces permissions, not Dataing. * @summary Save Credentials */ export const saveCredentialsApiV1DatasourcesDatasourceIdCredentialsPost = ( datasourceId: string, saveCredentialsRequest: SaveCredentialsRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources/${datasourceId}/credentials`, method: "POST", headers: { "Content-Type": "application/json" }, data: saveCredentialsRequest, + signal, }); }; +export const getSaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationKey = + () => ["saveCredentialsApiV1DatasourcesDatasourceIdCredentialsPost"] as const; + export const getSaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -52,7 +82,7 @@ export const getSaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutati > >, TError, - { datasourceId: string; data: SaveCredentialsRequest }, + SaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationVariables, TContext >; }): UseMutationOptions< @@ -62,10 +92,18 @@ export const getSaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutati > >, TError, - { datasourceId: string; data: SaveCredentialsRequest }, + SaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getSaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -73,7 +111,7 @@ export const getSaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutati typeof saveCredentialsApiV1DatasourcesDatasourceIdCredentialsPost > >, - { datasourceId: string; data: SaveCredentialsRequest } + SaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationVariables > = (props) => { const { datasourceId, data } = props ?? {}; @@ -98,6 +136,8 @@ export type SaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationBo SaveCredentialsRequest; export type SaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationError = HTTPValidationError; +export type SaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationVariables = + { datasourceId: string; data: SaveCredentialsRequest }; /** * @summary Save Credentials @@ -105,38 +145,41 @@ export type SaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationEr export const useSaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof saveCredentialsApiV1DatasourcesDatasourceIdCredentialsPost - > - >, - TError, - { datasourceId: string; data: SaveCredentialsRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof saveCredentialsApiV1DatasourcesDatasourceIdCredentialsPost + > + >, + TError, + SaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType< typeof saveCredentialsApiV1DatasourcesDatasourceIdCredentialsPost > >, TError, - { datasourceId: string; data: SaveCredentialsRequest }, + SaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getSaveCredentialsApiV1DatasourcesDatasourceIdCredentialsPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Check if credentials are configured for a datasource. - -Returns configuration status without exposing the actual credentials. + * + * Returns configuration status without exposing the actual credentials. * @summary Get Credentials Status */ export const getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet = ( @@ -202,7 +245,7 @@ export const getGetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGetQu return { queryKey, queryFn, - enabled: !!datasourceId, + enabled: datasourceId !== null && datasourceId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -212,7 +255,7 @@ export const getGetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGetQu >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGetQueryResult = @@ -226,64 +269,182 @@ export type GetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGetQueryR export type GetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGetQueryError = HTTPValidationError; -/** - * @summary Get Credentials Status - */ -export const useGetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet = - < - TData = Awaited< - ReturnType< - typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet +export function useGetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet< + TData = Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - datasourceId: string, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getGetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGetQueryOptions( - datasourceId, - options, - ); + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet< + TData = Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + >, + TError, + Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet< + TData = Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary Get Credentials Status + */ - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; +export function useGetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet< + TData = Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getGetCredentialsStatusApiV1DatasourcesDatasourceIdCredentialsGetQueryOptions( + datasourceId, + options, + ); - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; - }; + return withQueryKey(query, queryOptions.queryKey); +} /** * Remove credentials for a datasource. - -After deletion, the user will need to reconfigure credentials -before executing queries. + * + * After deletion, the user will need to reconfigure credentials + * before executing queries. * @summary Delete Credentials */ export const deleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDelete = ( datasourceId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources/${datasourceId}/credentials`, method: "DELETE", + signal, }); }; +export const getDeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationKey = + () => + ["deleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDelete"] as const; + export const getDeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -293,7 +454,7 @@ export const getDeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMu > >, TError, - { datasourceId: string }, + DeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -303,10 +464,18 @@ export const getDeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMu > >, TError, - { datasourceId: string }, + DeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -314,7 +483,7 @@ export const getDeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMu typeof deleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDelete > >, - { datasourceId: string } + DeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationVariables > = (props) => { const { datasourceId } = props ?? {}; @@ -337,58 +506,69 @@ export type DeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutati export type DeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationError = HTTPValidationError; +export type DeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationVariables = + { datasourceId: string }; /** * @summary Delete Credentials */ export const useDeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDelete = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof deleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDelete - > - >, - TError, - { datasourceId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof deleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDelete + > + >, + TError, + DeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof deleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDelete > >, TError, - { datasourceId: string }, + DeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDeleteCredentialsApiV1DatasourcesDatasourceIdCredentialsDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Test credentials without saving them. - -Validates that the provided credentials can connect to the -database and access tables. + * + * Validates that the provided credentials can connect to the + * database and access tables. * @summary Test Credentials */ export const testCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPost = ( datasourceId: string, saveCredentialsRequest: SaveCredentialsRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources/${datasourceId}/credentials/test`, method: "POST", headers: { "Content-Type": "application/json" }, data: saveCredentialsRequest, + signal, }); }; +export const getTestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationKey = + () => + ["testCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPost"] as const; + export const getTestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -398,7 +578,7 @@ export const getTestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMu > >, TError, - { datasourceId: string; data: SaveCredentialsRequest }, + TestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationVariables, TContext >; }): UseMutationOptions< @@ -408,10 +588,18 @@ export const getTestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMu > >, TError, - { datasourceId: string; data: SaveCredentialsRequest }, + TestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getTestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -419,7 +607,7 @@ export const getTestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMu typeof testCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPost > >, - { datasourceId: string; data: SaveCredentialsRequest } + TestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationVariables > = (props) => { const { datasourceId, data } = props ?? {}; @@ -444,36 +632,41 @@ export type TestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutati SaveCredentialsRequest; export type TestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationError = HTTPValidationError; +export type TestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationVariables = + { datasourceId: string; data: SaveCredentialsRequest }; /** * @summary Test Credentials */ export const useTestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof testCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPost - > - >, - TError, - { datasourceId: string; data: SaveCredentialsRequest }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof testCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPost + > + >, + TError, + TestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof testCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPost > >, TError, - { datasourceId: string; data: SaveCredentialsRequest }, + TestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getTestCredentialsApiV1DatasourcesDatasourceIdCredentialsTestPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/dashboard/dashboard.ts b/frontend/app/src/lib/api/generated/dashboard/dashboard.ts index ed1bd60d8..cba4a971a 100644 --- a/frontend/app/src/lib/api/generated/dashboard/dashboard.ts +++ b/frontend/app/src/lib/api/generated/dashboard/dashboard.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,39 @@ */ import { useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { DashboardResponse, DashboardStats } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Get dashboard overview for the current tenant. * @summary Get Dashboard @@ -56,7 +81,7 @@ export const getGetDashboardApiV1DashboardGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDashboardApiV1DashboardGetQueryResult = NonNullable< @@ -64,31 +89,103 @@ export type GetDashboardApiV1DashboardGetQueryResult = NonNullable< >; export type GetDashboardApiV1DashboardGetQueryError = unknown; +export function useGetDashboardApiV1DashboardGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDashboardApiV1DashboardGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDashboardApiV1DashboardGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Dashboard */ -export const useGetDashboardApiV1DashboardGet = < + +export function useGetDashboardApiV1DashboardGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetDashboardApiV1DashboardGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get just the dashboard statistics. @@ -131,7 +228,7 @@ export const getGetStatsApiV1DashboardStatsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetStatsApiV1DashboardStatsGetQueryResult = NonNullable< @@ -139,28 +236,100 @@ export type GetStatsApiV1DashboardStatsGetQueryResult = NonNullable< >; export type GetStatsApiV1DashboardStatsGetQueryError = unknown; +export function useGetStatsApiV1DashboardStatsGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetStatsApiV1DashboardStatsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetStatsApiV1DashboardStatsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Stats */ -export const useGetStatsApiV1DashboardStatsGet = < + +export function useGetStatsApiV1DashboardStatsGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetStatsApiV1DashboardStatsGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/dataset-repo-mappings/dataset-repo-mappings.ts b/frontend/app/src/lib/api/generated/dataset-repo-mappings/dataset-repo-mappings.ts index e5fce659f..0cff79be0 100644 --- a/frontend/app/src/lib/api/generated/dataset-repo-mappings/dataset-repo-mappings.ts +++ b/frontend/app/src/lib/api/generated/dataset-repo-mappings/dataset-repo-mappings.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost, BulkImportRequest, @@ -31,23 +37,47 @@ import type { RepoMappingResponse, UpdateRepoMappingRequest, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Create a dataset-to-repository mapping. * @summary Create Repo Mapping */ export const createRepoMappingApiV1DatasetRepoMappingsPost = ( createRepoMappingRequest: CreateRepoMappingRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/dataset-repo-mappings`, method: "POST", headers: { "Content-Type": "application/json" }, data: createRepoMappingRequest, + signal, }); }; +export const getCreateRepoMappingApiV1DatasetRepoMappingsPostMutationKey = () => + ["createRepoMappingApiV1DatasetRepoMappingsPost"] as const; + export const getCreateRepoMappingApiV1DatasetRepoMappingsPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -55,20 +85,28 @@ export const getCreateRepoMappingApiV1DatasetRepoMappingsPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: CreateRepoMappingRequest }, + CreateRepoMappingApiV1DatasetRepoMappingsPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: CreateRepoMappingRequest }, + CreateRepoMappingApiV1DatasetRepoMappingsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getCreateRepoMappingApiV1DatasetRepoMappingsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: CreateRepoMappingRequest } + CreateRepoMappingApiV1DatasetRepoMappingsPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -86,6 +124,9 @@ export type CreateRepoMappingApiV1DatasetRepoMappingsPostMutationBody = CreateRepoMappingRequest; export type CreateRepoMappingApiV1DatasetRepoMappingsPostMutationError = HTTPValidationError; +export type CreateRepoMappingApiV1DatasetRepoMappingsPostMutationVariables = { + data: CreateRepoMappingRequest; +}; /** * @summary Create Repo Mapping @@ -93,23 +134,26 @@ export type CreateRepoMappingApiV1DatasetRepoMappingsPostMutationError = export const useCreateRepoMappingApiV1DatasetRepoMappingsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: CreateRepoMappingRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreateRepoMappingApiV1DatasetRepoMappingsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: CreateRepoMappingRequest }, + CreateRepoMappingApiV1DatasetRepoMappingsPostMutationVariables, TContext > => { - const mutationOptions = - getCreateRepoMappingApiV1DatasetRepoMappingsPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateRepoMappingApiV1DatasetRepoMappingsPostMutationOptions(options), + queryClient, + ); }; /** * List dataset-to-repository mappings with optional filters. @@ -168,7 +212,7 @@ export const getListRepoMappingsApiV1DatasetRepoMappingsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListRepoMappingsApiV1DatasetRepoMappingsGetQueryResult = @@ -178,10 +222,95 @@ export type ListRepoMappingsApiV1DatasetRepoMappingsGetQueryResult = export type ListRepoMappingsApiV1DatasetRepoMappingsGetQueryError = HTTPValidationError; +export function useListRepoMappingsApiV1DatasetRepoMappingsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: undefined | ListRepoMappingsApiV1DatasetRepoMappingsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListRepoMappingsApiV1DatasetRepoMappingsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: ListRepoMappingsApiV1DatasetRepoMappingsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListRepoMappingsApiV1DatasetRepoMappingsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: ListRepoMappingsApiV1DatasetRepoMappingsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Repo Mappings */ -export const useListRepoMappingsApiV1DatasetRepoMappingsGet = < + +export function useListRepoMappingsApiV1DatasetRepoMappingsGet< TData = Awaited< ReturnType >, @@ -197,18 +326,20 @@ export const useListRepoMappingsApiV1DatasetRepoMappingsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListRepoMappingsApiV1DatasetRepoMappingsGetQueryOptions(params, options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Update a dataset-to-repository mapping. @@ -217,15 +348,20 @@ export const useListRepoMappingsApiV1DatasetRepoMappingsGet = < export const updateRepoMappingApiV1DatasetRepoMappingsMappingIdPut = ( mappingId: string, updateRepoMappingRequest: UpdateRepoMappingRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/dataset-repo-mappings/${mappingId}`, method: "PUT", headers: { "Content-Type": "application/json" }, data: updateRepoMappingRequest, + signal, }); }; +export const getUpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationKey = + () => ["updateRepoMappingApiV1DatasetRepoMappingsMappingIdPut"] as const; + export const getUpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -233,7 +369,7 @@ export const getUpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationOpt ReturnType >, TError, - { mappingId: string; data: UpdateRepoMappingRequest }, + UpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationVariables, TContext >; }): UseMutationOptions< @@ -241,16 +377,24 @@ export const getUpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationOpt ReturnType >, TError, - { mappingId: string; data: UpdateRepoMappingRequest }, + UpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getUpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { mappingId: string; data: UpdateRepoMappingRequest } + UpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationVariables > = (props) => { const { mappingId, data } = props ?? {}; @@ -273,6 +417,8 @@ export type UpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationBody = UpdateRepoMappingRequest; export type UpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationError = HTTPValidationError; +export type UpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationVariables = + { mappingId: string; data: UpdateRepoMappingRequest }; /** * @summary Update Repo Mapping @@ -280,29 +426,32 @@ export type UpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationError = export const useUpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPut = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { mappingId: string; data: UpdateRepoMappingRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + UpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { mappingId: string; data: UpdateRepoMappingRequest }, + UpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getUpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPutMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Delete a dataset-to-repository mapping. @@ -310,12 +459,20 @@ export const useUpdateRepoMappingApiV1DatasetRepoMappingsMappingIdPut = < */ export const deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete = ( mappingId: string, + signal?: AbortSignal, ) => { return customInstance( - { url: `/api/v1/dataset-repo-mappings/${mappingId}`, method: "DELETE" }, + { + url: `/api/v1/dataset-repo-mappings/${mappingId}`, + method: "DELETE", + signal, + }, ); }; +export const getDeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationKey = + () => ["deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete"] as const; + export const getDeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -325,7 +482,7 @@ export const getDeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutation > >, TError, - { mappingId: string }, + DeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -335,10 +492,18 @@ export const getDeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutation > >, TError, - { mappingId: string }, + DeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -346,7 +511,7 @@ export const getDeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutation typeof deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete > >, - { mappingId: string } + DeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationVariables > = (props) => { const { mappingId } = props ?? {}; @@ -369,6 +534,8 @@ export type DeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationResu export type DeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationError = HTTPValidationError; +export type DeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationVariables = + { mappingId: string }; /** * @summary Delete Repo Mapping @@ -376,31 +543,34 @@ export type DeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationErro export const useDeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete - > - >, - TError, - { mappingId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete + > + >, + TError, + DeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { mappingId: string }, + DeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Bulk import dataset-to-repository mappings. @@ -408,15 +578,20 @@ export const useDeleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete = < */ export const bulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPost = ( bulkImportRequest: BulkImportRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/dataset-repo-mappings/bulk`, method: "POST", headers: { "Content-Type": "application/json" }, data: bulkImportRequest, + signal, }); }; +export const getBulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationKey = + () => ["bulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPost"] as const; + export const getBulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -426,7 +601,7 @@ export const getBulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationOp > >, TError, - { data: BulkImportRequest }, + BulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationVariables, TContext >; }): UseMutationOptions< @@ -434,10 +609,18 @@ export const getBulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationOp ReturnType >, TError, - { data: BulkImportRequest }, + BulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getBulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -445,7 +628,7 @@ export const getBulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationOp typeof bulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPost > >, - { data: BulkImportRequest } + BulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -465,6 +648,8 @@ export type BulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationBody = BulkImportRequest; export type BulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationError = HTTPValidationError; +export type BulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationVariables = + { data: BulkImportRequest }; /** * @summary Bulk Import Repo Mappings @@ -472,29 +657,34 @@ export type BulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationError export const useBulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { data: BulkImportRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof bulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPost + > + >, + TError, + BulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { data: BulkImportRequest }, + BulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getBulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Import dataset-to-repository mappings from a dbt manifest.json. @@ -503,10 +693,11 @@ export const useBulkImportRepoMappingsApiV1DatasetRepoMappingsBulkPost = < export const importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost = ( bodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost: BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost, params: ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams, + signal?: AbortSignal, ) => { const formData = new FormData(); formData.append( - "file", + `file`, bodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost.file, ); @@ -516,9 +707,14 @@ export const importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost = ( headers: { "Content-Type": "multipart/form-data" }, data: formData, params, + signal, }); }; +export const getImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationKey = + () => + ["importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost"] as const; + export const getImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -528,10 +724,7 @@ export const getImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMu > >, TError, - { - data: BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost; - params: ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams; - }, + ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationVariables, TContext >; }): UseMutationOptions< @@ -541,13 +734,18 @@ export const getImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMu > >, TError, - { - data: BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost; - params: ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams; - }, + ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -555,10 +753,7 @@ export const getImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMu typeof importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost > >, - { - data: BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost; - params: ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams; - } + ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationVariables > = (props) => { const { data, params } = props ?? {}; @@ -583,44 +778,46 @@ export type ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutati BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost; export type ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationError = HTTPValidationError; +export type ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationVariables = + { + data: BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost; + params: ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams; + }; /** * @summary Import Dbt Manifest */ export const useImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost - > - >, - TError, - { - data: BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost; - params: ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams; - }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost + > + >, + TError, + ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost > >, TError, - { - data: BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost; - params: ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams; - }, + ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * List unconfirmed (suggested) dataset-to-repository mappings. @@ -687,7 +884,7 @@ export const getListSuggestionsApiV1DatasetRepoMappingsSuggestionsGetQueryOption >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListSuggestionsApiV1DatasetRepoMappingsSuggestionsGetQueryResult = @@ -699,10 +896,117 @@ export type ListSuggestionsApiV1DatasetRepoMappingsSuggestionsGetQueryResult = export type ListSuggestionsApiV1DatasetRepoMappingsSuggestionsGetQueryError = HTTPValidationError; +export function useListSuggestionsApiV1DatasetRepoMappingsSuggestionsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: + | undefined + | ListSuggestionsApiV1DatasetRepoMappingsSuggestionsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listSuggestionsApiV1DatasetRepoMappingsSuggestionsGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listSuggestionsApiV1DatasetRepoMappingsSuggestionsGet + > + >, + TError, + Awaited< + ReturnType< + typeof listSuggestionsApiV1DatasetRepoMappingsSuggestionsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListSuggestionsApiV1DatasetRepoMappingsSuggestionsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: ListSuggestionsApiV1DatasetRepoMappingsSuggestionsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listSuggestionsApiV1DatasetRepoMappingsSuggestionsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listSuggestionsApiV1DatasetRepoMappingsSuggestionsGet + > + >, + TError, + Awaited< + ReturnType< + typeof listSuggestionsApiV1DatasetRepoMappingsSuggestionsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListSuggestionsApiV1DatasetRepoMappingsSuggestionsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: ListSuggestionsApiV1DatasetRepoMappingsSuggestionsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listSuggestionsApiV1DatasetRepoMappingsSuggestionsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Suggestions */ -export const useListSuggestionsApiV1DatasetRepoMappingsSuggestionsGet = < + +export function useListSuggestionsApiV1DatasetRepoMappingsSuggestionsGet< TData = Awaited< ReturnType >, @@ -722,21 +1026,23 @@ export const useListSuggestionsApiV1DatasetRepoMappingsSuggestionsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListSuggestionsApiV1DatasetRepoMappingsSuggestionsGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Confirm a suggested mapping, promoting it to explicit. @@ -744,13 +1050,19 @@ export const useListSuggestionsApiV1DatasetRepoMappingsSuggestionsGet = < */ export const confirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPost = ( mappingId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/dataset-repo-mappings/${mappingId}/confirm`, method: "POST", + signal, }); }; +export const getConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationKey = + () => + ["confirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPost"] as const; + export const getConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -760,7 +1072,7 @@ export const getConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMut > >, TError, - { mappingId: string }, + ConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationVariables, TContext >; }): UseMutationOptions< @@ -770,10 +1082,18 @@ export const getConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMut > >, TError, - { mappingId: string }, + ConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -781,7 +1101,7 @@ export const getConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMut typeof confirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPost > >, - { mappingId: string } + ConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationVariables > = (props) => { const { mappingId } = props ?? {}; @@ -804,38 +1124,43 @@ export type ConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutatio export type ConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationError = HTTPValidationError; +export type ConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationVariables = + { mappingId: string }; /** * @summary Confirm Suggestion */ export const useConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof confirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPost - > - >, - TError, - { mappingId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof confirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPost + > + >, + TError, + ConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof confirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPost > >, TError, - { mappingId: string }, + ConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Dismiss (delete) a suggested mapping. @@ -843,15 +1168,21 @@ export const useConfirmSuggestionApiV1DatasetRepoMappingsMappingIdConfirmPost = */ export const dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost = ( mappingId: string, + signal?: AbortSignal, ) => { return customInstance( { url: `/api/v1/dataset-repo-mappings/${mappingId}/dismiss`, method: "POST", + signal, }, ); }; +export const getDismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationKey = + () => + ["dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost"] as const; + export const getDismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -861,7 +1192,7 @@ export const getDismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMut > >, TError, - { mappingId: string }, + DismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationVariables, TContext >; }): UseMutationOptions< @@ -871,10 +1202,18 @@ export const getDismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMut > >, TError, - { mappingId: string }, + DismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -882,7 +1221,7 @@ export const getDismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMut typeof dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost > >, - { mappingId: string } + DismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationVariables > = (props) => { const { mappingId } = props ?? {}; @@ -905,36 +1244,41 @@ export type DismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutatio export type DismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationError = HTTPValidationError; +export type DismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationVariables = + { mappingId: string }; /** * @summary Dismiss Suggestion */ export const useDismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost - > - >, - TError, - { mappingId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost + > + >, + TError, + DismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost > >, TError, - { mappingId: string }, + DismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/datasets/datasets.ts b/frontend/app/src/lib/api/generated/datasets/datasets.ts index 9489a8942..24254b47e 100644 --- a/frontend/app/src/lib/api/generated/datasets/datasets.ts +++ b/frontend/app/src/lib/api/generated/datasets/datasets.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,11 +7,17 @@ */ import { useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { DatasetDetailResponse, DatasetInvestigationsResponse, @@ -20,8 +26,27 @@ import type { HTTPValidationError, ResolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Get a dataset by ID with column information. * @summary Get Dataset @@ -71,13 +96,13 @@ export const getGetDatasetApiV1DatasetsDatasetIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!datasetId, + enabled: datasetId !== null && datasetId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDatasetApiV1DatasetsDatasetIdGetQueryResult = NonNullable< @@ -85,10 +110,81 @@ export type GetDatasetApiV1DatasetsDatasetIdGetQueryResult = NonNullable< >; export type GetDatasetApiV1DatasetsDatasetIdGetQueryError = HTTPValidationError; +export function useGetDatasetApiV1DatasetsDatasetIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + datasetId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasetApiV1DatasetsDatasetIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + datasetId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasetApiV1DatasetsDatasetIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + datasetId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Dataset */ -export const useGetDatasetApiV1DatasetsDatasetIdGet = < + +export function useGetDatasetApiV1DatasetsDatasetIdGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -102,20 +198,22 @@ export const useGetDatasetApiV1DatasetsDatasetIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetDatasetApiV1DatasetsDatasetIdGetQueryOptions( datasetId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get investigations for a dataset. @@ -195,7 +293,7 @@ export const getGetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetQ return { queryKey, queryFn, - enabled: !!datasetId, + enabled: datasetId !== null && datasetId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -205,7 +303,7 @@ export const getGetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetQ >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetQueryResult = @@ -219,55 +317,172 @@ export type GetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetQuery export type GetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetQueryError = HTTPValidationError; -/** - * @summary Get Dataset Investigations - */ -export const useGetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet = - < - TData = Awaited< - ReturnType< - typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet +export function useGetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet< + TData = Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + >, + TError = HTTPValidationError, +>( + datasetId: string, + params: + | undefined + | GetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - datasetId: string, - params?: GetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getGetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetQueryOptions( - datasetId, - params, - options, - ); + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet< + TData = Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + >, + TError = HTTPValidationError, +>( + datasetId: string, + params?: GetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + >, + TError, + Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet< + TData = Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + >, + TError = HTTPValidationError, +>( + datasetId: string, + params?: GetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary Get Dataset Investigations + */ - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; +export function useGetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet< + TData = Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + >, + TError = HTTPValidationError, +>( + datasetId: string, + params?: GetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getGetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetQueryOptions( + datasetId, + params, + options, + ); - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; - }; + return withQueryKey(query, queryOptions.queryKey); +} /** * Resolve the best repository mapping for a dataset. - -Returns 200 with primary=null when no mapping found (never 404). -This enables graceful degradation in investigations. + * + * Returns 200 with primary=null when no mapping found (never 404). + * This enables graceful degradation in investigations. * @summary Resolve Dataset Repo */ export const resolveDatasetRepoApiV1DatasetsDatasetIdRepoGet = ( @@ -330,13 +545,13 @@ export const getResolveDatasetRepoApiV1DatasetsDatasetIdRepoGetQueryOptions = < return { queryKey, queryFn, - enabled: !!datasetId, + enabled: datasetId !== null && datasetId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ResolveDatasetRepoApiV1DatasetsDatasetIdRepoGetQueryResult = @@ -346,10 +561,104 @@ export type ResolveDatasetRepoApiV1DatasetsDatasetIdRepoGetQueryResult = export type ResolveDatasetRepoApiV1DatasetsDatasetIdRepoGetQueryError = HTTPValidationError; +export function useResolveDatasetRepoApiV1DatasetsDatasetIdRepoGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasetId: string, + params: undefined | ResolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useResolveDatasetRepoApiV1DatasetsDatasetIdRepoGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasetId: string, + params?: ResolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useResolveDatasetRepoApiV1DatasetsDatasetIdRepoGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasetId: string, + params?: ResolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Resolve Dataset Repo */ -export const useResolveDatasetRepoApiV1DatasetsDatasetIdRepoGet = < + +export function useResolveDatasetRepoApiV1DatasetsDatasetIdRepoGet< TData = Awaited< ReturnType >, @@ -368,7 +677,10 @@ export const useResolveDatasetRepoApiV1DatasetsDatasetIdRepoGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getResolveDatasetRepoApiV1DatasetsDatasetIdRepoGetQueryOptions( datasetId, @@ -376,11 +688,10 @@ export const useResolveDatasetRepoApiV1DatasetsDatasetIdRepoGet = < options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/datasources/datasources.ts b/frontend/app/src/lib/api/generated/datasources/datasources.ts index 499550665..502d9e968 100644 --- a/frontend/app/src/lib/api/generated/datasources/datasources.ts +++ b/frontend/app/src/lib/api/generated/datasources/datasources.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { CreateDataSourceRequest, DataSourceListResponse, @@ -35,13 +41,32 @@ import type { TestConnectionRequest, TestConnectionResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List all supported data source types. - -Returns the configuration schema for each type, which can be used -to dynamically generate connection forms in the frontend. + * + * Returns the configuration schema for each type, which can be used + * to dynamically generate connection forms in the frontend. * @summary List Source Types */ export const listSourceTypesApiV1DatasourcesTypesGet = ( @@ -84,7 +109,7 @@ export const getListSourceTypesApiV1DatasourcesTypesGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListSourceTypesApiV1DatasourcesTypesGetQueryResult = NonNullable< @@ -92,51 +117,128 @@ export type ListSourceTypesApiV1DatasourcesTypesGetQueryResult = NonNullable< >; export type ListSourceTypesApiV1DatasourcesTypesGetQueryError = unknown; +export function useListSourceTypesApiV1DatasourcesTypesGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListSourceTypesApiV1DatasourcesTypesGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListSourceTypesApiV1DatasourcesTypesGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Source Types */ -export const useListSourceTypesApiV1DatasourcesTypesGet = < + +export function useListSourceTypesApiV1DatasourcesTypesGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListSourceTypesApiV1DatasourcesTypesGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Test a connection without saving it. - -Use this endpoint to validate connection settings before creating -a data source. + * + * Use this endpoint to validate connection settings before creating + * a data source. * @summary Test Connection */ export const testConnectionApiV1DatasourcesTestPost = ( testConnectionRequest: TestConnectionRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources/test`, method: "POST", headers: { "Content-Type": "application/json" }, data: testConnectionRequest, + signal, }); }; +export const getTestConnectionApiV1DatasourcesTestPostMutationKey = () => + ["testConnectionApiV1DatasourcesTestPost"] as const; + export const getTestConnectionApiV1DatasourcesTestPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -144,20 +246,27 @@ export const getTestConnectionApiV1DatasourcesTestPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: TestConnectionRequest }, + TestConnectionApiV1DatasourcesTestPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: TestConnectionRequest }, + TestConnectionApiV1DatasourcesTestPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getTestConnectionApiV1DatasourcesTestPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: TestConnectionRequest } + TestConnectionApiV1DatasourcesTestPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -174,6 +283,9 @@ export type TestConnectionApiV1DatasourcesTestPostMutationBody = TestConnectionRequest; export type TestConnectionApiV1DatasourcesTestPostMutationError = HTTPValidationError; +export type TestConnectionApiV1DatasourcesTestPostMutationVariables = { + data: TestConnectionRequest; +}; /** * @summary Test Connection @@ -181,23 +293,26 @@ export type TestConnectionApiV1DatasourcesTestPostMutationError = export const useTestConnectionApiV1DatasourcesTestPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: TestConnectionRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + TestConnectionApiV1DatasourcesTestPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: TestConnectionRequest }, + TestConnectionApiV1DatasourcesTestPostMutationVariables, TContext > => { - const mutationOptions = - getTestConnectionApiV1DatasourcesTestPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getTestConnectionApiV1DatasourcesTestPostMutationOptions(options), + queryClient, + ); }; /** * List all data sources for the current tenant. @@ -240,7 +355,7 @@ export const getListDatasourcesApiV1DatasourcesGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListDatasourcesApiV1DatasourcesGetQueryResult = NonNullable< @@ -248,50 +363,127 @@ export type ListDatasourcesApiV1DatasourcesGetQueryResult = NonNullable< >; export type ListDatasourcesApiV1DatasourcesGetQueryError = unknown; +export function useListDatasourcesApiV1DatasourcesGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListDatasourcesApiV1DatasourcesGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListDatasourcesApiV1DatasourcesGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Datasources */ -export const useListDatasourcesApiV1DatasourcesGet = < + +export function useListDatasourcesApiV1DatasourcesGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListDatasourcesApiV1DatasourcesGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a new data source. - -Tests the connection before saving. Returns 400 if connection test fails. + * + * Tests the connection before saving. Returns 400 if connection test fails. * @summary Create Datasource */ export const createDatasourceApiV1DatasourcesPost = ( createDataSourceRequest: CreateDataSourceRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources`, method: "POST", headers: { "Content-Type": "application/json" }, data: createDataSourceRequest, + signal, }); }; +export const getCreateDatasourceApiV1DatasourcesPostMutationKey = () => + ["createDatasourceApiV1DatasourcesPost"] as const; + export const getCreateDatasourceApiV1DatasourcesPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -299,20 +491,27 @@ export const getCreateDatasourceApiV1DatasourcesPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: CreateDataSourceRequest }, + CreateDatasourceApiV1DatasourcesPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: CreateDataSourceRequest }, + CreateDatasourceApiV1DatasourcesPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getCreateDatasourceApiV1DatasourcesPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: CreateDataSourceRequest } + CreateDatasourceApiV1DatasourcesPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -329,6 +528,9 @@ export type CreateDatasourceApiV1DatasourcesPostMutationBody = CreateDataSourceRequest; export type CreateDatasourceApiV1DatasourcesPostMutationError = HTTPValidationError; +export type CreateDatasourceApiV1DatasourcesPostMutationVariables = { + data: CreateDataSourceRequest; +}; /** * @summary Create Datasource @@ -336,23 +538,26 @@ export type CreateDatasourceApiV1DatasourcesPostMutationError = export const useCreateDatasourceApiV1DatasourcesPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: CreateDataSourceRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreateDatasourceApiV1DatasourcesPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: CreateDataSourceRequest }, + CreateDatasourceApiV1DatasourcesPostMutationVariables, TContext > => { - const mutationOptions = - getCreateDatasourceApiV1DatasourcesPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateDatasourceApiV1DatasourcesPostMutationOptions(options), + queryClient, + ); }; /** * Get a specific data source. @@ -408,13 +613,13 @@ export const getGetDatasourceApiV1DatasourcesDatasourceIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!datasourceId, + enabled: datasourceId !== null && datasourceId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDatasourceApiV1DatasourcesDatasourceIdGetQueryResult = @@ -424,10 +629,101 @@ export type GetDatasourceApiV1DatasourcesDatasourceIdGetQueryResult = export type GetDatasourceApiV1DatasourcesDatasourceIdGetQueryError = HTTPValidationError; +export function useGetDatasourceApiV1DatasourcesDatasourceIdGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasourceApiV1DatasourcesDatasourceIdGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasourceApiV1DatasourcesDatasourceIdGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Datasource */ -export const useGetDatasourceApiV1DatasourcesDatasourceIdGet = < + +export function useGetDatasourceApiV1DatasourcesDatasourceIdGet< TData = Awaited< ReturnType >, @@ -445,21 +741,23 @@ export const useGetDatasourceApiV1DatasourcesDatasourceIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetDatasourceApiV1DatasourcesDatasourceIdGetQueryOptions( datasourceId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Delete a data source (soft delete). @@ -467,13 +765,18 @@ export const useGetDatasourceApiV1DatasourcesDatasourceIdGet = < */ export const deleteDatasourceApiV1DatasourcesDatasourceIdDelete = ( datasourceId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources/${datasourceId}`, method: "DELETE", + signal, }); }; +export const getDeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationKey = + () => ["deleteDatasourceApiV1DatasourcesDatasourceIdDelete"] as const; + export const getDeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -481,7 +784,7 @@ export const getDeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationOption ReturnType >, TError, - { datasourceId: string }, + DeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -489,16 +792,24 @@ export const getDeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationOption ReturnType >, TError, - { datasourceId: string }, + DeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { datasourceId: string } + DeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationVariables > = (props) => { const { datasourceId } = props ?? {}; @@ -517,6 +828,8 @@ export type DeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationResult = export type DeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationError = HTTPValidationError; +export type DeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationVariables = + { datasourceId: string }; /** * @summary Delete Datasource @@ -524,29 +837,32 @@ export type DeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationError = export const useDeleteDatasourceApiV1DatasourcesDatasourceIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { datasourceId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + DeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { datasourceId: string }, + DeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDeleteDatasourceApiV1DatasourcesDatasourceIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Test connectivity for an existing data source. @@ -554,13 +870,19 @@ export const useDeleteDatasourceApiV1DatasourcesDatasourceIdDelete = < */ export const testDatasourceConnectionApiV1DatasourcesDatasourceIdTestPost = ( datasourceId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources/${datasourceId}/test`, method: "POST", + signal, }); }; +export const getTestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationKey = + () => + ["testDatasourceConnectionApiV1DatasourcesDatasourceIdTestPost"] as const; + export const getTestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -570,7 +892,7 @@ export const getTestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMuta > >, TError, - { datasourceId: string }, + TestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationVariables, TContext >; }): UseMutationOptions< @@ -580,10 +902,18 @@ export const getTestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMuta > >, TError, - { datasourceId: string }, + TestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getTestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -591,7 +921,7 @@ export const getTestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMuta typeof testDatasourceConnectionApiV1DatasourcesDatasourceIdTestPost > >, - { datasourceId: string } + TestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationVariables > = (props) => { const { datasourceId } = props ?? {}; @@ -614,6 +944,8 @@ export type TestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutation export type TestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationError = HTTPValidationError; +export type TestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationVariables = + { datasourceId: string }; /** * @summary Test Datasource Connection @@ -621,38 +953,41 @@ export type TestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutation export const useTestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof testDatasourceConnectionApiV1DatasourcesDatasourceIdTestPost - > - >, - TError, - { datasourceId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof testDatasourceConnectionApiV1DatasourcesDatasourceIdTestPost + > + >, + TError, + TestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType< typeof testDatasourceConnectionApiV1DatasourcesDatasourceIdTestPost > >, TError, - { datasourceId: string }, + TestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getTestDatasourceConnectionApiV1DatasourcesDatasourceIdTestPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Get schema from a data source. - -Returns unified schema with catalogs, schemas, and tables. + * + * Returns unified schema with catalogs, schemas, and tables. * @summary Get Datasource Schema */ export const getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet = ( @@ -729,7 +1064,7 @@ export const getGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetQueryOpt return { queryKey, queryFn, - enabled: !!datasourceId, + enabled: datasourceId !== null && datasourceId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -739,7 +1074,7 @@ export const getGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetQueryOpt >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetQueryResult = @@ -753,10 +1088,120 @@ export type GetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetQueryResult export type GetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetQueryError = HTTPValidationError; +export function useGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params: + | undefined + | GetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet + > + >, + TError, + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: GetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet + > + >, + TError, + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: GetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Datasource Schema */ -export const useGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet = < + +export function useGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet< TData = Awaited< ReturnType >, @@ -777,7 +1222,10 @@ export const useGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetQueryOptions( datasourceId, @@ -785,33 +1233,37 @@ export const useGetDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGet = < options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Execute a query against a data source. - -Only works for sources that support SQL or similar query languages. + * + * Only works for sources that support SQL or similar query languages. * @summary Execute Query */ export const executeQueryApiV1DatasourcesDatasourceIdQueryPost = ( datasourceId: string, queryRequest: QueryRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources/${datasourceId}/query`, method: "POST", headers: { "Content-Type": "application/json" }, data: queryRequest, + signal, }); }; +export const getExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationKey = + () => ["executeQueryApiV1DatasourcesDatasourceIdQueryPost"] as const; + export const getExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -819,7 +1271,7 @@ export const getExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationOptions ReturnType >, TError, - { datasourceId: string; data: QueryRequest }, + ExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationVariables, TContext >; }): UseMutationOptions< @@ -827,16 +1279,24 @@ export const getExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationOptions ReturnType >, TError, - { datasourceId: string; data: QueryRequest }, + ExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { datasourceId: string; data: QueryRequest } + ExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationVariables > = (props) => { const { datasourceId, data } = props ?? {}; @@ -859,6 +1319,8 @@ export type ExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationBody = QueryRequest; export type ExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationError = HTTPValidationError; +export type ExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationVariables = + { datasourceId: string; data: QueryRequest }; /** * @summary Execute Query @@ -866,46 +1328,54 @@ export type ExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationError = export const useExecuteQueryApiV1DatasourcesDatasourceIdQueryPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { datasourceId: string; data: QueryRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + ExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { datasourceId: string; data: QueryRequest }, + ExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getExecuteQueryApiV1DatasourcesDatasourceIdQueryPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Get statistics for columns in a table. - -Only works for sources that support column statistics. + * + * Only works for sources that support column statistics. * @summary Get Column Stats */ export const getColumnStatsApiV1DatasourcesDatasourceIdStatsPost = ( datasourceId: string, statsRequest: StatsRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources/${datasourceId}/stats`, method: "POST", headers: { "Content-Type": "application/json" }, data: statsRequest, + signal, }); }; +export const getGetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationKey = + () => ["getColumnStatsApiV1DatasourcesDatasourceIdStatsPost"] as const; + export const getGetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -913,7 +1383,7 @@ export const getGetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationOptio ReturnType >, TError, - { datasourceId: string; data: StatsRequest }, + GetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationVariables, TContext >; }): UseMutationOptions< @@ -921,16 +1391,24 @@ export const getGetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationOptio ReturnType >, TError, - { datasourceId: string; data: StatsRequest }, + GetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getGetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { datasourceId: string; data: StatsRequest } + GetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationVariables > = (props) => { const { datasourceId, data } = props ?? {}; @@ -953,6 +1431,8 @@ export type GetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationBody = StatsRequest; export type GetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationError = HTTPValidationError; +export type GetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationVariables = + { datasourceId: string; data: StatsRequest }; /** * @summary Get Column Stats @@ -960,46 +1440,54 @@ export type GetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationError = export const useGetColumnStatsApiV1DatasourcesDatasourceIdStatsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { datasourceId: string; data: StatsRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + GetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { datasourceId: string; data: StatsRequest }, + GetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getGetColumnStatsApiV1DatasourcesDatasourceIdStatsPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Sync schema and register/update datasets. - -Discovers all tables from the data source and upserts them -into the datasets table. Soft-deletes datasets that no longer exist. + * + * Discovers all tables from the data source and upserts them + * into the datasets table. Soft-deletes datasets that no longer exist. * @summary Sync Datasource Schema */ export const syncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPost = ( datasourceId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasources/${datasourceId}/sync`, method: "POST", + signal, }); }; +export const getSyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationKey = + () => ["syncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPost"] as const; + export const getSyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1009,7 +1497,7 @@ export const getSyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutation > >, TError, - { datasourceId: string }, + SyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationVariables, TContext >; }): UseMutationOptions< @@ -1019,10 +1507,18 @@ export const getSyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutation > >, TError, - { datasourceId: string }, + SyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getSyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -1030,7 +1526,7 @@ export const getSyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutation typeof syncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPost > >, - { datasourceId: string } + SyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationVariables > = (props) => { const { datasourceId } = props ?? {}; @@ -1053,6 +1549,8 @@ export type SyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationResu export type SyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationError = HTTPValidationError; +export type SyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationVariables = + { datasourceId: string }; /** * @summary Sync Datasource Schema @@ -1060,31 +1558,34 @@ export type SyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationErro export const useSyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof syncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPost - > - >, - TError, - { datasourceId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof syncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPost + > + >, + TError, + SyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { datasourceId: string }, + SyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getSyncDatasourceSchemaApiV1DatasourcesDatasourceIdSyncPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * List datasets for a datasource. @@ -1164,7 +1665,7 @@ export const getListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetQue return { queryKey, queryFn, - enabled: !!datasourceId, + enabled: datasourceId !== null && datasourceId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -1174,7 +1675,7 @@ export const getListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetQue >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetQueryResult = @@ -1188,72 +1689,189 @@ export type ListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetQueryRe export type ListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetQueryError = HTTPValidationError; -/** - * @summary List Datasource Datasets - */ -export const useListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet = - < - TData = Awaited< - ReturnType< - typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet +export function useListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet< + TData = Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params: + | undefined + | ListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - datasourceId: string, - params?: ListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetQueryOptions( - datasourceId, - params, - options, - ); - - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; - - return query; - }; - -/** - * List all supported data source types. - -Returns the configuration schema for each type, which can be used -to dynamically generate connection forms in the frontend. - * @summary List Source Types - */ -export const listSourceTypesApiV1V2DatasourcesTypesGet = ( - signal?: AbortSignal, -) => { - return customInstance({ - url: `/api/v1/v2/datasources/types`, - method: "GET", - signal, - }); -}; - -export const getListSourceTypesApiV1V2DatasourcesTypesGetQueryKey = () => { - return [`/api/v1/v2/datasources/types`] as const; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; }; - -export const getListSourceTypesApiV1V2DatasourcesTypesGetQueryOptions = < +export function useListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet< + TData = Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: ListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet< + TData = Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: ListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary List Datasource Datasets + */ + +export function useListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet< + TData = Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: ListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetQueryOptions( + datasourceId, + params, + options, + ); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} + +/** + * List all supported data source types. + * + * Returns the configuration schema for each type, which can be used + * to dynamically generate connection forms in the frontend. + * @summary List Source Types + */ +export const listSourceTypesApiV1V2DatasourcesTypesGet = ( + signal?: AbortSignal, +) => { + return customInstance({ + url: `/api/v1/v2/datasources/types`, + method: "GET", + signal, + }); +}; + +export const getListSourceTypesApiV1V2DatasourcesTypesGetQueryKey = () => { + return [`/api/v1/v2/datasources/types`] as const; +}; + +export const getListSourceTypesApiV1V2DatasourcesTypesGetQueryOptions = < TData = Awaited>, TError = unknown, >(options?: { @@ -1279,7 +1897,7 @@ export const getListSourceTypesApiV1V2DatasourcesTypesGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListSourceTypesApiV1V2DatasourcesTypesGetQueryResult = NonNullable< @@ -1287,51 +1905,128 @@ export type ListSourceTypesApiV1V2DatasourcesTypesGetQueryResult = NonNullable< >; export type ListSourceTypesApiV1V2DatasourcesTypesGetQueryError = unknown; +export function useListSourceTypesApiV1V2DatasourcesTypesGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListSourceTypesApiV1V2DatasourcesTypesGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListSourceTypesApiV1V2DatasourcesTypesGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Source Types */ -export const useListSourceTypesApiV1V2DatasourcesTypesGet = < + +export function useListSourceTypesApiV1V2DatasourcesTypesGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListSourceTypesApiV1V2DatasourcesTypesGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Test a connection without saving it. - -Use this endpoint to validate connection settings before creating -a data source. + * + * Use this endpoint to validate connection settings before creating + * a data source. * @summary Test Connection */ export const testConnectionApiV1V2DatasourcesTestPost = ( testConnectionRequest: TestConnectionRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/v2/datasources/test`, method: "POST", headers: { "Content-Type": "application/json" }, data: testConnectionRequest, + signal, }); }; +export const getTestConnectionApiV1V2DatasourcesTestPostMutationKey = () => + ["testConnectionApiV1V2DatasourcesTestPost"] as const; + export const getTestConnectionApiV1V2DatasourcesTestPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -1339,20 +2034,27 @@ export const getTestConnectionApiV1V2DatasourcesTestPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: TestConnectionRequest }, + TestConnectionApiV1V2DatasourcesTestPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: TestConnectionRequest }, + TestConnectionApiV1V2DatasourcesTestPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getTestConnectionApiV1V2DatasourcesTestPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: TestConnectionRequest } + TestConnectionApiV1V2DatasourcesTestPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -1370,6 +2072,9 @@ export type TestConnectionApiV1V2DatasourcesTestPostMutationBody = TestConnectionRequest; export type TestConnectionApiV1V2DatasourcesTestPostMutationError = HTTPValidationError; +export type TestConnectionApiV1V2DatasourcesTestPostMutationVariables = { + data: TestConnectionRequest; +}; /** * @summary Test Connection @@ -1377,23 +2082,26 @@ export type TestConnectionApiV1V2DatasourcesTestPostMutationError = export const useTestConnectionApiV1V2DatasourcesTestPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: TestConnectionRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + TestConnectionApiV1V2DatasourcesTestPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: TestConnectionRequest }, + TestConnectionApiV1V2DatasourcesTestPostMutationVariables, TContext > => { - const mutationOptions = - getTestConnectionApiV1V2DatasourcesTestPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getTestConnectionApiV1V2DatasourcesTestPostMutationOptions(options), + queryClient, + ); }; /** * List all data sources for the current tenant. @@ -1436,7 +2144,7 @@ export const getListDatasourcesApiV1V2DatasourcesGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListDatasourcesApiV1V2DatasourcesGetQueryResult = NonNullable< @@ -1444,50 +2152,127 @@ export type ListDatasourcesApiV1V2DatasourcesGetQueryResult = NonNullable< >; export type ListDatasourcesApiV1V2DatasourcesGetQueryError = unknown; +export function useListDatasourcesApiV1V2DatasourcesGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListDatasourcesApiV1V2DatasourcesGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListDatasourcesApiV1V2DatasourcesGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Datasources */ -export const useListDatasourcesApiV1V2DatasourcesGet = < + +export function useListDatasourcesApiV1V2DatasourcesGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListDatasourcesApiV1V2DatasourcesGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a new data source. - -Tests the connection before saving. Returns 400 if connection test fails. + * + * Tests the connection before saving. Returns 400 if connection test fails. * @summary Create Datasource */ export const createDatasourceApiV1V2DatasourcesPost = ( createDataSourceRequest: CreateDataSourceRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/v2/datasources`, method: "POST", headers: { "Content-Type": "application/json" }, data: createDataSourceRequest, + signal, }); }; +export const getCreateDatasourceApiV1V2DatasourcesPostMutationKey = () => + ["createDatasourceApiV1V2DatasourcesPost"] as const; + export const getCreateDatasourceApiV1V2DatasourcesPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -1495,20 +2280,27 @@ export const getCreateDatasourceApiV1V2DatasourcesPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: CreateDataSourceRequest }, + CreateDatasourceApiV1V2DatasourcesPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: CreateDataSourceRequest }, + CreateDatasourceApiV1V2DatasourcesPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getCreateDatasourceApiV1V2DatasourcesPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: CreateDataSourceRequest } + CreateDatasourceApiV1V2DatasourcesPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -1525,6 +2317,9 @@ export type CreateDatasourceApiV1V2DatasourcesPostMutationBody = CreateDataSourceRequest; export type CreateDatasourceApiV1V2DatasourcesPostMutationError = HTTPValidationError; +export type CreateDatasourceApiV1V2DatasourcesPostMutationVariables = { + data: CreateDataSourceRequest; +}; /** * @summary Create Datasource @@ -1532,23 +2327,26 @@ export type CreateDatasourceApiV1V2DatasourcesPostMutationError = export const useCreateDatasourceApiV1V2DatasourcesPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: CreateDataSourceRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreateDatasourceApiV1V2DatasourcesPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: CreateDataSourceRequest }, + CreateDatasourceApiV1V2DatasourcesPostMutationVariables, TContext > => { - const mutationOptions = - getCreateDatasourceApiV1V2DatasourcesPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateDatasourceApiV1V2DatasourcesPostMutationOptions(options), + queryClient, + ); }; /** * Get a specific data source. @@ -1604,13 +2402,13 @@ export const getGetDatasourceApiV1V2DatasourcesDatasourceIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!datasourceId, + enabled: datasourceId !== null && datasourceId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDatasourceApiV1V2DatasourcesDatasourceIdGetQueryResult = @@ -1620,10 +2418,101 @@ export type GetDatasourceApiV1V2DatasourcesDatasourceIdGetQueryResult = export type GetDatasourceApiV1V2DatasourcesDatasourceIdGetQueryError = HTTPValidationError; +export function useGetDatasourceApiV1V2DatasourcesDatasourceIdGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasourceApiV1V2DatasourcesDatasourceIdGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasourceApiV1V2DatasourcesDatasourceIdGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasourceId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Datasource */ -export const useGetDatasourceApiV1V2DatasourcesDatasourceIdGet = < + +export function useGetDatasourceApiV1V2DatasourcesDatasourceIdGet< TData = Awaited< ReturnType >, @@ -1641,21 +2530,23 @@ export const useGetDatasourceApiV1V2DatasourcesDatasourceIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetDatasourceApiV1V2DatasourcesDatasourceIdGetQueryOptions( datasourceId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Delete a data source (soft delete). @@ -1663,13 +2554,18 @@ export const useGetDatasourceApiV1V2DatasourcesDatasourceIdGet = < */ export const deleteDatasourceApiV1V2DatasourcesDatasourceIdDelete = ( datasourceId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/v2/datasources/${datasourceId}`, method: "DELETE", + signal, }); }; +export const getDeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationKey = + () => ["deleteDatasourceApiV1V2DatasourcesDatasourceIdDelete"] as const; + export const getDeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1677,7 +2573,7 @@ export const getDeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationOpti ReturnType >, TError, - { datasourceId: string }, + DeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -1685,16 +2581,24 @@ export const getDeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationOpti ReturnType >, TError, - { datasourceId: string }, + DeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { datasourceId: string } + DeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationVariables > = (props) => { const { datasourceId } = props ?? {}; @@ -1713,6 +2617,8 @@ export type DeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationResult = export type DeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationError = HTTPValidationError; +export type DeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationVariables = + { datasourceId: string }; /** * @summary Delete Datasource @@ -1720,29 +2626,32 @@ export type DeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationError = export const useDeleteDatasourceApiV1V2DatasourcesDatasourceIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { datasourceId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + DeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { datasourceId: string }, + DeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDeleteDatasourceApiV1V2DatasourcesDatasourceIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Test connectivity for an existing data source. @@ -1750,13 +2659,19 @@ export const useDeleteDatasourceApiV1V2DatasourcesDatasourceIdDelete = < */ export const testDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPost = ( datasourceId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/v2/datasources/${datasourceId}/test`, method: "POST", + signal, }); }; +export const getTestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationKey = + () => + ["testDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPost"] as const; + export const getTestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1766,7 +2681,7 @@ export const getTestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMu > >, TError, - { datasourceId: string }, + TestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationVariables, TContext >; }): UseMutationOptions< @@ -1776,10 +2691,18 @@ export const getTestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMu > >, TError, - { datasourceId: string }, + TestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getTestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -1787,7 +2710,7 @@ export const getTestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMu typeof testDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPost > >, - { datasourceId: string } + TestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationVariables > = (props) => { const { datasourceId } = props ?? {}; @@ -1810,43 +2733,48 @@ export type TestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutati export type TestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationError = HTTPValidationError; +export type TestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationVariables = + { datasourceId: string }; /** * @summary Test Datasource Connection */ export const useTestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof testDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPost - > - >, - TError, - { datasourceId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof testDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPost + > + >, + TError, + TestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof testDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPost > >, TError, - { datasourceId: string }, + TestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getTestDatasourceConnectionApiV1V2DatasourcesDatasourceIdTestPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Get schema from a data source. - -Returns unified schema with catalogs, schemas, and tables. + * + * Returns unified schema with catalogs, schemas, and tables. * @summary Get Datasource Schema */ export const getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet = ( @@ -1923,7 +2851,7 @@ export const getGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetQueryO return { queryKey, queryFn, - enabled: !!datasourceId, + enabled: datasourceId !== null && datasourceId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -1933,7 +2861,7 @@ export const getGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetQueryO >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetQueryResult = @@ -1943,14 +2871,130 @@ export type GetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetQueryResul typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet > > - >; -export type GetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetQueryError = - HTTPValidationError; - + >; +export type GetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetQueryError = + HTTPValidationError; + +export function useGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet< + TData = Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params: + | undefined + | GetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + >, + TError, + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet< + TData = Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: GetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + >, + TError, + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet< + TData = Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: GetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Datasource Schema */ -export const useGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet = < + +export function useGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet< TData = Awaited< ReturnType< typeof getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet @@ -1973,7 +3017,10 @@ export const useGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetQueryOptions( datasourceId, @@ -1981,33 +3028,37 @@ export const useGetDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGet = < options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Execute a query against a data source. - -Only works for sources that support SQL or similar query languages. + * + * Only works for sources that support SQL or similar query languages. * @summary Execute Query */ export const executeQueryApiV1V2DatasourcesDatasourceIdQueryPost = ( datasourceId: string, queryRequest: QueryRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/v2/datasources/${datasourceId}/query`, method: "POST", headers: { "Content-Type": "application/json" }, data: queryRequest, + signal, }); }; +export const getExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationKey = + () => ["executeQueryApiV1V2DatasourcesDatasourceIdQueryPost"] as const; + export const getExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -2015,7 +3066,7 @@ export const getExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationOptio ReturnType >, TError, - { datasourceId: string; data: QueryRequest }, + ExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationVariables, TContext >; }): UseMutationOptions< @@ -2023,16 +3074,24 @@ export const getExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationOptio ReturnType >, TError, - { datasourceId: string; data: QueryRequest }, + ExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { datasourceId: string; data: QueryRequest } + ExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationVariables > = (props) => { const { datasourceId, data } = props ?? {}; @@ -2055,6 +3114,8 @@ export type ExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationBody = QueryRequest; export type ExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationError = HTTPValidationError; +export type ExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationVariables = + { datasourceId: string; data: QueryRequest }; /** * @summary Execute Query @@ -2062,48 +3123,56 @@ export type ExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationError = export const useExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { datasourceId: string; data: QueryRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + ExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { datasourceId: string; data: QueryRequest }, + ExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getExecuteQueryApiV1V2DatasourcesDatasourceIdQueryPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Get statistics for columns in a table. - -Only works for sources that support column statistics. + * + * Only works for sources that support column statistics. * @summary Get Column Stats */ export const getColumnStatsApiV1V2DatasourcesDatasourceIdStatsPost = ( datasourceId: string, statsRequest: StatsRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/v2/datasources/${datasourceId}/stats`, method: "POST", headers: { "Content-Type": "application/json" }, data: statsRequest, + signal, }); }; +export const getGetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationKey = + () => ["getColumnStatsApiV1V2DatasourcesDatasourceIdStatsPost"] as const; + export const getGetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -2111,7 +3180,7 @@ export const getGetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationOpt ReturnType >, TError, - { datasourceId: string; data: StatsRequest }, + GetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationVariables, TContext >; }): UseMutationOptions< @@ -2119,16 +3188,24 @@ export const getGetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationOpt ReturnType >, TError, - { datasourceId: string; data: StatsRequest }, + GetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getGetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { datasourceId: string; data: StatsRequest } + GetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationVariables > = (props) => { const { datasourceId, data } = props ?? {}; @@ -2151,6 +3228,8 @@ export type GetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationBody = StatsRequest; export type GetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationError = HTTPValidationError; +export type GetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationVariables = + { datasourceId: string; data: StatsRequest }; /** * @summary Get Column Stats @@ -2158,46 +3237,54 @@ export type GetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationError = export const useGetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { datasourceId: string; data: StatsRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + GetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { datasourceId: string; data: StatsRequest }, + GetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getGetColumnStatsApiV1V2DatasourcesDatasourceIdStatsPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Sync schema and register/update datasets. - -Discovers all tables from the data source and upserts them -into the datasets table. Soft-deletes datasets that no longer exist. + * + * Discovers all tables from the data source and upserts them + * into the datasets table. Soft-deletes datasets that no longer exist. * @summary Sync Datasource Schema */ export const syncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPost = ( datasourceId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/v2/datasources/${datasourceId}/sync`, method: "POST", + signal, }); }; +export const getSyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationKey = + () => ["syncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPost"] as const; + export const getSyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -2207,7 +3294,7 @@ export const getSyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutati > >, TError, - { datasourceId: string }, + SyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationVariables, TContext >; }): UseMutationOptions< @@ -2217,10 +3304,18 @@ export const getSyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutati > >, TError, - { datasourceId: string }, + SyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getSyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -2228,7 +3323,7 @@ export const getSyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutati typeof syncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPost > >, - { datasourceId: string } + SyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationVariables > = (props) => { const { datasourceId } = props ?? {}; @@ -2251,6 +3346,8 @@ export type SyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationRe export type SyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationError = HTTPValidationError; +export type SyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationVariables = + { datasourceId: string }; /** * @summary Sync Datasource Schema @@ -2258,33 +3355,36 @@ export type SyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationEr export const useSyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof syncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPost - > - >, - TError, - { datasourceId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof syncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPost + > + >, + TError, + SyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType< typeof syncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPost > >, TError, - { datasourceId: string }, + SyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getSyncDatasourceSchemaApiV1V2DatasourcesDatasourceIdSyncPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * List datasets for a datasource. @@ -2364,7 +3464,7 @@ export const getListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetQ return { queryKey, queryFn, - enabled: !!datasourceId, + enabled: datasourceId !== null && datasourceId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -2374,7 +3474,7 @@ export const getListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetQ >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetQueryResult = @@ -2388,46 +3488,163 @@ export type ListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetQuery export type ListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetQueryError = HTTPValidationError; -/** - * @summary List Datasource Datasets - */ -export const useListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet = - < - TData = Awaited< - ReturnType< - typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet +export function useListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet< + TData = Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params: + | undefined + | ListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - datasourceId: string, - params?: ListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParams, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetQueryOptions( - datasourceId, - params, - options, - ); + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet< + TData = Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: ListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet< + TData = Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: ListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary List Datasource Datasets + */ - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; +export function useListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet< + TData = Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + >, + TError = HTTPValidationError, +>( + datasourceId: string, + params?: ListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetQueryOptions( + datasourceId, + params, + options, + ); - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; - }; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/default/default.ts b/frontend/app/src/lib/api/generated/default/default.ts index 3e958684d..c7a185634 100644 --- a/frontend/app/src/lib/api/generated/default/default.ts +++ b/frontend/app/src/lib/api/generated/default/default.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,39 @@ */ import { useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { HealthCheckHealthGet200 } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Health check endpoint. * @summary Health Check @@ -55,7 +80,7 @@ export const getHealthCheckHealthGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type HealthCheckHealthGetQueryResult = NonNullable< @@ -63,28 +88,100 @@ export type HealthCheckHealthGetQueryResult = NonNullable< >; export type HealthCheckHealthGetQueryError = unknown; +export function useHealthCheckHealthGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useHealthCheckHealthGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useHealthCheckHealthGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Health Check */ -export const useHealthCheckHealthGet = < + +export function useHealthCheckHealthGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getHealthCheckHealthGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/index.ts b/frontend/app/src/lib/api/generated/index.ts new file mode 100644 index 000000000..dc4b9aee7 --- /dev/null +++ b/frontend/app/src/lib/api/generated/index.ts @@ -0,0 +1,28 @@ +export * from "./analytics/analytics"; +export * from "./asset-instances/asset-instances"; +export * from "./auth/auth"; +export * from "./comment-votes/comment-votes"; +export * from "./context/context"; +export * from "./credentials/credentials"; +export * from "./dashboard/dashboard"; +export * from "./dataset-repo-mappings/dataset-repo-mappings"; +export * from "./datasets/datasets"; +export * from "./datasources/datasources"; +export * from "./default/default"; +export * from "./integrations/integrations"; +export * from "./investigation-feedback/investigation-feedback"; +export * from "./investigation-permissions/investigation-permissions"; +export * from "./investigation-tags/investigation-tags"; +export * from "./investigations/investigations"; +export * from "./issue-threads/issue-threads"; +export * from "./issues/issues"; +export * from "./knowledge-comments/knowledge-comments"; +export * from "./lineage/lineage"; +export * from "./notifications/notifications"; +export * from "./permissions/permissions"; +export * from "./schema-comments/schema-comments"; +export * from "./sla-policies/sla-policies"; +export * from "./tags/tags"; +export * from "./teams/teams"; +export * from "./usage/usage"; +export * from "./users/users"; diff --git a/frontend/app/src/lib/api/generated/integrations/integrations.ts b/frontend/app/src/lib/api/generated/integrations/integrations.ts index cdec13c01..54520e76c 100644 --- a/frontend/app/src/lib/api/generated/integrations/integrations.ts +++ b/frontend/app/src/lib/api/generated/integrations/integrations.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -8,34 +8,43 @@ import { useMutation } from "@tanstack/react-query"; import type { MutationFunction, + QueryClient, UseMutationOptions, UseMutationResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, WebhookIssueResponse } from "../../model"; + import { customInstance } from "../../client"; /** * Receive a generic webhook to create an issue. - -This endpoint allows external systems to create issues via HTTP webhook. -Requests must be signed with HMAC-SHA256 using the shared secret. - -Optional JSON Schema validation can be configured via: -- WEBHOOK_JSON_SCHEMA environment variable (inline JSON schema) -- X-JSON-Schema header (base64-encoded JSON schema, overrides env config) - -Idempotency: If source_provider and source_external_id are provided, -duplicate webhooks will return the existing issue instead of creating -a new one. + * + * This endpoint allows external systems to create issues via HTTP webhook. + * Requests must be signed with HMAC-SHA256 using the shared secret. + * + * Optional JSON Schema validation can be configured via: + * - WEBHOOK_JSON_SCHEMA environment variable (inline JSON schema) + * - X-JSON-Schema header (base64-encoded JSON schema, overrides env config) + * + * Idempotency: If source_provider and source_external_id are provided, + * duplicate webhooks will return the existing issue instead of creating + * a new one. * @summary Receive Generic Webhook */ -export const receiveGenericWebhookApiV1IntegrationsWebhookGenericPost = () => { +export const receiveGenericWebhookApiV1IntegrationsWebhookGenericPost = ( + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/integrations/webhook-generic`, method: "POST", + signal, }); }; +export const getReceiveGenericWebhookApiV1IntegrationsWebhookGenericPostMutationKey = + () => ["receiveGenericWebhookApiV1IntegrationsWebhookGenericPost"] as const; + export const getReceiveGenericWebhookApiV1IntegrationsWebhookGenericPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -58,7 +67,15 @@ export const getReceiveGenericWebhookApiV1IntegrationsWebhookGenericPostMutation void, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getReceiveGenericWebhookApiV1IntegrationsWebhookGenericPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -92,18 +109,21 @@ export type ReceiveGenericWebhookApiV1IntegrationsWebhookGenericPostMutationErro export const useReceiveGenericWebhookApiV1IntegrationsWebhookGenericPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof receiveGenericWebhookApiV1IntegrationsWebhookGenericPost - > - >, - TError, - void, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof receiveGenericWebhookApiV1IntegrationsWebhookGenericPost + > + >, + TError, + void, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, @@ -111,10 +131,10 @@ export const useReceiveGenericWebhookApiV1IntegrationsWebhookGenericPost = < void, TContext > => { - const mutationOptions = + return useMutation( getReceiveGenericWebhookApiV1IntegrationsWebhookGenericPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/investigation-feedback/investigation-feedback.ts b/frontend/app/src/lib/api/generated/investigation-feedback/investigation-feedback.ts index 3d09e6631..ecd02af61 100644 --- a/frontend/app/src/lib/api/generated/investigation-feedback/investigation-feedback.ts +++ b/frontend/app/src/lib/api/generated/investigation-feedback/investigation-feedback.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,37 +7,67 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { FeedbackCreate, FeedbackItem, FeedbackResponse, HTTPValidationError, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Submit feedback on a hypothesis, query, evidence, synthesis, or investigation. * @summary Submit Feedback */ export const submitFeedbackApiV1InvestigationFeedbackPost = ( feedbackCreate: FeedbackCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/investigation-feedback/`, method: "POST", headers: { "Content-Type": "application/json" }, data: feedbackCreate, + signal, }); }; +export const getSubmitFeedbackApiV1InvestigationFeedbackPostMutationKey = () => + ["submitFeedbackApiV1InvestigationFeedbackPost"] as const; + export const getSubmitFeedbackApiV1InvestigationFeedbackPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -45,20 +75,28 @@ export const getSubmitFeedbackApiV1InvestigationFeedbackPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: FeedbackCreate }, + SubmitFeedbackApiV1InvestigationFeedbackPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: FeedbackCreate }, + SubmitFeedbackApiV1InvestigationFeedbackPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getSubmitFeedbackApiV1InvestigationFeedbackPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: FeedbackCreate } + SubmitFeedbackApiV1InvestigationFeedbackPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -76,6 +114,9 @@ export type SubmitFeedbackApiV1InvestigationFeedbackPostMutationBody = FeedbackCreate; export type SubmitFeedbackApiV1InvestigationFeedbackPostMutationError = HTTPValidationError; +export type SubmitFeedbackApiV1InvestigationFeedbackPostMutationVariables = { + data: FeedbackCreate; +}; /** * @summary Submit Feedback @@ -83,34 +124,37 @@ export type SubmitFeedbackApiV1InvestigationFeedbackPostMutationError = export const useSubmitFeedbackApiV1InvestigationFeedbackPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: FeedbackCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + SubmitFeedbackApiV1InvestigationFeedbackPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: FeedbackCreate }, + SubmitFeedbackApiV1InvestigationFeedbackPostMutationVariables, TContext > => { - const mutationOptions = - getSubmitFeedbackApiV1InvestigationFeedbackPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getSubmitFeedbackApiV1InvestigationFeedbackPostMutationOptions(options), + queryClient, + ); }; /** * Get current user's feedback for an investigation. - -Args: - investigation_id: The investigation to get feedback for. - auth: Authentication context. - db: Application database. - -Returns: - List of feedback items for the investigation. + * + * Args: + * investigation_id: The investigation to get feedback for. + * auth: Authentication context. + * db: Application database. + * + * Returns: + * List of feedback items for the investigation. * @summary Get Investigation Feedback */ export const getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet = @@ -176,7 +220,7 @@ export const getGetInvestigationFeedbackApiV1InvestigationFeedbackInvestigations return { queryKey, queryFn, - enabled: !!investigationId, + enabled: investigationId !== null && investigationId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -186,7 +230,7 @@ export const getGetInvestigationFeedbackApiV1InvestigationFeedbackInvestigations >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGetQueryResult = @@ -200,44 +244,156 @@ export type GetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInve export type GetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGetQueryError = HTTPValidationError; -/** - * @summary Get Investigation Feedback - */ -export const useGetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet = - < - TData = Awaited< - ReturnType< - typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet +export function useGetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet< + TData = Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - investigationId: string, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getGetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGetQueryOptions( - investigationId, - options, - ); + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet< + TData = Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + >, + TError, + Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet< + TData = Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary Get Investigation Feedback + */ - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; +export function useGetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet< + TData = Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getGetInvestigationFeedbackApiV1InvestigationFeedbackInvestigationsInvestigationIdGetQueryOptions( + investigationId, + options, + ); - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; - }; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/investigation-permissions/investigation-permissions.ts b/frontend/app/src/lib/api/generated/investigation-permissions/investigation-permissions.ts index cd019e20e..78dc0ecb5 100644 --- a/frontend/app/src/lib/api/generated/investigation-permissions/investigation-permissions.ts +++ b/frontend/app/src/lib/api/generated/investigation-permissions/investigation-permissions.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,39 @@ */ import { useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, PermissionGrantResponse } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Get all permissions for an investigation. * @summary Get Investigation Permissions @@ -80,7 +105,7 @@ export const getGetInvestigationPermissionsApiV1InvestigationsInvestigationIdPer return { queryKey, queryFn, - enabled: !!investigationId, + enabled: investigationId !== null && investigationId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -90,7 +115,7 @@ export const getGetInvestigationPermissionsApiV1InvestigationsInvestigationIdPer >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGetQueryResult = @@ -104,44 +129,156 @@ export type GetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermiss export type GetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGetQueryError = HTTPValidationError; -/** - * @summary Get Investigation Permissions - */ -export const useGetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet = - < - TData = Awaited< - ReturnType< - typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet +export function useGetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet< + TData = Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - investigationId: string, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getGetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGetQueryOptions( - investigationId, - options, - ); + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet< + TData = Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + >, + TError, + Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet< + TData = Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary Get Investigation Permissions + */ - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; +export function useGetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet< + TData = Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getGetInvestigationPermissionsApiV1InvestigationsInvestigationIdPermissionsGetQueryOptions( + investigationId, + options, + ); - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; - }; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/investigation-tags/investigation-tags.ts b/frontend/app/src/lib/api/generated/investigation-tags/investigation-tags.ts index 52c3efb6b..20ac5fdaa 100644 --- a/frontend/app/src/lib/api/generated/investigation-tags/investigation-tags.ts +++ b/frontend/app/src/lib/api/generated/investigation-tags/investigation-tags.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,22 +7,47 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { AddInvestigationTagApiV1InvestigationsInvestigationIdTagsPost201, HTTPValidationError, InvestigationTagAdd, TagResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Get all tags on an investigation. * @summary Get Investigation Tags @@ -90,7 +115,7 @@ export const getGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGetQue return { queryKey, queryFn, - enabled: !!investigationId, + enabled: investigationId !== null && investigationId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -100,7 +125,7 @@ export const getGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGetQue >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGetQueryResult = @@ -114,47 +139,159 @@ export type GetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGetQueryRe export type GetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGetQueryError = HTTPValidationError; -/** - * @summary Get Investigation Tags - */ -export const useGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet = - < - TData = Awaited< - ReturnType< - typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet +export function useGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet< + TData = Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - investigationId: string, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGetQueryOptions( - investigationId, - options, - ); + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet< + TData = Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + >, + TError, + Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet< + TData = Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary Get Investigation Tags + */ - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; +export function useGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet< + TData = Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGetQueryOptions( + investigationId, + options, + ); - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; - }; + return withQueryKey(query, queryOptions.queryKey); +} /** * Add a tag to an investigation. @@ -163,6 +300,7 @@ export const useGetInvestigationTagsApiV1InvestigationsInvestigationIdTagsGet = export const addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost = ( investigationId: string, investigationTagAdd: InvestigationTagAdd, + signal?: AbortSignal, ) => { return customInstance( { @@ -170,10 +308,15 @@ export const addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost = ( method: "POST", headers: { "Content-Type": "application/json" }, data: investigationTagAdd, + signal, }, ); }; +export const getAddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationKey = + () => + ["addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost"] as const; + export const getAddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -183,7 +326,7 @@ export const getAddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMut > >, TError, - { investigationId: string; data: InvestigationTagAdd }, + AddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationVariables, TContext >; }): UseMutationOptions< @@ -193,10 +336,18 @@ export const getAddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMut > >, TError, - { investigationId: string; data: InvestigationTagAdd }, + AddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getAddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -204,7 +355,7 @@ export const getAddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMut typeof addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost > >, - { investigationId: string; data: InvestigationTagAdd } + AddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationVariables > = (props) => { const { investigationId, data } = props ?? {}; @@ -229,51 +380,63 @@ export type AddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutatio InvestigationTagAdd; export type AddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationError = HTTPValidationError; +export type AddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationVariables = + { investigationId: string; data: InvestigationTagAdd }; /** * @summary Add Investigation Tag */ export const useAddInvestigationTagApiV1InvestigationsInvestigationIdTagsPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost - > - >, - TError, - { investigationId: string; data: InvestigationTagAdd }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost + > + >, + TError, + AddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost > >, TError, - { investigationId: string; data: InvestigationTagAdd }, + AddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getAddInvestigationTagApiV1InvestigationsInvestigationIdTagsPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Remove a tag from an investigation. * @summary Remove Investigation Tag */ export const removeInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDelete = - (investigationId: string, tagId: string) => { + (investigationId: string, tagId: string, signal?: AbortSignal) => { return customInstance({ url: `/api/v1/investigations/${investigationId}/tags/${tagId}`, method: "DELETE", + signal, }); }; +export const getRemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationKey = + () => + [ + "removeInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDelete", + ] as const; + export const getRemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -283,7 +446,7 @@ export const getRemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagI > >, TError, - { investigationId: string; tagId: string }, + RemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -293,10 +456,18 @@ export const getRemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagI > >, TError, - { investigationId: string; tagId: string }, + RemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getRemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -304,7 +475,7 @@ export const getRemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagI typeof removeInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDelete > >, - { investigationId: string; tagId: string } + RemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationVariables > = (props) => { const { investigationId, tagId } = props ?? {}; @@ -328,36 +499,41 @@ export type RemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDel export type RemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationError = HTTPValidationError; +export type RemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationVariables = + { investigationId: string; tagId: string }; /** * @summary Remove Investigation Tag */ export const useRemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDelete = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof removeInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDelete - > - >, - TError, - { investigationId: string; tagId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof removeInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDelete + > + >, + TError, + RemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof removeInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDelete > >, TError, - { investigationId: string; tagId: string }, + RemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getRemoveInvestigationTagApiV1InvestigationsInvestigationIdTagsTagIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/investigations/investigations.ts b/frontend/app/src/lib/api/generated/investigations/investigations.ts index 91bc6a3c9..88d760e50 100644 --- a/frontend/app/src/lib/api/generated/investigations/investigations.ts +++ b/frontend/app/src/lib/api/generated/investigations/investigations.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { CancelInvestigationResponse, ChainVerificationResponse, @@ -31,17 +37,36 @@ import type { StreamEventsApiV1InvestigationsInvestigationIdEventsGetParams, TemporalStatusResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List all investigations for the tenant. - -Args: - auth: Authentication context from API key/JWT. - db: Application database. - -Returns: - List of investigations. + * + * Args: + * auth: Authentication context from API key/JWT. + * db: Application database. + * + * Returns: + * List of investigations. * @summary List Investigations */ export const listInvestigationsApiV1InvestigationsGet = ( @@ -84,7 +109,7 @@ export const getListInvestigationsApiV1InvestigationsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListInvestigationsApiV1InvestigationsGetQueryResult = NonNullable< @@ -92,60 +117,137 @@ export type ListInvestigationsApiV1InvestigationsGetQueryResult = NonNullable< >; export type ListInvestigationsApiV1InvestigationsGetQueryError = unknown; +export function useListInvestigationsApiV1InvestigationsGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListInvestigationsApiV1InvestigationsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListInvestigationsApiV1InvestigationsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Investigations */ -export const useListInvestigationsApiV1InvestigationsGet = < + +export function useListInvestigationsApiV1InvestigationsGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListInvestigationsApiV1InvestigationsGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Start a new investigation for an alert. - -Creates a new investigation with Temporal workflow for durable execution. - -Args: - http_request: The HTTP request for accessing app state. - request: The investigation request containing alert data. - auth: Authentication context from API key/JWT. - db: Application database. - temporal_client: Temporal client for durable execution. - -Returns: - StartInvestigationResponse with investigation and branch IDs. + * + * Creates a new investigation with Temporal workflow for durable execution. + * + * Args: + * http_request: The HTTP request for accessing app state. + * request: The investigation request containing alert data. + * auth: Authentication context from API key/JWT. + * db: Application database. + * temporal_client: Temporal client for durable execution. + * + * Returns: + * StartInvestigationResponse with investigation and branch IDs. * @summary Start Investigation */ export const startInvestigationApiV1InvestigationsPost = ( startInvestigationRequest: StartInvestigationRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/investigations`, method: "POST", headers: { "Content-Type": "application/json" }, data: startInvestigationRequest, + signal, }); }; +export const getStartInvestigationApiV1InvestigationsPostMutationKey = () => + ["startInvestigationApiV1InvestigationsPost"] as const; + export const getStartInvestigationApiV1InvestigationsPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -153,20 +255,27 @@ export const getStartInvestigationApiV1InvestigationsPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: StartInvestigationRequest }, + StartInvestigationApiV1InvestigationsPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: StartInvestigationRequest }, + StartInvestigationApiV1InvestigationsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getStartInvestigationApiV1InvestigationsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: StartInvestigationRequest } + StartInvestigationApiV1InvestigationsPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -184,6 +293,9 @@ export type StartInvestigationApiV1InvestigationsPostMutationBody = StartInvestigationRequest; export type StartInvestigationApiV1InvestigationsPostMutationError = HTTPValidationError; +export type StartInvestigationApiV1InvestigationsPostMutationVariables = { + data: StartInvestigationRequest; +}; /** * @summary Start Investigation @@ -191,48 +303,59 @@ export type StartInvestigationApiV1InvestigationsPostMutationError = export const useStartInvestigationApiV1InvestigationsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: StartInvestigationRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + StartInvestigationApiV1InvestigationsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: StartInvestigationRequest }, + StartInvestigationApiV1InvestigationsPostMutationVariables, TContext > => { - const mutationOptions = - getStartInvestigationApiV1InvestigationsPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getStartInvestigationApiV1InvestigationsPostMutationOptions(options), + queryClient, + ); }; /** * Cancel an investigation and all its child workflows. - -Args: - investigation_id: UUID of the investigation to cancel. - auth: Authentication context from API key/JWT. - temporal_client: Temporal client for durable execution. - -Returns: - CancelInvestigationResponse with cancellation status. - -Raises: - HTTPException: If investigation not found or already complete. + * + * Args: + * investigation_id: UUID of the investigation to cancel. + * auth: Authentication context from API key/JWT. + * temporal_client: Temporal client for durable execution. + * + * Returns: + * CancelInvestigationResponse with cancellation status. + * + * Raises: + * HTTPException: If investigation not found or already complete. * @summary Cancel Investigation */ export const cancelInvestigationApiV1InvestigationsInvestigationIdCancelPost = ( investigationId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/investigations/${investigationId}/cancel`, method: "POST", + signal, }); }; +export const getCancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationKey = + () => + [ + "cancelInvestigationApiV1InvestigationsInvestigationIdCancelPost", + ] as const; + export const getCancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -242,7 +365,7 @@ export const getCancelInvestigationApiV1InvestigationsInvestigationIdCancelPostM > >, TError, - { investigationId: string }, + CancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationVariables, TContext >; }): UseMutationOptions< @@ -252,10 +375,18 @@ export const getCancelInvestigationApiV1InvestigationsInvestigationIdCancelPostM > >, TError, - { investigationId: string }, + CancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getCancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -263,7 +394,7 @@ export const getCancelInvestigationApiV1InvestigationsInvestigationIdCancelPostM typeof cancelInvestigationApiV1InvestigationsInvestigationIdCancelPost > >, - { investigationId: string } + CancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationVariables > = (props) => { const { investigationId } = props ?? {}; @@ -286,55 +417,60 @@ export type CancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutat export type CancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationError = HTTPValidationError; +export type CancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationVariables = + { investigationId: string }; /** * @summary Cancel Investigation */ export const useCancelInvestigationApiV1InvestigationsInvestigationIdCancelPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof cancelInvestigationApiV1InvestigationsInvestigationIdCancelPost - > - >, - TError, - { investigationId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof cancelInvestigationApiV1InvestigationsInvestigationIdCancelPost + > + >, + TError, + CancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof cancelInvestigationApiV1InvestigationsInvestigationIdCancelPost > >, TError, - { investigationId: string }, + CancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getCancelInvestigationApiV1InvestigationsInvestigationIdCancelPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Get investigation state from Temporal workflow. - -Returns the current state of the investigation including progress -and any available results. - -Args: - investigation_id: UUID of the investigation. - auth: Authentication context from API key/JWT. - temporal_client: Temporal client for durable execution. - -Returns: - InvestigationStateResponse with main branch state. - -Raises: - HTTPException: If investigation not found. + * + * Returns the current state of the investigation including progress + * and any available results. + * + * Args: + * investigation_id: UUID of the investigation. + * auth: Authentication context from API key/JWT. + * temporal_client: Temporal client for durable execution. + * + * Returns: + * InvestigationStateResponse with main branch state. + * + * Raises: + * HTTPException: If investigation not found. * @summary Get Investigation */ export const getInvestigationApiV1InvestigationsInvestigationIdGet = ( @@ -396,7 +532,7 @@ export const getGetInvestigationApiV1InvestigationsInvestigationIdGetQueryOption return { queryKey, queryFn, - enabled: !!investigationId, + enabled: investigationId !== null && investigationId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -404,7 +540,7 @@ export const getGetInvestigationApiV1InvestigationsInvestigationIdGetQueryOption >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetInvestigationApiV1InvestigationsInvestigationIdGetQueryResult = @@ -416,10 +552,115 @@ export type GetInvestigationApiV1InvestigationsInvestigationIdGetQueryResult = export type GetInvestigationApiV1InvestigationsInvestigationIdGetQueryError = HTTPValidationError; +export function useGetInvestigationApiV1InvestigationsInvestigationIdGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationApiV1InvestigationsInvestigationIdGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getInvestigationApiV1InvestigationsInvestigationIdGet + > + >, + TError, + Awaited< + ReturnType< + typeof getInvestigationApiV1InvestigationsInvestigationIdGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationApiV1InvestigationsInvestigationIdGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationApiV1InvestigationsInvestigationIdGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getInvestigationApiV1InvestigationsInvestigationIdGet + > + >, + TError, + Awaited< + ReturnType< + typeof getInvestigationApiV1InvestigationsInvestigationIdGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationApiV1InvestigationsInvestigationIdGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationApiV1InvestigationsInvestigationIdGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Investigation */ -export const useGetInvestigationApiV1InvestigationsInvestigationIdGet = < + +export function useGetInvestigationApiV1InvestigationsInvestigationIdGet< TData = Awaited< ReturnType >, @@ -439,38 +680,40 @@ export const useGetInvestigationApiV1InvestigationsInvestigationIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetInvestigationApiV1InvestigationsInvestigationIdGetQueryOptions( investigationId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Verify the integrity of an investigation's evidence hash chain. - -Validates that evidence items have not been tampered with by checking -content hashes and chain linkage. - -Args: - investigation_id: UUID of the investigation. - auth: Authentication context from API key/JWT. - db: Application database. - -Returns: - ChainVerificationResponse with verification result. - -Raises: - HTTPException: If investigation not found. + * + * Validates that evidence items have not been tampered with by checking + * content hashes and chain linkage. + * + * Args: + * investigation_id: UUID of the investigation. + * auth: Authentication context from API key/JWT. + * db: Application database. + * + * Returns: + * ChainVerificationResponse with verification result. + * + * Raises: + * HTTPException: If investigation not found. * @summary Verify Investigation */ export const verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet = ( @@ -536,7 +779,7 @@ export const getVerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGetQu return { queryKey, queryFn, - enabled: !!investigationId, + enabled: investigationId !== null && investigationId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -546,7 +789,7 @@ export const getVerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGetQu >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type VerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGetQueryResult = @@ -560,60 +803,172 @@ export type VerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGetQueryR export type VerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGetQueryError = HTTPValidationError; -/** - * @summary Verify Investigation - */ -export const useVerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet = - < - TData = Awaited< - ReturnType< - typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet +export function useVerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet< + TData = Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - investigationId: string, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getVerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGetQueryOptions( - investigationId, - options, - ); - - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; - - return query; - }; - -/** - * Get the status of an investigation. + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useVerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet< + TData = Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + >, + TError, + Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useVerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet< + TData = Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary Verify Investigation + */ + +export function useVerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet< + TData = Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof verifyInvestigationApiV1InvestigationsInvestigationIdVerifyGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getVerifyInvestigationApiV1InvestigationsInvestigationIdVerifyGetQueryOptions( + investigationId, + options, + ); -Queries the Temporal workflow for real-time progress. + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; -Args: - investigation_id: UUID of the investigation. - auth: Authentication context from API key/JWT. - temporal_client: Temporal client for durable execution. + return withQueryKey(query, queryOptions.queryKey); +} -Returns: - TemporalStatusResponse with current progress and state. +/** + * Get the status of an investigation. + * + * Queries the Temporal workflow for real-time progress. + * + * Args: + * investigation_id: UUID of the investigation. + * auth: Authentication context from API key/JWT. + * temporal_client: Temporal client for durable execution. + * + * Returns: + * TemporalStatusResponse with current progress and state. * @summary Get Investigation Status */ export const getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet = @@ -677,7 +1032,7 @@ export const getGetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGe return { queryKey, queryFn, - enabled: !!investigationId, + enabled: investigationId !== null && investigationId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -687,7 +1042,7 @@ export const getGetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGe >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGetQueryResult = @@ -701,61 +1056,173 @@ export type GetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGetQue export type GetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGetQueryError = HTTPValidationError; -/** - * @summary Get Investigation Status - */ -export const useGetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet = - < - TData = Awaited< - ReturnType< - typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet +export function useGetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet< + TData = Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - investigationId: string, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getGetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGetQueryOptions( - investigationId, - options, - ); + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet< + TData = Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + >, + TError, + Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet< + TData = Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary Get Investigation Status + */ - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; +export function useGetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet< + TData = Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getInvestigationStatusApiV1InvestigationsInvestigationIdStatusGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getGetInvestigationStatusApiV1InvestigationsInvestigationIdStatusGetQueryOptions( + investigationId, + options, + ); - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; - }; + return withQueryKey(query, queryOptions.queryKey); +} /** * Stream real-time updates via SSE. - -Returns a Server-Sent Events stream that pushes investigation -updates as they occur by polling the Temporal workflow. - -Args: - investigation_id: UUID of the investigation. - auth: Authentication context from API key/JWT. - temporal_client: Temporal client for durable execution. - -Returns: - EventSourceResponse with SSE stream. + * + * Returns a Server-Sent Events stream that pushes investigation + * updates as they occur by polling the Temporal workflow. + * + * Args: + * investigation_id: UUID of the investigation. + * auth: Authentication context from API key/JWT. + * temporal_client: Temporal client for durable execution. + * + * Returns: + * EventSourceResponse with SSE stream. * @summary Stream Updates */ export const streamUpdatesApiV1InvestigationsInvestigationIdStreamGet = ( @@ -821,7 +1288,7 @@ export const getStreamUpdatesApiV1InvestigationsInvestigationIdStreamGetQueryOpt return { queryKey, queryFn, - enabled: !!investigationId, + enabled: investigationId !== null && investigationId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -831,7 +1298,7 @@ export const getStreamUpdatesApiV1InvestigationsInvestigationIdStreamGetQueryOpt >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type StreamUpdatesApiV1InvestigationsInvestigationIdStreamGetQueryResult = @@ -840,15 +1307,120 @@ export type StreamUpdatesApiV1InvestigationsInvestigationIdStreamGetQueryResult ReturnType< typeof streamUpdatesApiV1InvestigationsInvestigationIdStreamGet > - > - >; -export type StreamUpdatesApiV1InvestigationsInvestigationIdStreamGetQueryError = - HTTPValidationError; - + > + >; +export type StreamUpdatesApiV1InvestigationsInvestigationIdStreamGetQueryError = + HTTPValidationError; + +export function useStreamUpdatesApiV1InvestigationsInvestigationIdStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof streamUpdatesApiV1InvestigationsInvestigationIdStreamGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof streamUpdatesApiV1InvestigationsInvestigationIdStreamGet + > + >, + TError, + Awaited< + ReturnType< + typeof streamUpdatesApiV1InvestigationsInvestigationIdStreamGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useStreamUpdatesApiV1InvestigationsInvestigationIdStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof streamUpdatesApiV1InvestigationsInvestigationIdStreamGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof streamUpdatesApiV1InvestigationsInvestigationIdStreamGet + > + >, + TError, + Awaited< + ReturnType< + typeof streamUpdatesApiV1InvestigationsInvestigationIdStreamGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useStreamUpdatesApiV1InvestigationsInvestigationIdStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof streamUpdatesApiV1InvestigationsInvestigationIdStreamGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Stream Updates */ -export const useStreamUpdatesApiV1InvestigationsInvestigationIdStreamGet = < + +export function useStreamUpdatesApiV1InvestigationsInvestigationIdStreamGet< TData = Awaited< ReturnType >, @@ -868,40 +1440,42 @@ export const useStreamUpdatesApiV1InvestigationsInvestigationIdStreamGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getStreamUpdatesApiV1InvestigationsInvestigationIdStreamGetQueryOptions( investigationId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Stream SSE events for an investigation. - -Events have an integer `seq` field for resumption. -Use `?seq=N` to resume from sequence N. - -Returns 410 Gone if the replay window has expired. - -Args: - request: FastAPI request object. - investigation_id: UUID of the investigation. - auth: Authentication context from API key/JWT. - db: Application database. - temporal_client: Temporal client for status polling. - last_event_id: Optional sequence number to resume from. - -Returns: - EventSourceResponse with SSE stream. + * + * Events have an integer `seq` field for resumption. + * Use `?seq=N` to resume from sequence N. + * + * Returns 410 Gone if the replay window has expired. + * + * Args: + * request: FastAPI request object. + * investigation_id: UUID of the investigation. + * auth: Authentication context from API key/JWT. + * db: Application database. + * temporal_client: Temporal client for status polling. + * last_event_id: Optional sequence number to resume from. + * + * Returns: + * EventSourceResponse with SSE stream. * @summary Stream Events */ export const streamEventsApiV1InvestigationsInvestigationIdEventsGet = ( @@ -976,7 +1550,7 @@ export const getStreamEventsApiV1InvestigationsInvestigationIdEventsGetQueryOpti return { queryKey, queryFn, - enabled: !!investigationId, + enabled: investigationId !== null && investigationId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -986,7 +1560,7 @@ export const getStreamEventsApiV1InvestigationsInvestigationIdEventsGetQueryOpti >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type StreamEventsApiV1InvestigationsInvestigationIdEventsGetQueryResult = @@ -998,10 +1572,120 @@ export type StreamEventsApiV1InvestigationsInvestigationIdEventsGetQueryResult = export type StreamEventsApiV1InvestigationsInvestigationIdEventsGetQueryError = HTTPValidationError; +export function useStreamEventsApiV1InvestigationsInvestigationIdEventsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + params: + | undefined + | StreamEventsApiV1InvestigationsInvestigationIdEventsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof streamEventsApiV1InvestigationsInvestigationIdEventsGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof streamEventsApiV1InvestigationsInvestigationIdEventsGet + > + >, + TError, + Awaited< + ReturnType< + typeof streamEventsApiV1InvestigationsInvestigationIdEventsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useStreamEventsApiV1InvestigationsInvestigationIdEventsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + params?: StreamEventsApiV1InvestigationsInvestigationIdEventsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof streamEventsApiV1InvestigationsInvestigationIdEventsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof streamEventsApiV1InvestigationsInvestigationIdEventsGet + > + >, + TError, + Awaited< + ReturnType< + typeof streamEventsApiV1InvestigationsInvestigationIdEventsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useStreamEventsApiV1InvestigationsInvestigationIdEventsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + params?: StreamEventsApiV1InvestigationsInvestigationIdEventsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof streamEventsApiV1InvestigationsInvestigationIdEventsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Stream Events */ -export const useStreamEventsApiV1InvestigationsInvestigationIdEventsGet = < + +export function useStreamEventsApiV1InvestigationsInvestigationIdEventsGet< TData = Awaited< ReturnType >, @@ -1022,7 +1706,10 @@ export const useStreamEventsApiV1InvestigationsInvestigationIdEventsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getStreamEventsApiV1InvestigationsInvestigationIdEventsGetQueryOptions( investigationId, @@ -1030,29 +1717,39 @@ export const useStreamEventsApiV1InvestigationsInvestigationIdEventsGet = < options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Confirm or reject the root cause an issue's investigation reached. * @summary Review Outcome */ export const reviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost = - (investigationId: string, outcomeReview: OutcomeReview) => { + ( + investigationId: string, + outcomeReview: OutcomeReview, + signal?: AbortSignal, + ) => { return customInstance({ url: `/api/v1/investigations/${investigationId}/outcome-review`, method: "POST", headers: { "Content-Type": "application/json" }, data: outcomeReview, + signal, }); }; +export const getReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationKey = + () => + [ + "reviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost", + ] as const; + export const getReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1062,7 +1759,7 @@ export const getReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost > >, TError, - { investigationId: string; data: OutcomeReview }, + ReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationVariables, TContext >; }): UseMutationOptions< @@ -1072,10 +1769,18 @@ export const getReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost > >, TError, - { investigationId: string; data: OutcomeReview }, + ReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -1083,7 +1788,7 @@ export const getReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost typeof reviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost > >, - { investigationId: string; data: OutcomeReview } + ReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationVariables > = (props) => { const { investigationId, data } = props ?? {}; @@ -1108,38 +1813,43 @@ export type ReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMuta OutcomeReview; export type ReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationError = HTTPValidationError; +export type ReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationVariables = + { investigationId: string; data: OutcomeReview }; /** * @summary Review Outcome */ export const useReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof reviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost - > - >, - TError, - { investigationId: string; data: OutcomeReview }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof reviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost + > + >, + TError, + ReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof reviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost > >, TError, - { investigationId: string; data: OutcomeReview }, + ReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Send a steer to a running investigation. @@ -1148,15 +1858,20 @@ export const useReviewOutcomeApiV1InvestigationsInvestigationIdOutcomeReviewPost export const createSteerApiV1InvestigationsInvestigationIdSteersPost = ( investigationId: string, steerCreate: SteerCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/investigations/${investigationId}/steers`, method: "POST", headers: { "Content-Type": "application/json" }, data: steerCreate, + signal, }); }; +export const getCreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationKey = + () => ["createSteerApiV1InvestigationsInvestigationIdSteersPost"] as const; + export const getCreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1166,7 +1881,7 @@ export const getCreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationO > >, TError, - { investigationId: string; data: SteerCreate }, + CreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationVariables, TContext >; }): UseMutationOptions< @@ -1174,10 +1889,18 @@ export const getCreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationO ReturnType >, TError, - { investigationId: string; data: SteerCreate }, + CreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getCreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -1185,7 +1908,7 @@ export const getCreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationO typeof createSteerApiV1InvestigationsInvestigationIdSteersPost > >, - { investigationId: string; data: SteerCreate } + CreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationVariables > = (props) => { const { investigationId, data } = props ?? {}; @@ -1208,6 +1931,8 @@ export type CreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationBody SteerCreate; export type CreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationError = HTTPValidationError; +export type CreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationVariables = + { investigationId: string; data: SteerCreate }; /** * @summary Create Steer @@ -1215,29 +1940,34 @@ export type CreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationError export const useCreateSteerApiV1InvestigationsInvestigationIdSteersPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { investigationId: string; data: SteerCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof createSteerApiV1InvestigationsInvestigationIdSteersPost + > + >, + TError, + CreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { investigationId: string; data: SteerCreate }, + CreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getCreateSteerApiV1InvestigationsInvestigationIdSteersPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * List an investigation's steers with their status and outcome. @@ -1302,7 +2032,7 @@ export const getListSteersApiV1InvestigationsInvestigationIdSteersGetQueryOption return { queryKey, queryFn, - enabled: !!investigationId, + enabled: investigationId !== null && investigationId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -1310,7 +2040,7 @@ export const getListSteersApiV1InvestigationsInvestigationIdSteersGetQueryOption >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListSteersApiV1InvestigationsInvestigationIdSteersGetQueryResult = @@ -1322,10 +2052,115 @@ export type ListSteersApiV1InvestigationsInvestigationIdSteersGetQueryResult = export type ListSteersApiV1InvestigationsInvestigationIdSteersGetQueryError = HTTPValidationError; +export function useListSteersApiV1InvestigationsInvestigationIdSteersGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listSteersApiV1InvestigationsInvestigationIdSteersGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listSteersApiV1InvestigationsInvestigationIdSteersGet + > + >, + TError, + Awaited< + ReturnType< + typeof listSteersApiV1InvestigationsInvestigationIdSteersGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListSteersApiV1InvestigationsInvestigationIdSteersGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listSteersApiV1InvestigationsInvestigationIdSteersGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listSteersApiV1InvestigationsInvestigationIdSteersGet + > + >, + TError, + Awaited< + ReturnType< + typeof listSteersApiV1InvestigationsInvestigationIdSteersGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListSteersApiV1InvestigationsInvestigationIdSteersGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + investigationId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listSteersApiV1InvestigationsInvestigationIdSteersGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Steers */ -export const useListSteersApiV1InvestigationsInvestigationIdSteersGet = < + +export function useListSteersApiV1InvestigationsInvestigationIdSteersGet< TData = Awaited< ReturnType >, @@ -1345,18 +2180,20 @@ export const useListSteersApiV1InvestigationsInvestigationIdSteersGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListSteersApiV1InvestigationsInvestigationIdSteersGetQueryOptions( investigationId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/issue-threads/issue-threads.ts b/frontend/app/src/lib/api/generated/issue-threads/issue-threads.ts index 66574df83..d2b12ece1 100644 --- a/frontend/app/src/lib/api/generated/issue-threads/issue-threads.ts +++ b/frontend/app/src/lib/api/generated/issue-threads/issue-threads.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, ListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetParams, @@ -29,8 +35,27 @@ import type { ThreadListResponse, ThreadResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List the shared thread and the caller's own scratch threads. * @summary List Threads @@ -80,13 +105,13 @@ export const getListThreadsApiV1IssuesIssueIdThreadsGetQueryOptions = < return { queryKey, queryFn, - enabled: !!issueId, + enabled: issueId !== null && issueId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListThreadsApiV1IssuesIssueIdThreadsGetQueryResult = NonNullable< @@ -95,10 +120,81 @@ export type ListThreadsApiV1IssuesIssueIdThreadsGetQueryResult = NonNullable< export type ListThreadsApiV1IssuesIssueIdThreadsGetQueryError = HTTPValidationError; +export function useListThreadsApiV1IssuesIssueIdThreadsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + issueId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListThreadsApiV1IssuesIssueIdThreadsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + issueId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListThreadsApiV1IssuesIssueIdThreadsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + issueId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Threads */ -export const useListThreadsApiV1IssuesIssueIdThreadsGet = < + +export function useListThreadsApiV1IssuesIssueIdThreadsGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -112,20 +208,22 @@ export const useListThreadsApiV1IssuesIssueIdThreadsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListThreadsApiV1IssuesIssueIdThreadsGetQueryOptions( issueId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a private scratch thread on the issue. @@ -134,15 +232,20 @@ export const useListThreadsApiV1IssuesIssueIdThreadsGet = < export const createScratchThreadApiV1IssuesIssueIdThreadsPost = ( issueId: string, scratchThreadCreate: ScratchThreadCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/issues/${issueId}/threads`, method: "POST", headers: { "Content-Type": "application/json" }, data: scratchThreadCreate, + signal, }); }; +export const getCreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationKey = + () => ["createScratchThreadApiV1IssuesIssueIdThreadsPost"] as const; + export const getCreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -150,7 +253,7 @@ export const getCreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationOptions ReturnType >, TError, - { issueId: string; data: ScratchThreadCreate }, + CreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationVariables, TContext >; }): UseMutationOptions< @@ -158,16 +261,24 @@ export const getCreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationOptions ReturnType >, TError, - { issueId: string; data: ScratchThreadCreate }, + CreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getCreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { issueId: string; data: ScratchThreadCreate } + CreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationVariables > = (props) => { const { issueId, data } = props ?? {}; @@ -185,6 +296,8 @@ export type CreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationBody = ScratchThreadCreate; export type CreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationError = HTTPValidationError; +export type CreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationVariables = + { issueId: string; data: ScratchThreadCreate }; /** * @summary Create Scratch Thread @@ -192,25 +305,28 @@ export type CreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationError = export const useCreateScratchThreadApiV1IssuesIssueIdThreadsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { issueId: string; data: ScratchThreadCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + CreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { issueId: string; data: ScratchThreadCreate }, + CreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationVariables, TContext > => { - const mutationOptions = - getCreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateScratchThreadApiV1IssuesIssueIdThreadsPostMutationOptions(options), + queryClient, + ); }; /** * Rename the caller's own scratch thread. @@ -220,15 +336,20 @@ export const renameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatch = ( issueId: string, threadId: string, scratchThreadCreate: ScratchThreadCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/issues/${issueId}/threads/${threadId}`, method: "PATCH", headers: { "Content-Type": "application/json" }, data: scratchThreadCreate, + signal, }); }; +export const getRenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationKey = + () => ["renameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatch"] as const; + export const getRenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -238,7 +359,7 @@ export const getRenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutatio > >, TError, - { issueId: string; threadId: string; data: ScratchThreadCreate }, + RenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationVariables, TContext >; }): UseMutationOptions< @@ -248,10 +369,18 @@ export const getRenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutatio > >, TError, - { issueId: string; threadId: string; data: ScratchThreadCreate }, + RenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getRenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -259,7 +388,7 @@ export const getRenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutatio typeof renameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatch > >, - { issueId: string; threadId: string; data: ScratchThreadCreate } + RenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationVariables > = (props) => { const { issueId, threadId, data } = props ?? {}; @@ -285,6 +414,8 @@ export type RenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationBod ScratchThreadCreate; export type RenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationError = HTTPValidationError; +export type RenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationVariables = + { issueId: string; threadId: string; data: ScratchThreadCreate }; /** * @summary Rename Scratch Thread @@ -292,31 +423,34 @@ export type RenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationErr export const useRenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatch = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof renameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatch - > - >, - TError, - { issueId: string; threadId: string; data: ScratchThreadCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof renameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatch + > + >, + TError, + RenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { issueId: string; threadId: string; data: ScratchThreadCreate }, + RenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getRenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatchMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Delete the caller's own scratch thread. @@ -325,13 +459,18 @@ export const useRenameScratchThreadApiV1IssuesIssueIdThreadsThreadIdPatch = < export const deleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDelete = ( issueId: string, threadId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/issues/${issueId}/threads/${threadId}`, method: "DELETE", + signal, }); }; +export const getDeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationKey = + () => ["deleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDelete"] as const; + export const getDeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -341,7 +480,7 @@ export const getDeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutati > >, TError, - { issueId: string; threadId: string }, + DeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -351,10 +490,18 @@ export const getDeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutati > >, TError, - { issueId: string; threadId: string }, + DeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -362,7 +509,7 @@ export const getDeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutati typeof deleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDelete > >, - { issueId: string; threadId: string } + DeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationVariables > = (props) => { const { issueId, threadId } = props ?? {}; @@ -386,6 +533,8 @@ export type DeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationRe export type DeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationError = HTTPValidationError; +export type DeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationVariables = + { issueId: string; threadId: string }; /** * @summary Delete Scratch Thread @@ -393,33 +542,36 @@ export type DeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationEr export const useDeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof deleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDelete - > - >, - TError, - { issueId: string; threadId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof deleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDelete + > + >, + TError, + DeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType< typeof deleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDelete > >, TError, - { issueId: string; threadId: string }, + DeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDeleteScratchThreadApiV1IssuesIssueIdThreadsThreadIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * List a thread's messages after a seq, oldest first. @@ -504,7 +656,11 @@ export const getListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetQueryOpt return { queryKey, queryFn, - enabled: !!(issueId && threadId), + enabled: + issueId !== null && + issueId !== undefined && + threadId !== null && + threadId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -514,7 +670,7 @@ export const getListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetQueryOpt >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetQueryResult = @@ -528,10 +684,123 @@ export type ListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetQueryResult export type ListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetQueryError = HTTPValidationError; +export function useListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + params: + | undefined + | ListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet + > + >, + TError, + Awaited< + ReturnType< + typeof listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + params?: ListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet + > + >, + TError, + Awaited< + ReturnType< + typeof listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + params?: ListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Messages */ -export const useListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet = < + +export function useListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet< TData = Awaited< ReturnType >, @@ -553,7 +822,10 @@ export const useListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetQueryOptions( issueId, @@ -562,35 +834,39 @@ export const useListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGet = < options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Post a comment, optionally asking the agent to answer it. - -Asking the agent needs the write scope, and a person may have at most three -agent turns queued or streaming at once. + * + * Asking the agent needs the write scope, and a person may have at most three + * agent turns queued or streaming at once. * @summary Post Message */ export const postMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPost = ( issueId: string, threadId: string, messageCreate: MessageCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/issues/${issueId}/threads/${threadId}/messages`, method: "POST", headers: { "Content-Type": "application/json" }, data: messageCreate, + signal, }); }; +export const getPostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationKey = + () => ["postMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPost"] as const; + export const getPostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -600,7 +876,7 @@ export const getPostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutation > >, TError, - { issueId: string; threadId: string; data: MessageCreate }, + PostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationVariables, TContext >; }): UseMutationOptions< @@ -610,10 +886,18 @@ export const getPostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutation > >, TError, - { issueId: string; threadId: string; data: MessageCreate }, + PostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getPostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -621,7 +905,7 @@ export const getPostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutation typeof postMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPost > >, - { issueId: string; threadId: string; data: MessageCreate } + PostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationVariables > = (props) => { const { issueId, threadId, data } = props ?? {}; @@ -647,6 +931,8 @@ export type PostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationBody MessageCreate; export type PostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationError = HTTPValidationError; +export type PostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationVariables = + { issueId: string; threadId: string; data: MessageCreate }; /** * @summary Post Message @@ -654,31 +940,34 @@ export type PostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationErro export const usePostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof postMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPost - > - >, - TError, - { issueId: string; threadId: string; data: MessageCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof postMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPost + > + >, + TError, + PostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { issueId: string; threadId: string; data: MessageCreate }, + PostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getPostMessageApiV1IssuesIssueIdThreadsThreadIdMessagesPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Edit the caller's own comment. Editing never re-runs the agent. @@ -690,15 +979,23 @@ export const editMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatch threadId: string, messageId: string, messageUpdate: MessageUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/issues/${issueId}/threads/${threadId}/messages/${messageId}`, method: "PATCH", headers: { "Content-Type": "application/json" }, data: messageUpdate, + signal, }); }; +export const getEditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationKey = + () => + [ + "editMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatch", + ] as const; + export const getEditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -708,12 +1005,7 @@ export const getEditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPat > >, TError, - { - issueId: string; - threadId: string; - messageId: string; - data: MessageUpdate; - }, + EditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationVariables, TContext >; }): UseMutationOptions< @@ -723,15 +1015,18 @@ export const getEditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPat > >, TError, - { - issueId: string; - threadId: string; - messageId: string; - data: MessageUpdate; - }, + EditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getEditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -739,12 +1034,7 @@ export const getEditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPat typeof editMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatch > >, - { - issueId: string; - threadId: string; - messageId: string; - data: MessageUpdate; - } + EditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationVariables > = (props) => { const { issueId, threadId, messageId, data } = props ?? {}; @@ -771,61 +1061,68 @@ export type EditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMu MessageUpdate; export type EditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationError = HTTPValidationError; +export type EditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationVariables = + { issueId: string; threadId: string; messageId: string; data: MessageUpdate }; /** * @summary Edit Message */ export const useEditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatch = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof editMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatch - > - >, - TError, - { - issueId: string; - threadId: string; - messageId: string; - data: MessageUpdate; - }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof editMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatch + > + >, + TError, + EditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof editMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatch > >, TError, - { - issueId: string; - threadId: string; - messageId: string; - data: MessageUpdate; - }, + EditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getEditMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdPatchMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Delete a comment: its author or an admin. * @summary Delete Message */ export const deleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDelete = - (issueId: string, threadId: string, messageId: string) => { + ( + issueId: string, + threadId: string, + messageId: string, + signal?: AbortSignal, + ) => { return customInstance({ url: `/api/v1/issues/${issueId}/threads/${threadId}/messages/${messageId}`, method: "DELETE", + signal, }); }; +export const getDeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationKey = + () => + [ + "deleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDelete", + ] as const; + export const getDeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -835,7 +1132,7 @@ export const getDeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdD > >, TError, - { issueId: string; threadId: string; messageId: string }, + DeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -845,10 +1142,18 @@ export const getDeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdD > >, TError, - { issueId: string; threadId: string; messageId: string }, + DeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -856,7 +1161,7 @@ export const getDeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdD typeof deleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDelete > >, - { issueId: string; threadId: string; messageId: string } + DeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationVariables > = (props) => { const { issueId, threadId, messageId } = props ?? {}; @@ -881,51 +1186,68 @@ export type DeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDelet export type DeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationError = HTTPValidationError; +export type DeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationVariables = + { issueId: string; threadId: string; messageId: string }; /** * @summary Delete Message */ export const useDeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDelete = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof deleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDelete - > - >, - TError, - { issueId: string; threadId: string; messageId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof deleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDelete + > + >, + TError, + DeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof deleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDelete > >, TError, - { issueId: string; threadId: string; messageId: string }, + DeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDeleteMessageApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Cancel a queued or streaming agent answer: the person who asked, or an admin. * @summary Cancel Answer */ export const cancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPost = - (issueId: string, threadId: string, messageId: string) => { + ( + issueId: string, + threadId: string, + messageId: string, + signal?: AbortSignal, + ) => { return customInstance({ url: `/api/v1/issues/${issueId}/threads/${threadId}/messages/${messageId}/cancel`, method: "POST", + signal, }); }; +export const getCancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationKey = + () => + [ + "cancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPost", + ] as const; + export const getCancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -935,7 +1257,7 @@ export const getCancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCa > >, TError, - { issueId: string; threadId: string; messageId: string }, + CancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationVariables, TContext >; }): UseMutationOptions< @@ -945,10 +1267,18 @@ export const getCancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCa > >, TError, - { issueId: string; threadId: string; messageId: string }, + CancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getCancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -956,7 +1286,7 @@ export const getCancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCa typeof cancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPost > >, - { issueId: string; threadId: string; messageId: string } + CancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationVariables > = (props) => { const { issueId, threadId, messageId } = props ?? {}; @@ -981,54 +1311,66 @@ export type CancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancel export type CancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationError = HTTPValidationError; +export type CancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationVariables = + { issueId: string; threadId: string; messageId: string }; /** * @summary Cancel Answer */ export const useCancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof cancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPost - > - >, - TError, - { issueId: string; threadId: string; messageId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof cancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPost + > + >, + TError, + CancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof cancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPost > >, TError, - { issueId: string; threadId: string; messageId: string }, + CancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getCancelAnswerApiV1IssuesIssueIdThreadsThreadIdMessagesMessageIdCancelPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Ask the agent to draft an investigation brief from this thread. - -The draft streams into a new ``brief`` message; people edit it before it -starts an investigation. + * + * The draft streams into a new ``brief`` message; people edit it before it + * starts an investigation. * @summary Request Brief Draft */ export const requestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPost = - (issueId: string, threadId: string) => { + (issueId: string, threadId: string, signal?: AbortSignal) => { return customInstance({ url: `/api/v1/issues/${issueId}/threads/${threadId}/brief-drafts`, method: "POST", + signal, }); }; +export const getRequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationKey = + () => + [ + "requestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPost", + ] as const; + export const getRequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1038,7 +1380,7 @@ export const getRequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPos > >, TError, - { issueId: string; threadId: string }, + RequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationVariables, TContext >; }): UseMutationOptions< @@ -1048,10 +1390,18 @@ export const getRequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPos > >, TError, - { issueId: string; threadId: string }, + RequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getRequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -1059,7 +1409,7 @@ export const getRequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPos typeof requestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPost > >, - { issueId: string; threadId: string } + RequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationVariables > = (props) => { const { issueId, threadId } = props ?? {}; @@ -1083,61 +1433,72 @@ export type RequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMut export type RequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationError = HTTPValidationError; +export type RequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationVariables = + { issueId: string; threadId: string }; /** * @summary Request Brief Draft */ export const useRequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof requestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPost - > - >, - TError, - { issueId: string; threadId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof requestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPost + > + >, + TError, + RequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof requestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPost > >, TError, - { issueId: string; threadId: string }, + RequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getRequestBriefDraftApiV1IssuesIssueIdThreadsThreadIdBriefDraftsPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Copy selected scratch-chat messages into one message in the shared thread. - -Only the scratch chat's owner can publish, and it needs the write scope. The -query snapshots behind the selected answers are copied with them, so deleting -the scratch chat later leaves the published message intact. Deleted messages -are skipped. + * + * Only the scratch chat's owner can publish, and it needs the write scope. The + * query snapshots behind the selected answers are copied with them, so deleting + * the scratch chat later leaves the published message intact. Deleted messages + * are skipped. * @summary Publish From Scratch */ export const publishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPost = ( issueId: string, threadId: string, publishRequest: PublishRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/issues/${issueId}/threads/${threadId}/publish`, method: "POST", headers: { "Content-Type": "application/json" }, data: publishRequest, + signal, }); }; +export const getPublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationKey = + () => + ["publishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPost"] as const; + export const getPublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1147,7 +1508,7 @@ export const getPublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMu > >, TError, - { issueId: string; threadId: string; data: PublishRequest }, + PublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationVariables, TContext >; }): UseMutationOptions< @@ -1157,10 +1518,18 @@ export const getPublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMu > >, TError, - { issueId: string; threadId: string; data: PublishRequest }, + PublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getPublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -1168,7 +1537,7 @@ export const getPublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMu typeof publishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPost > >, - { issueId: string; threadId: string; data: PublishRequest } + PublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationVariables > = (props) => { const { issueId, threadId, data } = props ?? {}; @@ -1194,38 +1563,43 @@ export type PublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutati PublishRequest; export type PublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationError = HTTPValidationError; +export type PublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationVariables = + { issueId: string; threadId: string; data: PublishRequest }; /** * @summary Publish From Scratch */ export const usePublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof publishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPost - > - >, - TError, - { issueId: string; threadId: string; data: PublishRequest }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof publishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPost + > + >, + TError, + PublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof publishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPost > >, TError, - { issueId: string; threadId: string; data: PublishRequest }, + PublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getPublishFromScratchApiV1IssuesIssueIdThreadsThreadIdPublishPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Return a query snapshot: the SQL the agent ran and the rows it saw. @@ -1305,7 +1679,13 @@ export const getGetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResul return { queryKey, queryFn, - enabled: !!(issueId && threadId && resultId), + enabled: + issueId !== null && + issueId !== undefined && + threadId !== null && + threadId !== undefined && + resultId !== null && + resultId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -1315,7 +1695,7 @@ export const getGetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResul >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGetQueryResult = @@ -1329,56 +1709,174 @@ export type GetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdG export type GetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGetQueryError = HTTPValidationError; -/** - * @summary Get Query Result - */ -export const useGetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet = - < - TData = Awaited< - ReturnType< - typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet +export function useGetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet< + TData = Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + resultId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - issueId: string, - threadId: string, - resultId: string, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getGetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGetQueryOptions( - issueId, - threadId, - resultId, - options, - ); + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet< + TData = Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + resultId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + >, + TError, + Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet< + TData = Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + resultId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary Get Query Result + */ - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; +export function useGetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet< + TData = Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + resultId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof getQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getGetQueryResultApiV1IssuesIssueIdThreadsThreadIdQueryResultsResultIdGetQueryOptions( + issueId, + threadId, + resultId, + options, + ); - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; - }; + return withQueryKey(query, queryOptions.queryKey); +} /** * Stream new and changed messages over Server-Sent Events. - -Resume with ?after= or the Last-Event-ID header. + * + * Resume with ?after= or the Last-Event-ID header. * @summary Stream Thread */ export const streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet = ( @@ -1458,7 +1956,11 @@ export const getStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetQueryOptio return { queryKey, queryFn, - enabled: !!(issueId && threadId), + enabled: + issueId !== null && + issueId !== undefined && + threadId !== null && + threadId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -1468,7 +1970,7 @@ export const getStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetQueryOptio >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type StreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetQueryResult = @@ -1480,10 +1982,123 @@ export type StreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetQueryResult = export type StreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetQueryError = HTTPValidationError; +export function useStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + params: + | undefined + | StreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet + > + >, + TError, + Awaited< + ReturnType< + typeof streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + params?: StreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet + > + >, + TError, + Awaited< + ReturnType< + typeof streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + threadId: string, + params?: StreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Stream Thread */ -export const useStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet = < + +export function useStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet< TData = Awaited< ReturnType >, @@ -1505,7 +2120,10 @@ export const useStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetQueryOptions( issueId, @@ -1514,11 +2132,10 @@ export const useStreamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGet = < options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/issues/issues.ts b/frontend/app/src/lib/api/generated/issues/issues.ts index 224ba5b62..58d51d977 100644 --- a/frontend/app/src/lib/api/generated/issues/issues.ts +++ b/frontend/app/src/lib/api/generated/issues/issues.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, InvestigationRunCreate, @@ -30,13 +36,32 @@ import type { StreamIssueEventsApiV1IssuesIssueIdStreamGetParams, WatcherListResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List issues with filters and cursor-based pagination. - -Uses cursor-based pagination with base64(updated_at|id) format. -Returns issues ordered by updated_at descending. + * + * Uses cursor-based pagination with base64(updated_at|id) format. + * Returns issues ordered by updated_at descending. * @summary List Issues */ export const listIssuesApiV1IssuesGet = ( @@ -85,7 +110,7 @@ export const getListIssuesApiV1IssuesGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListIssuesApiV1IssuesGetQueryResult = NonNullable< @@ -93,10 +118,81 @@ export type ListIssuesApiV1IssuesGetQueryResult = NonNullable< >; export type ListIssuesApiV1IssuesGetQueryError = HTTPValidationError; +export function useListIssuesApiV1IssuesGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: undefined | ListIssuesApiV1IssuesGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListIssuesApiV1IssuesGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params?: ListIssuesApiV1IssuesGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListIssuesApiV1IssuesGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params?: ListIssuesApiV1IssuesGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Issues */ -export const useListIssuesApiV1IssuesGet = < + +export function useListIssuesApiV1IssuesGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -110,33 +206,42 @@ export const useListIssuesApiV1IssuesGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListIssuesApiV1IssuesGetQueryOptions(params, options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a new issue. - -Issues are created in OPEN status. Number is auto-assigned per-tenant. + * + * Issues are created in OPEN status. Number is auto-assigned per-tenant. * @summary Create Issue */ -export const createIssueApiV1IssuesPost = (issueCreate: IssueCreate) => { +export const createIssueApiV1IssuesPost = ( + issueCreate: IssueCreate, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/issues`, method: "POST", headers: { "Content-Type": "application/json" }, data: issueCreate, + signal, }); }; +export const getCreateIssueApiV1IssuesPostMutationKey = () => + ["createIssueApiV1IssuesPost"] as const; + export const getCreateIssueApiV1IssuesPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -144,20 +249,27 @@ export const getCreateIssueApiV1IssuesPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: IssueCreate }, + CreateIssueApiV1IssuesPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: IssueCreate }, + CreateIssueApiV1IssuesPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getCreateIssueApiV1IssuesPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: IssueCreate } + CreateIssueApiV1IssuesPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -172,6 +284,7 @@ export type CreateIssueApiV1IssuesPostMutationResult = NonNullable< >; export type CreateIssueApiV1IssuesPostMutationBody = IssueCreate; export type CreateIssueApiV1IssuesPostMutationError = HTTPValidationError; +export type CreateIssueApiV1IssuesPostMutationVariables = { data: IssueCreate }; /** * @summary Create Issue @@ -179,27 +292,31 @@ export type CreateIssueApiV1IssuesPostMutationError = HTTPValidationError; export const useCreateIssueApiV1IssuesPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: IssueCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreateIssueApiV1IssuesPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: IssueCreate }, + CreateIssueApiV1IssuesPostMutationVariables, TContext > => { - const mutationOptions = getCreateIssueApiV1IssuesPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateIssueApiV1IssuesPostMutationOptions(options), + queryClient, + ); }; /** * Get issue by ID. - -Returns the full issue if user has access, 404 if not found. + * + * Returns the full issue if user has access, 404 if not found. * @summary Get Issue */ export const getIssueApiV1IssuesIssueIdGet = ( @@ -244,13 +361,13 @@ export const getGetIssueApiV1IssuesIssueIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!issueId, + enabled: issueId !== null && issueId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetIssueApiV1IssuesIssueIdGetQueryResult = NonNullable< @@ -258,10 +375,81 @@ export type GetIssueApiV1IssuesIssueIdGetQueryResult = NonNullable< >; export type GetIssueApiV1IssuesIssueIdGetQueryError = HTTPValidationError; +export function useGetIssueApiV1IssuesIssueIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + issueId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetIssueApiV1IssuesIssueIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + issueId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetIssueApiV1IssuesIssueIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + issueId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Issue */ -export const useGetIssueApiV1IssuesIssueIdGet = < + +export function useGetIssueApiV1IssuesIssueIdGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -275,42 +463,49 @@ export const useGetIssueApiV1IssuesIssueIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetIssueApiV1IssuesIssueIdGetQueryOptions( issueId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Update issue fields. - -A field sent as null clears it; a field left out is unchanged. A status -change is validated against the issue as it will be after this PATCH, so -status and assignee (or resolution_note) can be sent together. Every -changed field is recorded as an issue event. + * + * A field sent as null clears it; a field left out is unchanged. A status + * change is validated against the issue as it will be after this PATCH, so + * status and assignee (or resolution_note) can be sent together. Every + * changed field is recorded as an issue event. * @summary Update Issue */ export const updateIssueApiV1IssuesIssueIdPatch = ( issueId: string, issueUpdate: IssueUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/issues/${issueId}`, method: "PATCH", headers: { "Content-Type": "application/json" }, data: issueUpdate, + signal, }); }; +export const getUpdateIssueApiV1IssuesIssueIdPatchMutationKey = () => + ["updateIssueApiV1IssuesIssueIdPatch"] as const; + export const getUpdateIssueApiV1IssuesIssueIdPatchMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -318,20 +513,27 @@ export const getUpdateIssueApiV1IssuesIssueIdPatchMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { issueId: string; data: IssueUpdate }, + UpdateIssueApiV1IssuesIssueIdPatchMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { issueId: string; data: IssueUpdate }, + UpdateIssueApiV1IssuesIssueIdPatchMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getUpdateIssueApiV1IssuesIssueIdPatchMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { issueId: string; data: IssueUpdate } + UpdateIssueApiV1IssuesIssueIdPatchMutationVariables > = (props) => { const { issueId, data } = props ?? {}; @@ -347,6 +549,10 @@ export type UpdateIssueApiV1IssuesIssueIdPatchMutationResult = NonNullable< export type UpdateIssueApiV1IssuesIssueIdPatchMutationBody = IssueUpdate; export type UpdateIssueApiV1IssuesIssueIdPatchMutationError = HTTPValidationError; +export type UpdateIssueApiV1IssuesIssueIdPatchMutationVariables = { + issueId: string; + data: IssueUpdate; +}; /** * @summary Update Issue @@ -354,23 +560,26 @@ export type UpdateIssueApiV1IssuesIssueIdPatchMutationError = export const useUpdateIssueApiV1IssuesIssueIdPatch = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { issueId: string; data: IssueUpdate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + UpdateIssueApiV1IssuesIssueIdPatchMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { issueId: string; data: IssueUpdate }, + UpdateIssueApiV1IssuesIssueIdPatchMutationVariables, TContext > => { - const mutationOptions = - getUpdateIssueApiV1IssuesIssueIdPatchMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getUpdateIssueApiV1IssuesIssueIdPatchMutationOptions(options), + queryClient, + ); }; /** * List watchers for an issue. @@ -426,13 +635,13 @@ export const getListIssueWatchersApiV1IssuesIssueIdWatchersGetQueryOptions = < return { queryKey, queryFn, - enabled: !!issueId, + enabled: issueId !== null && issueId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListIssueWatchersApiV1IssuesIssueIdWatchersGetQueryResult = @@ -442,10 +651,101 @@ export type ListIssueWatchersApiV1IssuesIssueIdWatchersGetQueryResult = export type ListIssueWatchersApiV1IssuesIssueIdWatchersGetQueryError = HTTPValidationError; +export function useListIssueWatchersApiV1IssuesIssueIdWatchersGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListIssueWatchersApiV1IssuesIssueIdWatchersGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListIssueWatchersApiV1IssuesIssueIdWatchersGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Issue Watchers */ -export const useListIssueWatchersApiV1IssuesIssueIdWatchersGet = < + +export function useListIssueWatchersApiV1IssuesIssueIdWatchersGet< TData = Awaited< ReturnType >, @@ -463,36 +763,45 @@ export const useListIssueWatchersApiV1IssuesIssueIdWatchersGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListIssueWatchersApiV1IssuesIssueIdWatchersGetQueryOptions( issueId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Subscribe the current user as a watcher. - -Idempotent - returns 204 even if already watching. -Requires user identity (JWT auth or user-scoped API key). + * + * Idempotent - returns 204 even if already watching. + * Requires user identity (JWT auth or user-scoped API key). * @summary Add Issue Watcher */ -export const addIssueWatcherApiV1IssuesIssueIdWatchPost = (issueId: string) => { +export const addIssueWatcherApiV1IssuesIssueIdWatchPost = ( + issueId: string, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/issues/${issueId}/watch`, method: "POST", + signal, }); }; +export const getAddIssueWatcherApiV1IssuesIssueIdWatchPostMutationKey = () => + ["addIssueWatcherApiV1IssuesIssueIdWatchPost"] as const; + export const getAddIssueWatcherApiV1IssuesIssueIdWatchPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -500,20 +809,28 @@ export const getAddIssueWatcherApiV1IssuesIssueIdWatchPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { issueId: string }, + AddIssueWatcherApiV1IssuesIssueIdWatchPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { issueId: string }, + AddIssueWatcherApiV1IssuesIssueIdWatchPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getAddIssueWatcherApiV1IssuesIssueIdWatchPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { issueId: string } + AddIssueWatcherApiV1IssuesIssueIdWatchPostMutationVariables > = (props) => { const { issueId } = props ?? {}; @@ -530,6 +847,9 @@ export type AddIssueWatcherApiV1IssuesIssueIdWatchPostMutationResult = export type AddIssueWatcherApiV1IssuesIssueIdWatchPostMutationError = HTTPValidationError; +export type AddIssueWatcherApiV1IssuesIssueIdWatchPostMutationVariables = { + issueId: string; +}; /** * @summary Add Issue Watcher @@ -537,40 +857,48 @@ export type AddIssueWatcherApiV1IssuesIssueIdWatchPostMutationError = export const useAddIssueWatcherApiV1IssuesIssueIdWatchPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { issueId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + AddIssueWatcherApiV1IssuesIssueIdWatchPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { issueId: string }, + AddIssueWatcherApiV1IssuesIssueIdWatchPostMutationVariables, TContext > => { - const mutationOptions = - getAddIssueWatcherApiV1IssuesIssueIdWatchPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getAddIssueWatcherApiV1IssuesIssueIdWatchPostMutationOptions(options), + queryClient, + ); }; /** * Unsubscribe the current user as a watcher. - -Idempotent - returns 204 even if not watching. -Requires user identity (JWT auth or user-scoped API key). + * + * Idempotent - returns 204 even if not watching. + * Requires user identity (JWT auth or user-scoped API key). * @summary Remove Issue Watcher */ export const removeIssueWatcherApiV1IssuesIssueIdWatchDelete = ( issueId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/issues/${issueId}/watch`, method: "DELETE", + signal, }); }; +export const getRemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationKey = + () => ["removeIssueWatcherApiV1IssuesIssueIdWatchDelete"] as const; + export const getRemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -578,22 +906,30 @@ export const getRemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationOptions = ReturnType >, TError, - { issueId: string }, + RemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { issueId: string }, + RemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getRemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { issueId: string } + RemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationVariables > = (props) => { const { issueId } = props ?? {}; @@ -610,6 +946,9 @@ export type RemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationResult = export type RemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationError = HTTPValidationError; +export type RemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationVariables = { + issueId: string; +}; /** * @summary Remove Issue Watcher @@ -617,23 +956,28 @@ export type RemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationError = export const useRemoveIssueWatcherApiV1IssuesIssueIdWatchDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { issueId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + RemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { issueId: string }, + RemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationVariables, TContext > => { - const mutationOptions = - getRemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getRemoveIssueWatcherApiV1IssuesIssueIdWatchDeleteMutationOptions(options), + queryClient, + ); }; /** * List investigation runs for an issue. @@ -702,7 +1046,7 @@ export const getListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGetQuery return { queryKey, queryFn, - enabled: !!issueId, + enabled: issueId !== null && issueId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -712,7 +1056,7 @@ export const getListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGetQuery >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGetQueryResult = @@ -726,10 +1070,121 @@ export type ListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGetQueryResu export type ListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGetQueryError = HTTPValidationError; +export function useListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet< + TData = Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + >, + TError = HTTPValidationError, +>( + issueId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + >, + TError, + Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet< + TData = Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + >, + TError = HTTPValidationError, +>( + issueId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + >, + TError, + Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet< + TData = Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + >, + TError = HTTPValidationError, +>( + issueId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Investigation Runs */ -export const useListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet = < + +export function useListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet< TData = Awaited< ReturnType< typeof listInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet @@ -751,45 +1206,52 @@ export const useListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListInvestigationRunsApiV1IssuesIssueIdInvestigationRunsGetQueryOptions( issueId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Start an investigation from an issue with an editable brief. - -The manager and its subagents start from the brief: its symptom is what they -investigate, its findings are facts, its exclusions are not proposed again and -its leads are tested first. The brief's scope tables join the issue's dataset -as reference tables. The run appears in the issue's shared thread. - -Requires user identity (JWT auth or user-scoped API key). + * + * The manager and its subagents start from the brief: its symptom is what they + * investigate, its findings are facts, its exclusions are not proposed again and + * its leads are tested first. The brief's scope tables join the issue's dataset + * as reference tables. The run appears in the issue's shared thread. + * + * Requires user identity (JWT auth or user-scoped API key). * @summary Spawn Investigation */ export const spawnInvestigationApiV1IssuesIssueIdInvestigationRunsPost = ( issueId: string, investigationRunCreate: InvestigationRunCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/issues/${issueId}/investigation-runs`, method: "POST", headers: { "Content-Type": "application/json" }, data: investigationRunCreate, + signal, }); }; +export const getSpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationKey = + () => ["spawnInvestigationApiV1IssuesIssueIdInvestigationRunsPost"] as const; + export const getSpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -799,7 +1261,7 @@ export const getSpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutatio > >, TError, - { issueId: string; data: InvestigationRunCreate }, + SpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationVariables, TContext >; }): UseMutationOptions< @@ -809,10 +1271,18 @@ export const getSpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutatio > >, TError, - { issueId: string; data: InvestigationRunCreate }, + SpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getSpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -820,7 +1290,7 @@ export const getSpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutatio typeof spawnInvestigationApiV1IssuesIssueIdInvestigationRunsPost > >, - { issueId: string; data: InvestigationRunCreate } + SpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationVariables > = (props) => { const { issueId, data } = props ?? {}; @@ -845,6 +1315,8 @@ export type SpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationBod InvestigationRunCreate; export type SpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationError = HTTPValidationError; +export type SpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationVariables = + { issueId: string; data: InvestigationRunCreate }; /** * @summary Spawn Investigation @@ -852,37 +1324,40 @@ export type SpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationErr export const useSpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof spawnInvestigationApiV1IssuesIssueIdInvestigationRunsPost - > - >, - TError, - { issueId: string; data: InvestigationRunCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof spawnInvestigationApiV1IssuesIssueIdInvestigationRunsPost + > + >, + TError, + SpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { issueId: string; data: InvestigationRunCreate }, + SpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getSpawnInvestigationApiV1IssuesIssueIdInvestigationRunsPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * List events for an issue (activity timeline). - -Returns events in reverse chronological order (newest first). -Supports cursor-based pagination. + * + * Returns events in reverse chronological order (newest first). + * Supports cursor-based pagination. * @summary List Issue Events */ export const listIssueEventsApiV1IssuesIssueIdEventsGet = ( @@ -940,13 +1415,13 @@ export const getListIssueEventsApiV1IssuesIssueIdEventsGetQueryOptions = < return { queryKey, queryFn, - enabled: !!issueId, + enabled: issueId !== null && issueId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListIssueEventsApiV1IssuesIssueIdEventsGetQueryResult = NonNullable< @@ -955,10 +1430,94 @@ export type ListIssueEventsApiV1IssuesIssueIdEventsGetQueryResult = NonNullable< export type ListIssueEventsApiV1IssuesIssueIdEventsGetQueryError = HTTPValidationError; +export function useListIssueEventsApiV1IssuesIssueIdEventsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + params: undefined | ListIssueEventsApiV1IssuesIssueIdEventsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListIssueEventsApiV1IssuesIssueIdEventsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + params?: ListIssueEventsApiV1IssuesIssueIdEventsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListIssueEventsApiV1IssuesIssueIdEventsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + params?: ListIssueEventsApiV1IssuesIssueIdEventsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Issue Events */ -export const useListIssueEventsApiV1IssuesIssueIdEventsGet = < + +export function useListIssueEventsApiV1IssuesIssueIdEventsGet< TData = Awaited< ReturnType >, @@ -975,7 +1534,10 @@ export const useListIssueEventsApiV1IssuesIssueIdEventsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListIssueEventsApiV1IssuesIssueIdEventsGetQueryOptions( issueId, @@ -983,24 +1545,23 @@ export const useListIssueEventsApiV1IssuesIssueIdEventsGet = < options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Stream real-time issue updates via Server-Sent Events. - -Delivers events as they occur: -- status_changed, assigned, comment_added, label_added/removed -- investigation_spawned, investigation_completed - -The `after` parameter accepts an event ID to resume from. -Sends heartbeat every 30 seconds to prevent connection timeout. + * + * Delivers events as they occur: + * - status_changed, assigned, comment_added, label_added/removed + * - investigation_spawned, investigation_completed + * + * The `after` parameter accepts an event ID to resume from. + * Sends heartbeat every 30 seconds to prevent connection timeout. * @summary Stream Issue Events */ export const streamIssueEventsApiV1IssuesIssueIdStreamGet = ( @@ -1060,13 +1621,13 @@ export const getStreamIssueEventsApiV1IssuesIssueIdStreamGetQueryOptions = < return { queryKey, queryFn, - enabled: !!issueId, + enabled: issueId !== null && issueId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type StreamIssueEventsApiV1IssuesIssueIdStreamGetQueryResult = @@ -1076,10 +1637,104 @@ export type StreamIssueEventsApiV1IssuesIssueIdStreamGetQueryResult = export type StreamIssueEventsApiV1IssuesIssueIdStreamGetQueryError = HTTPValidationError; +export function useStreamIssueEventsApiV1IssuesIssueIdStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + params: undefined | StreamIssueEventsApiV1IssuesIssueIdStreamGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useStreamIssueEventsApiV1IssuesIssueIdStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + params?: StreamIssueEventsApiV1IssuesIssueIdStreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useStreamIssueEventsApiV1IssuesIssueIdStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + issueId: string, + params?: StreamIssueEventsApiV1IssuesIssueIdStreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Stream Issue Events */ -export const useStreamIssueEventsApiV1IssuesIssueIdStreamGet = < + +export function useStreamIssueEventsApiV1IssuesIssueIdStreamGet< TData = Awaited< ReturnType >, @@ -1098,7 +1753,10 @@ export const useStreamIssueEventsApiV1IssuesIssueIdStreamGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getStreamIssueEventsApiV1IssuesIssueIdStreamGetQueryOptions( issueId, @@ -1106,11 +1764,10 @@ export const useStreamIssueEventsApiV1IssuesIssueIdStreamGet = < options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/knowledge-comments/knowledge-comments.ts b/frontend/app/src/lib/api/generated/knowledge-comments/knowledge-comments.ts index c540f6080..56889e1bf 100644 --- a/frontend/app/src/lib/api/generated/knowledge-comments/knowledge-comments.ts +++ b/frontend/app/src/lib/api/generated/knowledge-comments/knowledge-comments.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,22 +7,47 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, KnowledgeCommentCreate, KnowledgeCommentResponse, KnowledgeCommentUpdate, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List knowledge comments for a dataset. * @summary List Knowledge Comments @@ -90,7 +115,7 @@ export const getListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGetQ return { queryKey, queryFn, - enabled: !!datasetId, + enabled: datasetId !== null && datasetId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -100,7 +125,7 @@ export const getListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGetQ >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGetQueryResult = @@ -114,62 +139,185 @@ export type ListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGetQuery export type ListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGetQueryError = HTTPValidationError; -/** - * @summary List Knowledge Comments - */ -export const useListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet = - < - TData = Awaited< - ReturnType< - typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet +export function useListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet< + TData = Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + >, + TError = HTTPValidationError, +>( + datasetId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + >, + TError, + TData > - >, - TError = HTTPValidationError, - >( - datasetId: string, - options?: { - query?: Partial< - UseQueryOptions< + > & + Pick< + DefinedInitialDataOptions< Awaited< ReturnType< typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet > >, TError, - TData - > + Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + > + >, + "initialData" >; - }, - ): UseQueryResult & { queryKey: QueryKey } => { - const queryOptions = - getListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGetQueryOptions( - datasetId, - options, - ); - - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet< + TData = Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + >, + TError = HTTPValidationError, +>( + datasetId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + >, + TError, + Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet< + TData = Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + >, + TError = HTTPValidationError, +>( + datasetId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary List Knowledge Comments + */ - return query; - }; +export function useListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet< + TData = Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + >, + TError = HTTPValidationError, +>( + datasetId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = + getListKnowledgeCommentsApiV1DatasetsDatasetIdKnowledgeCommentsGetQueryOptions( + datasetId, + options, + ); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a knowledge comment. * @summary Create Knowledge Comment */ export const createKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPost = - (datasetId: string, knowledgeCommentCreate: KnowledgeCommentCreate) => { + ( + datasetId: string, + knowledgeCommentCreate: KnowledgeCommentCreate, + signal?: AbortSignal, + ) => { return customInstance({ url: `/api/v1/datasets/${datasetId}/knowledge-comments`, method: "POST", headers: { "Content-Type": "application/json" }, data: knowledgeCommentCreate, + signal, }); }; +export const getCreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationKey = + () => + [ + "createKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPost", + ] as const; + export const getCreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -179,7 +327,7 @@ export const getCreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPos > >, TError, - { datasetId: string; data: KnowledgeCommentCreate }, + CreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationVariables, TContext >; }): UseMutationOptions< @@ -189,10 +337,18 @@ export const getCreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPos > >, TError, - { datasetId: string; data: KnowledgeCommentCreate }, + CreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getCreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -200,7 +356,7 @@ export const getCreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPos typeof createKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPost > >, - { datasetId: string; data: KnowledgeCommentCreate } + CreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationVariables > = (props) => { const { datasetId, data } = props ?? {}; @@ -225,38 +381,43 @@ export type CreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMut KnowledgeCommentCreate; export type CreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationError = HTTPValidationError; +export type CreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationVariables = + { datasetId: string; data: KnowledgeCommentCreate }; /** * @summary Create Knowledge Comment */ export const useCreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPost = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof createKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPost - > - >, - TError, - { datasetId: string; data: KnowledgeCommentCreate }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof createKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPost + > + >, + TError, + CreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof createKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPost > >, TError, - { datasetId: string; data: KnowledgeCommentCreate }, + CreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getCreateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Update a knowledge comment. @@ -267,15 +428,23 @@ export const updateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommen datasetId: string, commentId: string, knowledgeCommentUpdate: KnowledgeCommentUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasets/${datasetId}/knowledge-comments/${commentId}`, method: "PATCH", headers: { "Content-Type": "application/json" }, data: knowledgeCommentUpdate, + signal, }); }; +export const getUpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationKey = + () => + [ + "updateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatch", + ] as const; + export const getUpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -285,7 +454,7 @@ export const getUpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCom > >, TError, - { datasetId: string; commentId: string; data: KnowledgeCommentUpdate }, + UpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationVariables, TContext >; }): UseMutationOptions< @@ -295,10 +464,18 @@ export const getUpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCom > >, TError, - { datasetId: string; commentId: string; data: KnowledgeCommentUpdate }, + UpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getUpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -306,7 +483,7 @@ export const getUpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCom typeof updateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatch > >, - { datasetId: string; commentId: string; data: KnowledgeCommentUpdate } + UpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationVariables > = (props) => { const { datasetId, commentId, data } = props ?? {}; @@ -332,51 +509,63 @@ export type UpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsComment KnowledgeCommentUpdate; export type UpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationError = HTTPValidationError; +export type UpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationVariables = + { datasetId: string; commentId: string; data: KnowledgeCommentUpdate }; /** * @summary Update Knowledge Comment */ export const useUpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatch = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof updateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatch - > - >, - TError, - { datasetId: string; commentId: string; data: KnowledgeCommentUpdate }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof updateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatch + > + >, + TError, + UpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof updateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatch > >, TError, - { datasetId: string; commentId: string; data: KnowledgeCommentUpdate }, + UpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getUpdateKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdPatchMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Delete a knowledge comment. * @summary Delete Knowledge Comment */ export const deleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDelete = - (datasetId: string, commentId: string) => { + (datasetId: string, commentId: string, signal?: AbortSignal) => { return customInstance({ url: `/api/v1/datasets/${datasetId}/knowledge-comments/${commentId}`, method: "DELETE", + signal, }); }; +export const getDeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationKey = + () => + [ + "deleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDelete", + ] as const; + export const getDeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -386,7 +575,7 @@ export const getDeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCom > >, TError, - { datasetId: string; commentId: string }, + DeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -396,10 +585,18 @@ export const getDeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCom > >, TError, - { datasetId: string; commentId: string }, + DeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -407,7 +604,7 @@ export const getDeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCom typeof deleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDelete > >, - { datasetId: string; commentId: string } + DeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationVariables > = (props) => { const { datasetId, commentId } = props ?? {}; @@ -431,36 +628,41 @@ export type DeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsComment export type DeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationError = HTTPValidationError; +export type DeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationVariables = + { datasetId: string; commentId: string }; /** * @summary Delete Knowledge Comment */ export const useDeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDelete = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof deleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDelete - > - >, - TError, - { datasetId: string; commentId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof deleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDelete + > + >, + TError, + DeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof deleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDelete > >, TError, - { datasetId: string; commentId: string }, + DeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDeleteKnowledgeCommentApiV1DatasetsDatasetIdKnowledgeCommentsCommentIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/lineage/lineage.ts b/frontend/app/src/lib/api/generated/lineage/lineage.ts index 3d9006b40..0c8960cae 100644 --- a/frontend/app/src/lib/api/generated/lineage/lineage.ts +++ b/frontend/app/src/lib/api/generated/lineage/lineage.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,11 +7,17 @@ */ import { useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { ColumnLineageListResponse, DatasetResponse, @@ -31,13 +37,32 @@ import type { SearchResultsResponse, UpstreamResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List all available lineage providers. - -Returns the configuration schema for each provider, which can be used -to dynamically generate connection forms in the frontend. + * + * Returns the configuration schema for each provider, which can be used + * to dynamically generate connection forms in the frontend. * @summary List Providers */ export const listProvidersApiV1LineageProvidersGet = (signal?: AbortSignal) => { @@ -78,7 +103,7 @@ export const getListProvidersApiV1LineageProvidersGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListProvidersApiV1LineageProvidersGetQueryResult = NonNullable< @@ -86,37 +111,109 @@ export type ListProvidersApiV1LineageProvidersGetQueryResult = NonNullable< >; export type ListProvidersApiV1LineageProvidersGetQueryError = unknown; +export function useListProvidersApiV1LineageProvidersGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListProvidersApiV1LineageProvidersGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListProvidersApiV1LineageProvidersGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Providers */ -export const useListProvidersApiV1LineageProvidersGet = < + +export function useListProvidersApiV1LineageProvidersGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListProvidersApiV1LineageProvidersGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get upstream (parent) datasets. - -Returns datasets that feed into the specified dataset. + * + * Returns datasets that feed into the specified dataset. * @summary Get Upstream */ export const getUpstreamApiV1LineageUpstreamGet = ( @@ -132,7 +229,7 @@ export const getUpstreamApiV1LineageUpstreamGet = ( }; export const getGetUpstreamApiV1LineageUpstreamGetQueryKey = ( - params: GetUpstreamApiV1LineageUpstreamGetParams, + params?: GetUpstreamApiV1LineageUpstreamGetParams, ) => { return [`/api/v1/lineage/upstream`, ...(params ? [params] : [])] as const; }; @@ -166,7 +263,7 @@ export const getGetUpstreamApiV1LineageUpstreamGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetUpstreamApiV1LineageUpstreamGetQueryResult = NonNullable< @@ -174,10 +271,81 @@ export type GetUpstreamApiV1LineageUpstreamGetQueryResult = NonNullable< >; export type GetUpstreamApiV1LineageUpstreamGetQueryError = HTTPValidationError; +export function useGetUpstreamApiV1LineageUpstreamGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: GetUpstreamApiV1LineageUpstreamGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetUpstreamApiV1LineageUpstreamGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: GetUpstreamApiV1LineageUpstreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetUpstreamApiV1LineageUpstreamGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: GetUpstreamApiV1LineageUpstreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Upstream */ -export const useGetUpstreamApiV1LineageUpstreamGet = < + +export function useGetUpstreamApiV1LineageUpstreamGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -191,25 +359,27 @@ export const useGetUpstreamApiV1LineageUpstreamGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetUpstreamApiV1LineageUpstreamGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get downstream (child) datasets. - -Returns datasets that depend on the specified dataset. + * + * Returns datasets that depend on the specified dataset. * @summary Get Downstream */ export const getDownstreamApiV1LineageDownstreamGet = ( @@ -225,7 +395,7 @@ export const getDownstreamApiV1LineageDownstreamGet = ( }; export const getGetDownstreamApiV1LineageDownstreamGetQueryKey = ( - params: GetDownstreamApiV1LineageDownstreamGetParams, + params?: GetDownstreamApiV1LineageDownstreamGetParams, ) => { return [`/api/v1/lineage/downstream`, ...(params ? [params] : [])] as const; }; @@ -259,7 +429,7 @@ export const getGetDownstreamApiV1LineageDownstreamGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDownstreamApiV1LineageDownstreamGetQueryResult = NonNullable< @@ -268,10 +438,81 @@ export type GetDownstreamApiV1LineageDownstreamGetQueryResult = NonNullable< export type GetDownstreamApiV1LineageDownstreamGetQueryError = HTTPValidationError; +export function useGetDownstreamApiV1LineageDownstreamGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: GetDownstreamApiV1LineageDownstreamGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDownstreamApiV1LineageDownstreamGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: GetDownstreamApiV1LineageDownstreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDownstreamApiV1LineageDownstreamGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: GetDownstreamApiV1LineageDownstreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Downstream */ -export const useGetDownstreamApiV1LineageDownstreamGet = < + +export function useGetDownstreamApiV1LineageDownstreamGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -285,25 +526,27 @@ export const useGetDownstreamApiV1LineageDownstreamGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetDownstreamApiV1LineageDownstreamGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get full lineage graph around a dataset. - -Returns a graph structure with datasets, edges, and jobs. + * + * Returns a graph structure with datasets, edges, and jobs. * @summary Get Lineage Graph */ export const getLineageGraphApiV1LineageGraphGet = ( @@ -319,7 +562,7 @@ export const getLineageGraphApiV1LineageGraphGet = ( }; export const getGetLineageGraphApiV1LineageGraphGetQueryKey = ( - params: GetLineageGraphApiV1LineageGraphGetParams, + params?: GetLineageGraphApiV1LineageGraphGetParams, ) => { return [`/api/v1/lineage/graph`, ...(params ? [params] : [])] as const; }; @@ -353,7 +596,7 @@ export const getGetLineageGraphApiV1LineageGraphGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetLineageGraphApiV1LineageGraphGetQueryResult = NonNullable< @@ -361,10 +604,81 @@ export type GetLineageGraphApiV1LineageGraphGetQueryResult = NonNullable< >; export type GetLineageGraphApiV1LineageGraphGetQueryError = HTTPValidationError; +export function useGetLineageGraphApiV1LineageGraphGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: GetLineageGraphApiV1LineageGraphGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetLineageGraphApiV1LineageGraphGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: GetLineageGraphApiV1LineageGraphGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetLineageGraphApiV1LineageGraphGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: GetLineageGraphApiV1LineageGraphGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Lineage Graph */ -export const useGetLineageGraphApiV1LineageGraphGet = < + +export function useGetLineageGraphApiV1LineageGraphGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -378,26 +692,28 @@ export const useGetLineageGraphApiV1LineageGraphGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetLineageGraphApiV1LineageGraphGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get column-level lineage. - -Returns the source columns that feed into the specified column. -Not all providers support column lineage. + * + * Returns the source columns that feed into the specified column. + * Not all providers support column lineage. * @summary Get Column Lineage */ export const getColumnLineageApiV1LineageColumnLineageGet = ( @@ -413,7 +729,7 @@ export const getColumnLineageApiV1LineageColumnLineageGet = ( }; export const getGetColumnLineageApiV1LineageColumnLineageGetQueryKey = ( - params: GetColumnLineageApiV1LineageColumnLineageGetParams, + params?: GetColumnLineageApiV1LineageColumnLineageGetParams, ) => { return [ `/api/v1/lineage/column-lineage`, @@ -455,7 +771,7 @@ export const getGetColumnLineageApiV1LineageColumnLineageGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetColumnLineageApiV1LineageColumnLineageGetQueryResult = @@ -465,10 +781,101 @@ export type GetColumnLineageApiV1LineageColumnLineageGetQueryResult = export type GetColumnLineageApiV1LineageColumnLineageGetQueryError = HTTPValidationError; +export function useGetColumnLineageApiV1LineageColumnLineageGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: GetColumnLineageApiV1LineageColumnLineageGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetColumnLineageApiV1LineageColumnLineageGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: GetColumnLineageApiV1LineageColumnLineageGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetColumnLineageApiV1LineageColumnLineageGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: GetColumnLineageApiV1LineageColumnLineageGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Column Lineage */ -export const useGetColumnLineageApiV1LineageColumnLineageGet = < + +export function useGetColumnLineageApiV1LineageColumnLineageGet< TData = Awaited< ReturnType >, @@ -486,26 +893,28 @@ export const useGetColumnLineageApiV1LineageColumnLineageGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetColumnLineageApiV1LineageColumnLineageGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get job details. - -Returns information about a job that produces or consumes datasets. + * + * Returns information about a job that produces or consumes datasets. * @summary Get Job */ export const getJobApiV1LineageJobJobIdGet = ( @@ -550,13 +959,13 @@ export const getGetJobApiV1LineageJobJobIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!jobId, + enabled: jobId !== null && jobId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetJobApiV1LineageJobJobIdGetQueryResult = NonNullable< @@ -564,10 +973,81 @@ export type GetJobApiV1LineageJobJobIdGetQueryResult = NonNullable< >; export type GetJobApiV1LineageJobJobIdGetQueryError = HTTPValidationError; +export function useGetJobApiV1LineageJobJobIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + jobId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetJobApiV1LineageJobJobIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + jobId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetJobApiV1LineageJobJobIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + jobId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Job */ -export const useGetJobApiV1LineageJobJobIdGet = < + +export function useGetJobApiV1LineageJobJobIdGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -581,25 +1061,27 @@ export const useGetJobApiV1LineageJobJobIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetJobApiV1LineageJobJobIdGetQueryOptions( jobId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get recent runs of a job. - -Returns execution history for the specified job. + * + * Returns execution history for the specified job. * @summary Get Job Runs */ export const getJobRunsApiV1LineageJobJobIdRunsGet = ( @@ -655,13 +1137,13 @@ export const getGetJobRunsApiV1LineageJobJobIdRunsGetQueryOptions = < return { queryKey, queryFn, - enabled: !!jobId, + enabled: jobId !== null && jobId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetJobRunsApiV1LineageJobJobIdRunsGetQueryResult = NonNullable< @@ -670,10 +1152,84 @@ export type GetJobRunsApiV1LineageJobJobIdRunsGetQueryResult = NonNullable< export type GetJobRunsApiV1LineageJobJobIdRunsGetQueryError = HTTPValidationError; +export function useGetJobRunsApiV1LineageJobJobIdRunsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + jobId: string, + params: undefined | GetJobRunsApiV1LineageJobJobIdRunsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetJobRunsApiV1LineageJobJobIdRunsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + jobId: string, + params?: GetJobRunsApiV1LineageJobJobIdRunsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetJobRunsApiV1LineageJobJobIdRunsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + jobId: string, + params?: GetJobRunsApiV1LineageJobJobIdRunsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Job Runs */ -export const useGetJobRunsApiV1LineageJobJobIdRunsGet = < + +export function useGetJobRunsApiV1LineageJobJobIdRunsGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -688,26 +1244,28 @@ export const useGetJobRunsApiV1LineageJobJobIdRunsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetJobRunsApiV1LineageJobJobIdRunsGetQueryOptions( jobId, params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Search for datasets by name or description. - -Returns datasets matching the search query. + * + * Returns datasets matching the search query. * @summary Search Datasets */ export const searchDatasetsApiV1LineageSearchGet = ( @@ -723,7 +1281,7 @@ export const searchDatasetsApiV1LineageSearchGet = ( }; export const getSearchDatasetsApiV1LineageSearchGetQueryKey = ( - params: SearchDatasetsApiV1LineageSearchGetParams, + params?: SearchDatasetsApiV1LineageSearchGetParams, ) => { return [`/api/v1/lineage/search`, ...(params ? [params] : [])] as const; }; @@ -757,7 +1315,7 @@ export const getSearchDatasetsApiV1LineageSearchGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type SearchDatasetsApiV1LineageSearchGetQueryResult = NonNullable< @@ -765,10 +1323,81 @@ export type SearchDatasetsApiV1LineageSearchGetQueryResult = NonNullable< >; export type SearchDatasetsApiV1LineageSearchGetQueryError = HTTPValidationError; +export function useSearchDatasetsApiV1LineageSearchGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: SearchDatasetsApiV1LineageSearchGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useSearchDatasetsApiV1LineageSearchGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: SearchDatasetsApiV1LineageSearchGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useSearchDatasetsApiV1LineageSearchGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: SearchDatasetsApiV1LineageSearchGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Search Datasets */ -export const useSearchDatasetsApiV1LineageSearchGet = < + +export function useSearchDatasetsApiV1LineageSearchGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -782,25 +1411,27 @@ export const useSearchDatasetsApiV1LineageSearchGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getSearchDatasetsApiV1LineageSearchGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * List datasets with optional filters. - -Returns datasets from the lineage provider. + * + * Returns datasets from the lineage provider. * @summary List Datasets */ export const listDatasetsApiV1LineageDatasetsGet = ( @@ -850,7 +1481,7 @@ export const getListDatasetsApiV1LineageDatasetsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListDatasetsApiV1LineageDatasetsGetQueryResult = NonNullable< @@ -858,10 +1489,81 @@ export type ListDatasetsApiV1LineageDatasetsGetQueryResult = NonNullable< >; export type ListDatasetsApiV1LineageDatasetsGetQueryError = HTTPValidationError; +export function useListDatasetsApiV1LineageDatasetsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: undefined | ListDatasetsApiV1LineageDatasetsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListDatasetsApiV1LineageDatasetsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params?: ListDatasetsApiV1LineageDatasetsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListDatasetsApiV1LineageDatasetsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params?: ListDatasetsApiV1LineageDatasetsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Datasets */ -export const useListDatasetsApiV1LineageDatasetsGet = < + +export function useListDatasetsApiV1LineageDatasetsGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -875,25 +1577,27 @@ export const useListDatasetsApiV1LineageDatasetsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListDatasetsApiV1LineageDatasetsGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get dataset details. - -Returns metadata for a specific dataset. + * + * Returns metadata for a specific dataset. * @summary Get Dataset */ export const getDatasetApiV1LineageDatasetDatasetIdGet = ( @@ -942,13 +1646,13 @@ export const getGetDatasetApiV1LineageDatasetDatasetIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!datasetId, + enabled: datasetId !== null && datasetId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDatasetApiV1LineageDatasetDatasetIdGetQueryResult = NonNullable< @@ -957,10 +1661,81 @@ export type GetDatasetApiV1LineageDatasetDatasetIdGetQueryResult = NonNullable< export type GetDatasetApiV1LineageDatasetDatasetIdGetQueryError = HTTPValidationError; +export function useGetDatasetApiV1LineageDatasetDatasetIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + datasetId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasetApiV1LineageDatasetDatasetIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + datasetId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDatasetApiV1LineageDatasetDatasetIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + datasetId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Dataset */ -export const useGetDatasetApiV1LineageDatasetDatasetIdGet = < + +export function useGetDatasetApiV1LineageDatasetDatasetIdGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -974,17 +1749,19 @@ export const useGetDatasetApiV1LineageDatasetDatasetIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetDatasetApiV1LineageDatasetDatasetIdGetQueryOptions( datasetId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/notifications/notifications.ts b/frontend/app/src/lib/api/generated/notifications/notifications.ts index 6aad5b515..9c6df923a 100644 --- a/frontend/app/src/lib/api/generated/notifications/notifications.ts +++ b/frontend/app/src/lib/api/generated/notifications/notifications.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, ListNotificationsApiV1NotificationsGetParams, @@ -23,13 +29,32 @@ import type { NotificationStreamApiV1NotificationsStreamGetParams, UnreadCountResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List notifications for the current user. - -Uses cursor-based pagination for efficient traversal. -Cursor format: base64(created_at|id) + * + * Uses cursor-based pagination for efficient traversal. + * Cursor format: base64(created_at|id) * @summary List Notifications */ export const listNotificationsApiV1NotificationsGet = ( @@ -79,7 +104,7 @@ export const getListNotificationsApiV1NotificationsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListNotificationsApiV1NotificationsGetQueryResult = NonNullable< @@ -88,10 +113,81 @@ export type ListNotificationsApiV1NotificationsGetQueryResult = NonNullable< export type ListNotificationsApiV1NotificationsGetQueryError = HTTPValidationError; +export function useListNotificationsApiV1NotificationsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: undefined | ListNotificationsApiV1NotificationsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListNotificationsApiV1NotificationsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params?: ListNotificationsApiV1NotificationsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListNotificationsApiV1NotificationsGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params?: ListNotificationsApiV1NotificationsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Notifications */ -export const useListNotificationsApiV1NotificationsGet = < + +export function useListNotificationsApiV1NotificationsGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -105,37 +201,45 @@ export const useListNotificationsApiV1NotificationsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListNotificationsApiV1NotificationsGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Mark a notification as read. - -Idempotent - returns 204 even if already read. -Returns 404 if notification doesn't exist or belongs to another tenant. + * + * Idempotent - returns 204 even if already read. + * Returns 404 if notification doesn't exist or belongs to another tenant. * @summary Mark Notification Read */ export const markNotificationReadApiV1NotificationsNotificationIdReadPut = ( notificationId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/notifications/${notificationId}/read`, method: "PUT", + signal, }); }; +export const getMarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationKey = + () => + ["markNotificationReadApiV1NotificationsNotificationIdReadPut"] as const; + export const getMarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -145,7 +249,7 @@ export const getMarkNotificationReadApiV1NotificationsNotificationIdReadPutMutat > >, TError, - { notificationId: string }, + MarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationVariables, TContext >; }): UseMutationOptions< @@ -155,10 +259,18 @@ export const getMarkNotificationReadApiV1NotificationsNotificationIdReadPutMutat > >, TError, - { notificationId: string }, + MarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getMarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -166,7 +278,7 @@ export const getMarkNotificationReadApiV1NotificationsNotificationIdReadPutMutat typeof markNotificationReadApiV1NotificationsNotificationIdReadPut > >, - { notificationId: string } + MarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationVariables > = (props) => { const { notificationId } = props ?? {}; @@ -189,6 +301,8 @@ export type MarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationR export type MarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationError = HTTPValidationError; +export type MarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationVariables = + { notificationId: string }; /** * @summary Mark Notification Read @@ -196,48 +310,57 @@ export type MarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationE export const useMarkNotificationReadApiV1NotificationsNotificationIdReadPut = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof markNotificationReadApiV1NotificationsNotificationIdReadPut - > - >, - TError, - { notificationId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof markNotificationReadApiV1NotificationsNotificationIdReadPut + > + >, + TError, + MarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType< typeof markNotificationReadApiV1NotificationsNotificationIdReadPut > >, TError, - { notificationId: string }, + MarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getMarkNotificationReadApiV1NotificationsNotificationIdReadPutMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Mark all notifications as read for the current user. - -Returns count of notifications marked and a cursor pointing to -the newest marked notification for resumability. + * + * Returns count of notifications marked and a cursor pointing to + * the newest marked notification for resumability. * @summary Mark All Notifications Read */ -export const markAllNotificationsReadApiV1NotificationsReadAllPost = () => { +export const markAllNotificationsReadApiV1NotificationsReadAllPost = ( + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/notifications/read-all`, method: "POST", + signal, }); }; +export const getMarkAllNotificationsReadApiV1NotificationsReadAllPostMutationKey = + () => ["markAllNotificationsReadApiV1NotificationsReadAllPost"] as const; + export const getMarkAllNotificationsReadApiV1NotificationsReadAllPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -256,7 +379,15 @@ export const getMarkAllNotificationsReadApiV1NotificationsReadAllPostMutationOpt void, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getMarkAllNotificationsReadApiV1NotificationsReadAllPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -286,16 +417,19 @@ export type MarkAllNotificationsReadApiV1NotificationsReadAllPostMutationError = export const useMarkAllNotificationsReadApiV1NotificationsReadAllPost = < TError = unknown, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - void, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + void, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, @@ -303,12 +437,12 @@ export const useMarkAllNotificationsReadApiV1NotificationsReadAllPost = < void, TContext > => { - const mutationOptions = + return useMutation( getMarkAllNotificationsReadApiV1NotificationsReadAllPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Get count of unread notifications for the current user. @@ -358,7 +492,7 @@ export const getGetUnreadCountApiV1NotificationsUnreadCountGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetUnreadCountApiV1NotificationsUnreadCountGetQueryResult = @@ -367,52 +501,144 @@ export type GetUnreadCountApiV1NotificationsUnreadCountGetQueryResult = >; export type GetUnreadCountApiV1NotificationsUnreadCountGetQueryError = unknown; +export function useGetUnreadCountApiV1NotificationsUnreadCountGet< + TData = Awaited< + ReturnType + >, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetUnreadCountApiV1NotificationsUnreadCountGet< + TData = Awaited< + ReturnType + >, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetUnreadCountApiV1NotificationsUnreadCountGet< + TData = Awaited< + ReturnType + >, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Unread Count */ -export const useGetUnreadCountApiV1NotificationsUnreadCountGet = < + +export function useGetUnreadCountApiV1NotificationsUnreadCountGet< TData = Awaited< ReturnType >, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited< - ReturnType - >, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetUnreadCountApiV1NotificationsUnreadCountGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Stream real-time notifications via Server-Sent Events. - -Browser EventSource can't send headers, so JWT is accepted via query param. -The auth middleware already handles `?token=` for SSE endpoints. - -Events: -- `notification`: New notification (includes cursor for resume) -- `heartbeat`: Keep-alive every 30 seconds - -Example: - GET /notifications/stream?token=&after= - -Returns: - EventSourceResponse with SSE stream. + * + * Browser EventSource can't send headers, so JWT is accepted via query param. + * The auth middleware already handles `?token=` for SSE endpoints. + * + * Events: + * - `notification`: New notification (includes cursor for resume) + * - `heartbeat`: Keep-alive every 30 seconds + * + * Example: + * GET /notifications/stream?token=&after= + * + * Returns: + * EventSourceResponse with SSE stream. * @summary Notification Stream */ export const notificationStreamApiV1NotificationsStreamGet = ( @@ -467,7 +693,7 @@ export const getNotificationStreamApiV1NotificationsStreamGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type NotificationStreamApiV1NotificationsStreamGetQueryResult = @@ -477,10 +703,101 @@ export type NotificationStreamApiV1NotificationsStreamGetQueryResult = export type NotificationStreamApiV1NotificationsStreamGetQueryError = HTTPValidationError; +export function useNotificationStreamApiV1NotificationsStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params: undefined | NotificationStreamApiV1NotificationsStreamGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useNotificationStreamApiV1NotificationsStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: NotificationStreamApiV1NotificationsStreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useNotificationStreamApiV1NotificationsStreamGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + params?: NotificationStreamApiV1NotificationsStreamGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Notification Stream */ -export const useNotificationStreamApiV1NotificationsStreamGet = < + +export function useNotificationStreamApiV1NotificationsStreamGet< TData = Awaited< ReturnType >, @@ -498,18 +815,20 @@ export const useNotificationStreamApiV1NotificationsStreamGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getNotificationStreamApiV1NotificationsStreamGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/permissions/permissions.ts b/frontend/app/src/lib/api/generated/permissions/permissions.ts index 1905be405..a6b0f36fa 100644 --- a/frontend/app/src/lib/api/generated/permissions/permissions.ts +++ b/frontend/app/src/lib/api/generated/permissions/permissions.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,22 +7,47 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, PermissionGrantCreate, PermissionGrantResponse, PermissionListResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List all permission grants in the organization. * @summary List Permissions @@ -64,7 +89,7 @@ export const getListPermissionsApiV1PermissionsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListPermissionsApiV1PermissionsGetQueryResult = NonNullable< @@ -72,50 +97,127 @@ export type ListPermissionsApiV1PermissionsGetQueryResult = NonNullable< >; export type ListPermissionsApiV1PermissionsGetQueryError = unknown; +export function useListPermissionsApiV1PermissionsGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListPermissionsApiV1PermissionsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListPermissionsApiV1PermissionsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Permissions */ -export const useListPermissionsApiV1PermissionsGet = < + +export function useListPermissionsApiV1PermissionsGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListPermissionsApiV1PermissionsGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a new permission grant. - -Requires admin scope. + * + * Requires admin scope. * @summary Create Permission */ export const createPermissionApiV1PermissionsPost = ( permissionGrantCreate: PermissionGrantCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/permissions/`, method: "POST", headers: { "Content-Type": "application/json" }, data: permissionGrantCreate, + signal, }); }; +export const getCreatePermissionApiV1PermissionsPostMutationKey = () => + ["createPermissionApiV1PermissionsPost"] as const; + export const getCreatePermissionApiV1PermissionsPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -123,20 +225,27 @@ export const getCreatePermissionApiV1PermissionsPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: PermissionGrantCreate }, + CreatePermissionApiV1PermissionsPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: PermissionGrantCreate }, + CreatePermissionApiV1PermissionsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getCreatePermissionApiV1PermissionsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: PermissionGrantCreate } + CreatePermissionApiV1PermissionsPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -153,6 +262,9 @@ export type CreatePermissionApiV1PermissionsPostMutationBody = PermissionGrantCreate; export type CreatePermissionApiV1PermissionsPostMutationError = HTTPValidationError; +export type CreatePermissionApiV1PermissionsPostMutationVariables = { + data: PermissionGrantCreate; +}; /** * @summary Create Permission @@ -160,39 +272,47 @@ export type CreatePermissionApiV1PermissionsPostMutationError = export const useCreatePermissionApiV1PermissionsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: PermissionGrantCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreatePermissionApiV1PermissionsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: PermissionGrantCreate }, + CreatePermissionApiV1PermissionsPostMutationVariables, TContext > => { - const mutationOptions = - getCreatePermissionApiV1PermissionsPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreatePermissionApiV1PermissionsPostMutationOptions(options), + queryClient, + ); }; /** * Delete a permission grant. - -Requires admin scope. + * + * Requires admin scope. * @summary Delete Permission */ export const deletePermissionApiV1PermissionsGrantIdDelete = ( grantId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/permissions/${grantId}`, method: "DELETE", + signal, }); }; +export const getDeletePermissionApiV1PermissionsGrantIdDeleteMutationKey = () => + ["deletePermissionApiV1PermissionsGrantIdDelete"] as const; + export const getDeletePermissionApiV1PermissionsGrantIdDeleteMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -200,20 +320,28 @@ export const getDeletePermissionApiV1PermissionsGrantIdDeleteMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { grantId: string }, + DeletePermissionApiV1PermissionsGrantIdDeleteMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { grantId: string }, + DeletePermissionApiV1PermissionsGrantIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeletePermissionApiV1PermissionsGrantIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { grantId: string } + DeletePermissionApiV1PermissionsGrantIdDeleteMutationVariables > = (props) => { const { grantId } = props ?? {}; @@ -230,6 +358,9 @@ export type DeletePermissionApiV1PermissionsGrantIdDeleteMutationResult = export type DeletePermissionApiV1PermissionsGrantIdDeleteMutationError = HTTPValidationError; +export type DeletePermissionApiV1PermissionsGrantIdDeleteMutationVariables = { + grantId: string; +}; /** * @summary Delete Permission @@ -237,21 +368,24 @@ export type DeletePermissionApiV1PermissionsGrantIdDeleteMutationError = export const useDeletePermissionApiV1PermissionsGrantIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { grantId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + DeletePermissionApiV1PermissionsGrantIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { grantId: string }, + DeletePermissionApiV1PermissionsGrantIdDeleteMutationVariables, TContext > => { - const mutationOptions = - getDeletePermissionApiV1PermissionsGrantIdDeleteMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getDeletePermissionApiV1PermissionsGrantIdDeleteMutationOptions(options), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/schema-comments/schema-comments.ts b/frontend/app/src/lib/api/generated/schema-comments/schema-comments.ts index 4d8ce8372..99ee77f3b 100644 --- a/frontend/app/src/lib/api/generated/schema-comments/schema-comments.ts +++ b/frontend/app/src/lib/api/generated/schema-comments/schema-comments.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, ListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetParams, @@ -22,8 +28,27 @@ import type { SchemaCommentResponse, SchemaCommentUpdate, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List schema comments for a dataset. * @summary List Schema Comments @@ -102,7 +127,7 @@ export const getListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetQueryOp return { queryKey, queryFn, - enabled: !!datasetId, + enabled: datasetId !== null && datasetId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited< @@ -112,7 +137,7 @@ export const getListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetQueryOp >, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetQueryResult = @@ -126,10 +151,120 @@ export type ListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetQueryResult export type ListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetQueryError = HTTPValidationError; +export function useListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasetId: string, + params: + | undefined + | ListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet + > + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet + > + >, + TError, + Awaited< + ReturnType< + typeof listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasetId: string, + params?: ListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet + > + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType< + typeof listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet + > + >, + TError, + Awaited< + ReturnType< + typeof listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet + > + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet< + TData = Awaited< + ReturnType + >, + TError = HTTPValidationError, +>( + datasetId: string, + params?: ListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType< + typeof listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet + > + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Schema Comments */ -export const useListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet = < + +export function useListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet< TData = Awaited< ReturnType >, @@ -150,7 +285,10 @@ export const useListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetQueryOptions( datasetId, @@ -158,14 +296,13 @@ export const useListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet = < options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a schema comment. @@ -174,15 +311,21 @@ export const useListSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGet = < export const createSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPost = ( datasetId: string, schemaCommentCreate: SchemaCommentCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasets/${datasetId}/schema-comments`, method: "POST", headers: { "Content-Type": "application/json" }, data: schemaCommentCreate, + signal, }); }; +export const getCreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationKey = + () => + ["createSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPost"] as const; + export const getCreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -192,7 +335,7 @@ export const getCreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutat > >, TError, - { datasetId: string; data: SchemaCommentCreate }, + CreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationVariables, TContext >; }): UseMutationOptions< @@ -202,10 +345,18 @@ export const getCreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutat > >, TError, - { datasetId: string; data: SchemaCommentCreate }, + CreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getCreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -213,7 +364,7 @@ export const getCreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutat typeof createSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPost > >, - { datasetId: string; data: SchemaCommentCreate } + CreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationVariables > = (props) => { const { datasetId, data } = props ?? {}; @@ -238,6 +389,8 @@ export type CreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationB SchemaCommentCreate; export type CreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationError = HTTPValidationError; +export type CreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationVariables = + { datasetId: string; data: SchemaCommentCreate }; /** * @summary Create Schema Comment @@ -245,33 +398,36 @@ export type CreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationE export const useCreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof createSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPost - > - >, - TError, - { datasetId: string; data: SchemaCommentCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof createSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPost + > + >, + TError, + CreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType< typeof createSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPost > >, TError, - { datasetId: string; data: SchemaCommentCreate }, + CreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getCreateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Update a schema comment. @@ -282,15 +438,23 @@ export const updateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPat datasetId: string, commentId: string, schemaCommentUpdate: SchemaCommentUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/datasets/${datasetId}/schema-comments/${commentId}`, method: "PATCH", headers: { "Content-Type": "application/json" }, data: schemaCommentUpdate, + signal, }); }; +export const getUpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationKey = + () => + [ + "updateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatch", + ] as const; + export const getUpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -300,7 +464,7 @@ export const getUpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentId > >, TError, - { datasetId: string; commentId: string; data: SchemaCommentUpdate }, + UpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationVariables, TContext >; }): UseMutationOptions< @@ -310,10 +474,18 @@ export const getUpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentId > >, TError, - { datasetId: string; commentId: string; data: SchemaCommentUpdate }, + UpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getUpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -321,7 +493,7 @@ export const getUpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentId typeof updateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatch > >, - { datasetId: string; commentId: string; data: SchemaCommentUpdate } + UpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationVariables > = (props) => { const { datasetId, commentId, data } = props ?? {}; @@ -347,51 +519,63 @@ export type UpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatc SchemaCommentUpdate; export type UpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationError = HTTPValidationError; +export type UpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationVariables = + { datasetId: string; commentId: string; data: SchemaCommentUpdate }; /** * @summary Update Schema Comment */ export const useUpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatch = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof updateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatch - > - >, - TError, - { datasetId: string; commentId: string; data: SchemaCommentUpdate }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof updateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatch + > + >, + TError, + UpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof updateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatch > >, TError, - { datasetId: string; commentId: string; data: SchemaCommentUpdate }, + UpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getUpdateSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdPatchMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Delete a schema comment. * @summary Delete Schema Comment */ export const deleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDelete = - (datasetId: string, commentId: string) => { + (datasetId: string, commentId: string, signal?: AbortSignal) => { return customInstance({ url: `/api/v1/datasets/${datasetId}/schema-comments/${commentId}`, method: "DELETE", + signal, }); }; +export const getDeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationKey = + () => + [ + "deleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDelete", + ] as const; + export const getDeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -401,7 +585,7 @@ export const getDeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentId > >, TError, - { datasetId: string; commentId: string }, + DeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -411,10 +595,18 @@ export const getDeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentId > >, TError, - { datasetId: string; commentId: string }, + DeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -422,7 +614,7 @@ export const getDeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentId typeof deleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDelete > >, - { datasetId: string; commentId: string } + DeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationVariables > = (props) => { const { datasetId, commentId } = props ?? {}; @@ -446,36 +638,41 @@ export type DeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDele export type DeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationError = HTTPValidationError; +export type DeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationVariables = + { datasetId: string; commentId: string }; /** * @summary Delete Schema Comment */ export const useDeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDelete = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof deleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDelete - > - >, - TError, - { datasetId: string; commentId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof deleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDelete + > + >, + TError, + DeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof deleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDelete > >, TError, - { datasetId: string; commentId: string }, + DeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDeleteSchemaCommentApiV1DatasetsDatasetIdSchemaCommentsCommentIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/sla-policies/sla-policies.ts b/frontend/app/src/lib/api/generated/sla-policies/sla-policies.ts index b973e0e3a..9080e6a61 100644 --- a/frontend/app/src/lib/api/generated/sla-policies/sla-policies.ts +++ b/frontend/app/src/lib/api/generated/sla-policies/sla-policies.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { GetDefaultSlaPolicyApiV1SlaPoliciesDefaultGet200, HTTPValidationError, @@ -24,8 +30,27 @@ import type { SLAPolicyResponse, SLAPolicyUpdate, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List SLA policies for the tenant. * @summary List Sla Policies @@ -77,7 +102,7 @@ export const getListSlaPoliciesApiV1SlaPoliciesGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListSlaPoliciesApiV1SlaPoliciesGetQueryResult = NonNullable< @@ -85,10 +110,81 @@ export type ListSlaPoliciesApiV1SlaPoliciesGetQueryResult = NonNullable< >; export type ListSlaPoliciesApiV1SlaPoliciesGetQueryError = HTTPValidationError; +export function useListSlaPoliciesApiV1SlaPoliciesGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params: undefined | ListSlaPoliciesApiV1SlaPoliciesGetParams, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListSlaPoliciesApiV1SlaPoliciesGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params?: ListSlaPoliciesApiV1SlaPoliciesGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListSlaPoliciesApiV1SlaPoliciesGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + params?: ListSlaPoliciesApiV1SlaPoliciesGetParams, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Sla Policies */ -export const useListSlaPoliciesApiV1SlaPoliciesGet = < + +export function useListSlaPoliciesApiV1SlaPoliciesGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -102,38 +198,45 @@ export const useListSlaPoliciesApiV1SlaPoliciesGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListSlaPoliciesApiV1SlaPoliciesGetQueryOptions( params, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a new SLA policy. - -Requires admin scope. If is_default is true, clears any existing default. + * + * Requires admin scope. If is_default is true, clears any existing default. * @summary Create Sla Policy */ export const createSlaPolicyApiV1SlaPoliciesPost = ( sLAPolicyCreate: SLAPolicyCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/sla-policies`, method: "POST", headers: { "Content-Type": "application/json" }, data: sLAPolicyCreate, + signal, }); }; +export const getCreateSlaPolicyApiV1SlaPoliciesPostMutationKey = () => + ["createSlaPolicyApiV1SlaPoliciesPost"] as const; + export const getCreateSlaPolicyApiV1SlaPoliciesPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -141,20 +244,27 @@ export const getCreateSlaPolicyApiV1SlaPoliciesPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: SLAPolicyCreate }, + CreateSlaPolicyApiV1SlaPoliciesPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: SLAPolicyCreate }, + CreateSlaPolicyApiV1SlaPoliciesPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getCreateSlaPolicyApiV1SlaPoliciesPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: SLAPolicyCreate } + CreateSlaPolicyApiV1SlaPoliciesPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -170,6 +280,9 @@ export type CreateSlaPolicyApiV1SlaPoliciesPostMutationResult = NonNullable< export type CreateSlaPolicyApiV1SlaPoliciesPostMutationBody = SLAPolicyCreate; export type CreateSlaPolicyApiV1SlaPoliciesPostMutationError = HTTPValidationError; +export type CreateSlaPolicyApiV1SlaPoliciesPostMutationVariables = { + data: SLAPolicyCreate; +}; /** * @summary Create Sla Policy @@ -177,28 +290,31 @@ export type CreateSlaPolicyApiV1SlaPoliciesPostMutationError = export const useCreateSlaPolicyApiV1SlaPoliciesPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: SLAPolicyCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreateSlaPolicyApiV1SlaPoliciesPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: SLAPolicyCreate }, + CreateSlaPolicyApiV1SlaPoliciesPostMutationVariables, TContext > => { - const mutationOptions = - getCreateSlaPolicyApiV1SlaPoliciesPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateSlaPolicyApiV1SlaPoliciesPostMutationOptions(options), + queryClient, + ); }; /** * Get the default SLA policy for the tenant. - -Returns None if no default policy is configured. + * + * Returns None if no default policy is configured. * @summary Get Default Sla Policy */ export const getDefaultSlaPolicyApiV1SlaPoliciesDefaultGet = ( @@ -243,7 +359,7 @@ export const getGetDefaultSlaPolicyApiV1SlaPoliciesDefaultGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetDefaultSlaPolicyApiV1SlaPoliciesDefaultGetQueryResult = @@ -252,34 +368,128 @@ export type GetDefaultSlaPolicyApiV1SlaPoliciesDefaultGetQueryResult = >; export type GetDefaultSlaPolicyApiV1SlaPoliciesDefaultGetQueryError = unknown; +export function useGetDefaultSlaPolicyApiV1SlaPoliciesDefaultGet< + TData = Awaited< + ReturnType + >, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDefaultSlaPolicyApiV1SlaPoliciesDefaultGet< + TData = Awaited< + ReturnType + >, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited< + ReturnType + >, + TError, + Awaited< + ReturnType + > + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDefaultSlaPolicyApiV1SlaPoliciesDefaultGet< + TData = Awaited< + ReturnType + >, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Default Sla Policy */ -export const useGetDefaultSlaPolicyApiV1SlaPoliciesDefaultGet = < + +export function useGetDefaultSlaPolicyApiV1SlaPoliciesDefaultGet< TData = Awaited< ReturnType >, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited< + ReturnType + >, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetDefaultSlaPolicyApiV1SlaPoliciesDefaultGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Get an SLA policy by ID. @@ -330,13 +540,13 @@ export const getGetSlaPolicyApiV1SlaPoliciesPolicyIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!policyId, + enabled: policyId !== null && policyId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetSlaPolicyApiV1SlaPoliciesPolicyIdGetQueryResult = NonNullable< @@ -345,10 +555,81 @@ export type GetSlaPolicyApiV1SlaPoliciesPolicyIdGetQueryResult = NonNullable< export type GetSlaPolicyApiV1SlaPoliciesPolicyIdGetQueryError = HTTPValidationError; +export function useGetSlaPolicyApiV1SlaPoliciesPolicyIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + policyId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetSlaPolicyApiV1SlaPoliciesPolicyIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + policyId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetSlaPolicyApiV1SlaPoliciesPolicyIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + policyId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Sla Policy */ -export const useGetSlaPolicyApiV1SlaPoliciesPolicyIdGet = < + +export function useGetSlaPolicyApiV1SlaPoliciesPolicyIdGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -362,39 +643,46 @@ export const useGetSlaPolicyApiV1SlaPoliciesPolicyIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetSlaPolicyApiV1SlaPoliciesPolicyIdGetQueryOptions( policyId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Update an SLA policy. - -Requires admin scope. If is_default is set to true, clears any existing default. + * + * Requires admin scope. If is_default is set to true, clears any existing default. * @summary Update Sla Policy */ export const updateSlaPolicyApiV1SlaPoliciesPolicyIdPatch = ( policyId: string, sLAPolicyUpdate: SLAPolicyUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/sla-policies/${policyId}`, method: "PATCH", headers: { "Content-Type": "application/json" }, data: sLAPolicyUpdate, + signal, }); }; +export const getUpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationKey = () => + ["updateSlaPolicyApiV1SlaPoliciesPolicyIdPatch"] as const; + export const getUpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -402,20 +690,28 @@ export const getUpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { policyId: string; data: SLAPolicyUpdate }, + UpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { policyId: string; data: SLAPolicyUpdate }, + UpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getUpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { policyId: string; data: SLAPolicyUpdate } + UpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationVariables > = (props) => { const { policyId, data } = props ?? {}; @@ -433,6 +729,10 @@ export type UpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationBody = SLAPolicyUpdate; export type UpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationError = HTTPValidationError; +export type UpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationVariables = { + policyId: string; + data: SLAPolicyUpdate; +}; /** * @summary Update Sla Policy @@ -440,39 +740,47 @@ export type UpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationError = export const useUpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatch = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { policyId: string; data: SLAPolicyUpdate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + UpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { policyId: string; data: SLAPolicyUpdate }, + UpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationVariables, TContext > => { - const mutationOptions = - getUpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getUpdateSlaPolicyApiV1SlaPoliciesPolicyIdPatchMutationOptions(options), + queryClient, + ); }; /** * Delete an SLA policy. - -Requires admin scope. Issues using this policy will have sla_policy_id set to NULL. + * + * Requires admin scope. Issues using this policy will have sla_policy_id set to NULL. * @summary Delete Sla Policy */ export const deleteSlaPolicyApiV1SlaPoliciesPolicyIdDelete = ( policyId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/sla-policies/${policyId}`, method: "DELETE", + signal, }); }; +export const getDeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationKey = () => + ["deleteSlaPolicyApiV1SlaPoliciesPolicyIdDelete"] as const; + export const getDeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -480,20 +788,28 @@ export const getDeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { policyId: string }, + DeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { policyId: string }, + DeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { policyId: string } + DeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationVariables > = (props) => { const { policyId } = props ?? {}; @@ -510,6 +826,9 @@ export type DeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationResult = export type DeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationError = HTTPValidationError; +export type DeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationVariables = { + policyId: string; +}; /** * @summary Delete Sla Policy @@ -517,21 +836,24 @@ export type DeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationError = export const useDeleteSlaPolicyApiV1SlaPoliciesPolicyIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { policyId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + DeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { policyId: string }, + DeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationVariables, TContext > => { - const mutationOptions = - getDeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getDeleteSlaPolicyApiV1SlaPoliciesPolicyIdDeleteMutationOptions(options), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/tags/tags.ts b/frontend/app/src/lib/api/generated/tags/tags.ts index cfb952925..c6b326ad2 100644 --- a/frontend/app/src/lib/api/generated/tags/tags.ts +++ b/frontend/app/src/lib/api/generated/tags/tags.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { HTTPValidationError, TagCreate, @@ -22,8 +28,27 @@ import type { TagResponse, TagUpdate, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List all tags in the organization. * @summary List Tags @@ -64,7 +89,7 @@ export const getListTagsApiV1TagsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListTagsApiV1TagsGetQueryResult = NonNullable< @@ -72,47 +97,126 @@ export type ListTagsApiV1TagsGetQueryResult = NonNullable< >; export type ListTagsApiV1TagsGetQueryError = unknown; +export function useListTagsApiV1TagsGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListTagsApiV1TagsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListTagsApiV1TagsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Tags */ -export const useListTagsApiV1TagsGet = < + +export function useListTagsApiV1TagsGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListTagsApiV1TagsGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a new tag. - -Requires admin scope. + * + * Requires admin scope. * @summary Create Tag */ -export const createTagApiV1TagsPost = (tagCreate: TagCreate) => { +export const createTagApiV1TagsPost = ( + tagCreate: TagCreate, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/tags/`, method: "POST", headers: { "Content-Type": "application/json" }, data: tagCreate, + signal, }); }; +export const getCreateTagApiV1TagsPostMutationKey = () => + ["createTagApiV1TagsPost"] as const; + export const getCreateTagApiV1TagsPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -120,20 +224,27 @@ export const getCreateTagApiV1TagsPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: TagCreate }, + CreateTagApiV1TagsPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: TagCreate }, + CreateTagApiV1TagsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getCreateTagApiV1TagsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: TagCreate } + CreateTagApiV1TagsPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -148,6 +259,7 @@ export type CreateTagApiV1TagsPostMutationResult = NonNullable< >; export type CreateTagApiV1TagsPostMutationBody = TagCreate; export type CreateTagApiV1TagsPostMutationError = HTTPValidationError; +export type CreateTagApiV1TagsPostMutationVariables = { data: TagCreate }; /** * @summary Create Tag @@ -155,22 +267,26 @@ export type CreateTagApiV1TagsPostMutationError = HTTPValidationError; export const useCreateTagApiV1TagsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: TagCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreateTagApiV1TagsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: TagCreate }, + CreateTagApiV1TagsPostMutationVariables, TContext > => { - const mutationOptions = getCreateTagApiV1TagsPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateTagApiV1TagsPostMutationOptions(options), + queryClient, + ); }; /** * Get a tag by ID. @@ -218,13 +334,13 @@ export const getGetTagApiV1TagsTagIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!tagId, + enabled: tagId !== null && tagId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetTagApiV1TagsTagIdGetQueryResult = NonNullable< @@ -232,10 +348,81 @@ export type GetTagApiV1TagsTagIdGetQueryResult = NonNullable< >; export type GetTagApiV1TagsTagIdGetQueryError = HTTPValidationError; +export function useGetTagApiV1TagsTagIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + tagId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetTagApiV1TagsTagIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + tagId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetTagApiV1TagsTagIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + tagId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Tag */ -export const useGetTagApiV1TagsTagIdGet = < + +export function useGetTagApiV1TagsTagIdGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -249,36 +436,43 @@ export const useGetTagApiV1TagsTagIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetTagApiV1TagsTagIdGetQueryOptions(tagId, options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Update a tag. - -Requires admin scope. + * + * Requires admin scope. * @summary Update Tag */ export const updateTagApiV1TagsTagIdPut = ( tagId: string, tagUpdate: TagUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/tags/${tagId}`, method: "PUT", headers: { "Content-Type": "application/json" }, data: tagUpdate, + signal, }); }; +export const getUpdateTagApiV1TagsTagIdPutMutationKey = () => + ["updateTagApiV1TagsTagIdPut"] as const; + export const getUpdateTagApiV1TagsTagIdPutMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -286,20 +480,27 @@ export const getUpdateTagApiV1TagsTagIdPutMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { tagId: string; data: TagUpdate }, + UpdateTagApiV1TagsTagIdPutMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { tagId: string; data: TagUpdate }, + UpdateTagApiV1TagsTagIdPutMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getUpdateTagApiV1TagsTagIdPutMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { tagId: string; data: TagUpdate } + UpdateTagApiV1TagsTagIdPutMutationVariables > = (props) => { const { tagId, data } = props ?? {}; @@ -314,6 +515,10 @@ export type UpdateTagApiV1TagsTagIdPutMutationResult = NonNullable< >; export type UpdateTagApiV1TagsTagIdPutMutationBody = TagUpdate; export type UpdateTagApiV1TagsTagIdPutMutationError = HTTPValidationError; +export type UpdateTagApiV1TagsTagIdPutMutationVariables = { + tagId: string; + data: TagUpdate; +}; /** * @summary Update Tag @@ -321,36 +526,47 @@ export type UpdateTagApiV1TagsTagIdPutMutationError = HTTPValidationError; export const useUpdateTagApiV1TagsTagIdPut = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { tagId: string; data: TagUpdate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + UpdateTagApiV1TagsTagIdPutMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { tagId: string; data: TagUpdate }, + UpdateTagApiV1TagsTagIdPutMutationVariables, TContext > => { - const mutationOptions = getUpdateTagApiV1TagsTagIdPutMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getUpdateTagApiV1TagsTagIdPutMutationOptions(options), + queryClient, + ); }; /** * Delete a tag. - -Requires admin scope. + * + * Requires admin scope. * @summary Delete Tag */ -export const deleteTagApiV1TagsTagIdDelete = (tagId: string) => { +export const deleteTagApiV1TagsTagIdDelete = ( + tagId: string, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/tags/${tagId}`, method: "DELETE", + signal, }); }; +export const getDeleteTagApiV1TagsTagIdDeleteMutationKey = () => + ["deleteTagApiV1TagsTagIdDelete"] as const; + export const getDeleteTagApiV1TagsTagIdDeleteMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -358,20 +574,27 @@ export const getDeleteTagApiV1TagsTagIdDeleteMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { tagId: string }, + DeleteTagApiV1TagsTagIdDeleteMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { tagId: string }, + DeleteTagApiV1TagsTagIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getDeleteTagApiV1TagsTagIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { tagId: string } + DeleteTagApiV1TagsTagIdDeleteMutationVariables > = (props) => { const { tagId } = props ?? {}; @@ -386,6 +609,7 @@ export type DeleteTagApiV1TagsTagIdDeleteMutationResult = NonNullable< >; export type DeleteTagApiV1TagsTagIdDeleteMutationError = HTTPValidationError; +export type DeleteTagApiV1TagsTagIdDeleteMutationVariables = { tagId: string }; /** * @summary Delete Tag @@ -393,21 +617,24 @@ export type DeleteTagApiV1TagsTagIdDeleteMutationError = HTTPValidationError; export const useDeleteTagApiV1TagsTagIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { tagId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + DeleteTagApiV1TagsTagIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { tagId: string }, + DeleteTagApiV1TagsTagIdDeleteMutationVariables, TContext > => { - const mutationOptions = - getDeleteTagApiV1TagsTagIdDeleteMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getDeleteTagApiV1TagsTagIdDeleteMutationOptions(options), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/teams/teams.ts b/frontend/app/src/lib/api/generated/teams/teams.ts index 90dc515d9..661e7dc05 100644 --- a/frontend/app/src/lib/api/generated/teams/teams.ts +++ b/frontend/app/src/lib/api/generated/teams/teams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { AddTeamMemberApiV1TeamsTeamIdMembersPost201, HTTPValidationError, @@ -32,8 +38,27 @@ import type { TeamResponse, TeamUpdate, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List all teams in the organization. * @summary List Teams @@ -75,7 +100,7 @@ export const getListTeamsApiV1TeamsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListTeamsApiV1TeamsGetQueryResult = NonNullable< @@ -83,47 +108,126 @@ export type ListTeamsApiV1TeamsGetQueryResult = NonNullable< >; export type ListTeamsApiV1TeamsGetQueryError = unknown; +export function useListTeamsApiV1TeamsGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListTeamsApiV1TeamsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListTeamsApiV1TeamsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Teams */ -export const useListTeamsApiV1TeamsGet = < + +export function useListTeamsApiV1TeamsGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListTeamsApiV1TeamsGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a new team. - -Requires admin scope. + * + * Requires admin scope. * @summary Create Team */ -export const createTeamApiV1TeamsPost = (teamCreate: TeamCreate) => { +export const createTeamApiV1TeamsPost = ( + teamCreate: TeamCreate, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/teams/`, method: "POST", headers: { "Content-Type": "application/json" }, data: teamCreate, + signal, }); }; +export const getCreateTeamApiV1TeamsPostMutationKey = () => + ["createTeamApiV1TeamsPost"] as const; + export const getCreateTeamApiV1TeamsPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -131,20 +235,27 @@ export const getCreateTeamApiV1TeamsPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: TeamCreate }, + CreateTeamApiV1TeamsPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: TeamCreate }, + CreateTeamApiV1TeamsPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getCreateTeamApiV1TeamsPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: TeamCreate } + CreateTeamApiV1TeamsPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -159,6 +270,7 @@ export type CreateTeamApiV1TeamsPostMutationResult = NonNullable< >; export type CreateTeamApiV1TeamsPostMutationBody = TeamCreate; export type CreateTeamApiV1TeamsPostMutationError = HTTPValidationError; +export type CreateTeamApiV1TeamsPostMutationVariables = { data: TeamCreate }; /** * @summary Create Team @@ -166,22 +278,26 @@ export type CreateTeamApiV1TeamsPostMutationError = HTTPValidationError; export const useCreateTeamApiV1TeamsPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: TeamCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreateTeamApiV1TeamsPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: TeamCreate }, + CreateTeamApiV1TeamsPostMutationVariables, TContext > => { - const mutationOptions = getCreateTeamApiV1TeamsPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateTeamApiV1TeamsPostMutationOptions(options), + queryClient, + ); }; /** * Get a team by ID. @@ -229,13 +345,13 @@ export const getGetTeamApiV1TeamsTeamIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!teamId, + enabled: teamId !== null && teamId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetTeamApiV1TeamsTeamIdGetQueryResult = NonNullable< @@ -243,10 +359,81 @@ export type GetTeamApiV1TeamsTeamIdGetQueryResult = NonNullable< >; export type GetTeamApiV1TeamsTeamIdGetQueryError = HTTPValidationError; +export function useGetTeamApiV1TeamsTeamIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + teamId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetTeamApiV1TeamsTeamIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + teamId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetTeamApiV1TeamsTeamIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + teamId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Team */ -export const useGetTeamApiV1TeamsTeamIdGet = < + +export function useGetTeamApiV1TeamsTeamIdGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -260,39 +447,46 @@ export const useGetTeamApiV1TeamsTeamIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetTeamApiV1TeamsTeamIdGetQueryOptions( teamId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Update a team. - -Requires admin scope. Cannot update SCIM-managed teams. + * + * Requires admin scope. Cannot update SCIM-managed teams. * @summary Update Team */ export const updateTeamApiV1TeamsTeamIdPut = ( teamId: string, teamUpdate: TeamUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/teams/${teamId}`, method: "PUT", headers: { "Content-Type": "application/json" }, data: teamUpdate, + signal, }); }; +export const getUpdateTeamApiV1TeamsTeamIdPutMutationKey = () => + ["updateTeamApiV1TeamsTeamIdPut"] as const; + export const getUpdateTeamApiV1TeamsTeamIdPutMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -300,20 +494,27 @@ export const getUpdateTeamApiV1TeamsTeamIdPutMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { teamId: string; data: TeamUpdate }, + UpdateTeamApiV1TeamsTeamIdPutMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { teamId: string; data: TeamUpdate }, + UpdateTeamApiV1TeamsTeamIdPutMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getUpdateTeamApiV1TeamsTeamIdPutMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { teamId: string; data: TeamUpdate } + UpdateTeamApiV1TeamsTeamIdPutMutationVariables > = (props) => { const { teamId, data } = props ?? {}; @@ -328,6 +529,10 @@ export type UpdateTeamApiV1TeamsTeamIdPutMutationResult = NonNullable< >; export type UpdateTeamApiV1TeamsTeamIdPutMutationBody = TeamUpdate; export type UpdateTeamApiV1TeamsTeamIdPutMutationError = HTTPValidationError; +export type UpdateTeamApiV1TeamsTeamIdPutMutationVariables = { + teamId: string; + data: TeamUpdate; +}; /** * @summary Update Team @@ -335,37 +540,47 @@ export type UpdateTeamApiV1TeamsTeamIdPutMutationError = HTTPValidationError; export const useUpdateTeamApiV1TeamsTeamIdPut = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { teamId: string; data: TeamUpdate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + UpdateTeamApiV1TeamsTeamIdPutMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { teamId: string; data: TeamUpdate }, + UpdateTeamApiV1TeamsTeamIdPutMutationVariables, TContext > => { - const mutationOptions = - getUpdateTeamApiV1TeamsTeamIdPutMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getUpdateTeamApiV1TeamsTeamIdPutMutationOptions(options), + queryClient, + ); }; /** * Delete a team. - -Requires admin scope. Cannot delete SCIM-managed teams. + * + * Requires admin scope. Cannot delete SCIM-managed teams. * @summary Delete Team */ -export const deleteTeamApiV1TeamsTeamIdDelete = (teamId: string) => { +export const deleteTeamApiV1TeamsTeamIdDelete = ( + teamId: string, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/teams/${teamId}`, method: "DELETE", + signal, }); }; +export const getDeleteTeamApiV1TeamsTeamIdDeleteMutationKey = () => + ["deleteTeamApiV1TeamsTeamIdDelete"] as const; + export const getDeleteTeamApiV1TeamsTeamIdDeleteMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -373,20 +588,27 @@ export const getDeleteTeamApiV1TeamsTeamIdDeleteMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { teamId: string }, + DeleteTeamApiV1TeamsTeamIdDeleteMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { teamId: string }, + DeleteTeamApiV1TeamsTeamIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getDeleteTeamApiV1TeamsTeamIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { teamId: string } + DeleteTeamApiV1TeamsTeamIdDeleteMutationVariables > = (props) => { const { teamId } = props ?? {}; @@ -401,6 +623,9 @@ export type DeleteTeamApiV1TeamsTeamIdDeleteMutationResult = NonNullable< >; export type DeleteTeamApiV1TeamsTeamIdDeleteMutationError = HTTPValidationError; +export type DeleteTeamApiV1TeamsTeamIdDeleteMutationVariables = { + teamId: string; +}; /** * @summary Delete Team @@ -408,23 +633,26 @@ export type DeleteTeamApiV1TeamsTeamIdDeleteMutationError = HTTPValidationError; export const useDeleteTeamApiV1TeamsTeamIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { teamId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + DeleteTeamApiV1TeamsTeamIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { teamId: string }, + DeleteTeamApiV1TeamsTeamIdDeleteMutationVariables, TContext > => { - const mutationOptions = - getDeleteTeamApiV1TeamsTeamIdDeleteMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getDeleteTeamApiV1TeamsTeamIdDeleteMutationOptions(options), + queryClient, + ); }; /** * Get team members. @@ -475,13 +703,13 @@ export const getGetTeamMembersApiV1TeamsTeamIdMembersGetQueryOptions = < return { queryKey, queryFn, - enabled: !!teamId, + enabled: teamId !== null && teamId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetTeamMembersApiV1TeamsTeamIdMembersGetQueryResult = NonNullable< @@ -490,10 +718,81 @@ export type GetTeamMembersApiV1TeamsTeamIdMembersGetQueryResult = NonNullable< export type GetTeamMembersApiV1TeamsTeamIdMembersGetQueryError = HTTPValidationError; +export function useGetTeamMembersApiV1TeamsTeamIdMembersGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + teamId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetTeamMembersApiV1TeamsTeamIdMembersGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + teamId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetTeamMembersApiV1TeamsTeamIdMembersGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + teamId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Team Members */ -export const useGetTeamMembersApiV1TeamsTeamIdMembersGet = < + +export function useGetTeamMembersApiV1TeamsTeamIdMembersGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -507,39 +806,46 @@ export const useGetTeamMembersApiV1TeamsTeamIdMembersGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetTeamMembersApiV1TeamsTeamIdMembersGetQueryOptions( teamId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Add a member to a team. - -Requires admin scope. + * + * Requires admin scope. * @summary Add Team Member */ export const addTeamMemberApiV1TeamsTeamIdMembersPost = ( teamId: string, teamMemberAdd: TeamMemberAdd, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/teams/${teamId}/members`, method: "POST", headers: { "Content-Type": "application/json" }, data: teamMemberAdd, + signal, }); }; +export const getAddTeamMemberApiV1TeamsTeamIdMembersPostMutationKey = () => + ["addTeamMemberApiV1TeamsTeamIdMembersPost"] as const; + export const getAddTeamMemberApiV1TeamsTeamIdMembersPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -547,20 +853,27 @@ export const getAddTeamMemberApiV1TeamsTeamIdMembersPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { teamId: string; data: TeamMemberAdd }, + AddTeamMemberApiV1TeamsTeamIdMembersPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { teamId: string; data: TeamMemberAdd }, + AddTeamMemberApiV1TeamsTeamIdMembersPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getAddTeamMemberApiV1TeamsTeamIdMembersPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { teamId: string; data: TeamMemberAdd } + AddTeamMemberApiV1TeamsTeamIdMembersPostMutationVariables > = (props) => { const { teamId, data } = props ?? {}; @@ -578,6 +891,10 @@ export type AddTeamMemberApiV1TeamsTeamIdMembersPostMutationBody = TeamMemberAdd; export type AddTeamMemberApiV1TeamsTeamIdMembersPostMutationError = HTTPValidationError; +export type AddTeamMemberApiV1TeamsTeamIdMembersPostMutationVariables = { + teamId: string; + data: TeamMemberAdd; +}; /** * @summary Add Team Member @@ -585,40 +902,48 @@ export type AddTeamMemberApiV1TeamsTeamIdMembersPostMutationError = export const useAddTeamMemberApiV1TeamsTeamIdMembersPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { teamId: string; data: TeamMemberAdd }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + AddTeamMemberApiV1TeamsTeamIdMembersPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { teamId: string; data: TeamMemberAdd }, + AddTeamMemberApiV1TeamsTeamIdMembersPostMutationVariables, TContext > => { - const mutationOptions = - getAddTeamMemberApiV1TeamsTeamIdMembersPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getAddTeamMemberApiV1TeamsTeamIdMembersPostMutationOptions(options), + queryClient, + ); }; /** * Remove a member from a team. - -Requires admin scope. + * + * Requires admin scope. * @summary Remove Team Member */ export const removeTeamMemberApiV1TeamsTeamIdMembersUserIdDelete = ( teamId: string, userId: string, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/teams/${teamId}/members/${userId}`, method: "DELETE", + signal, }); }; +export const getRemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationKey = + () => ["removeTeamMemberApiV1TeamsTeamIdMembersUserIdDelete"] as const; + export const getRemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -626,7 +951,7 @@ export const getRemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationOptio ReturnType >, TError, - { teamId: string; userId: string }, + RemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -634,16 +959,24 @@ export const getRemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationOptio ReturnType >, TError, - { teamId: string; userId: string }, + RemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getRemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { teamId: string; userId: string } + RemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationVariables > = (props) => { const { teamId, userId } = props ?? {}; @@ -665,6 +998,8 @@ export type RemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationResult = export type RemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationError = HTTPValidationError; +export type RemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationVariables = + { teamId: string; userId: string }; /** * @summary Remove Team Member @@ -672,34 +1007,37 @@ export type RemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationError = export const useRemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { teamId: string; userId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + RemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { teamId: string; userId: string }, + RemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getRemoveTeamMemberApiV1TeamsTeamIdMembersUserIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Get the full policy configuration for a team. - -Returns the team policy, all overrides, and queue limits. + * + * Returns the team policy, all overrides, and queue limits. * @summary Get Team Policy */ export const getTeamPolicyApiV1TeamsTeamIdPolicyGet = ( @@ -747,13 +1085,13 @@ export const getGetTeamPolicyApiV1TeamsTeamIdPolicyGetQueryOptions = < return { queryKey, queryFn, - enabled: !!teamId, + enabled: teamId !== null && teamId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetTeamPolicyApiV1TeamsTeamIdPolicyGetQueryResult = NonNullable< @@ -762,10 +1100,81 @@ export type GetTeamPolicyApiV1TeamsTeamIdPolicyGetQueryResult = NonNullable< export type GetTeamPolicyApiV1TeamsTeamIdPolicyGetQueryError = HTTPValidationError; +export function useGetTeamPolicyApiV1TeamsTeamIdPolicyGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + teamId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetTeamPolicyApiV1TeamsTeamIdPolicyGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + teamId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetTeamPolicyApiV1TeamsTeamIdPolicyGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + teamId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Team Policy */ -export const useGetTeamPolicyApiV1TeamsTeamIdPolicyGet = < + +export function useGetTeamPolicyApiV1TeamsTeamIdPolicyGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -779,39 +1188,46 @@ export const useGetTeamPolicyApiV1TeamsTeamIdPolicyGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetTeamPolicyApiV1TeamsTeamIdPolicyGetQueryOptions( teamId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Update or create the team policy. - -Requires admin scope. + * + * Requires admin scope. * @summary Update Team Policy */ export const updateTeamPolicyApiV1TeamsTeamIdPolicyPut = ( teamId: string, teamPolicyUpdate: TeamPolicyUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/teams/${teamId}/policy`, method: "PUT", headers: { "Content-Type": "application/json" }, data: teamPolicyUpdate, + signal, }); }; +export const getUpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationKey = () => + ["updateTeamPolicyApiV1TeamsTeamIdPolicyPut"] as const; + export const getUpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -819,20 +1235,27 @@ export const getUpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { teamId: string; data: TeamPolicyUpdate }, + UpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { teamId: string; data: TeamPolicyUpdate }, + UpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getUpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { teamId: string; data: TeamPolicyUpdate } + UpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationVariables > = (props) => { const { teamId, data } = props ?? {}; @@ -850,6 +1273,10 @@ export type UpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationBody = TeamPolicyUpdate; export type UpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationError = HTTPValidationError; +export type UpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationVariables = { + teamId: string; + data: TeamPolicyUpdate; +}; /** * @summary Update Team Policy @@ -857,42 +1284,50 @@ export type UpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationError = export const useUpdateTeamPolicyApiV1TeamsTeamIdPolicyPut = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { teamId: string; data: TeamPolicyUpdate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + UpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { teamId: string; data: TeamPolicyUpdate }, + UpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationVariables, TContext > => { - const mutationOptions = - getUpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getUpdateTeamPolicyApiV1TeamsTeamIdPolicyPutMutationOptions(options), + queryClient, + ); }; /** * Create a policy override for a dataset or tag. - -Requires admin scope. + * + * Requires admin scope. * @summary Create Policy Override */ export const createPolicyOverrideApiV1TeamsTeamIdPolicyOverridesPost = ( teamId: string, teamPolicyOverrideCreate: TeamPolicyOverrideCreate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/teams/${teamId}/policy/overrides`, method: "POST", headers: { "Content-Type": "application/json" }, data: teamPolicyOverrideCreate, + signal, }); }; +export const getCreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationKey = + () => ["createPolicyOverrideApiV1TeamsTeamIdPolicyOverridesPost"] as const; + export const getCreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -902,7 +1337,7 @@ export const getCreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationO > >, TError, - { teamId: string; data: TeamPolicyOverrideCreate }, + CreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationVariables, TContext >; }): UseMutationOptions< @@ -910,10 +1345,18 @@ export const getCreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationO ReturnType >, TError, - { teamId: string; data: TeamPolicyOverrideCreate }, + CreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getCreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -921,7 +1364,7 @@ export const getCreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationO typeof createPolicyOverrideApiV1TeamsTeamIdPolicyOverridesPost > >, - { teamId: string; data: TeamPolicyOverrideCreate } + CreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationVariables > = (props) => { const { teamId, data } = props ?? {}; @@ -944,6 +1387,8 @@ export type CreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationBody TeamPolicyOverrideCreate; export type CreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationError = HTTPValidationError; +export type CreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationVariables = + { teamId: string; data: TeamPolicyOverrideCreate }; /** * @summary Create Policy Override @@ -951,34 +1396,39 @@ export type CreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationError export const useCreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { teamId: string; data: TeamPolicyOverrideCreate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof createPolicyOverrideApiV1TeamsTeamIdPolicyOverridesPost + > + >, + TError, + CreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { teamId: string; data: TeamPolicyOverrideCreate }, + CreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getCreatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesPostMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Update a policy override. - -Requires admin scope. + * + * Requires admin scope. * @summary Update Policy Override */ export const updatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut = @@ -986,15 +1436,23 @@ export const updatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut = teamId: string, overrideId: string, teamPolicyOverrideUpdate: TeamPolicyOverrideUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/teams/${teamId}/policy/overrides/${overrideId}`, method: "PUT", headers: { "Content-Type": "application/json" }, data: teamPolicyOverrideUpdate, + signal, }); }; +export const getUpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationKey = + () => + [ + "updatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut", + ] as const; + export const getUpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1004,7 +1462,7 @@ export const getUpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut > >, TError, - { teamId: string; overrideId: string; data: TeamPolicyOverrideUpdate }, + UpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationVariables, TContext >; }): UseMutationOptions< @@ -1014,10 +1472,18 @@ export const getUpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut > >, TError, - { teamId: string; overrideId: string; data: TeamPolicyOverrideUpdate }, + UpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getUpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -1025,7 +1491,7 @@ export const getUpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut typeof updatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut > >, - { teamId: string; overrideId: string; data: TeamPolicyOverrideUpdate } + UpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationVariables > = (props) => { const { teamId, overrideId, data } = props ?? {}; @@ -1051,53 +1517,65 @@ export type UpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMuta TeamPolicyOverrideUpdate; export type UpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationError = HTTPValidationError; +export type UpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationVariables = + { teamId: string; overrideId: string; data: TeamPolicyOverrideUpdate }; /** * @summary Update Policy Override */ export const useUpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof updatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut - > - >, - TError, - { teamId: string; overrideId: string; data: TeamPolicyOverrideUpdate }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof updatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut + > + >, + TError, + UpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof updatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPut > >, TError, - { teamId: string; overrideId: string; data: TeamPolicyOverrideUpdate }, + UpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getUpdatePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdPutMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Delete a policy override. - -Requires admin scope. + * + * Requires admin scope. * @summary Delete Policy Override */ export const deletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDelete = - (teamId: string, overrideId: string) => { + (teamId: string, overrideId: string, signal?: AbortSignal) => { return customInstance({ url: `/api/v1/teams/${teamId}/policy/overrides/${overrideId}`, method: "DELETE", + signal, }); }; +export const getDeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationKey = + () => + [ + "deletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDelete", + ] as const; + export const getDeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1107,7 +1585,7 @@ export const getDeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDel > >, TError, - { teamId: string; overrideId: string }, + DeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationVariables, TContext >; }): UseMutationOptions< @@ -1117,10 +1595,18 @@ export const getDeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDel > >, TError, - { teamId: string; overrideId: string }, + DeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getDeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< @@ -1128,7 +1614,7 @@ export const getDeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDel typeof deletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDelete > >, - { teamId: string; overrideId: string } + DeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationVariables > = (props) => { const { teamId, overrideId } = props ?? {}; @@ -1152,57 +1638,67 @@ export type DeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteM export type DeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationError = HTTPValidationError; +export type DeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationVariables = + { teamId: string; overrideId: string }; /** * @summary Delete Policy Override */ export const useDeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDelete = - (options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType< - typeof deletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDelete - > - >, - TError, - { teamId: string; overrideId: string }, - TContext - >; - }): UseMutationResult< + ( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType< + typeof deletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDelete + > + >, + TError, + DeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, + ): UseMutationResult< Awaited< ReturnType< typeof deletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDelete > >, TError, - { teamId: string; overrideId: string }, + DeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getDeletePolicyOverrideApiV1TeamsTeamIdPolicyOverridesOverrideIdDeleteMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; /** * Update or create queue limits for a team. - -Requires admin scope. + * + * Requires admin scope. * @summary Update Queue Limits */ export const updateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPut = ( teamId: string, teamQueueLimitsUpdate: TeamQueueLimitsUpdate, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/teams/${teamId}/policy/queue-limits`, method: "PUT", headers: { "Content-Type": "application/json" }, data: teamQueueLimitsUpdate, + signal, }); }; +export const getUpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationKey = + () => ["updateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPut"] as const; + export const getUpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationOptions = (options?: { mutation?: UseMutationOptions< @@ -1210,7 +1706,7 @@ export const getUpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationOpt ReturnType >, TError, - { teamId: string; data: TeamQueueLimitsUpdate }, + UpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationVariables, TContext >; }): UseMutationOptions< @@ -1218,16 +1714,24 @@ export const getUpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationOpt ReturnType >, TError, - { teamId: string; data: TeamQueueLimitsUpdate }, + UpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = + getUpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited< ReturnType >, - { teamId: string; data: TeamQueueLimitsUpdate } + UpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationVariables > = (props) => { const { teamId, data } = props ?? {}; @@ -1250,6 +1754,8 @@ export type UpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationBody = TeamQueueLimitsUpdate; export type UpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationError = HTTPValidationError; +export type UpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationVariables = + { teamId: string; data: TeamQueueLimitsUpdate }; /** * @summary Update Queue Limits @@ -1257,27 +1763,30 @@ export type UpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationError = export const useUpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPut = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited< - ReturnType - >, - TError, - { teamId: string; data: TeamQueueLimitsUpdate }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited< + ReturnType + >, + TError, + UpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited< ReturnType >, TError, - { teamId: string; data: TeamQueueLimitsUpdate }, + UpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationVariables, TContext > => { - const mutationOptions = + return useMutation( getUpdateQueueLimitsApiV1TeamsTeamIdPolicyQueueLimitsPutMutationOptions( options, - ); - - return useMutation(mutationOptions); + ), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/generated/usage/usage.ts b/frontend/app/src/lib/api/generated/usage/usage.ts index 8c63116a9..2e4fdbfb5 100644 --- a/frontend/app/src/lib/api/generated/usage/usage.ts +++ b/frontend/app/src/lib/api/generated/usage/usage.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,39 @@ */ import { useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { UsageMetricsResponse } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * Get current usage metrics for tenant. * @summary Get Usage Metrics @@ -56,7 +81,7 @@ export const getGetUsageMetricsApiV1UsageMetricsGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetUsageMetricsApiV1UsageMetricsGetQueryResult = NonNullable< @@ -64,29 +89,101 @@ export type GetUsageMetricsApiV1UsageMetricsGetQueryResult = NonNullable< >; export type GetUsageMetricsApiV1UsageMetricsGetQueryError = unknown; +export function useGetUsageMetricsApiV1UsageMetricsGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetUsageMetricsApiV1UsageMetricsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetUsageMetricsApiV1UsageMetricsGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Usage Metrics */ -export const useGetUsageMetricsApiV1UsageMetricsGet = < + +export function useGetUsageMetricsApiV1UsageMetricsGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetUsageMetricsApiV1UsageMetricsGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/frontend/app/src/lib/api/generated/users/users.ts b/frontend/app/src/lib/api/generated/users/users.ts index 301a5b212..527637c43 100644 --- a/frontend/app/src/lib/api/generated/users/users.ts +++ b/frontend/app/src/lib/api/generated/users/users.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,14 +7,20 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, MutationFunction, + QueryClient, QueryFunction, QueryKey, + UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, } from "@tanstack/react-query"; + import type { CreateUserRequest, HTTPValidationError, @@ -28,8 +34,27 @@ import type { UserListResponse, UserResponse, } from "../../model"; + import { customInstance } from "../../client"; +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + /** * List all users for the tenant. * @summary List Users @@ -71,7 +96,7 @@ export const getListUsersApiV1UsersGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListUsersApiV1UsersGetQueryResult = NonNullable< @@ -79,49 +104,126 @@ export type ListUsersApiV1UsersGetQueryResult = NonNullable< >; export type ListUsersApiV1UsersGetQueryError = unknown; +export function useListUsersApiV1UsersGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListUsersApiV1UsersGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListUsersApiV1UsersGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Users */ -export const useListUsersApiV1UsersGet = < + +export function useListUsersApiV1UsersGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListUsersApiV1UsersGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Create a new user. - -Requires admin scope. + * + * Requires admin scope. * @summary Create User */ export const createUserApiV1UsersPost = ( createUserRequest: CreateUserRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/users/`, method: "POST", headers: { "Content-Type": "application/json" }, data: createUserRequest, + signal, }); }; +export const getCreateUserApiV1UsersPostMutationKey = () => + ["createUserApiV1UsersPost"] as const; + export const getCreateUserApiV1UsersPostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -129,20 +231,27 @@ export const getCreateUserApiV1UsersPostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: CreateUserRequest }, + CreateUserApiV1UsersPostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: CreateUserRequest }, + CreateUserApiV1UsersPostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getCreateUserApiV1UsersPostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: CreateUserRequest } + CreateUserApiV1UsersPostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -157,6 +266,9 @@ export type CreateUserApiV1UsersPostMutationResult = NonNullable< >; export type CreateUserApiV1UsersPostMutationBody = CreateUserRequest; export type CreateUserApiV1UsersPostMutationError = HTTPValidationError; +export type CreateUserApiV1UsersPostMutationVariables = { + data: CreateUserRequest; +}; /** * @summary Create User @@ -164,22 +276,26 @@ export type CreateUserApiV1UsersPostMutationError = HTTPValidationError; export const useCreateUserApiV1UsersPost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: CreateUserRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + CreateUserApiV1UsersPostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: CreateUserRequest }, + CreateUserApiV1UsersPostMutationVariables, TContext > => { - const mutationOptions = getCreateUserApiV1UsersPostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getCreateUserApiV1UsersPostMutationOptions(options), + queryClient, + ); }; /** * Get the current authenticated user's profile. @@ -222,7 +338,7 @@ export const getGetCurrentUserApiV1UsersMeGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetCurrentUserApiV1UsersMeGetQueryResult = NonNullable< @@ -230,31 +346,103 @@ export type GetCurrentUserApiV1UsersMeGetQueryResult = NonNullable< >; export type GetCurrentUserApiV1UsersMeGetQueryError = unknown; +export function useGetCurrentUserApiV1UsersMeGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetCurrentUserApiV1UsersMeGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetCurrentUserApiV1UsersMeGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get Current User */ -export const useGetCurrentUserApiV1UsersMeGet = < + +export function useGetCurrentUserApiV1UsersMeGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetCurrentUserApiV1UsersMeGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * List all members of the current organization (JWT auth). @@ -298,7 +486,7 @@ export const getListOrgMembersApiV1UsersOrgMembersGetQueryOptions = < Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type ListOrgMembersApiV1UsersOrgMembersGetQueryResult = NonNullable< @@ -306,50 +494,127 @@ export type ListOrgMembersApiV1UsersOrgMembersGetQueryResult = NonNullable< >; export type ListOrgMembersApiV1UsersOrgMembersGetQueryError = unknown; +export function useListOrgMembersApiV1UsersOrgMembersGet< + TData = Awaited>, + TError = unknown, +>( + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useListOrgMembersApiV1UsersOrgMembersGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useListOrgMembersApiV1UsersOrgMembersGet< + TData = Awaited>, + TError = unknown, +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary List Org Members */ -export const useListOrgMembersApiV1UsersOrgMembersGet = < + +export function useListOrgMembersApiV1UsersOrgMembersGet< TData = Awaited>, TError = unknown, ->(options?: { - query?: Partial< - UseQueryOptions< - Awaited>, - TError, - TData - > - >; -}): UseQueryResult & { queryKey: QueryKey } => { +>( + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getListOrgMembersApiV1UsersOrgMembersGetQueryOptions(options); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; - - query.queryKey = queryOptions.queryKey; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Invite a user to the organization (admin only). - -If user exists, adds them to the org. If not, creates a new user. + * + * If user exists, adds them to the org. If not, creates a new user. * @summary Invite User */ export const inviteUserApiV1UsersInvitePost = ( inviteUserRequest: InviteUserRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/users/invite`, method: "POST", headers: { "Content-Type": "application/json" }, data: inviteUserRequest, + signal, }); }; +export const getInviteUserApiV1UsersInvitePostMutationKey = () => + ["inviteUserApiV1UsersInvitePost"] as const; + export const getInviteUserApiV1UsersInvitePostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -357,20 +622,27 @@ export const getInviteUserApiV1UsersInvitePostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { data: InviteUserRequest }, + InviteUserApiV1UsersInvitePostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { data: InviteUserRequest }, + InviteUserApiV1UsersInvitePostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getInviteUserApiV1UsersInvitePostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { data: InviteUserRequest } + InviteUserApiV1UsersInvitePostMutationVariables > = (props) => { const { data } = props ?? {}; @@ -385,6 +657,9 @@ export type InviteUserApiV1UsersInvitePostMutationResult = NonNullable< >; export type InviteUserApiV1UsersInvitePostMutationBody = InviteUserRequest; export type InviteUserApiV1UsersInvitePostMutationError = HTTPValidationError; +export type InviteUserApiV1UsersInvitePostMutationVariables = { + data: InviteUserRequest; +}; /** * @summary Invite User @@ -392,23 +667,26 @@ export type InviteUserApiV1UsersInvitePostMutationError = HTTPValidationError; export const useInviteUserApiV1UsersInvitePost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { data: InviteUserRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + InviteUserApiV1UsersInvitePostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { data: InviteUserRequest }, + InviteUserApiV1UsersInvitePostMutationVariables, TContext > => { - const mutationOptions = - getInviteUserApiV1UsersInvitePostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getInviteUserApiV1UsersInvitePostMutationOptions(options), + queryClient, + ); }; /** * Get a specific user. @@ -456,13 +734,13 @@ export const getGetUserApiV1UsersUserIdGetQueryOptions = < return { queryKey, queryFn, - enabled: !!userId, + enabled: userId !== null && userId !== undefined, ...queryOptions, } as UseQueryOptions< Awaited>, TError, TData - > & { queryKey: QueryKey }; + > & { queryKey: DataTag }; }; export type GetUserApiV1UsersUserIdGetQueryResult = NonNullable< @@ -470,10 +748,81 @@ export type GetUserApiV1UsersUserIdGetQueryResult = NonNullable< >; export type GetUserApiV1UsersUserIdGetQueryError = HTTPValidationError; +export function useGetUserApiV1UsersUserIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + userId: string, + options: { + query: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetUserApiV1UsersUserIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + userId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetUserApiV1UsersUserIdGet< + TData = Awaited>, + TError = HTTPValidationError, +>( + userId: string, + options?: { + query?: Partial< + UseQueryOptions< + Awaited>, + TError, + TData + > + >; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; /** * @summary Get User */ -export const useGetUserApiV1UsersUserIdGet = < + +export function useGetUserApiV1UsersUserIdGet< TData = Awaited>, TError = HTTPValidationError, >( @@ -487,39 +836,46 @@ export const useGetUserApiV1UsersUserIdGet = < > >; }, -): UseQueryResult & { queryKey: QueryKey } => { + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { const queryOptions = getGetUserApiV1UsersUserIdGetQueryOptions( userId, options, ); - const query = useQuery(queryOptions) as UseQueryResult & { - queryKey: QueryKey; - }; + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; - query.queryKey = queryOptions.queryKey; - - return query; -}; + return withQueryKey(query, queryOptions.queryKey); +} /** * Update a user. - -Requires admin scope. + * + * Requires admin scope. * @summary Update User */ export const updateUserApiV1UsersUserIdPatch = ( userId: string, updateUserRequest: UpdateUserRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/users/${userId}`, method: "PATCH", headers: { "Content-Type": "application/json" }, data: updateUserRequest, + signal, }); }; +export const getUpdateUserApiV1UsersUserIdPatchMutationKey = () => + ["updateUserApiV1UsersUserIdPatch"] as const; + export const getUpdateUserApiV1UsersUserIdPatchMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -527,20 +883,27 @@ export const getUpdateUserApiV1UsersUserIdPatchMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { userId: string; data: UpdateUserRequest }, + UpdateUserApiV1UsersUserIdPatchMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { userId: string; data: UpdateUserRequest }, + UpdateUserApiV1UsersUserIdPatchMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getUpdateUserApiV1UsersUserIdPatchMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { userId: string; data: UpdateUserRequest } + UpdateUserApiV1UsersUserIdPatchMutationVariables > = (props) => { const { userId, data } = props ?? {}; @@ -555,6 +918,10 @@ export type UpdateUserApiV1UsersUserIdPatchMutationResult = NonNullable< >; export type UpdateUserApiV1UsersUserIdPatchMutationBody = UpdateUserRequest; export type UpdateUserApiV1UsersUserIdPatchMutationError = HTTPValidationError; +export type UpdateUserApiV1UsersUserIdPatchMutationVariables = { + userId: string; + data: UpdateUserRequest; +}; /** * @summary Update User @@ -562,37 +929,47 @@ export type UpdateUserApiV1UsersUserIdPatchMutationError = HTTPValidationError; export const useUpdateUserApiV1UsersUserIdPatch = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { userId: string; data: UpdateUserRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + UpdateUserApiV1UsersUserIdPatchMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { userId: string; data: UpdateUserRequest }, + UpdateUserApiV1UsersUserIdPatchMutationVariables, TContext > => { - const mutationOptions = - getUpdateUserApiV1UsersUserIdPatchMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getUpdateUserApiV1UsersUserIdPatchMutationOptions(options), + queryClient, + ); }; /** * Deactivate a user (soft delete). - -Requires admin scope. Users cannot delete themselves. + * + * Requires admin scope. Users cannot delete themselves. * @summary Deactivate User */ -export const deactivateUserApiV1UsersUserIdDelete = (userId: string) => { +export const deactivateUserApiV1UsersUserIdDelete = ( + userId: string, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/users/${userId}`, method: "DELETE", + signal, }); }; +export const getDeactivateUserApiV1UsersUserIdDeleteMutationKey = () => + ["deactivateUserApiV1UsersUserIdDelete"] as const; + export const getDeactivateUserApiV1UsersUserIdDeleteMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -600,20 +977,27 @@ export const getDeactivateUserApiV1UsersUserIdDeleteMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { userId: string }, + DeactivateUserApiV1UsersUserIdDeleteMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { userId: string }, + DeactivateUserApiV1UsersUserIdDeleteMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getDeactivateUserApiV1UsersUserIdDeleteMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { userId: string } + DeactivateUserApiV1UsersUserIdDeleteMutationVariables > = (props) => { const { userId } = props ?? {}; @@ -629,6 +1013,9 @@ export type DeactivateUserApiV1UsersUserIdDeleteMutationResult = NonNullable< export type DeactivateUserApiV1UsersUserIdDeleteMutationError = HTTPValidationError; +export type DeactivateUserApiV1UsersUserIdDeleteMutationVariables = { + userId: string; +}; /** * @summary Deactivate User @@ -636,23 +1023,26 @@ export type DeactivateUserApiV1UsersUserIdDeleteMutationError = export const useDeactivateUserApiV1UsersUserIdDelete = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { userId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + DeactivateUserApiV1UsersUserIdDeleteMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { userId: string }, + DeactivateUserApiV1UsersUserIdDeleteMutationVariables, TContext > => { - const mutationOptions = - getDeactivateUserApiV1UsersUserIdDeleteMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getDeactivateUserApiV1UsersUserIdDeleteMutationOptions(options), + queryClient, + ); }; /** * Update a member's role in the organization (admin only). @@ -661,15 +1051,20 @@ export const useDeactivateUserApiV1UsersUserIdDelete = < export const updateMemberRoleApiV1UsersUserIdRolePatch = ( userId: string, updateRoleRequest: UpdateRoleRequest, + signal?: AbortSignal, ) => { return customInstance({ url: `/api/v1/users/${userId}/role`, method: "PATCH", headers: { "Content-Type": "application/json" }, data: updateRoleRequest, + signal, }); }; +export const getUpdateMemberRoleApiV1UsersUserIdRolePatchMutationKey = () => + ["updateMemberRoleApiV1UsersUserIdRolePatch"] as const; + export const getUpdateMemberRoleApiV1UsersUserIdRolePatchMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -677,20 +1072,27 @@ export const getUpdateMemberRoleApiV1UsersUserIdRolePatchMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { userId: string; data: UpdateRoleRequest }, + UpdateMemberRoleApiV1UsersUserIdRolePatchMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { userId: string; data: UpdateRoleRequest }, + UpdateMemberRoleApiV1UsersUserIdRolePatchMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getUpdateMemberRoleApiV1UsersUserIdRolePatchMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { userId: string; data: UpdateRoleRequest } + UpdateMemberRoleApiV1UsersUserIdRolePatchMutationVariables > = (props) => { const { userId, data } = props ?? {}; @@ -708,6 +1110,10 @@ export type UpdateMemberRoleApiV1UsersUserIdRolePatchMutationBody = UpdateRoleRequest; export type UpdateMemberRoleApiV1UsersUserIdRolePatchMutationError = HTTPValidationError; +export type UpdateMemberRoleApiV1UsersUserIdRolePatchMutationVariables = { + userId: string; + data: UpdateRoleRequest; +}; /** * @summary Update Member Role @@ -715,35 +1121,45 @@ export type UpdateMemberRoleApiV1UsersUserIdRolePatchMutationError = export const useUpdateMemberRoleApiV1UsersUserIdRolePatch = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { userId: string; data: UpdateRoleRequest }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + UpdateMemberRoleApiV1UsersUserIdRolePatchMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { userId: string; data: UpdateRoleRequest }, + UpdateMemberRoleApiV1UsersUserIdRolePatchMutationVariables, TContext > => { - const mutationOptions = - getUpdateMemberRoleApiV1UsersUserIdRolePatchMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getUpdateMemberRoleApiV1UsersUserIdRolePatchMutationOptions(options), + queryClient, + ); }; /** * Remove a member from the organization (admin only). * @summary Remove Org Member */ -export const removeOrgMemberApiV1UsersUserIdRemovePost = (userId: string) => { +export const removeOrgMemberApiV1UsersUserIdRemovePost = ( + userId: string, + signal?: AbortSignal, +) => { return customInstance({ url: `/api/v1/users/${userId}/remove`, method: "POST", + signal, }); }; +export const getRemoveOrgMemberApiV1UsersUserIdRemovePostMutationKey = () => + ["removeOrgMemberApiV1UsersUserIdRemovePost"] as const; + export const getRemoveOrgMemberApiV1UsersUserIdRemovePostMutationOptions = < TError = HTTPValidationError, TContext = unknown, @@ -751,20 +1167,27 @@ export const getRemoveOrgMemberApiV1UsersUserIdRemovePostMutationOptions = < mutation?: UseMutationOptions< Awaited>, TError, - { userId: string }, + RemoveOrgMemberApiV1UsersUserIdRemovePostMutationVariables, TContext >; }): UseMutationOptions< Awaited>, TError, - { userId: string }, + RemoveOrgMemberApiV1UsersUserIdRemovePostMutationVariables, TContext > => { - const { mutation: mutationOptions } = options ?? {}; + const mutationKey = getRemoveOrgMemberApiV1UsersUserIdRemovePostMutationKey(); + const { mutation: mutationOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey } }; const mutationFn: MutationFunction< Awaited>, - { userId: string } + RemoveOrgMemberApiV1UsersUserIdRemovePostMutationVariables > = (props) => { const { userId } = props ?? {}; @@ -781,6 +1204,9 @@ export type RemoveOrgMemberApiV1UsersUserIdRemovePostMutationResult = export type RemoveOrgMemberApiV1UsersUserIdRemovePostMutationError = HTTPValidationError; +export type RemoveOrgMemberApiV1UsersUserIdRemovePostMutationVariables = { + userId: string; +}; /** * @summary Remove Org Member @@ -788,21 +1214,24 @@ export type RemoveOrgMemberApiV1UsersUserIdRemovePostMutationError = export const useRemoveOrgMemberApiV1UsersUserIdRemovePost = < TError = HTTPValidationError, TContext = unknown, ->(options?: { - mutation?: UseMutationOptions< - Awaited>, - TError, - { userId: string }, - TContext - >; -}): UseMutationResult< +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + RemoveOrgMemberApiV1UsersUserIdRemovePostMutationVariables, + TContext + >; + }, + queryClient?: QueryClient, +): UseMutationResult< Awaited>, TError, - { userId: string }, + RemoveOrgMemberApiV1UsersUserIdRemovePostMutationVariables, TContext > => { - const mutationOptions = - getRemoveOrgMemberApiV1UsersUserIdRemovePostMutationOptions(options); - - return useMutation(mutationOptions); + return useMutation( + getRemoveOrgMemberApiV1UsersUserIdRemovePostMutationOptions(options), + queryClient, + ); }; diff --git a/frontend/app/src/lib/api/model/activationFunnelResponse.ts b/frontend/app/src/lib/api/model/activationFunnelResponse.ts index e070cc8cf..5483ed593 100644 --- a/frontend/app/src/lib/api/model/activationFunnelResponse.ts +++ b/frontend/app/src/lib/api/model/activationFunnelResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/activationStatusResponse.ts b/frontend/app/src/lib/api/model/activationStatusResponse.ts index c35a9ae7a..f7ee4ca6a 100644 --- a/frontend/app/src/lib/api/model/activationStatusResponse.ts +++ b/frontend/app/src/lib/api/model/activationStatusResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/activationStatusResponseActivatedAt.ts b/frontend/app/src/lib/api/model/activationStatusResponseActivatedAt.ts index 30623c582..4690a5064 100644 --- a/frontend/app/src/lib/api/model/activationStatusResponseActivatedAt.ts +++ b/frontend/app/src/lib/api/model/activationStatusResponseActivatedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/activationStatusResponseDaysToActivation.ts b/frontend/app/src/lib/api/model/activationStatusResponseDaysToActivation.ts index b9fdbd9d0..b6d012d93 100644 --- a/frontend/app/src/lib/api/model/activationStatusResponseDaysToActivation.ts +++ b/frontend/app/src/lib/api/model/activationStatusResponseDaysToActivation.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/activationStatusResponseFirstInvestigationAt.ts b/frontend/app/src/lib/api/model/activationStatusResponseFirstInvestigationAt.ts index 6081a3f2e..d4304f63d 100644 --- a/frontend/app/src/lib/api/model/activationStatusResponseFirstInvestigationAt.ts +++ b/frontend/app/src/lib/api/model/activationStatusResponseFirstInvestigationAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/activationStatusResponseFirstIssueAt.ts b/frontend/app/src/lib/api/model/activationStatusResponseFirstIssueAt.ts index d4ea739a4..69f41d54b 100644 --- a/frontend/app/src/lib/api/model/activationStatusResponseFirstIssueAt.ts +++ b/frontend/app/src/lib/api/model/activationStatusResponseFirstIssueAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost201.ts b/frontend/app/src/lib/api/model/addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost201.ts index 28afdc196..4987647b4 100644 --- a/frontend/app/src/lib/api/model/addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost201.ts +++ b/frontend/app/src/lib/api/model/addInvestigationTagApiV1InvestigationsInvestigationIdTagsPost201.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/addTeamMemberApiV1TeamsTeamIdMembersPost201.ts b/frontend/app/src/lib/api/model/addTeamMemberApiV1TeamsTeamIdMembersPost201.ts index 54e39b33d..15aa062a1 100644 --- a/frontend/app/src/lib/api/model/addTeamMemberApiV1TeamsTeamIdMembersPost201.ts +++ b/frontend/app/src/lib/api/model/addTeamMemberApiV1TeamsTeamIdMembersPost201.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/ambiguousAssetCandidate.ts b/frontend/app/src/lib/api/model/ambiguousAssetCandidate.ts index adddcb988..560f59d36 100644 --- a/frontend/app/src/lib/api/model/ambiguousAssetCandidate.ts +++ b/frontend/app/src/lib/api/model/ambiguousAssetCandidate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/ambiguousAssetCandidateConnectionInfo.ts b/frontend/app/src/lib/api/model/ambiguousAssetCandidateConnectionInfo.ts index 077a7cdb1..7b12c4f01 100644 --- a/frontend/app/src/lib/api/model/ambiguousAssetCandidateConnectionInfo.ts +++ b/frontend/app/src/lib/api/model/ambiguousAssetCandidateConnectionInfo.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/ambiguousAssetError.ts b/frontend/app/src/lib/api/model/ambiguousAssetError.ts index ca4d94d37..7ac87d569 100644 --- a/frontend/app/src/lib/api/model/ambiguousAssetError.ts +++ b/frontend/app/src/lib/api/model/ambiguousAssetError.ts @@ -1,12 +1,12 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { AssetRefRequest } from "./assetRefRequest"; import type { AmbiguousAssetCandidate } from "./ambiguousAssetCandidate"; +import type { AssetRefRequest } from "./assetRefRequest"; /** * Error response for ambiguous asset. diff --git a/frontend/app/src/lib/api/model/ambiguousAssetsResponse.ts b/frontend/app/src/lib/api/model/ambiguousAssetsResponse.ts index f1e6eca5a..7ae61e7c2 100644 --- a/frontend/app/src/lib/api/model/ambiguousAssetsResponse.ts +++ b/frontend/app/src/lib/api/model/ambiguousAssetsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/anomalySummary.ts b/frontend/app/src/lib/api/model/anomalySummary.ts index 6f747fd71..aefdb76a1 100644 --- a/frontend/app/src/lib/api/model/anomalySummary.ts +++ b/frontend/app/src/lib/api/model/anomalySummary.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/assetInstanceResult.ts b/frontend/app/src/lib/api/model/assetInstanceResult.ts index 3eca8a0d5..6c12c6935 100644 --- a/frontend/app/src/lib/api/model/assetInstanceResult.ts +++ b/frontend/app/src/lib/api/model/assetInstanceResult.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/assetInstanceResultSchemaName.ts b/frontend/app/src/lib/api/model/assetInstanceResultSchemaName.ts index 5bd24ad3b..5e642bc4e 100644 --- a/frontend/app/src/lib/api/model/assetInstanceResultSchemaName.ts +++ b/frontend/app/src/lib/api/model/assetInstanceResultSchemaName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/assetInstanceSearchResponse.ts b/frontend/app/src/lib/api/model/assetInstanceSearchResponse.ts index 4b53ef24a..10c997e94 100644 --- a/frontend/app/src/lib/api/model/assetInstanceSearchResponse.ts +++ b/frontend/app/src/lib/api/model/assetInstanceSearchResponse.ts @@ -1,12 +1,12 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { AssetInstanceSearchResponseNextCursor } from "./assetInstanceSearchResponseNextCursor"; import type { AssetInstanceResult } from "./assetInstanceResult"; +import type { AssetInstanceSearchResponseNextCursor } from "./assetInstanceSearchResponseNextCursor"; import type { AssetInstanceSearchResponseTotalHint } from "./assetInstanceSearchResponseTotalHint"; /** diff --git a/frontend/app/src/lib/api/model/assetInstanceSearchResponseNextCursor.ts b/frontend/app/src/lib/api/model/assetInstanceSearchResponseNextCursor.ts index c68959fde..317e1715c 100644 --- a/frontend/app/src/lib/api/model/assetInstanceSearchResponseNextCursor.ts +++ b/frontend/app/src/lib/api/model/assetInstanceSearchResponseNextCursor.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/assetInstanceSearchResponseTotalHint.ts b/frontend/app/src/lib/api/model/assetInstanceSearchResponseTotalHint.ts index 5cb7ca5ed..2d6d0d689 100644 --- a/frontend/app/src/lib/api/model/assetInstanceSearchResponseTotalHint.ts +++ b/frontend/app/src/lib/api/model/assetInstanceSearchResponseTotalHint.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/assetRefRequest.ts b/frontend/app/src/lib/api/model/assetRefRequest.ts index 4babd192f..cd6fdca42 100644 --- a/frontend/app/src/lib/api/model/assetRefRequest.ts +++ b/frontend/app/src/lib/api/model/assetRefRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/assetRefRequestDatasourceId.ts b/frontend/app/src/lib/api/model/assetRefRequestDatasourceId.ts index bb7d59184..6412a3083 100644 --- a/frontend/app/src/lib/api/model/assetRefRequestDatasourceId.ts +++ b/frontend/app/src/lib/api/model/assetRefRequestDatasourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/bodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost.ts b/frontend/app/src/lib/api/model/bodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost.ts index 406d2520b..934d2b938 100644 --- a/frontend/app/src/lib/api/model/bodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost.ts +++ b/frontend/app/src/lib/api/model/bodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,5 +7,5 @@ */ export interface BodyImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPost { - file: Blob; + file: Blob | File; } diff --git a/frontend/app/src/lib/api/model/branchStateResponse.ts b/frontend/app/src/lib/api/model/branchStateResponse.ts index cfd6c322f..daf0f5574 100644 --- a/frontend/app/src/lib/api/model/branchStateResponse.ts +++ b/frontend/app/src/lib/api/model/branchStateResponse.ts @@ -1,15 +1,15 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ import type { BranchStateResponseEvidenceItem } from "./branchStateResponseEvidenceItem"; -import type { MatchedPatternResponse } from "./matchedPatternResponse"; import type { BranchStateResponseParentBranchId } from "./branchStateResponseParentBranchId"; -import type { StepHistoryItemResponse } from "./stepHistoryItemResponse"; import type { BranchStateResponseSynthesis } from "./branchStateResponseSynthesis"; +import type { MatchedPatternResponse } from "./matchedPatternResponse"; +import type { StepHistoryItemResponse } from "./stepHistoryItemResponse"; /** * State of a branch for API responses. diff --git a/frontend/app/src/lib/api/model/branchStateResponseEvidenceItem.ts b/frontend/app/src/lib/api/model/branchStateResponseEvidenceItem.ts index d7f77ab71..8dddc129c 100644 --- a/frontend/app/src/lib/api/model/branchStateResponseEvidenceItem.ts +++ b/frontend/app/src/lib/api/model/branchStateResponseEvidenceItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/branchStateResponseParentBranchId.ts b/frontend/app/src/lib/api/model/branchStateResponseParentBranchId.ts index 8756127d6..b453ff1e3 100644 --- a/frontend/app/src/lib/api/model/branchStateResponseParentBranchId.ts +++ b/frontend/app/src/lib/api/model/branchStateResponseParentBranchId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/branchStateResponseSynthesis.ts b/frontend/app/src/lib/api/model/branchStateResponseSynthesis.ts index c38b0f808..0f722559e 100644 --- a/frontend/app/src/lib/api/model/branchStateResponseSynthesis.ts +++ b/frontend/app/src/lib/api/model/branchStateResponseSynthesis.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/branchStateResponseSynthesisAnyOf.ts b/frontend/app/src/lib/api/model/branchStateResponseSynthesisAnyOf.ts index c691a3415..d551e0483 100644 --- a/frontend/app/src/lib/api/model/branchStateResponseSynthesisAnyOf.ts +++ b/frontend/app/src/lib/api/model/branchStateResponseSynthesisAnyOf.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/briefClaim.ts b/frontend/app/src/lib/api/model/briefClaim.ts index ea6d0143f..d7af97a9e 100644 --- a/frontend/app/src/lib/api/model/briefClaim.ts +++ b/frontend/app/src/lib/api/model/briefClaim.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/briefClaimMessageId.ts b/frontend/app/src/lib/api/model/briefClaimMessageId.ts index b47b9b331..d225f4394 100644 --- a/frontend/app/src/lib/api/model/briefClaimMessageId.ts +++ b/frontend/app/src/lib/api/model/briefClaimMessageId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/briefClaimQueryResultId.ts b/frontend/app/src/lib/api/model/briefClaimQueryResultId.ts index e776d5279..5c015a60d 100644 --- a/frontend/app/src/lib/api/model/briefClaimQueryResultId.ts +++ b/frontend/app/src/lib/api/model/briefClaimQueryResultId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/briefScope.ts b/frontend/app/src/lib/api/model/briefScope.ts index 0aed8165b..21cd2246e 100644 --- a/frontend/app/src/lib/api/model/briefScope.ts +++ b/frontend/app/src/lib/api/model/briefScope.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/briefScopeDatasourceId.ts b/frontend/app/src/lib/api/model/briefScopeDatasourceId.ts index c4da540b9..28e6a24eb 100644 --- a/frontend/app/src/lib/api/model/briefScopeDatasourceId.ts +++ b/frontend/app/src/lib/api/model/briefScopeDatasourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/briefScopeTimeWindow.ts b/frontend/app/src/lib/api/model/briefScopeTimeWindow.ts index e7c4d3f61..651057624 100644 --- a/frontend/app/src/lib/api/model/briefScopeTimeWindow.ts +++ b/frontend/app/src/lib/api/model/briefScopeTimeWindow.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/bulkImportRequest.ts b/frontend/app/src/lib/api/model/bulkImportRequest.ts index b680817dc..5ca040f72 100644 --- a/frontend/app/src/lib/api/model/bulkImportRequest.ts +++ b/frontend/app/src/lib/api/model/bulkImportRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/bulkImportResponse.ts b/frontend/app/src/lib/api/model/bulkImportResponse.ts index b4a1fa375..c0bbbe889 100644 --- a/frontend/app/src/lib/api/model/bulkImportResponse.ts +++ b/frontend/app/src/lib/api/model/bulkImportResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/bulkRepoMappingItem.ts b/frontend/app/src/lib/api/model/bulkRepoMappingItem.ts index fa9c8379f..ec8481cdf 100644 --- a/frontend/app/src/lib/api/model/bulkRepoMappingItem.ts +++ b/frontend/app/src/lib/api/model/bulkRepoMappingItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/bulkRepoMappingItemBranch.ts b/frontend/app/src/lib/api/model/bulkRepoMappingItemBranch.ts index e701f4ede..793ca84ec 100644 --- a/frontend/app/src/lib/api/model/bulkRepoMappingItemBranch.ts +++ b/frontend/app/src/lib/api/model/bulkRepoMappingItemBranch.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/bulkRepoMappingItemFilePath.ts b/frontend/app/src/lib/api/model/bulkRepoMappingItemFilePath.ts index f114556a9..7516d5f4f 100644 --- a/frontend/app/src/lib/api/model/bulkRepoMappingItemFilePath.ts +++ b/frontend/app/src/lib/api/model/bulkRepoMappingItemFilePath.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/bulkRepoMappingItemJobName.ts b/frontend/app/src/lib/api/model/bulkRepoMappingItemJobName.ts index 4e58fed65..80241cf59 100644 --- a/frontend/app/src/lib/api/model/bulkRepoMappingItemJobName.ts +++ b/frontend/app/src/lib/api/model/bulkRepoMappingItemJobName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/bundleLineageGraphResponse.ts b/frontend/app/src/lib/api/model/bundleLineageGraphResponse.ts index 8275eb23a..f6ed3f311 100644 --- a/frontend/app/src/lib/api/model/bundleLineageGraphResponse.ts +++ b/frontend/app/src/lib/api/model/bundleLineageGraphResponse.ts @@ -1,13 +1,13 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ import type { BundleLineageGraphResponseDatasets } from "./bundleLineageGraphResponseDatasets"; -import type { LineageEdge } from "./lineageEdge"; import type { BundleLineageGraphResponseRoot } from "./bundleLineageGraphResponseRoot"; +import type { LineageEdge } from "./lineageEdge"; /** * Lineage graph response. diff --git a/frontend/app/src/lib/api/model/bundleLineageGraphResponseDatasets.ts b/frontend/app/src/lib/api/model/bundleLineageGraphResponseDatasets.ts index 85f86968c..6fc779a19 100644 --- a/frontend/app/src/lib/api/model/bundleLineageGraphResponseDatasets.ts +++ b/frontend/app/src/lib/api/model/bundleLineageGraphResponseDatasets.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/bundleLineageGraphResponseRoot.ts b/frontend/app/src/lib/api/model/bundleLineageGraphResponseRoot.ts index 3d4e1b600..fe9b91403 100644 --- a/frontend/app/src/lib/api/model/bundleLineageGraphResponseRoot.ts +++ b/frontend/app/src/lib/api/model/bundleLineageGraphResponseRoot.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/cancelInvestigationResponse.ts b/frontend/app/src/lib/api/model/cancelInvestigationResponse.ts index 4de18edc6..ec1264ad2 100644 --- a/frontend/app/src/lib/api/model/cancelInvestigationResponse.ts +++ b/frontend/app/src/lib/api/model/cancelInvestigationResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/chainVerificationResponse.ts b/frontend/app/src/lib/api/model/chainVerificationResponse.ts index 03fc2a962..5021f2229 100644 --- a/frontend/app/src/lib/api/model/chainVerificationResponse.ts +++ b/frontend/app/src/lib/api/model/chainVerificationResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/chainVerificationResponseError.ts b/frontend/app/src/lib/api/model/chainVerificationResponseError.ts index 66c2a6ad8..45dd33a6e 100644 --- a/frontend/app/src/lib/api/model/chainVerificationResponseError.ts +++ b/frontend/app/src/lib/api/model/chainVerificationResponseError.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/chainVerificationResponseFirstBrokenSeq.ts b/frontend/app/src/lib/api/model/chainVerificationResponseFirstBrokenSeq.ts index be9ff9324..6937b9dc2 100644 --- a/frontend/app/src/lib/api/model/chainVerificationResponseFirstBrokenSeq.ts +++ b/frontend/app/src/lib/api/model/chainVerificationResponseFirstBrokenSeq.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/chainVerificationResponseRootHash.ts b/frontend/app/src/lib/api/model/chainVerificationResponseRootHash.ts index 448a7dbef..92aef06ae 100644 --- a/frontend/app/src/lib/api/model/chainVerificationResponseRootHash.ts +++ b/frontend/app/src/lib/api/model/chainVerificationResponseRootHash.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/chainVerificationResponseRootHashMatches.ts b/frontend/app/src/lib/api/model/chainVerificationResponseRootHashMatches.ts index 2a6f88896..110d08809 100644 --- a/frontend/app/src/lib/api/model/chainVerificationResponseRootHashMatches.ts +++ b/frontend/app/src/lib/api/model/chainVerificationResponseRootHashMatches.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/columnLineageListResponse.ts b/frontend/app/src/lib/api/model/columnLineageListResponse.ts index 4ec02d4e3..3219db2b8 100644 --- a/frontend/app/src/lib/api/model/columnLineageListResponse.ts +++ b/frontend/app/src/lib/api/model/columnLineageListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/columnLineageResponse.ts b/frontend/app/src/lib/api/model/columnLineageResponse.ts index 293750054..6fe426ca2 100644 --- a/frontend/app/src/lib/api/model/columnLineageResponse.ts +++ b/frontend/app/src/lib/api/model/columnLineageResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/columnLineageResponseTransformation.ts b/frontend/app/src/lib/api/model/columnLineageResponseTransformation.ts index c5e72e062..9545dcd28 100644 --- a/frontend/app/src/lib/api/model/columnLineageResponseTransformation.ts +++ b/frontend/app/src/lib/api/model/columnLineageResponseTransformation.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configField.ts b/frontend/app/src/lib/api/model/configField.ts index 9af1b4bf0..4ac0b46dd 100644 --- a/frontend/app/src/lib/api/model/configField.ts +++ b/frontend/app/src/lib/api/model/configField.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldDefaultValue.ts b/frontend/app/src/lib/api/model/configFieldDefaultValue.ts index fa67b1826..cab36de8a 100644 --- a/frontend/app/src/lib/api/model/configFieldDefaultValue.ts +++ b/frontend/app/src/lib/api/model/configFieldDefaultValue.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldDescription.ts b/frontend/app/src/lib/api/model/configFieldDescription.ts index e413bdfd7..8bb9373bb 100644 --- a/frontend/app/src/lib/api/model/configFieldDescription.ts +++ b/frontend/app/src/lib/api/model/configFieldDescription.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldHelpUrl.ts b/frontend/app/src/lib/api/model/configFieldHelpUrl.ts index 1b4d4f6aa..4a5850480 100644 --- a/frontend/app/src/lib/api/model/configFieldHelpUrl.ts +++ b/frontend/app/src/lib/api/model/configFieldHelpUrl.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldMaxValue.ts b/frontend/app/src/lib/api/model/configFieldMaxValue.ts index e53b390ea..0787f9e49 100644 --- a/frontend/app/src/lib/api/model/configFieldMaxValue.ts +++ b/frontend/app/src/lib/api/model/configFieldMaxValue.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldMinValue.ts b/frontend/app/src/lib/api/model/configFieldMinValue.ts index 196e7c083..485f4a213 100644 --- a/frontend/app/src/lib/api/model/configFieldMinValue.ts +++ b/frontend/app/src/lib/api/model/configFieldMinValue.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldOption.ts b/frontend/app/src/lib/api/model/configFieldOption.ts index 53807daba..dd930e8fd 100644 --- a/frontend/app/src/lib/api/model/configFieldOption.ts +++ b/frontend/app/src/lib/api/model/configFieldOption.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldOptions.ts b/frontend/app/src/lib/api/model/configFieldOptions.ts index 7d387c8c0..d223f63c9 100644 --- a/frontend/app/src/lib/api/model/configFieldOptions.ts +++ b/frontend/app/src/lib/api/model/configFieldOptions.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldPattern.ts b/frontend/app/src/lib/api/model/configFieldPattern.ts index 601702f44..b80659e34 100644 --- a/frontend/app/src/lib/api/model/configFieldPattern.ts +++ b/frontend/app/src/lib/api/model/configFieldPattern.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldPlaceholder.ts b/frontend/app/src/lib/api/model/configFieldPlaceholder.ts index 204e507d2..e318e123b 100644 --- a/frontend/app/src/lib/api/model/configFieldPlaceholder.ts +++ b/frontend/app/src/lib/api/model/configFieldPlaceholder.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldShowIf.ts b/frontend/app/src/lib/api/model/configFieldShowIf.ts index 9301e7fc6..0d1c6297d 100644 --- a/frontend/app/src/lib/api/model/configFieldShowIf.ts +++ b/frontend/app/src/lib/api/model/configFieldShowIf.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/configFieldType.ts b/frontend/app/src/lib/api/model/configFieldType.ts index 431e010f9..4ef1ce48c 100644 --- a/frontend/app/src/lib/api/model/configFieldType.ts +++ b/frontend/app/src/lib/api/model/configFieldType.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type ConfigFieldType = (typeof ConfigFieldType)[keyof typeof ConfigFieldType]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const ConfigFieldType = { string: "string", integer: "integer", diff --git a/frontend/app/src/lib/api/model/configSchema.ts b/frontend/app/src/lib/api/model/configSchema.ts index 76bac9e78..c3bd30b25 100644 --- a/frontend/app/src/lib/api/model/configSchema.ts +++ b/frontend/app/src/lib/api/model/configSchema.ts @@ -1,12 +1,12 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { FieldGroup } from "./fieldGroup"; import type { ConfigField } from "./configField"; +import type { FieldGroup } from "./fieldGroup"; /** * Configuration schema for an adapter. diff --git a/frontend/app/src/lib/api/model/confirmPasswordResetApiV1AuthPasswordResetConfirmPost200.ts b/frontend/app/src/lib/api/model/confirmPasswordResetApiV1AuthPasswordResetConfirmPost200.ts index 5d484ab45..97fd1a068 100644 --- a/frontend/app/src/lib/api/model/confirmPasswordResetApiV1AuthPasswordResetConfirmPost200.ts +++ b/frontend/app/src/lib/api/model/confirmPasswordResetApiV1AuthPasswordResetConfirmPost200.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/contextBundleResponse.ts b/frontend/app/src/lib/api/model/contextBundleResponse.ts index b38e092d5..5912c7cd4 100644 --- a/frontend/app/src/lib/api/model/contextBundleResponse.ts +++ b/frontend/app/src/lib/api/model/contextBundleResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/contextBundleResponseAnomalies.ts b/frontend/app/src/lib/api/model/contextBundleResponseAnomalies.ts index b179d1565..47d6eb8ca 100644 --- a/frontend/app/src/lib/api/model/contextBundleResponseAnomalies.ts +++ b/frontend/app/src/lib/api/model/contextBundleResponseAnomalies.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/contextBundleResponseDefaultDatasourceId.ts b/frontend/app/src/lib/api/model/contextBundleResponseDefaultDatasourceId.ts index f7f65840c..cf63e58b3 100644 --- a/frontend/app/src/lib/api/model/contextBundleResponseDefaultDatasourceId.ts +++ b/frontend/app/src/lib/api/model/contextBundleResponseDefaultDatasourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/contextBundleResponseLineage.ts b/frontend/app/src/lib/api/model/contextBundleResponseLineage.ts index 236142b14..4a22a8c8d 100644 --- a/frontend/app/src/lib/api/model/contextBundleResponseLineage.ts +++ b/frontend/app/src/lib/api/model/contextBundleResponseLineage.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/contextBundleResponseOperational.ts b/frontend/app/src/lib/api/model/contextBundleResponseOperational.ts index 24a79aa94..90cf033c9 100644 --- a/frontend/app/src/lib/api/model/contextBundleResponseOperational.ts +++ b/frontend/app/src/lib/api/model/contextBundleResponseOperational.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createBundleRequest.ts b/frontend/app/src/lib/api/model/createBundleRequest.ts index 3ba71d913..9885223b7 100644 --- a/frontend/app/src/lib/api/model/createBundleRequest.ts +++ b/frontend/app/src/lib/api/model/createBundleRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createBundleRequestWindow.ts b/frontend/app/src/lib/api/model/createBundleRequestWindow.ts index c0d524693..f450bc189 100644 --- a/frontend/app/src/lib/api/model/createBundleRequestWindow.ts +++ b/frontend/app/src/lib/api/model/createBundleRequestWindow.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createDataSourceRequest.ts b/frontend/app/src/lib/api/model/createDataSourceRequest.ts index 39ca5ad52..b69840f70 100644 --- a/frontend/app/src/lib/api/model/createDataSourceRequest.ts +++ b/frontend/app/src/lib/api/model/createDataSourceRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createDataSourceRequestConfig.ts b/frontend/app/src/lib/api/model/createDataSourceRequestConfig.ts index 01fa5ea6b..a85b662aa 100644 --- a/frontend/app/src/lib/api/model/createDataSourceRequestConfig.ts +++ b/frontend/app/src/lib/api/model/createDataSourceRequestConfig.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createRepoMappingRequest.ts b/frontend/app/src/lib/api/model/createRepoMappingRequest.ts index ae93126ea..86b0a9ea0 100644 --- a/frontend/app/src/lib/api/model/createRepoMappingRequest.ts +++ b/frontend/app/src/lib/api/model/createRepoMappingRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createRepoMappingRequestBranch.ts b/frontend/app/src/lib/api/model/createRepoMappingRequestBranch.ts index 2fb516f22..200552531 100644 --- a/frontend/app/src/lib/api/model/createRepoMappingRequestBranch.ts +++ b/frontend/app/src/lib/api/model/createRepoMappingRequestBranch.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createRepoMappingRequestFilePath.ts b/frontend/app/src/lib/api/model/createRepoMappingRequestFilePath.ts index 00454cd6b..4e5d3ec98 100644 --- a/frontend/app/src/lib/api/model/createRepoMappingRequestFilePath.ts +++ b/frontend/app/src/lib/api/model/createRepoMappingRequestFilePath.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createRepoMappingRequestJobName.ts b/frontend/app/src/lib/api/model/createRepoMappingRequestJobName.ts index 5c6104d28..ca650c655 100644 --- a/frontend/app/src/lib/api/model/createRepoMappingRequestJobName.ts +++ b/frontend/app/src/lib/api/model/createRepoMappingRequestJobName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createRepoMappingRequestMetadata.ts b/frontend/app/src/lib/api/model/createRepoMappingRequestMetadata.ts index 7c418a661..a10a994bf 100644 --- a/frontend/app/src/lib/api/model/createRepoMappingRequestMetadata.ts +++ b/frontend/app/src/lib/api/model/createRepoMappingRequestMetadata.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createRepoMappingRequestMetadataAnyOf.ts b/frontend/app/src/lib/api/model/createRepoMappingRequestMetadataAnyOf.ts index 8d2e35434..be3958050 100644 --- a/frontend/app/src/lib/api/model/createRepoMappingRequestMetadataAnyOf.ts +++ b/frontend/app/src/lib/api/model/createRepoMappingRequestMetadataAnyOf.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createUserRequest.ts b/frontend/app/src/lib/api/model/createUserRequest.ts index 9ea8214d0..e5566da71 100644 --- a/frontend/app/src/lib/api/model/createUserRequest.ts +++ b/frontend/app/src/lib/api/model/createUserRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createUserRequestName.ts b/frontend/app/src/lib/api/model/createUserRequestName.ts index 914b1e395..9ba4b80b1 100644 --- a/frontend/app/src/lib/api/model/createUserRequestName.ts +++ b/frontend/app/src/lib/api/model/createUserRequestName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/createUserRequestRole.ts b/frontend/app/src/lib/api/model/createUserRequestRole.ts index 0fbb87534..865fe17ff 100644 --- a/frontend/app/src/lib/api/model/createUserRequestRole.ts +++ b/frontend/app/src/lib/api/model/createUserRequestRole.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type CreateUserRequestRole = (typeof CreateUserRequestRole)[keyof typeof CreateUserRequestRole]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const CreateUserRequestRole = { admin: "admin", member: "member", diff --git a/frontend/app/src/lib/api/model/credentialsStatusResponse.ts b/frontend/app/src/lib/api/model/credentialsStatusResponse.ts index 307bc14cd..52d14fdb9 100644 --- a/frontend/app/src/lib/api/model/credentialsStatusResponse.ts +++ b/frontend/app/src/lib/api/model/credentialsStatusResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/credentialsStatusResponseCreatedAt.ts b/frontend/app/src/lib/api/model/credentialsStatusResponseCreatedAt.ts index 625bcce7c..923f99262 100644 --- a/frontend/app/src/lib/api/model/credentialsStatusResponseCreatedAt.ts +++ b/frontend/app/src/lib/api/model/credentialsStatusResponseCreatedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/credentialsStatusResponseDbUsername.ts b/frontend/app/src/lib/api/model/credentialsStatusResponseDbUsername.ts index 123d96314..34781308e 100644 --- a/frontend/app/src/lib/api/model/credentialsStatusResponseDbUsername.ts +++ b/frontend/app/src/lib/api/model/credentialsStatusResponseDbUsername.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/credentialsStatusResponseLastUsedAt.ts b/frontend/app/src/lib/api/model/credentialsStatusResponseLastUsedAt.ts index d21675f8d..9ab6ff0ac 100644 --- a/frontend/app/src/lib/api/model/credentialsStatusResponseLastUsedAt.ts +++ b/frontend/app/src/lib/api/model/credentialsStatusResponseLastUsedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/credentialsTestResponse.ts b/frontend/app/src/lib/api/model/credentialsTestResponse.ts index d21e0df1f..bdd1040c4 100644 --- a/frontend/app/src/lib/api/model/credentialsTestResponse.ts +++ b/frontend/app/src/lib/api/model/credentialsTestResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/credentialsTestResponseError.ts b/frontend/app/src/lib/api/model/credentialsTestResponseError.ts index 9176f50ff..c9bc6ff9f 100644 --- a/frontend/app/src/lib/api/model/credentialsTestResponseError.ts +++ b/frontend/app/src/lib/api/model/credentialsTestResponseError.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/credentialsTestResponseTablesAccessible.ts b/frontend/app/src/lib/api/model/credentialsTestResponseTablesAccessible.ts index 56332a40d..dbfb6596f 100644 --- a/frontend/app/src/lib/api/model/credentialsTestResponseTablesAccessible.ts +++ b/frontend/app/src/lib/api/model/credentialsTestResponseTablesAccessible.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/dashboardResponse.ts b/frontend/app/src/lib/api/model/dashboardResponse.ts index 2ebcf36e8..c4c0a45d6 100644 --- a/frontend/app/src/lib/api/model/dashboardResponse.ts +++ b/frontend/app/src/lib/api/model/dashboardResponse.ts @@ -1,12 +1,12 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { RecentInvestigation } from "./recentInvestigation"; import type { DashboardStats } from "./dashboardStats"; +import type { RecentInvestigation } from "./recentInvestigation"; /** * Full dashboard response. diff --git a/frontend/app/src/lib/api/model/dashboardStats.ts b/frontend/app/src/lib/api/model/dashboardStats.ts index 444672405..d664d3dd6 100644 --- a/frontend/app/src/lib/api/model/dashboardStats.ts +++ b/frontend/app/src/lib/api/model/dashboardStats.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/dataSourceListResponse.ts b/frontend/app/src/lib/api/model/dataSourceListResponse.ts index bc52df826..7ae3e8430 100644 --- a/frontend/app/src/lib/api/model/dataSourceListResponse.ts +++ b/frontend/app/src/lib/api/model/dataSourceListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/dataSourceResponse.ts b/frontend/app/src/lib/api/model/dataSourceResponse.ts index b620e35a7..ce8744cb3 100644 --- a/frontend/app/src/lib/api/model/dataSourceResponse.ts +++ b/frontend/app/src/lib/api/model/dataSourceResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/dataSourceResponseLastHealthCheckAt.ts b/frontend/app/src/lib/api/model/dataSourceResponseLastHealthCheckAt.ts index 5448a4917..3b9a9e57b 100644 --- a/frontend/app/src/lib/api/model/dataSourceResponseLastHealthCheckAt.ts +++ b/frontend/app/src/lib/api/model/dataSourceResponseLastHealthCheckAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetDetailResponse.ts b/frontend/app/src/lib/api/model/datasetDetailResponse.ts index 58dc2beb7..13daac803 100644 --- a/frontend/app/src/lib/api/model/datasetDetailResponse.ts +++ b/frontend/app/src/lib/api/model/datasetDetailResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetDetailResponseCatalogName.ts b/frontend/app/src/lib/api/model/datasetDetailResponseCatalogName.ts index 3f889229c..81b5700db 100644 --- a/frontend/app/src/lib/api/model/datasetDetailResponseCatalogName.ts +++ b/frontend/app/src/lib/api/model/datasetDetailResponseCatalogName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetDetailResponseColumnCount.ts b/frontend/app/src/lib/api/model/datasetDetailResponseColumnCount.ts index bc8766506..50c8d6ad3 100644 --- a/frontend/app/src/lib/api/model/datasetDetailResponseColumnCount.ts +++ b/frontend/app/src/lib/api/model/datasetDetailResponseColumnCount.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetDetailResponseColumnsItem.ts b/frontend/app/src/lib/api/model/datasetDetailResponseColumnsItem.ts index 4c0a51aac..e356ba2fb 100644 --- a/frontend/app/src/lib/api/model/datasetDetailResponseColumnsItem.ts +++ b/frontend/app/src/lib/api/model/datasetDetailResponseColumnsItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetDetailResponseDatasourceName.ts b/frontend/app/src/lib/api/model/datasetDetailResponseDatasourceName.ts index 09e068971..001771a15 100644 --- a/frontend/app/src/lib/api/model/datasetDetailResponseDatasourceName.ts +++ b/frontend/app/src/lib/api/model/datasetDetailResponseDatasourceName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetDetailResponseDatasourceType.ts b/frontend/app/src/lib/api/model/datasetDetailResponseDatasourceType.ts index 9ba731325..0bcd23373 100644 --- a/frontend/app/src/lib/api/model/datasetDetailResponseDatasourceType.ts +++ b/frontend/app/src/lib/api/model/datasetDetailResponseDatasourceType.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetDetailResponseLastSyncedAt.ts b/frontend/app/src/lib/api/model/datasetDetailResponseLastSyncedAt.ts index 97f931770..7335c7248 100644 --- a/frontend/app/src/lib/api/model/datasetDetailResponseLastSyncedAt.ts +++ b/frontend/app/src/lib/api/model/datasetDetailResponseLastSyncedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetDetailResponseRowCount.ts b/frontend/app/src/lib/api/model/datasetDetailResponseRowCount.ts index 3f5669bcd..ed74c9ad5 100644 --- a/frontend/app/src/lib/api/model/datasetDetailResponseRowCount.ts +++ b/frontend/app/src/lib/api/model/datasetDetailResponseRowCount.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetDetailResponseSchemaName.ts b/frontend/app/src/lib/api/model/datasetDetailResponseSchemaName.ts index 508ce0020..412304113 100644 --- a/frontend/app/src/lib/api/model/datasetDetailResponseSchemaName.ts +++ b/frontend/app/src/lib/api/model/datasetDetailResponseSchemaName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetInvestigationsResponse.ts b/frontend/app/src/lib/api/model/datasetInvestigationsResponse.ts index 648d8feb6..9c7d235f7 100644 --- a/frontend/app/src/lib/api/model/datasetInvestigationsResponse.ts +++ b/frontend/app/src/lib/api/model/datasetInvestigationsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetRepoResponse.ts b/frontend/app/src/lib/api/model/datasetRepoResponse.ts index 28af884c7..ddfe522c1 100644 --- a/frontend/app/src/lib/api/model/datasetRepoResponse.ts +++ b/frontend/app/src/lib/api/model/datasetRepoResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetRepoResponseAllMatches.ts b/frontend/app/src/lib/api/model/datasetRepoResponseAllMatches.ts index 6f357d5ef..e469549fe 100644 --- a/frontend/app/src/lib/api/model/datasetRepoResponseAllMatches.ts +++ b/frontend/app/src/lib/api/model/datasetRepoResponseAllMatches.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetRepoResponsePrimary.ts b/frontend/app/src/lib/api/model/datasetRepoResponsePrimary.ts index 11e4c6bb4..70dd0e77e 100644 --- a/frontend/app/src/lib/api/model/datasetRepoResponsePrimary.ts +++ b/frontend/app/src/lib/api/model/datasetRepoResponsePrimary.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetResponse.ts b/frontend/app/src/lib/api/model/datasetResponse.ts index 43d8f1c73..d038644a2 100644 --- a/frontend/app/src/lib/api/model/datasetResponse.ts +++ b/frontend/app/src/lib/api/model/datasetResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetResponseDatabase.ts b/frontend/app/src/lib/api/model/datasetResponseDatabase.ts index b54245efd..e1e584daf 100644 --- a/frontend/app/src/lib/api/model/datasetResponseDatabase.ts +++ b/frontend/app/src/lib/api/model/datasetResponseDatabase.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetResponseDescription.ts b/frontend/app/src/lib/api/model/datasetResponseDescription.ts index 47c0b4a96..b94277562 100644 --- a/frontend/app/src/lib/api/model/datasetResponseDescription.ts +++ b/frontend/app/src/lib/api/model/datasetResponseDescription.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetResponseSchema.ts b/frontend/app/src/lib/api/model/datasetResponseSchema.ts index 60f2cdeb6..c5a19b75e 100644 --- a/frontend/app/src/lib/api/model/datasetResponseSchema.ts +++ b/frontend/app/src/lib/api/model/datasetResponseSchema.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetResponseSourceCodePath.ts b/frontend/app/src/lib/api/model/datasetResponseSourceCodePath.ts index db86041d6..a7225bb48 100644 --- a/frontend/app/src/lib/api/model/datasetResponseSourceCodePath.ts +++ b/frontend/app/src/lib/api/model/datasetResponseSourceCodePath.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetResponseSourceCodeUrl.ts b/frontend/app/src/lib/api/model/datasetResponseSourceCodeUrl.ts index 4f055874a..1e56c3ab1 100644 --- a/frontend/app/src/lib/api/model/datasetResponseSourceCodeUrl.ts +++ b/frontend/app/src/lib/api/model/datasetResponseSourceCodeUrl.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetSummary.ts b/frontend/app/src/lib/api/model/datasetSummary.ts index 9d8f0b5d2..dba8c56f2 100644 --- a/frontend/app/src/lib/api/model/datasetSummary.ts +++ b/frontend/app/src/lib/api/model/datasetSummary.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetSummaryCatalogName.ts b/frontend/app/src/lib/api/model/datasetSummaryCatalogName.ts index 999d55ac8..de68076c8 100644 --- a/frontend/app/src/lib/api/model/datasetSummaryCatalogName.ts +++ b/frontend/app/src/lib/api/model/datasetSummaryCatalogName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetSummaryColumnCount.ts b/frontend/app/src/lib/api/model/datasetSummaryColumnCount.ts index 4a3a9c38e..a2f8e734d 100644 --- a/frontend/app/src/lib/api/model/datasetSummaryColumnCount.ts +++ b/frontend/app/src/lib/api/model/datasetSummaryColumnCount.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetSummaryLastSyncedAt.ts b/frontend/app/src/lib/api/model/datasetSummaryLastSyncedAt.ts index bb5be1160..0b1a6a890 100644 --- a/frontend/app/src/lib/api/model/datasetSummaryLastSyncedAt.ts +++ b/frontend/app/src/lib/api/model/datasetSummaryLastSyncedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetSummaryRowCount.ts b/frontend/app/src/lib/api/model/datasetSummaryRowCount.ts index 4ed444832..194576639 100644 --- a/frontend/app/src/lib/api/model/datasetSummaryRowCount.ts +++ b/frontend/app/src/lib/api/model/datasetSummaryRowCount.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasetSummarySchemaName.ts b/frontend/app/src/lib/api/model/datasetSummarySchemaName.ts index e6e90f70d..89ba48b86 100644 --- a/frontend/app/src/lib/api/model/datasetSummarySchemaName.ts +++ b/frontend/app/src/lib/api/model/datasetSummarySchemaName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/datasourceDatasetsResponse.ts b/frontend/app/src/lib/api/model/datasourceDatasetsResponse.ts index a63e50df4..b6cc5c01b 100644 --- a/frontend/app/src/lib/api/model/datasourceDatasetsResponse.ts +++ b/frontend/app/src/lib/api/model/datasourceDatasetsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/dbtManifestImportResponse.ts b/frontend/app/src/lib/api/model/dbtManifestImportResponse.ts index 585f75802..8134114cc 100644 --- a/frontend/app/src/lib/api/model/dbtManifestImportResponse.ts +++ b/frontend/app/src/lib/api/model/dbtManifestImportResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/deleteCredentialsResponse.ts b/frontend/app/src/lib/api/model/deleteCredentialsResponse.ts index 5bb8b56cf..c82e82381 100644 --- a/frontend/app/src/lib/api/model/deleteCredentialsResponse.ts +++ b/frontend/app/src/lib/api/model/deleteCredentialsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete200.ts b/frontend/app/src/lib/api/model/deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete200.ts index 988a672a9..809705213 100644 --- a/frontend/app/src/lib/api/model/deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete200.ts +++ b/frontend/app/src/lib/api/model/deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete200.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/diffRequest.ts b/frontend/app/src/lib/api/model/diffRequest.ts index 2f1c88983..e418046a6 100644 --- a/frontend/app/src/lib/api/model/diffRequest.ts +++ b/frontend/app/src/lib/api/model/diffRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/diffRequestDatasourceId.ts b/frontend/app/src/lib/api/model/diffRequestDatasourceId.ts index b34c5451a..228f2d162 100644 --- a/frontend/app/src/lib/api/model/diffRequestDatasourceId.ts +++ b/frontend/app/src/lib/api/model/diffRequestDatasourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/diffResponse.ts b/frontend/app/src/lib/api/model/diffResponse.ts index f59841270..f39cc1e1f 100644 --- a/frontend/app/src/lib/api/model/diffResponse.ts +++ b/frontend/app/src/lib/api/model/diffResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,8 +9,8 @@ import type { DiffResponseCurrentValue } from "./diffResponseCurrentValue"; import type { DiffResponseDelta } from "./diffResponseDelta"; import type { DiffResponseDeltaPercent } from "./diffResponseDeltaPercent"; import type { DiffResponsePreviousValue } from "./diffResponsePreviousValue"; -import type { DiffSample } from "./diffSample"; import type { DiffResponseTrend } from "./diffResponseTrend"; +import type { DiffSample } from "./diffSample"; /** * Response for metric diff. diff --git a/frontend/app/src/lib/api/model/diffResponseCurrentValue.ts b/frontend/app/src/lib/api/model/diffResponseCurrentValue.ts index 2217b5e6e..df4baf180 100644 --- a/frontend/app/src/lib/api/model/diffResponseCurrentValue.ts +++ b/frontend/app/src/lib/api/model/diffResponseCurrentValue.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/diffResponseDelta.ts b/frontend/app/src/lib/api/model/diffResponseDelta.ts index 02fceeda9..7b28b581f 100644 --- a/frontend/app/src/lib/api/model/diffResponseDelta.ts +++ b/frontend/app/src/lib/api/model/diffResponseDelta.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/diffResponseDeltaPercent.ts b/frontend/app/src/lib/api/model/diffResponseDeltaPercent.ts index 96908fbf2..0b418ee03 100644 --- a/frontend/app/src/lib/api/model/diffResponseDeltaPercent.ts +++ b/frontend/app/src/lib/api/model/diffResponseDeltaPercent.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/diffResponsePreviousValue.ts b/frontend/app/src/lib/api/model/diffResponsePreviousValue.ts index f0c78aebf..6fcd0fee8 100644 --- a/frontend/app/src/lib/api/model/diffResponsePreviousValue.ts +++ b/frontend/app/src/lib/api/model/diffResponsePreviousValue.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/diffResponseTrend.ts b/frontend/app/src/lib/api/model/diffResponseTrend.ts index f4facb87c..4e7e48e0a 100644 --- a/frontend/app/src/lib/api/model/diffResponseTrend.ts +++ b/frontend/app/src/lib/api/model/diffResponseTrend.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/diffSample.ts b/frontend/app/src/lib/api/model/diffSample.ts index f6a3cb0f4..091993d1e 100644 --- a/frontend/app/src/lib/api/model/diffSample.ts +++ b/frontend/app/src/lib/api/model/diffSample.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost200.ts b/frontend/app/src/lib/api/model/dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost200.ts index d6d065118..779a8d567 100644 --- a/frontend/app/src/lib/api/model/dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost200.ts +++ b/frontend/app/src/lib/api/model/dismissSuggestionApiV1DatasetRepoMappingsMappingIdDismissPost200.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/downstreamResponse.ts b/frontend/app/src/lib/api/model/downstreamResponse.ts index 945295d55..979525c27 100644 --- a/frontend/app/src/lib/api/model/downstreamResponse.ts +++ b/frontend/app/src/lib/api/model/downstreamResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/explainRequest.ts b/frontend/app/src/lib/api/model/explainRequest.ts index 9c732ee53..65f82c2ac 100644 --- a/frontend/app/src/lib/api/model/explainRequest.ts +++ b/frontend/app/src/lib/api/model/explainRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/explainRequestFocus.ts b/frontend/app/src/lib/api/model/explainRequestFocus.ts index d58de08f2..a4761f00b 100644 --- a/frontend/app/src/lib/api/model/explainRequestFocus.ts +++ b/frontend/app/src/lib/api/model/explainRequestFocus.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/explainResponse.ts b/frontend/app/src/lib/api/model/explainResponse.ts index 871200366..798bae832 100644 --- a/frontend/app/src/lib/api/model/explainResponse.ts +++ b/frontend/app/src/lib/api/model/explainResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/feedbackCreate.ts b/frontend/app/src/lib/api/model/feedbackCreate.ts index de7f4914b..890d5d40a 100644 --- a/frontend/app/src/lib/api/model/feedbackCreate.ts +++ b/frontend/app/src/lib/api/model/feedbackCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/feedbackCreateComment.ts b/frontend/app/src/lib/api/model/feedbackCreateComment.ts index 3c07b22ca..9913eff61 100644 --- a/frontend/app/src/lib/api/model/feedbackCreateComment.ts +++ b/frontend/app/src/lib/api/model/feedbackCreateComment.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/feedbackCreateRating.ts b/frontend/app/src/lib/api/model/feedbackCreateRating.ts index d9034a9e3..cde0ce1fa 100644 --- a/frontend/app/src/lib/api/model/feedbackCreateRating.ts +++ b/frontend/app/src/lib/api/model/feedbackCreateRating.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type FeedbackCreateRating = (typeof FeedbackCreateRating)[keyof typeof FeedbackCreateRating]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const FeedbackCreateRating = { NUMBER_1: 1, NUMBER_MINUS_1: -1, diff --git a/frontend/app/src/lib/api/model/feedbackCreateReason.ts b/frontend/app/src/lib/api/model/feedbackCreateReason.ts index 9efa7f83d..2131cfcbb 100644 --- a/frontend/app/src/lib/api/model/feedbackCreateReason.ts +++ b/frontend/app/src/lib/api/model/feedbackCreateReason.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/feedbackCreateTargetType.ts b/frontend/app/src/lib/api/model/feedbackCreateTargetType.ts index 4479ab81e..2c0a43651 100644 --- a/frontend/app/src/lib/api/model/feedbackCreateTargetType.ts +++ b/frontend/app/src/lib/api/model/feedbackCreateTargetType.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type FeedbackCreateTargetType = (typeof FeedbackCreateTargetType)[keyof typeof FeedbackCreateTargetType]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const FeedbackCreateTargetType = { hypothesis: "hypothesis", query: "query", diff --git a/frontend/app/src/lib/api/model/feedbackItem.ts b/frontend/app/src/lib/api/model/feedbackItem.ts index 3a4cbf10f..57e352d8c 100644 --- a/frontend/app/src/lib/api/model/feedbackItem.ts +++ b/frontend/app/src/lib/api/model/feedbackItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/feedbackItemComment.ts b/frontend/app/src/lib/api/model/feedbackItemComment.ts index f6e6c0ddd..bf7af316e 100644 --- a/frontend/app/src/lib/api/model/feedbackItemComment.ts +++ b/frontend/app/src/lib/api/model/feedbackItemComment.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/feedbackItemReason.ts b/frontend/app/src/lib/api/model/feedbackItemReason.ts index 11e10edfc..8c991c80e 100644 --- a/frontend/app/src/lib/api/model/feedbackItemReason.ts +++ b/frontend/app/src/lib/api/model/feedbackItemReason.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/feedbackResponse.ts b/frontend/app/src/lib/api/model/feedbackResponse.ts index bd0e2c614..d0a38dc79 100644 --- a/frontend/app/src/lib/api/model/feedbackResponse.ts +++ b/frontend/app/src/lib/api/model/feedbackResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/fieldGroup.ts b/frontend/app/src/lib/api/model/fieldGroup.ts index 89a022ae6..121386d0a 100644 --- a/frontend/app/src/lib/api/model/fieldGroup.ts +++ b/frontend/app/src/lib/api/model/fieldGroup.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/fieldGroupDescription.ts b/frontend/app/src/lib/api/model/fieldGroupDescription.ts index cdf9ca97c..db8307c8e 100644 --- a/frontend/app/src/lib/api/model/fieldGroupDescription.ts +++ b/frontend/app/src/lib/api/model/fieldGroupDescription.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/getActivationFunnelApiV1AnalyticsActivationFunnelGetParams.ts b/frontend/app/src/lib/api/model/getActivationFunnelApiV1AnalyticsActivationFunnelGetParams.ts index 1792d26fa..3d464839a 100644 --- a/frontend/app/src/lib/api/model/getActivationFunnelApiV1AnalyticsActivationFunnelGetParams.ts +++ b/frontend/app/src/lib/api/model/getActivationFunnelApiV1AnalyticsActivationFunnelGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,6 +9,8 @@ export type GetActivationFunnelApiV1AnalyticsActivationFunnelGetParams = { /** * Look back period in days + * @minimum 1 + * @maximum 365 */ days?: number; }; diff --git a/frontend/app/src/lib/api/model/getColumnLineageApiV1LineageColumnLineageGetParams.ts b/frontend/app/src/lib/api/model/getColumnLineageApiV1LineageColumnLineageGetParams.ts index 9936383d5..48acd9e3d 100644 --- a/frontend/app/src/lib/api/model/getColumnLineageApiV1LineageColumnLineageGetParams.ts +++ b/frontend/app/src/lib/api/model/getColumnLineageApiV1LineageColumnLineageGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/getCurrentUserApiV1AuthMeGet200.ts b/frontend/app/src/lib/api/model/getCurrentUserApiV1AuthMeGet200.ts index 12a356741..05c148a39 100644 --- a/frontend/app/src/lib/api/model/getCurrentUserApiV1AuthMeGet200.ts +++ b/frontend/app/src/lib/api/model/getCurrentUserApiV1AuthMeGet200.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams.ts b/frontend/app/src/lib/api/model/getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams.ts index 827c61e30..5ad3ba229 100644 --- a/frontend/app/src/lib/api/model/getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams.ts +++ b/frontend/app/src/lib/api/model/getDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -8,5 +8,9 @@ export type GetDatasetInvestigationsApiV1DatasetsDatasetIdInvestigationsGetParams = { + /** + * @minimum 1 + * @maximum 100 + */ limit?: number; }; diff --git a/frontend/app/src/lib/api/model/getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetParams.ts b/frontend/app/src/lib/api/model/getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetParams.ts index b41033fe0..cce40791c 100644 --- a/frontend/app/src/lib/api/model/getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetParams.ts +++ b/frontend/app/src/lib/api/model/getDatasourceSchemaApiV1DatasourcesDatasourceIdSchemaGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetParams.ts b/frontend/app/src/lib/api/model/getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetParams.ts index 2fbe02c01..87bf990d3 100644 --- a/frontend/app/src/lib/api/model/getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetParams.ts +++ b/frontend/app/src/lib/api/model/getDatasourceSchemaApiV1V2DatasourcesDatasourceIdSchemaGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/getDefaultSlaPolicyApiV1SlaPoliciesDefaultGet200.ts b/frontend/app/src/lib/api/model/getDefaultSlaPolicyApiV1SlaPoliciesDefaultGet200.ts index 17f484b36..9a2c21074 100644 --- a/frontend/app/src/lib/api/model/getDefaultSlaPolicyApiV1SlaPoliciesDefaultGet200.ts +++ b/frontend/app/src/lib/api/model/getDefaultSlaPolicyApiV1SlaPoliciesDefaultGet200.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/getDownstreamApiV1LineageDownstreamGetParams.ts b/frontend/app/src/lib/api/model/getDownstreamApiV1LineageDownstreamGetParams.ts index 5711d0292..185d0e3e3 100644 --- a/frontend/app/src/lib/api/model/getDownstreamApiV1LineageDownstreamGetParams.ts +++ b/frontend/app/src/lib/api/model/getDownstreamApiV1LineageDownstreamGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -13,6 +13,8 @@ export type GetDownstreamApiV1LineageDownstreamGetParams = { dataset: string; /** * Depth of lineage traversal + * @minimum 1 + * @maximum 10 */ depth?: number; }; diff --git a/frontend/app/src/lib/api/model/getJobRunsApiV1LineageJobJobIdRunsGetParams.ts b/frontend/app/src/lib/api/model/getJobRunsApiV1LineageJobJobIdRunsGetParams.ts index 9cc41ecf4..57646611f 100644 --- a/frontend/app/src/lib/api/model/getJobRunsApiV1LineageJobJobIdRunsGetParams.ts +++ b/frontend/app/src/lib/api/model/getJobRunsApiV1LineageJobJobIdRunsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,6 +9,8 @@ export type GetJobRunsApiV1LineageJobJobIdRunsGetParams = { /** * Maximum runs to return + * @minimum 1 + * @maximum 100 */ limit?: number; }; diff --git a/frontend/app/src/lib/api/model/getLineageGraphApiV1LineageGraphGetParams.ts b/frontend/app/src/lib/api/model/getLineageGraphApiV1LineageGraphGetParams.ts index d808a5f5e..c71f95a1d 100644 --- a/frontend/app/src/lib/api/model/getLineageGraphApiV1LineageGraphGetParams.ts +++ b/frontend/app/src/lib/api/model/getLineageGraphApiV1LineageGraphGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -13,10 +13,14 @@ export type GetLineageGraphApiV1LineageGraphGetParams = { dataset: string; /** * Upstream traversal depth + * @minimum 0 + * @maximum 10 */ upstream_depth?: number; /** * Downstream traversal depth + * @minimum 0 + * @maximum 10 */ downstream_depth?: number; }; diff --git a/frontend/app/src/lib/api/model/getUpstreamApiV1LineageUpstreamGetParams.ts b/frontend/app/src/lib/api/model/getUpstreamApiV1LineageUpstreamGetParams.ts index 4eba62444..9e0323f75 100644 --- a/frontend/app/src/lib/api/model/getUpstreamApiV1LineageUpstreamGetParams.ts +++ b/frontend/app/src/lib/api/model/getUpstreamApiV1LineageUpstreamGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -13,6 +13,8 @@ export type GetUpstreamApiV1LineageUpstreamGetParams = { dataset: string; /** * Depth of lineage traversal + * @minimum 1 + * @maximum 10 */ depth?: number; }; diff --git a/frontend/app/src/lib/api/model/getUserOrgsApiV1AuthMeOrgsGet200Item.ts b/frontend/app/src/lib/api/model/getUserOrgsApiV1AuthMeOrgsGet200Item.ts index 155c0ab6a..1e3d01e47 100644 --- a/frontend/app/src/lib/api/model/getUserOrgsApiV1AuthMeOrgsGet200Item.ts +++ b/frontend/app/src/lib/api/model/getUserOrgsApiV1AuthMeOrgsGet200Item.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/getWeeklyUsageApiV1AnalyticsWeeklyUsageGetParams.ts b/frontend/app/src/lib/api/model/getWeeklyUsageApiV1AnalyticsWeeklyUsageGetParams.ts index 73a8776d0..62aff3a15 100644 --- a/frontend/app/src/lib/api/model/getWeeklyUsageApiV1AnalyticsWeeklyUsageGetParams.ts +++ b/frontend/app/src/lib/api/model/getWeeklyUsageApiV1AnalyticsWeeklyUsageGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,6 +9,8 @@ export type GetWeeklyUsageApiV1AnalyticsWeeklyUsageGetParams = { /** * Number of weeks to return + * @minimum 1 + * @maximum 52 */ weeks?: number; /** diff --git a/frontend/app/src/lib/api/model/hTTPValidationError.ts b/frontend/app/src/lib/api/model/hTTPValidationError.ts index 03cc76246..d40d50691 100644 --- a/frontend/app/src/lib/api/model/hTTPValidationError.ts +++ b/frontend/app/src/lib/api/model/hTTPValidationError.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/healthCheckHealthGet200.ts b/frontend/app/src/lib/api/model/healthCheckHealthGet200.ts index f7b8f08b2..7d977f333 100644 --- a/frontend/app/src/lib/api/model/healthCheckHealthGet200.ts +++ b/frontend/app/src/lib/api/model/healthCheckHealthGet200.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams.ts b/frontend/app/src/lib/api/model/importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams.ts index b36beb0f1..3e977ad00 100644 --- a/frontend/app/src/lib/api/model/importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams.ts +++ b/frontend/app/src/lib/api/model/importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -8,7 +8,13 @@ export type ImportDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams = { + /** + * @minLength 1 + */ repo_owner: string; + /** + * @minLength 1 + */ repo_name: string; branch?: string | null; }; diff --git a/frontend/app/src/lib/api/model/index.ts b/frontend/app/src/lib/api/model/index.ts index d04fdeb98..a191f8a50 100644 --- a/frontend/app/src/lib/api/model/index.ts +++ b/frontend/app/src/lib/api/model/index.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -135,9 +135,6 @@ export * from "./credentialsTestResponseError"; export * from "./credentialsTestResponseTablesAccessible"; export * from "./dashboardResponse"; export * from "./dashboardStats"; -export * from "./dataSourceListResponse"; -export * from "./dataSourceResponse"; -export * from "./dataSourceResponseLastHealthCheckAt"; export * from "./dataingEntrypointsApiRoutesBundlesAssetRefRequest"; export * from "./dataingEntrypointsApiRoutesBundlesAssetRefRequestDatasourceId"; export * from "./dataingEntrypointsApiRoutesRunsAssetRefRequest"; @@ -168,6 +165,9 @@ export * from "./datasetSummaryLastSyncedAt"; export * from "./datasetSummaryRowCount"; export * from "./datasetSummarySchemaName"; export * from "./datasourceDatasetsResponse"; +export * from "./dataSourceListResponse"; +export * from "./dataSourceResponse"; +export * from "./dataSourceResponseLastHealthCheckAt"; export * from "./dbtManifestImportResponse"; export * from "./deleteCredentialsResponse"; export * from "./deleteRepoMappingApiV1DatasetRepoMappingsMappingIdDelete200"; @@ -217,8 +217,8 @@ export * from "./getUpstreamApiV1LineageUpstreamGetParams"; export * from "./getUserApiV1ScimV2UsersUserIdGet200"; export * from "./getUserOrgsApiV1AuthMeOrgsGet200Item"; export * from "./getWeeklyUsageApiV1AnalyticsWeeklyUsageGetParams"; -export * from "./hTTPValidationError"; export * from "./healthCheckHealthGet200"; +export * from "./hTTPValidationError"; export * from "./importDbtManifestApiV1DatasetRepoMappingsImportDbtManifestPostParams"; export * from "./inlineBundleRequest"; export * from "./inlineBundleRequestWindow"; @@ -360,8 +360,8 @@ export * from "./messageResponseDeletedAt"; export * from "./messageResponseEditedAt"; export * from "./messageResponsePayload"; export * from "./messageResponseReplyToId"; -export * from "./messageResponseRequestMessageId"; export * from "./messageResponseRequestedByUserId"; +export * from "./messageResponseRequestMessageId"; export * from "./messageUpdate"; export * from "./metricSpecRequest"; export * from "./metricSpecRequestSourceUrl"; @@ -426,16 +426,29 @@ export * from "./repoMappingResponseLastVerifiedAt"; export * from "./repoMappingResponseMetadata"; export * from "./repoMappingResponseUpdatedAt"; export * from "./requestPasswordResetApiV1AuthPasswordResetRequestPost200"; -export * from "./resolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams"; export * from "./resolvedAssetResponse"; export * from "./resolvedAssetResponseDatasetType"; export * from "./resolvedAssetResponseDatasourceId"; +export * from "./resolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams"; export * from "./resolvedRepoResponse"; export * from "./resolvedRepoResponseBranch"; export * from "./resolvedRepoResponseFilePath"; export * from "./resolvedRepoResponseJobName"; export * from "./runResponse"; export * from "./runStatus"; +export * from "./saveCredentialsRequest"; +export * from "./saveCredentialsRequestRole"; +export * from "./saveCredentialsRequestWarehouse"; +export * from "./schemaCommentCreate"; +export * from "./schemaCommentCreateParentId"; +export * from "./schemaCommentResponse"; +export * from "./schemaCommentResponseAuthorId"; +export * from "./schemaCommentResponseAuthorName"; +export * from "./schemaCommentResponseParentId"; +export * from "./schemaCommentUpdate"; +export * from "./schemaResponseModel"; +export * from "./schemaResponseModelCatalogsItem"; +export * from "./schemaResponseModelTablesItem"; export * from "./sCIMGroupCreateRequest"; export * from "./sCIMGroupCreateRequestExternalId"; export * from "./sCIMGroupCreateRequestMembers"; @@ -455,6 +468,16 @@ export * from "./sCIMUserUpdateRequestEmailsAnyOfItem"; export * from "./sCIMUserUpdateRequestName"; export * from "./sCIMUserUpdateRequestNameAnyOf"; export * from "./sCIMUserUpdateRequestUserName"; +export * from "./scratchThreadCreate"; +export * from "./scratchThreadCreateTitle"; +export * from "./searchAssetInstancesApiV1AssetInstancesSearchGetParams"; +export * from "./searchDatasetsApiV1LineageSearchGetParams"; +export * from "./searchResultsResponse"; +export * from "./severityOverride"; +export * from "./severityOverrideTimeToAcknowledge"; +export * from "./severityOverrideTimeToProgress"; +export * from "./severityOverrideTimeToResolve"; +export * from "./showIfCondition"; export * from "./sLAPolicyCreate"; export * from "./sLAPolicyCreateSeverityOverrides"; export * from "./sLAPolicyCreateSeverityOverridesAnyOf"; @@ -475,39 +498,16 @@ export * from "./sLAPolicyUpdateSeverityOverridesAnyOf"; export * from "./sLAPolicyUpdateTimeToAcknowledge"; export * from "./sLAPolicyUpdateTimeToProgress"; export * from "./sLAPolicyUpdateTimeToResolve"; +export * from "./sourceTypeResponse"; +export * from "./sourceTypeResponseCapabilities"; +export * from "./sourceTypesResponse"; +export * from "./ssoCallbackApiV1AuthSsoCallbackGetParams"; export * from "./sSODiscoverRequest"; export * from "./sSODiscoverResponse"; export * from "./sSODiscoverResponseAuthUrl"; export * from "./sSODiscoverResponseDisplayName"; export * from "./sSODiscoverResponseState"; export * from "./sSOTokenResponse"; -export * from "./saveCredentialsRequest"; -export * from "./saveCredentialsRequestRole"; -export * from "./saveCredentialsRequestWarehouse"; -export * from "./schemaCommentCreate"; -export * from "./schemaCommentCreateParentId"; -export * from "./schemaCommentResponse"; -export * from "./schemaCommentResponseAuthorId"; -export * from "./schemaCommentResponseAuthorName"; -export * from "./schemaCommentResponseParentId"; -export * from "./schemaCommentUpdate"; -export * from "./schemaResponseModel"; -export * from "./schemaResponseModelCatalogsItem"; -export * from "./schemaResponseModelTablesItem"; -export * from "./scratchThreadCreate"; -export * from "./scratchThreadCreateTitle"; -export * from "./searchAssetInstancesApiV1AssetInstancesSearchGetParams"; -export * from "./searchDatasetsApiV1LineageSearchGetParams"; -export * from "./searchResultsResponse"; -export * from "./severityOverride"; -export * from "./severityOverrideTimeToAcknowledge"; -export * from "./severityOverrideTimeToProgress"; -export * from "./severityOverrideTimeToResolve"; -export * from "./showIfCondition"; -export * from "./sourceTypeResponse"; -export * from "./sourceTypeResponseCapabilities"; -export * from "./sourceTypesResponse"; -export * from "./ssoCallbackApiV1AuthSsoCallbackGetParams"; export * from "./startInvestigationRequest"; export * from "./startInvestigationRequestAlert"; export * from "./startInvestigationRequestDatasourceId"; diff --git a/frontend/app/src/lib/api/model/investigationBrief.ts b/frontend/app/src/lib/api/model/investigationBrief.ts index 55e76e005..e0bed9d27 100644 --- a/frontend/app/src/lib/api/model/investigationBrief.ts +++ b/frontend/app/src/lib/api/model/investigationBrief.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -26,5 +26,5 @@ export interface InvestigationBrief { * @maxLength 1000 */ symptom: string; - version?: number; + version?: 1; } diff --git a/frontend/app/src/lib/api/model/investigationListItem.ts b/frontend/app/src/lib/api/model/investigationListItem.ts index 0dc5b9663..6ae5ac5f3 100644 --- a/frontend/app/src/lib/api/model/investigationListItem.ts +++ b/frontend/app/src/lib/api/model/investigationListItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunCreate.ts b/frontend/app/src/lib/api/model/investigationRunCreate.ts index b35dc68cb..84503375b 100644 --- a/frontend/app/src/lib/api/model/investigationRunCreate.ts +++ b/frontend/app/src/lib/api/model/investigationRunCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunCreateDatasetId.ts b/frontend/app/src/lib/api/model/investigationRunCreateDatasetId.ts index 62ece8c00..2ca156067 100644 --- a/frontend/app/src/lib/api/model/investigationRunCreateDatasetId.ts +++ b/frontend/app/src/lib/api/model/investigationRunCreateDatasetId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunCreateDatasourceId.ts b/frontend/app/src/lib/api/model/investigationRunCreateDatasourceId.ts index 392c05469..009179c06 100644 --- a/frontend/app/src/lib/api/model/investigationRunCreateDatasourceId.ts +++ b/frontend/app/src/lib/api/model/investigationRunCreateDatasourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunCreateParentRunId.ts b/frontend/app/src/lib/api/model/investigationRunCreateParentRunId.ts index 5888e93de..998010cb6 100644 --- a/frontend/app/src/lib/api/model/investigationRunCreateParentRunId.ts +++ b/frontend/app/src/lib/api/model/investigationRunCreateParentRunId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunCreateSourceThreadId.ts b/frontend/app/src/lib/api/model/investigationRunCreateSourceThreadId.ts index 7c31ebdfa..2ee3ae882 100644 --- a/frontend/app/src/lib/api/model/investigationRunCreateSourceThreadId.ts +++ b/frontend/app/src/lib/api/model/investigationRunCreateSourceThreadId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunListResponse.ts b/frontend/app/src/lib/api/model/investigationRunListResponse.ts index e3357c0fd..717879218 100644 --- a/frontend/app/src/lib/api/model/investigationRunListResponse.ts +++ b/frontend/app/src/lib/api/model/investigationRunListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponse.ts b/frontend/app/src/lib/api/model/investigationRunResponse.ts index bddc9f4a4..abfca022d 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponse.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseApprovalStatus.ts b/frontend/app/src/lib/api/model/investigationRunResponseApprovalStatus.ts index 7d1acbed3..ffbf9680a 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseApprovalStatus.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseApprovalStatus.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseBrief.ts b/frontend/app/src/lib/api/model/investigationRunResponseBrief.ts index 1b0df66af..e36b26592 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseBrief.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseBrief.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseCompletedAt.ts b/frontend/app/src/lib/api/model/investigationRunResponseCompletedAt.ts index 6ee69397e..0fbb6644d 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseCompletedAt.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseCompletedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseConfidence.ts b/frontend/app/src/lib/api/model/investigationRunResponseConfidence.ts index 1e4d69aff..3c037c943 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseConfidence.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseConfidence.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseOutcomeNote.ts b/frontend/app/src/lib/api/model/investigationRunResponseOutcomeNote.ts index 607a6a942..b94ce05bf 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseOutcomeNote.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseOutcomeNote.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseOutcomeReviewedAt.ts b/frontend/app/src/lib/api/model/investigationRunResponseOutcomeReviewedAt.ts index 1a7240b10..6c8eeed42 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseOutcomeReviewedAt.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseOutcomeReviewedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseOutcomeReviewedBy.ts b/frontend/app/src/lib/api/model/investigationRunResponseOutcomeReviewedBy.ts index 9e18a4013..297046247 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseOutcomeReviewedBy.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseOutcomeReviewedBy.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseOutcomeVerdict.ts b/frontend/app/src/lib/api/model/investigationRunResponseOutcomeVerdict.ts index 984e5798f..20275656e 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseOutcomeVerdict.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseOutcomeVerdict.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseParentRunId.ts b/frontend/app/src/lib/api/model/investigationRunResponseParentRunId.ts index 58621c017..06e5a901c 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseParentRunId.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseParentRunId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseRootCauseTag.ts b/frontend/app/src/lib/api/model/investigationRunResponseRootCauseTag.ts index a9ac679cf..b1430e647 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseRootCauseTag.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseRootCauseTag.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseSourceThreadId.ts b/frontend/app/src/lib/api/model/investigationRunResponseSourceThreadId.ts index bb5172af7..97eaa3184 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseSourceThreadId.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseSourceThreadId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationRunResponseSynthesisSummary.ts b/frontend/app/src/lib/api/model/investigationRunResponseSynthesisSummary.ts index 19ed7c160..5c149f96f 100644 --- a/frontend/app/src/lib/api/model/investigationRunResponseSynthesisSummary.ts +++ b/frontend/app/src/lib/api/model/investigationRunResponseSynthesisSummary.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationStateResponse.ts b/frontend/app/src/lib/api/model/investigationStateResponse.ts index 818f08b3f..820002a01 100644 --- a/frontend/app/src/lib/api/model/investigationStateResponse.ts +++ b/frontend/app/src/lib/api/model/investigationStateResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationStateResponseRootHash.ts b/frontend/app/src/lib/api/model/investigationStateResponseRootHash.ts index 13fb2c533..ea52f3961 100644 --- a/frontend/app/src/lib/api/model/investigationStateResponseRootHash.ts +++ b/frontend/app/src/lib/api/model/investigationStateResponseRootHash.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationStateResponseUserBranch.ts b/frontend/app/src/lib/api/model/investigationStateResponseUserBranch.ts index a89e01e86..7b29998a4 100644 --- a/frontend/app/src/lib/api/model/investigationStateResponseUserBranch.ts +++ b/frontend/app/src/lib/api/model/investigationStateResponseUserBranch.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationSummary.ts b/frontend/app/src/lib/api/model/investigationSummary.ts index 415c930d1..cb35f8f31 100644 --- a/frontend/app/src/lib/api/model/investigationSummary.ts +++ b/frontend/app/src/lib/api/model/investigationSummary.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationSummarySeverity.ts b/frontend/app/src/lib/api/model/investigationSummarySeverity.ts index bf102fdb0..b12000004 100644 --- a/frontend/app/src/lib/api/model/investigationSummarySeverity.ts +++ b/frontend/app/src/lib/api/model/investigationSummarySeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/investigationTagAdd.ts b/frontend/app/src/lib/api/model/investigationTagAdd.ts index bce7999ab..3dc1cdc0b 100644 --- a/frontend/app/src/lib/api/model/investigationTagAdd.ts +++ b/frontend/app/src/lib/api/model/investigationTagAdd.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/inviteUserApiV1UsersInvitePost201.ts b/frontend/app/src/lib/api/model/inviteUserApiV1UsersInvitePost201.ts index 0dd30e859..dcfde46be 100644 --- a/frontend/app/src/lib/api/model/inviteUserApiV1UsersInvitePost201.ts +++ b/frontend/app/src/lib/api/model/inviteUserApiV1UsersInvitePost201.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/inviteUserRequest.ts b/frontend/app/src/lib/api/model/inviteUserRequest.ts index d48f01285..53c509f58 100644 --- a/frontend/app/src/lib/api/model/inviteUserRequest.ts +++ b/frontend/app/src/lib/api/model/inviteUserRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueCreate.ts b/frontend/app/src/lib/api/model/issueCreate.ts index d04a1da54..7830fd361 100644 --- a/frontend/app/src/lib/api/model/issueCreate.ts +++ b/frontend/app/src/lib/api/model/issueCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueCreateContext.ts b/frontend/app/src/lib/api/model/issueCreateContext.ts index 6d544bf79..599d8ddaf 100644 --- a/frontend/app/src/lib/api/model/issueCreateContext.ts +++ b/frontend/app/src/lib/api/model/issueCreateContext.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueCreateDatasetId.ts b/frontend/app/src/lib/api/model/issueCreateDatasetId.ts index 11b18119a..a3a78445c 100644 --- a/frontend/app/src/lib/api/model/issueCreateDatasetId.ts +++ b/frontend/app/src/lib/api/model/issueCreateDatasetId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueCreateDescription.ts b/frontend/app/src/lib/api/model/issueCreateDescription.ts index f680bcbe9..69f742312 100644 --- a/frontend/app/src/lib/api/model/issueCreateDescription.ts +++ b/frontend/app/src/lib/api/model/issueCreateDescription.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueCreatePriority.ts b/frontend/app/src/lib/api/model/issueCreatePriority.ts index cb1adc299..4083ae3dd 100644 --- a/frontend/app/src/lib/api/model/issueCreatePriority.ts +++ b/frontend/app/src/lib/api/model/issueCreatePriority.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueCreateSeverity.ts b/frontend/app/src/lib/api/model/issueCreateSeverity.ts index 997c6dd8d..5137d048a 100644 --- a/frontend/app/src/lib/api/model/issueCreateSeverity.ts +++ b/frontend/app/src/lib/api/model/issueCreateSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueEventListResponse.ts b/frontend/app/src/lib/api/model/issueEventListResponse.ts index 081c304a5..ef89d047f 100644 --- a/frontend/app/src/lib/api/model/issueEventListResponse.ts +++ b/frontend/app/src/lib/api/model/issueEventListResponse.ts @@ -1,12 +1,12 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { IssueEventResponse } from "./issueEventResponse"; import type { IssueEventListResponseNextCursor } from "./issueEventListResponseNextCursor"; +import type { IssueEventResponse } from "./issueEventResponse"; /** * Paginated event list response. diff --git a/frontend/app/src/lib/api/model/issueEventListResponseNextCursor.ts b/frontend/app/src/lib/api/model/issueEventListResponseNextCursor.ts index c36bd15be..0ab8741f5 100644 --- a/frontend/app/src/lib/api/model/issueEventListResponseNextCursor.ts +++ b/frontend/app/src/lib/api/model/issueEventListResponseNextCursor.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueEventResponse.ts b/frontend/app/src/lib/api/model/issueEventResponse.ts index dd58a6af3..20dc281b7 100644 --- a/frontend/app/src/lib/api/model/issueEventResponse.ts +++ b/frontend/app/src/lib/api/model/issueEventResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueEventResponseActorUserId.ts b/frontend/app/src/lib/api/model/issueEventResponseActorUserId.ts index 4e78b78f9..bd9cef0e3 100644 --- a/frontend/app/src/lib/api/model/issueEventResponseActorUserId.ts +++ b/frontend/app/src/lib/api/model/issueEventResponseActorUserId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueEventResponsePayload.ts b/frontend/app/src/lib/api/model/issueEventResponsePayload.ts index c0741a922..9c50b5c03 100644 --- a/frontend/app/src/lib/api/model/issueEventResponsePayload.ts +++ b/frontend/app/src/lib/api/model/issueEventResponsePayload.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueListResponse.ts b/frontend/app/src/lib/api/model/issueListResponse.ts index 2483816da..8f7203ae7 100644 --- a/frontend/app/src/lib/api/model/issueListResponse.ts +++ b/frontend/app/src/lib/api/model/issueListResponse.ts @@ -1,12 +1,12 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { IssueResponse } from "./issueResponse"; import type { IssueListResponseNextCursor } from "./issueListResponseNextCursor"; +import type { IssueResponse } from "./issueResponse"; /** * Paginated issue list response. diff --git a/frontend/app/src/lib/api/model/issueListResponseNextCursor.ts b/frontend/app/src/lib/api/model/issueListResponseNextCursor.ts index fd3811ff5..e0bbb91d9 100644 --- a/frontend/app/src/lib/api/model/issueListResponseNextCursor.ts +++ b/frontend/app/src/lib/api/model/issueListResponseNextCursor.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponse.ts b/frontend/app/src/lib/api/model/issueResponse.ts index 857adb5f7..09ace5495 100644 --- a/frontend/app/src/lib/api/model/issueResponse.ts +++ b/frontend/app/src/lib/api/model/issueResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseAcknowledgedBy.ts b/frontend/app/src/lib/api/model/issueResponseAcknowledgedBy.ts index 0a76d05d1..d892b8a5c 100644 --- a/frontend/app/src/lib/api/model/issueResponseAcknowledgedBy.ts +++ b/frontend/app/src/lib/api/model/issueResponseAcknowledgedBy.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseAssigneeUserId.ts b/frontend/app/src/lib/api/model/issueResponseAssigneeUserId.ts index 72ae82058..e0062869d 100644 --- a/frontend/app/src/lib/api/model/issueResponseAssigneeUserId.ts +++ b/frontend/app/src/lib/api/model/issueResponseAssigneeUserId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseClosedAt.ts b/frontend/app/src/lib/api/model/issueResponseClosedAt.ts index 398560ea7..46f26e3d4 100644 --- a/frontend/app/src/lib/api/model/issueResponseClosedAt.ts +++ b/frontend/app/src/lib/api/model/issueResponseClosedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseContext.ts b/frontend/app/src/lib/api/model/issueResponseContext.ts index 192964606..ffb4059e8 100644 --- a/frontend/app/src/lib/api/model/issueResponseContext.ts +++ b/frontend/app/src/lib/api/model/issueResponseContext.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseCreatedByUserId.ts b/frontend/app/src/lib/api/model/issueResponseCreatedByUserId.ts index 01b9cefbe..fdabaf704 100644 --- a/frontend/app/src/lib/api/model/issueResponseCreatedByUserId.ts +++ b/frontend/app/src/lib/api/model/issueResponseCreatedByUserId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseDatasetId.ts b/frontend/app/src/lib/api/model/issueResponseDatasetId.ts index ce020aeb6..85ea58161 100644 --- a/frontend/app/src/lib/api/model/issueResponseDatasetId.ts +++ b/frontend/app/src/lib/api/model/issueResponseDatasetId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseDescription.ts b/frontend/app/src/lib/api/model/issueResponseDescription.ts index 19f8d4cac..4ab955ca6 100644 --- a/frontend/app/src/lib/api/model/issueResponseDescription.ts +++ b/frontend/app/src/lib/api/model/issueResponseDescription.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseDueAt.ts b/frontend/app/src/lib/api/model/issueResponseDueAt.ts index 273345a16..e151291df 100644 --- a/frontend/app/src/lib/api/model/issueResponseDueAt.ts +++ b/frontend/app/src/lib/api/model/issueResponseDueAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponsePriority.ts b/frontend/app/src/lib/api/model/issueResponsePriority.ts index fc532c8ae..b4e36a355 100644 --- a/frontend/app/src/lib/api/model/issueResponsePriority.ts +++ b/frontend/app/src/lib/api/model/issueResponsePriority.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseResolutionNote.ts b/frontend/app/src/lib/api/model/issueResponseResolutionNote.ts index 15a210884..551ef348a 100644 --- a/frontend/app/src/lib/api/model/issueResponseResolutionNote.ts +++ b/frontend/app/src/lib/api/model/issueResponseResolutionNote.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseSeverity.ts b/frontend/app/src/lib/api/model/issueResponseSeverity.ts index 450f28f41..8f81c7605 100644 --- a/frontend/app/src/lib/api/model/issueResponseSeverity.ts +++ b/frontend/app/src/lib/api/model/issueResponseSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseSourceExternalId.ts b/frontend/app/src/lib/api/model/issueResponseSourceExternalId.ts index f3d989128..f36012fb6 100644 --- a/frontend/app/src/lib/api/model/issueResponseSourceExternalId.ts +++ b/frontend/app/src/lib/api/model/issueResponseSourceExternalId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseSourceExternalUrl.ts b/frontend/app/src/lib/api/model/issueResponseSourceExternalUrl.ts index d863bb3c0..df8c8d5ae 100644 --- a/frontend/app/src/lib/api/model/issueResponseSourceExternalUrl.ts +++ b/frontend/app/src/lib/api/model/issueResponseSourceExternalUrl.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseSourceProvider.ts b/frontend/app/src/lib/api/model/issueResponseSourceProvider.ts index 5bbcb1935..47b05f4f4 100644 --- a/frontend/app/src/lib/api/model/issueResponseSourceProvider.ts +++ b/frontend/app/src/lib/api/model/issueResponseSourceProvider.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueResponseTransitionRequirements.ts b/frontend/app/src/lib/api/model/issueResponseTransitionRequirements.ts index 322389da0..afc6bf186 100644 --- a/frontend/app/src/lib/api/model/issueResponseTransitionRequirements.ts +++ b/frontend/app/src/lib/api/model/issueResponseTransitionRequirements.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdate.ts b/frontend/app/src/lib/api/model/issueUpdate.ts index 2a4bfbd53..aed95f562 100644 --- a/frontend/app/src/lib/api/model/issueUpdate.ts +++ b/frontend/app/src/lib/api/model/issueUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -20,10 +20,10 @@ import type { IssueUpdateTitle } from "./issueUpdateTitle"; /** * Request body for updating an issue. - -A field sent as null clears the column; a field left out is unchanged. -Title and status cannot be null. A null context resets it to an empty object, -and null labels remove every label. + * + * A field sent as null clears the column; a field left out is unchanged. + * Title and status cannot be null. A null context resets it to an empty object, + * and null labels remove every label. */ export interface IssueUpdate { acknowledged_by?: IssueUpdateAcknowledgedBy; diff --git a/frontend/app/src/lib/api/model/issueUpdateAcknowledgedBy.ts b/frontend/app/src/lib/api/model/issueUpdateAcknowledgedBy.ts index d8dc4c950..b74674de3 100644 --- a/frontend/app/src/lib/api/model/issueUpdateAcknowledgedBy.ts +++ b/frontend/app/src/lib/api/model/issueUpdateAcknowledgedBy.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateAssigneeUserId.ts b/frontend/app/src/lib/api/model/issueUpdateAssigneeUserId.ts index 66d381e6e..9b55282c3 100644 --- a/frontend/app/src/lib/api/model/issueUpdateAssigneeUserId.ts +++ b/frontend/app/src/lib/api/model/issueUpdateAssigneeUserId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateContext.ts b/frontend/app/src/lib/api/model/issueUpdateContext.ts index 2462d0173..5e25f669a 100644 --- a/frontend/app/src/lib/api/model/issueUpdateContext.ts +++ b/frontend/app/src/lib/api/model/issueUpdateContext.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateContextAnyOf.ts b/frontend/app/src/lib/api/model/issueUpdateContextAnyOf.ts index 849f85e60..fba600fd4 100644 --- a/frontend/app/src/lib/api/model/issueUpdateContextAnyOf.ts +++ b/frontend/app/src/lib/api/model/issueUpdateContextAnyOf.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateDatasetId.ts b/frontend/app/src/lib/api/model/issueUpdateDatasetId.ts index 734a2804d..fde2c9151 100644 --- a/frontend/app/src/lib/api/model/issueUpdateDatasetId.ts +++ b/frontend/app/src/lib/api/model/issueUpdateDatasetId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateDescription.ts b/frontend/app/src/lib/api/model/issueUpdateDescription.ts index c0b197377..0139c8680 100644 --- a/frontend/app/src/lib/api/model/issueUpdateDescription.ts +++ b/frontend/app/src/lib/api/model/issueUpdateDescription.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateDueAt.ts b/frontend/app/src/lib/api/model/issueUpdateDueAt.ts index d38284240..0810d5afd 100644 --- a/frontend/app/src/lib/api/model/issueUpdateDueAt.ts +++ b/frontend/app/src/lib/api/model/issueUpdateDueAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateLabels.ts b/frontend/app/src/lib/api/model/issueUpdateLabels.ts index 5e821115c..7125e0991 100644 --- a/frontend/app/src/lib/api/model/issueUpdateLabels.ts +++ b/frontend/app/src/lib/api/model/issueUpdateLabels.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdatePriority.ts b/frontend/app/src/lib/api/model/issueUpdatePriority.ts index 914aad880..0bd9f0a6a 100644 --- a/frontend/app/src/lib/api/model/issueUpdatePriority.ts +++ b/frontend/app/src/lib/api/model/issueUpdatePriority.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateResolutionNote.ts b/frontend/app/src/lib/api/model/issueUpdateResolutionNote.ts index 279d41e8e..6d3ce4e81 100644 --- a/frontend/app/src/lib/api/model/issueUpdateResolutionNote.ts +++ b/frontend/app/src/lib/api/model/issueUpdateResolutionNote.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateSeverity.ts b/frontend/app/src/lib/api/model/issueUpdateSeverity.ts index b45f80e7c..8ce42aca3 100644 --- a/frontend/app/src/lib/api/model/issueUpdateSeverity.ts +++ b/frontend/app/src/lib/api/model/issueUpdateSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateStatus.ts b/frontend/app/src/lib/api/model/issueUpdateStatus.ts index 495e3d754..9042bcdf7 100644 --- a/frontend/app/src/lib/api/model/issueUpdateStatus.ts +++ b/frontend/app/src/lib/api/model/issueUpdateStatus.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/issueUpdateTitle.ts b/frontend/app/src/lib/api/model/issueUpdateTitle.ts index 3de03256d..6f915159b 100644 --- a/frontend/app/src/lib/api/model/issueUpdateTitle.ts +++ b/frontend/app/src/lib/api/model/issueUpdateTitle.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/jobResponse.ts b/frontend/app/src/lib/api/model/jobResponse.ts index 2798adda5..6683acaa5 100644 --- a/frontend/app/src/lib/api/model/jobResponse.ts +++ b/frontend/app/src/lib/api/model/jobResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/jobResponseSourceCodePath.ts b/frontend/app/src/lib/api/model/jobResponseSourceCodePath.ts index 0afd63b75..089a03a53 100644 --- a/frontend/app/src/lib/api/model/jobResponseSourceCodePath.ts +++ b/frontend/app/src/lib/api/model/jobResponseSourceCodePath.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/jobResponseSourceCodeUrl.ts b/frontend/app/src/lib/api/model/jobResponseSourceCodeUrl.ts index 73f67409d..eee3885e9 100644 --- a/frontend/app/src/lib/api/model/jobResponseSourceCodeUrl.ts +++ b/frontend/app/src/lib/api/model/jobResponseSourceCodeUrl.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/jobRunResponse.ts b/frontend/app/src/lib/api/model/jobRunResponse.ts index b3922034a..1b005fc3b 100644 --- a/frontend/app/src/lib/api/model/jobRunResponse.ts +++ b/frontend/app/src/lib/api/model/jobRunResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/jobRunResponseDurationSeconds.ts b/frontend/app/src/lib/api/model/jobRunResponseDurationSeconds.ts index a3aa1f5f5..56174b8b1 100644 --- a/frontend/app/src/lib/api/model/jobRunResponseDurationSeconds.ts +++ b/frontend/app/src/lib/api/model/jobRunResponseDurationSeconds.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/jobRunResponseEndedAt.ts b/frontend/app/src/lib/api/model/jobRunResponseEndedAt.ts index 49c7b4f8d..e308fd45e 100644 --- a/frontend/app/src/lib/api/model/jobRunResponseEndedAt.ts +++ b/frontend/app/src/lib/api/model/jobRunResponseEndedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/jobRunResponseErrorMessage.ts b/frontend/app/src/lib/api/model/jobRunResponseErrorMessage.ts index 8e2f9ac35..d89cbf1af 100644 --- a/frontend/app/src/lib/api/model/jobRunResponseErrorMessage.ts +++ b/frontend/app/src/lib/api/model/jobRunResponseErrorMessage.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/jobRunResponseLogsUrl.ts b/frontend/app/src/lib/api/model/jobRunResponseLogsUrl.ts index eba2f0e99..9ebeaf2b4 100644 --- a/frontend/app/src/lib/api/model/jobRunResponseLogsUrl.ts +++ b/frontend/app/src/lib/api/model/jobRunResponseLogsUrl.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/jobRunsResponse.ts b/frontend/app/src/lib/api/model/jobRunsResponse.ts index 853ddbe39..4bd3834f8 100644 --- a/frontend/app/src/lib/api/model/jobRunsResponse.ts +++ b/frontend/app/src/lib/api/model/jobRunsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/knowledgeCommentCreate.ts b/frontend/app/src/lib/api/model/knowledgeCommentCreate.ts index 665aeb02b..1830bb269 100644 --- a/frontend/app/src/lib/api/model/knowledgeCommentCreate.ts +++ b/frontend/app/src/lib/api/model/knowledgeCommentCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/knowledgeCommentCreateParentId.ts b/frontend/app/src/lib/api/model/knowledgeCommentCreateParentId.ts index 53aac907d..d7d39fcd9 100644 --- a/frontend/app/src/lib/api/model/knowledgeCommentCreateParentId.ts +++ b/frontend/app/src/lib/api/model/knowledgeCommentCreateParentId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/knowledgeCommentResponse.ts b/frontend/app/src/lib/api/model/knowledgeCommentResponse.ts index e1c9ea1cb..6cc017882 100644 --- a/frontend/app/src/lib/api/model/knowledgeCommentResponse.ts +++ b/frontend/app/src/lib/api/model/knowledgeCommentResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/knowledgeCommentResponseAuthorId.ts b/frontend/app/src/lib/api/model/knowledgeCommentResponseAuthorId.ts index fcee359ed..fd8691276 100644 --- a/frontend/app/src/lib/api/model/knowledgeCommentResponseAuthorId.ts +++ b/frontend/app/src/lib/api/model/knowledgeCommentResponseAuthorId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/knowledgeCommentResponseAuthorName.ts b/frontend/app/src/lib/api/model/knowledgeCommentResponseAuthorName.ts index a32e24101..a56df3172 100644 --- a/frontend/app/src/lib/api/model/knowledgeCommentResponseAuthorName.ts +++ b/frontend/app/src/lib/api/model/knowledgeCommentResponseAuthorName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/knowledgeCommentResponseParentId.ts b/frontend/app/src/lib/api/model/knowledgeCommentResponseParentId.ts index ec4388685..177d822e6 100644 --- a/frontend/app/src/lib/api/model/knowledgeCommentResponseParentId.ts +++ b/frontend/app/src/lib/api/model/knowledgeCommentResponseParentId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/knowledgeCommentUpdate.ts b/frontend/app/src/lib/api/model/knowledgeCommentUpdate.ts index 08611413b..378bba90c 100644 --- a/frontend/app/src/lib/api/model/knowledgeCommentUpdate.ts +++ b/frontend/app/src/lib/api/model/knowledgeCommentUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/lineageEdge.ts b/frontend/app/src/lib/api/model/lineageEdge.ts index ad6199db0..805677fb7 100644 --- a/frontend/app/src/lib/api/model/lineageEdge.ts +++ b/frontend/app/src/lib/api/model/lineageEdge.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/lineageEdgeResponse.ts b/frontend/app/src/lib/api/model/lineageEdgeResponse.ts index 655e8b3df..fec3f3c4a 100644 --- a/frontend/app/src/lib/api/model/lineageEdgeResponse.ts +++ b/frontend/app/src/lib/api/model/lineageEdgeResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/lineageEdgeResponseJobId.ts b/frontend/app/src/lib/api/model/lineageEdgeResponseJobId.ts index 625c46847..e1b958f87 100644 --- a/frontend/app/src/lib/api/model/lineageEdgeResponseJobId.ts +++ b/frontend/app/src/lib/api/model/lineageEdgeResponseJobId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/lineageGraphResponse.ts b/frontend/app/src/lib/api/model/lineageGraphResponse.ts index 54819f2c2..1a811f183 100644 --- a/frontend/app/src/lib/api/model/lineageGraphResponse.ts +++ b/frontend/app/src/lib/api/model/lineageGraphResponse.ts @@ -1,12 +1,12 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { LineageGraphResponseDatasets } from "./lineageGraphResponseDatasets"; import type { LineageEdgeResponse } from "./lineageEdgeResponse"; +import type { LineageGraphResponseDatasets } from "./lineageGraphResponseDatasets"; import type { LineageGraphResponseJobs } from "./lineageGraphResponseJobs"; /** diff --git a/frontend/app/src/lib/api/model/lineageGraphResponseDatasets.ts b/frontend/app/src/lib/api/model/lineageGraphResponseDatasets.ts index a5fcdf557..b68212768 100644 --- a/frontend/app/src/lib/api/model/lineageGraphResponseDatasets.ts +++ b/frontend/app/src/lib/api/model/lineageGraphResponseDatasets.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/lineageGraphResponseJobs.ts b/frontend/app/src/lib/api/model/lineageGraphResponseJobs.ts index 9500c1a3d..e22ff7688 100644 --- a/frontend/app/src/lib/api/model/lineageGraphResponseJobs.ts +++ b/frontend/app/src/lib/api/model/lineageGraphResponseJobs.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/lineageProviderResponse.ts b/frontend/app/src/lib/api/model/lineageProviderResponse.ts index 00d5b10ea..e3a1f9e36 100644 --- a/frontend/app/src/lib/api/model/lineageProviderResponse.ts +++ b/frontend/app/src/lib/api/model/lineageProviderResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/lineageProviderResponseCapabilities.ts b/frontend/app/src/lib/api/model/lineageProviderResponseCapabilities.ts index 4025b9d30..b7b8cbeaf 100644 --- a/frontend/app/src/lib/api/model/lineageProviderResponseCapabilities.ts +++ b/frontend/app/src/lib/api/model/lineageProviderResponseCapabilities.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/lineageProviderResponseConfigSchema.ts b/frontend/app/src/lib/api/model/lineageProviderResponseConfigSchema.ts index 2999021b1..b395f18e2 100644 --- a/frontend/app/src/lib/api/model/lineageProviderResponseConfigSchema.ts +++ b/frontend/app/src/lib/api/model/lineageProviderResponseConfigSchema.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/lineageProvidersResponse.ts b/frontend/app/src/lib/api/model/lineageProvidersResponse.ts index 7f2ad3c31..fb72e28cc 100644 --- a/frontend/app/src/lib/api/model/lineageProvidersResponse.ts +++ b/frontend/app/src/lib/api/model/lineageProvidersResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/listDatasetsApiV1LineageDatasetsGetParams.ts b/frontend/app/src/lib/api/model/listDatasetsApiV1LineageDatasetsGetParams.ts index 19a6cbf7e..5c8bd44f3 100644 --- a/frontend/app/src/lib/api/model/listDatasetsApiV1LineageDatasetsGetParams.ts +++ b/frontend/app/src/lib/api/model/listDatasetsApiV1LineageDatasetsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -21,6 +21,8 @@ export type ListDatasetsApiV1LineageDatasetsGetParams = { schema?: string | null; /** * Maximum results + * @minimum 1 + * @maximum 1000 */ limit?: number; }; diff --git a/frontend/app/src/lib/api/model/listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams.ts b/frontend/app/src/lib/api/model/listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams.ts index c79cb410c..d85dccb29 100644 --- a/frontend/app/src/lib/api/model/listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams.ts +++ b/frontend/app/src/lib/api/model/listDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -10,6 +10,13 @@ export type ListDatasourceDatasetsApiV1DatasourcesDatasourceIdDatasetsGetParams { table_type?: string | null; search?: string | null; + /** + * @minimum 1 + * @maximum 10000 + */ limit?: number; + /** + * @minimum 0 + */ offset?: number; }; diff --git a/frontend/app/src/lib/api/model/listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParams.ts b/frontend/app/src/lib/api/model/listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParams.ts index 4ffe18494..ea9d2c48d 100644 --- a/frontend/app/src/lib/api/model/listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParams.ts +++ b/frontend/app/src/lib/api/model/listDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -10,6 +10,13 @@ export type ListDatasourceDatasetsApiV1V2DatasourcesDatasourceIdDatasetsGetParam { table_type?: string | null; search?: string | null; + /** + * @minimum 1 + * @maximum 10000 + */ limit?: number; + /** + * @minimum 0 + */ offset?: number; }; diff --git a/frontend/app/src/lib/api/model/listIssueEventsApiV1IssuesIssueIdEventsGetParams.ts b/frontend/app/src/lib/api/model/listIssueEventsApiV1IssuesIssueIdEventsGetParams.ts index 2f299f312..5aabbc995 100644 --- a/frontend/app/src/lib/api/model/listIssueEventsApiV1IssuesIssueIdEventsGetParams.ts +++ b/frontend/app/src/lib/api/model/listIssueEventsApiV1IssuesIssueIdEventsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,6 +7,10 @@ */ export type ListIssueEventsApiV1IssuesIssueIdEventsGetParams = { + /** + * @minimum 1 + * @maximum 100 + */ limit?: number; cursor?: string | null; }; diff --git a/frontend/app/src/lib/api/model/listIssuesApiV1IssuesGetParams.ts b/frontend/app/src/lib/api/model/listIssuesApiV1IssuesGetParams.ts index 4189096ea..61abc79c9 100644 --- a/frontend/app/src/lib/api/model/listIssuesApiV1IssuesGetParams.ts +++ b/frontend/app/src/lib/api/model/listIssuesApiV1IssuesGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -33,6 +33,8 @@ export type ListIssuesApiV1IssuesGetParams = { cursor?: string | null; /** * Max issues + * @minimum 1 + * @maximum 100 */ limit?: number; }; diff --git a/frontend/app/src/lib/api/model/listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetParams.ts b/frontend/app/src/lib/api/model/listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetParams.ts index 2fd163539..7e6bb7840 100644 --- a/frontend/app/src/lib/api/model/listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetParams.ts +++ b/frontend/app/src/lib/api/model/listMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,6 +7,13 @@ */ export type ListMessagesApiV1IssuesIssueIdThreadsThreadIdMessagesGetParams = { + /** + * @minimum 0 + */ after_seq?: number; + /** + * @minimum 1 + * @maximum 500 + */ limit?: number; }; diff --git a/frontend/app/src/lib/api/model/listNotificationsApiV1NotificationsGetParams.ts b/frontend/app/src/lib/api/model/listNotificationsApiV1NotificationsGetParams.ts index a52a30706..a1fdd6827 100644 --- a/frontend/app/src/lib/api/model/listNotificationsApiV1NotificationsGetParams.ts +++ b/frontend/app/src/lib/api/model/listNotificationsApiV1NotificationsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,6 +9,8 @@ export type ListNotificationsApiV1NotificationsGetParams = { /** * Max notifications to return + * @minimum 1 + * @maximum 100 */ limit?: number; /** diff --git a/frontend/app/src/lib/api/model/listRepoMappingsApiV1DatasetRepoMappingsGetParams.ts b/frontend/app/src/lib/api/model/listRepoMappingsApiV1DatasetRepoMappingsGetParams.ts index 76c1480e7..14cdeb6d7 100644 --- a/frontend/app/src/lib/api/model/listRepoMappingsApiV1DatasetRepoMappingsGetParams.ts +++ b/frontend/app/src/lib/api/model/listRepoMappingsApiV1DatasetRepoMappingsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,6 +9,13 @@ export type ListRepoMappingsApiV1DatasetRepoMappingsGetParams = { source?: string | null; confirmed?: boolean | null; + /** + * @minimum 1 + * @maximum 200 + */ limit?: number; + /** + * @minimum 0 + */ offset?: number; }; diff --git a/frontend/app/src/lib/api/model/listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetParams.ts b/frontend/app/src/lib/api/model/listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetParams.ts index 21cd8b0b8..456ed5b61 100644 --- a/frontend/app/src/lib/api/model/listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetParams.ts +++ b/frontend/app/src/lib/api/model/listSchemaCommentsApiV1DatasetsDatasetIdSchemaCommentsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/listSlaPoliciesApiV1SlaPoliciesGetParams.ts b/frontend/app/src/lib/api/model/listSlaPoliciesApiV1SlaPoliciesGetParams.ts index caf36d92c..da4e085cf 100644 --- a/frontend/app/src/lib/api/model/listSlaPoliciesApiV1SlaPoliciesGetParams.ts +++ b/frontend/app/src/lib/api/model/listSlaPoliciesApiV1SlaPoliciesGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/listSuggestionsApiV1DatasetRepoMappingsSuggestionsGetParams.ts b/frontend/app/src/lib/api/model/listSuggestionsApiV1DatasetRepoMappingsSuggestionsGetParams.ts index 2f5008101..85ccbeb4d 100644 --- a/frontend/app/src/lib/api/model/listSuggestionsApiV1DatasetRepoMappingsSuggestionsGetParams.ts +++ b/frontend/app/src/lib/api/model/listSuggestionsApiV1DatasetRepoMappingsSuggestionsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -7,6 +7,13 @@ */ export type ListSuggestionsApiV1DatasetRepoMappingsSuggestionsGetParams = { + /** + * @minimum 1 + * @maximum 200 + */ limit?: number; + /** + * @minimum 0 + */ offset?: number; }; diff --git a/frontend/app/src/lib/api/model/loginRequest.ts b/frontend/app/src/lib/api/model/loginRequest.ts index 3c1ed88bd..7272706d9 100644 --- a/frontend/app/src/lib/api/model/loginRequest.ts +++ b/frontend/app/src/lib/api/model/loginRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/markAllReadResponse.ts b/frontend/app/src/lib/api/model/markAllReadResponse.ts index 2f94c9d40..149522462 100644 --- a/frontend/app/src/lib/api/model/markAllReadResponse.ts +++ b/frontend/app/src/lib/api/model/markAllReadResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/markAllReadResponseCursor.ts b/frontend/app/src/lib/api/model/markAllReadResponseCursor.ts index 876915c97..8d8c36741 100644 --- a/frontend/app/src/lib/api/model/markAllReadResponseCursor.ts +++ b/frontend/app/src/lib/api/model/markAllReadResponseCursor.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/matchedPatternResponse.ts b/frontend/app/src/lib/api/model/matchedPatternResponse.ts index 6494a8228..7a0ade447 100644 --- a/frontend/app/src/lib/api/model/matchedPatternResponse.ts +++ b/frontend/app/src/lib/api/model/matchedPatternResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/matchedPatternResponseDescription.ts b/frontend/app/src/lib/api/model/matchedPatternResponseDescription.ts index 38b4d21f7..9f062e0d9 100644 --- a/frontend/app/src/lib/api/model/matchedPatternResponseDescription.ts +++ b/frontend/app/src/lib/api/model/matchedPatternResponseDescription.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageCreate.ts b/frontend/app/src/lib/api/model/messageCreate.ts index 2992e47dc..d60d4cff8 100644 --- a/frontend/app/src/lib/api/model/messageCreate.ts +++ b/frontend/app/src/lib/api/model/messageCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageCreateReplyToId.ts b/frontend/app/src/lib/api/model/messageCreateReplyToId.ts index 320b76116..58e18f08f 100644 --- a/frontend/app/src/lib/api/model/messageCreateReplyToId.ts +++ b/frontend/app/src/lib/api/model/messageCreateReplyToId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageListResponse.ts b/frontend/app/src/lib/api/model/messageListResponse.ts index 3d78f2b6b..e1df5af62 100644 --- a/frontend/app/src/lib/api/model/messageListResponse.ts +++ b/frontend/app/src/lib/api/model/messageListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageResponse.ts b/frontend/app/src/lib/api/model/messageResponse.ts index 0fa2119ba..db6a0772a 100644 --- a/frontend/app/src/lib/api/model/messageResponse.ts +++ b/frontend/app/src/lib/api/model/messageResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -10,8 +10,8 @@ import type { MessageResponseDeletedAt } from "./messageResponseDeletedAt"; import type { MessageResponseEditedAt } from "./messageResponseEditedAt"; import type { MessageResponsePayload } from "./messageResponsePayload"; import type { MessageResponseReplyToId } from "./messageResponseReplyToId"; -import type { MessageResponseRequestMessageId } from "./messageResponseRequestMessageId"; import type { MessageResponseRequestedByUserId } from "./messageResponseRequestedByUserId"; +import type { MessageResponseRequestMessageId } from "./messageResponseRequestMessageId"; /** * One entry in a thread's timeline. diff --git a/frontend/app/src/lib/api/model/messageResponseAuthorUserId.ts b/frontend/app/src/lib/api/model/messageResponseAuthorUserId.ts index f4866791b..5df351467 100644 --- a/frontend/app/src/lib/api/model/messageResponseAuthorUserId.ts +++ b/frontend/app/src/lib/api/model/messageResponseAuthorUserId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageResponseDeletedAt.ts b/frontend/app/src/lib/api/model/messageResponseDeletedAt.ts index 95b8ba380..a10daf848 100644 --- a/frontend/app/src/lib/api/model/messageResponseDeletedAt.ts +++ b/frontend/app/src/lib/api/model/messageResponseDeletedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageResponseEditedAt.ts b/frontend/app/src/lib/api/model/messageResponseEditedAt.ts index 95301f661..fad22df13 100644 --- a/frontend/app/src/lib/api/model/messageResponseEditedAt.ts +++ b/frontend/app/src/lib/api/model/messageResponseEditedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageResponsePayload.ts b/frontend/app/src/lib/api/model/messageResponsePayload.ts index 1e8566c91..623331124 100644 --- a/frontend/app/src/lib/api/model/messageResponsePayload.ts +++ b/frontend/app/src/lib/api/model/messageResponsePayload.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageResponseReplyToId.ts b/frontend/app/src/lib/api/model/messageResponseReplyToId.ts index c91d18811..ec6fc1574 100644 --- a/frontend/app/src/lib/api/model/messageResponseReplyToId.ts +++ b/frontend/app/src/lib/api/model/messageResponseReplyToId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageResponseRequestMessageId.ts b/frontend/app/src/lib/api/model/messageResponseRequestMessageId.ts index 2f2691fbe..8b2dbbbe3 100644 --- a/frontend/app/src/lib/api/model/messageResponseRequestMessageId.ts +++ b/frontend/app/src/lib/api/model/messageResponseRequestMessageId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageResponseRequestedByUserId.ts b/frontend/app/src/lib/api/model/messageResponseRequestedByUserId.ts index 6aa9a9f00..23da841e2 100644 --- a/frontend/app/src/lib/api/model/messageResponseRequestedByUserId.ts +++ b/frontend/app/src/lib/api/model/messageResponseRequestedByUserId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/messageUpdate.ts b/frontend/app/src/lib/api/model/messageUpdate.ts index 78c1503e8..e24d5ab23 100644 --- a/frontend/app/src/lib/api/model/messageUpdate.ts +++ b/frontend/app/src/lib/api/model/messageUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/notificationListResponse.ts b/frontend/app/src/lib/api/model/notificationListResponse.ts index a53b6d058..feadd9263 100644 --- a/frontend/app/src/lib/api/model/notificationListResponse.ts +++ b/frontend/app/src/lib/api/model/notificationListResponse.ts @@ -1,12 +1,12 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { NotificationResponse } from "./notificationResponse"; import type { NotificationListResponseNextCursor } from "./notificationListResponseNextCursor"; +import type { NotificationResponse } from "./notificationResponse"; /** * Paginated notification list response. diff --git a/frontend/app/src/lib/api/model/notificationListResponseNextCursor.ts b/frontend/app/src/lib/api/model/notificationListResponseNextCursor.ts index 5ac8f2db2..add6f2f12 100644 --- a/frontend/app/src/lib/api/model/notificationListResponseNextCursor.ts +++ b/frontend/app/src/lib/api/model/notificationListResponseNextCursor.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/notificationResponse.ts b/frontend/app/src/lib/api/model/notificationResponse.ts index 4e0192b9c..767784f49 100644 --- a/frontend/app/src/lib/api/model/notificationResponse.ts +++ b/frontend/app/src/lib/api/model/notificationResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/notificationResponseBody.ts b/frontend/app/src/lib/api/model/notificationResponseBody.ts index be9bdde9a..f4957e851 100644 --- a/frontend/app/src/lib/api/model/notificationResponseBody.ts +++ b/frontend/app/src/lib/api/model/notificationResponseBody.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/notificationResponseReadAt.ts b/frontend/app/src/lib/api/model/notificationResponseReadAt.ts index 911bd7086..c2b2b6287 100644 --- a/frontend/app/src/lib/api/model/notificationResponseReadAt.ts +++ b/frontend/app/src/lib/api/model/notificationResponseReadAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/notificationResponseResourceId.ts b/frontend/app/src/lib/api/model/notificationResponseResourceId.ts index 91554e7a9..d055b6ba4 100644 --- a/frontend/app/src/lib/api/model/notificationResponseResourceId.ts +++ b/frontend/app/src/lib/api/model/notificationResponseResourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/notificationResponseResourceKind.ts b/frontend/app/src/lib/api/model/notificationResponseResourceKind.ts index 86c908ea9..810fc13e6 100644 --- a/frontend/app/src/lib/api/model/notificationResponseResourceKind.ts +++ b/frontend/app/src/lib/api/model/notificationResponseResourceKind.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/notificationStreamApiV1NotificationsStreamGetParams.ts b/frontend/app/src/lib/api/model/notificationStreamApiV1NotificationsStreamGetParams.ts index d4f28477c..11d2cc820 100644 --- a/frontend/app/src/lib/api/model/notificationStreamApiV1NotificationsStreamGetParams.ts +++ b/frontend/app/src/lib/api/model/notificationStreamApiV1NotificationsStreamGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/operationalFactsResponse.ts b/frontend/app/src/lib/api/model/operationalFactsResponse.ts index d5f6aec56..d5a642379 100644 --- a/frontend/app/src/lib/api/model/operationalFactsResponse.ts +++ b/frontend/app/src/lib/api/model/operationalFactsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/operationalFactsResponseFreshness.ts b/frontend/app/src/lib/api/model/operationalFactsResponseFreshness.ts index c85fe0831..2099aa0ec 100644 --- a/frontend/app/src/lib/api/model/operationalFactsResponseFreshness.ts +++ b/frontend/app/src/lib/api/model/operationalFactsResponseFreshness.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/operationalFactsResponseRecentRunsItem.ts b/frontend/app/src/lib/api/model/operationalFactsResponseRecentRunsItem.ts index 373c697ed..01c7babb0 100644 --- a/frontend/app/src/lib/api/model/operationalFactsResponseRecentRunsItem.ts +++ b/frontend/app/src/lib/api/model/operationalFactsResponseRecentRunsItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/orgMemberResponse.ts b/frontend/app/src/lib/api/model/orgMemberResponse.ts index 744aff632..45f66cb9d 100644 --- a/frontend/app/src/lib/api/model/orgMemberResponse.ts +++ b/frontend/app/src/lib/api/model/orgMemberResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/orgMemberResponseName.ts b/frontend/app/src/lib/api/model/orgMemberResponseName.ts index 70e8c7fae..db00266b7 100644 --- a/frontend/app/src/lib/api/model/orgMemberResponseName.ts +++ b/frontend/app/src/lib/api/model/orgMemberResponseName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/outcomeReview.ts b/frontend/app/src/lib/api/model/outcomeReview.ts index 545442a21..5f1453421 100644 --- a/frontend/app/src/lib/api/model/outcomeReview.ts +++ b/frontend/app/src/lib/api/model/outcomeReview.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/outcomeReviewNote.ts b/frontend/app/src/lib/api/model/outcomeReviewNote.ts index a8b451aa1..f94a4d97b 100644 --- a/frontend/app/src/lib/api/model/outcomeReviewNote.ts +++ b/frontend/app/src/lib/api/model/outcomeReviewNote.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/outcomeReviewVerdict.ts b/frontend/app/src/lib/api/model/outcomeReviewVerdict.ts index e878fa972..7d0d08d38 100644 --- a/frontend/app/src/lib/api/model/outcomeReviewVerdict.ts +++ b/frontend/app/src/lib/api/model/outcomeReviewVerdict.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type OutcomeReviewVerdict = (typeof OutcomeReviewVerdict)[keyof typeof OutcomeReviewVerdict]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const OutcomeReviewVerdict = { confirmed: "confirmed", rejected: "rejected", diff --git a/frontend/app/src/lib/api/model/passwordResetConfirm.ts b/frontend/app/src/lib/api/model/passwordResetConfirm.ts index 147643808..621ac3459 100644 --- a/frontend/app/src/lib/api/model/passwordResetConfirm.ts +++ b/frontend/app/src/lib/api/model/passwordResetConfirm.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/passwordResetRequest.ts b/frontend/app/src/lib/api/model/passwordResetRequest.ts index dfbd7dbed..8c6ad5c1b 100644 --- a/frontend/app/src/lib/api/model/passwordResetRequest.ts +++ b/frontend/app/src/lib/api/model/passwordResetRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionGrantCreate.ts b/frontend/app/src/lib/api/model/permissionGrantCreate.ts index bf285f059..bf2f291b4 100644 --- a/frontend/app/src/lib/api/model/permissionGrantCreate.ts +++ b/frontend/app/src/lib/api/model/permissionGrantCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionGrantCreateAccessType.ts b/frontend/app/src/lib/api/model/permissionGrantCreateAccessType.ts index 1e9d8299c..4611d039e 100644 --- a/frontend/app/src/lib/api/model/permissionGrantCreateAccessType.ts +++ b/frontend/app/src/lib/api/model/permissionGrantCreateAccessType.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type PermissionGrantCreateAccessType = (typeof PermissionGrantCreateAccessType)[keyof typeof PermissionGrantCreateAccessType]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const PermissionGrantCreateAccessType = { resource: "resource", tag: "tag", diff --git a/frontend/app/src/lib/api/model/permissionGrantCreateDataSourceId.ts b/frontend/app/src/lib/api/model/permissionGrantCreateDataSourceId.ts index f07e74fc7..5596ac221 100644 --- a/frontend/app/src/lib/api/model/permissionGrantCreateDataSourceId.ts +++ b/frontend/app/src/lib/api/model/permissionGrantCreateDataSourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionGrantCreateGranteeType.ts b/frontend/app/src/lib/api/model/permissionGrantCreateGranteeType.ts index 7d84e0149..75d8ea0d7 100644 --- a/frontend/app/src/lib/api/model/permissionGrantCreateGranteeType.ts +++ b/frontend/app/src/lib/api/model/permissionGrantCreateGranteeType.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type PermissionGrantCreateGranteeType = (typeof PermissionGrantCreateGranteeType)[keyof typeof PermissionGrantCreateGranteeType]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const PermissionGrantCreateGranteeType = { user: "user", team: "team", diff --git a/frontend/app/src/lib/api/model/permissionGrantCreatePermission.ts b/frontend/app/src/lib/api/model/permissionGrantCreatePermission.ts index 64fcc14dd..3c3b88ee2 100644 --- a/frontend/app/src/lib/api/model/permissionGrantCreatePermission.ts +++ b/frontend/app/src/lib/api/model/permissionGrantCreatePermission.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type PermissionGrantCreatePermission = (typeof PermissionGrantCreatePermission)[keyof typeof PermissionGrantCreatePermission]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const PermissionGrantCreatePermission = { read: "read", write: "write", diff --git a/frontend/app/src/lib/api/model/permissionGrantCreateResourceId.ts b/frontend/app/src/lib/api/model/permissionGrantCreateResourceId.ts index 30306dbb8..28da9524d 100644 --- a/frontend/app/src/lib/api/model/permissionGrantCreateResourceId.ts +++ b/frontend/app/src/lib/api/model/permissionGrantCreateResourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionGrantCreateTagId.ts b/frontend/app/src/lib/api/model/permissionGrantCreateTagId.ts index 8d9cf16ec..d4c5c28ab 100644 --- a/frontend/app/src/lib/api/model/permissionGrantCreateTagId.ts +++ b/frontend/app/src/lib/api/model/permissionGrantCreateTagId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionGrantResponse.ts b/frontend/app/src/lib/api/model/permissionGrantResponse.ts index eddf1f40d..1db14ddbe 100644 --- a/frontend/app/src/lib/api/model/permissionGrantResponse.ts +++ b/frontend/app/src/lib/api/model/permissionGrantResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionGrantResponseDataSourceId.ts b/frontend/app/src/lib/api/model/permissionGrantResponseDataSourceId.ts index 9331b5dd3..92cbc334e 100644 --- a/frontend/app/src/lib/api/model/permissionGrantResponseDataSourceId.ts +++ b/frontend/app/src/lib/api/model/permissionGrantResponseDataSourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionGrantResponseGranteeId.ts b/frontend/app/src/lib/api/model/permissionGrantResponseGranteeId.ts index df06303c2..bb66b7e40 100644 --- a/frontend/app/src/lib/api/model/permissionGrantResponseGranteeId.ts +++ b/frontend/app/src/lib/api/model/permissionGrantResponseGranteeId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionGrantResponseResourceId.ts b/frontend/app/src/lib/api/model/permissionGrantResponseResourceId.ts index 5abe105b3..4a275f63c 100644 --- a/frontend/app/src/lib/api/model/permissionGrantResponseResourceId.ts +++ b/frontend/app/src/lib/api/model/permissionGrantResponseResourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionGrantResponseTagId.ts b/frontend/app/src/lib/api/model/permissionGrantResponseTagId.ts index 67d6a7974..69f6df177 100644 --- a/frontend/app/src/lib/api/model/permissionGrantResponseTagId.ts +++ b/frontend/app/src/lib/api/model/permissionGrantResponseTagId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/permissionListResponse.ts b/frontend/app/src/lib/api/model/permissionListResponse.ts index 849b3468e..742ed8faa 100644 --- a/frontend/app/src/lib/api/model/permissionListResponse.ts +++ b/frontend/app/src/lib/api/model/permissionListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/publishRequest.ts b/frontend/app/src/lib/api/model/publishRequest.ts index 215a9daae..6450eacd2 100644 --- a/frontend/app/src/lib/api/model/publishRequest.ts +++ b/frontend/app/src/lib/api/model/publishRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/publishRequestNote.ts b/frontend/app/src/lib/api/model/publishRequestNote.ts index 7e156ea61..da781afda 100644 --- a/frontend/app/src/lib/api/model/publishRequestNote.ts +++ b/frontend/app/src/lib/api/model/publishRequestNote.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/queryRequest.ts b/frontend/app/src/lib/api/model/queryRequest.ts index 6401e1a07..7370c04b8 100644 --- a/frontend/app/src/lib/api/model/queryRequest.ts +++ b/frontend/app/src/lib/api/model/queryRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/queryResponse.ts b/frontend/app/src/lib/api/model/queryResponse.ts index c7ab22eee..bb9befd95 100644 --- a/frontend/app/src/lib/api/model/queryResponse.ts +++ b/frontend/app/src/lib/api/model/queryResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/queryResponseColumnsItem.ts b/frontend/app/src/lib/api/model/queryResponseColumnsItem.ts index 6c92bb5b4..30e61e436 100644 --- a/frontend/app/src/lib/api/model/queryResponseColumnsItem.ts +++ b/frontend/app/src/lib/api/model/queryResponseColumnsItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/queryResponseExecutionTimeMs.ts b/frontend/app/src/lib/api/model/queryResponseExecutionTimeMs.ts index 9bf374951..46aba2709 100644 --- a/frontend/app/src/lib/api/model/queryResponseExecutionTimeMs.ts +++ b/frontend/app/src/lib/api/model/queryResponseExecutionTimeMs.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/queryResponseRowsItem.ts b/frontend/app/src/lib/api/model/queryResponseRowsItem.ts index 4c558e7e0..279eb356f 100644 --- a/frontend/app/src/lib/api/model/queryResponseRowsItem.ts +++ b/frontend/app/src/lib/api/model/queryResponseRowsItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/queryResultResponse.ts b/frontend/app/src/lib/api/model/queryResultResponse.ts index 6355e8272..66a0a95de 100644 --- a/frontend/app/src/lib/api/model/queryResultResponse.ts +++ b/frontend/app/src/lib/api/model/queryResultResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/queryResultResponseColumnsItem.ts b/frontend/app/src/lib/api/model/queryResultResponseColumnsItem.ts index 5433b54f4..82cfb3efc 100644 --- a/frontend/app/src/lib/api/model/queryResultResponseColumnsItem.ts +++ b/frontend/app/src/lib/api/model/queryResultResponseColumnsItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/queryResultResponseError.ts b/frontend/app/src/lib/api/model/queryResultResponseError.ts index 632d05b49..256bc29fc 100644 --- a/frontend/app/src/lib/api/model/queryResultResponseError.ts +++ b/frontend/app/src/lib/api/model/queryResultResponseError.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/queryResultResponseRowsItem.ts b/frontend/app/src/lib/api/model/queryResultResponseRowsItem.ts index 19c2ff3c1..afda077b0 100644 --- a/frontend/app/src/lib/api/model/queryResultResponseRowsItem.ts +++ b/frontend/app/src/lib/api/model/queryResultResponseRowsItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/recentInvestigation.ts b/frontend/app/src/lib/api/model/recentInvestigation.ts index 6e4e64a58..41962b2ae 100644 --- a/frontend/app/src/lib/api/model/recentInvestigation.ts +++ b/frontend/app/src/lib/api/model/recentInvestigation.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/recentInvestigationSeverity.ts b/frontend/app/src/lib/api/model/recentInvestigationSeverity.ts index 72f5617ba..097df524b 100644 --- a/frontend/app/src/lib/api/model/recentInvestigationSeverity.ts +++ b/frontend/app/src/lib/api/model/recentInvestigationSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/recoveryMethodResponse.ts b/frontend/app/src/lib/api/model/recoveryMethodResponse.ts index e24a1a2a5..12ac92f3e 100644 --- a/frontend/app/src/lib/api/model/recoveryMethodResponse.ts +++ b/frontend/app/src/lib/api/model/recoveryMethodResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/recoveryMethodResponseActionUrl.ts b/frontend/app/src/lib/api/model/recoveryMethodResponseActionUrl.ts index e5686f21c..061c57205 100644 --- a/frontend/app/src/lib/api/model/recoveryMethodResponseActionUrl.ts +++ b/frontend/app/src/lib/api/model/recoveryMethodResponseActionUrl.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/recoveryMethodResponseAdminEmail.ts b/frontend/app/src/lib/api/model/recoveryMethodResponseAdminEmail.ts index 112a88dea..33e5dcefc 100644 --- a/frontend/app/src/lib/api/model/recoveryMethodResponseAdminEmail.ts +++ b/frontend/app/src/lib/api/model/recoveryMethodResponseAdminEmail.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/refreshRequest.ts b/frontend/app/src/lib/api/model/refreshRequest.ts index 7ad2532a4..e7a3fcae0 100644 --- a/frontend/app/src/lib/api/model/refreshRequest.ts +++ b/frontend/app/src/lib/api/model/refreshRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/registerRequest.ts b/frontend/app/src/lib/api/model/registerRequest.ts index a855f8404..009580792 100644 --- a/frontend/app/src/lib/api/model/registerRequest.ts +++ b/frontend/app/src/lib/api/model/registerRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/registerRequestOrgSlug.ts b/frontend/app/src/lib/api/model/registerRequestOrgSlug.ts index 87146fee1..a2919d7d1 100644 --- a/frontend/app/src/lib/api/model/registerRequestOrgSlug.ts +++ b/frontend/app/src/lib/api/model/registerRequestOrgSlug.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/removeOrgMemberApiV1UsersUserIdRemovePost200.ts b/frontend/app/src/lib/api/model/removeOrgMemberApiV1UsersUserIdRemovePost200.ts index 4fc9465c0..1575ff5df 100644 --- a/frontend/app/src/lib/api/model/removeOrgMemberApiV1UsersUserIdRemovePost200.ts +++ b/frontend/app/src/lib/api/model/removeOrgMemberApiV1UsersUserIdRemovePost200.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/repoMappingListResponse.ts b/frontend/app/src/lib/api/model/repoMappingListResponse.ts index af2bf7b71..1639cff20 100644 --- a/frontend/app/src/lib/api/model/repoMappingListResponse.ts +++ b/frontend/app/src/lib/api/model/repoMappingListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/repoMappingResponse.ts b/frontend/app/src/lib/api/model/repoMappingResponse.ts index 21e3ba05a..65414000d 100644 --- a/frontend/app/src/lib/api/model/repoMappingResponse.ts +++ b/frontend/app/src/lib/api/model/repoMappingResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/repoMappingResponseBranch.ts b/frontend/app/src/lib/api/model/repoMappingResponseBranch.ts index 4f4497922..8a8df1276 100644 --- a/frontend/app/src/lib/api/model/repoMappingResponseBranch.ts +++ b/frontend/app/src/lib/api/model/repoMappingResponseBranch.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/repoMappingResponseFilePath.ts b/frontend/app/src/lib/api/model/repoMappingResponseFilePath.ts index 440c2f4b1..98bb279cd 100644 --- a/frontend/app/src/lib/api/model/repoMappingResponseFilePath.ts +++ b/frontend/app/src/lib/api/model/repoMappingResponseFilePath.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/repoMappingResponseJobName.ts b/frontend/app/src/lib/api/model/repoMappingResponseJobName.ts index cb593dc08..fdb5f062f 100644 --- a/frontend/app/src/lib/api/model/repoMappingResponseJobName.ts +++ b/frontend/app/src/lib/api/model/repoMappingResponseJobName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/repoMappingResponseLastVerifiedAt.ts b/frontend/app/src/lib/api/model/repoMappingResponseLastVerifiedAt.ts index a9f6d6935..58ad67e2e 100644 --- a/frontend/app/src/lib/api/model/repoMappingResponseLastVerifiedAt.ts +++ b/frontend/app/src/lib/api/model/repoMappingResponseLastVerifiedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/repoMappingResponseMetadata.ts b/frontend/app/src/lib/api/model/repoMappingResponseMetadata.ts index b3ab9f331..d5c95a8c7 100644 --- a/frontend/app/src/lib/api/model/repoMappingResponseMetadata.ts +++ b/frontend/app/src/lib/api/model/repoMappingResponseMetadata.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/repoMappingResponseUpdatedAt.ts b/frontend/app/src/lib/api/model/repoMappingResponseUpdatedAt.ts index 410c11a1e..889890a22 100644 --- a/frontend/app/src/lib/api/model/repoMappingResponseUpdatedAt.ts +++ b/frontend/app/src/lib/api/model/repoMappingResponseUpdatedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/requestPasswordResetApiV1AuthPasswordResetRequestPost200.ts b/frontend/app/src/lib/api/model/requestPasswordResetApiV1AuthPasswordResetRequestPost200.ts index ea2ac96b4..6a341dc0a 100644 --- a/frontend/app/src/lib/api/model/requestPasswordResetApiV1AuthPasswordResetRequestPost200.ts +++ b/frontend/app/src/lib/api/model/requestPasswordResetApiV1AuthPasswordResetRequestPost200.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/resolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams.ts b/frontend/app/src/lib/api/model/resolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams.ts index 1fedbedda..7421bda93 100644 --- a/frontend/app/src/lib/api/model/resolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams.ts +++ b/frontend/app/src/lib/api/model/resolveDatasetRepoApiV1DatasetsDatasetIdRepoGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/resolvedAssetResponse.ts b/frontend/app/src/lib/api/model/resolvedAssetResponse.ts index b6acf34fd..d46258d04 100644 --- a/frontend/app/src/lib/api/model/resolvedAssetResponse.ts +++ b/frontend/app/src/lib/api/model/resolvedAssetResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/resolvedAssetResponseDatasetType.ts b/frontend/app/src/lib/api/model/resolvedAssetResponseDatasetType.ts index abd980e63..a1daf9153 100644 --- a/frontend/app/src/lib/api/model/resolvedAssetResponseDatasetType.ts +++ b/frontend/app/src/lib/api/model/resolvedAssetResponseDatasetType.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/resolvedAssetResponseDatasourceId.ts b/frontend/app/src/lib/api/model/resolvedAssetResponseDatasourceId.ts index de5e4e8cc..72a766105 100644 --- a/frontend/app/src/lib/api/model/resolvedAssetResponseDatasourceId.ts +++ b/frontend/app/src/lib/api/model/resolvedAssetResponseDatasourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/resolvedRepoResponse.ts b/frontend/app/src/lib/api/model/resolvedRepoResponse.ts index f04801101..db7b2cacd 100644 --- a/frontend/app/src/lib/api/model/resolvedRepoResponse.ts +++ b/frontend/app/src/lib/api/model/resolvedRepoResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/resolvedRepoResponseBranch.ts b/frontend/app/src/lib/api/model/resolvedRepoResponseBranch.ts index 0eec2a37a..5d0f3ec38 100644 --- a/frontend/app/src/lib/api/model/resolvedRepoResponseBranch.ts +++ b/frontend/app/src/lib/api/model/resolvedRepoResponseBranch.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/resolvedRepoResponseFilePath.ts b/frontend/app/src/lib/api/model/resolvedRepoResponseFilePath.ts index 62885c098..14b90c454 100644 --- a/frontend/app/src/lib/api/model/resolvedRepoResponseFilePath.ts +++ b/frontend/app/src/lib/api/model/resolvedRepoResponseFilePath.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/resolvedRepoResponseJobName.ts b/frontend/app/src/lib/api/model/resolvedRepoResponseJobName.ts index d4a599210..08e72ec52 100644 --- a/frontend/app/src/lib/api/model/resolvedRepoResponseJobName.ts +++ b/frontend/app/src/lib/api/model/resolvedRepoResponseJobName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyCreate.ts b/frontend/app/src/lib/api/model/sLAPolicyCreate.ts index 51b78c238..1ac6b40ea 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyCreate.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyCreateSeverityOverrides.ts b/frontend/app/src/lib/api/model/sLAPolicyCreateSeverityOverrides.ts index 346cc8d49..7674c5712 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyCreateSeverityOverrides.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyCreateSeverityOverrides.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyCreateSeverityOverridesAnyOf.ts b/frontend/app/src/lib/api/model/sLAPolicyCreateSeverityOverridesAnyOf.ts index dbd43e831..f98de02c3 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyCreateSeverityOverridesAnyOf.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyCreateSeverityOverridesAnyOf.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToAcknowledge.ts b/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToAcknowledge.ts index 899002854..8109b838d 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToAcknowledge.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToAcknowledge.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToProgress.ts b/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToProgress.ts index 1ebc563c4..a48503df4 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToProgress.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToProgress.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToResolve.ts b/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToResolve.ts index 65a3f1f08..d636d39c3 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToResolve.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyCreateTimeToResolve.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyListResponse.ts b/frontend/app/src/lib/api/model/sLAPolicyListResponse.ts index 70f4988ab..d3ebe613e 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyListResponse.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyResponse.ts b/frontend/app/src/lib/api/model/sLAPolicyResponse.ts index 370c081a0..dbe5856dc 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyResponse.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyResponseSeverityOverrides.ts b/frontend/app/src/lib/api/model/sLAPolicyResponseSeverityOverrides.ts index 3931d5a08..1c3716543 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyResponseSeverityOverrides.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyResponseSeverityOverrides.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToAcknowledge.ts b/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToAcknowledge.ts index 133b351d2..4e8926d6e 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToAcknowledge.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToAcknowledge.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToProgress.ts b/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToProgress.ts index 80ebe0f63..deb2070d1 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToProgress.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToProgress.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToResolve.ts b/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToResolve.ts index 6338fbbfb..63dd30f6c 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToResolve.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyResponseTimeToResolve.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyUpdate.ts b/frontend/app/src/lib/api/model/sLAPolicyUpdate.ts index 98f1ac66f..d7788bcb8 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyUpdate.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyUpdateIsDefault.ts b/frontend/app/src/lib/api/model/sLAPolicyUpdateIsDefault.ts index 31482e56a..95c461077 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyUpdateIsDefault.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyUpdateIsDefault.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyUpdateName.ts b/frontend/app/src/lib/api/model/sLAPolicyUpdateName.ts index 9beceaec2..0c860a810 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyUpdateName.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyUpdateName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyUpdateSeverityOverrides.ts b/frontend/app/src/lib/api/model/sLAPolicyUpdateSeverityOverrides.ts index 11922fa54..13925f569 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyUpdateSeverityOverrides.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyUpdateSeverityOverrides.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyUpdateSeverityOverridesAnyOf.ts b/frontend/app/src/lib/api/model/sLAPolicyUpdateSeverityOverridesAnyOf.ts index 2dc25c95f..e409b5ccb 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyUpdateSeverityOverridesAnyOf.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyUpdateSeverityOverridesAnyOf.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToAcknowledge.ts b/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToAcknowledge.ts index e9939ca2e..c03f2f73f 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToAcknowledge.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToAcknowledge.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToProgress.ts b/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToProgress.ts index e1a66ce2f..116ee2dca 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToProgress.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToProgress.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToResolve.ts b/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToResolve.ts index 2b6745ce0..f32657c72 100644 --- a/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToResolve.ts +++ b/frontend/app/src/lib/api/model/sLAPolicyUpdateTimeToResolve.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/saveCredentialsRequest.ts b/frontend/app/src/lib/api/model/saveCredentialsRequest.ts index 318069013..15997aaff 100644 --- a/frontend/app/src/lib/api/model/saveCredentialsRequest.ts +++ b/frontend/app/src/lib/api/model/saveCredentialsRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/saveCredentialsRequestRole.ts b/frontend/app/src/lib/api/model/saveCredentialsRequestRole.ts index de3fa6f70..39000bdbf 100644 --- a/frontend/app/src/lib/api/model/saveCredentialsRequestRole.ts +++ b/frontend/app/src/lib/api/model/saveCredentialsRequestRole.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/saveCredentialsRequestWarehouse.ts b/frontend/app/src/lib/api/model/saveCredentialsRequestWarehouse.ts index a74521950..c5ccc6f91 100644 --- a/frontend/app/src/lib/api/model/saveCredentialsRequestWarehouse.ts +++ b/frontend/app/src/lib/api/model/saveCredentialsRequestWarehouse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaCommentCreate.ts b/frontend/app/src/lib/api/model/schemaCommentCreate.ts index ffa78672c..259b5939b 100644 --- a/frontend/app/src/lib/api/model/schemaCommentCreate.ts +++ b/frontend/app/src/lib/api/model/schemaCommentCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaCommentCreateParentId.ts b/frontend/app/src/lib/api/model/schemaCommentCreateParentId.ts index 58a01d96c..6f7681ded 100644 --- a/frontend/app/src/lib/api/model/schemaCommentCreateParentId.ts +++ b/frontend/app/src/lib/api/model/schemaCommentCreateParentId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaCommentResponse.ts b/frontend/app/src/lib/api/model/schemaCommentResponse.ts index c8337f579..f1750d99f 100644 --- a/frontend/app/src/lib/api/model/schemaCommentResponse.ts +++ b/frontend/app/src/lib/api/model/schemaCommentResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaCommentResponseAuthorId.ts b/frontend/app/src/lib/api/model/schemaCommentResponseAuthorId.ts index 1891181e5..d71f3ce85 100644 --- a/frontend/app/src/lib/api/model/schemaCommentResponseAuthorId.ts +++ b/frontend/app/src/lib/api/model/schemaCommentResponseAuthorId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaCommentResponseAuthorName.ts b/frontend/app/src/lib/api/model/schemaCommentResponseAuthorName.ts index 0501bb9e1..9330cb5f3 100644 --- a/frontend/app/src/lib/api/model/schemaCommentResponseAuthorName.ts +++ b/frontend/app/src/lib/api/model/schemaCommentResponseAuthorName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaCommentResponseParentId.ts b/frontend/app/src/lib/api/model/schemaCommentResponseParentId.ts index 2b2603a15..54d796fbc 100644 --- a/frontend/app/src/lib/api/model/schemaCommentResponseParentId.ts +++ b/frontend/app/src/lib/api/model/schemaCommentResponseParentId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaCommentUpdate.ts b/frontend/app/src/lib/api/model/schemaCommentUpdate.ts index 8153a9e8a..e3ce18aab 100644 --- a/frontend/app/src/lib/api/model/schemaCommentUpdate.ts +++ b/frontend/app/src/lib/api/model/schemaCommentUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaResponseModel.ts b/frontend/app/src/lib/api/model/schemaResponseModel.ts index 94fd50bbf..ca6f027ad 100644 --- a/frontend/app/src/lib/api/model/schemaResponseModel.ts +++ b/frontend/app/src/lib/api/model/schemaResponseModel.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaResponseModelCatalogsItem.ts b/frontend/app/src/lib/api/model/schemaResponseModelCatalogsItem.ts index be9e64225..6b65e9fd1 100644 --- a/frontend/app/src/lib/api/model/schemaResponseModelCatalogsItem.ts +++ b/frontend/app/src/lib/api/model/schemaResponseModelCatalogsItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/schemaResponseModelTablesItem.ts b/frontend/app/src/lib/api/model/schemaResponseModelTablesItem.ts index 23e4e57d3..7b4e86055 100644 --- a/frontend/app/src/lib/api/model/schemaResponseModelTablesItem.ts +++ b/frontend/app/src/lib/api/model/schemaResponseModelTablesItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/scratchThreadCreate.ts b/frontend/app/src/lib/api/model/scratchThreadCreate.ts index 8f6360edf..5e20e9da3 100644 --- a/frontend/app/src/lib/api/model/scratchThreadCreate.ts +++ b/frontend/app/src/lib/api/model/scratchThreadCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/scratchThreadCreateTitle.ts b/frontend/app/src/lib/api/model/scratchThreadCreateTitle.ts index 63a15f6a5..51e6ec032 100644 --- a/frontend/app/src/lib/api/model/scratchThreadCreateTitle.ts +++ b/frontend/app/src/lib/api/model/scratchThreadCreateTitle.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/searchAssetInstancesApiV1AssetInstancesSearchGetParams.ts b/frontend/app/src/lib/api/model/searchAssetInstancesApiV1AssetInstancesSearchGetParams.ts index 366bfd656..6f96961b8 100644 --- a/frontend/app/src/lib/api/model/searchAssetInstancesApiV1AssetInstancesSearchGetParams.ts +++ b/frontend/app/src/lib/api/model/searchAssetInstancesApiV1AssetInstancesSearchGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,10 +9,14 @@ export type SearchAssetInstancesApiV1AssetInstancesSearchGetParams = { /** * Search query (min 1 char) + * @minLength 1 + * @maxLength 200 */ q: string; /** * Max results (default 10, max 100) + * @minimum 1 + * @maximum 100 */ limit?: number; /** diff --git a/frontend/app/src/lib/api/model/searchDatasetsApiV1LineageSearchGetParams.ts b/frontend/app/src/lib/api/model/searchDatasetsApiV1LineageSearchGetParams.ts index 1c9cb870c..7e2b03f11 100644 --- a/frontend/app/src/lib/api/model/searchDatasetsApiV1LineageSearchGetParams.ts +++ b/frontend/app/src/lib/api/model/searchDatasetsApiV1LineageSearchGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,10 +9,13 @@ export type SearchDatasetsApiV1LineageSearchGetParams = { /** * Search query + * @minLength 1 */ q: string; /** * Maximum results + * @minimum 1 + * @maximum 100 */ limit?: number; }; diff --git a/frontend/app/src/lib/api/model/searchResultsResponse.ts b/frontend/app/src/lib/api/model/searchResultsResponse.ts index e584034c4..72012e0c3 100644 --- a/frontend/app/src/lib/api/model/searchResultsResponse.ts +++ b/frontend/app/src/lib/api/model/searchResultsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/severityOverride.ts b/frontend/app/src/lib/api/model/severityOverride.ts index aeb8a23ca..eeff73a03 100644 --- a/frontend/app/src/lib/api/model/severityOverride.ts +++ b/frontend/app/src/lib/api/model/severityOverride.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/severityOverrideTimeToAcknowledge.ts b/frontend/app/src/lib/api/model/severityOverrideTimeToAcknowledge.ts index 7bcfcdce8..405cbc7d9 100644 --- a/frontend/app/src/lib/api/model/severityOverrideTimeToAcknowledge.ts +++ b/frontend/app/src/lib/api/model/severityOverrideTimeToAcknowledge.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/severityOverrideTimeToProgress.ts b/frontend/app/src/lib/api/model/severityOverrideTimeToProgress.ts index ca71feb90..610a951c4 100644 --- a/frontend/app/src/lib/api/model/severityOverrideTimeToProgress.ts +++ b/frontend/app/src/lib/api/model/severityOverrideTimeToProgress.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/severityOverrideTimeToResolve.ts b/frontend/app/src/lib/api/model/severityOverrideTimeToResolve.ts index 1f5c552e9..2f4b98550 100644 --- a/frontend/app/src/lib/api/model/severityOverrideTimeToResolve.ts +++ b/frontend/app/src/lib/api/model/severityOverrideTimeToResolve.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/showIfCondition.ts b/frontend/app/src/lib/api/model/showIfCondition.ts index bdaedb570..24a1b3c90 100644 --- a/frontend/app/src/lib/api/model/showIfCondition.ts +++ b/frontend/app/src/lib/api/model/showIfCondition.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sourceTypeResponse.ts b/frontend/app/src/lib/api/model/sourceTypeResponse.ts index ca863481a..4d092856f 100644 --- a/frontend/app/src/lib/api/model/sourceTypeResponse.ts +++ b/frontend/app/src/lib/api/model/sourceTypeResponse.ts @@ -1,12 +1,12 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { SourceTypeResponseCapabilities } from "./sourceTypeResponseCapabilities"; import type { ConfigSchema } from "./configSchema"; +import type { SourceTypeResponseCapabilities } from "./sourceTypeResponseCapabilities"; /** * Response for a source type definition. diff --git a/frontend/app/src/lib/api/model/sourceTypeResponseCapabilities.ts b/frontend/app/src/lib/api/model/sourceTypeResponseCapabilities.ts index 64e012bce..43d1a939f 100644 --- a/frontend/app/src/lib/api/model/sourceTypeResponseCapabilities.ts +++ b/frontend/app/src/lib/api/model/sourceTypeResponseCapabilities.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/sourceTypesResponse.ts b/frontend/app/src/lib/api/model/sourceTypesResponse.ts index 380dda677..42f32fbe4 100644 --- a/frontend/app/src/lib/api/model/sourceTypesResponse.ts +++ b/frontend/app/src/lib/api/model/sourceTypesResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/startInvestigationRequest.ts b/frontend/app/src/lib/api/model/startInvestigationRequest.ts index 157867be5..326a0e8e1 100644 --- a/frontend/app/src/lib/api/model/startInvestigationRequest.ts +++ b/frontend/app/src/lib/api/model/startInvestigationRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/startInvestigationRequestAlert.ts b/frontend/app/src/lib/api/model/startInvestigationRequestAlert.ts index eef9aa290..0348f3d7d 100644 --- a/frontend/app/src/lib/api/model/startInvestigationRequestAlert.ts +++ b/frontend/app/src/lib/api/model/startInvestigationRequestAlert.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/startInvestigationRequestDatasourceId.ts b/frontend/app/src/lib/api/model/startInvestigationRequestDatasourceId.ts index 6bb9717a1..f90c59fd6 100644 --- a/frontend/app/src/lib/api/model/startInvestigationRequestDatasourceId.ts +++ b/frontend/app/src/lib/api/model/startInvestigationRequestDatasourceId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/startInvestigationResponse.ts b/frontend/app/src/lib/api/model/startInvestigationResponse.ts index 69e643f93..e26db070f 100644 --- a/frontend/app/src/lib/api/model/startInvestigationResponse.ts +++ b/frontend/app/src/lib/api/model/startInvestigationResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/statsRequest.ts b/frontend/app/src/lib/api/model/statsRequest.ts index 3d1c4bc75..27cd79b3c 100644 --- a/frontend/app/src/lib/api/model/statsRequest.ts +++ b/frontend/app/src/lib/api/model/statsRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/statsResponse.ts b/frontend/app/src/lib/api/model/statsResponse.ts index 21e15756e..aa0b89797 100644 --- a/frontend/app/src/lib/api/model/statsResponse.ts +++ b/frontend/app/src/lib/api/model/statsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/statsResponseColumns.ts b/frontend/app/src/lib/api/model/statsResponseColumns.ts index 0e3cbaff2..4730ace6a 100644 --- a/frontend/app/src/lib/api/model/statsResponseColumns.ts +++ b/frontend/app/src/lib/api/model/statsResponseColumns.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/statsResponseRowCount.ts b/frontend/app/src/lib/api/model/statsResponseRowCount.ts index 15db8cd0e..a17fd0f7a 100644 --- a/frontend/app/src/lib/api/model/statsResponseRowCount.ts +++ b/frontend/app/src/lib/api/model/statsResponseRowCount.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerCreate.ts b/frontend/app/src/lib/api/model/steerCreate.ts index ade698bbf..348bfc42a 100644 --- a/frontend/app/src/lib/api/model/steerCreate.ts +++ b/frontend/app/src/lib/api/model/steerCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerCreateHypothesisId.ts b/frontend/app/src/lib/api/model/steerCreateHypothesisId.ts index 3e373595e..b90c94104 100644 --- a/frontend/app/src/lib/api/model/steerCreateHypothesisId.ts +++ b/frontend/app/src/lib/api/model/steerCreateHypothesisId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerCreateKind.ts b/frontend/app/src/lib/api/model/steerCreateKind.ts index a00e44d0e..75d6f11e3 100644 --- a/frontend/app/src/lib/api/model/steerCreateKind.ts +++ b/frontend/app/src/lib/api/model/steerCreateKind.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type SteerCreateKind = (typeof SteerCreateKind)[keyof typeof SteerCreateKind]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const SteerCreateKind = { add_context: "add_context", rule_out: "rule_out", diff --git a/frontend/app/src/lib/api/model/steerCreateProposalMessageId.ts b/frontend/app/src/lib/api/model/steerCreateProposalMessageId.ts index 1ba0c0679..3d0199c9e 100644 --- a/frontend/app/src/lib/api/model/steerCreateProposalMessageId.ts +++ b/frontend/app/src/lib/api/model/steerCreateProposalMessageId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerListResponse.ts b/frontend/app/src/lib/api/model/steerListResponse.ts index 32803b6d9..92fa8df8e 100644 --- a/frontend/app/src/lib/api/model/steerListResponse.ts +++ b/frontend/app/src/lib/api/model/steerListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerResponse.ts b/frontend/app/src/lib/api/model/steerResponse.ts index 2af99ec8d..8258720e0 100644 --- a/frontend/app/src/lib/api/model/steerResponse.ts +++ b/frontend/app/src/lib/api/model/steerResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerResponseActorUserId.ts b/frontend/app/src/lib/api/model/steerResponseActorUserId.ts index 37e75eff5..5fede3cdc 100644 --- a/frontend/app/src/lib/api/model/steerResponseActorUserId.ts +++ b/frontend/app/src/lib/api/model/steerResponseActorUserId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerResponseAppliedAt.ts b/frontend/app/src/lib/api/model/steerResponseAppliedAt.ts index 3a874d9be..ce007357a 100644 --- a/frontend/app/src/lib/api/model/steerResponseAppliedAt.ts +++ b/frontend/app/src/lib/api/model/steerResponseAppliedAt.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerResponseAppliedPhase.ts b/frontend/app/src/lib/api/model/steerResponseAppliedPhase.ts index 70136e7fa..acba8954c 100644 --- a/frontend/app/src/lib/api/model/steerResponseAppliedPhase.ts +++ b/frontend/app/src/lib/api/model/steerResponseAppliedPhase.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerResponseHypothesisId.ts b/frontend/app/src/lib/api/model/steerResponseHypothesisId.ts index 96f1e5f08..9ddc20e7d 100644 --- a/frontend/app/src/lib/api/model/steerResponseHypothesisId.ts +++ b/frontend/app/src/lib/api/model/steerResponseHypothesisId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerResponseIssueId.ts b/frontend/app/src/lib/api/model/steerResponseIssueId.ts index d105306df..665c14618 100644 --- a/frontend/app/src/lib/api/model/steerResponseIssueId.ts +++ b/frontend/app/src/lib/api/model/steerResponseIssueId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerResponseMessageId.ts b/frontend/app/src/lib/api/model/steerResponseMessageId.ts index 7f5655647..1483178e2 100644 --- a/frontend/app/src/lib/api/model/steerResponseMessageId.ts +++ b/frontend/app/src/lib/api/model/steerResponseMessageId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/steerResponseOutcome.ts b/frontend/app/src/lib/api/model/steerResponseOutcome.ts index 7b50aae7d..da9c592a8 100644 --- a/frontend/app/src/lib/api/model/steerResponseOutcome.ts +++ b/frontend/app/src/lib/api/model/steerResponseOutcome.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/stepHistoryItemResponse.ts b/frontend/app/src/lib/api/model/stepHistoryItemResponse.ts index c829abc68..c0eee2a81 100644 --- a/frontend/app/src/lib/api/model/stepHistoryItemResponse.ts +++ b/frontend/app/src/lib/api/model/stepHistoryItemResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/stepHistoryItemResponseTimestamp.ts b/frontend/app/src/lib/api/model/stepHistoryItemResponseTimestamp.ts index 5f040df19..489786c77 100644 --- a/frontend/app/src/lib/api/model/stepHistoryItemResponseTimestamp.ts +++ b/frontend/app/src/lib/api/model/stepHistoryItemResponseTimestamp.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/streamEventsApiV1InvestigationsInvestigationIdEventsGetParams.ts b/frontend/app/src/lib/api/model/streamEventsApiV1InvestigationsInvestigationIdEventsGetParams.ts index 8bb1e6473..c85cc444b 100644 --- a/frontend/app/src/lib/api/model/streamEventsApiV1InvestigationsInvestigationIdEventsGetParams.ts +++ b/frontend/app/src/lib/api/model/streamEventsApiV1InvestigationsInvestigationIdEventsGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/streamIssueEventsApiV1IssuesIssueIdStreamGetParams.ts b/frontend/app/src/lib/api/model/streamIssueEventsApiV1IssuesIssueIdStreamGetParams.ts index 5b4eaa148..d4ed78e8f 100644 --- a/frontend/app/src/lib/api/model/streamIssueEventsApiV1IssuesIssueIdStreamGetParams.ts +++ b/frontend/app/src/lib/api/model/streamIssueEventsApiV1IssuesIssueIdStreamGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetParams.ts b/frontend/app/src/lib/api/model/streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetParams.ts index 39119dd84..24cc12e0a 100644 --- a/frontend/app/src/lib/api/model/streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetParams.ts +++ b/frontend/app/src/lib/api/model/streamThreadApiV1IssuesIssueIdThreadsThreadIdStreamGetParams.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/syncResponse.ts b/frontend/app/src/lib/api/model/syncResponse.ts index 08701abf8..dd17bef16 100644 --- a/frontend/app/src/lib/api/model/syncResponse.ts +++ b/frontend/app/src/lib/api/model/syncResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tagCreate.ts b/frontend/app/src/lib/api/model/tagCreate.ts index 43120a003..e55860da7 100644 --- a/frontend/app/src/lib/api/model/tagCreate.ts +++ b/frontend/app/src/lib/api/model/tagCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tagListResponse.ts b/frontend/app/src/lib/api/model/tagListResponse.ts index f023b2631..39fe13891 100644 --- a/frontend/app/src/lib/api/model/tagListResponse.ts +++ b/frontend/app/src/lib/api/model/tagListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tagResponse.ts b/frontend/app/src/lib/api/model/tagResponse.ts index 28d6bb043..dfcf65d02 100644 --- a/frontend/app/src/lib/api/model/tagResponse.ts +++ b/frontend/app/src/lib/api/model/tagResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tagUpdate.ts b/frontend/app/src/lib/api/model/tagUpdate.ts index 08d987759..9c28f5649 100644 --- a/frontend/app/src/lib/api/model/tagUpdate.ts +++ b/frontend/app/src/lib/api/model/tagUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tagUpdateColor.ts b/frontend/app/src/lib/api/model/tagUpdateColor.ts index 20af53e3d..e2775ccc2 100644 --- a/frontend/app/src/lib/api/model/tagUpdateColor.ts +++ b/frontend/app/src/lib/api/model/tagUpdateColor.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tagUpdateName.ts b/frontend/app/src/lib/api/model/tagUpdateName.ts index f294bb185..6329f3e12 100644 --- a/frontend/app/src/lib/api/model/tagUpdateName.ts +++ b/frontend/app/src/lib/api/model/tagUpdateName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamCreate.ts b/frontend/app/src/lib/api/model/teamCreate.ts index 465790c74..06698ac12 100644 --- a/frontend/app/src/lib/api/model/teamCreate.ts +++ b/frontend/app/src/lib/api/model/teamCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamListResponse.ts b/frontend/app/src/lib/api/model/teamListResponse.ts index 3aaaf7489..69c221f1f 100644 --- a/frontend/app/src/lib/api/model/teamListResponse.ts +++ b/frontend/app/src/lib/api/model/teamListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamMemberAdd.ts b/frontend/app/src/lib/api/model/teamMemberAdd.ts index fb68a5f43..2465befb3 100644 --- a/frontend/app/src/lib/api/model/teamMemberAdd.ts +++ b/frontend/app/src/lib/api/model/teamMemberAdd.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyFullResponse.ts b/frontend/app/src/lib/api/model/teamPolicyFullResponse.ts index a44669763..0e95a2e5d 100644 --- a/frontend/app/src/lib/api/model/teamPolicyFullResponse.ts +++ b/frontend/app/src/lib/api/model/teamPolicyFullResponse.ts @@ -1,13 +1,13 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -import type { TeamPolicyOverrideResponse } from "./teamPolicyOverrideResponse"; import type { TeamPolicyFullResponsePolicy } from "./teamPolicyFullResponsePolicy"; import type { TeamPolicyFullResponseQueueLimits } from "./teamPolicyFullResponseQueueLimits"; +import type { TeamPolicyOverrideResponse } from "./teamPolicyOverrideResponse"; /** * Full team policy response including overrides and queue limits. diff --git a/frontend/app/src/lib/api/model/teamPolicyFullResponsePolicy.ts b/frontend/app/src/lib/api/model/teamPolicyFullResponsePolicy.ts index 9a0c6e373..dd5c57180 100644 --- a/frontend/app/src/lib/api/model/teamPolicyFullResponsePolicy.ts +++ b/frontend/app/src/lib/api/model/teamPolicyFullResponsePolicy.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyFullResponseQueueLimits.ts b/frontend/app/src/lib/api/model/teamPolicyFullResponseQueueLimits.ts index ff349168c..1911f45b2 100644 --- a/frontend/app/src/lib/api/model/teamPolicyFullResponseQueueLimits.ts +++ b/frontend/app/src/lib/api/model/teamPolicyFullResponseQueueLimits.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideCreate.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideCreate.ts index 92b178430..61a95c003 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideCreate.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateAutoInvestigateMinSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateAutoInvestigateMinSeverity.ts index db0c1bf63..07d14ceec 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateAutoInvestigateMinSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateAutoInvestigateMinSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateDatasetId.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateDatasetId.ts index 52cf10bac..957a19d9e 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateDatasetId.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateDatasetId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateDefaultAction.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateDefaultAction.ts index 6ccfa0247..27374d17d 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateDefaultAction.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateDefaultAction.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateReviewRequiredMaxSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateReviewRequiredMaxSeverity.ts index 669561ca1..47458ebdc 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateReviewRequiredMaxSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateReviewRequiredMaxSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateTagId.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateTagId.ts index 750bac391..a9cefd18e 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideCreateTagId.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideCreateTagId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideResponse.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideResponse.ts index 65e91592c..482e94a2e 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideResponse.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseAutoInvestigateMinSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseAutoInvestigateMinSeverity.ts index 8d36dc479..73fdbd5a9 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseAutoInvestigateMinSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseAutoInvestigateMinSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseDatasetId.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseDatasetId.ts index 102a8b331..3d3475819 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseDatasetId.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseDatasetId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseDefaultAction.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseDefaultAction.ts index d62edf795..dbb7fb74e 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseDefaultAction.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseDefaultAction.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseReviewRequiredMaxSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseReviewRequiredMaxSeverity.ts index 38ef9f02e..958c28de5 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseReviewRequiredMaxSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseReviewRequiredMaxSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseTagId.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseTagId.ts index be004073d..3842a4e60 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideResponseTagId.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideResponseTagId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideUpdate.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideUpdate.ts index f8b3d0d58..800dcb157 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideUpdate.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateAutoInvestigateMinSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateAutoInvestigateMinSeverity.ts index 6b8d567cf..43226f763 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateAutoInvestigateMinSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateAutoInvestigateMinSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateDefaultAction.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateDefaultAction.ts index 6e2cb43cc..78b80c188 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateDefaultAction.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateDefaultAction.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateReviewRequiredMaxSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateReviewRequiredMaxSeverity.ts index 05105a52c..431ccbdc6 100644 --- a/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateReviewRequiredMaxSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyOverrideUpdateReviewRequiredMaxSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyResponse.ts b/frontend/app/src/lib/api/model/teamPolicyResponse.ts index 542dd14b8..5a3cedb6f 100644 --- a/frontend/app/src/lib/api/model/teamPolicyResponse.ts +++ b/frontend/app/src/lib/api/model/teamPolicyResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyResponseAutoInvestigateMinSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyResponseAutoInvestigateMinSeverity.ts index 8a8004f5b..74e4f3dbe 100644 --- a/frontend/app/src/lib/api/model/teamPolicyResponseAutoInvestigateMinSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyResponseAutoInvestigateMinSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyResponseReviewRequiredMaxSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyResponseReviewRequiredMaxSeverity.ts index f0a15622e..c3a7be1c0 100644 --- a/frontend/app/src/lib/api/model/teamPolicyResponseReviewRequiredMaxSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyResponseReviewRequiredMaxSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyUpdate.ts b/frontend/app/src/lib/api/model/teamPolicyUpdate.ts index 73c7e055b..d993561f3 100644 --- a/frontend/app/src/lib/api/model/teamPolicyUpdate.ts +++ b/frontend/app/src/lib/api/model/teamPolicyUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyUpdateAutoInvestigateMinSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyUpdateAutoInvestigateMinSeverity.ts index 896a40a4d..7f3373377 100644 --- a/frontend/app/src/lib/api/model/teamPolicyUpdateAutoInvestigateMinSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyUpdateAutoInvestigateMinSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyUpdateDefaultAction.ts b/frontend/app/src/lib/api/model/teamPolicyUpdateDefaultAction.ts index e99eca74e..6a70deff6 100644 --- a/frontend/app/src/lib/api/model/teamPolicyUpdateDefaultAction.ts +++ b/frontend/app/src/lib/api/model/teamPolicyUpdateDefaultAction.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyUpdateReviewRequiredMaxSeverity.ts b/frontend/app/src/lib/api/model/teamPolicyUpdateReviewRequiredMaxSeverity.ts index 57c13aeab..3e9729525 100644 --- a/frontend/app/src/lib/api/model/teamPolicyUpdateReviewRequiredMaxSeverity.ts +++ b/frontend/app/src/lib/api/model/teamPolicyUpdateReviewRequiredMaxSeverity.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamPolicyUpdateSources.ts b/frontend/app/src/lib/api/model/teamPolicyUpdateSources.ts index 98e0697ea..32ed5a5c9 100644 --- a/frontend/app/src/lib/api/model/teamPolicyUpdateSources.ts +++ b/frontend/app/src/lib/api/model/teamPolicyUpdateSources.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamQueueLimitsResponse.ts b/frontend/app/src/lib/api/model/teamQueueLimitsResponse.ts index dd2e016ca..772f72f34 100644 --- a/frontend/app/src/lib/api/model/teamQueueLimitsResponse.ts +++ b/frontend/app/src/lib/api/model/teamQueueLimitsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamQueueLimitsUpdate.ts b/frontend/app/src/lib/api/model/teamQueueLimitsUpdate.ts index dafc35719..a086993cc 100644 --- a/frontend/app/src/lib/api/model/teamQueueLimitsUpdate.ts +++ b/frontend/app/src/lib/api/model/teamQueueLimitsUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamQueueLimitsUpdateBatchSize.ts b/frontend/app/src/lib/api/model/teamQueueLimitsUpdateBatchSize.ts index 7cb769f2a..74124ff03 100644 --- a/frontend/app/src/lib/api/model/teamQueueLimitsUpdateBatchSize.ts +++ b/frontend/app/src/lib/api/model/teamQueueLimitsUpdateBatchSize.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamQueueLimitsUpdateBurstSize.ts b/frontend/app/src/lib/api/model/teamQueueLimitsUpdateBurstSize.ts index 3d7d58ef0..57afc79db 100644 --- a/frontend/app/src/lib/api/model/teamQueueLimitsUpdateBurstSize.ts +++ b/frontend/app/src/lib/api/model/teamQueueLimitsUpdateBurstSize.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamQueueLimitsUpdateMaxConcurrent.ts b/frontend/app/src/lib/api/model/teamQueueLimitsUpdateMaxConcurrent.ts index 1d08aad68..96d487597 100644 --- a/frontend/app/src/lib/api/model/teamQueueLimitsUpdateMaxConcurrent.ts +++ b/frontend/app/src/lib/api/model/teamQueueLimitsUpdateMaxConcurrent.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamQueueLimitsUpdateRateLimitPerMinute.ts b/frontend/app/src/lib/api/model/teamQueueLimitsUpdateRateLimitPerMinute.ts index 93098b4c0..a6ba1203b 100644 --- a/frontend/app/src/lib/api/model/teamQueueLimitsUpdateRateLimitPerMinute.ts +++ b/frontend/app/src/lib/api/model/teamQueueLimitsUpdateRateLimitPerMinute.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamResponse.ts b/frontend/app/src/lib/api/model/teamResponse.ts index abaf301b3..cf3536dea 100644 --- a/frontend/app/src/lib/api/model/teamResponse.ts +++ b/frontend/app/src/lib/api/model/teamResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamResponseExternalId.ts b/frontend/app/src/lib/api/model/teamResponseExternalId.ts index 2d0817ded..46368876b 100644 --- a/frontend/app/src/lib/api/model/teamResponseExternalId.ts +++ b/frontend/app/src/lib/api/model/teamResponseExternalId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamResponseMemberCount.ts b/frontend/app/src/lib/api/model/teamResponseMemberCount.ts index 775aaef4b..4a5bea5cb 100644 --- a/frontend/app/src/lib/api/model/teamResponseMemberCount.ts +++ b/frontend/app/src/lib/api/model/teamResponseMemberCount.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/teamUpdate.ts b/frontend/app/src/lib/api/model/teamUpdate.ts index 4580f4499..420ac5a56 100644 --- a/frontend/app/src/lib/api/model/teamUpdate.ts +++ b/frontend/app/src/lib/api/model/teamUpdate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponse.ts b/frontend/app/src/lib/api/model/temporalStatusResponse.ts index c3650b0f7..14115971b 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponse.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponseCurrentStep.ts b/frontend/app/src/lib/api/model/temporalStatusResponseCurrentStep.ts index fcdd5ab21..1e826fcad 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponseCurrentStep.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponseCurrentStep.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponseEvidenceCount.ts b/frontend/app/src/lib/api/model/temporalStatusResponseEvidenceCount.ts index 374d0abd1..0e67ccce2 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponseEvidenceCount.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponseEvidenceCount.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponseHypotheses.ts b/frontend/app/src/lib/api/model/temporalStatusResponseHypotheses.ts index 51eed14be..9488b9552 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponseHypotheses.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponseHypotheses.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesAnyOfItem.ts b/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesAnyOfItem.ts index 9df3febaa..496f0818f 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesAnyOfItem.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesAnyOfItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesCount.ts b/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesCount.ts index 2d5839052..bfda73575 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesCount.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesCount.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesEvaluated.ts b/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesEvaluated.ts index f88f96aff..eaa97204c 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesEvaluated.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponseHypothesesEvaluated.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponseIsCancelled.ts b/frontend/app/src/lib/api/model/temporalStatusResponseIsCancelled.ts index f52610023..a27f58db6 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponseIsCancelled.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponseIsCancelled.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponseIsComplete.ts b/frontend/app/src/lib/api/model/temporalStatusResponseIsComplete.ts index 67ec23761..a44b6cec4 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponseIsComplete.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponseIsComplete.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponsePendingSteers.ts b/frontend/app/src/lib/api/model/temporalStatusResponsePendingSteers.ts index ab01cb4e7..61401e9ca 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponsePendingSteers.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponsePendingSteers.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponsePendingSteersAnyOfItem.ts b/frontend/app/src/lib/api/model/temporalStatusResponsePendingSteersAnyOfItem.ts index fd4308697..f958233be 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponsePendingSteersAnyOfItem.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponsePendingSteersAnyOfItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/temporalStatusResponseProgress.ts b/frontend/app/src/lib/api/model/temporalStatusResponseProgress.ts index f8f7493d1..14c5be7b4 100644 --- a/frontend/app/src/lib/api/model/temporalStatusResponseProgress.ts +++ b/frontend/app/src/lib/api/model/temporalStatusResponseProgress.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/testConnectionRequest.ts b/frontend/app/src/lib/api/model/testConnectionRequest.ts index 1fb81981a..ad916ff37 100644 --- a/frontend/app/src/lib/api/model/testConnectionRequest.ts +++ b/frontend/app/src/lib/api/model/testConnectionRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/testConnectionRequestConfig.ts b/frontend/app/src/lib/api/model/testConnectionRequestConfig.ts index e55a93f1e..e94fbdbea 100644 --- a/frontend/app/src/lib/api/model/testConnectionRequestConfig.ts +++ b/frontend/app/src/lib/api/model/testConnectionRequestConfig.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/testConnectionResponse.ts b/frontend/app/src/lib/api/model/testConnectionResponse.ts index 89ebe0a1b..5bd913878 100644 --- a/frontend/app/src/lib/api/model/testConnectionResponse.ts +++ b/frontend/app/src/lib/api/model/testConnectionResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/testConnectionResponseLatencyMs.ts b/frontend/app/src/lib/api/model/testConnectionResponseLatencyMs.ts index 8219d495d..e1b2eedb1 100644 --- a/frontend/app/src/lib/api/model/testConnectionResponseLatencyMs.ts +++ b/frontend/app/src/lib/api/model/testConnectionResponseLatencyMs.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/testConnectionResponseServerVersion.ts b/frontend/app/src/lib/api/model/testConnectionResponseServerVersion.ts index c3903e054..fa974a85d 100644 --- a/frontend/app/src/lib/api/model/testConnectionResponseServerVersion.ts +++ b/frontend/app/src/lib/api/model/testConnectionResponseServerVersion.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/threadListResponse.ts b/frontend/app/src/lib/api/model/threadListResponse.ts index 9143043e3..8b425d06c 100644 --- a/frontend/app/src/lib/api/model/threadListResponse.ts +++ b/frontend/app/src/lib/api/model/threadListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/threadResponse.ts b/frontend/app/src/lib/api/model/threadResponse.ts index 0966328c0..98b940cef 100644 --- a/frontend/app/src/lib/api/model/threadResponse.ts +++ b/frontend/app/src/lib/api/model/threadResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/threadResponseKind.ts b/frontend/app/src/lib/api/model/threadResponseKind.ts index f9b210c23..808cbb93d 100644 --- a/frontend/app/src/lib/api/model/threadResponseKind.ts +++ b/frontend/app/src/lib/api/model/threadResponseKind.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type ThreadResponseKind = (typeof ThreadResponseKind)[keyof typeof ThreadResponseKind]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const ThreadResponseKind = { shared: "shared", scratch: "scratch", diff --git a/frontend/app/src/lib/api/model/threadResponseOwnerUserId.ts b/frontend/app/src/lib/api/model/threadResponseOwnerUserId.ts index a8411c7ad..e5e658ec6 100644 --- a/frontend/app/src/lib/api/model/threadResponseOwnerUserId.ts +++ b/frontend/app/src/lib/api/model/threadResponseOwnerUserId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/threadResponseTitle.ts b/frontend/app/src/lib/api/model/threadResponseTitle.ts index c8fb1fb33..8e4157817 100644 --- a/frontend/app/src/lib/api/model/threadResponseTitle.ts +++ b/frontend/app/src/lib/api/model/threadResponseTitle.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/timeWindow.ts b/frontend/app/src/lib/api/model/timeWindow.ts index cb831a69c..97d70a4ab 100644 --- a/frontend/app/src/lib/api/model/timeWindow.ts +++ b/frontend/app/src/lib/api/model/timeWindow.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tokenResponse.ts b/frontend/app/src/lib/api/model/tokenResponse.ts index 21a1c1abc..c6abebb6d 100644 --- a/frontend/app/src/lib/api/model/tokenResponse.ts +++ b/frontend/app/src/lib/api/model/tokenResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tokenResponseOrg.ts b/frontend/app/src/lib/api/model/tokenResponseOrg.ts index cb5fa8a93..f4b49d393 100644 --- a/frontend/app/src/lib/api/model/tokenResponseOrg.ts +++ b/frontend/app/src/lib/api/model/tokenResponseOrg.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tokenResponseOrgAnyOf.ts b/frontend/app/src/lib/api/model/tokenResponseOrgAnyOf.ts index 87a15e434..2b2f3813d 100644 --- a/frontend/app/src/lib/api/model/tokenResponseOrgAnyOf.ts +++ b/frontend/app/src/lib/api/model/tokenResponseOrgAnyOf.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tokenResponseRefreshToken.ts b/frontend/app/src/lib/api/model/tokenResponseRefreshToken.ts index e3a133dbe..e9f227371 100644 --- a/frontend/app/src/lib/api/model/tokenResponseRefreshToken.ts +++ b/frontend/app/src/lib/api/model/tokenResponseRefreshToken.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tokenResponseRole.ts b/frontend/app/src/lib/api/model/tokenResponseRole.ts index 00bae92d1..61dcee1f9 100644 --- a/frontend/app/src/lib/api/model/tokenResponseRole.ts +++ b/frontend/app/src/lib/api/model/tokenResponseRole.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tokenResponseUser.ts b/frontend/app/src/lib/api/model/tokenResponseUser.ts index 90042cc32..e71468dfd 100644 --- a/frontend/app/src/lib/api/model/tokenResponseUser.ts +++ b/frontend/app/src/lib/api/model/tokenResponseUser.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/tokenResponseUserAnyOf.ts b/frontend/app/src/lib/api/model/tokenResponseUserAnyOf.ts index 16cf2b437..391a72666 100644 --- a/frontend/app/src/lib/api/model/tokenResponseUserAnyOf.ts +++ b/frontend/app/src/lib/api/model/tokenResponseUserAnyOf.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/unreadCountResponse.ts b/frontend/app/src/lib/api/model/unreadCountResponse.ts index c42a892d4..183b2546e 100644 --- a/frontend/app/src/lib/api/model/unreadCountResponse.ts +++ b/frontend/app/src/lib/api/model/unreadCountResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateMemberRoleApiV1UsersUserIdRolePatch200.ts b/frontend/app/src/lib/api/model/updateMemberRoleApiV1UsersUserIdRolePatch200.ts index d19f77054..7f7cf4a5f 100644 --- a/frontend/app/src/lib/api/model/updateMemberRoleApiV1UsersUserIdRolePatch200.ts +++ b/frontend/app/src/lib/api/model/updateMemberRoleApiV1UsersUserIdRolePatch200.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequest.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequest.ts index 131f793d4..678637fe5 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequest.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequestBranch.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequestBranch.ts index e098607af..2600eb64a 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequestBranch.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequestBranch.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequestDatasetPattern.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequestDatasetPattern.ts index cc0c8614d..b2d0f796a 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequestDatasetPattern.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequestDatasetPattern.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequestFilePath.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequestFilePath.ts index be574b297..f085761bc 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequestFilePath.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequestFilePath.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequestJobName.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequestJobName.ts index 4055224b4..493d0917a 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequestJobName.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequestJobName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequestMetadata.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequestMetadata.ts index 36a12428a..ebf1aad96 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequestMetadata.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequestMetadata.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequestMetadataAnyOf.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequestMetadataAnyOf.ts index 28b8ab393..79a81963e 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequestMetadataAnyOf.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequestMetadataAnyOf.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequestPatternType.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequestPatternType.ts index 073fa93e4..60210de7a 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequestPatternType.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequestPatternType.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequestRepoName.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequestRepoName.ts index de92fb307..732972ea5 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequestRepoName.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequestRepoName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRepoMappingRequestRepoOwner.ts b/frontend/app/src/lib/api/model/updateRepoMappingRequestRepoOwner.ts index ea9d9c893..e6ed2ab84 100644 --- a/frontend/app/src/lib/api/model/updateRepoMappingRequestRepoOwner.ts +++ b/frontend/app/src/lib/api/model/updateRepoMappingRequestRepoOwner.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateRoleRequest.ts b/frontend/app/src/lib/api/model/updateRoleRequest.ts index 189581c9a..66a3f52a9 100644 --- a/frontend/app/src/lib/api/model/updateRoleRequest.ts +++ b/frontend/app/src/lib/api/model/updateRoleRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateUserRequest.ts b/frontend/app/src/lib/api/model/updateUserRequest.ts index f6457f03b..59d1b2dbc 100644 --- a/frontend/app/src/lib/api/model/updateUserRequest.ts +++ b/frontend/app/src/lib/api/model/updateUserRequest.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateUserRequestIsActive.ts b/frontend/app/src/lib/api/model/updateUserRequestIsActive.ts index 54a7f62f9..e78a91785 100644 --- a/frontend/app/src/lib/api/model/updateUserRequestIsActive.ts +++ b/frontend/app/src/lib/api/model/updateUserRequestIsActive.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateUserRequestName.ts b/frontend/app/src/lib/api/model/updateUserRequestName.ts index 4126b54ce..051f9f65e 100644 --- a/frontend/app/src/lib/api/model/updateUserRequestName.ts +++ b/frontend/app/src/lib/api/model/updateUserRequestName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/updateUserRequestRole.ts b/frontend/app/src/lib/api/model/updateUserRequestRole.ts index 8dd482c42..b23d84d1c 100644 --- a/frontend/app/src/lib/api/model/updateUserRequestRole.ts +++ b/frontend/app/src/lib/api/model/updateUserRequestRole.ts @@ -1,9 +1,17 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation * OpenAPI spec version: 2.0.0 */ -export type UpdateUserRequestRole = "admin" | "member" | "viewer" | null; +export type UpdateUserRequestRole = + | (typeof UpdateUserRequestRole)[keyof typeof UpdateUserRequestRole] + | null; + +export const UpdateUserRequestRole = { + admin: "admin", + member: "member", + viewer: "viewer", +} as const; diff --git a/frontend/app/src/lib/api/model/upstreamResponse.ts b/frontend/app/src/lib/api/model/upstreamResponse.ts index b6b8f9d13..f2ebc181d 100644 --- a/frontend/app/src/lib/api/model/upstreamResponse.ts +++ b/frontend/app/src/lib/api/model/upstreamResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/usageMetricsResponse.ts b/frontend/app/src/lib/api/model/usageMetricsResponse.ts index 9e741e646..f960bb1e1 100644 --- a/frontend/app/src/lib/api/model/usageMetricsResponse.ts +++ b/frontend/app/src/lib/api/model/usageMetricsResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/userListResponse.ts b/frontend/app/src/lib/api/model/userListResponse.ts index e1970b55d..20e7ba10d 100644 --- a/frontend/app/src/lib/api/model/userListResponse.ts +++ b/frontend/app/src/lib/api/model/userListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/userResponse.ts b/frontend/app/src/lib/api/model/userResponse.ts index 3e5f8819e..ae9a03b50 100644 --- a/frontend/app/src/lib/api/model/userResponse.ts +++ b/frontend/app/src/lib/api/model/userResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/userResponseName.ts b/frontend/app/src/lib/api/model/userResponseName.ts index a536aa074..4efec1e09 100644 --- a/frontend/app/src/lib/api/model/userResponseName.ts +++ b/frontend/app/src/lib/api/model/userResponseName.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/userResponseRole.ts b/frontend/app/src/lib/api/model/userResponseRole.ts index 886904a74..5de973966 100644 --- a/frontend/app/src/lib/api/model/userResponseRole.ts +++ b/frontend/app/src/lib/api/model/userResponseRole.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -9,7 +9,6 @@ export type UserResponseRole = (typeof UserResponseRole)[keyof typeof UserResponseRole]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const UserResponseRole = { admin: "admin", member: "member", diff --git a/frontend/app/src/lib/api/model/validationError.ts b/frontend/app/src/lib/api/model/validationError.ts index 554178fbb..ed844b7c6 100644 --- a/frontend/app/src/lib/api/model/validationError.ts +++ b/frontend/app/src/lib/api/model/validationError.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/validationErrorLocItem.ts b/frontend/app/src/lib/api/model/validationErrorLocItem.ts index e461a80ea..9a607373f 100644 --- a/frontend/app/src/lib/api/model/validationErrorLocItem.ts +++ b/frontend/app/src/lib/api/model/validationErrorLocItem.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/voteCreate.ts b/frontend/app/src/lib/api/model/voteCreate.ts index 0cb8ee9bd..901545d04 100644 --- a/frontend/app/src/lib/api/model/voteCreate.ts +++ b/frontend/app/src/lib/api/model/voteCreate.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/voteCreateVote.ts b/frontend/app/src/lib/api/model/voteCreateVote.ts index a99635507..51fb2f3c1 100644 --- a/frontend/app/src/lib/api/model/voteCreateVote.ts +++ b/frontend/app/src/lib/api/model/voteCreateVote.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation @@ -12,7 +12,6 @@ export type VoteCreateVote = (typeof VoteCreateVote)[keyof typeof VoteCreateVote]; -// eslint-disable-next-line @typescript-eslint/no-redeclare export const VoteCreateVote = { NUMBER_1: 1, NUMBER_MINUS_1: -1, diff --git a/frontend/app/src/lib/api/model/watcherListResponse.ts b/frontend/app/src/lib/api/model/watcherListResponse.ts index e0fe98941..c0d94a027 100644 --- a/frontend/app/src/lib/api/model/watcherListResponse.ts +++ b/frontend/app/src/lib/api/model/watcherListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/watcherResponse.ts b/frontend/app/src/lib/api/model/watcherResponse.ts index 82eef9875..e07f928aa 100644 --- a/frontend/app/src/lib/api/model/watcherResponse.ts +++ b/frontend/app/src/lib/api/model/watcherResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/webhookIssueResponse.ts b/frontend/app/src/lib/api/model/webhookIssueResponse.ts index f889d583c..734c513eb 100644 --- a/frontend/app/src/lib/api/model/webhookIssueResponse.ts +++ b/frontend/app/src/lib/api/model/webhookIssueResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/webhookIssueResponseInvestigationId.ts b/frontend/app/src/lib/api/model/webhookIssueResponseInvestigationId.ts index 87247121b..43f99ccda 100644 --- a/frontend/app/src/lib/api/model/webhookIssueResponseInvestigationId.ts +++ b/frontend/app/src/lib/api/model/webhookIssueResponseInvestigationId.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/webhookIssueResponsePolicyAction.ts b/frontend/app/src/lib/api/model/webhookIssueResponsePolicyAction.ts index 715c071bd..6e6666af5 100644 --- a/frontend/app/src/lib/api/model/webhookIssueResponsePolicyAction.ts +++ b/frontend/app/src/lib/api/model/webhookIssueResponsePolicyAction.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/weeklyUsageListResponse.ts b/frontend/app/src/lib/api/model/weeklyUsageListResponse.ts index 97a12e208..42e805071 100644 --- a/frontend/app/src/lib/api/model/weeklyUsageListResponse.ts +++ b/frontend/app/src/lib/api/model/weeklyUsageListResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/frontend/app/src/lib/api/model/weeklyUsageResponse.ts b/frontend/app/src/lib/api/model/weeklyUsageResponse.ts index 23fc80878..4d9aaa10e 100644 --- a/frontend/app/src/lib/api/model/weeklyUsageResponse.ts +++ b/frontend/app/src/lib/api/model/weeklyUsageResponse.ts @@ -1,5 +1,5 @@ /** - * Generated by orval v6.31.0 🍺 + * Generated by orval 🍺 * Do not edit manually. * dataing * Autonomous Data Quality Investigation diff --git a/justfile b/justfile index d265970b0..6c1fd7879 100644 --- a/justfile +++ b/justfile @@ -219,9 +219,15 @@ format: # Generate OpenAPI client for frontend generate-client: - @echo "Exporting OpenAPI schema from backend..." + #!/usr/bin/env bash + set -euo pipefail + # Exporting the schema builds the app, which refuses to start without a JWT signing + # key of 32+ bytes. The schema doesn't depend on the key, so a throwaway one will do. + jwt_key="${JWT_SECRET_KEY:-}" + if [ "${#jwt_key}" -lt 32 ]; then export JWT_SECRET_KEY="$(openssl rand -hex 32)"; fi + echo "Exporting OpenAPI schema from backend..." uv run python python-packages/dataing/scripts/export_openapi.py - @echo "Generating OpenAPI client..." + echo "Generating OpenAPI client..." cd frontend/app && pnpm orval # Build for production