gorsejs
Version:
TypeScript SDK for Gorse recommender system.
7 lines • 824 B
TypeScript
import { AxiosInstance } from "axios";
import { Feedback, LatestOutput, PopularOptions, PopularOutput, RecommendOptions, SessionRecommendOptions } from "../interfaces";
export declare function getPopular(axios: AxiosInstance, { category, cursorOptions }: PopularOptions): Promise<PopularOutput[]>;
export declare function getLatest(axios: AxiosInstance, { category, cursorOptions }: PopularOptions): Promise<LatestOutput[]>;
export declare function getRecommend(axios: AxiosInstance, { userId, category, cursorOptions, writeBackType, writeBackDelay, }: RecommendOptions): Promise<string[]>;
export declare function getSessionRecommend<T extends string>(axios: AxiosInstance, feedbackList: Feedback<T>[] | undefined, { category, cursorOptions }: SessionRecommendOptions): Promise<any>;
//# sourceMappingURL=recommend.d.ts.map