@algolia/recommend 5.0.0-alpha.11 → 5.0.0-alpha.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/dist/builds/browser.d.ts +23 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +23 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
  6. package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
  7. package/dist/model/alternativesAsExact.d.ts +1 -1
  8. package/dist/model/alternativesAsExact.d.ts.map +1 -1
  9. package/dist/model/aroundPrecision.d.ts +6 -0
  10. package/dist/model/aroundPrecision.d.ts.map +1 -0
  11. package/dist/model/aroundPrecisionFromValueInner.d.ts +14 -0
  12. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  13. package/dist/model/aroundRadius.d.ts +5 -5
  14. package/dist/model/aroundRadius.d.ts.map +1 -1
  15. package/dist/model/aroundRadiusAll.d.ts +4 -1
  16. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  17. package/dist/model/autoFacetFilter.d.ts +14 -0
  18. package/dist/model/autoFacetFilter.d.ts.map +1 -0
  19. package/dist/model/baseRecommendRequest.d.ts +16 -17
  20. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  21. package/dist/model/baseSearchParams.d.ts +3 -3
  22. package/dist/model/baseSearchParams.d.ts.map +1 -1
  23. package/dist/model/baseSearchParamsWithoutQuery.d.ts +114 -122
  24. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  25. package/dist/model/baseSearchResponse.d.ts +109 -101
  26. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  27. package/dist/model/boughtTogetherQuery.d.ts +4 -0
  28. package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
  29. package/dist/model/clientMethodProps.d.ts +127 -60
  30. package/dist/model/clientMethodProps.d.ts.map +1 -1
  31. package/dist/model/condition.d.ts +14 -0
  32. package/dist/model/condition.d.ts.map +1 -0
  33. package/dist/model/consequence.d.ts +18 -0
  34. package/dist/model/consequence.d.ts.map +1 -0
  35. package/dist/model/deletedAtResponse.d.ts +14 -0
  36. package/dist/model/deletedAtResponse.d.ts.map +1 -0
  37. package/dist/model/distinct.d.ts +4 -4
  38. package/dist/model/distinct.d.ts.map +1 -1
  39. package/dist/model/errorBase.d.ts +6 -6
  40. package/dist/model/errorBase.d.ts.map +1 -1
  41. package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
  42. package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
  43. package/dist/model/exhaustive.d.ts +26 -0
  44. package/dist/model/exhaustive.d.ts.map +1 -0
  45. package/dist/model/facetFilters.d.ts +5 -5
  46. package/dist/model/facetFilters.d.ts.map +1 -1
  47. package/dist/model/facetOrdering.d.ts +12 -12
  48. package/dist/model/facetOrdering.d.ts.map +1 -1
  49. package/dist/model/facets.d.ts +9 -9
  50. package/dist/model/facets.d.ts.map +1 -1
  51. package/dist/model/facetsStats.d.ts +18 -18
  52. package/dist/model/facetsStats.d.ts.map +1 -1
  53. package/dist/model/fallbackParams.d.ts +3 -0
  54. package/dist/model/fallbackParams.d.ts.map +1 -0
  55. package/dist/model/fbtModel.d.ts +5 -0
  56. package/dist/model/fbtModel.d.ts.map +1 -0
  57. package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
  58. package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
  59. package/dist/model/getRecommendTaskResponse.d.ts +5 -0
  60. package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
  61. package/dist/model/getRecommendationsParams.d.ts +10 -10
  62. package/dist/model/getRecommendationsParams.d.ts.map +1 -1
  63. package/dist/model/getRecommendationsResponse.d.ts +4 -4
  64. package/dist/model/getRecommendationsResponse.d.ts.map +1 -1
  65. package/dist/model/hideConsequenceObject.d.ts +10 -0
  66. package/dist/model/hideConsequenceObject.d.ts.map +1 -0
  67. package/dist/model/highlightResult.d.ts +2 -2
  68. package/dist/model/highlightResult.d.ts.map +1 -1
  69. package/dist/model/highlightResultOption.d.ts +19 -19
  70. package/dist/model/highlightResultOption.d.ts.map +1 -1
  71. package/dist/model/ignorePlurals.d.ts +5 -4
  72. package/dist/model/ignorePlurals.d.ts.map +1 -1
  73. package/dist/model/index.d.ts +92 -53
  74. package/dist/model/index.d.ts.map +1 -1
  75. package/dist/model/indexSettingsAsSearchParams.d.ts +159 -160
  76. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  77. package/dist/model/lookingSimilar.d.ts +11 -0
  78. package/dist/model/lookingSimilar.d.ts.map +1 -0
  79. package/dist/model/lookingSimilarModel.d.ts +5 -0
  80. package/dist/model/lookingSimilarModel.d.ts.map +1 -0
  81. package/dist/model/lookingSimilarQuery.d.ts +4 -0
  82. package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
  83. package/dist/model/matchLevel.d.ts +4 -4
  84. package/dist/model/matchLevel.d.ts.map +1 -1
  85. package/dist/model/matchedGeoLocation.d.ts +14 -14
  86. package/dist/model/matchedGeoLocation.d.ts.map +1 -1
  87. package/dist/model/mixedSearchFilters.d.ts +1 -1
  88. package/dist/model/mixedSearchFilters.d.ts.map +1 -1
  89. package/dist/model/mode.d.ts +5 -0
  90. package/dist/model/mode.d.ts.map +1 -0
  91. package/dist/model/numericFilters.d.ts +5 -5
  92. package/dist/model/numericFilters.d.ts.map +1 -1
  93. package/dist/model/optionalFilters.d.ts +5 -5
  94. package/dist/model/optionalFilters.d.ts.map +1 -1
  95. package/dist/model/paramsConsequence.d.ts +19 -0
  96. package/dist/model/paramsConsequence.d.ts.map +1 -0
  97. package/dist/model/personalization.d.ts +14 -14
  98. package/dist/model/personalization.d.ts.map +1 -1
  99. package/dist/model/promoteConsequenceObject.d.ts +14 -0
  100. package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
  101. package/dist/model/queryType.d.ts +4 -4
  102. package/dist/model/queryType.d.ts.map +1 -1
  103. package/dist/model/rankingInfo.d.ts +53 -50
  104. package/dist/model/rankingInfo.d.ts.map +1 -1
  105. package/dist/model/reRankingApplyFilter.d.ts +5 -5
  106. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  107. package/dist/model/recommendHit.d.ts +26 -26
  108. package/dist/model/recommendHit.d.ts.map +1 -1
  109. package/dist/model/recommendModels.d.ts +2 -0
  110. package/dist/model/recommendModels.d.ts.map +1 -0
  111. package/dist/model/recommendRule.d.ts +24 -0
  112. package/dist/model/recommendRule.d.ts.map +1 -0
  113. package/dist/model/recommendRuleMetadata.d.ts +10 -0
  114. package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
  115. package/dist/model/recommendationsHit.d.ts +4 -0
  116. package/dist/model/recommendationsHit.d.ts.map +1 -0
  117. package/dist/model/recommendationsHits.d.ts +5 -0
  118. package/dist/model/recommendationsHits.d.ts.map +1 -0
  119. package/dist/model/recommendationsRequest.d.ts +7 -3
  120. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  121. package/dist/model/recommendationsResults.d.ts +4 -0
  122. package/dist/model/recommendationsResults.d.ts.map +1 -0
  123. package/dist/model/recommendedForYou.d.ts +7 -0
  124. package/dist/model/recommendedForYou.d.ts.map +1 -0
  125. package/dist/model/recommendedForYouModel.d.ts +5 -0
  126. package/dist/model/recommendedForYouModel.d.ts.map +1 -0
  127. package/dist/model/recommendedForYouQuery.d.ts +4 -0
  128. package/dist/model/recommendedForYouQuery.d.ts.map +1 -0
  129. package/dist/model/redirect.d.ts +8 -0
  130. package/dist/model/redirect.d.ts.map +1 -0
  131. package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
  132. package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  133. package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
  134. package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  135. package/dist/model/relatedModel.d.ts +5 -0
  136. package/dist/model/relatedModel.d.ts.map +1 -0
  137. package/dist/model/relatedProducts.d.ts +11 -0
  138. package/dist/model/relatedProducts.d.ts.map +1 -0
  139. package/dist/model/relatedQuery.d.ts +4 -0
  140. package/dist/model/relatedQuery.d.ts.map +1 -0
  141. package/dist/model/removeStopWords.d.ts +5 -4
  142. package/dist/model/removeStopWords.d.ts.map +1 -1
  143. package/dist/model/removeWordsIfNoResults.d.ts +4 -4
  144. package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
  145. package/dist/model/renderingContent.d.ts +7 -7
  146. package/dist/model/renderingContent.d.ts.map +1 -1
  147. package/dist/model/searchParams.d.ts +3 -0
  148. package/dist/model/searchParams.d.ts.map +1 -0
  149. package/dist/model/searchParamsObject.d.ts +3 -3
  150. package/dist/model/searchParamsObject.d.ts.map +1 -1
  151. package/dist/model/searchParamsQuery.d.ts +6 -6
  152. package/dist/model/searchParamsQuery.d.ts.map +1 -1
  153. package/dist/model/searchRecommendRulesParams.d.ts +38 -0
  154. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -0
  155. package/dist/model/searchRecommendRulesResponse.d.ts +20 -0
  156. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -0
  157. package/dist/model/semanticSearch.d.ts +10 -0
  158. package/dist/model/semanticSearch.d.ts.map +1 -0
  159. package/dist/model/snippetResult.d.ts +2 -2
  160. package/dist/model/snippetResult.d.ts.map +1 -1
  161. package/dist/model/snippetResultOption.d.ts +11 -11
  162. package/dist/model/snippetResultOption.d.ts.map +1 -1
  163. package/dist/model/sortRemainingBy.d.ts +4 -4
  164. package/dist/model/sortRemainingBy.d.ts.map +1 -1
  165. package/dist/model/supportedLanguage.d.ts +5 -0
  166. package/dist/model/supportedLanguage.d.ts.map +1 -0
  167. package/dist/model/tagFilters.d.ts +5 -5
  168. package/dist/model/tagFilters.d.ts.map +1 -1
  169. package/dist/model/taskStatus.d.ts +5 -0
  170. package/dist/model/taskStatus.d.ts.map +1 -0
  171. package/dist/model/trendingFacetHit.d.ts +18 -0
  172. package/dist/model/trendingFacetHit.d.ts.map +1 -0
  173. package/dist/model/trendingFacets.d.ts +11 -0
  174. package/dist/model/trendingFacets.d.ts.map +1 -0
  175. package/dist/model/trendingFacetsModel.d.ts +5 -0
  176. package/dist/model/trendingFacetsModel.d.ts.map +1 -0
  177. package/dist/model/trendingFacetsQuery.d.ts +4 -0
  178. package/dist/model/trendingFacetsQuery.d.ts.map +1 -0
  179. package/dist/model/trendingItems.d.ts +15 -0
  180. package/dist/model/trendingItems.d.ts.map +1 -0
  181. package/dist/model/trendingItemsModel.d.ts +5 -0
  182. package/dist/model/trendingItemsModel.d.ts.map +1 -0
  183. package/dist/model/trendingItemsQuery.d.ts +4 -0
  184. package/dist/model/trendingItemsQuery.d.ts.map +1 -0
  185. package/dist/model/typoTolerance.d.ts +5 -5
  186. package/dist/model/typoTolerance.d.ts.map +1 -1
  187. package/dist/model/typoToleranceEnum.d.ts +4 -1
  188. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  189. package/dist/model/value.d.ts +8 -8
  190. package/dist/model/value.d.ts.map +1 -1
  191. package/dist/recommend.cjs +390 -0
  192. package/dist/recommend.esm.browser.js +589 -475
  193. package/dist/recommend.esm.node.js +379 -235
  194. package/dist/recommend.umd.js +2 -2
  195. package/dist/src/recommendClient.d.ts +131 -81
  196. package/dist/src/recommendClient.d.ts.map +1 -1
  197. package/index.js +1 -1
  198. package/model/advancedSyntaxFeatures.ts +1 -1
  199. package/model/alternativesAsExact.ts +1 -1
  200. package/model/aroundPrecision.ts +8 -0
  201. package/model/aroundPrecisionFromValueInner.ts +16 -0
  202. package/model/aroundRadius.ts +2 -2
  203. package/model/aroundRadiusAll.ts +4 -1
  204. package/model/autoFacetFilter.ts +16 -0
  205. package/model/baseRecommendRequest.ts +6 -8
  206. package/model/baseSearchParams.ts +1 -1
  207. package/model/baseSearchParamsWithoutQuery.ts +36 -46
  208. package/model/baseSearchResponse.ts +42 -31
  209. package/model/boughtTogetherQuery.ts +7 -0
  210. package/model/clientMethodProps.ts +91 -19
  211. package/model/condition.ts +16 -0
  212. package/model/consequence.ts +22 -0
  213. package/model/deletedAtResponse.ts +16 -0
  214. package/model/distinct.ts +2 -2
  215. package/model/errorBase.ts +1 -1
  216. package/model/exactOnSingleWordQuery.ts +2 -2
  217. package/model/exhaustive.ts +31 -0
  218. package/model/facetFilters.ts +2 -2
  219. package/model/facetOrdering.ts +3 -3
  220. package/model/facets.ts +3 -3
  221. package/model/facetsStats.ts +5 -5
  222. package/model/fallbackParams.ts +5 -0
  223. package/model/fbtModel.ts +6 -0
  224. package/model/frequentlyBoughtTogether.ts +12 -0
  225. package/model/getRecommendTaskResponse.ts +7 -0
  226. package/model/getRecommendationsParams.ts +3 -3
  227. package/model/getRecommendationsResponse.ts +3 -3
  228. package/model/hideConsequenceObject.ts +11 -0
  229. package/model/highlightResult.ts +5 -2
  230. package/model/highlightResultOption.ts +4 -4
  231. package/model/ignorePlurals.ts +5 -3
  232. package/model/index.ts +48 -9
  233. package/model/indexSettingsAsSearchParams.ts +54 -54
  234. package/model/lookingSimilar.ts +15 -0
  235. package/model/lookingSimilarModel.ts +6 -0
  236. package/model/lookingSimilarQuery.ts +6 -0
  237. package/model/matchLevel.ts +2 -2
  238. package/model/matchedGeoLocation.ts +1 -1
  239. package/model/mixedSearchFilters.ts +1 -1
  240. package/model/mode.ts +6 -0
  241. package/model/numericFilters.ts +2 -2
  242. package/model/optionalFilters.ts +2 -2
  243. package/model/paramsConsequence.ts +23 -0
  244. package/model/personalization.ts +1 -1
  245. package/model/promoteConsequenceObject.ts +16 -0
  246. package/model/queryType.ts +2 -2
  247. package/model/rankingInfo.ts +11 -8
  248. package/model/reRankingApplyFilter.ts +2 -2
  249. package/model/recommendHit.ts +6 -6
  250. package/model/recommendModels.ts +7 -0
  251. package/model/recommendRule.ts +31 -0
  252. package/model/recommendRuleMetadata.ts +11 -0
  253. package/model/recommendationsHit.ts +6 -0
  254. package/model/recommendationsHits.ts +7 -0
  255. package/model/recommendationsRequest.ts +14 -4
  256. package/model/recommendationsResults.ts +6 -0
  257. package/model/recommendedForYou.ts +10 -0
  258. package/model/recommendedForYouModel.ts +6 -0
  259. package/model/recommendedForYouQuery.ts +6 -0
  260. package/model/redirect.ts +10 -0
  261. package/model/redirectRuleIndexMetadata.ts +27 -0
  262. package/model/redirectRuleIndexMetadataData.ts +8 -0
  263. package/model/relatedModel.ts +6 -0
  264. package/model/relatedProducts.ts +15 -0
  265. package/model/relatedQuery.ts +6 -0
  266. package/model/removeStopWords.ts +5 -3
  267. package/model/removeWordsIfNoResults.ts +2 -2
  268. package/model/renderingContent.ts +2 -2
  269. package/model/searchParams.ts +5 -0
  270. package/model/searchParamsObject.ts +1 -1
  271. package/model/searchParamsQuery.ts +2 -2
  272. package/model/searchRecommendRulesParams.ts +46 -0
  273. package/model/searchRecommendRulesResponse.ts +25 -0
  274. package/model/semanticSearch.ts +11 -0
  275. package/model/snippetResult.ts +5 -2
  276. package/model/snippetResultOption.ts +3 -3
  277. package/model/sortRemainingBy.ts +2 -2
  278. package/model/supportedLanguage.ts +74 -0
  279. package/model/tagFilters.ts +2 -2
  280. package/model/taskStatus.ts +6 -0
  281. package/model/trendingFacetHit.ts +21 -0
  282. package/model/trendingFacets.ts +15 -0
  283. package/model/trendingFacetsModel.ts +6 -0
  284. package/model/trendingFacetsQuery.ts +6 -0
  285. package/model/trendingItems.ts +20 -0
  286. package/model/trendingItemsModel.ts +6 -0
  287. package/model/trendingItemsQuery.ts +6 -0
  288. package/model/typoTolerance.ts +2 -2
  289. package/model/typoToleranceEnum.ts +4 -1
  290. package/model/value.ts +2 -2
  291. package/package.json +10 -9
  292. package/dist/model/baseRecommendationRequest.d.ts +0 -9
  293. package/dist/model/baseRecommendationRequest.d.ts.map +0 -1
  294. package/dist/model/baseTrendingRequest.d.ts +0 -13
  295. package/dist/model/baseTrendingRequest.d.ts.map +0 -1
  296. package/dist/model/recommendHits.d.ts +0 -5
  297. package/dist/model/recommendHits.d.ts.map +0 -1
  298. package/dist/model/recommendationModels.d.ts +0 -5
  299. package/dist/model/recommendationModels.d.ts.map +0 -1
  300. package/dist/model/recommendationRequest.d.ts +0 -4
  301. package/dist/model/recommendationRequest.d.ts.map +0 -1
  302. package/dist/model/recommendationsResponse.d.ts +0 -4
  303. package/dist/model/recommendationsResponse.d.ts.map +0 -1
  304. package/dist/model/trendingModels.d.ts +0 -5
  305. package/dist/model/trendingModels.d.ts.map +0 -1
  306. package/dist/model/trendingRequest.d.ts +0 -4
  307. package/dist/model/trendingRequest.d.ts.map +0 -1
  308. package/dist/recommend.cjs.js +0 -248
  309. package/model/baseRecommendationRequest.ts +0 -12
  310. package/model/baseTrendingRequest.ts +0 -17
  311. package/model/recommendHits.ts +0 -7
  312. package/model/recommendationModels.ts +0 -6
  313. package/model/recommendationRequest.ts +0 -7
  314. package/model/recommendationsResponse.ts +0 -6
  315. package/model/trendingModels.ts +0 -6
  316. package/model/trendingRequest.ts +0 -6
@@ -1,6 +1,6 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  /**
4
- * How to display the remaining items. - `count`: facet count (descending). - `alpha`: alphabetical (ascending). - `hidden`: show only pinned values.
4
+ * Order of facet values that aren\'t explicitly positioned with the `order` setting. - `count`. Order remaining facet values by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Sort facet values alphabetically. - `hidden`. Don\'t show facet values that aren\'t explicitly positioned.
5
5
  */
6
6
  export type SortRemainingBy = 'alpha' | 'count' | 'hidden';
@@ -0,0 +1,74 @@
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
+ * ISO code for a supported language.
5
+ */
6
+ export type SupportedLanguage =
7
+ | 'af'
8
+ | 'ar'
9
+ | 'az'
10
+ | 'bg'
11
+ | 'bn'
12
+ | 'ca'
13
+ | 'cs'
14
+ | 'cy'
15
+ | 'da'
16
+ | 'de'
17
+ | 'el'
18
+ | 'en'
19
+ | 'eo'
20
+ | 'es'
21
+ | 'et'
22
+ | 'eu'
23
+ | 'fa'
24
+ | 'fi'
25
+ | 'fo'
26
+ | 'fr'
27
+ | 'ga'
28
+ | 'gl'
29
+ | 'he'
30
+ | 'hi'
31
+ | 'hu'
32
+ | 'hy'
33
+ | 'id'
34
+ | 'is'
35
+ | 'it'
36
+ | 'ja'
37
+ | 'ka'
38
+ | 'kk'
39
+ | 'ko'
40
+ | 'ku'
41
+ | 'ky'
42
+ | 'lt'
43
+ | 'lv'
44
+ | 'mi'
45
+ | 'mn'
46
+ | 'mr'
47
+ | 'ms'
48
+ | 'mt'
49
+ | 'nb'
50
+ | 'nl'
51
+ | 'no'
52
+ | 'ns'
53
+ | 'pl'
54
+ | 'ps'
55
+ | 'pt-br'
56
+ | 'pt'
57
+ | 'qu'
58
+ | 'ro'
59
+ | 'ru'
60
+ | 'sk'
61
+ | 'sq'
62
+ | 'sv'
63
+ | 'sw'
64
+ | 'ta'
65
+ | 'te'
66
+ | 'th'
67
+ | 'tl'
68
+ | 'tn'
69
+ | 'tr'
70
+ | 'tt'
71
+ | 'uk'
72
+ | 'ur'
73
+ | 'uz'
74
+ | 'zh';
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * Filter hits by tags.
6
+ * Filter the search by values of the special `_tags` attribute. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** Different from regular facets, `_tags` can only be used for filtering (including or excluding records). You won\'t get a facet count. The same combination and escaping rules apply as for `facetFilters`.
7
7
  */
8
8
  export type TagFilters = MixedSearchFilters[] | string;
@@ -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
+ * Task status, `published` if the task is completed, `notPublished` otherwise.
5
+ */
6
+ export type TaskStatus = 'notPublished' | 'published';
@@ -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;
@@ -0,0 +1,20 @@
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
+ import type { TrendingItemsModel } from './trendingItemsModel';
5
+
6
+ export type TrendingItems = {
7
+ /**
8
+ * Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
9
+ */
10
+ facetName: string;
11
+
12
+ /**
13
+ * Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
14
+ */
15
+ facetValue: string;
16
+
17
+ model: TrendingItemsModel;
18
+
19
+ fallbackParameters?: SearchParamsObject;
20
+ };
@@ -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 items model. Trending items are determined from the number of conversion events collected on them.
5
+ */
6
+ export type TrendingItemsModel = 'trending-items';
@@ -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 { TrendingItems } from './trendingItems';
5
+
6
+ export type TrendingItemsQuery = BaseRecommendRequest & TrendingItems;
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { TypoToleranceEnum } from './typoToleranceEnum';
4
4
 
5
5
  /**
6
- * Controls whether typo tolerance is enabled and how it is applied.
6
+ * Whether [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) is enabled and how it is applied. If typo tolerance is true, `min`, or `strict`, [word splitting and concetenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) is also active.
7
7
  */
8
8
  export type TypoTolerance = TypoToleranceEnum | boolean;
@@ -1,3 +1,6 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
+ /**
4
+ * - `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.
5
+ */
3
6
  export type TypoToleranceEnum = 'min' | 'strict';
package/model/value.ts CHANGED
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { SortRemainingBy } from './sortRemainingBy';
4
4
 
5
5
  export type Value = {
6
6
  /**
7
- * Pinned order of facet lists.
7
+ * Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
8
8
  */
9
9
  order?: string[];
10
10
 
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@algolia/recommend",
3
- "version": "5.0.0-alpha.11",
3
+ "version": "5.0.0-alpha.111",
4
4
  "description": "JavaScript client for recommend",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
7
7
  "author": "Algolia",
8
+ "type": "module",
8
9
  "exports": {
9
10
  ".": {
10
11
  "node": {
11
12
  "import": "./dist/recommend.esm.node.js",
12
13
  "module": "./dist/recommend.esm.node.js",
13
- "require": "./dist/recommend.cjs.js",
14
- "default": "./dist/recommend.cjs.js"
14
+ "require": "./dist/recommend.cjs",
15
+ "default": "./dist/recommend.cjs"
15
16
  },
16
17
  "default": {
17
18
  "umd": "./dist/recommend.umd.js",
@@ -38,14 +39,14 @@
38
39
  "clean": "rm -rf ./dist || true"
39
40
  },
40
41
  "dependencies": {
41
- "@algolia/client-common": "5.0.0-alpha.11",
42
- "@algolia/requester-browser-xhr": "5.0.0-alpha.11",
43
- "@algolia/requester-node-http": "5.0.0-alpha.11"
42
+ "@algolia/client-common": "5.0.0-alpha.112",
43
+ "@algolia/requester-browser-xhr": "5.0.0-alpha.112",
44
+ "@algolia/requester-node-http": "5.0.0-alpha.112"
44
45
  },
45
46
  "devDependencies": {
46
- "@types/node": "16.11.47",
47
- "rollup": "2.78.1",
48
- "typescript": "4.7.4"
47
+ "@types/node": "20.12.5",
48
+ "rollup": "4.14.0",
49
+ "typescript": "5.4.4"
49
50
  },
50
51
  "engines": {
51
52
  "node": ">= 14.0.0"
@@ -1,9 +0,0 @@
1
- import type { RecommendationModels } from './recommendationModels';
2
- export declare type BaseRecommendationRequest = {
3
- model: RecommendationModels;
4
- /**
5
- * Unique identifier of the object.
6
- */
7
- objectID: string;
8
- };
9
- //# sourceMappingURL=baseRecommendationRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseRecommendationRequest.d.ts","sourceRoot":"","sources":["../../model/baseRecommendationRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,oBAAY,yBAAyB,GAAG;IACtC,KAAK,EAAE,oBAAoB,CAAC;IAE5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { TrendingModels } from './trendingModels';
2
- export declare type BaseTrendingRequest = {
3
- model: TrendingModels;
4
- /**
5
- * The facet name to use for trending models.
6
- */
7
- facetName?: string;
8
- /**
9
- * The facet value to use for trending models.
10
- */
11
- facetValue?: string;
12
- };
13
- //# sourceMappingURL=baseTrendingRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseTrendingRequest.d.ts","sourceRoot":"","sources":["../../model/baseTrendingRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { RecommendHit } from './recommendHit';
2
- export declare type RecommendHits = {
3
- hits: RecommendHit[];
4
- };
5
- //# sourceMappingURL=recommendHits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recommendHits.d.ts","sourceRoot":"","sources":["../../model/recommendHits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,oBAAY,aAAa,GAAG;IAC1B,IAAI,EAAE,YAAY,EAAE,CAAC;CACtB,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * The recommendation model to use.
3
- */
4
- export declare type RecommendationModels = 'bought-together' | 'related-products';
5
- //# sourceMappingURL=recommendationModels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recommendationModels.d.ts","sourceRoot":"","sources":["../../model/recommendationModels.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,oBAAoB,GAAG,iBAAiB,GAAG,kBAAkB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { BaseRecommendRequest } from './baseRecommendRequest';
2
- import type { BaseRecommendationRequest } from './baseRecommendationRequest';
3
- export declare type RecommendationRequest = BaseRecommendationRequest & BaseRecommendRequest;
4
- //# sourceMappingURL=recommendationRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recommendationRequest.d.ts","sourceRoot":"","sources":["../../model/recommendationRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E,oBAAY,qBAAqB,GAAG,yBAAyB,GAC3D,oBAAoB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { BaseSearchResponse } from './baseSearchResponse';
2
- import type { RecommendHits } from './recommendHits';
3
- export declare type RecommendationsResponse = BaseSearchResponse & RecommendHits;
4
- //# sourceMappingURL=recommendationsResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recommendationsResponse.d.ts","sourceRoot":"","sources":["../../model/recommendationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,oBAAY,uBAAuB,GAAG,kBAAkB,GAAG,aAAa,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * The trending model to use.
3
- */
4
- export declare type TrendingModels = 'trending-facets' | 'trending-items';
5
- //# sourceMappingURL=trendingModels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trendingModels.d.ts","sourceRoot":"","sources":["../../model/trendingModels.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,cAAc,GAAG,iBAAiB,GAAG,gBAAgB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { BaseRecommendRequest } from './baseRecommendRequest';
2
- import type { BaseTrendingRequest } from './baseTrendingRequest';
3
- export declare type TrendingRequest = BaseRecommendRequest & BaseTrendingRequest;
4
- //# sourceMappingURL=trendingRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trendingRequest.d.ts","sourceRoot":"","sources":["../../model/trendingRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,oBAAY,eAAe,GAAG,oBAAoB,GAAG,mBAAmB,CAAC"}
@@ -1,248 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var clientCommon = require('@algolia/client-common');
6
- var requesterNodeHttp = require('@algolia/requester-node-http');
7
-
8
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
9
- const apiClientVersion = '5.0.0-alpha.11';
10
- function getDefaultHosts(appId) {
11
- return [
12
- {
13
- url: `${appId}-dsn.algolia.net`,
14
- accept: 'read',
15
- protocol: 'https',
16
- },
17
- {
18
- url: `${appId}.algolia.net`,
19
- accept: 'write',
20
- protocol: 'https',
21
- },
22
- ].concat(clientCommon.shuffle([
23
- {
24
- url: `${appId}-1.algolianet.com`,
25
- accept: 'readWrite',
26
- protocol: 'https',
27
- },
28
- {
29
- url: `${appId}-2.algolianet.com`,
30
- accept: 'readWrite',
31
- protocol: 'https',
32
- },
33
- {
34
- url: `${appId}-3.algolianet.com`,
35
- accept: 'readWrite',
36
- protocol: 'https',
37
- },
38
- ]));
39
- }
40
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
41
- function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }) {
42
- const auth = clientCommon.createAuth(appIdOption, apiKeyOption, authMode);
43
- const transporter = clientCommon.createTransporter({
44
- hosts: getDefaultHosts(appIdOption),
45
- ...options,
46
- algoliaAgent: clientCommon.getAlgoliaAgent({
47
- algoliaAgents,
48
- client: 'Recommend',
49
- version: apiClientVersion,
50
- }),
51
- baseHeaders: {
52
- 'content-type': 'text/plain',
53
- ...auth.headers(),
54
- ...options.baseHeaders,
55
- },
56
- baseQueryParameters: {
57
- ...auth.queryParameters(),
58
- ...options.baseQueryParameters,
59
- },
60
- });
61
- return {
62
- transporter,
63
- /**
64
- * The `appId` currently in use.
65
- */
66
- appId: appIdOption,
67
- /**
68
- * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
69
- */
70
- clearCache() {
71
- return Promise.all([
72
- transporter.requestsCache.clear(),
73
- transporter.responsesCache.clear(),
74
- ]).then(() => undefined);
75
- },
76
- /**
77
- * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
78
- */
79
- get _ua() {
80
- return transporter.algoliaAgent.value;
81
- },
82
- /**
83
- * Adds a `segment` to the `x-algolia-agent` sent with every requests.
84
- *
85
- * @param segment - The algolia agent (user-agent) segment to add.
86
- * @param version - The version of the agent.
87
- */
88
- addAlgoliaAgent(segment, version) {
89
- transporter.algoliaAgent.add({ segment, version });
90
- },
91
- /**
92
- * This method allow you to send requests to the Algolia REST API.
93
- *
94
- * @summary Send requests to the Algolia REST API.
95
- * @param del - The del object.
96
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
97
- * @param del.parameters - Query parameters to be applied to the current query.
98
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
99
- */
100
- del({ path, parameters }, requestOptions) {
101
- if (!path) {
102
- throw new Error('Parameter `path` is required when calling `del`.');
103
- }
104
- const requestPath = '/1{path}'.replace('{path}', path);
105
- const headers = {};
106
- const queryParameters = parameters ? parameters : {};
107
- const request = {
108
- method: 'DELETE',
109
- path: requestPath,
110
- queryParameters,
111
- headers,
112
- };
113
- return transporter.request(request, requestOptions);
114
- },
115
- /**
116
- * This method allow you to send requests to the Algolia REST API.
117
- *
118
- * @summary Send requests to the Algolia REST API.
119
- * @param get - The get object.
120
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
121
- * @param get.parameters - Query parameters to be applied to the current query.
122
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
123
- */
124
- get({ path, parameters }, requestOptions) {
125
- if (!path) {
126
- throw new Error('Parameter `path` is required when calling `get`.');
127
- }
128
- const requestPath = '/1{path}'.replace('{path}', path);
129
- const headers = {};
130
- const queryParameters = parameters ? parameters : {};
131
- const request = {
132
- method: 'GET',
133
- path: requestPath,
134
- queryParameters,
135
- headers,
136
- };
137
- return transporter.request(request, requestOptions);
138
- },
139
- /**
140
- * Returns recommendations or trending results, for a specific model and `objectID`.
141
- *
142
- * @summary Get results.
143
- * @param getRecommendationsParams - The getRecommendationsParams object.
144
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
145
- */
146
- getRecommendations(getRecommendationsParams, requestOptions) {
147
- if (!getRecommendationsParams) {
148
- throw new Error('Parameter `getRecommendationsParams` is required when calling `getRecommendations`.');
149
- }
150
- if (!getRecommendationsParams.requests) {
151
- throw new Error('Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.');
152
- }
153
- const requestPath = '/1/indexes/*/recommendations';
154
- const headers = {};
155
- const queryParameters = {};
156
- const request = {
157
- method: 'POST',
158
- path: requestPath,
159
- queryParameters,
160
- headers,
161
- data: getRecommendationsParams,
162
- useReadTransporter: true,
163
- cacheable: true,
164
- };
165
- return transporter.request(request, requestOptions);
166
- },
167
- /**
168
- * This method allow you to send requests to the Algolia REST API.
169
- *
170
- * @summary Send requests to the Algolia REST API.
171
- * @param post - The post object.
172
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
173
- * @param post.parameters - Query parameters to be applied to the current query.
174
- * @param post.body - The parameters to send with the custom request.
175
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
176
- */
177
- post({ path, parameters, body }, requestOptions) {
178
- if (!path) {
179
- throw new Error('Parameter `path` is required when calling `post`.');
180
- }
181
- const requestPath = '/1{path}'.replace('{path}', path);
182
- const headers = {};
183
- const queryParameters = parameters ? parameters : {};
184
- const request = {
185
- method: 'POST',
186
- path: requestPath,
187
- queryParameters,
188
- headers,
189
- data: body ? body : {},
190
- };
191
- return transporter.request(request, requestOptions);
192
- },
193
- /**
194
- * This method allow you to send requests to the Algolia REST API.
195
- *
196
- * @summary Send requests to the Algolia REST API.
197
- * @param put - The put object.
198
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
199
- * @param put.parameters - Query parameters to be applied to the current query.
200
- * @param put.body - The parameters to send with the custom request.
201
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
202
- */
203
- put({ path, parameters, body }, requestOptions) {
204
- if (!path) {
205
- throw new Error('Parameter `path` is required when calling `put`.');
206
- }
207
- const requestPath = '/1{path}'.replace('{path}', path);
208
- const headers = {};
209
- const queryParameters = parameters ? parameters : {};
210
- const request = {
211
- method: 'PUT',
212
- path: requestPath,
213
- queryParameters,
214
- headers,
215
- data: body ? body : {},
216
- };
217
- return transporter.request(request, requestOptions);
218
- },
219
- };
220
- }
221
-
222
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
223
- function recommendClient(appId, apiKey, options) {
224
- if (!appId || typeof appId !== 'string') {
225
- throw new Error('`appId` is missing.');
226
- }
227
- if (!apiKey || typeof apiKey !== 'string') {
228
- throw new Error('`apiKey` is missing.');
229
- }
230
- return createRecommendClient({
231
- appId,
232
- apiKey,
233
- timeouts: {
234
- connect: clientCommon.DEFAULT_CONNECT_TIMEOUT_NODE,
235
- read: clientCommon.DEFAULT_READ_TIMEOUT_NODE,
236
- write: clientCommon.DEFAULT_WRITE_TIMEOUT_NODE,
237
- },
238
- requester: requesterNodeHttp.createHttpRequester(),
239
- algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
240
- responsesCache: clientCommon.createNullCache(),
241
- requestsCache: clientCommon.createNullCache(),
242
- hostsCache: clientCommon.createMemoryCache(),
243
- ...options,
244
- });
245
- }
246
-
247
- exports.apiClientVersion = apiClientVersion;
248
- exports.recommendClient = recommendClient;
@@ -1,12 +0,0 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
-
3
- import type { RecommendationModels } from './recommendationModels';
4
-
5
- export type BaseRecommendationRequest = {
6
- model: RecommendationModels;
7
-
8
- /**
9
- * Unique identifier of the object.
10
- */
11
- objectID: string;
12
- };
@@ -1,17 +0,0 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
-
3
- import type { TrendingModels } from './trendingModels';
4
-
5
- export type BaseTrendingRequest = {
6
- model: TrendingModels;
7
-
8
- /**
9
- * The facet name to use for trending models.
10
- */
11
- facetName?: string;
12
-
13
- /**
14
- * The facet value to use for trending models.
15
- */
16
- facetValue?: string;
17
- };