@algolia/recommend 5.0.0-alpha.99 → 5.0.0-beta.10

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 (290) hide show
  1. package/LICENSE +21 -0
  2. package/dist/builds/browser.d.ts +21 -3
  3. package/dist/builds/browser.d.ts.map +1 -1
  4. package/dist/builds/node.d.ts +21 -3
  5. package/dist/builds/node.d.ts.map +1 -1
  6. package/dist/model/aroundPrecision.d.ts +1 -1
  7. package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
  8. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  9. package/dist/model/aroundRadius.d.ts +1 -1
  10. package/dist/model/aroundRadiusAll.d.ts +3 -0
  11. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  12. package/dist/model/autoFacetFilter.d.ts +14 -0
  13. package/dist/model/autoFacetFilter.d.ts.map +1 -0
  14. package/dist/model/baseRecommendRequest.d.ts +6 -4
  15. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  16. package/dist/model/baseSearchParamsWithoutQuery.d.ts +26 -29
  17. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  18. package/dist/model/baseSearchResponse.d.ts +8 -20
  19. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  20. package/dist/model/boughtTogetherQuery.d.ts +4 -0
  21. package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
  22. package/dist/model/clientMethodProps.d.ts +18 -11
  23. package/dist/model/clientMethodProps.d.ts.map +1 -1
  24. package/dist/model/condition.d.ts +6 -9
  25. package/dist/model/condition.d.ts.map +1 -1
  26. package/dist/model/consequence.d.ts +9 -17
  27. package/dist/model/consequence.d.ts.map +1 -1
  28. package/dist/model/deletedAtResponse.d.ts +2 -2
  29. package/dist/model/distinct.d.ts +1 -1
  30. package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
  31. package/dist/model/facetFilters.d.ts +2 -3
  32. package/dist/model/facetFilters.d.ts.map +1 -1
  33. package/dist/model/facetOrdering.d.ts +2 -2
  34. package/dist/model/facets.d.ts +2 -2
  35. package/dist/model/fallbackParams.d.ts +3 -0
  36. package/dist/model/fallbackParams.d.ts.map +1 -0
  37. package/dist/model/fbtModel.d.ts +5 -0
  38. package/dist/model/fbtModel.d.ts.map +1 -0
  39. package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
  40. package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
  41. package/dist/model/getRecommendationsParams.d.ts +2 -2
  42. package/dist/model/hideConsequenceObject.d.ts +10 -0
  43. package/dist/model/hideConsequenceObject.d.ts.map +1 -0
  44. package/dist/model/highlightResult.d.ts +1 -1
  45. package/dist/model/highlightResult.d.ts.map +1 -1
  46. package/dist/model/highlightResultOption.d.ts +3 -3
  47. package/dist/model/ignorePlurals.d.ts +3 -2
  48. package/dist/model/ignorePlurals.d.ts.map +1 -1
  49. package/dist/model/index.d.ts +23 -24
  50. package/dist/model/index.d.ts.map +1 -1
  51. package/dist/model/indexSettingsAsSearchParams.d.ts +32 -35
  52. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  53. package/dist/model/lookingSimilar.d.ts +11 -0
  54. package/dist/model/lookingSimilar.d.ts.map +1 -0
  55. package/dist/model/lookingSimilarModel.d.ts +5 -0
  56. package/dist/model/lookingSimilarModel.d.ts.map +1 -0
  57. package/dist/model/lookingSimilarQuery.d.ts +4 -0
  58. package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
  59. package/dist/model/matchLevel.d.ts +1 -1
  60. package/dist/model/mode.d.ts +1 -1
  61. package/dist/model/numericFilters.d.ts +2 -3
  62. package/dist/model/numericFilters.d.ts.map +1 -1
  63. package/dist/model/optionalFilters.d.ts +2 -3
  64. package/dist/model/optionalFilters.d.ts.map +1 -1
  65. package/dist/model/paramsConsequence.d.ts +19 -0
  66. package/dist/model/paramsConsequence.d.ts.map +1 -0
  67. package/dist/model/promoteConsequenceObject.d.ts +14 -0
  68. package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
  69. package/dist/model/queryType.d.ts +1 -1
  70. package/dist/model/rankingInfo.d.ts +13 -10
  71. package/dist/model/rankingInfo.d.ts.map +1 -1
  72. package/dist/model/reRankingApplyFilter.d.ts +2 -3
  73. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  74. package/dist/model/recommendHit.d.ts +3 -3
  75. package/dist/model/recommendRule.d.ts +24 -0
  76. package/dist/model/recommendRule.d.ts.map +1 -0
  77. package/dist/model/recommendRuleMetadata.d.ts +10 -0
  78. package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
  79. package/dist/model/recommendationsHits.d.ts +0 -8
  80. package/dist/model/recommendationsHits.d.ts.map +1 -1
  81. package/dist/model/recommendationsRequest.d.ts +4 -2
  82. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  83. package/dist/model/recommendationsResults.d.ts +2 -1
  84. package/dist/model/recommendationsResults.d.ts.map +1 -1
  85. package/dist/model/recommendedForYou.d.ts +7 -0
  86. package/dist/model/recommendedForYou.d.ts.map +1 -0
  87. package/dist/model/recommendedForYouModel.d.ts +1 -1
  88. package/dist/model/recommendedForYouQuery.d.ts +2 -2
  89. package/dist/model/recommendedForYouQuery.d.ts.map +1 -1
  90. package/dist/model/redirect.d.ts +1 -1
  91. package/dist/model/redirectURL.d.ts +7 -0
  92. package/dist/model/redirectURL.d.ts.map +1 -0
  93. package/dist/model/relatedModel.d.ts +5 -0
  94. package/dist/model/relatedModel.d.ts.map +1 -0
  95. package/dist/model/relatedProducts.d.ts +11 -0
  96. package/dist/model/relatedProducts.d.ts.map +1 -0
  97. package/dist/model/relatedQuery.d.ts +4 -0
  98. package/dist/model/relatedQuery.d.ts.map +1 -0
  99. package/dist/model/removeStopWords.d.ts +3 -2
  100. package/dist/model/removeStopWords.d.ts.map +1 -1
  101. package/dist/model/removeWordsIfNoResults.d.ts +1 -1
  102. package/dist/model/renderingContent.d.ts +3 -1
  103. package/dist/model/renderingContent.d.ts.map +1 -1
  104. package/dist/model/searchPagination.d.ts +19 -0
  105. package/dist/model/searchPagination.d.ts.map +1 -0
  106. package/dist/model/searchParams.d.ts +3 -0
  107. package/dist/model/searchParams.d.ts.map +1 -0
  108. package/dist/model/searchParamsObject.d.ts +3 -0
  109. package/dist/model/searchParamsObject.d.ts.map +1 -1
  110. package/dist/model/searchParamsQuery.d.ts +1 -1
  111. package/dist/model/searchRecommendRulesParams.d.ts +18 -6
  112. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -1
  113. package/dist/model/searchRecommendRulesResponse.d.ts +6 -6
  114. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -1
  115. package/dist/model/semanticSearch.d.ts +2 -2
  116. package/dist/model/snippetResult.d.ts +1 -1
  117. package/dist/model/snippetResult.d.ts.map +1 -1
  118. package/dist/model/snippetResultOption.d.ts +2 -2
  119. package/dist/model/sortRemainingBy.d.ts +1 -1
  120. package/dist/model/supportedLanguage.d.ts +5 -0
  121. package/dist/model/supportedLanguage.d.ts.map +1 -0
  122. package/dist/model/tagFilters.d.ts +2 -3
  123. package/dist/model/tagFilters.d.ts.map +1 -1
  124. package/dist/model/taskStatus.d.ts +1 -1
  125. package/dist/model/trendingFacetHit.d.ts +2 -2
  126. package/dist/model/trendingFacets.d.ts +11 -0
  127. package/dist/model/trendingFacets.d.ts.map +1 -0
  128. package/dist/model/trendingFacetsModel.d.ts +1 -1
  129. package/dist/model/trendingFacetsQuery.d.ts +2 -2
  130. package/dist/model/trendingFacetsQuery.d.ts.map +1 -1
  131. package/dist/model/trendingItems.d.ts +15 -0
  132. package/dist/model/trendingItems.d.ts.map +1 -0
  133. package/dist/model/trendingItemsModel.d.ts +1 -1
  134. package/dist/model/trendingItemsQuery.d.ts +2 -2
  135. package/dist/model/trendingItemsQuery.d.ts.map +1 -1
  136. package/dist/model/typoTolerance.d.ts +1 -1
  137. package/dist/model/typoToleranceEnum.d.ts +3 -0
  138. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  139. package/dist/model/value.d.ts +5 -1
  140. package/dist/model/value.d.ts.map +1 -1
  141. package/dist/recommend.cjs +61 -45
  142. package/dist/recommend.esm.browser.js +58 -54
  143. package/dist/recommend.esm.node.js +61 -45
  144. package/dist/recommend.umd.js +2 -2
  145. package/dist/src/recommendClient.d.ts +36 -34
  146. package/dist/src/recommendClient.d.ts.map +1 -1
  147. package/model/aroundPrecision.ts +1 -1
  148. package/model/aroundPrecisionFromValueInner.ts +9 -0
  149. package/model/aroundRadius.ts +1 -1
  150. package/model/aroundRadiusAll.ts +3 -0
  151. package/model/autoFacetFilter.ts +16 -0
  152. package/model/baseRecommendRequest.ts +8 -4
  153. package/model/baseSearchParamsWithoutQuery.ts +26 -30
  154. package/model/baseSearchResponse.ts +9 -24
  155. package/model/{recommendationsQuery.ts → boughtTogetherQuery.ts} +3 -3
  156. package/model/clientMethodProps.ts +19 -11
  157. package/model/condition.ts +6 -12
  158. package/model/consequence.ts +9 -19
  159. package/model/deletedAtResponse.ts +2 -2
  160. package/model/distinct.ts +1 -1
  161. package/model/exactOnSingleWordQuery.ts +1 -1
  162. package/model/facetFilters.ts +2 -4
  163. package/model/facetOrdering.ts +2 -2
  164. package/model/facets.ts +2 -2
  165. package/model/{recommendationModels.ts → fallbackParams.ts} +3 -4
  166. package/model/fbtModel.ts +6 -0
  167. package/model/{consequenceHide.ts → frequentlyBoughtTogether.ts} +6 -5
  168. package/model/getRecommendationsParams.ts +2 -2
  169. package/model/hideConsequenceObject.ts +11 -0
  170. package/model/highlightResult.ts +1 -0
  171. package/model/highlightResultOption.ts +3 -3
  172. package/model/ignorePlurals.ts +4 -2
  173. package/model/index.ts +23 -24
  174. package/model/indexSettingsAsSearchParams.ts +32 -36
  175. package/model/lookingSimilar.ts +15 -0
  176. package/model/lookingSimilarModel.ts +6 -0
  177. package/model/lookingSimilarQuery.ts +6 -0
  178. package/model/matchLevel.ts +1 -1
  179. package/model/mode.ts +1 -1
  180. package/model/numericFilters.ts +2 -4
  181. package/model/optionalFilters.ts +2 -4
  182. package/model/paramsConsequence.ts +23 -0
  183. package/model/promoteConsequenceObject.ts +16 -0
  184. package/model/queryType.ts +1 -1
  185. package/model/rankingInfo.ts +13 -10
  186. package/model/reRankingApplyFilter.ts +2 -4
  187. package/model/recommendHit.ts +3 -3
  188. package/model/{ruleResponse.ts → recommendRule.ts} +7 -10
  189. package/model/{ruleResponseMetadata.ts → recommendRuleMetadata.ts} +5 -2
  190. package/model/recommendationsHits.ts +0 -10
  191. package/model/recommendationsRequest.ts +6 -2
  192. package/model/recommendationsResults.ts +4 -1
  193. package/model/{baseRecommendedForYouQuery.ts → recommendedForYou.ts} +3 -5
  194. package/model/recommendedForYouModel.ts +1 -1
  195. package/model/recommendedForYouQuery.ts +2 -3
  196. package/model/redirect.ts +1 -1
  197. package/model/{editType.ts → redirectURL.ts} +4 -2
  198. package/model/relatedModel.ts +6 -0
  199. package/model/relatedProducts.ts +15 -0
  200. package/model/relatedQuery.ts +6 -0
  201. package/model/removeStopWords.ts +4 -2
  202. package/model/removeWordsIfNoResults.ts +1 -1
  203. package/model/renderingContent.ts +4 -1
  204. package/model/searchPagination.ts +23 -0
  205. package/model/{mixedSearchFilters.ts → searchParams.ts} +3 -1
  206. package/model/searchParamsObject.ts +3 -0
  207. package/model/searchParamsQuery.ts +1 -1
  208. package/model/searchRecommendRulesParams.ts +21 -6
  209. package/model/searchRecommendRulesResponse.ts +6 -6
  210. package/model/semanticSearch.ts +2 -2
  211. package/model/snippetResult.ts +2 -1
  212. package/model/snippetResultOption.ts +2 -2
  213. package/model/sortRemainingBy.ts +1 -1
  214. package/model/supportedLanguage.ts +74 -0
  215. package/model/tagFilters.ts +2 -4
  216. package/model/taskStatus.ts +1 -1
  217. package/model/trendingFacetHit.ts +2 -2
  218. package/model/{baseTrendingFacetsQuery.ts → trendingFacets.ts} +7 -4
  219. package/model/trendingFacetsModel.ts +1 -1
  220. package/model/trendingFacetsQuery.ts +2 -3
  221. package/model/trendingItems.ts +20 -0
  222. package/model/trendingItemsModel.ts +1 -1
  223. package/model/trendingItemsQuery.ts +2 -2
  224. package/model/typoTolerance.ts +1 -1
  225. package/model/typoToleranceEnum.ts +3 -0
  226. package/model/value.ts +6 -1
  227. package/package.json +11 -8
  228. package/dist/model/anchoring.d.ts +0 -5
  229. package/dist/model/anchoring.d.ts.map +0 -1
  230. package/dist/model/automaticFacetFilter.d.ts +0 -18
  231. package/dist/model/automaticFacetFilter.d.ts.map +0 -1
  232. package/dist/model/automaticFacetFilters.d.ts +0 -6
  233. package/dist/model/automaticFacetFilters.d.ts.map +0 -1
  234. package/dist/model/baseRecommendationsQuery.d.ts +0 -12
  235. package/dist/model/baseRecommendationsQuery.d.ts.map +0 -1
  236. package/dist/model/baseRecommendedForYouQuery.d.ts +0 -8
  237. package/dist/model/baseRecommendedForYouQuery.d.ts.map +0 -1
  238. package/dist/model/baseRecommendedForYouQueryParameters.d.ts +0 -7
  239. package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +0 -1
  240. package/dist/model/baseTrendingFacetsQuery.d.ts +0 -9
  241. package/dist/model/baseTrendingFacetsQuery.d.ts.map +0 -1
  242. package/dist/model/baseTrendingItemsQuery.d.ts +0 -16
  243. package/dist/model/baseTrendingItemsQuery.d.ts.map +0 -1
  244. package/dist/model/consequenceHide.d.ts +0 -10
  245. package/dist/model/consequenceHide.d.ts.map +0 -1
  246. package/dist/model/consequenceParams.d.ts +0 -5
  247. package/dist/model/consequenceParams.d.ts.map +0 -1
  248. package/dist/model/consequenceQuery.d.ts +0 -6
  249. package/dist/model/consequenceQuery.d.ts.map +0 -1
  250. package/dist/model/consequenceQueryObject.d.ts +0 -12
  251. package/dist/model/consequenceQueryObject.d.ts.map +0 -1
  252. package/dist/model/edit.d.ts +0 -13
  253. package/dist/model/edit.d.ts.map +0 -1
  254. package/dist/model/editType.d.ts +0 -5
  255. package/dist/model/editType.d.ts.map +0 -1
  256. package/dist/model/mixedSearchFilters.d.ts +0 -2
  257. package/dist/model/mixedSearchFilters.d.ts.map +0 -1
  258. package/dist/model/params.d.ts +0 -13
  259. package/dist/model/params.d.ts.map +0 -1
  260. package/dist/model/promote.d.ts +0 -4
  261. package/dist/model/promote.d.ts.map +0 -1
  262. package/dist/model/promoteObjectID.d.ts +0 -14
  263. package/dist/model/promoteObjectID.d.ts.map +0 -1
  264. package/dist/model/promoteObjectIDs.d.ts +0 -14
  265. package/dist/model/promoteObjectIDs.d.ts.map +0 -1
  266. package/dist/model/recommendationModels.d.ts +0 -5
  267. package/dist/model/recommendationModels.d.ts.map +0 -1
  268. package/dist/model/recommendationsQuery.d.ts +0 -4
  269. package/dist/model/recommendationsQuery.d.ts.map +0 -1
  270. package/dist/model/recommendedForYouQueryParameters.d.ts +0 -4
  271. package/dist/model/recommendedForYouQueryParameters.d.ts.map +0 -1
  272. package/dist/model/ruleResponse.d.ts +0 -27
  273. package/dist/model/ruleResponse.d.ts.map +0 -1
  274. package/dist/model/ruleResponseMetadata.d.ts +0 -7
  275. package/dist/model/ruleResponseMetadata.d.ts.map +0 -1
  276. package/model/anchoring.ts +0 -6
  277. package/model/automaticFacetFilter.ts +0 -21
  278. package/model/automaticFacetFilters.ts +0 -8
  279. package/model/baseRecommendationsQuery.ts +0 -17
  280. package/model/baseRecommendedForYouQueryParameters.ts +0 -8
  281. package/model/baseTrendingItemsQuery.ts +0 -22
  282. package/model/consequenceParams.ts +0 -9
  283. package/model/consequenceQuery.ts +0 -8
  284. package/model/consequenceQueryObject.ts +0 -15
  285. package/model/edit.ts +0 -17
  286. package/model/params.ts +0 -18
  287. package/model/promote.ts +0 -6
  288. package/model/promoteObjectID.ts +0 -16
  289. package/model/promoteObjectIDs.ts +0 -16
  290. package/model/recommendedForYouQueryParameters.ts +0 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookingSimilar.d.ts","sourceRoot":"","sources":["../../model/lookingSimilar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,mBAAmB,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Looking similar model. This model recommends items that look similar to the item with the ID `objectID` based on image attributes in your index.
3
+ */
4
+ export type LookingSimilarModel = 'looking-similar';
5
+ //# sourceMappingURL=lookingSimilarModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookingSimilarModel.d.ts","sourceRoot":"","sources":["../../model/lookingSimilarModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
2
+ import type { LookingSimilar } from './lookingSimilar';
3
+ export type LookingSimilarQuery = BaseRecommendRequest & LookingSimilar;
4
+ //# sourceMappingURL=lookingSimilarQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookingSimilarQuery.d.ts","sourceRoot":"","sources":["../../model/lookingSimilarQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Indicates how well the attribute matched the search query.
2
+ * Whether the whole query string matches or only a part.
3
3
  */
4
4
  export type MatchLevel = 'full' | 'none' | 'partial';
5
5
  //# sourceMappingURL=matchLevel.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Search mode the index will use to query for results.
2
+ * Search mode the index will use to query for results. This setting only applies to indices, for which Algolia enabled NeuralSearch for you.
3
3
  */
4
4
  export type Mode = 'keywordSearch' | 'neuralSearch';
5
5
  //# sourceMappingURL=mode.d.ts.map
@@ -1,6 +1,5 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
1
  /**
3
- * [Filter on numeric attributes](https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/).
2
+ * Filter by numeric facets. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** You can use numeric comparison operators: `<`, `<=`, `=`, `!=`, `>`, `>=`. Comparsions are precise up to 3 decimals. You can also provide ranges: `facet:<lower> TO <upper>`. The range includes the lower and upper boundaries. The same combination rules apply as for `facetFilters`.
4
3
  */
5
- export type NumericFilters = MixedSearchFilters[] | string;
4
+ export type NumericFilters = NumericFilters[] | string;
6
5
  //# sourceMappingURL=numericFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"numericFilters.d.ts","sourceRoot":"","sources":["../../model/numericFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"numericFilters.d.ts","sourceRoot":"","sources":["../../model/numericFilters.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,EAAE,GAAG,MAAM,CAAC"}
@@ -1,6 +1,5 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
1
  /**
3
- * Create filters to boost or demote records. Records that match the filter are ranked higher for positive and lower for negative optional filters. In contrast to regular filters, records that don\'t match the optional filter are still included in the results, only their ranking is affected.
2
+ * Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don\'t exclude records from the search results. Records that match the optional filter rank before records that don\'t match. If you\'re using a negative filter `facet:-value`, matching records rank after records that don\'t match. - Optional filters don\'t work on virtual replicas. - Optional filters are applied _after_ sort-by attributes. - Optional filters don\'t work with numeric attributes.
4
3
  */
5
- export type OptionalFilters = MixedSearchFilters[] | string;
4
+ export type OptionalFilters = OptionalFilters[] | string;
6
5
  //# sourceMappingURL=optionalFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"optionalFilters.d.ts","sourceRoot":"","sources":["../../model/optionalFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"optionalFilters.d.ts","sourceRoot":"","sources":["../../model/optionalFilters.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,EAAE,GAAG,MAAM,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { AutoFacetFilter } from './autoFacetFilter';
2
+ /**
3
+ * Filter or boost recommendations matching a facet filter.
4
+ */
5
+ export type ParamsConsequence = {
6
+ /**
7
+ * Filter recommendations that match or don\'t match the same `facet:facet_value` combination as the viewed item.
8
+ */
9
+ automaticFacetFilters?: AutoFacetFilter[];
10
+ /**
11
+ * Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
12
+ */
13
+ filters?: string;
14
+ /**
15
+ * Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don\'t exclude records from the search results. Records that match the optional filter rank before records that don\'t match. Matches with higher weights (`<score=N>`) rank before matches with lower weights. If you\'re using a negative filter `facet:-value`, matching records rank after records that don\'t match.
16
+ */
17
+ optionalFilters?: string[];
18
+ };
19
+ //# sourceMappingURL=paramsConsequence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paramsConsequence.d.ts","sourceRoot":"","sources":["../../model/paramsConsequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,eAAe,EAAE,CAAC;IAE1C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Object ID and position of the recommendation you want to pin.
3
+ */
4
+ export type PromoteConsequenceObject = {
5
+ /**
6
+ * Unique record identifier.
7
+ */
8
+ objectID?: string;
9
+ /**
10
+ * Index in the list of recommendations where to place this item.
11
+ */
12
+ position?: number;
13
+ };
14
+ //# sourceMappingURL=promoteConsequenceObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promoteConsequenceObject.d.ts","sourceRoot":"","sources":["../../model/promoteConsequenceObject.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Determines how query words are [interpreted as prefixes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
2
+ * Determines if and how query words are interpreted as prefixes. By default, only the last query word is treated as prefix (`prefixLast`). To turn off prefix search, use `prefixNone`. Avoid `prefixAll`, which treats all query words as prefixes. This might lead to counterintuitive results and makes your search slower. For more information, see [Prefix searching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
3
3
  */
4
4
  export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
5
5
  //# sourceMappingURL=queryType.d.ts.map
@@ -1,12 +1,15 @@
1
1
  import type { MatchedGeoLocation } from './matchedGeoLocation';
2
2
  import type { Personalization } from './personalization';
3
+ /**
4
+ * Object with detailed information about the record\'s ranking.
5
+ */
3
6
  export type RankingInfo = {
4
7
  /**
5
- * This field is reserved for advanced usage.
8
+ * Whether a filter matched the query.
6
9
  */
7
- filters: number;
10
+ filters?: number;
8
11
  /**
9
- * Position of the most important matched attribute in the attributes to index list.
12
+ * Position of the first matched word in the best matching attribute of the record.
10
13
  */
11
14
  firstMatchedWord: number;
12
15
  /**
@@ -28,23 +31,23 @@ export type RankingInfo = {
28
31
  */
29
32
  nbTypos: number;
30
33
  /**
31
- * Present and set to true if a Rule promoted the hit.
34
+ * Whether the record was promoted by a rule.
32
35
  */
33
- promoted: boolean;
36
+ promoted?: boolean;
34
37
  /**
35
- * When the query contains more than one word, the sum of the distances between matched words (in meters).
38
+ * Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0.
36
39
  */
37
40
  proximityDistance?: number;
38
41
  /**
39
- * Custom ranking for the object, expressed as a single integer value.
42
+ * Overall ranking of the record, expressed as a single integer. This attribute is internal.
40
43
  */
41
44
  userScore: number;
42
45
  /**
43
- * Number of matched words, including prefixes and typos.
46
+ * Number of matched words.
44
47
  */
45
- words: number;
48
+ words?: number;
46
49
  /**
47
- * Wether the record are promoted by the re-ranking strategy.
50
+ * Whether the record is re-ranked.
48
51
  */
49
52
  promotedByReRanking?: boolean;
50
53
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rankingInfo.d.ts","sourceRoot":"","sources":["../../model/rankingInfo.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC"}
1
+ {"version":3,"file":"rankingInfo.d.ts","sourceRoot":"","sources":["../../model/rankingInfo.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC"}
@@ -1,6 +1,5 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
1
  /**
3
- * When [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) is enabled, only records that match these filters will be affected by Dynamic Re-Ranking.
2
+ * Restrict [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) to records that match these filters.
4
3
  */
5
- export type ReRankingApplyFilter = MixedSearchFilters[] | string;
4
+ export type ReRankingApplyFilter = ReRankingApplyFilter[] | string;
6
5
  //# sourceMappingURL=reRankingApplyFilter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reRankingApplyFilter.d.ts","sourceRoot":"","sources":["../../model/reRankingApplyFilter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"reRankingApplyFilter.d.ts","sourceRoot":"","sources":["../../model/reRankingApplyFilter.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,EAAE,GAAG,MAAM,CAAC"}
@@ -6,15 +6,15 @@ import type { SnippetResult } from './snippetResult';
6
6
  */
7
7
  export type RecommendHit = Record<string, any> & {
8
8
  /**
9
- * Unique object identifier.
9
+ * Unique record identifier.
10
10
  */
11
11
  objectID: string;
12
12
  /**
13
- * Show highlighted section and words matched on a query.
13
+ * Surround words that match the query with HTML tags for highlighting.
14
14
  */
15
15
  _highlightResult?: Record<string, HighlightResult>;
16
16
  /**
17
- * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
17
+ * Snippets that show the context around a matching search query.
18
18
  */
19
19
  _snippetResult?: Record<string, SnippetResult>;
20
20
  _rankingInfo?: RankingInfo;
@@ -0,0 +1,24 @@
1
+ import type { Condition } from './condition';
2
+ import type { Consequence } from './consequence';
3
+ import type { RecommendRuleMetadata } from './recommendRuleMetadata';
4
+ /**
5
+ * Recommend rule.
6
+ */
7
+ export type RecommendRule = {
8
+ _metadata?: RecommendRuleMetadata;
9
+ /**
10
+ * Unique identifier of a rule object.
11
+ */
12
+ objectID?: string;
13
+ condition?: Condition;
14
+ consequence?: Consequence;
15
+ /**
16
+ * Description of the rule\'s purpose. This can be helpful for display in the Algolia dashboard.
17
+ */
18
+ description?: string;
19
+ /**
20
+ * Indicates whether to enable the rule. If it isn\'t enabled, it isn\'t applied at query time.
21
+ */
22
+ enabled?: boolean;
23
+ };
24
+ //# sourceMappingURL=recommendRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommendRule.d.ts","sourceRoot":"","sources":["../../model/recommendRule.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Rule metadata.
3
+ */
4
+ export type RecommendRuleMetadata = {
5
+ /**
6
+ * Date and time when the object was updated, in RFC 3339 format.
7
+ */
8
+ lastUpdate?: string;
9
+ };
10
+ //# sourceMappingURL=recommendRuleMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommendRuleMetadata.d.ts","sourceRoot":"","sources":["../../model/recommendRuleMetadata.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1,13 +1,5 @@
1
1
  import type { RecommendationsHit } from './recommendationsHit';
2
2
  export type RecommendationsHits = {
3
3
  hits: RecommendationsHit[];
4
- /**
5
- * Text to search for in an index.
6
- */
7
- query?: string;
8
- /**
9
- * URL-encoded string of all search parameters.
10
- */
11
- params?: string;
12
4
  };
13
5
  //# sourceMappingURL=recommendationsHits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendationsHits.d.ts","sourceRoot":"","sources":["../../model/recommendationsHits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"recommendationsHits.d.ts","sourceRoot":"","sources":["../../model/recommendationsHits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,kBAAkB,EAAE,CAAC;CAC5B,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { RecommendationsQuery } from './recommendationsQuery';
1
+ import type { BoughtTogetherQuery } from './boughtTogetherQuery';
2
+ import type { LookingSimilarQuery } from './lookingSimilarQuery';
2
3
  import type { RecommendedForYouQuery } from './recommendedForYouQuery';
4
+ import type { RelatedQuery } from './relatedQuery';
3
5
  import type { TrendingFacetsQuery } from './trendingFacetsQuery';
4
6
  import type { TrendingItemsQuery } from './trendingItemsQuery';
5
- export type RecommendationsRequest = RecommendationsQuery | RecommendedForYouQuery | TrendingFacetsQuery | TrendingItemsQuery;
7
+ export type RecommendationsRequest = BoughtTogetherQuery | LookingSimilarQuery | RecommendedForYouQuery | RelatedQuery | TrendingFacetsQuery | TrendingItemsQuery;
6
8
  //# sourceMappingURL=recommendationsRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendationsRequest.d.ts","sourceRoot":"","sources":["../../model/recommendationsRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAC9B,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,kBAAkB,CAAC"}
1
+ {"version":3,"file":"recommendationsRequest.d.ts","sourceRoot":"","sources":["../../model/recommendationsRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAC9B,mBAAmB,GACnB,mBAAmB,GACnB,sBAAsB,GACtB,YAAY,GACZ,mBAAmB,GACnB,kBAAkB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { BaseSearchResponse } from './baseSearchResponse';
2
2
  import type { RecommendationsHits } from './recommendationsHits';
3
- export type RecommendationsResults = BaseSearchResponse & RecommendationsHits;
3
+ import type { SearchPagination } from './searchPagination';
4
+ export type RecommendationsResults = BaseSearchResponse & RecommendationsHits & SearchPagination;
4
5
  //# sourceMappingURL=recommendationsResults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendationsResults.d.ts","sourceRoot":"","sources":["../../model/recommendationsResults.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,GAAG,mBAAmB,CAAC"}
1
+ {"version":3,"file":"recommendationsResults.d.ts","sourceRoot":"","sources":["../../model/recommendationsResults.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,GACrD,mBAAmB,GACnB,gBAAgB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FallbackParams } from './fallbackParams';
2
+ import type { RecommendedForYouModel } from './recommendedForYouModel';
3
+ export type RecommendedForYou = {
4
+ model: RecommendedForYouModel;
5
+ fallbackParameters?: FallbackParams;
6
+ };
7
+ //# sourceMappingURL=recommendedForYou.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommendedForYou.d.ts","sourceRoot":"","sources":["../../model/recommendedForYou.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,sBAAsB,CAAC;IAE9B,kBAAkB,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Recommended for you model.
2
+ * \"Recommened for you\" model.
3
3
  */
4
4
  export type RecommendedForYouModel = 'recommended-for-you';
5
5
  //# sourceMappingURL=recommendedForYouModel.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import type { BaseRecommendRequest } from './baseRecommendRequest';
2
- import type { BaseRecommendedForYouQuery } from './baseRecommendedForYouQuery';
3
- export type RecommendedForYouQuery = BaseRecommendedForYouQuery & BaseRecommendRequest;
2
+ import type { RecommendedForYou } from './recommendedForYou';
3
+ export type RecommendedForYouQuery = BaseRecommendRequest & RecommendedForYou;
4
4
  //# sourceMappingURL=recommendedForYouQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendedForYouQuery.d.ts","sourceRoot":"","sources":["../../model/recommendedForYouQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAC7D,oBAAoB,CAAC"}
1
+ {"version":3,"file":"recommendedForYouQuery.d.ts","sourceRoot":"","sources":["../../model/recommendedForYouQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,GAAG,iBAAiB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { RedirectRuleIndexMetadata } from './redirectRuleIndexMetadata';
2
2
  /**
3
- * [Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
3
+ * [Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/), this this parameter is for internal use only.
4
4
  */
5
5
  export type Redirect = {
6
6
  index?: RedirectRuleIndexMetadata[];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The redirect rule container.
3
+ */
4
+ export type RedirectURL = {
5
+ url?: string;
6
+ };
7
+ //# sourceMappingURL=redirectURL.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirectURL.d.ts","sourceRoot":"","sources":["../../model/redirectURL.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 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.
3
+ */
4
+ export type RelatedModel = 'related-products';
5
+ //# sourceMappingURL=relatedModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relatedModel.d.ts","sourceRoot":"","sources":["../../model/relatedModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { FallbackParams } from './fallbackParams';
2
+ import type { RelatedModel } from './relatedModel';
3
+ export type RelatedProducts = {
4
+ model: RelatedModel;
5
+ /**
6
+ * Unique record identifier.
7
+ */
8
+ objectID: string;
9
+ fallbackParameters?: FallbackParams;
10
+ };
11
+ //# sourceMappingURL=relatedProducts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relatedProducts.d.ts","sourceRoot":"","sources":["../../model/relatedProducts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
2
+ import type { RelatedProducts } from './relatedProducts';
3
+ export type RelatedQuery = BaseRecommendRequest & RelatedProducts;
4
+ //# sourceMappingURL=relatedQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relatedQuery.d.ts","sourceRoot":"","sources":["../../model/relatedQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG,eAAe,CAAC"}
@@ -1,5 +1,6 @@
1
+ import type { SupportedLanguage } from './supportedLanguage';
1
2
  /**
2
- * Removes stop (common) words from the query before executing it. `removeStopWords` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which stop words should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the stop words feature, ensuring that stop words are removed from consideration in a search. The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the stop words feature, allowing stop words to be taken into account in a search.
3
+ * Removes stop words from the search query. Stop words are common words like articles, conjunctions, prepositions, or pronouns that have little or no meaning on their own. In English, \"the\", \"a\", or \"and\" are stop words. You should only use this feature for the languages used in your index.
3
4
  */
4
- export type RemoveStopWords = string[] | boolean;
5
+ export type RemoveStopWords = SupportedLanguage[] | boolean;
5
6
  //# sourceMappingURL=removeStopWords.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeStopWords.d.ts","sourceRoot":"","sources":["../../model/removeStopWords.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"removeStopWords.d.ts","sourceRoot":"","sources":["../../model/removeStopWords.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,iBAAiB,EAAE,GAAG,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Strategy to [remove words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/) from the query when it doesn\'t match any hits.
2
+ * Strategy for removing words from the query when it doesn\'t return any results. This helps to avoid returning empty search results. - `none`. No words are removed when a query doesn\'t return results. - `lastWords`. Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed. - `firstWords`. Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed. - `allOptional`. Treat all words as optional. For more information, see [Remove words to improve results](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/).
3
3
  */
4
4
  export type RemoveWordsIfNoResults = 'allOptional' | 'firstWords' | 'lastWords' | 'none';
5
5
  //# sourceMappingURL=removeWordsIfNoResults.d.ts.map
@@ -1,8 +1,10 @@
1
1
  import type { FacetOrdering } from './facetOrdering';
2
+ import type { RedirectURL } from './redirectURL';
2
3
  /**
3
- * Extra content for the search UI, for example, to control the [ordering and display of facets](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/merchandising-facets/#merchandise-facets-and-their-values-in-the-manual-editor). You can set a default value and dynamically override it with [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/).
4
+ * Extra data that can be used in the search UI. You can use this to control aspects of your search UI, such as, the order of facet names and values without changing your frontend code.
4
5
  */
5
6
  export type RenderingContent = {
6
7
  facetOrdering?: FacetOrdering;
8
+ redirect?: RedirectURL;
7
9
  };
8
10
  //# sourceMappingURL=renderingContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderingContent.d.ts","sourceRoot":"","sources":["../../model/renderingContent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC"}
1
+ {"version":3,"file":"renderingContent.d.ts","sourceRoot":"","sources":["../../model/renderingContent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB,CAAC"}
@@ -0,0 +1,19 @@
1
+ export type SearchPagination = {
2
+ /**
3
+ * Page of search results to retrieve.
4
+ */
5
+ page: number;
6
+ /**
7
+ * Number of results (hits).
8
+ */
9
+ nbHits: number;
10
+ /**
11
+ * Number of pages of results.
12
+ */
13
+ nbPages: number;
14
+ /**
15
+ * Number of hits per page.
16
+ */
17
+ hitsPerPage: number;
18
+ };
19
+ //# sourceMappingURL=searchPagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchPagination.d.ts","sourceRoot":"","sources":["../../model/searchPagination.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SearchParamsObject } from './searchParamsObject';
2
+ export type SearchParams = Record<string, any> & SearchParamsObject;
3
+ //# sourceMappingURL=searchParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchParams.d.ts","sourceRoot":"","sources":["../../model/searchParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC"}
@@ -1,4 +1,7 @@
1
1
  import type { BaseSearchParams } from './baseSearchParams';
2
2
  import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
3
+ /**
4
+ * Each parameter value, including the `query` must not be larger than 512 bytes.
5
+ */
3
6
  export type SearchParamsObject = BaseSearchParams & IndexSettingsAsSearchParams;
4
7
  //# sourceMappingURL=searchParamsObject.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchParamsObject.d.ts","sourceRoot":"","sources":["../../model/searchParamsObject.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,2BAA2B,CAAC"}
1
+ {"version":3,"file":"searchParamsObject.d.ts","sourceRoot":"","sources":["../../model/searchParamsObject.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,2BAA2B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export type SearchParamsQuery = {
2
2
  /**
3
- * Text to search for in an index.
3
+ * Search query.
4
4
  */
5
5
  query?: string;
6
6
  };
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Recommend rules search parameters.
2
+ * Recommend rules parameters.
3
3
  */
4
4
  export type SearchRecommendRulesParams = {
5
5
  /**
6
- * Full-text query.
6
+ * Search query.
7
7
  */
8
8
  query?: string;
9
9
  /**
10
- * Restricts responses to the specified [contextual rule](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#creating-contextual-rules).
10
+ * Only search for rules with matching context.
11
11
  */
12
12
  context?: string;
13
13
  /**
14
- * Requested page (the first page is page 0).
14
+ * Requested page of the API response.
15
15
  */
16
16
  page?: number;
17
17
  /**
@@ -19,8 +19,20 @@ export type SearchRecommendRulesParams = {
19
19
  */
20
20
  hitsPerPage?: number;
21
21
  /**
22
- * Restricts responses to enabled rules. When absent (default), _all_ rules are retrieved.
22
+ * Whether to only show rules where the value of their `enabled` property matches this parameter. If absent, show all rules, regardless of their `enabled` property.
23
23
  */
24
- enabled?: boolean | null;
24
+ enabled?: boolean;
25
+ /**
26
+ * Filter expression. This only searches for rules matching the filter expression.
27
+ */
28
+ filters?: string;
29
+ /**
30
+ * Include facets and facet values in the response. Use `[\'*\']` to include all facets.
31
+ */
32
+ facets?: string[];
33
+ /**
34
+ * Maximum number of values to return for each facet.
35
+ */
36
+ maxValuesPerFacet?: number;
25
37
  };
26
38
  //# sourceMappingURL=searchRecommendRulesParams.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchRecommendRulesParams.d.ts","sourceRoot":"","sources":["../../model/searchRecommendRulesParams.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"searchRecommendRulesParams.d.ts","sourceRoot":"","sources":["../../model/searchRecommendRulesParams.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -1,19 +1,19 @@
1
- import type { RuleResponse } from './ruleResponse';
1
+ import type { RecommendRule } from './recommendRule';
2
2
  export type SearchRecommendRulesResponse = {
3
3
  /**
4
- * Fetched rules.
4
+ * Recommend rules that match the search criteria.
5
5
  */
6
- hits: RuleResponse[];
6
+ hits: RecommendRule[];
7
7
  /**
8
- * Number of hits the search query matched.
8
+ * Number of results (hits).
9
9
  */
10
10
  nbHits: number;
11
11
  /**
12
- * Page to retrieve (the first page is `0`, not `1`).
12
+ * Page of search results to retrieve.
13
13
  */
14
14
  page: number;
15
15
  /**
16
- * Number of pages of results for the current query.
16
+ * Number of pages of results.
17
17
  */
18
18
  nbPages: number;
19
19
  };