UNPKG

@configurator/ravendb

Version:
21 lines 652 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ForceRevisionCommandData = void 0; const Exceptions_1 = require("../../../Exceptions"); class ForceRevisionCommandData { constructor(id) { this.type = "ForceRevisionCreation"; if (!id) { (0, Exceptions_1.throwError)("InvalidArgumentException", "Id cannot be null"); } this.id = id; } serialize(conventions) { return { Id: this.id, Type: this.type }; } } exports.ForceRevisionCommandData = ForceRevisionCommandData; //# sourceMappingURL=ForceRevisionCommandData.js.map