From 75e4640e7ef65b0b8eabe002bdf3d076e9e826ae Mon Sep 17 00:00:00 2001 From: Pierre Lehnen Date: Tue, 17 Oct 2023 16:02:10 -0300 Subject: [PATCH] feat: add trial flag to licenses.info endpoint --- ee/packages/license/src/definition/LicenseInfo.ts | 1 + ee/packages/license/src/license.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/ee/packages/license/src/definition/LicenseInfo.ts b/ee/packages/license/src/definition/LicenseInfo.ts index 7de3c0cfbdd6..4c4e34d30528 100644 --- a/ee/packages/license/src/definition/LicenseInfo.ts +++ b/ee/packages/license/src/definition/LicenseInfo.ts @@ -7,4 +7,5 @@ export type LicenseInfo = { activeModules: LicenseModule[]; limits: Record; tags: ILicenseTag[]; + trial: boolean; }; diff --git a/ee/packages/license/src/license.ts b/ee/packages/license/src/license.ts index d24d91287d1e..14dceedd735a 100644 --- a/ee/packages/license/src/license.ts +++ b/ee/packages/license/src/license.ts @@ -332,6 +332,7 @@ export class LicenseManager extends Emitter { activeModules, limits: limits as Record, tags: license?.information.tags || [], + trial: Boolean(license?.information.trial), }; } }