v2.1.0

AppManager

Parsed app.info REST response: app id, code, version, status, install flag.

AppManager wraps the response of app.info. Created by B24HelperManager.loadData when LoadDataType.App is requested; reachable through B24HelperManager.appInfo.

Usage

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

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

const app = getB24Helper().appInfo
console.log(app.data.code, app.data.version, app.statusCode)

Getter data

get data(): TypeApp
FieldTypeDescription
idnumberLocal application identifier on the portal.
codestringApplication code (local.xxxxxx.xxxxxx).
versionnumberInstalled version.
statusTypeEnumAppStatusOne of 'F' / 'D' / 'T' / 'P' / 'L' / 'S'.
isInstalledbooleanInstall flag from Bitrix24.

Getter statusCode

get statusCode(): string

Resolves the raw status letter to a human-readable label using the StatusDescriptions table:

RawstatusCode
FFree
DDemo
TTrial
PPaid
LLocal
SSubscription

Returns 'Unknown status' for unknown letters.