UNPKG

ravendb

Version:
23 lines 949 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NextIdentityForOperation = void 0; const StringUtil_js_1 = require("../../../Utility/StringUtil.js"); const index_js_1 = require("../../../Exceptions/index.js"); const NextIdentityForCommand_js_1 = require("../../Commands/NextIdentityForCommand.js"); class NextIdentityForOperation { _identityName; constructor(name) { if (StringUtil_js_1.StringUtil.isNullOrWhitespace(name)) { (0, index_js_1.throwError)("InvalidArgumentException", "The field name cannot be null or whitespace."); } this._identityName = name; } getCommand(conventions) { return new NextIdentityForCommand_js_1.NextIdentityForCommand(this._identityName); } get resultType() { return "CommandResult"; } } exports.NextIdentityForOperation = NextIdentityForOperation; //# sourceMappingURL=NextIdentityForOperation.js.map