UNPKG

ravendb

Version:
31 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MoreLikeThisScope = void 0; const ObjectUtil_js_1 = require("../../../Utility/ObjectUtil.js"); class MoreLikeThisScope { _token; _addQueryParameter; _onDispose; constructor(token, addQueryParameter, onDispose) { this._token = token; this._addQueryParameter = addQueryParameter; this._onDispose = onDispose; } dispose() { if (this._onDispose) { this._onDispose(); } } withOptions(options) { if (!options) { return; } const optionsAsJson = ObjectUtil_js_1.ObjectUtil.transformObjectKeys(options, { defaultTransform: ObjectUtil_js_1.ObjectUtil.pascal }); this._token.optionsParameterName = this._addQueryParameter(optionsAsJson); } withDocument(document) { this._token.documentParameterName = this._addQueryParameter(document); } } exports.MoreLikeThisScope = MoreLikeThisScope; //# sourceMappingURL=MoreLikeThisScope.js.map