@@ -190,6 +190,16 @@ import {
190
190
} from '@algolia/client-search' ;
191
191
import { LogLevelEnum } from '@algolia/logger-common' ;
192
192
import { createConsoleLogger } from '@algolia/logger-console' ;
193
+ import {
194
+ getFrequentlyBoughtTogether ,
195
+ getLookingSimilar ,
196
+ getRecommendations ,
197
+ getRecommendedForYou ,
198
+ getRelatedProducts ,
199
+ getTrendingFacets ,
200
+ getTrendingItems ,
201
+ WithRecommendMethods ,
202
+ } from '@algolia/recommend' ;
193
203
import { createBrowserXhrRequester } from '@algolia/requester-browser-xhr' ;
194
204
import { createUserAgent , Request , RequestOptions } from '@algolia/transporter' ;
195
205
@@ -343,6 +353,13 @@ export default function algoliasearch(
343
353
344
354
return initPersonalization ( ) ( clientOptions ) ;
345
355
} ,
356
+ getRecommendations,
357
+ getFrequentlyBoughtTogether,
358
+ getLookingSimilar,
359
+ getRecommendedForYou,
360
+ getRelatedProducts,
361
+ getTrendingFacets,
362
+ getTrendingItems,
346
363
} ,
347
364
} ) ;
348
365
}
@@ -689,6 +706,15 @@ export type SearchClient = BaseSearchClient & {
689
706
* @deprecated Use `initPersonalization` instead.
690
707
*/
691
708
readonly initRecommendation : ( options ?: InitPersonalizationOptions ) => PersonalizationClient ;
709
+ readonly getRecommendations : WithRecommendMethods < BaseSearchClient > [ 'getRecommendations' ] ;
710
+ readonly getFrequentlyBoughtTogether : WithRecommendMethods <
711
+ BaseSearchClient
712
+ > [ 'getFrequentlyBoughtTogether' ] ;
713
+ readonly getLookingSimilar : WithRecommendMethods < BaseSearchClient > [ 'getLookingSimilar' ] ;
714
+ readonly getRecommendedForYou : WithRecommendMethods < BaseSearchClient > [ 'getRecommendedForYou' ] ;
715
+ readonly getRelatedProducts : WithRecommendMethods < BaseSearchClient > [ 'getRelatedProducts' ] ;
716
+ readonly getTrendingFacets : WithRecommendMethods < BaseSearchClient > [ 'getTrendingFacets' ] ;
717
+ readonly getTrendingItems : WithRecommendMethods < BaseSearchClient > [ 'getTrendingItems' ] ;
692
718
} ;
693
719
694
720
export * from '../types' ;
0 commit comments