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

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,51 +1,51 @@
1
- import type { MatchedGeoLocation } from './matchedGeoLocation';
2
- import type { Personalization } from './personalization';
3
- export declare type RankingInfo = {
4
- /**
5
- * This field is reserved for advanced usage.
6
- */
7
- filters: number;
8
- /**
9
- * Position of the most important matched attribute in the attributes to index list.
10
- */
11
- firstMatchedWord: number;
12
- /**
13
- * Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters).
14
- */
15
- geoDistance: number;
16
- /**
17
- * Precision used when computing the geo distance, in meters.
18
- */
19
- geoPrecision?: number;
20
- matchedGeoLocation?: MatchedGeoLocation;
21
- personalization?: Personalization;
22
- /**
23
- * Number of exactly matched words.
24
- */
25
- nbExactWords: number;
26
- /**
27
- * Number of typos encountered when matching the record.
28
- */
29
- nbTypos: number;
30
- /**
31
- * Present and set to true if a Rule promoted the hit.
32
- */
33
- promoted: boolean;
34
- /**
35
- * When the query contains more than one word, the sum of the distances between matched words (in meters).
36
- */
37
- proximityDistance?: number;
38
- /**
39
- * Custom ranking for the object, expressed as a single integer value.
40
- */
41
- userScore: number;
42
- /**
43
- * Number of matched words, including prefixes and typos.
44
- */
45
- words: number;
46
- /**
47
- * Wether the record are promoted by the re-ranking strategy.
48
- */
49
- promotedByReRanking?: boolean;
50
- };
1
+ import type { MatchedGeoLocation } from './matchedGeoLocation';
2
+ import type { Personalization } from './personalization';
3
+ export type RankingInfo = {
4
+ /**
5
+ * This field is reserved for advanced usage.
6
+ */
7
+ filters: number;
8
+ /**
9
+ * Position of the most important matched attribute in the attributes to index list.
10
+ */
11
+ firstMatchedWord: number;
12
+ /**
13
+ * Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters).
14
+ */
15
+ geoDistance: number;
16
+ /**
17
+ * Precision used when computing the geo distance, in meters.
18
+ */
19
+ geoPrecision?: number;
20
+ matchedGeoLocation?: MatchedGeoLocation;
21
+ personalization?: Personalization;
22
+ /**
23
+ * Number of exactly matched words.
24
+ */
25
+ nbExactWords: number;
26
+ /**
27
+ * Number of typos encountered when matching the record.
28
+ */
29
+ nbTypos: number;
30
+ /**
31
+ * Present and set to true if a Rule promoted the hit.
32
+ */
33
+ promoted: boolean;
34
+ /**
35
+ * When the query contains more than one word, the sum of the distances between matched words (in meters).
36
+ */
37
+ proximityDistance?: number;
38
+ /**
39
+ * Custom ranking for the object, expressed as a single integer value.
40
+ */
41
+ userScore: number;
42
+ /**
43
+ * Number of matched words, including prefixes and typos.
44
+ */
45
+ words: number;
46
+ /**
47
+ * Wether the record are promoted by the re-ranking strategy.
48
+ */
49
+ promotedByReRanking?: boolean;
50
+ };
51
51
  //# sourceMappingURL=rankingInfo.d.ts.map
@@ -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,oBAAY,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,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,6 +1,6 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
- /**
3
- * When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking.
4
- */
5
- export declare type ReRankingApplyFilter = MixedSearchFilters[] | string;
1
+ import type { MixedSearchFilters } from './mixedSearchFilters';
2
+ /**
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.
4
+ */
5
+ export type ReRankingApplyFilter = MixedSearchFilters[] | string;
6
6
  //# 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,oBAAY,oBAAoB,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
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,27 +1,27 @@
1
- import type { HighlightResult } from './highlightResult';
2
- import type { RankingInfo } from './rankingInfo';
3
- import type { SnippetResult } from './snippetResult';
4
- /**
5
- * A Recommend hit.
6
- */
7
- export declare type RecommendHit = Record<string, any> & {
8
- /**
9
- * Unique identifier of the object.
10
- */
11
- objectID: string;
12
- /**
13
- * Show highlighted section and words matched on a query.
14
- */
15
- _highlightResult?: Record<string, HighlightResult>;
16
- /**
17
- * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
18
- */
19
- _snippetResult?: Record<string, SnippetResult>;
20
- _rankingInfo?: RankingInfo;
21
- _distinctSeqID?: number;
22
- /**
23
- * The recommendation score.
24
- */
25
- _score: number;
26
- };
1
+ import type { HighlightResult } from './highlightResult';
2
+ import type { RankingInfo } from './rankingInfo';
3
+ import type { SnippetResult } from './snippetResult';
4
+ /**
5
+ * Recommend hit.
6
+ */
7
+ export type RecommendHit = Record<string, any> & {
8
+ /**
9
+ * Unique object identifier.
10
+ */
11
+ objectID: string;
12
+ /**
13
+ * Show highlighted section and words matched on a query.
14
+ */
15
+ _highlightResult?: Record<string, HighlightResult>;
16
+ /**
17
+ * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
18
+ */
19
+ _snippetResult?: Record<string, SnippetResult>;
20
+ _rankingInfo?: RankingInfo;
21
+ _distinctSeqID?: number;
22
+ /**
23
+ * Recommendation score.
24
+ */
25
+ _score: number;
26
+ };
27
27
  //# sourceMappingURL=recommendHit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendHit.d.ts","sourceRoot":"","sources":["../../model/recommendHit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,oBAAY,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAC/C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAEnD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAE/C,YAAY,CAAC,EAAE,WAAW,CAAC;IAE3B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"recommendHit.d.ts","sourceRoot":"","sources":["../../model/recommendHit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAC/C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAEnD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAE/C,YAAY,CAAC,EAAE,WAAW,CAAC;IAE3B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,5 +1,13 @@
1
- import type { RecommendHit } from './recommendHit';
2
- export declare type RecommendHits = {
3
- hits: RecommendHit[];
4
- };
1
+ import type { RecommendHit } from './recommendHit';
2
+ export type RecommendHits = {
3
+ hits: RecommendHit[];
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
+ };
5
13
  //# sourceMappingURL=recommendHits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendHits.d.ts","sourceRoot":"","sources":["../../model/recommendHits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,oBAAY,aAAa,GAAG;IAC1B,IAAI,EAAE,YAAY,EAAE,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"recommendHits.d.ts","sourceRoot":"","sources":["../../model/recommendHits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,YAAY,EAAE,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type RecommendModels = 'bought-together' | 'related-products' | 'trending-facets' | 'trending-items';
2
+ //# sourceMappingURL=recommendModels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommendModels.d.ts","sourceRoot":"","sources":["../../model/recommendModels.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GACvB,iBAAiB,GACjB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
- /**
2
- * The recommendation model to use.
3
- */
4
- export declare type RecommendationModels = 'bought-together' | 'related-products';
1
+ /**
2
+ * Recommendation model.
3
+ */
4
+ export type RecommendationModels = 'bought-together' | 'related-products';
5
5
  //# sourceMappingURL=recommendationModels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendationModels.d.ts","sourceRoot":"","sources":["../../model/recommendationModels.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,oBAAoB,GAAG,iBAAiB,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"recommendationModels.d.ts","sourceRoot":"","sources":["../../model/recommendationModels.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
2
+ import type { BaseRecommendationsQuery } from './baseRecommendationsQuery';
3
+ export type RecommendationsQuery = BaseRecommendationsQuery & BaseRecommendRequest;
4
+ //# sourceMappingURL=recommendationsQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommendationsQuery.d.ts","sourceRoot":"","sources":["../../model/recommendationsQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GACzD,oBAAoB,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { RecommendationRequest } from './recommendationRequest';
2
- import type { TrendingRequest } from './trendingRequest';
3
- export declare type RecommendationsRequest = RecommendationRequest | TrendingRequest;
1
+ import type { RecommendationsQuery } from './recommendationsQuery';
2
+ import type { TrendingFacetsQuery } from './trendingFacetsQuery';
3
+ import type { TrendingItemsQuery } from './trendingItemsQuery';
4
+ export type RecommendationsRequest = RecommendationsQuery | TrendingFacetsQuery | TrendingItemsQuery;
4
5
  //# 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,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,oBAAY,sBAAsB,GAAG,qBAAqB,GAAG,eAAe,CAAC"}
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,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAC9B,oBAAoB,GACpB,mBAAmB,GACnB,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { BaseSearchResponse } from './baseSearchResponse';
2
- import type { RecommendHits } from './recommendHits';
3
- export declare type RecommendationsResponse = BaseSearchResponse & RecommendHits;
1
+ import type { BaseSearchResponse } from './baseSearchResponse';
2
+ import type { RecommendHits } from './recommendHits';
3
+ export type RecommendationsResponse = BaseSearchResponse & RecommendHits;
4
4
  //# sourceMappingURL=recommendationsResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendationsResponse.d.ts","sourceRoot":"","sources":["../../model/recommendationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,oBAAY,uBAAuB,GAAG,kBAAkB,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"recommendationsResponse.d.ts","sourceRoot":"","sources":["../../model/recommendationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { RedirectRuleIndexMetadata } from './redirectRuleIndexMetadata';
2
+ /**
3
+ * [Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
4
+ */
5
+ export type Redirect = {
6
+ index?: RedirectRuleIndexMetadata[];
7
+ };
8
+ //# sourceMappingURL=redirect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirect.d.ts","sourceRoot":"","sources":["../../model/redirect.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,CAAC,EAAE,yBAAyB,EAAE,CAAC;CACrC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData';
2
+ export type RedirectRuleIndexMetadata = {
3
+ /**
4
+ * Source index for the redirect rule.
5
+ */
6
+ source: string;
7
+ /**
8
+ * Destination index for the redirect rule.
9
+ */
10
+ dest: string;
11
+ /**
12
+ * Reason for the redirect rule.
13
+ */
14
+ reason: string;
15
+ /**
16
+ * Redirect rule status.
17
+ */
18
+ succeed: boolean;
19
+ data: RedirectRuleIndexMetadataData;
20
+ };
21
+ //# sourceMappingURL=redirectRuleIndexMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirectRuleIndexMetadata.d.ts","sourceRoot":"","sources":["../../model/redirectRuleIndexMetadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,6BAA6B,CAAC;CACrC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Redirect rule data.
3
+ */
4
+ export type RedirectRuleIndexMetadataData = {
5
+ ruleObjectID: string;
6
+ };
7
+ //# sourceMappingURL=redirectRuleIndexMetadataData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirectRuleIndexMetadataData.d.ts","sourceRoot":"","sources":["../../model/redirectRuleIndexMetadataData.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,5 +1,5 @@
1
- /**
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 ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the stop word functionality, ensuring that stop words are removed from consideration in a search. The languages supported here are either every language, or those set by queryLanguages. False: disables stop word functionality, allowing stop words to be taken into account in a search.
3
- */
4
- export declare type RemoveStopWords = string[] | boolean;
1
+ /**
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
+ */
4
+ export type RemoveStopWords = string[] | boolean;
5
5
  //# sourceMappingURL=removeStopWords.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeStopWords.d.ts","sourceRoot":"","sources":["../../model/removeStopWords.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,eAAe,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC"}
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,5 +1,5 @@
1
- /**
2
- * Selects a strategy to remove words from the query when it doesn\'t match any hits.
3
- */
4
- export declare type RemoveWordsIfNoResults = 'allOptional' | 'firstWords' | 'lastWords' | 'none';
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.
3
+ */
4
+ export type RemoveWordsIfNoResults = 'allOptional' | 'firstWords' | 'lastWords' | 'none';
5
5
  //# sourceMappingURL=removeWordsIfNoResults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeWordsIfNoResults.d.ts","sourceRoot":"","sources":["../../model/removeWordsIfNoResults.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,sBAAsB,GAC9B,aAAa,GACb,YAAY,GACZ,WAAW,GACX,MAAM,CAAC"}
1
+ {"version":3,"file":"removeWordsIfNoResults.d.ts","sourceRoot":"","sources":["../../model/removeWordsIfNoResults.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC9B,aAAa,GACb,YAAY,GACZ,WAAW,GACX,MAAM,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { FacetOrdering } from './facetOrdering';
2
- /**
3
- * Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules.
4
- */
5
- export declare type RenderingContent = {
6
- facetOrdering?: FacetOrdering;
7
- };
1
+ import type { FacetOrdering } from './facetOrdering';
2
+ /**
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
+ */
5
+ export type RenderingContent = {
6
+ facetOrdering?: FacetOrdering;
7
+ };
8
8
  //# 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,oBAAY,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;AAErD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { Condition } from './condition';
2
+ import type { Consequence } from './consequence';
3
+ import type { RuleResponseMetadata } from './ruleResponseMetadata';
4
+ /**
5
+ * Rule object.
6
+ */
7
+ export type RuleResponse = {
8
+ _metadata?: RuleResponseMetadata;
9
+ /**
10
+ * Unique identifier for a rule object.
11
+ */
12
+ objectID: string;
13
+ /**
14
+ * [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule.
15
+ */
16
+ conditions?: Condition[];
17
+ consequence?: Consequence;
18
+ /**
19
+ * Description of the rule\'s purpose. This can be helpful for display in the Algolia dashboard.
20
+ */
21
+ description?: string;
22
+ /**
23
+ * Indicates whether to enable the rule. If it isn\'t enabled, it isn\'t applied at query time.
24
+ */
25
+ enabled?: boolean;
26
+ };
27
+ //# sourceMappingURL=ruleResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruleResponse.d.ts","sourceRoot":"","sources":["../../model/ruleResponse.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,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IAEjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IAEzB,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,7 @@
1
+ export type RuleResponseMetadata = {
2
+ /**
3
+ * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
4
+ */
5
+ lastUpdate?: string;
6
+ };
7
+ //# sourceMappingURL=ruleResponseMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruleResponseMetadata.d.ts","sourceRoot":"","sources":["../../model/ruleResponseMetadata.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { BaseSearchParams } from './baseSearchParams';
2
- import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
3
- export declare type SearchParamsObject = BaseSearchParams & IndexSettingsAsSearchParams;
1
+ import type { BaseSearchParams } from './baseSearchParams';
2
+ import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
3
+ export type SearchParamsObject = BaseSearchParams & IndexSettingsAsSearchParams;
4
4
  //# 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,oBAAY,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,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,2BAA2B,CAAC"}
@@ -1,7 +1,7 @@
1
- export declare type SearchParamsQuery = {
2
- /**
3
- * The text to search in the index.
4
- */
5
- query?: string;
6
- };
1
+ export type SearchParamsQuery = {
2
+ /**
3
+ * Text to search for in an index.
4
+ */
5
+ query?: string;
6
+ };
7
7
  //# sourceMappingURL=searchParamsQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchParamsQuery.d.ts","sourceRoot":"","sources":["../../model/searchParamsQuery.ts"],"names":[],"mappings":"AAEA,oBAAY,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"searchParamsQuery.d.ts","sourceRoot":"","sources":["../../model/searchParamsQuery.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Recommend rules search parameters.
3
+ */
4
+ export type SearchRecommendRulesParams = {
5
+ /**
6
+ * Full-text query.
7
+ */
8
+ query?: string;
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).
11
+ */
12
+ context?: string;
13
+ /**
14
+ * Requested page (the first page is page 0).
15
+ */
16
+ page?: number;
17
+ /**
18
+ * Maximum number of hits per page.
19
+ */
20
+ hitsPerPage?: number;
21
+ /**
22
+ * Restricts responses to enabled rules. When absent (default), _all_ rules are retrieved.
23
+ */
24
+ enabled?: boolean | null;
25
+ /**
26
+ * Request options to send with the API call.
27
+ */
28
+ _requestOptions?: Array<Record<string, any>>;
29
+ };
30
+ //# sourceMappingURL=searchRecommendRulesParams.d.ts.map
@@ -0,0 +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;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;CAC9C,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { RuleResponse } from './ruleResponse';
2
+ export type SearchRecommendRulesResponse = {
3
+ /**
4
+ * Fetched rules.
5
+ */
6
+ hits: RuleResponse[];
7
+ /**
8
+ * Number of fetched rules.
9
+ */
10
+ nbHits: number;
11
+ /**
12
+ * Current page.
13
+ */
14
+ page: number;
15
+ /**
16
+ * Number of pages.
17
+ */
18
+ nbPages: number;
19
+ };
20
+ //# sourceMappingURL=searchRecommendRulesResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchRecommendRulesResponse.d.ts","sourceRoot":"","sources":["../../model/searchRecommendRulesResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,IAAI,EAAE,YAAY,EAAE,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Settings for the semantic search part of NeuralSearch. Only used when `mode` is _neuralSearch_.
3
+ */
4
+ export type SemanticSearch = {
5
+ /**
6
+ * Indices from which to collect click and conversion events. If null, the current index and replica group will be used as the event source.
7
+ */
8
+ eventSources?: string[] | null;
9
+ };
10
+ //# sourceMappingURL=semanticSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semanticSearch.d.ts","sourceRoot":"","sources":["../../model/semanticSearch.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAChC,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { SnippetResultOption } from './snippetResultOption';
2
- export declare type SnippetResult = SnippetResultOption | SnippetResultOption[];
1
+ import type { SnippetResultOption } from './snippetResultOption';
2
+ export type SnippetResult = SnippetResultOption | SnippetResultOption[];
3
3
  //# sourceMappingURL=snippetResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snippetResult.d.ts","sourceRoot":"","sources":["../../model/snippetResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,oBAAY,aAAa,GAAG,mBAAmB,GAAG,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"snippetResult.d.ts","sourceRoot":"","sources":["../../model/snippetResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,mBAAmB,EAAE,CAAC"}
@@ -1,12 +1,12 @@
1
- import type { MatchLevel } from './matchLevel';
2
- /**
3
- * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
4
- */
5
- export declare type SnippetResultOption = {
6
- /**
7
- * Markup text with occurrences highlighted.
8
- */
9
- value: string;
10
- matchLevel: MatchLevel;
11
- };
1
+ import type { MatchLevel } from './matchLevel';
2
+ /**
3
+ * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
4
+ */
5
+ export type SnippetResultOption = {
6
+ /**
7
+ * Markup text with `facetQuery` matches highlighted.
8
+ */
9
+ value: string;
10
+ matchLevel: MatchLevel;
11
+ };
12
12
  //# sourceMappingURL=snippetResultOption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snippetResultOption.d.ts","sourceRoot":"","sources":["../../model/snippetResultOption.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,oBAAY,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"snippetResultOption.d.ts","sourceRoot":"","sources":["../../model/snippetResultOption.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
@@ -1,5 +1,5 @@
1
- /**
2
- * How to display the remaining items. - `count`: facet count (descending). - `alpha`: alphabetical (ascending). - `hidden`: show only pinned values.
3
- */
4
- export declare type SortRemainingBy = 'alpha' | 'count' | 'hidden';
1
+ /**
2
+ * How to display the remaining items: - `count`: facet count (descending). - `alpha`: alphabetical (ascending). - `hidden`: show only pinned values.
3
+ */
4
+ export type SortRemainingBy = 'alpha' | 'count' | 'hidden';
5
5
  //# sourceMappingURL=sortRemainingBy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sortRemainingBy.d.ts","sourceRoot":"","sources":["../../model/sortRemainingBy.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"sortRemainingBy.d.ts","sourceRoot":"","sources":["../../model/sortRemainingBy.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC"}