UNPKG

@sap-cloud-sdk/core

Version:
23 lines 936 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BatchChangeSet = void 0; var uuid_1 = require("uuid"); // FIXME: MethodRequestBuilder is too broad here. Should be create, update and delete /** * Representation of a batch change set, which holds a collection of write operations. */ var BatchChangeSet = /** @class */ (function () { /** * Create an instance of BatchChangeSet. * @param requests - Requests to combine to one change set. * @param boundary - Request boundary for separation of sub requests. Defaults to an auto generated value. */ function BatchChangeSet(requests, boundary) { if (boundary === void 0) { boundary = "changeset_".concat((0, uuid_1.v4)()); } this.requests = requests; this.boundary = boundary; } return BatchChangeSet; }()); exports.BatchChangeSet = BatchChangeSet; //# sourceMappingURL=batch-change-set.js.map