{"version":3,"file":"fetchInfiniteQuery.cjs","sources":["../../../src/callbacks/fetchInfiniteQuery.ts"],"sourcesContent":["import type { ServiceOperationFetchInfiniteQuery } from '@openapi-qraft/tanstack-query-react-types';\nimport type { DefaultError } from '@tanstack/react-query';\nimport type { CreateAPIQueryClientOptions } from '../qraftAPIClient.js';\nimport { callQueryClientMethodWithQueryKey } from '../lib/callQueryClientFetchMethod.js';\n\nexport const fetchInfiniteQuery: <\n  TSchema extends { url: string; method: 'get' | 'head' | 'options' },\n  TData,\n  TParams,\n>(\n  qraftOptions: CreateAPIQueryClientOptions,\n  schema: TSchema,\n  args: Parameters<\n    ServiceOperationFetchInfiniteQuery<\n      TSchema,\n      TData,\n      TParams,\n      DefaultError\n    >['fetchInfiniteQuery']\n  >\n) => Promise<TData> = (qraftOptions, schema, args) => {\n  return callQueryClientMethodWithQueryKey(\n    qraftOptions,\n    'fetchInfiniteQuery',\n    schema,\n    true,\n    args as never\n  ) as never;\n};\n"],"names":["fetchInfiniteQuery","qraftOptions","schema","args","callQueryClientMethodWithQueryKey"],"mappings":";;;;AAKaA,MAAAA,kBAAAA,GAeS,CAACC,YAAAA,EAAcC,MAAQC,EAAAA,IAAAA,GAAAA;AAC3C,IAAA,OAAOC,4DACLH,CAAAA,YAAAA,EACA,oBACAC,EAAAA,MAAAA,EACA,IACAC,EAAAA,IAAAA,CAAAA,CAAAA;AAEJ;;;;"}