ravendb
Version:
RavenDB client for Node.js
19 lines • 702 B
JavaScript
import { StringUtil } from "../../../Utility/StringUtil.js";
import { throwError } from "../../../Exceptions/index.js";
import { NextIdentityForCommand } from "../../Commands/NextIdentityForCommand.js";
export class NextIdentityForOperation {
_identityName;
constructor(name) {
if (StringUtil.isNullOrWhitespace(name)) {
throwError("InvalidArgumentException", "The field name cannot be null or whitespace.");
}
this._identityName = name;
}
getCommand(conventions) {
return new NextIdentityForCommand(this._identityName);
}
get resultType() {
return "CommandResult";
}
}
//# sourceMappingURL=NextIdentityForOperation.js.map