algoliasearch 5.0.0-beta.4 → 5.0.0-beta.6

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 (337) hide show
  1. package/LICENSE +21 -0
  2. package/builds/browser.ts +13 -2
  3. package/builds/models.ts +136 -6
  4. package/builds/node.ts +37 -4
  5. package/dist/algoliasearch/builds/browser.d.ts +77 -72
  6. package/dist/algoliasearch/builds/browser.d.ts.map +1 -1
  7. package/dist/algoliasearch/builds/models.d.ts +4 -2
  8. package/dist/algoliasearch/builds/models.d.ts.map +1 -1
  9. package/dist/algoliasearch/builds/node.d.ts +77 -72
  10. package/dist/algoliasearch/builds/node.d.ts.map +1 -1
  11. package/dist/algoliasearch.cjs +454 -21
  12. package/dist/algoliasearch.esm.browser.js +438 -22
  13. package/dist/algoliasearch.esm.node.js +454 -21
  14. package/dist/algoliasearch.umd.js +2 -2
  15. package/dist/client-abtesting/src/abtestingClient.d.ts +1 -1
  16. package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
  17. package/dist/client-analytics/src/analyticsClient.d.ts +1 -1
  18. package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
  19. package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
  20. package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
  21. package/dist/client-search/model/baseIndexSettings.d.ts +2 -2
  22. package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
  23. package/dist/client-search/model/baseSearchResponse.d.ts +2 -2
  24. package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
  25. package/dist/client-search/model/clientMethodProps.d.ts +15 -2
  26. package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
  27. package/dist/client-search/model/fetchedIndex.d.ts +4 -0
  28. package/dist/client-search/model/fetchedIndex.d.ts.map +1 -1
  29. package/dist/client-search/model/index.d.ts +1 -1
  30. package/dist/client-search/model/{securedAPIKeyRestrictions.d.ts → securedApiKeyRestrictions.d.ts} +2 -2
  31. package/dist/client-search/model/{securedAPIKeyRestrictions.d.ts.map → securedApiKeyRestrictions.d.ts.map} +1 -1
  32. package/dist/client-search/model/value.d.ts +4 -0
  33. package/dist/client-search/model/value.d.ts.map +1 -1
  34. package/dist/client-search/src/searchClient.d.ts +40 -9
  35. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  36. package/dist/lite/builds/browser.d.ts +4 -3
  37. package/dist/lite/builds/browser.d.ts.map +1 -1
  38. package/dist/lite/builds/node.d.ts +4 -3
  39. package/dist/lite/builds/node.d.ts.map +1 -1
  40. package/dist/lite/lite.cjs +38 -1
  41. package/dist/lite/lite.esm.browser.js +39 -3
  42. package/dist/lite/lite.esm.node.js +38 -1
  43. package/dist/lite/lite.umd.js +2 -2
  44. package/dist/lite/model/baseIndexSettings.d.ts +2 -2
  45. package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
  46. package/dist/lite/model/baseRecommendRequest.d.ts +17 -0
  47. package/dist/lite/model/baseRecommendRequest.d.ts.map +1 -0
  48. package/dist/lite/model/baseSearchResponse.d.ts +2 -2
  49. package/dist/lite/model/baseSearchResponse.d.ts.map +1 -1
  50. package/dist/lite/model/boughtTogetherQuery.d.ts +4 -0
  51. package/dist/lite/model/boughtTogetherQuery.d.ts.map +1 -0
  52. package/dist/lite/model/clientMethodProps.d.ts +7 -0
  53. package/dist/lite/model/clientMethodProps.d.ts.map +1 -1
  54. package/dist/lite/model/fallbackParams.d.ts +3 -0
  55. package/dist/lite/model/fallbackParams.d.ts.map +1 -0
  56. package/dist/lite/model/fbtModel.d.ts +5 -0
  57. package/dist/lite/model/fbtModel.d.ts.map +1 -0
  58. package/dist/lite/model/frequentlyBoughtTogether.d.ts +9 -0
  59. package/dist/lite/model/frequentlyBoughtTogether.d.ts.map +1 -0
  60. package/dist/lite/model/getRecommendationsParams.d.ts +11 -0
  61. package/dist/lite/model/getRecommendationsParams.d.ts.map +1 -0
  62. package/dist/lite/model/getRecommendationsResponse.d.ts +5 -0
  63. package/dist/lite/model/getRecommendationsResponse.d.ts.map +1 -0
  64. package/dist/lite/model/index.d.ts +28 -1
  65. package/dist/lite/model/index.d.ts.map +1 -1
  66. package/dist/lite/model/lookingSimilar.d.ts +11 -0
  67. package/dist/lite/model/lookingSimilar.d.ts.map +1 -0
  68. package/dist/lite/model/lookingSimilarModel.d.ts +5 -0
  69. package/dist/lite/model/lookingSimilarModel.d.ts.map +1 -0
  70. package/dist/lite/model/lookingSimilarQuery.d.ts +4 -0
  71. package/dist/lite/model/lookingSimilarQuery.d.ts.map +1 -0
  72. package/dist/lite/model/recommendHit.d.ts +27 -0
  73. package/dist/lite/model/recommendHit.d.ts.map +1 -0
  74. package/dist/lite/model/recommendationsHit.d.ts +4 -0
  75. package/dist/lite/model/recommendationsHit.d.ts.map +1 -0
  76. package/dist/lite/model/recommendationsHits.d.ts +5 -0
  77. package/dist/lite/model/recommendationsHits.d.ts.map +1 -0
  78. package/dist/lite/model/recommendationsRequest.d.ts +8 -0
  79. package/dist/lite/model/recommendationsRequest.d.ts.map +1 -0
  80. package/dist/lite/model/recommendationsResults.d.ts +4 -0
  81. package/dist/lite/model/recommendationsResults.d.ts.map +1 -0
  82. package/dist/lite/model/recommendedForYou.d.ts +7 -0
  83. package/dist/lite/model/recommendedForYou.d.ts.map +1 -0
  84. package/dist/lite/model/recommendedForYouModel.d.ts +5 -0
  85. package/dist/lite/model/recommendedForYouModel.d.ts.map +1 -0
  86. package/dist/lite/model/recommendedForYouQuery.d.ts +4 -0
  87. package/dist/lite/model/recommendedForYouQuery.d.ts.map +1 -0
  88. package/dist/lite/model/relatedModel.d.ts +5 -0
  89. package/dist/lite/model/relatedModel.d.ts.map +1 -0
  90. package/dist/lite/model/relatedProducts.d.ts +11 -0
  91. package/dist/lite/model/relatedProducts.d.ts.map +1 -0
  92. package/dist/lite/model/relatedQuery.d.ts +4 -0
  93. package/dist/lite/model/relatedQuery.d.ts.map +1 -0
  94. package/dist/lite/model/searchParams.d.ts +1 -2
  95. package/dist/lite/model/searchParams.d.ts.map +1 -1
  96. package/dist/lite/model/trendingFacetHit.d.ts +18 -0
  97. package/dist/lite/model/trendingFacetHit.d.ts.map +1 -0
  98. package/dist/lite/model/trendingFacets.d.ts +11 -0
  99. package/dist/lite/model/trendingFacets.d.ts.map +1 -0
  100. package/dist/lite/model/trendingFacetsModel.d.ts +5 -0
  101. package/dist/lite/model/trendingFacetsModel.d.ts.map +1 -0
  102. package/dist/lite/model/trendingFacetsQuery.d.ts +4 -0
  103. package/dist/lite/model/trendingFacetsQuery.d.ts.map +1 -0
  104. package/dist/lite/model/trendingItems.d.ts +15 -0
  105. package/dist/lite/model/trendingItems.d.ts.map +1 -0
  106. package/dist/lite/model/trendingItemsModel.d.ts +5 -0
  107. package/dist/lite/model/trendingItemsModel.d.ts.map +1 -0
  108. package/dist/lite/model/trendingItemsQuery.d.ts +4 -0
  109. package/dist/lite/model/trendingItemsQuery.d.ts.map +1 -0
  110. package/dist/lite/model/value.d.ts +4 -0
  111. package/dist/lite/model/value.d.ts.map +1 -1
  112. package/dist/lite/src/liteClient.d.ts +14 -2
  113. package/dist/lite/src/liteClient.d.ts.map +1 -1
  114. package/dist/recommend/model/advancedSyntaxFeatures.d.ts +2 -0
  115. package/dist/recommend/model/advancedSyntaxFeatures.d.ts.map +1 -0
  116. package/dist/recommend/model/alternativesAsExact.d.ts +2 -0
  117. package/dist/recommend/model/alternativesAsExact.d.ts.map +1 -0
  118. package/dist/recommend/model/aroundPrecision.d.ts +6 -0
  119. package/dist/recommend/model/aroundPrecision.d.ts.map +1 -0
  120. package/dist/recommend/model/aroundPrecisionFromValueInner.d.ts +14 -0
  121. package/dist/recommend/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  122. package/dist/recommend/model/aroundRadius.d.ts +6 -0
  123. package/dist/recommend/model/aroundRadius.d.ts.map +1 -0
  124. package/dist/recommend/model/aroundRadiusAll.d.ts +5 -0
  125. package/dist/recommend/model/aroundRadiusAll.d.ts.map +1 -0
  126. package/dist/recommend/model/autoFacetFilter.d.ts +14 -0
  127. package/dist/recommend/model/autoFacetFilter.d.ts.map +1 -0
  128. package/dist/recommend/model/baseRecommendRequest.d.ts +17 -0
  129. package/dist/recommend/model/baseRecommendRequest.d.ts.map +1 -0
  130. package/dist/recommend/model/baseSearchParams.d.ts +4 -0
  131. package/dist/recommend/model/baseSearchParams.d.ts.map +1 -0
  132. package/dist/recommend/model/baseSearchParamsWithoutQuery.d.ts +116 -0
  133. package/dist/recommend/model/baseSearchParamsWithoutQuery.d.ts.map +1 -0
  134. package/dist/recommend/model/baseSearchResponse.d.ts +110 -0
  135. package/dist/recommend/model/baseSearchResponse.d.ts.map +1 -0
  136. package/dist/recommend/model/boughtTogetherQuery.d.ts +4 -0
  137. package/dist/recommend/model/boughtTogetherQuery.d.ts.map +1 -0
  138. package/dist/recommend/model/clientMethodProps.d.ts +135 -0
  139. package/dist/recommend/model/clientMethodProps.d.ts.map +1 -0
  140. package/dist/recommend/model/condition.d.ts +14 -0
  141. package/dist/recommend/model/condition.d.ts.map +1 -0
  142. package/dist/recommend/model/consequence.d.ts +18 -0
  143. package/dist/recommend/model/consequence.d.ts.map +1 -0
  144. package/dist/recommend/model/deletedAtResponse.d.ts +14 -0
  145. package/dist/recommend/model/deletedAtResponse.d.ts.map +1 -0
  146. package/dist/recommend/model/distinct.d.ts +5 -0
  147. package/dist/recommend/model/distinct.d.ts.map +1 -0
  148. package/dist/recommend/model/errorBase.d.ts +7 -0
  149. package/dist/recommend/model/errorBase.d.ts.map +1 -0
  150. package/dist/recommend/model/exactOnSingleWordQuery.d.ts +5 -0
  151. package/dist/recommend/model/exactOnSingleWordQuery.d.ts.map +1 -0
  152. package/dist/recommend/model/exhaustive.d.ts +26 -0
  153. package/dist/recommend/model/exhaustive.d.ts.map +1 -0
  154. package/dist/recommend/model/facetFilters.d.ts +5 -0
  155. package/dist/recommend/model/facetFilters.d.ts.map +1 -0
  156. package/dist/recommend/model/facetOrdering.d.ts +13 -0
  157. package/dist/recommend/model/facetOrdering.d.ts.map +1 -0
  158. package/dist/recommend/model/facets.d.ts +10 -0
  159. package/dist/recommend/model/facets.d.ts.map +1 -0
  160. package/dist/recommend/model/facetsStats.d.ts +19 -0
  161. package/dist/recommend/model/facetsStats.d.ts.map +1 -0
  162. package/dist/recommend/model/fallbackParams.d.ts +3 -0
  163. package/dist/recommend/model/fallbackParams.d.ts.map +1 -0
  164. package/dist/recommend/model/fbtModel.d.ts +5 -0
  165. package/dist/recommend/model/fbtModel.d.ts.map +1 -0
  166. package/dist/recommend/model/frequentlyBoughtTogether.d.ts +9 -0
  167. package/dist/recommend/model/frequentlyBoughtTogether.d.ts.map +1 -0
  168. package/dist/recommend/model/getRecommendTaskResponse.d.ts +5 -0
  169. package/dist/recommend/model/getRecommendTaskResponse.d.ts.map +1 -0
  170. package/dist/recommend/model/getRecommendationsParams.d.ts +11 -0
  171. package/dist/recommend/model/getRecommendationsParams.d.ts.map +1 -0
  172. package/dist/recommend/model/getRecommendationsResponse.d.ts +5 -0
  173. package/dist/recommend/model/getRecommendationsResponse.d.ts.map +1 -0
  174. package/dist/recommend/model/hideConsequenceObject.d.ts +10 -0
  175. package/dist/recommend/model/hideConsequenceObject.d.ts.map +1 -0
  176. package/dist/recommend/model/highlightResult.d.ts +3 -0
  177. package/dist/recommend/model/highlightResult.d.ts.map +1 -0
  178. package/dist/recommend/model/highlightResultOption.d.ts +20 -0
  179. package/dist/recommend/model/highlightResultOption.d.ts.map +1 -0
  180. package/dist/recommend/model/ignorePlurals.d.ts +6 -0
  181. package/dist/recommend/model/ignorePlurals.d.ts.map +1 -0
  182. package/dist/recommend/model/index.d.ts +92 -0
  183. package/dist/recommend/model/index.d.ts.map +1 -0
  184. package/dist/recommend/model/indexSettingsAsSearchParams.d.ts +160 -0
  185. package/dist/recommend/model/indexSettingsAsSearchParams.d.ts.map +1 -0
  186. package/dist/recommend/model/lookingSimilar.d.ts +11 -0
  187. package/dist/recommend/model/lookingSimilar.d.ts.map +1 -0
  188. package/dist/recommend/model/lookingSimilarModel.d.ts +5 -0
  189. package/dist/recommend/model/lookingSimilarModel.d.ts.map +1 -0
  190. package/dist/recommend/model/lookingSimilarQuery.d.ts +4 -0
  191. package/dist/recommend/model/lookingSimilarQuery.d.ts.map +1 -0
  192. package/dist/recommend/model/matchLevel.d.ts +5 -0
  193. package/dist/recommend/model/matchLevel.d.ts.map +1 -0
  194. package/dist/recommend/model/matchedGeoLocation.d.ts +15 -0
  195. package/dist/recommend/model/matchedGeoLocation.d.ts.map +1 -0
  196. package/dist/recommend/model/mode.d.ts +5 -0
  197. package/dist/recommend/model/mode.d.ts.map +1 -0
  198. package/dist/recommend/model/numericFilters.d.ts +5 -0
  199. package/dist/recommend/model/numericFilters.d.ts.map +1 -0
  200. package/dist/recommend/model/optionalFilters.d.ts +5 -0
  201. package/dist/recommend/model/optionalFilters.d.ts.map +1 -0
  202. package/dist/recommend/model/paramsConsequence.d.ts +19 -0
  203. package/dist/recommend/model/paramsConsequence.d.ts.map +1 -0
  204. package/dist/recommend/model/personalization.d.ts +15 -0
  205. package/dist/recommend/model/personalization.d.ts.map +1 -0
  206. package/dist/recommend/model/promoteConsequenceObject.d.ts +14 -0
  207. package/dist/recommend/model/promoteConsequenceObject.d.ts.map +1 -0
  208. package/dist/recommend/model/queryType.d.ts +5 -0
  209. package/dist/recommend/model/queryType.d.ts.map +1 -0
  210. package/dist/recommend/model/rankingInfo.d.ts +54 -0
  211. package/dist/recommend/model/rankingInfo.d.ts.map +1 -0
  212. package/dist/recommend/model/reRankingApplyFilter.d.ts +5 -0
  213. package/dist/recommend/model/reRankingApplyFilter.d.ts.map +1 -0
  214. package/dist/recommend/model/recommendHit.d.ts +27 -0
  215. package/dist/recommend/model/recommendHit.d.ts.map +1 -0
  216. package/dist/recommend/model/recommendModels.d.ts +2 -0
  217. package/dist/recommend/model/recommendModels.d.ts.map +1 -0
  218. package/dist/recommend/model/recommendRule.d.ts +24 -0
  219. package/dist/recommend/model/recommendRule.d.ts.map +1 -0
  220. package/dist/recommend/model/recommendRuleMetadata.d.ts +10 -0
  221. package/dist/recommend/model/recommendRuleMetadata.d.ts.map +1 -0
  222. package/dist/recommend/model/recommendationsHit.d.ts +4 -0
  223. package/dist/recommend/model/recommendationsHit.d.ts.map +1 -0
  224. package/dist/recommend/model/recommendationsHits.d.ts +5 -0
  225. package/dist/recommend/model/recommendationsHits.d.ts.map +1 -0
  226. package/dist/recommend/model/recommendationsRequest.d.ts +8 -0
  227. package/dist/recommend/model/recommendationsRequest.d.ts.map +1 -0
  228. package/dist/recommend/model/recommendationsResults.d.ts +4 -0
  229. package/dist/recommend/model/recommendationsResults.d.ts.map +1 -0
  230. package/dist/recommend/model/recommendedForYou.d.ts +7 -0
  231. package/dist/recommend/model/recommendedForYou.d.ts.map +1 -0
  232. package/dist/recommend/model/recommendedForYouModel.d.ts +5 -0
  233. package/dist/recommend/model/recommendedForYouModel.d.ts.map +1 -0
  234. package/dist/recommend/model/recommendedForYouQuery.d.ts +4 -0
  235. package/dist/recommend/model/recommendedForYouQuery.d.ts.map +1 -0
  236. package/dist/recommend/model/redirect.d.ts +8 -0
  237. package/dist/recommend/model/redirect.d.ts.map +1 -0
  238. package/dist/recommend/model/redirectRuleIndexMetadata.d.ts +21 -0
  239. package/dist/recommend/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  240. package/dist/recommend/model/redirectRuleIndexMetadataData.d.ts +7 -0
  241. package/dist/recommend/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  242. package/dist/recommend/model/relatedModel.d.ts +5 -0
  243. package/dist/recommend/model/relatedModel.d.ts.map +1 -0
  244. package/dist/recommend/model/relatedProducts.d.ts +11 -0
  245. package/dist/recommend/model/relatedProducts.d.ts.map +1 -0
  246. package/dist/recommend/model/relatedQuery.d.ts +4 -0
  247. package/dist/recommend/model/relatedQuery.d.ts.map +1 -0
  248. package/dist/recommend/model/removeStopWords.d.ts +6 -0
  249. package/dist/recommend/model/removeStopWords.d.ts.map +1 -0
  250. package/dist/recommend/model/removeWordsIfNoResults.d.ts +5 -0
  251. package/dist/recommend/model/removeWordsIfNoResults.d.ts.map +1 -0
  252. package/dist/recommend/model/renderingContent.d.ts +8 -0
  253. package/dist/recommend/model/renderingContent.d.ts.map +1 -0
  254. package/dist/recommend/model/searchParams.d.ts +3 -0
  255. package/dist/recommend/model/searchParams.d.ts.map +1 -0
  256. package/dist/recommend/model/searchParamsObject.d.ts +7 -0
  257. package/dist/recommend/model/searchParamsObject.d.ts.map +1 -0
  258. package/dist/recommend/model/searchParamsQuery.d.ts +7 -0
  259. package/dist/recommend/model/searchParamsQuery.d.ts.map +1 -0
  260. package/dist/recommend/model/searchRecommendRulesParams.d.ts +38 -0
  261. package/dist/recommend/model/searchRecommendRulesParams.d.ts.map +1 -0
  262. package/dist/recommend/model/searchRecommendRulesResponse.d.ts +20 -0
  263. package/dist/recommend/model/searchRecommendRulesResponse.d.ts.map +1 -0
  264. package/dist/recommend/model/semanticSearch.d.ts +10 -0
  265. package/dist/recommend/model/semanticSearch.d.ts.map +1 -0
  266. package/dist/recommend/model/snippetResult.d.ts +3 -0
  267. package/dist/recommend/model/snippetResult.d.ts.map +1 -0
  268. package/dist/recommend/model/snippetResultOption.d.ts +12 -0
  269. package/dist/recommend/model/snippetResultOption.d.ts.map +1 -0
  270. package/dist/recommend/model/sortRemainingBy.d.ts +5 -0
  271. package/dist/recommend/model/sortRemainingBy.d.ts.map +1 -0
  272. package/dist/recommend/model/supportedLanguage.d.ts +5 -0
  273. package/dist/recommend/model/supportedLanguage.d.ts.map +1 -0
  274. package/dist/recommend/model/tagFilters.d.ts +5 -0
  275. package/dist/recommend/model/tagFilters.d.ts.map +1 -0
  276. package/dist/recommend/model/taskStatus.d.ts +5 -0
  277. package/dist/recommend/model/taskStatus.d.ts.map +1 -0
  278. package/dist/recommend/model/trendingFacetHit.d.ts +18 -0
  279. package/dist/recommend/model/trendingFacetHit.d.ts.map +1 -0
  280. package/dist/recommend/model/trendingFacets.d.ts +11 -0
  281. package/dist/recommend/model/trendingFacets.d.ts.map +1 -0
  282. package/dist/recommend/model/trendingFacetsModel.d.ts +5 -0
  283. package/dist/recommend/model/trendingFacetsModel.d.ts.map +1 -0
  284. package/dist/recommend/model/trendingFacetsQuery.d.ts +4 -0
  285. package/dist/recommend/model/trendingFacetsQuery.d.ts.map +1 -0
  286. package/dist/recommend/model/trendingItems.d.ts +15 -0
  287. package/dist/recommend/model/trendingItems.d.ts.map +1 -0
  288. package/dist/recommend/model/trendingItemsModel.d.ts +5 -0
  289. package/dist/recommend/model/trendingItemsModel.d.ts.map +1 -0
  290. package/dist/recommend/model/trendingItemsQuery.d.ts +4 -0
  291. package/dist/recommend/model/trendingItemsQuery.d.ts.map +1 -0
  292. package/dist/recommend/model/typoTolerance.d.ts +6 -0
  293. package/dist/recommend/model/typoTolerance.d.ts.map +1 -0
  294. package/dist/recommend/model/typoToleranceEnum.d.ts +5 -0
  295. package/dist/recommend/model/typoToleranceEnum.d.ts.map +1 -0
  296. package/dist/recommend/model/value.d.ts +13 -0
  297. package/dist/recommend/model/value.d.ts.map +1 -0
  298. package/dist/recommend/src/recommendClient.d.ts +132 -0
  299. package/dist/recommend/src/recommendClient.d.ts.map +1 -0
  300. package/lite/model/baseIndexSettings.ts +2 -2
  301. package/lite/model/baseRecommendRequest.ts +22 -0
  302. package/lite/model/baseSearchResponse.ts +2 -2
  303. package/lite/model/boughtTogetherQuery.ts +7 -0
  304. package/lite/model/clientMethodProps.ts +8 -0
  305. package/lite/model/fallbackParams.ts +5 -0
  306. package/lite/model/fbtModel.ts +6 -0
  307. package/lite/model/frequentlyBoughtTogether.ts +12 -0
  308. package/lite/model/getRecommendationsParams.ts +13 -0
  309. package/lite/model/getRecommendationsResponse.ts +7 -0
  310. package/lite/model/index.ts +28 -1
  311. package/lite/model/lookingSimilar.ts +15 -0
  312. package/lite/model/lookingSimilarModel.ts +6 -0
  313. package/lite/model/lookingSimilarQuery.ts +6 -0
  314. package/lite/model/recommendHit.ts +34 -0
  315. package/lite/model/recommendationsHit.ts +6 -0
  316. package/lite/model/recommendationsHits.ts +7 -0
  317. package/lite/model/recommendationsRequest.ts +16 -0
  318. package/lite/model/recommendationsResults.ts +6 -0
  319. package/lite/model/recommendedForYou.ts +10 -0
  320. package/lite/model/{searchParamsString.ts → recommendedForYouModel.ts} +4 -6
  321. package/lite/model/recommendedForYouQuery.ts +6 -0
  322. package/lite/model/relatedModel.ts +6 -0
  323. package/lite/model/relatedProducts.ts +15 -0
  324. package/lite/model/relatedQuery.ts +6 -0
  325. package/lite/model/searchParams.ts +1 -2
  326. package/lite/model/trendingFacetHit.ts +21 -0
  327. package/lite/model/trendingFacets.ts +15 -0
  328. package/lite/model/trendingFacetsModel.ts +6 -0
  329. package/lite/model/trendingFacetsQuery.ts +6 -0
  330. package/lite/model/trendingItems.ts +20 -0
  331. package/lite/model/trendingItemsModel.ts +6 -0
  332. package/lite/model/trendingItemsQuery.ts +6 -0
  333. package/lite/model/value.ts +5 -0
  334. package/lite/src/liteClient.ts +57 -1
  335. package/package.json +15 -11
  336. package/dist/lite/model/searchParamsString.d.ts +0 -7
  337. package/dist/lite/model/searchParamsString.d.ts.map +0 -1
@@ -0,0 +1,5 @@
1
+ /**
2
+ * - `min`. Return matches with the lowest number of typos. For example, if you have matches without typos, only include those. But if there are no matches without typos (with 1 typo), include matches with 1 typo (2 typos). - `strict`. Return matches with the two lowest numbers of typos. With `strict`, the Typo ranking criterion is applied first in the `ranking` setting.
3
+ */
4
+ export type TypoToleranceEnum = 'min' | 'strict';
5
+ //# sourceMappingURL=typoToleranceEnum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typoToleranceEnum.d.ts","sourceRoot":"","sources":["../../../../recommend/model/typoToleranceEnum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { SortRemainingBy } from './sortRemainingBy';
2
+ export type Value = {
3
+ /**
4
+ * Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
5
+ */
6
+ order?: string[];
7
+ sortRemainingBy?: SortRemainingBy;
8
+ /**
9
+ * Hide facet values.
10
+ */
11
+ hide?: string[];
12
+ };
13
+ //# sourceMappingURL=value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../../recommend/model/value.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC"}
@@ -0,0 +1,132 @@
1
+ import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
+ import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteRecommendRuleProps, GetRecommendRuleProps, GetRecommendStatusProps, LegacyGetRecommendationsParams, SearchRecommendRulesProps } from '../model/clientMethodProps';
3
+ import type { DeletedAtResponse } from '../model/deletedAtResponse';
4
+ import type { GetRecommendTaskResponse } from '../model/getRecommendTaskResponse';
5
+ import type { GetRecommendationsParams } from '../model/getRecommendationsParams';
6
+ import type { GetRecommendationsResponse } from '../model/getRecommendationsResponse';
7
+ import type { RecommendRule } from '../model/recommendRule';
8
+ import type { SearchRecommendRulesResponse } from '../model/searchRecommendRulesResponse';
9
+ export declare const apiClientVersion = "5.0.0-beta.6";
10
+ export declare function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
11
+ transporter: import("@algolia/client-common").Transporter;
12
+ /**
13
+ * The `appId` currently in use.
14
+ */
15
+ appId: string;
16
+ /**
17
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
18
+ */
19
+ clearCache(): Promise<void>;
20
+ /**
21
+ * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
22
+ */
23
+ readonly _ua: string;
24
+ /**
25
+ * Adds a `segment` to the `x-algolia-agent` sent with every requests.
26
+ *
27
+ * @param segment - The algolia agent (user-agent) segment to add.
28
+ * @param version - The version of the agent.
29
+ */
30
+ addAlgoliaAgent(segment: string, version?: string): void;
31
+ /**
32
+ * This method allow you to send requests to the Algolia REST API.
33
+ *
34
+ * @param customDelete - The customDelete object.
35
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
36
+ * @param customDelete.parameters - Query parameters to apply to the current query.
37
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
38
+ */
39
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
40
+ /**
41
+ * This method allow you to send requests to the Algolia REST API.
42
+ *
43
+ * @param customGet - The customGet object.
44
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
45
+ * @param customGet.parameters - Query parameters to apply to the current query.
46
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
47
+ */
48
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
49
+ /**
50
+ * This method allow you to send requests to the Algolia REST API.
51
+ *
52
+ * @param customPost - The customPost object.
53
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
54
+ * @param customPost.parameters - Query parameters to apply to the current query.
55
+ * @param customPost.body - Parameters to send with the custom request.
56
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
57
+ */
58
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
59
+ /**
60
+ * This method allow you to send requests to the Algolia REST API.
61
+ *
62
+ * @param customPut - The customPut object.
63
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
64
+ * @param customPut.parameters - Query parameters to apply to the current query.
65
+ * @param customPut.body - Parameters to send with the custom request.
66
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
67
+ */
68
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
69
+ /**
70
+ * Deletes a Recommend rule from a recommendation scenario.
71
+ *
72
+ * Required API Key ACLs:
73
+ * - editSettings.
74
+ *
75
+ * @param deleteRecommendRule - The deleteRecommendRule object.
76
+ * @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.
77
+ * @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
78
+ * @param deleteRecommendRule.objectID - Unique record identifier.
79
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
80
+ */
81
+ deleteRecommendRule({ indexName, model, objectID }: DeleteRecommendRuleProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
82
+ /**
83
+ * Retrieves a Recommend rule that you previously created in the Algolia dashboard.
84
+ *
85
+ * Required API Key ACLs:
86
+ * - settings.
87
+ *
88
+ * @param getRecommendRule - The getRecommendRule object.
89
+ * @param getRecommendRule.indexName - Name of the index on which to perform the operation.
90
+ * @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
91
+ * @param getRecommendRule.objectID - Unique record identifier.
92
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
93
+ */
94
+ getRecommendRule({ indexName, model, objectID }: GetRecommendRuleProps, requestOptions?: RequestOptions): Promise<RecommendRule>;
95
+ /**
96
+ * Checks the status of a given task. Deleting a Recommend rule is asynchronous. When you delete a rule, a task is created on a queue and completed depending on the load on the server. The API response includes a task ID that you can use to check the status.
97
+ *
98
+ * Required API Key ACLs:
99
+ * - editSettings.
100
+ *
101
+ * @param getRecommendStatus - The getRecommendStatus object.
102
+ * @param getRecommendStatus.indexName - Name of the index on which to perform the operation.
103
+ * @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
104
+ * @param getRecommendStatus.taskID - Unique task identifier.
105
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
106
+ */
107
+ getRecommendStatus({ indexName, model, taskID }: GetRecommendStatusProps, requestOptions?: RequestOptions): Promise<GetRecommendTaskResponse>;
108
+ /**
109
+ * Retrieves recommendations from selected AI models.
110
+ *
111
+ * Required API Key ACLs:
112
+ * - search.
113
+ *
114
+ * @param getRecommendationsParams - The getRecommendationsParams object.
115
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
116
+ */
117
+ getRecommendations(getRecommendationsParams: GetRecommendationsParams | LegacyGetRecommendationsParams, requestOptions?: RequestOptions): Promise<GetRecommendationsResponse>;
118
+ /**
119
+ * Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.
120
+ *
121
+ * Required API Key ACLs:
122
+ * - settings.
123
+ *
124
+ * @param searchRecommendRules - The searchRecommendRules object.
125
+ * @param searchRecommendRules.indexName - Name of the index on which to perform the operation.
126
+ * @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
127
+ * @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.
128
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
129
+ */
130
+ searchRecommendRules({ indexName, model, searchRecommendRulesParams, }: SearchRecommendRulesProps, requestOptions?: RequestOptions): Promise<SearchRecommendRulesResponse>;
131
+ };
132
+ //# sourceMappingURL=recommendClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommendClient.d.ts","sourceRoot":"","sources":["../../../../recommend/src/recommendClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,mBAAmB,EAKnB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,8BAA8B,EAC9B,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAE1F,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAsC/C,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,EACpB,QAAQ,EACR,aAAa,EACb,GAAG,OAAO,EACX,EAAE,mBAAmB;;IAwBlB;;OAEG;;IAGH;;OAEG;kBACW,OAAO,CAAC,IAAI,CAAC;IAO3B;;OAEG;;IAKH;;;;;OAKG;6BACsB,MAAM,YAAY,MAAM,GAAG,IAAI;IAIxD;;;;;;;OAOG;uCAEqB,iBAAiB,mBACtB,cAAc,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;OAOG;oCAEqB,cAAc,mBACnB,cAAc,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;;OAQG;2CAE2B,eAAe,mBAC1B,cAAc,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;OAQG;0CAE2B,cAAc,mBACzB,cAAc,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;;;;OAWG;wDAE+B,wBAAwB,mBACvC,cAAc,GAC9B,OAAO,CAAC,iBAAiB,CAAC;IAqC7B;;;;;;;;;;;OAWG;qDAE+B,qBAAqB,mBACpC,cAAc,GAC9B,OAAO,CAAC,aAAa,CAAC;IAqCzB;;;;;;;;;;;OAWG;qDAE6B,uBAAuB,mBACpC,cAAc,GAC9B,OAAO,CAAC,wBAAwB,CAAC;IAoCpC;;;;;;;;OAQG;iDAGG,wBAAwB,GACxB,8BAA8B,mBACjB,cAAc,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IAuCtC;;;;;;;;;;;OAWG;4EAME,yBAAyB,mBACX,cAAc,GAC9B,OAAO,CAAC,4BAA4B,CAAC;EAiC3C"}
@@ -74,9 +74,9 @@ export type BaseIndexSettings = {
74
74
  searchableAttributes?: string[];
75
75
 
76
76
  /**
77
- * An object with custom data. You can store up to 32&nbsp;kB as custom data.
77
+ * An object with custom data. You can store up to 32kB as custom data.
78
78
  */
79
- userData?: any | null;
79
+ userData?: Record<string, any>;
80
80
 
81
81
  /**
82
82
  * Characters and their normalized replacements. This overrides Algolia\'s default [normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
@@ -0,0 +1,22 @@
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
+
3
+ import type { SearchParams } from './searchParams';
4
+
5
+ export type BaseRecommendRequest = {
6
+ /**
7
+ * Index name (case-sensitive).
8
+ */
9
+ indexName: string;
10
+
11
+ /**
12
+ * Minimum score a recommendation must have to be included in the response.
13
+ */
14
+ threshold: number;
15
+
16
+ /**
17
+ * Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
18
+ */
19
+ maxRecommendations?: number;
20
+
21
+ queryParameters?: SearchParams;
22
+ };
@@ -128,9 +128,9 @@ export type BaseSearchResponse = Record<string, any> & {
128
128
  serverUsed?: string;
129
129
 
130
130
  /**
131
- * An object with custom data. You can store up to 32&nbsp;kB as custom data.
131
+ * An object with custom data. You can store up to 32kB as custom data.
132
132
  */
133
- userData?: any | null;
133
+ userData?: Record<string, any>;
134
134
 
135
135
  /**
136
136
  * Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
@@ -0,0 +1,7 @@
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
+
3
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
4
+ import type { FrequentlyBoughtTogether } from './frequentlyBoughtTogether';
5
+
6
+ export type BoughtTogetherQuery = BaseRecommendRequest &
7
+ FrequentlyBoughtTogether;
@@ -1,5 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
+ import type { RecommendationsRequest } from './recommendationsRequest';
3
4
  import type { SearchForFacetsOptions } from './searchForFacetsOptions';
4
5
  import type { SearchForHitsOptions } from './searchForHitsOptions';
5
6
  import type { SearchParamsObject } from './searchParamsObject';
@@ -22,6 +23,13 @@ export type CustomPostProps = {
22
23
  body?: Record<string, any>;
23
24
  };
24
25
 
26
+ /**
27
+ * Recommend method signature compatible with the `algoliasearch` v4 package. When using this signature, extra computation will be required to make it match the new signature.
28
+ *
29
+ * @deprecated This signature will be removed from the next major version, we recommend using the `GetRecommendationsParams` type for performances and future proof reasons.
30
+ */
31
+ export type LegacyGetRecommendationsParams = RecommendationsRequest[];
32
+
25
33
  /**
26
34
  * In v4, the search parameters are wrapped in a `params` parameter.
27
35
  *
@@ -0,0 +1,5 @@
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
+
3
+ import type { SearchParamsObject } from './searchParamsObject';
4
+
5
+ export type FallbackParams = Record<string, any> & SearchParamsObject;
@@ -0,0 +1,6 @@
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
+
3
+ /**
4
+ * Frequently bought together model. This model recommends items that have been purchased within 1 day with the item with the ID `objectID`.
5
+ */
6
+ export type FbtModel = 'bought-together';
@@ -0,0 +1,12 @@
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
+
3
+ import type { FbtModel } from './fbtModel';
4
+
5
+ export type FrequentlyBoughtTogether = {
6
+ model: FbtModel;
7
+
8
+ /**
9
+ * Unique record identifier.
10
+ */
11
+ objectID: string;
12
+ };
@@ -0,0 +1,13 @@
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
+
3
+ import type { RecommendationsRequest } from './recommendationsRequest';
4
+
5
+ /**
6
+ * Recommend request body.
7
+ */
8
+ export type GetRecommendationsParams = {
9
+ /**
10
+ * Recommendation request with parameters depending on the requested model.
11
+ */
12
+ requests: RecommendationsRequest[];
13
+ };
@@ -0,0 +1,7 @@
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
+
3
+ import type { RecommendationsResults } from './recommendationsResults';
4
+
5
+ export type GetRecommendationsResponse = {
6
+ results?: RecommendationsResults[];
7
+ };
@@ -12,9 +12,11 @@ export * from './automaticFacetFilter';
12
12
  export * from './automaticFacetFilters';
13
13
  export * from './baseGetApiKeyResponse';
14
14
  export * from './baseIndexSettings';
15
+ export * from './baseRecommendRequest';
15
16
  export * from './baseSearchParams';
16
17
  export * from './baseSearchParamsWithoutQuery';
17
18
  export * from './baseSearchResponse';
19
+ export * from './boughtTogetherQuery';
18
20
  export * from './browseParamsObject';
19
21
  export * from './browseResponse';
20
22
  export * from './consequenceParams';
@@ -32,13 +34,21 @@ export * from './facetHits';
32
34
  export * from './facetOrdering';
33
35
  export * from './facets';
34
36
  export * from './facetsStats';
37
+ export * from './fallbackParams';
38
+ export * from './fbtModel';
39
+ export * from './frequentlyBoughtTogether';
35
40
  export * from './getApiKeyResponse';
41
+ export * from './getRecommendationsParams';
42
+ export * from './getRecommendationsResponse';
36
43
  export * from './highlightResult';
37
44
  export * from './highlightResultOption';
38
45
  export * from './hit';
39
46
  export * from './ignorePlurals';
40
47
  export * from './indexSettings';
41
48
  export * from './indexSettingsAsSearchParams';
49
+ export * from './lookingSimilar';
50
+ export * from './lookingSimilarModel';
51
+ export * from './lookingSimilarQuery';
42
52
  export * from './matchLevel';
43
53
  export * from './matchedGeoLocation';
44
54
  export * from './mode';
@@ -49,9 +59,20 @@ export * from './personalization';
49
59
  export * from './queryType';
50
60
  export * from './rankingInfo';
51
61
  export * from './reRankingApplyFilter';
62
+ export * from './recommendHit';
63
+ export * from './recommendationsHit';
64
+ export * from './recommendationsHits';
65
+ export * from './recommendationsRequest';
66
+ export * from './recommendationsResults';
67
+ export * from './recommendedForYou';
68
+ export * from './recommendedForYouModel';
69
+ export * from './recommendedForYouQuery';
52
70
  export * from './redirect';
53
71
  export * from './redirectRuleIndexMetadata';
54
72
  export * from './redirectRuleIndexMetadataData';
73
+ export * from './relatedModel';
74
+ export * from './relatedProducts';
75
+ export * from './relatedQuery';
55
76
  export * from './removeStopWords';
56
77
  export * from './removeWordsIfNoResults';
57
78
  export * from './renderingContent';
@@ -65,7 +86,6 @@ export * from './searchMethodParams';
65
86
  export * from './searchParams';
66
87
  export * from './searchParamsObject';
67
88
  export * from './searchParamsQuery';
68
- export * from './searchParamsString';
69
89
  export * from './searchQuery';
70
90
  export * from './searchResponse';
71
91
  export * from './searchResponses';
@@ -79,6 +99,13 @@ export * from './snippetResultOption';
79
99
  export * from './sortRemainingBy';
80
100
  export * from './supportedLanguage';
81
101
  export * from './tagFilters';
102
+ export * from './trendingFacetHit';
103
+ export * from './trendingFacets';
104
+ export * from './trendingFacetsModel';
105
+ export * from './trendingFacetsQuery';
106
+ export * from './trendingItems';
107
+ export * from './trendingItemsModel';
108
+ export * from './trendingItemsQuery';
82
109
  export * from './typoTolerance';
83
110
  export * from './typoToleranceEnum';
84
111
  export * from './value';
@@ -0,0 +1,15 @@
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
+
3
+ import type { FallbackParams } from './fallbackParams';
4
+ import type { LookingSimilarModel } from './lookingSimilarModel';
5
+
6
+ export type LookingSimilar = {
7
+ model: LookingSimilarModel;
8
+
9
+ /**
10
+ * Unique record identifier.
11
+ */
12
+ objectID: string;
13
+
14
+ fallbackParameters?: FallbackParams;
15
+ };
@@ -0,0 +1,6 @@
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
+
3
+ /**
4
+ * Looking similar model. This model recommends items that look similar to the item with the ID `objectID` based on image attributes in your index.
5
+ */
6
+ export type LookingSimilarModel = 'looking-similar';
@@ -0,0 +1,6 @@
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
+
3
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
4
+ import type { LookingSimilar } from './lookingSimilar';
5
+
6
+ export type LookingSimilarQuery = BaseRecommendRequest & LookingSimilar;
@@ -0,0 +1,34 @@
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
+
3
+ import type { HighlightResult } from './highlightResult';
4
+ import type { RankingInfo } from './rankingInfo';
5
+ import type { SnippetResult } from './snippetResult';
6
+
7
+ /**
8
+ * Recommend hit.
9
+ */
10
+ export type RecommendHit = Record<string, any> & {
11
+ /**
12
+ * Unique record identifier.
13
+ */
14
+ objectID: string;
15
+
16
+ /**
17
+ * Surround words that match the query with HTML tags for highlighting.
18
+ */
19
+ _highlightResult?: Record<string, HighlightResult>;
20
+
21
+ /**
22
+ * Snippets that show the context around a matching search query.
23
+ */
24
+ _snippetResult?: Record<string, SnippetResult>;
25
+
26
+ _rankingInfo?: RankingInfo;
27
+
28
+ _distinctSeqID?: number;
29
+
30
+ /**
31
+ * Recommendation score.
32
+ */
33
+ _score: number;
34
+ };
@@ -0,0 +1,6 @@
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
+
3
+ import type { RecommendHit } from './recommendHit';
4
+ import type { TrendingFacetHit } from './trendingFacetHit';
5
+
6
+ export type RecommendationsHit = RecommendHit | TrendingFacetHit;
@@ -0,0 +1,7 @@
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
+
3
+ import type { RecommendationsHit } from './recommendationsHit';
4
+
5
+ export type RecommendationsHits = {
6
+ hits: RecommendationsHit[];
7
+ };
@@ -0,0 +1,16 @@
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
+
3
+ import type { BoughtTogetherQuery } from './boughtTogetherQuery';
4
+ import type { LookingSimilarQuery } from './lookingSimilarQuery';
5
+ import type { RecommendedForYouQuery } from './recommendedForYouQuery';
6
+ import type { RelatedQuery } from './relatedQuery';
7
+ import type { TrendingFacetsQuery } from './trendingFacetsQuery';
8
+ import type { TrendingItemsQuery } from './trendingItemsQuery';
9
+
10
+ export type RecommendationsRequest =
11
+ | BoughtTogetherQuery
12
+ | LookingSimilarQuery
13
+ | RecommendedForYouQuery
14
+ | RelatedQuery
15
+ | TrendingFacetsQuery
16
+ | TrendingItemsQuery;
@@ -0,0 +1,6 @@
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
+
3
+ import type { BaseSearchResponse } from './baseSearchResponse';
4
+ import type { RecommendationsHits } from './recommendationsHits';
5
+
6
+ export type RecommendationsResults = BaseSearchResponse & RecommendationsHits;
@@ -0,0 +1,10 @@
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
+
3
+ import type { FallbackParams } from './fallbackParams';
4
+ import type { RecommendedForYouModel } from './recommendedForYouModel';
5
+
6
+ export type RecommendedForYou = {
7
+ model: RecommendedForYouModel;
8
+
9
+ fallbackParameters?: FallbackParams;
10
+ };
@@ -1,8 +1,6 @@
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
- export type SearchParamsString = {
4
- /**
5
- * Search parameters as a URL-encoded query string.
6
- */
7
- params?: string;
8
- };
3
+ /**
4
+ * \"Recommened for you\" model.
5
+ */
6
+ export type RecommendedForYouModel = 'recommended-for-you';
@@ -0,0 +1,6 @@
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
+
3
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
4
+ import type { RecommendedForYou } from './recommendedForYou';
5
+
6
+ export type RecommendedForYouQuery = BaseRecommendRequest & RecommendedForYou;
@@ -0,0 +1,6 @@
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
+
3
+ /**
4
+ * Related products or similar content model. This model recommends items that are similar to the item with the ID `objectID`. Similarity is determined from the user interactions and attributes.
5
+ */
6
+ export type RelatedModel = 'related-products';
@@ -0,0 +1,15 @@
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
+
3
+ import type { FallbackParams } from './fallbackParams';
4
+ import type { RelatedModel } from './relatedModel';
5
+
6
+ export type RelatedProducts = {
7
+ model: RelatedModel;
8
+
9
+ /**
10
+ * Unique record identifier.
11
+ */
12
+ objectID: string;
13
+
14
+ fallbackParameters?: FallbackParams;
15
+ };
@@ -0,0 +1,6 @@
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
+
3
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
4
+ import type { RelatedProducts } from './relatedProducts';
5
+
6
+ export type RelatedQuery = BaseRecommendRequest & RelatedProducts;
@@ -1,6 +1,5 @@
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 { SearchParamsObject } from './searchParamsObject';
4
- import type { SearchParamsString } from './searchParamsString';
5
4
 
6
- export type SearchParams = SearchParamsObject | SearchParamsString;
5
+ export type SearchParams = Record<string, any> & SearchParamsObject;
@@ -0,0 +1,21 @@
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
+
3
+ /**
4
+ * Trending facet hit.
5
+ */
6
+ export type TrendingFacetHit = {
7
+ /**
8
+ * Recommendation score.
9
+ */
10
+ _score: number;
11
+
12
+ /**
13
+ * Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
14
+ */
15
+ facetName: string;
16
+
17
+ /**
18
+ * Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
19
+ */
20
+ facetValue: string;
21
+ };
@@ -0,0 +1,15 @@
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
+
3
+ import type { FallbackParams } from './fallbackParams';
4
+ import type { TrendingFacetsModel } from './trendingFacetsModel';
5
+
6
+ export type TrendingFacets = {
7
+ /**
8
+ * Facet attribute for which to retrieve trending facet values.
9
+ */
10
+ facetName: any | null;
11
+
12
+ model: TrendingFacetsModel;
13
+
14
+ fallbackParameters?: FallbackParams;
15
+ };
@@ -0,0 +1,6 @@
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
+
3
+ /**
4
+ * Trending facet values model. This model recommends trending facet values for the specified facet attribute.
5
+ */
6
+ export type TrendingFacetsModel = 'trending-facets';
@@ -0,0 +1,6 @@
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
+
3
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
4
+ import type { TrendingFacets } from './trendingFacets';
5
+
6
+ export type TrendingFacetsQuery = BaseRecommendRequest & TrendingFacets;