Skip to main content

sdk.batchclient

Home > @kittl/sdk > BatchClient

BatchClient class

Abstract base class for batch operations that allows grouping multiple API calls together for atomic execution and better performance.

Signature:

export declare abstract class BatchClient<T extends Record<string, unknown>> 

Methods

Method

Modifiers

Description

commit()

abstract

Commits all accumulated batch operations to the main state.

getHistoryOrigin()

abstract

Gets the history origin for batch operations.

getOrigin()

abstract

Gets the origin for batch operations.

getPatches()

abstract

Gets all accumulated patches from batch operations.

getWorkingState()

abstract

Gets the working state store used by the batch client.