@algolia/recommend 5.0.0-alpha.9 → 5.0.0-alpha.90

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/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/node.d.ts +5 -5
  3. package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
  4. package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
  5. package/dist/model/alternativesAsExact.d.ts +1 -1
  6. package/dist/model/alternativesAsExact.d.ts.map +1 -1
  7. package/dist/model/anchoring.d.ts +5 -0
  8. package/dist/model/anchoring.d.ts.map +1 -0
  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 +5 -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 +1 -1
  16. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  17. package/dist/model/automaticFacetFilter.d.ts +18 -0
  18. package/dist/model/automaticFacetFilter.d.ts.map +1 -0
  19. package/dist/model/automaticFacetFilters.d.ts +6 -0
  20. package/dist/model/automaticFacetFilters.d.ts.map +1 -0
  21. package/dist/model/baseRecommendRequest.d.ts +14 -17
  22. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  23. package/dist/model/baseRecommendationsQuery.d.ts +12 -0
  24. package/dist/model/baseRecommendationsQuery.d.ts.map +1 -0
  25. package/dist/model/baseSearchParams.d.ts +3 -3
  26. package/dist/model/baseSearchParams.d.ts.map +1 -1
  27. package/dist/model/baseSearchParamsWithoutQuery.d.ts +118 -122
  28. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  29. package/dist/model/baseSearchResponse.d.ts +105 -101
  30. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  31. package/dist/model/baseTrendingFacetsQuery.d.ts +9 -0
  32. package/dist/model/baseTrendingFacetsQuery.d.ts.map +1 -0
  33. package/dist/model/baseTrendingItemsQuery.d.ts +16 -0
  34. package/dist/model/baseTrendingItemsQuery.d.ts.map +1 -0
  35. package/dist/model/clientMethodProps.d.ts +127 -60
  36. package/dist/model/clientMethodProps.d.ts.map +1 -1
  37. package/dist/model/condition.d.ts +17 -0
  38. package/dist/model/condition.d.ts.map +1 -0
  39. package/dist/model/consequence.d.ts +26 -0
  40. package/dist/model/consequence.d.ts.map +1 -0
  41. package/dist/model/consequenceHide.d.ts +10 -0
  42. package/dist/model/consequenceHide.d.ts.map +1 -0
  43. package/dist/model/consequenceParams.d.ts +5 -0
  44. package/dist/model/consequenceParams.d.ts.map +1 -0
  45. package/dist/model/consequenceQuery.d.ts +6 -0
  46. package/dist/model/consequenceQuery.d.ts.map +1 -0
  47. package/dist/model/consequenceQueryObject.d.ts +12 -0
  48. package/dist/model/consequenceQueryObject.d.ts.map +1 -0
  49. package/dist/model/deletedAtResponse.d.ts +14 -0
  50. package/dist/model/deletedAtResponse.d.ts.map +1 -0
  51. package/dist/model/distinct.d.ts +4 -4
  52. package/dist/model/distinct.d.ts.map +1 -1
  53. package/dist/model/edit.d.ts +13 -0
  54. package/dist/model/edit.d.ts.map +1 -0
  55. package/dist/model/editType.d.ts +5 -0
  56. package/dist/model/editType.d.ts.map +1 -0
  57. package/dist/model/errorBase.d.ts +6 -6
  58. package/dist/model/errorBase.d.ts.map +1 -1
  59. package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
  60. package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
  61. package/dist/model/exhaustive.d.ts +26 -0
  62. package/dist/model/exhaustive.d.ts.map +1 -0
  63. package/dist/model/facetFilters.d.ts +5 -5
  64. package/dist/model/facetFilters.d.ts.map +1 -1
  65. package/dist/model/facetOrdering.d.ts +12 -12
  66. package/dist/model/facetOrdering.d.ts.map +1 -1
  67. package/dist/model/facets.d.ts +9 -9
  68. package/dist/model/facets.d.ts.map +1 -1
  69. package/dist/model/facetsStats.d.ts +18 -18
  70. package/dist/model/facetsStats.d.ts.map +1 -1
  71. package/dist/model/getRecommendTaskResponse.d.ts +5 -0
  72. package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
  73. package/dist/model/getRecommendationsParams.d.ts +10 -10
  74. package/dist/model/getRecommendationsParams.d.ts.map +1 -1
  75. package/dist/model/getRecommendationsResponse.d.ts +4 -4
  76. package/dist/model/getRecommendationsResponse.d.ts.map +1 -1
  77. package/dist/model/highlightResult.d.ts +2 -2
  78. package/dist/model/highlightResult.d.ts.map +1 -1
  79. package/dist/model/highlightResultOption.d.ts +19 -19
  80. package/dist/model/highlightResultOption.d.ts.map +1 -1
  81. package/dist/model/ignorePlurals.d.ts +4 -4
  82. package/dist/model/ignorePlurals.d.ts.map +1 -1
  83. package/dist/model/index.d.ts +87 -53
  84. package/dist/model/index.d.ts.map +1 -1
  85. package/dist/model/indexSettingsAsSearchParams.d.ts +162 -160
  86. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  87. package/dist/model/matchLevel.d.ts +4 -4
  88. package/dist/model/matchLevel.d.ts.map +1 -1
  89. package/dist/model/matchedGeoLocation.d.ts +14 -14
  90. package/dist/model/matchedGeoLocation.d.ts.map +1 -1
  91. package/dist/model/mixedSearchFilters.d.ts +1 -1
  92. package/dist/model/mixedSearchFilters.d.ts.map +1 -1
  93. package/dist/model/mode.d.ts +5 -0
  94. package/dist/model/mode.d.ts.map +1 -0
  95. package/dist/model/numericFilters.d.ts +5 -5
  96. package/dist/model/numericFilters.d.ts.map +1 -1
  97. package/dist/model/optionalFilters.d.ts +5 -5
  98. package/dist/model/optionalFilters.d.ts.map +1 -1
  99. package/dist/model/params.d.ts +13 -0
  100. package/dist/model/params.d.ts.map +1 -0
  101. package/dist/model/personalization.d.ts +14 -14
  102. package/dist/model/personalization.d.ts.map +1 -1
  103. package/dist/model/promote.d.ts +4 -0
  104. package/dist/model/promote.d.ts.map +1 -0
  105. package/dist/model/promoteObjectID.d.ts +14 -0
  106. package/dist/model/promoteObjectID.d.ts.map +1 -0
  107. package/dist/model/promoteObjectIDs.d.ts +14 -0
  108. package/dist/model/promoteObjectIDs.d.ts.map +1 -0
  109. package/dist/model/queryType.d.ts +4 -4
  110. package/dist/model/queryType.d.ts.map +1 -1
  111. package/dist/model/rankingInfo.d.ts +50 -50
  112. package/dist/model/rankingInfo.d.ts.map +1 -1
  113. package/dist/model/reRankingApplyFilter.d.ts +5 -5
  114. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  115. package/dist/model/recommendHit.d.ts +26 -26
  116. package/dist/model/recommendHit.d.ts.map +1 -1
  117. package/dist/model/recommendHits.d.ts +12 -4
  118. package/dist/model/recommendHits.d.ts.map +1 -1
  119. package/dist/model/recommendModels.d.ts +2 -0
  120. package/dist/model/recommendModels.d.ts.map +1 -0
  121. package/dist/model/recommendationModels.d.ts +4 -4
  122. package/dist/model/recommendationModels.d.ts.map +1 -1
  123. package/dist/model/recommendationsQuery.d.ts +4 -0
  124. package/dist/model/recommendationsQuery.d.ts.map +1 -0
  125. package/dist/model/recommendationsRequest.d.ts +4 -3
  126. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  127. package/dist/model/recommendationsResponse.d.ts +3 -3
  128. package/dist/model/recommendationsResponse.d.ts.map +1 -1
  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/removeStopWords.d.ts +4 -4
  136. package/dist/model/removeStopWords.d.ts.map +1 -1
  137. package/dist/model/removeWordsIfNoResults.d.ts +4 -4
  138. package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
  139. package/dist/model/renderingContent.d.ts +7 -7
  140. package/dist/model/renderingContent.d.ts.map +1 -1
  141. package/dist/model/ruleResponse.d.ts +27 -0
  142. package/dist/model/ruleResponse.d.ts.map +1 -0
  143. package/dist/model/ruleResponseMetadata.d.ts +7 -0
  144. package/dist/model/ruleResponseMetadata.d.ts.map +1 -0
  145. package/dist/model/searchParamsObject.d.ts +3 -3
  146. package/dist/model/searchParamsObject.d.ts.map +1 -1
  147. package/dist/model/searchParamsQuery.d.ts +6 -6
  148. package/dist/model/searchParamsQuery.d.ts.map +1 -1
  149. package/dist/model/searchRecommendRulesParams.d.ts +30 -0
  150. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -0
  151. package/dist/model/searchRecommendRulesResponse.d.ts +20 -0
  152. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -0
  153. package/dist/model/semanticSearch.d.ts +10 -0
  154. package/dist/model/semanticSearch.d.ts.map +1 -0
  155. package/dist/model/snippetResult.d.ts +2 -2
  156. package/dist/model/snippetResult.d.ts.map +1 -1
  157. package/dist/model/snippetResultOption.d.ts +11 -11
  158. package/dist/model/snippetResultOption.d.ts.map +1 -1
  159. package/dist/model/sortRemainingBy.d.ts +4 -4
  160. package/dist/model/sortRemainingBy.d.ts.map +1 -1
  161. package/dist/model/tagFilters.d.ts +5 -5
  162. package/dist/model/tagFilters.d.ts.map +1 -1
  163. package/dist/model/taskStatus.d.ts +5 -0
  164. package/dist/model/taskStatus.d.ts.map +1 -0
  165. package/dist/model/trendingFacetsModel.d.ts +5 -0
  166. package/dist/model/trendingFacetsModel.d.ts.map +1 -0
  167. package/dist/model/trendingFacetsQuery.d.ts +4 -0
  168. package/dist/model/trendingFacetsQuery.d.ts.map +1 -0
  169. package/dist/model/trendingItemsModel.d.ts +5 -0
  170. package/dist/model/trendingItemsModel.d.ts.map +1 -0
  171. package/dist/model/trendingItemsQuery.d.ts +4 -0
  172. package/dist/model/trendingItemsQuery.d.ts.map +1 -0
  173. package/dist/model/typoTolerance.d.ts +5 -5
  174. package/dist/model/typoTolerance.d.ts.map +1 -1
  175. package/dist/model/typoToleranceEnum.d.ts +1 -1
  176. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  177. package/dist/model/value.d.ts +8 -8
  178. package/dist/model/value.d.ts.map +1 -1
  179. package/dist/recommend.cjs +381 -0
  180. package/dist/recommend.esm.browser.js +552 -469
  181. package/dist/recommend.esm.node.js +370 -235
  182. package/dist/recommend.umd.js +2 -2
  183. package/dist/src/recommendClient.d.ts +129 -81
  184. package/dist/src/recommendClient.d.ts.map +1 -1
  185. package/index.js +1 -1
  186. package/model/advancedSyntaxFeatures.ts +1 -1
  187. package/model/alternativesAsExact.ts +1 -1
  188. package/model/anchoring.ts +6 -0
  189. package/model/aroundPrecision.ts +8 -0
  190. package/model/aroundPrecisionFromValueInner.ts +7 -0
  191. package/model/aroundRadius.ts +2 -2
  192. package/model/aroundRadiusAll.ts +1 -1
  193. package/model/automaticFacetFilter.ts +21 -0
  194. package/model/automaticFacetFilters.ts +8 -0
  195. package/model/baseRecommendRequest.ts +5 -11
  196. package/model/baseRecommendationsQuery.ts +17 -0
  197. package/model/baseSearchParams.ts +1 -1
  198. package/model/baseSearchParamsWithoutQuery.ts +40 -45
  199. package/model/baseSearchResponse.ts +37 -31
  200. package/model/baseTrendingFacetsQuery.ts +12 -0
  201. package/model/baseTrendingItemsQuery.ts +22 -0
  202. package/model/clientMethodProps.ts +83 -11
  203. package/model/condition.ts +22 -0
  204. package/model/consequence.ts +32 -0
  205. package/model/consequenceHide.ts +11 -0
  206. package/model/consequenceParams.ts +9 -0
  207. package/model/consequenceQuery.ts +8 -0
  208. package/model/consequenceQueryObject.ts +15 -0
  209. package/model/deletedAtResponse.ts +16 -0
  210. package/model/distinct.ts +2 -2
  211. package/model/edit.ts +17 -0
  212. package/model/editType.ts +6 -0
  213. package/model/errorBase.ts +1 -1
  214. package/model/exactOnSingleWordQuery.ts +2 -2
  215. package/model/exhaustive.ts +31 -0
  216. package/model/facetFilters.ts +2 -2
  217. package/model/facetOrdering.ts +3 -3
  218. package/model/facets.ts +2 -2
  219. package/model/facetsStats.ts +5 -5
  220. package/model/getRecommendTaskResponse.ts +7 -0
  221. package/model/getRecommendationsParams.ts +3 -3
  222. package/model/getRecommendationsResponse.ts +1 -1
  223. package/model/highlightResult.ts +1 -1
  224. package/model/highlightResultOption.ts +2 -2
  225. package/model/ignorePlurals.ts +2 -2
  226. package/model/index.ts +40 -6
  227. package/model/indexSettingsAsSearchParams.ts +51 -47
  228. package/model/matchLevel.ts +1 -1
  229. package/model/matchedGeoLocation.ts +1 -1
  230. package/model/mixedSearchFilters.ts +1 -1
  231. package/model/mode.ts +6 -0
  232. package/model/numericFilters.ts +2 -2
  233. package/model/optionalFilters.ts +2 -2
  234. package/model/params.ts +18 -0
  235. package/model/personalization.ts +1 -1
  236. package/model/promote.ts +6 -0
  237. package/model/promoteObjectID.ts +16 -0
  238. package/model/promoteObjectIDs.ts +16 -0
  239. package/model/queryType.ts +2 -2
  240. package/model/rankingInfo.ts +1 -1
  241. package/model/reRankingApplyFilter.ts +2 -2
  242. package/model/recommendHit.ts +4 -4
  243. package/model/recommendHits.ts +11 -1
  244. package/model/recommendModels.ts +7 -0
  245. package/model/recommendationModels.ts +2 -2
  246. package/model/recommendationsQuery.ts +7 -0
  247. package/model/recommendationsRequest.ts +8 -4
  248. package/model/recommendationsResponse.ts +1 -1
  249. package/model/redirect.ts +10 -0
  250. package/model/redirectRuleIndexMetadata.ts +27 -0
  251. package/model/redirectRuleIndexMetadataData.ts +8 -0
  252. package/model/removeStopWords.ts +2 -2
  253. package/model/removeWordsIfNoResults.ts +2 -2
  254. package/model/renderingContent.ts +2 -2
  255. package/model/ruleResponse.ts +34 -0
  256. package/model/ruleResponseMetadata.ts +8 -0
  257. package/model/searchParamsObject.ts +1 -1
  258. package/model/searchParamsQuery.ts +2 -2
  259. package/model/searchRecommendRulesParams.ts +36 -0
  260. package/model/searchRecommendRulesResponse.ts +25 -0
  261. package/model/semanticSearch.ts +11 -0
  262. package/model/snippetResult.ts +1 -1
  263. package/model/snippetResultOption.ts +2 -2
  264. package/model/sortRemainingBy.ts +2 -2
  265. package/model/tagFilters.ts +2 -2
  266. package/model/taskStatus.ts +6 -0
  267. package/model/trendingFacetsModel.ts +6 -0
  268. package/model/trendingFacetsQuery.ts +7 -0
  269. package/model/trendingItemsModel.ts +6 -0
  270. package/model/trendingItemsQuery.ts +6 -0
  271. package/model/typoTolerance.ts +2 -2
  272. package/model/typoToleranceEnum.ts +1 -1
  273. package/model/value.ts +1 -1
  274. package/package.json +30 -13
  275. package/dist/model/baseRecommendationRequest.d.ts +0 -9
  276. package/dist/model/baseRecommendationRequest.d.ts.map +0 -1
  277. package/dist/model/baseTrendingRequest.d.ts +0 -13
  278. package/dist/model/baseTrendingRequest.d.ts.map +0 -1
  279. package/dist/model/recommendationRequest.d.ts +0 -4
  280. package/dist/model/recommendationRequest.d.ts.map +0 -1
  281. package/dist/model/trendingModels.d.ts +0 -5
  282. package/dist/model/trendingModels.d.ts.map +0 -1
  283. package/dist/model/trendingRequest.d.ts +0 -4
  284. package/dist/model/trendingRequest.d.ts.map +0 -1
  285. package/dist/recommend.cjs.js +0 -248
  286. package/model/baseRecommendationRequest.ts +0 -12
  287. package/model/baseTrendingRequest.ts +0 -17
  288. package/model/recommendationRequest.ts +0 -7
  289. package/model/trendingModels.ts +0 -6
  290. package/model/trendingRequest.ts +0 -6
@@ -1,20 +1,20 @@
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
+ import type { AroundPrecision } from './aroundPrecision';
3
4
  import type { AroundRadius } from './aroundRadius';
4
5
  import type { FacetFilters } from './facetFilters';
5
6
  import type { NumericFilters } from './numericFilters';
6
7
  import type { OptionalFilters } from './optionalFilters';
7
- import type { ReRankingApplyFilter } from './reRankingApplyFilter';
8
8
  import type { TagFilters } from './tagFilters';
9
9
 
10
10
  export type BaseSearchParamsWithoutQuery = {
11
11
  /**
12
- * Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results.
12
+ * Overrides the query parameter and performs a more generic search.
13
13
  */
14
14
  similarQuery?: string;
15
15
 
16
16
  /**
17
- * Filter the query with numeric, facet and/or tag filters.
17
+ * [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
18
18
  */
19
19
  filters?: string;
20
20
 
@@ -27,114 +27,116 @@ export type BaseSearchParamsWithoutQuery = {
27
27
  tagFilters?: TagFilters;
28
28
 
29
29
  /**
30
- * Determines how to calculate the total score for filtering.
30
+ * Determines how to calculate [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores). If `false`, maximum score is kept. If `true`, score is summed.
31
31
  */
32
32
  sumOrFiltersScores?: boolean;
33
33
 
34
34
  /**
35
- * Retrieve facets and their facet values.
35
+ * Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/).
36
36
  */
37
- facets?: string[];
37
+ restrictSearchableAttributes?: string[];
38
38
 
39
39
  /**
40
- * Maximum number of facet values to return for each facet during a regular search.
40
+ * Returns [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts), their facet values, and the number of matching facet values.
41
41
  */
42
- maxValuesPerFacet?: number;
42
+ facets?: string[];
43
43
 
44
44
  /**
45
- * Force faceting to be applied after de-duplication (via the Distinct setting).
45
+ * Forces faceting to be applied after [de-duplication](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/) (with the distinct feature). Alternatively, the `afterDistinct` [modifier](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) of `attributesForFaceting` allows for more granular control.
46
46
  */
47
47
  facetingAfterDistinct?: boolean;
48
48
 
49
49
  /**
50
- * Controls how facet values are fetched.
51
- */
52
- sortFacetValuesBy?: string;
53
-
54
- /**
55
- * Specify the page to retrieve.
50
+ * Page to retrieve (the first page is `0`, not `1`).
56
51
  */
57
52
  page?: number;
58
53
 
59
54
  /**
60
- * Specify the offset of the first hit to return.
55
+ * Specifies the offset of the first hit to return. > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
61
56
  */
62
57
  offset?: number;
63
58
 
64
59
  /**
65
- * Set the number of hits to retrieve (used only with offset).
60
+ * Sets the number of hits to retrieve (for use with `offset`). > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
66
61
  */
67
62
  length?: number;
68
63
 
69
64
  /**
70
- * Search for entries around a central geolocation, enabling a geo search within a circular area.
65
+ * Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.
71
66
  */
72
67
  aroundLatLng?: string;
73
68
 
74
69
  /**
75
- * Search for entries around a given location automatically computed from the requester\'s IP address.
70
+ * Search for entries around a location. The location is automatically computed from the requester\'s IP address.
76
71
  */
77
72
  aroundLatLngViaIP?: boolean;
78
73
 
79
74
  aroundRadius?: AroundRadius;
80
75
 
81
- /**
82
- * Precision of geo search (in meters), to add grouping by geo location to the ranking formula.
83
- */
84
- aroundPrecision?: number;
76
+ aroundPrecision?: AroundPrecision;
85
77
 
86
78
  /**
87
- * Minimum radius (in meters) used for a geo search when aroundRadius is not set.
79
+ * Minimum radius (in meters) used for a geographical search when `aroundRadius` isn\'t set.
88
80
  */
89
81
  minimumAroundRadius?: number;
90
82
 
91
83
  /**
92
- * Search inside a rectangular area (in geo coordinates).
84
+ * Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
93
85
  */
94
- insideBoundingBox?: number[];
86
+ insideBoundingBox?: number[][];
95
87
 
96
88
  /**
97
- * Search inside a polygon (in geo coordinates).
89
+ * Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
98
90
  */
99
- insidePolygon?: number[];
91
+ insidePolygon?: number[][];
100
92
 
101
93
  /**
102
- * This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search.
94
+ * Changes the default values of parameters that work best for a natural language query, such as `ignorePlurals`, `removeStopWords`, `removeWordsIfNoResults`, `analyticsTags`, and `ruleContexts`. These parameters work well together when the query consists of fuller natural language strings instead of keywords, for example when processing voice search queries.
103
95
  */
104
96
  naturalLanguages?: string[];
105
97
 
106
98
  /**
107
- * Enables contextual rules.
99
+ * Assigns [rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) to search queries.
108
100
  */
109
101
  ruleContexts?: string[];
110
102
 
111
103
  /**
112
- * Define the impact of the Personalization feature.
104
+ * Defines how much [Personalization affects results](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
113
105
  */
114
106
  personalizationImpact?: number;
115
107
 
116
108
  /**
117
- * Associates a certain user token with the current search.
109
+ * Associates a [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) with the current search.
118
110
  */
119
111
  userToken?: string;
120
112
 
121
113
  /**
122
- * Retrieve detailed ranking information.
114
+ * Incidates whether the search response includes [detailed ranking information](https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/understanding-the-api-response/#ranking-information).
123
115
  */
124
116
  getRankingInfo?: boolean;
125
117
 
126
118
  /**
127
- * Enable the Click Analytics feature.
119
+ * Enriches the API\'s response with information about how the query was processed.
120
+ */
121
+ explain?: string[];
122
+
123
+ /**
124
+ * Whether to take into account an index\'s synonyms for a particular search.
125
+ */
126
+ synonyms?: boolean;
127
+
128
+ /**
129
+ * Indicates whether a query ID parameter is included in the search response. This is required for [tracking click and conversion events](https://www.algolia.com/doc/guides/sending-events/concepts/event-types/#events-related-to-algolia-requests).
128
130
  */
129
131
  clickAnalytics?: boolean;
130
132
 
131
133
  /**
132
- * Whether the current query will be taken into account in the Analytics.
134
+ * Indicates whether this query will be included in [analytics](https://www.algolia.com/doc/guides/search-analytics/guides/exclude-queries/).
133
135
  */
134
136
  analytics?: boolean;
135
137
 
136
138
  /**
137
- * List of tags to apply to the query for analytics purposes.
139
+ * Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
138
140
  */
139
141
  analyticsTags?: string[];
140
142
 
@@ -144,14 +146,7 @@ export type BaseSearchParamsWithoutQuery = {
144
146
  percentileComputation?: boolean;
145
147
 
146
148
  /**
147
- * Whether this search should participate in running AB tests.
149
+ * Incidates whether this search will be considered in A/B testing.
148
150
  */
149
151
  enableABTest?: boolean;
150
-
151
- /**
152
- * Whether this search should use AI Re-Ranking.
153
- */
154
- enableReRanking?: boolean;
155
-
156
- reRankingApplyFilter?: ReRankingApplyFilter | null;
157
152
  };
@@ -1,46 +1,50 @@
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
+ import type { Exhaustive } from './exhaustive';
3
4
  import type { FacetsStats } from './facetsStats';
5
+ import type { Redirect } from './redirect';
4
6
  import type { RenderingContent } from './renderingContent';
5
7
 
6
- export type BaseSearchResponse = {
8
+ export type BaseSearchResponse = Record<string, any> & {
7
9
  /**
8
- * If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID.
10
+ * A/B test ID. This is only included in the response for indices that are part of an A/B test.
9
11
  */
10
12
  abTestID?: number;
11
13
 
12
14
  /**
13
- * If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used (starting at 1).
15
+ * Variant ID. This is only included in the response for indices that are part of an A/B test.
14
16
  */
15
17
  abTestVariantID?: number;
16
18
 
17
19
  /**
18
- * The computed geo location.
20
+ * Computed geographical location.
19
21
  */
20
22
  aroundLatLng?: string;
21
23
 
22
24
  /**
23
- * The automatically computed radius. For legacy reasons, this parameter is a string and not an integer.
25
+ * Automatically-computed radius.
24
26
  */
25
27
  automaticRadius?: string;
26
28
 
29
+ exhaustive?: Exhaustive;
30
+
27
31
  /**
28
- * Whether the facet count is exhaustive or approximate.
32
+ * See the `facetsCount` field of the `exhaustive` object in the response.
29
33
  */
30
34
  exhaustiveFacetsCount?: boolean;
31
35
 
32
36
  /**
33
- * Indicate if the nbHits count was exhaustive or approximate.
37
+ * See the `nbHits` field of the `exhaustive` object in the response.
34
38
  */
35
- exhaustiveNbHits: boolean;
39
+ exhaustiveNbHits?: boolean;
36
40
 
37
41
  /**
38
- * Indicate if the typo-tolerance search was exhaustive or approximate (only included when typo-tolerance is enabled).
42
+ * See the `typo` field of the `exhaustive` object in the response.
39
43
  */
40
44
  exhaustiveTypo?: boolean;
41
45
 
42
46
  /**
43
- * A mapping of each facet name to the corresponding facet counts.
47
+ * Mapping of each facet name to the corresponding facet counts.
44
48
  */
45
49
  facets?: Record<string, Record<string, number>>;
46
50
 
@@ -50,7 +54,7 @@ export type BaseSearchResponse = {
50
54
  facets_stats?: Record<string, FacetsStats>;
51
55
 
52
56
  /**
53
- * Set the number of hits per page.
57
+ * Number of hits per page.
54
58
  */
55
59
  hitsPerPage: number;
56
60
 
@@ -60,42 +64,37 @@ export type BaseSearchResponse = {
60
64
  index?: string;
61
65
 
62
66
  /**
63
- * Index name used for the query. In the case of an A/B test, the targeted index isn\'t always the index used by the query.
67
+ * Index name used for the query. During A/B testing, the targeted index isn\'t always the index used by the query.
64
68
  */
65
69
  indexUsed?: string;
66
70
 
67
71
  /**
68
- * Used to return warnings about the query.
72
+ * Warnings about the query.
69
73
  */
70
74
  message?: string;
71
75
 
72
76
  /**
73
- * Number of hits that the search query matched.
77
+ * Number of hits the search query matched.
74
78
  */
75
79
  nbHits: number;
76
80
 
77
81
  /**
78
- * Number of pages available for the current query.
82
+ * Number of pages of results for the current query.
79
83
  */
80
84
  nbPages: number;
81
85
 
82
86
  /**
83
- * The number of hits selected and sorted by the relevant sort algorithm.
87
+ * Number of hits selected and sorted by the relevant sort algorithm.
84
88
  */
85
89
  nbSortedHits?: number;
86
90
 
87
91
  /**
88
- * Specify the page to retrieve.
92
+ * Page to retrieve (the first page is `0`, not `1`).
89
93
  */
90
94
  page: number;
91
95
 
92
96
  /**
93
- * A url-encoded string of all search parameters.
94
- */
95
- params: string;
96
-
97
- /**
98
- * The query string that will be searched, after normalization.
97
+ * Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
99
98
  */
100
99
  parsedQuery?: string;
101
100
 
@@ -105,24 +104,31 @@ export type BaseSearchResponse = {
105
104
  processingTimeMS: number;
106
105
 
107
106
  /**
108
- * The text to search in the index.
107
+ * Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
109
108
  */
110
- query: string;
109
+ processingTimingsMS?: Record<string, any>;
111
110
 
112
111
  /**
113
- * A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set.
112
+ * Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
114
113
  */
115
114
  queryAfterRemoval?: string;
116
115
 
116
+ redirect?: Redirect;
117
+
118
+ renderingContent?: RenderingContent;
119
+
117
120
  /**
118
- * Actual host name of the server that processed the request.
121
+ * Time the server took to process the request, in milliseconds.
122
+ */
123
+ serverTimeMS?: number;
124
+
125
+ /**
126
+ * Host name of the server that processed the request.
119
127
  */
120
128
  serverUsed?: string;
121
129
 
122
130
  /**
123
131
  * Lets you store custom data in your indices.
124
132
  */
125
- userData?: Record<string, any>;
126
-
127
- renderingContent?: RenderingContent;
133
+ userData?: any | null;
128
134
  };
@@ -0,0 +1,12 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { TrendingFacetsModel } from './trendingFacetsModel';
4
+
5
+ export type BaseTrendingFacetsQuery = {
6
+ /**
7
+ * Facet name for trending models.
8
+ */
9
+ facetName: string;
10
+
11
+ model?: TrendingFacetsModel;
12
+ };
@@ -0,0 +1,22 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { SearchParamsObject } from './searchParamsObject';
4
+ import type { TrendingItemsModel } from './trendingItemsModel';
5
+
6
+ export type BaseTrendingItemsQuery = {
7
+ /**
8
+ * Facet name for trending models.
9
+ */
10
+ facetName?: string;
11
+
12
+ /**
13
+ * Facet value for trending models.
14
+ */
15
+ facetValue?: string;
16
+
17
+ model?: TrendingItemsModel;
18
+
19
+ queryParameters?: SearchParamsObject;
20
+
21
+ fallbackParameters?: SearchParamsObject;
22
+ };
@@ -1,47 +1,104 @@
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
+
3
+ import type { RecommendModels } from './recommendModels';
4
+ import type { SearchRecommendRulesParams } from './searchRecommendRulesParams';
2
5
 
3
6
  /**
4
7
  * Properties for the `del` method.
5
8
  */
6
9
  export type DelProps = {
7
10
  /**
8
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
11
+ * Path of the endpoint, anything after \"/1\" must be specified.
9
12
  */
10
13
  path: string;
11
14
  /**
12
- * Query parameters to be applied to the current query.
15
+ * Query parameters to apply to the current query.
13
16
  */
14
17
  parameters?: Record<string, any>;
15
18
  };
16
19
 
20
+ /**
21
+ * Properties for the `deleteRecommendRule` method.
22
+ */
23
+ export type DeleteRecommendRuleProps = {
24
+ /**
25
+ * Index on which to perform the request.
26
+ */
27
+ indexName: string;
28
+ /**
29
+ * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
30
+ */
31
+ model: RecommendModels;
32
+ /**
33
+ * Unique record (object) identifier.
34
+ */
35
+ objectID: string;
36
+ };
37
+
17
38
  /**
18
39
  * Properties for the `get` method.
19
40
  */
20
41
  export type GetProps = {
21
42
  /**
22
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
43
+ * Path of the endpoint, anything after \"/1\" must be specified.
23
44
  */
24
45
  path: string;
25
46
  /**
26
- * Query parameters to be applied to the current query.
47
+ * Query parameters to apply to the current query.
27
48
  */
28
49
  parameters?: Record<string, any>;
29
50
  };
30
51
 
52
+ /**
53
+ * Properties for the `getRecommendRule` method.
54
+ */
55
+ export type GetRecommendRuleProps = {
56
+ /**
57
+ * Index on which to perform the request.
58
+ */
59
+ indexName: string;
60
+ /**
61
+ * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
62
+ */
63
+ model: RecommendModels;
64
+ /**
65
+ * Unique record (object) identifier.
66
+ */
67
+ objectID: string;
68
+ };
69
+
70
+ /**
71
+ * Properties for the `getRecommendStatus` method.
72
+ */
73
+ export type GetRecommendStatusProps = {
74
+ /**
75
+ * Index on which to perform the request.
76
+ */
77
+ indexName: string;
78
+ /**
79
+ * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
80
+ */
81
+ model: RecommendModels;
82
+ /**
83
+ * Unique identifier of a task. Numeric value (up to 64bits).
84
+ */
85
+ taskID: number;
86
+ };
87
+
31
88
  /**
32
89
  * Properties for the `post` method.
33
90
  */
34
91
  export type PostProps = {
35
92
  /**
36
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
93
+ * Path of the endpoint, anything after \"/1\" must be specified.
37
94
  */
38
95
  path: string;
39
96
  /**
40
- * Query parameters to be applied to the current query.
97
+ * Query parameters to apply to the current query.
41
98
  */
42
99
  parameters?: Record<string, any>;
43
100
  /**
44
- * The parameters to send with the custom request.
101
+ * Parameters to send with the custom request.
45
102
  */
46
103
  body?: Record<string, any>;
47
104
  };
@@ -51,15 +108,30 @@ export type PostProps = {
51
108
  */
52
109
  export type PutProps = {
53
110
  /**
54
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
111
+ * Path of the endpoint, anything after \"/1\" must be specified.
55
112
  */
56
113
  path: string;
57
114
  /**
58
- * Query parameters to be applied to the current query.
115
+ * Query parameters to apply to the current query.
59
116
  */
60
117
  parameters?: Record<string, any>;
61
118
  /**
62
- * The parameters to send with the custom request.
119
+ * Parameters to send with the custom request.
63
120
  */
64
121
  body?: Record<string, any>;
65
122
  };
123
+
124
+ /**
125
+ * Properties for the `searchRecommendRules` method.
126
+ */
127
+ export type SearchRecommendRulesProps = {
128
+ /**
129
+ * Index on which to perform the request.
130
+ */
131
+ indexName: string;
132
+ /**
133
+ * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
134
+ */
135
+ model: RecommendModels;
136
+ searchRecommendRulesParams?: SearchRecommendRulesParams;
137
+ };
@@ -0,0 +1,22 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { Anchoring } from './anchoring';
4
+
5
+ export type Condition = {
6
+ /**
7
+ * Query pattern syntax.
8
+ */
9
+ pattern?: string;
10
+
11
+ anchoring?: Anchoring;
12
+
13
+ /**
14
+ * Whether the pattern matches on plurals, synonyms, and typos.
15
+ */
16
+ alternatives?: boolean;
17
+
18
+ /**
19
+ * Rule context format: [A-Za-z0-9_-]+).
20
+ */
21
+ context?: string;
22
+ };
@@ -0,0 +1,32 @@
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 { ConsequenceHide } from './consequenceHide';
4
+ import type { ConsequenceParams } from './consequenceParams';
5
+ import type { Promote } from './promote';
6
+
7
+ /**
8
+ * [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences) of a rule.
9
+ */
10
+ export type Consequence = {
11
+ params?: ConsequenceParams;
12
+
13
+ /**
14
+ * Records to promote.
15
+ */
16
+ promote?: Promote[];
17
+
18
+ /**
19
+ * Only use in combination with the `promote` consequence. When `true`, promoted results will be restricted to match the filters of the current search. When `false`, the promoted results will show up regardless of the filters.
20
+ */
21
+ filterPromotes?: boolean;
22
+
23
+ /**
24
+ * Records to hide. By default, you can hide up to 50 records per rule.
25
+ */
26
+ hide?: ConsequenceHide[];
27
+
28
+ /**
29
+ * Custom JSON object that will be appended to the userData array in the response. This object isn\'t interpreted by the API. It\'s limited to 1kB of minified JSON.
30
+ */
31
+ userData?: any | null;
32
+ };
@@ -0,0 +1,11 @@
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
+ * Unique identifier of the record to hide.
5
+ */
6
+ export type ConsequenceHide = {
7
+ /**
8
+ * Unique object identifier.
9
+ */
10
+ objectID: string;
11
+ };
@@ -0,0 +1,9 @@
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 { BaseSearchParamsWithoutQuery } from './baseSearchParamsWithoutQuery';
4
+ import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
5
+ import type { Params } from './params';
6
+
7
+ export type ConsequenceParams = BaseSearchParamsWithoutQuery &
8
+ IndexSettingsAsSearchParams &
9
+ Params;
@@ -0,0 +1,8 @@
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 { ConsequenceQueryObject } from './consequenceQueryObject';
4
+
5
+ /**
6
+ * When providing a string, it replaces the entire query string. When providing an object, it describes incremental edits to be made to the query string (but you can\'t do both).
7
+ */
8
+ export type ConsequenceQuery = ConsequenceQueryObject | string;
@@ -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 { Edit } from './edit';
4
+
5
+ export type ConsequenceQueryObject = {
6
+ /**
7
+ * Words to remove.
8
+ */
9
+ remove?: string[];
10
+
11
+ /**
12
+ * Edits to apply.
13
+ */
14
+ edits?: Edit[];
15
+ };
@@ -0,0 +1,16 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * Response, taskID, and deletion timestamp.
5
+ */
6
+ export type DeletedAtResponse = {
7
+ /**
8
+ * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
9
+ */
10
+ taskID: number;
11
+
12
+ /**
13
+ * Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
14
+ */
15
+ deletedAt: string;
16
+ };