UNPKG

925 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.BatchChangeSet = void 0;
4var uuid_1 = require("uuid");
5// FIXME: MethodRequestBuilder is too broad here. Should be create, update and delete
6/**
7 * Representation of a batch change set, which holds a collection of write operations.
8 */
9var BatchChangeSet = /** @class */ (function () {
10 /**
11 * Create an instance of BatchChangeSet.
12 * @param requests - Requests to combine to one change set.
13 * @param boundary - Request boundary for separation of sub requests. Defaults to an auto generated value.
14 */
15 function BatchChangeSet(requests, boundary) {
16 if (boundary === void 0) { boundary = "changeset_" + uuid_1.v4(); }
17 this.requests = requests;
18 this.boundary = boundary;
19 }
20 return BatchChangeSet;
21}());
22exports.BatchChangeSet = BatchChangeSet;
23//# sourceMappingURL=batch-change-set.js.map
\No newline at end of file