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