'use strict';

require('./KlevuApiRawResponse-7801506a.js');
const klevuFetch = require('./klevuFetch-d78ab4d9.js');
const search = require('./search-851c2504.js');

const defaults = {
    id: "suggestions",
    limit: 5,
};
/**
 * Return suggestion on given search term
 *
 * @category Query
 * @param term search term
 * @param options
 * @returns
 */
function suggestions(term, options) {
    const params = Object.assign(Object.assign({}, defaults), options);
    const query = Object.assign({ typeOfRequest: klevuFetch.KlevuTypeOfRequest.Suggestion, query: search.cleanSearchQuery(term) }, params);
    return {
        klevuFunctionId: "suggestions",
        suggestions: [query],
    };
}

exports.suggestions = suggestions;

//# sourceMappingURL=suggestions-5dd4b923.js.map