|
1 | 1 | import { SearchOptions, SearchResponse } from '@algolia/client-search'; |
2 | 2 | import { RequestOptions } from '@algolia/transporter'; |
3 | 3 |
|
4 | | -import { RecommendedForYouQuery } from '../builds/node'; |
| 4 | +import { RecommendedForYouParams, RecommendedForYouQuery } from '../builds/node'; |
5 | 5 | import { FrequentlyBoughtTogetherQuery } from './FrequentlyBoughtTogetherQuery'; |
6 | 6 | import { LookingSimilarQuery } from './LookingSimilarQuery'; |
7 | 7 | import { RecommendationsQuery } from './RecommendationsQuery'; |
@@ -30,7 +30,7 @@ export type WithRecommendMethods<TType> = TType & { |
30 | 30 | * Returns recommendations. |
31 | 31 | */ |
32 | 32 | readonly getRecommendations: <TObject>( |
33 | | - queries: ReadonlyArray<RecommendationsQuery | TrendingQuery>, |
| 33 | + queries: ReadonlyArray<RecommendationsQuery | TrendingQuery | RecommendedForYouQuery>, |
34 | 34 | requestOptions?: RequestOptions & SearchOptions |
35 | 35 | ) => Readonly<Promise<RecommendQueriesResponse<TObject>>>; |
36 | 36 |
|
@@ -78,7 +78,7 @@ export type WithRecommendMethods<TType> = TType & { |
78 | 78 | * Returns Recommended for you |
79 | 79 | */ |
80 | 80 | readonly getRecommendedForYou: <TObject>( |
81 | | - queries: readonly RecommendedForYouQuery[], |
| 81 | + queries: readonly RecommendedForYouParams[], |
82 | 82 | requestOptions?: RequestOptions & SearchOptions |
83 | 83 | ) => Readonly<Promise<RecommendQueriesResponse<TObject>>>; |
84 | 84 | }; |
0 commit comments