Classes

Class: KlevuConfig

26min

/ Exports / KlevuConfig

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new KlevuConfig(config)

Parameters

Name

Type

config

KlevuConfiguration

Defined in

Properties

apiKey

apiKey: string

Defined in



axios

Optional axios: AxiosInstance

Defined in



cacheMaxTTL

cacheMaxTTL: number = 600_000

Defined in



disableClickTracking

disableClickTracking: boolean = false

Defined in



eventsApiV1Url

eventsApiV1Url: string = "https://stats.ksearchnet.com/analytics/"

Defined in



eventsApiV2Url

eventsApiV2Url: string = "https://stats.ksearchnet.com/analytics/collect"

Defined in



moiApiUrl

moiApiUrl: string = "https://moi-ai.ksearchnet.com/"

Defined in



recommendationsApiUrl

recommendationsApiUrl: string = "https://config-cdn.ksearchnet.com/recommendations/"

Defined in



url

url: string

Defined in



default

Static default: undefined | KlevuConfig

Defined in

Methods

getDefault

Static getDefault(): KlevuConfig

Returns

KlevuConfig

Defined in



init

Static init(config): void

Parameters

Name

Type

config

KlevuConfiguration

Returns

void

Defined in

Updated 25 Mar 2024
Did this page help you?