Skip to main content

config/index

@boldpenguin/sdk-reduxGlobals"config/index"

Index

Variables

Variables

Const IsTrailerSupportEnabled

IsTrailerSupportEnabled: function & OutputSelectorFields‹function› & object = createSelector(getConfigOptions, (options) => !!options.enableTrailerSupport)

Gets if trailer support autocomplete is enabled

param BpSdk redux store


Const areDetailedRelevanceChipsEnabled

areDetailedRelevanceChipsEnabled: function & OutputSelectorFields‹function› & object = createSelector(getConfigOptions, (options) => !!options.enableDetailedRelevanceChips)

Gets boolean indicating if detailed relevance chips are enabled for Business Classification Selector

param BpSdk redux store


Const getConfigOptions

getConfigOptions: function & OutputSelectorFields‹function› & object = createSelector(getConfig, (config) => config.options)

Gets all SDK configuration options

param BpSdk redux store


Const getGoogleApiToken

getGoogleApiToken: function & OutputSelectorFields‹function› & object = createSelector(getConfig, (config) => config.googleApiToken)

Gets Google API token

param BpSdk redux store


Const getPartnerEngineConfig

getPartnerEngineConfig: function & OutputSelectorFields‹function› & object = createSelector( [getConfig, getAuth], (config, auth): IPartnerEngineConfig => ({ env: config.env, uri: config.uri, token: auth.token, }), )

Gets the IPartnerEngine config for API requests

param BpSdk redux store


Const getWebsocketsCableToken

getWebsocketsCableToken: function & OutputSelectorFields‹function› & object = createSelector(getConfig, (config) => config.cableToken)

Gets websocket cable token

param BpSdk redux store


Const isAutocompleteEnabled

isAutocompleteEnabled: function & OutputSelectorFields‹function› & object = createSelector(getConfigOptions, (options) => !!options.enableAutocomplete)

Gets boolean indicating if autocomplete is enabled

param BpSdk redux store


Const isDebugMode

isDebugMode: function & OutputSelectorFields‹function› & object = createSelector(getConfig, (config) => config.debug || false)

Is debug mode on?

param BpSdk redux store


Const selectAddressValidationOptions

selectAddressValidationOptions: function & OutputSelectorFields‹function› & object = createSelector(getConfigOptions, (options) => options.addressValidationOptions)

Selects options for Google address validation. Included and excluded partial question codes decide whether a question group (by its parent question) should use address validation.

param BpSdk redux store


Const selectAreParentQuestionSetsInNavigationEnabled

selectAreParentQuestionSetsInNavigationEnabled: function & OutputSelectorFields‹function› & object = createSelector( getConfigOptions, (options) => !!options.showParentQuestionSetsInNavigation, )

Selects boolean indicating if parent question sets will render in navigation

param BpSdk redux store


Const selectIsAddressValidationEnabled

selectIsAddressValidationEnabled: function & OutputSelectorFields‹function› & object = createSelector(getConfigOptions, (options) => !!options.enableAddressValidation)

Selects boolean indicating if Google address validation is enabled

param BpSdk redux store


Const selectIsQuestionSetNavigationEnabled

selectIsQuestionSetNavigationEnabled: function & OutputSelectorFields‹function› & object = createSelector(getConfigOptions, (options) => !!options.enableQuestionSetNavigation)

Selects boolean indicating whether question set navigation is enabled

param BpSdk redux store


Const selectShouldQuoteCardRenderSupplierLogos

selectShouldQuoteCardRenderSupplierLogos: function & OutputSelectorFields‹function› & object = createSelector( getConfigOptions, (options) => !!options.shouldQuoteCardRenderSupplierLogos, )

Selects boolean indicating if quotes should render a supplier logo instead of a carrier logo