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