"use strict";
/**
 * Custom query hook for requireStepUp
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.requireStepUpQueryKey = void 0;
exports.useRequireStepUpQuery = useRequireStepUpQuery;
exports.fetchRequireStepUpQuery = fetchRequireStepUpQuery;
exports.prefetchRequireStepUpQuery = prefetchRequireStepUpQuery;
const react_query_1 = require("@tanstack/react-query");
const client_1 = require("../client");
const query_keys_1 = require("../query-keys");
/** Query key factory - re-exported from query-keys.ts */
exports.requireStepUpQueryKey = query_keys_1.customQueryKeys.requireStepUp;
function useRequireStepUpQuery(params) {
    const variables = params?.variables ?? {};
    const { variables: _variables, ...queryOptions } = params ?? {};
    void _variables;
    return (0, react_query_1.useQuery)({
        queryKey: (0, exports.requireStepUpQueryKey)(variables),
        queryFn: () => (0, client_1.getClient)().query.requireStepUp(variables).unwrap(),
        ...queryOptions,
    });
}
/**
 * Fetch requireStepUp without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchRequireStepUpQuery({ variables: { stepUpType } });
 * ```
 */
async function fetchRequireStepUpQuery(params) {
    const variables = params?.variables ?? {};
    return (0, client_1.getClient)().query.requireStepUp(variables).unwrap();
}
/**
 * Prefetch requireStepUp for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchRequireStepUpQuery(queryClient, { variables: { stepUpType } });
 * ```
 */
async function prefetchRequireStepUpQuery(queryClient, params) {
    const variables = params?.variables ?? {};
    await queryClient.prefetchQuery({
        queryKey: (0, exports.requireStepUpQueryKey)(variables),
        queryFn: () => (0, client_1.getClient)().query.requireStepUp(variables).unwrap(),
    });
}
