ravendb
Version:
RavenDB client for Node.js
27 lines • 984 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AttachmentRequest = void 0;
const StringUtil_js_1 = require("../../../Utility/StringUtil.js");
const index_js_1 = require("../../../Exceptions/index.js");
class AttachmentRequest {
_name;
_documentId;
constructor(documentId, name) {
if (StringUtil_js_1.StringUtil.isNullOrWhitespace(documentId)) {
(0, index_js_1.throwError)("InvalidArgumentException", "DocumentId cannot be null or whitespace");
}
if (StringUtil_js_1.StringUtil.isNullOrWhitespace(name)) {
(0, index_js_1.throwError)("InvalidArgumentException", "Name cannot be null or whitespace");
}
this._documentId = documentId;
this._name = name;
}
get name() {
return this._name;
}
get documentId() {
return this._documentId;
}
}
exports.AttachmentRequest = AttachmentRequest;
//# sourceMappingURL=AttachmentRequest.js.map