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