Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
OnDestroy,
Output,
EventEmitter,
Inject,
PLATFORM_ID,
} from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
import * as algoliasearchProxy from 'algoliasearch/lite';
import instantsearch from 'instantsearch.js/es';
import { AlgoliaSearchHelper } from 'algoliasearch-helper';
import { Widget } from '../base-widget';
import { VERSION } from '../version';
const algoliasearch = algoliasearchProxy.default || algoliasearchProxy;
export type SearchRequest = {
indexName: string;
params: SearchRequestParameters;
};
export type SearchForFacetValuesRequest = {
indexName: string;
params: SearchForFacetValuesRequestParameters;
};
// Documentation: https://www.algolia.com/doc/api-reference/search-api-parameters/
export type SearchParameters = {
// Attributes
attributesToRetrieve?: string[];
restrictSearchableAttributes?: string[];