@algolia/client-search 5.0.0-alpha.1 → 5.0.0-alpha.100
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 +5 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +5 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/{client-search.cjs.js → client-search.cjs} +2116 -1869
- package/dist/client-search.esm.browser.js +2356 -2137
- package/dist/client-search.esm.node.js +2117 -1868
- package/dist/client-search.umd.js +2 -2
- package/dist/model/acl.d.ts +4 -1
- package/dist/model/acl.d.ts.map +1 -1
- package/dist/model/action.d.ts +4 -4
- package/dist/model/action.d.ts.map +1 -1
- package/dist/model/addApiKeyResponse.d.ts +10 -10
- package/dist/model/addApiKeyResponse.d.ts.map +1 -1
- package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
- package/dist/model/alternativesAsExact.d.ts +1 -1
- package/dist/model/alternativesAsExact.d.ts.map +1 -1
- package/dist/model/anchoring.d.ts +4 -4
- package/dist/model/anchoring.d.ts.map +1 -1
- package/dist/model/apiKey.d.ts +38 -38
- package/dist/model/apiKey.d.ts.map +1 -1
- package/dist/model/aroundPrecision.d.ts +6 -0
- package/dist/model/aroundPrecision.d.ts.map +1 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts +5 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
- package/dist/model/aroundRadius.d.ts +5 -5
- package/dist/model/aroundRadius.d.ts.map +1 -1
- package/dist/model/aroundRadiusAll.d.ts +1 -1
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/assignUserIdParams.d.ts +9 -9
- package/dist/model/assignUserIdParams.d.ts.map +1 -1
- package/dist/model/attributeToUpdate.d.ts +3 -0
- package/dist/model/attributeToUpdate.d.ts.map +1 -0
- package/dist/model/automaticFacetFilter.d.ts +17 -17
- package/dist/model/automaticFacetFilter.d.ts.map +1 -1
- package/dist/model/automaticFacetFilters.d.ts +5 -5
- package/dist/model/automaticFacetFilters.d.ts.map +1 -1
- package/dist/model/baseGetApiKeyResponse.d.ts +11 -0
- package/dist/model/baseGetApiKeyResponse.d.ts.map +1 -0
- package/dist/model/baseIndexSettings.d.ts +66 -58
- package/dist/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/model/baseSearchParams.d.ts +3 -3
- package/dist/model/baseSearchParams.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +118 -122
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +105 -101
- package/dist/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/model/batchAssignUserIdsParams.d.ts +13 -13
- package/dist/model/batchAssignUserIdsParams.d.ts.map +1 -1
- package/dist/model/batchDictionaryEntriesParams.d.ts +14 -14
- package/dist/model/batchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/model/batchDictionaryEntriesRequest.d.ts +6 -6
- package/dist/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
- package/dist/model/batchParams.d.ts +7 -7
- package/dist/model/batchParams.d.ts.map +1 -1
- package/dist/model/batchRequest.d.ts +9 -0
- package/dist/model/batchRequest.d.ts.map +1 -0
- package/dist/model/batchResponse.d.ts +10 -10
- package/dist/model/batchResponse.d.ts.map +1 -1
- package/dist/model/batchWriteParams.d.ts +7 -7
- package/dist/model/batchWriteParams.d.ts.map +1 -1
- 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 +4 -4
- package/dist/model/browseResponse.d.ts.map +1 -1
- package/dist/model/builtInOperation.d.ts +11 -11
- package/dist/model/builtInOperation.d.ts.map +1 -1
- package/dist/model/builtInOperationType.d.ts +4 -4
- package/dist/model/builtInOperationType.d.ts.map +1 -1
- package/dist/model/clientMethodProps.d.ts +706 -703
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/condition.d.ts +16 -16
- package/dist/model/condition.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +25 -25
- package/dist/model/consequence.d.ts.map +1 -1
- package/dist/model/consequenceHide.d.ts +9 -9
- package/dist/model/consequenceHide.d.ts.map +1 -1
- package/dist/model/consequenceParams.d.ts +4 -4
- package/dist/model/consequenceParams.d.ts.map +1 -1
- package/dist/model/consequenceQuery.d.ts +5 -5
- package/dist/model/consequenceQuery.d.ts.map +1 -1
- package/dist/model/consequenceQueryObject.d.ts +11 -11
- package/dist/model/consequenceQueryObject.d.ts.map +1 -1
- package/dist/model/createdAtResponse.d.ts +9 -9
- package/dist/model/createdAtResponse.d.ts.map +1 -1
- package/dist/model/cursor.d.ts +7 -0
- package/dist/model/cursor.d.ts.map +1 -0
- package/dist/model/deleteApiKeyResponse.d.ts +6 -6
- package/dist/model/deleteApiKeyResponse.d.ts.map +1 -1
- package/dist/model/deleteByParams.d.ts +27 -0
- package/dist/model/deleteByParams.d.ts.map +1 -0
- package/dist/model/deleteSourceResponse.d.ts +6 -6
- package/dist/model/deleteSourceResponse.d.ts.map +1 -1
- package/dist/model/deletedAtResponse.d.ts +13 -13
- package/dist/model/deletedAtResponse.d.ts.map +1 -1
- package/dist/model/dictionaryAction.d.ts +4 -4
- package/dist/model/dictionaryAction.d.ts.map +1 -1
- package/dist/model/dictionaryEntry.d.ts +27 -27
- package/dist/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/model/dictionaryEntryState.d.ts +4 -4
- package/dist/model/dictionaryEntryState.d.ts.map +1 -1
- package/dist/model/dictionaryLanguage.d.ts +9 -9
- package/dist/model/dictionaryLanguage.d.ts.map +1 -1
- package/dist/model/dictionarySettingsParams.d.ts +7 -7
- package/dist/model/dictionarySettingsParams.d.ts.map +1 -1
- package/dist/model/dictionaryType.d.ts +1 -1
- package/dist/model/dictionaryType.d.ts.map +1 -1
- package/dist/model/distinct.d.ts +5 -0
- package/dist/model/distinct.d.ts.map +1 -0
- package/dist/model/edit.d.ts +12 -12
- package/dist/model/edit.d.ts.map +1 -1
- package/dist/model/editType.d.ts +4 -4
- package/dist/model/editType.d.ts.map +1 -1
- package/dist/model/errorBase.d.ts +6 -6
- package/dist/model/errorBase.d.ts.map +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
- package/dist/model/exhaustive.d.ts +26 -0
- package/dist/model/exhaustive.d.ts.map +1 -0
- package/dist/model/facetFilters.d.ts +5 -5
- package/dist/model/facetFilters.d.ts.map +1 -1
- package/dist/model/facetHits.d.ts +14 -14
- package/dist/model/facetHits.d.ts.map +1 -1
- package/dist/model/facetOrdering.d.ts +12 -12
- package/dist/model/facetOrdering.d.ts.map +1 -1
- package/dist/model/facets.d.ts +9 -9
- package/dist/model/facets.d.ts.map +1 -1
- package/dist/model/facetsStats.d.ts +18 -18
- package/dist/model/facetsStats.d.ts.map +1 -1
- package/dist/model/fetchedIndex.d.ts +46 -46
- package/dist/model/fetchedIndex.d.ts.map +1 -1
- package/dist/model/getApiKeyResponse.d.ts +4 -0
- package/dist/model/getApiKeyResponse.d.ts.map +1 -0
- package/dist/model/getDictionarySettingsResponse.d.ts +4 -4
- package/dist/model/getDictionarySettingsResponse.d.ts.map +1 -1
- package/dist/model/getLogsResponse.d.ts +4 -4
- package/dist/model/getLogsResponse.d.ts.map +1 -1
- package/dist/model/getObjectsParams.d.ts +7 -7
- package/dist/model/getObjectsParams.d.ts.map +1 -1
- package/dist/model/getObjectsRequest.d.ts +18 -0
- package/dist/model/getObjectsRequest.d.ts.map +1 -0
- package/dist/model/getObjectsResponse.d.ts +6 -6
- package/dist/model/getObjectsResponse.d.ts.map +1 -1
- package/dist/model/getTaskResponse.d.ts +4 -4
- package/dist/model/getTaskResponse.d.ts.map +1 -1
- package/dist/model/getTopUserIdsResponse.d.ts +10 -10
- package/dist/model/getTopUserIdsResponse.d.ts.map +1 -1
- package/dist/model/hasPendingMappingsResponse.d.ts +10 -10
- package/dist/model/hasPendingMappingsResponse.d.ts.map +1 -1
- package/dist/model/highlightResult.d.ts +2 -2
- package/dist/model/highlightResult.d.ts.map +1 -1
- package/dist/model/highlightResultOption.d.ts +19 -19
- package/dist/model/highlightResultOption.d.ts.map +1 -1
- package/dist/model/hit.d.ts +22 -22
- package/dist/model/hit.d.ts.map +1 -1
- package/dist/model/ignorePlurals.d.ts +4 -4
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +163 -152
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettings.d.ts +6 -6
- package/dist/model/indexSettings.d.ts.map +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +162 -158
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/languages.d.ts +9 -9
- package/dist/model/languages.d.ts.map +1 -1
- package/dist/model/listApiKeysResponse.d.ts +7 -7
- package/dist/model/listApiKeysResponse.d.ts.map +1 -1
- package/dist/model/listClustersResponse.d.ts +9 -9
- package/dist/model/listClustersResponse.d.ts.map +1 -1
- package/dist/model/listIndicesResponse.d.ts +11 -11
- package/dist/model/listIndicesResponse.d.ts.map +1 -1
- package/dist/model/listUserIdsResponse.d.ts +10 -10
- package/dist/model/listUserIdsResponse.d.ts.map +1 -1
- package/dist/model/log.d.ts +63 -63
- package/dist/model/log.d.ts.map +1 -1
- package/dist/model/logQuery.d.ts +14 -14
- package/dist/model/logQuery.d.ts.map +1 -1
- package/dist/model/logType.d.ts +1 -1
- package/dist/model/logType.d.ts.map +1 -1
- package/dist/model/matchLevel.d.ts +4 -4
- package/dist/model/matchLevel.d.ts.map +1 -1
- package/dist/model/matchedGeoLocation.d.ts +14 -14
- package/dist/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/model/mixedSearchFilters.d.ts +1 -1
- package/dist/model/mixedSearchFilters.d.ts.map +1 -1
- package/dist/model/mode.d.ts +5 -0
- package/dist/model/mode.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 +10 -10
- package/dist/model/multipleBatchResponse.d.ts.map +1 -1
- package/dist/model/numericFilters.d.ts +5 -5
- package/dist/model/numericFilters.d.ts.map +1 -1
- package/dist/model/operationIndexParams.d.ts +13 -13
- package/dist/model/operationIndexParams.d.ts.map +1 -1
- package/dist/model/operationType.d.ts +4 -4
- package/dist/model/operationType.d.ts.map +1 -1
- package/dist/model/optionalFilters.d.ts +5 -5
- package/dist/model/optionalFilters.d.ts.map +1 -1
- package/dist/model/params.d.ts +12 -12
- package/dist/model/params.d.ts.map +1 -1
- package/dist/model/personalization.d.ts +14 -14
- package/dist/model/personalization.d.ts.map +1 -1
- package/dist/model/promote.d.ts +3 -3
- package/dist/model/promote.d.ts.map +1 -1
- package/dist/model/promoteObjectID.d.ts +13 -13
- package/dist/model/promoteObjectID.d.ts.map +1 -1
- package/dist/model/promoteObjectIDs.d.ts +13 -13
- package/dist/model/promoteObjectIDs.d.ts.map +1 -1
- package/dist/model/queryType.d.ts +4 -4
- package/dist/model/queryType.d.ts.map +1 -1
- package/dist/model/rankingInfo.d.ts +50 -50
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/model/redirect.d.ts +8 -0
- package/dist/model/redirect.d.ts.map +1 -0
- package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
- package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
- package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
- package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
- package/dist/model/removeStopWords.d.ts +4 -4
- package/dist/model/removeStopWords.d.ts.map +1 -1
- package/dist/model/removeUserIdResponse.d.ts +6 -6
- package/dist/model/removeUserIdResponse.d.ts.map +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
- package/dist/model/renderingContent.d.ts +7 -7
- package/dist/model/renderingContent.d.ts.map +1 -1
- package/dist/model/replaceSourceResponse.d.ts +6 -6
- package/dist/model/replaceSourceResponse.d.ts.map +1 -1
- package/dist/model/rule.d.ts +29 -29
- package/dist/model/rule.d.ts.map +1 -1
- package/dist/model/saveObjectResponse.d.ts +14 -11
- package/dist/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/model/saveSynonymResponse.d.ts +14 -14
- package/dist/model/saveSynonymResponse.d.ts.map +1 -1
- package/dist/model/scopeType.d.ts +1 -1
- package/dist/model/scopeType.d.ts.map +1 -1
- package/dist/model/searchDictionaryEntriesParams.d.ts +21 -21
- package/dist/model/searchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/model/searchForFacetValuesRequest.d.ts +14 -14
- package/dist/model/searchForFacetValuesRequest.d.ts.map +1 -1
- package/dist/model/searchForFacetValuesResponse.d.ts +12 -4
- package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/model/searchForFacets.d.ts +3 -3
- package/dist/model/searchForFacets.d.ts.map +1 -1
- package/dist/model/searchForFacetsOptions.d.ts +20 -20
- package/dist/model/searchForFacetsOptions.d.ts.map +1 -1
- package/dist/model/searchForHits.d.ts +3 -3
- package/dist/model/searchForHits.d.ts.map +1 -1
- package/dist/model/searchForHitsOptions.d.ts +12 -12
- package/dist/model/searchForHitsOptions.d.ts.map +1 -1
- package/dist/model/searchHits.d.ts +12 -4
- package/dist/model/searchHits.d.ts.map +1 -1
- package/dist/model/searchMethodParams.d.ts +6 -6
- package/dist/model/searchMethodParams.d.ts.map +1 -1
- package/dist/model/searchParams.d.ts +3 -3
- package/dist/model/searchParams.d.ts.map +1 -1
- package/dist/model/searchParamsObject.d.ts +3 -3
- package/dist/model/searchParamsObject.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts +6 -6
- package/dist/model/searchParamsQuery.d.ts.map +1 -1
- package/dist/model/searchParamsString.d.ts +6 -6
- package/dist/model/searchParamsString.d.ts.map +1 -1
- package/dist/model/searchQuery.d.ts +3 -3
- package/dist/model/searchQuery.d.ts.map +1 -1
- package/dist/model/searchResponse.d.ts +3 -3
- package/dist/model/searchResponse.d.ts.map +1 -1
- package/dist/model/searchResponses.d.ts +4 -4
- package/dist/model/searchResponses.d.ts.map +1 -1
- package/dist/model/searchResult.d.ts +4 -0
- package/dist/model/searchResult.d.ts.map +1 -0
- package/dist/model/searchRulesParams.d.ts +31 -31
- package/dist/model/searchRulesParams.d.ts.map +1 -1
- package/dist/model/searchRulesResponse.d.ts +19 -19
- package/dist/model/searchRulesResponse.d.ts.map +1 -1
- package/dist/model/searchStrategy.d.ts +4 -1
- package/dist/model/searchStrategy.d.ts.map +1 -1
- package/dist/model/searchSynonymsParams.d.ts +16 -6
- package/dist/model/searchSynonymsParams.d.ts.map +1 -1
- package/dist/model/searchSynonymsResponse.d.ts +11 -11
- package/dist/model/searchSynonymsResponse.d.ts.map +1 -1
- package/dist/model/searchTypeDefault.d.ts +4 -4
- package/dist/model/searchTypeDefault.d.ts.map +1 -1
- package/dist/model/searchTypeFacet.d.ts +4 -4
- package/dist/model/searchTypeFacet.d.ts.map +1 -1
- package/dist/model/searchUserIdsParams.d.ts +21 -21
- package/dist/model/searchUserIdsParams.d.ts.map +1 -1
- package/dist/model/searchUserIdsResponse.d.ts +26 -26
- package/dist/model/searchUserIdsResponse.d.ts.map +1 -1
- package/dist/model/semanticSearch.d.ts +10 -0
- package/dist/model/semanticSearch.d.ts.map +1 -0
- package/dist/model/snippetResult.d.ts +2 -2
- package/dist/model/snippetResult.d.ts.map +1 -1
- package/dist/model/snippetResultOption.d.ts +11 -11
- package/dist/model/snippetResultOption.d.ts.map +1 -1
- package/dist/model/sortRemainingBy.d.ts +4 -4
- package/dist/model/sortRemainingBy.d.ts.map +1 -1
- package/dist/model/source.d.ts +13 -13
- package/dist/model/source.d.ts.map +1 -1
- package/dist/model/standardEntries.d.ts +17 -17
- package/dist/model/standardEntries.d.ts.map +1 -1
- package/dist/model/synonymHit.d.ts +35 -37
- package/dist/model/synonymHit.d.ts.map +1 -1
- package/dist/model/synonymType.d.ts +4 -4
- package/dist/model/synonymType.d.ts.map +1 -1
- package/dist/model/tagFilters.d.ts +5 -5
- package/dist/model/tagFilters.d.ts.map +1 -1
- package/dist/model/taskStatus.d.ts +4 -1
- package/dist/model/taskStatus.d.ts.map +1 -1
- package/dist/model/timeRange.d.ts +10 -10
- package/dist/model/timeRange.d.ts.map +1 -1
- package/dist/model/typoTolerance.d.ts +5 -5
- package/dist/model/typoTolerance.d.ts.map +1 -1
- package/dist/model/typoToleranceEnum.d.ts +1 -1
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/updateApiKeyResponse.d.ts +10 -10
- package/dist/model/updateApiKeyResponse.d.ts.map +1 -1
- package/dist/model/updatedAtResponse.d.ts +13 -13
- package/dist/model/updatedAtResponse.d.ts.map +1 -1
- package/dist/model/updatedAtWithObjectIdResponse.d.ts +17 -17
- package/dist/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
- package/dist/model/updatedRuleResponse.d.ts +14 -14
- package/dist/model/updatedRuleResponse.d.ts.map +1 -1
- package/dist/model/userHighlightResult.d.ts +5 -11
- package/dist/model/userHighlightResult.d.ts.map +1 -1
- package/dist/model/userHit.d.ts +24 -24
- package/dist/model/userHit.d.ts.map +1 -1
- package/dist/model/userId.d.ts +21 -21
- package/dist/model/userId.d.ts.map +1 -1
- package/dist/model/value.d.ts +8 -8
- package/dist/model/value.d.ts.map +1 -1
- package/dist/src/searchClient.d.ts +845 -673
- package/dist/src/searchClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/acl.ts +5 -1
- package/model/action.ts +2 -2
- package/model/addApiKeyResponse.ts +4 -3
- package/model/advancedSyntaxFeatures.ts +1 -1
- package/model/alternativesAsExact.ts +1 -1
- package/model/anchoring.ts +2 -2
- package/model/apiKey.ts +17 -10
- package/model/aroundPrecision.ts +8 -0
- package/model/aroundPrecisionFromValueInner.ts +7 -0
- package/model/aroundRadius.ts +2 -2
- package/model/aroundRadiusAll.ts +1 -1
- package/model/assignUserIdParams.ts +2 -2
- package/model/attributeToUpdate.ts +5 -0
- package/model/automaticFacetFilter.ts +3 -1
- package/model/automaticFacetFilters.ts +1 -1
- package/model/baseGetApiKeyResponse.ts +13 -0
- package/model/baseIndexSettings.ts +38 -15
- package/model/baseSearchParams.ts +1 -1
- package/model/baseSearchParamsWithoutQuery.ts +69 -42
- package/model/baseSearchResponse.ts +61 -31
- package/model/batchAssignUserIdsParams.ts +4 -3
- package/model/batchDictionaryEntriesParams.ts +5 -4
- package/model/batchDictionaryEntriesRequest.ts +2 -1
- package/model/batchParams.ts +4 -4
- package/model/batchRequest.ts +12 -0
- package/model/batchResponse.ts +4 -3
- package/model/batchWriteParams.ts +4 -4
- package/model/browseParams.ts +6 -0
- package/model/browseParamsObject.ts +6 -0
- package/model/browseResponse.ts +4 -4
- package/model/builtInOperation.ts +3 -2
- package/model/builtInOperationType.ts +2 -2
- package/model/clientMethodProps.ts +169 -166
- package/model/condition.ts +4 -1
- package/model/consequence.ts +10 -6
- package/model/consequenceHide.ts +3 -3
- package/model/consequenceParams.ts +1 -1
- package/model/consequenceQuery.ts +1 -1
- package/model/consequenceQueryObject.ts +2 -1
- package/model/createdAtResponse.ts +3 -3
- package/model/cursor.ts +8 -0
- package/model/deleteApiKeyResponse.ts +2 -2
- package/model/deleteByParams.ts +36 -0
- package/model/deleteSourceResponse.ts +2 -2
- package/model/deletedAtResponse.ts +5 -4
- package/model/dictionaryAction.ts +1 -1
- package/model/dictionaryEntry.ts +12 -7
- package/model/dictionaryEntryState.ts +2 -2
- package/model/dictionaryLanguage.ts +3 -3
- package/model/dictionarySettingsParams.ts +2 -2
- package/model/dictionaryType.ts +1 -1
- package/model/distinct.ts +6 -0
- package/model/edit.ts +3 -1
- package/model/editType.ts +1 -1
- package/model/errorBase.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +2 -2
- package/model/exhaustive.ts +31 -0
- package/model/facetFilters.ts +2 -2
- package/model/facetHits.ts +6 -4
- package/model/facetOrdering.ts +4 -3
- package/model/facets.ts +2 -2
- package/model/facetsStats.ts +8 -5
- package/model/fetchedIndex.ts +13 -3
- package/model/getApiKeyResponse.ts +6 -0
- package/model/getDictionarySettingsResponse.ts +1 -1
- package/model/getLogsResponse.ts +1 -1
- package/model/getObjectsParams.ts +4 -4
- package/model/getObjectsRequest.ts +21 -0
- package/model/getObjectsResponse.ts +4 -4
- package/model/getTaskResponse.ts +1 -1
- package/model/getTopUserIdsResponse.ts +3 -3
- package/model/hasPendingMappingsResponse.ts +4 -3
- package/model/highlightResult.ts +5 -2
- package/model/highlightResultOption.ts +5 -2
- package/model/hit.ts +7 -3
- package/model/ignorePlurals.ts +2 -2
- package/model/index.ts +21 -10
- package/model/indexSettings.ts +2 -2
- package/model/indexSettingsAsSearchParams.ts +92 -44
- package/model/languages.ts +4 -2
- package/model/listApiKeysResponse.ts +4 -4
- package/model/listClustersResponse.ts +3 -3
- package/model/listIndicesResponse.ts +4 -3
- package/model/listUserIdsResponse.ts +3 -3
- package/model/log.ts +22 -8
- package/model/logQuery.ts +4 -2
- package/model/logType.ts +1 -1
- package/model/matchLevel.ts +1 -1
- package/model/matchedGeoLocation.ts +3 -1
- package/model/mixedSearchFilters.ts +1 -1
- package/model/mode.ts +6 -0
- package/model/multipleBatchRequest.ts +17 -0
- package/model/multipleBatchResponse.ts +6 -5
- package/model/numericFilters.ts +2 -2
- package/model/operationIndexParams.ts +5 -3
- package/model/operationType.ts +2 -2
- package/model/optionalFilters.ts +2 -2
- package/model/params.ts +5 -2
- package/model/personalization.ts +3 -1
- package/model/promote.ts +1 -1
- package/model/promoteObjectID.ts +5 -4
- package/model/promoteObjectIDs.ts +5 -4
- package/model/queryType.ts +2 -2
- package/model/rankingInfo.ts +13 -1
- package/model/reRankingApplyFilter.ts +2 -2
- package/model/redirect.ts +10 -0
- package/model/redirectRuleIndexMetadata.ts +27 -0
- package/model/redirectRuleIndexMetadataData.ts +8 -0
- package/model/removeStopWords.ts +2 -2
- package/model/removeUserIdResponse.ts +2 -2
- package/model/removeWordsIfNoResults.ts +2 -2
- package/model/renderingContent.ts +2 -2
- package/model/replaceSourceResponse.ts +2 -2
- package/model/rule.ts +11 -6
- package/model/saveObjectResponse.ts +10 -5
- package/model/saveSynonymResponse.ts +6 -4
- package/model/scopeType.ts +1 -1
- package/model/searchDictionaryEntriesParams.ts +9 -6
- package/model/searchForFacetValuesRequest.ts +5 -3
- package/model/searchForFacetValuesResponse.ts +11 -1
- package/model/searchForFacets.ts +1 -1
- package/model/searchForFacetsOptions.ts +8 -4
- package/model/searchForHits.ts +1 -1
- package/model/searchForHitsOptions.ts +3 -2
- package/model/searchHits.ts +13 -3
- package/model/searchMethodParams.ts +2 -1
- package/model/searchParams.ts +1 -1
- package/model/searchParamsObject.ts +1 -1
- package/model/searchParamsQuery.ts +2 -2
- package/model/searchParamsString.ts +2 -2
- package/model/searchQuery.ts +1 -1
- package/model/searchResponse.ts +3 -2
- package/model/searchResponses.ts +4 -4
- package/model/searchResult.ts +8 -0
- package/model/searchRulesParams.ts +15 -9
- package/model/searchRulesResponse.ts +4 -1
- package/model/searchStrategy.ts +4 -1
- package/model/searchSynonymsParams.ts +16 -2
- package/model/searchSynonymsResponse.ts +4 -3
- package/model/searchTypeDefault.ts +2 -2
- package/model/searchTypeFacet.ts +2 -2
- package/model/searchUserIdsParams.ts +8 -5
- package/model/searchUserIdsResponse.ts +10 -6
- package/model/semanticSearch.ts +11 -0
- package/model/snippetResult.ts +5 -2
- package/model/snippetResultOption.ts +3 -2
- package/model/sortRemainingBy.ts +2 -2
- package/model/source.ts +5 -4
- package/model/standardEntries.ts +7 -5
- package/model/synonymHit.ts +14 -9
- package/model/synonymType.ts +2 -2
- package/model/tagFilters.ts +2 -2
- package/model/taskStatus.ts +4 -1
- package/model/timeRange.ts +2 -1
- package/model/typoTolerance.ts +2 -2
- package/model/typoToleranceEnum.ts +1 -1
- package/model/updateApiKeyResponse.ts +4 -3
- package/model/updatedAtResponse.ts +5 -4
- package/model/updatedAtWithObjectIdResponse.ts +7 -5
- package/model/updatedRuleResponse.ts +6 -4
- package/model/userHighlightResult.ts +4 -9
- package/model/userHit.ts +7 -2
- package/model/userId.ts +6 -3
- package/model/value.ts +2 -1
- package/package.json +32 -13
- package/dist/model/attributeOrBuiltInOperation.d.ts +0 -3
- package/dist/model/attributeOrBuiltInOperation.d.ts.map +0 -1
- package/dist/model/baseBrowseResponse.d.ts +0 -7
- package/dist/model/baseBrowseResponse.d.ts.map +0 -1
- package/dist/model/batchOperation.d.ts +0 -9
- package/dist/model/batchOperation.d.ts.map +0 -1
- package/dist/model/browseRequest.d.ts +0 -11
- package/dist/model/browseRequest.d.ts.map +0 -1
- package/dist/model/createdAtObject.d.ts +0 -7
- package/dist/model/createdAtObject.d.ts.map +0 -1
- package/dist/model/key.d.ts +0 -4
- package/dist/model/key.d.ts.map +0 -1
- package/dist/model/multipleBatchOperation.d.ts +0 -13
- package/dist/model/multipleBatchOperation.d.ts.map +0 -1
- package/dist/model/multipleGetObjectsParams.d.ts +0 -18
- package/dist/model/multipleGetObjectsParams.d.ts.map +0 -1
- package/dist/model/synonymHitHighlightResult.d.ts +0 -12
- package/dist/model/synonymHitHighlightResult.d.ts.map +0 -1
- package/model/attributeOrBuiltInOperation.ts +0 -5
- package/model/baseBrowseResponse.ts +0 -8
- package/model/batchOperation.ts +0 -11
- package/model/browseRequest.ts +0 -12
- package/model/createdAtObject.ts +0 -8
- package/model/key.ts +0 -6
- package/model/multipleBatchOperation.ts +0 -15
- package/model/multipleGetObjectsParams.ts +0 -19
- package/model/synonymHitHighlightResult.ts +0 -14
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 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.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { CreateIterablePromise } from '@algolia/client-common';
|
|
4
4
|
|
|
5
5
|
import type { ApiKey } from './apiKey';
|
|
6
6
|
import type { AssignUserIdParams } from './assignUserIdParams';
|
|
7
|
-
import type {
|
|
7
|
+
import type { AttributeToUpdate } from './attributeToUpdate';
|
|
8
8
|
import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
|
|
9
9
|
import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
|
|
10
10
|
import type { BatchWriteParams } from './batchWriteParams';
|
|
11
|
-
import type {
|
|
11
|
+
import type { BrowseParams } from './browseParams';
|
|
12
|
+
import type { DeleteByParams } from './deleteByParams';
|
|
12
13
|
import type { DictionaryType } from './dictionaryType';
|
|
13
|
-
import type { GetTaskResponse } from './getTaskResponse';
|
|
14
14
|
import type { IndexSettings } from './indexSettings';
|
|
15
|
-
import type { Key } from './key';
|
|
16
15
|
import type { LogType } from './logType';
|
|
17
16
|
import type { OperationIndexParams } from './operationIndexParams';
|
|
18
17
|
import type { Rule } from './rule';
|
|
@@ -26,22 +25,21 @@ import type { SearchRulesParams } from './searchRulesParams';
|
|
|
26
25
|
import type { SearchSynonymsParams } from './searchSynonymsParams';
|
|
27
26
|
import type { Source } from './source';
|
|
28
27
|
import type { SynonymHit } from './synonymHit';
|
|
29
|
-
import type { SynonymType } from './synonymType';
|
|
30
28
|
|
|
31
29
|
/**
|
|
32
30
|
* Properties for the `addOrUpdateObject` method.
|
|
33
31
|
*/
|
|
34
32
|
export type AddOrUpdateObjectProps = {
|
|
35
33
|
/**
|
|
36
|
-
*
|
|
34
|
+
* Index on which to perform the request.
|
|
37
35
|
*/
|
|
38
36
|
indexName: string;
|
|
39
37
|
/**
|
|
40
|
-
* Unique
|
|
38
|
+
* Unique record (object) identifier.
|
|
41
39
|
*/
|
|
42
40
|
objectID: string;
|
|
43
41
|
/**
|
|
44
|
-
*
|
|
42
|
+
* Algolia record.
|
|
45
43
|
*/
|
|
46
44
|
body: Record<string, any>;
|
|
47
45
|
};
|
|
@@ -62,7 +60,7 @@ export type AssignUserIdProps = {
|
|
|
62
60
|
*/
|
|
63
61
|
export type BatchProps = {
|
|
64
62
|
/**
|
|
65
|
-
*
|
|
63
|
+
* Index on which to perform the request.
|
|
66
64
|
*/
|
|
67
65
|
indexName: string;
|
|
68
66
|
batchWriteParams: BatchWriteParams;
|
|
@@ -84,7 +82,7 @@ export type BatchAssignUserIdsProps = {
|
|
|
84
82
|
*/
|
|
85
83
|
export type BatchDictionaryEntriesProps = {
|
|
86
84
|
/**
|
|
87
|
-
*
|
|
85
|
+
* Dictionary to search in.
|
|
88
86
|
*/
|
|
89
87
|
dictionaryName: DictionaryType;
|
|
90
88
|
batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
|
|
@@ -95,62 +93,112 @@ export type BatchDictionaryEntriesProps = {
|
|
|
95
93
|
*/
|
|
96
94
|
export type BrowseProps = {
|
|
97
95
|
/**
|
|
98
|
-
*
|
|
96
|
+
* Index on which to perform the request.
|
|
99
97
|
*/
|
|
100
98
|
indexName: string;
|
|
101
|
-
|
|
99
|
+
browseParams?: BrowseParams;
|
|
102
100
|
};
|
|
103
101
|
|
|
104
102
|
/**
|
|
105
|
-
* Properties for the `
|
|
103
|
+
* Properties for the `clearObjects` method.
|
|
106
104
|
*/
|
|
107
|
-
export type
|
|
105
|
+
export type ClearObjectsProps = {
|
|
108
106
|
/**
|
|
109
|
-
*
|
|
107
|
+
* Index on which to perform the request.
|
|
108
|
+
*/
|
|
109
|
+
indexName: string;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Properties for the `clearRules` method.
|
|
114
|
+
*/
|
|
115
|
+
export type ClearRulesProps = {
|
|
116
|
+
/**
|
|
117
|
+
* Index on which to perform the request.
|
|
110
118
|
*/
|
|
111
119
|
indexName: string;
|
|
112
120
|
/**
|
|
113
|
-
*
|
|
121
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
114
122
|
*/
|
|
115
123
|
forwardToReplicas?: boolean;
|
|
116
124
|
};
|
|
117
125
|
|
|
118
126
|
/**
|
|
119
|
-
* Properties for the `
|
|
127
|
+
* Properties for the `clearSynonyms` method.
|
|
120
128
|
*/
|
|
121
|
-
export type
|
|
129
|
+
export type ClearSynonymsProps = {
|
|
122
130
|
/**
|
|
123
|
-
*
|
|
131
|
+
* Index on which to perform the request.
|
|
124
132
|
*/
|
|
125
133
|
indexName: string;
|
|
134
|
+
/**
|
|
135
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
136
|
+
*/
|
|
137
|
+
forwardToReplicas?: boolean;
|
|
126
138
|
};
|
|
127
139
|
|
|
128
140
|
/**
|
|
129
|
-
* Properties for the `
|
|
141
|
+
* Properties for the `customDelete` method.
|
|
130
142
|
*/
|
|
131
|
-
export type
|
|
143
|
+
export type CustomDeleteProps = {
|
|
132
144
|
/**
|
|
133
|
-
*
|
|
145
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
134
146
|
*/
|
|
135
|
-
|
|
147
|
+
path: string;
|
|
136
148
|
/**
|
|
137
|
-
*
|
|
149
|
+
* Query parameters to apply to the current query.
|
|
138
150
|
*/
|
|
139
|
-
|
|
151
|
+
parameters?: Record<string, any>;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Properties for the `customGet` method.
|
|
156
|
+
*/
|
|
157
|
+
export type CustomGetProps = {
|
|
158
|
+
/**
|
|
159
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
160
|
+
*/
|
|
161
|
+
path: string;
|
|
162
|
+
/**
|
|
163
|
+
* Query parameters to apply to the current query.
|
|
164
|
+
*/
|
|
165
|
+
parameters?: Record<string, any>;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Properties for the `customPost` method.
|
|
170
|
+
*/
|
|
171
|
+
export type CustomPostProps = {
|
|
172
|
+
/**
|
|
173
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
174
|
+
*/
|
|
175
|
+
path: string;
|
|
176
|
+
/**
|
|
177
|
+
* Query parameters to apply to the current query.
|
|
178
|
+
*/
|
|
179
|
+
parameters?: Record<string, any>;
|
|
180
|
+
/**
|
|
181
|
+
* Parameters to send with the custom request.
|
|
182
|
+
*/
|
|
183
|
+
body?: Record<string, any>;
|
|
140
184
|
};
|
|
141
185
|
|
|
142
186
|
/**
|
|
143
|
-
* Properties for the `
|
|
187
|
+
* Properties for the `customPut` method.
|
|
144
188
|
*/
|
|
145
|
-
export type
|
|
189
|
+
export type CustomPutProps = {
|
|
146
190
|
/**
|
|
147
|
-
*
|
|
191
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
148
192
|
*/
|
|
149
193
|
path: string;
|
|
150
194
|
/**
|
|
151
|
-
* Query parameters to
|
|
195
|
+
* Query parameters to apply to the current query.
|
|
152
196
|
*/
|
|
153
197
|
parameters?: Record<string, any>;
|
|
198
|
+
/**
|
|
199
|
+
* Parameters to send with the custom request.
|
|
200
|
+
*/
|
|
201
|
+
body?: Record<string, any>;
|
|
154
202
|
};
|
|
155
203
|
|
|
156
204
|
/**
|
|
@@ -158,7 +206,7 @@ export type DelProps = {
|
|
|
158
206
|
*/
|
|
159
207
|
export type DeleteApiKeyProps = {
|
|
160
208
|
/**
|
|
161
|
-
* API
|
|
209
|
+
* API key.
|
|
162
210
|
*/
|
|
163
211
|
key: string;
|
|
164
212
|
};
|
|
@@ -168,10 +216,10 @@ export type DeleteApiKeyProps = {
|
|
|
168
216
|
*/
|
|
169
217
|
export type DeleteByProps = {
|
|
170
218
|
/**
|
|
171
|
-
*
|
|
219
|
+
* Index on which to perform the request.
|
|
172
220
|
*/
|
|
173
221
|
indexName: string;
|
|
174
|
-
|
|
222
|
+
deleteByParams: DeleteByParams;
|
|
175
223
|
};
|
|
176
224
|
|
|
177
225
|
/**
|
|
@@ -179,7 +227,7 @@ export type DeleteByProps = {
|
|
|
179
227
|
*/
|
|
180
228
|
export type DeleteIndexProps = {
|
|
181
229
|
/**
|
|
182
|
-
*
|
|
230
|
+
* Index on which to perform the request.
|
|
183
231
|
*/
|
|
184
232
|
indexName: string;
|
|
185
233
|
};
|
|
@@ -189,11 +237,11 @@ export type DeleteIndexProps = {
|
|
|
189
237
|
*/
|
|
190
238
|
export type DeleteObjectProps = {
|
|
191
239
|
/**
|
|
192
|
-
*
|
|
240
|
+
* Index on which to perform the request.
|
|
193
241
|
*/
|
|
194
242
|
indexName: string;
|
|
195
243
|
/**
|
|
196
|
-
* Unique
|
|
244
|
+
* Unique record (object) identifier.
|
|
197
245
|
*/
|
|
198
246
|
objectID: string;
|
|
199
247
|
};
|
|
@@ -203,15 +251,15 @@ export type DeleteObjectProps = {
|
|
|
203
251
|
*/
|
|
204
252
|
export type DeleteRuleProps = {
|
|
205
253
|
/**
|
|
206
|
-
*
|
|
254
|
+
* Index on which to perform the request.
|
|
207
255
|
*/
|
|
208
256
|
indexName: string;
|
|
209
257
|
/**
|
|
210
|
-
* Unique identifier of
|
|
258
|
+
* Unique identifier of a rule object.
|
|
211
259
|
*/
|
|
212
260
|
objectID: string;
|
|
213
261
|
/**
|
|
214
|
-
*
|
|
262
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
215
263
|
*/
|
|
216
264
|
forwardToReplicas?: boolean;
|
|
217
265
|
};
|
|
@@ -221,7 +269,7 @@ export type DeleteRuleProps = {
|
|
|
221
269
|
*/
|
|
222
270
|
export type DeleteSourceProps = {
|
|
223
271
|
/**
|
|
224
|
-
*
|
|
272
|
+
* IP address range of the source.
|
|
225
273
|
*/
|
|
226
274
|
source: string;
|
|
227
275
|
};
|
|
@@ -231,39 +279,25 @@ export type DeleteSourceProps = {
|
|
|
231
279
|
*/
|
|
232
280
|
export type DeleteSynonymProps = {
|
|
233
281
|
/**
|
|
234
|
-
*
|
|
282
|
+
* Index on which to perform the request.
|
|
235
283
|
*/
|
|
236
284
|
indexName: string;
|
|
237
285
|
/**
|
|
238
|
-
* Unique identifier of
|
|
286
|
+
* Unique identifier of a synonym object.
|
|
239
287
|
*/
|
|
240
288
|
objectID: string;
|
|
241
289
|
/**
|
|
242
|
-
*
|
|
290
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
243
291
|
*/
|
|
244
292
|
forwardToReplicas?: boolean;
|
|
245
293
|
};
|
|
246
294
|
|
|
247
|
-
/**
|
|
248
|
-
* Properties for the `get` method.
|
|
249
|
-
*/
|
|
250
|
-
export type GetProps = {
|
|
251
|
-
/**
|
|
252
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
253
|
-
*/
|
|
254
|
-
path: string;
|
|
255
|
-
/**
|
|
256
|
-
* Query parameters to be applied to the current query.
|
|
257
|
-
*/
|
|
258
|
-
parameters?: Record<string, any>;
|
|
259
|
-
};
|
|
260
|
-
|
|
261
295
|
/**
|
|
262
296
|
* Properties for the `getApiKey` method.
|
|
263
297
|
*/
|
|
264
298
|
export type GetApiKeyProps = {
|
|
265
299
|
/**
|
|
266
|
-
* API
|
|
300
|
+
* API key.
|
|
267
301
|
*/
|
|
268
302
|
key: string;
|
|
269
303
|
};
|
|
@@ -273,15 +307,15 @@ export type GetApiKeyProps = {
|
|
|
273
307
|
*/
|
|
274
308
|
export type GetLogsProps = {
|
|
275
309
|
/**
|
|
276
|
-
* First entry to retrieve
|
|
310
|
+
* First log entry to retrieve. Sorted by decreasing date with 0 being the most recent.
|
|
277
311
|
*/
|
|
278
312
|
offset?: number;
|
|
279
313
|
/**
|
|
280
|
-
* Maximum number of entries to retrieve.
|
|
314
|
+
* Maximum number of entries to retrieve.
|
|
281
315
|
*/
|
|
282
316
|
length?: number;
|
|
283
317
|
/**
|
|
284
|
-
* Index for which log entries should be retrieved. When omitted, log entries are retrieved
|
|
318
|
+
* Index for which log entries should be retrieved. When omitted, log entries are retrieved for all indices.
|
|
285
319
|
*/
|
|
286
320
|
indexName?: string;
|
|
287
321
|
/**
|
|
@@ -295,15 +329,15 @@ export type GetLogsProps = {
|
|
|
295
329
|
*/
|
|
296
330
|
export type GetObjectProps = {
|
|
297
331
|
/**
|
|
298
|
-
*
|
|
332
|
+
* Index on which to perform the request.
|
|
299
333
|
*/
|
|
300
334
|
indexName: string;
|
|
301
335
|
/**
|
|
302
|
-
* Unique
|
|
336
|
+
* Unique record (object) identifier.
|
|
303
337
|
*/
|
|
304
338
|
objectID: string;
|
|
305
339
|
/**
|
|
306
|
-
*
|
|
340
|
+
* Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved, even when not specified. [`unretrievableAttributes`](https://www.algolia.com/doc/api-reference/api-parameters/unretrievableAttributes/) won\'t be retrieved unless the request is authenticated with the admin API key.
|
|
307
341
|
*/
|
|
308
342
|
attributesToRetrieve?: string[];
|
|
309
343
|
};
|
|
@@ -313,11 +347,11 @@ export type GetObjectProps = {
|
|
|
313
347
|
*/
|
|
314
348
|
export type GetRuleProps = {
|
|
315
349
|
/**
|
|
316
|
-
*
|
|
350
|
+
* Index on which to perform the request.
|
|
317
351
|
*/
|
|
318
352
|
indexName: string;
|
|
319
353
|
/**
|
|
320
|
-
* Unique identifier of
|
|
354
|
+
* Unique identifier of a rule object.
|
|
321
355
|
*/
|
|
322
356
|
objectID: string;
|
|
323
357
|
};
|
|
@@ -327,7 +361,7 @@ export type GetRuleProps = {
|
|
|
327
361
|
*/
|
|
328
362
|
export type GetSettingsProps = {
|
|
329
363
|
/**
|
|
330
|
-
*
|
|
364
|
+
* Index on which to perform the request.
|
|
331
365
|
*/
|
|
332
366
|
indexName: string;
|
|
333
367
|
};
|
|
@@ -337,11 +371,11 @@ export type GetSettingsProps = {
|
|
|
337
371
|
*/
|
|
338
372
|
export type GetSynonymProps = {
|
|
339
373
|
/**
|
|
340
|
-
*
|
|
374
|
+
* Index on which to perform the request.
|
|
341
375
|
*/
|
|
342
376
|
indexName: string;
|
|
343
377
|
/**
|
|
344
|
-
* Unique identifier of
|
|
378
|
+
* Unique identifier of a synonym object.
|
|
345
379
|
*/
|
|
346
380
|
objectID: string;
|
|
347
381
|
};
|
|
@@ -351,11 +385,11 @@ export type GetSynonymProps = {
|
|
|
351
385
|
*/
|
|
352
386
|
export type GetTaskProps = {
|
|
353
387
|
/**
|
|
354
|
-
*
|
|
388
|
+
* Index on which to perform the request.
|
|
355
389
|
*/
|
|
356
390
|
indexName: string;
|
|
357
391
|
/**
|
|
358
|
-
* Unique
|
|
392
|
+
* Unique task identifier.
|
|
359
393
|
*/
|
|
360
394
|
taskID: number;
|
|
361
395
|
};
|
|
@@ -375,7 +409,7 @@ export type GetUserIdProps = {
|
|
|
375
409
|
*/
|
|
376
410
|
export type HasPendingMappingsProps = {
|
|
377
411
|
/**
|
|
378
|
-
*
|
|
412
|
+
* Indicates whether to include the cluster\'s pending mapping state in the response.
|
|
379
413
|
*/
|
|
380
414
|
getClusters?: boolean;
|
|
381
415
|
};
|
|
@@ -385,9 +419,13 @@ export type HasPendingMappingsProps = {
|
|
|
385
419
|
*/
|
|
386
420
|
export type ListIndicesProps = {
|
|
387
421
|
/**
|
|
388
|
-
*
|
|
422
|
+
* Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
|
|
389
423
|
*/
|
|
390
424
|
page?: number;
|
|
425
|
+
/**
|
|
426
|
+
* Maximum number of hits per page.
|
|
427
|
+
*/
|
|
428
|
+
hitsPerPage?: number;
|
|
391
429
|
};
|
|
392
430
|
|
|
393
431
|
/**
|
|
@@ -395,11 +433,11 @@ export type ListIndicesProps = {
|
|
|
395
433
|
*/
|
|
396
434
|
export type ListUserIdsProps = {
|
|
397
435
|
/**
|
|
398
|
-
*
|
|
436
|
+
* Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
|
|
399
437
|
*/
|
|
400
438
|
page?: number;
|
|
401
439
|
/**
|
|
402
|
-
* Maximum number of
|
|
440
|
+
* Maximum number of hits per page.
|
|
403
441
|
*/
|
|
404
442
|
hitsPerPage?: number;
|
|
405
443
|
};
|
|
@@ -409,7 +447,7 @@ export type ListUserIdsProps = {
|
|
|
409
447
|
*/
|
|
410
448
|
export type OperationIndexProps = {
|
|
411
449
|
/**
|
|
412
|
-
*
|
|
450
|
+
* Index on which to perform the request.
|
|
413
451
|
*/
|
|
414
452
|
indexName: string;
|
|
415
453
|
operationIndexParams: OperationIndexParams;
|
|
@@ -420,61 +458,23 @@ export type OperationIndexProps = {
|
|
|
420
458
|
*/
|
|
421
459
|
export type PartialUpdateObjectProps = {
|
|
422
460
|
/**
|
|
423
|
-
*
|
|
461
|
+
* Index on which to perform the request.
|
|
424
462
|
*/
|
|
425
463
|
indexName: string;
|
|
426
464
|
/**
|
|
427
|
-
* Unique
|
|
465
|
+
* Unique record (object) identifier.
|
|
428
466
|
*/
|
|
429
467
|
objectID: string;
|
|
430
468
|
/**
|
|
431
|
-
*
|
|
469
|
+
* Object with attributes to update.
|
|
432
470
|
*/
|
|
433
|
-
|
|
434
|
-
Record<string, AttributeOrBuiltInOperation>
|
|
435
|
-
>;
|
|
471
|
+
attributesToUpdate: Record<string, AttributeToUpdate>;
|
|
436
472
|
/**
|
|
437
|
-
*
|
|
473
|
+
* Indicates whether to create a new record if it doesn\'t exist yet.
|
|
438
474
|
*/
|
|
439
475
|
createIfNotExists?: boolean;
|
|
440
476
|
};
|
|
441
477
|
|
|
442
|
-
/**
|
|
443
|
-
* Properties for the `post` method.
|
|
444
|
-
*/
|
|
445
|
-
export type PostProps = {
|
|
446
|
-
/**
|
|
447
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
448
|
-
*/
|
|
449
|
-
path: string;
|
|
450
|
-
/**
|
|
451
|
-
* Query parameters to be applied to the current query.
|
|
452
|
-
*/
|
|
453
|
-
parameters?: Record<string, any>;
|
|
454
|
-
/**
|
|
455
|
-
* The parameters to send with the custom request.
|
|
456
|
-
*/
|
|
457
|
-
body?: Record<string, any>;
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* Properties for the `put` method.
|
|
462
|
-
*/
|
|
463
|
-
export type PutProps = {
|
|
464
|
-
/**
|
|
465
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
466
|
-
*/
|
|
467
|
-
path: string;
|
|
468
|
-
/**
|
|
469
|
-
* Query parameters to be applied to the current query.
|
|
470
|
-
*/
|
|
471
|
-
parameters?: Record<string, any>;
|
|
472
|
-
/**
|
|
473
|
-
* The parameters to send with the custom request.
|
|
474
|
-
*/
|
|
475
|
-
body?: Record<string, any>;
|
|
476
|
-
};
|
|
477
|
-
|
|
478
478
|
/**
|
|
479
479
|
* Properties for the `removeUserId` method.
|
|
480
480
|
*/
|
|
@@ -490,7 +490,7 @@ export type RemoveUserIdProps = {
|
|
|
490
490
|
*/
|
|
491
491
|
export type ReplaceSourcesProps = {
|
|
492
492
|
/**
|
|
493
|
-
*
|
|
493
|
+
* Allowed sources.
|
|
494
494
|
*/
|
|
495
495
|
source: Source[];
|
|
496
496
|
};
|
|
@@ -500,7 +500,7 @@ export type ReplaceSourcesProps = {
|
|
|
500
500
|
*/
|
|
501
501
|
export type RestoreApiKeyProps = {
|
|
502
502
|
/**
|
|
503
|
-
* API
|
|
503
|
+
* API key.
|
|
504
504
|
*/
|
|
505
505
|
key: string;
|
|
506
506
|
};
|
|
@@ -510,7 +510,7 @@ export type RestoreApiKeyProps = {
|
|
|
510
510
|
*/
|
|
511
511
|
export type SaveObjectProps = {
|
|
512
512
|
/**
|
|
513
|
-
*
|
|
513
|
+
* Index on which to perform the request.
|
|
514
514
|
*/
|
|
515
515
|
indexName: string;
|
|
516
516
|
/**
|
|
@@ -524,16 +524,16 @@ export type SaveObjectProps = {
|
|
|
524
524
|
*/
|
|
525
525
|
export type SaveRuleProps = {
|
|
526
526
|
/**
|
|
527
|
-
*
|
|
527
|
+
* Index on which to perform the request.
|
|
528
528
|
*/
|
|
529
529
|
indexName: string;
|
|
530
530
|
/**
|
|
531
|
-
* Unique identifier of
|
|
531
|
+
* Unique identifier of a rule object.
|
|
532
532
|
*/
|
|
533
533
|
objectID: string;
|
|
534
534
|
rule: Rule;
|
|
535
535
|
/**
|
|
536
|
-
*
|
|
536
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
537
537
|
*/
|
|
538
538
|
forwardToReplicas?: boolean;
|
|
539
539
|
};
|
|
@@ -543,16 +543,16 @@ export type SaveRuleProps = {
|
|
|
543
543
|
*/
|
|
544
544
|
export type SaveRulesProps = {
|
|
545
545
|
/**
|
|
546
|
-
*
|
|
546
|
+
* Index on which to perform the request.
|
|
547
547
|
*/
|
|
548
548
|
indexName: string;
|
|
549
|
-
|
|
549
|
+
rules: Rule[];
|
|
550
550
|
/**
|
|
551
|
-
*
|
|
551
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
552
552
|
*/
|
|
553
553
|
forwardToReplicas?: boolean;
|
|
554
554
|
/**
|
|
555
|
-
*
|
|
555
|
+
* Indicates whether existing rules should be deleted before adding this batch.
|
|
556
556
|
*/
|
|
557
557
|
clearExistingRules?: boolean;
|
|
558
558
|
};
|
|
@@ -562,16 +562,16 @@ export type SaveRulesProps = {
|
|
|
562
562
|
*/
|
|
563
563
|
export type SaveSynonymProps = {
|
|
564
564
|
/**
|
|
565
|
-
*
|
|
565
|
+
* Index on which to perform the request.
|
|
566
566
|
*/
|
|
567
567
|
indexName: string;
|
|
568
568
|
/**
|
|
569
|
-
* Unique identifier of
|
|
569
|
+
* Unique identifier of a synonym object.
|
|
570
570
|
*/
|
|
571
571
|
objectID: string;
|
|
572
572
|
synonymHit: SynonymHit;
|
|
573
573
|
/**
|
|
574
|
-
*
|
|
574
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
575
575
|
*/
|
|
576
576
|
forwardToReplicas?: boolean;
|
|
577
577
|
};
|
|
@@ -581,16 +581,16 @@ export type SaveSynonymProps = {
|
|
|
581
581
|
*/
|
|
582
582
|
export type SaveSynonymsProps = {
|
|
583
583
|
/**
|
|
584
|
-
*
|
|
584
|
+
* Index on which to perform the request.
|
|
585
585
|
*/
|
|
586
586
|
indexName: string;
|
|
587
587
|
synonymHit: SynonymHit[];
|
|
588
588
|
/**
|
|
589
|
-
*
|
|
589
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
590
590
|
*/
|
|
591
591
|
forwardToReplicas?: boolean;
|
|
592
592
|
/**
|
|
593
|
-
*
|
|
593
|
+
* Indicates whether to replace all synonyms in the index with the ones sent with this request.
|
|
594
594
|
*/
|
|
595
595
|
replaceExistingSynonyms?: boolean;
|
|
596
596
|
};
|
|
@@ -632,7 +632,7 @@ export type LegacySearchMethodProps = LegacySearchQuery[];
|
|
|
632
632
|
*/
|
|
633
633
|
export type SearchDictionaryEntriesProps = {
|
|
634
634
|
/**
|
|
635
|
-
*
|
|
635
|
+
* Dictionary to search in.
|
|
636
636
|
*/
|
|
637
637
|
dictionaryName: DictionaryType;
|
|
638
638
|
searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
|
|
@@ -643,11 +643,11 @@ export type SearchDictionaryEntriesProps = {
|
|
|
643
643
|
*/
|
|
644
644
|
export type SearchForFacetValuesProps = {
|
|
645
645
|
/**
|
|
646
|
-
*
|
|
646
|
+
* Index on which to perform the request.
|
|
647
647
|
*/
|
|
648
648
|
indexName: string;
|
|
649
649
|
/**
|
|
650
|
-
*
|
|
650
|
+
* Facet name.
|
|
651
651
|
*/
|
|
652
652
|
facetName: string;
|
|
653
653
|
searchForFacetValuesRequest?: SearchForFacetValuesRequest;
|
|
@@ -658,10 +658,10 @@ export type SearchForFacetValuesProps = {
|
|
|
658
658
|
*/
|
|
659
659
|
export type SearchRulesProps = {
|
|
660
660
|
/**
|
|
661
|
-
*
|
|
661
|
+
* Index on which to perform the request.
|
|
662
662
|
*/
|
|
663
663
|
indexName: string;
|
|
664
|
-
searchRulesParams
|
|
664
|
+
searchRulesParams?: SearchRulesParams;
|
|
665
665
|
};
|
|
666
666
|
|
|
667
667
|
/**
|
|
@@ -669,10 +669,10 @@ export type SearchRulesProps = {
|
|
|
669
669
|
*/
|
|
670
670
|
export type SearchSingleIndexProps = {
|
|
671
671
|
/**
|
|
672
|
-
*
|
|
672
|
+
* Index on which to perform the request.
|
|
673
673
|
*/
|
|
674
674
|
indexName: string;
|
|
675
|
-
searchParams
|
|
675
|
+
searchParams?: SearchParams;
|
|
676
676
|
};
|
|
677
677
|
|
|
678
678
|
/**
|
|
@@ -680,23 +680,11 @@ export type SearchSingleIndexProps = {
|
|
|
680
680
|
*/
|
|
681
681
|
export type SearchSynonymsProps = {
|
|
682
682
|
/**
|
|
683
|
-
*
|
|
683
|
+
* Index on which to perform the request.
|
|
684
684
|
*/
|
|
685
685
|
indexName: string;
|
|
686
686
|
/**
|
|
687
|
-
*
|
|
688
|
-
*/
|
|
689
|
-
type?: SynonymType;
|
|
690
|
-
/**
|
|
691
|
-
* Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
|
|
692
|
-
*/
|
|
693
|
-
page?: number;
|
|
694
|
-
/**
|
|
695
|
-
* Maximum number of objects to retrieve.
|
|
696
|
-
*/
|
|
697
|
-
hitsPerPage?: number;
|
|
698
|
-
/**
|
|
699
|
-
* The body of the the `searchSynonyms` method.
|
|
687
|
+
* Body of the `searchSynonyms` operation.
|
|
700
688
|
*/
|
|
701
689
|
searchSynonymsParams?: SearchSynonymsParams;
|
|
702
690
|
};
|
|
@@ -706,12 +694,12 @@ export type SearchSynonymsProps = {
|
|
|
706
694
|
*/
|
|
707
695
|
export type SetSettingsProps = {
|
|
708
696
|
/**
|
|
709
|
-
*
|
|
697
|
+
* Index on which to perform the request.
|
|
710
698
|
*/
|
|
711
699
|
indexName: string;
|
|
712
700
|
indexSettings: IndexSettings;
|
|
713
701
|
/**
|
|
714
|
-
*
|
|
702
|
+
* Indicates whether changed index settings are forwarded to the replica indices.
|
|
715
703
|
*/
|
|
716
704
|
forwardToReplicas?: boolean;
|
|
717
705
|
};
|
|
@@ -721,18 +709,33 @@ export type SetSettingsProps = {
|
|
|
721
709
|
*/
|
|
722
710
|
export type UpdateApiKeyProps = {
|
|
723
711
|
/**
|
|
724
|
-
* API
|
|
712
|
+
* API key.
|
|
725
713
|
*/
|
|
726
714
|
key: string;
|
|
727
715
|
apiKey: ApiKey;
|
|
728
716
|
};
|
|
729
717
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
718
|
+
/**
|
|
719
|
+
* The `browseObjects`, `browseRules`, `browseSynonyms` options.
|
|
720
|
+
*/
|
|
721
|
+
export type BrowseOptions<T> = Partial<
|
|
722
|
+
Pick<CreateIterablePromise<T>, 'validate'>
|
|
723
|
+
> &
|
|
724
|
+
Required<Pick<CreateIterablePromise<T>, 'aggregator'>>;
|
|
725
|
+
|
|
726
|
+
type WaitForOptions = Partial<{
|
|
727
|
+
/**
|
|
728
|
+
* The maximum number of retries. 50 by default.
|
|
729
|
+
*/
|
|
730
|
+
maxRetries: number;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* The function to decide how long to wait between retries.
|
|
734
|
+
*/
|
|
735
|
+
timeout: (retryCount: number) => number;
|
|
736
|
+
}>;
|
|
734
737
|
|
|
735
|
-
export type WaitForTaskOptions = WaitForOptions
|
|
738
|
+
export type WaitForTaskOptions = WaitForOptions & {
|
|
736
739
|
/**
|
|
737
740
|
* The `indexName` where the operation was performed.
|
|
738
741
|
*/
|
|
@@ -743,7 +746,7 @@ export type WaitForTaskOptions = WaitForOptions<GetTaskResponse> & {
|
|
|
743
746
|
taskID: number;
|
|
744
747
|
};
|
|
745
748
|
|
|
746
|
-
export type WaitForApiKeyOptions = WaitForOptions
|
|
749
|
+
export type WaitForApiKeyOptions = WaitForOptions & {
|
|
747
750
|
/**
|
|
748
751
|
* The API Key.
|
|
749
752
|
*/
|