UNPKG

@sap-cloud-sdk/core

Version:
36 lines 1.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toBatchRetrieveBodyV2 = exports.toBatchChangeSetV2 = exports.toBatchChangeSet = exports.toBatchRetrieveBody = void 0; var batch_request_serializer_1 = require("../odata-common/request-builder/batch/batch-request-serializer"); /** * @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. */ function toBatchRetrieveBody(request) { return (0, batch_request_serializer_1.serializeRequest)(request); } exports.toBatchRetrieveBody = toBatchRetrieveBody; exports.toBatchRetrieveBodyV2 = toBatchRetrieveBody; /** * @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. */ function toBatchChangeSet(changeSet) { return (0, batch_request_serializer_1.serializeChangeSet)(changeSet); } exports.toBatchChangeSet = toBatchChangeSet; exports.toBatchChangeSetV2 = toBatchChangeSet; //# sourceMappingURL=batch-request-serializer.js.map