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.
Files changed (400) hide show
  1. package/builds/browser.ts +13 -10
  2. package/builds/models.ts +12 -6
  3. package/builds/node.ts +13 -10
  4. package/dist/algoliasearch/builds/browser.d.ts +23 -14
  5. package/dist/algoliasearch/builds/browser.d.ts.map +1 -1
  6. package/dist/algoliasearch/builds/node.d.ts +23 -14
  7. package/dist/algoliasearch/builds/node.d.ts.map +1 -1
  8. package/dist/algoliasearch/lite/builds/browser.d.ts +2 -2
  9. package/dist/algoliasearch/lite/builds/browser.d.ts.map +1 -1
  10. package/dist/algoliasearch/lite/builds/node.d.ts +2 -2
  11. package/dist/algoliasearch/lite/builds/node.d.ts.map +1 -1
  12. package/dist/algoliasearch/lite/model/acl.d.ts +3 -0
  13. package/dist/algoliasearch/lite/model/acl.d.ts.map +1 -1
  14. package/dist/algoliasearch/lite/model/addApiKeyResponse.d.ts +1 -1
  15. package/dist/algoliasearch/lite/model/addApiKeyResponse.d.ts.map +1 -1
  16. package/dist/algoliasearch/lite/model/apiKey.d.ts.map +1 -1
  17. package/dist/algoliasearch/lite/model/attributeToUpdate.d.ts +3 -0
  18. package/dist/algoliasearch/lite/model/attributeToUpdate.d.ts.map +1 -0
  19. package/dist/algoliasearch/lite/model/automaticFacetFilter.d.ts.map +1 -1
  20. package/dist/algoliasearch/lite/model/baseGetApiKeyResponse.d.ts +11 -0
  21. package/dist/algoliasearch/lite/model/baseGetApiKeyResponse.d.ts.map +1 -0
  22. package/dist/algoliasearch/lite/model/baseIndexSettings.d.ts.map +1 -1
  23. package/dist/algoliasearch/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  24. package/dist/algoliasearch/lite/model/baseSearchResponse.d.ts +2 -2
  25. package/dist/algoliasearch/lite/model/baseSearchResponse.d.ts.map +1 -1
  26. package/dist/algoliasearch/lite/model/browseResponse.d.ts +1 -1
  27. package/dist/algoliasearch/lite/model/browseResponse.d.ts.map +1 -1
  28. package/dist/algoliasearch/lite/model/builtInOperation.d.ts.map +1 -1
  29. package/dist/algoliasearch/lite/model/condition.d.ts.map +1 -1
  30. package/dist/algoliasearch/lite/model/consequence.d.ts.map +1 -1
  31. package/dist/algoliasearch/lite/model/consequenceQueryObject.d.ts.map +1 -1
  32. package/dist/algoliasearch/lite/model/dictionaryEntry.d.ts.map +1 -1
  33. package/dist/algoliasearch/lite/model/distinct.d.ts +5 -0
  34. package/dist/algoliasearch/lite/model/distinct.d.ts.map +1 -0
  35. package/dist/algoliasearch/lite/model/edit.d.ts.map +1 -1
  36. package/dist/algoliasearch/lite/model/facetOrdering.d.ts.map +1 -1
  37. package/dist/algoliasearch/lite/model/facetsStats.d.ts.map +1 -1
  38. package/dist/algoliasearch/lite/model/fetchedIndex.d.ts.map +1 -1
  39. package/dist/algoliasearch/lite/model/getApiKeyResponse.d.ts +4 -0
  40. package/dist/algoliasearch/lite/model/getApiKeyResponse.d.ts.map +1 -0
  41. package/dist/algoliasearch/lite/model/highlightResultOption.d.ts.map +1 -1
  42. package/dist/algoliasearch/lite/model/hit.d.ts +1 -1
  43. package/dist/algoliasearch/lite/model/hit.d.ts.map +1 -1
  44. package/dist/algoliasearch/lite/model/index.d.ts +4 -3
  45. package/dist/algoliasearch/lite/model/index.d.ts.map +1 -1
  46. package/dist/algoliasearch/lite/model/indexSettingsAsSearchParams.d.ts +2 -4
  47. package/dist/algoliasearch/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  48. package/dist/algoliasearch/lite/model/languages.d.ts.map +1 -1
  49. package/dist/algoliasearch/lite/model/listIndicesResponse.d.ts +1 -1
  50. package/dist/algoliasearch/lite/model/listIndicesResponse.d.ts.map +1 -1
  51. package/dist/algoliasearch/lite/model/matchedGeoLocation.d.ts.map +1 -1
  52. package/dist/algoliasearch/lite/model/params.d.ts.map +1 -1
  53. package/dist/algoliasearch/lite/model/personalization.d.ts.map +1 -1
  54. package/dist/algoliasearch/lite/model/promoteObjectID.d.ts.map +1 -1
  55. package/dist/algoliasearch/lite/model/promoteObjectIDs.d.ts.map +1 -1
  56. package/dist/algoliasearch/lite/model/rankingInfo.d.ts.map +1 -1
  57. package/dist/algoliasearch/lite/model/rule.d.ts.map +1 -1
  58. package/dist/algoliasearch/lite/model/searchForFacetsOptions.d.ts.map +1 -1
  59. package/dist/algoliasearch/lite/model/searchForHitsOptions.d.ts.map +1 -1
  60. package/dist/algoliasearch/lite/model/searchHits.d.ts +2 -2
  61. package/dist/algoliasearch/lite/model/searchHits.d.ts.map +1 -1
  62. package/dist/algoliasearch/lite/model/searchMethodParams.d.ts.map +1 -1
  63. package/dist/algoliasearch/lite/model/searchResponse.d.ts +1 -1
  64. package/dist/algoliasearch/lite/model/searchResponse.d.ts.map +1 -1
  65. package/dist/algoliasearch/lite/model/searchResponses.d.ts +1 -1
  66. package/dist/algoliasearch/lite/model/searchResponses.d.ts.map +1 -1
  67. package/dist/algoliasearch/lite/model/searchSynonymsResponse.d.ts.map +1 -1
  68. package/dist/algoliasearch/lite/model/snippetResultOption.d.ts.map +1 -1
  69. package/dist/algoliasearch/lite/model/source.d.ts.map +1 -1
  70. package/dist/algoliasearch/lite/model/standardEntries.d.ts.map +1 -1
  71. package/dist/algoliasearch/lite/model/synonymHit.d.ts.map +1 -1
  72. package/dist/algoliasearch/lite/model/synonymHitHighlightResult.d.ts.map +1 -1
  73. package/dist/algoliasearch/lite/model/timeRange.d.ts.map +1 -1
  74. package/dist/algoliasearch/lite/model/updatedRuleResponse.d.ts.map +1 -1
  75. package/dist/algoliasearch/lite/model/userId.d.ts.map +1 -1
  76. package/dist/algoliasearch/lite/model/value.d.ts.map +1 -1
  77. package/dist/algoliasearch/lite/src/liteClient.d.ts +12 -1
  78. package/dist/algoliasearch/lite/src/liteClient.d.ts.map +1 -1
  79. package/dist/algoliasearch.cjs.js +186 -28
  80. package/dist/algoliasearch.esm.browser.js +214 -56
  81. package/dist/algoliasearch.esm.node.js +187 -29
  82. package/dist/algoliasearch.umd.js +2 -2
  83. package/dist/builds/browser.d.ts +23 -14
  84. package/dist/builds/browser.d.ts.map +1 -1
  85. package/dist/builds/models.d.ts +11 -8
  86. package/dist/builds/models.d.ts.map +1 -1
  87. package/dist/builds/node.d.ts +23 -14
  88. package/dist/builds/node.d.ts.map +1 -1
  89. package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
  90. package/dist/client-abtesting/model/aBTestResponse.d.ts.map +1 -1
  91. package/dist/client-abtesting/model/abTestsVariant.d.ts.map +1 -1
  92. package/dist/client-abtesting/model/addABTestsRequest.d.ts.map +1 -1
  93. package/dist/client-abtesting/model/listABTestsResponse.d.ts.map +1 -1
  94. package/dist/client-abtesting/model/variant.d.ts.map +1 -1
  95. package/dist/client-abtesting/src/abtestingClient.d.ts +12 -1
  96. package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
  97. package/dist/client-analytics/model/averageClickEvent.d.ts.map +1 -1
  98. package/dist/client-analytics/model/clickPosition.d.ts.map +1 -1
  99. package/dist/client-analytics/model/clickThroughRateEvent.d.ts.map +1 -1
  100. package/dist/client-analytics/model/conversionRateEvent.d.ts.map +1 -1
  101. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts.map +1 -1
  102. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts.map +1 -1
  103. package/dist/client-analytics/model/getConversationRateResponse.d.ts.map +1 -1
  104. package/dist/client-analytics/model/getNoClickRateResponse.d.ts.map +1 -1
  105. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts.map +1 -1
  106. package/dist/client-analytics/model/getSearchesCountResponse.d.ts.map +1 -1
  107. package/dist/client-analytics/model/getTopFilterAttribute.d.ts.map +1 -1
  108. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts.map +1 -1
  109. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  110. package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
  111. package/dist/client-analytics/model/getUsersCountResponse.d.ts.map +1 -1
  112. package/dist/client-analytics/model/noClickRateEvent.d.ts.map +1 -1
  113. package/dist/client-analytics/model/noResultsRateEvent.d.ts.map +1 -1
  114. package/dist/client-analytics/model/searchEvent.d.ts.map +1 -1
  115. package/dist/client-analytics/model/searchNoClickEvent.d.ts.map +1 -1
  116. package/dist/client-analytics/model/searchNoResultEvent.d.ts.map +1 -1
  117. package/dist/client-analytics/model/topCountry.d.ts.map +1 -1
  118. package/dist/client-analytics/model/topHit.d.ts.map +1 -1
  119. package/dist/client-analytics/model/topHitWithAnalytics.d.ts.map +1 -1
  120. package/dist/client-analytics/model/topSearch.d.ts.map +1 -1
  121. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
  122. package/dist/client-analytics/model/userWithDate.d.ts.map +1 -1
  123. package/dist/client-analytics/src/analyticsClient.d.ts +12 -1
  124. package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
  125. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts.map +1 -1
  126. package/dist/client-personalization/model/eventScoring.d.ts.map +1 -1
  127. package/dist/client-personalization/model/facetScoring.d.ts.map +1 -1
  128. package/dist/client-personalization/model/getUserTokenResponse.d.ts.map +1 -1
  129. package/dist/client-personalization/model/personalizationStrategyParams.d.ts.map +1 -1
  130. package/dist/client-personalization/src/personalizationClient.d.ts +12 -1
  131. package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
  132. package/dist/client-search/model/acl.d.ts +3 -0
  133. package/dist/client-search/model/acl.d.ts.map +1 -1
  134. package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
  135. package/dist/client-search/model/addApiKeyResponse.d.ts.map +1 -1
  136. package/dist/client-search/model/apiKey.d.ts.map +1 -1
  137. package/dist/client-search/model/attributeToUpdate.d.ts +3 -0
  138. package/dist/client-search/model/attributeToUpdate.d.ts.map +1 -0
  139. package/dist/client-search/model/automaticFacetFilter.d.ts.map +1 -1
  140. package/dist/client-search/model/baseGetApiKeyResponse.d.ts +11 -0
  141. package/dist/client-search/model/baseGetApiKeyResponse.d.ts.map +1 -0
  142. package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
  143. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  144. package/dist/client-search/model/baseSearchResponse.d.ts +2 -2
  145. package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
  146. package/dist/client-search/model/batchAssignUserIdsParams.d.ts.map +1 -1
  147. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts.map +1 -1
  148. package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
  149. package/dist/client-search/model/batchParams.d.ts +2 -2
  150. package/dist/client-search/model/batchParams.d.ts.map +1 -1
  151. package/dist/client-search/model/{batchOperation.d.ts → batchRequest.d.ts} +2 -2
  152. package/dist/client-search/model/batchRequest.d.ts.map +1 -0
  153. package/dist/client-search/model/batchResponse.d.ts.map +1 -1
  154. package/dist/client-search/model/batchWriteParams.d.ts +2 -2
  155. package/dist/client-search/model/batchWriteParams.d.ts.map +1 -1
  156. package/dist/client-search/model/browseRequest.d.ts.map +1 -1
  157. package/dist/client-search/model/browseResponse.d.ts +1 -1
  158. package/dist/client-search/model/browseResponse.d.ts.map +1 -1
  159. package/dist/client-search/model/builtInOperation.d.ts.map +1 -1
  160. package/dist/client-search/model/clientMethodProps.d.ts +21 -8
  161. package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
  162. package/dist/client-search/model/condition.d.ts.map +1 -1
  163. package/dist/client-search/model/consequence.d.ts.map +1 -1
  164. package/dist/client-search/model/consequenceQueryObject.d.ts.map +1 -1
  165. package/dist/client-search/model/deletedAtResponse.d.ts.map +1 -1
  166. package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
  167. package/dist/client-search/model/distinct.d.ts +5 -0
  168. package/dist/client-search/model/distinct.d.ts.map +1 -0
  169. package/dist/client-search/model/edit.d.ts.map +1 -1
  170. package/dist/client-search/model/facetHits.d.ts.map +1 -1
  171. package/dist/client-search/model/facetOrdering.d.ts.map +1 -1
  172. package/dist/client-search/model/facetsStats.d.ts.map +1 -1
  173. package/dist/client-search/model/fetchedIndex.d.ts.map +1 -1
  174. package/dist/client-search/model/getApiKeyResponse.d.ts +4 -0
  175. package/dist/client-search/model/getApiKeyResponse.d.ts.map +1 -0
  176. package/dist/client-search/model/getObjectsParams.d.ts +2 -2
  177. package/dist/client-search/model/getObjectsParams.d.ts.map +1 -1
  178. package/dist/client-search/model/{multipleGetObjectsParams.d.ts → getObjectsRequest.d.ts} +2 -2
  179. package/dist/client-search/model/getObjectsRequest.d.ts.map +1 -0
  180. package/dist/client-search/model/getObjectsResponse.d.ts +2 -2
  181. package/dist/client-search/model/getObjectsResponse.d.ts.map +1 -1
  182. package/dist/client-search/model/hasPendingMappingsResponse.d.ts.map +1 -1
  183. package/dist/client-search/model/highlightResultOption.d.ts.map +1 -1
  184. package/dist/client-search/model/hit.d.ts +1 -1
  185. package/dist/client-search/model/hit.d.ts.map +1 -1
  186. package/dist/client-search/model/index.d.ts +7 -6
  187. package/dist/client-search/model/index.d.ts.map +1 -1
  188. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +2 -4
  189. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  190. package/dist/client-search/model/languages.d.ts.map +1 -1
  191. package/dist/client-search/model/listApiKeysResponse.d.ts +2 -2
  192. package/dist/client-search/model/listApiKeysResponse.d.ts.map +1 -1
  193. package/dist/client-search/model/listIndicesResponse.d.ts +1 -1
  194. package/dist/client-search/model/listIndicesResponse.d.ts.map +1 -1
  195. package/dist/client-search/model/log.d.ts.map +1 -1
  196. package/dist/client-search/model/logQuery.d.ts.map +1 -1
  197. package/dist/client-search/model/matchedGeoLocation.d.ts.map +1 -1
  198. package/dist/client-search/model/{multipleBatchOperation.d.ts → multipleBatchRequest.d.ts} +5 -5
  199. package/dist/client-search/model/multipleBatchRequest.d.ts.map +1 -0
  200. package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
  201. package/dist/client-search/model/multipleBatchResponse.d.ts.map +1 -1
  202. package/dist/client-search/model/operationIndexParams.d.ts.map +1 -1
  203. package/dist/client-search/model/params.d.ts.map +1 -1
  204. package/dist/client-search/model/personalization.d.ts.map +1 -1
  205. package/dist/client-search/model/promoteObjectID.d.ts.map +1 -1
  206. package/dist/client-search/model/promoteObjectIDs.d.ts.map +1 -1
  207. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  208. package/dist/client-search/model/rule.d.ts.map +1 -1
  209. package/dist/client-search/model/saveObjectResponse.d.ts +2 -2
  210. package/dist/client-search/model/saveObjectResponse.d.ts.map +1 -1
  211. package/dist/client-search/model/saveSynonymResponse.d.ts.map +1 -1
  212. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  213. package/dist/client-search/model/searchForFacetValuesRequest.d.ts.map +1 -1
  214. package/dist/client-search/model/searchForFacetsOptions.d.ts.map +1 -1
  215. package/dist/client-search/model/searchForHitsOptions.d.ts.map +1 -1
  216. package/dist/client-search/model/searchHits.d.ts +2 -2
  217. package/dist/client-search/model/searchHits.d.ts.map +1 -1
  218. package/dist/client-search/model/searchMethodParams.d.ts.map +1 -1
  219. package/dist/client-search/model/searchResponse.d.ts +1 -1
  220. package/dist/client-search/model/searchResponse.d.ts.map +1 -1
  221. package/dist/client-search/model/searchResponses.d.ts +1 -1
  222. package/dist/client-search/model/searchResponses.d.ts.map +1 -1
  223. package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
  224. package/dist/client-search/model/searchRulesResponse.d.ts.map +1 -1
  225. package/dist/client-search/model/searchSynonymsResponse.d.ts.map +1 -1
  226. package/dist/client-search/model/searchUserIdsParams.d.ts.map +1 -1
  227. package/dist/client-search/model/searchUserIdsResponse.d.ts.map +1 -1
  228. package/dist/client-search/model/snippetResultOption.d.ts.map +1 -1
  229. package/dist/client-search/model/source.d.ts.map +1 -1
  230. package/dist/client-search/model/standardEntries.d.ts.map +1 -1
  231. package/dist/client-search/model/synonymHit.d.ts.map +1 -1
  232. package/dist/client-search/model/synonymHitHighlightResult.d.ts.map +1 -1
  233. package/dist/client-search/model/timeRange.d.ts.map +1 -1
  234. package/dist/client-search/model/updateApiKeyResponse.d.ts +1 -1
  235. package/dist/client-search/model/updateApiKeyResponse.d.ts.map +1 -1
  236. package/dist/client-search/model/updatedAtResponse.d.ts.map +1 -1
  237. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
  238. package/dist/client-search/model/updatedRuleResponse.d.ts.map +1 -1
  239. package/dist/client-search/model/userHighlightResult.d.ts.map +1 -1
  240. package/dist/client-search/model/userHit.d.ts.map +1 -1
  241. package/dist/client-search/model/userId.d.ts.map +1 -1
  242. package/dist/client-search/model/value.d.ts.map +1 -1
  243. package/dist/client-search/src/searchClient.d.ts +65 -15
  244. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  245. package/dist/lite/builds/browser.d.ts +23 -14
  246. package/dist/lite/builds/browser.d.ts.map +1 -1
  247. package/dist/lite/builds/models.d.ts +11 -8
  248. package/dist/lite/builds/models.d.ts.map +1 -1
  249. package/dist/lite/builds/node.d.ts +23 -14
  250. package/dist/lite/builds/node.d.ts.map +1 -1
  251. package/dist/lite/lite/builds/browser.d.ts +2 -2
  252. package/dist/lite/lite/builds/browser.d.ts.map +1 -1
  253. package/dist/lite/lite/builds/node.d.ts +2 -2
  254. package/dist/lite/lite/builds/node.d.ts.map +1 -1
  255. package/dist/lite/lite/model/acl.d.ts +3 -0
  256. package/dist/lite/lite/model/acl.d.ts.map +1 -1
  257. package/dist/lite/lite/model/addApiKeyResponse.d.ts +1 -1
  258. package/dist/lite/lite/model/addApiKeyResponse.d.ts.map +1 -1
  259. package/dist/lite/lite/model/apiKey.d.ts.map +1 -1
  260. package/dist/lite/lite/model/attributeToUpdate.d.ts +3 -0
  261. package/dist/lite/lite/model/attributeToUpdate.d.ts.map +1 -0
  262. package/dist/lite/lite/model/automaticFacetFilter.d.ts.map +1 -1
  263. package/dist/lite/lite/model/baseGetApiKeyResponse.d.ts +11 -0
  264. package/dist/lite/lite/model/baseGetApiKeyResponse.d.ts.map +1 -0
  265. package/dist/lite/lite/model/baseIndexSettings.d.ts.map +1 -1
  266. package/dist/lite/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  267. package/dist/lite/lite/model/baseSearchResponse.d.ts +2 -2
  268. package/dist/lite/lite/model/baseSearchResponse.d.ts.map +1 -1
  269. package/dist/lite/lite/model/browseResponse.d.ts +1 -1
  270. package/dist/lite/lite/model/browseResponse.d.ts.map +1 -1
  271. package/dist/lite/lite/model/builtInOperation.d.ts.map +1 -1
  272. package/dist/lite/lite/model/condition.d.ts.map +1 -1
  273. package/dist/lite/lite/model/consequence.d.ts.map +1 -1
  274. package/dist/lite/lite/model/consequenceQueryObject.d.ts.map +1 -1
  275. package/dist/lite/lite/model/dictionaryEntry.d.ts.map +1 -1
  276. package/dist/lite/lite/model/distinct.d.ts +5 -0
  277. package/dist/lite/lite/model/distinct.d.ts.map +1 -0
  278. package/dist/lite/lite/model/edit.d.ts.map +1 -1
  279. package/dist/lite/lite/model/facetOrdering.d.ts.map +1 -1
  280. package/dist/lite/lite/model/facetsStats.d.ts.map +1 -1
  281. package/dist/lite/lite/model/fetchedIndex.d.ts.map +1 -1
  282. package/dist/lite/lite/model/getApiKeyResponse.d.ts +4 -0
  283. package/dist/lite/lite/model/getApiKeyResponse.d.ts.map +1 -0
  284. package/dist/lite/lite/model/highlightResultOption.d.ts.map +1 -1
  285. package/dist/lite/lite/model/hit.d.ts +1 -1
  286. package/dist/lite/lite/model/hit.d.ts.map +1 -1
  287. package/dist/lite/lite/model/index.d.ts +4 -3
  288. package/dist/lite/lite/model/index.d.ts.map +1 -1
  289. package/dist/lite/lite/model/indexSettingsAsSearchParams.d.ts +2 -4
  290. package/dist/lite/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  291. package/dist/lite/lite/model/languages.d.ts.map +1 -1
  292. package/dist/lite/lite/model/listIndicesResponse.d.ts +1 -1
  293. package/dist/lite/lite/model/listIndicesResponse.d.ts.map +1 -1
  294. package/dist/lite/lite/model/matchedGeoLocation.d.ts.map +1 -1
  295. package/dist/lite/lite/model/params.d.ts.map +1 -1
  296. package/dist/lite/lite/model/personalization.d.ts.map +1 -1
  297. package/dist/lite/lite/model/promoteObjectID.d.ts.map +1 -1
  298. package/dist/lite/lite/model/promoteObjectIDs.d.ts.map +1 -1
  299. package/dist/lite/lite/model/rankingInfo.d.ts.map +1 -1
  300. package/dist/lite/lite/model/rule.d.ts.map +1 -1
  301. package/dist/lite/lite/model/searchForFacetsOptions.d.ts.map +1 -1
  302. package/dist/lite/lite/model/searchForHitsOptions.d.ts.map +1 -1
  303. package/dist/lite/lite/model/searchHits.d.ts +2 -2
  304. package/dist/lite/lite/model/searchHits.d.ts.map +1 -1
  305. package/dist/lite/lite/model/searchMethodParams.d.ts.map +1 -1
  306. package/dist/lite/lite/model/searchResponse.d.ts +1 -1
  307. package/dist/lite/lite/model/searchResponse.d.ts.map +1 -1
  308. package/dist/lite/lite/model/searchResponses.d.ts +1 -1
  309. package/dist/lite/lite/model/searchResponses.d.ts.map +1 -1
  310. package/dist/lite/lite/model/searchSynonymsResponse.d.ts.map +1 -1
  311. package/dist/lite/lite/model/snippetResultOption.d.ts.map +1 -1
  312. package/dist/lite/lite/model/source.d.ts.map +1 -1
  313. package/dist/lite/lite/model/standardEntries.d.ts.map +1 -1
  314. package/dist/lite/lite/model/synonymHit.d.ts.map +1 -1
  315. package/dist/lite/lite/model/synonymHitHighlightResult.d.ts.map +1 -1
  316. package/dist/lite/lite/model/timeRange.d.ts.map +1 -1
  317. package/dist/lite/lite/model/updatedRuleResponse.d.ts.map +1 -1
  318. package/dist/lite/lite/model/userId.d.ts.map +1 -1
  319. package/dist/lite/lite/model/value.d.ts.map +1 -1
  320. package/dist/lite/lite/src/liteClient.d.ts +12 -1
  321. package/dist/lite/lite/src/liteClient.d.ts.map +1 -1
  322. package/dist/lite/lite.cjs.js +14 -1
  323. package/dist/lite/lite.esm.browser.js +14 -1
  324. package/dist/lite/lite.esm.node.js +14 -1
  325. package/dist/lite/lite.umd.js +2 -2
  326. package/lite/builds/browser.ts +2 -2
  327. package/lite/builds/node.ts +2 -2
  328. package/lite/model/acl.ts +3 -0
  329. package/lite/model/addApiKeyResponse.ts +2 -1
  330. package/lite/model/apiKey.ts +7 -0
  331. package/lite/model/{attributeOrBuiltInOperation.ts → attributeToUpdate.ts} +1 -1
  332. package/lite/model/automaticFacetFilter.ts +2 -0
  333. package/lite/model/baseGetApiKeyResponse.ts +13 -0
  334. package/lite/model/baseIndexSettings.ts +13 -0
  335. package/lite/model/baseSearchParamsWithoutQuery.ts +32 -0
  336. package/lite/model/baseSearchResponse.ts +26 -2
  337. package/lite/model/browseResponse.ts +1 -1
  338. package/lite/model/builtInOperation.ts +1 -0
  339. package/lite/model/condition.ts +3 -0
  340. package/lite/model/consequence.ts +4 -0
  341. package/lite/model/consequenceQueryObject.ts +1 -0
  342. package/lite/model/dictionaryEntry.ts +5 -0
  343. package/lite/model/{createdAtObject.ts → distinct.ts} +4 -6
  344. package/lite/model/edit.ts +2 -0
  345. package/lite/model/facetOrdering.ts +1 -0
  346. package/lite/model/facetsStats.ts +3 -0
  347. package/lite/model/fetchedIndex.ts +10 -0
  348. package/lite/model/{key.ts → getApiKeyResponse.ts} +2 -2
  349. package/lite/model/highlightResultOption.ts +3 -0
  350. package/lite/model/hit.ts +5 -1
  351. package/lite/model/index.ts +4 -3
  352. package/lite/model/indexSettingsAsSearchParams.ts +43 -4
  353. package/lite/model/languages.ts +2 -0
  354. package/lite/model/listIndicesResponse.ts +2 -1
  355. package/lite/model/matchedGeoLocation.ts +2 -0
  356. package/lite/model/params.ts +3 -0
  357. package/lite/model/personalization.ts +2 -0
  358. package/lite/model/promoteObjectID.ts +1 -0
  359. package/lite/model/promoteObjectIDs.ts +1 -0
  360. package/lite/model/rankingInfo.ts +12 -0
  361. package/lite/model/rule.ts +5 -0
  362. package/lite/model/searchForFacetsOptions.ts +4 -0
  363. package/lite/model/searchForHitsOptions.ts +1 -0
  364. package/lite/model/searchHits.ts +2 -2
  365. package/lite/model/searchMethodParams.ts +1 -0
  366. package/lite/model/searchResponse.ts +2 -1
  367. package/lite/model/searchResponses.ts +1 -1
  368. package/lite/model/searchSynonymsResponse.ts +1 -0
  369. package/lite/model/snippetResultOption.ts +1 -0
  370. package/lite/model/source.ts +1 -0
  371. package/lite/model/standardEntries.ts +2 -0
  372. package/lite/model/synonymHit.ts +8 -0
  373. package/lite/model/synonymHitHighlightResult.ts +1 -0
  374. package/lite/model/timeRange.ts +1 -0
  375. package/lite/model/updatedRuleResponse.ts +2 -0
  376. package/lite/model/userId.ts +3 -0
  377. package/lite/model/value.ts +1 -0
  378. package/lite/src/liteClient.ts +22 -1
  379. package/package.json +9 -9
  380. package/dist/algoliasearch/lite/model/attributeOrBuiltInOperation.d.ts +0 -3
  381. package/dist/algoliasearch/lite/model/attributeOrBuiltInOperation.d.ts.map +0 -1
  382. package/dist/algoliasearch/lite/model/createdAtObject.d.ts +0 -7
  383. package/dist/algoliasearch/lite/model/createdAtObject.d.ts.map +0 -1
  384. package/dist/algoliasearch/lite/model/key.d.ts +0 -4
  385. package/dist/algoliasearch/lite/model/key.d.ts.map +0 -1
  386. package/dist/client-search/model/attributeOrBuiltInOperation.d.ts +0 -3
  387. package/dist/client-search/model/attributeOrBuiltInOperation.d.ts.map +0 -1
  388. package/dist/client-search/model/batchOperation.d.ts.map +0 -1
  389. package/dist/client-search/model/createdAtObject.d.ts +0 -7
  390. package/dist/client-search/model/createdAtObject.d.ts.map +0 -1
  391. package/dist/client-search/model/key.d.ts +0 -4
  392. package/dist/client-search/model/key.d.ts.map +0 -1
  393. package/dist/client-search/model/multipleBatchOperation.d.ts.map +0 -1
  394. package/dist/client-search/model/multipleGetObjectsParams.d.ts.map +0 -1
  395. package/dist/lite/lite/model/attributeOrBuiltInOperation.d.ts +0 -3
  396. package/dist/lite/lite/model/attributeOrBuiltInOperation.d.ts.map +0 -1
  397. package/dist/lite/lite/model/createdAtObject.d.ts +0 -7
  398. package/dist/lite/lite/model/createdAtObject.d.ts.map +0 -1
  399. package/dist/lite/lite/model/key.d.ts +0 -4
  400. package/dist/lite/lite/model/key.d.ts.map +0 -1
@@ -2,6 +2,7 @@
2
2
 
3
3
  import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
4
4
  import type { AlternativesAsExact } from './alternativesAsExact';
5
+ import type { Distinct } from './distinct';
5
6
  import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
6
7
  import type { IgnorePlurals } from './ignorePlurals';
7
8
  import type { QueryType } from './queryType';
@@ -15,147 +16,185 @@ export type IndexSettingsAsSearchParams = {
15
16
  * The complete list of attributes that will be used for faceting.
16
17
  */
17
18
  attributesForFaceting?: string[];
19
+
18
20
  /**
19
21
  * List of attributes that can\'t be retrieved at query time.
20
22
  */
21
23
  unretrievableAttributes?: string[];
24
+
22
25
  /**
23
26
  * This parameter controls which attributes to retrieve and which not to retrieve.
24
27
  */
25
28
  attributesToRetrieve?: string[];
29
+
26
30
  /**
27
31
  * Restricts a given query to look in only a subset of your searchable attributes.
28
32
  */
29
33
  restrictSearchableAttributes?: string[];
34
+
30
35
  /**
31
36
  * Controls how Algolia should sort your results.
32
37
  */
33
38
  ranking?: string[];
39
+
34
40
  /**
35
41
  * Specifies the custom ranking criterion.
36
42
  */
37
43
  customRanking?: string[];
44
+
38
45
  /**
39
46
  * Controls the relevancy threshold below which less relevant results aren\'t included in the results.
40
47
  */
41
48
  relevancyStrictness?: number;
49
+
42
50
  /**
43
51
  * List of attributes to highlight.
44
52
  */
45
53
  attributesToHighlight?: string[];
54
+
46
55
  /**
47
56
  * List of attributes to snippet, with an optional maximum number of words to snippet.
48
57
  */
49
58
  attributesToSnippet?: string[];
59
+
50
60
  /**
51
61
  * The HTML string to insert before the highlighted parts in all highlight and snippet results.
52
62
  */
53
63
  highlightPreTag?: string;
64
+
54
65
  /**
55
66
  * The HTML string to insert after the highlighted parts in all highlight and snippet results.
56
67
  */
57
68
  highlightPostTag?: string;
69
+
58
70
  /**
59
71
  * String used as an ellipsis indicator when a snippet is truncated.
60
72
  */
61
73
  snippetEllipsisText?: string;
74
+
62
75
  /**
63
76
  * Restrict highlighting and snippeting to items that matched the query.
64
77
  */
65
78
  restrictHighlightAndSnippetArrays?: boolean;
79
+
66
80
  /**
67
81
  * Set the number of hits per page.
68
82
  */
69
83
  hitsPerPage?: number;
84
+
70
85
  /**
71
86
  * Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
72
87
  */
73
88
  minWordSizefor1Typo?: number;
89
+
74
90
  /**
75
91
  * Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
76
92
  */
77
93
  minWordSizefor2Typos?: number;
94
+
78
95
  typoTolerance?: TypoTolerance;
96
+
79
97
  /**
80
98
  * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
81
99
  */
82
100
  allowTyposOnNumericTokens?: boolean;
101
+
83
102
  /**
84
103
  * List of attributes on which you want to disable typo tolerance.
85
104
  */
86
105
  disableTypoToleranceOnAttributes?: string[];
106
+
87
107
  ignorePlurals?: IgnorePlurals;
108
+
88
109
  removeStopWords?: RemoveStopWords;
110
+
89
111
  /**
90
112
  * List of characters that the engine shouldn\'t automatically normalize.
91
113
  */
92
114
  keepDiacriticsOnCharacters?: string;
115
+
93
116
  /**
94
117
  * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
95
118
  */
96
119
  queryLanguages?: string[];
120
+
97
121
  /**
98
122
  * Splits compound words into their composing atoms in the query.
99
123
  */
100
124
  decompoundQuery?: boolean;
125
+
101
126
  /**
102
127
  * Whether Rules should be globally enabled.
103
128
  */
104
129
  enableRules?: boolean;
130
+
105
131
  /**
106
132
  * Enable the Personalization feature.
107
133
  */
108
134
  enablePersonalization?: boolean;
135
+
109
136
  queryType?: QueryType;
137
+
110
138
  removeWordsIfNoResults?: RemoveWordsIfNoResults;
139
+
111
140
  /**
112
141
  * Enables the advanced query syntax.
113
142
  */
114
143
  advancedSyntax?: boolean;
144
+
115
145
  /**
116
146
  * A list of words that should be considered as optional when found in the query.
117
147
  */
118
148
  optionalWords?: string[];
149
+
119
150
  /**
120
151
  * List of attributes on which you want to disable the exact ranking criterion.
121
152
  */
122
153
  disableExactOnAttributes?: string[];
154
+
123
155
  exactOnSingleWordQuery?: ExactOnSingleWordQuery;
156
+
124
157
  /**
125
158
  * List of alternatives that should be considered an exact match by the exact ranking criterion.
126
159
  */
127
160
  alternativesAsExact?: AlternativesAsExact[];
161
+
128
162
  /**
129
163
  * Allows you to specify which advanced syntax features are active when ‘advancedSyntax\' is enabled.
130
164
  */
131
165
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
132
- /**
133
- * Enables de-duplication or grouping of results.
134
- */
135
- distinct?: number;
166
+
167
+ distinct?: Distinct;
168
+
136
169
  /**
137
170
  * Whether to take into account an index\'s synonyms for a particular search.
138
171
  */
139
172
  synonyms?: boolean;
173
+
140
174
  /**
141
175
  * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
142
176
  */
143
177
  replaceSynonymsInHighlight?: boolean;
178
+
144
179
  /**
145
180
  * Precision of the proximity ranking criterion.
146
181
  */
147
182
  minProximity?: number;
183
+
148
184
  /**
149
185
  * Choose which fields to return in the API response. This parameters applies to search and browse queries.
150
186
  */
151
187
  responseFields?: string[];
188
+
152
189
  /**
153
190
  * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
154
191
  */
155
192
  maxFacetHits?: number;
193
+
156
194
  /**
157
195
  * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
158
196
  */
159
197
  attributeCriteriaComputedByMinProximity?: boolean;
198
+
160
199
  renderingContent?: RenderingContent;
161
200
  };
@@ -7,6 +7,8 @@ import type { DictionaryLanguage } from './dictionaryLanguage';
7
7
  */
8
8
  export type Languages = {
9
9
  plurals: DictionaryLanguage | null;
10
+
10
11
  stopwords: DictionaryLanguage | null;
12
+
11
13
  compounds: DictionaryLanguage | null;
12
14
  };
@@ -6,7 +6,8 @@ export type ListIndicesResponse = {
6
6
  /**
7
7
  * List of the fetched indices.
8
8
  */
9
- items?: FetchedIndex[];
9
+ items: FetchedIndex[];
10
+
10
11
  /**
11
12
  * Number of pages.
12
13
  */
@@ -5,10 +5,12 @@ export type MatchedGeoLocation = {
5
5
  * Latitude of the matched location.
6
6
  */
7
7
  lat?: number;
8
+
8
9
  /**
9
10
  * Longitude of the matched location.
10
11
  */
11
12
  lng?: number;
13
+
12
14
  /**
13
15
  * Distance between the matched location and the search location (in meters).
14
16
  */
@@ -9,7 +9,10 @@ import type { RenderingContent } from './renderingContent';
9
9
  */
10
10
  export type Params = {
11
11
  query?: ConsequenceQuery;
12
+
12
13
  automaticFacetFilters?: AutomaticFacetFilters;
14
+
13
15
  automaticOptionalFacetFilters?: AutomaticFacetFilters;
16
+
14
17
  renderingContent?: RenderingContent;
15
18
  };
@@ -5,10 +5,12 @@ export type Personalization = {
5
5
  * The score of the filters.
6
6
  */
7
7
  filtersScore?: number;
8
+
8
9
  /**
9
10
  * The score of the ranking.
10
11
  */
11
12
  rankingScore?: number;
13
+
12
14
  /**
13
15
  * The score of the event.
14
16
  */
@@ -8,6 +8,7 @@ export type PromoteObjectID = {
8
8
  * Unique identifier of the object to promote.
9
9
  */
10
10
  objectID: string;
11
+
11
12
  /**
12
13
  * The position to promote the objects to (zero-based). If you pass objectIDs, the objects are placed at this position as a group. For example, if you pass four objectIDs to position 0, the objects take the first four positions.
13
14
  */
@@ -8,6 +8,7 @@ export type PromoteObjectIDs = {
8
8
  * Array of unique identifiers of the objects to promote.
9
9
  */
10
10
  objectIDs: string[];
11
+
11
12
  /**
12
13
  * The position to promote the objects to (zero-based). If you pass objectIDs, the objects are placed at this position as a group. For example, if you pass four objectIDs to position 0, the objects take the first four positions.
13
14
  */
@@ -8,44 +8,56 @@ export type RankingInfo = {
8
8
  * This field is reserved for advanced usage.
9
9
  */
10
10
  filters: number;
11
+
11
12
  /**
12
13
  * Position of the most important matched attribute in the attributes to index list.
13
14
  */
14
15
  firstMatchedWord: number;
16
+
15
17
  /**
16
18
  * Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters).
17
19
  */
18
20
  geoDistance: number;
21
+
19
22
  /**
20
23
  * Precision used when computing the geo distance, in meters.
21
24
  */
22
25
  geoPrecision?: number;
26
+
23
27
  matchedGeoLocation?: MatchedGeoLocation;
28
+
24
29
  personalization?: Personalization;
30
+
25
31
  /**
26
32
  * Number of exactly matched words.
27
33
  */
28
34
  nbExactWords: number;
35
+
29
36
  /**
30
37
  * Number of typos encountered when matching the record.
31
38
  */
32
39
  nbTypos: number;
40
+
33
41
  /**
34
42
  * Present and set to true if a Rule promoted the hit.
35
43
  */
36
44
  promoted: boolean;
45
+
37
46
  /**
38
47
  * When the query contains more than one word, the sum of the distances between matched words (in meters).
39
48
  */
40
49
  proximityDistance?: number;
50
+
41
51
  /**
42
52
  * Custom ranking for the object, expressed as a single integer value.
43
53
  */
44
54
  userScore: number;
55
+
45
56
  /**
46
57
  * Number of matched words, including prefixes and typos.
47
58
  */
48
59
  words: number;
60
+
49
61
  /**
50
62
  * Wether the record are promoted by the re-ranking strategy.
51
63
  */
@@ -12,19 +12,24 @@ export type Rule = {
12
12
  * Unique identifier of the object.
13
13
  */
14
14
  objectID: string;
15
+
15
16
  /**
16
17
  * A list of conditions that should apply to activate a Rule. You can use up to 25 conditions per Rule.
17
18
  */
18
19
  conditions?: Condition[];
20
+
19
21
  consequence?: Consequence;
22
+
20
23
  /**
21
24
  * This field is intended for Rule management purposes, in particular to ease searching for Rules and presenting them to human readers. It\'s not interpreted by the API.
22
25
  */
23
26
  description?: string;
27
+
24
28
  /**
25
29
  * Whether the Rule is enabled. Disabled Rules remain in the index, but aren\'t applied at query time.
26
30
  */
27
31
  enabled?: boolean;
32
+
28
33
  /**
29
34
  * By default, Rules are permanently valid. When validity periods are specified, the Rule applies only during those periods; it\'s ignored the rest of the time. The list must not be empty.
30
35
  */
@@ -7,17 +7,21 @@ export type SearchForFacetsOptions = {
7
7
  * The `facet` name.
8
8
  */
9
9
  facet: string;
10
+
10
11
  /**
11
12
  * The Algolia index name.
12
13
  */
13
14
  indexName: string;
15
+
14
16
  /**
15
17
  * Text to search inside the facet\'s values.
16
18
  */
17
19
  facetQuery?: string;
20
+
18
21
  /**
19
22
  * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
20
23
  */
21
24
  maxFacetHits?: number;
25
+
22
26
  type: SearchTypeFacet;
23
27
  };
@@ -7,5 +7,6 @@ export type SearchForHitsOptions = {
7
7
  * The Algolia index name.
8
8
  */
9
9
  indexName: string;
10
+
10
11
  type?: SearchTypeDefault;
11
12
  } & { facet?: never; maxFacetHits?: never; facetQuery?: never };
@@ -2,6 +2,6 @@
2
2
 
3
3
  import type { Hit } from './hit';
4
4
 
5
- export type SearchHits<T> = {
6
- hits?: Array<Hit<T>>;
5
+ export type SearchHits<T = Record<string, any>> = {
6
+ hits: Array<Hit<T>>;
7
7
  };
@@ -5,5 +5,6 @@ import type { SearchStrategy } from './searchStrategy';
5
5
 
6
6
  export type SearchMethodParams = {
7
7
  requests: SearchQuery[];
8
+
8
9
  strategy?: SearchStrategy;
9
10
  };
@@ -3,4 +3,5 @@
3
3
  import type { BaseSearchResponse } from './baseSearchResponse';
4
4
  import type { SearchHits } from './searchHits';
5
5
 
6
- export type SearchResponse<T> = BaseSearchResponse & SearchHits<T>;
6
+ export type SearchResponse<T = Record<string, any>> = BaseSearchResponse &
7
+ SearchHits<T>;
@@ -2,6 +2,6 @@
2
2
 
3
3
  import type { SearchResponse } from './searchResponse';
4
4
 
5
- export type SearchResponses<T> = {
5
+ export type SearchResponses<T = Record<string, any>> = {
6
6
  results: Array<SearchResponse<T>>;
7
7
  };
@@ -7,6 +7,7 @@ export type SearchSynonymsResponse = Record<string, any> & {
7
7
  * Array of synonym objects.
8
8
  */
9
9
  hits: SynonymHit[];
10
+
10
11
  /**
11
12
  * Number of hits that the search query matched.
12
13
  */
@@ -10,5 +10,6 @@ export type SnippetResultOption = {
10
10
  * Markup text with occurrences highlighted.
11
11
  */
12
12
  value: string;
13
+
13
14
  matchLevel: MatchLevel;
14
15
  };
@@ -8,6 +8,7 @@ export type Source = {
8
8
  * The IP range of the source.
9
9
  */
10
10
  source: string;
11
+
11
12
  /**
12
13
  * The description of the source.
13
14
  */
@@ -8,10 +8,12 @@ export type StandardEntries = {
8
8
  * Language ISO code.
9
9
  */
10
10
  plurals?: Record<string, boolean> | null;
11
+
11
12
  /**
12
13
  * Language ISO code.
13
14
  */
14
15
  stopwords?: Record<string, boolean> | null;
16
+
15
17
  /**
16
18
  * Language ISO code.
17
19
  */
@@ -11,30 +11,38 @@ export type SynonymHit = {
11
11
  * Unique identifier of the synonym object to be created or updated.
12
12
  */
13
13
  objectID: string;
14
+
14
15
  type: SynonymType;
16
+
15
17
  /**
16
18
  * Words or phrases to be considered equivalent.
17
19
  */
18
20
  synonyms?: string[];
21
+
19
22
  /**
20
23
  * Word or phrase to appear in query strings (for onewaysynonym).
21
24
  */
22
25
  input?: string;
26
+
23
27
  /**
24
28
  * Word or phrase to appear in query strings (for altcorrection1 and altcorrection2).
25
29
  */
26
30
  word?: string;
31
+
27
32
  /**
28
33
  * Words to be matched in records.
29
34
  */
30
35
  corrections?: string[];
36
+
31
37
  /**
32
38
  * Token to be put inside records.
33
39
  */
34
40
  placeholder?: string;
41
+
35
42
  /**
36
43
  * List of query words that will match the token.
37
44
  */
38
45
  replacements?: string[];
46
+
39
47
  _highlightResult?: SynonymHitHighlightResult;
40
48
  };
@@ -10,5 +10,6 @@ export type SynonymHitHighlightResult = {
10
10
  * Show highlighted section and words matched on a query.
11
11
  */
12
12
  type?: Record<string, HighlightResult>;
13
+
13
14
  synonyms?: Array<Record<string, HighlightResult>>;
14
15
  };
@@ -5,6 +5,7 @@ export type TimeRange = {
5
5
  * Lower bound of the time range (Unix timestamp).
6
6
  */
7
7
  from: number;
8
+
8
9
  /**
9
10
  * Upper bound of the time range (Unix timestamp).
10
11
  */
@@ -5,10 +5,12 @@ export type UpdatedRuleResponse = {
5
5
  * Unique identifier of the object.
6
6
  */
7
7
  objectID: string;
8
+
8
9
  /**
9
10
  * Date of last update (ISO-8601 format).
10
11
  */
11
12
  updatedAt: string;
13
+
12
14
  /**
13
15
  * TaskID of the task to wait for.
14
16
  */
@@ -8,14 +8,17 @@ export type UserId = {
8
8
  * UserID of the user.
9
9
  */
10
10
  userID: string;
11
+
11
12
  /**
12
13
  * Cluster on which the user is assigned.
13
14
  */
14
15
  clusterName: string;
16
+
15
17
  /**
16
18
  * Number of records belonging to the user.
17
19
  */
18
20
  nbRecords: number;
21
+
19
22
  /**
20
23
  * Data size used by the user.
21
24
  */
@@ -7,5 +7,6 @@ export type Value = {
7
7
  * Pinned order of facet lists.
8
8
  */
9
9
  order?: string[];
10
+
10
11
  sortRemainingBy?: SortRemainingBy;
11
12
  };
@@ -22,7 +22,7 @@ import type {
22
22
  import type { SearchMethodParams } from '../model/searchMethodParams';
23
23
  import type { SearchResponses } from '../model/searchResponses';
24
24
 
25
- export const apiClientVersion = '5.0.0-alpha.1';
25
+ export const apiClientVersion = '5.0.0-alpha.4';
26
26
 
27
27
  function getDefaultHosts(appId: string): Host[] {
28
28
  return (
@@ -89,12 +89,29 @@ export function createLiteClient({
89
89
 
90
90
  return {
91
91
  transporter,
92
+
93
+ /**
94
+ * The `appId` currently in use.
95
+ */
96
+ appId: appIdOption,
97
+
98
+ /**
99
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
100
+ */
101
+ clearCache(): Promise<void> {
102
+ return Promise.all([
103
+ transporter.requestsCache.clear(),
104
+ transporter.responsesCache.clear(),
105
+ ]).then(() => undefined);
106
+ },
107
+
92
108
  /**
93
109
  * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
94
110
  */
95
111
  get _ua(): string {
96
112
  return transporter.algoliaAgent.value;
97
113
  },
114
+
98
115
  /**
99
116
  * Adds a `segment` to the `x-algolia-agent` sent with every requests.
100
117
  *
@@ -104,6 +121,7 @@ export function createLiteClient({
104
121
  addAlgoliaAgent(segment: string, version?: string): void {
105
122
  transporter.algoliaAgent.add({ segment, version });
106
123
  },
124
+
107
125
  /**
108
126
  * This method allow you to send requests to the Algolia REST API.
109
127
  *
@@ -204,4 +222,7 @@ export function createLiteClient({
204
222
  };
205
223
  }
206
224
 
225
+ /**
226
+ * The client type.
227
+ */
207
228
  export type LiteClient = ReturnType<typeof createLiteClient>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "algoliasearch",
3
- "version": "5.0.0-alpha.1",
3
+ "version": "5.0.0-alpha.4",
4
4
  "description": "A fully-featured and blazing-fast JavaScript API client to interact with Algolia API.",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
@@ -58,17 +58,17 @@
58
58
  "test": "jest"
59
59
  },
60
60
  "dependencies": {
61
- "@algolia/client-abtesting": "5.0.0-alpha.1",
62
- "@algolia/client-analytics": "5.0.0-alpha.1",
63
- "@algolia/client-common": "5.0.0-alpha.1",
64
- "@algolia/client-personalization": "5.0.0-alpha.1",
65
- "@algolia/client-search": "5.0.0-alpha.1",
66
- "@algolia/requester-browser-xhr": "5.0.0-alpha.1",
67
- "@algolia/requester-node-http": "5.0.0-alpha.1"
61
+ "@algolia/client-abtesting": "5.0.0-alpha.4",
62
+ "@algolia/client-analytics": "5.0.0-alpha.4",
63
+ "@algolia/client-common": "5.0.0-alpha.4",
64
+ "@algolia/client-personalization": "5.0.0-alpha.4",
65
+ "@algolia/client-search": "5.0.0-alpha.4",
66
+ "@algolia/requester-browser-xhr": "5.0.0-alpha.4",
67
+ "@algolia/requester-node-http": "5.0.0-alpha.4"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@types/jest": "28.1.6",
71
- "@types/node": "16.11.45",
71
+ "@types/node": "16.11.47",
72
72
  "jest": "28.1.3",
73
73
  "ts-jest": "28.0.7",
74
74
  "typescript": "4.7.4"
@@ -1,3 +0,0 @@
1
- import type { BuiltInOperation } from './builtInOperation';
2
- export declare type AttributeOrBuiltInOperation = BuiltInOperation | string;
3
- //# sourceMappingURL=attributeOrBuiltInOperation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attributeOrBuiltInOperation.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/attributeOrBuiltInOperation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,oBAAY,2BAA2B,GAAG,gBAAgB,GAAG,MAAM,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare type CreatedAtObject = {
2
- /**
3
- * Date of creation (ISO-8601 format).
4
- */
5
- createdAt: string;
6
- };
7
- //# sourceMappingURL=createdAtObject.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createdAtObject.d.ts","sourceRoot":"","sources":["../../../../../../packages/algoliasearch/lite/model/createdAtObject.ts"],"names":[],"mappings":"AAEA,oBAAY,eAAe,GAAG;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}