@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
36 lines • 1.52 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.toBatchChangeSetV4 = exports.toBatchRetrieveBodyV4 = exports.toBatchChangeSet = exports.toBatchRetrieveBody = void 0;
var odata_common_1 = require("../odata-common");
/**
* @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, odata_common_1.serializeRequest)(request);
}
exports.toBatchRetrieveBody = toBatchRetrieveBody;
exports.toBatchRetrieveBodyV4 = 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, odata_common_1.serializeChangeSet)(changeSet);
}
exports.toBatchChangeSet = toBatchChangeSet;
exports.toBatchChangeSetV4 = toBatchChangeSet;
//# sourceMappingURL=batch-request-serializer.js.map
;