This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk / ConfigApi

ConfigApi ​

Operator public configuration. Does not require login.

Methods ​

get() ​

get(params?, options?): Promise<OperatorConfig>

Operator configuration: currency, limits, payment methods, captcha and OTP.

Parameters ​

params? ​

NoParams

options? ​

CallOptions

Returns ​

Promise<OperatorConfig>

Example ​

ts
const config = await enginex.config.get()
config.currency.decimalPlaces // 2

Throws ​

INVALID_ARGUMENT when the domain does not belong to any operator; VALIDATION_ERROR, also in 'warn', with money or currency outside the format (currency, limits, payment methods).


getBranding() ​

getBranding(params?, options?): Promise<Branding>

Colors, logos, legal links and contact of the operator.

Parameters ​

params? ​

NoParams

options? ​

CallOptions

Returns ​

Promise<Branding>

Example ​

ts
const { colors, logos } = await enginex.config.getBranding()

getProducts() ​

getProducts(params?, options?): Promise<ProductsConfig>

Products enabled (casino, sportsbook, predictions) with route and order.

Parameters ​

params? ​

NoParams

options? ​

CallOptions

Returns ​

Promise<ProductsConfig>

Example ​

ts
const { products } = await enginex.config.getProducts()

getSportsbook() ​

getSportsbook(params?, options?): Promise<SportsbookConfig>

Provider and configuration of the sportsbook.

Parameters ​

params? ​

NoParams

options? ​

CallOptions

Returns ​

Promise<SportsbookConfig>

Example ​

ts
const sb = await enginex.config.getSportsbook()
if (sb.enabled && sb.provider === 'first') console.log(sb.config?.sportsbookUrl)

getSupport() ​

getSupport(params?, options?): Promise<SupportConfig>

Support widget configuration.

Parameters ​

params? ​
type? ​

string

options? ​

CallOptions

Returns ​

Promise<SupportConfig>

Example ​

ts
const support = await enginex.config.getSupport({ type: 'intercom' })