@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
29 lines • 1.57 kB
TypeScript
import { BatchChangeSet } from '../odata-common/request-builder/batch/batch-change-set';
import { Entity } from './entity';
import { CreateRequestBuilder, DeleteRequestBuilder, GetAllRequestBuilder, GetByKeyRequestBuilder, UpdateRequestBuilder } from './request-builder';
/**
* @deprecated Since v1.30.0. Use [[serializeRequest]] instead.
* Build a string as the request body of the retrieve request.
* Below is an example of the generated body, where the two empty line are mandatory to make the request valid.
* *** example starts ***
* Content-Type: application/http
* Content-Transfer-Encoding: binary
*
* GET /SomeUrl/API_BUSINESS_PARTNER/A_BusinessPartnerBank?$format=json&$top=1 HTTP/1.1
*
*
* *** example ends ***
* @param request - The request builder of the retrieve request.
* @returns The request body.
*/
export declare function toBatchRetrieveBody(request: GetAllRequestBuilder<Entity> | GetByKeyRequestBuilder<Entity>): string;
/**
* @deprecated Since v1.30.0. Use [[serializeChangeSet]] instead.
* Serialize change set to string.
* @param changeSet - Change set containing a collection of write operations.
* @returns The serialized string representation of a change set.
*/
export declare function toBatchChangeSet<T extends CreateRequestBuilder<Entity> | UpdateRequestBuilder<Entity> | DeleteRequestBuilder<Entity>>(changeSet: BatchChangeSet<T>): string | undefined;
export { toBatchChangeSet as toBatchChangeSetV2 };
export { toBatchRetrieveBody as toBatchRetrieveBodyV2 };
//# sourceMappingURL=batch-request-serializer.d.ts.map