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