UNPKG

ravendb

Version:
27 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SeedIdentityForOperation = void 0; const StringUtil_js_1 = require("../../../Utility/StringUtil.js"); const index_js_1 = require("../../../Exceptions/index.js"); const SeedIdentityForCommand_js_1 = require("../../Commands/SeedIdentityForCommand.js"); class SeedIdentityForOperation { _identityName; _identityValue; _forceUpdate; constructor(name, value, forceUpdate = false) { if (StringUtil_js_1.StringUtil.isNullOrWhitespace(name)) { (0, index_js_1.throwError)("InvalidArgumentException", "The field name cannot be null or whitespace."); } this._identityName = name; this._identityValue = value; this._forceUpdate = forceUpdate; } getCommand(conventions) { return new SeedIdentityForCommand_js_1.SeedIdentityForCommand(this._identityName, this._identityValue, this._forceUpdate); } get resultType() { return "CommandResult"; } } exports.SeedIdentityForOperation = SeedIdentityForOperation; //# sourceMappingURL=SeedIdentityForOperation.js.map