algoliasearch 5.0.0-alpha.53 → 5.0.0-alpha.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/algoliasearch/builds/models.d.ts +31 -31
- package/dist/algoliasearch/jest.config.d.ts +3 -3
- package/dist/algoliasearch.cjs.js +3487 -3485
- package/dist/algoliasearch.esm.browser.js +3620 -3618
- package/dist/algoliasearch.esm.node.js +3487 -3485
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/builds/browser.d.ts +87 -87
- package/dist/builds/node.d.ts +87 -87
- package/dist/client-abtesting/model/aBTest.d.ts +39 -39
- package/dist/client-abtesting/model/aBTestResponse.d.ts +14 -14
- package/dist/client-abtesting/model/abTestsVariant.d.ts +14 -14
- package/dist/client-abtesting/model/abTestsVariantSearchParams.d.ts +3 -3
- package/dist/client-abtesting/model/addABTestsRequest.d.ts +15 -15
- package/dist/client-abtesting/model/addABTestsVariant.d.ts +3 -3
- package/dist/client-abtesting/model/clientMethodProps.d.ts +100 -100
- package/dist/client-abtesting/model/customSearchParams.d.ts +3 -3
- package/dist/client-abtesting/model/errorBase.d.ts +6 -6
- package/dist/client-abtesting/model/index.d.ts +11 -11
- package/dist/client-abtesting/model/listABTestsResponse.d.ts +15 -15
- package/dist/client-abtesting/model/variant.d.ts +50 -50
- package/dist/client-abtesting/src/abtestingClient.d.ts +124 -124
- package/dist/client-analytics/model/averageClickEvent.d.ts +14 -14
- package/dist/client-analytics/model/clickPosition.d.ts +10 -10
- package/dist/client-analytics/model/clickThroughRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/clientMethodProps.d.ts +507 -507
- package/dist/client-analytics/model/conversionRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/direction.d.ts +1 -1
- package/dist/client-analytics/model/errorBase.d.ts +6 -6
- package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +15 -15
- package/dist/client-analytics/model/getClickPositionsResponse.d.ts +7 -7
- package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getConversationRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getNoClickRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getSearchesCountResponse.d.ts +11 -11
- package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +7 -7
- package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +7 -7
- package/dist/client-analytics/model/getStatusResponse.d.ts +6 -6
- package/dist/client-analytics/model/getTopCountriesResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFilterAttribute.d.ts +10 -10
- package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +18 -18
- package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +14 -14
- package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts +11 -11
- package/dist/client-analytics/model/getTopHitsResponse.d.ts +3 -3
- package/dist/client-analytics/model/getTopSearchesResponse.d.ts +3 -3
- package/dist/client-analytics/model/getUsersCountResponse.d.ts +11 -11
- package/dist/client-analytics/model/index.d.ts +44 -44
- package/dist/client-analytics/model/noClickRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/noResultsRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/orderBy.d.ts +1 -1
- package/dist/client-analytics/model/searchEvent.d.ts +10 -10
- package/dist/client-analytics/model/searchNoClickEvent.d.ts +14 -14
- package/dist/client-analytics/model/searchNoResultEvent.d.ts +14 -14
- package/dist/client-analytics/model/topCountry.d.ts +10 -10
- package/dist/client-analytics/model/topHit.d.ts +10 -10
- package/dist/client-analytics/model/topHitWithAnalytics.d.ts +30 -30
- package/dist/client-analytics/model/topHitsResponse.d.ts +7 -7
- package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +7 -7
- package/dist/client-analytics/model/topSearch.d.ts +14 -14
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +38 -38
- package/dist/client-analytics/model/topSearchesResponse.d.ts +7 -7
- package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +7 -7
- package/dist/client-analytics/model/userWithDate.d.ts +10 -10
- package/dist/client-analytics/src/analyticsClient.d.ts +318 -318
- package/dist/client-personalization/model/clientMethodProps.d.ts +78 -78
- package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +10 -10
- package/dist/client-personalization/model/errorBase.d.ts +6 -6
- package/dist/client-personalization/model/eventScoring.d.ts +14 -14
- package/dist/client-personalization/model/facetScoring.d.ts +10 -10
- package/dist/client-personalization/model/getUserTokenResponse.d.ts +14 -14
- package/dist/client-personalization/model/index.d.ts +8 -8
- package/dist/client-personalization/model/personalizationStrategyParams.d.ts +16 -16
- package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts +6 -6
- package/dist/client-personalization/src/personalizationClient.d.ts +112 -112
- package/dist/client-search/model/acl.d.ts +4 -4
- package/dist/client-search/model/action.d.ts +4 -4
- package/dist/client-search/model/addApiKeyResponse.d.ts +10 -10
- package/dist/client-search/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/client-search/model/alternativesAsExact.d.ts +1 -1
- package/dist/client-search/model/anchoring.d.ts +4 -4
- package/dist/client-search/model/apiKey.d.ts +38 -38
- package/dist/client-search/model/aroundRadius.d.ts +5 -5
- package/dist/client-search/model/aroundRadiusAll.d.ts +1 -1
- package/dist/client-search/model/assignUserIdParams.d.ts +9 -9
- package/dist/client-search/model/attributeToUpdate.d.ts +2 -2
- package/dist/client-search/model/automaticFacetFilter.d.ts +17 -17
- package/dist/client-search/model/automaticFacetFilters.d.ts +5 -5
- package/dist/client-search/model/baseGetApiKeyResponse.d.ts +10 -10
- package/dist/client-search/model/baseIndexSettings.d.ts +62 -62
- package/dist/client-search/model/baseSearchParams.d.ts +3 -3
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +122 -122
- package/dist/client-search/model/baseSearchResponse.d.ts +101 -101
- package/dist/client-search/model/batchAssignUserIdsParams.d.ts +13 -13
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +14 -14
- package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts +6 -6
- package/dist/client-search/model/batchParams.d.ts +7 -7
- package/dist/client-search/model/batchRequest.d.ts +8 -8
- package/dist/client-search/model/batchResponse.d.ts +10 -10
- package/dist/client-search/model/batchWriteParams.d.ts +7 -7
- package/dist/client-search/model/browseParams.d.ts +3 -3
- package/dist/client-search/model/browseParamsObject.d.ts +3 -3
- package/dist/client-search/model/browseResponse.d.ts +4 -4
- package/dist/client-search/model/builtInOperation.d.ts +11 -11
- package/dist/client-search/model/builtInOperationType.d.ts +4 -4
- package/dist/client-search/model/clientMethodProps.d.ts +715 -715
- package/dist/client-search/model/condition.d.ts +16 -16
- package/dist/client-search/model/consequence.d.ts +25 -25
- package/dist/client-search/model/consequenceHide.d.ts +9 -9
- package/dist/client-search/model/consequenceParams.d.ts +4 -4
- package/dist/client-search/model/consequenceQuery.d.ts +5 -5
- package/dist/client-search/model/consequenceQueryObject.d.ts +11 -11
- package/dist/client-search/model/createdAtResponse.d.ts +9 -9
- package/dist/client-search/model/cursor.d.ts +6 -6
- package/dist/client-search/model/deleteApiKeyResponse.d.ts +6 -6
- package/dist/client-search/model/deleteByParams.d.ts +26 -26
- package/dist/client-search/model/deleteSourceResponse.d.ts +6 -6
- package/dist/client-search/model/deletedAtResponse.d.ts +13 -13
- package/dist/client-search/model/dictionaryAction.d.ts +4 -4
- package/dist/client-search/model/dictionaryEntry.d.ts +27 -27
- package/dist/client-search/model/dictionaryEntryState.d.ts +4 -4
- package/dist/client-search/model/dictionaryLanguage.d.ts +9 -9
- package/dist/client-search/model/dictionarySettingsParams.d.ts +7 -7
- package/dist/client-search/model/dictionaryType.d.ts +1 -1
- package/dist/client-search/model/distinct.d.ts +4 -4
- package/dist/client-search/model/edit.d.ts +12 -12
- package/dist/client-search/model/editType.d.ts +4 -4
- package/dist/client-search/model/errorBase.d.ts +6 -6
- package/dist/client-search/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/client-search/model/facetFilters.d.ts +5 -5
- package/dist/client-search/model/facetHits.d.ts +14 -14
- package/dist/client-search/model/facetOrdering.d.ts +12 -12
- package/dist/client-search/model/facets.d.ts +9 -9
- package/dist/client-search/model/facetsStats.d.ts +18 -18
- package/dist/client-search/model/fetchedIndex.d.ts +46 -46
- package/dist/client-search/model/getApiKeyResponse.d.ts +3 -3
- package/dist/client-search/model/getDictionarySettingsResponse.d.ts +4 -4
- package/dist/client-search/model/getLogsResponse.d.ts +4 -4
- package/dist/client-search/model/getObjectsParams.d.ts +7 -7
- package/dist/client-search/model/getObjectsRequest.d.ts +17 -17
- package/dist/client-search/model/getObjectsResponse.d.ts +6 -6
- package/dist/client-search/model/getTaskResponse.d.ts +4 -4
- package/dist/client-search/model/getTopUserIdsResponse.d.ts +10 -10
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts +10 -10
- package/dist/client-search/model/highlightResult.d.ts +2 -2
- package/dist/client-search/model/highlightResultOption.d.ts +19 -19
- package/dist/client-search/model/hit.d.ts +22 -22
- package/dist/client-search/model/ignorePlurals.d.ts +4 -4
- package/dist/client-search/model/index.d.ts +154 -154
- package/dist/client-search/model/indexSettings.d.ts +6 -6
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +156 -156
- package/dist/client-search/model/languages.d.ts +9 -9
- package/dist/client-search/model/listApiKeysResponse.d.ts +7 -7
- package/dist/client-search/model/listClustersResponse.d.ts +9 -9
- package/dist/client-search/model/listIndicesResponse.d.ts +11 -11
- package/dist/client-search/model/listUserIdsResponse.d.ts +10 -10
- package/dist/client-search/model/log.d.ts +63 -63
- package/dist/client-search/model/logQuery.d.ts +14 -14
- package/dist/client-search/model/logType.d.ts +1 -1
- package/dist/client-search/model/matchLevel.d.ts +4 -4
- package/dist/client-search/model/matchedGeoLocation.d.ts +14 -14
- package/dist/client-search/model/mixedSearchFilters.d.ts +1 -1
- package/dist/client-search/model/multipleBatchRequest.d.ts +12 -12
- package/dist/client-search/model/multipleBatchResponse.d.ts +10 -10
- package/dist/client-search/model/numericFilters.d.ts +5 -5
- package/dist/client-search/model/operationIndexParams.d.ts +13 -13
- package/dist/client-search/model/operationType.d.ts +4 -4
- package/dist/client-search/model/optionalFilters.d.ts +5 -5
- package/dist/client-search/model/params.d.ts +12 -12
- package/dist/client-search/model/personalization.d.ts +14 -14
- package/dist/client-search/model/promote.d.ts +3 -3
- package/dist/client-search/model/promoteObjectID.d.ts +13 -13
- package/dist/client-search/model/promoteObjectIDs.d.ts +13 -13
- package/dist/client-search/model/queryType.d.ts +4 -4
- package/dist/client-search/model/rankingInfo.d.ts +50 -50
- package/dist/client-search/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/client-search/model/removeStopWords.d.ts +4 -4
- package/dist/client-search/model/removeUserIdResponse.d.ts +6 -6
- package/dist/client-search/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/client-search/model/renderingContent.d.ts +7 -7
- package/dist/client-search/model/replaceSourceResponse.d.ts +6 -6
- package/dist/client-search/model/rule.d.ts +29 -29
- package/dist/client-search/model/saveObjectResponse.d.ts +11 -11
- package/dist/client-search/model/saveSynonymResponse.d.ts +14 -14
- package/dist/client-search/model/scopeType.d.ts +1 -1
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +21 -21
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts +14 -14
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts +4 -4
- package/dist/client-search/model/searchForFacets.d.ts +3 -3
- package/dist/client-search/model/searchForFacetsOptions.d.ts +20 -20
- package/dist/client-search/model/searchForHits.d.ts +3 -3
- package/dist/client-search/model/searchForHitsOptions.d.ts +12 -12
- package/dist/client-search/model/searchHits.d.ts +4 -4
- package/dist/client-search/model/searchMethodParams.d.ts +6 -6
- package/dist/client-search/model/searchParams.d.ts +3 -3
- package/dist/client-search/model/searchParamsObject.d.ts +3 -3
- package/dist/client-search/model/searchParamsQuery.d.ts +6 -6
- package/dist/client-search/model/searchParamsString.d.ts +6 -6
- package/dist/client-search/model/searchQuery.d.ts +3 -3
- package/dist/client-search/model/searchResponse.d.ts +3 -3
- package/dist/client-search/model/searchResponses.d.ts +4 -4
- package/dist/client-search/model/searchRulesParams.d.ts +31 -31
- package/dist/client-search/model/searchRulesResponse.d.ts +19 -19
- package/dist/client-search/model/searchStrategy.d.ts +1 -1
- package/dist/client-search/model/searchSynonymsParams.d.ts +6 -6
- package/dist/client-search/model/searchSynonymsResponse.d.ts +11 -11
- package/dist/client-search/model/searchTypeDefault.d.ts +4 -4
- package/dist/client-search/model/searchTypeFacet.d.ts +4 -4
- package/dist/client-search/model/searchUserIdsParams.d.ts +21 -21
- package/dist/client-search/model/searchUserIdsResponse.d.ts +26 -26
- package/dist/client-search/model/snippetResult.d.ts +2 -2
- package/dist/client-search/model/snippetResultOption.d.ts +11 -11
- package/dist/client-search/model/sortRemainingBy.d.ts +4 -4
- package/dist/client-search/model/source.d.ts +13 -13
- package/dist/client-search/model/standardEntries.d.ts +17 -17
- package/dist/client-search/model/synonymHit.d.ts +35 -35
- package/dist/client-search/model/synonymType.d.ts +4 -4
- package/dist/client-search/model/tagFilters.d.ts +5 -5
- package/dist/client-search/model/taskStatus.d.ts +1 -1
- package/dist/client-search/model/timeRange.d.ts +10 -10
- package/dist/client-search/model/typoTolerance.d.ts +5 -5
- package/dist/client-search/model/typoToleranceEnum.d.ts +1 -1
- package/dist/client-search/model/updateApiKeyResponse.d.ts +10 -10
- package/dist/client-search/model/updatedAtResponse.d.ts +13 -13
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +17 -17
- package/dist/client-search/model/updatedRuleResponse.d.ts +14 -14
- package/dist/client-search/model/userHighlightResult.d.ts +11 -11
- package/dist/client-search/model/userHit.d.ts +24 -24
- package/dist/client-search/model/userId.d.ts +21 -21
- package/dist/client-search/model/value.d.ts +8 -8
- package/dist/client-search/src/searchClient.d.ts +723 -723
- package/dist/lite/builds/browser.d.ts +5 -5
- package/dist/lite/builds/node.d.ts +5 -5
- package/dist/lite/lite.cjs.js +183 -183
- package/dist/lite/lite.esm.browser.js +307 -307
- package/dist/lite/lite.esm.node.js +183 -183
- package/dist/lite/lite.umd.js +2 -2
- package/dist/lite/model/acl.d.ts +4 -4
- package/dist/lite/model/action.d.ts +4 -4
- package/dist/lite/model/addApiKeyResponse.d.ts +10 -10
- package/dist/lite/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/lite/model/alternativesAsExact.d.ts +1 -1
- package/dist/lite/model/anchoring.d.ts +4 -4
- package/dist/lite/model/apiKey.d.ts +38 -38
- package/dist/lite/model/aroundRadius.d.ts +5 -5
- package/dist/lite/model/aroundRadiusAll.d.ts +1 -1
- package/dist/lite/model/attributeToUpdate.d.ts +2 -2
- package/dist/lite/model/automaticFacetFilter.d.ts +17 -17
- package/dist/lite/model/automaticFacetFilters.d.ts +5 -5
- package/dist/lite/model/baseGetApiKeyResponse.d.ts +10 -10
- package/dist/lite/model/baseIndexSettings.d.ts +62 -62
- package/dist/lite/model/baseSearchParams.d.ts +3 -3
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +122 -122
- package/dist/lite/model/baseSearchResponse.d.ts +101 -101
- package/dist/lite/model/browseParams.d.ts +3 -3
- package/dist/lite/model/browseParamsObject.d.ts +3 -3
- package/dist/lite/model/browseResponse.d.ts +4 -4
- package/dist/lite/model/builtInOperation.d.ts +11 -11
- package/dist/lite/model/builtInOperationType.d.ts +4 -4
- package/dist/lite/model/clientMethodProps.d.ts +48 -48
- package/dist/lite/model/condition.d.ts +16 -16
- package/dist/lite/model/consequence.d.ts +25 -25
- package/dist/lite/model/consequenceHide.d.ts +9 -9
- package/dist/lite/model/consequenceParams.d.ts +4 -4
- package/dist/lite/model/consequenceQuery.d.ts +5 -5
- package/dist/lite/model/consequenceQueryObject.d.ts +11 -11
- package/dist/lite/model/cursor.d.ts +6 -6
- package/dist/lite/model/deleteByParams.d.ts +26 -26
- package/dist/lite/model/dictionaryAction.d.ts +4 -4
- package/dist/lite/model/dictionaryEntry.d.ts +27 -27
- package/dist/lite/model/dictionaryEntryState.d.ts +4 -4
- package/dist/lite/model/dictionaryLanguage.d.ts +9 -9
- package/dist/lite/model/dictionaryType.d.ts +1 -1
- package/dist/lite/model/distinct.d.ts +4 -4
- package/dist/lite/model/edit.d.ts +12 -12
- package/dist/lite/model/editType.d.ts +4 -4
- package/dist/lite/model/errorBase.d.ts +6 -6
- package/dist/lite/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/lite/model/facetFilters.d.ts +5 -5
- package/dist/lite/model/facetOrdering.d.ts +12 -12
- package/dist/lite/model/facets.d.ts +9 -9
- package/dist/lite/model/facetsStats.d.ts +18 -18
- package/dist/lite/model/fetchedIndex.d.ts +46 -46
- package/dist/lite/model/getApiKeyResponse.d.ts +3 -3
- package/dist/lite/model/highlightResult.d.ts +2 -2
- package/dist/lite/model/highlightResultOption.d.ts +19 -19
- package/dist/lite/model/hit.d.ts +22 -22
- package/dist/lite/model/ignorePlurals.d.ts +4 -4
- package/dist/lite/model/index.d.ts +107 -107
- package/dist/lite/model/indexSettings.d.ts +6 -6
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts +156 -156
- package/dist/lite/model/languages.d.ts +9 -9
- package/dist/lite/model/listIndicesResponse.d.ts +11 -11
- package/dist/lite/model/logType.d.ts +1 -1
- package/dist/lite/model/matchLevel.d.ts +4 -4
- package/dist/lite/model/matchedGeoLocation.d.ts +14 -14
- package/dist/lite/model/mixedSearchFilters.d.ts +1 -1
- package/dist/lite/model/numericFilters.d.ts +5 -5
- package/dist/lite/model/operationType.d.ts +4 -4
- package/dist/lite/model/optionalFilters.d.ts +5 -5
- package/dist/lite/model/params.d.ts +12 -12
- package/dist/lite/model/personalization.d.ts +14 -14
- package/dist/lite/model/promote.d.ts +3 -3
- package/dist/lite/model/promoteObjectID.d.ts +13 -13
- package/dist/lite/model/promoteObjectIDs.d.ts +13 -13
- package/dist/lite/model/queryType.d.ts +4 -4
- package/dist/lite/model/rankingInfo.d.ts +50 -50
- package/dist/lite/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/lite/model/removeStopWords.d.ts +4 -4
- package/dist/lite/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/lite/model/renderingContent.d.ts +7 -7
- package/dist/lite/model/rule.d.ts +29 -29
- package/dist/lite/model/scopeType.d.ts +1 -1
- package/dist/lite/model/searchForFacets.d.ts +3 -3
- package/dist/lite/model/searchForFacetsOptions.d.ts +20 -20
- package/dist/lite/model/searchForHits.d.ts +3 -3
- package/dist/lite/model/searchForHitsOptions.d.ts +12 -12
- package/dist/lite/model/searchHits.d.ts +4 -4
- package/dist/lite/model/searchMethodParams.d.ts +6 -6
- package/dist/lite/model/searchParams.d.ts +3 -3
- package/dist/lite/model/searchParamsObject.d.ts +3 -3
- package/dist/lite/model/searchParamsQuery.d.ts +6 -6
- package/dist/lite/model/searchParamsString.d.ts +6 -6
- package/dist/lite/model/searchQuery.d.ts +3 -3
- package/dist/lite/model/searchResponse.d.ts +3 -3
- package/dist/lite/model/searchResponses.d.ts +4 -4
- package/dist/lite/model/searchStrategy.d.ts +1 -1
- package/dist/lite/model/searchSynonymsResponse.d.ts +11 -11
- package/dist/lite/model/searchTypeDefault.d.ts +4 -4
- package/dist/lite/model/searchTypeFacet.d.ts +4 -4
- package/dist/lite/model/snippetResult.d.ts +2 -2
- package/dist/lite/model/snippetResultOption.d.ts +11 -11
- package/dist/lite/model/sortRemainingBy.d.ts +4 -4
- package/dist/lite/model/source.d.ts +13 -13
- package/dist/lite/model/standardEntries.d.ts +17 -17
- package/dist/lite/model/synonymHit.d.ts +35 -35
- package/dist/lite/model/synonymType.d.ts +4 -4
- package/dist/lite/model/tagFilters.d.ts +5 -5
- package/dist/lite/model/taskStatus.d.ts +1 -1
- package/dist/lite/model/timeRange.d.ts +10 -10
- package/dist/lite/model/typoTolerance.d.ts +5 -5
- package/dist/lite/model/typoToleranceEnum.d.ts +1 -1
- package/dist/lite/model/updatedRuleResponse.d.ts +14 -14
- package/dist/lite/model/userId.d.ts +21 -21
- package/dist/lite/model/value.d.ts +8 -8
- package/dist/lite/src/liteClient.d.ts +50 -50
- package/lite/src/liteClient.ts +1 -1
- package/package.json +12 -12
|
@@ -1,716 +1,716 @@
|
|
|
1
|
-
import type { CreateIterablePromise } from '@algolia/client-common';
|
|
2
|
-
import type { ApiKey } from './apiKey';
|
|
3
|
-
import type { AssignUserIdParams } from './assignUserIdParams';
|
|
4
|
-
import type { AttributeToUpdate } from './attributeToUpdate';
|
|
5
|
-
import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
|
|
6
|
-
import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
|
|
7
|
-
import type { BatchWriteParams } from './batchWriteParams';
|
|
8
|
-
import type { BrowseParams } from './browseParams';
|
|
9
|
-
import type { DeleteByParams } from './deleteByParams';
|
|
10
|
-
import type { DictionaryType } from './dictionaryType';
|
|
11
|
-
import type { IndexSettings } from './indexSettings';
|
|
12
|
-
import type { LogType } from './logType';
|
|
13
|
-
import type { OperationIndexParams } from './operationIndexParams';
|
|
14
|
-
import type { Rule } from './rule';
|
|
15
|
-
import type { SearchDictionaryEntriesParams } from './searchDictionaryEntriesParams';
|
|
16
|
-
import type { SearchForFacetValuesRequest } from './searchForFacetValuesRequest';
|
|
17
|
-
import type { SearchForFacetsOptions } from './searchForFacetsOptions';
|
|
18
|
-
import type { SearchForHitsOptions } from './searchForHitsOptions';
|
|
19
|
-
import type { SearchParams } from './searchParams';
|
|
20
|
-
import type { SearchParamsObject } from './searchParamsObject';
|
|
21
|
-
import type { SearchRulesParams } from './searchRulesParams';
|
|
22
|
-
import type { SearchSynonymsParams } from './searchSynonymsParams';
|
|
23
|
-
import type { Source } from './source';
|
|
24
|
-
import type { SynonymHit } from './synonymHit';
|
|
25
|
-
import type { SynonymType } from './synonymType';
|
|
26
|
-
/**
|
|
27
|
-
* Properties for the `addOrUpdateObject` method.
|
|
28
|
-
*/
|
|
29
|
-
export type AddOrUpdateObjectProps = {
|
|
30
|
-
/**
|
|
31
|
-
* The index in which to perform the request.
|
|
32
|
-
*/
|
|
33
|
-
indexName: string;
|
|
34
|
-
/**
|
|
35
|
-
* Unique identifier of an object.
|
|
36
|
-
*/
|
|
37
|
-
objectID: string;
|
|
38
|
-
/**
|
|
39
|
-
* The Algolia object.
|
|
40
|
-
*/
|
|
41
|
-
body: Record<string, any>;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Properties for the `assignUserId` method.
|
|
45
|
-
*/
|
|
46
|
-
export type AssignUserIdProps = {
|
|
47
|
-
/**
|
|
48
|
-
* UserID to assign.
|
|
49
|
-
*/
|
|
50
|
-
xAlgoliaUserID: string;
|
|
51
|
-
assignUserIdParams: AssignUserIdParams;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Properties for the `batch` method.
|
|
55
|
-
*/
|
|
56
|
-
export type BatchProps = {
|
|
57
|
-
/**
|
|
58
|
-
* The index in which to perform the request.
|
|
59
|
-
*/
|
|
60
|
-
indexName: string;
|
|
61
|
-
batchWriteParams: BatchWriteParams;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Properties for the `batchAssignUserIds` method.
|
|
65
|
-
*/
|
|
66
|
-
export type BatchAssignUserIdsProps = {
|
|
67
|
-
/**
|
|
68
|
-
* UserID to assign.
|
|
69
|
-
*/
|
|
70
|
-
xAlgoliaUserID: string;
|
|
71
|
-
batchAssignUserIdsParams: BatchAssignUserIdsParams;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Properties for the `batchDictionaryEntries` method.
|
|
75
|
-
*/
|
|
76
|
-
export type BatchDictionaryEntriesProps = {
|
|
77
|
-
/**
|
|
78
|
-
* The dictionary to search in.
|
|
79
|
-
*/
|
|
80
|
-
dictionaryName: DictionaryType;
|
|
81
|
-
batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Properties for the `browse` method.
|
|
85
|
-
*/
|
|
86
|
-
export type BrowseProps = {
|
|
87
|
-
/**
|
|
88
|
-
* The index in which to perform the request.
|
|
89
|
-
*/
|
|
90
|
-
indexName: string;
|
|
91
|
-
browseParams?: BrowseParams;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Properties for the `clearAllSynonyms` method.
|
|
95
|
-
*/
|
|
96
|
-
export type ClearAllSynonymsProps = {
|
|
97
|
-
/**
|
|
98
|
-
* The index in which to perform the request.
|
|
99
|
-
*/
|
|
100
|
-
indexName: string;
|
|
101
|
-
/**
|
|
102
|
-
* When true, changes are also propagated to replicas of the given indexName.
|
|
103
|
-
*/
|
|
104
|
-
forwardToReplicas?: boolean;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* Properties for the `clearObjects` method.
|
|
108
|
-
*/
|
|
109
|
-
export type ClearObjectsProps = {
|
|
110
|
-
/**
|
|
111
|
-
* The index in which to perform the request.
|
|
112
|
-
*/
|
|
113
|
-
indexName: string;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Properties for the `clearRules` method.
|
|
117
|
-
*/
|
|
118
|
-
export type ClearRulesProps = {
|
|
119
|
-
/**
|
|
120
|
-
* The index in which to perform the request.
|
|
121
|
-
*/
|
|
122
|
-
indexName: string;
|
|
123
|
-
/**
|
|
124
|
-
* When true, changes are also propagated to replicas of the given indexName.
|
|
125
|
-
*/
|
|
126
|
-
forwardToReplicas?: boolean;
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Properties for the `del` method.
|
|
130
|
-
*/
|
|
131
|
-
export type DelProps = {
|
|
132
|
-
/**
|
|
133
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
134
|
-
*/
|
|
135
|
-
path: string;
|
|
136
|
-
/**
|
|
137
|
-
* Query parameters to be applied to the current query.
|
|
138
|
-
*/
|
|
139
|
-
parameters?: Record<string, any>;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Properties for the `deleteApiKey` method.
|
|
143
|
-
*/
|
|
144
|
-
export type DeleteApiKeyProps = {
|
|
145
|
-
/**
|
|
146
|
-
* API Key string.
|
|
147
|
-
*/
|
|
148
|
-
key: string;
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* Properties for the `deleteBy` method.
|
|
152
|
-
*/
|
|
153
|
-
export type DeleteByProps = {
|
|
154
|
-
/**
|
|
155
|
-
* The index in which to perform the request.
|
|
156
|
-
*/
|
|
157
|
-
indexName: string;
|
|
158
|
-
deleteByParams: DeleteByParams;
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* Properties for the `deleteIndex` method.
|
|
162
|
-
*/
|
|
163
|
-
export type DeleteIndexProps = {
|
|
164
|
-
/**
|
|
165
|
-
* The index in which to perform the request.
|
|
166
|
-
*/
|
|
167
|
-
indexName: string;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Properties for the `deleteObject` method.
|
|
171
|
-
*/
|
|
172
|
-
export type DeleteObjectProps = {
|
|
173
|
-
/**
|
|
174
|
-
* The index in which to perform the request.
|
|
175
|
-
*/
|
|
176
|
-
indexName: string;
|
|
177
|
-
/**
|
|
178
|
-
* Unique identifier of an object.
|
|
179
|
-
*/
|
|
180
|
-
objectID: string;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Properties for the `deleteRule` method.
|
|
184
|
-
*/
|
|
185
|
-
export type DeleteRuleProps = {
|
|
186
|
-
/**
|
|
187
|
-
* The index in which to perform the request.
|
|
188
|
-
*/
|
|
189
|
-
indexName: string;
|
|
190
|
-
/**
|
|
191
|
-
* Unique identifier of an object.
|
|
192
|
-
*/
|
|
193
|
-
objectID: string;
|
|
194
|
-
/**
|
|
195
|
-
* When true, changes are also propagated to replicas of the given indexName.
|
|
196
|
-
*/
|
|
197
|
-
forwardToReplicas?: boolean;
|
|
198
|
-
};
|
|
199
|
-
/**
|
|
200
|
-
* Properties for the `deleteSource` method.
|
|
201
|
-
*/
|
|
202
|
-
export type DeleteSourceProps = {
|
|
203
|
-
/**
|
|
204
|
-
* The IP range of the source.
|
|
205
|
-
*/
|
|
206
|
-
source: string;
|
|
207
|
-
};
|
|
208
|
-
/**
|
|
209
|
-
* Properties for the `deleteSynonym` method.
|
|
210
|
-
*/
|
|
211
|
-
export type DeleteSynonymProps = {
|
|
212
|
-
/**
|
|
213
|
-
* The index in which to perform the request.
|
|
214
|
-
*/
|
|
215
|
-
indexName: string;
|
|
216
|
-
/**
|
|
217
|
-
* Unique identifier of an object.
|
|
218
|
-
*/
|
|
219
|
-
objectID: string;
|
|
220
|
-
/**
|
|
221
|
-
* When true, changes are also propagated to replicas of the given indexName.
|
|
222
|
-
*/
|
|
223
|
-
forwardToReplicas?: boolean;
|
|
224
|
-
};
|
|
225
|
-
/**
|
|
226
|
-
* Properties for the `get` method.
|
|
227
|
-
*/
|
|
228
|
-
export type GetProps = {
|
|
229
|
-
/**
|
|
230
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
231
|
-
*/
|
|
232
|
-
path: string;
|
|
233
|
-
/**
|
|
234
|
-
* Query parameters to be applied to the current query.
|
|
235
|
-
*/
|
|
236
|
-
parameters?: Record<string, any>;
|
|
237
|
-
};
|
|
238
|
-
/**
|
|
239
|
-
* Properties for the `getApiKey` method.
|
|
240
|
-
*/
|
|
241
|
-
export type GetApiKeyProps = {
|
|
242
|
-
/**
|
|
243
|
-
* API Key string.
|
|
244
|
-
*/
|
|
245
|
-
key: string;
|
|
246
|
-
};
|
|
247
|
-
/**
|
|
248
|
-
* Properties for the `getLogs` method.
|
|
249
|
-
*/
|
|
250
|
-
export type GetLogsProps = {
|
|
251
|
-
/**
|
|
252
|
-
* First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry.
|
|
253
|
-
*/
|
|
254
|
-
offset?: number;
|
|
255
|
-
/**
|
|
256
|
-
* Maximum number of entries to retrieve. The maximum allowed value is 1000.
|
|
257
|
-
*/
|
|
258
|
-
length?: number;
|
|
259
|
-
/**
|
|
260
|
-
* Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices.
|
|
261
|
-
*/
|
|
262
|
-
indexName?: string;
|
|
263
|
-
/**
|
|
264
|
-
* Type of log entries to retrieve. When omitted, all log entries are retrieved.
|
|
265
|
-
*/
|
|
266
|
-
type?: LogType;
|
|
267
|
-
};
|
|
268
|
-
/**
|
|
269
|
-
* Properties for the `getObject` method.
|
|
270
|
-
*/
|
|
271
|
-
export type GetObjectProps = {
|
|
272
|
-
/**
|
|
273
|
-
* The index in which to perform the request.
|
|
274
|
-
*/
|
|
275
|
-
indexName: string;
|
|
276
|
-
/**
|
|
277
|
-
* Unique identifier of an object.
|
|
278
|
-
*/
|
|
279
|
-
objectID: string;
|
|
280
|
-
/**
|
|
281
|
-
* List of attributes to retrieve. If not specified, all retrievable attributes are returned.
|
|
282
|
-
*/
|
|
283
|
-
attributesToRetrieve?: string[];
|
|
284
|
-
};
|
|
285
|
-
/**
|
|
286
|
-
* Properties for the `getRule` method.
|
|
287
|
-
*/
|
|
288
|
-
export type GetRuleProps = {
|
|
289
|
-
/**
|
|
290
|
-
* The index in which to perform the request.
|
|
291
|
-
*/
|
|
292
|
-
indexName: string;
|
|
293
|
-
/**
|
|
294
|
-
* Unique identifier of an object.
|
|
295
|
-
*/
|
|
296
|
-
objectID: string;
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* Properties for the `getSettings` method.
|
|
300
|
-
*/
|
|
301
|
-
export type GetSettingsProps = {
|
|
302
|
-
/**
|
|
303
|
-
* The index in which to perform the request.
|
|
304
|
-
*/
|
|
305
|
-
indexName: string;
|
|
306
|
-
};
|
|
307
|
-
/**
|
|
308
|
-
* Properties for the `getSynonym` method.
|
|
309
|
-
*/
|
|
310
|
-
export type GetSynonymProps = {
|
|
311
|
-
/**
|
|
312
|
-
* The index in which to perform the request.
|
|
313
|
-
*/
|
|
314
|
-
indexName: string;
|
|
315
|
-
/**
|
|
316
|
-
* Unique identifier of an object.
|
|
317
|
-
*/
|
|
318
|
-
objectID: string;
|
|
319
|
-
};
|
|
320
|
-
/**
|
|
321
|
-
* Properties for the `getTask` method.
|
|
322
|
-
*/
|
|
323
|
-
export type GetTaskProps = {
|
|
324
|
-
/**
|
|
325
|
-
* The index in which to perform the request.
|
|
326
|
-
*/
|
|
327
|
-
indexName: string;
|
|
328
|
-
/**
|
|
329
|
-
* Unique identifier of an task. Numeric value (up to 64bits).
|
|
330
|
-
*/
|
|
331
|
-
taskID: number;
|
|
332
|
-
};
|
|
333
|
-
/**
|
|
334
|
-
* Properties for the `getUserId` method.
|
|
335
|
-
*/
|
|
336
|
-
export type GetUserIdProps = {
|
|
337
|
-
/**
|
|
338
|
-
* UserID to assign.
|
|
339
|
-
*/
|
|
340
|
-
userID: string;
|
|
341
|
-
};
|
|
342
|
-
/**
|
|
343
|
-
* Properties for the `hasPendingMappings` method.
|
|
344
|
-
*/
|
|
345
|
-
export type HasPendingMappingsProps = {
|
|
346
|
-
/**
|
|
347
|
-
* If the clusters pending mapping state should be on the response.
|
|
348
|
-
*/
|
|
349
|
-
getClusters?: boolean;
|
|
350
|
-
};
|
|
351
|
-
/**
|
|
352
|
-
* Properties for the `listIndices` method.
|
|
353
|
-
*/
|
|
354
|
-
export type ListIndicesProps = {
|
|
355
|
-
/**
|
|
356
|
-
* Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
|
|
357
|
-
*/
|
|
358
|
-
page?: number;
|
|
359
|
-
};
|
|
360
|
-
/**
|
|
361
|
-
* Properties for the `listUserIds` method.
|
|
362
|
-
*/
|
|
363
|
-
export type ListUserIdsProps = {
|
|
364
|
-
/**
|
|
365
|
-
* Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
|
|
366
|
-
*/
|
|
367
|
-
page?: number;
|
|
368
|
-
/**
|
|
369
|
-
* Maximum number of objects to retrieve.
|
|
370
|
-
*/
|
|
371
|
-
hitsPerPage?: number;
|
|
372
|
-
};
|
|
373
|
-
/**
|
|
374
|
-
* Properties for the `operationIndex` method.
|
|
375
|
-
*/
|
|
376
|
-
export type OperationIndexProps = {
|
|
377
|
-
/**
|
|
378
|
-
* The index in which to perform the request.
|
|
379
|
-
*/
|
|
380
|
-
indexName: string;
|
|
381
|
-
operationIndexParams: OperationIndexParams;
|
|
382
|
-
};
|
|
383
|
-
/**
|
|
384
|
-
* Properties for the `partialUpdateObject` method.
|
|
385
|
-
*/
|
|
386
|
-
export type PartialUpdateObjectProps = {
|
|
387
|
-
/**
|
|
388
|
-
* The index in which to perform the request.
|
|
389
|
-
*/
|
|
390
|
-
indexName: string;
|
|
391
|
-
/**
|
|
392
|
-
* Unique identifier of an object.
|
|
393
|
-
*/
|
|
394
|
-
objectID: string;
|
|
395
|
-
/**
|
|
396
|
-
* Map of attribute(s) to update.
|
|
397
|
-
*/
|
|
398
|
-
attributesToUpdate: Record<string, AttributeToUpdate>;
|
|
399
|
-
/**
|
|
400
|
-
* Creates the record if it does not exist yet.
|
|
401
|
-
*/
|
|
402
|
-
createIfNotExists?: boolean;
|
|
403
|
-
};
|
|
404
|
-
/**
|
|
405
|
-
* Properties for the `post` method.
|
|
406
|
-
*/
|
|
407
|
-
export type PostProps = {
|
|
408
|
-
/**
|
|
409
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
410
|
-
*/
|
|
411
|
-
path: string;
|
|
412
|
-
/**
|
|
413
|
-
* Query parameters to be applied to the current query.
|
|
414
|
-
*/
|
|
415
|
-
parameters?: Record<string, any>;
|
|
416
|
-
/**
|
|
417
|
-
* The parameters to send with the custom request.
|
|
418
|
-
*/
|
|
419
|
-
body?: Record<string, any>;
|
|
420
|
-
};
|
|
421
|
-
/**
|
|
422
|
-
* Properties for the `put` method.
|
|
423
|
-
*/
|
|
424
|
-
export type PutProps = {
|
|
425
|
-
/**
|
|
426
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
427
|
-
*/
|
|
428
|
-
path: string;
|
|
429
|
-
/**
|
|
430
|
-
* Query parameters to be applied to the current query.
|
|
431
|
-
*/
|
|
432
|
-
parameters?: Record<string, any>;
|
|
433
|
-
/**
|
|
434
|
-
* The parameters to send with the custom request.
|
|
435
|
-
*/
|
|
436
|
-
body?: Record<string, any>;
|
|
437
|
-
};
|
|
438
|
-
/**
|
|
439
|
-
* Properties for the `removeUserId` method.
|
|
440
|
-
*/
|
|
441
|
-
export type RemoveUserIdProps = {
|
|
442
|
-
/**
|
|
443
|
-
* UserID to assign.
|
|
444
|
-
*/
|
|
445
|
-
userID: string;
|
|
446
|
-
};
|
|
447
|
-
/**
|
|
448
|
-
* Properties for the `replaceSources` method.
|
|
449
|
-
*/
|
|
450
|
-
export type ReplaceSourcesProps = {
|
|
451
|
-
/**
|
|
452
|
-
* The sources to allow.
|
|
453
|
-
*/
|
|
454
|
-
source: Source[];
|
|
455
|
-
};
|
|
456
|
-
/**
|
|
457
|
-
* Properties for the `restoreApiKey` method.
|
|
458
|
-
*/
|
|
459
|
-
export type RestoreApiKeyProps = {
|
|
460
|
-
/**
|
|
461
|
-
* API Key string.
|
|
462
|
-
*/
|
|
463
|
-
key: string;
|
|
464
|
-
};
|
|
465
|
-
/**
|
|
466
|
-
* Properties for the `saveObject` method.
|
|
467
|
-
*/
|
|
468
|
-
export type SaveObjectProps = {
|
|
469
|
-
/**
|
|
470
|
-
* The index in which to perform the request.
|
|
471
|
-
*/
|
|
472
|
-
indexName: string;
|
|
473
|
-
/**
|
|
474
|
-
* The Algolia record.
|
|
475
|
-
*/
|
|
476
|
-
body: Record<string, any>;
|
|
477
|
-
};
|
|
478
|
-
/**
|
|
479
|
-
* Properties for the `saveRule` method.
|
|
480
|
-
*/
|
|
481
|
-
export type SaveRuleProps = {
|
|
482
|
-
/**
|
|
483
|
-
* The index in which to perform the request.
|
|
484
|
-
*/
|
|
485
|
-
indexName: string;
|
|
486
|
-
/**
|
|
487
|
-
* Unique identifier of an object.
|
|
488
|
-
*/
|
|
489
|
-
objectID: string;
|
|
490
|
-
rule: Rule;
|
|
491
|
-
/**
|
|
492
|
-
* When true, changes are also propagated to replicas of the given indexName.
|
|
493
|
-
*/
|
|
494
|
-
forwardToReplicas?: boolean;
|
|
495
|
-
};
|
|
496
|
-
/**
|
|
497
|
-
* Properties for the `saveRules` method.
|
|
498
|
-
*/
|
|
499
|
-
export type SaveRulesProps = {
|
|
500
|
-
/**
|
|
501
|
-
* The index in which to perform the request.
|
|
502
|
-
*/
|
|
503
|
-
indexName: string;
|
|
504
|
-
rules: Rule[];
|
|
505
|
-
/**
|
|
506
|
-
* When true, changes are also propagated to replicas of the given indexName.
|
|
507
|
-
*/
|
|
508
|
-
forwardToReplicas?: boolean;
|
|
509
|
-
/**
|
|
510
|
-
* When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
|
|
511
|
-
*/
|
|
512
|
-
clearExistingRules?: boolean;
|
|
513
|
-
};
|
|
514
|
-
/**
|
|
515
|
-
* Properties for the `saveSynonym` method.
|
|
516
|
-
*/
|
|
517
|
-
export type SaveSynonymProps = {
|
|
518
|
-
/**
|
|
519
|
-
* The index in which to perform the request.
|
|
520
|
-
*/
|
|
521
|
-
indexName: string;
|
|
522
|
-
/**
|
|
523
|
-
* Unique identifier of an object.
|
|
524
|
-
*/
|
|
525
|
-
objectID: string;
|
|
526
|
-
synonymHit: SynonymHit;
|
|
527
|
-
/**
|
|
528
|
-
* When true, changes are also propagated to replicas of the given indexName.
|
|
529
|
-
*/
|
|
530
|
-
forwardToReplicas?: boolean;
|
|
531
|
-
};
|
|
532
|
-
/**
|
|
533
|
-
* Properties for the `saveSynonyms` method.
|
|
534
|
-
*/
|
|
535
|
-
export type SaveSynonymsProps = {
|
|
536
|
-
/**
|
|
537
|
-
* The index in which to perform the request.
|
|
538
|
-
*/
|
|
539
|
-
indexName: string;
|
|
540
|
-
synonymHit: SynonymHit[];
|
|
541
|
-
/**
|
|
542
|
-
* When true, changes are also propagated to replicas of the given indexName.
|
|
543
|
-
*/
|
|
544
|
-
forwardToReplicas?: boolean;
|
|
545
|
-
/**
|
|
546
|
-
* Replace all synonyms of the index with the ones sent with this request.
|
|
547
|
-
*/
|
|
548
|
-
replaceExistingSynonyms?: boolean;
|
|
549
|
-
};
|
|
550
|
-
/**
|
|
551
|
-
* In v4, the search parameters are wrapped in a `params` parameter.
|
|
552
|
-
*
|
|
553
|
-
* @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
|
|
554
|
-
*/
|
|
555
|
-
type LegacySearchParams = {
|
|
556
|
-
params?: SearchParamsObject;
|
|
557
|
-
};
|
|
558
|
-
/**
|
|
559
|
-
* In v4, the search parameters are wrapped in a `params` parameter.
|
|
560
|
-
*
|
|
561
|
-
* @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
|
|
562
|
-
*/
|
|
563
|
-
type LegacySearchForFacets = LegacySearchParams & SearchForFacetsOptions;
|
|
564
|
-
/**
|
|
565
|
-
* In v4, the search parameters are wrapped in a `params` parameter.
|
|
566
|
-
*
|
|
567
|
-
* @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
|
|
568
|
-
*/
|
|
569
|
-
type LegacySearchForHits = LegacySearchParams & SearchForHitsOptions;
|
|
570
|
-
type LegacySearchQuery = LegacySearchForFacets | LegacySearchForHits;
|
|
571
|
-
/**
|
|
572
|
-
* Search method signature compatible with the `algoliasearch` v4 package. When using this signature, extra computation will be required to make it match the new signature.
|
|
573
|
-
*
|
|
574
|
-
* @deprecated This signature will be removed from the next major version, we recommend using the `SearchMethodParams` type for performances and future proof reasons.
|
|
575
|
-
*/
|
|
576
|
-
export type LegacySearchMethodProps = LegacySearchQuery[];
|
|
577
|
-
/**
|
|
578
|
-
* Properties for the `searchDictionaryEntries` method.
|
|
579
|
-
*/
|
|
580
|
-
export type SearchDictionaryEntriesProps = {
|
|
581
|
-
/**
|
|
582
|
-
* The dictionary to search in.
|
|
583
|
-
*/
|
|
584
|
-
dictionaryName: DictionaryType;
|
|
585
|
-
searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
|
|
586
|
-
};
|
|
587
|
-
/**
|
|
588
|
-
* Properties for the `searchForFacetValues` method.
|
|
589
|
-
*/
|
|
590
|
-
export type SearchForFacetValuesProps = {
|
|
591
|
-
/**
|
|
592
|
-
* The index in which to perform the request.
|
|
593
|
-
*/
|
|
594
|
-
indexName: string;
|
|
595
|
-
/**
|
|
596
|
-
* The facet name.
|
|
597
|
-
*/
|
|
598
|
-
facetName: string;
|
|
599
|
-
searchForFacetValuesRequest?: SearchForFacetValuesRequest;
|
|
600
|
-
};
|
|
601
|
-
/**
|
|
602
|
-
* Properties for the `searchRules` method.
|
|
603
|
-
*/
|
|
604
|
-
export type SearchRulesProps = {
|
|
605
|
-
/**
|
|
606
|
-
* The index in which to perform the request.
|
|
607
|
-
*/
|
|
608
|
-
indexName: string;
|
|
609
|
-
searchRulesParams?: SearchRulesParams;
|
|
610
|
-
};
|
|
611
|
-
/**
|
|
612
|
-
* Properties for the `searchSingleIndex` method.
|
|
613
|
-
*/
|
|
614
|
-
export type SearchSingleIndexProps = {
|
|
615
|
-
/**
|
|
616
|
-
* The index in which to perform the request.
|
|
617
|
-
*/
|
|
618
|
-
indexName: string;
|
|
619
|
-
searchParams?: SearchParams;
|
|
620
|
-
};
|
|
621
|
-
/**
|
|
622
|
-
* Properties for the `searchSynonyms` method.
|
|
623
|
-
*/
|
|
624
|
-
export type SearchSynonymsProps = {
|
|
625
|
-
/**
|
|
626
|
-
* The index in which to perform the request.
|
|
627
|
-
*/
|
|
628
|
-
indexName: string;
|
|
629
|
-
/**
|
|
630
|
-
* Only search for specific types of synonyms.
|
|
631
|
-
*/
|
|
632
|
-
type?: SynonymType;
|
|
633
|
-
/**
|
|
634
|
-
* Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
|
|
635
|
-
*/
|
|
636
|
-
page?: number;
|
|
637
|
-
/**
|
|
638
|
-
* Maximum number of objects to retrieve.
|
|
639
|
-
*/
|
|
640
|
-
hitsPerPage?: number;
|
|
641
|
-
/**
|
|
642
|
-
* The body of the the `searchSynonyms` method.
|
|
643
|
-
*/
|
|
644
|
-
searchSynonymsParams?: SearchSynonymsParams;
|
|
645
|
-
};
|
|
646
|
-
/**
|
|
647
|
-
* Properties for the `setSettings` method.
|
|
648
|
-
*/
|
|
649
|
-
export type SetSettingsProps = {
|
|
650
|
-
/**
|
|
651
|
-
* The index in which to perform the request.
|
|
652
|
-
*/
|
|
653
|
-
indexName: string;
|
|
654
|
-
indexSettings: IndexSettings;
|
|
655
|
-
/**
|
|
656
|
-
* When true, changes are also propagated to replicas of the given indexName.
|
|
657
|
-
*/
|
|
658
|
-
forwardToReplicas?: boolean;
|
|
659
|
-
};
|
|
660
|
-
/**
|
|
661
|
-
* Properties for the `updateApiKey` method.
|
|
662
|
-
*/
|
|
663
|
-
export type UpdateApiKeyProps = {
|
|
664
|
-
/**
|
|
665
|
-
* API Key string.
|
|
666
|
-
*/
|
|
667
|
-
key: string;
|
|
668
|
-
apiKey: ApiKey;
|
|
669
|
-
};
|
|
670
|
-
/**
|
|
671
|
-
* The `browseObjects`, `browseRules`, `browseSynonyms` options.
|
|
672
|
-
*/
|
|
673
|
-
export type BrowseOptions<T> = Partial<Pick<CreateIterablePromise<T>, 'validate'>> & Required<Pick<CreateIterablePromise<T>, 'aggregator'>>;
|
|
674
|
-
type WaitForOptions = Partial<{
|
|
675
|
-
/**
|
|
676
|
-
* The maximum number of retries. 50 by default.
|
|
677
|
-
*/
|
|
678
|
-
maxRetries: number;
|
|
679
|
-
/**
|
|
680
|
-
* The function to decide how long to wait between retries.
|
|
681
|
-
*/
|
|
682
|
-
timeout: (retryCount: number) => number;
|
|
683
|
-
}>;
|
|
684
|
-
export type WaitForTaskOptions = WaitForOptions & {
|
|
685
|
-
/**
|
|
686
|
-
* The `indexName` where the operation was performed.
|
|
687
|
-
*/
|
|
688
|
-
indexName: string;
|
|
689
|
-
/**
|
|
690
|
-
* The `taskID` returned by the method response.
|
|
691
|
-
*/
|
|
692
|
-
taskID: number;
|
|
693
|
-
};
|
|
694
|
-
export type WaitForApiKeyOptions = WaitForOptions & {
|
|
695
|
-
/**
|
|
696
|
-
* The API Key.
|
|
697
|
-
*/
|
|
698
|
-
key: string;
|
|
699
|
-
} & ({
|
|
700
|
-
/**
|
|
701
|
-
* The operation that has been performed, used to compute the stop condition.
|
|
702
|
-
*/
|
|
703
|
-
operation: 'add' | 'delete';
|
|
704
|
-
apiKey?: never;
|
|
705
|
-
} | {
|
|
706
|
-
/**
|
|
707
|
-
* The operation that has been performed, used to compute the stop condition.
|
|
708
|
-
*/
|
|
709
|
-
operation: 'update';
|
|
710
|
-
/**
|
|
711
|
-
* The updated fields, used to compute the stop condition.
|
|
712
|
-
*/
|
|
713
|
-
apiKey: Partial<ApiKey>;
|
|
714
|
-
});
|
|
715
|
-
export {};
|
|
1
|
+
import type { CreateIterablePromise } from '@algolia/client-common';
|
|
2
|
+
import type { ApiKey } from './apiKey';
|
|
3
|
+
import type { AssignUserIdParams } from './assignUserIdParams';
|
|
4
|
+
import type { AttributeToUpdate } from './attributeToUpdate';
|
|
5
|
+
import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
|
|
6
|
+
import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
|
|
7
|
+
import type { BatchWriteParams } from './batchWriteParams';
|
|
8
|
+
import type { BrowseParams } from './browseParams';
|
|
9
|
+
import type { DeleteByParams } from './deleteByParams';
|
|
10
|
+
import type { DictionaryType } from './dictionaryType';
|
|
11
|
+
import type { IndexSettings } from './indexSettings';
|
|
12
|
+
import type { LogType } from './logType';
|
|
13
|
+
import type { OperationIndexParams } from './operationIndexParams';
|
|
14
|
+
import type { Rule } from './rule';
|
|
15
|
+
import type { SearchDictionaryEntriesParams } from './searchDictionaryEntriesParams';
|
|
16
|
+
import type { SearchForFacetValuesRequest } from './searchForFacetValuesRequest';
|
|
17
|
+
import type { SearchForFacetsOptions } from './searchForFacetsOptions';
|
|
18
|
+
import type { SearchForHitsOptions } from './searchForHitsOptions';
|
|
19
|
+
import type { SearchParams } from './searchParams';
|
|
20
|
+
import type { SearchParamsObject } from './searchParamsObject';
|
|
21
|
+
import type { SearchRulesParams } from './searchRulesParams';
|
|
22
|
+
import type { SearchSynonymsParams } from './searchSynonymsParams';
|
|
23
|
+
import type { Source } from './source';
|
|
24
|
+
import type { SynonymHit } from './synonymHit';
|
|
25
|
+
import type { SynonymType } from './synonymType';
|
|
26
|
+
/**
|
|
27
|
+
* Properties for the `addOrUpdateObject` method.
|
|
28
|
+
*/
|
|
29
|
+
export type AddOrUpdateObjectProps = {
|
|
30
|
+
/**
|
|
31
|
+
* The index in which to perform the request.
|
|
32
|
+
*/
|
|
33
|
+
indexName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier of an object.
|
|
36
|
+
*/
|
|
37
|
+
objectID: string;
|
|
38
|
+
/**
|
|
39
|
+
* The Algolia object.
|
|
40
|
+
*/
|
|
41
|
+
body: Record<string, any>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Properties for the `assignUserId` method.
|
|
45
|
+
*/
|
|
46
|
+
export type AssignUserIdProps = {
|
|
47
|
+
/**
|
|
48
|
+
* UserID to assign.
|
|
49
|
+
*/
|
|
50
|
+
xAlgoliaUserID: string;
|
|
51
|
+
assignUserIdParams: AssignUserIdParams;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Properties for the `batch` method.
|
|
55
|
+
*/
|
|
56
|
+
export type BatchProps = {
|
|
57
|
+
/**
|
|
58
|
+
* The index in which to perform the request.
|
|
59
|
+
*/
|
|
60
|
+
indexName: string;
|
|
61
|
+
batchWriteParams: BatchWriteParams;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Properties for the `batchAssignUserIds` method.
|
|
65
|
+
*/
|
|
66
|
+
export type BatchAssignUserIdsProps = {
|
|
67
|
+
/**
|
|
68
|
+
* UserID to assign.
|
|
69
|
+
*/
|
|
70
|
+
xAlgoliaUserID: string;
|
|
71
|
+
batchAssignUserIdsParams: BatchAssignUserIdsParams;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Properties for the `batchDictionaryEntries` method.
|
|
75
|
+
*/
|
|
76
|
+
export type BatchDictionaryEntriesProps = {
|
|
77
|
+
/**
|
|
78
|
+
* The dictionary to search in.
|
|
79
|
+
*/
|
|
80
|
+
dictionaryName: DictionaryType;
|
|
81
|
+
batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Properties for the `browse` method.
|
|
85
|
+
*/
|
|
86
|
+
export type BrowseProps = {
|
|
87
|
+
/**
|
|
88
|
+
* The index in which to perform the request.
|
|
89
|
+
*/
|
|
90
|
+
indexName: string;
|
|
91
|
+
browseParams?: BrowseParams;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Properties for the `clearAllSynonyms` method.
|
|
95
|
+
*/
|
|
96
|
+
export type ClearAllSynonymsProps = {
|
|
97
|
+
/**
|
|
98
|
+
* The index in which to perform the request.
|
|
99
|
+
*/
|
|
100
|
+
indexName: string;
|
|
101
|
+
/**
|
|
102
|
+
* When true, changes are also propagated to replicas of the given indexName.
|
|
103
|
+
*/
|
|
104
|
+
forwardToReplicas?: boolean;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Properties for the `clearObjects` method.
|
|
108
|
+
*/
|
|
109
|
+
export type ClearObjectsProps = {
|
|
110
|
+
/**
|
|
111
|
+
* The index in which to perform the request.
|
|
112
|
+
*/
|
|
113
|
+
indexName: string;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Properties for the `clearRules` method.
|
|
117
|
+
*/
|
|
118
|
+
export type ClearRulesProps = {
|
|
119
|
+
/**
|
|
120
|
+
* The index in which to perform the request.
|
|
121
|
+
*/
|
|
122
|
+
indexName: string;
|
|
123
|
+
/**
|
|
124
|
+
* When true, changes are also propagated to replicas of the given indexName.
|
|
125
|
+
*/
|
|
126
|
+
forwardToReplicas?: boolean;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Properties for the `del` method.
|
|
130
|
+
*/
|
|
131
|
+
export type DelProps = {
|
|
132
|
+
/**
|
|
133
|
+
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
134
|
+
*/
|
|
135
|
+
path: string;
|
|
136
|
+
/**
|
|
137
|
+
* Query parameters to be applied to the current query.
|
|
138
|
+
*/
|
|
139
|
+
parameters?: Record<string, any>;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Properties for the `deleteApiKey` method.
|
|
143
|
+
*/
|
|
144
|
+
export type DeleteApiKeyProps = {
|
|
145
|
+
/**
|
|
146
|
+
* API Key string.
|
|
147
|
+
*/
|
|
148
|
+
key: string;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Properties for the `deleteBy` method.
|
|
152
|
+
*/
|
|
153
|
+
export type DeleteByProps = {
|
|
154
|
+
/**
|
|
155
|
+
* The index in which to perform the request.
|
|
156
|
+
*/
|
|
157
|
+
indexName: string;
|
|
158
|
+
deleteByParams: DeleteByParams;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Properties for the `deleteIndex` method.
|
|
162
|
+
*/
|
|
163
|
+
export type DeleteIndexProps = {
|
|
164
|
+
/**
|
|
165
|
+
* The index in which to perform the request.
|
|
166
|
+
*/
|
|
167
|
+
indexName: string;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Properties for the `deleteObject` method.
|
|
171
|
+
*/
|
|
172
|
+
export type DeleteObjectProps = {
|
|
173
|
+
/**
|
|
174
|
+
* The index in which to perform the request.
|
|
175
|
+
*/
|
|
176
|
+
indexName: string;
|
|
177
|
+
/**
|
|
178
|
+
* Unique identifier of an object.
|
|
179
|
+
*/
|
|
180
|
+
objectID: string;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Properties for the `deleteRule` method.
|
|
184
|
+
*/
|
|
185
|
+
export type DeleteRuleProps = {
|
|
186
|
+
/**
|
|
187
|
+
* The index in which to perform the request.
|
|
188
|
+
*/
|
|
189
|
+
indexName: string;
|
|
190
|
+
/**
|
|
191
|
+
* Unique identifier of an object.
|
|
192
|
+
*/
|
|
193
|
+
objectID: string;
|
|
194
|
+
/**
|
|
195
|
+
* When true, changes are also propagated to replicas of the given indexName.
|
|
196
|
+
*/
|
|
197
|
+
forwardToReplicas?: boolean;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Properties for the `deleteSource` method.
|
|
201
|
+
*/
|
|
202
|
+
export type DeleteSourceProps = {
|
|
203
|
+
/**
|
|
204
|
+
* The IP range of the source.
|
|
205
|
+
*/
|
|
206
|
+
source: string;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Properties for the `deleteSynonym` method.
|
|
210
|
+
*/
|
|
211
|
+
export type DeleteSynonymProps = {
|
|
212
|
+
/**
|
|
213
|
+
* The index in which to perform the request.
|
|
214
|
+
*/
|
|
215
|
+
indexName: string;
|
|
216
|
+
/**
|
|
217
|
+
* Unique identifier of an object.
|
|
218
|
+
*/
|
|
219
|
+
objectID: string;
|
|
220
|
+
/**
|
|
221
|
+
* When true, changes are also propagated to replicas of the given indexName.
|
|
222
|
+
*/
|
|
223
|
+
forwardToReplicas?: boolean;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Properties for the `get` method.
|
|
227
|
+
*/
|
|
228
|
+
export type GetProps = {
|
|
229
|
+
/**
|
|
230
|
+
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
231
|
+
*/
|
|
232
|
+
path: string;
|
|
233
|
+
/**
|
|
234
|
+
* Query parameters to be applied to the current query.
|
|
235
|
+
*/
|
|
236
|
+
parameters?: Record<string, any>;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Properties for the `getApiKey` method.
|
|
240
|
+
*/
|
|
241
|
+
export type GetApiKeyProps = {
|
|
242
|
+
/**
|
|
243
|
+
* API Key string.
|
|
244
|
+
*/
|
|
245
|
+
key: string;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Properties for the `getLogs` method.
|
|
249
|
+
*/
|
|
250
|
+
export type GetLogsProps = {
|
|
251
|
+
/**
|
|
252
|
+
* First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry.
|
|
253
|
+
*/
|
|
254
|
+
offset?: number;
|
|
255
|
+
/**
|
|
256
|
+
* Maximum number of entries to retrieve. The maximum allowed value is 1000.
|
|
257
|
+
*/
|
|
258
|
+
length?: number;
|
|
259
|
+
/**
|
|
260
|
+
* Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices.
|
|
261
|
+
*/
|
|
262
|
+
indexName?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Type of log entries to retrieve. When omitted, all log entries are retrieved.
|
|
265
|
+
*/
|
|
266
|
+
type?: LogType;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Properties for the `getObject` method.
|
|
270
|
+
*/
|
|
271
|
+
export type GetObjectProps = {
|
|
272
|
+
/**
|
|
273
|
+
* The index in which to perform the request.
|
|
274
|
+
*/
|
|
275
|
+
indexName: string;
|
|
276
|
+
/**
|
|
277
|
+
* Unique identifier of an object.
|
|
278
|
+
*/
|
|
279
|
+
objectID: string;
|
|
280
|
+
/**
|
|
281
|
+
* List of attributes to retrieve. If not specified, all retrievable attributes are returned.
|
|
282
|
+
*/
|
|
283
|
+
attributesToRetrieve?: string[];
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Properties for the `getRule` method.
|
|
287
|
+
*/
|
|
288
|
+
export type GetRuleProps = {
|
|
289
|
+
/**
|
|
290
|
+
* The index in which to perform the request.
|
|
291
|
+
*/
|
|
292
|
+
indexName: string;
|
|
293
|
+
/**
|
|
294
|
+
* Unique identifier of an object.
|
|
295
|
+
*/
|
|
296
|
+
objectID: string;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Properties for the `getSettings` method.
|
|
300
|
+
*/
|
|
301
|
+
export type GetSettingsProps = {
|
|
302
|
+
/**
|
|
303
|
+
* The index in which to perform the request.
|
|
304
|
+
*/
|
|
305
|
+
indexName: string;
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* Properties for the `getSynonym` method.
|
|
309
|
+
*/
|
|
310
|
+
export type GetSynonymProps = {
|
|
311
|
+
/**
|
|
312
|
+
* The index in which to perform the request.
|
|
313
|
+
*/
|
|
314
|
+
indexName: string;
|
|
315
|
+
/**
|
|
316
|
+
* Unique identifier of an object.
|
|
317
|
+
*/
|
|
318
|
+
objectID: string;
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Properties for the `getTask` method.
|
|
322
|
+
*/
|
|
323
|
+
export type GetTaskProps = {
|
|
324
|
+
/**
|
|
325
|
+
* The index in which to perform the request.
|
|
326
|
+
*/
|
|
327
|
+
indexName: string;
|
|
328
|
+
/**
|
|
329
|
+
* Unique identifier of an task. Numeric value (up to 64bits).
|
|
330
|
+
*/
|
|
331
|
+
taskID: number;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Properties for the `getUserId` method.
|
|
335
|
+
*/
|
|
336
|
+
export type GetUserIdProps = {
|
|
337
|
+
/**
|
|
338
|
+
* UserID to assign.
|
|
339
|
+
*/
|
|
340
|
+
userID: string;
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* Properties for the `hasPendingMappings` method.
|
|
344
|
+
*/
|
|
345
|
+
export type HasPendingMappingsProps = {
|
|
346
|
+
/**
|
|
347
|
+
* If the clusters pending mapping state should be on the response.
|
|
348
|
+
*/
|
|
349
|
+
getClusters?: boolean;
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Properties for the `listIndices` method.
|
|
353
|
+
*/
|
|
354
|
+
export type ListIndicesProps = {
|
|
355
|
+
/**
|
|
356
|
+
* Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
|
|
357
|
+
*/
|
|
358
|
+
page?: number;
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Properties for the `listUserIds` method.
|
|
362
|
+
*/
|
|
363
|
+
export type ListUserIdsProps = {
|
|
364
|
+
/**
|
|
365
|
+
* Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
|
|
366
|
+
*/
|
|
367
|
+
page?: number;
|
|
368
|
+
/**
|
|
369
|
+
* Maximum number of objects to retrieve.
|
|
370
|
+
*/
|
|
371
|
+
hitsPerPage?: number;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Properties for the `operationIndex` method.
|
|
375
|
+
*/
|
|
376
|
+
export type OperationIndexProps = {
|
|
377
|
+
/**
|
|
378
|
+
* The index in which to perform the request.
|
|
379
|
+
*/
|
|
380
|
+
indexName: string;
|
|
381
|
+
operationIndexParams: OperationIndexParams;
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* Properties for the `partialUpdateObject` method.
|
|
385
|
+
*/
|
|
386
|
+
export type PartialUpdateObjectProps = {
|
|
387
|
+
/**
|
|
388
|
+
* The index in which to perform the request.
|
|
389
|
+
*/
|
|
390
|
+
indexName: string;
|
|
391
|
+
/**
|
|
392
|
+
* Unique identifier of an object.
|
|
393
|
+
*/
|
|
394
|
+
objectID: string;
|
|
395
|
+
/**
|
|
396
|
+
* Map of attribute(s) to update.
|
|
397
|
+
*/
|
|
398
|
+
attributesToUpdate: Record<string, AttributeToUpdate>;
|
|
399
|
+
/**
|
|
400
|
+
* Creates the record if it does not exist yet.
|
|
401
|
+
*/
|
|
402
|
+
createIfNotExists?: boolean;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Properties for the `post` method.
|
|
406
|
+
*/
|
|
407
|
+
export type PostProps = {
|
|
408
|
+
/**
|
|
409
|
+
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
410
|
+
*/
|
|
411
|
+
path: string;
|
|
412
|
+
/**
|
|
413
|
+
* Query parameters to be applied to the current query.
|
|
414
|
+
*/
|
|
415
|
+
parameters?: Record<string, any>;
|
|
416
|
+
/**
|
|
417
|
+
* The parameters to send with the custom request.
|
|
418
|
+
*/
|
|
419
|
+
body?: Record<string, any>;
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* Properties for the `put` method.
|
|
423
|
+
*/
|
|
424
|
+
export type PutProps = {
|
|
425
|
+
/**
|
|
426
|
+
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
427
|
+
*/
|
|
428
|
+
path: string;
|
|
429
|
+
/**
|
|
430
|
+
* Query parameters to be applied to the current query.
|
|
431
|
+
*/
|
|
432
|
+
parameters?: Record<string, any>;
|
|
433
|
+
/**
|
|
434
|
+
* The parameters to send with the custom request.
|
|
435
|
+
*/
|
|
436
|
+
body?: Record<string, any>;
|
|
437
|
+
};
|
|
438
|
+
/**
|
|
439
|
+
* Properties for the `removeUserId` method.
|
|
440
|
+
*/
|
|
441
|
+
export type RemoveUserIdProps = {
|
|
442
|
+
/**
|
|
443
|
+
* UserID to assign.
|
|
444
|
+
*/
|
|
445
|
+
userID: string;
|
|
446
|
+
};
|
|
447
|
+
/**
|
|
448
|
+
* Properties for the `replaceSources` method.
|
|
449
|
+
*/
|
|
450
|
+
export type ReplaceSourcesProps = {
|
|
451
|
+
/**
|
|
452
|
+
* The sources to allow.
|
|
453
|
+
*/
|
|
454
|
+
source: Source[];
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Properties for the `restoreApiKey` method.
|
|
458
|
+
*/
|
|
459
|
+
export type RestoreApiKeyProps = {
|
|
460
|
+
/**
|
|
461
|
+
* API Key string.
|
|
462
|
+
*/
|
|
463
|
+
key: string;
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* Properties for the `saveObject` method.
|
|
467
|
+
*/
|
|
468
|
+
export type SaveObjectProps = {
|
|
469
|
+
/**
|
|
470
|
+
* The index in which to perform the request.
|
|
471
|
+
*/
|
|
472
|
+
indexName: string;
|
|
473
|
+
/**
|
|
474
|
+
* The Algolia record.
|
|
475
|
+
*/
|
|
476
|
+
body: Record<string, any>;
|
|
477
|
+
};
|
|
478
|
+
/**
|
|
479
|
+
* Properties for the `saveRule` method.
|
|
480
|
+
*/
|
|
481
|
+
export type SaveRuleProps = {
|
|
482
|
+
/**
|
|
483
|
+
* The index in which to perform the request.
|
|
484
|
+
*/
|
|
485
|
+
indexName: string;
|
|
486
|
+
/**
|
|
487
|
+
* Unique identifier of an object.
|
|
488
|
+
*/
|
|
489
|
+
objectID: string;
|
|
490
|
+
rule: Rule;
|
|
491
|
+
/**
|
|
492
|
+
* When true, changes are also propagated to replicas of the given indexName.
|
|
493
|
+
*/
|
|
494
|
+
forwardToReplicas?: boolean;
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* Properties for the `saveRules` method.
|
|
498
|
+
*/
|
|
499
|
+
export type SaveRulesProps = {
|
|
500
|
+
/**
|
|
501
|
+
* The index in which to perform the request.
|
|
502
|
+
*/
|
|
503
|
+
indexName: string;
|
|
504
|
+
rules: Rule[];
|
|
505
|
+
/**
|
|
506
|
+
* When true, changes are also propagated to replicas of the given indexName.
|
|
507
|
+
*/
|
|
508
|
+
forwardToReplicas?: boolean;
|
|
509
|
+
/**
|
|
510
|
+
* When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
|
|
511
|
+
*/
|
|
512
|
+
clearExistingRules?: boolean;
|
|
513
|
+
};
|
|
514
|
+
/**
|
|
515
|
+
* Properties for the `saveSynonym` method.
|
|
516
|
+
*/
|
|
517
|
+
export type SaveSynonymProps = {
|
|
518
|
+
/**
|
|
519
|
+
* The index in which to perform the request.
|
|
520
|
+
*/
|
|
521
|
+
indexName: string;
|
|
522
|
+
/**
|
|
523
|
+
* Unique identifier of an object.
|
|
524
|
+
*/
|
|
525
|
+
objectID: string;
|
|
526
|
+
synonymHit: SynonymHit;
|
|
527
|
+
/**
|
|
528
|
+
* When true, changes are also propagated to replicas of the given indexName.
|
|
529
|
+
*/
|
|
530
|
+
forwardToReplicas?: boolean;
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* Properties for the `saveSynonyms` method.
|
|
534
|
+
*/
|
|
535
|
+
export type SaveSynonymsProps = {
|
|
536
|
+
/**
|
|
537
|
+
* The index in which to perform the request.
|
|
538
|
+
*/
|
|
539
|
+
indexName: string;
|
|
540
|
+
synonymHit: SynonymHit[];
|
|
541
|
+
/**
|
|
542
|
+
* When true, changes are also propagated to replicas of the given indexName.
|
|
543
|
+
*/
|
|
544
|
+
forwardToReplicas?: boolean;
|
|
545
|
+
/**
|
|
546
|
+
* Replace all synonyms of the index with the ones sent with this request.
|
|
547
|
+
*/
|
|
548
|
+
replaceExistingSynonyms?: boolean;
|
|
549
|
+
};
|
|
550
|
+
/**
|
|
551
|
+
* In v4, the search parameters are wrapped in a `params` parameter.
|
|
552
|
+
*
|
|
553
|
+
* @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
|
|
554
|
+
*/
|
|
555
|
+
type LegacySearchParams = {
|
|
556
|
+
params?: SearchParamsObject;
|
|
557
|
+
};
|
|
558
|
+
/**
|
|
559
|
+
* In v4, the search parameters are wrapped in a `params` parameter.
|
|
560
|
+
*
|
|
561
|
+
* @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
|
|
562
|
+
*/
|
|
563
|
+
type LegacySearchForFacets = LegacySearchParams & SearchForFacetsOptions;
|
|
564
|
+
/**
|
|
565
|
+
* In v4, the search parameters are wrapped in a `params` parameter.
|
|
566
|
+
*
|
|
567
|
+
* @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
|
|
568
|
+
*/
|
|
569
|
+
type LegacySearchForHits = LegacySearchParams & SearchForHitsOptions;
|
|
570
|
+
type LegacySearchQuery = LegacySearchForFacets | LegacySearchForHits;
|
|
571
|
+
/**
|
|
572
|
+
* Search method signature compatible with the `algoliasearch` v4 package. When using this signature, extra computation will be required to make it match the new signature.
|
|
573
|
+
*
|
|
574
|
+
* @deprecated This signature will be removed from the next major version, we recommend using the `SearchMethodParams` type for performances and future proof reasons.
|
|
575
|
+
*/
|
|
576
|
+
export type LegacySearchMethodProps = LegacySearchQuery[];
|
|
577
|
+
/**
|
|
578
|
+
* Properties for the `searchDictionaryEntries` method.
|
|
579
|
+
*/
|
|
580
|
+
export type SearchDictionaryEntriesProps = {
|
|
581
|
+
/**
|
|
582
|
+
* The dictionary to search in.
|
|
583
|
+
*/
|
|
584
|
+
dictionaryName: DictionaryType;
|
|
585
|
+
searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* Properties for the `searchForFacetValues` method.
|
|
589
|
+
*/
|
|
590
|
+
export type SearchForFacetValuesProps = {
|
|
591
|
+
/**
|
|
592
|
+
* The index in which to perform the request.
|
|
593
|
+
*/
|
|
594
|
+
indexName: string;
|
|
595
|
+
/**
|
|
596
|
+
* The facet name.
|
|
597
|
+
*/
|
|
598
|
+
facetName: string;
|
|
599
|
+
searchForFacetValuesRequest?: SearchForFacetValuesRequest;
|
|
600
|
+
};
|
|
601
|
+
/**
|
|
602
|
+
* Properties for the `searchRules` method.
|
|
603
|
+
*/
|
|
604
|
+
export type SearchRulesProps = {
|
|
605
|
+
/**
|
|
606
|
+
* The index in which to perform the request.
|
|
607
|
+
*/
|
|
608
|
+
indexName: string;
|
|
609
|
+
searchRulesParams?: SearchRulesParams;
|
|
610
|
+
};
|
|
611
|
+
/**
|
|
612
|
+
* Properties for the `searchSingleIndex` method.
|
|
613
|
+
*/
|
|
614
|
+
export type SearchSingleIndexProps = {
|
|
615
|
+
/**
|
|
616
|
+
* The index in which to perform the request.
|
|
617
|
+
*/
|
|
618
|
+
indexName: string;
|
|
619
|
+
searchParams?: SearchParams;
|
|
620
|
+
};
|
|
621
|
+
/**
|
|
622
|
+
* Properties for the `searchSynonyms` method.
|
|
623
|
+
*/
|
|
624
|
+
export type SearchSynonymsProps = {
|
|
625
|
+
/**
|
|
626
|
+
* The index in which to perform the request.
|
|
627
|
+
*/
|
|
628
|
+
indexName: string;
|
|
629
|
+
/**
|
|
630
|
+
* Only search for specific types of synonyms.
|
|
631
|
+
*/
|
|
632
|
+
type?: SynonymType;
|
|
633
|
+
/**
|
|
634
|
+
* Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
|
|
635
|
+
*/
|
|
636
|
+
page?: number;
|
|
637
|
+
/**
|
|
638
|
+
* Maximum number of objects to retrieve.
|
|
639
|
+
*/
|
|
640
|
+
hitsPerPage?: number;
|
|
641
|
+
/**
|
|
642
|
+
* The body of the the `searchSynonyms` method.
|
|
643
|
+
*/
|
|
644
|
+
searchSynonymsParams?: SearchSynonymsParams;
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* Properties for the `setSettings` method.
|
|
648
|
+
*/
|
|
649
|
+
export type SetSettingsProps = {
|
|
650
|
+
/**
|
|
651
|
+
* The index in which to perform the request.
|
|
652
|
+
*/
|
|
653
|
+
indexName: string;
|
|
654
|
+
indexSettings: IndexSettings;
|
|
655
|
+
/**
|
|
656
|
+
* When true, changes are also propagated to replicas of the given indexName.
|
|
657
|
+
*/
|
|
658
|
+
forwardToReplicas?: boolean;
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* Properties for the `updateApiKey` method.
|
|
662
|
+
*/
|
|
663
|
+
export type UpdateApiKeyProps = {
|
|
664
|
+
/**
|
|
665
|
+
* API Key string.
|
|
666
|
+
*/
|
|
667
|
+
key: string;
|
|
668
|
+
apiKey: ApiKey;
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* The `browseObjects`, `browseRules`, `browseSynonyms` options.
|
|
672
|
+
*/
|
|
673
|
+
export type BrowseOptions<T> = Partial<Pick<CreateIterablePromise<T>, 'validate'>> & Required<Pick<CreateIterablePromise<T>, 'aggregator'>>;
|
|
674
|
+
type WaitForOptions = Partial<{
|
|
675
|
+
/**
|
|
676
|
+
* The maximum number of retries. 50 by default.
|
|
677
|
+
*/
|
|
678
|
+
maxRetries: number;
|
|
679
|
+
/**
|
|
680
|
+
* The function to decide how long to wait between retries.
|
|
681
|
+
*/
|
|
682
|
+
timeout: (retryCount: number) => number;
|
|
683
|
+
}>;
|
|
684
|
+
export type WaitForTaskOptions = WaitForOptions & {
|
|
685
|
+
/**
|
|
686
|
+
* The `indexName` where the operation was performed.
|
|
687
|
+
*/
|
|
688
|
+
indexName: string;
|
|
689
|
+
/**
|
|
690
|
+
* The `taskID` returned by the method response.
|
|
691
|
+
*/
|
|
692
|
+
taskID: number;
|
|
693
|
+
};
|
|
694
|
+
export type WaitForApiKeyOptions = WaitForOptions & {
|
|
695
|
+
/**
|
|
696
|
+
* The API Key.
|
|
697
|
+
*/
|
|
698
|
+
key: string;
|
|
699
|
+
} & ({
|
|
700
|
+
/**
|
|
701
|
+
* The operation that has been performed, used to compute the stop condition.
|
|
702
|
+
*/
|
|
703
|
+
operation: 'add' | 'delete';
|
|
704
|
+
apiKey?: never;
|
|
705
|
+
} | {
|
|
706
|
+
/**
|
|
707
|
+
* The operation that has been performed, used to compute the stop condition.
|
|
708
|
+
*/
|
|
709
|
+
operation: 'update';
|
|
710
|
+
/**
|
|
711
|
+
* The updated fields, used to compute the stop condition.
|
|
712
|
+
*/
|
|
713
|
+
apiKey: Partial<ApiKey>;
|
|
714
|
+
});
|
|
715
|
+
export {};
|
|
716
716
|
//# sourceMappingURL=clientMethodProps.d.ts.map
|