UNPKG

gorsejs

Version:

TypeScript SDK for Gorse recommender system.

12 lines 1.1 kB
import { AxiosInstance } from "axios"; import { CursorOptions, Item, ItemCursor, ItemNeighborsOptions } from "../interfaces"; export declare function upsertItem(axios: AxiosInstance, itemData: Item): Promise<number>; export declare function getItem(axios: AxiosInstance, itemId: string): Promise<Item>; export declare function deleteItem(axios: AxiosInstance, itemId: string): Promise<number>; export declare function updateItem(axios: AxiosInstance, itemId: string, itemData: Item): Promise<number>; export declare function insertItemCategory(axios: AxiosInstance, itemId: string, category: string): Promise<number>; export declare function deleteItemCategory(axios: AxiosInstance, itemId: string, category: string): Promise<number>; export declare function getItems(axios: AxiosInstance, options?: CursorOptions): Promise<ItemCursor>; export declare function upsertItems(axios: AxiosInstance, items: Item[]): Promise<number>; export declare function getItemNeighbors(axios: AxiosInstance, { itemId, category, cursorOptions }: ItemNeighborsOptions): Promise<string[]>; //# sourceMappingURL=item.d.ts.map