From d92d8f11411ca3b735fa78f61ea68197cc6c4dbe Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Thu, 17 Oct 2024 16:04:31 -0300 Subject: [PATCH] chore: add contact-id-verification and teams-voip modules to bundle * (#33629) Co-authored-by: Pierre Lehnen <55164754+pierre-lehnen-rc@users.noreply.github.com> --- ee/packages/license/src/v2/bundles.ts | 2 ++ ee/packages/license/src/v2/convertToV3.ts | 2 +- packages/core-typings/src/license/LicenseModule.ts | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ee/packages/license/src/v2/bundles.ts b/ee/packages/license/src/v2/bundles.ts index 0ef4296d8223..3aad7c9ed71c 100644 --- a/ee/packages/license/src/v2/bundles.ts +++ b/ee/packages/license/src/v2/bundles.ts @@ -27,6 +27,8 @@ const bundles: IBundle = { 'custom-roles', 'accessibility-certification', 'unlimited-presence', + 'contact-id-verification', + 'teams-voip', ], pro: [], }; diff --git a/ee/packages/license/src/v2/convertToV3.ts b/ee/packages/license/src/v2/convertToV3.ts index a7b67ada2c6e..7c38881b79a1 100644 --- a/ee/packages/license/src/v2/convertToV3.ts +++ b/ee/packages/license/src/v2/convertToV3.ts @@ -50,7 +50,7 @@ export const convertToV3 = (v2: ILicenseV2): ILicenseV3 => { }, grantedModules: [ ...new Set( - ['hide-watermark', ...v2.modules] + ['teams-voip', 'contact-id-verification', 'hide-watermark', ...v2.modules] .map((licenseModule) => (isBundle(licenseModule) ? getBundleModules(licenseModule) : [licenseModule])) .reduce((prev, curr) => [...prev, ...curr], []) .map((licenseModule) => ({ module: licenseModule as LicenseModule })), diff --git a/packages/core-typings/src/license/LicenseModule.ts b/packages/core-typings/src/license/LicenseModule.ts index c29ea45f0900..a1be9663afec 100644 --- a/packages/core-typings/src/license/LicenseModule.ts +++ b/packages/core-typings/src/license/LicenseModule.ts @@ -19,4 +19,6 @@ export type LicenseModule = | 'hide-watermark' | 'custom-roles' | 'accessibility-certification' - | 'unlimited-presence'; + | 'unlimited-presence' + | 'contact-id-verification' + | 'teams-voip';