[@types/algoliasearch] add IndexSettings.paginationLimitedTo (#38339)

* add paginationLimitedTo to IndexSettings

* fix tests and add paginationLimitedTo to them

* Add doc URL

Co-Authored-By: Haroen Viaene <fingebimus@me.com>
This commit is contained in:
Antoine Rousseau 2019-09-16 22:49:54 +02:00 committed by Orta
parent 5c7df7fb19
commit 382ef5eeb7
2 changed files with 13 additions and 1 deletions

View File

@ -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 = {

View File

@ -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<T=any> {