@algolia/client-search 5.0.0-alpha.11 → 5.0.0-alpha.111
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 +88 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +106 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/{client-search.cjs.js → client-search.cjs} +2215 -1991
- package/dist/client-search.esm.browser.js +2403 -2242
- package/dist/client-search.esm.node.js +2216 -1990
- 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/apiKeyOperation.d.ts +2 -0
- package/dist/model/apiKeyOperation.d.ts.map +1 -0
- package/dist/model/aroundPrecision.d.ts +6 -0
- package/dist/model/aroundPrecision.d.ts.map +1 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts +14 -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 +4 -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 +71 -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 +114 -122
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +109 -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 +765 -714
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/condition.d.ts +20 -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 +25 -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 +5 -4
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +167 -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 +159 -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 +53 -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 +5 -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 +19 -21
- package/dist/model/searchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/model/searchForFacetValuesRequest.d.ts +14 -14
- package/dist/model/searchForFacetValuesRequest.d.ts.map +1 -1
- package/dist/model/searchForFacetValuesResponse.d.ts +15 -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 +15 -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 +27 -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/securedAPIKeyRestrictions.d.ts +25 -0
- package/dist/model/securedAPIKeyRestrictions.d.ts.map +1 -0
- 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/supportedLanguage.d.ts +5 -0
- package/dist/model/supportedLanguage.d.ts.map +1 -0
- 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 +4 -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 +866 -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/apiKeyOperation.ts +3 -0
- package/model/aroundPrecision.ts +8 -0
- package/model/aroundPrecisionFromValueInner.ts +16 -0
- package/model/aroundRadius.ts +2 -2
- package/model/aroundRadiusAll.ts +4 -1
- package/model/assignUserIdParams.ts +2 -2
- package/model/attributeToUpdate.ts +1 -1
- package/model/automaticFacetFilter.ts +5 -5
- package/model/automaticFacetFilters.ts +2 -2
- package/model/baseGetApiKeyResponse.ts +3 -3
- package/model/baseIndexSettings.ts +34 -17
- package/model/baseSearchParams.ts +1 -1
- package/model/baseSearchParamsWithoutQuery.ts +36 -46
- package/model/baseSearchResponse.ts +42 -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 +3 -3
- package/model/builtInOperationType.ts +2 -2
- package/model/clientMethodProps.ts +218 -156
- package/model/condition.ts +9 -4
- package/model/consequence.ts +7 -7
- package/model/consequenceHide.ts +3 -3
- package/model/consequenceParams.ts +1 -1
- package/model/consequenceQuery.ts +2 -2
- package/model/consequenceQueryObject.ts +3 -3
- 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 +8 -10
- package/model/dictionaryEntryState.ts +2 -2
- package/model/dictionaryLanguage.ts +4 -4
- package/model/dictionarySettingsParams.ts +2 -2
- package/model/dictionaryType.ts +1 -1
- package/model/distinct.ts +2 -2
- package/model/edit.ts +2 -2
- 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 +3 -3
- 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 +4 -4
- package/model/hit.ts +5 -5
- package/model/ignorePlurals.ts +5 -3
- package/model/index.ts +15 -2
- package/model/indexSettings.ts +2 -2
- package/model/indexSettingsAsSearchParams.ts +54 -54
- 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 +13 -13
- package/model/logQuery.ts +3 -3
- package/model/logType.ts +1 -1
- package/model/matchLevel.ts +2 -2
- 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 +11 -8
- 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 +5 -3
- 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 +8 -9
- package/model/searchDictionaryEntriesResponse.ts +25 -0
- package/model/searchForFacetValuesRequest.ts +3 -3
- package/model/searchForFacetValuesResponse.ts +14 -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 +15 -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 +8 -13
- package/model/searchRulesResponse.ts +3 -3
- 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/securedAPIKeyRestrictions.ts +32 -0
- package/model/semanticSearch.ts +11 -0
- package/model/snippetResult.ts +5 -2
- package/model/snippetResultOption.ts +3 -3
- package/model/sortRemainingBy.ts +2 -2
- package/model/source.ts +4 -4
- package/model/standardEntries.ts +5 -5
- package/model/supportedLanguage.ts +74 -0
- 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 +3 -3
- package/model/typoTolerance.ts +2 -2
- package/model/typoToleranceEnum.ts +4 -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 +3 -3
- package/model/userId.ts +4 -4
- package/model/value.ts +2 -2
- package/package.json +10 -9
- package/dist/model/synonymHitHighlightResult.d.ts +0 -12
- package/dist/model/synonymHitHighlightResult.d.ts.map +0 -1
- package/model/synonymHitHighlightResult.ts +0 -15
|
@@ -1,14 +1,18 @@
|
|
|
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
|
|
|
5
|
+
import type { Action } from './action';
|
|
5
6
|
import type { ApiKey } from './apiKey';
|
|
7
|
+
import type { ApiKeyOperation } from './apiKeyOperation';
|
|
6
8
|
import type { AssignUserIdParams } from './assignUserIdParams';
|
|
7
9
|
import type { AttributeToUpdate } from './attributeToUpdate';
|
|
8
10
|
import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
|
|
9
11
|
import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
|
|
12
|
+
import type { BatchResponse } from './batchResponse';
|
|
10
13
|
import type { BatchWriteParams } from './batchWriteParams';
|
|
11
14
|
import type { BrowseParams } from './browseParams';
|
|
15
|
+
import type { DeleteByParams } from './deleteByParams';
|
|
12
16
|
import type { DictionaryType } from './dictionaryType';
|
|
13
17
|
import type { IndexSettings } from './indexSettings';
|
|
14
18
|
import type { LogType } from './logType';
|
|
@@ -22,24 +26,25 @@ import type { SearchParams } from './searchParams';
|
|
|
22
26
|
import type { SearchParamsObject } from './searchParamsObject';
|
|
23
27
|
import type { SearchRulesParams } from './searchRulesParams';
|
|
24
28
|
import type { SearchSynonymsParams } from './searchSynonymsParams';
|
|
29
|
+
import type { SecuredAPIKeyRestrictions } from './securedAPIKeyRestrictions';
|
|
25
30
|
import type { Source } from './source';
|
|
26
31
|
import type { SynonymHit } from './synonymHit';
|
|
27
|
-
import type {
|
|
32
|
+
import type { UpdatedAtResponse } from './updatedAtResponse';
|
|
28
33
|
|
|
29
34
|
/**
|
|
30
35
|
* Properties for the `addOrUpdateObject` method.
|
|
31
36
|
*/
|
|
32
37
|
export type AddOrUpdateObjectProps = {
|
|
33
38
|
/**
|
|
34
|
-
*
|
|
39
|
+
* Name of the index on which to perform the operation.
|
|
35
40
|
*/
|
|
36
41
|
indexName: string;
|
|
37
42
|
/**
|
|
38
|
-
* Unique identifier
|
|
43
|
+
* Unique record identifier.
|
|
39
44
|
*/
|
|
40
45
|
objectID: string;
|
|
41
46
|
/**
|
|
42
|
-
* The
|
|
47
|
+
* The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
43
48
|
*/
|
|
44
49
|
body: Record<string, any>;
|
|
45
50
|
};
|
|
@@ -49,7 +54,7 @@ export type AddOrUpdateObjectProps = {
|
|
|
49
54
|
*/
|
|
50
55
|
export type AssignUserIdProps = {
|
|
51
56
|
/**
|
|
52
|
-
*
|
|
57
|
+
* Unique identifier of the user who makes the search request.
|
|
53
58
|
*/
|
|
54
59
|
xAlgoliaUserID: string;
|
|
55
60
|
assignUserIdParams: AssignUserIdParams;
|
|
@@ -60,7 +65,7 @@ export type AssignUserIdProps = {
|
|
|
60
65
|
*/
|
|
61
66
|
export type BatchProps = {
|
|
62
67
|
/**
|
|
63
|
-
*
|
|
68
|
+
* Name of the index on which to perform the operation.
|
|
64
69
|
*/
|
|
65
70
|
indexName: string;
|
|
66
71
|
batchWriteParams: BatchWriteParams;
|
|
@@ -71,7 +76,7 @@ export type BatchProps = {
|
|
|
71
76
|
*/
|
|
72
77
|
export type BatchAssignUserIdsProps = {
|
|
73
78
|
/**
|
|
74
|
-
*
|
|
79
|
+
* Unique identifier of the user who makes the search request.
|
|
75
80
|
*/
|
|
76
81
|
xAlgoliaUserID: string;
|
|
77
82
|
batchAssignUserIdsParams: BatchAssignUserIdsParams;
|
|
@@ -82,7 +87,7 @@ export type BatchAssignUserIdsProps = {
|
|
|
82
87
|
*/
|
|
83
88
|
export type BatchDictionaryEntriesProps = {
|
|
84
89
|
/**
|
|
85
|
-
*
|
|
90
|
+
* Dictionary type in which to search.
|
|
86
91
|
*/
|
|
87
92
|
dictionaryName: DictionaryType;
|
|
88
93
|
batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
|
|
@@ -93,70 +98,120 @@ export type BatchDictionaryEntriesProps = {
|
|
|
93
98
|
*/
|
|
94
99
|
export type BrowseProps = {
|
|
95
100
|
/**
|
|
96
|
-
*
|
|
101
|
+
* Name of the index on which to perform the operation.
|
|
97
102
|
*/
|
|
98
103
|
indexName: string;
|
|
99
104
|
browseParams?: BrowseParams;
|
|
100
105
|
};
|
|
101
106
|
|
|
102
107
|
/**
|
|
103
|
-
* Properties for the `
|
|
108
|
+
* Properties for the `clearObjects` method.
|
|
104
109
|
*/
|
|
105
|
-
export type
|
|
110
|
+
export type ClearObjectsProps = {
|
|
106
111
|
/**
|
|
107
|
-
*
|
|
112
|
+
* Name of the index on which to perform the operation.
|
|
108
113
|
*/
|
|
109
114
|
indexName: string;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Properties for the `clearRules` method.
|
|
119
|
+
*/
|
|
120
|
+
export type ClearRulesProps = {
|
|
110
121
|
/**
|
|
111
|
-
*
|
|
122
|
+
* Name of the index on which to perform the operation.
|
|
123
|
+
*/
|
|
124
|
+
indexName: string;
|
|
125
|
+
/**
|
|
126
|
+
* Whether changes are applied to replica indices.
|
|
112
127
|
*/
|
|
113
128
|
forwardToReplicas?: boolean;
|
|
114
129
|
};
|
|
115
130
|
|
|
116
131
|
/**
|
|
117
|
-
* Properties for the `
|
|
132
|
+
* Properties for the `clearSynonyms` method.
|
|
118
133
|
*/
|
|
119
|
-
export type
|
|
134
|
+
export type ClearSynonymsProps = {
|
|
120
135
|
/**
|
|
121
|
-
*
|
|
136
|
+
* Name of the index on which to perform the operation.
|
|
122
137
|
*/
|
|
123
138
|
indexName: string;
|
|
139
|
+
/**
|
|
140
|
+
* Whether changes are applied to replica indices.
|
|
141
|
+
*/
|
|
142
|
+
forwardToReplicas?: boolean;
|
|
124
143
|
};
|
|
125
144
|
|
|
126
145
|
/**
|
|
127
|
-
* Properties for the `
|
|
146
|
+
* Properties for the `customDelete` method.
|
|
128
147
|
*/
|
|
129
|
-
export type
|
|
148
|
+
export type CustomDeleteProps = {
|
|
130
149
|
/**
|
|
131
|
-
*
|
|
150
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
132
151
|
*/
|
|
133
|
-
|
|
152
|
+
path: string;
|
|
134
153
|
/**
|
|
135
|
-
*
|
|
154
|
+
* Query parameters to apply to the current query.
|
|
136
155
|
*/
|
|
137
|
-
|
|
156
|
+
parameters?: Record<string, any>;
|
|
138
157
|
};
|
|
139
158
|
|
|
140
159
|
/**
|
|
141
|
-
* Properties for the `
|
|
160
|
+
* Properties for the `customGet` method.
|
|
142
161
|
*/
|
|
143
|
-
export type
|
|
162
|
+
export type CustomGetProps = {
|
|
144
163
|
/**
|
|
145
|
-
*
|
|
164
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
146
165
|
*/
|
|
147
166
|
path: string;
|
|
148
167
|
/**
|
|
149
|
-
* Query parameters to
|
|
168
|
+
* Query parameters to apply to the current query.
|
|
150
169
|
*/
|
|
151
170
|
parameters?: Record<string, any>;
|
|
152
171
|
};
|
|
153
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Properties for the `customPost` method.
|
|
175
|
+
*/
|
|
176
|
+
export type CustomPostProps = {
|
|
177
|
+
/**
|
|
178
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
179
|
+
*/
|
|
180
|
+
path: string;
|
|
181
|
+
/**
|
|
182
|
+
* Query parameters to apply to the current query.
|
|
183
|
+
*/
|
|
184
|
+
parameters?: Record<string, any>;
|
|
185
|
+
/**
|
|
186
|
+
* Parameters to send with the custom request.
|
|
187
|
+
*/
|
|
188
|
+
body?: Record<string, any>;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Properties for the `customPut` method.
|
|
193
|
+
*/
|
|
194
|
+
export type CustomPutProps = {
|
|
195
|
+
/**
|
|
196
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
197
|
+
*/
|
|
198
|
+
path: string;
|
|
199
|
+
/**
|
|
200
|
+
* Query parameters to apply to the current query.
|
|
201
|
+
*/
|
|
202
|
+
parameters?: Record<string, any>;
|
|
203
|
+
/**
|
|
204
|
+
* Parameters to send with the custom request.
|
|
205
|
+
*/
|
|
206
|
+
body?: Record<string, any>;
|
|
207
|
+
};
|
|
208
|
+
|
|
154
209
|
/**
|
|
155
210
|
* Properties for the `deleteApiKey` method.
|
|
156
211
|
*/
|
|
157
212
|
export type DeleteApiKeyProps = {
|
|
158
213
|
/**
|
|
159
|
-
* API
|
|
214
|
+
* API key.
|
|
160
215
|
*/
|
|
161
216
|
key: string;
|
|
162
217
|
};
|
|
@@ -166,10 +221,10 @@ export type DeleteApiKeyProps = {
|
|
|
166
221
|
*/
|
|
167
222
|
export type DeleteByProps = {
|
|
168
223
|
/**
|
|
169
|
-
*
|
|
224
|
+
* Name of the index on which to perform the operation.
|
|
170
225
|
*/
|
|
171
226
|
indexName: string;
|
|
172
|
-
|
|
227
|
+
deleteByParams: DeleteByParams;
|
|
173
228
|
};
|
|
174
229
|
|
|
175
230
|
/**
|
|
@@ -177,7 +232,7 @@ export type DeleteByProps = {
|
|
|
177
232
|
*/
|
|
178
233
|
export type DeleteIndexProps = {
|
|
179
234
|
/**
|
|
180
|
-
*
|
|
235
|
+
* Name of the index on which to perform the operation.
|
|
181
236
|
*/
|
|
182
237
|
indexName: string;
|
|
183
238
|
};
|
|
@@ -187,11 +242,11 @@ export type DeleteIndexProps = {
|
|
|
187
242
|
*/
|
|
188
243
|
export type DeleteObjectProps = {
|
|
189
244
|
/**
|
|
190
|
-
*
|
|
245
|
+
* Name of the index on which to perform the operation.
|
|
191
246
|
*/
|
|
192
247
|
indexName: string;
|
|
193
248
|
/**
|
|
194
|
-
* Unique identifier
|
|
249
|
+
* Unique record identifier.
|
|
195
250
|
*/
|
|
196
251
|
objectID: string;
|
|
197
252
|
};
|
|
@@ -201,15 +256,15 @@ export type DeleteObjectProps = {
|
|
|
201
256
|
*/
|
|
202
257
|
export type DeleteRuleProps = {
|
|
203
258
|
/**
|
|
204
|
-
*
|
|
259
|
+
* Name of the index on which to perform the operation.
|
|
205
260
|
*/
|
|
206
261
|
indexName: string;
|
|
207
262
|
/**
|
|
208
|
-
* Unique identifier of
|
|
263
|
+
* Unique identifier of a rule object.
|
|
209
264
|
*/
|
|
210
265
|
objectID: string;
|
|
211
266
|
/**
|
|
212
|
-
*
|
|
267
|
+
* Whether changes are applied to replica indices.
|
|
213
268
|
*/
|
|
214
269
|
forwardToReplicas?: boolean;
|
|
215
270
|
};
|
|
@@ -219,7 +274,7 @@ export type DeleteRuleProps = {
|
|
|
219
274
|
*/
|
|
220
275
|
export type DeleteSourceProps = {
|
|
221
276
|
/**
|
|
222
|
-
*
|
|
277
|
+
* IP address range of the source.
|
|
223
278
|
*/
|
|
224
279
|
source: string;
|
|
225
280
|
};
|
|
@@ -229,39 +284,25 @@ export type DeleteSourceProps = {
|
|
|
229
284
|
*/
|
|
230
285
|
export type DeleteSynonymProps = {
|
|
231
286
|
/**
|
|
232
|
-
*
|
|
287
|
+
* Name of the index on which to perform the operation.
|
|
233
288
|
*/
|
|
234
289
|
indexName: string;
|
|
235
290
|
/**
|
|
236
|
-
* Unique identifier of
|
|
291
|
+
* Unique identifier of a synonym object.
|
|
237
292
|
*/
|
|
238
293
|
objectID: string;
|
|
239
294
|
/**
|
|
240
|
-
*
|
|
295
|
+
* Whether changes are applied to replica indices.
|
|
241
296
|
*/
|
|
242
297
|
forwardToReplicas?: boolean;
|
|
243
298
|
};
|
|
244
299
|
|
|
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
300
|
/**
|
|
260
301
|
* Properties for the `getApiKey` method.
|
|
261
302
|
*/
|
|
262
303
|
export type GetApiKeyProps = {
|
|
263
304
|
/**
|
|
264
|
-
* API
|
|
305
|
+
* API key.
|
|
265
306
|
*/
|
|
266
307
|
key: string;
|
|
267
308
|
};
|
|
@@ -271,19 +312,19 @@ export type GetApiKeyProps = {
|
|
|
271
312
|
*/
|
|
272
313
|
export type GetLogsProps = {
|
|
273
314
|
/**
|
|
274
|
-
* First entry to retrieve
|
|
315
|
+
* First log entry to retrieve. The most recent entries are listed first.
|
|
275
316
|
*/
|
|
276
317
|
offset?: number;
|
|
277
318
|
/**
|
|
278
|
-
* Maximum number of entries to retrieve.
|
|
319
|
+
* Maximum number of entries to retrieve.
|
|
279
320
|
*/
|
|
280
321
|
length?: number;
|
|
281
322
|
/**
|
|
282
|
-
* Index for which log entries
|
|
323
|
+
* Index for which to retrieve log entries. By default, log entries are retrieved for all indices.
|
|
283
324
|
*/
|
|
284
325
|
indexName?: string;
|
|
285
326
|
/**
|
|
286
|
-
* Type of log entries to retrieve.
|
|
327
|
+
* Type of log entries to retrieve. By default, all log entries are retrieved.
|
|
287
328
|
*/
|
|
288
329
|
type?: LogType;
|
|
289
330
|
};
|
|
@@ -293,15 +334,15 @@ export type GetLogsProps = {
|
|
|
293
334
|
*/
|
|
294
335
|
export type GetObjectProps = {
|
|
295
336
|
/**
|
|
296
|
-
*
|
|
337
|
+
* Name of the index on which to perform the operation.
|
|
297
338
|
*/
|
|
298
339
|
indexName: string;
|
|
299
340
|
/**
|
|
300
|
-
* Unique identifier
|
|
341
|
+
* Unique record identifier.
|
|
301
342
|
*/
|
|
302
343
|
objectID: string;
|
|
303
344
|
/**
|
|
304
|
-
*
|
|
345
|
+
* 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. Attributes included in `unretrievableAttributes` won\'t be retrieved unless the request is authenticated with the admin API key.
|
|
305
346
|
*/
|
|
306
347
|
attributesToRetrieve?: string[];
|
|
307
348
|
};
|
|
@@ -311,11 +352,11 @@ export type GetObjectProps = {
|
|
|
311
352
|
*/
|
|
312
353
|
export type GetRuleProps = {
|
|
313
354
|
/**
|
|
314
|
-
*
|
|
355
|
+
* Name of the index on which to perform the operation.
|
|
315
356
|
*/
|
|
316
357
|
indexName: string;
|
|
317
358
|
/**
|
|
318
|
-
* Unique identifier of
|
|
359
|
+
* Unique identifier of a rule object.
|
|
319
360
|
*/
|
|
320
361
|
objectID: string;
|
|
321
362
|
};
|
|
@@ -325,7 +366,7 @@ export type GetRuleProps = {
|
|
|
325
366
|
*/
|
|
326
367
|
export type GetSettingsProps = {
|
|
327
368
|
/**
|
|
328
|
-
*
|
|
369
|
+
* Name of the index on which to perform the operation.
|
|
329
370
|
*/
|
|
330
371
|
indexName: string;
|
|
331
372
|
};
|
|
@@ -335,11 +376,11 @@ export type GetSettingsProps = {
|
|
|
335
376
|
*/
|
|
336
377
|
export type GetSynonymProps = {
|
|
337
378
|
/**
|
|
338
|
-
*
|
|
379
|
+
* Name of the index on which to perform the operation.
|
|
339
380
|
*/
|
|
340
381
|
indexName: string;
|
|
341
382
|
/**
|
|
342
|
-
* Unique identifier of
|
|
383
|
+
* Unique identifier of a synonym object.
|
|
343
384
|
*/
|
|
344
385
|
objectID: string;
|
|
345
386
|
};
|
|
@@ -349,11 +390,11 @@ export type GetSynonymProps = {
|
|
|
349
390
|
*/
|
|
350
391
|
export type GetTaskProps = {
|
|
351
392
|
/**
|
|
352
|
-
*
|
|
393
|
+
* Name of the index on which to perform the operation.
|
|
353
394
|
*/
|
|
354
395
|
indexName: string;
|
|
355
396
|
/**
|
|
356
|
-
* Unique
|
|
397
|
+
* Unique task identifier.
|
|
357
398
|
*/
|
|
358
399
|
taskID: number;
|
|
359
400
|
};
|
|
@@ -363,7 +404,7 @@ export type GetTaskProps = {
|
|
|
363
404
|
*/
|
|
364
405
|
export type GetUserIdProps = {
|
|
365
406
|
/**
|
|
366
|
-
*
|
|
407
|
+
* Unique identifier of the user who makes the search request.
|
|
367
408
|
*/
|
|
368
409
|
userID: string;
|
|
369
410
|
};
|
|
@@ -373,7 +414,7 @@ export type GetUserIdProps = {
|
|
|
373
414
|
*/
|
|
374
415
|
export type HasPendingMappingsProps = {
|
|
375
416
|
/**
|
|
376
|
-
*
|
|
417
|
+
* Whether to include the cluster\'s pending mapping state in the response.
|
|
377
418
|
*/
|
|
378
419
|
getClusters?: boolean;
|
|
379
420
|
};
|
|
@@ -383,9 +424,13 @@ export type HasPendingMappingsProps = {
|
|
|
383
424
|
*/
|
|
384
425
|
export type ListIndicesProps = {
|
|
385
426
|
/**
|
|
386
|
-
* Requested page
|
|
427
|
+
* Requested page of the API response. If `null`, the API response is not paginated.
|
|
387
428
|
*/
|
|
388
429
|
page?: number;
|
|
430
|
+
/**
|
|
431
|
+
* Number of hits per page.
|
|
432
|
+
*/
|
|
433
|
+
hitsPerPage?: number;
|
|
389
434
|
};
|
|
390
435
|
|
|
391
436
|
/**
|
|
@@ -393,11 +438,11 @@ export type ListIndicesProps = {
|
|
|
393
438
|
*/
|
|
394
439
|
export type ListUserIdsProps = {
|
|
395
440
|
/**
|
|
396
|
-
* Requested page
|
|
441
|
+
* Requested page of the API response. If `null`, the API response is not paginated.
|
|
397
442
|
*/
|
|
398
443
|
page?: number;
|
|
399
444
|
/**
|
|
400
|
-
*
|
|
445
|
+
* Number of hits per page.
|
|
401
446
|
*/
|
|
402
447
|
hitsPerPage?: number;
|
|
403
448
|
};
|
|
@@ -407,7 +452,7 @@ export type ListUserIdsProps = {
|
|
|
407
452
|
*/
|
|
408
453
|
export type OperationIndexProps = {
|
|
409
454
|
/**
|
|
410
|
-
*
|
|
455
|
+
* Name of the index on which to perform the operation.
|
|
411
456
|
*/
|
|
412
457
|
indexName: string;
|
|
413
458
|
operationIndexParams: OperationIndexParams;
|
|
@@ -418,65 +463,29 @@ export type OperationIndexProps = {
|
|
|
418
463
|
*/
|
|
419
464
|
export type PartialUpdateObjectProps = {
|
|
420
465
|
/**
|
|
421
|
-
*
|
|
466
|
+
* Name of the index on which to perform the operation.
|
|
422
467
|
*/
|
|
423
468
|
indexName: string;
|
|
424
469
|
/**
|
|
425
|
-
* Unique identifier
|
|
470
|
+
* Unique record identifier.
|
|
426
471
|
*/
|
|
427
472
|
objectID: string;
|
|
428
473
|
/**
|
|
429
|
-
*
|
|
474
|
+
* Attributes with their values.
|
|
430
475
|
*/
|
|
431
476
|
attributesToUpdate: Record<string, AttributeToUpdate>;
|
|
432
477
|
/**
|
|
433
|
-
*
|
|
478
|
+
* Whether to create a new record if it doesn\'t exist.
|
|
434
479
|
*/
|
|
435
480
|
createIfNotExists?: boolean;
|
|
436
481
|
};
|
|
437
482
|
|
|
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
483
|
/**
|
|
475
484
|
* Properties for the `removeUserId` method.
|
|
476
485
|
*/
|
|
477
486
|
export type RemoveUserIdProps = {
|
|
478
487
|
/**
|
|
479
|
-
*
|
|
488
|
+
* Unique identifier of the user who makes the search request.
|
|
480
489
|
*/
|
|
481
490
|
userID: string;
|
|
482
491
|
};
|
|
@@ -486,7 +495,7 @@ export type RemoveUserIdProps = {
|
|
|
486
495
|
*/
|
|
487
496
|
export type ReplaceSourcesProps = {
|
|
488
497
|
/**
|
|
489
|
-
*
|
|
498
|
+
* Allowed sources.
|
|
490
499
|
*/
|
|
491
500
|
source: Source[];
|
|
492
501
|
};
|
|
@@ -496,7 +505,7 @@ export type ReplaceSourcesProps = {
|
|
|
496
505
|
*/
|
|
497
506
|
export type RestoreApiKeyProps = {
|
|
498
507
|
/**
|
|
499
|
-
* API
|
|
508
|
+
* API key.
|
|
500
509
|
*/
|
|
501
510
|
key: string;
|
|
502
511
|
};
|
|
@@ -506,11 +515,11 @@ export type RestoreApiKeyProps = {
|
|
|
506
515
|
*/
|
|
507
516
|
export type SaveObjectProps = {
|
|
508
517
|
/**
|
|
509
|
-
*
|
|
518
|
+
* Name of the index on which to perform the operation.
|
|
510
519
|
*/
|
|
511
520
|
indexName: string;
|
|
512
521
|
/**
|
|
513
|
-
* The
|
|
522
|
+
* The record, a schemaless object with attributes that are useful in the context of search and discovery.
|
|
514
523
|
*/
|
|
515
524
|
body: Record<string, any>;
|
|
516
525
|
};
|
|
@@ -520,16 +529,16 @@ export type SaveObjectProps = {
|
|
|
520
529
|
*/
|
|
521
530
|
export type SaveRuleProps = {
|
|
522
531
|
/**
|
|
523
|
-
*
|
|
532
|
+
* Name of the index on which to perform the operation.
|
|
524
533
|
*/
|
|
525
534
|
indexName: string;
|
|
526
535
|
/**
|
|
527
|
-
* Unique identifier of
|
|
536
|
+
* Unique identifier of a rule object.
|
|
528
537
|
*/
|
|
529
538
|
objectID: string;
|
|
530
539
|
rule: Rule;
|
|
531
540
|
/**
|
|
532
|
-
*
|
|
541
|
+
* Whether changes are applied to replica indices.
|
|
533
542
|
*/
|
|
534
543
|
forwardToReplicas?: boolean;
|
|
535
544
|
};
|
|
@@ -539,16 +548,16 @@ export type SaveRuleProps = {
|
|
|
539
548
|
*/
|
|
540
549
|
export type SaveRulesProps = {
|
|
541
550
|
/**
|
|
542
|
-
*
|
|
551
|
+
* Name of the index on which to perform the operation.
|
|
543
552
|
*/
|
|
544
553
|
indexName: string;
|
|
545
554
|
rules: Rule[];
|
|
546
555
|
/**
|
|
547
|
-
*
|
|
556
|
+
* Whether changes are applied to replica indices.
|
|
548
557
|
*/
|
|
549
558
|
forwardToReplicas?: boolean;
|
|
550
559
|
/**
|
|
551
|
-
*
|
|
560
|
+
* Whether existing rules should be deleted before adding this batch.
|
|
552
561
|
*/
|
|
553
562
|
clearExistingRules?: boolean;
|
|
554
563
|
};
|
|
@@ -558,16 +567,16 @@ export type SaveRulesProps = {
|
|
|
558
567
|
*/
|
|
559
568
|
export type SaveSynonymProps = {
|
|
560
569
|
/**
|
|
561
|
-
*
|
|
570
|
+
* Name of the index on which to perform the operation.
|
|
562
571
|
*/
|
|
563
572
|
indexName: string;
|
|
564
573
|
/**
|
|
565
|
-
* Unique identifier of
|
|
574
|
+
* Unique identifier of a synonym object.
|
|
566
575
|
*/
|
|
567
576
|
objectID: string;
|
|
568
577
|
synonymHit: SynonymHit;
|
|
569
578
|
/**
|
|
570
|
-
*
|
|
579
|
+
* Whether changes are applied to replica indices.
|
|
571
580
|
*/
|
|
572
581
|
forwardToReplicas?: boolean;
|
|
573
582
|
};
|
|
@@ -577,16 +586,16 @@ export type SaveSynonymProps = {
|
|
|
577
586
|
*/
|
|
578
587
|
export type SaveSynonymsProps = {
|
|
579
588
|
/**
|
|
580
|
-
*
|
|
589
|
+
* Name of the index on which to perform the operation.
|
|
581
590
|
*/
|
|
582
591
|
indexName: string;
|
|
583
592
|
synonymHit: SynonymHit[];
|
|
584
593
|
/**
|
|
585
|
-
*
|
|
594
|
+
* Whether changes are applied to replica indices.
|
|
586
595
|
*/
|
|
587
596
|
forwardToReplicas?: boolean;
|
|
588
597
|
/**
|
|
589
|
-
*
|
|
598
|
+
* Whether to replace all synonyms in the index with the ones sent with this request.
|
|
590
599
|
*/
|
|
591
600
|
replaceExistingSynonyms?: boolean;
|
|
592
601
|
};
|
|
@@ -628,7 +637,7 @@ export type LegacySearchMethodProps = LegacySearchQuery[];
|
|
|
628
637
|
*/
|
|
629
638
|
export type SearchDictionaryEntriesProps = {
|
|
630
639
|
/**
|
|
631
|
-
*
|
|
640
|
+
* Dictionary type in which to search.
|
|
632
641
|
*/
|
|
633
642
|
dictionaryName: DictionaryType;
|
|
634
643
|
searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
|
|
@@ -639,11 +648,11 @@ export type SearchDictionaryEntriesProps = {
|
|
|
639
648
|
*/
|
|
640
649
|
export type SearchForFacetValuesProps = {
|
|
641
650
|
/**
|
|
642
|
-
*
|
|
651
|
+
* Name of the index on which to perform the operation.
|
|
643
652
|
*/
|
|
644
653
|
indexName: string;
|
|
645
654
|
/**
|
|
646
|
-
*
|
|
655
|
+
* Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier.
|
|
647
656
|
*/
|
|
648
657
|
facetName: string;
|
|
649
658
|
searchForFacetValuesRequest?: SearchForFacetValuesRequest;
|
|
@@ -654,7 +663,7 @@ export type SearchForFacetValuesProps = {
|
|
|
654
663
|
*/
|
|
655
664
|
export type SearchRulesProps = {
|
|
656
665
|
/**
|
|
657
|
-
*
|
|
666
|
+
* Name of the index on which to perform the operation.
|
|
658
667
|
*/
|
|
659
668
|
indexName: string;
|
|
660
669
|
searchRulesParams?: SearchRulesParams;
|
|
@@ -665,7 +674,7 @@ export type SearchRulesProps = {
|
|
|
665
674
|
*/
|
|
666
675
|
export type SearchSingleIndexProps = {
|
|
667
676
|
/**
|
|
668
|
-
*
|
|
677
|
+
* Name of the index on which to perform the operation.
|
|
669
678
|
*/
|
|
670
679
|
indexName: string;
|
|
671
680
|
searchParams?: SearchParams;
|
|
@@ -676,23 +685,11 @@ export type SearchSingleIndexProps = {
|
|
|
676
685
|
*/
|
|
677
686
|
export type SearchSynonymsProps = {
|
|
678
687
|
/**
|
|
679
|
-
*
|
|
688
|
+
* Name of the index on which to perform the operation.
|
|
680
689
|
*/
|
|
681
690
|
indexName: string;
|
|
682
691
|
/**
|
|
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.
|
|
692
|
+
* Body of the `searchSynonyms` operation.
|
|
696
693
|
*/
|
|
697
694
|
searchSynonymsParams?: SearchSynonymsParams;
|
|
698
695
|
};
|
|
@@ -702,12 +699,12 @@ export type SearchSynonymsProps = {
|
|
|
702
699
|
*/
|
|
703
700
|
export type SetSettingsProps = {
|
|
704
701
|
/**
|
|
705
|
-
*
|
|
702
|
+
* Name of the index on which to perform the operation.
|
|
706
703
|
*/
|
|
707
704
|
indexName: string;
|
|
708
705
|
indexSettings: IndexSettings;
|
|
709
706
|
/**
|
|
710
|
-
*
|
|
707
|
+
* Whether changes are applied to replica indices.
|
|
711
708
|
*/
|
|
712
709
|
forwardToReplicas?: boolean;
|
|
713
710
|
};
|
|
@@ -717,7 +714,7 @@ export type SetSettingsProps = {
|
|
|
717
714
|
*/
|
|
718
715
|
export type UpdateApiKeyProps = {
|
|
719
716
|
/**
|
|
720
|
-
* API
|
|
717
|
+
* API key.
|
|
721
718
|
*/
|
|
722
719
|
key: string;
|
|
723
720
|
apiKey: ApiKey;
|
|
@@ -764,17 +761,82 @@ export type WaitForApiKeyOptions = WaitForOptions & {
|
|
|
764
761
|
/**
|
|
765
762
|
* The operation that has been performed, used to compute the stop condition.
|
|
766
763
|
*/
|
|
767
|
-
operation: 'add' | 'delete'
|
|
764
|
+
operation: Extract<ApiKeyOperation, 'add' | 'delete'>;
|
|
768
765
|
apiKey?: never;
|
|
769
766
|
}
|
|
770
767
|
| {
|
|
771
768
|
/**
|
|
772
769
|
* The operation that has been performed, used to compute the stop condition.
|
|
773
770
|
*/
|
|
774
|
-
operation: 'update'
|
|
771
|
+
operation: Extract<ApiKeyOperation, 'update'>;
|
|
775
772
|
/**
|
|
776
773
|
* The updated fields, used to compute the stop condition.
|
|
777
774
|
*/
|
|
778
775
|
apiKey: Partial<ApiKey>;
|
|
779
776
|
}
|
|
780
777
|
);
|
|
778
|
+
|
|
779
|
+
export type GenerateSecuredApiKeyOptions = {
|
|
780
|
+
/**
|
|
781
|
+
* The base API key from which to generate the new secured one.
|
|
782
|
+
*/
|
|
783
|
+
parentApiKey: string;
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* A set of properties defining the restrictions of the secured API key.
|
|
787
|
+
*/
|
|
788
|
+
restrictions?: SecuredAPIKeyRestrictions;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
export type GetSecuredApiKeyRemainingValidityOptions = {
|
|
792
|
+
/**
|
|
793
|
+
* The secured API key generated with the `generateSecuredApiKey` method.
|
|
794
|
+
*/
|
|
795
|
+
securedApiKey: string;
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
export type ChunkedBatchOptions = ReplaceAllObjectsOptions & {
|
|
799
|
+
/**
|
|
800
|
+
* The `batch` `action` to perform on the given array of `objects`, defaults to `addObject`.
|
|
801
|
+
*/
|
|
802
|
+
action?: Action;
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
|
|
806
|
+
*/
|
|
807
|
+
waitForTasks?: boolean;
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
export type ReplaceAllObjectsOptions = {
|
|
811
|
+
/**
|
|
812
|
+
* The `indexName` to replace `objects` in.
|
|
813
|
+
*/
|
|
814
|
+
indexName: string;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* The array of `objects` to store in the given Algolia `indexName`.
|
|
818
|
+
*/
|
|
819
|
+
objects: Array<Record<string, any>>;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
|
|
823
|
+
*/
|
|
824
|
+
batchSize?: number;
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
export type ReplaceAllObjectsResponse = {
|
|
828
|
+
/**
|
|
829
|
+
* The response of the `operationIndex` request for the `copy` operation.
|
|
830
|
+
*/
|
|
831
|
+
copyOperationResponse: UpdatedAtResponse;
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* The response of the `batch` request(s).
|
|
835
|
+
*/
|
|
836
|
+
batchResponses: BatchResponse[];
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* The response of the `operationIndex` request for the `move` operation.
|
|
840
|
+
*/
|
|
841
|
+
moveOperationResponse: UpdatedAtResponse;
|
|
842
|
+
};
|