From 91d0e90c2f88df0240fb3ec36ddcc577f520dd5f Mon Sep 17 00:00:00 2001 From: Tobias O Date: Thu, 28 Nov 2024 12:18:25 +0100 Subject: [PATCH] refactor(frontend): regenerate client --- frontend/src/lib/client/tmvisdb.ts | 1697 +++++++++++----------------- 1 file changed, 689 insertions(+), 1008 deletions(-) diff --git a/frontend/src/lib/client/tmvisdb.ts b/frontend/src/lib/client/tmvisdb.ts index d489480..995e976 100644 --- a/frontend/src/lib/client/tmvisdb.ts +++ b/frontend/src/lib/client/tmvisdb.ts @@ -4,14 +4,15 @@ * TMVis * OpenAPI spec version: 0.1.0 */ +import { + createQuery +} from '@tanstack/svelte-query' import type { CreateQueryOptions, CreateQueryResult, QueryFunction, - QueryKey, -} from "@tanstack/svelte-query"; -import { createQuery } from "@tanstack/svelte-query"; -import { dataMutator } from "./dataMutator"; + QueryKey +} from '@tanstack/svelte-query' import type { AnnotationData, AnnotationLegend, @@ -30,1203 +31,883 @@ import type { ProteinExistence, ProteinInfo, ProteinResponse, - SuperKingdom, -} from "./model"; + SuperKingdom +} from './model' +import { dataMutator } from './dataMutator'; type AwaitedInput = PromiseLike | T; -type Awaited = O extends AwaitedInput ? T : never; + type Awaited = O extends AwaitedInput ? T : never; + + /** * @summary Get Random Proteins */ export const getRandomProteins = ( - numSequences: number, - signal?: AbortSignal, + numSequences: number, + signal?: AbortSignal ) => { - return dataMutator({ - url: `/api/v1/proteins/random/${numSequences}/`, - method: "GET", - signal, - }); -}; - -export const getGetRandomProteinsQueryKey = (numSequences: number) => { - return [`/api/v1/proteins/random/${numSequences}/`] as const; -}; - -export const getGetRandomProteinsQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - numSequences: number, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, + + + return dataMutator( + {url: `/api/v1/proteins/random/${numSequences}/`, method: 'GET', signal + }, + ); + } + + +export const getGetRandomProteinsQueryKey = (numSequences: number,) => { + return [`/api/v1/proteins/random/${numSequences}/`] as const; + } + + +export const getGetRandomProteinsQueryOptions = >, TError = HTTPValidationError>(numSequences: number, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? getGetRandomProteinsQueryKey(numSequences); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => getRandomProteins(numSequences, signal); - - return { - queryKey, - queryFn, - enabled: !!numSequences, - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetRandomProteinsQueryResult = NonNullable< - Awaited> ->; -export type GetRandomProteinsQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetRandomProteinsQueryKey(numSequences); + + + + const queryFn: QueryFunction>> = ({ signal }) => getRandomProteins(numSequences, signal); + + + + + + return { queryKey, queryFn, enabled: !!(numSequences), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetRandomProteinsQueryResult = NonNullable>> +export type GetRandomProteinsQueryError = HTTPValidationError + /** * @summary Get Random Proteins */ -export function createGetRandomProteins< - TData = Awaited>, - TError = HTTPValidationError, ->( - numSequences: number, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetRandomProteinsQueryOptions(numSequences, options); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetRandomProteins>, TError = HTTPValidationError>( + numSequences: number, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetRandomProteinsQueryOptions(numSequences,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Protein By Id */ export const getProteinById = ( - uniprotAccession: string, - signal?: AbortSignal, + uniprotAccession: string, + signal?: AbortSignal ) => { - return dataMutator({ - url: `/api/v1/proteins/${uniprotAccession}`, - method: "GET", - signal, - }); -}; - -export const getGetProteinByIdQueryKey = (uniprotAccession: string) => { - return [`/api/v1/proteins/${uniprotAccession}`] as const; -}; - -export const getGetProteinByIdQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - uniprotAccession: string, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, + + + return dataMutator( + {url: `/api/v1/proteins/${uniprotAccession}`, method: 'GET', signal + }, + ); + } + + +export const getGetProteinByIdQueryKey = (uniprotAccession: string,) => { + return [`/api/v1/proteins/${uniprotAccession}`] as const; + } + + +export const getGetProteinByIdQueryOptions = >, TError = HTTPValidationError>(uniprotAccession: string, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? getGetProteinByIdQueryKey(uniprotAccession); - - const queryFn: QueryFunction>> = ({ - signal, - }) => getProteinById(uniprotAccession, signal); - - return { - queryKey, - queryFn, - enabled: !!uniprotAccession, - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetProteinByIdQueryResult = NonNullable< - Awaited> ->; -export type GetProteinByIdQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetProteinByIdQueryKey(uniprotAccession); + + + + const queryFn: QueryFunction>> = ({ signal }) => getProteinById(uniprotAccession, signal); + + + + + + return { queryKey, queryFn, enabled: !!(uniprotAccession), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetProteinByIdQueryResult = NonNullable>> +export type GetProteinByIdQueryError = HTTPValidationError + /** * @summary Get Protein By Id */ -export function createGetProteinById< - TData = Awaited>, - TError = HTTPValidationError, ->( - uniprotAccession: string, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetProteinByIdQueryOptions(uniprotAccession, options); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetProteinById>, TError = HTTPValidationError>( + uniprotAccession: string, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetProteinByIdQueryOptions(uniprotAccession,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Check Protein Exists */ export const checkProteinExists = ( - uniprotAccession: string, - signal?: AbortSignal, + uniprotAccession: string, + signal?: AbortSignal ) => { - return dataMutator({ - url: `/api/v1/proteins/exists/${uniprotAccession}`, - method: "GET", - signal, - }); -}; - -export const getCheckProteinExistsQueryKey = (uniprotAccession: string) => { - return [`/api/v1/proteins/exists/${uniprotAccession}`] as const; -}; - -export const getCheckProteinExistsQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - uniprotAccession: string, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, + + + return dataMutator( + {url: `/api/v1/proteins/exists/${uniprotAccession}`, method: 'GET', signal + }, + ); + } + + +export const getCheckProteinExistsQueryKey = (uniprotAccession: string,) => { + return [`/api/v1/proteins/exists/${uniprotAccession}`] as const; + } + + +export const getCheckProteinExistsQueryOptions = >, TError = HTTPValidationError>(uniprotAccession: string, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? getCheckProteinExistsQueryKey(uniprotAccession); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => checkProteinExists(uniprotAccession, signal); - - return { - queryKey, - queryFn, - enabled: !!uniprotAccession, - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type CheckProteinExistsQueryResult = NonNullable< - Awaited> ->; -export type CheckProteinExistsQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getCheckProteinExistsQueryKey(uniprotAccession); + + + + const queryFn: QueryFunction>> = ({ signal }) => checkProteinExists(uniprotAccession, signal); + + + + + + return { queryKey, queryFn, enabled: !!(uniprotAccession), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type CheckProteinExistsQueryResult = NonNullable>> +export type CheckProteinExistsQueryError = HTTPValidationError + /** * @summary Check Protein Exists */ -export function createCheckProteinExists< - TData = Awaited>, - TError = HTTPValidationError, ->( - uniprotAccession: string, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getCheckProteinExistsQueryOptions( - uniprotAccession, - options, - ); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createCheckProteinExists>, TError = HTTPValidationError>( + uniprotAccession: string, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getCheckProteinExistsQueryOptions(uniprotAccession,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Proteins By Organism */ export const getProteinsByOrganism = ( - organismId: number, - params?: GetProteinsByOrganismParams, - signal?: AbortSignal, -) => { - return dataMutator({ - url: `/api/v1/proteins/by-organism/${organismId}/`, - method: "GET", - params, - signal, - }); -}; - -export const getGetProteinsByOrganismQueryKey = ( - organismId: number, - params?: GetProteinsByOrganismParams, + organismId: number, + params?: GetProteinsByOrganismParams, + signal?: AbortSignal ) => { - return [ - `/api/v1/proteins/by-organism/${organismId}/`, - ...(params ? [params] : []), - ] as const; -}; - -export const getGetProteinsByOrganismQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - organismId: number, - params?: GetProteinsByOrganismParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, + + + return dataMutator( + {url: `/api/v1/proteins/by-organism/${organismId}/`, method: 'GET', + params, signal + }, + ); + } + + +export const getGetProteinsByOrganismQueryKey = (organismId: number, + params?: GetProteinsByOrganismParams,) => { + return [`/api/v1/proteins/by-organism/${organismId}/`, ...(params ? [params]: [])] as const; + } + + +export const getGetProteinsByOrganismQueryOptions = >, TError = HTTPValidationError>(organismId: number, + params?: GetProteinsByOrganismParams, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? - getGetProteinsByOrganismQueryKey(organismId, params); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => getProteinsByOrganism(organismId, params, signal); - - return { - queryKey, - queryFn, - enabled: !!organismId, - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetProteinsByOrganismQueryResult = NonNullable< - Awaited> ->; -export type GetProteinsByOrganismQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetProteinsByOrganismQueryKey(organismId,params); + + + + const queryFn: QueryFunction>> = ({ signal }) => getProteinsByOrganism(organismId,params, signal); + + + + + + return { queryKey, queryFn, enabled: !!(organismId), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetProteinsByOrganismQueryResult = NonNullable>> +export type GetProteinsByOrganismQueryError = HTTPValidationError + /** * @summary Get Proteins By Organism */ -export function createGetProteinsByOrganism< - TData = Awaited>, - TError = HTTPValidationError, ->( - organismId: number, - params?: GetProteinsByOrganismParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetProteinsByOrganismQueryOptions( - organismId, - params, - options, - ); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetProteinsByOrganism>, TError = HTTPValidationError>( + organismId: number, + params?: GetProteinsByOrganismParams, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetProteinsByOrganismQueryOptions(organismId,params,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Proteins By Organism Count */ export const getProteinsByOrganismCount = ( - organismId: number, - params?: GetProteinsByOrganismCountParams, - signal?: AbortSignal, + organismId: number, + params?: GetProteinsByOrganismCountParams, + signal?: AbortSignal ) => { - return dataMutator({ - url: `/api/v1/proteins/by-organism/${organismId}/count`, - method: "GET", - params, - signal, - }); -}; - -export const getGetProteinsByOrganismCountQueryKey = ( - organismId: number, - params?: GetProteinsByOrganismCountParams, + + + return dataMutator( + {url: `/api/v1/proteins/by-organism/${organismId}/count`, method: 'GET', + params, signal + }, + ); + } + + +export const getGetProteinsByOrganismCountQueryKey = (organismId: number, + params?: GetProteinsByOrganismCountParams,) => { + return [`/api/v1/proteins/by-organism/${organismId}/count`, ...(params ? [params]: [])] as const; + } + + +export const getGetProteinsByOrganismCountQueryOptions = >, TError = HTTPValidationError>(organismId: number, + params?: GetProteinsByOrganismCountParams, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - return [ - `/api/v1/proteins/by-organism/${organismId}/count`, - ...(params ? [params] : []), - ] as const; -}; - -export const getGetProteinsByOrganismCountQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - organismId: number, - params?: GetProteinsByOrganismCountParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? - getGetProteinsByOrganismCountQueryKey(organismId, params); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => getProteinsByOrganismCount(organismId, params, signal); - - return { - queryKey, - queryFn, - enabled: !!organismId, - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetProteinsByOrganismCountQueryResult = NonNullable< - Awaited> ->; -export type GetProteinsByOrganismCountQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetProteinsByOrganismCountQueryKey(organismId,params); + + + + const queryFn: QueryFunction>> = ({ signal }) => getProteinsByOrganismCount(organismId,params, signal); + + + + + + return { queryKey, queryFn, enabled: !!(organismId), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetProteinsByOrganismCountQueryResult = NonNullable>> +export type GetProteinsByOrganismCountQueryError = HTTPValidationError + /** * @summary Get Proteins By Organism Count */ -export function createGetProteinsByOrganismCount< - TData = Awaited>, - TError = HTTPValidationError, ->( - organismId: number, - params?: GetProteinsByOrganismCountParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetProteinsByOrganismCountQueryOptions( - organismId, - params, - options, - ); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetProteinsByOrganismCount>, TError = HTTPValidationError>( + organismId: number, + params?: GetProteinsByOrganismCountParams, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetProteinsByOrganismCountQueryOptions(organismId,params,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Proteins By Super Kingdom */ export const getProteinsBySuperKingdom = ( - superKingdom: SuperKingdom, - params?: GetProteinsBySuperKingdomParams, - signal?: AbortSignal, + superKingdom: SuperKingdom, + params?: GetProteinsBySuperKingdomParams, + signal?: AbortSignal ) => { - return dataMutator({ - url: `/api/v1/proteins/by-lineage/${superKingdom}/`, - method: "GET", - params, - signal, - }); -}; - -export const getGetProteinsBySuperKingdomQueryKey = ( - superKingdom: SuperKingdom, - params?: GetProteinsBySuperKingdomParams, + + + return dataMutator( + {url: `/api/v1/proteins/by-lineage/${superKingdom}/`, method: 'GET', + params, signal + }, + ); + } + + +export const getGetProteinsBySuperKingdomQueryKey = (superKingdom: SuperKingdom, + params?: GetProteinsBySuperKingdomParams,) => { + return [`/api/v1/proteins/by-lineage/${superKingdom}/`, ...(params ? [params]: [])] as const; + } + + +export const getGetProteinsBySuperKingdomQueryOptions = >, TError = HTTPValidationError>(superKingdom: SuperKingdom, + params?: GetProteinsBySuperKingdomParams, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - return [ - `/api/v1/proteins/by-lineage/${superKingdom}/`, - ...(params ? [params] : []), - ] as const; -}; - -export const getGetProteinsBySuperKingdomQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - superKingdom: SuperKingdom, - params?: GetProteinsBySuperKingdomParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? - getGetProteinsBySuperKingdomQueryKey(superKingdom, params); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => getProteinsBySuperKingdom(superKingdom, params, signal); - - return { - queryKey, - queryFn, - enabled: !!superKingdom, - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetProteinsBySuperKingdomQueryResult = NonNullable< - Awaited> ->; -export type GetProteinsBySuperKingdomQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetProteinsBySuperKingdomQueryKey(superKingdom,params); + + + + const queryFn: QueryFunction>> = ({ signal }) => getProteinsBySuperKingdom(superKingdom,params, signal); + + + + + + return { queryKey, queryFn, enabled: !!(superKingdom), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetProteinsBySuperKingdomQueryResult = NonNullable>> +export type GetProteinsBySuperKingdomQueryError = HTTPValidationError + /** * @summary Get Proteins By Super Kingdom */ -export function createGetProteinsBySuperKingdom< - TData = Awaited>, - TError = HTTPValidationError, ->( - superKingdom: SuperKingdom, - params?: GetProteinsBySuperKingdomParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetProteinsBySuperKingdomQueryOptions( - superKingdom, - params, - options, - ); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetProteinsBySuperKingdom>, TError = HTTPValidationError>( + superKingdom: SuperKingdom, + params?: GetProteinsBySuperKingdomParams, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetProteinsBySuperKingdomQueryOptions(superKingdom,params,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Proteins By Super Kingdom Count */ export const getProteinsBySuperKingdomCount = ( - superKingdom: SuperKingdom, - params?: GetProteinsBySuperKingdomCountParams, - signal?: AbortSignal, -) => { - return dataMutator({ - url: `/api/v1/proteins/by-lineage/${superKingdom}/count`, - method: "GET", - params, - signal, - }); -}; - -export const getGetProteinsBySuperKingdomCountQueryKey = ( - superKingdom: SuperKingdom, - params?: GetProteinsBySuperKingdomCountParams, + superKingdom: SuperKingdom, + params?: GetProteinsBySuperKingdomCountParams, + signal?: AbortSignal ) => { - return [ - `/api/v1/proteins/by-lineage/${superKingdom}/count`, - ...(params ? [params] : []), - ] as const; -}; - -export const getGetProteinsBySuperKingdomCountQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - superKingdom: SuperKingdom, - params?: GetProteinsBySuperKingdomCountParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, + + + return dataMutator( + {url: `/api/v1/proteins/by-lineage/${superKingdom}/count`, method: 'GET', + params, signal + }, + ); + } + + +export const getGetProteinsBySuperKingdomCountQueryKey = (superKingdom: SuperKingdom, + params?: GetProteinsBySuperKingdomCountParams,) => { + return [`/api/v1/proteins/by-lineage/${superKingdom}/count`, ...(params ? [params]: [])] as const; + } + + +export const getGetProteinsBySuperKingdomCountQueryOptions = >, TError = HTTPValidationError>(superKingdom: SuperKingdom, + params?: GetProteinsBySuperKingdomCountParams, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? - getGetProteinsBySuperKingdomCountQueryKey(superKingdom, params); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => - getProteinsBySuperKingdomCount(superKingdom, params, signal); - - return { - queryKey, - queryFn, - enabled: !!superKingdom, - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetProteinsBySuperKingdomCountQueryResult = NonNullable< - Awaited> ->; -export type GetProteinsBySuperKingdomCountQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetProteinsBySuperKingdomCountQueryKey(superKingdom,params); + + + + const queryFn: QueryFunction>> = ({ signal }) => getProteinsBySuperKingdomCount(superKingdom,params, signal); + + + + + + return { queryKey, queryFn, enabled: !!(superKingdom), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetProteinsBySuperKingdomCountQueryResult = NonNullable>> +export type GetProteinsBySuperKingdomCountQueryError = HTTPValidationError + /** * @summary Get Proteins By Super Kingdom Count */ -export function createGetProteinsBySuperKingdomCount< - TData = Awaited>, - TError = HTTPValidationError, ->( - superKingdom: SuperKingdom, - params?: GetProteinsBySuperKingdomCountParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetProteinsBySuperKingdomCountQueryOptions( - superKingdom, - params, - options, - ); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetProteinsBySuperKingdomCount>, TError = HTTPValidationError>( + superKingdom: SuperKingdom, + params?: GetProteinsBySuperKingdomCountParams, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetProteinsBySuperKingdomCountQueryOptions(superKingdom,params,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Proteins By Clade */ export const getProteinsByClade = ( - superKingdom: SuperKingdom, - clade: Clade, - params?: GetProteinsByCladeParams, - signal?: AbortSignal, -) => { - return dataMutator({ - url: `/api/v1/proteins/by-lineage/${superKingdom}/${clade}/`, - method: "GET", - params, - signal, - }); -}; - -export const getGetProteinsByCladeQueryKey = ( - superKingdom: SuperKingdom, - clade: Clade, - params?: GetProteinsByCladeParams, + superKingdom: SuperKingdom, + clade: Clade, + params?: GetProteinsByCladeParams, + signal?: AbortSignal ) => { - return [ - `/api/v1/proteins/by-lineage/${superKingdom}/${clade}/`, - ...(params ? [params] : []), - ] as const; -}; - -export const getGetProteinsByCladeQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - superKingdom: SuperKingdom, - clade: Clade, - params?: GetProteinsByCladeParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, + + + return dataMutator( + {url: `/api/v1/proteins/by-lineage/${superKingdom}/${clade}/`, method: 'GET', + params, signal + }, + ); + } + + +export const getGetProteinsByCladeQueryKey = (superKingdom: SuperKingdom, + clade: Clade, + params?: GetProteinsByCladeParams,) => { + return [`/api/v1/proteins/by-lineage/${superKingdom}/${clade}/`, ...(params ? [params]: [])] as const; + } + + +export const getGetProteinsByCladeQueryOptions = >, TError = HTTPValidationError>(superKingdom: SuperKingdom, + clade: Clade, + params?: GetProteinsByCladeParams, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? - getGetProteinsByCladeQueryKey(superKingdom, clade, params); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => getProteinsByClade(superKingdom, clade, params, signal); - - return { - queryKey, - queryFn, - enabled: !!(superKingdom && clade), - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetProteinsByCladeQueryResult = NonNullable< - Awaited> ->; -export type GetProteinsByCladeQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetProteinsByCladeQueryKey(superKingdom,clade,params); + + + + const queryFn: QueryFunction>> = ({ signal }) => getProteinsByClade(superKingdom,clade,params, signal); + + + + + + return { queryKey, queryFn, enabled: !!(superKingdom && clade), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetProteinsByCladeQueryResult = NonNullable>> +export type GetProteinsByCladeQueryError = HTTPValidationError + /** * @summary Get Proteins By Clade */ -export function createGetProteinsByClade< - TData = Awaited>, - TError = HTTPValidationError, ->( - superKingdom: SuperKingdom, - clade: Clade, - params?: GetProteinsByCladeParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetProteinsByCladeQueryOptions( - superKingdom, - clade, - params, - options, - ); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetProteinsByClade>, TError = HTTPValidationError>( + superKingdom: SuperKingdom, + clade: Clade, + params?: GetProteinsByCladeParams, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetProteinsByCladeQueryOptions(superKingdom,clade,params,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Proteins By Clade Count */ export const getProteinsByCladeCount = ( - superKingdom: SuperKingdom, - clade: Clade, - params?: GetProteinsByCladeCountParams, - signal?: AbortSignal, + superKingdom: SuperKingdom, + clade: Clade, + params?: GetProteinsByCladeCountParams, + signal?: AbortSignal ) => { - return dataMutator({ - url: `/api/v1/proteins/by-lineage/${superKingdom}/${clade}/count`, - method: "GET", - params, - signal, - }); -}; - -export const getGetProteinsByCladeCountQueryKey = ( - superKingdom: SuperKingdom, - clade: Clade, - params?: GetProteinsByCladeCountParams, + + + return dataMutator( + {url: `/api/v1/proteins/by-lineage/${superKingdom}/${clade}/count`, method: 'GET', + params, signal + }, + ); + } + + +export const getGetProteinsByCladeCountQueryKey = (superKingdom: SuperKingdom, + clade: Clade, + params?: GetProteinsByCladeCountParams,) => { + return [`/api/v1/proteins/by-lineage/${superKingdom}/${clade}/count`, ...(params ? [params]: [])] as const; + } + + +export const getGetProteinsByCladeCountQueryOptions = >, TError = HTTPValidationError>(superKingdom: SuperKingdom, + clade: Clade, + params?: GetProteinsByCladeCountParams, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - return [ - `/api/v1/proteins/by-lineage/${superKingdom}/${clade}/count`, - ...(params ? [params] : []), - ] as const; -}; - -export const getGetProteinsByCladeCountQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - superKingdom: SuperKingdom, - clade: Clade, - params?: GetProteinsByCladeCountParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? - getGetProteinsByCladeCountQueryKey(superKingdom, clade, params); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => - getProteinsByCladeCount(superKingdom, clade, params, signal); - - return { - queryKey, - queryFn, - enabled: !!(superKingdom && clade), - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetProteinsByCladeCountQueryResult = NonNullable< - Awaited> ->; -export type GetProteinsByCladeCountQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetProteinsByCladeCountQueryKey(superKingdom,clade,params); + + + + const queryFn: QueryFunction>> = ({ signal }) => getProteinsByCladeCount(superKingdom,clade,params, signal); + + + + + + return { queryKey, queryFn, enabled: !!(superKingdom && clade), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetProteinsByCladeCountQueryResult = NonNullable>> +export type GetProteinsByCladeCountQueryError = HTTPValidationError + /** * @summary Get Proteins By Clade Count */ -export function createGetProteinsByCladeCount< - TData = Awaited>, - TError = HTTPValidationError, ->( - superKingdom: SuperKingdom, - clade: Clade, - params?: GetProteinsByCladeCountParams, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetProteinsByCladeCountQueryOptions( - superKingdom, - clade, - params, - options, - ); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetProteinsByCladeCount>, TError = HTTPValidationError>( + superKingdom: SuperKingdom, + clade: Clade, + params?: GetProteinsByCladeCountParams, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetProteinsByCladeCountQueryOptions(superKingdom,clade,params,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Protein Annotations */ export const getProteinAnnotations = ( - uniprotId: string, - signal?: AbortSignal, + uniprotId: string, + signal?: AbortSignal ) => { - return dataMutator({ - url: `/api/v1/annotations/${uniprotId}`, - method: "GET", - signal, - }); -}; - -export const getGetProteinAnnotationsQueryKey = (uniprotId: string) => { - return [`/api/v1/annotations/${uniprotId}`] as const; -}; - -export const getGetProteinAnnotationsQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - uniprotId: string, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, + + + return dataMutator( + {url: `/api/v1/annotations/${uniprotId}`, method: 'GET', signal + }, + ); + } + + +export const getGetProteinAnnotationsQueryKey = (uniprotId: string,) => { + return [`/api/v1/annotations/${uniprotId}`] as const; + } + + +export const getGetProteinAnnotationsQueryOptions = >, TError = HTTPValidationError>(uniprotId: string, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? getGetProteinAnnotationsQueryKey(uniprotId); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => getProteinAnnotations(uniprotId, signal); - - return { - queryKey, - queryFn, - enabled: !!uniprotId, - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetProteinAnnotationsQueryResult = NonNullable< - Awaited> ->; -export type GetProteinAnnotationsQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetProteinAnnotationsQueryKey(uniprotId); + + + + const queryFn: QueryFunction>> = ({ signal }) => getProteinAnnotations(uniprotId, signal); + + + + + + return { queryKey, queryFn, enabled: !!(uniprotId), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetProteinAnnotationsQueryResult = NonNullable>> +export type GetProteinAnnotationsQueryError = HTTPValidationError + /** * @summary Get Protein Annotations */ -export function createGetProteinAnnotations< - TData = Awaited>, - TError = HTTPValidationError, ->( - uniprotId: string, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetProteinAnnotationsQueryOptions(uniprotId, options); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetProteinAnnotations>, TError = HTTPValidationError>( + uniprotId: string, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetProteinAnnotationsQueryOptions(uniprotId,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Db Annotations Legends */ -export const getDbAnnotationsLegends = (signal?: AbortSignal) => { - return dataMutator({ - url: `/api/v1/info/legends/`, - method: "GET", - signal, - }); -}; +export const getDbAnnotationsLegends = ( + + signal?: AbortSignal +) => { + + + return dataMutator( + {url: `/api/v1/info/legends/`, method: 'GET', signal + }, + ); + } + export const getGetDbAnnotationsLegendsQueryKey = () => { - return [`/api/v1/info/legends/`] as const; -}; - -export const getGetDbAnnotationsLegendsQueryOptions = < - TData = Awaited>, - TError = unknown, ->(options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; -}) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? getGetDbAnnotationsLegendsQueryKey(); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => getDbAnnotationsLegends(signal); - - return { queryKey, queryFn, ...queryOptions } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetDbAnnotationsLegendsQueryResult = NonNullable< - Awaited> ->; -export type GetDbAnnotationsLegendsQueryError = unknown; + return [`/api/v1/info/legends/`] as const; + } + + +export const getGetDbAnnotationsLegendsQueryOptions = >, TError = unknown>( options?: { query?:CreateQueryOptions>, TError, TData>, } +) => { + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetDbAnnotationsLegendsQueryKey(); + + + + const queryFn: QueryFunction>> = ({ signal }) => getDbAnnotationsLegends(signal); + + + + + + return { queryKey, queryFn, ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetDbAnnotationsLegendsQueryResult = NonNullable>> +export type GetDbAnnotationsLegendsQueryError = unknown + /** * @summary Get Db Annotations Legends */ -export function createGetDbAnnotationsLegends< - TData = Awaited>, - TError = unknown, ->(options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; -}): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetDbAnnotationsLegendsQueryOptions(options); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetDbAnnotationsLegends>, TError = unknown>( + options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetDbAnnotationsLegendsQueryOptions(options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Annotation Legend For Db */ export const getAnnotationLegendForDb = ( - dbName: DatabaseType, - signal?: AbortSignal, + dbName: DatabaseType, + signal?: AbortSignal ) => { - return dataMutator({ - url: `/api/v1/info/legend/${dbName}`, - method: "GET", - signal, - }); -}; - -export const getGetAnnotationLegendForDbQueryKey = (dbName: DatabaseType) => { - return [`/api/v1/info/legend/${dbName}`] as const; -}; - -export const getGetAnnotationLegendForDbQueryOptions = < - TData = Awaited>, - TError = HTTPValidationError, ->( - dbName: DatabaseType, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, + + + return dataMutator( + {url: `/api/v1/info/legend/${dbName}`, method: 'GET', signal + }, + ); + } + + +export const getGetAnnotationLegendForDbQueryKey = (dbName: DatabaseType,) => { + return [`/api/v1/info/legend/${dbName}`] as const; + } + + +export const getGetAnnotationLegendForDbQueryOptions = >, TError = HTTPValidationError>(dbName: DatabaseType, options?: { query?:CreateQueryOptions>, TError, TData>, } ) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = - queryOptions?.queryKey ?? getGetAnnotationLegendForDbQueryKey(dbName); - - const queryFn: QueryFunction< - Awaited> - > = ({ signal }) => getAnnotationLegendForDb(dbName, signal); - - return { - queryKey, - queryFn, - enabled: !!dbName, - ...queryOptions, - } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetAnnotationLegendForDbQueryResult = NonNullable< - Awaited> ->; -export type GetAnnotationLegendForDbQueryError = HTTPValidationError; + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetAnnotationLegendForDbQueryKey(dbName); + + + + const queryFn: QueryFunction>> = ({ signal }) => getAnnotationLegendForDb(dbName, signal); + + + + + + return { queryKey, queryFn, enabled: !!(dbName), ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetAnnotationLegendForDbQueryResult = NonNullable>> +export type GetAnnotationLegendForDbQueryError = HTTPValidationError + /** * @summary Get Annotation Legend For Db */ -export function createGetAnnotationLegendForDb< - TData = Awaited>, - TError = HTTPValidationError, ->( - dbName: DatabaseType, - options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; - }, -): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetAnnotationLegendForDbQueryOptions(dbName, options); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetAnnotationLegendForDb>, TError = HTTPValidationError>( + dbName: DatabaseType, options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetAnnotationLegendForDbQueryOptions(dbName,options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + /** * @summary Get Taxonomies */ -export const getTaxonomies = (signal?: AbortSignal) => { - return dataMutator({ - url: `/api/v1/info/taxonomies/`, - method: "GET", - signal, - }); -}; +export const getTaxonomies = ( + + signal?: AbortSignal +) => { + + + return dataMutator( + {url: `/api/v1/info/taxonomies/`, method: 'GET', signal + }, + ); + } + export const getGetTaxonomiesQueryKey = () => { - return [`/api/v1/info/taxonomies/`] as const; -}; - -export const getGetTaxonomiesQueryOptions = < - TData = Awaited>, - TError = unknown, ->(options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; -}) => { - const { query: queryOptions } = options ?? {}; - - const queryKey = queryOptions?.queryKey ?? getGetTaxonomiesQueryKey(); - - const queryFn: QueryFunction>> = ({ - signal, - }) => getTaxonomies(signal); - - return { queryKey, queryFn, ...queryOptions } as CreateQueryOptions< - Awaited>, - TError, - TData - > & { queryKey: QueryKey }; -}; - -export type GetTaxonomiesQueryResult = NonNullable< - Awaited> ->; -export type GetTaxonomiesQueryError = unknown; + return [`/api/v1/info/taxonomies/`] as const; + } + + +export const getGetTaxonomiesQueryOptions = >, TError = unknown>( options?: { query?:CreateQueryOptions>, TError, TData>, } +) => { + +const {query: queryOptions} = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetTaxonomiesQueryKey(); + + + + const queryFn: QueryFunction>> = ({ signal }) => getTaxonomies(signal); + + + + + + return { queryKey, queryFn, ...queryOptions} as CreateQueryOptions>, TError, TData> & { queryKey: QueryKey } +} + +export type GetTaxonomiesQueryResult = NonNullable>> +export type GetTaxonomiesQueryError = unknown + /** * @summary Get Taxonomies */ -export function createGetTaxonomies< - TData = Awaited>, - TError = unknown, ->(options?: { - query?: CreateQueryOptions< - Awaited>, - TError, - TData - >; -}): CreateQueryResult & { queryKey: QueryKey } { - const queryOptions = getGetTaxonomiesQueryOptions(options); - - const query = createQuery(queryOptions) as CreateQueryResult< - TData, - TError - > & { queryKey: QueryKey }; - - query.queryKey = queryOptions.queryKey; +export function createGetTaxonomies>, TError = unknown>( + options?: { query?:CreateQueryOptions>, TError, TData>, } + + ): CreateQueryResult & { queryKey: QueryKey } { + + const queryOptions = getGetTaxonomiesQueryOptions(options) + + const query = createQuery(queryOptions) as CreateQueryResult & { queryKey: QueryKey }; + + query.queryKey = queryOptions.queryKey ; return query; } + + + +