algoliasearch 5.0.0-alpha.52 → 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,724 +1,724 @@
|
|
|
1
|
-
import type { CreateClientOptions, RequestOptions, ApiError } from '@algolia/client-common';
|
|
2
|
-
import type { AddApiKeyResponse } from '../model/addApiKeyResponse';
|
|
3
|
-
import type { ApiKey } from '../model/apiKey';
|
|
4
|
-
import type { BatchParams } from '../model/batchParams';
|
|
5
|
-
import type { BatchResponse } from '../model/batchResponse';
|
|
6
|
-
import type { BrowseResponse } from '../model/browseResponse';
|
|
7
|
-
import type { BrowseOptions, WaitForTaskOptions, WaitForApiKeyOptions, AddOrUpdateObjectProps, AssignUserIdProps, BatchProps, BatchAssignUserIdsProps, BatchDictionaryEntriesProps, BrowseProps, ClearAllSynonymsProps, ClearObjectsProps, ClearRulesProps, DelProps, DeleteApiKeyProps, DeleteByProps, DeleteIndexProps, DeleteObjectProps, DeleteRuleProps, DeleteSourceProps, DeleteSynonymProps, GetProps, GetApiKeyProps, GetLogsProps, GetObjectProps, GetRuleProps, GetSettingsProps, GetSynonymProps, GetTaskProps, GetUserIdProps, HasPendingMappingsProps, ListIndicesProps, ListUserIdsProps, OperationIndexProps, PartialUpdateObjectProps, PostProps, PutProps, RemoveUserIdProps, ReplaceSourcesProps, RestoreApiKeyProps, SaveObjectProps, SaveRuleProps, SaveRulesProps, SaveSynonymProps, SaveSynonymsProps, LegacySearchMethodProps, SearchDictionaryEntriesProps, SearchForFacetValuesProps, SearchRulesProps, SearchSingleIndexProps, SearchSynonymsProps, SetSettingsProps, UpdateApiKeyProps } from '../model/clientMethodProps';
|
|
8
|
-
import type { CreatedAtResponse } from '../model/createdAtResponse';
|
|
9
|
-
import type { DeleteApiKeyResponse } from '../model/deleteApiKeyResponse';
|
|
10
|
-
import type { DeleteSourceResponse } from '../model/deleteSourceResponse';
|
|
11
|
-
import type { DeletedAtResponse } from '../model/deletedAtResponse';
|
|
12
|
-
import type { DictionarySettingsParams } from '../model/dictionarySettingsParams';
|
|
13
|
-
import type { GetApiKeyResponse } from '../model/getApiKeyResponse';
|
|
14
|
-
import type { GetDictionarySettingsResponse } from '../model/getDictionarySettingsResponse';
|
|
15
|
-
import type { GetLogsResponse } from '../model/getLogsResponse';
|
|
16
|
-
import type { GetObjectsParams } from '../model/getObjectsParams';
|
|
17
|
-
import type { GetObjectsResponse } from '../model/getObjectsResponse';
|
|
18
|
-
import type { GetTaskResponse } from '../model/getTaskResponse';
|
|
19
|
-
import type { GetTopUserIdsResponse } from '../model/getTopUserIdsResponse';
|
|
20
|
-
import type { HasPendingMappingsResponse } from '../model/hasPendingMappingsResponse';
|
|
21
|
-
import type { IndexSettings } from '../model/indexSettings';
|
|
22
|
-
import type { Languages } from '../model/languages';
|
|
23
|
-
import type { ListApiKeysResponse } from '../model/listApiKeysResponse';
|
|
24
|
-
import type { ListClustersResponse } from '../model/listClustersResponse';
|
|
25
|
-
import type { ListIndicesResponse } from '../model/listIndicesResponse';
|
|
26
|
-
import type { ListUserIdsResponse } from '../model/listUserIdsResponse';
|
|
27
|
-
import type { MultipleBatchResponse } from '../model/multipleBatchResponse';
|
|
28
|
-
import type { RemoveUserIdResponse } from '../model/removeUserIdResponse';
|
|
29
|
-
import type { ReplaceSourceResponse } from '../model/replaceSourceResponse';
|
|
30
|
-
import type { Rule } from '../model/rule';
|
|
31
|
-
import type { SaveObjectResponse } from '../model/saveObjectResponse';
|
|
32
|
-
import type { SaveSynonymResponse } from '../model/saveSynonymResponse';
|
|
33
|
-
import type { SearchForFacetValuesResponse } from '../model/searchForFacetValuesResponse';
|
|
34
|
-
import type { SearchMethodParams } from '../model/searchMethodParams';
|
|
35
|
-
import type { SearchResponse } from '../model/searchResponse';
|
|
36
|
-
import type { SearchResponses } from '../model/searchResponses';
|
|
37
|
-
import type { SearchRulesResponse } from '../model/searchRulesResponse';
|
|
38
|
-
import type { SearchSynonymsResponse } from '../model/searchSynonymsResponse';
|
|
39
|
-
import type { SearchUserIdsParams } from '../model/searchUserIdsParams';
|
|
40
|
-
import type { SearchUserIdsResponse } from '../model/searchUserIdsResponse';
|
|
41
|
-
import type { Source } from '../model/source';
|
|
42
|
-
import type { SynonymHit } from '../model/synonymHit';
|
|
43
|
-
import type { UpdateApiKeyResponse } from '../model/updateApiKeyResponse';
|
|
44
|
-
import type { UpdatedAtResponse } from '../model/updatedAtResponse';
|
|
45
|
-
import type { UpdatedAtWithObjectIdResponse } from '../model/updatedAtWithObjectIdResponse';
|
|
46
|
-
import type { UpdatedRuleResponse } from '../model/updatedRuleResponse';
|
|
47
|
-
import type { UserId } from '../model/userId';
|
|
48
|
-
export declare const apiClientVersion = "5.0.0-alpha.
|
|
49
|
-
export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
50
|
-
transporter: import("@algolia/client-common").Transporter;
|
|
51
|
-
/**
|
|
52
|
-
* The `appId` currently in use.
|
|
53
|
-
*/
|
|
54
|
-
appId: string;
|
|
55
|
-
/**
|
|
56
|
-
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
57
|
-
*/
|
|
58
|
-
clearCache(): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
61
|
-
*/
|
|
62
|
-
readonly _ua: string;
|
|
63
|
-
/**
|
|
64
|
-
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
65
|
-
*
|
|
66
|
-
* @param segment - The algolia agent (user-agent) segment to add.
|
|
67
|
-
* @param version - The version of the agent.
|
|
68
|
-
*/
|
|
69
|
-
addAlgoliaAgent(segment: string, version?: string): void;
|
|
70
|
-
/**
|
|
71
|
-
* Helper: Wait for a task to be published (completed) for a given `indexName` and `taskID`.
|
|
72
|
-
*
|
|
73
|
-
* @summary Helper method that waits for a task to be published (completed).
|
|
74
|
-
* @param waitForTaskOptions - The waitForTaskOptions object.
|
|
75
|
-
* @param waitForTaskOptions.indexName - The `indexName` where the operation was performed.
|
|
76
|
-
* @param waitForTaskOptions.taskID - The `taskID` returned in the method response.
|
|
77
|
-
* @param waitForTaskOptions.maxRetries - The maximum number of retries. 50 by default.
|
|
78
|
-
* @param waitForTaskOptions.timeout - The function to decide how long to wait between retries.
|
|
79
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
|
|
80
|
-
*/
|
|
81
|
-
waitForTask({ indexName, taskID, maxRetries, timeout, }: WaitForTaskOptions, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
|
|
82
|
-
/**
|
|
83
|
-
* Helper: Wait for an API key to be added, updated or deleted based on a given `operation`.
|
|
84
|
-
*
|
|
85
|
-
* @summary Helper method that waits for an API key task to be processed.
|
|
86
|
-
* @param waitForApiKeyOptions - The waitForApiKeyOptions object.
|
|
87
|
-
* @param waitForApiKeyOptions.operation - The `operation` that was done on a `key`.
|
|
88
|
-
* @param waitForApiKeyOptions.key - The `key` that has been added, deleted or updated.
|
|
89
|
-
* @param waitForApiKeyOptions.apiKey - Necessary to know if an `update` operation has been processed, compare fields of the response with it.
|
|
90
|
-
* @param waitForApiKeyOptions.maxRetries - The maximum number of retries. 50 by default.
|
|
91
|
-
* @param waitForApiKeyOptions.timeout - The function to decide how long to wait between retries.
|
|
92
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getApikey` method and merged with the transporter requestOptions.
|
|
93
|
-
*/
|
|
94
|
-
waitForApiKey({ operation, key, apiKey, maxRetries, timeout, }: WaitForApiKeyOptions, requestOptions?: RequestOptions): Promise<ApiError | GetApiKeyResponse>;
|
|
95
|
-
/**
|
|
96
|
-
* Helper: Iterate on the `browse` method of the client to allow aggregating objects of an index.
|
|
97
|
-
*
|
|
98
|
-
* @summary Helper method that iterates on the `browse` method.
|
|
99
|
-
* @param browseObjects - The browseObjects object.
|
|
100
|
-
* @param browseObjects.indexName - The index in which to perform the request.
|
|
101
|
-
* @param browseObjects.browseParams - The `browse` parameters.
|
|
102
|
-
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is no `cursor` in the response.
|
|
103
|
-
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
104
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `browse` method and merged with the transporter requestOptions.
|
|
105
|
-
*/
|
|
106
|
-
browseObjects<T>({ indexName, browseParams, ...browseObjectsOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<BrowseResponse<T>>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<BrowseResponse<T>>, "aggregator">> & BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T>>;
|
|
107
|
-
/**
|
|
108
|
-
* Helper: Iterate on the `searchRules` method of the client to allow aggregating rules of an index.
|
|
109
|
-
*
|
|
110
|
-
* @summary Helper method that iterates on the `searchRules` method.
|
|
111
|
-
* @param browseObjects - The browseObjects object.
|
|
112
|
-
* @param browseObjects.indexName - The index in which to perform the request.
|
|
113
|
-
* @param browseObjects.searchRulesParams - The `searchRules` method parameters.
|
|
114
|
-
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
|
|
115
|
-
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
116
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchRules` method and merged with the transporter requestOptions.
|
|
117
|
-
*/
|
|
118
|
-
browseRules({ indexName, searchRulesParams, ...browseRulesOptions }: BrowseOptions<SearchRulesResponse> & SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
|
|
119
|
-
/**
|
|
120
|
-
* Helper: Iterate on the `searchSynonyms` method of the client to allow aggregating rules of an index.
|
|
121
|
-
*
|
|
122
|
-
* @summary Helper method that iterates on the `searchSynonyms` method.
|
|
123
|
-
* @param browseObjects - The browseObjects object.
|
|
124
|
-
* @param browseObjects.indexName - The index in which to perform the request.
|
|
125
|
-
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
|
|
126
|
-
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
127
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchSynonyms` method and merged with the transporter requestOptions.
|
|
128
|
-
*/
|
|
129
|
-
browseSynonyms({ indexName, validate, aggregator, ...browseSynonymsOptions }: BrowseOptions<SearchSynonymsResponse> & SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
|
|
130
|
-
/**
|
|
131
|
-
* Add a new API Key with specific permissions/restrictions.
|
|
132
|
-
*
|
|
133
|
-
* @summary Create an API key.
|
|
134
|
-
* @param apiKey - The apiKey object.
|
|
135
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
136
|
-
*/
|
|
137
|
-
addApiKey(apiKey: ApiKey, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
|
|
138
|
-
/**
|
|
139
|
-
* Add or replace an object with a given object ID. If the object does not exist, it will be created. If it already exists, it will be replaced.
|
|
140
|
-
*
|
|
141
|
-
* @summary Add or replace an object.
|
|
142
|
-
* @param addOrUpdateObject - The addOrUpdateObject object.
|
|
143
|
-
* @param addOrUpdateObject.indexName - The index in which to perform the request.
|
|
144
|
-
* @param addOrUpdateObject.objectID - Unique identifier of an object.
|
|
145
|
-
* @param addOrUpdateObject.body - The Algolia object.
|
|
146
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
147
|
-
*/
|
|
148
|
-
addOrUpdateObject({ indexName, objectID, body }: AddOrUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
|
|
149
|
-
/**
|
|
150
|
-
* Add a single source to the list of allowed sources.
|
|
151
|
-
*
|
|
152
|
-
* @summary Add a single source.
|
|
153
|
-
* @param source - The source to add.
|
|
154
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
155
|
-
*/
|
|
156
|
-
appendSource(source: Source, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
157
|
-
/**
|
|
158
|
-
* Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable.
|
|
159
|
-
*
|
|
160
|
-
* @summary Assign or Move userID.
|
|
161
|
-
* @param assignUserId - The assignUserId object.
|
|
162
|
-
* @param assignUserId.xAlgoliaUserID - UserID to assign.
|
|
163
|
-
* @param assignUserId.assignUserIdParams - The assignUserIdParams object.
|
|
164
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
165
|
-
*/
|
|
166
|
-
assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
167
|
-
/**
|
|
168
|
-
* Perform multiple write operations targeting one index, in a single API call.
|
|
169
|
-
*
|
|
170
|
-
* @summary Batch operations to one index.
|
|
171
|
-
* @param batch - The batch object.
|
|
172
|
-
* @param batch.indexName - The index in which to perform the request.
|
|
173
|
-
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
174
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
175
|
-
*/
|
|
176
|
-
batch({ indexName, batchWriteParams }: BatchProps, requestOptions?: RequestOptions): Promise<BatchResponse>;
|
|
177
|
-
/**
|
|
178
|
-
* Assign multiple userIDs to a cluster. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable.
|
|
179
|
-
*
|
|
180
|
-
* @summary Batch assign userIDs.
|
|
181
|
-
* @param batchAssignUserIds - The batchAssignUserIds object.
|
|
182
|
-
* @param batchAssignUserIds.xAlgoliaUserID - UserID to assign.
|
|
183
|
-
* @param batchAssignUserIds.batchAssignUserIdsParams - The batchAssignUserIdsParams object.
|
|
184
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
185
|
-
*/
|
|
186
|
-
batchAssignUserIds({ xAlgoliaUserID, batchAssignUserIdsParams }: BatchAssignUserIdsProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
187
|
-
/**
|
|
188
|
-
* Send a batch of dictionary entries.
|
|
189
|
-
*
|
|
190
|
-
* @summary Batch dictionary entries.
|
|
191
|
-
* @param batchDictionaryEntries - The batchDictionaryEntries object.
|
|
192
|
-
* @param batchDictionaryEntries.dictionaryName - The dictionary to search in.
|
|
193
|
-
* @param batchDictionaryEntries.batchDictionaryEntriesParams - The batchDictionaryEntriesParams object.
|
|
194
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
195
|
-
*/
|
|
196
|
-
batchDictionaryEntries({ dictionaryName, batchDictionaryEntriesParams, }: BatchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
197
|
-
/**
|
|
198
|
-
* This method allows you to retrieve all index content. It can retrieve up to 1,000 records per call and supports full text search and filters. For performance reasons, some features are not supported, including `distinct`, sorting by `typos`, `words` or `geo distance`. When there is more content to be browsed, the response contains a cursor field. This cursor has to be passed to the subsequent call to browse in order to get the next page of results. When the end of the index has been reached, the cursor field is absent from the response.
|
|
199
|
-
*
|
|
200
|
-
* @summary Retrieve all index content.
|
|
201
|
-
* @param browse - The browse object.
|
|
202
|
-
* @param browse.indexName - The index in which to perform the request.
|
|
203
|
-
* @param browse.browseParams - The browseParams object.
|
|
204
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
205
|
-
*/
|
|
206
|
-
browse<T_1>({ indexName, browseParams }: BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T_1>>;
|
|
207
|
-
/**
|
|
208
|
-
* Remove all synonyms from an index.
|
|
209
|
-
*
|
|
210
|
-
* @summary Clear all synonyms.
|
|
211
|
-
* @param clearAllSynonyms - The clearAllSynonyms object.
|
|
212
|
-
* @param clearAllSynonyms.indexName - The index in which to perform the request.
|
|
213
|
-
* @param clearAllSynonyms.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
214
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
215
|
-
*/
|
|
216
|
-
clearAllSynonyms({ indexName, forwardToReplicas }: ClearAllSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
217
|
-
/**
|
|
218
|
-
* Delete an index\'s content, but leave settings and index-specific API keys untouched.
|
|
219
|
-
*
|
|
220
|
-
* @summary Clear all objects from an index.
|
|
221
|
-
* @param clearObjects - The clearObjects object.
|
|
222
|
-
* @param clearObjects.indexName - The index in which to perform the request.
|
|
223
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
224
|
-
*/
|
|
225
|
-
clearObjects({ indexName }: ClearObjectsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
226
|
-
/**
|
|
227
|
-
* Delete all Rules in the index.
|
|
228
|
-
*
|
|
229
|
-
* @summary Clear Rules.
|
|
230
|
-
* @param clearRules - The clearRules object.
|
|
231
|
-
* @param clearRules.indexName - The index in which to perform the request.
|
|
232
|
-
* @param clearRules.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
233
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
234
|
-
*/
|
|
235
|
-
clearRules({ indexName, forwardToReplicas }: ClearRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
236
|
-
/**
|
|
237
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
238
|
-
*
|
|
239
|
-
* @summary Send requests to the Algolia REST API.
|
|
240
|
-
* @param del - The del object.
|
|
241
|
-
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
242
|
-
* @param del.parameters - Query parameters to be applied to the current query.
|
|
243
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
244
|
-
*/
|
|
245
|
-
del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
246
|
-
/**
|
|
247
|
-
* Delete an existing API Key.
|
|
248
|
-
*
|
|
249
|
-
* @summary Delete an API key.
|
|
250
|
-
* @param deleteApiKey - The deleteApiKey object.
|
|
251
|
-
* @param deleteApiKey.key - API Key string.
|
|
252
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
253
|
-
*/
|
|
254
|
-
deleteApiKey({ key }: DeleteApiKeyProps, requestOptions?: RequestOptions): Promise<DeleteApiKeyResponse>;
|
|
255
|
-
/**
|
|
256
|
-
* Remove all objects matching a filter (including geo filters). This method enables you to delete one or more objects based on filters (numeric, facet, tag or geo queries). It doesn\'t accept empty filters or a query.
|
|
257
|
-
*
|
|
258
|
-
* @summary Delete all records matching the query.
|
|
259
|
-
* @param deleteBy - The deleteBy object.
|
|
260
|
-
* @param deleteBy.indexName - The index in which to perform the request.
|
|
261
|
-
* @param deleteBy.deleteByParams - The deleteByParams object.
|
|
262
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
263
|
-
*/
|
|
264
|
-
deleteBy({ indexName, deleteByParams }: DeleteByProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
265
|
-
/**
|
|
266
|
-
* Delete an existing index.
|
|
267
|
-
*
|
|
268
|
-
* @summary Delete index.
|
|
269
|
-
* @param deleteIndex - The deleteIndex object.
|
|
270
|
-
* @param deleteIndex.indexName - The index in which to perform the request.
|
|
271
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
272
|
-
*/
|
|
273
|
-
deleteIndex({ indexName }: DeleteIndexProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
274
|
-
/**
|
|
275
|
-
* Delete an existing object.
|
|
276
|
-
*
|
|
277
|
-
* @summary Delete an object.
|
|
278
|
-
* @param deleteObject - The deleteObject object.
|
|
279
|
-
* @param deleteObject.indexName - The index in which to perform the request.
|
|
280
|
-
* @param deleteObject.objectID - Unique identifier of an object.
|
|
281
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
282
|
-
*/
|
|
283
|
-
deleteObject({ indexName, objectID }: DeleteObjectProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
284
|
-
/**
|
|
285
|
-
* Delete the Rule with the specified objectID.
|
|
286
|
-
*
|
|
287
|
-
* @summary Delete a rule.
|
|
288
|
-
* @param deleteRule - The deleteRule object.
|
|
289
|
-
* @param deleteRule.indexName - The index in which to perform the request.
|
|
290
|
-
* @param deleteRule.objectID - Unique identifier of an object.
|
|
291
|
-
* @param deleteRule.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
292
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
293
|
-
*/
|
|
294
|
-
deleteRule({ indexName, objectID, forwardToReplicas }: DeleteRuleProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
295
|
-
/**
|
|
296
|
-
* Remove a single source from the list of allowed sources.
|
|
297
|
-
*
|
|
298
|
-
* @summary Remove a single source.
|
|
299
|
-
* @param deleteSource - The deleteSource object.
|
|
300
|
-
* @param deleteSource.source - The IP range of the source.
|
|
301
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
302
|
-
*/
|
|
303
|
-
deleteSource({ source }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteSourceResponse>;
|
|
304
|
-
/**
|
|
305
|
-
* Delete a single synonyms set, identified by the given objectID.
|
|
306
|
-
*
|
|
307
|
-
* @summary Delete synonym.
|
|
308
|
-
* @param deleteSynonym - The deleteSynonym object.
|
|
309
|
-
* @param deleteSynonym.indexName - The index in which to perform the request.
|
|
310
|
-
* @param deleteSynonym.objectID - Unique identifier of an object.
|
|
311
|
-
* @param deleteSynonym.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
312
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
313
|
-
*/
|
|
314
|
-
deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
315
|
-
/**
|
|
316
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
317
|
-
*
|
|
318
|
-
* @summary Send requests to the Algolia REST API.
|
|
319
|
-
* @param get - The get object.
|
|
320
|
-
* @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
321
|
-
* @param get.parameters - Query parameters to be applied to the current query.
|
|
322
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
323
|
-
*/
|
|
324
|
-
get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
325
|
-
/**
|
|
326
|
-
* Get the permissions of an API key.
|
|
327
|
-
*
|
|
328
|
-
* @summary Get an API key.
|
|
329
|
-
* @param getApiKey - The getApiKey object.
|
|
330
|
-
* @param getApiKey.key - API Key string.
|
|
331
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
332
|
-
*/
|
|
333
|
-
getApiKey({ key }: GetApiKeyProps, requestOptions?: RequestOptions): Promise<GetApiKeyResponse>;
|
|
334
|
-
/**
|
|
335
|
-
* List dictionaries supported per language.
|
|
336
|
-
*
|
|
337
|
-
* @summary List available languages.
|
|
338
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
339
|
-
*/
|
|
340
|
-
getDictionaryLanguages(requestOptions?: RequestOptions): Promise<Record<string, Languages>>;
|
|
341
|
-
/**
|
|
342
|
-
* Retrieve dictionaries settings. The API stores languages whose standard entries are disabled. Fetch settings does not return false values.
|
|
343
|
-
*
|
|
344
|
-
* @summary Retrieve dictionaries settings.
|
|
345
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
346
|
-
*/
|
|
347
|
-
getDictionarySettings(requestOptions?: RequestOptions): Promise<GetDictionarySettingsResponse>;
|
|
348
|
-
/**
|
|
349
|
-
* Return the latest log entries.
|
|
350
|
-
*
|
|
351
|
-
* @summary Return the latest log entries.
|
|
352
|
-
* @param getLogs - The getLogs object.
|
|
353
|
-
* @param getLogs.offset - First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry.
|
|
354
|
-
* @param getLogs.length - Maximum number of entries to retrieve. The maximum allowed value is 1000.
|
|
355
|
-
* @param getLogs.indexName - Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices.
|
|
356
|
-
* @param getLogs.type - Type of log entries to retrieve. When omitted, all log entries are retrieved.
|
|
357
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
358
|
-
*/
|
|
359
|
-
getLogs({ offset, length, indexName, type }?: GetLogsProps, requestOptions?: RequestOptions | undefined): Promise<GetLogsResponse>;
|
|
360
|
-
/**
|
|
361
|
-
* Retrieve one object from the index.
|
|
362
|
-
*
|
|
363
|
-
* @summary Retrieve an object.
|
|
364
|
-
* @param getObject - The getObject object.
|
|
365
|
-
* @param getObject.indexName - The index in which to perform the request.
|
|
366
|
-
* @param getObject.objectID - Unique identifier of an object.
|
|
367
|
-
* @param getObject.attributesToRetrieve - List of attributes to retrieve. If not specified, all retrievable attributes are returned.
|
|
368
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
369
|
-
*/
|
|
370
|
-
getObject({ indexName, objectID, attributesToRetrieve }: GetObjectProps, requestOptions?: RequestOptions): Promise<Record<string, string>>;
|
|
371
|
-
/**
|
|
372
|
-
* Retrieve one or more objects, potentially from different indices, in a single API call.
|
|
373
|
-
*
|
|
374
|
-
* @summary Retrieve one or more objects.
|
|
375
|
-
* @param getObjectsParams - The Algolia object.
|
|
376
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
377
|
-
*/
|
|
378
|
-
getObjects<T_2>(getObjectsParams: GetObjectsParams, requestOptions?: RequestOptions): Promise<GetObjectsResponse<T_2>>;
|
|
379
|
-
/**
|
|
380
|
-
* Retrieve the Rule with the specified objectID.
|
|
381
|
-
*
|
|
382
|
-
* @summary Get a rule.
|
|
383
|
-
* @param getRule - The getRule object.
|
|
384
|
-
* @param getRule.indexName - The index in which to perform the request.
|
|
385
|
-
* @param getRule.objectID - Unique identifier of an object.
|
|
386
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
387
|
-
*/
|
|
388
|
-
getRule({ indexName, objectID }: GetRuleProps, requestOptions?: RequestOptions): Promise<Rule>;
|
|
389
|
-
/**
|
|
390
|
-
* Retrieve settings of an index.
|
|
391
|
-
*
|
|
392
|
-
* @summary Retrieve settings of an index.
|
|
393
|
-
* @param getSettings - The getSettings object.
|
|
394
|
-
* @param getSettings.indexName - The index in which to perform the request.
|
|
395
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
396
|
-
*/
|
|
397
|
-
getSettings({ indexName }: GetSettingsProps, requestOptions?: RequestOptions): Promise<IndexSettings>;
|
|
398
|
-
/**
|
|
399
|
-
* List all allowed sources.
|
|
400
|
-
*
|
|
401
|
-
* @summary List all allowed sources.
|
|
402
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
403
|
-
*/
|
|
404
|
-
getSources(requestOptions?: RequestOptions): Promise<Source[]>;
|
|
405
|
-
/**
|
|
406
|
-
* Fetch a synonym object identified by its objectID.
|
|
407
|
-
*
|
|
408
|
-
* @summary Get synonym.
|
|
409
|
-
* @param getSynonym - The getSynonym object.
|
|
410
|
-
* @param getSynonym.indexName - The index in which to perform the request.
|
|
411
|
-
* @param getSynonym.objectID - Unique identifier of an object.
|
|
412
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
413
|
-
*/
|
|
414
|
-
getSynonym({ indexName, objectID }: GetSynonymProps, requestOptions?: RequestOptions): Promise<SynonymHit>;
|
|
415
|
-
/**
|
|
416
|
-
* Check the current status of a given task.
|
|
417
|
-
*
|
|
418
|
-
* @summary Check the status of a task.
|
|
419
|
-
* @param getTask - The getTask object.
|
|
420
|
-
* @param getTask.indexName - The index in which to perform the request.
|
|
421
|
-
* @param getTask.taskID - Unique identifier of an task. Numeric value (up to 64bits).
|
|
422
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
423
|
-
*/
|
|
424
|
-
getTask({ indexName, taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
|
|
425
|
-
/**
|
|
426
|
-
* Get the top 10 userIDs with the highest number of records per cluster. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following array of userIDs and clusters.
|
|
427
|
-
*
|
|
428
|
-
* @summary Get top userID.
|
|
429
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
430
|
-
*/
|
|
431
|
-
getTopUserIds(requestOptions?: RequestOptions): Promise<GetTopUserIdsResponse>;
|
|
432
|
-
/**
|
|
433
|
-
* Returns the userID data stored in the mapping. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userID data.
|
|
434
|
-
*
|
|
435
|
-
* @summary Get userID.
|
|
436
|
-
* @param getUserId - The getUserId object.
|
|
437
|
-
* @param getUserId.userID - UserID to assign.
|
|
438
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
439
|
-
*/
|
|
440
|
-
getUserId({ userID }: GetUserIdProps, requestOptions?: RequestOptions): Promise<UserId>;
|
|
441
|
-
/**
|
|
442
|
-
* Get the status of your clusters\' migrations or user creations. Creating a large batch of users or migrating your multi-cluster may take quite some time. This method lets you retrieve the status of the migration, so you can know when it\'s done. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable.
|
|
443
|
-
*
|
|
444
|
-
* @summary Get migration status.
|
|
445
|
-
* @param hasPendingMappings - The hasPendingMappings object.
|
|
446
|
-
* @param hasPendingMappings.getClusters - If the clusters pending mapping state should be on the response.
|
|
447
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
448
|
-
*/
|
|
449
|
-
hasPendingMappings({ getClusters }?: HasPendingMappingsProps, requestOptions?: RequestOptions | undefined): Promise<HasPendingMappingsResponse>;
|
|
450
|
-
/**
|
|
451
|
-
* List API keys, along with their associated rights.
|
|
452
|
-
*
|
|
453
|
-
* @summary List API Keys.
|
|
454
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
455
|
-
*/
|
|
456
|
-
listApiKeys(requestOptions?: RequestOptions): Promise<ListApiKeysResponse>;
|
|
457
|
-
/**
|
|
458
|
-
* List the clusters available in a multi-clusters setup for a single appID. Upon success, the response is 200 OK and contains the following clusters.
|
|
459
|
-
*
|
|
460
|
-
* @summary List clusters.
|
|
461
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
462
|
-
*/
|
|
463
|
-
listClusters(requestOptions?: RequestOptions): Promise<ListClustersResponse>;
|
|
464
|
-
/**
|
|
465
|
-
* List existing indexes from an application.
|
|
466
|
-
*
|
|
467
|
-
* @summary List existing indexes.
|
|
468
|
-
* @param listIndices - The listIndices object.
|
|
469
|
-
* @param listIndices.page - 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).
|
|
470
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
471
|
-
*/
|
|
472
|
-
listIndices({ page }?: ListIndicesProps, requestOptions?: RequestOptions | undefined): Promise<ListIndicesResponse>;
|
|
473
|
-
/**
|
|
474
|
-
* List the userIDs assigned to a multi-clusters appID. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userIDs data.
|
|
475
|
-
*
|
|
476
|
-
* @summary List userIDs.
|
|
477
|
-
* @param listUserIds - The listUserIds object.
|
|
478
|
-
* @param listUserIds.page - 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).
|
|
479
|
-
* @param listUserIds.hitsPerPage - Maximum number of objects to retrieve.
|
|
480
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
481
|
-
*/
|
|
482
|
-
listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
|
|
483
|
-
/**
|
|
484
|
-
* Perform multiple write operations, potentially targeting multiple indices, in a single API call.
|
|
485
|
-
*
|
|
486
|
-
* @summary Batch operations to many indices.
|
|
487
|
-
* @param batchParams - The batchParams object.
|
|
488
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
489
|
-
*/
|
|
490
|
-
multipleBatch(batchParams: BatchParams, requestOptions?: RequestOptions): Promise<MultipleBatchResponse>;
|
|
491
|
-
/**
|
|
492
|
-
* Performs a copy or a move operation on a index.
|
|
493
|
-
*
|
|
494
|
-
* @summary Copy/move index.
|
|
495
|
-
* @param operationIndex - The operationIndex object.
|
|
496
|
-
* @param operationIndex.indexName - The index in which to perform the request.
|
|
497
|
-
* @param operationIndex.operationIndexParams - The operationIndexParams object.
|
|
498
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
499
|
-
*/
|
|
500
|
-
operationIndex({ indexName, operationIndexParams }: OperationIndexProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
501
|
-
/**
|
|
502
|
-
* Update one or more attributes of an existing object. This method lets you update only a part of an existing object, either by adding new attributes or updating existing ones. You can partially update several objects in a single method call. If the index targeted by this operation doesn\'t exist yet, it\'s automatically created.
|
|
503
|
-
*
|
|
504
|
-
* @summary Partially update an object.
|
|
505
|
-
* @param partialUpdateObject - The partialUpdateObject object.
|
|
506
|
-
* @param partialUpdateObject.indexName - The index in which to perform the request.
|
|
507
|
-
* @param partialUpdateObject.objectID - Unique identifier of an object.
|
|
508
|
-
* @param partialUpdateObject.attributesToUpdate - Map of attribute(s) to update.
|
|
509
|
-
* @param partialUpdateObject.createIfNotExists - Creates the record if it does not exist yet.
|
|
510
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
511
|
-
*/
|
|
512
|
-
partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }: PartialUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
|
|
513
|
-
/**
|
|
514
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
515
|
-
*
|
|
516
|
-
* @summary Send requests to the Algolia REST API.
|
|
517
|
-
* @param post - The post object.
|
|
518
|
-
* @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
519
|
-
* @param post.parameters - Query parameters to be applied to the current query.
|
|
520
|
-
* @param post.body - The parameters to send with the custom request.
|
|
521
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
522
|
-
*/
|
|
523
|
-
post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
524
|
-
/**
|
|
525
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
526
|
-
*
|
|
527
|
-
* @summary Send requests to the Algolia REST API.
|
|
528
|
-
* @param put - The put object.
|
|
529
|
-
* @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
530
|
-
* @param put.parameters - Query parameters to be applied to the current query.
|
|
531
|
-
* @param put.body - The parameters to send with the custom request.
|
|
532
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
533
|
-
*/
|
|
534
|
-
put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
535
|
-
/**
|
|
536
|
-
* Remove a userID and its associated data from the multi-clusters. Upon success, the response is 200 OK and a task is created to remove the userID data and mapping.
|
|
537
|
-
*
|
|
538
|
-
* @summary Remove userID.
|
|
539
|
-
* @param removeUserId - The removeUserId object.
|
|
540
|
-
* @param removeUserId.userID - UserID to assign.
|
|
541
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
542
|
-
*/
|
|
543
|
-
removeUserId({ userID }: RemoveUserIdProps, requestOptions?: RequestOptions): Promise<RemoveUserIdResponse>;
|
|
544
|
-
/**
|
|
545
|
-
* Replace all allowed sources.
|
|
546
|
-
*
|
|
547
|
-
* @summary Replace all allowed sources.
|
|
548
|
-
* @param replaceSources - The replaceSources object.
|
|
549
|
-
* @param replaceSources.source - The sources to allow.
|
|
550
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
551
|
-
*/
|
|
552
|
-
replaceSources({ source }: ReplaceSourcesProps, requestOptions?: RequestOptions): Promise<ReplaceSourceResponse>;
|
|
553
|
-
/**
|
|
554
|
-
* Restore a deleted API key, along with its associated rights.
|
|
555
|
-
*
|
|
556
|
-
* @summary Restore an API key.
|
|
557
|
-
* @param restoreApiKey - The restoreApiKey object.
|
|
558
|
-
* @param restoreApiKey.key - API Key string.
|
|
559
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
560
|
-
*/
|
|
561
|
-
restoreApiKey({ key }: RestoreApiKeyProps, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
|
|
562
|
-
/**
|
|
563
|
-
* Add an object to the index, automatically assigning it an object ID.
|
|
564
|
-
*
|
|
565
|
-
* @summary Add an object to the index.
|
|
566
|
-
* @param saveObject - The saveObject object.
|
|
567
|
-
* @param saveObject.indexName - The index in which to perform the request.
|
|
568
|
-
* @param saveObject.body - The Algolia record.
|
|
569
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
570
|
-
*/
|
|
571
|
-
saveObject({ indexName, body }: SaveObjectProps, requestOptions?: RequestOptions): Promise<SaveObjectResponse>;
|
|
572
|
-
/**
|
|
573
|
-
* Create or update the Rule with the specified objectID.
|
|
574
|
-
*
|
|
575
|
-
* @summary Save/Update a rule.
|
|
576
|
-
* @param saveRule - The saveRule object.
|
|
577
|
-
* @param saveRule.indexName - The index in which to perform the request.
|
|
578
|
-
* @param saveRule.objectID - Unique identifier of an object.
|
|
579
|
-
* @param saveRule.rule - The rule object.
|
|
580
|
-
* @param saveRule.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
581
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
582
|
-
*/
|
|
583
|
-
saveRule({ indexName, objectID, rule, forwardToReplicas }: SaveRuleProps, requestOptions?: RequestOptions): Promise<UpdatedRuleResponse>;
|
|
584
|
-
/**
|
|
585
|
-
* Create/update multiple rules objects at once.
|
|
586
|
-
*
|
|
587
|
-
* @summary Save a batch of rules.
|
|
588
|
-
* @param saveRules - The saveRules object.
|
|
589
|
-
* @param saveRules.indexName - The index in which to perform the request.
|
|
590
|
-
* @param saveRules.rules - The rules object.
|
|
591
|
-
* @param saveRules.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
592
|
-
* @param saveRules.clearExistingRules - When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
|
|
593
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
594
|
-
*/
|
|
595
|
-
saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }: SaveRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
596
|
-
/**
|
|
597
|
-
* Create a new synonym object or update the existing synonym object with the given object ID.
|
|
598
|
-
*
|
|
599
|
-
* @summary Save synonym.
|
|
600
|
-
* @param saveSynonym - The saveSynonym object.
|
|
601
|
-
* @param saveSynonym.indexName - The index in which to perform the request.
|
|
602
|
-
* @param saveSynonym.objectID - Unique identifier of an object.
|
|
603
|
-
* @param saveSynonym.synonymHit - The synonymHit object.
|
|
604
|
-
* @param saveSynonym.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
605
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
606
|
-
*/
|
|
607
|
-
saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }: SaveSynonymProps, requestOptions?: RequestOptions): Promise<SaveSynonymResponse>;
|
|
608
|
-
/**
|
|
609
|
-
* Create/update multiple synonym objects at once, potentially replacing the entire list of synonyms if replaceExistingSynonyms is true.
|
|
610
|
-
*
|
|
611
|
-
* @summary Save a batch of synonyms.
|
|
612
|
-
* @param saveSynonyms - The saveSynonyms object.
|
|
613
|
-
* @param saveSynonyms.indexName - The index in which to perform the request.
|
|
614
|
-
* @param saveSynonyms.synonymHit - The synonymHit object.
|
|
615
|
-
* @param saveSynonyms.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
616
|
-
* @param saveSynonyms.replaceExistingSynonyms - Replace all synonyms of the index with the ones sent with this request.
|
|
617
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
618
|
-
*/
|
|
619
|
-
saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
620
|
-
/**
|
|
621
|
-
* Perform a search operation targeting one or many indices.
|
|
622
|
-
*
|
|
623
|
-
* @summary Search multiple indices.
|
|
624
|
-
* @param searchMethodParams - The `search` requests and strategy.
|
|
625
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
626
|
-
*/
|
|
627
|
-
search<T_3>(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<SearchResponses<T_3>>;
|
|
628
|
-
/**
|
|
629
|
-
* Search the dictionary entries.
|
|
630
|
-
*
|
|
631
|
-
* @summary Search a dictionary entries.
|
|
632
|
-
* @param searchDictionaryEntries - The searchDictionaryEntries object.
|
|
633
|
-
* @param searchDictionaryEntries.dictionaryName - The dictionary to search in.
|
|
634
|
-
* @param searchDictionaryEntries.searchDictionaryEntriesParams - The searchDictionaryEntriesParams object.
|
|
635
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
636
|
-
*/
|
|
637
|
-
searchDictionaryEntries({ dictionaryName, searchDictionaryEntriesParams, }: SearchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
638
|
-
/**
|
|
639
|
-
* Search for values of a given facet, optionally restricting the returned values to those contained in objects matching other search criteria.
|
|
640
|
-
*
|
|
641
|
-
* @summary Search for values of a given facet.
|
|
642
|
-
* @param searchForFacetValues - The searchForFacetValues object.
|
|
643
|
-
* @param searchForFacetValues.indexName - The index in which to perform the request.
|
|
644
|
-
* @param searchForFacetValues.facetName - The facet name.
|
|
645
|
-
* @param searchForFacetValues.searchForFacetValuesRequest - The searchForFacetValuesRequest object.
|
|
646
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
647
|
-
*/
|
|
648
|
-
searchForFacetValues({ indexName, facetName, searchForFacetValuesRequest, }: SearchForFacetValuesProps, requestOptions?: RequestOptions): Promise<SearchForFacetValuesResponse>;
|
|
649
|
-
/**
|
|
650
|
-
* Search for rules matching various criteria.
|
|
651
|
-
*
|
|
652
|
-
* @summary Search for rules.
|
|
653
|
-
* @param searchRules - The searchRules object.
|
|
654
|
-
* @param searchRules.indexName - The index in which to perform the request.
|
|
655
|
-
* @param searchRules.searchRulesParams - The searchRulesParams object.
|
|
656
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
657
|
-
*/
|
|
658
|
-
searchRules({ indexName, searchRulesParams }: SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
|
|
659
|
-
/**
|
|
660
|
-
* Perform a search operation targeting one specific index.
|
|
661
|
-
*
|
|
662
|
-
* @summary Search in a single index.
|
|
663
|
-
* @param searchSingleIndex - The searchSingleIndex object.
|
|
664
|
-
* @param searchSingleIndex.indexName - The index in which to perform the request.
|
|
665
|
-
* @param searchSingleIndex.searchParams - The searchParams object.
|
|
666
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
667
|
-
*/
|
|
668
|
-
searchSingleIndex<T_4>({ indexName, searchParams }: SearchSingleIndexProps, requestOptions?: RequestOptions): Promise<SearchResponse<T_4>>;
|
|
669
|
-
/**
|
|
670
|
-
* Search or browse all synonyms, optionally filtering them by type.
|
|
671
|
-
*
|
|
672
|
-
* @summary Search synonyms.
|
|
673
|
-
* @param searchSynonyms - The searchSynonyms object.
|
|
674
|
-
* @param searchSynonyms.indexName - The index in which to perform the request.
|
|
675
|
-
* @param searchSynonyms.type - Only search for specific types of synonyms.
|
|
676
|
-
* @param searchSynonyms.page - 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).
|
|
677
|
-
* @param searchSynonyms.hitsPerPage - Maximum number of objects to retrieve.
|
|
678
|
-
* @param searchSynonyms.searchSynonymsParams - The body of the the `searchSynonyms` method.
|
|
679
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
680
|
-
*/
|
|
681
|
-
searchSynonyms({ indexName, type, page, hitsPerPage, searchSynonymsParams, }: SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
|
|
682
|
-
/**
|
|
683
|
-
* Search for userIDs. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds propagate to the different clusters. To keep updates moving quickly, the index of userIDs isn\'t built synchronously with the mapping. Instead, the index is built once every 12h, at the same time as the update of userID usage. For example, when you perform a modification like adding or moving a userID, the search will report an outdated value until the next rebuild of the mapping, which takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs data.
|
|
684
|
-
*
|
|
685
|
-
* @summary Search userID.
|
|
686
|
-
* @param searchUserIdsParams - The searchUserIdsParams object.
|
|
687
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
688
|
-
*/
|
|
689
|
-
searchUserIds(searchUserIdsParams: SearchUserIdsParams, requestOptions?: RequestOptions): Promise<SearchUserIdsResponse>;
|
|
690
|
-
/**
|
|
691
|
-
* Set dictionaries settings.
|
|
692
|
-
*
|
|
693
|
-
* @summary Set dictionaries settings.
|
|
694
|
-
* @param dictionarySettingsParams - The dictionarySettingsParams object.
|
|
695
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
696
|
-
*/
|
|
697
|
-
setDictionarySettings(dictionarySettingsParams: DictionarySettingsParams, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
698
|
-
/**
|
|
699
|
-
* Update settings of an index. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value.
|
|
700
|
-
*
|
|
701
|
-
* @summary Update settings of an index.
|
|
702
|
-
* @param setSettings - The setSettings object.
|
|
703
|
-
* @param setSettings.indexName - The index in which to perform the request.
|
|
704
|
-
* @param setSettings.indexSettings - The indexSettings object.
|
|
705
|
-
* @param setSettings.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
706
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
707
|
-
*/
|
|
708
|
-
setSettings({ indexName, indexSettings, forwardToReplicas }: SetSettingsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
709
|
-
/**
|
|
710
|
-
* Replace every permission of an existing API key.
|
|
711
|
-
*
|
|
712
|
-
* @summary Update an API key.
|
|
713
|
-
* @param updateApiKey - The updateApiKey object.
|
|
714
|
-
* @param updateApiKey.key - API Key string.
|
|
715
|
-
* @param updateApiKey.apiKey - The apiKey object.
|
|
716
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
717
|
-
*/
|
|
718
|
-
updateApiKey({ key, apiKey }: UpdateApiKeyProps, requestOptions?: RequestOptions): Promise<UpdateApiKeyResponse>;
|
|
719
|
-
};
|
|
720
|
-
/**
|
|
721
|
-
* The client type.
|
|
722
|
-
*/
|
|
723
|
-
export type SearchClient = ReturnType<typeof createSearchClient>;
|
|
1
|
+
import type { CreateClientOptions, RequestOptions, ApiError } from '@algolia/client-common';
|
|
2
|
+
import type { AddApiKeyResponse } from '../model/addApiKeyResponse';
|
|
3
|
+
import type { ApiKey } from '../model/apiKey';
|
|
4
|
+
import type { BatchParams } from '../model/batchParams';
|
|
5
|
+
import type { BatchResponse } from '../model/batchResponse';
|
|
6
|
+
import type { BrowseResponse } from '../model/browseResponse';
|
|
7
|
+
import type { BrowseOptions, WaitForTaskOptions, WaitForApiKeyOptions, AddOrUpdateObjectProps, AssignUserIdProps, BatchProps, BatchAssignUserIdsProps, BatchDictionaryEntriesProps, BrowseProps, ClearAllSynonymsProps, ClearObjectsProps, ClearRulesProps, DelProps, DeleteApiKeyProps, DeleteByProps, DeleteIndexProps, DeleteObjectProps, DeleteRuleProps, DeleteSourceProps, DeleteSynonymProps, GetProps, GetApiKeyProps, GetLogsProps, GetObjectProps, GetRuleProps, GetSettingsProps, GetSynonymProps, GetTaskProps, GetUserIdProps, HasPendingMappingsProps, ListIndicesProps, ListUserIdsProps, OperationIndexProps, PartialUpdateObjectProps, PostProps, PutProps, RemoveUserIdProps, ReplaceSourcesProps, RestoreApiKeyProps, SaveObjectProps, SaveRuleProps, SaveRulesProps, SaveSynonymProps, SaveSynonymsProps, LegacySearchMethodProps, SearchDictionaryEntriesProps, SearchForFacetValuesProps, SearchRulesProps, SearchSingleIndexProps, SearchSynonymsProps, SetSettingsProps, UpdateApiKeyProps } from '../model/clientMethodProps';
|
|
8
|
+
import type { CreatedAtResponse } from '../model/createdAtResponse';
|
|
9
|
+
import type { DeleteApiKeyResponse } from '../model/deleteApiKeyResponse';
|
|
10
|
+
import type { DeleteSourceResponse } from '../model/deleteSourceResponse';
|
|
11
|
+
import type { DeletedAtResponse } from '../model/deletedAtResponse';
|
|
12
|
+
import type { DictionarySettingsParams } from '../model/dictionarySettingsParams';
|
|
13
|
+
import type { GetApiKeyResponse } from '../model/getApiKeyResponse';
|
|
14
|
+
import type { GetDictionarySettingsResponse } from '../model/getDictionarySettingsResponse';
|
|
15
|
+
import type { GetLogsResponse } from '../model/getLogsResponse';
|
|
16
|
+
import type { GetObjectsParams } from '../model/getObjectsParams';
|
|
17
|
+
import type { GetObjectsResponse } from '../model/getObjectsResponse';
|
|
18
|
+
import type { GetTaskResponse } from '../model/getTaskResponse';
|
|
19
|
+
import type { GetTopUserIdsResponse } from '../model/getTopUserIdsResponse';
|
|
20
|
+
import type { HasPendingMappingsResponse } from '../model/hasPendingMappingsResponse';
|
|
21
|
+
import type { IndexSettings } from '../model/indexSettings';
|
|
22
|
+
import type { Languages } from '../model/languages';
|
|
23
|
+
import type { ListApiKeysResponse } from '../model/listApiKeysResponse';
|
|
24
|
+
import type { ListClustersResponse } from '../model/listClustersResponse';
|
|
25
|
+
import type { ListIndicesResponse } from '../model/listIndicesResponse';
|
|
26
|
+
import type { ListUserIdsResponse } from '../model/listUserIdsResponse';
|
|
27
|
+
import type { MultipleBatchResponse } from '../model/multipleBatchResponse';
|
|
28
|
+
import type { RemoveUserIdResponse } from '../model/removeUserIdResponse';
|
|
29
|
+
import type { ReplaceSourceResponse } from '../model/replaceSourceResponse';
|
|
30
|
+
import type { Rule } from '../model/rule';
|
|
31
|
+
import type { SaveObjectResponse } from '../model/saveObjectResponse';
|
|
32
|
+
import type { SaveSynonymResponse } from '../model/saveSynonymResponse';
|
|
33
|
+
import type { SearchForFacetValuesResponse } from '../model/searchForFacetValuesResponse';
|
|
34
|
+
import type { SearchMethodParams } from '../model/searchMethodParams';
|
|
35
|
+
import type { SearchResponse } from '../model/searchResponse';
|
|
36
|
+
import type { SearchResponses } from '../model/searchResponses';
|
|
37
|
+
import type { SearchRulesResponse } from '../model/searchRulesResponse';
|
|
38
|
+
import type { SearchSynonymsResponse } from '../model/searchSynonymsResponse';
|
|
39
|
+
import type { SearchUserIdsParams } from '../model/searchUserIdsParams';
|
|
40
|
+
import type { SearchUserIdsResponse } from '../model/searchUserIdsResponse';
|
|
41
|
+
import type { Source } from '../model/source';
|
|
42
|
+
import type { SynonymHit } from '../model/synonymHit';
|
|
43
|
+
import type { UpdateApiKeyResponse } from '../model/updateApiKeyResponse';
|
|
44
|
+
import type { UpdatedAtResponse } from '../model/updatedAtResponse';
|
|
45
|
+
import type { UpdatedAtWithObjectIdResponse } from '../model/updatedAtWithObjectIdResponse';
|
|
46
|
+
import type { UpdatedRuleResponse } from '../model/updatedRuleResponse';
|
|
47
|
+
import type { UserId } from '../model/userId';
|
|
48
|
+
export declare const apiClientVersion = "5.0.0-alpha.54";
|
|
49
|
+
export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
50
|
+
transporter: import("@algolia/client-common").Transporter;
|
|
51
|
+
/**
|
|
52
|
+
* The `appId` currently in use.
|
|
53
|
+
*/
|
|
54
|
+
appId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
57
|
+
*/
|
|
58
|
+
clearCache(): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
61
|
+
*/
|
|
62
|
+
readonly _ua: string;
|
|
63
|
+
/**
|
|
64
|
+
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
65
|
+
*
|
|
66
|
+
* @param segment - The algolia agent (user-agent) segment to add.
|
|
67
|
+
* @param version - The version of the agent.
|
|
68
|
+
*/
|
|
69
|
+
addAlgoliaAgent(segment: string, version?: string): void;
|
|
70
|
+
/**
|
|
71
|
+
* Helper: Wait for a task to be published (completed) for a given `indexName` and `taskID`.
|
|
72
|
+
*
|
|
73
|
+
* @summary Helper method that waits for a task to be published (completed).
|
|
74
|
+
* @param waitForTaskOptions - The waitForTaskOptions object.
|
|
75
|
+
* @param waitForTaskOptions.indexName - The `indexName` where the operation was performed.
|
|
76
|
+
* @param waitForTaskOptions.taskID - The `taskID` returned in the method response.
|
|
77
|
+
* @param waitForTaskOptions.maxRetries - The maximum number of retries. 50 by default.
|
|
78
|
+
* @param waitForTaskOptions.timeout - The function to decide how long to wait between retries.
|
|
79
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
|
|
80
|
+
*/
|
|
81
|
+
waitForTask({ indexName, taskID, maxRetries, timeout, }: WaitForTaskOptions, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Helper: Wait for an API key to be added, updated or deleted based on a given `operation`.
|
|
84
|
+
*
|
|
85
|
+
* @summary Helper method that waits for an API key task to be processed.
|
|
86
|
+
* @param waitForApiKeyOptions - The waitForApiKeyOptions object.
|
|
87
|
+
* @param waitForApiKeyOptions.operation - The `operation` that was done on a `key`.
|
|
88
|
+
* @param waitForApiKeyOptions.key - The `key` that has been added, deleted or updated.
|
|
89
|
+
* @param waitForApiKeyOptions.apiKey - Necessary to know if an `update` operation has been processed, compare fields of the response with it.
|
|
90
|
+
* @param waitForApiKeyOptions.maxRetries - The maximum number of retries. 50 by default.
|
|
91
|
+
* @param waitForApiKeyOptions.timeout - The function to decide how long to wait between retries.
|
|
92
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getApikey` method and merged with the transporter requestOptions.
|
|
93
|
+
*/
|
|
94
|
+
waitForApiKey({ operation, key, apiKey, maxRetries, timeout, }: WaitForApiKeyOptions, requestOptions?: RequestOptions): Promise<ApiError | GetApiKeyResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Helper: Iterate on the `browse` method of the client to allow aggregating objects of an index.
|
|
97
|
+
*
|
|
98
|
+
* @summary Helper method that iterates on the `browse` method.
|
|
99
|
+
* @param browseObjects - The browseObjects object.
|
|
100
|
+
* @param browseObjects.indexName - The index in which to perform the request.
|
|
101
|
+
* @param browseObjects.browseParams - The `browse` parameters.
|
|
102
|
+
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is no `cursor` in the response.
|
|
103
|
+
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
104
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `browse` method and merged with the transporter requestOptions.
|
|
105
|
+
*/
|
|
106
|
+
browseObjects<T>({ indexName, browseParams, ...browseObjectsOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<BrowseResponse<T>>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<BrowseResponse<T>>, "aggregator">> & BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T>>;
|
|
107
|
+
/**
|
|
108
|
+
* Helper: Iterate on the `searchRules` method of the client to allow aggregating rules of an index.
|
|
109
|
+
*
|
|
110
|
+
* @summary Helper method that iterates on the `searchRules` method.
|
|
111
|
+
* @param browseObjects - The browseObjects object.
|
|
112
|
+
* @param browseObjects.indexName - The index in which to perform the request.
|
|
113
|
+
* @param browseObjects.searchRulesParams - The `searchRules` method parameters.
|
|
114
|
+
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
|
|
115
|
+
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
116
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchRules` method and merged with the transporter requestOptions.
|
|
117
|
+
*/
|
|
118
|
+
browseRules({ indexName, searchRulesParams, ...browseRulesOptions }: BrowseOptions<SearchRulesResponse> & SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* Helper: Iterate on the `searchSynonyms` method of the client to allow aggregating rules of an index.
|
|
121
|
+
*
|
|
122
|
+
* @summary Helper method that iterates on the `searchSynonyms` method.
|
|
123
|
+
* @param browseObjects - The browseObjects object.
|
|
124
|
+
* @param browseObjects.indexName - The index in which to perform the request.
|
|
125
|
+
* @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
|
|
126
|
+
* @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
|
|
127
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchSynonyms` method and merged with the transporter requestOptions.
|
|
128
|
+
*/
|
|
129
|
+
browseSynonyms({ indexName, validate, aggregator, ...browseSynonymsOptions }: BrowseOptions<SearchSynonymsResponse> & SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
|
|
130
|
+
/**
|
|
131
|
+
* Add a new API Key with specific permissions/restrictions.
|
|
132
|
+
*
|
|
133
|
+
* @summary Create an API key.
|
|
134
|
+
* @param apiKey - The apiKey object.
|
|
135
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
136
|
+
*/
|
|
137
|
+
addApiKey(apiKey: ApiKey, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* Add or replace an object with a given object ID. If the object does not exist, it will be created. If it already exists, it will be replaced.
|
|
140
|
+
*
|
|
141
|
+
* @summary Add or replace an object.
|
|
142
|
+
* @param addOrUpdateObject - The addOrUpdateObject object.
|
|
143
|
+
* @param addOrUpdateObject.indexName - The index in which to perform the request.
|
|
144
|
+
* @param addOrUpdateObject.objectID - Unique identifier of an object.
|
|
145
|
+
* @param addOrUpdateObject.body - The Algolia object.
|
|
146
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
147
|
+
*/
|
|
148
|
+
addOrUpdateObject({ indexName, objectID, body }: AddOrUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* Add a single source to the list of allowed sources.
|
|
151
|
+
*
|
|
152
|
+
* @summary Add a single source.
|
|
153
|
+
* @param source - The source to add.
|
|
154
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
155
|
+
*/
|
|
156
|
+
appendSource(source: Source, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable.
|
|
159
|
+
*
|
|
160
|
+
* @summary Assign or Move userID.
|
|
161
|
+
* @param assignUserId - The assignUserId object.
|
|
162
|
+
* @param assignUserId.xAlgoliaUserID - UserID to assign.
|
|
163
|
+
* @param assignUserId.assignUserIdParams - The assignUserIdParams object.
|
|
164
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
165
|
+
*/
|
|
166
|
+
assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
167
|
+
/**
|
|
168
|
+
* Perform multiple write operations targeting one index, in a single API call.
|
|
169
|
+
*
|
|
170
|
+
* @summary Batch operations to one index.
|
|
171
|
+
* @param batch - The batch object.
|
|
172
|
+
* @param batch.indexName - The index in which to perform the request.
|
|
173
|
+
* @param batch.batchWriteParams - The batchWriteParams object.
|
|
174
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
175
|
+
*/
|
|
176
|
+
batch({ indexName, batchWriteParams }: BatchProps, requestOptions?: RequestOptions): Promise<BatchResponse>;
|
|
177
|
+
/**
|
|
178
|
+
* Assign multiple userIDs to a cluster. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable.
|
|
179
|
+
*
|
|
180
|
+
* @summary Batch assign userIDs.
|
|
181
|
+
* @param batchAssignUserIds - The batchAssignUserIds object.
|
|
182
|
+
* @param batchAssignUserIds.xAlgoliaUserID - UserID to assign.
|
|
183
|
+
* @param batchAssignUserIds.batchAssignUserIdsParams - The batchAssignUserIdsParams object.
|
|
184
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
185
|
+
*/
|
|
186
|
+
batchAssignUserIds({ xAlgoliaUserID, batchAssignUserIdsParams }: BatchAssignUserIdsProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
|
|
187
|
+
/**
|
|
188
|
+
* Send a batch of dictionary entries.
|
|
189
|
+
*
|
|
190
|
+
* @summary Batch dictionary entries.
|
|
191
|
+
* @param batchDictionaryEntries - The batchDictionaryEntries object.
|
|
192
|
+
* @param batchDictionaryEntries.dictionaryName - The dictionary to search in.
|
|
193
|
+
* @param batchDictionaryEntries.batchDictionaryEntriesParams - The batchDictionaryEntriesParams object.
|
|
194
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
195
|
+
*/
|
|
196
|
+
batchDictionaryEntries({ dictionaryName, batchDictionaryEntriesParams, }: BatchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
197
|
+
/**
|
|
198
|
+
* This method allows you to retrieve all index content. It can retrieve up to 1,000 records per call and supports full text search and filters. For performance reasons, some features are not supported, including `distinct`, sorting by `typos`, `words` or `geo distance`. When there is more content to be browsed, the response contains a cursor field. This cursor has to be passed to the subsequent call to browse in order to get the next page of results. When the end of the index has been reached, the cursor field is absent from the response.
|
|
199
|
+
*
|
|
200
|
+
* @summary Retrieve all index content.
|
|
201
|
+
* @param browse - The browse object.
|
|
202
|
+
* @param browse.indexName - The index in which to perform the request.
|
|
203
|
+
* @param browse.browseParams - The browseParams object.
|
|
204
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
205
|
+
*/
|
|
206
|
+
browse<T_1>({ indexName, browseParams }: BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T_1>>;
|
|
207
|
+
/**
|
|
208
|
+
* Remove all synonyms from an index.
|
|
209
|
+
*
|
|
210
|
+
* @summary Clear all synonyms.
|
|
211
|
+
* @param clearAllSynonyms - The clearAllSynonyms object.
|
|
212
|
+
* @param clearAllSynonyms.indexName - The index in which to perform the request.
|
|
213
|
+
* @param clearAllSynonyms.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
214
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
215
|
+
*/
|
|
216
|
+
clearAllSynonyms({ indexName, forwardToReplicas }: ClearAllSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
217
|
+
/**
|
|
218
|
+
* Delete an index\'s content, but leave settings and index-specific API keys untouched.
|
|
219
|
+
*
|
|
220
|
+
* @summary Clear all objects from an index.
|
|
221
|
+
* @param clearObjects - The clearObjects object.
|
|
222
|
+
* @param clearObjects.indexName - The index in which to perform the request.
|
|
223
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
224
|
+
*/
|
|
225
|
+
clearObjects({ indexName }: ClearObjectsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
226
|
+
/**
|
|
227
|
+
* Delete all Rules in the index.
|
|
228
|
+
*
|
|
229
|
+
* @summary Clear Rules.
|
|
230
|
+
* @param clearRules - The clearRules object.
|
|
231
|
+
* @param clearRules.indexName - The index in which to perform the request.
|
|
232
|
+
* @param clearRules.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
233
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
234
|
+
*/
|
|
235
|
+
clearRules({ indexName, forwardToReplicas }: ClearRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
236
|
+
/**
|
|
237
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
238
|
+
*
|
|
239
|
+
* @summary Send requests to the Algolia REST API.
|
|
240
|
+
* @param del - The del object.
|
|
241
|
+
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
242
|
+
* @param del.parameters - Query parameters to be applied to the current query.
|
|
243
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
244
|
+
*/
|
|
245
|
+
del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
246
|
+
/**
|
|
247
|
+
* Delete an existing API Key.
|
|
248
|
+
*
|
|
249
|
+
* @summary Delete an API key.
|
|
250
|
+
* @param deleteApiKey - The deleteApiKey object.
|
|
251
|
+
* @param deleteApiKey.key - API Key string.
|
|
252
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
253
|
+
*/
|
|
254
|
+
deleteApiKey({ key }: DeleteApiKeyProps, requestOptions?: RequestOptions): Promise<DeleteApiKeyResponse>;
|
|
255
|
+
/**
|
|
256
|
+
* Remove all objects matching a filter (including geo filters). This method enables you to delete one or more objects based on filters (numeric, facet, tag or geo queries). It doesn\'t accept empty filters or a query.
|
|
257
|
+
*
|
|
258
|
+
* @summary Delete all records matching the query.
|
|
259
|
+
* @param deleteBy - The deleteBy object.
|
|
260
|
+
* @param deleteBy.indexName - The index in which to perform the request.
|
|
261
|
+
* @param deleteBy.deleteByParams - The deleteByParams object.
|
|
262
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
263
|
+
*/
|
|
264
|
+
deleteBy({ indexName, deleteByParams }: DeleteByProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
265
|
+
/**
|
|
266
|
+
* Delete an existing index.
|
|
267
|
+
*
|
|
268
|
+
* @summary Delete index.
|
|
269
|
+
* @param deleteIndex - The deleteIndex object.
|
|
270
|
+
* @param deleteIndex.indexName - The index in which to perform the request.
|
|
271
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
272
|
+
*/
|
|
273
|
+
deleteIndex({ indexName }: DeleteIndexProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
274
|
+
/**
|
|
275
|
+
* Delete an existing object.
|
|
276
|
+
*
|
|
277
|
+
* @summary Delete an object.
|
|
278
|
+
* @param deleteObject - The deleteObject object.
|
|
279
|
+
* @param deleteObject.indexName - The index in which to perform the request.
|
|
280
|
+
* @param deleteObject.objectID - Unique identifier of an object.
|
|
281
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
282
|
+
*/
|
|
283
|
+
deleteObject({ indexName, objectID }: DeleteObjectProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
284
|
+
/**
|
|
285
|
+
* Delete the Rule with the specified objectID.
|
|
286
|
+
*
|
|
287
|
+
* @summary Delete a rule.
|
|
288
|
+
* @param deleteRule - The deleteRule object.
|
|
289
|
+
* @param deleteRule.indexName - The index in which to perform the request.
|
|
290
|
+
* @param deleteRule.objectID - Unique identifier of an object.
|
|
291
|
+
* @param deleteRule.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
292
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
293
|
+
*/
|
|
294
|
+
deleteRule({ indexName, objectID, forwardToReplicas }: DeleteRuleProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
295
|
+
/**
|
|
296
|
+
* Remove a single source from the list of allowed sources.
|
|
297
|
+
*
|
|
298
|
+
* @summary Remove a single source.
|
|
299
|
+
* @param deleteSource - The deleteSource object.
|
|
300
|
+
* @param deleteSource.source - The IP range of the source.
|
|
301
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
302
|
+
*/
|
|
303
|
+
deleteSource({ source }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteSourceResponse>;
|
|
304
|
+
/**
|
|
305
|
+
* Delete a single synonyms set, identified by the given objectID.
|
|
306
|
+
*
|
|
307
|
+
* @summary Delete synonym.
|
|
308
|
+
* @param deleteSynonym - The deleteSynonym object.
|
|
309
|
+
* @param deleteSynonym.indexName - The index in which to perform the request.
|
|
310
|
+
* @param deleteSynonym.objectID - Unique identifier of an object.
|
|
311
|
+
* @param deleteSynonym.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
312
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
313
|
+
*/
|
|
314
|
+
deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
|
|
315
|
+
/**
|
|
316
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
317
|
+
*
|
|
318
|
+
* @summary Send requests to the Algolia REST API.
|
|
319
|
+
* @param get - The get object.
|
|
320
|
+
* @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
321
|
+
* @param get.parameters - Query parameters to be applied to the current query.
|
|
322
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
323
|
+
*/
|
|
324
|
+
get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
325
|
+
/**
|
|
326
|
+
* Get the permissions of an API key.
|
|
327
|
+
*
|
|
328
|
+
* @summary Get an API key.
|
|
329
|
+
* @param getApiKey - The getApiKey object.
|
|
330
|
+
* @param getApiKey.key - API Key string.
|
|
331
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
332
|
+
*/
|
|
333
|
+
getApiKey({ key }: GetApiKeyProps, requestOptions?: RequestOptions): Promise<GetApiKeyResponse>;
|
|
334
|
+
/**
|
|
335
|
+
* List dictionaries supported per language.
|
|
336
|
+
*
|
|
337
|
+
* @summary List available languages.
|
|
338
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
339
|
+
*/
|
|
340
|
+
getDictionaryLanguages(requestOptions?: RequestOptions): Promise<Record<string, Languages>>;
|
|
341
|
+
/**
|
|
342
|
+
* Retrieve dictionaries settings. The API stores languages whose standard entries are disabled. Fetch settings does not return false values.
|
|
343
|
+
*
|
|
344
|
+
* @summary Retrieve dictionaries settings.
|
|
345
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
346
|
+
*/
|
|
347
|
+
getDictionarySettings(requestOptions?: RequestOptions): Promise<GetDictionarySettingsResponse>;
|
|
348
|
+
/**
|
|
349
|
+
* Return the latest log entries.
|
|
350
|
+
*
|
|
351
|
+
* @summary Return the latest log entries.
|
|
352
|
+
* @param getLogs - The getLogs object.
|
|
353
|
+
* @param getLogs.offset - First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry.
|
|
354
|
+
* @param getLogs.length - Maximum number of entries to retrieve. The maximum allowed value is 1000.
|
|
355
|
+
* @param getLogs.indexName - Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices.
|
|
356
|
+
* @param getLogs.type - Type of log entries to retrieve. When omitted, all log entries are retrieved.
|
|
357
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
358
|
+
*/
|
|
359
|
+
getLogs({ offset, length, indexName, type }?: GetLogsProps, requestOptions?: RequestOptions | undefined): Promise<GetLogsResponse>;
|
|
360
|
+
/**
|
|
361
|
+
* Retrieve one object from the index.
|
|
362
|
+
*
|
|
363
|
+
* @summary Retrieve an object.
|
|
364
|
+
* @param getObject - The getObject object.
|
|
365
|
+
* @param getObject.indexName - The index in which to perform the request.
|
|
366
|
+
* @param getObject.objectID - Unique identifier of an object.
|
|
367
|
+
* @param getObject.attributesToRetrieve - List of attributes to retrieve. If not specified, all retrievable attributes are returned.
|
|
368
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
369
|
+
*/
|
|
370
|
+
getObject({ indexName, objectID, attributesToRetrieve }: GetObjectProps, requestOptions?: RequestOptions): Promise<Record<string, string>>;
|
|
371
|
+
/**
|
|
372
|
+
* Retrieve one or more objects, potentially from different indices, in a single API call.
|
|
373
|
+
*
|
|
374
|
+
* @summary Retrieve one or more objects.
|
|
375
|
+
* @param getObjectsParams - The Algolia object.
|
|
376
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
377
|
+
*/
|
|
378
|
+
getObjects<T_2>(getObjectsParams: GetObjectsParams, requestOptions?: RequestOptions): Promise<GetObjectsResponse<T_2>>;
|
|
379
|
+
/**
|
|
380
|
+
* Retrieve the Rule with the specified objectID.
|
|
381
|
+
*
|
|
382
|
+
* @summary Get a rule.
|
|
383
|
+
* @param getRule - The getRule object.
|
|
384
|
+
* @param getRule.indexName - The index in which to perform the request.
|
|
385
|
+
* @param getRule.objectID - Unique identifier of an object.
|
|
386
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
387
|
+
*/
|
|
388
|
+
getRule({ indexName, objectID }: GetRuleProps, requestOptions?: RequestOptions): Promise<Rule>;
|
|
389
|
+
/**
|
|
390
|
+
* Retrieve settings of an index.
|
|
391
|
+
*
|
|
392
|
+
* @summary Retrieve settings of an index.
|
|
393
|
+
* @param getSettings - The getSettings object.
|
|
394
|
+
* @param getSettings.indexName - The index in which to perform the request.
|
|
395
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
396
|
+
*/
|
|
397
|
+
getSettings({ indexName }: GetSettingsProps, requestOptions?: RequestOptions): Promise<IndexSettings>;
|
|
398
|
+
/**
|
|
399
|
+
* List all allowed sources.
|
|
400
|
+
*
|
|
401
|
+
* @summary List all allowed sources.
|
|
402
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
403
|
+
*/
|
|
404
|
+
getSources(requestOptions?: RequestOptions): Promise<Source[]>;
|
|
405
|
+
/**
|
|
406
|
+
* Fetch a synonym object identified by its objectID.
|
|
407
|
+
*
|
|
408
|
+
* @summary Get synonym.
|
|
409
|
+
* @param getSynonym - The getSynonym object.
|
|
410
|
+
* @param getSynonym.indexName - The index in which to perform the request.
|
|
411
|
+
* @param getSynonym.objectID - Unique identifier of an object.
|
|
412
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
413
|
+
*/
|
|
414
|
+
getSynonym({ indexName, objectID }: GetSynonymProps, requestOptions?: RequestOptions): Promise<SynonymHit>;
|
|
415
|
+
/**
|
|
416
|
+
* Check the current status of a given task.
|
|
417
|
+
*
|
|
418
|
+
* @summary Check the status of a task.
|
|
419
|
+
* @param getTask - The getTask object.
|
|
420
|
+
* @param getTask.indexName - The index in which to perform the request.
|
|
421
|
+
* @param getTask.taskID - Unique identifier of an task. Numeric value (up to 64bits).
|
|
422
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
423
|
+
*/
|
|
424
|
+
getTask({ indexName, taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
|
|
425
|
+
/**
|
|
426
|
+
* Get the top 10 userIDs with the highest number of records per cluster. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following array of userIDs and clusters.
|
|
427
|
+
*
|
|
428
|
+
* @summary Get top userID.
|
|
429
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
430
|
+
*/
|
|
431
|
+
getTopUserIds(requestOptions?: RequestOptions): Promise<GetTopUserIdsResponse>;
|
|
432
|
+
/**
|
|
433
|
+
* Returns the userID data stored in the mapping. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userID data.
|
|
434
|
+
*
|
|
435
|
+
* @summary Get userID.
|
|
436
|
+
* @param getUserId - The getUserId object.
|
|
437
|
+
* @param getUserId.userID - UserID to assign.
|
|
438
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
439
|
+
*/
|
|
440
|
+
getUserId({ userID }: GetUserIdProps, requestOptions?: RequestOptions): Promise<UserId>;
|
|
441
|
+
/**
|
|
442
|
+
* Get the status of your clusters\' migrations or user creations. Creating a large batch of users or migrating your multi-cluster may take quite some time. This method lets you retrieve the status of the migration, so you can know when it\'s done. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable.
|
|
443
|
+
*
|
|
444
|
+
* @summary Get migration status.
|
|
445
|
+
* @param hasPendingMappings - The hasPendingMappings object.
|
|
446
|
+
* @param hasPendingMappings.getClusters - If the clusters pending mapping state should be on the response.
|
|
447
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
448
|
+
*/
|
|
449
|
+
hasPendingMappings({ getClusters }?: HasPendingMappingsProps, requestOptions?: RequestOptions | undefined): Promise<HasPendingMappingsResponse>;
|
|
450
|
+
/**
|
|
451
|
+
* List API keys, along with their associated rights.
|
|
452
|
+
*
|
|
453
|
+
* @summary List API Keys.
|
|
454
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
455
|
+
*/
|
|
456
|
+
listApiKeys(requestOptions?: RequestOptions): Promise<ListApiKeysResponse>;
|
|
457
|
+
/**
|
|
458
|
+
* List the clusters available in a multi-clusters setup for a single appID. Upon success, the response is 200 OK and contains the following clusters.
|
|
459
|
+
*
|
|
460
|
+
* @summary List clusters.
|
|
461
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
462
|
+
*/
|
|
463
|
+
listClusters(requestOptions?: RequestOptions): Promise<ListClustersResponse>;
|
|
464
|
+
/**
|
|
465
|
+
* List existing indexes from an application.
|
|
466
|
+
*
|
|
467
|
+
* @summary List existing indexes.
|
|
468
|
+
* @param listIndices - The listIndices object.
|
|
469
|
+
* @param listIndices.page - 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).
|
|
470
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
471
|
+
*/
|
|
472
|
+
listIndices({ page }?: ListIndicesProps, requestOptions?: RequestOptions | undefined): Promise<ListIndicesResponse>;
|
|
473
|
+
/**
|
|
474
|
+
* List the userIDs assigned to a multi-clusters appID. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userIDs data.
|
|
475
|
+
*
|
|
476
|
+
* @summary List userIDs.
|
|
477
|
+
* @param listUserIds - The listUserIds object.
|
|
478
|
+
* @param listUserIds.page - 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).
|
|
479
|
+
* @param listUserIds.hitsPerPage - Maximum number of objects to retrieve.
|
|
480
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
481
|
+
*/
|
|
482
|
+
listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
|
|
483
|
+
/**
|
|
484
|
+
* Perform multiple write operations, potentially targeting multiple indices, in a single API call.
|
|
485
|
+
*
|
|
486
|
+
* @summary Batch operations to many indices.
|
|
487
|
+
* @param batchParams - The batchParams object.
|
|
488
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
489
|
+
*/
|
|
490
|
+
multipleBatch(batchParams: BatchParams, requestOptions?: RequestOptions): Promise<MultipleBatchResponse>;
|
|
491
|
+
/**
|
|
492
|
+
* Performs a copy or a move operation on a index.
|
|
493
|
+
*
|
|
494
|
+
* @summary Copy/move index.
|
|
495
|
+
* @param operationIndex - The operationIndex object.
|
|
496
|
+
* @param operationIndex.indexName - The index in which to perform the request.
|
|
497
|
+
* @param operationIndex.operationIndexParams - The operationIndexParams object.
|
|
498
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
499
|
+
*/
|
|
500
|
+
operationIndex({ indexName, operationIndexParams }: OperationIndexProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
501
|
+
/**
|
|
502
|
+
* Update one or more attributes of an existing object. This method lets you update only a part of an existing object, either by adding new attributes or updating existing ones. You can partially update several objects in a single method call. If the index targeted by this operation doesn\'t exist yet, it\'s automatically created.
|
|
503
|
+
*
|
|
504
|
+
* @summary Partially update an object.
|
|
505
|
+
* @param partialUpdateObject - The partialUpdateObject object.
|
|
506
|
+
* @param partialUpdateObject.indexName - The index in which to perform the request.
|
|
507
|
+
* @param partialUpdateObject.objectID - Unique identifier of an object.
|
|
508
|
+
* @param partialUpdateObject.attributesToUpdate - Map of attribute(s) to update.
|
|
509
|
+
* @param partialUpdateObject.createIfNotExists - Creates the record if it does not exist yet.
|
|
510
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
511
|
+
*/
|
|
512
|
+
partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }: PartialUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
|
|
513
|
+
/**
|
|
514
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
515
|
+
*
|
|
516
|
+
* @summary Send requests to the Algolia REST API.
|
|
517
|
+
* @param post - The post object.
|
|
518
|
+
* @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
519
|
+
* @param post.parameters - Query parameters to be applied to the current query.
|
|
520
|
+
* @param post.body - The parameters to send with the custom request.
|
|
521
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
522
|
+
*/
|
|
523
|
+
post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
524
|
+
/**
|
|
525
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
526
|
+
*
|
|
527
|
+
* @summary Send requests to the Algolia REST API.
|
|
528
|
+
* @param put - The put object.
|
|
529
|
+
* @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
530
|
+
* @param put.parameters - Query parameters to be applied to the current query.
|
|
531
|
+
* @param put.body - The parameters to send with the custom request.
|
|
532
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
533
|
+
*/
|
|
534
|
+
put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
535
|
+
/**
|
|
536
|
+
* Remove a userID and its associated data from the multi-clusters. Upon success, the response is 200 OK and a task is created to remove the userID data and mapping.
|
|
537
|
+
*
|
|
538
|
+
* @summary Remove userID.
|
|
539
|
+
* @param removeUserId - The removeUserId object.
|
|
540
|
+
* @param removeUserId.userID - UserID to assign.
|
|
541
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
542
|
+
*/
|
|
543
|
+
removeUserId({ userID }: RemoveUserIdProps, requestOptions?: RequestOptions): Promise<RemoveUserIdResponse>;
|
|
544
|
+
/**
|
|
545
|
+
* Replace all allowed sources.
|
|
546
|
+
*
|
|
547
|
+
* @summary Replace all allowed sources.
|
|
548
|
+
* @param replaceSources - The replaceSources object.
|
|
549
|
+
* @param replaceSources.source - The sources to allow.
|
|
550
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
551
|
+
*/
|
|
552
|
+
replaceSources({ source }: ReplaceSourcesProps, requestOptions?: RequestOptions): Promise<ReplaceSourceResponse>;
|
|
553
|
+
/**
|
|
554
|
+
* Restore a deleted API key, along with its associated rights.
|
|
555
|
+
*
|
|
556
|
+
* @summary Restore an API key.
|
|
557
|
+
* @param restoreApiKey - The restoreApiKey object.
|
|
558
|
+
* @param restoreApiKey.key - API Key string.
|
|
559
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
560
|
+
*/
|
|
561
|
+
restoreApiKey({ key }: RestoreApiKeyProps, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
|
|
562
|
+
/**
|
|
563
|
+
* Add an object to the index, automatically assigning it an object ID.
|
|
564
|
+
*
|
|
565
|
+
* @summary Add an object to the index.
|
|
566
|
+
* @param saveObject - The saveObject object.
|
|
567
|
+
* @param saveObject.indexName - The index in which to perform the request.
|
|
568
|
+
* @param saveObject.body - The Algolia record.
|
|
569
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
570
|
+
*/
|
|
571
|
+
saveObject({ indexName, body }: SaveObjectProps, requestOptions?: RequestOptions): Promise<SaveObjectResponse>;
|
|
572
|
+
/**
|
|
573
|
+
* Create or update the Rule with the specified objectID.
|
|
574
|
+
*
|
|
575
|
+
* @summary Save/Update a rule.
|
|
576
|
+
* @param saveRule - The saveRule object.
|
|
577
|
+
* @param saveRule.indexName - The index in which to perform the request.
|
|
578
|
+
* @param saveRule.objectID - Unique identifier of an object.
|
|
579
|
+
* @param saveRule.rule - The rule object.
|
|
580
|
+
* @param saveRule.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
581
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
582
|
+
*/
|
|
583
|
+
saveRule({ indexName, objectID, rule, forwardToReplicas }: SaveRuleProps, requestOptions?: RequestOptions): Promise<UpdatedRuleResponse>;
|
|
584
|
+
/**
|
|
585
|
+
* Create/update multiple rules objects at once.
|
|
586
|
+
*
|
|
587
|
+
* @summary Save a batch of rules.
|
|
588
|
+
* @param saveRules - The saveRules object.
|
|
589
|
+
* @param saveRules.indexName - The index in which to perform the request.
|
|
590
|
+
* @param saveRules.rules - The rules object.
|
|
591
|
+
* @param saveRules.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
592
|
+
* @param saveRules.clearExistingRules - When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
|
|
593
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
594
|
+
*/
|
|
595
|
+
saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }: SaveRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
596
|
+
/**
|
|
597
|
+
* Create a new synonym object or update the existing synonym object with the given object ID.
|
|
598
|
+
*
|
|
599
|
+
* @summary Save synonym.
|
|
600
|
+
* @param saveSynonym - The saveSynonym object.
|
|
601
|
+
* @param saveSynonym.indexName - The index in which to perform the request.
|
|
602
|
+
* @param saveSynonym.objectID - Unique identifier of an object.
|
|
603
|
+
* @param saveSynonym.synonymHit - The synonymHit object.
|
|
604
|
+
* @param saveSynonym.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
605
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
606
|
+
*/
|
|
607
|
+
saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }: SaveSynonymProps, requestOptions?: RequestOptions): Promise<SaveSynonymResponse>;
|
|
608
|
+
/**
|
|
609
|
+
* Create/update multiple synonym objects at once, potentially replacing the entire list of synonyms if replaceExistingSynonyms is true.
|
|
610
|
+
*
|
|
611
|
+
* @summary Save a batch of synonyms.
|
|
612
|
+
* @param saveSynonyms - The saveSynonyms object.
|
|
613
|
+
* @param saveSynonyms.indexName - The index in which to perform the request.
|
|
614
|
+
* @param saveSynonyms.synonymHit - The synonymHit object.
|
|
615
|
+
* @param saveSynonyms.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
616
|
+
* @param saveSynonyms.replaceExistingSynonyms - Replace all synonyms of the index with the ones sent with this request.
|
|
617
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
618
|
+
*/
|
|
619
|
+
saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
620
|
+
/**
|
|
621
|
+
* Perform a search operation targeting one or many indices.
|
|
622
|
+
*
|
|
623
|
+
* @summary Search multiple indices.
|
|
624
|
+
* @param searchMethodParams - The `search` requests and strategy.
|
|
625
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
626
|
+
*/
|
|
627
|
+
search<T_3>(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<SearchResponses<T_3>>;
|
|
628
|
+
/**
|
|
629
|
+
* Search the dictionary entries.
|
|
630
|
+
*
|
|
631
|
+
* @summary Search a dictionary entries.
|
|
632
|
+
* @param searchDictionaryEntries - The searchDictionaryEntries object.
|
|
633
|
+
* @param searchDictionaryEntries.dictionaryName - The dictionary to search in.
|
|
634
|
+
* @param searchDictionaryEntries.searchDictionaryEntriesParams - The searchDictionaryEntriesParams object.
|
|
635
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
636
|
+
*/
|
|
637
|
+
searchDictionaryEntries({ dictionaryName, searchDictionaryEntriesParams, }: SearchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
638
|
+
/**
|
|
639
|
+
* Search for values of a given facet, optionally restricting the returned values to those contained in objects matching other search criteria.
|
|
640
|
+
*
|
|
641
|
+
* @summary Search for values of a given facet.
|
|
642
|
+
* @param searchForFacetValues - The searchForFacetValues object.
|
|
643
|
+
* @param searchForFacetValues.indexName - The index in which to perform the request.
|
|
644
|
+
* @param searchForFacetValues.facetName - The facet name.
|
|
645
|
+
* @param searchForFacetValues.searchForFacetValuesRequest - The searchForFacetValuesRequest object.
|
|
646
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
647
|
+
*/
|
|
648
|
+
searchForFacetValues({ indexName, facetName, searchForFacetValuesRequest, }: SearchForFacetValuesProps, requestOptions?: RequestOptions): Promise<SearchForFacetValuesResponse>;
|
|
649
|
+
/**
|
|
650
|
+
* Search for rules matching various criteria.
|
|
651
|
+
*
|
|
652
|
+
* @summary Search for rules.
|
|
653
|
+
* @param searchRules - The searchRules object.
|
|
654
|
+
* @param searchRules.indexName - The index in which to perform the request.
|
|
655
|
+
* @param searchRules.searchRulesParams - The searchRulesParams object.
|
|
656
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
657
|
+
*/
|
|
658
|
+
searchRules({ indexName, searchRulesParams }: SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
|
|
659
|
+
/**
|
|
660
|
+
* Perform a search operation targeting one specific index.
|
|
661
|
+
*
|
|
662
|
+
* @summary Search in a single index.
|
|
663
|
+
* @param searchSingleIndex - The searchSingleIndex object.
|
|
664
|
+
* @param searchSingleIndex.indexName - The index in which to perform the request.
|
|
665
|
+
* @param searchSingleIndex.searchParams - The searchParams object.
|
|
666
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
667
|
+
*/
|
|
668
|
+
searchSingleIndex<T_4>({ indexName, searchParams }: SearchSingleIndexProps, requestOptions?: RequestOptions): Promise<SearchResponse<T_4>>;
|
|
669
|
+
/**
|
|
670
|
+
* Search or browse all synonyms, optionally filtering them by type.
|
|
671
|
+
*
|
|
672
|
+
* @summary Search synonyms.
|
|
673
|
+
* @param searchSynonyms - The searchSynonyms object.
|
|
674
|
+
* @param searchSynonyms.indexName - The index in which to perform the request.
|
|
675
|
+
* @param searchSynonyms.type - Only search for specific types of synonyms.
|
|
676
|
+
* @param searchSynonyms.page - 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).
|
|
677
|
+
* @param searchSynonyms.hitsPerPage - Maximum number of objects to retrieve.
|
|
678
|
+
* @param searchSynonyms.searchSynonymsParams - The body of the the `searchSynonyms` method.
|
|
679
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
680
|
+
*/
|
|
681
|
+
searchSynonyms({ indexName, type, page, hitsPerPage, searchSynonymsParams, }: SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
|
|
682
|
+
/**
|
|
683
|
+
* Search for userIDs. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds propagate to the different clusters. To keep updates moving quickly, the index of userIDs isn\'t built synchronously with the mapping. Instead, the index is built once every 12h, at the same time as the update of userID usage. For example, when you perform a modification like adding or moving a userID, the search will report an outdated value until the next rebuild of the mapping, which takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs data.
|
|
684
|
+
*
|
|
685
|
+
* @summary Search userID.
|
|
686
|
+
* @param searchUserIdsParams - The searchUserIdsParams object.
|
|
687
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
688
|
+
*/
|
|
689
|
+
searchUserIds(searchUserIdsParams: SearchUserIdsParams, requestOptions?: RequestOptions): Promise<SearchUserIdsResponse>;
|
|
690
|
+
/**
|
|
691
|
+
* Set dictionaries settings.
|
|
692
|
+
*
|
|
693
|
+
* @summary Set dictionaries settings.
|
|
694
|
+
* @param dictionarySettingsParams - The dictionarySettingsParams object.
|
|
695
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
696
|
+
*/
|
|
697
|
+
setDictionarySettings(dictionarySettingsParams: DictionarySettingsParams, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
698
|
+
/**
|
|
699
|
+
* Update settings of an index. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value.
|
|
700
|
+
*
|
|
701
|
+
* @summary Update settings of an index.
|
|
702
|
+
* @param setSettings - The setSettings object.
|
|
703
|
+
* @param setSettings.indexName - The index in which to perform the request.
|
|
704
|
+
* @param setSettings.indexSettings - The indexSettings object.
|
|
705
|
+
* @param setSettings.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
|
|
706
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
707
|
+
*/
|
|
708
|
+
setSettings({ indexName, indexSettings, forwardToReplicas }: SetSettingsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
|
|
709
|
+
/**
|
|
710
|
+
* Replace every permission of an existing API key.
|
|
711
|
+
*
|
|
712
|
+
* @summary Update an API key.
|
|
713
|
+
* @param updateApiKey - The updateApiKey object.
|
|
714
|
+
* @param updateApiKey.key - API Key string.
|
|
715
|
+
* @param updateApiKey.apiKey - The apiKey object.
|
|
716
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
717
|
+
*/
|
|
718
|
+
updateApiKey({ key, apiKey }: UpdateApiKeyProps, requestOptions?: RequestOptions): Promise<UpdateApiKeyResponse>;
|
|
719
|
+
};
|
|
720
|
+
/**
|
|
721
|
+
* The client type.
|
|
722
|
+
*/
|
|
723
|
+
export type SearchClient = ReturnType<typeof createSearchClient>;
|
|
724
724
|
//# sourceMappingURL=searchClient.d.ts.map
|