v2.1.0

LicenseManager

Bitrix24 license info from app.info — and an automatic restriction-manager retune for the matching tariff plan.

LicenseManager wraps the license fields of app.info (LICENSE, LICENSE_TYPE, LICENSE_FAMILY, LICENSE_PREVIOUS, LANGUAGE_ID). Created when LoadDataType.App is requested; reachable through B24HelperManager.licenseInfo.

On initData, LicenseManager calls ParamsFactory.fromTariffPlan(license) and applies the result via b24.setRestrictionManagerParams(...). That swaps in enterprise-grade rate limits when the portal is on an enterprise tariff. See Limiters.

Usage

import { useB24Helper, LoadDataType } from '@bitrix24/b24jssdk'

const { initB24Helper, getB24Helper } = useB24Helper()
await initB24Helper($b24, [LoadDataType.App])

const license = getB24Helper().licenseInfo.data
console.log(license.license, license.isSelfHosted)

Getter data

get data(): TypeLicense
FieldTypeDescription
languageIdnull | stringPortal language code.
licensenull | stringTariff designation prefixed with the region (ru_team, b24_enterprise, …).
licenseTypenull | stringTariff designation without the region prefix.
licensePreviousnull | stringPrevious license (when applicable).
licenseFamilynull | stringTariff family (team, enterprise, …).
isSelfHostedbooleantrue if license contains selfhosted.

Method makeRestrictionManagerParams

makeRestrictionManagerParams(): Promise<void>

Re-applies the tariff-derived restriction params. Called automatically from initData; you only need to invoke it manually if you have already overridden the limiter config and want to reset to the tariff defaults.