mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[@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:
parent
5c7df7fb19
commit
382ef5eeb7
@ -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 = {
|
||||
|
||||
7
types/algoliasearch/index.d.ts
vendored
7
types/algoliasearch/index.d.ts
vendored
@ -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> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user