"use strict";
/**
 * Custom query hook for appPermissionsGetPaddedMask
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.appPermissionsGetPaddedMaskQueryKey = void 0;
exports.useAppPermissionsGetPaddedMaskQuery = useAppPermissionsGetPaddedMaskQuery;
exports.fetchAppPermissionsGetPaddedMaskQuery = fetchAppPermissionsGetPaddedMaskQuery;
exports.prefetchAppPermissionsGetPaddedMaskQuery = prefetchAppPermissionsGetPaddedMaskQuery;
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.appPermissionsGetPaddedMaskQueryKey = query_keys_1.customQueryKeys.appPermissionsGetPaddedMask;
function useAppPermissionsGetPaddedMaskQuery(params) {
    const variables = params?.variables ?? {};
    const { variables: _variables, ...queryOptions } = params ?? {};
    void _variables;
    return (0, react_query_1.useQuery)({
        queryKey: (0, exports.appPermissionsGetPaddedMaskQueryKey)(variables),
        queryFn: () => (0, client_1.getClient)().query.appPermissionsGetPaddedMask(variables).unwrap(),
        ...queryOptions,
    });
}
/**
 * Fetch appPermissionsGetPaddedMask without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchAppPermissionsGetPaddedMaskQuery({ variables: { mask } });
 * ```
 */
async function fetchAppPermissionsGetPaddedMaskQuery(params) {
    const variables = params?.variables ?? {};
    return (0, client_1.getClient)().query.appPermissionsGetPaddedMask(variables).unwrap();
}
/**
 * Prefetch appPermissionsGetPaddedMask for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchAppPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } });
 * ```
 */
async function prefetchAppPermissionsGetPaddedMaskQuery(queryClient, params) {
    const variables = params?.variables ?? {};
    await queryClient.prefetchQuery({
        queryKey: (0, exports.appPermissionsGetPaddedMaskQueryKey)(variables),
        queryFn: () => (0, client_1.getClient)().query.appPermissionsGetPaddedMask(variables).unwrap(),
    });
}
