/**
 * Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers.
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { useQuery } from '@tanstack/react-query';
import { getClient } from '../client';
import { buildListSelectionArgs } from '../selection';
import { appLimitCapsDefaultKeys } from '../query-keys';
/** Query key factory - re-exported from query-keys.ts */
export const appLimitCapsDefaultsQueryKey = appLimitCapsDefaultKeys.list;
export function useAppLimitCapsDefaultsQuery(params) {
    const args = buildListSelectionArgs(params.selection);
    const { selection: _selection, ...queryOptions } = params ?? {};
    void _selection;
    return useQuery({
        queryKey: appLimitCapsDefaultKeys.list(args),
        queryFn: () => getClient().appLimitCapsDefault.findMany(args).unwrap(),
        ...queryOptions,
    });
}
export async function fetchAppLimitCapsDefaultsQuery(params) {
    const args = buildListSelectionArgs(params.selection);
    return getClient().appLimitCapsDefault.findMany(args).unwrap();
}
export async function prefetchAppLimitCapsDefaultsQuery(queryClient, params) {
    const args = buildListSelectionArgs(params.selection);
    await queryClient.prefetchQuery({
        queryKey: appLimitCapsDefaultKeys.list(args),
        queryFn: () => getClient().appLimitCapsDefault.findMany(args).unwrap(),
    });
}
