algoliasearch 5.0.0-alpha.8 → 5.0.0-alpha.81
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/builds/browser.ts +1 -1
- package/builds/models.ts +1 -1
- package/builds/node.ts +1 -1
- package/dist/{builds → algoliasearch/builds}/models.d.ts +31 -31
- package/dist/algoliasearch/builds/models.d.ts.map +1 -0
- package/dist/algoliasearch/jest.config.d.ts +3 -3
- package/dist/{algoliasearch.cjs.js → algoliasearch.cjs} +3499 -3481
- package/dist/algoliasearch.esm.browser.js +3691 -3725
- package/dist/algoliasearch.esm.node.js +3499 -3479
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/builds/browser.d.ts +87 -87
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +87 -87
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/client-abtesting/model/aBTest.d.ts +35 -39
- package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
- package/dist/client-abtesting/model/aBTestResponse.d.ts +14 -14
- package/dist/client-abtesting/model/aBTestResponse.d.ts.map +1 -1
- package/dist/client-abtesting/model/abTestsVariant.d.ts +14 -14
- package/dist/client-abtesting/model/abTestsVariant.d.ts.map +1 -1
- package/dist/client-abtesting/model/abTestsVariantSearchParams.d.ts +3 -3
- package/dist/client-abtesting/model/abTestsVariantSearchParams.d.ts.map +1 -1
- package/dist/client-abtesting/model/addABTestsRequest.d.ts +15 -15
- package/dist/client-abtesting/model/addABTestsRequest.d.ts.map +1 -1
- package/dist/client-abtesting/model/addABTestsVariant.d.ts +3 -3
- package/dist/client-abtesting/model/addABTestsVariant.d.ts.map +1 -1
- package/dist/client-abtesting/model/clientMethodProps.d.ts +108 -100
- package/dist/client-abtesting/model/clientMethodProps.d.ts.map +1 -1
- package/dist/client-abtesting/model/customSearchParams.d.ts +6 -3
- package/dist/client-abtesting/model/customSearchParams.d.ts.map +1 -1
- package/dist/client-abtesting/model/errorBase.d.ts +6 -6
- package/dist/client-abtesting/model/errorBase.d.ts.map +1 -1
- 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/listABTestsResponse.d.ts.map +1 -1
- package/dist/client-abtesting/model/variant.d.ts +58 -50
- package/dist/client-abtesting/model/variant.d.ts.map +1 -1
- package/dist/client-abtesting/src/abtestingClient.d.ts +126 -124
- package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
- package/dist/client-analytics/model/averageClickEvent.d.ts +14 -14
- package/dist/client-analytics/model/averageClickEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/clickPosition.d.ts +10 -10
- package/dist/client-analytics/model/clickPosition.d.ts.map +1 -1
- package/dist/client-analytics/model/clickThroughRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/clickThroughRateEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/clientMethodProps.d.ts +507 -507
- package/dist/client-analytics/model/clientMethodProps.d.ts.map +1 -1
- package/dist/client-analytics/model/conversionRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/conversionRateEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/direction.d.ts +1 -1
- package/dist/client-analytics/model/direction.d.ts.map +1 -1
- package/dist/client-analytics/model/errorBase.d.ts +6 -6
- package/dist/client-analytics/model/errorBase.d.ts.map +1 -1
- package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +15 -15
- package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getClickPositionsResponse.d.ts +7 -7
- package/dist/client-analytics/model/getClickPositionsResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getClickThroughRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getConversationRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getConversationRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getNoClickRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getNoClickRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +19 -19
- package/dist/client-analytics/model/getNoResultsRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getSearchesCountResponse.d.ts +11 -11
- package/dist/client-analytics/model/getSearchesCountResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +7 -7
- package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +7 -7
- package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getStatusResponse.d.ts +6 -6
- package/dist/client-analytics/model/getStatusResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopCountriesResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopCountriesResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFilterAttribute.d.ts +10 -10
- package/dist/client-analytics/model/getTopFilterAttribute.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +18 -18
- package/dist/client-analytics/model/getTopFilterForAttribute.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +7 -7
- package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +14 -14
- package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts +11 -11
- package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopHitsResponse.d.ts +3 -3
- package/dist/client-analytics/model/getTopHitsResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopSearchesResponse.d.ts +3 -3
- package/dist/client-analytics/model/getTopSearchesResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getUsersCountResponse.d.ts +11 -11
- package/dist/client-analytics/model/getUsersCountResponse.d.ts.map +1 -1
- 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/noClickRateEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/noResultsRateEvent.d.ts +18 -18
- package/dist/client-analytics/model/noResultsRateEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/orderBy.d.ts +4 -1
- package/dist/client-analytics/model/orderBy.d.ts.map +1 -1
- package/dist/client-analytics/model/searchEvent.d.ts +10 -10
- package/dist/client-analytics/model/searchEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/searchNoClickEvent.d.ts +14 -14
- package/dist/client-analytics/model/searchNoClickEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/searchNoResultEvent.d.ts +14 -14
- package/dist/client-analytics/model/searchNoResultEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/topCountry.d.ts +10 -10
- package/dist/client-analytics/model/topCountry.d.ts.map +1 -1
- package/dist/client-analytics/model/topHit.d.ts +10 -10
- package/dist/client-analytics/model/topHit.d.ts.map +1 -1
- package/dist/client-analytics/model/topHitWithAnalytics.d.ts +30 -30
- package/dist/client-analytics/model/topHitWithAnalytics.d.ts.map +1 -1
- package/dist/client-analytics/model/topHitsResponse.d.ts +7 -7
- package/dist/client-analytics/model/topHitsResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +7 -7
- package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
- package/dist/client-analytics/model/topSearch.d.ts +14 -14
- package/dist/client-analytics/model/topSearch.d.ts.map +1 -1
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +38 -38
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
- package/dist/client-analytics/model/topSearchesResponse.d.ts +7 -7
- package/dist/client-analytics/model/topSearchesResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +7 -7
- package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
- package/dist/client-analytics/model/userWithDate.d.ts +10 -10
- package/dist/client-analytics/model/userWithDate.d.ts.map +1 -1
- package/dist/client-analytics/src/analyticsClient.d.ts +318 -318
- package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
- package/dist/client-personalization/model/clientMethodProps.d.ts +78 -78
- package/dist/client-personalization/model/clientMethodProps.d.ts.map +1 -1
- package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +10 -10
- package/dist/client-personalization/model/deleteUserProfileResponse.d.ts.map +1 -1
- package/dist/client-personalization/model/errorBase.d.ts +6 -6
- package/dist/client-personalization/model/errorBase.d.ts.map +1 -1
- package/dist/client-personalization/model/eventScoring.d.ts +14 -14
- package/dist/client-personalization/model/eventScoring.d.ts.map +1 -1
- package/dist/client-personalization/model/facetScoring.d.ts +10 -10
- package/dist/client-personalization/model/facetScoring.d.ts.map +1 -1
- package/dist/client-personalization/model/getUserTokenResponse.d.ts +14 -14
- package/dist/client-personalization/model/getUserTokenResponse.d.ts.map +1 -1
- 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/personalizationStrategyParams.d.ts.map +1 -1
- package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts +6 -6
- package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts.map +1 -1
- package/dist/client-personalization/src/personalizationClient.d.ts +112 -112
- package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
- package/dist/client-search/model/acl.d.ts +4 -4
- package/dist/client-search/model/acl.d.ts.map +1 -1
- package/dist/client-search/model/action.d.ts +4 -4
- package/dist/client-search/model/action.d.ts.map +1 -1
- package/dist/client-search/model/addApiKeyResponse.d.ts +10 -10
- package/dist/client-search/model/addApiKeyResponse.d.ts.map +1 -1
- package/dist/client-search/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/client-search/model/advancedSyntaxFeatures.d.ts.map +1 -1
- package/dist/client-search/model/alternativesAsExact.d.ts +1 -1
- package/dist/client-search/model/alternativesAsExact.d.ts.map +1 -1
- package/dist/client-search/model/anchoring.d.ts +4 -4
- package/dist/client-search/model/anchoring.d.ts.map +1 -1
- package/dist/client-search/model/apiKey.d.ts +38 -38
- package/dist/client-search/model/apiKey.d.ts.map +1 -1
- package/dist/client-search/model/aroundPrecision.d.ts +6 -0
- package/dist/client-search/model/aroundPrecision.d.ts.map +1 -0
- package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +5 -0
- package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
- package/dist/client-search/model/aroundRadius.d.ts +5 -5
- package/dist/client-search/model/aroundRadius.d.ts.map +1 -1
- package/dist/client-search/model/aroundRadiusAll.d.ts +1 -1
- package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/client-search/model/assignUserIdParams.d.ts +9 -9
- package/dist/client-search/model/assignUserIdParams.d.ts.map +1 -1
- package/dist/client-search/model/attributeToUpdate.d.ts +2 -2
- package/dist/client-search/model/attributeToUpdate.d.ts.map +1 -1
- package/dist/client-search/model/automaticFacetFilter.d.ts +17 -17
- package/dist/client-search/model/automaticFacetFilter.d.ts.map +1 -1
- package/dist/client-search/model/automaticFacetFilters.d.ts +5 -5
- package/dist/client-search/model/automaticFacetFilters.d.ts.map +1 -1
- package/dist/client-search/model/baseGetApiKeyResponse.d.ts +10 -10
- package/dist/client-search/model/baseGetApiKeyResponse.d.ts.map +1 -1
- package/dist/client-search/model/baseIndexSettings.d.ts +62 -58
- package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchParams.d.ts +3 -3
- package/dist/client-search/model/baseSearchParams.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +118 -122
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchResponse.d.ts +95 -101
- package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchResponseRedirect.d.ts +8 -0
- package/dist/client-search/model/baseSearchResponseRedirect.d.ts.map +1 -0
- package/dist/client-search/model/batchAssignUserIdsParams.d.ts +13 -13
- package/dist/client-search/model/batchAssignUserIdsParams.d.ts.map +1 -1
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +14 -14
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts +6 -6
- package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
- package/dist/client-search/model/batchParams.d.ts +7 -7
- package/dist/client-search/model/batchParams.d.ts.map +1 -1
- package/dist/client-search/model/batchRequest.d.ts +8 -8
- package/dist/client-search/model/batchRequest.d.ts.map +1 -1
- package/dist/client-search/model/batchResponse.d.ts +10 -10
- package/dist/client-search/model/batchResponse.d.ts.map +1 -1
- package/dist/client-search/model/batchWriteParams.d.ts +7 -7
- package/dist/client-search/model/batchWriteParams.d.ts.map +1 -1
- package/dist/client-search/model/browseParams.d.ts +3 -3
- package/dist/client-search/model/browseParams.d.ts.map +1 -1
- package/dist/client-search/model/browseParamsObject.d.ts +3 -3
- package/dist/client-search/model/browseParamsObject.d.ts.map +1 -1
- package/dist/client-search/model/browseResponse.d.ts +4 -4
- package/dist/client-search/model/browseResponse.d.ts.map +1 -1
- package/dist/client-search/model/builtInOperation.d.ts +11 -11
- package/dist/client-search/model/builtInOperation.d.ts.map +1 -1
- package/dist/client-search/model/builtInOperationType.d.ts +4 -4
- package/dist/client-search/model/builtInOperationType.d.ts.map +1 -1
- package/dist/client-search/model/clientMethodProps.d.ts +719 -714
- package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
- package/dist/client-search/model/condition.d.ts +16 -16
- package/dist/client-search/model/condition.d.ts.map +1 -1
- package/dist/client-search/model/consequence.d.ts +25 -25
- package/dist/client-search/model/consequence.d.ts.map +1 -1
- package/dist/client-search/model/consequenceHide.d.ts +9 -9
- package/dist/client-search/model/consequenceHide.d.ts.map +1 -1
- package/dist/client-search/model/consequenceParams.d.ts +4 -4
- package/dist/client-search/model/consequenceParams.d.ts.map +1 -1
- package/dist/client-search/model/consequenceQuery.d.ts +5 -5
- package/dist/client-search/model/consequenceQuery.d.ts.map +1 -1
- package/dist/client-search/model/consequenceQueryObject.d.ts +11 -11
- package/dist/client-search/model/consequenceQueryObject.d.ts.map +1 -1
- package/dist/client-search/model/createdAtResponse.d.ts +9 -9
- package/dist/client-search/model/createdAtResponse.d.ts.map +1 -1
- package/dist/client-search/model/cursor.d.ts +6 -6
- package/dist/client-search/model/cursor.d.ts.map +1 -1
- package/dist/client-search/model/deleteApiKeyResponse.d.ts +6 -6
- package/dist/client-search/model/deleteApiKeyResponse.d.ts.map +1 -1
- package/dist/client-search/model/deleteByParams.d.ts +27 -0
- package/dist/client-search/model/deleteByParams.d.ts.map +1 -0
- package/dist/client-search/model/deleteSourceResponse.d.ts +6 -6
- package/dist/client-search/model/deleteSourceResponse.d.ts.map +1 -1
- package/dist/client-search/model/deletedAtResponse.d.ts +13 -13
- package/dist/client-search/model/deletedAtResponse.d.ts.map +1 -1
- package/dist/client-search/model/dictionaryAction.d.ts +4 -4
- package/dist/client-search/model/dictionaryAction.d.ts.map +1 -1
- package/dist/client-search/model/dictionaryEntry.d.ts +27 -27
- package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/client-search/model/dictionaryEntryState.d.ts +4 -4
- package/dist/client-search/model/dictionaryEntryState.d.ts.map +1 -1
- package/dist/client-search/model/dictionaryLanguage.d.ts +9 -9
- package/dist/client-search/model/dictionaryLanguage.d.ts.map +1 -1
- package/dist/client-search/model/dictionarySettingsParams.d.ts +7 -7
- package/dist/client-search/model/dictionarySettingsParams.d.ts.map +1 -1
- package/dist/client-search/model/dictionaryType.d.ts +1 -1
- package/dist/client-search/model/dictionaryType.d.ts.map +1 -1
- package/dist/client-search/model/distinct.d.ts +4 -4
- package/dist/client-search/model/distinct.d.ts.map +1 -1
- package/dist/client-search/model/edit.d.ts +12 -12
- package/dist/client-search/model/edit.d.ts.map +1 -1
- package/dist/client-search/model/editType.d.ts +4 -4
- package/dist/client-search/model/editType.d.ts.map +1 -1
- package/dist/client-search/model/errorBase.d.ts +6 -6
- package/dist/client-search/model/errorBase.d.ts.map +1 -1
- package/dist/client-search/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/client-search/model/exactOnSingleWordQuery.d.ts.map +1 -1
- package/dist/client-search/model/facetFilters.d.ts +5 -5
- package/dist/client-search/model/facetFilters.d.ts.map +1 -1
- package/dist/client-search/model/facetHits.d.ts +14 -14
- package/dist/client-search/model/facetHits.d.ts.map +1 -1
- package/dist/client-search/model/facetOrdering.d.ts +12 -12
- package/dist/client-search/model/facetOrdering.d.ts.map +1 -1
- package/dist/client-search/model/facets.d.ts +9 -9
- package/dist/client-search/model/facets.d.ts.map +1 -1
- package/dist/client-search/model/facetsStats.d.ts +18 -18
- package/dist/client-search/model/facetsStats.d.ts.map +1 -1
- package/dist/client-search/model/fetchedIndex.d.ts +46 -46
- package/dist/client-search/model/fetchedIndex.d.ts.map +1 -1
- package/dist/client-search/model/getApiKeyResponse.d.ts +3 -3
- package/dist/client-search/model/getApiKeyResponse.d.ts.map +1 -1
- package/dist/client-search/model/getDictionarySettingsResponse.d.ts +4 -4
- package/dist/client-search/model/getDictionarySettingsResponse.d.ts.map +1 -1
- package/dist/client-search/model/getLogsResponse.d.ts +4 -4
- package/dist/client-search/model/getLogsResponse.d.ts.map +1 -1
- package/dist/client-search/model/getObjectsParams.d.ts +7 -7
- package/dist/client-search/model/getObjectsParams.d.ts.map +1 -1
- package/dist/client-search/model/getObjectsRequest.d.ts +17 -17
- package/dist/client-search/model/getObjectsRequest.d.ts.map +1 -1
- package/dist/client-search/model/getObjectsResponse.d.ts +6 -6
- package/dist/client-search/model/getObjectsResponse.d.ts.map +1 -1
- package/dist/client-search/model/getTaskResponse.d.ts +4 -4
- package/dist/client-search/model/getTaskResponse.d.ts.map +1 -1
- package/dist/client-search/model/getTopUserIdsResponse.d.ts +10 -10
- package/dist/client-search/model/getTopUserIdsResponse.d.ts.map +1 -1
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts +10 -10
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts.map +1 -1
- package/dist/client-search/model/highlightResult.d.ts +2 -2
- package/dist/client-search/model/highlightResult.d.ts.map +1 -1
- package/dist/client-search/model/highlightResultOption.d.ts +19 -19
- package/dist/client-search/model/highlightResultOption.d.ts.map +1 -1
- package/dist/client-search/model/hit.d.ts +22 -22
- package/dist/client-search/model/hit.d.ts.map +1 -1
- package/dist/client-search/model/ignorePlurals.d.ts +4 -4
- package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
- package/dist/client-search/model/index.d.ts +162 -154
- package/dist/client-search/model/index.d.ts.map +1 -1
- package/dist/client-search/model/indexSettings.d.ts +6 -6
- package/dist/client-search/model/indexSettings.d.ts.map +1 -1
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +166 -160
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/client-search/model/languages.d.ts +9 -9
- package/dist/client-search/model/languages.d.ts.map +1 -1
- package/dist/client-search/model/listApiKeysResponse.d.ts +7 -7
- package/dist/client-search/model/listApiKeysResponse.d.ts.map +1 -1
- package/dist/client-search/model/listClustersResponse.d.ts +9 -9
- package/dist/client-search/model/listClustersResponse.d.ts.map +1 -1
- package/dist/client-search/model/listIndicesResponse.d.ts +11 -11
- package/dist/client-search/model/listIndicesResponse.d.ts.map +1 -1
- package/dist/client-search/model/listUserIdsResponse.d.ts +10 -10
- package/dist/client-search/model/listUserIdsResponse.d.ts.map +1 -1
- package/dist/client-search/model/log.d.ts +63 -63
- package/dist/client-search/model/log.d.ts.map +1 -1
- package/dist/client-search/model/logQuery.d.ts +14 -14
- package/dist/client-search/model/logQuery.d.ts.map +1 -1
- package/dist/client-search/model/logType.d.ts +1 -1
- package/dist/client-search/model/logType.d.ts.map +1 -1
- package/dist/client-search/model/matchLevel.d.ts +4 -4
- package/dist/client-search/model/matchLevel.d.ts.map +1 -1
- package/dist/client-search/model/matchedGeoLocation.d.ts +14 -14
- package/dist/client-search/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/client-search/model/mixedSearchFilters.d.ts +1 -1
- package/dist/client-search/model/mixedSearchFilters.d.ts.map +1 -1
- package/dist/client-search/model/mode.d.ts +5 -0
- package/dist/client-search/model/mode.d.ts.map +1 -0
- package/dist/client-search/model/multipleBatchRequest.d.ts +12 -12
- package/dist/client-search/model/multipleBatchRequest.d.ts.map +1 -1
- package/dist/client-search/model/multipleBatchResponse.d.ts +10 -10
- package/dist/client-search/model/multipleBatchResponse.d.ts.map +1 -1
- package/dist/client-search/model/numericFilters.d.ts +5 -5
- package/dist/client-search/model/numericFilters.d.ts.map +1 -1
- package/dist/client-search/model/operationIndexParams.d.ts +13 -13
- package/dist/client-search/model/operationIndexParams.d.ts.map +1 -1
- package/dist/client-search/model/operationType.d.ts +4 -4
- package/dist/client-search/model/operationType.d.ts.map +1 -1
- package/dist/client-search/model/optionalFilters.d.ts +5 -5
- package/dist/client-search/model/optionalFilters.d.ts.map +1 -1
- package/dist/client-search/model/params.d.ts +12 -12
- package/dist/client-search/model/params.d.ts.map +1 -1
- package/dist/client-search/model/personalization.d.ts +14 -14
- package/dist/client-search/model/personalization.d.ts.map +1 -1
- package/dist/client-search/model/promote.d.ts +3 -3
- package/dist/client-search/model/promote.d.ts.map +1 -1
- package/dist/client-search/model/promoteObjectID.d.ts +13 -13
- package/dist/client-search/model/promoteObjectID.d.ts.map +1 -1
- package/dist/client-search/model/promoteObjectIDs.d.ts +13 -13
- package/dist/client-search/model/promoteObjectIDs.d.ts.map +1 -1
- package/dist/client-search/model/queryType.d.ts +4 -4
- package/dist/client-search/model/queryType.d.ts.map +1 -1
- package/dist/client-search/model/rankingInfo.d.ts +50 -50
- package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
- package/dist/client-search/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/client-search/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/client-search/model/redirectRuleIndexMetadata.d.ts +21 -0
- package/dist/client-search/model/redirectRuleIndexMetadata.d.ts.map +1 -0
- package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts +7 -0
- package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
- package/dist/client-search/model/removeStopWords.d.ts +4 -4
- package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
- package/dist/client-search/model/removeUserIdResponse.d.ts +6 -6
- package/dist/client-search/model/removeUserIdResponse.d.ts.map +1 -1
- package/dist/client-search/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/client-search/model/removeWordsIfNoResults.d.ts.map +1 -1
- package/dist/client-search/model/renderingContent.d.ts +7 -7
- package/dist/client-search/model/renderingContent.d.ts.map +1 -1
- package/dist/client-search/model/replaceSourceResponse.d.ts +6 -6
- package/dist/client-search/model/replaceSourceResponse.d.ts.map +1 -1
- package/dist/client-search/model/rule.d.ts +29 -29
- package/dist/client-search/model/rule.d.ts.map +1 -1
- package/dist/client-search/model/saveObjectResponse.d.ts +14 -11
- package/dist/client-search/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/client-search/model/saveSynonymResponse.d.ts +14 -14
- package/dist/client-search/model/saveSynonymResponse.d.ts.map +1 -1
- package/dist/client-search/model/scopeType.d.ts +1 -1
- package/dist/client-search/model/scopeType.d.ts.map +1 -1
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +21 -21
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts +14 -14
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts.map +1 -1
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts +4 -4
- package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchForFacets.d.ts +3 -3
- package/dist/client-search/model/searchForFacets.d.ts.map +1 -1
- package/dist/client-search/model/searchForFacetsOptions.d.ts +20 -20
- package/dist/client-search/model/searchForFacetsOptions.d.ts.map +1 -1
- package/dist/client-search/model/searchForHits.d.ts +3 -3
- package/dist/client-search/model/searchForHits.d.ts.map +1 -1
- package/dist/client-search/model/searchForHitsOptions.d.ts +12 -12
- package/dist/client-search/model/searchForHitsOptions.d.ts.map +1 -1
- package/dist/client-search/model/searchHits.d.ts +12 -4
- package/dist/client-search/model/searchHits.d.ts.map +1 -1
- package/dist/client-search/model/searchMethodParams.d.ts +6 -6
- package/dist/client-search/model/searchMethodParams.d.ts.map +1 -1
- package/dist/client-search/model/searchParams.d.ts +3 -3
- package/dist/client-search/model/searchParams.d.ts.map +1 -1
- package/dist/client-search/model/searchParamsObject.d.ts +3 -3
- package/dist/client-search/model/searchParamsObject.d.ts.map +1 -1
- package/dist/client-search/model/searchParamsQuery.d.ts +6 -6
- package/dist/client-search/model/searchParamsQuery.d.ts.map +1 -1
- package/dist/client-search/model/searchParamsString.d.ts +6 -6
- package/dist/client-search/model/searchParamsString.d.ts.map +1 -1
- package/dist/client-search/model/searchQuery.d.ts +3 -3
- package/dist/client-search/model/searchQuery.d.ts.map +1 -1
- package/dist/client-search/model/searchResponse.d.ts +3 -3
- package/dist/client-search/model/searchResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchResponses.d.ts +4 -4
- package/dist/client-search/model/searchResponses.d.ts.map +1 -1
- package/dist/client-search/model/searchResult.d.ts +4 -0
- package/dist/client-search/model/searchResult.d.ts.map +1 -0
- package/dist/client-search/model/searchRulesParams.d.ts +31 -31
- package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchRulesResponse.d.ts +19 -19
- package/dist/client-search/model/searchRulesResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchStrategy.d.ts +4 -1
- package/dist/client-search/model/searchStrategy.d.ts.map +1 -1
- package/dist/client-search/model/searchSynonymsParams.d.ts +6 -6
- package/dist/client-search/model/searchSynonymsParams.d.ts.map +1 -1
- package/dist/client-search/model/searchSynonymsResponse.d.ts +11 -11
- package/dist/client-search/model/searchSynonymsResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchTypeDefault.d.ts +4 -4
- package/dist/client-search/model/searchTypeDefault.d.ts.map +1 -1
- package/dist/client-search/model/searchTypeFacet.d.ts +4 -4
- package/dist/client-search/model/searchTypeFacet.d.ts.map +1 -1
- package/dist/client-search/model/searchUserIdsParams.d.ts +21 -21
- package/dist/client-search/model/searchUserIdsParams.d.ts.map +1 -1
- package/dist/client-search/model/searchUserIdsResponse.d.ts +26 -26
- package/dist/client-search/model/searchUserIdsResponse.d.ts.map +1 -1
- package/dist/client-search/model/semanticSearch.d.ts +10 -0
- package/dist/client-search/model/semanticSearch.d.ts.map +1 -0
- package/dist/client-search/model/snippetResult.d.ts +2 -2
- package/dist/client-search/model/snippetResult.d.ts.map +1 -1
- package/dist/client-search/model/snippetResultOption.d.ts +11 -11
- package/dist/client-search/model/snippetResultOption.d.ts.map +1 -1
- package/dist/client-search/model/sortRemainingBy.d.ts +4 -4
- package/dist/client-search/model/sortRemainingBy.d.ts.map +1 -1
- package/dist/client-search/model/source.d.ts +13 -13
- package/dist/client-search/model/source.d.ts.map +1 -1
- package/dist/client-search/model/standardEntries.d.ts +17 -17
- package/dist/client-search/model/standardEntries.d.ts.map +1 -1
- package/dist/client-search/model/synonymHit.d.ts +35 -37
- package/dist/client-search/model/synonymHit.d.ts.map +1 -1
- package/dist/client-search/model/synonymType.d.ts +4 -4
- package/dist/client-search/model/synonymType.d.ts.map +1 -1
- package/dist/client-search/model/tagFilters.d.ts +5 -5
- package/dist/client-search/model/tagFilters.d.ts.map +1 -1
- package/dist/client-search/model/taskStatus.d.ts +4 -1
- package/dist/client-search/model/taskStatus.d.ts.map +1 -1
- package/dist/client-search/model/timeRange.d.ts +10 -10
- package/dist/client-search/model/timeRange.d.ts.map +1 -1
- package/dist/client-search/model/typoTolerance.d.ts +5 -5
- package/dist/client-search/model/typoTolerance.d.ts.map +1 -1
- package/dist/client-search/model/typoToleranceEnum.d.ts +1 -1
- package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/client-search/model/updateApiKeyResponse.d.ts +10 -10
- package/dist/client-search/model/updateApiKeyResponse.d.ts.map +1 -1
- package/dist/client-search/model/updatedAtResponse.d.ts +13 -13
- package/dist/client-search/model/updatedAtResponse.d.ts.map +1 -1
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +17 -17
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
- package/dist/client-search/model/updatedRuleResponse.d.ts +14 -14
- package/dist/client-search/model/updatedRuleResponse.d.ts.map +1 -1
- package/dist/client-search/model/userHighlightResult.d.ts +11 -11
- package/dist/client-search/model/userHighlightResult.d.ts.map +1 -1
- package/dist/client-search/model/userHit.d.ts +24 -24
- package/dist/client-search/model/userHit.d.ts.map +1 -1
- package/dist/client-search/model/userId.d.ts +21 -21
- package/dist/client-search/model/userId.d.ts.map +1 -1
- package/dist/client-search/model/value.d.ts +8 -8
- package/dist/client-search/model/value.d.ts.map +1 -1
- package/dist/client-search/src/searchClient.d.ts +724 -723
- package/dist/client-search/src/searchClient.d.ts.map +1 -1
- package/dist/lite/builds/browser.d.ts +5 -5
- package/dist/lite/builds/node.d.ts +5 -5
- package/dist/lite/{lite.cjs.js → lite.cjs} +183 -185
- package/dist/lite/lite.esm.browser.js +366 -416
- 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/acl.d.ts.map +1 -1
- package/dist/lite/model/action.d.ts +4 -4
- package/dist/lite/model/action.d.ts.map +1 -1
- package/dist/lite/model/addApiKeyResponse.d.ts +10 -10
- package/dist/lite/model/addApiKeyResponse.d.ts.map +1 -1
- package/dist/lite/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/lite/model/advancedSyntaxFeatures.d.ts.map +1 -1
- package/dist/lite/model/alternativesAsExact.d.ts +1 -1
- package/dist/lite/model/alternativesAsExact.d.ts.map +1 -1
- package/dist/lite/model/anchoring.d.ts +4 -4
- package/dist/lite/model/anchoring.d.ts.map +1 -1
- package/dist/lite/model/apiKey.d.ts +38 -38
- package/dist/lite/model/apiKey.d.ts.map +1 -1
- package/dist/lite/model/aroundPrecision.d.ts +6 -0
- package/dist/lite/model/aroundPrecision.d.ts.map +1 -0
- package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +5 -0
- package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
- package/dist/lite/model/aroundRadius.d.ts +5 -5
- package/dist/lite/model/aroundRadius.d.ts.map +1 -1
- package/dist/lite/model/aroundRadiusAll.d.ts +1 -1
- package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/lite/model/attributeToUpdate.d.ts +2 -2
- package/dist/lite/model/attributeToUpdate.d.ts.map +1 -1
- package/dist/lite/model/automaticFacetFilter.d.ts +17 -17
- package/dist/lite/model/automaticFacetFilter.d.ts.map +1 -1
- package/dist/lite/model/automaticFacetFilters.d.ts +5 -5
- package/dist/lite/model/automaticFacetFilters.d.ts.map +1 -1
- package/dist/lite/model/baseGetApiKeyResponse.d.ts +10 -10
- package/dist/lite/model/baseGetApiKeyResponse.d.ts.map +1 -1
- package/dist/lite/model/baseIndexSettings.d.ts +62 -58
- package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/lite/model/baseSearchParams.d.ts +3 -3
- package/dist/lite/model/baseSearchParams.d.ts.map +1 -1
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +118 -122
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/lite/model/baseSearchResponse.d.ts +95 -101
- package/dist/lite/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/lite/model/baseSearchResponseRedirect.d.ts +8 -0
- package/dist/lite/model/baseSearchResponseRedirect.d.ts.map +1 -0
- package/dist/lite/model/browseParams.d.ts +3 -3
- package/dist/lite/model/browseParams.d.ts.map +1 -1
- package/dist/lite/model/browseParamsObject.d.ts +3 -3
- package/dist/lite/model/browseParamsObject.d.ts.map +1 -1
- package/dist/lite/model/browseResponse.d.ts +4 -4
- package/dist/lite/model/browseResponse.d.ts.map +1 -1
- package/dist/lite/model/builtInOperation.d.ts +11 -11
- package/dist/lite/model/builtInOperation.d.ts.map +1 -1
- package/dist/lite/model/builtInOperationType.d.ts +4 -4
- package/dist/lite/model/builtInOperationType.d.ts.map +1 -1
- package/dist/lite/model/clientMethodProps.d.ts +48 -48
- package/dist/lite/model/clientMethodProps.d.ts.map +1 -1
- package/dist/lite/model/condition.d.ts +16 -16
- package/dist/lite/model/condition.d.ts.map +1 -1
- package/dist/lite/model/consequence.d.ts +25 -25
- package/dist/lite/model/consequence.d.ts.map +1 -1
- package/dist/lite/model/consequenceHide.d.ts +9 -9
- package/dist/lite/model/consequenceHide.d.ts.map +1 -1
- package/dist/lite/model/consequenceParams.d.ts +4 -4
- package/dist/lite/model/consequenceParams.d.ts.map +1 -1
- package/dist/lite/model/consequenceQuery.d.ts +5 -5
- package/dist/lite/model/consequenceQuery.d.ts.map +1 -1
- package/dist/lite/model/consequenceQueryObject.d.ts +11 -11
- package/dist/lite/model/consequenceQueryObject.d.ts.map +1 -1
- package/dist/lite/model/cursor.d.ts +6 -6
- package/dist/lite/model/cursor.d.ts.map +1 -1
- package/dist/lite/model/deleteByParams.d.ts +27 -0
- package/dist/lite/model/deleteByParams.d.ts.map +1 -0
- package/dist/lite/model/dictionaryAction.d.ts +4 -4
- package/dist/lite/model/dictionaryAction.d.ts.map +1 -1
- package/dist/lite/model/dictionaryEntry.d.ts +27 -27
- package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/lite/model/dictionaryEntryState.d.ts +4 -4
- package/dist/lite/model/dictionaryEntryState.d.ts.map +1 -1
- package/dist/lite/model/dictionaryLanguage.d.ts +9 -9
- package/dist/lite/model/dictionaryLanguage.d.ts.map +1 -1
- package/dist/lite/model/dictionaryType.d.ts +1 -1
- package/dist/lite/model/dictionaryType.d.ts.map +1 -1
- package/dist/lite/model/distinct.d.ts +4 -4
- package/dist/lite/model/distinct.d.ts.map +1 -1
- package/dist/lite/model/edit.d.ts +12 -12
- package/dist/lite/model/edit.d.ts.map +1 -1
- package/dist/lite/model/editType.d.ts +4 -4
- package/dist/lite/model/editType.d.ts.map +1 -1
- package/dist/lite/model/errorBase.d.ts +6 -6
- package/dist/lite/model/errorBase.d.ts.map +1 -1
- package/dist/lite/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/lite/model/exactOnSingleWordQuery.d.ts.map +1 -1
- package/dist/lite/model/facetFilters.d.ts +5 -5
- package/dist/lite/model/facetFilters.d.ts.map +1 -1
- package/dist/lite/model/facetHits.d.ts +15 -0
- package/dist/lite/model/facetHits.d.ts.map +1 -0
- package/dist/lite/model/facetOrdering.d.ts +12 -12
- package/dist/lite/model/facetOrdering.d.ts.map +1 -1
- package/dist/lite/model/facets.d.ts +9 -9
- package/dist/lite/model/facets.d.ts.map +1 -1
- package/dist/lite/model/facetsStats.d.ts +18 -18
- package/dist/lite/model/facetsStats.d.ts.map +1 -1
- package/dist/lite/model/fetchedIndex.d.ts +46 -46
- package/dist/lite/model/fetchedIndex.d.ts.map +1 -1
- package/dist/lite/model/getApiKeyResponse.d.ts +3 -3
- package/dist/lite/model/getApiKeyResponse.d.ts.map +1 -1
- package/dist/lite/model/highlightResult.d.ts +2 -2
- package/dist/lite/model/highlightResult.d.ts.map +1 -1
- package/dist/lite/model/highlightResultOption.d.ts +19 -19
- package/dist/lite/model/highlightResultOption.d.ts.map +1 -1
- package/dist/lite/model/hit.d.ts +22 -22
- package/dist/lite/model/hit.d.ts.map +1 -1
- package/dist/lite/model/ignorePlurals.d.ts +4 -4
- package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
- package/dist/lite/model/index.d.ts +117 -107
- package/dist/lite/model/index.d.ts.map +1 -1
- package/dist/lite/model/indexSettings.d.ts +6 -6
- package/dist/lite/model/indexSettings.d.ts.map +1 -1
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts +166 -160
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/lite/model/languages.d.ts +9 -9
- package/dist/lite/model/languages.d.ts.map +1 -1
- package/dist/lite/model/listIndicesResponse.d.ts +11 -11
- package/dist/lite/model/listIndicesResponse.d.ts.map +1 -1
- package/dist/lite/model/logType.d.ts +1 -1
- package/dist/lite/model/logType.d.ts.map +1 -1
- package/dist/lite/model/matchLevel.d.ts +4 -4
- package/dist/lite/model/matchLevel.d.ts.map +1 -1
- package/dist/lite/model/matchedGeoLocation.d.ts +14 -14
- package/dist/lite/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/lite/model/mixedSearchFilters.d.ts +1 -1
- package/dist/lite/model/mixedSearchFilters.d.ts.map +1 -1
- package/dist/lite/model/mode.d.ts +5 -0
- package/dist/lite/model/mode.d.ts.map +1 -0
- package/dist/lite/model/numericFilters.d.ts +5 -5
- package/dist/lite/model/numericFilters.d.ts.map +1 -1
- package/dist/lite/model/operationType.d.ts +4 -4
- package/dist/lite/model/operationType.d.ts.map +1 -1
- package/dist/lite/model/optionalFilters.d.ts +5 -5
- package/dist/lite/model/optionalFilters.d.ts.map +1 -1
- package/dist/lite/model/params.d.ts +12 -12
- package/dist/lite/model/params.d.ts.map +1 -1
- package/dist/lite/model/personalization.d.ts +14 -14
- package/dist/lite/model/personalization.d.ts.map +1 -1
- package/dist/lite/model/promote.d.ts +3 -3
- package/dist/lite/model/promote.d.ts.map +1 -1
- package/dist/lite/model/promoteObjectID.d.ts +13 -13
- package/dist/lite/model/promoteObjectID.d.ts.map +1 -1
- package/dist/lite/model/promoteObjectIDs.d.ts +13 -13
- package/dist/lite/model/promoteObjectIDs.d.ts.map +1 -1
- package/dist/lite/model/queryType.d.ts +4 -4
- package/dist/lite/model/queryType.d.ts.map +1 -1
- package/dist/lite/model/rankingInfo.d.ts +50 -50
- package/dist/lite/model/rankingInfo.d.ts.map +1 -1
- package/dist/lite/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/lite/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/lite/model/redirectRuleIndexMetadata.d.ts +21 -0
- package/dist/lite/model/redirectRuleIndexMetadata.d.ts.map +1 -0
- package/dist/lite/model/redirectRuleIndexMetadataData.d.ts +7 -0
- package/dist/lite/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
- package/dist/lite/model/removeStopWords.d.ts +4 -4
- package/dist/lite/model/removeStopWords.d.ts.map +1 -1
- package/dist/lite/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/lite/model/removeWordsIfNoResults.d.ts.map +1 -1
- package/dist/lite/model/renderingContent.d.ts +7 -7
- package/dist/lite/model/renderingContent.d.ts.map +1 -1
- package/dist/lite/model/rule.d.ts +29 -29
- package/dist/lite/model/rule.d.ts.map +1 -1
- package/dist/lite/model/scopeType.d.ts +1 -1
- package/dist/lite/model/scopeType.d.ts.map +1 -1
- package/dist/lite/model/searchForFacetValuesResponse.d.ts +5 -0
- package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -0
- package/dist/lite/model/searchForFacets.d.ts +3 -3
- package/dist/lite/model/searchForFacets.d.ts.map +1 -1
- package/dist/lite/model/searchForFacetsOptions.d.ts +20 -20
- package/dist/lite/model/searchForFacetsOptions.d.ts.map +1 -1
- package/dist/lite/model/searchForHits.d.ts +3 -3
- package/dist/lite/model/searchForHits.d.ts.map +1 -1
- package/dist/lite/model/searchForHitsOptions.d.ts +12 -12
- package/dist/lite/model/searchForHitsOptions.d.ts.map +1 -1
- package/dist/lite/model/searchHits.d.ts +12 -4
- package/dist/lite/model/searchHits.d.ts.map +1 -1
- package/dist/lite/model/searchMethodParams.d.ts +6 -6
- package/dist/lite/model/searchMethodParams.d.ts.map +1 -1
- package/dist/lite/model/searchParams.d.ts +3 -3
- package/dist/lite/model/searchParams.d.ts.map +1 -1
- package/dist/lite/model/searchParamsObject.d.ts +3 -3
- package/dist/lite/model/searchParamsObject.d.ts.map +1 -1
- package/dist/lite/model/searchParamsQuery.d.ts +6 -6
- package/dist/lite/model/searchParamsQuery.d.ts.map +1 -1
- package/dist/lite/model/searchParamsString.d.ts +6 -6
- package/dist/lite/model/searchParamsString.d.ts.map +1 -1
- package/dist/lite/model/searchQuery.d.ts +3 -3
- package/dist/lite/model/searchQuery.d.ts.map +1 -1
- package/dist/lite/model/searchResponse.d.ts +3 -3
- package/dist/lite/model/searchResponse.d.ts.map +1 -1
- package/dist/lite/model/searchResponses.d.ts +4 -4
- package/dist/lite/model/searchResponses.d.ts.map +1 -1
- package/dist/lite/model/searchResult.d.ts +4 -0
- package/dist/lite/model/searchResult.d.ts.map +1 -0
- package/dist/lite/model/searchStrategy.d.ts +4 -1
- package/dist/lite/model/searchStrategy.d.ts.map +1 -1
- package/dist/lite/model/searchSynonymsResponse.d.ts +11 -11
- package/dist/lite/model/searchSynonymsResponse.d.ts.map +1 -1
- package/dist/lite/model/searchTypeDefault.d.ts +4 -4
- package/dist/lite/model/searchTypeDefault.d.ts.map +1 -1
- package/dist/lite/model/searchTypeFacet.d.ts +4 -4
- package/dist/lite/model/searchTypeFacet.d.ts.map +1 -1
- package/dist/lite/model/semanticSearch.d.ts +10 -0
- package/dist/lite/model/semanticSearch.d.ts.map +1 -0
- package/dist/lite/model/snippetResult.d.ts +2 -2
- package/dist/lite/model/snippetResult.d.ts.map +1 -1
- package/dist/lite/model/snippetResultOption.d.ts +11 -11
- package/dist/lite/model/snippetResultOption.d.ts.map +1 -1
- package/dist/lite/model/sortRemainingBy.d.ts +4 -4
- package/dist/lite/model/sortRemainingBy.d.ts.map +1 -1
- package/dist/lite/model/source.d.ts +13 -13
- package/dist/lite/model/source.d.ts.map +1 -1
- package/dist/lite/model/standardEntries.d.ts +17 -17
- package/dist/lite/model/standardEntries.d.ts.map +1 -1
- package/dist/lite/model/synonymHit.d.ts +35 -37
- package/dist/lite/model/synonymHit.d.ts.map +1 -1
- package/dist/lite/model/synonymType.d.ts +4 -4
- package/dist/lite/model/synonymType.d.ts.map +1 -1
- package/dist/lite/model/tagFilters.d.ts +5 -5
- package/dist/lite/model/tagFilters.d.ts.map +1 -1
- package/dist/lite/model/taskStatus.d.ts +4 -1
- package/dist/lite/model/taskStatus.d.ts.map +1 -1
- package/dist/lite/model/timeRange.d.ts +10 -10
- package/dist/lite/model/timeRange.d.ts.map +1 -1
- package/dist/lite/model/typoTolerance.d.ts +5 -5
- package/dist/lite/model/typoTolerance.d.ts.map +1 -1
- package/dist/lite/model/typoToleranceEnum.d.ts +1 -1
- package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/lite/model/updatedRuleResponse.d.ts +14 -14
- package/dist/lite/model/updatedRuleResponse.d.ts.map +1 -1
- package/dist/lite/model/userId.d.ts +21 -21
- package/dist/lite/model/userId.d.ts.map +1 -1
- package/dist/lite/model/value.d.ts +8 -8
- package/dist/lite/model/value.d.ts.map +1 -1
- package/dist/lite/src/liteClient.d.ts +50 -50
- package/dist/lite/src/liteClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/lite/builds/browser.ts +1 -1
- package/lite/builds/node.ts +1 -1
- package/lite/model/acl.ts +3 -2
- package/lite/model/action.ts +2 -2
- package/lite/model/addApiKeyResponse.ts +3 -3
- package/lite/model/advancedSyntaxFeatures.ts +1 -1
- package/lite/model/alternativesAsExact.ts +1 -1
- package/lite/model/anchoring.ts +2 -2
- package/lite/model/apiKey.ts +10 -10
- package/lite/model/aroundPrecision.ts +8 -0
- package/lite/model/aroundPrecisionFromValueInner.ts +7 -0
- package/lite/model/aroundRadius.ts +2 -2
- package/lite/model/aroundRadiusAll.ts +1 -1
- package/lite/model/attributeToUpdate.ts +1 -1
- package/lite/model/automaticFacetFilter.ts +1 -1
- package/lite/model/automaticFacetFilters.ts +1 -1
- package/lite/model/baseGetApiKeyResponse.ts +3 -3
- package/lite/model/baseIndexSettings.ts +19 -14
- package/lite/model/baseSearchParams.ts +1 -1
- package/lite/model/baseSearchParamsWithoutQuery.ts +38 -43
- package/lite/model/baseSearchResponse.ts +21 -28
- package/lite/model/baseSearchResponseRedirect.ts +10 -0
- package/lite/model/browseParams.ts +1 -1
- package/lite/model/browseParamsObject.ts +1 -1
- package/lite/model/browseResponse.ts +1 -1
- package/lite/model/builtInOperation.ts +2 -2
- package/lite/model/builtInOperationType.ts +2 -2
- package/lite/model/clientMethodProps.ts +4 -4
- package/lite/model/condition.ts +1 -1
- package/lite/model/consequence.ts +5 -5
- package/lite/model/consequenceHide.ts +3 -3
- package/lite/model/consequenceParams.ts +1 -1
- package/lite/model/consequenceQuery.ts +1 -1
- package/lite/model/consequenceQueryObject.ts +1 -1
- package/lite/model/cursor.ts +2 -2
- package/lite/model/deleteByParams.ts +36 -0
- package/lite/model/dictionaryAction.ts +1 -1
- package/lite/model/dictionaryEntry.ts +7 -7
- package/lite/model/dictionaryEntryState.ts +2 -2
- package/lite/model/dictionaryLanguage.ts +3 -3
- package/lite/model/dictionaryType.ts +1 -1
- package/lite/model/distinct.ts +2 -2
- package/lite/model/edit.ts +1 -1
- package/lite/model/editType.ts +1 -1
- package/lite/model/errorBase.ts +1 -1
- package/lite/model/exactOnSingleWordQuery.ts +2 -2
- package/lite/model/facetFilters.ts +2 -2
- package/lite/model/facetHits.ts +18 -0
- package/lite/model/facetOrdering.ts +3 -3
- package/lite/model/facets.ts +2 -2
- package/lite/model/facetsStats.ts +5 -5
- package/lite/model/fetchedIndex.ts +3 -3
- package/lite/model/getApiKeyResponse.ts +1 -1
- package/lite/model/highlightResult.ts +1 -1
- package/lite/model/highlightResultOption.ts +2 -2
- package/lite/model/hit.ts +2 -2
- package/lite/model/ignorePlurals.ts +2 -2
- package/lite/model/index.ts +12 -2
- package/lite/model/indexSettings.ts +2 -2
- package/lite/model/indexSettingsAsSearchParams.ts +53 -44
- package/lite/model/languages.ts +2 -2
- package/lite/model/listIndicesResponse.ts +2 -2
- package/lite/model/logType.ts +1 -1
- package/lite/model/matchLevel.ts +1 -1
- package/lite/model/matchedGeoLocation.ts +1 -1
- package/lite/model/mixedSearchFilters.ts +1 -1
- package/lite/model/mode.ts +6 -0
- package/lite/model/numericFilters.ts +2 -2
- package/lite/model/operationType.ts +2 -2
- package/lite/model/optionalFilters.ts +2 -2
- package/lite/model/params.ts +2 -2
- package/lite/model/personalization.ts +1 -1
- package/lite/model/promote.ts +1 -1
- package/lite/model/promoteObjectID.ts +4 -4
- package/lite/model/promoteObjectIDs.ts +4 -4
- package/lite/model/queryType.ts +2 -2
- package/lite/model/rankingInfo.ts +1 -1
- package/lite/model/reRankingApplyFilter.ts +2 -2
- package/lite/model/redirectRuleIndexMetadata.ts +27 -0
- package/lite/model/redirectRuleIndexMetadataData.ts +8 -0
- package/lite/model/removeStopWords.ts +2 -2
- package/lite/model/removeWordsIfNoResults.ts +2 -2
- package/lite/model/renderingContent.ts +2 -2
- package/lite/model/rule.ts +6 -6
- package/lite/model/scopeType.ts +1 -1
- package/lite/model/searchForFacetValuesResponse.ts +7 -0
- package/lite/model/searchForFacets.ts +1 -1
- package/lite/model/searchForFacetsOptions.ts +4 -4
- package/lite/model/searchForHits.ts +1 -1
- package/lite/model/searchForHitsOptions.ts +2 -2
- package/lite/model/searchHits.ts +11 -1
- package/lite/model/searchMethodParams.ts +1 -1
- package/lite/model/searchParams.ts +1 -1
- package/lite/model/searchParamsObject.ts +1 -1
- package/lite/model/searchParamsQuery.ts +2 -2
- package/lite/model/searchParamsString.ts +2 -2
- package/lite/model/searchQuery.ts +1 -1
- package/lite/model/searchResponse.ts +1 -1
- package/lite/model/searchResponses.ts +3 -3
- package/lite/model/searchResult.ts +8 -0
- package/lite/model/searchStrategy.ts +4 -1
- package/lite/model/searchSynonymsResponse.ts +3 -3
- package/lite/model/searchTypeDefault.ts +2 -2
- package/lite/model/searchTypeFacet.ts +2 -2
- package/lite/model/semanticSearch.ts +11 -0
- package/lite/model/snippetResult.ts +1 -1
- package/lite/model/snippetResultOption.ts +2 -2
- package/lite/model/sortRemainingBy.ts +2 -2
- package/lite/model/source.ts +4 -4
- package/lite/model/standardEntries.ts +5 -5
- package/lite/model/synonymHit.ts +7 -10
- package/lite/model/synonymType.ts +2 -2
- package/lite/model/tagFilters.ts +2 -2
- package/lite/model/taskStatus.ts +4 -1
- package/lite/model/timeRange.ts +1 -1
- package/lite/model/typoTolerance.ts +2 -2
- package/lite/model/typoToleranceEnum.ts +1 -1
- package/lite/model/updatedRuleResponse.ts +4 -4
- package/lite/model/userId.ts +3 -3
- package/lite/model/value.ts +1 -1
- package/lite/src/liteClient.ts +7 -7
- package/lite.js +1 -1
- package/package.json +22 -21
- package/dist/builds/models.d.ts.map +0 -1
- package/dist/client-search/model/synonymHitHighlightResult.d.ts +0 -12
- package/dist/client-search/model/synonymHitHighlightResult.d.ts.map +0 -1
- package/dist/lite/model/synonymHitHighlightResult.d.ts +0 -12
- package/dist/lite/model/synonymHitHighlightResult.d.ts.map +0 -1
- package/lite/model/synonymHitHighlightResult.ts +0 -15
|
@@ -1,191 +1,191 @@
|
|
|
1
1
|
import { createAuth, createTransporter, getAlgoliaAgent, shuffle, DEFAULT_CONNECT_TIMEOUT_NODE, DEFAULT_READ_TIMEOUT_NODE, DEFAULT_WRITE_TIMEOUT_NODE, createNullCache, createMemoryCache } from '@algolia/client-common';
|
|
2
2
|
import { createHttpRequester } from '@algolia/requester-node-http';
|
|
3
3
|
|
|
4
|
-
//
|
|
5
|
-
const apiClientVersion = '5.0.0-alpha.
|
|
6
|
-
function getDefaultHosts(appId) {
|
|
7
|
-
return [
|
|
8
|
-
{
|
|
9
|
-
url: `${appId}-dsn.algolia.net`,
|
|
10
|
-
accept: 'read',
|
|
11
|
-
protocol: 'https',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
url: `${appId}.algolia.net`,
|
|
15
|
-
accept: 'write',
|
|
16
|
-
protocol: 'https',
|
|
17
|
-
},
|
|
18
|
-
].concat(shuffle([
|
|
19
|
-
{
|
|
20
|
-
url: `${appId}-1.algolianet.com`,
|
|
21
|
-
accept: 'readWrite',
|
|
22
|
-
protocol: 'https',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
url: `${appId}-2.algolianet.com`,
|
|
26
|
-
accept: 'readWrite',
|
|
27
|
-
protocol: 'https',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
url: `${appId}-3.algolianet.com`,
|
|
31
|
-
accept: 'readWrite',
|
|
32
|
-
protocol: 'https',
|
|
33
|
-
},
|
|
34
|
-
]));
|
|
35
|
-
}
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
37
|
-
function createLiteClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }) {
|
|
38
|
-
const auth = createAuth(appIdOption, apiKeyOption, authMode);
|
|
39
|
-
const transporter = createTransporter({
|
|
40
|
-
hosts: getDefaultHosts(appIdOption),
|
|
41
|
-
...options,
|
|
42
|
-
algoliaAgent: getAlgoliaAgent({
|
|
43
|
-
algoliaAgents,
|
|
44
|
-
client: 'Lite',
|
|
45
|
-
version: apiClientVersion,
|
|
46
|
-
}),
|
|
47
|
-
baseHeaders: {
|
|
48
|
-
'content-type': 'text/plain',
|
|
49
|
-
...auth.headers(),
|
|
50
|
-
...options.baseHeaders,
|
|
51
|
-
},
|
|
52
|
-
baseQueryParameters: {
|
|
53
|
-
...auth.queryParameters(),
|
|
54
|
-
...options.baseQueryParameters,
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
return {
|
|
58
|
-
transporter,
|
|
59
|
-
/**
|
|
60
|
-
* The `appId` currently in use.
|
|
61
|
-
*/
|
|
62
|
-
appId: appIdOption,
|
|
63
|
-
/**
|
|
64
|
-
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
65
|
-
*/
|
|
66
|
-
clearCache() {
|
|
67
|
-
return Promise.all([
|
|
68
|
-
transporter.requestsCache.clear(),
|
|
69
|
-
transporter.responsesCache.clear(),
|
|
70
|
-
]).then(() => undefined);
|
|
71
|
-
},
|
|
72
|
-
/**
|
|
73
|
-
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
74
|
-
*/
|
|
75
|
-
get _ua() {
|
|
76
|
-
return transporter.algoliaAgent.value;
|
|
77
|
-
},
|
|
78
|
-
/**
|
|
79
|
-
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
80
|
-
*
|
|
81
|
-
* @param segment - The algolia agent (user-agent) segment to add.
|
|
82
|
-
* @param version - The version of the agent.
|
|
83
|
-
*/
|
|
84
|
-
addAlgoliaAgent(segment, version) {
|
|
85
|
-
transporter.algoliaAgent.add({ segment, version });
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
89
|
-
*
|
|
90
|
-
* @summary Send requests to the Algolia REST API.
|
|
91
|
-
* @param post - The post object.
|
|
92
|
-
* @param post.path -
|
|
93
|
-
* @param post.parameters - Query parameters to
|
|
94
|
-
* @param post.body -
|
|
95
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
96
|
-
*/
|
|
97
|
-
post({ path, parameters, body }, requestOptions) {
|
|
98
|
-
if (!path) {
|
|
99
|
-
throw new Error('Parameter `path` is required when calling `post`.');
|
|
100
|
-
}
|
|
101
|
-
const requestPath = '/1{path}'.replace('{path}', path);
|
|
102
|
-
const headers = {};
|
|
103
|
-
const queryParameters = parameters ? parameters : {};
|
|
104
|
-
const request = {
|
|
105
|
-
method: 'POST',
|
|
106
|
-
path: requestPath,
|
|
107
|
-
queryParameters,
|
|
108
|
-
headers,
|
|
109
|
-
data: body ? body : {},
|
|
110
|
-
};
|
|
111
|
-
return transporter.request(request, requestOptions);
|
|
112
|
-
},
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* @summary Search multiple indices.
|
|
117
|
-
* @param searchMethodParams -
|
|
118
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
119
|
-
*/
|
|
120
|
-
search(searchMethodParams, requestOptions) {
|
|
121
|
-
if (searchMethodParams && Array.isArray(searchMethodParams)) {
|
|
122
|
-
const newSignatureRequest = {
|
|
123
|
-
requests: searchMethodParams.map(({ params, ...legacyRequest }) => {
|
|
124
|
-
if (legacyRequest.type === 'facet') {
|
|
125
|
-
return {
|
|
126
|
-
...legacyRequest,
|
|
127
|
-
...params,
|
|
128
|
-
type: 'facet',
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
return {
|
|
132
|
-
...legacyRequest,
|
|
133
|
-
...params,
|
|
134
|
-
facet: undefined,
|
|
135
|
-
maxFacetHits: undefined,
|
|
136
|
-
facetQuery: undefined,
|
|
137
|
-
};
|
|
138
|
-
}),
|
|
139
|
-
};
|
|
140
|
-
// eslint-disable-next-line no-param-reassign
|
|
141
|
-
searchMethodParams = newSignatureRequest;
|
|
142
|
-
}
|
|
143
|
-
if (!searchMethodParams) {
|
|
144
|
-
throw new Error('Parameter `searchMethodParams` is required when calling `search`.');
|
|
145
|
-
}
|
|
146
|
-
if (!searchMethodParams.requests) {
|
|
147
|
-
throw new Error('Parameter `searchMethodParams.requests` is required when calling `search`.');
|
|
148
|
-
}
|
|
149
|
-
const requestPath = '/1/indexes/*/queries';
|
|
150
|
-
const headers = {};
|
|
151
|
-
const queryParameters = {};
|
|
152
|
-
const request = {
|
|
153
|
-
method: 'POST',
|
|
154
|
-
path: requestPath,
|
|
155
|
-
queryParameters,
|
|
156
|
-
headers,
|
|
157
|
-
data: searchMethodParams,
|
|
158
|
-
useReadTransporter: true,
|
|
159
|
-
cacheable: true,
|
|
160
|
-
};
|
|
161
|
-
return transporter.request(request, requestOptions);
|
|
162
|
-
},
|
|
163
|
-
};
|
|
4
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
5
|
+
const apiClientVersion = '5.0.0-alpha.81';
|
|
6
|
+
function getDefaultHosts(appId) {
|
|
7
|
+
return [
|
|
8
|
+
{
|
|
9
|
+
url: `${appId}-dsn.algolia.net`,
|
|
10
|
+
accept: 'read',
|
|
11
|
+
protocol: 'https',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
url: `${appId}.algolia.net`,
|
|
15
|
+
accept: 'write',
|
|
16
|
+
protocol: 'https',
|
|
17
|
+
},
|
|
18
|
+
].concat(shuffle([
|
|
19
|
+
{
|
|
20
|
+
url: `${appId}-1.algolianet.com`,
|
|
21
|
+
accept: 'readWrite',
|
|
22
|
+
protocol: 'https',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
url: `${appId}-2.algolianet.com`,
|
|
26
|
+
accept: 'readWrite',
|
|
27
|
+
protocol: 'https',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
url: `${appId}-3.algolianet.com`,
|
|
31
|
+
accept: 'readWrite',
|
|
32
|
+
protocol: 'https',
|
|
33
|
+
},
|
|
34
|
+
]));
|
|
35
|
+
}
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
37
|
+
function createLiteClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }) {
|
|
38
|
+
const auth = createAuth(appIdOption, apiKeyOption, authMode);
|
|
39
|
+
const transporter = createTransporter({
|
|
40
|
+
hosts: getDefaultHosts(appIdOption),
|
|
41
|
+
...options,
|
|
42
|
+
algoliaAgent: getAlgoliaAgent({
|
|
43
|
+
algoliaAgents,
|
|
44
|
+
client: 'Lite',
|
|
45
|
+
version: apiClientVersion,
|
|
46
|
+
}),
|
|
47
|
+
baseHeaders: {
|
|
48
|
+
'content-type': 'text/plain',
|
|
49
|
+
...auth.headers(),
|
|
50
|
+
...options.baseHeaders,
|
|
51
|
+
},
|
|
52
|
+
baseQueryParameters: {
|
|
53
|
+
...auth.queryParameters(),
|
|
54
|
+
...options.baseQueryParameters,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
return {
|
|
58
|
+
transporter,
|
|
59
|
+
/**
|
|
60
|
+
* The `appId` currently in use.
|
|
61
|
+
*/
|
|
62
|
+
appId: appIdOption,
|
|
63
|
+
/**
|
|
64
|
+
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
65
|
+
*/
|
|
66
|
+
clearCache() {
|
|
67
|
+
return Promise.all([
|
|
68
|
+
transporter.requestsCache.clear(),
|
|
69
|
+
transporter.responsesCache.clear(),
|
|
70
|
+
]).then(() => undefined);
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
74
|
+
*/
|
|
75
|
+
get _ua() {
|
|
76
|
+
return transporter.algoliaAgent.value;
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
80
|
+
*
|
|
81
|
+
* @param segment - The algolia agent (user-agent) segment to add.
|
|
82
|
+
* @param version - The version of the agent.
|
|
83
|
+
*/
|
|
84
|
+
addAlgoliaAgent(segment, version) {
|
|
85
|
+
transporter.algoliaAgent.add({ segment, version });
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
89
|
+
*
|
|
90
|
+
* @summary Send requests to the Algolia REST API.
|
|
91
|
+
* @param post - The post object.
|
|
92
|
+
* @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
93
|
+
* @param post.parameters - Query parameters to apply to the current query.
|
|
94
|
+
* @param post.body - Parameters to send with the custom request.
|
|
95
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
96
|
+
*/
|
|
97
|
+
post({ path, parameters, body }, requestOptions) {
|
|
98
|
+
if (!path) {
|
|
99
|
+
throw new Error('Parameter `path` is required when calling `post`.');
|
|
100
|
+
}
|
|
101
|
+
const requestPath = '/1{path}'.replace('{path}', path);
|
|
102
|
+
const headers = {};
|
|
103
|
+
const queryParameters = parameters ? parameters : {};
|
|
104
|
+
const request = {
|
|
105
|
+
method: 'POST',
|
|
106
|
+
path: requestPath,
|
|
107
|
+
queryParameters,
|
|
108
|
+
headers,
|
|
109
|
+
data: body ? body : {},
|
|
110
|
+
};
|
|
111
|
+
return transporter.request(request, requestOptions);
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
* Send multiple search queries to one or more indices.
|
|
115
|
+
*
|
|
116
|
+
* @summary Search multiple indices.
|
|
117
|
+
* @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
|
|
118
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
119
|
+
*/
|
|
120
|
+
search(searchMethodParams, requestOptions) {
|
|
121
|
+
if (searchMethodParams && Array.isArray(searchMethodParams)) {
|
|
122
|
+
const newSignatureRequest = {
|
|
123
|
+
requests: searchMethodParams.map(({ params, ...legacyRequest }) => {
|
|
124
|
+
if (legacyRequest.type === 'facet') {
|
|
125
|
+
return {
|
|
126
|
+
...legacyRequest,
|
|
127
|
+
...params,
|
|
128
|
+
type: 'facet',
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
...legacyRequest,
|
|
133
|
+
...params,
|
|
134
|
+
facet: undefined,
|
|
135
|
+
maxFacetHits: undefined,
|
|
136
|
+
facetQuery: undefined,
|
|
137
|
+
};
|
|
138
|
+
}),
|
|
139
|
+
};
|
|
140
|
+
// eslint-disable-next-line no-param-reassign
|
|
141
|
+
searchMethodParams = newSignatureRequest;
|
|
142
|
+
}
|
|
143
|
+
if (!searchMethodParams) {
|
|
144
|
+
throw new Error('Parameter `searchMethodParams` is required when calling `search`.');
|
|
145
|
+
}
|
|
146
|
+
if (!searchMethodParams.requests) {
|
|
147
|
+
throw new Error('Parameter `searchMethodParams.requests` is required when calling `search`.');
|
|
148
|
+
}
|
|
149
|
+
const requestPath = '/1/indexes/*/queries';
|
|
150
|
+
const headers = {};
|
|
151
|
+
const queryParameters = {};
|
|
152
|
+
const request = {
|
|
153
|
+
method: 'POST',
|
|
154
|
+
path: requestPath,
|
|
155
|
+
queryParameters,
|
|
156
|
+
headers,
|
|
157
|
+
data: searchMethodParams,
|
|
158
|
+
useReadTransporter: true,
|
|
159
|
+
cacheable: true,
|
|
160
|
+
};
|
|
161
|
+
return transporter.request(request, requestOptions);
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
//
|
|
167
|
-
function liteClient(appId, apiKey, options) {
|
|
168
|
-
if (!appId || typeof appId !== 'string') {
|
|
169
|
-
throw new Error('`appId` is missing.');
|
|
170
|
-
}
|
|
171
|
-
if (!apiKey || typeof apiKey !== 'string') {
|
|
172
|
-
throw new Error('`apiKey` is missing.');
|
|
173
|
-
}
|
|
174
|
-
return createLiteClient({
|
|
175
|
-
appId,
|
|
176
|
-
apiKey,
|
|
177
|
-
timeouts: {
|
|
178
|
-
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
|
|
179
|
-
read: DEFAULT_READ_TIMEOUT_NODE,
|
|
180
|
-
write: DEFAULT_WRITE_TIMEOUT_NODE,
|
|
181
|
-
},
|
|
182
|
-
requester: createHttpRequester(),
|
|
183
|
-
algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
|
|
184
|
-
responsesCache: createNullCache(),
|
|
185
|
-
requestsCache: createNullCache(),
|
|
186
|
-
hostsCache: createMemoryCache(),
|
|
187
|
-
...options,
|
|
188
|
-
});
|
|
166
|
+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
167
|
+
function liteClient(appId, apiKey, options) {
|
|
168
|
+
if (!appId || typeof appId !== 'string') {
|
|
169
|
+
throw new Error('`appId` is missing.');
|
|
170
|
+
}
|
|
171
|
+
if (!apiKey || typeof apiKey !== 'string') {
|
|
172
|
+
throw new Error('`apiKey` is missing.');
|
|
173
|
+
}
|
|
174
|
+
return createLiteClient({
|
|
175
|
+
appId,
|
|
176
|
+
apiKey,
|
|
177
|
+
timeouts: {
|
|
178
|
+
connect: DEFAULT_CONNECT_TIMEOUT_NODE,
|
|
179
|
+
read: DEFAULT_READ_TIMEOUT_NODE,
|
|
180
|
+
write: DEFAULT_WRITE_TIMEOUT_NODE,
|
|
181
|
+
},
|
|
182
|
+
requester: createHttpRequester(),
|
|
183
|
+
algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
|
|
184
|
+
responsesCache: createNullCache(),
|
|
185
|
+
requestsCache: createNullCache(),
|
|
186
|
+
hostsCache: createMemoryCache(),
|
|
187
|
+
...options,
|
|
188
|
+
});
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
export { apiClientVersion, liteClient };
|
package/dist/lite/lite.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! algoliasearch/lite.umd.js | 5.0.0-alpha.
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["algoliasearch/lite"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),s=a()[r];return Promise.all([s||t(),void 0!==s])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const o=a();return o[JSON.stringify(e)]=t,s().setItem(r,JSON.stringify(o)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,o={miss:()=>Promise.resolve()})=>s.get(e,a,o).catch((()=>r({caches:t}).get(e,a,o))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);const n=s();return n.then((e=>a.miss(e))).then((()=>n))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function o(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),n(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends i{constructor(e,t,r){super(e,r),n(this,"stackTrace",void 0),this.stackTrace=t}}class u extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",e,"RetryError")}}class l extends c{constructor(e,t,r){super(e,r,"ApiError"),n(this,"status",void 0),this.status=t}}class d extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}function h(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${t(e[r])?JSON.stringify(e[r]):e[r]}`)).join("&")}(r);let a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return s.length&&(a+=`?${s}`),a}function m(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function p({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:n,requester:i,requestsCache:c,responsesCache:p}){async function f(c,p,f=!0){const g=[],y=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(c,p),P=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,c.headers,p.headers),v="GET"===c.method?{...c.data,...p.data}:{},b={"x-algolia-agent":a.value,...s,...c.queryParameters,...v};if(p&&p.queryParameters)for(const e of Object.keys(p.queryParameters))p.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(p.queryParameters[e])?b[e]=p.queryParameters[e].toString():b[e]=p.queryParameters[e];let O=0;const q=async(e,r)=>{const s=e.pop();if(void 0===s)throw new u(function(e){return e.map((e=>m(e)))}(g));let a=p.timeout;void 0===a&&(a=f?n.read:n.write);const v={data:y,headers:P,method:c.method,url:h(s,c.path,b),connectTimeout:r(O,n.connect),responseTimeout:r(O,a)},w=t=>{const r={request:v,response:t,host:s,triesLeft:e.length};return g.push(r),r},T=await i.send(v);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(T)){const a=w(T);return T.isTimedOut&&O++,console.log("Retryable failure",m(a)),await t.set(s,o(s,T.isTimedOut?"timed out":"down")),q(e,r)}if(function({status:e}){return 2==~~(e/100)}(T))return function(e){try{return JSON.parse(e.content)}catch(t){throw new d(t.message,e)}}(T);throw w(T),function({content:e,status:t},r){let s=e;try{s=JSON.parse(e).message}catch(e){}return new l(s,t,r)}(T,g)},w=e.filter((e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept))),T=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(o(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),n=[...s,...a];return{hosts:n.length>0?n:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(w);return q([...T.hosts].reverse(),T.getTimeout)}return{hostsCache:t,requester:i,timeouts:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return f(e,t,a);const o=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return o();const n={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return p.get(n,(()=>c.get(n,(()=>c.set(n,o()).then((e=>Promise.all([c.delete(n),e])),(e=>Promise.all([c.delete(n),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>p.set(n,e)})},requestsCache:c,responsesCache:p}}function f({algoliaAgents:e,client:t,version:r}){const s=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>s.add(e))),s}const g="5.0.0-alpha.8";function y(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){const t=e;for(let r=e.length-1;r>0;r--){const s=Math.floor(Math.random()*(r+1)),a=e[r];t[r]=e[s],t[s]=a}return t}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}e.apiClientVersion=g,e.liteClient=function(e,a,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,...a}){const o=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),n=p({hosts:y(e),...a,algoliaAgent:f({algoliaAgents:s,client:"Lite",version:g}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.baseQueryParameters}});return{transporter:n,appId:e,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then((()=>{})),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},post({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `post`.");const a={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(a,s)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map((({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0}))};e=t}if(!e)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)}}}({appId:e,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let o;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===o&&(clearTimeout(a),o=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(o),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(o),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`5.0.0-alpha.8-${e}`}),s()]}),...o})}}));
|
|
1
|
+
/*! algoliasearch/lite.umd.js | 5.0.0-alpha.81 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["algoliasearch/lite"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),s=a()[r];return Promise.all([s||t(),void 0!==s])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const o=a();return o[JSON.stringify(e)]=t,s().setItem(r,JSON.stringify(o)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,o={miss:()=>Promise.resolve()})=>s.get(e,a,o).catch((()=>r({caches:t}).get(e,a,o))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);const n=s();return n.then((e=>a.miss(e))).then((()=>n))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function o(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),n(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends i{constructor(e,t,r){super(e,r),n(this,"stackTrace",void 0),this.stackTrace=t}}class u extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",e,"RetryError")}}class l extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),n(this,"status",void 0),this.status=t}}class d extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class h extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function m(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return s.length&&(a+=`?${s}`),a}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function f({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:n,requester:i,requestsCache:c,responsesCache:f}){async function g(c,f,g=!0){const y=[],v=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(c,f),P=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,c.headers,f.headers),b="GET"===c.method?{...c.data,...f.data}:{},w={...s,...c.queryParameters,...b};if(a.value&&(w["x-algolia-agent"]=a.value),f&&f.queryParameters)for(const e of Object.keys(f.queryParameters))f.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(f.queryParameters[e])?w[e]=f.queryParameters[e].toString():w[e]=f.queryParameters[e];let O=0;const q=async(e,r)=>{const s=e.pop();if(void 0===s)throw new u(function(e){return e.map((e=>p(e)))}(y));let a=f.timeout;void 0===a&&(a=g?n.read:n.write);const b={data:v,headers:P,method:c.method,url:m(s,c.path,w),connectTimeout:r(O,n.connect),responseTimeout:r(O,a)},T=t=>{const r={request:b,response:t,host:s,triesLeft:e.length};return y.push(r),r},S=await i.send(b);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(S)){const a=T(S);return S.isTimedOut&&O++,console.log("Retryable failure",p(a)),await t.set(s,o(s,S.isTimedOut?"timed out":"down")),q(e,r)}if(function({status:e}){return 2==~~(e/100)}(S))return function(e){try{return JSON.parse(e.content)}catch(t){throw new d(t.message,e)}}(S);throw T(S),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new h(s.message,t,s.error,r):new l(s.message,t,r)}catch(e){}return new l(e,t,r)}(S,y)},T=e.filter((e=>"readWrite"===e.accept||(g?"read"===e.accept:"write"===e.accept))),S=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(o(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),n=[...s,...a];return{hosts:n.length>0?n:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(T);return q([...S.hosts].reverse(),S.getTimeout)}return{hostsCache:t,requester:i,timeouts:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return g(e,t,a);const o=()=>g(e,t);if(!0!==(t.cacheable||e.cacheable))return o();const n={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return f.get(n,(()=>c.get(n,(()=>c.set(n,o()).then((e=>Promise.all([c.delete(n),e])),(e=>Promise.all([c.delete(n),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>f.set(n,e)})},requestsCache:c,responsesCache:f}}function g({algoliaAgents:e,client:t,version:r}){const s=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>s.add(e))),s}const y="5.0.0-alpha.81";function v(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){const t=e;for(let r=e.length-1;r>0;r--){const s=Math.floor(Math.random()*(r+1)),a=e[r];t[r]=e[s],t[s]=a}return t}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}e.apiClientVersion=y,e.liteClient=function(e,a,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,...a}){const o=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),n=f({hosts:v(e),...a,algoliaAgent:g({algoliaAgents:s,client:"Lite",version:y}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.baseQueryParameters}});return{transporter:n,appId:e,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then((()=>{})),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},post({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `post`.");const a={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(a,s)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map((({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0}))};e=t}if(!e)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)}}}({appId:e,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let o;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===o&&(clearTimeout(a),o=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(o),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(o),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${y}-${e}`}),s()]}),...o})}}));
|
package/dist/lite/model/acl.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*/
|
|
4
|
-
export
|
|
1
|
+
/**
|
|
2
|
+
* API key permissions: `addObject`: required to add or update records, copy or move an index. `analytics`: required to access the Analytics API. `browse`: required to view records `deleteIndex`: required to delete indices. `deleteObject`: required to delete records. `editSettings`: required to change index settings. `inference`: required to access the Inference API. `listIndexes`: required to list indices. `logs`: required to access logs of search and indexing operations. `recommendation`: required to access the Personalization and Recommend APIs. `search`: required to search records `seeUnretrievableAttributes`: required to retrieve [`unretrievableAttributes`](https://www.algolia.com/doc/api-reference/api-parameters/unretrievableAttributes/) for all operations that return records. `settings`: required to examine index settings.
|
|
3
|
+
*/
|
|
4
|
+
export type Acl = 'addObject' | 'analytics' | 'browse' | 'deleteIndex' | 'deleteObject' | 'editSettings' | 'inference' | 'listIndexes' | 'logs' | 'personalization' | 'recommendation' | 'search' | 'seeUnretrievableAttributes' | 'settings' | 'usage';
|
|
5
5
|
//# sourceMappingURL=acl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acl.d.ts","sourceRoot":"","sources":["../../../lite/model/acl.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"acl.d.ts","sourceRoot":"","sources":["../../../lite/model/acl.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,GAAG,GACX,WAAW,GACX,WAAW,GACX,QAAQ,GACR,aAAa,GACb,cAAc,GACd,cAAc,GACd,WAAW,GACX,aAAa,GACb,MAAM,GACN,iBAAiB,GACjB,gBAAgB,GAChB,QAAQ,GACR,4BAA4B,GAC5B,UAAU,GACV,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type of operation.
|
|
3
|
-
*/
|
|
4
|
-
export
|
|
1
|
+
/**
|
|
2
|
+
* Type of batch operation.
|
|
3
|
+
*/
|
|
4
|
+
export type Action = 'addObject' | 'clear' | 'delete' | 'deleteObject' | 'partialUpdateObject' | 'partialUpdateObjectNoCreate' | 'updateObject';
|
|
5
5
|
//# sourceMappingURL=action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../lite/model/action.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../lite/model/action.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,WAAW,GACX,OAAO,GACP,QAAQ,GACR,cAAc,GACd,qBAAqB,GACrB,6BAA6B,GAC7B,cAAc,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
key: string;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
createdAt: string;
|
|
10
|
-
};
|
|
1
|
+
export type AddApiKeyResponse = {
|
|
2
|
+
/**
|
|
3
|
+
* API key.
|
|
4
|
+
*/
|
|
5
|
+
key: string;
|
|
6
|
+
/**
|
|
7
|
+
* Timestamp of creation in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
8
|
+
*/
|
|
9
|
+
createdAt: string;
|
|
10
|
+
};
|
|
11
11
|
//# sourceMappingURL=addApiKeyResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addApiKeyResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/addApiKeyResponse.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"addApiKeyResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/addApiKeyResponse.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type AdvancedSyntaxFeatures = 'exactPhrase' | 'excludeWords';
|
|
2
2
|
//# sourceMappingURL=advancedSyntaxFeatures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advancedSyntaxFeatures.d.ts","sourceRoot":"","sources":["../../../lite/model/advancedSyntaxFeatures.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"advancedSyntaxFeatures.d.ts","sourceRoot":"","sources":["../../../lite/model/advancedSyntaxFeatures.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,cAAc,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type AlternativesAsExact = 'ignorePlurals' | 'multiWordsSynonym' | 'singleWordSynonym';
|
|
2
2
|
//# sourceMappingURL=alternativesAsExact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alternativesAsExact.d.ts","sourceRoot":"","sources":["../../../lite/model/alternativesAsExact.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"alternativesAsExact.d.ts","sourceRoot":"","sources":["../../../lite/model/alternativesAsExact.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAC3B,eAAe,GACf,mBAAmB,GACnB,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Whether the pattern parameter
|
|
3
|
-
*/
|
|
4
|
-
export
|
|
1
|
+
/**
|
|
2
|
+
* Whether the pattern parameter matches the beginning (`startsWith`) or end (`endsWith`) of the query string, is an exact match (`is`), or a partial match (`contains`).
|
|
3
|
+
*/
|
|
4
|
+
export type Anchoring = 'contains' | 'endsWith' | 'is' | 'startsWith';
|
|
5
5
|
//# sourceMappingURL=anchoring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anchoring.d.ts","sourceRoot":"","sources":["../../../lite/model/anchoring.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"anchoring.d.ts","sourceRoot":"","sources":["../../../lite/model/anchoring.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,YAAY,CAAC"}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import type { Acl } from './acl';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
export
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
acl: Acl[];
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
description?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
indexes?: string[];
|
|
18
|
-
/**
|
|
19
|
-
* Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced.
|
|
20
|
-
*/
|
|
21
|
-
maxHitsPerQuery?: number;
|
|
22
|
-
/**
|
|
23
|
-
* Maximum number of API calls per hour allowed from a given IP address or
|
|
24
|
-
*/
|
|
25
|
-
maxQueriesPerIPPerHour?: number;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
queryParameters?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Restrict this
|
|
32
|
-
*/
|
|
33
|
-
referers?: string[];
|
|
34
|
-
/**
|
|
35
|
-
* Validity
|
|
36
|
-
*/
|
|
37
|
-
validity?: number;
|
|
38
|
-
};
|
|
1
|
+
import type { Acl } from './acl';
|
|
2
|
+
/**
|
|
3
|
+
* API key object.
|
|
4
|
+
*/
|
|
5
|
+
export type ApiKey = {
|
|
6
|
+
/**
|
|
7
|
+
* [Permissions](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl) associated with the key.
|
|
8
|
+
*/
|
|
9
|
+
acl: Acl[];
|
|
10
|
+
/**
|
|
11
|
+
* Description of an API key for you and your team members.
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Restricts this API key to a list of indices or index patterns. If the list is empty, all indices are allowed. Specify either an exact index name or a pattern with a leading or trailing wildcard character (or both). For example: - `dev_*` matches all indices starting with \"dev_\" - `*_dev` matches all indices ending with \"_dev\" - `*_products_*` matches all indices containing \"_products_\".
|
|
16
|
+
*/
|
|
17
|
+
indexes?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced. > **Note**: Use this parameter to protect you from third-party attempts to retrieve your entire content by massively querying the index.
|
|
20
|
+
*/
|
|
21
|
+
maxHitsPerQuery?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum number of API calls per hour allowed from a given IP address or [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/). Each time an API call is performed with this key, a check is performed. If there were more than the specified number of calls within the last hour, the API returns an error with the status code `429` (Too Many Requests). > **Note**: Use this parameter to protect you from third-party attempts to retrieve your entire content by massively querying the index.
|
|
24
|
+
*/
|
|
25
|
+
maxQueriesPerIPPerHour?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Force some [query parameters](https://www.algolia.com/doc/api-reference/api-parameters/) to be applied for each query made with this API key. It\'s a URL-encoded query string.
|
|
28
|
+
*/
|
|
29
|
+
queryParameters?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Restrict this API key to specific [referrers](https://www.algolia.com/doc/guides/security/api-keys/in-depth/api-key-restrictions/#http-referrers). If empty, all referrers are allowed. For example: - `https://algolia.com/_*` matches all referrers starting with \"https://algolia.com/\" - `*.algolia.com` matches all referrers ending with \".algolia.com\" - `*algolia.com*` allows everything in the domain \"algolia.com\".
|
|
32
|
+
*/
|
|
33
|
+
referers?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Validity duration of a key (in seconds). The key will automatically be removed after this time has expired. The default value of 0 never expires. Short-lived API keys are useful to grant temporary access to your data. For example, in mobile apps, you can\'t [control when users update your app](https://www.algolia.com/doc/guides/security/security-best-practices/#use-secured-api-keys-in-mobile-apps). So instead of encoding keys into your app as you would for a web app, you should dynamically fetch them from your mobile app\'s backend.
|
|
36
|
+
*/
|
|
37
|
+
validity?: number;
|
|
38
|
+
};
|
|
39
39
|
//# sourceMappingURL=apiKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../../../lite/model/apiKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../../../lite/model/apiKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB;;OAEG;IACH,GAAG,EAAE,GAAG,EAAE,CAAC;IAEX;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner';
|
|
2
|
+
/**
|
|
3
|
+
* Precision of a geographical search (in meters), to [group results that are more or less the same distance from a central point](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/in-depth/geo-ranking-precision/).
|
|
4
|
+
*/
|
|
5
|
+
export type AroundPrecision = AroundPrecisionFromValueInner[] | number;
|
|
6
|
+
//# sourceMappingURL=aroundPrecision.d.ts.map
|