algoliasearch 5.0.0-alpha.1 → 5.0.0-alpha.4
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/builds/browser.ts +13 -10
- package/builds/models.ts +12 -6
- package/builds/node.ts +13 -10
- package/dist/algoliasearch/builds/browser.d.ts +23 -14
- package/dist/algoliasearch/builds/browser.d.ts.map +1 -1
- package/dist/algoliasearch/builds/node.d.ts +23 -14
- package/dist/algoliasearch/builds/node.d.ts.map +1 -1
- package/dist/algoliasearch/lite/builds/browser.d.ts +2 -2
- package/dist/algoliasearch/lite/builds/browser.d.ts.map +1 -1
- package/dist/algoliasearch/lite/builds/node.d.ts +2 -2
- package/dist/algoliasearch/lite/builds/node.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/acl.d.ts +3 -0
- package/dist/algoliasearch/lite/model/acl.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/addApiKeyResponse.d.ts +1 -1
- package/dist/algoliasearch/lite/model/addApiKeyResponse.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/apiKey.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/attributeToUpdate.d.ts +3 -0
- package/dist/algoliasearch/lite/model/attributeToUpdate.d.ts.map +1 -0
- package/dist/algoliasearch/lite/model/automaticFacetFilter.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/baseGetApiKeyResponse.d.ts +11 -0
- package/dist/algoliasearch/lite/model/baseGetApiKeyResponse.d.ts.map +1 -0
- package/dist/algoliasearch/lite/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/baseSearchResponse.d.ts +2 -2
- package/dist/algoliasearch/lite/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/browseResponse.d.ts +1 -1
- package/dist/algoliasearch/lite/model/browseResponse.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/builtInOperation.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/condition.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/consequence.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/consequenceQueryObject.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/distinct.d.ts +5 -0
- package/dist/algoliasearch/lite/model/distinct.d.ts.map +1 -0
- package/dist/algoliasearch/lite/model/edit.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/facetOrdering.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/facetsStats.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/fetchedIndex.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/getApiKeyResponse.d.ts +4 -0
- package/dist/algoliasearch/lite/model/getApiKeyResponse.d.ts.map +1 -0
- package/dist/algoliasearch/lite/model/highlightResultOption.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/hit.d.ts +1 -1
- package/dist/algoliasearch/lite/model/hit.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/index.d.ts +4 -3
- package/dist/algoliasearch/lite/model/index.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/indexSettingsAsSearchParams.d.ts +2 -4
- package/dist/algoliasearch/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/languages.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/listIndicesResponse.d.ts +1 -1
- package/dist/algoliasearch/lite/model/listIndicesResponse.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/params.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/personalization.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/promoteObjectID.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/promoteObjectIDs.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/rankingInfo.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/rule.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/searchForFacetsOptions.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/searchForHitsOptions.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/searchHits.d.ts +2 -2
- package/dist/algoliasearch/lite/model/searchHits.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/searchMethodParams.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/searchResponse.d.ts +1 -1
- package/dist/algoliasearch/lite/model/searchResponse.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/searchResponses.d.ts +1 -1
- package/dist/algoliasearch/lite/model/searchResponses.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/searchSynonymsResponse.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/snippetResultOption.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/source.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/standardEntries.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/synonymHit.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/synonymHitHighlightResult.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/timeRange.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/updatedRuleResponse.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/userId.d.ts.map +1 -1
- package/dist/algoliasearch/lite/model/value.d.ts.map +1 -1
- package/dist/algoliasearch/lite/src/liteClient.d.ts +12 -1
- package/dist/algoliasearch/lite/src/liteClient.d.ts.map +1 -1
- package/dist/algoliasearch.cjs.js +186 -28
- package/dist/algoliasearch.esm.browser.js +214 -56
- package/dist/algoliasearch.esm.node.js +187 -29
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/builds/browser.d.ts +23 -14
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/models.d.ts +11 -8
- package/dist/builds/models.d.ts.map +1 -1
- package/dist/builds/node.d.ts +23 -14
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
- package/dist/client-abtesting/model/aBTestResponse.d.ts.map +1 -1
- package/dist/client-abtesting/model/abTestsVariant.d.ts.map +1 -1
- package/dist/client-abtesting/model/addABTestsRequest.d.ts.map +1 -1
- package/dist/client-abtesting/model/listABTestsResponse.d.ts.map +1 -1
- package/dist/client-abtesting/model/variant.d.ts.map +1 -1
- package/dist/client-abtesting/src/abtestingClient.d.ts +12 -1
- package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
- package/dist/client-analytics/model/averageClickEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/clickPosition.d.ts.map +1 -1
- package/dist/client-analytics/model/clickThroughRateEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/conversionRateEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getClickThroughRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getConversationRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getNoClickRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getNoResultsRateResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getSearchesCountResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFilterAttribute.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFilterForAttribute.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
- package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
- package/dist/client-analytics/model/getUsersCountResponse.d.ts.map +1 -1
- package/dist/client-analytics/model/noClickRateEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/noResultsRateEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/searchEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/searchNoClickEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/searchNoResultEvent.d.ts.map +1 -1
- package/dist/client-analytics/model/topCountry.d.ts.map +1 -1
- package/dist/client-analytics/model/topHit.d.ts.map +1 -1
- package/dist/client-analytics/model/topHitWithAnalytics.d.ts.map +1 -1
- package/dist/client-analytics/model/topSearch.d.ts.map +1 -1
- package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
- package/dist/client-analytics/model/userWithDate.d.ts.map +1 -1
- package/dist/client-analytics/src/analyticsClient.d.ts +12 -1
- package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
- package/dist/client-personalization/model/deleteUserProfileResponse.d.ts.map +1 -1
- package/dist/client-personalization/model/eventScoring.d.ts.map +1 -1
- package/dist/client-personalization/model/facetScoring.d.ts.map +1 -1
- package/dist/client-personalization/model/getUserTokenResponse.d.ts.map +1 -1
- package/dist/client-personalization/model/personalizationStrategyParams.d.ts.map +1 -1
- package/dist/client-personalization/src/personalizationClient.d.ts +12 -1
- package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
- package/dist/client-search/model/acl.d.ts +3 -0
- package/dist/client-search/model/acl.d.ts.map +1 -1
- package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
- package/dist/client-search/model/addApiKeyResponse.d.ts.map +1 -1
- package/dist/client-search/model/apiKey.d.ts.map +1 -1
- package/dist/client-search/model/attributeToUpdate.d.ts +3 -0
- package/dist/client-search/model/attributeToUpdate.d.ts.map +1 -0
- package/dist/client-search/model/automaticFacetFilter.d.ts.map +1 -1
- package/dist/client-search/model/baseGetApiKeyResponse.d.ts +11 -0
- package/dist/client-search/model/baseGetApiKeyResponse.d.ts.map +1 -0
- package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/client-search/model/baseSearchResponse.d.ts +2 -2
- package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/client-search/model/batchAssignUserIdsParams.d.ts.map +1 -1
- package/dist/client-search/model/batchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
- package/dist/client-search/model/batchParams.d.ts +2 -2
- package/dist/client-search/model/batchParams.d.ts.map +1 -1
- package/dist/client-search/model/{batchOperation.d.ts → batchRequest.d.ts} +2 -2
- package/dist/client-search/model/batchRequest.d.ts.map +1 -0
- package/dist/client-search/model/batchResponse.d.ts.map +1 -1
- package/dist/client-search/model/batchWriteParams.d.ts +2 -2
- package/dist/client-search/model/batchWriteParams.d.ts.map +1 -1
- package/dist/client-search/model/browseRequest.d.ts.map +1 -1
- package/dist/client-search/model/browseResponse.d.ts +1 -1
- package/dist/client-search/model/browseResponse.d.ts.map +1 -1
- package/dist/client-search/model/builtInOperation.d.ts.map +1 -1
- package/dist/client-search/model/clientMethodProps.d.ts +21 -8
- package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
- package/dist/client-search/model/condition.d.ts.map +1 -1
- package/dist/client-search/model/consequence.d.ts.map +1 -1
- package/dist/client-search/model/consequenceQueryObject.d.ts.map +1 -1
- package/dist/client-search/model/deletedAtResponse.d.ts.map +1 -1
- package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/client-search/model/distinct.d.ts +5 -0
- package/dist/client-search/model/distinct.d.ts.map +1 -0
- package/dist/client-search/model/edit.d.ts.map +1 -1
- package/dist/client-search/model/facetHits.d.ts.map +1 -1
- package/dist/client-search/model/facetOrdering.d.ts.map +1 -1
- package/dist/client-search/model/facetsStats.d.ts.map +1 -1
- package/dist/client-search/model/fetchedIndex.d.ts.map +1 -1
- package/dist/client-search/model/getApiKeyResponse.d.ts +4 -0
- package/dist/client-search/model/getApiKeyResponse.d.ts.map +1 -0
- package/dist/client-search/model/getObjectsParams.d.ts +2 -2
- package/dist/client-search/model/getObjectsParams.d.ts.map +1 -1
- package/dist/client-search/model/{multipleGetObjectsParams.d.ts → getObjectsRequest.d.ts} +2 -2
- package/dist/client-search/model/getObjectsRequest.d.ts.map +1 -0
- package/dist/client-search/model/getObjectsResponse.d.ts +2 -2
- package/dist/client-search/model/getObjectsResponse.d.ts.map +1 -1
- package/dist/client-search/model/hasPendingMappingsResponse.d.ts.map +1 -1
- package/dist/client-search/model/highlightResultOption.d.ts.map +1 -1
- package/dist/client-search/model/hit.d.ts +1 -1
- package/dist/client-search/model/hit.d.ts.map +1 -1
- package/dist/client-search/model/index.d.ts +7 -6
- package/dist/client-search/model/index.d.ts.map +1 -1
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +2 -4
- package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/client-search/model/languages.d.ts.map +1 -1
- package/dist/client-search/model/listApiKeysResponse.d.ts +2 -2
- package/dist/client-search/model/listApiKeysResponse.d.ts.map +1 -1
- package/dist/client-search/model/listIndicesResponse.d.ts +1 -1
- package/dist/client-search/model/listIndicesResponse.d.ts.map +1 -1
- package/dist/client-search/model/log.d.ts.map +1 -1
- package/dist/client-search/model/logQuery.d.ts.map +1 -1
- package/dist/client-search/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/client-search/model/{multipleBatchOperation.d.ts → multipleBatchRequest.d.ts} +5 -5
- package/dist/client-search/model/multipleBatchRequest.d.ts.map +1 -0
- package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
- package/dist/client-search/model/multipleBatchResponse.d.ts.map +1 -1
- package/dist/client-search/model/operationIndexParams.d.ts.map +1 -1
- package/dist/client-search/model/params.d.ts.map +1 -1
- package/dist/client-search/model/personalization.d.ts.map +1 -1
- package/dist/client-search/model/promoteObjectID.d.ts.map +1 -1
- package/dist/client-search/model/promoteObjectIDs.d.ts.map +1 -1
- package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
- package/dist/client-search/model/rule.d.ts.map +1 -1
- package/dist/client-search/model/saveObjectResponse.d.ts +2 -2
- package/dist/client-search/model/saveObjectResponse.d.ts.map +1 -1
- package/dist/client-search/model/saveSynonymResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchForFacetValuesRequest.d.ts.map +1 -1
- package/dist/client-search/model/searchForFacetsOptions.d.ts.map +1 -1
- package/dist/client-search/model/searchForHitsOptions.d.ts.map +1 -1
- package/dist/client-search/model/searchHits.d.ts +2 -2
- package/dist/client-search/model/searchHits.d.ts.map +1 -1
- package/dist/client-search/model/searchMethodParams.d.ts.map +1 -1
- package/dist/client-search/model/searchResponse.d.ts +1 -1
- package/dist/client-search/model/searchResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchResponses.d.ts +1 -1
- package/dist/client-search/model/searchResponses.d.ts.map +1 -1
- package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
- package/dist/client-search/model/searchRulesResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchSynonymsResponse.d.ts.map +1 -1
- package/dist/client-search/model/searchUserIdsParams.d.ts.map +1 -1
- package/dist/client-search/model/searchUserIdsResponse.d.ts.map +1 -1
- package/dist/client-search/model/snippetResultOption.d.ts.map +1 -1
- package/dist/client-search/model/source.d.ts.map +1 -1
- package/dist/client-search/model/standardEntries.d.ts.map +1 -1
- package/dist/client-search/model/synonymHit.d.ts.map +1 -1
- package/dist/client-search/model/synonymHitHighlightResult.d.ts.map +1 -1
- package/dist/client-search/model/timeRange.d.ts.map +1 -1
- package/dist/client-search/model/updateApiKeyResponse.d.ts +1 -1
- package/dist/client-search/model/updateApiKeyResponse.d.ts.map +1 -1
- package/dist/client-search/model/updatedAtResponse.d.ts.map +1 -1
- package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
- package/dist/client-search/model/updatedRuleResponse.d.ts.map +1 -1
- package/dist/client-search/model/userHighlightResult.d.ts.map +1 -1
- package/dist/client-search/model/userHit.d.ts.map +1 -1
- package/dist/client-search/model/userId.d.ts.map +1 -1
- package/dist/client-search/model/value.d.ts.map +1 -1
- package/dist/client-search/src/searchClient.d.ts +65 -15
- package/dist/client-search/src/searchClient.d.ts.map +1 -1
- package/dist/lite/builds/browser.d.ts +23 -14
- package/dist/lite/builds/browser.d.ts.map +1 -1
- package/dist/lite/builds/models.d.ts +11 -8
- package/dist/lite/builds/models.d.ts.map +1 -1
- package/dist/lite/builds/node.d.ts +23 -14
- package/dist/lite/builds/node.d.ts.map +1 -1
- package/dist/lite/lite/builds/browser.d.ts +2 -2
- package/dist/lite/lite/builds/browser.d.ts.map +1 -1
- package/dist/lite/lite/builds/node.d.ts +2 -2
- package/dist/lite/lite/builds/node.d.ts.map +1 -1
- package/dist/lite/lite/model/acl.d.ts +3 -0
- package/dist/lite/lite/model/acl.d.ts.map +1 -1
- package/dist/lite/lite/model/addApiKeyResponse.d.ts +1 -1
- package/dist/lite/lite/model/addApiKeyResponse.d.ts.map +1 -1
- package/dist/lite/lite/model/apiKey.d.ts.map +1 -1
- package/dist/lite/lite/model/attributeToUpdate.d.ts +3 -0
- package/dist/lite/lite/model/attributeToUpdate.d.ts.map +1 -0
- package/dist/lite/lite/model/automaticFacetFilter.d.ts.map +1 -1
- package/dist/lite/lite/model/baseGetApiKeyResponse.d.ts +11 -0
- package/dist/lite/lite/model/baseGetApiKeyResponse.d.ts.map +1 -0
- package/dist/lite/lite/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/lite/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/lite/lite/model/baseSearchResponse.d.ts +2 -2
- package/dist/lite/lite/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/lite/lite/model/browseResponse.d.ts +1 -1
- package/dist/lite/lite/model/browseResponse.d.ts.map +1 -1
- package/dist/lite/lite/model/builtInOperation.d.ts.map +1 -1
- package/dist/lite/lite/model/condition.d.ts.map +1 -1
- package/dist/lite/lite/model/consequence.d.ts.map +1 -1
- package/dist/lite/lite/model/consequenceQueryObject.d.ts.map +1 -1
- package/dist/lite/lite/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/lite/lite/model/distinct.d.ts +5 -0
- package/dist/lite/lite/model/distinct.d.ts.map +1 -0
- package/dist/lite/lite/model/edit.d.ts.map +1 -1
- package/dist/lite/lite/model/facetOrdering.d.ts.map +1 -1
- package/dist/lite/lite/model/facetsStats.d.ts.map +1 -1
- package/dist/lite/lite/model/fetchedIndex.d.ts.map +1 -1
- package/dist/lite/lite/model/getApiKeyResponse.d.ts +4 -0
- package/dist/lite/lite/model/getApiKeyResponse.d.ts.map +1 -0
- package/dist/lite/lite/model/highlightResultOption.d.ts.map +1 -1
- package/dist/lite/lite/model/hit.d.ts +1 -1
- package/dist/lite/lite/model/hit.d.ts.map +1 -1
- package/dist/lite/lite/model/index.d.ts +4 -3
- package/dist/lite/lite/model/index.d.ts.map +1 -1
- package/dist/lite/lite/model/indexSettingsAsSearchParams.d.ts +2 -4
- package/dist/lite/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/lite/lite/model/languages.d.ts.map +1 -1
- package/dist/lite/lite/model/listIndicesResponse.d.ts +1 -1
- package/dist/lite/lite/model/listIndicesResponse.d.ts.map +1 -1
- package/dist/lite/lite/model/matchedGeoLocation.d.ts.map +1 -1
- package/dist/lite/lite/model/params.d.ts.map +1 -1
- package/dist/lite/lite/model/personalization.d.ts.map +1 -1
- package/dist/lite/lite/model/promoteObjectID.d.ts.map +1 -1
- package/dist/lite/lite/model/promoteObjectIDs.d.ts.map +1 -1
- package/dist/lite/lite/model/rankingInfo.d.ts.map +1 -1
- package/dist/lite/lite/model/rule.d.ts.map +1 -1
- package/dist/lite/lite/model/searchForFacetsOptions.d.ts.map +1 -1
- package/dist/lite/lite/model/searchForHitsOptions.d.ts.map +1 -1
- package/dist/lite/lite/model/searchHits.d.ts +2 -2
- package/dist/lite/lite/model/searchHits.d.ts.map +1 -1
- package/dist/lite/lite/model/searchMethodParams.d.ts.map +1 -1
- package/dist/lite/lite/model/searchResponse.d.ts +1 -1
- package/dist/lite/lite/model/searchResponse.d.ts.map +1 -1
- package/dist/lite/lite/model/searchResponses.d.ts +1 -1
- package/dist/lite/lite/model/searchResponses.d.ts.map +1 -1
- package/dist/lite/lite/model/searchSynonymsResponse.d.ts.map +1 -1
- package/dist/lite/lite/model/snippetResultOption.d.ts.map +1 -1
- package/dist/lite/lite/model/source.d.ts.map +1 -1
- package/dist/lite/lite/model/standardEntries.d.ts.map +1 -1
- package/dist/lite/lite/model/synonymHit.d.ts.map +1 -1
- package/dist/lite/lite/model/synonymHitHighlightResult.d.ts.map +1 -1
- package/dist/lite/lite/model/timeRange.d.ts.map +1 -1
- package/dist/lite/lite/model/updatedRuleResponse.d.ts.map +1 -1
- package/dist/lite/lite/model/userId.d.ts.map +1 -1
- package/dist/lite/lite/model/value.d.ts.map +1 -1
- package/dist/lite/lite/src/liteClient.d.ts +12 -1
- package/dist/lite/lite/src/liteClient.d.ts.map +1 -1
- package/dist/lite/lite.cjs.js +14 -1
- package/dist/lite/lite.esm.browser.js +14 -1
- package/dist/lite/lite.esm.node.js +14 -1
- package/dist/lite/lite.umd.js +2 -2
- package/lite/builds/browser.ts +2 -2
- package/lite/builds/node.ts +2 -2
- package/lite/model/acl.ts +3 -0
- package/lite/model/addApiKeyResponse.ts +2 -1
- package/lite/model/apiKey.ts +7 -0
- package/lite/model/{attributeOrBuiltInOperation.ts → attributeToUpdate.ts} +1 -1
- package/lite/model/automaticFacetFilter.ts +2 -0
- package/lite/model/baseGetApiKeyResponse.ts +13 -0
- package/lite/model/baseIndexSettings.ts +13 -0
- package/lite/model/baseSearchParamsWithoutQuery.ts +32 -0
- package/lite/model/baseSearchResponse.ts +26 -2
- package/lite/model/browseResponse.ts +1 -1
- package/lite/model/builtInOperation.ts +1 -0
- package/lite/model/condition.ts +3 -0
- package/lite/model/consequence.ts +4 -0
- package/lite/model/consequenceQueryObject.ts +1 -0
- package/lite/model/dictionaryEntry.ts +5 -0
- package/lite/model/{createdAtObject.ts → distinct.ts} +4 -6
- package/lite/model/edit.ts +2 -0
- package/lite/model/facetOrdering.ts +1 -0
- package/lite/model/facetsStats.ts +3 -0
- package/lite/model/fetchedIndex.ts +10 -0
- package/lite/model/{key.ts → getApiKeyResponse.ts} +2 -2
- package/lite/model/highlightResultOption.ts +3 -0
- package/lite/model/hit.ts +5 -1
- package/lite/model/index.ts +4 -3
- package/lite/model/indexSettingsAsSearchParams.ts +43 -4
- package/lite/model/languages.ts +2 -0
- package/lite/model/listIndicesResponse.ts +2 -1
- package/lite/model/matchedGeoLocation.ts +2 -0
- package/lite/model/params.ts +3 -0
- package/lite/model/personalization.ts +2 -0
- package/lite/model/promoteObjectID.ts +1 -0
- package/lite/model/promoteObjectIDs.ts +1 -0
- package/lite/model/rankingInfo.ts +12 -0
- package/lite/model/rule.ts +5 -0
- package/lite/model/searchForFacetsOptions.ts +4 -0
- package/lite/model/searchForHitsOptions.ts +1 -0
- package/lite/model/searchHits.ts +2 -2
- package/lite/model/searchMethodParams.ts +1 -0
- package/lite/model/searchResponse.ts +2 -1
- package/lite/model/searchResponses.ts +1 -1
- package/lite/model/searchSynonymsResponse.ts +1 -0
- package/lite/model/snippetResultOption.ts +1 -0
- package/lite/model/source.ts +1 -0
- package/lite/model/standardEntries.ts +2 -0
- package/lite/model/synonymHit.ts +8 -0
- package/lite/model/synonymHitHighlightResult.ts +1 -0
- package/lite/model/timeRange.ts +1 -0
- package/lite/model/updatedRuleResponse.ts +2 -0
- package/lite/model/userId.ts +3 -0
- package/lite/model/value.ts +1 -0
- package/lite/src/liteClient.ts +22 -1
- package/package.json +9 -9
- package/dist/algoliasearch/lite/model/attributeOrBuiltInOperation.d.ts +0 -3
- package/dist/algoliasearch/lite/model/attributeOrBuiltInOperation.d.ts.map +0 -1
- package/dist/algoliasearch/lite/model/createdAtObject.d.ts +0 -7
- package/dist/algoliasearch/lite/model/createdAtObject.d.ts.map +0 -1
- package/dist/algoliasearch/lite/model/key.d.ts +0 -4
- package/dist/algoliasearch/lite/model/key.d.ts.map +0 -1
- package/dist/client-search/model/attributeOrBuiltInOperation.d.ts +0 -3
- package/dist/client-search/model/attributeOrBuiltInOperation.d.ts.map +0 -1
- package/dist/client-search/model/batchOperation.d.ts.map +0 -1
- package/dist/client-search/model/createdAtObject.d.ts +0 -7
- package/dist/client-search/model/createdAtObject.d.ts.map +0 -1
- package/dist/client-search/model/key.d.ts +0 -4
- package/dist/client-search/model/key.d.ts.map +0 -1
- package/dist/client-search/model/multipleBatchOperation.d.ts.map +0 -1
- package/dist/client-search/model/multipleGetObjectsParams.d.ts.map +0 -1
- package/dist/lite/lite/model/attributeOrBuiltInOperation.d.ts +0 -3
- package/dist/lite/lite/model/attributeOrBuiltInOperation.d.ts.map +0 -1
- package/dist/lite/lite/model/createdAtObject.d.ts +0 -7
- package/dist/lite/lite/model/createdAtObject.d.ts.map +0 -1
- package/dist/lite/lite/model/key.d.ts +0 -4
- package/dist/lite/lite/model/key.d.ts.map +0 -1
|
@@ -12,114 +12,146 @@ export type BaseSearchParamsWithoutQuery = {
|
|
|
12
12
|
* Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results.
|
|
13
13
|
*/
|
|
14
14
|
similarQuery?: string;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* Filter the query with numeric, facet and/or tag filters.
|
|
17
18
|
*/
|
|
18
19
|
filters?: string;
|
|
20
|
+
|
|
19
21
|
facetFilters?: FacetFilters;
|
|
22
|
+
|
|
20
23
|
optionalFilters?: OptionalFilters;
|
|
24
|
+
|
|
21
25
|
numericFilters?: NumericFilters;
|
|
26
|
+
|
|
22
27
|
tagFilters?: TagFilters;
|
|
28
|
+
|
|
23
29
|
/**
|
|
24
30
|
* Determines how to calculate the total score for filtering.
|
|
25
31
|
*/
|
|
26
32
|
sumOrFiltersScores?: boolean;
|
|
33
|
+
|
|
27
34
|
/**
|
|
28
35
|
* Retrieve facets and their facet values.
|
|
29
36
|
*/
|
|
30
37
|
facets?: string[];
|
|
38
|
+
|
|
31
39
|
/**
|
|
32
40
|
* Maximum number of facet values to return for each facet during a regular search.
|
|
33
41
|
*/
|
|
34
42
|
maxValuesPerFacet?: number;
|
|
43
|
+
|
|
35
44
|
/**
|
|
36
45
|
* Force faceting to be applied after de-duplication (via the Distinct setting).
|
|
37
46
|
*/
|
|
38
47
|
facetingAfterDistinct?: boolean;
|
|
48
|
+
|
|
39
49
|
/**
|
|
40
50
|
* Controls how facet values are fetched.
|
|
41
51
|
*/
|
|
42
52
|
sortFacetValuesBy?: string;
|
|
53
|
+
|
|
43
54
|
/**
|
|
44
55
|
* Specify the page to retrieve.
|
|
45
56
|
*/
|
|
46
57
|
page?: number;
|
|
58
|
+
|
|
47
59
|
/**
|
|
48
60
|
* Specify the offset of the first hit to return.
|
|
49
61
|
*/
|
|
50
62
|
offset?: number;
|
|
63
|
+
|
|
51
64
|
/**
|
|
52
65
|
* Set the number of hits to retrieve (used only with offset).
|
|
53
66
|
*/
|
|
54
67
|
length?: number;
|
|
68
|
+
|
|
55
69
|
/**
|
|
56
70
|
* Search for entries around a central geolocation, enabling a geo search within a circular area.
|
|
57
71
|
*/
|
|
58
72
|
aroundLatLng?: string;
|
|
73
|
+
|
|
59
74
|
/**
|
|
60
75
|
* Search for entries around a given location automatically computed from the requester\'s IP address.
|
|
61
76
|
*/
|
|
62
77
|
aroundLatLngViaIP?: boolean;
|
|
78
|
+
|
|
63
79
|
aroundRadius?: AroundRadius;
|
|
80
|
+
|
|
64
81
|
/**
|
|
65
82
|
* Precision of geo search (in meters), to add grouping by geo location to the ranking formula.
|
|
66
83
|
*/
|
|
67
84
|
aroundPrecision?: number;
|
|
85
|
+
|
|
68
86
|
/**
|
|
69
87
|
* Minimum radius (in meters) used for a geo search when aroundRadius is not set.
|
|
70
88
|
*/
|
|
71
89
|
minimumAroundRadius?: number;
|
|
90
|
+
|
|
72
91
|
/**
|
|
73
92
|
* Search inside a rectangular area (in geo coordinates).
|
|
74
93
|
*/
|
|
75
94
|
insideBoundingBox?: number[];
|
|
95
|
+
|
|
76
96
|
/**
|
|
77
97
|
* Search inside a polygon (in geo coordinates).
|
|
78
98
|
*/
|
|
79
99
|
insidePolygon?: number[];
|
|
100
|
+
|
|
80
101
|
/**
|
|
81
102
|
* This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search.
|
|
82
103
|
*/
|
|
83
104
|
naturalLanguages?: string[];
|
|
105
|
+
|
|
84
106
|
/**
|
|
85
107
|
* Enables contextual rules.
|
|
86
108
|
*/
|
|
87
109
|
ruleContexts?: string[];
|
|
110
|
+
|
|
88
111
|
/**
|
|
89
112
|
* Define the impact of the Personalization feature.
|
|
90
113
|
*/
|
|
91
114
|
personalizationImpact?: number;
|
|
115
|
+
|
|
92
116
|
/**
|
|
93
117
|
* Associates a certain user token with the current search.
|
|
94
118
|
*/
|
|
95
119
|
userToken?: string;
|
|
120
|
+
|
|
96
121
|
/**
|
|
97
122
|
* Retrieve detailed ranking information.
|
|
98
123
|
*/
|
|
99
124
|
getRankingInfo?: boolean;
|
|
125
|
+
|
|
100
126
|
/**
|
|
101
127
|
* Enable the Click Analytics feature.
|
|
102
128
|
*/
|
|
103
129
|
clickAnalytics?: boolean;
|
|
130
|
+
|
|
104
131
|
/**
|
|
105
132
|
* Whether the current query will be taken into account in the Analytics.
|
|
106
133
|
*/
|
|
107
134
|
analytics?: boolean;
|
|
135
|
+
|
|
108
136
|
/**
|
|
109
137
|
* List of tags to apply to the query for analytics purposes.
|
|
110
138
|
*/
|
|
111
139
|
analyticsTags?: string[];
|
|
140
|
+
|
|
112
141
|
/**
|
|
113
142
|
* Whether to include or exclude a query from the processing-time percentile computation.
|
|
114
143
|
*/
|
|
115
144
|
percentileComputation?: boolean;
|
|
145
|
+
|
|
116
146
|
/**
|
|
117
147
|
* Whether this search should participate in running AB tests.
|
|
118
148
|
*/
|
|
119
149
|
enableABTest?: boolean;
|
|
150
|
+
|
|
120
151
|
/**
|
|
121
152
|
* Whether this search should use AI Re-Ranking.
|
|
122
153
|
*/
|
|
123
154
|
enableReRanking?: boolean;
|
|
155
|
+
|
|
124
156
|
reRankingApplyFilter?: ReRankingApplyFilter | null;
|
|
125
157
|
};
|
|
@@ -8,97 +8,121 @@ export type BaseSearchResponse = {
|
|
|
8
8
|
* If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID.
|
|
9
9
|
*/
|
|
10
10
|
abTestID?: number;
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
|
-
* If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used.
|
|
13
|
+
* If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used (starting at 1).
|
|
13
14
|
*/
|
|
14
15
|
abTestVariantID?: number;
|
|
16
|
+
|
|
15
17
|
/**
|
|
16
18
|
* The computed geo location.
|
|
17
19
|
*/
|
|
18
20
|
aroundLatLng?: string;
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
* The automatically computed radius. For legacy reasons, this parameter is a string and not an integer.
|
|
21
24
|
*/
|
|
22
25
|
automaticRadius?: string;
|
|
26
|
+
|
|
23
27
|
/**
|
|
24
28
|
* Whether the facet count is exhaustive or approximate.
|
|
25
29
|
*/
|
|
26
30
|
exhaustiveFacetsCount?: boolean;
|
|
31
|
+
|
|
27
32
|
/**
|
|
28
33
|
* Indicate if the nbHits count was exhaustive or approximate.
|
|
29
34
|
*/
|
|
30
35
|
exhaustiveNbHits: boolean;
|
|
36
|
+
|
|
31
37
|
/**
|
|
32
38
|
* Indicate if the typo-tolerance search was exhaustive or approximate (only included when typo-tolerance is enabled).
|
|
33
39
|
*/
|
|
34
40
|
exhaustiveTypo: boolean;
|
|
41
|
+
|
|
35
42
|
/**
|
|
36
43
|
* A mapping of each facet name to the corresponding facet counts.
|
|
37
44
|
*/
|
|
38
|
-
facets?: Record<string, Record<string,
|
|
45
|
+
facets?: Record<string, Record<string, number>>;
|
|
46
|
+
|
|
39
47
|
/**
|
|
40
48
|
* Statistics for numerical facets.
|
|
41
49
|
*/
|
|
42
50
|
facets_stats?: Record<string, FacetsStats>;
|
|
51
|
+
|
|
43
52
|
/**
|
|
44
53
|
* Set the number of hits per page.
|
|
45
54
|
*/
|
|
46
55
|
hitsPerPage: number;
|
|
56
|
+
|
|
47
57
|
/**
|
|
48
58
|
* Index name used for the query.
|
|
49
59
|
*/
|
|
50
60
|
index?: string;
|
|
61
|
+
|
|
51
62
|
/**
|
|
52
63
|
* Index name used for the query. In the case of an A/B test, the targeted index isn\'t always the index used by the query.
|
|
53
64
|
*/
|
|
54
65
|
indexUsed?: string;
|
|
66
|
+
|
|
55
67
|
/**
|
|
56
68
|
* Used to return warnings about the query.
|
|
57
69
|
*/
|
|
58
70
|
message?: string;
|
|
71
|
+
|
|
59
72
|
/**
|
|
60
73
|
* Number of hits that the search query matched.
|
|
61
74
|
*/
|
|
62
75
|
nbHits: number;
|
|
76
|
+
|
|
63
77
|
/**
|
|
64
78
|
* Number of pages available for the current query.
|
|
65
79
|
*/
|
|
66
80
|
nbPages: number;
|
|
81
|
+
|
|
67
82
|
/**
|
|
68
83
|
* The number of hits selected and sorted by the relevant sort algorithm.
|
|
69
84
|
*/
|
|
70
85
|
nbSortedHits?: number;
|
|
86
|
+
|
|
71
87
|
/**
|
|
72
88
|
* Specify the page to retrieve.
|
|
73
89
|
*/
|
|
74
90
|
page: number;
|
|
91
|
+
|
|
75
92
|
/**
|
|
76
93
|
* A url-encoded string of all search parameters.
|
|
77
94
|
*/
|
|
78
95
|
params: string;
|
|
96
|
+
|
|
79
97
|
/**
|
|
80
98
|
* The query string that will be searched, after normalization.
|
|
81
99
|
*/
|
|
82
100
|
parsedQuery?: string;
|
|
101
|
+
|
|
83
102
|
/**
|
|
84
103
|
* Time the server took to process the request, in milliseconds.
|
|
85
104
|
*/
|
|
86
105
|
processingTimeMS: number;
|
|
106
|
+
|
|
87
107
|
/**
|
|
88
108
|
* The text to search in the index.
|
|
89
109
|
*/
|
|
90
110
|
query: string;
|
|
111
|
+
|
|
91
112
|
/**
|
|
92
113
|
* A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set.
|
|
93
114
|
*/
|
|
94
115
|
queryAfterRemoval?: string;
|
|
116
|
+
|
|
95
117
|
/**
|
|
96
118
|
* Actual host name of the server that processed the request.
|
|
97
119
|
*/
|
|
98
120
|
serverUsed?: string;
|
|
121
|
+
|
|
99
122
|
/**
|
|
100
123
|
* Lets you store custom data in your indices.
|
|
101
124
|
*/
|
|
102
125
|
userData?: Record<string, any>;
|
|
126
|
+
|
|
103
127
|
renderingContent?: RenderingContent;
|
|
104
128
|
};
|
|
@@ -4,6 +4,6 @@ import type { BaseBrowseResponse } from './baseBrowseResponse';
|
|
|
4
4
|
import type { BaseSearchResponse } from './baseSearchResponse';
|
|
5
5
|
import type { SearchHits } from './searchHits';
|
|
6
6
|
|
|
7
|
-
export type BrowseResponse<T
|
|
7
|
+
export type BrowseResponse<T = Record<string, any>> = BaseBrowseResponse &
|
|
8
8
|
BaseSearchResponse &
|
|
9
9
|
SearchHits<T>;
|
|
@@ -7,6 +7,7 @@ import type { BuiltInOperationType } from './builtInOperationType';
|
|
|
7
7
|
*/
|
|
8
8
|
export type BuiltInOperation = {
|
|
9
9
|
_operation: BuiltInOperationType;
|
|
10
|
+
|
|
10
11
|
/**
|
|
11
12
|
* The right-hand side argument to the operation, for example, increment or decrement step, value to add or remove.
|
|
12
13
|
*/
|
package/lite/model/condition.ts
CHANGED
|
@@ -7,11 +7,14 @@ export type Condition = {
|
|
|
7
7
|
* Query pattern syntax.
|
|
8
8
|
*/
|
|
9
9
|
pattern?: string;
|
|
10
|
+
|
|
10
11
|
anchoring?: Anchoring;
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* Whether the pattern matches on plurals, synonyms, and typos.
|
|
13
15
|
*/
|
|
14
16
|
alternatives?: boolean;
|
|
17
|
+
|
|
15
18
|
/**
|
|
16
19
|
* Rule context format: [A-Za-z0-9_-]+).
|
|
17
20
|
*/
|
|
@@ -9,18 +9,22 @@ import type { Promote } from './promote';
|
|
|
9
9
|
*/
|
|
10
10
|
export type Consequence = {
|
|
11
11
|
params?: ConsequenceParams;
|
|
12
|
+
|
|
12
13
|
/**
|
|
13
14
|
* Objects to promote as hits.
|
|
14
15
|
*/
|
|
15
16
|
promote?: Promote[];
|
|
17
|
+
|
|
16
18
|
/**
|
|
17
19
|
* Only use in combination with the promote consequence. When true, promoted results will be restricted to match the filters of the current search. When false, the promoted results will show up regardless of the filters.
|
|
18
20
|
*/
|
|
19
21
|
filterPromotes?: boolean;
|
|
22
|
+
|
|
20
23
|
/**
|
|
21
24
|
* Objects to hide from hits. Each object must contain an objectID field. By default, you can hide up to 50 items per rule.
|
|
22
25
|
*/
|
|
23
26
|
hide?: ConsequenceHide[];
|
|
27
|
+
|
|
24
28
|
/**
|
|
25
29
|
* Custom JSON object that will be appended to the userData array in the response. This object isn\'t interpreted by the API. It\'s limited to 1kB of minified JSON.
|
|
26
30
|
*/
|
|
@@ -10,21 +10,26 @@ export type DictionaryEntry = Record<string, any> & {
|
|
|
10
10
|
* Unique identifier of the object.
|
|
11
11
|
*/
|
|
12
12
|
objectID: string;
|
|
13
|
+
|
|
13
14
|
/**
|
|
14
15
|
* Language ISO code supported by the dictionary (e.g., \"en\" for English).
|
|
15
16
|
*/
|
|
16
17
|
language: string;
|
|
18
|
+
|
|
17
19
|
/**
|
|
18
20
|
* The word of the dictionary entry.
|
|
19
21
|
*/
|
|
20
22
|
word?: string;
|
|
23
|
+
|
|
21
24
|
/**
|
|
22
25
|
* The words of the dictionary entry.
|
|
23
26
|
*/
|
|
24
27
|
words?: string[];
|
|
28
|
+
|
|
25
29
|
/**
|
|
26
30
|
* A decomposition of the word of the dictionary entry.
|
|
27
31
|
*/
|
|
28
32
|
decomposition?: string[];
|
|
33
|
+
|
|
29
34
|
state?: DictionaryEntryState;
|
|
30
35
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
createdAt: string;
|
|
8
|
-
};
|
|
3
|
+
/**
|
|
4
|
+
* Enables de-duplication or grouping of results.
|
|
5
|
+
*/
|
|
6
|
+
export type Distinct = boolean | number;
|
package/lite/model/edit.ts
CHANGED
|
@@ -4,10 +4,12 @@ import type { EditType } from './editType';
|
|
|
4
4
|
|
|
5
5
|
export type Edit = {
|
|
6
6
|
type?: EditType;
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* Text or patterns to remove from the query string.
|
|
9
10
|
*/
|
|
10
11
|
delete?: string;
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* Text that should be inserted in place of the removed text inside the query string.
|
|
13
15
|
*/
|
|
@@ -5,14 +5,17 @@ export type FacetsStats = {
|
|
|
5
5
|
* The minimum value in the result set.
|
|
6
6
|
*/
|
|
7
7
|
min?: number;
|
|
8
|
+
|
|
8
9
|
/**
|
|
9
10
|
* The maximum value in the result set.
|
|
10
11
|
*/
|
|
11
12
|
max?: number;
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* The average facet value in the result set.
|
|
14
16
|
*/
|
|
15
17
|
avg?: number;
|
|
18
|
+
|
|
16
19
|
/**
|
|
17
20
|
* The sum of all values in the result set.
|
|
18
21
|
*/
|
|
@@ -5,42 +5,52 @@ export type FetchedIndex = {
|
|
|
5
5
|
* Index name.
|
|
6
6
|
*/
|
|
7
7
|
name: string;
|
|
8
|
+
|
|
8
9
|
/**
|
|
9
10
|
* Index creation date. An empty string means that the index has no records.
|
|
10
11
|
*/
|
|
11
12
|
createdAt: string;
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* Date of last update (ISO-8601 format).
|
|
14
16
|
*/
|
|
15
17
|
updatedAt: string;
|
|
18
|
+
|
|
16
19
|
/**
|
|
17
20
|
* Number of records contained in the index.
|
|
18
21
|
*/
|
|
19
22
|
entries: number;
|
|
23
|
+
|
|
20
24
|
/**
|
|
21
25
|
* Number of bytes of the index in minified format.
|
|
22
26
|
*/
|
|
23
27
|
dataSize: number;
|
|
28
|
+
|
|
24
29
|
/**
|
|
25
30
|
* Number of bytes of the index binary file.
|
|
26
31
|
*/
|
|
27
32
|
fileSize: number;
|
|
33
|
+
|
|
28
34
|
/**
|
|
29
35
|
* Last build time.
|
|
30
36
|
*/
|
|
31
37
|
lastBuildTimeS: number;
|
|
38
|
+
|
|
32
39
|
/**
|
|
33
40
|
* Number of pending indexing operations. This value is deprecated and should not be used.
|
|
34
41
|
*/
|
|
35
42
|
numberOfPendingTask?: number;
|
|
43
|
+
|
|
36
44
|
/**
|
|
37
45
|
* A boolean which says whether the index has pending tasks. This value is deprecated and should not be used.
|
|
38
46
|
*/
|
|
39
47
|
pendingTask: boolean;
|
|
48
|
+
|
|
40
49
|
/**
|
|
41
50
|
* Only present if the index is a replica. Contains the name of the related primary index.
|
|
42
51
|
*/
|
|
43
52
|
primary?: string;
|
|
53
|
+
|
|
44
54
|
/**
|
|
45
55
|
* Only present if the index is a primary index with replicas. Contains the names of all linked replicas.
|
|
46
56
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
2
|
|
|
3
3
|
import type { ApiKey } from './apiKey';
|
|
4
|
-
import type {
|
|
4
|
+
import type { BaseGetApiKeyResponse } from './baseGetApiKeyResponse';
|
|
5
5
|
|
|
6
|
-
export type
|
|
6
|
+
export type GetApiKeyResponse = ApiKey & BaseGetApiKeyResponse;
|
|
@@ -10,11 +10,14 @@ export type HighlightResultOption = {
|
|
|
10
10
|
* Markup text with occurrences highlighted.
|
|
11
11
|
*/
|
|
12
12
|
value: string;
|
|
13
|
+
|
|
13
14
|
matchLevel: MatchLevel;
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* List of words from the query that matched the object.
|
|
16
18
|
*/
|
|
17
19
|
matchedWords: string[];
|
|
20
|
+
|
|
18
21
|
/**
|
|
19
22
|
* Whether the entire attribute value is highlighted.
|
|
20
23
|
*/
|
package/lite/model/hit.ts
CHANGED
|
@@ -7,19 +7,23 @@ import type { SnippetResult } from './snippetResult';
|
|
|
7
7
|
/**
|
|
8
8
|
* A single hit.
|
|
9
9
|
*/
|
|
10
|
-
export type Hit<T
|
|
10
|
+
export type Hit<T = Record<string, any>> = T & {
|
|
11
11
|
/**
|
|
12
12
|
* Unique identifier of the object.
|
|
13
13
|
*/
|
|
14
14
|
objectID: string;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* Show highlighted section and words matched on a query.
|
|
17
18
|
*/
|
|
18
19
|
_highlightResult?: Record<string, HighlightResult>;
|
|
20
|
+
|
|
19
21
|
/**
|
|
20
22
|
* Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
|
|
21
23
|
*/
|
|
22
24
|
_snippetResult?: Record<string, SnippetResult>;
|
|
25
|
+
|
|
23
26
|
_rankingInfo?: RankingInfo;
|
|
27
|
+
|
|
24
28
|
_distinctSeqID?: number;
|
|
25
29
|
};
|
package/lite/model/index.ts
CHANGED
|
@@ -9,10 +9,11 @@ export * from './anchoring';
|
|
|
9
9
|
export * from './apiKey';
|
|
10
10
|
export * from './aroundRadius';
|
|
11
11
|
export * from './aroundRadiusAll';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './attributeToUpdate';
|
|
13
13
|
export * from './automaticFacetFilter';
|
|
14
14
|
export * from './automaticFacetFilters';
|
|
15
15
|
export * from './baseBrowseResponse';
|
|
16
|
+
export * from './baseGetApiKeyResponse';
|
|
16
17
|
export * from './baseIndexSettings';
|
|
17
18
|
export * from './baseSearchParams';
|
|
18
19
|
export * from './baseSearchParamsWithoutQuery';
|
|
@@ -26,12 +27,12 @@ export * from './consequenceHide';
|
|
|
26
27
|
export * from './consequenceParams';
|
|
27
28
|
export * from './consequenceQuery';
|
|
28
29
|
export * from './consequenceQueryObject';
|
|
29
|
-
export * from './createdAtObject';
|
|
30
30
|
export * from './dictionaryAction';
|
|
31
31
|
export * from './dictionaryEntry';
|
|
32
32
|
export * from './dictionaryEntryState';
|
|
33
33
|
export * from './dictionaryLanguage';
|
|
34
34
|
export * from './dictionaryType';
|
|
35
|
+
export * from './distinct';
|
|
35
36
|
export * from './edit';
|
|
36
37
|
export * from './editType';
|
|
37
38
|
export * from './errorBase';
|
|
@@ -41,13 +42,13 @@ export * from './facetOrdering';
|
|
|
41
42
|
export * from './facets';
|
|
42
43
|
export * from './facetsStats';
|
|
43
44
|
export * from './fetchedIndex';
|
|
45
|
+
export * from './getApiKeyResponse';
|
|
44
46
|
export * from './highlightResult';
|
|
45
47
|
export * from './highlightResultOption';
|
|
46
48
|
export * from './hit';
|
|
47
49
|
export * from './ignorePlurals';
|
|
48
50
|
export * from './indexSettings';
|
|
49
51
|
export * from './indexSettingsAsSearchParams';
|
|
50
|
-
export * from './key';
|
|
51
52
|
export * from './languages';
|
|
52
53
|
export * from './listIndicesResponse';
|
|
53
54
|
export * from './logType';
|