@klevu/core
Version:
Typescript SDK that simplifies development on Klevu backend. Klevu provides advanced AI-powered search and discovery solutions for online retailers.
35 lines (34 loc) • 1.36 kB
TypeScript
import { KlevuFetchModifer } from "../index.js";
import { KlevuRecordFields } from "../../models/index.js";
/**
* Enable personlisation to the query
*
* @category Modifier
* @param options
* @returns
*/
export declare function personalisation(options?: {
/**
* This is an optional field. By default, Klevu will analyse all attributes of
* the records the customer has interacted with, in order to determine the
* common patterns. If you prefer to focus on particular aspects, for example
* brand or price, specify those attributes within this object.
*/
fields?: KlevuRecordFields[];
/**
* Override last clicked product id's with your own selection. First item
* should be the latest product clicked. By default @klevu/core uses internal
* store to keep track of last clicked products. It is important use
* KlevuEvent class to store all interactions.
*
* @deprecated use lastClickedItemIds instead
*/
lastClickedProductIds?: string[];
/**
* Override last clicked id's with your own selection. First item
* should be the latest product clicked. By default @klevu/core uses internal
* store to keep track of last clicked items. It is important use
* KlevuEvent class to store all interactions.
*/
lastClickedItemIds?: string[];
}): KlevuFetchModifer;