LicensePayload Interface
What TX Sheet Control reads from a license file, under the names of the API. The trial dates are present for trials only.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
Type-only declaration; it is not a JavaScript runtime constructor.
Members
Properties
| Property | Description |
|---|---|
| customerName | The company the license is issued to: the organization of the Text Control account's billing address, or the account's ID when it has none. |
| expiresAt | For a trial, the end of its 30-day period as an ISO 8601 UTC string; absent for Developer and OEM licenses. |
| issuedAt | For a trial, the start of its 30-day period as an ISO 8601 UTC string; absent for Developer and OEM licenses. |
| licenseId | The license ID, TRIAL-V2- or LIC-V2- followed by a UUID; every license file of the same serial number has the same ID. |
| majorVersion | The licensed major version, read from the product code of the license: SH-0200-XA-S is version 2.0, which covers every 2.x release. |
| products | The covered components, SheetEditor and ServerSheetControl; every license from the Text Control Account covers both. |
| type | The license type: trial, developer or oem. The declared eval is never issued. |
Examples
Pass the LicensePayload value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
import type { LicensePayload } from '@txtextcontrol/tx-sheet-control';
function inspectLicensePayloadLicenseId(licensePayload: LicensePayload) {
const value = licensePayload['licenseId'];
console.log('LicensePayload.licenseId', value);
}