"use strict";
var AlgoliaSearchHelper = require( "./src/algoliasearch.helper" );

var SearchParameters = require( "./src/SearchParameters" );
var SearchResults = require( "./src/SearchResults" );

/**
 * The algoliasearchHelper module contains everything needed to use the Algoliasearch
 * Helper. It is a also a function that instanciate the helper.
 * To use the helper, you also need the Algolia JS client v3.
 * @example
 * //using the UMD build
 * var client = algoliasearch('latency', '6be0576ff61c053d5f9a3225e2a90f76');
 * var helper = algoliasearchHelper( client, "bestbuy", {
 *   facets : [ "shipping" ],
 *   disjunctiveFacets : [ "category" ]
 * } );
 * helper.on( "result", function( result ) {
 *   console.log( result );
 * } );
 * helper.toggleRefine( "Movies & TV Shows" )
 *       .toggleRefine( "Free shipping" )
 *       .search();
 * @module algoliasearchHelper
 * @param  {AlgoliaSearch} client an AlgoliaSearch client
 * @param  {string} index the index name to query
 * @param  {SearchParameters|object} opts an object defining the initial config of the search. It doesn't have to be a {SearchParameters}, just an object containing the properties you need from it.
 * @return {AlgoliaSearchHelper}
 */
function algoliasearchHelper( client, index, opts ) {
  return new AlgoliaSearchHelper( client, index, opts );
}

algoliasearchHelper.AlgoliaSearchHelper = AlgoliaSearchHelper;
algoliasearchHelper.SearchParameters = SearchParameters;
algoliasearchHelper.SearchResults = SearchResults;

/**
 * The version currently used
 * @member module:"algoliasearch-helper".version
 */
algoliasearchHelper.version = "2.0.4";

module.exports = algoliasearchHelper;

"use strict";
var AlgoliaSearchHelper = require( "./src/algoliasearch.helper" );

var SearchParameters = require( "./src/SearchParameters" );
var SearchResults = require( "./src/SearchResults" );

/**
 * The algoliasearchHelper module contains everything needed to use the Algoliasearch
 * Helper. It is a also a function that instanciate the helper.
 * To use the helper, you also need the Algolia JS client v3.
 * @example
 * //using the UMD build
 * var client = algoliasearch('latency', '6be0576ff61c053d5f9a3225e2a90f76');
 * var helper = algoliasearchHelper( client, "bestbuy", {
 *   facets : [ "shipping" ],
 *   disjunctiveFacets : [ "category" ]
 * } );
 * helper.on( "result", function( result ) {
 *   console.log( result );
 * } );
 * helper.toggleRefine( "Movies & TV Shows" )
 *       .toggleRefine( "Free shipping" )
 *       .search();
 * @module algoliasearchHelper
 * @param  {AlgoliaSearch} client an AlgoliaSearch client
 * @param  {string} index the index name to query
 * @param  {SearchParameters|object} opts an object defining the initial config of the search. It doesn't have to be a {SearchParameters}, just an object containing the properties you need from it.
 * @return {AlgoliaSearchHelper}
 */
function algoliasearchHelper( client, index, opts ) {
  return new AlgoliaSearchHelper( client, index, opts );
}

/**
 * The version currently used
 * @member module:algoliasearchHelper.version
 */
algoliasearchHelper.version = "2.0.4";

/**
 * Constructor for the Helper.
 * @member module:algoliasearchHelper.AlgoliaSearchHelper
 * @see AlgoliaSearchHelper
 */
algoliasearchHelper.AlgoliaSearchHelper = AlgoliaSearchHelper;

/**
 * Constructor for the object containing all the parameters of the search.
 * @member module:algoliasearchHelper.SearchParameters
 * @see SearchParameters
 */
algoliasearchHelper.SearchParameters = SearchParameters;

/**
 * Constructor for the object containing the results of the search.
 * @member module:algoliasearchHelper.SearchResults
 * @see SearchResults
 */
algoliasearchHelper.SearchResults = SearchResults;

module.exports = algoliasearchHelper;

Fix doc (wrong namepath + add missing doc of constructors)