From d8fdfdf55935739e511f3b0814db3f5160fea200 Mon Sep 17 00:00:00 2001 From: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com> Date: Thu, 26 Feb 2026 11:00:18 -0600 Subject: [PATCH] feat: add 'My Items' feature to enterprise organizations (#19064) --- libs/common/src/billing/models/response/plan.response.ts | 2 ++ .../src/billing/services/subscription-pricing.service.spec.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/libs/common/src/billing/models/response/plan.response.ts b/libs/common/src/billing/models/response/plan.response.ts index e10fff8545d..d8c68f09d93 100644 --- a/libs/common/src/billing/models/response/plan.response.ts +++ b/libs/common/src/billing/models/response/plan.response.ts @@ -14,6 +14,7 @@ export class PlanResponse extends BaseResponse { trialPeriodDays: number; hasSelfHost: boolean; hasPolicies: boolean; + hasMyItems: boolean; hasGroups: boolean; hasDirectory: boolean; hasEvents: boolean; @@ -42,6 +43,7 @@ export class PlanResponse extends BaseResponse { this.trialPeriodDays = this.getResponseProperty("TrialPeriodDays"); this.hasSelfHost = this.getResponseProperty("HasSelfHost"); this.hasPolicies = this.getResponseProperty("HasPolicies"); + this.hasMyItems = this.getResponseProperty("HasMyItems"); this.hasGroups = this.getResponseProperty("HasGroups"); this.hasDirectory = this.getResponseProperty("HasDirectory"); this.hasEvents = this.getResponseProperty("HasEvents"); diff --git a/libs/common/src/billing/services/subscription-pricing.service.spec.ts b/libs/common/src/billing/services/subscription-pricing.service.spec.ts index e96c0d4b74c..79e44ccaf60 100644 --- a/libs/common/src/billing/services/subscription-pricing.service.spec.ts +++ b/libs/common/src/billing/services/subscription-pricing.service.spec.ts @@ -40,6 +40,7 @@ describe("DefaultSubscriptionPricingService", () => { trialPeriodDays: 7, hasSelfHost: false, hasPolicies: false, + hasMyItems: false, hasGroups: false, hasDirectory: false, hasEvents: false, @@ -80,6 +81,7 @@ describe("DefaultSubscriptionPricingService", () => { trialPeriodDays: 7, hasSelfHost: true, hasPolicies: true, + hasMyItems: false, hasGroups: true, hasDirectory: true, hasEvents: true, @@ -131,6 +133,7 @@ describe("DefaultSubscriptionPricingService", () => { trialPeriodDays: 7, hasSelfHost: true, hasPolicies: true, + hasMyItems: true, hasGroups: true, hasDirectory: true, hasEvents: true, @@ -181,6 +184,7 @@ describe("DefaultSubscriptionPricingService", () => { trialPeriodDays: null, hasSelfHost: false, hasPolicies: false, + hasMyItems: false, hasGroups: false, hasDirectory: false, hasEvents: false,