@algolia/recommend 5.0.0-alpha.110 → 5.0.0-alpha.112

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 (192) hide show
  1. package/dist/builds/browser.d.ts +1 -1
  2. package/dist/builds/node.d.ts +1 -1
  3. package/dist/model/autoFacetFilter.d.ts +14 -0
  4. package/dist/model/autoFacetFilter.d.ts.map +1 -0
  5. package/dist/model/baseRecommendRequest.d.ts +6 -4
  6. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  7. package/dist/model/baseSearchParamsWithoutQuery.d.ts +5 -4
  8. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  9. package/dist/model/boughtTogetherQuery.d.ts +4 -0
  10. package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
  11. package/dist/model/clientMethodProps.d.ts +5 -5
  12. package/dist/model/condition.d.ts +5 -12
  13. package/dist/model/condition.d.ts.map +1 -1
  14. package/dist/model/consequence.d.ts +9 -17
  15. package/dist/model/consequence.d.ts.map +1 -1
  16. package/dist/model/deletedAtResponse.d.ts +1 -1
  17. package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
  18. package/dist/model/fallbackParams.d.ts +3 -0
  19. package/dist/model/fallbackParams.d.ts.map +1 -0
  20. package/dist/model/fbtModel.d.ts +5 -0
  21. package/dist/model/fbtModel.d.ts.map +1 -0
  22. package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
  23. package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
  24. package/dist/model/getRecommendationsParams.d.ts +2 -2
  25. package/dist/model/hideConsequenceObject.d.ts +10 -0
  26. package/dist/model/hideConsequenceObject.d.ts.map +1 -0
  27. package/dist/model/index.d.ts +20 -23
  28. package/dist/model/index.d.ts.map +1 -1
  29. package/dist/model/indexSettingsAsSearchParams.d.ts +10 -10
  30. package/dist/model/lookingSimilar.d.ts +11 -0
  31. package/dist/model/lookingSimilar.d.ts.map +1 -0
  32. package/dist/model/lookingSimilarModel.d.ts +5 -0
  33. package/dist/model/lookingSimilarModel.d.ts.map +1 -0
  34. package/dist/model/lookingSimilarQuery.d.ts +4 -0
  35. package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
  36. package/dist/model/paramsConsequence.d.ts +19 -0
  37. package/dist/model/paramsConsequence.d.ts.map +1 -0
  38. package/dist/model/promoteConsequenceObject.d.ts +14 -0
  39. package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
  40. package/dist/model/reRankingApplyFilter.d.ts +1 -1
  41. package/dist/model/recommendRule.d.ts +24 -0
  42. package/dist/model/recommendRule.d.ts.map +1 -0
  43. package/dist/model/recommendRuleMetadata.d.ts +10 -0
  44. package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
  45. package/dist/model/recommendationsHits.d.ts +0 -8
  46. package/dist/model/recommendationsHits.d.ts.map +1 -1
  47. package/dist/model/recommendationsRequest.d.ts +4 -2
  48. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  49. package/dist/model/recommendedForYou.d.ts +7 -0
  50. package/dist/model/recommendedForYou.d.ts.map +1 -0
  51. package/dist/model/recommendedForYouModel.d.ts +1 -1
  52. package/dist/model/recommendedForYouQuery.d.ts +2 -2
  53. package/dist/model/recommendedForYouQuery.d.ts.map +1 -1
  54. package/dist/model/relatedModel.d.ts +5 -0
  55. package/dist/model/relatedModel.d.ts.map +1 -0
  56. package/dist/model/relatedProducts.d.ts +11 -0
  57. package/dist/model/relatedProducts.d.ts.map +1 -0
  58. package/dist/model/relatedQuery.d.ts +4 -0
  59. package/dist/model/relatedQuery.d.ts.map +1 -0
  60. package/dist/model/removeWordsIfNoResults.d.ts +1 -1
  61. package/dist/model/searchParams.d.ts +3 -0
  62. package/dist/model/searchParams.d.ts.map +1 -0
  63. package/dist/model/searchParamsObject.d.ts +3 -0
  64. package/dist/model/searchParamsObject.d.ts.map +1 -1
  65. package/dist/model/searchRecommendRulesParams.d.ts +16 -4
  66. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -1
  67. package/dist/model/searchRecommendRulesResponse.d.ts +3 -3
  68. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -1
  69. package/dist/model/sortRemainingBy.d.ts +1 -1
  70. package/dist/model/trendingFacetHit.d.ts +2 -2
  71. package/dist/model/trendingFacets.d.ts +11 -0
  72. package/dist/model/trendingFacets.d.ts.map +1 -0
  73. package/dist/model/trendingFacetsModel.d.ts +1 -1
  74. package/dist/model/trendingFacetsQuery.d.ts +2 -2
  75. package/dist/model/trendingFacetsQuery.d.ts.map +1 -1
  76. package/dist/model/trendingItems.d.ts +15 -0
  77. package/dist/model/trendingItems.d.ts.map +1 -0
  78. package/dist/model/trendingItemsModel.d.ts +1 -1
  79. package/dist/model/trendingItemsQuery.d.ts +2 -2
  80. package/dist/model/trendingItemsQuery.d.ts.map +1 -1
  81. package/dist/recommend.cjs +11 -11
  82. package/dist/recommend.esm.browser.js +13 -16
  83. package/dist/recommend.esm.node.js +11 -11
  84. package/dist/recommend.umd.js +2 -2
  85. package/dist/src/recommendClient.d.ts +13 -13
  86. package/dist/src/recommendClient.d.ts.map +1 -1
  87. package/model/autoFacetFilter.ts +16 -0
  88. package/model/baseRecommendRequest.ts +8 -4
  89. package/model/baseSearchParamsWithoutQuery.ts +5 -4
  90. package/model/{recommendationsQuery.ts → boughtTogetherQuery.ts} +3 -3
  91. package/model/clientMethodProps.ts +5 -5
  92. package/model/condition.ts +5 -16
  93. package/model/consequence.ts +9 -19
  94. package/model/deletedAtResponse.ts +1 -1
  95. package/model/exactOnSingleWordQuery.ts +1 -1
  96. package/model/{editType.ts → fallbackParams.ts} +3 -4
  97. package/model/fbtModel.ts +6 -0
  98. package/model/{consequenceHide.ts → frequentlyBoughtTogether.ts} +5 -4
  99. package/model/getRecommendationsParams.ts +2 -2
  100. package/model/{promoteObjectID.ts → hideConsequenceObject.ts} +3 -8
  101. package/model/index.ts +20 -23
  102. package/model/indexSettingsAsSearchParams.ts +10 -10
  103. package/model/lookingSimilar.ts +15 -0
  104. package/model/lookingSimilarModel.ts +6 -0
  105. package/model/lookingSimilarQuery.ts +6 -0
  106. package/model/paramsConsequence.ts +23 -0
  107. package/model/promoteConsequenceObject.ts +16 -0
  108. package/model/reRankingApplyFilter.ts +1 -1
  109. package/model/{ruleResponse.ts → recommendRule.ts} +7 -10
  110. package/model/{ruleResponseMetadata.ts → recommendRuleMetadata.ts} +5 -2
  111. package/model/recommendationsHits.ts +0 -10
  112. package/model/recommendationsRequest.ts +6 -2
  113. package/model/{baseRecommendedForYouQuery.ts → recommendedForYou.ts} +3 -5
  114. package/model/recommendedForYouModel.ts +1 -1
  115. package/model/recommendedForYouQuery.ts +2 -3
  116. package/model/relatedModel.ts +6 -0
  117. package/model/relatedProducts.ts +15 -0
  118. package/model/relatedQuery.ts +6 -0
  119. package/model/removeWordsIfNoResults.ts +1 -1
  120. package/model/{recommendationModels.ts → searchParams.ts} +3 -4
  121. package/model/searchParamsObject.ts +3 -0
  122. package/model/searchRecommendRulesParams.ts +19 -4
  123. package/model/searchRecommendRulesResponse.ts +3 -3
  124. package/model/sortRemainingBy.ts +1 -1
  125. package/model/trendingFacetHit.ts +2 -2
  126. package/model/{baseTrendingFacetsQuery.ts → trendingFacets.ts} +7 -4
  127. package/model/trendingFacetsModel.ts +1 -1
  128. package/model/trendingFacetsQuery.ts +2 -3
  129. package/model/trendingItems.ts +20 -0
  130. package/model/trendingItemsModel.ts +1 -1
  131. package/model/trendingItemsQuery.ts +2 -2
  132. package/package.json +7 -7
  133. package/dist/model/anchoring.d.ts +0 -5
  134. package/dist/model/anchoring.d.ts.map +0 -1
  135. package/dist/model/automaticFacetFilter.d.ts +0 -18
  136. package/dist/model/automaticFacetFilter.d.ts.map +0 -1
  137. package/dist/model/automaticFacetFilters.d.ts +0 -6
  138. package/dist/model/automaticFacetFilters.d.ts.map +0 -1
  139. package/dist/model/baseRecommendationsQuery.d.ts +0 -12
  140. package/dist/model/baseRecommendationsQuery.d.ts.map +0 -1
  141. package/dist/model/baseRecommendedForYouQuery.d.ts +0 -8
  142. package/dist/model/baseRecommendedForYouQuery.d.ts.map +0 -1
  143. package/dist/model/baseRecommendedForYouQueryParameters.d.ts +0 -7
  144. package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +0 -1
  145. package/dist/model/baseTrendingFacetsQuery.d.ts +0 -9
  146. package/dist/model/baseTrendingFacetsQuery.d.ts.map +0 -1
  147. package/dist/model/baseTrendingItemsQuery.d.ts +0 -16
  148. package/dist/model/baseTrendingItemsQuery.d.ts.map +0 -1
  149. package/dist/model/consequenceHide.d.ts +0 -10
  150. package/dist/model/consequenceHide.d.ts.map +0 -1
  151. package/dist/model/consequenceParams.d.ts +0 -5
  152. package/dist/model/consequenceParams.d.ts.map +0 -1
  153. package/dist/model/consequenceQuery.d.ts +0 -6
  154. package/dist/model/consequenceQuery.d.ts.map +0 -1
  155. package/dist/model/consequenceQueryObject.d.ts +0 -12
  156. package/dist/model/consequenceQueryObject.d.ts.map +0 -1
  157. package/dist/model/edit.d.ts +0 -13
  158. package/dist/model/edit.d.ts.map +0 -1
  159. package/dist/model/editType.d.ts +0 -5
  160. package/dist/model/editType.d.ts.map +0 -1
  161. package/dist/model/params.d.ts +0 -13
  162. package/dist/model/params.d.ts.map +0 -1
  163. package/dist/model/promote.d.ts +0 -4
  164. package/dist/model/promote.d.ts.map +0 -1
  165. package/dist/model/promoteObjectID.d.ts +0 -14
  166. package/dist/model/promoteObjectID.d.ts.map +0 -1
  167. package/dist/model/promoteObjectIDs.d.ts +0 -14
  168. package/dist/model/promoteObjectIDs.d.ts.map +0 -1
  169. package/dist/model/recommendationModels.d.ts +0 -5
  170. package/dist/model/recommendationModels.d.ts.map +0 -1
  171. package/dist/model/recommendationsQuery.d.ts +0 -4
  172. package/dist/model/recommendationsQuery.d.ts.map +0 -1
  173. package/dist/model/recommendedForYouQueryParameters.d.ts +0 -4
  174. package/dist/model/recommendedForYouQueryParameters.d.ts.map +0 -1
  175. package/dist/model/ruleResponse.d.ts +0 -27
  176. package/dist/model/ruleResponse.d.ts.map +0 -1
  177. package/dist/model/ruleResponseMetadata.d.ts +0 -7
  178. package/dist/model/ruleResponseMetadata.d.ts.map +0 -1
  179. package/model/anchoring.ts +0 -6
  180. package/model/automaticFacetFilter.ts +0 -21
  181. package/model/automaticFacetFilters.ts +0 -8
  182. package/model/baseRecommendationsQuery.ts +0 -17
  183. package/model/baseRecommendedForYouQueryParameters.ts +0 -8
  184. package/model/baseTrendingItemsQuery.ts +0 -22
  185. package/model/consequenceParams.ts +0 -9
  186. package/model/consequenceQuery.ts +0 -8
  187. package/model/consequenceQueryObject.ts +0 -15
  188. package/model/edit.ts +0 -17
  189. package/model/params.ts +0 -18
  190. package/model/promote.ts +0 -6
  191. package/model/promoteObjectIDs.ts +0 -16
  192. package/model/recommendedForYouQueryParameters.ts +0 -7
@@ -16,7 +16,7 @@ export declare function recommendClient(appId: string, apiKey: string, options?:
16
16
  customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
17
17
  customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
18
18
  deleteRecommendRule({ indexName, model, objectID }: import("../model").DeleteRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").DeletedAtResponse>;
19
- getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RuleResponse>;
19
+ getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RecommendRule>;
20
20
  getRecommendStatus({ indexName, model, taskID }: import("../model").GetRecommendStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").GetRecommendTaskResponse>;
21
21
  getRecommendations(getRecommendationsParams: import("../model").GetRecommendationsParams, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").GetRecommendationsResponse>;
22
22
  searchRecommendRules({ indexName, model, searchRecommendRulesParams, }: import("../model").SearchRecommendRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").SearchRecommendRulesResponse>;
@@ -16,7 +16,7 @@ export declare function recommendClient(appId: string, apiKey: string, options?:
16
16
  customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
17
17
  customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
18
18
  deleteRecommendRule({ indexName, model, objectID }: import("../model").DeleteRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").DeletedAtResponse>;
19
- getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RuleResponse>;
19
+ getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").RecommendRule>;
20
20
  getRecommendStatus({ indexName, model, taskID }: import("../model").GetRecommendStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").GetRecommendTaskResponse>;
21
21
  getRecommendations(getRecommendationsParams: import("../model").GetRecommendationsParams, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").GetRecommendationsResponse>;
22
22
  searchRecommendRules({ indexName, model, searchRecommendRulesParams, }: import("../model").SearchRecommendRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").SearchRecommendRulesResponse>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Facet attribute. Only recommendations with the same value (or only recommendations with a different value) as the original viewed item are included.
3
+ */
4
+ export type AutoFacetFilter = {
5
+ /**
6
+ * Facet attribute.
7
+ */
8
+ facet?: string;
9
+ /**
10
+ * Whether the filter is negative. If true, recommendations must not have the same value for the `facet` attribute. If false, recommendations must have the same value for the `facet` attribute.
11
+ */
12
+ negative?: boolean;
13
+ };
14
+ //# sourceMappingURL=autoFacetFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoFacetFilter.d.ts","sourceRoot":"","sources":["../../model/autoFacetFilter.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
@@ -1,15 +1,17 @@
1
+ import type { SearchParams } from './searchParams';
1
2
  export type BaseRecommendRequest = {
2
3
  /**
3
- * Index name.
4
+ * Index name (case-sensitive).
4
5
  */
5
6
  indexName: string;
6
7
  /**
7
- * Recommendations with a confidence score lower than `threshold` won\'t appear in results. > **Note**: Each recommendation has a confidence score of 0 to 100. The closer the score is to 100, the more relevant the recommendations are.
8
+ * Minimum score a recommendation must have to be included in the response.
8
9
  */
9
- threshold?: number;
10
+ threshold: number;
10
11
  /**
11
- * Maximum number of recommendations to retrieve. If 0, all recommendations will be returned.
12
+ * Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
12
13
  */
13
14
  maxRecommendations?: number;
15
+ queryParameters?: SearchParams;
14
16
  };
15
17
  //# sourceMappingURL=baseRecommendRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"baseRecommendRequest.d.ts","sourceRoot":"","sources":["../../model/baseRecommendRequest.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"baseRecommendRequest.d.ts","sourceRoot":"","sources":["../../model/baseRecommendRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,eAAe,CAAC,EAAE,YAAY,CAAC;CAChC,CAAC"}
@@ -3,6 +3,7 @@ import type { AroundRadius } from './aroundRadius';
3
3
  import type { FacetFilters } from './facetFilters';
4
4
  import type { NumericFilters } from './numericFilters';
5
5
  import type { OptionalFilters } from './optionalFilters';
6
+ import type { SupportedLanguage } from './supportedLanguage';
6
7
  import type { TagFilters } from './tagFilters';
7
8
  export type BaseSearchParamsWithoutQuery = {
8
9
  /**
@@ -10,7 +11,7 @@ export type BaseSearchParamsWithoutQuery = {
10
11
  */
11
12
  similarQuery?: string;
12
13
  /**
13
- * Filter the search so that only records with matching values are included in the results. These filters are supported: - **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/).
14
+ * 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/).
14
15
  */
15
16
  filters?: string;
16
17
  facetFilters?: FacetFilters;
@@ -22,7 +23,7 @@ export type BaseSearchParamsWithoutQuery = {
22
23
  */
23
24
  sumOrFiltersScores?: boolean;
24
25
  /**
25
- * Restricts a search to a subset of your searchable attributes.
26
+ * Restricts a search to a subset of your searchable attributes. Attribute names are case-sensitive.
26
27
  */
27
28
  restrictSearchableAttributes?: string[];
28
29
  /**
@@ -64,13 +65,13 @@ export type BaseSearchParamsWithoutQuery = {
64
65
  */
65
66
  insideBoundingBox?: number[][];
66
67
  /**
67
- * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
68
+ * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored if you also specify `insideBoundingBox`.
68
69
  */
69
70
  insidePolygon?: number[][];
70
71
  /**
71
72
  * ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.
72
73
  */
73
- naturalLanguages?: string[];
74
+ naturalLanguages?: SupportedLanguage[];
74
75
  /**
75
76
  * Assigns a rule context to the search query. [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
76
77
  */
@@ -1 +1 @@
1
- {"version":3,"file":"baseSearchParamsWithoutQuery.d.ts","sourceRoot":"","sources":["../../model/baseSearchParamsWithoutQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB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AO,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAEvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
2
+ import type { FrequentlyBoughtTogether } from './frequentlyBoughtTogether';
3
+ export type BoughtTogetherQuery = BaseRecommendRequest & FrequentlyBoughtTogether;
4
+ //# sourceMappingURL=boughtTogetherQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boughtTogetherQuery.d.ts","sourceRoot":"","sources":["../../model/boughtTogetherQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GACpD,wBAAwB,CAAC"}
@@ -69,7 +69,7 @@ export type DeleteRecommendRuleProps = {
69
69
  */
70
70
  indexName: string;
71
71
  /**
72
- * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
72
+ * [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
73
73
  */
74
74
  model: RecommendModels;
75
75
  /**
@@ -86,7 +86,7 @@ export type GetRecommendRuleProps = {
86
86
  */
87
87
  indexName: string;
88
88
  /**
89
- * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
89
+ * [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
90
90
  */
91
91
  model: RecommendModels;
92
92
  /**
@@ -103,11 +103,11 @@ export type GetRecommendStatusProps = {
103
103
  */
104
104
  indexName: string;
105
105
  /**
106
- * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
106
+ * [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
107
107
  */
108
108
  model: RecommendModels;
109
109
  /**
110
- * Unique identifier of a task. Numeric value (up to 64bits).
110
+ * Unique task identifier.
111
111
  */
112
112
  taskID: number;
113
113
  };
@@ -120,7 +120,7 @@ export type SearchRecommendRulesProps = {
120
120
  */
121
121
  indexName: string;
122
122
  /**
123
- * [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
123
+ * [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
124
124
  */
125
125
  model: RecommendModels;
126
126
  searchRecommendRulesParams?: SearchRecommendRulesParams;
@@ -1,21 +1,14 @@
1
- import type { Anchoring } from './anchoring';
1
+ /**
2
+ * Condition that triggers the rule. If not specified, the rule is triggered for all recommendations.
3
+ */
2
4
  export type Condition = {
3
5
  /**
4
- * Query pattern that triggers the rule. You can use either a literal string, or a special pattern `{facet:ATTRIBUTE}`, where `ATTRIBUTE` is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, with `pattern: {facet:genre}`, the rule is triggered when users search for a genre, such as \"comedy\".
6
+ * 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/).
5
7
  */
6
- pattern?: string;
7
- anchoring?: Anchoring;
8
- /**
9
- * Whether the pattern should match plurals, synonyms, and typos.
10
- */
11
- alternatives?: boolean;
8
+ filters?: string;
12
9
  /**
13
10
  * An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
14
11
  */
15
12
  context?: string;
16
- /**
17
- * Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
18
- */
19
- filters?: string;
20
13
  };
21
14
  //# sourceMappingURL=condition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../model/condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../model/condition.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,26 +1,18 @@
1
- import type { ConsequenceHide } from './consequenceHide';
2
- import type { ConsequenceParams } from './consequenceParams';
3
- import type { Promote } from './promote';
1
+ import type { HideConsequenceObject } from './hideConsequenceObject';
2
+ import type { ParamsConsequence } from './paramsConsequence';
3
+ import type { PromoteConsequenceObject } from './promoteConsequenceObject';
4
4
  /**
5
- * Effect of the rule. For more information, see [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences).
5
+ * Effect of the rule.
6
6
  */
7
7
  export type Consequence = {
8
- params?: ConsequenceParams;
9
8
  /**
10
- * Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each.
9
+ * Exclude items from recommendations.
11
10
  */
12
- promote?: Promote[];
11
+ hide?: HideConsequenceObject[];
13
12
  /**
14
- * Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won\'t be shown.
13
+ * Place items at specific positions in the list of recommendations.
15
14
  */
16
- filterPromotes?: boolean;
17
- /**
18
- * Records you want to hide from the search results.
19
- */
20
- hide?: ConsequenceHide[];
21
- /**
22
- * A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1&nbsp;kB of minified JSON.
23
- */
24
- userData?: any | null;
15
+ promote?: PromoteConsequenceObject[];
16
+ params?: ParamsConsequence;
25
17
  };
26
18
  //# sourceMappingURL=consequence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"consequence.d.ts","sourceRoot":"","sources":["../../model/consequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,EAAE,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"consequence.d.ts","sourceRoot":"","sources":["../../model/consequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAErC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B,CAAC"}
@@ -7,7 +7,7 @@ export type DeletedAtResponse = {
7
7
  */
8
8
  taskID: number;
9
9
  /**
10
- * Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
10
+ * Date and time when the object was deleted, in RFC 3339 format.
11
11
  */
12
12
  deletedAt: string;
13
13
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the search query has only one word. <dl> <dt><code>attribute</code></dt> <dd> The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". </dd> <dt><code>none</code></dt> <dd> The Exact ranking criterion is ignored on single-word searches. </dd> <dt><code>word</code></dt> <dd> The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. </dd> </dl> If `exactOnSingleWordQuery` is `word`, only exact matches will be highlighted, partial and prefix matches won\'t.
2
+ * Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the search query has only one word. - `attribute`. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". - `none`. The Exact ranking criterion is ignored on single-word searches. - `word`. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won\'t.
3
3
  */
4
4
  export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
5
5
  //# sourceMappingURL=exactOnSingleWordQuery.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { SearchParamsObject } from './searchParamsObject';
2
+ export type FallbackParams = Record<string, any> & SearchParamsObject;
3
+ //# sourceMappingURL=fallbackParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fallbackParams.d.ts","sourceRoot":"","sources":["../../model/fallbackParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Frequently bought together model. This model recommends items that have been purchased within 1 day with the item with the ID `objectID`.
3
+ */
4
+ export type FbtModel = 'bought-together';
5
+ //# sourceMappingURL=fbtModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fbtModel.d.ts","sourceRoot":"","sources":["../../model/fbtModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { FbtModel } from './fbtModel';
2
+ export type FrequentlyBoughtTogether = {
3
+ model: FbtModel;
4
+ /**
5
+ * Unique record identifier.
6
+ */
7
+ objectID: string;
8
+ };
9
+ //# sourceMappingURL=frequentlyBoughtTogether.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frequentlyBoughtTogether.d.ts","sourceRoot":"","sources":["../../model/frequentlyBoughtTogether.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import type { RecommendationsRequest } from './recommendationsRequest';
2
2
  /**
3
- * Recommend parameters.
3
+ * Recommend request body.
4
4
  */
5
5
  export type GetRecommendationsParams = {
6
6
  /**
7
- * Request parameters depend on the model (recommendations or trending).
7
+ * Recommendation request with parameters depending on the requested model.
8
8
  */
9
9
  requests: RecommendationsRequest[];
10
10
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Object ID of the recommendation you want to exclude.
3
+ */
4
+ export type HideConsequenceObject = {
5
+ /**
6
+ * Unique record identifier.
7
+ */
8
+ objectID?: string;
9
+ };
10
+ //# sourceMappingURL=hideConsequenceObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hideConsequenceObject.d.ts","sourceRoot":"","sources":["../../model/hideConsequenceObject.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,31 +1,19 @@
1
1
  export * from './advancedSyntaxFeatures';
2
2
  export * from './alternativesAsExact';
3
- export * from './anchoring';
4
3
  export * from './aroundPrecision';
5
4
  export * from './aroundPrecisionFromValueInner';
6
5
  export * from './aroundRadius';
7
6
  export * from './aroundRadiusAll';
8
- export * from './automaticFacetFilter';
9
- export * from './automaticFacetFilters';
7
+ export * from './autoFacetFilter';
10
8
  export * from './baseRecommendRequest';
11
- export * from './baseRecommendationsQuery';
12
- export * from './baseRecommendedForYouQuery';
13
- export * from './baseRecommendedForYouQueryParameters';
14
9
  export * from './baseSearchParams';
15
10
  export * from './baseSearchParamsWithoutQuery';
16
11
  export * from './baseSearchResponse';
17
- export * from './baseTrendingFacetsQuery';
18
- export * from './baseTrendingItemsQuery';
12
+ export * from './boughtTogetherQuery';
19
13
  export * from './condition';
20
14
  export * from './consequence';
21
- export * from './consequenceHide';
22
- export * from './consequenceParams';
23
- export * from './consequenceQuery';
24
- export * from './consequenceQueryObject';
25
15
  export * from './deletedAtResponse';
26
16
  export * from './distinct';
27
- export * from './edit';
28
- export * from './editType';
29
17
  export * from './errorBase';
30
18
  export * from './exactOnSingleWordQuery';
31
19
  export * from './exhaustive';
@@ -33,46 +21,53 @@ export * from './facetFilters';
33
21
  export * from './facetOrdering';
34
22
  export * from './facets';
35
23
  export * from './facetsStats';
24
+ export * from './fallbackParams';
25
+ export * from './fbtModel';
26
+ export * from './frequentlyBoughtTogether';
36
27
  export * from './getRecommendTaskResponse';
37
28
  export * from './getRecommendationsParams';
38
29
  export * from './getRecommendationsResponse';
30
+ export * from './hideConsequenceObject';
39
31
  export * from './highlightResult';
40
32
  export * from './highlightResultOption';
41
33
  export * from './ignorePlurals';
42
34
  export * from './indexSettingsAsSearchParams';
35
+ export * from './lookingSimilar';
36
+ export * from './lookingSimilarModel';
37
+ export * from './lookingSimilarQuery';
43
38
  export * from './matchLevel';
44
39
  export * from './matchedGeoLocation';
45
40
  export * from './mixedSearchFilters';
46
41
  export * from './mode';
47
42
  export * from './numericFilters';
48
43
  export * from './optionalFilters';
49
- export * from './params';
44
+ export * from './paramsConsequence';
50
45
  export * from './personalization';
51
- export * from './promote';
52
- export * from './promoteObjectID';
53
- export * from './promoteObjectIDs';
46
+ export * from './promoteConsequenceObject';
54
47
  export * from './queryType';
55
48
  export * from './rankingInfo';
56
49
  export * from './reRankingApplyFilter';
57
50
  export * from './recommendHit';
58
51
  export * from './recommendModels';
59
- export * from './recommendationModels';
52
+ export * from './recommendRule';
53
+ export * from './recommendRuleMetadata';
60
54
  export * from './recommendationsHit';
61
55
  export * from './recommendationsHits';
62
- export * from './recommendationsQuery';
63
56
  export * from './recommendationsRequest';
64
57
  export * from './recommendationsResults';
58
+ export * from './recommendedForYou';
65
59
  export * from './recommendedForYouModel';
66
60
  export * from './recommendedForYouQuery';
67
- export * from './recommendedForYouQueryParameters';
68
61
  export * from './redirect';
69
62
  export * from './redirectRuleIndexMetadata';
70
63
  export * from './redirectRuleIndexMetadataData';
64
+ export * from './relatedModel';
65
+ export * from './relatedProducts';
66
+ export * from './relatedQuery';
71
67
  export * from './removeStopWords';
72
68
  export * from './removeWordsIfNoResults';
73
69
  export * from './renderingContent';
74
- export * from './ruleResponse';
75
- export * from './ruleResponseMetadata';
70
+ export * from './searchParams';
76
71
  export * from './searchParamsObject';
77
72
  export * from './searchParamsQuery';
78
73
  export * from './searchRecommendRulesParams';
@@ -85,8 +80,10 @@ export * from './supportedLanguage';
85
80
  export * from './tagFilters';
86
81
  export * from './taskStatus';
87
82
  export * from './trendingFacetHit';
83
+ export * from './trendingFacets';
88
84
  export * from './trendingFacetsModel';
89
85
  export * from './trendingFacetsQuery';
86
+ export * from './trendingItems';
90
87
  export * from './trendingItemsModel';
91
88
  export * from './trendingItemsQuery';
92
89
  export * from './typoTolerance';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CA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iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC"}
@@ -14,15 +14,15 @@ import type { SupportedLanguage } from './supportedLanguage';
14
14
  import type { TypoTolerance } from './typoTolerance';
15
15
  export type IndexSettingsAsSearchParams = {
16
16
  /**
17
- * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
17
+ * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
18
18
  */
19
19
  attributesToRetrieve?: string[];
20
20
  /**
21
- * Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
21
+ * Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
22
22
  */
23
23
  ranking?: string[];
24
24
  /**
25
- * Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
25
+ * Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
26
26
  */
27
27
  customRanking?: string[];
28
28
  /**
@@ -30,11 +30,11 @@ export type IndexSettingsAsSearchParams = {
30
30
  */
31
31
  relevancyStrictness?: number;
32
32
  /**
33
- * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
33
+ * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
34
34
  */
35
35
  attributesToHighlight?: string[];
36
36
  /**
37
- * Attributes for which to enable snippets. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
37
+ * Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
38
38
  */
39
39
  attributesToSnippet?: string[];
40
40
  /**
@@ -71,7 +71,7 @@ export type IndexSettingsAsSearchParams = {
71
71
  */
72
72
  allowTyposOnNumericTokens?: boolean;
73
73
  /**
74
- * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
74
+ * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Attribute names are case-sensitive. Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
75
75
  */
76
76
  disableTypoToleranceOnAttributes?: string[];
77
77
  ignorePlurals?: IgnorePlurals;
@@ -109,16 +109,16 @@ export type IndexSettingsAsSearchParams = {
109
109
  */
110
110
  optionalWords?: string[];
111
111
  /**
112
- * Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
112
+ * Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
113
113
  */
114
114
  disableExactOnAttributes?: string[];
115
115
  exactOnSingleWordQuery?: ExactOnSingleWordQuery;
116
116
  /**
117
- * Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. <dl> <dt><code>ignorePlurals</code></dt> <dd> Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. </dd> <dt><code>singleWordSynonym</code></dt> <dd> Single-word synonyms, such as \"NY/NYC\" are considered exact matches. </dd> <dt><code>multiWordsSynonym</code></dt> <dd> Multi-word synonyms, such as \"NY/New York\" are considered exact matches. </dd> </dl>.
117
+ * Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. - `ignorePlurals`. Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. - `singleWordSynonym`. Single-word synonyms, such as \"NY/NYC\" are considered exact matches. - `multiWordsSynonym`. Multi-word synonyms, such as \"NY/New York\" are considered exact matches.
118
118
  */
119
119
  alternativesAsExact?: AlternativesAsExact[];
120
120
  /**
121
- * Advanced search syntax features you want to support. <dl> <dt><code>exactPhrase</code></dt> <dd> Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". </dd> <dt><code>excludeWords</code></dt> <dd> Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". </dd> </dl> This setting only has an effect if `advancedSyntax` is true.
121
+ * Advanced search syntax features you want to support. - `exactPhrase`. Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". - `excludeWords`. Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". This setting only has an effect if `advancedSyntax` is true.
122
122
  */
123
123
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
124
124
  distinct?: Distinct;
@@ -143,7 +143,7 @@ export type IndexSettingsAsSearchParams = {
143
143
  */
144
144
  maxValuesPerFacet?: number;
145
145
  /**
146
- * Order in which to retrieve facet values. <dl> <dt><code>count</code></dt> <dd> Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. </dd> <dt><code>alpha</code></dt> <dd>Retrieve facet values alphabetically.</dd> </dl> This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
146
+ * Order in which to retrieve facet values. - `count`. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Retrieve facet values alphabetically. This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
147
147
  */
148
148
  sortFacetValuesBy?: string;
149
149
  /**
@@ -0,0 +1,11 @@
1
+ import type { FallbackParams } from './fallbackParams';
2
+ import type { LookingSimilarModel } from './lookingSimilarModel';
3
+ export type LookingSimilar = {
4
+ model: LookingSimilarModel;
5
+ /**
6
+ * Unique record identifier.
7
+ */
8
+ objectID: string;
9
+ fallbackParameters?: FallbackParams;
10
+ };
11
+ //# sourceMappingURL=lookingSimilar.d.ts.map
@@ -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"}