UNPKG

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