UNPKG

1.34 kBTypeScriptView Raw
1import { Destination, DestinationNameAndJwt, DestinationOptions } from '../../connectivity/scp-cf';
2import { BatchRequestBuilder, BatchResponse } from '../../odata-common';
3/**
4 * Create a batch request to invoke multiple requests as a batch. The batch request builder accepts retrieve requests, i. e. [[GetAllRequestBuilder | getAll]] and [[GetByKeyRequestBuilder | getByKey]] requests and change sets, which in turn can contain [[CreateRequestBuilder | create]], [[UpdateRequestBuilder | update]] or [[DeleteRequestBuilder | delete]] requests.
5 * The retrieve and change sets will be executed in order, while the order within a change set can vary.
6 */
7export declare class ODataBatchRequestBuilder extends BatchRequestBuilder {
8 /**
9 * Execute the given request and return the according promise. Please notice: The sub-requests may fail even the main request is successful.
10 * @param destination - Targeted destination on which the request is performed.
11 * @param options - Options to employ when fetching destinations.
12 * @returns Promise resolving to the requested data.
13 */
14 execute(destination: Destination | DestinationNameAndJwt, options?: DestinationOptions): Promise<BatchResponse[]>;
15}
16export { ODataBatchRequestBuilder as ODataBatchRequestBuilderV2 };
17//# sourceMappingURL=batch-request-builder.d.ts.map
\No newline at end of file