1 | import { BatchChangeSet } from '../odata-common/request-builder/batch/batch-change-set';
|
2 | import { Entity } from './entity';
|
3 | import { CreateRequestBuilder, DeleteRequestBuilder, GetAllRequestBuilder, GetByKeyRequestBuilder, UpdateRequestBuilder } from './request-builder';
|
4 | /**
|
5 | * @deprecated Since v1.30.0. Use [[serializeRequest]] instead.
|
6 | * Build a string as the request body of the retrieve request.
|
7 | * Below is an example of the generated body, where the two empty line are mandatory to make the request valid.
|
8 | * *** example starts ***
|
9 | * Content-Type: application/http
|
10 | * Content-Transfer-Encoding: binary
|
11 | *
|
12 | * GET /SomeUrl/API_BUSINESS_PARTNER/A_BusinessPartnerBank?$format=json&$top=1 HTTP/1.1
|
13 | *
|
14 | *
|
15 | * *** example ends ***
|
16 | * @param request - The request builder of the retrieve request.
|
17 | * @returns The request body.
|
18 | */
|
19 | export declare function toBatchRetrieveBody(request: GetAllRequestBuilder<Entity> | GetByKeyRequestBuilder<Entity>): string;
|
20 | /**
|
21 | * @deprecated Since v1.30.0. Use [[serializeChangeSet]] instead.
|
22 | * Serialize change set to string.
|
23 | * @param changeSet - Change set containing a collection of write operations.
|
24 | * @returns The serialized string representation of a change set.
|
25 | */
|
26 | export declare function toBatchChangeSet<T extends CreateRequestBuilder<Entity> | UpdateRequestBuilder<Entity> | DeleteRequestBuilder<Entity>>(changeSet: BatchChangeSet<T>): string | undefined;
|
27 | export { toBatchChangeSet as toBatchChangeSetV2 };
|
28 | export { toBatchRetrieveBody as toBatchRetrieveBodyV2 };
|
29 | //# sourceMappingURL=batch-request-serializer.d.ts.map |
\ | No newline at end of file |