/**
 * Custom query hook for resolveBlueprintField
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { useQuery } from '@tanstack/react-query';
import { getClient } from '../client';
import { customQueryKeys } from '../query-keys';
/** Query key factory - re-exported from query-keys.ts */
export const resolveBlueprintFieldQueryKey = customQueryKeys.resolveBlueprintField;
export function useResolveBlueprintFieldQuery(params) {
    const variables = params?.variables ?? {};
    const { variables: _variables, ...queryOptions } = params ?? {};
    void _variables;
    return useQuery({
        queryKey: resolveBlueprintFieldQueryKey(variables),
        queryFn: () => getClient().query.resolveBlueprintField(variables).unwrap(),
        ...queryOptions,
    });
}
/**
 * Fetch resolveBlueprintField without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchResolveBlueprintFieldQuery({ variables: { databaseId, tableId, fieldName } });
 * ```
 */
export async function fetchResolveBlueprintFieldQuery(params) {
    const variables = params?.variables ?? {};
    return getClient().query.resolveBlueprintField(variables).unwrap();
}
/**
 * Prefetch resolveBlueprintField for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchResolveBlueprintFieldQuery(queryClient, { variables: { databaseId, tableId, fieldName } });
 * ```
 */
export async function prefetchResolveBlueprintFieldQuery(queryClient, params) {
    const variables = params?.variables ?? {};
    await queryClient.prefetchQuery({
        queryKey: resolveBlueprintFieldQueryKey(variables),
        queryFn: () => getClient().query.resolveBlueprintField(variables).unwrap(),
    });
}
