UNPKG

1.27 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ODataBatchChangeSetV2 = exports.ODataBatchChangeSet = void 0;
4var uuid_1 = require("uuid");
5/**
6 * @deprecated Since v1.30.0. Use [[BatchChangeSet]] directly
7 * Representation of a batch change set, which holds a collection of write operations.
8 */
9var ODataBatchChangeSet = /** @class */ (function () {
10 /**
11 * Create an instance of ODataBatchChangeSet.
12 * @param requests - Requests to combine to one change set.
13 * @param boundary - Boundary used in the multipart request.
14 */
15 function ODataBatchChangeSet(requests, boundary) {
16 if (boundary === void 0) { boundary = "changeset_" + uuid_1.v4(); }
17 this.requests = requests;
18 this.boundary = boundary;
19 }
20 Object.defineProperty(ODataBatchChangeSet.prototype, "changeSetId", {
21 /**
22 * @deprecated Since v1.30.0. Use [[boundary]] instead.
23 */
24 get: function () {
25 return this.boundary;
26 },
27 enumerable: false,
28 configurable: true
29 });
30 return ODataBatchChangeSet;
31}());
32exports.ODataBatchChangeSet = ODataBatchChangeSet;
33exports.ODataBatchChangeSetV2 = ODataBatchChangeSet;
34//# sourceMappingURL=batch-change-set.js.map
\No newline at end of file