Classes
Class: KlevuResponseObject
22 min
@klevu/core / docid 7vdpes 8 0tv 43dya7ly / klevuresponseobject this class is used to access the response data from klevu api it builds up the state of the result and it can be used to do various things with the data table of contents constructors docid ozqiexf73m6lamic6 oo properties docid ozqiexf73m6lamic6 oo docid ozqiexf73m6lamic6 oo docid ozqiexf73m6lamic6 oo methods docid ozqiexf73m6lamic6 oo docid ozqiexf73m6lamic6 oo docid ozqiexf73m6lamic6 oo docid ozqiexf73m6lamic6 oo constructors constructor • new klevuresponseobject ( response , functions ) parameters name type response @klevu/core docid 7vdpes 8 0tv 43dya7ly functions @klevu/core docid 7vdpes 8 0tv 43dya7ly \[] defined in https //github com/klevultd/frontend sdk/blob/492d3760/packages/klevu core/src/connection/responseobject ts#l14 properties \#functions • private #functions @klevu/core docid 7vdpes 8 0tv 43dya7ly \[] defined in https //github com/klevultd/frontend sdk/blob/492d3760/packages/klevu core/src/connection/responseobject ts#l11 \#queryobjects • private #queryobjects object = {} index signature ▪ \[id string ] class klevuresponsequeryobject docid\ phrcdx6tn6mmutkzfuwjb defined in https //github com/klevultd/frontend sdk/blob/492d3760/packages/klevu core/src/connection/responseobject ts#l12 apiresponse • apiresponse @klevu/core docid 7vdpes 8 0tv 43dya7ly defined in https //github com/klevultd/frontend sdk/blob/492d3760/packages/klevu core/src/connection/responseobject ts#l10 methods \#buildqueryobjects ▸ private #buildqueryobjects () void returns void defined in https //github com/klevultd/frontend sdk/blob/492d3760/packages/klevu core/src/connection/responseobject ts#l42 queriesbyid ▸ queriesbyid ( id ) class klevuresponsequeryobject docid\ phrcdx6tn6mmutkzfuwjb get query results by id parameters name type description id string query id used returns class klevuresponsequeryobject docid\ phrcdx6tn6mmutkzfuwjb defined in https //github com/klevultd/frontend sdk/blob/492d3760/packages/klevu core/src/connection/responseobject ts#l58 queryexists ▸ queryexists ( id ) boolean check if query exists this should be used as queriesbyid can throw an error parameters name type description id string query id used returns boolean defined in https //github com/klevultd/frontend sdk/blob/492d3760/packages/klevu core/src/connection/responseobject ts#l71 suggestionsbyid ▸ suggestionsbyid ( id ) undefined | @klevu/core docid 7vdpes 8 0tv 43dya7ly get suggestions by id parameters name type id string returns undefined | @klevu/core docid 7vdpes 8 0tv 43dya7ly defined in https //github com/klevultd/frontend sdk/blob/492d3760/packages/klevu core/src/connection/responseobject ts#l38