@algolia/recommend 5.0.0-alpha.52 → 5.0.0-alpha.54

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 (62) 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/alternativesAsExact.d.ts +1 -1
  5. package/dist/model/aroundRadius.d.ts +5 -5
  6. package/dist/model/aroundRadiusAll.d.ts +1 -1
  7. package/dist/model/baseRecommendRequest.d.ts +17 -17
  8. package/dist/model/baseRecommendationRequest.d.ts +8 -8
  9. package/dist/model/baseSearchParams.d.ts +3 -3
  10. package/dist/model/baseSearchParamsWithoutQuery.d.ts +122 -122
  11. package/dist/model/baseSearchResponse.d.ts +101 -101
  12. package/dist/model/baseTrendingRequest.d.ts +12 -12
  13. package/dist/model/clientMethodProps.d.ts +60 -60
  14. package/dist/model/distinct.d.ts +4 -4
  15. package/dist/model/errorBase.d.ts +6 -6
  16. package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
  17. package/dist/model/facetFilters.d.ts +5 -5
  18. package/dist/model/facetOrdering.d.ts +12 -12
  19. package/dist/model/facets.d.ts +9 -9
  20. package/dist/model/facetsStats.d.ts +18 -18
  21. package/dist/model/getRecommendationsParams.d.ts +10 -10
  22. package/dist/model/getRecommendationsResponse.d.ts +4 -4
  23. package/dist/model/highlightResult.d.ts +2 -2
  24. package/dist/model/highlightResultOption.d.ts +19 -19
  25. package/dist/model/ignorePlurals.d.ts +4 -4
  26. package/dist/model/index.d.ts +53 -53
  27. package/dist/model/indexSettingsAsSearchParams.d.ts +156 -156
  28. package/dist/model/matchLevel.d.ts +4 -4
  29. package/dist/model/matchedGeoLocation.d.ts +14 -14
  30. package/dist/model/mixedSearchFilters.d.ts +1 -1
  31. package/dist/model/numericFilters.d.ts +5 -5
  32. package/dist/model/optionalFilters.d.ts +5 -5
  33. package/dist/model/personalization.d.ts +14 -14
  34. package/dist/model/queryType.d.ts +4 -4
  35. package/dist/model/rankingInfo.d.ts +50 -50
  36. package/dist/model/reRankingApplyFilter.d.ts +5 -5
  37. package/dist/model/recommendHit.d.ts +26 -26
  38. package/dist/model/recommendHits.d.ts +4 -4
  39. package/dist/model/recommendationModels.d.ts +4 -4
  40. package/dist/model/recommendationRequest.d.ts +3 -3
  41. package/dist/model/recommendationsRequest.d.ts +3 -3
  42. package/dist/model/recommendationsResponse.d.ts +3 -3
  43. package/dist/model/removeStopWords.d.ts +4 -4
  44. package/dist/model/removeWordsIfNoResults.d.ts +4 -4
  45. package/dist/model/renderingContent.d.ts +7 -7
  46. package/dist/model/searchParamsObject.d.ts +3 -3
  47. package/dist/model/searchParamsQuery.d.ts +6 -6
  48. package/dist/model/snippetResult.d.ts +2 -2
  49. package/dist/model/snippetResultOption.d.ts +11 -11
  50. package/dist/model/sortRemainingBy.d.ts +4 -4
  51. package/dist/model/tagFilters.d.ts +5 -5
  52. package/dist/model/trendingModels.d.ts +4 -4
  53. package/dist/model/trendingRequest.d.ts +3 -3
  54. package/dist/model/typoTolerance.d.ts +5 -5
  55. package/dist/model/typoToleranceEnum.d.ts +1 -1
  56. package/dist/model/value.d.ts +8 -8
  57. package/dist/recommend.cjs.js +235 -235
  58. package/dist/recommend.esm.browser.js +359 -359
  59. package/dist/recommend.esm.node.js +235 -235
  60. package/dist/recommend.umd.js +2 -2
  61. package/dist/src/recommendClient.d.ts +81 -81
  62. package/package.json +6 -6
@@ -1,157 +1,157 @@
1
- import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
2
- import type { AlternativesAsExact } from './alternativesAsExact';
3
- import type { Distinct } from './distinct';
4
- import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
5
- import type { IgnorePlurals } from './ignorePlurals';
6
- import type { QueryType } from './queryType';
7
- import type { RemoveStopWords } from './removeStopWords';
8
- import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
9
- import type { RenderingContent } from './renderingContent';
10
- import type { TypoTolerance } from './typoTolerance';
11
- export type IndexSettingsAsSearchParams = {
12
- /**
13
- * The complete list of attributes that will be used for faceting.
14
- */
15
- attributesForFaceting?: string[];
16
- /**
17
- * This parameter controls which attributes to retrieve and which not to retrieve.
18
- */
19
- attributesToRetrieve?: string[];
20
- /**
21
- * Restricts a given query to look in only a subset of your searchable attributes.
22
- */
23
- restrictSearchableAttributes?: string[];
24
- /**
25
- * Controls how Algolia should sort your results.
26
- */
27
- ranking?: string[];
28
- /**
29
- * Specifies the custom ranking criterion.
30
- */
31
- customRanking?: string[];
32
- /**
33
- * Controls the relevancy threshold below which less relevant results aren\'t included in the results.
34
- */
35
- relevancyStrictness?: number;
36
- /**
37
- * List of attributes to highlight.
38
- */
39
- attributesToHighlight?: string[];
40
- /**
41
- * List of attributes to snippet, with an optional maximum number of words to snippet.
42
- */
43
- attributesToSnippet?: string[];
44
- /**
45
- * The HTML string to insert before the highlighted parts in all highlight and snippet results.
46
- */
47
- highlightPreTag?: string;
48
- /**
49
- * The HTML string to insert after the highlighted parts in all highlight and snippet results.
50
- */
51
- highlightPostTag?: string;
52
- /**
53
- * String used as an ellipsis indicator when a snippet is truncated.
54
- */
55
- snippetEllipsisText?: string;
56
- /**
57
- * Restrict highlighting and snippeting to items that matched the query.
58
- */
59
- restrictHighlightAndSnippetArrays?: boolean;
60
- /**
61
- * Set the number of hits per page.
62
- */
63
- hitsPerPage?: number;
64
- /**
65
- * Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
66
- */
67
- minWordSizefor1Typo?: number;
68
- /**
69
- * Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
70
- */
71
- minWordSizefor2Typos?: number;
72
- typoTolerance?: TypoTolerance;
73
- /**
74
- * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
75
- */
76
- allowTyposOnNumericTokens?: boolean;
77
- /**
78
- * List of attributes on which you want to disable typo tolerance.
79
- */
80
- disableTypoToleranceOnAttributes?: string[];
81
- ignorePlurals?: IgnorePlurals;
82
- removeStopWords?: RemoveStopWords;
83
- /**
84
- * List of characters that the engine shouldn\'t automatically normalize.
85
- */
86
- keepDiacriticsOnCharacters?: string;
87
- /**
88
- * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
89
- */
90
- queryLanguages?: string[];
91
- /**
92
- * Splits compound words into their composing atoms in the query.
93
- */
94
- decompoundQuery?: boolean;
95
- /**
96
- * Whether Rules should be globally enabled.
97
- */
98
- enableRules?: boolean;
99
- /**
100
- * Enable the Personalization feature.
101
- */
102
- enablePersonalization?: boolean;
103
- queryType?: QueryType;
104
- removeWordsIfNoResults?: RemoveWordsIfNoResults;
105
- /**
106
- * Enables the advanced query syntax.
107
- */
108
- advancedSyntax?: boolean;
109
- /**
110
- * A list of words that should be considered as optional when found in the query.
111
- */
112
- optionalWords?: string[];
113
- /**
114
- * List of attributes on which you want to disable the exact ranking criterion.
115
- */
116
- disableExactOnAttributes?: string[];
117
- exactOnSingleWordQuery?: ExactOnSingleWordQuery;
118
- /**
119
- * List of alternatives that should be considered an exact match by the exact ranking criterion.
120
- */
121
- alternativesAsExact?: AlternativesAsExact[];
122
- /**
123
- * Allows you to specify which advanced syntax features are active when ‘advancedSyntax\' is enabled.
124
- */
125
- advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
126
- distinct?: Distinct;
127
- /**
128
- * Name of the de-duplication attribute to be used with the distinct feature.
129
- */
130
- attributeForDistinct?: string;
131
- /**
132
- * Whether to take into account an index\'s synonyms for a particular search.
133
- */
134
- synonyms?: boolean;
135
- /**
136
- * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
137
- */
138
- replaceSynonymsInHighlight?: boolean;
139
- /**
140
- * Precision of the proximity ranking criterion.
141
- */
142
- minProximity?: number;
143
- /**
144
- * Choose which fields to return in the API response. This parameters applies to search and browse queries.
145
- */
146
- responseFields?: string[];
147
- /**
148
- * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
149
- */
150
- maxFacetHits?: number;
151
- /**
152
- * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
153
- */
154
- attributeCriteriaComputedByMinProximity?: boolean;
155
- renderingContent?: RenderingContent;
156
- };
1
+ import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
2
+ import type { AlternativesAsExact } from './alternativesAsExact';
3
+ import type { Distinct } from './distinct';
4
+ import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
5
+ import type { IgnorePlurals } from './ignorePlurals';
6
+ import type { QueryType } from './queryType';
7
+ import type { RemoveStopWords } from './removeStopWords';
8
+ import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
9
+ import type { RenderingContent } from './renderingContent';
10
+ import type { TypoTolerance } from './typoTolerance';
11
+ export type IndexSettingsAsSearchParams = {
12
+ /**
13
+ * The complete list of attributes that will be used for faceting.
14
+ */
15
+ attributesForFaceting?: string[];
16
+ /**
17
+ * This parameter controls which attributes to retrieve and which not to retrieve.
18
+ */
19
+ attributesToRetrieve?: string[];
20
+ /**
21
+ * Restricts a given query to look in only a subset of your searchable attributes.
22
+ */
23
+ restrictSearchableAttributes?: string[];
24
+ /**
25
+ * Controls how Algolia should sort your results.
26
+ */
27
+ ranking?: string[];
28
+ /**
29
+ * Specifies the custom ranking criterion.
30
+ */
31
+ customRanking?: string[];
32
+ /**
33
+ * Controls the relevancy threshold below which less relevant results aren\'t included in the results.
34
+ */
35
+ relevancyStrictness?: number;
36
+ /**
37
+ * List of attributes to highlight.
38
+ */
39
+ attributesToHighlight?: string[];
40
+ /**
41
+ * List of attributes to snippet, with an optional maximum number of words to snippet.
42
+ */
43
+ attributesToSnippet?: string[];
44
+ /**
45
+ * The HTML string to insert before the highlighted parts in all highlight and snippet results.
46
+ */
47
+ highlightPreTag?: string;
48
+ /**
49
+ * The HTML string to insert after the highlighted parts in all highlight and snippet results.
50
+ */
51
+ highlightPostTag?: string;
52
+ /**
53
+ * String used as an ellipsis indicator when a snippet is truncated.
54
+ */
55
+ snippetEllipsisText?: string;
56
+ /**
57
+ * Restrict highlighting and snippeting to items that matched the query.
58
+ */
59
+ restrictHighlightAndSnippetArrays?: boolean;
60
+ /**
61
+ * Set the number of hits per page.
62
+ */
63
+ hitsPerPage?: number;
64
+ /**
65
+ * Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
66
+ */
67
+ minWordSizefor1Typo?: number;
68
+ /**
69
+ * Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
70
+ */
71
+ minWordSizefor2Typos?: number;
72
+ typoTolerance?: TypoTolerance;
73
+ /**
74
+ * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
75
+ */
76
+ allowTyposOnNumericTokens?: boolean;
77
+ /**
78
+ * List of attributes on which you want to disable typo tolerance.
79
+ */
80
+ disableTypoToleranceOnAttributes?: string[];
81
+ ignorePlurals?: IgnorePlurals;
82
+ removeStopWords?: RemoveStopWords;
83
+ /**
84
+ * List of characters that the engine shouldn\'t automatically normalize.
85
+ */
86
+ keepDiacriticsOnCharacters?: string;
87
+ /**
88
+ * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
89
+ */
90
+ queryLanguages?: string[];
91
+ /**
92
+ * Splits compound words into their composing atoms in the query.
93
+ */
94
+ decompoundQuery?: boolean;
95
+ /**
96
+ * Whether Rules should be globally enabled.
97
+ */
98
+ enableRules?: boolean;
99
+ /**
100
+ * Enable the Personalization feature.
101
+ */
102
+ enablePersonalization?: boolean;
103
+ queryType?: QueryType;
104
+ removeWordsIfNoResults?: RemoveWordsIfNoResults;
105
+ /**
106
+ * Enables the advanced query syntax.
107
+ */
108
+ advancedSyntax?: boolean;
109
+ /**
110
+ * A list of words that should be considered as optional when found in the query.
111
+ */
112
+ optionalWords?: string[];
113
+ /**
114
+ * List of attributes on which you want to disable the exact ranking criterion.
115
+ */
116
+ disableExactOnAttributes?: string[];
117
+ exactOnSingleWordQuery?: ExactOnSingleWordQuery;
118
+ /**
119
+ * List of alternatives that should be considered an exact match by the exact ranking criterion.
120
+ */
121
+ alternativesAsExact?: AlternativesAsExact[];
122
+ /**
123
+ * Allows you to specify which advanced syntax features are active when ‘advancedSyntax\' is enabled.
124
+ */
125
+ advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
126
+ distinct?: Distinct;
127
+ /**
128
+ * Name of the de-duplication attribute to be used with the distinct feature.
129
+ */
130
+ attributeForDistinct?: string;
131
+ /**
132
+ * Whether to take into account an index\'s synonyms for a particular search.
133
+ */
134
+ synonyms?: boolean;
135
+ /**
136
+ * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
137
+ */
138
+ replaceSynonymsInHighlight?: boolean;
139
+ /**
140
+ * Precision of the proximity ranking criterion.
141
+ */
142
+ minProximity?: number;
143
+ /**
144
+ * Choose which fields to return in the API response. This parameters applies to search and browse queries.
145
+ */
146
+ responseFields?: string[];
147
+ /**
148
+ * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
149
+ */
150
+ maxFacetHits?: number;
151
+ /**
152
+ * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
153
+ */
154
+ attributeCriteriaComputedByMinProximity?: boolean;
155
+ renderingContent?: RenderingContent;
156
+ };
157
157
  //# sourceMappingURL=indexSettingsAsSearchParams.d.ts.map
@@ -1,5 +1,5 @@
1
- /**
2
- * Indicates how well the attribute matched the search query.
3
- */
4
- export type MatchLevel = 'full' | 'none' | 'partial';
1
+ /**
2
+ * Indicates how well the attribute matched the search query.
3
+ */
4
+ export type MatchLevel = 'full' | 'none' | 'partial';
5
5
  //# sourceMappingURL=matchLevel.d.ts.map
@@ -1,15 +1,15 @@
1
- export type MatchedGeoLocation = {
2
- /**
3
- * Latitude of the matched location.
4
- */
5
- lat?: number;
6
- /**
7
- * Longitude of the matched location.
8
- */
9
- lng?: number;
10
- /**
11
- * Distance between the matched location and the search location (in meters).
12
- */
13
- distance?: number;
14
- };
1
+ export type MatchedGeoLocation = {
2
+ /**
3
+ * Latitude of the matched location.
4
+ */
5
+ lat?: number;
6
+ /**
7
+ * Longitude of the matched location.
8
+ */
9
+ lng?: number;
10
+ /**
11
+ * Distance between the matched location and the search location (in meters).
12
+ */
13
+ distance?: number;
14
+ };
15
15
  //# sourceMappingURL=matchedGeoLocation.d.ts.map
@@ -1,2 +1,2 @@
1
- export type MixedSearchFilters = string[] | string;
1
+ export type MixedSearchFilters = string[] | string;
2
2
  //# sourceMappingURL=mixedSearchFilters.d.ts.map
@@ -1,6 +1,6 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
- /**
3
- * Filter on numeric attributes.
4
- */
5
- export type NumericFilters = MixedSearchFilters[] | string;
1
+ import type { MixedSearchFilters } from './mixedSearchFilters';
2
+ /**
3
+ * Filter on numeric attributes.
4
+ */
5
+ export type NumericFilters = MixedSearchFilters[] | string;
6
6
  //# sourceMappingURL=numericFilters.d.ts.map
@@ -1,6 +1,6 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
- /**
3
- * Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter.
4
- */
5
- export type OptionalFilters = MixedSearchFilters[] | string;
1
+ import type { MixedSearchFilters } from './mixedSearchFilters';
2
+ /**
3
+ * Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter.
4
+ */
5
+ export type OptionalFilters = MixedSearchFilters[] | string;
6
6
  //# sourceMappingURL=optionalFilters.d.ts.map
@@ -1,15 +1,15 @@
1
- export type Personalization = {
2
- /**
3
- * The score of the filters.
4
- */
5
- filtersScore?: number;
6
- /**
7
- * The score of the ranking.
8
- */
9
- rankingScore?: number;
10
- /**
11
- * The score of the event.
12
- */
13
- score?: number;
14
- };
1
+ export type Personalization = {
2
+ /**
3
+ * The score of the filters.
4
+ */
5
+ filtersScore?: number;
6
+ /**
7
+ * The score of the ranking.
8
+ */
9
+ rankingScore?: number;
10
+ /**
11
+ * The score of the event.
12
+ */
13
+ score?: number;
14
+ };
15
15
  //# sourceMappingURL=personalization.d.ts.map
@@ -1,5 +1,5 @@
1
- /**
2
- * Controls if and how query words are interpreted as prefixes.
3
- */
4
- export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
1
+ /**
2
+ * Controls if and how query words are interpreted as prefixes.
3
+ */
4
+ export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
5
5
  //# sourceMappingURL=queryType.d.ts.map
@@ -1,51 +1,51 @@
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
- };
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,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 type ReRankingApplyFilter = MixedSearchFilters[] | string;
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 type ReRankingApplyFilter = MixedSearchFilters[] | string;
6
6
  //# sourceMappingURL=reRankingApplyFilter.d.ts.map
@@ -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 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
+ * A Recommend hit.
6
+ */
7
+ export 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
+ };
27
27
  //# sourceMappingURL=recommendHit.d.ts.map
@@ -1,5 +1,5 @@
1
- import type { RecommendHit } from './recommendHit';
2
- export type RecommendHits = {
3
- hits: RecommendHit[];
4
- };
1
+ import type { RecommendHit } from './recommendHit';
2
+ export type RecommendHits = {
3
+ hits: RecommendHit[];
4
+ };
5
5
  //# sourceMappingURL=recommendHits.d.ts.map
@@ -1,5 +1,5 @@
1
- /**
2
- * The recommendation model to use.
3
- */
4
- export type RecommendationModels = 'bought-together' | 'related-products';
1
+ /**
2
+ * The recommendation model to use.
3
+ */
4
+ export type RecommendationModels = 'bought-together' | 'related-products';
5
5
  //# sourceMappingURL=recommendationModels.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { BaseRecommendRequest } from './baseRecommendRequest';
2
- import type { BaseRecommendationRequest } from './baseRecommendationRequest';
3
- export type RecommendationRequest = BaseRecommendationRequest & BaseRecommendRequest;
1
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
2
+ import type { BaseRecommendationRequest } from './baseRecommendationRequest';
3
+ export type RecommendationRequest = BaseRecommendationRequest & BaseRecommendRequest;
4
4
  //# sourceMappingURL=recommendationRequest.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { RecommendationRequest } from './recommendationRequest';
2
- import type { TrendingRequest } from './trendingRequest';
3
- export type RecommendationsRequest = RecommendationRequest | TrendingRequest;
1
+ import type { RecommendationRequest } from './recommendationRequest';
2
+ import type { TrendingRequest } from './trendingRequest';
3
+ export type RecommendationsRequest = RecommendationRequest | TrendingRequest;
4
4
  //# sourceMappingURL=recommendationsRequest.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { BaseSearchResponse } from './baseSearchResponse';
2
- import type { RecommendHits } from './recommendHits';
3
- export 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