BWellConfig

Configuration options for BWellSDK

BWellConfig = object

Configuration options for BWellSDK

Properties

clientKey

clientKey: string


logLevel?

optional logLevel: LogLevel


timeout?

optional timeout: number


retryPolicy?

optional retryPolicy: Retry


telemetryEnabled?

optional telemetryEnabled: boolean


tokenStorage?

optional tokenStorage: TokenStorage


language?

optional language: Nullable<Language>

Language to be passed into the accept-language header into the sdk requests. Supported values:

  • "en": English [accept-language: 'en'].
  • "es": Spanish. [accept-language: 'es']
  • null: Indicates no specific language preference. [no accept-language wil be set explicitly]

Limitation:

  • Setting the language does not guarantee a response in the specified language, as not all queries support translation at the moment.

If null or the language property is not provided, the browser will automatically set the Accept-Language header based on the user's language preferences

Default

null

overrides?

optional overrides: object

apiUrl?

optional apiUrl: Nullable<string>

Base URL for the BWell API. If not provided, the SDK will use the URL returned by remote configuration. NOTE: Changing this setting will override remote configuration.