algoliasearch 5.0.0-alpha.53 → 5.0.0-alpha.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/algoliasearch/builds/models.d.ts +31 -31
- package/dist/algoliasearch/jest.config.d.ts +3 -3
- package/dist/algoliasearch.cjs.js +3487 -3485
- package/dist/algoliasearch.esm.browser.js +3620 -3618
- package/dist/algoliasearch.esm.node.js +3487 -3485
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/builds/browser.d.ts +87 -87
- package/dist/builds/node.d.ts +87 -87
- package/dist/client-abtesting/model/aBTest.d.ts +39 -39
- package/dist/client-abtesting/model/aBTestResponse.d.ts +14 -14
- package/dist/client-abtesting/model/abTestsVariant.d.ts +14 -14
- package/dist/client-abtesting/model/abTestsVariantSearchParams.d.ts +3 -3
- package/dist/client-abtesting/model/addABTestsRequest.d.ts +15 -15
- package/dist/client-abtesting/model/addABTestsVariant.d.ts +3 -3
- package/dist/client-abtesting/model/clientMethodProps.d.ts +100 -100
- package/dist/client-abtesting/model/customSearchParams.d.ts +3 -3
- package/dist/client-abtesting/model/errorBase.d.ts +6 -6
- package/dist/client-abtesting/model/index.d.ts +11 -11
- package/dist/client-abtesting/model/listABTestsResponse.d.ts +15 -15
- package/dist/client-abtesting/model/variant.d.ts +50 -50
- package/dist/client-abtesting/src/abtestingClient.d.ts +124 -124
- package/dist/client-analytics/model/averageClickEvent.d.ts +14 -14
- package/dist/client-analytics/model/clickPosition.d.ts +10 -10
- package/dist/client-analytics/model/clickThroughRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/clientMethodProps.d.ts +507 -507
- package/dist/client-analytics/model/conversionRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/direction.d.ts +1 -1
- package/dist/client-analytics/model/errorBase.d.ts +6 -6
- package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +15 -15
- package/dist/client-analytics/model/getClickPositionsResponse.d.ts +7 -7
- package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getConversationRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getNoClickRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getSearchesCountResponse.d.ts +11 -11
- package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +7 -7
- package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +7 -7
- package/dist/client-analytics/model/getStatusResponse.d.ts +6 -6
- package/dist/client-analytics/model/getTopCountriesResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFilterAttribute.d.ts +10 -10
- package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +18 -18
- package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +14 -14
- package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts +11 -11
- package/dist/client-analytics/model/getTopHitsResponse.d.ts +3 -3
- package/dist/client-analytics/model/getTopSearchesResponse.d.ts +3 -3
- package/dist/client-analytics/model/getUsersCountResponse.d.ts +11 -11
- package/dist/client-analytics/model/index.d.ts +44 -44
- package/dist/client-analytics/model/noClickRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/noResultsRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/orderBy.d.ts +1 -1
- package/dist/client-analytics/model/searchEvent.d.ts +10 -10
- package/dist/client-analytics/model/searchNoClickEvent.d.ts +14 -14
- package/dist/client-analytics/model/searchNoResultEvent.d.ts +14 -14
- package/dist/client-analytics/model/topCountry.d.ts +10 -10
- package/dist/client-analytics/model/topHit.d.ts +10 -10
- package/dist/client-analytics/model/topHitWithAnalytics.d.ts +30 -30
- package/dist/client-analytics/model/topHitsResponse.d.ts +7 -7
- package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +7 -7
- package/dist/client-analytics/model/topSearch.d.ts +14 -14
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +38 -38
- package/dist/client-analytics/model/topSearchesResponse.d.ts +7 -7
- package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +7 -7
- package/dist/client-analytics/model/userWithDate.d.ts +10 -10
- package/dist/client-analytics/src/analyticsClient.d.ts +318 -318
- package/dist/client-personalization/model/clientMethodProps.d.ts +78 -78
- package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +10 -10
- package/dist/client-personalization/model/errorBase.d.ts +6 -6
- package/dist/client-personalization/model/eventScoring.d.ts +14 -14
- package/dist/client-personalization/model/facetScoring.d.ts +10 -10
- package/dist/client-personalization/model/getUserTokenResponse.d.ts +14 -14
- package/dist/client-personalization/model/index.d.ts +8 -8
- package/dist/client-personalization/model/personalizationStrategyParams.d.ts +16 -16
- package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts +6 -6
- package/dist/client-personalization/src/personalizationClient.d.ts +112 -112
- package/dist/client-search/model/acl.d.ts +4 -4
- package/dist/client-search/model/action.d.ts +4 -4
- package/dist/client-search/model/addApiKeyResponse.d.ts +10 -10
- package/dist/client-search/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/client-search/model/alternativesAsExact.d.ts +1 -1
- package/dist/client-search/model/anchoring.d.ts +4 -4
- package/dist/client-search/model/apiKey.d.ts +38 -38
- package/dist/client-search/model/aroundRadius.d.ts +5 -5
- package/dist/client-search/model/aroundRadiusAll.d.ts +1 -1
- package/dist/client-search/model/assignUserIdParams.d.ts +9 -9
- package/dist/client-search/model/attributeToUpdate.d.ts +2 -2
- package/dist/client-search/model/automaticFacetFilter.d.ts +17 -17
- package/dist/client-search/model/automaticFacetFilters.d.ts +5 -5
- package/dist/client-search/model/baseGetApiKeyResponse.d.ts +10 -10
- package/dist/client-search/model/baseIndexSettings.d.ts +62 -62
- package/dist/client-search/model/baseSearchParams.d.ts +3 -3
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +122 -122
- package/dist/client-search/model/baseSearchResponse.d.ts +101 -101
- package/dist/client-search/model/batchAssignUserIdsParams.d.ts +13 -13
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +14 -14
- package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts +6 -6
- package/dist/client-search/model/batchParams.d.ts +7 -7
- package/dist/client-search/model/batchRequest.d.ts +8 -8
- package/dist/client-search/model/batchResponse.d.ts +10 -10
- package/dist/client-search/model/batchWriteParams.d.ts +7 -7
- package/dist/client-search/model/browseParams.d.ts +3 -3
- package/dist/client-search/model/browseParamsObject.d.ts +3 -3
- package/dist/client-search/model/browseResponse.d.ts +4 -4
- package/dist/client-search/model/builtInOperation.d.ts +11 -11
- package/dist/client-search/model/builtInOperationType.d.ts +4 -4
- package/dist/client-search/model/clientMethodProps.d.ts +715 -715
- package/dist/client-search/model/condition.d.ts +16 -16
- package/dist/client-search/model/consequence.d.ts +25 -25
- package/dist/client-search/model/consequenceHide.d.ts +9 -9
- package/dist/client-search/model/consequenceParams.d.ts +4 -4
- package/dist/client-search/model/consequenceQuery.d.ts +5 -5
- package/dist/client-search/model/consequenceQueryObject.d.ts +11 -11
- package/dist/client-search/model/createdAtResponse.d.ts +9 -9
- package/dist/client-search/model/cursor.d.ts +6 -6
- package/dist/client-search/model/deleteApiKeyResponse.d.ts +6 -6
- package/dist/client-search/model/deleteByParams.d.ts +26 -26
- package/dist/client-search/model/deleteSourceResponse.d.ts +6 -6
- package/dist/client-search/model/deletedAtResponse.d.ts +13 -13
- package/dist/client-search/model/dictionaryAction.d.ts +4 -4
- package/dist/client-search/model/dictionaryEntry.d.ts +27 -27
- package/dist/client-search/model/dictionaryEntryState.d.ts +4 -4
- package/dist/client-search/model/dictionaryLanguage.d.ts +9 -9
- package/dist/client-search/model/dictionarySettingsParams.d.ts +7 -7
- package/dist/client-search/model/dictionaryType.d.ts +1 -1
- package/dist/client-search/model/distinct.d.ts +4 -4
- package/dist/client-search/model/edit.d.ts +12 -12
- package/dist/client-search/model/editType.d.ts +4 -4
- package/dist/client-search/model/errorBase.d.ts +6 -6
- package/dist/client-search/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/client-search/model/facetFilters.d.ts +5 -5
- package/dist/client-search/model/facetHits.d.ts +14 -14
- package/dist/client-search/model/facetOrdering.d.ts +12 -12
- package/dist/client-search/model/facets.d.ts +9 -9
- package/dist/client-search/model/facetsStats.d.ts +18 -18
- package/dist/client-search/model/fetchedIndex.d.ts +46 -46
- package/dist/client-search/model/getApiKeyResponse.d.ts +3 -3
- package/dist/client-search/model/getDictionarySettingsResponse.d.ts +4 -4
- package/dist/client-search/model/getLogsResponse.d.ts +4 -4
- package/dist/client-search/model/getObjectsParams.d.ts +7 -7
- package/dist/client-search/model/getObjectsRequest.d.ts +17 -17
- package/dist/client-search/model/getObjectsResponse.d.ts +6 -6
- package/dist/client-search/model/getTaskResponse.d.ts +4 -4
- package/dist/client-search/model/getTopUserIdsResponse.d.ts +10 -10
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts +10 -10
- package/dist/client-search/model/highlightResult.d.ts +2 -2
- package/dist/client-search/model/highlightResultOption.d.ts +19 -19
- package/dist/client-search/model/hit.d.ts +22 -22
- package/dist/client-search/model/ignorePlurals.d.ts +4 -4
- package/dist/client-search/model/index.d.ts +154 -154
- package/dist/client-search/model/indexSettings.d.ts +6 -6
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +156 -156
- package/dist/client-search/model/languages.d.ts +9 -9
- package/dist/client-search/model/listApiKeysResponse.d.ts +7 -7
- package/dist/client-search/model/listClustersResponse.d.ts +9 -9
- package/dist/client-search/model/listIndicesResponse.d.ts +11 -11
- package/dist/client-search/model/listUserIdsResponse.d.ts +10 -10
- package/dist/client-search/model/log.d.ts +63 -63
- package/dist/client-search/model/logQuery.d.ts +14 -14
- package/dist/client-search/model/logType.d.ts +1 -1
- package/dist/client-search/model/matchLevel.d.ts +4 -4
- package/dist/client-search/model/matchedGeoLocation.d.ts +14 -14
- package/dist/client-search/model/mixedSearchFilters.d.ts +1 -1
- package/dist/client-search/model/multipleBatchRequest.d.ts +12 -12
- package/dist/client-search/model/multipleBatchResponse.d.ts +10 -10
- package/dist/client-search/model/numericFilters.d.ts +5 -5
- package/dist/client-search/model/operationIndexParams.d.ts +13 -13
- package/dist/client-search/model/operationType.d.ts +4 -4
- package/dist/client-search/model/optionalFilters.d.ts +5 -5
- package/dist/client-search/model/params.d.ts +12 -12
- package/dist/client-search/model/personalization.d.ts +14 -14
- package/dist/client-search/model/promote.d.ts +3 -3
- package/dist/client-search/model/promoteObjectID.d.ts +13 -13
- package/dist/client-search/model/promoteObjectIDs.d.ts +13 -13
- package/dist/client-search/model/queryType.d.ts +4 -4
- package/dist/client-search/model/rankingInfo.d.ts +50 -50
- package/dist/client-search/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/client-search/model/removeStopWords.d.ts +4 -4
- package/dist/client-search/model/removeUserIdResponse.d.ts +6 -6
- package/dist/client-search/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/client-search/model/renderingContent.d.ts +7 -7
- package/dist/client-search/model/replaceSourceResponse.d.ts +6 -6
- package/dist/client-search/model/rule.d.ts +29 -29
- package/dist/client-search/model/saveObjectResponse.d.ts +11 -11
- package/dist/client-search/model/saveSynonymResponse.d.ts +14 -14
- package/dist/client-search/model/scopeType.d.ts +1 -1
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +21 -21
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts +14 -14
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts +4 -4
- package/dist/client-search/model/searchForFacets.d.ts +3 -3
- package/dist/client-search/model/searchForFacetsOptions.d.ts +20 -20
- package/dist/client-search/model/searchForHits.d.ts +3 -3
- package/dist/client-search/model/searchForHitsOptions.d.ts +12 -12
- package/dist/client-search/model/searchHits.d.ts +4 -4
- package/dist/client-search/model/searchMethodParams.d.ts +6 -6
- package/dist/client-search/model/searchParams.d.ts +3 -3
- package/dist/client-search/model/searchParamsObject.d.ts +3 -3
- package/dist/client-search/model/searchParamsQuery.d.ts +6 -6
- package/dist/client-search/model/searchParamsString.d.ts +6 -6
- package/dist/client-search/model/searchQuery.d.ts +3 -3
- package/dist/client-search/model/searchResponse.d.ts +3 -3
- package/dist/client-search/model/searchResponses.d.ts +4 -4
- package/dist/client-search/model/searchRulesParams.d.ts +31 -31
- package/dist/client-search/model/searchRulesResponse.d.ts +19 -19
- package/dist/client-search/model/searchStrategy.d.ts +1 -1
- package/dist/client-search/model/searchSynonymsParams.d.ts +6 -6
- package/dist/client-search/model/searchSynonymsResponse.d.ts +11 -11
- package/dist/client-search/model/searchTypeDefault.d.ts +4 -4
- package/dist/client-search/model/searchTypeFacet.d.ts +4 -4
- package/dist/client-search/model/searchUserIdsParams.d.ts +21 -21
- package/dist/client-search/model/searchUserIdsResponse.d.ts +26 -26
- package/dist/client-search/model/snippetResult.d.ts +2 -2
- package/dist/client-search/model/snippetResultOption.d.ts +11 -11
- package/dist/client-search/model/sortRemainingBy.d.ts +4 -4
- package/dist/client-search/model/source.d.ts +13 -13
- package/dist/client-search/model/standardEntries.d.ts +17 -17
- package/dist/client-search/model/synonymHit.d.ts +35 -35
- package/dist/client-search/model/synonymType.d.ts +4 -4
- package/dist/client-search/model/tagFilters.d.ts +5 -5
- package/dist/client-search/model/taskStatus.d.ts +1 -1
- package/dist/client-search/model/timeRange.d.ts +10 -10
- package/dist/client-search/model/typoTolerance.d.ts +5 -5
- package/dist/client-search/model/typoToleranceEnum.d.ts +1 -1
- package/dist/client-search/model/updateApiKeyResponse.d.ts +10 -10
- package/dist/client-search/model/updatedAtResponse.d.ts +13 -13
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +17 -17
- package/dist/client-search/model/updatedRuleResponse.d.ts +14 -14
- package/dist/client-search/model/userHighlightResult.d.ts +11 -11
- package/dist/client-search/model/userHit.d.ts +24 -24
- package/dist/client-search/model/userId.d.ts +21 -21
- package/dist/client-search/model/value.d.ts +8 -8
- package/dist/client-search/src/searchClient.d.ts +723 -723
- package/dist/lite/builds/browser.d.ts +5 -5
- package/dist/lite/builds/node.d.ts +5 -5
- package/dist/lite/lite.cjs.js +183 -183
- package/dist/lite/lite.esm.browser.js +307 -307
- package/dist/lite/lite.esm.node.js +183 -183
- package/dist/lite/lite.umd.js +2 -2
- package/dist/lite/model/acl.d.ts +4 -4
- package/dist/lite/model/action.d.ts +4 -4
- package/dist/lite/model/addApiKeyResponse.d.ts +10 -10
- package/dist/lite/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/lite/model/alternativesAsExact.d.ts +1 -1
- package/dist/lite/model/anchoring.d.ts +4 -4
- package/dist/lite/model/apiKey.d.ts +38 -38
- package/dist/lite/model/aroundRadius.d.ts +5 -5
- package/dist/lite/model/aroundRadiusAll.d.ts +1 -1
- package/dist/lite/model/attributeToUpdate.d.ts +2 -2
- package/dist/lite/model/automaticFacetFilter.d.ts +17 -17
- package/dist/lite/model/automaticFacetFilters.d.ts +5 -5
- package/dist/lite/model/baseGetApiKeyResponse.d.ts +10 -10
- package/dist/lite/model/baseIndexSettings.d.ts +62 -62
- package/dist/lite/model/baseSearchParams.d.ts +3 -3
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +122 -122
- package/dist/lite/model/baseSearchResponse.d.ts +101 -101
- package/dist/lite/model/browseParams.d.ts +3 -3
- package/dist/lite/model/browseParamsObject.d.ts +3 -3
- package/dist/lite/model/browseResponse.d.ts +4 -4
- package/dist/lite/model/builtInOperation.d.ts +11 -11
- package/dist/lite/model/builtInOperationType.d.ts +4 -4
- package/dist/lite/model/clientMethodProps.d.ts +48 -48
- package/dist/lite/model/condition.d.ts +16 -16
- package/dist/lite/model/consequence.d.ts +25 -25
- package/dist/lite/model/consequenceHide.d.ts +9 -9
- package/dist/lite/model/consequenceParams.d.ts +4 -4
- package/dist/lite/model/consequenceQuery.d.ts +5 -5
- package/dist/lite/model/consequenceQueryObject.d.ts +11 -11
- package/dist/lite/model/cursor.d.ts +6 -6
- package/dist/lite/model/deleteByParams.d.ts +26 -26
- package/dist/lite/model/dictionaryAction.d.ts +4 -4
- package/dist/lite/model/dictionaryEntry.d.ts +27 -27
- package/dist/lite/model/dictionaryEntryState.d.ts +4 -4
- package/dist/lite/model/dictionaryLanguage.d.ts +9 -9
- package/dist/lite/model/dictionaryType.d.ts +1 -1
- package/dist/lite/model/distinct.d.ts +4 -4
- package/dist/lite/model/edit.d.ts +12 -12
- package/dist/lite/model/editType.d.ts +4 -4
- package/dist/lite/model/errorBase.d.ts +6 -6
- package/dist/lite/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/lite/model/facetFilters.d.ts +5 -5
- package/dist/lite/model/facetOrdering.d.ts +12 -12
- package/dist/lite/model/facets.d.ts +9 -9
- package/dist/lite/model/facetsStats.d.ts +18 -18
- package/dist/lite/model/fetchedIndex.d.ts +46 -46
- package/dist/lite/model/getApiKeyResponse.d.ts +3 -3
- package/dist/lite/model/highlightResult.d.ts +2 -2
- package/dist/lite/model/highlightResultOption.d.ts +19 -19
- package/dist/lite/model/hit.d.ts +22 -22
- package/dist/lite/model/ignorePlurals.d.ts +4 -4
- package/dist/lite/model/index.d.ts +107 -107
- package/dist/lite/model/indexSettings.d.ts +6 -6
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts +156 -156
- package/dist/lite/model/languages.d.ts +9 -9
- package/dist/lite/model/listIndicesResponse.d.ts +11 -11
- package/dist/lite/model/logType.d.ts +1 -1
- package/dist/lite/model/matchLevel.d.ts +4 -4
- package/dist/lite/model/matchedGeoLocation.d.ts +14 -14
- package/dist/lite/model/mixedSearchFilters.d.ts +1 -1
- package/dist/lite/model/numericFilters.d.ts +5 -5
- package/dist/lite/model/operationType.d.ts +4 -4
- package/dist/lite/model/optionalFilters.d.ts +5 -5
- package/dist/lite/model/params.d.ts +12 -12
- package/dist/lite/model/personalization.d.ts +14 -14
- package/dist/lite/model/promote.d.ts +3 -3
- package/dist/lite/model/promoteObjectID.d.ts +13 -13
- package/dist/lite/model/promoteObjectIDs.d.ts +13 -13
- package/dist/lite/model/queryType.d.ts +4 -4
- package/dist/lite/model/rankingInfo.d.ts +50 -50
- package/dist/lite/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/lite/model/removeStopWords.d.ts +4 -4
- package/dist/lite/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/lite/model/renderingContent.d.ts +7 -7
- package/dist/lite/model/rule.d.ts +29 -29
- package/dist/lite/model/scopeType.d.ts +1 -1
- package/dist/lite/model/searchForFacets.d.ts +3 -3
- package/dist/lite/model/searchForFacetsOptions.d.ts +20 -20
- package/dist/lite/model/searchForHits.d.ts +3 -3
- package/dist/lite/model/searchForHitsOptions.d.ts +12 -12
- package/dist/lite/model/searchHits.d.ts +4 -4
- package/dist/lite/model/searchMethodParams.d.ts +6 -6
- package/dist/lite/model/searchParams.d.ts +3 -3
- package/dist/lite/model/searchParamsObject.d.ts +3 -3
- package/dist/lite/model/searchParamsQuery.d.ts +6 -6
- package/dist/lite/model/searchParamsString.d.ts +6 -6
- package/dist/lite/model/searchQuery.d.ts +3 -3
- package/dist/lite/model/searchResponse.d.ts +3 -3
- package/dist/lite/model/searchResponses.d.ts +4 -4
- package/dist/lite/model/searchStrategy.d.ts +1 -1
- package/dist/lite/model/searchSynonymsResponse.d.ts +11 -11
- package/dist/lite/model/searchTypeDefault.d.ts +4 -4
- package/dist/lite/model/searchTypeFacet.d.ts +4 -4
- package/dist/lite/model/snippetResult.d.ts +2 -2
- package/dist/lite/model/snippetResultOption.d.ts +11 -11
- package/dist/lite/model/sortRemainingBy.d.ts +4 -4
- package/dist/lite/model/source.d.ts +13 -13
- package/dist/lite/model/standardEntries.d.ts +17 -17
- package/dist/lite/model/synonymHit.d.ts +35 -35
- package/dist/lite/model/synonymType.d.ts +4 -4
- package/dist/lite/model/tagFilters.d.ts +5 -5
- package/dist/lite/model/taskStatus.d.ts +1 -1
- package/dist/lite/model/timeRange.d.ts +10 -10
- package/dist/lite/model/typoTolerance.d.ts +5 -5
- package/dist/lite/model/typoToleranceEnum.d.ts +1 -1
- package/dist/lite/model/updatedRuleResponse.d.ts +14 -14
- package/dist/lite/model/userId.d.ts +21 -21
- package/dist/lite/model/value.d.ts +8 -8
- package/dist/lite/src/liteClient.d.ts +50 -50
- package/lite/src/liteClient.ts +1 -1
- package/package.json +12 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ClientOptions } from '@algolia/client-common';
|
|
2
|
-
import type { LiteClient } from '../src/liteClient';
|
|
3
|
-
export { apiClientVersion, LiteClient } from '../src/liteClient';
|
|
4
|
-
export * from '../model';
|
|
5
|
-
export declare function liteClient(appId: string, apiKey: string, options?: ClientOptions): LiteClient;
|
|
1
|
+
import type { ClientOptions } from '@algolia/client-common';
|
|
2
|
+
import type { LiteClient } from '../src/liteClient';
|
|
3
|
+
export { apiClientVersion, LiteClient } from '../src/liteClient';
|
|
4
|
+
export * from '../model';
|
|
5
|
+
export declare function liteClient(appId: string, apiKey: string, options?: ClientOptions): LiteClient;
|
|
6
6
|
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ClientOptions } from '@algolia/client-common';
|
|
2
|
-
import type { LiteClient } from '../src/liteClient';
|
|
3
|
-
export { apiClientVersion, LiteClient } from '../src/liteClient';
|
|
4
|
-
export * from '../model';
|
|
5
|
-
export declare function liteClient(appId: string, apiKey: string, options?: ClientOptions): LiteClient;
|
|
1
|
+
import type { ClientOptions } from '@algolia/client-common';
|
|
2
|
+
import type { LiteClient } from '../src/liteClient';
|
|
3
|
+
export { apiClientVersion, LiteClient } from '../src/liteClient';
|
|
4
|
+
export * from '../model';
|
|
5
|
+
export declare function liteClient(appId: string, apiKey: string, options?: ClientOptions): LiteClient;
|
|
6
6
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/lite/lite.cjs.js
CHANGED
|
@@ -5,191 +5,191 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var clientCommon = require('@algolia/client-common');
|
|
6
6
|
var requesterNodeHttp = require('@algolia/requester-node-http');
|
|
7
7
|
|
|
8
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
9
|
-
const apiClientVersion = '5.0.0-alpha.
|
|
10
|
-
function getDefaultHosts(appId) {
|
|
11
|
-
return [
|
|
12
|
-
{
|
|
13
|
-
url: `${appId}-dsn.algolia.net`,
|
|
14
|
-
accept: 'read',
|
|
15
|
-
protocol: 'https',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
url: `${appId}.algolia.net`,
|
|
19
|
-
accept: 'write',
|
|
20
|
-
protocol: 'https',
|
|
21
|
-
},
|
|
22
|
-
].concat(clientCommon.shuffle([
|
|
23
|
-
{
|
|
24
|
-
url: `${appId}-1.algolianet.com`,
|
|
25
|
-
accept: 'readWrite',
|
|
26
|
-
protocol: 'https',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
url: `${appId}-2.algolianet.com`,
|
|
30
|
-
accept: 'readWrite',
|
|
31
|
-
protocol: 'https',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
url: `${appId}-3.algolianet.com`,
|
|
35
|
-
accept: 'readWrite',
|
|
36
|
-
protocol: 'https',
|
|
37
|
-
},
|
|
38
|
-
]));
|
|
39
|
-
}
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
41
|
-
function createLiteClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }) {
|
|
42
|
-
const auth = clientCommon.createAuth(appIdOption, apiKeyOption, authMode);
|
|
43
|
-
const transporter = clientCommon.createTransporter({
|
|
44
|
-
hosts: getDefaultHosts(appIdOption),
|
|
45
|
-
...options,
|
|
46
|
-
algoliaAgent: clientCommon.getAlgoliaAgent({
|
|
47
|
-
algoliaAgents,
|
|
48
|
-
client: 'Lite',
|
|
49
|
-
version: apiClientVersion,
|
|
50
|
-
}),
|
|
51
|
-
baseHeaders: {
|
|
52
|
-
'content-type': 'text/plain',
|
|
53
|
-
...auth.headers(),
|
|
54
|
-
...options.baseHeaders,
|
|
55
|
-
},
|
|
56
|
-
baseQueryParameters: {
|
|
57
|
-
...auth.queryParameters(),
|
|
58
|
-
...options.baseQueryParameters,
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
return {
|
|
62
|
-
transporter,
|
|
63
|
-
/**
|
|
64
|
-
* The `appId` currently in use.
|
|
65
|
-
*/
|
|
66
|
-
appId: appIdOption,
|
|
67
|
-
/**
|
|
68
|
-
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
69
|
-
*/
|
|
70
|
-
clearCache() {
|
|
71
|
-
return Promise.all([
|
|
72
|
-
transporter.requestsCache.clear(),
|
|
73
|
-
transporter.responsesCache.clear(),
|
|
74
|
-
]).then(() => undefined);
|
|
75
|
-
},
|
|
76
|
-
/**
|
|
77
|
-
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
78
|
-
*/
|
|
79
|
-
get _ua() {
|
|
80
|
-
return transporter.algoliaAgent.value;
|
|
81
|
-
},
|
|
82
|
-
/**
|
|
83
|
-
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
84
|
-
*
|
|
85
|
-
* @param segment - The algolia agent (user-agent) segment to add.
|
|
86
|
-
* @param version - The version of the agent.
|
|
87
|
-
*/
|
|
88
|
-
addAlgoliaAgent(segment, version) {
|
|
89
|
-
transporter.algoliaAgent.add({ segment, version });
|
|
90
|
-
},
|
|
91
|
-
/**
|
|
92
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
93
|
-
*
|
|
94
|
-
* @summary Send requests to the Algolia REST API.
|
|
95
|
-
* @param post - The post object.
|
|
96
|
-
* @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
97
|
-
* @param post.parameters - Query parameters to be applied to the current query.
|
|
98
|
-
* @param post.body - The parameters to send with the custom request.
|
|
99
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
100
|
-
*/
|
|
101
|
-
post({ path, parameters, body }, requestOptions) {
|
|
102
|
-
if (!path) {
|
|
103
|
-
throw new Error('Parameter `path` is required when calling `post`.');
|
|
104
|
-
}
|
|
105
|
-
const requestPath = '/1{path}'.replace('{path}', path);
|
|
106
|
-
const headers = {};
|
|
107
|
-
const queryParameters = parameters ? parameters : {};
|
|
108
|
-
const request = {
|
|
109
|
-
method: 'POST',
|
|
110
|
-
path: requestPath,
|
|
111
|
-
queryParameters,
|
|
112
|
-
headers,
|
|
113
|
-
data: body ? body : {},
|
|
114
|
-
};
|
|
115
|
-
return transporter.request(request, requestOptions);
|
|
116
|
-
},
|
|
117
|
-
/**
|
|
118
|
-
* Perform a search operation targeting one or many indices.
|
|
119
|
-
*
|
|
120
|
-
* @summary Search multiple indices.
|
|
121
|
-
* @param searchMethodParams - The `search` requests and strategy.
|
|
122
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
123
|
-
*/
|
|
124
|
-
search(searchMethodParams, requestOptions) {
|
|
125
|
-
if (searchMethodParams && Array.isArray(searchMethodParams)) {
|
|
126
|
-
const newSignatureRequest = {
|
|
127
|
-
requests: searchMethodParams.map(({ params, ...legacyRequest }) => {
|
|
128
|
-
if (legacyRequest.type === 'facet') {
|
|
129
|
-
return {
|
|
130
|
-
...legacyRequest,
|
|
131
|
-
...params,
|
|
132
|
-
type: 'facet',
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
return {
|
|
136
|
-
...legacyRequest,
|
|
137
|
-
...params,
|
|
138
|
-
facet: undefined,
|
|
139
|
-
maxFacetHits: undefined,
|
|
140
|
-
facetQuery: undefined,
|
|
141
|
-
};
|
|
142
|
-
}),
|
|
143
|
-
};
|
|
144
|
-
// eslint-disable-next-line no-param-reassign
|
|
145
|
-
searchMethodParams = newSignatureRequest;
|
|
146
|
-
}
|
|
147
|
-
if (!searchMethodParams) {
|
|
148
|
-
throw new Error('Parameter `searchMethodParams` is required when calling `search`.');
|
|
149
|
-
}
|
|
150
|
-
if (!searchMethodParams.requests) {
|
|
151
|
-
throw new Error('Parameter `searchMethodParams.requests` is required when calling `search`.');
|
|
152
|
-
}
|
|
153
|
-
const requestPath = '/1/indexes/*/queries';
|
|
154
|
-
const headers = {};
|
|
155
|
-
const queryParameters = {};
|
|
156
|
-
const request = {
|
|
157
|
-
method: 'POST',
|
|
158
|
-
path: requestPath,
|
|
159
|
-
queryParameters,
|
|
160
|
-
headers,
|
|
161
|
-
data: searchMethodParams,
|
|
162
|
-
useReadTransporter: true,
|
|
163
|
-
cacheable: true,
|
|
164
|
-
};
|
|
165
|
-
return transporter.request(request, requestOptions);
|
|
166
|
-
},
|
|
167
|
-
};
|
|
8
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
9
|
+
const apiClientVersion = '5.0.0-alpha.54';
|
|
10
|
+
function getDefaultHosts(appId) {
|
|
11
|
+
return [
|
|
12
|
+
{
|
|
13
|
+
url: `${appId}-dsn.algolia.net`,
|
|
14
|
+
accept: 'read',
|
|
15
|
+
protocol: 'https',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
url: `${appId}.algolia.net`,
|
|
19
|
+
accept: 'write',
|
|
20
|
+
protocol: 'https',
|
|
21
|
+
},
|
|
22
|
+
].concat(clientCommon.shuffle([
|
|
23
|
+
{
|
|
24
|
+
url: `${appId}-1.algolianet.com`,
|
|
25
|
+
accept: 'readWrite',
|
|
26
|
+
protocol: 'https',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
url: `${appId}-2.algolianet.com`,
|
|
30
|
+
accept: 'readWrite',
|
|
31
|
+
protocol: 'https',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
url: `${appId}-3.algolianet.com`,
|
|
35
|
+
accept: 'readWrite',
|
|
36
|
+
protocol: 'https',
|
|
37
|
+
},
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
41
|
+
function createLiteClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }) {
|
|
42
|
+
const auth = clientCommon.createAuth(appIdOption, apiKeyOption, authMode);
|
|
43
|
+
const transporter = clientCommon.createTransporter({
|
|
44
|
+
hosts: getDefaultHosts(appIdOption),
|
|
45
|
+
...options,
|
|
46
|
+
algoliaAgent: clientCommon.getAlgoliaAgent({
|
|
47
|
+
algoliaAgents,
|
|
48
|
+
client: 'Lite',
|
|
49
|
+
version: apiClientVersion,
|
|
50
|
+
}),
|
|
51
|
+
baseHeaders: {
|
|
52
|
+
'content-type': 'text/plain',
|
|
53
|
+
...auth.headers(),
|
|
54
|
+
...options.baseHeaders,
|
|
55
|
+
},
|
|
56
|
+
baseQueryParameters: {
|
|
57
|
+
...auth.queryParameters(),
|
|
58
|
+
...options.baseQueryParameters,
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
return {
|
|
62
|
+
transporter,
|
|
63
|
+
/**
|
|
64
|
+
* The `appId` currently in use.
|
|
65
|
+
*/
|
|
66
|
+
appId: appIdOption,
|
|
67
|
+
/**
|
|
68
|
+
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
69
|
+
*/
|
|
70
|
+
clearCache() {
|
|
71
|
+
return Promise.all([
|
|
72
|
+
transporter.requestsCache.clear(),
|
|
73
|
+
transporter.responsesCache.clear(),
|
|
74
|
+
]).then(() => undefined);
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
78
|
+
*/
|
|
79
|
+
get _ua() {
|
|
80
|
+
return transporter.algoliaAgent.value;
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
84
|
+
*
|
|
85
|
+
* @param segment - The algolia agent (user-agent) segment to add.
|
|
86
|
+
* @param version - The version of the agent.
|
|
87
|
+
*/
|
|
88
|
+
addAlgoliaAgent(segment, version) {
|
|
89
|
+
transporter.algoliaAgent.add({ segment, version });
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
93
|
+
*
|
|
94
|
+
* @summary Send requests to the Algolia REST API.
|
|
95
|
+
* @param post - The post object.
|
|
96
|
+
* @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
97
|
+
* @param post.parameters - Query parameters to be applied to the current query.
|
|
98
|
+
* @param post.body - The parameters to send with the custom request.
|
|
99
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
100
|
+
*/
|
|
101
|
+
post({ path, parameters, body }, requestOptions) {
|
|
102
|
+
if (!path) {
|
|
103
|
+
throw new Error('Parameter `path` is required when calling `post`.');
|
|
104
|
+
}
|
|
105
|
+
const requestPath = '/1{path}'.replace('{path}', path);
|
|
106
|
+
const headers = {};
|
|
107
|
+
const queryParameters = parameters ? parameters : {};
|
|
108
|
+
const request = {
|
|
109
|
+
method: 'POST',
|
|
110
|
+
path: requestPath,
|
|
111
|
+
queryParameters,
|
|
112
|
+
headers,
|
|
113
|
+
data: body ? body : {},
|
|
114
|
+
};
|
|
115
|
+
return transporter.request(request, requestOptions);
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
* Perform a search operation targeting one or many indices.
|
|
119
|
+
*
|
|
120
|
+
* @summary Search multiple indices.
|
|
121
|
+
* @param searchMethodParams - The `search` requests and strategy.
|
|
122
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
123
|
+
*/
|
|
124
|
+
search(searchMethodParams, requestOptions) {
|
|
125
|
+
if (searchMethodParams && Array.isArray(searchMethodParams)) {
|
|
126
|
+
const newSignatureRequest = {
|
|
127
|
+
requests: searchMethodParams.map(({ params, ...legacyRequest }) => {
|
|
128
|
+
if (legacyRequest.type === 'facet') {
|
|
129
|
+
return {
|
|
130
|
+
...legacyRequest,
|
|
131
|
+
...params,
|
|
132
|
+
type: 'facet',
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
...legacyRequest,
|
|
137
|
+
...params,
|
|
138
|
+
facet: undefined,
|
|
139
|
+
maxFacetHits: undefined,
|
|
140
|
+
facetQuery: undefined,
|
|
141
|
+
};
|
|
142
|
+
}),
|
|
143
|
+
};
|
|
144
|
+
// eslint-disable-next-line no-param-reassign
|
|
145
|
+
searchMethodParams = newSignatureRequest;
|
|
146
|
+
}
|
|
147
|
+
if (!searchMethodParams) {
|
|
148
|
+
throw new Error('Parameter `searchMethodParams` is required when calling `search`.');
|
|
149
|
+
}
|
|
150
|
+
if (!searchMethodParams.requests) {
|
|
151
|
+
throw new Error('Parameter `searchMethodParams.requests` is required when calling `search`.');
|
|
152
|
+
}
|
|
153
|
+
const requestPath = '/1/indexes/*/queries';
|
|
154
|
+
const headers = {};
|
|
155
|
+
const queryParameters = {};
|
|
156
|
+
const request = {
|
|
157
|
+
method: 'POST',
|
|
158
|
+
path: requestPath,
|
|
159
|
+
queryParameters,
|
|
160
|
+
headers,
|
|
161
|
+
data: searchMethodParams,
|
|
162
|
+
useReadTransporter: true,
|
|
163
|
+
cacheable: true,
|
|
164
|
+
};
|
|
165
|
+
return transporter.request(request, requestOptions);
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
171
|
-
function liteClient(appId, apiKey, options) {
|
|
172
|
-
if (!appId || typeof appId !== 'string') {
|
|
173
|
-
throw new Error('`appId` is missing.');
|
|
174
|
-
}
|
|
175
|
-
if (!apiKey || typeof apiKey !== 'string') {
|
|
176
|
-
throw new Error('`apiKey` is missing.');
|
|
177
|
-
}
|
|
178
|
-
return createLiteClient({
|
|
179
|
-
appId,
|
|
180
|
-
apiKey,
|
|
181
|
-
timeouts: {
|
|
182
|
-
connect: clientCommon.DEFAULT_CONNECT_TIMEOUT_NODE,
|
|
183
|
-
read: clientCommon.DEFAULT_READ_TIMEOUT_NODE,
|
|
184
|
-
write: clientCommon.DEFAULT_WRITE_TIMEOUT_NODE,
|
|
185
|
-
},
|
|
186
|
-
requester: requesterNodeHttp.createHttpRequester(),
|
|
187
|
-
algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
|
|
188
|
-
responsesCache: clientCommon.createNullCache(),
|
|
189
|
-
requestsCache: clientCommon.createNullCache(),
|
|
190
|
-
hostsCache: clientCommon.createMemoryCache(),
|
|
191
|
-
...options,
|
|
192
|
-
});
|
|
170
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
171
|
+
function liteClient(appId, apiKey, options) {
|
|
172
|
+
if (!appId || typeof appId !== 'string') {
|
|
173
|
+
throw new Error('`appId` is missing.');
|
|
174
|
+
}
|
|
175
|
+
if (!apiKey || typeof apiKey !== 'string') {
|
|
176
|
+
throw new Error('`apiKey` is missing.');
|
|
177
|
+
}
|
|
178
|
+
return createLiteClient({
|
|
179
|
+
appId,
|
|
180
|
+
apiKey,
|
|
181
|
+
timeouts: {
|
|
182
|
+
connect: clientCommon.DEFAULT_CONNECT_TIMEOUT_NODE,
|
|
183
|
+
read: clientCommon.DEFAULT_READ_TIMEOUT_NODE,
|
|
184
|
+
write: clientCommon.DEFAULT_WRITE_TIMEOUT_NODE,
|
|
185
|
+
},
|
|
186
|
+
requester: requesterNodeHttp.createHttpRequester(),
|
|
187
|
+
algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
|
|
188
|
+
responsesCache: clientCommon.createNullCache(),
|
|
189
|
+
requestsCache: clientCommon.createNullCache(),
|
|
190
|
+
hostsCache: clientCommon.createMemoryCache(),
|
|
191
|
+
...options,
|
|
192
|
+
});
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
exports.apiClientVersion = apiClientVersion;
|