diff --git a/types/algoliasearch/algoliasearch-tests.ts b/types/algoliasearch/algoliasearch-tests.ts index 6d4fede9fa..4f94855782 100644 --- a/types/algoliasearch/algoliasearch-tests.ts +++ b/types/algoliasearch/algoliasearch-tests.ts @@ -102,6 +102,9 @@ let _algoliaIndexSettings: IndexSettings = { minProximity: 0, placeholders: { '': [''] }, camelCaseAttributes: [''], + sortFacetValuesBy: 'count', + queryLanguages: ['fr', 'es'], + paginationLimitedTo: 500, }; let _algoliaQueryParameters: QueryParameters = { @@ -149,12 +152,14 @@ let _algoliaQueryParameters: QueryParameters = { numericAttributesForFiltering: [''], numericFilters: [''], tagFilters: [''], - facetFilters: [''], + facetFilters: ['', ['']], analytics: false, + clickAnalytics: true, analyticsTags: [''], synonyms: true, replaceSynonymsInHighlight: false, minProximity: 0, + sortFacetValuesBy: 'alpha', }; let _apiKey: ApiKey = { diff --git a/types/algoliasearch/index.d.ts b/types/algoliasearch/index.d.ts index f9aa26ce42..0553fbc7e8 100644 --- a/types/algoliasearch/index.d.ts +++ b/types/algoliasearch/index.d.ts @@ -1651,6 +1651,13 @@ declare namespace algoliasearch { * such as ignorePlurals, removeStopWords, and CJK word-detection. */ queryLanguages?: Array<'af' | 'ar' | 'az' | 'bg' | 'bn' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'el' | 'en' | 'eo' | 'es' | 'et' | 'eu' | 'fa' | 'fi' | 'fo' | 'fr' | 'ga' | 'gl' | 'he' | 'hi' | 'hu' | 'hy' | 'id' | 'is' | 'it' | 'ja' | 'ka' | 'kk' | 'ko' | 'ku' | 'ky' | 'lt' | 'lv' | 'mi' | 'mn' | 'mr' | 'ms' | 'mt' | 'nb' | 'nl' | 'no' | 'ns' | 'pl' | 'ps' | 'pt' | 'pt-br' | 'qu' | 'ro' | 'ru' | 'sk' | 'sq' | 'sv' | 'sw' | 'ta' | 'te' | 'th' | 'tl' | 'tn' | 'tr' | 'tt' | 'uk' | 'ur' | 'uz' | 'zh'>; + /** + * Set the maximum number of hits accessible via pagination. + * We set the max number of *hits*, not max number of pages. + * Works with the page and hitsByPage settings to establish the full paging logic. + * https://www.algolia.com/doc/api-reference/api-parameters/paginationLimitedTo/?language=javascript + */ + paginationLimitedTo?: number } interface Response {