@@ -190,6 +190,16 @@ import {
190190} from '@algolia/client-search' ;
191191import { LogLevelEnum } from '@algolia/logger-common' ;
192192import { 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' ;
193203import { createBrowserXhrRequester } from '@algolia/requester-browser-xhr' ;
194204import { createUserAgent , Request , RequestOptions } from '@algolia/transporter' ;
195205
@@ -343,6 +353,13 @@ export default function algoliasearch(
343353
344354 return initPersonalization ( ) ( clientOptions ) ;
345355 } ,
356+ getRecommendations,
357+ getFrequentlyBoughtTogether,
358+ getLookingSimilar,
359+ getRecommendedForYou,
360+ getRelatedProducts,
361+ getTrendingFacets,
362+ getTrendingItems,
346363 } ,
347364 } ) ;
348365}
@@ -689,6 +706,15 @@ export type SearchClient = BaseSearchClient & {
689706 * @deprecated Use `initPersonalization` instead.
690707 */
691708 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' ] ;
692718} ;
693719
694720export * from '../types' ;
0 commit comments