algoliasearch 5.0.0-alpha.72 → 5.0.0-alpha.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/algoliasearch.cjs.js +342 -340
- package/dist/algoliasearch.esm.browser.js +342 -338
- package/dist/algoliasearch.esm.node.js +342 -338
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/builds/browser.d.ts +2 -2
- package/dist/builds/node.d.ts +2 -2
- package/dist/client-abtesting/model/aBTest.d.ts +8 -12
- package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
- package/dist/client-abtesting/model/aBTestResponse.d.ts +3 -3
- package/dist/client-abtesting/model/abTestsVariant.d.ts +3 -3
- package/dist/client-abtesting/model/addABTestsRequest.d.ts +3 -3
- package/dist/client-abtesting/model/addABTestsRequest.d.ts.map +1 -1
- package/dist/client-abtesting/model/clientMethodProps.d.ts +16 -16
- package/dist/client-abtesting/model/customSearchParams.d.ts +3 -0
- package/dist/client-abtesting/model/customSearchParams.d.ts.map +1 -1
- package/dist/client-abtesting/model/listABTestsResponse.d.ts +3 -3
- package/dist/client-abtesting/model/variant.d.ts +20 -12
- package/dist/client-abtesting/model/variant.d.ts.map +1 -1
- package/dist/client-abtesting/src/abtestingClient.d.ts +27 -27
- package/dist/client-analytics/model/averageClickEvent.d.ts +3 -3
- package/dist/client-analytics/model/clickPosition.d.ts +2 -2
- package/dist/client-analytics/model/clickThroughRateEvent.d.ts +4 -4
- package/dist/client-analytics/model/clientMethodProps.d.ts +91 -91
- package/dist/client-analytics/model/conversionRateEvent.d.ts +4 -4
- package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +3 -3
- package/dist/client-analytics/model/getClickPositionsResponse.d.ts +1 -1
- package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +4 -4
- package/dist/client-analytics/model/getConversationRateResponse.d.ts +4 -4
- package/dist/client-analytics/model/getNoClickRateResponse.d.ts +4 -4
- package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +4 -4
- package/dist/client-analytics/model/getSearchesCountResponse.d.ts +2 -2
- package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +1 -1
- package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +1 -1
- package/dist/client-analytics/model/getStatusResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopCountriesResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFilterAttribute.d.ts +2 -2
- package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +4 -4
- package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +3 -3
- package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts +2 -2
- package/dist/client-analytics/model/getUsersCountResponse.d.ts +2 -2
- package/dist/client-analytics/model/noClickRateEvent.d.ts +4 -4
- package/dist/client-analytics/model/noResultsRateEvent.d.ts +4 -4
- package/dist/client-analytics/model/orderBy.d.ts +3 -0
- package/dist/client-analytics/model/orderBy.d.ts.map +1 -1
- package/dist/client-analytics/model/searchEvent.d.ts +2 -2
- package/dist/client-analytics/model/searchNoClickEvent.d.ts +3 -3
- package/dist/client-analytics/model/searchNoResultEvent.d.ts +3 -3
- package/dist/client-analytics/model/topCountry.d.ts +2 -2
- package/dist/client-analytics/model/topHit.d.ts +2 -2
- package/dist/client-analytics/model/topHitWithAnalytics.d.ts +7 -7
- package/dist/client-analytics/model/topHitsResponse.d.ts +1 -1
- package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +1 -1
- package/dist/client-analytics/model/topSearch.d.ts +3 -3
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +9 -9
- package/dist/client-analytics/model/topSearchesResponse.d.ts +1 -1
- package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +1 -1
- package/dist/client-analytics/model/userWithDate.d.ts +2 -2
- package/dist/client-analytics/src/analyticsClient.d.ts +114 -114
- package/dist/client-personalization/model/clientMethodProps.d.ts +10 -10
- package/dist/client-personalization/src/personalizationClient.d.ts +11 -11
- package/dist/client-search/model/acl.d.ts +1 -1
- package/dist/client-search/model/action.d.ts +1 -1
- package/dist/client-search/model/addApiKeyResponse.d.ts +2 -2
- package/dist/client-search/model/anchoring.d.ts +1 -1
- package/dist/client-search/model/apiKey.d.ts +9 -9
- package/dist/client-search/model/aroundRadius.d.ts +1 -1
- package/dist/client-search/model/assignUserIdParams.d.ts +1 -1
- package/dist/client-search/model/baseGetApiKeyResponse.d.ts +2 -2
- package/dist/client-search/model/baseIndexSettings.d.ts +14 -14
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +25 -25
- package/dist/client-search/model/baseSearchResponse.d.ts +20 -20
- package/dist/client-search/model/baseSearchResponseRedirect.d.ts +1 -1
- package/dist/client-search/model/batchAssignUserIdsParams.d.ts +2 -2
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/client-search/model/batchParams.d.ts +1 -1
- package/dist/client-search/model/batchRequest.d.ts +1 -1
- package/dist/client-search/model/batchResponse.d.ts +2 -2
- package/dist/client-search/model/batchWriteParams.d.ts +1 -1
- package/dist/client-search/model/builtInOperation.d.ts +1 -1
- package/dist/client-search/model/builtInOperationType.d.ts +1 -1
- package/dist/client-search/model/clientMethodProps.d.ts +88 -84
- package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
- package/dist/client-search/model/consequence.d.ts +4 -4
- package/dist/client-search/model/consequenceHide.d.ts +2 -2
- package/dist/client-search/model/createdAtResponse.d.ts +2 -2
- package/dist/client-search/model/cursor.d.ts +1 -1
- package/dist/client-search/model/deleteApiKeyResponse.d.ts +1 -1
- package/dist/client-search/model/deleteByParams.d.ts +4 -4
- package/dist/client-search/model/deleteSourceResponse.d.ts +1 -1
- package/dist/client-search/model/deletedAtResponse.d.ts +3 -3
- package/dist/client-search/model/dictionaryEntry.d.ts +6 -6
- package/dist/client-search/model/dictionaryEntryState.d.ts +1 -1
- package/dist/client-search/model/dictionaryLanguage.d.ts +2 -2
- package/dist/client-search/model/dictionarySettingsParams.d.ts +1 -1
- package/dist/client-search/model/distinct.d.ts +1 -1
- package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/client-search/model/facetFilters.d.ts +1 -1
- package/dist/client-search/model/facetHits.d.ts +3 -3
- package/dist/client-search/model/facetOrdering.d.ts +2 -2
- package/dist/client-search/model/facets.d.ts +1 -1
- package/dist/client-search/model/facetsStats.d.ts +4 -4
- package/dist/client-search/model/fetchedIndex.d.ts +1 -1
- package/dist/client-search/model/getObjectsParams.d.ts +1 -1
- package/dist/client-search/model/getObjectsRequest.d.ts +4 -4
- package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
- package/dist/client-search/model/getTopUserIdsResponse.d.ts +2 -2
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts +2 -2
- package/dist/client-search/model/highlightResultOption.d.ts +1 -1
- package/dist/client-search/model/hit.d.ts +1 -1
- package/dist/client-search/model/ignorePlurals.d.ts +1 -1
- package/dist/client-search/model/indexSettings.d.ts +1 -1
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +30 -30
- package/dist/client-search/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
- package/dist/client-search/model/languages.d.ts +1 -1
- package/dist/client-search/model/listApiKeysResponse.d.ts +1 -1
- package/dist/client-search/model/listClustersResponse.d.ts +2 -2
- package/dist/client-search/model/listIndicesResponse.d.ts +1 -1
- package/dist/client-search/model/listUserIdsResponse.d.ts +2 -2
- package/dist/client-search/model/log.d.ts +7 -7
- package/dist/client-search/model/logQuery.d.ts +1 -1
- package/dist/client-search/model/mode.d.ts +1 -1
- package/dist/client-search/model/multipleBatchRequest.d.ts +1 -1
- package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
- package/dist/client-search/model/numericFilters.d.ts +1 -1
- package/dist/client-search/model/operationIndexParams.d.ts +2 -2
- package/dist/client-search/model/operationType.d.ts +1 -1
- package/dist/client-search/model/optionalFilters.d.ts +1 -1
- package/dist/client-search/model/params.d.ts +1 -1
- package/dist/client-search/model/promoteObjectID.d.ts +3 -3
- package/dist/client-search/model/promoteObjectIDs.d.ts +3 -3
- package/dist/client-search/model/queryType.d.ts +1 -1
- package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/client-search/model/redirectRuleIndexMetadata.d.ts +1 -1
- package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts +1 -1
- package/dist/client-search/model/removeStopWords.d.ts +1 -1
- package/dist/client-search/model/removeUserIdResponse.d.ts +1 -1
- package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/client-search/model/renderingContent.d.ts +1 -1
- package/dist/client-search/model/replaceSourceResponse.d.ts +1 -1
- package/dist/client-search/model/rule.d.ts +5 -5
- package/dist/client-search/model/saveObjectResponse.d.ts +5 -2
- package/dist/client-search/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/client-search/model/saveSynonymResponse.d.ts +3 -3
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +5 -5
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts +2 -2
- package/dist/client-search/model/searchForFacetsOptions.d.ts +3 -3
- package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
- package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
- package/dist/client-search/model/searchParamsString.d.ts +1 -1
- package/dist/client-search/model/searchRulesParams.d.ts +7 -7
- package/dist/client-search/model/searchStrategy.d.ts +3 -0
- package/dist/client-search/model/searchStrategy.d.ts.map +1 -1
- package/dist/client-search/model/searchSynonymsParams.d.ts +1 -1
- package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/client-search/model/searchTypeDefault.d.ts +1 -1
- package/dist/client-search/model/searchTypeFacet.d.ts +1 -1
- package/dist/client-search/model/searchUserIdsParams.d.ts +4 -4
- package/dist/client-search/model/searchUserIdsResponse.d.ts +5 -5
- package/dist/client-search/model/snippetResultOption.d.ts +1 -1
- package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
- package/dist/client-search/model/source.d.ts +3 -3
- package/dist/client-search/model/standardEntries.d.ts +4 -4
- package/dist/client-search/model/synonymHit.d.ts +6 -6
- package/dist/client-search/model/synonymType.d.ts +1 -1
- package/dist/client-search/model/tagFilters.d.ts +1 -1
- package/dist/client-search/model/taskStatus.d.ts +3 -0
- package/dist/client-search/model/taskStatus.d.ts.map +1 -1
- package/dist/client-search/model/typoTolerance.d.ts +1 -1
- package/dist/client-search/model/updateApiKeyResponse.d.ts +2 -2
- package/dist/client-search/model/updatedAtResponse.d.ts +3 -3
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +4 -4
- package/dist/client-search/model/updatedRuleResponse.d.ts +3 -3
- package/dist/client-search/model/userHit.d.ts +1 -1
- package/dist/client-search/model/userId.d.ts +2 -2
- package/dist/client-search/src/searchClient.d.ts +185 -184
- package/dist/client-search/src/searchClient.d.ts.map +1 -1
- package/dist/lite/lite.cjs.js +6 -8
- package/dist/lite/lite.esm.browser.js +6 -6
- package/dist/lite/lite.esm.node.js +6 -6
- package/dist/lite/lite.umd.js +2 -2
- package/dist/lite/model/acl.d.ts +1 -1
- package/dist/lite/model/action.d.ts +1 -1
- package/dist/lite/model/addApiKeyResponse.d.ts +2 -2
- package/dist/lite/model/anchoring.d.ts +1 -1
- package/dist/lite/model/apiKey.d.ts +9 -9
- package/dist/lite/model/aroundRadius.d.ts +1 -1
- package/dist/lite/model/baseGetApiKeyResponse.d.ts +2 -2
- package/dist/lite/model/baseIndexSettings.d.ts +14 -14
- package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +25 -25
- package/dist/lite/model/baseSearchResponse.d.ts +20 -20
- package/dist/lite/model/baseSearchResponseRedirect.d.ts +1 -1
- package/dist/lite/model/builtInOperation.d.ts +1 -1
- package/dist/lite/model/builtInOperationType.d.ts +1 -1
- package/dist/lite/model/clientMethodProps.d.ts +3 -3
- package/dist/lite/model/consequence.d.ts +4 -4
- package/dist/lite/model/consequenceHide.d.ts +2 -2
- package/dist/lite/model/cursor.d.ts +1 -1
- package/dist/lite/model/deleteByParams.d.ts +4 -4
- package/dist/lite/model/dictionaryEntry.d.ts +6 -6
- package/dist/lite/model/dictionaryEntryState.d.ts +1 -1
- package/dist/lite/model/dictionaryLanguage.d.ts +2 -2
- package/dist/lite/model/distinct.d.ts +1 -1
- package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/lite/model/facetFilters.d.ts +1 -1
- package/dist/lite/model/facetOrdering.d.ts +2 -2
- package/dist/lite/model/facets.d.ts +1 -1
- package/dist/lite/model/facetsStats.d.ts +4 -4
- package/dist/lite/model/fetchedIndex.d.ts +1 -1
- package/dist/lite/model/highlightResultOption.d.ts +1 -1
- package/dist/lite/model/hit.d.ts +1 -1
- package/dist/lite/model/ignorePlurals.d.ts +1 -1
- package/dist/lite/model/indexSettings.d.ts +1 -1
- package/dist/lite/model/indexSettingsAsSearchParams.d.ts +30 -30
- package/dist/lite/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
- package/dist/lite/model/languages.d.ts +1 -1
- package/dist/lite/model/listIndicesResponse.d.ts +1 -1
- package/dist/lite/model/mode.d.ts +1 -1
- package/dist/lite/model/numericFilters.d.ts +1 -1
- package/dist/lite/model/operationType.d.ts +1 -1
- package/dist/lite/model/optionalFilters.d.ts +1 -1
- package/dist/lite/model/params.d.ts +1 -1
- package/dist/lite/model/promoteObjectID.d.ts +3 -3
- package/dist/lite/model/promoteObjectIDs.d.ts +3 -3
- package/dist/lite/model/queryType.d.ts +1 -1
- package/dist/lite/model/reRankingApplyFilter.d.ts +1 -1
- package/dist/lite/model/redirectRuleIndexMetadata.d.ts +1 -1
- package/dist/lite/model/redirectRuleIndexMetadataData.d.ts +1 -1
- package/dist/lite/model/removeStopWords.d.ts +1 -1
- package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/lite/model/renderingContent.d.ts +1 -1
- package/dist/lite/model/rule.d.ts +5 -5
- package/dist/lite/model/searchForFacetsOptions.d.ts +3 -3
- package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
- package/dist/lite/model/searchParamsQuery.d.ts +1 -1
- package/dist/lite/model/searchParamsString.d.ts +1 -1
- package/dist/lite/model/searchStrategy.d.ts +3 -0
- package/dist/lite/model/searchStrategy.d.ts.map +1 -1
- package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/lite/model/searchTypeDefault.d.ts +1 -1
- package/dist/lite/model/searchTypeFacet.d.ts +1 -1
- package/dist/lite/model/snippetResultOption.d.ts +1 -1
- package/dist/lite/model/sortRemainingBy.d.ts +1 -1
- package/dist/lite/model/source.d.ts +3 -3
- package/dist/lite/model/standardEntries.d.ts +4 -4
- package/dist/lite/model/synonymHit.d.ts +6 -6
- package/dist/lite/model/synonymType.d.ts +1 -1
- package/dist/lite/model/tagFilters.d.ts +1 -1
- package/dist/lite/model/taskStatus.d.ts +3 -0
- package/dist/lite/model/taskStatus.d.ts.map +1 -1
- package/dist/lite/model/typoTolerance.d.ts +1 -1
- package/dist/lite/model/updatedRuleResponse.d.ts +3 -3
- package/dist/lite/model/userId.d.ts +2 -2
- package/dist/lite/src/liteClient.d.ts +6 -6
- package/lite/model/acl.ts +1 -1
- package/lite/model/action.ts +1 -1
- package/lite/model/addApiKeyResponse.ts +2 -2
- package/lite/model/anchoring.ts +1 -1
- package/lite/model/apiKey.ts +9 -9
- package/lite/model/aroundRadius.ts +1 -1
- package/lite/model/baseGetApiKeyResponse.ts +2 -2
- package/lite/model/baseIndexSettings.ts +14 -14
- package/lite/model/baseSearchParamsWithoutQuery.ts +25 -25
- package/lite/model/baseSearchResponse.ts +20 -20
- package/lite/model/baseSearchResponseRedirect.ts +1 -1
- package/lite/model/builtInOperation.ts +1 -1
- package/lite/model/builtInOperationType.ts +1 -1
- package/lite/model/clientMethodProps.ts +3 -3
- package/lite/model/consequence.ts +4 -4
- package/lite/model/consequenceHide.ts +2 -2
- package/lite/model/cursor.ts +1 -1
- package/lite/model/deleteByParams.ts +4 -4
- package/lite/model/dictionaryEntry.ts +6 -6
- package/lite/model/dictionaryEntryState.ts +1 -1
- package/lite/model/dictionaryLanguage.ts +2 -2
- package/lite/model/distinct.ts +1 -1
- package/lite/model/exactOnSingleWordQuery.ts +1 -1
- package/lite/model/facetFilters.ts +1 -1
- package/lite/model/facetOrdering.ts +2 -2
- package/lite/model/facets.ts +1 -1
- package/lite/model/facetsStats.ts +4 -4
- package/lite/model/fetchedIndex.ts +1 -1
- package/lite/model/highlightResultOption.ts +1 -1
- package/lite/model/hit.ts +1 -1
- package/lite/model/ignorePlurals.ts +1 -1
- package/lite/model/indexSettings.ts +1 -1
- package/lite/model/indexSettingsAsSearchParams.ts +30 -30
- package/lite/model/indexSettingsAsSearchParamsSemanticSearch.ts +2 -2
- package/lite/model/languages.ts +1 -1
- package/lite/model/listIndicesResponse.ts +1 -1
- package/lite/model/mode.ts +1 -1
- package/lite/model/numericFilters.ts +1 -1
- package/lite/model/operationType.ts +1 -1
- package/lite/model/optionalFilters.ts +1 -1
- package/lite/model/params.ts +1 -1
- package/lite/model/promoteObjectID.ts +3 -3
- package/lite/model/promoteObjectIDs.ts +3 -3
- package/lite/model/queryType.ts +1 -1
- package/lite/model/reRankingApplyFilter.ts +1 -1
- package/lite/model/redirectRuleIndexMetadata.ts +1 -1
- package/lite/model/redirectRuleIndexMetadataData.ts +1 -1
- package/lite/model/removeStopWords.ts +1 -1
- package/lite/model/removeWordsIfNoResults.ts +1 -1
- package/lite/model/renderingContent.ts +1 -1
- package/lite/model/rule.ts +5 -5
- package/lite/model/searchForFacetsOptions.ts +3 -3
- package/lite/model/searchForHitsOptions.ts +1 -1
- package/lite/model/searchParamsQuery.ts +1 -1
- package/lite/model/searchParamsString.ts +1 -1
- package/lite/model/searchStrategy.ts +3 -0
- package/lite/model/searchSynonymsResponse.ts +2 -2
- package/lite/model/searchTypeDefault.ts +1 -1
- package/lite/model/searchTypeFacet.ts +1 -1
- package/lite/model/snippetResultOption.ts +1 -1
- package/lite/model/sortRemainingBy.ts +1 -1
- package/lite/model/source.ts +3 -3
- package/lite/model/standardEntries.ts +4 -4
- package/lite/model/synonymHit.ts +6 -6
- package/lite/model/synonymType.ts +1 -1
- package/lite/model/tagFilters.ts +1 -1
- package/lite/model/taskStatus.ts +3 -0
- package/lite/model/typoTolerance.ts +1 -1
- package/lite/model/updatedRuleResponse.ts +3 -3
- package/lite/model/userId.ts +2 -2
- package/lite/src/liteClient.ts +6 -6
- package/package.json +15 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LogQuery } from './logQuery';
|
|
2
2
|
export type Log = {
|
|
3
3
|
/**
|
|
4
|
-
* Timestamp in ISO
|
|
4
|
+
* Timestamp in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
5
5
|
*/
|
|
6
6
|
timestamp: string;
|
|
7
7
|
/**
|
|
@@ -13,11 +13,11 @@ export type Log = {
|
|
|
13
13
|
*/
|
|
14
14
|
answer_code: string;
|
|
15
15
|
/**
|
|
16
|
-
* Request body. Truncated after
|
|
16
|
+
* Request body. Truncated after 1,000 characters.
|
|
17
17
|
*/
|
|
18
18
|
query_body: string;
|
|
19
19
|
/**
|
|
20
|
-
* Answer body. Truncated after
|
|
20
|
+
* Answer body. Truncated after 1,000 characters.
|
|
21
21
|
*/
|
|
22
22
|
answer: string;
|
|
23
23
|
/**
|
|
@@ -25,11 +25,11 @@ export type Log = {
|
|
|
25
25
|
*/
|
|
26
26
|
url: string;
|
|
27
27
|
/**
|
|
28
|
-
* IP of the client
|
|
28
|
+
* IP address of the client that performed the request.
|
|
29
29
|
*/
|
|
30
30
|
ip: string;
|
|
31
31
|
/**
|
|
32
|
-
* Request
|
|
32
|
+
* Request headers (API key is obfuscated).
|
|
33
33
|
*/
|
|
34
34
|
query_headers: string;
|
|
35
35
|
/**
|
|
@@ -41,7 +41,7 @@ export type Log = {
|
|
|
41
41
|
*/
|
|
42
42
|
nb_api_calls: string;
|
|
43
43
|
/**
|
|
44
|
-
* Processing time for the query.
|
|
44
|
+
* Processing time for the query. Doesn\'t include network time.
|
|
45
45
|
*/
|
|
46
46
|
processing_time_ms: string;
|
|
47
47
|
/**
|
|
@@ -57,7 +57,7 @@ export type Log = {
|
|
|
57
57
|
*/
|
|
58
58
|
query_nb_hits?: string;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Performed queries for the given request.
|
|
61
61
|
*/
|
|
62
62
|
inner_queries?: LogQuery[];
|
|
63
63
|
};
|
|
@@ -2,7 +2,7 @@ import type { Action } from './action';
|
|
|
2
2
|
export type MultipleBatchRequest = {
|
|
3
3
|
action: Action;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Operation arguments (varies with specified `action`).
|
|
6
6
|
*/
|
|
7
7
|
body: Record<string, any>;
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
* Filter on numeric attributes.
|
|
3
|
+
* [Filter on numeric attributes](https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/).
|
|
4
4
|
*/
|
|
5
5
|
export type NumericFilters = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=numericFilters.d.ts.map
|
|
@@ -3,11 +3,11 @@ import type { ScopeType } from './scopeType';
|
|
|
3
3
|
export type OperationIndexParams = {
|
|
4
4
|
operation: OperationType;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Algolia index name.
|
|
7
7
|
*/
|
|
8
8
|
destination: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* **This only applies to the _copy_ operation.** If you omit `scope`, the copy command copies all records, settings, synonyms, and rules. If you specify `scope`, only the specified scopes are copied.
|
|
11
11
|
*/
|
|
12
12
|
scope?: ScopeType[];
|
|
13
13
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
* Create filters
|
|
3
|
+
* Create filters to boost or demote records. Records that match the filter are ranked higher for positive and lower for negative optional filters. In contrast to regular filters, records that don\'t match the optional filter are still included in the results, only their ranking is affected.
|
|
4
4
|
*/
|
|
5
5
|
export type OptionalFilters = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=optionalFilters.d.ts.map
|
|
@@ -2,7 +2,7 @@ import type { AutomaticFacetFilters } from './automaticFacetFilters';
|
|
|
2
2
|
import type { ConsequenceQuery } from './consequenceQuery';
|
|
3
3
|
import type { RenderingContent } from './renderingContent';
|
|
4
4
|
/**
|
|
5
|
-
* Additional search parameters.
|
|
5
|
+
* Additional search parameters.
|
|
6
6
|
*/
|
|
7
7
|
export type Params = {
|
|
8
8
|
query?: ConsequenceQuery;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Record to promote.
|
|
3
3
|
*/
|
|
4
4
|
export type PromoteObjectID = {
|
|
5
5
|
/**
|
|
6
|
-
* Unique identifier of the
|
|
6
|
+
* Unique identifier of the record to promote.
|
|
7
7
|
*/
|
|
8
8
|
objectID: string;
|
|
9
9
|
/**
|
|
10
|
-
* The position to promote the
|
|
10
|
+
* The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
|
|
11
11
|
*/
|
|
12
12
|
position: number;
|
|
13
13
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Records to promote.
|
|
3
3
|
*/
|
|
4
4
|
export type PromoteObjectIDs = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Unique identifiers of the records to promote.
|
|
7
7
|
*/
|
|
8
8
|
objectIDs: string[];
|
|
9
9
|
/**
|
|
10
|
-
* The position to promote the
|
|
10
|
+
* The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
|
|
11
11
|
*/
|
|
12
12
|
position: number;
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Determines how query words are [interpreted as prefixes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
|
|
3
3
|
*/
|
|
4
4
|
export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
|
|
5
5
|
//# sourceMappingURL=queryType.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
2
2
|
/**
|
|
3
|
-
* When Dynamic Re-Ranking is enabled, only records that match these filters will be
|
|
3
|
+
* When [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) is enabled, only records that match these filters will be affected by Dynamic Re-Ranking.
|
|
4
4
|
*/
|
|
5
5
|
export type ReRankingApplyFilter = MixedSearchFilters[] | string;
|
|
6
6
|
//# sourceMappingURL=reRankingApplyFilter.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Removes stop (common) words from the query before executing it.
|
|
2
|
+
* Removes stop (common) words from the query before executing it. `removeStopWords` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which stop words should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the stop words feature, ensuring that stop words are removed from consideration in a search. The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the stop words feature, allowing stop words to be taken into account in a search.
|
|
3
3
|
*/
|
|
4
4
|
export type RemoveStopWords = string[] | boolean;
|
|
5
5
|
//# sourceMappingURL=removeStopWords.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Strategy to [remove words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/) from the query when it doesn\'t match any hits.
|
|
3
3
|
*/
|
|
4
4
|
export type RemoveWordsIfNoResults = 'allOptional' | 'firstWords' | 'lastWords' | 'none';
|
|
5
5
|
//# sourceMappingURL=removeWordsIfNoResults.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FacetOrdering } from './facetOrdering';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Extra content for the search UI, for example, to control the [ordering and display of facets](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/merchandising-facets/#merchandise-facets-and-their-values-in-the-manual-editor). You can set a default value and dynamically override it with [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/).
|
|
4
4
|
*/
|
|
5
5
|
export type RenderingContent = {
|
|
6
6
|
facetOrdering?: FacetOrdering;
|
|
@@ -6,24 +6,24 @@ import type { TimeRange } from './timeRange';
|
|
|
6
6
|
*/
|
|
7
7
|
export type Rule = {
|
|
8
8
|
/**
|
|
9
|
-
* Unique identifier
|
|
9
|
+
* Unique identifier for a rule object.
|
|
10
10
|
*/
|
|
11
11
|
objectID: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule.
|
|
14
14
|
*/
|
|
15
15
|
conditions?: Condition[];
|
|
16
16
|
consequence?: Consequence;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Description of the rule\'s purpose. This can be helpful for display in the Algolia dashboard.
|
|
19
19
|
*/
|
|
20
20
|
description?: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Indicates whether to enable the rule. If it isn\'t enabled, it isn\'t applied at query time.
|
|
23
23
|
*/
|
|
24
24
|
enabled?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* If you specify a validity period, the rule _only_ applies only during that period. If specified, the array must not be empty.
|
|
27
27
|
*/
|
|
28
28
|
validity?: TimeRange[];
|
|
29
29
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export type SaveObjectResponse = {
|
|
2
|
+
/**
|
|
3
|
+
* Date of creation (ISO-8601 format).
|
|
4
|
+
*/
|
|
2
5
|
createdAt: string;
|
|
3
6
|
/**
|
|
4
|
-
*
|
|
7
|
+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
|
|
5
8
|
*/
|
|
6
9
|
taskID: number;
|
|
7
10
|
/**
|
|
8
|
-
* Unique identifier
|
|
11
|
+
* Unique object identifier.
|
|
9
12
|
*/
|
|
10
13
|
objectID?: string;
|
|
11
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saveObjectResponse.d.ts","sourceRoot":"","sources":["../../../../client-search/model/saveObjectResponse.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"saveObjectResponse.d.ts","sourceRoot":"","sources":["../../../../client-search/model/saveObjectResponse.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type SaveSynonymResponse = {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
|
|
4
4
|
*/
|
|
5
5
|
taskID: number;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
8
8
|
*/
|
|
9
9
|
updatedAt: string;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Unique identifier of a synonym object.
|
|
12
12
|
*/
|
|
13
13
|
id: string;
|
|
14
14
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* `searchDictionaryEntries` parameters.
|
|
3
3
|
*/
|
|
4
4
|
export type SearchDictionaryEntriesParams = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Text to search for in an index.
|
|
7
7
|
*/
|
|
8
8
|
query: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Page to retrieve (the first page is `0`, not `1`).
|
|
11
11
|
*/
|
|
12
12
|
page?: number;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Number of hits per page.
|
|
15
15
|
*/
|
|
16
16
|
hitsPerPage?: number;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* [Supported language ISO code](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).
|
|
19
19
|
*/
|
|
20
20
|
language?: string;
|
|
21
21
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type SearchForFacetValuesRequest = {
|
|
2
2
|
/**
|
|
3
|
-
* Search parameters as URL-encoded query string.
|
|
3
|
+
* Search parameters as a URL-encoded query string.
|
|
4
4
|
*/
|
|
5
5
|
params?: string;
|
|
6
6
|
/**
|
|
@@ -8,7 +8,7 @@ export type SearchForFacetValuesRequest = {
|
|
|
8
8
|
*/
|
|
9
9
|
facetQuery?: string;
|
|
10
10
|
/**
|
|
11
|
-
* Maximum number of facet hits to return
|
|
11
|
+
* Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
|
|
12
12
|
*/
|
|
13
13
|
maxFacetHits?: number;
|
|
14
14
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { SearchTypeFacet } from './searchTypeFacet';
|
|
2
2
|
export type SearchForFacetsOptions = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Facet name.
|
|
5
5
|
*/
|
|
6
6
|
facet: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Algolia index name.
|
|
9
9
|
*/
|
|
10
10
|
indexName: string;
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ export type SearchForFacetsOptions = {
|
|
|
13
13
|
*/
|
|
14
14
|
facetQuery?: string;
|
|
15
15
|
/**
|
|
16
|
-
* Maximum number of facet hits to return
|
|
16
|
+
* Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
|
|
17
17
|
*/
|
|
18
18
|
maxFacetHits?: number;
|
|
19
19
|
type: SearchTypeFacet;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import type { Anchoring } from './anchoring';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Rules search parameters.
|
|
4
4
|
*/
|
|
5
5
|
export type SearchRulesParams = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Rule object query.
|
|
8
8
|
*/
|
|
9
9
|
query?: string;
|
|
10
10
|
anchoring?: Anchoring;
|
|
11
11
|
/**
|
|
12
|
-
* Restricts
|
|
12
|
+
* Restricts responses to the specified [contextual rule](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#creating-contextual-rules).
|
|
13
13
|
*/
|
|
14
14
|
context?: string;
|
|
15
15
|
/**
|
|
16
|
-
* Requested page (
|
|
16
|
+
* Requested page (the first page is page 0).
|
|
17
17
|
*/
|
|
18
18
|
page?: number;
|
|
19
19
|
/**
|
|
20
|
-
* Maximum number of hits
|
|
20
|
+
* Maximum number of hits per page.
|
|
21
21
|
*/
|
|
22
22
|
hitsPerPage?: number;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Restricts responses to enabled rules. When not specified (default), _all_ rules are retrieved.
|
|
25
25
|
*/
|
|
26
26
|
enabled?: boolean | null;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Request options to send with the API call.
|
|
29
29
|
*/
|
|
30
30
|
requestOptions?: Array<Record<string, any>>;
|
|
31
31
|
};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - `none`: executes all queries. - `stopIfEnoughMatches`: executes queries one by one, stopping further query execution as soon as a query matches at least the `hitsPerPage` number of results.
|
|
3
|
+
*/
|
|
1
4
|
export type SearchStrategy = 'none' | 'stopIfEnoughMatches';
|
|
2
5
|
//# sourceMappingURL=searchStrategy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchStrategy.d.ts","sourceRoot":"","sources":["../../../../client-search/model/searchStrategy.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"searchStrategy.d.ts","sourceRoot":"","sources":["../../../../client-search/model/searchStrategy.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { SynonymHit } from './synonymHit';
|
|
2
2
|
export type SearchSynonymsResponse = Record<string, any> & {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Synonym objects.
|
|
5
5
|
*/
|
|
6
6
|
hits: SynonymHit[];
|
|
7
7
|
/**
|
|
8
|
-
* Number of hits
|
|
8
|
+
* Number of hits the search query matched.
|
|
9
9
|
*/
|
|
10
10
|
nbHits: number;
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* - `default`: perform a search query - `facet` [searches for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
|
|
3
3
|
*/
|
|
4
4
|
export type SearchTypeDefault = 'default';
|
|
5
5
|
//# sourceMappingURL=searchTypeDefault.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* - `default`: perform a search query - `facet` [searches for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
|
|
3
3
|
*/
|
|
4
4
|
export type SearchTypeFacet = 'facet';
|
|
5
5
|
//# sourceMappingURL=searchTypeFacet.d.ts.map
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type SearchUserIdsParams = {
|
|
5
5
|
/**
|
|
6
|
-
* Query to search. The search is a prefix search with
|
|
6
|
+
* Query to search. The search is a prefix search with [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) enabled. An empty query will retrieve all users.
|
|
7
7
|
*/
|
|
8
8
|
query: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Cluster name.
|
|
11
11
|
*/
|
|
12
12
|
clusterName?: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Page to retrieve (the first page is `0`, not `1`).
|
|
15
15
|
*/
|
|
16
16
|
page?: number;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Number of hits per page.
|
|
19
19
|
*/
|
|
20
20
|
hitsPerPage?: number;
|
|
21
21
|
};
|
|
@@ -4,23 +4,23 @@ import type { UserHit } from './userHit';
|
|
|
4
4
|
*/
|
|
5
5
|
export type SearchUserIdsResponse = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* User objects that match the query.
|
|
8
8
|
*/
|
|
9
9
|
hits: UserHit[];
|
|
10
10
|
/**
|
|
11
|
-
* Number of hits
|
|
11
|
+
* Number of hits the search query matched.
|
|
12
12
|
*/
|
|
13
13
|
nbHits: number;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Page to retrieve (the first page is `0`, not `1`).
|
|
16
16
|
*/
|
|
17
17
|
page: number;
|
|
18
18
|
/**
|
|
19
|
-
* Maximum number of hits
|
|
19
|
+
* Maximum number of hits per page.
|
|
20
20
|
*/
|
|
21
21
|
hitsPerPage: number;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
24
24
|
*/
|
|
25
25
|
updatedAt: string;
|
|
26
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* How to display the remaining items
|
|
2
|
+
* How to display the remaining items: - `count`: facet count (descending). - `alpha`: alphabetical (ascending). - `hidden`: show only pinned values.
|
|
3
3
|
*/
|
|
4
4
|
export type SortRemainingBy = 'alpha' | 'count' | 'hidden';
|
|
5
5
|
//# sourceMappingURL=sortRemainingBy.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Source.
|
|
3
3
|
*/
|
|
4
4
|
export type Source = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* IP address range of the source.
|
|
7
7
|
*/
|
|
8
8
|
source: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Source description.
|
|
11
11
|
*/
|
|
12
12
|
description?: string;
|
|
13
13
|
};
|