All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.react.query.queryClient.core.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

@file:JsModule("react-query")
@file:JsNonModule

package react.query

external interface QueryClientConfig {
    var queryCache: QueryCache
    var mutationCache: MutationCache
    var defaultOptions: DefaultOptions<*>
}

open external class QueryClient(config: QueryClientConfig = definedExternally) {
    open fun mount()
    open fun unmount()
    open fun isFetching(filters: QueryFilters = definedExternally): Int
    open fun isFetching(
        queryKey: QueryKey = definedExternally,
        filters: QueryFilters = definedExternally,
    ): Int

    open fun isMutating(filters: MutationFilters = definedExternally): Int
    open fun  getQueryData(
        queryKey: QueryKey,
        filters: QueryFilters = definedExternally,
    ): TData?

    open fun  getQueriesData(queryKey: QueryKey): Array>
    open fun  getQueriesData(filters: QueryFilters): Array>
    open fun  setQueryData(
        queryKey: QueryKey,
        updater: Updater,
        options: SetDataOptions = definedExternally,
    ): TData

    open fun  setQueriesData(
        queryKey: QueryKey,
        updater: Updater,
        options: SetDataOptions = definedExternally,
    ): Array>

    open fun  setQueriesData(
        filters: QueryFilters,
        updater: Updater,
        options: SetDataOptions = definedExternally,
    ): Array>

    open fun  getQueryState(
        queryKey: QueryKey,
        filters: QueryFilters = definedExternally,
    ): QueryState?

    open fun removeQueries(filters: QueryFilters = definedExternally)
    open fun removeQueries(
        queryKey: QueryKey = definedExternally,
        filters: QueryFilters = definedExternally,
    )

    open fun  resetQueries(
        filters: ResetQueryFilters = definedExternally,
        options: ResetOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  resetQueries(
        queryKey: QueryKey = definedExternally,
        filters: ResetQueryFilters = definedExternally,
        options: ResetOptions = definedExternally,
    ): kotlin.js.Promise

    open fun cancelQueries(
        filters: QueryFilters = definedExternally,
        options: CancelOptions = definedExternally,
    ): kotlin.js.Promise

    open fun cancelQueries(
        queryKey: QueryKey = definedExternally,
        filters: QueryFilters = definedExternally,
        options: CancelOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  invalidateQueries(
        filters: InvalidateQueryFilters = definedExternally,
        options: InvalidateOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  invalidateQueries(
        queryKey: QueryKey = definedExternally,
        filters: InvalidateQueryFilters = definedExternally,
        options: InvalidateOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  refetchQueries(
        filters: RefetchQueryFilters = definedExternally,
        options: RefetchOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  refetchQueries(
        queryKey: QueryKey = definedExternally,
        filters: RefetchQueryFilters = definedExternally,
        options: RefetchOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  fetchQuery(options: FetchQueryOptions): kotlin.js.Promise
    open fun  fetchQuery(
        queryKey: TQueryKey,
        options: FetchQueryOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  fetchQuery(
        queryKey: TQueryKey,
        queryFn: QueryFunction,
        options: FetchQueryOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  prefetchQuery(options: FetchQueryOptions): kotlin.js.Promise
    open fun  prefetchQuery(
        queryKey: TQueryKey,
        options: FetchQueryOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  prefetchQuery(
        queryKey: TQueryKey,
        queryFn: QueryFunction,
        options: FetchQueryOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  fetchInfiniteQuery(options: FetchInfiniteQueryOptions): kotlin.js.Promise>
    open fun  fetchInfiniteQuery(
        queryKey: TQueryKey,
        options: FetchInfiniteQueryOptions = definedExternally,
    ): kotlin.js.Promise>

    open fun  fetchInfiniteQuery(
        queryKey: TQueryKey,
        queryFn: QueryFunction,
        options: FetchInfiniteQueryOptions = definedExternally,
    ): kotlin.js.Promise>

    open fun  prefetchInfiniteQuery(options: FetchInfiniteQueryOptions): kotlin.js.Promise
    open fun  prefetchInfiniteQuery(
        queryKey: TQueryKey,
        options: FetchInfiniteQueryOptions = definedExternally,
    ): kotlin.js.Promise

    open fun  prefetchInfiniteQuery(
        queryKey: TQueryKey,
        queryFn: QueryFunction,
        options: FetchInfiniteQueryOptions = definedExternally,
    ): kotlin.js.Promise

    open fun cancelMutations(): kotlin.js.Promise
    open fun resumePausedMutations(): kotlin.js.Promise
    open fun  executeMutation(options: MutationOptions): kotlin.js.Promise
    open fun getQueryCache(): QueryCache
    open fun getMutationCache(): MutationCache
    open fun getDefaultOptions(): DefaultOptions<*>
    open fun setDefaultOptions(options: DefaultOptions<*>)
    open fun setQueryDefaults(
        queryKey: QueryKey,
        options: QueryObserverOptions<*, *, *, *, *>,
    )

    open fun getQueryDefaults(queryKey: QueryKey = definedExternally): QueryObserverOptions<*, *, *, *, *>?
    open fun setMutationDefaults(
        mutationKey: MutationKey,
        options: MutationObserverOptions<*, *, *, *>,
    )

    open fun getMutationDefaults(mutationKey: MutationKey = definedExternally): MutationObserverOptions<*, *, *, *>?
    open fun  defaultQueryOptions(options: QueryObserverOptions = definedExternally): QueryObserverOptions
    open fun  defaultQueryObserverOptions(options: QueryObserverOptions = definedExternally): QueryObserverOptions
    open fun > defaultMutationOptions(options: T = definedExternally): T
    open fun clear()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy