@sap-cloud-sdk/odata-common
Version:
SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.
20 lines • 729 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BatchChangeSet = void 0;
const uuid_1 = require("uuid");
/**
* Representation of a batch change set, which holds a collection of write operations.
*/
class BatchChangeSet {
/**
* 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.
*/
constructor(requests, boundary = `changeset_${(0, uuid_1.v4)()}`) {
this.requests = requests;
this.boundary = boundary;
}
}
exports.BatchChangeSet = BatchChangeSet;
//# sourceMappingURL=batch-change-set.js.map