@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
34 lines • 1.28 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ODataBatchChangeSetV4 = exports.ODataBatchChangeSet = void 0;
var uuid_1 = require("uuid");
/**
* @deprecated Since v1.30.0. Use [[BatchChangeSet]] directly
* Representation of a batch change set, which holds a collection of write operations.
*/
var ODataBatchChangeSet = /** @class */ (function () {
/**
* Create an instance of ODataBatchChangeSet.
* @param requests - Requests to combine to one change set.
* @param boundary - Boundary used in the multipart request.
*/
function ODataBatchChangeSet(requests, boundary) {
if (boundary === void 0) { boundary = "changeset_".concat((0, uuid_1.v4)()); }
this.requests = requests;
this.boundary = boundary;
}
Object.defineProperty(ODataBatchChangeSet.prototype, "changeSetId", {
/**
* @deprecated Since v1.30.0. Use [[boundary]] instead.
*/
get: function () {
return this.boundary;
},
enumerable: false,
configurable: true
});
return ODataBatchChangeSet;
}());
exports.ODataBatchChangeSet = ODataBatchChangeSet;
exports.ODataBatchChangeSetV4 = ODataBatchChangeSet;
//# sourceMappingURL=batch-change-set.js.map
;