@algolia/client-search 4.14.1 → 5.0.0-alpha.10
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/builds/browser.d.ts +6 -0
- package/dist/builds/browser.d.ts.map +1 -0
- package/dist/builds/node.d.ts +6 -0
- package/dist/builds/node.d.ts.map +1 -0
- package/dist/client-search.cjs.js +1973 -1340
- package/dist/client-search.esm.browser.js +2770 -0
- package/dist/client-search.esm.node.js +1997 -0
- package/dist/client-search.umd.js +2 -0
- package/dist/model/acl.d.ts +5 -0
- package/dist/model/acl.d.ts.map +1 -0
- package/dist/model/action.d.ts +5 -0
- package/dist/model/action.d.ts.map +1 -0
- package/dist/model/addApiKeyResponse.d.ts +11 -0
- package/dist/model/addApiKeyResponse.d.ts.map +1 -0
- package/dist/model/advancedSyntaxFeatures.d.ts +2 -0
- package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -0
- package/dist/model/alternativesAsExact.d.ts +2 -0
- package/dist/model/alternativesAsExact.d.ts.map +1 -0
- package/dist/model/anchoring.d.ts +5 -0
- package/dist/model/anchoring.d.ts.map +1 -0
- package/dist/model/apiKey.d.ts +39 -0
- package/dist/model/apiKey.d.ts.map +1 -0
- package/dist/model/aroundRadius.d.ts +6 -0
- package/dist/model/aroundRadius.d.ts.map +1 -0
- package/dist/model/aroundRadiusAll.d.ts +2 -0
- package/dist/model/aroundRadiusAll.d.ts.map +1 -0
- package/dist/model/assignUserIdParams.d.ts +10 -0
- package/dist/model/assignUserIdParams.d.ts.map +1 -0
- package/dist/model/attributeToUpdate.d.ts +3 -0
- package/dist/model/attributeToUpdate.d.ts.map +1 -0
- package/dist/model/automaticFacetFilter.d.ts +18 -0
- package/dist/model/automaticFacetFilter.d.ts.map +1 -0
- package/dist/model/automaticFacetFilters.d.ts +6 -0
- package/dist/model/automaticFacetFilters.d.ts.map +1 -0
- package/dist/model/baseGetApiKeyResponse.d.ts +11 -0
- package/dist/model/baseGetApiKeyResponse.d.ts.map +1 -0
- package/dist/model/baseIndexSettings.d.ts +59 -0
- package/dist/model/baseIndexSettings.d.ts.map +1 -0
- package/dist/model/baseSearchParams.d.ts +4 -0
- package/dist/model/baseSearchParams.d.ts.map +1 -0
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +123 -0
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -0
- package/dist/model/baseSearchResponse.d.ts +102 -0
- package/dist/model/baseSearchResponse.d.ts.map +1 -0
- package/dist/model/batchAssignUserIdsParams.d.ts +14 -0
- package/dist/model/batchAssignUserIdsParams.d.ts.map +1 -0
- package/dist/model/batchDictionaryEntriesParams.d.ts +15 -0
- package/dist/model/batchDictionaryEntriesParams.d.ts.map +1 -0
- package/dist/model/batchDictionaryEntriesRequest.d.ts +7 -0
- package/dist/model/batchDictionaryEntriesRequest.d.ts.map +1 -0
- package/dist/model/batchParams.d.ts +8 -0
- package/dist/model/batchParams.d.ts.map +1 -0
- package/dist/model/batchRequest.d.ts +9 -0
- package/dist/model/batchRequest.d.ts.map +1 -0
- package/dist/model/batchResponse.d.ts +11 -0
- package/dist/model/batchResponse.d.ts.map +1 -0
- package/dist/model/batchWriteParams.d.ts +8 -0
- package/dist/model/batchWriteParams.d.ts.map +1 -0
- package/dist/model/browseParams.d.ts +4 -0
- package/dist/model/browseParams.d.ts.map +1 -0
- package/dist/model/browseParamsObject.d.ts +4 -0
- package/dist/model/browseParamsObject.d.ts.map +1 -0
- package/dist/model/browseResponse.d.ts +5 -0
- package/dist/model/browseResponse.d.ts.map +1 -0
- package/dist/model/builtInOperation.d.ts +12 -0
- package/dist/model/builtInOperation.d.ts.map +1 -0
- package/dist/model/builtInOperationType.d.ts +5 -0
- package/dist/model/builtInOperationType.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +715 -0
- package/dist/model/clientMethodProps.d.ts.map +1 -0
- package/dist/model/condition.d.ts +17 -0
- package/dist/model/condition.d.ts.map +1 -0
- package/dist/model/consequence.d.ts +26 -0
- package/dist/model/consequence.d.ts.map +1 -0
- package/dist/model/consequenceHide.d.ts +10 -0
- package/dist/model/consequenceHide.d.ts.map +1 -0
- package/dist/model/consequenceParams.d.ts +5 -0
- package/dist/model/consequenceParams.d.ts.map +1 -0
- package/dist/model/consequenceQuery.d.ts +6 -0
- package/dist/model/consequenceQuery.d.ts.map +1 -0
- package/dist/model/consequenceQueryObject.d.ts +12 -0
- package/dist/model/consequenceQueryObject.d.ts.map +1 -0
- package/dist/model/createdAtResponse.d.ts +10 -0
- package/dist/model/createdAtResponse.d.ts.map +1 -0
- package/dist/model/cursor.d.ts +7 -0
- package/dist/model/cursor.d.ts.map +1 -0
- package/dist/model/deleteApiKeyResponse.d.ts +7 -0
- package/dist/model/deleteApiKeyResponse.d.ts.map +1 -0
- package/dist/model/deleteSourceResponse.d.ts +7 -0
- package/dist/model/deleteSourceResponse.d.ts.map +1 -0
- package/dist/model/deletedAtResponse.d.ts +14 -0
- package/dist/model/deletedAtResponse.d.ts.map +1 -0
- package/dist/model/dictionaryAction.d.ts +5 -0
- package/dist/model/dictionaryAction.d.ts.map +1 -0
- package/dist/model/dictionaryEntry.d.ts +28 -0
- package/dist/model/dictionaryEntry.d.ts.map +1 -0
- package/dist/model/dictionaryEntryState.d.ts +5 -0
- package/dist/model/dictionaryEntryState.d.ts.map +1 -0
- package/dist/model/dictionaryLanguage.d.ts +10 -0
- package/dist/model/dictionaryLanguage.d.ts.map +1 -0
- package/dist/model/dictionarySettingsParams.d.ts +8 -0
- package/dist/model/dictionarySettingsParams.d.ts.map +1 -0
- package/dist/model/dictionaryType.d.ts +2 -0
- package/dist/model/dictionaryType.d.ts.map +1 -0
- package/dist/model/distinct.d.ts +5 -0
- package/dist/model/distinct.d.ts.map +1 -0
- package/dist/model/edit.d.ts +13 -0
- package/dist/model/edit.d.ts.map +1 -0
- package/dist/model/editType.d.ts +5 -0
- package/dist/model/editType.d.ts.map +1 -0
- package/dist/model/errorBase.d.ts +7 -0
- package/dist/model/errorBase.d.ts.map +1 -0
- package/dist/model/exactOnSingleWordQuery.d.ts +5 -0
- package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -0
- package/dist/model/facetFilters.d.ts +6 -0
- package/dist/model/facetFilters.d.ts.map +1 -0
- package/dist/model/facetHits.d.ts +15 -0
- package/dist/model/facetHits.d.ts.map +1 -0
- package/dist/model/facetOrdering.d.ts +13 -0
- package/dist/model/facetOrdering.d.ts.map +1 -0
- package/dist/model/facets.d.ts +10 -0
- package/dist/model/facets.d.ts.map +1 -0
- package/dist/model/facetsStats.d.ts +19 -0
- package/dist/model/facetsStats.d.ts.map +1 -0
- package/dist/model/fetchedIndex.d.ts +47 -0
- package/dist/model/fetchedIndex.d.ts.map +1 -0
- package/dist/model/getApiKeyResponse.d.ts +4 -0
- package/dist/model/getApiKeyResponse.d.ts.map +1 -0
- package/dist/model/getDictionarySettingsResponse.d.ts +5 -0
- package/dist/model/getDictionarySettingsResponse.d.ts.map +1 -0
- package/dist/model/getLogsResponse.d.ts +5 -0
- package/dist/model/getLogsResponse.d.ts.map +1 -0
- package/dist/model/getObjectsParams.d.ts +8 -0
- package/dist/model/getObjectsParams.d.ts.map +1 -0
- package/dist/model/getObjectsRequest.d.ts +18 -0
- package/dist/model/getObjectsRequest.d.ts.map +1 -0
- package/dist/model/getObjectsResponse.d.ts +7 -0
- package/dist/model/getObjectsResponse.d.ts.map +1 -0
- package/dist/model/getTaskResponse.d.ts +5 -0
- package/dist/model/getTaskResponse.d.ts.map +1 -0
- package/dist/model/getTopUserIdsResponse.d.ts +11 -0
- package/dist/model/getTopUserIdsResponse.d.ts.map +1 -0
- package/dist/model/hasPendingMappingsResponse.d.ts +11 -0
- package/dist/model/hasPendingMappingsResponse.d.ts.map +1 -0
- package/dist/model/highlightResult.d.ts +3 -0
- package/dist/model/highlightResult.d.ts.map +1 -0
- package/dist/model/highlightResultOption.d.ts +20 -0
- package/dist/model/highlightResultOption.d.ts.map +1 -0
- package/dist/model/hit.d.ts +23 -0
- package/dist/model/hit.d.ts.map +1 -0
- package/dist/model/ignorePlurals.d.ts +5 -0
- package/dist/model/ignorePlurals.d.ts.map +1 -0
- package/dist/model/index.d.ts +155 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model/indexSettings.d.ts +7 -0
- package/dist/model/indexSettings.d.ts.map +1 -0
- package/dist/model/indexSettingsAsSearchParams.d.ts +161 -0
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -0
- package/dist/model/languages.d.ts +10 -0
- package/dist/model/languages.d.ts.map +1 -0
- package/dist/model/listApiKeysResponse.d.ts +8 -0
- package/dist/model/listApiKeysResponse.d.ts.map +1 -0
- package/dist/model/listClustersResponse.d.ts +10 -0
- package/dist/model/listClustersResponse.d.ts.map +1 -0
- package/dist/model/listIndicesResponse.d.ts +12 -0
- package/dist/model/listIndicesResponse.d.ts.map +1 -0
- package/dist/model/listUserIdsResponse.d.ts +11 -0
- package/dist/model/listUserIdsResponse.d.ts.map +1 -0
- package/dist/model/log.d.ts +64 -0
- package/dist/model/log.d.ts.map +1 -0
- package/dist/model/logQuery.d.ts +15 -0
- package/dist/model/logQuery.d.ts.map +1 -0
- package/dist/model/logType.d.ts +2 -0
- package/dist/model/logType.d.ts.map +1 -0
- package/dist/model/matchLevel.d.ts +5 -0
- package/dist/model/matchLevel.d.ts.map +1 -0
- package/dist/model/matchedGeoLocation.d.ts +15 -0
- package/dist/model/matchedGeoLocation.d.ts.map +1 -0
- package/dist/model/mixedSearchFilters.d.ts +2 -0
- package/dist/model/mixedSearchFilters.d.ts.map +1 -0
- package/dist/model/multipleBatchRequest.d.ts +13 -0
- package/dist/model/multipleBatchRequest.d.ts.map +1 -0
- package/dist/model/multipleBatchResponse.d.ts +11 -0
- package/dist/model/multipleBatchResponse.d.ts.map +1 -0
- package/dist/model/numericFilters.d.ts +6 -0
- package/dist/model/numericFilters.d.ts.map +1 -0
- package/dist/model/operationIndexParams.d.ts +14 -0
- package/dist/model/operationIndexParams.d.ts.map +1 -0
- package/dist/model/operationType.d.ts +5 -0
- package/dist/model/operationType.d.ts.map +1 -0
- package/dist/model/optionalFilters.d.ts +6 -0
- package/dist/model/optionalFilters.d.ts.map +1 -0
- package/dist/model/params.d.ts +13 -0
- package/dist/model/params.d.ts.map +1 -0
- package/dist/model/personalization.d.ts +15 -0
- package/dist/model/personalization.d.ts.map +1 -0
- package/dist/model/promote.d.ts +4 -0
- package/dist/model/promote.d.ts.map +1 -0
- package/dist/model/promoteObjectID.d.ts +14 -0
- package/dist/model/promoteObjectID.d.ts.map +1 -0
- package/dist/model/promoteObjectIDs.d.ts +14 -0
- package/dist/model/promoteObjectIDs.d.ts.map +1 -0
- package/dist/model/queryType.d.ts +5 -0
- package/dist/model/queryType.d.ts.map +1 -0
- package/dist/model/rankingInfo.d.ts +51 -0
- package/dist/model/rankingInfo.d.ts.map +1 -0
- package/dist/model/reRankingApplyFilter.d.ts +6 -0
- package/dist/model/reRankingApplyFilter.d.ts.map +1 -0
- package/dist/model/removeStopWords.d.ts +5 -0
- package/dist/model/removeStopWords.d.ts.map +1 -0
- package/dist/model/removeUserIdResponse.d.ts +7 -0
- package/dist/model/removeUserIdResponse.d.ts.map +1 -0
- package/dist/model/removeWordsIfNoResults.d.ts +5 -0
- package/dist/model/removeWordsIfNoResults.d.ts.map +1 -0
- package/dist/model/renderingContent.d.ts +8 -0
- package/dist/model/renderingContent.d.ts.map +1 -0
- package/dist/model/replaceSourceResponse.d.ts +7 -0
- package/dist/model/replaceSourceResponse.d.ts.map +1 -0
- package/dist/model/rule.d.ts +30 -0
- package/dist/model/rule.d.ts.map +1 -0
- package/dist/model/saveObjectResponse.d.ts +12 -0
- package/dist/model/saveObjectResponse.d.ts.map +1 -0
- package/dist/model/saveSynonymResponse.d.ts +15 -0
- package/dist/model/saveSynonymResponse.d.ts.map +1 -0
- package/dist/model/scopeType.d.ts +2 -0
- package/dist/model/scopeType.d.ts.map +1 -0
- package/dist/model/searchDictionaryEntriesParams.d.ts +22 -0
- package/dist/model/searchDictionaryEntriesParams.d.ts.map +1 -0
- package/dist/model/searchForFacetValuesRequest.d.ts +15 -0
- package/dist/model/searchForFacetValuesRequest.d.ts.map +1 -0
- package/dist/model/searchForFacetValuesResponse.d.ts +5 -0
- package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -0
- package/dist/model/searchForFacets.d.ts +4 -0
- package/dist/model/searchForFacets.d.ts.map +1 -0
- package/dist/model/searchForFacetsOptions.d.ts +21 -0
- package/dist/model/searchForFacetsOptions.d.ts.map +1 -0
- package/dist/model/searchForHits.d.ts +4 -0
- package/dist/model/searchForHits.d.ts.map +1 -0
- package/dist/model/searchForHitsOptions.d.ts +13 -0
- package/dist/model/searchForHitsOptions.d.ts.map +1 -0
- package/dist/model/searchHits.d.ts +5 -0
- package/dist/model/searchHits.d.ts.map +1 -0
- package/dist/model/searchMethodParams.d.ts +7 -0
- package/dist/model/searchMethodParams.d.ts.map +1 -0
- package/dist/model/searchParams.d.ts +4 -0
- package/dist/model/searchParams.d.ts.map +1 -0
- package/dist/model/searchParamsObject.d.ts +4 -0
- package/dist/model/searchParamsObject.d.ts.map +1 -0
- package/dist/model/searchParamsQuery.d.ts +7 -0
- package/dist/model/searchParamsQuery.d.ts.map +1 -0
- package/dist/model/searchParamsString.d.ts +7 -0
- package/dist/model/searchParamsString.d.ts.map +1 -0
- package/dist/model/searchQuery.d.ts +4 -0
- package/dist/model/searchQuery.d.ts.map +1 -0
- package/dist/model/searchResponse.d.ts +4 -0
- package/dist/model/searchResponse.d.ts.map +1 -0
- package/dist/model/searchResponses.d.ts +5 -0
- package/dist/model/searchResponses.d.ts.map +1 -0
- package/dist/model/searchRulesParams.d.ts +32 -0
- package/dist/model/searchRulesParams.d.ts.map +1 -0
- package/dist/model/searchRulesResponse.d.ts +20 -0
- package/dist/model/searchRulesResponse.d.ts.map +1 -0
- package/dist/model/searchStrategy.d.ts +2 -0
- package/dist/model/searchStrategy.d.ts.map +1 -0
- package/dist/model/searchSynonymsParams.d.ts +7 -0
- package/dist/model/searchSynonymsParams.d.ts.map +1 -0
- package/dist/model/searchSynonymsResponse.d.ts +12 -0
- package/dist/model/searchSynonymsResponse.d.ts.map +1 -0
- package/dist/model/searchTypeDefault.d.ts +5 -0
- package/dist/model/searchTypeDefault.d.ts.map +1 -0
- package/dist/model/searchTypeFacet.d.ts +5 -0
- package/dist/model/searchTypeFacet.d.ts.map +1 -0
- package/dist/model/searchUserIdsParams.d.ts +22 -0
- package/dist/model/searchUserIdsParams.d.ts.map +1 -0
- package/dist/model/searchUserIdsResponse.d.ts +27 -0
- package/dist/model/searchUserIdsResponse.d.ts.map +1 -0
- package/dist/model/snippetResult.d.ts +3 -0
- package/dist/model/snippetResult.d.ts.map +1 -0
- package/dist/model/snippetResultOption.d.ts +12 -0
- package/dist/model/snippetResultOption.d.ts.map +1 -0
- package/dist/model/sortRemainingBy.d.ts +5 -0
- package/dist/model/sortRemainingBy.d.ts.map +1 -0
- package/dist/model/source.d.ts +14 -0
- package/dist/model/source.d.ts.map +1 -0
- package/dist/model/standardEntries.d.ts +18 -0
- package/dist/model/standardEntries.d.ts.map +1 -0
- package/dist/model/synonymHit.d.ts +38 -0
- package/dist/model/synonymHit.d.ts.map +1 -0
- package/dist/model/synonymHitHighlightResult.d.ts +12 -0
- package/dist/model/synonymHitHighlightResult.d.ts.map +1 -0
- package/dist/model/synonymType.d.ts +5 -0
- package/dist/model/synonymType.d.ts.map +1 -0
- package/dist/model/tagFilters.d.ts +6 -0
- package/dist/model/tagFilters.d.ts.map +1 -0
- package/dist/model/taskStatus.d.ts +2 -0
- package/dist/model/taskStatus.d.ts.map +1 -0
- package/dist/model/timeRange.d.ts +11 -0
- package/dist/model/timeRange.d.ts.map +1 -0
- package/dist/model/typoTolerance.d.ts +6 -0
- package/dist/model/typoTolerance.d.ts.map +1 -0
- package/dist/model/typoToleranceEnum.d.ts +2 -0
- package/dist/model/typoToleranceEnum.d.ts.map +1 -0
- package/dist/model/updateApiKeyResponse.d.ts +11 -0
- package/dist/model/updateApiKeyResponse.d.ts.map +1 -0
- package/dist/model/updatedAtResponse.d.ts +14 -0
- package/dist/model/updatedAtResponse.d.ts.map +1 -0
- package/dist/model/updatedAtWithObjectIdResponse.d.ts +18 -0
- package/dist/model/updatedAtWithObjectIdResponse.d.ts.map +1 -0
- package/dist/model/updatedRuleResponse.d.ts +15 -0
- package/dist/model/updatedRuleResponse.d.ts.map +1 -0
- package/dist/model/userHighlightResult.d.ts +12 -0
- package/dist/model/userHighlightResult.d.ts.map +1 -0
- package/dist/model/userHit.d.ts +25 -0
- package/dist/model/userHit.d.ts.map +1 -0
- package/dist/model/userId.d.ts +22 -0
- package/dist/model/userId.d.ts.map +1 -0
- package/dist/model/value.d.ts +9 -0
- package/dist/model/value.d.ts.map +1 -0
- package/dist/src/searchClient.d.ts +724 -0
- package/dist/src/searchClient.d.ts.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +1 -1
- package/model/acl.ts +20 -0
- package/model/action.ts +13 -0
- package/model/addApiKeyResponse.ts +13 -0
- package/model/advancedSyntaxFeatures.ts +3 -0
- package/model/alternativesAsExact.ts +6 -0
- package/model/anchoring.ts +6 -0
- package/model/apiKey.ts +48 -0
- package/model/aroundRadius.ts +8 -0
- package/model/aroundRadiusAll.ts +3 -0
- package/model/assignUserIdParams.ts +11 -0
- package/model/attributeToUpdate.ts +5 -0
- package/model/automaticFacetFilter.ts +21 -0
- package/model/automaticFacetFilters.ts +8 -0
- package/model/baseGetApiKeyResponse.ts +13 -0
- package/model/baseIndexSettings.ts +73 -0
- package/model/baseSearchParams.ts +6 -0
- package/model/baseSearchParamsWithoutQuery.ts +157 -0
- package/model/baseSearchResponse.ts +128 -0
- package/model/batchAssignUserIdsParams.ts +16 -0
- package/model/batchDictionaryEntriesParams.ts +18 -0
- package/model/batchDictionaryEntriesRequest.ts +10 -0
- package/model/batchParams.ts +10 -0
- package/model/batchRequest.ts +12 -0
- package/model/batchResponse.ts +13 -0
- package/model/batchWriteParams.ts +10 -0
- package/model/browseParams.ts +6 -0
- package/model/browseParamsObject.ts +6 -0
- package/model/browseResponse.ts +9 -0
- package/model/builtInOperation.ts +15 -0
- package/model/builtInOperationType.ts +13 -0
- package/model/clientMethodProps.ts +780 -0
- package/model/condition.ts +22 -0
- package/model/consequence.ts +32 -0
- package/model/consequenceHide.ts +11 -0
- package/model/consequenceParams.ts +9 -0
- package/model/consequenceQuery.ts +8 -0
- package/model/consequenceQueryObject.ts +15 -0
- package/model/createdAtResponse.ts +11 -0
- package/model/cursor.ts +8 -0
- package/model/deleteApiKeyResponse.ts +8 -0
- package/model/deleteSourceResponse.ts +8 -0
- package/model/deletedAtResponse.ts +16 -0
- package/model/dictionaryAction.ts +6 -0
- package/model/dictionaryEntry.ts +35 -0
- package/model/dictionaryEntryState.ts +6 -0
- package/model/dictionaryLanguage.ts +11 -0
- package/model/dictionarySettingsParams.ts +10 -0
- package/model/dictionaryType.ts +3 -0
- package/model/distinct.ts +6 -0
- package/model/edit.ts +17 -0
- package/model/editType.ts +6 -0
- package/model/errorBase.ts +8 -0
- package/model/exactOnSingleWordQuery.ts +6 -0
- package/model/facetFilters.ts +8 -0
- package/model/facetHits.ts +18 -0
- package/model/facetOrdering.ts +16 -0
- package/model/facets.ts +11 -0
- package/model/facetsStats.ts +23 -0
- package/model/fetchedIndex.ts +58 -0
- package/model/getApiKeyResponse.ts +6 -0
- package/model/getDictionarySettingsResponse.ts +7 -0
- package/model/getLogsResponse.ts +7 -0
- package/model/getObjectsParams.ts +10 -0
- package/model/getObjectsRequest.ts +21 -0
- package/model/getObjectsResponse.ts +8 -0
- package/model/getTaskResponse.ts +7 -0
- package/model/getTopUserIdsResponse.ts +13 -0
- package/model/hasPendingMappingsResponse.ts +13 -0
- package/model/highlightResult.ts +5 -0
- package/model/highlightResultOption.ts +25 -0
- package/model/hit.ts +29 -0
- package/model/ignorePlurals.ts +6 -0
- package/model/index.ts +156 -0
- package/model/indexSettings.ts +9 -0
- package/model/indexSettingsAsSearchParams.ts +205 -0
- package/model/languages.ts +14 -0
- package/model/listApiKeysResponse.ts +10 -0
- package/model/listClustersResponse.ts +11 -0
- package/model/listIndicesResponse.ts +15 -0
- package/model/listUserIdsResponse.ts +13 -0
- package/model/log.ts +80 -0
- package/model/logQuery.ts +18 -0
- package/model/logType.ts +3 -0
- package/model/matchLevel.ts +6 -0
- package/model/matchedGeoLocation.ts +18 -0
- package/model/mixedSearchFilters.ts +3 -0
- package/model/multipleBatchRequest.ts +17 -0
- package/model/multipleBatchResponse.ts +13 -0
- package/model/numericFilters.ts +8 -0
- package/model/operationIndexParams.ts +18 -0
- package/model/operationType.ts +6 -0
- package/model/optionalFilters.ts +8 -0
- package/model/params.ts +18 -0
- package/model/personalization.ts +18 -0
- package/model/promote.ts +6 -0
- package/model/promoteObjectID.ts +16 -0
- package/model/promoteObjectIDs.ts +16 -0
- package/model/queryType.ts +6 -0
- package/model/rankingInfo.ts +65 -0
- package/model/reRankingApplyFilter.ts +8 -0
- package/model/removeStopWords.ts +6 -0
- package/model/removeUserIdResponse.ts +8 -0
- package/model/removeWordsIfNoResults.ts +10 -0
- package/model/renderingContent.ts +10 -0
- package/model/replaceSourceResponse.ts +8 -0
- package/model/rule.ts +37 -0
- package/model/saveObjectResponse.ts +15 -0
- package/model/saveSynonymResponse.ts +18 -0
- package/model/scopeType.ts +3 -0
- package/model/searchDictionaryEntriesParams.ts +26 -0
- package/model/searchForFacetValuesRequest.ts +18 -0
- package/model/searchForFacetValuesResponse.ts +7 -0
- package/model/searchForFacets.ts +6 -0
- package/model/searchForFacetsOptions.ts +27 -0
- package/model/searchForHits.ts +6 -0
- package/model/searchForHitsOptions.ts +12 -0
- package/model/searchHits.ts +7 -0
- package/model/searchMethodParams.ts +10 -0
- package/model/searchParams.ts +6 -0
- package/model/searchParamsObject.ts +6 -0
- package/model/searchParamsQuery.ts +8 -0
- package/model/searchParamsString.ts +8 -0
- package/model/searchQuery.ts +6 -0
- package/model/searchResponse.ts +7 -0
- package/model/searchResponses.ts +7 -0
- package/model/searchRulesParams.ts +40 -0
- package/model/searchRulesResponse.ts +25 -0
- package/model/searchStrategy.ts +3 -0
- package/model/searchSynonymsParams.ts +8 -0
- package/model/searchSynonymsResponse.ts +15 -0
- package/model/searchTypeDefault.ts +6 -0
- package/model/searchTypeFacet.ts +6 -0
- package/model/searchUserIdsParams.ts +26 -0
- package/model/searchUserIdsResponse.ts +33 -0
- package/model/snippetResult.ts +5 -0
- package/model/snippetResultOption.ts +15 -0
- package/model/sortRemainingBy.ts +6 -0
- package/model/source.ts +16 -0
- package/model/standardEntries.ts +21 -0
- package/model/synonymHit.ts +48 -0
- package/model/synonymHitHighlightResult.ts +15 -0
- package/model/synonymType.ts +11 -0
- package/model/tagFilters.ts +8 -0
- package/model/taskStatus.ts +3 -0
- package/model/timeRange.ts +13 -0
- package/model/typoTolerance.ts +8 -0
- package/model/typoToleranceEnum.ts +3 -0
- package/model/updateApiKeyResponse.ts +13 -0
- package/model/updatedAtResponse.ts +16 -0
- package/model/updatedAtWithObjectIdResponse.ts +21 -0
- package/model/updatedRuleResponse.ts +18 -0
- package/model/userHighlightResult.ts +15 -0
- package/model/userHit.ts +32 -0
- package/model/userId.ts +26 -0
- package/model/value.ts +12 -0
- package/package.json +27 -13
- package/dist/client-search.d.ts +0 -2490
- package/dist/client-search.esm.js +0 -1276
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { MatchLevel } from './matchLevel';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
|
|
7
|
+
*/
|
|
8
|
+
export type SnippetResultOption = {
|
|
9
|
+
/**
|
|
10
|
+
* Markup text with occurrences highlighted.
|
|
11
|
+
*/
|
|
12
|
+
value: string;
|
|
13
|
+
|
|
14
|
+
matchLevel: MatchLevel;
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* How to display the remaining items. - `count`: facet count (descending). - `alpha`: alphabetical (ascending). - `hidden`: show only pinned values.
|
|
5
|
+
*/
|
|
6
|
+
export type SortRemainingBy = 'alpha' | 'count' | 'hidden';
|
package/model/source.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The source.
|
|
5
|
+
*/
|
|
6
|
+
export type Source = {
|
|
7
|
+
/**
|
|
8
|
+
* The IP range of the source.
|
|
9
|
+
*/
|
|
10
|
+
source: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The description of the source.
|
|
14
|
+
*/
|
|
15
|
+
description?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Map of language ISO code supported by the dictionary (e.g., \"en\" for English) to a boolean value.
|
|
5
|
+
*/
|
|
6
|
+
export type StandardEntries = {
|
|
7
|
+
/**
|
|
8
|
+
* Language ISO code.
|
|
9
|
+
*/
|
|
10
|
+
plurals?: Record<string, boolean> | null;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Language ISO code.
|
|
14
|
+
*/
|
|
15
|
+
stopwords?: Record<string, boolean> | null;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Language ISO code.
|
|
19
|
+
*/
|
|
20
|
+
compounds?: Record<string, boolean> | null;
|
|
21
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { SynonymHitHighlightResult } from './synonymHitHighlightResult';
|
|
4
|
+
import type { SynonymType } from './synonymType';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Synonym object.
|
|
8
|
+
*/
|
|
9
|
+
export type SynonymHit = {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier of the synonym object to be created or updated.
|
|
12
|
+
*/
|
|
13
|
+
objectID: string;
|
|
14
|
+
|
|
15
|
+
type: SynonymType;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Words or phrases to be considered equivalent.
|
|
19
|
+
*/
|
|
20
|
+
synonyms?: string[];
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Word or phrase to appear in query strings (for onewaysynonym).
|
|
24
|
+
*/
|
|
25
|
+
input?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Word or phrase to appear in query strings (for altcorrection1 and altcorrection2).
|
|
29
|
+
*/
|
|
30
|
+
word?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Words to be matched in records.
|
|
34
|
+
*/
|
|
35
|
+
corrections?: string[];
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Token to be put inside records.
|
|
39
|
+
*/
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* List of query words that will match the token.
|
|
44
|
+
*/
|
|
45
|
+
replacements?: string[];
|
|
46
|
+
|
|
47
|
+
_highlightResult?: SynonymHitHighlightResult;
|
|
48
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { HighlightResult } from './highlightResult';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Highlighted results.
|
|
7
|
+
*/
|
|
8
|
+
export type SynonymHitHighlightResult = {
|
|
9
|
+
/**
|
|
10
|
+
* Show highlighted section and words matched on a query.
|
|
11
|
+
*/
|
|
12
|
+
type?: Record<string, HighlightResult>;
|
|
13
|
+
|
|
14
|
+
synonyms?: Array<Record<string, HighlightResult>>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Type of the synonym object.
|
|
5
|
+
*/
|
|
6
|
+
export type SynonymType =
|
|
7
|
+
| 'altcorrection1'
|
|
8
|
+
| 'altcorrection2'
|
|
9
|
+
| 'onewaysynonym'
|
|
10
|
+
| 'placeholder'
|
|
11
|
+
| 'synonym';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Filter hits by tags.
|
|
7
|
+
*/
|
|
8
|
+
export type TagFilters = MixedSearchFilters[] | string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type TimeRange = {
|
|
4
|
+
/**
|
|
5
|
+
* Lower bound of the time range (Unix timestamp).
|
|
6
|
+
*/
|
|
7
|
+
from: number;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Upper bound of the time range (Unix timestamp).
|
|
11
|
+
*/
|
|
12
|
+
until: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { TypoToleranceEnum } from './typoToleranceEnum';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Controls whether typo tolerance is enabled and how it is applied.
|
|
7
|
+
*/
|
|
8
|
+
export type TypoTolerance = TypoToleranceEnum | boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type UpdateApiKeyResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* The API key.
|
|
6
|
+
*/
|
|
7
|
+
key: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Date of last update (ISO-8601 format).
|
|
11
|
+
*/
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The response with a taskID and an updatedAt timestamp.
|
|
5
|
+
*/
|
|
6
|
+
export type UpdatedAtResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* TaskID of the task to wait for.
|
|
9
|
+
*/
|
|
10
|
+
taskID: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Date of last update (ISO-8601 format).
|
|
14
|
+
*/
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The response with a taskID, an objectID and an updatedAt timestamp.
|
|
5
|
+
*/
|
|
6
|
+
export type UpdatedAtWithObjectIdResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* TaskID of the task to wait for.
|
|
9
|
+
*/
|
|
10
|
+
taskID?: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Date of last update (ISO-8601 format).
|
|
14
|
+
*/
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier of the object.
|
|
19
|
+
*/
|
|
20
|
+
objectID?: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
export type UpdatedRuleResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* Unique identifier of the object.
|
|
6
|
+
*/
|
|
7
|
+
objectID: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Date of last update (ISO-8601 format).
|
|
11
|
+
*/
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* TaskID of the task to wait for.
|
|
16
|
+
*/
|
|
17
|
+
taskID: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { HighlightResult } from './highlightResult';
|
|
4
|
+
|
|
5
|
+
export type UserHighlightResult = {
|
|
6
|
+
/**
|
|
7
|
+
* Show highlighted section and words matched on a query.
|
|
8
|
+
*/
|
|
9
|
+
userID: Record<string, HighlightResult>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Show highlighted section and words matched on a query.
|
|
13
|
+
*/
|
|
14
|
+
clusterName: Record<string, HighlightResult>;
|
|
15
|
+
};
|
package/model/userHit.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { UserHighlightResult } from './userHighlightResult';
|
|
4
|
+
|
|
5
|
+
export type UserHit = {
|
|
6
|
+
/**
|
|
7
|
+
* UserID of the user.
|
|
8
|
+
*/
|
|
9
|
+
userID: string;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Name of the cluster.
|
|
13
|
+
*/
|
|
14
|
+
clusterName: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Number of records in the cluster.
|
|
18
|
+
*/
|
|
19
|
+
nbRecords: number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Data size taken by all the users assigned to the cluster.
|
|
23
|
+
*/
|
|
24
|
+
dataSize: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* UserID of the requested user. Same as userID.
|
|
28
|
+
*/
|
|
29
|
+
objectID: string;
|
|
30
|
+
|
|
31
|
+
_highlightResult: UserHighlightResult;
|
|
32
|
+
};
|
package/model/userId.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A userID.
|
|
5
|
+
*/
|
|
6
|
+
export type UserId = {
|
|
7
|
+
/**
|
|
8
|
+
* UserID of the user.
|
|
9
|
+
*/
|
|
10
|
+
userID: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Cluster on which the user is assigned.
|
|
14
|
+
*/
|
|
15
|
+
clusterName: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Number of records belonging to the user.
|
|
19
|
+
*/
|
|
20
|
+
nbRecords: number;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Data size used by the user.
|
|
24
|
+
*/
|
|
25
|
+
dataSize: number;
|
|
26
|
+
};
|
package/model/value.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
+
|
|
3
|
+
import type { SortRemainingBy } from './sortRemainingBy';
|
|
4
|
+
|
|
5
|
+
export type Value = {
|
|
6
|
+
/**
|
|
7
|
+
* Pinned order of facet lists.
|
|
8
|
+
*/
|
|
9
|
+
order?: string[];
|
|
10
|
+
|
|
11
|
+
sortRemainingBy?: SortRemainingBy;
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,23 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-search",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"repository":
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git://github.com/algolia/algoliasearch-client-javascript.git"
|
|
8
|
-
},
|
|
3
|
+
"version": "5.0.0-alpha.10",
|
|
4
|
+
"description": "JavaScript client for client-search",
|
|
5
|
+
"repository": "algolia/algoliasearch-client-javascript",
|
|
9
6
|
"license": "MIT",
|
|
10
|
-
"
|
|
7
|
+
"author": "Algolia",
|
|
11
8
|
"main": "index.js",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
9
|
+
"jsdelivr": "dist/client-search.umd.js",
|
|
10
|
+
"unpkg": "dist/client-search.umd.js",
|
|
11
|
+
"module": "dist/client-search.esm.node.js",
|
|
12
|
+
"browser": "dist/client-search.umd.js",
|
|
13
|
+
"types": "index.d.ts",
|
|
14
14
|
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"model",
|
|
15
17
|
"index.js",
|
|
16
|
-
"
|
|
18
|
+
"index.d.ts"
|
|
17
19
|
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "yarn clean && rollup --config",
|
|
22
|
+
"clean": "rm -rf ./dist || true"
|
|
23
|
+
},
|
|
18
24
|
"dependencies": {
|
|
19
|
-
"@algolia/client-common": "
|
|
20
|
-
"@algolia/requester-
|
|
21
|
-
"@algolia/
|
|
25
|
+
"@algolia/client-common": "5.0.0-alpha.10",
|
|
26
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.10",
|
|
27
|
+
"@algolia/requester-node-http": "5.0.0-alpha.10"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/node": "16.11.47",
|
|
31
|
+
"rollup": "2.77.2",
|
|
32
|
+
"typescript": "4.7.4"
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">= 14.0.0"
|
|
22
36
|
}
|
|
23
37
|
}
|