gorsejs
Version:
TypeScript SDK for Gorse recommender system.
12 lines • 1.13 kB
TypeScript
import { AxiosInstance } from "axios";
import { CursorOptions, Score, Item, ItemCursor, ItemNeighborsOptions, ItemPatch } 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: ItemPatch): 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<Score[]>;
//# sourceMappingURL=item.d.ts.map