/**
 * Custom query hook for appPermissionsGetMask
 * @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 appPermissionsGetMaskQueryKey = customQueryKeys.appPermissionsGetMask;
export function useAppPermissionsGetMaskQuery(params) {
    const variables = params?.variables ?? {};
    const { variables: _variables, ...queryOptions } = params ?? {};
    void _variables;
    return useQuery({
        queryKey: appPermissionsGetMaskQueryKey(variables),
        queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(),
        ...queryOptions,
    });
}
/**
 * Fetch appPermissionsGetMask without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchAppPermissionsGetMaskQuery({ variables: { ids } });
 * ```
 */
export async function fetchAppPermissionsGetMaskQuery(params) {
    const variables = params?.variables ?? {};
    return getClient().query.appPermissionsGetMask(variables).unwrap();
}
/**
 * Prefetch appPermissionsGetMask for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchAppPermissionsGetMaskQuery(queryClient, { variables: { ids } });
 * ```
 */
export async function prefetchAppPermissionsGetMaskQuery(queryClient, params) {
    const variables = params?.variables ?? {};
    await queryClient.prefetchQuery({
        queryKey: appPermissionsGetMaskQueryKey(variables),
        queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(),
    });
}
