diff --git a/libs/common/src/admin-console/models/data/organization.data.spec.ts b/libs/common/src/admin-console/models/data/organization.data.spec.ts index ef8db3b01be..088d0e226bf 100644 --- a/libs/common/src/admin-console/models/data/organization.data.spec.ts +++ b/libs/common/src/admin-console/models/data/organization.data.spec.ts @@ -66,6 +66,7 @@ describe("ORGANIZATIONS state", () => { ssoMemberDecryptionType: undefined, useDisableSMAdsForUsers: false, usePhishingBlocker: false, + useMyItems: false, }, }; const result = sut.deserializer(JSON.parse(JSON.stringify(expectedResult))); diff --git a/libs/common/src/admin-console/models/data/organization.data.ts b/libs/common/src/admin-console/models/data/organization.data.ts index de3f6af4448..8c01259b7fe 100644 --- a/libs/common/src/admin-console/models/data/organization.data.ts +++ b/libs/common/src/admin-console/models/data/organization.data.ts @@ -69,6 +69,7 @@ export class OrganizationData { ssoEnabled: boolean; ssoMemberDecryptionType?: MemberDecryptionType; usePhishingBlocker: boolean; + useMyItems: boolean; constructor( response?: ProfileOrganizationResponse, @@ -139,6 +140,7 @@ export class OrganizationData { this.ssoEnabled = response.ssoEnabled; this.ssoMemberDecryptionType = response.ssoMemberDecryptionType; this.usePhishingBlocker = response.usePhishingBlocker; + this.useMyItems = response.useMyItems; this.isMember = options.isMember; this.isProviderUser = options.isProviderUser; diff --git a/libs/common/src/admin-console/models/domain/organization.ts b/libs/common/src/admin-console/models/domain/organization.ts index 2991ffb7caa..33deab6d739 100644 --- a/libs/common/src/admin-console/models/domain/organization.ts +++ b/libs/common/src/admin-console/models/domain/organization.ts @@ -100,6 +100,7 @@ export class Organization { ssoEnabled: boolean; ssoMemberDecryptionType?: MemberDecryptionType; usePhishingBlocker: boolean; + useMyItems: boolean; constructor(obj?: OrganizationData) { if (obj == null) { @@ -166,6 +167,7 @@ export class Organization { this.ssoEnabled = obj.ssoEnabled; this.ssoMemberDecryptionType = obj.ssoMemberDecryptionType; this.usePhishingBlocker = obj.usePhishingBlocker; + this.useMyItems = obj.useMyItems; } get canAccess() { diff --git a/libs/common/src/admin-console/models/response/organization.response.ts b/libs/common/src/admin-console/models/response/organization.response.ts index c2f7dd6b6a8..e343c3d5261 100644 --- a/libs/common/src/admin-console/models/response/organization.response.ts +++ b/libs/common/src/admin-console/models/response/organization.response.ts @@ -41,6 +41,7 @@ export class OrganizationResponse extends BaseResponse { useDisableSMAdsForUsers: boolean; useAccessIntelligence: boolean; usePhishingBlocker: boolean; + useMyItems: boolean; constructor(response: any) { super(response); @@ -86,5 +87,6 @@ export class OrganizationResponse extends BaseResponse { // Map from backend API property (UseRiskInsights) to domain model property (useAccessIntelligence) this.useAccessIntelligence = this.getResponseProperty("UseRiskInsights"); this.usePhishingBlocker = this.getResponseProperty("UsePhishingBlocker") ?? false; + this.useMyItems = this.getResponseProperty("UseMyItems") ?? false; } } diff --git a/libs/common/src/admin-console/models/response/profile-organization.response.ts b/libs/common/src/admin-console/models/response/profile-organization.response.ts index 44ba7555a7e..7e77cbd49ce 100644 --- a/libs/common/src/admin-console/models/response/profile-organization.response.ts +++ b/libs/common/src/admin-console/models/response/profile-organization.response.ts @@ -64,6 +64,7 @@ export class ProfileOrganizationResponse extends BaseResponse { ssoEnabled: boolean; ssoMemberDecryptionType?: MemberDecryptionType; usePhishingBlocker: boolean; + useMyItems: boolean; constructor(response: any) { super(response); @@ -139,5 +140,6 @@ export class ProfileOrganizationResponse extends BaseResponse { this.ssoEnabled = this.getResponseProperty("SsoEnabled") ?? false; this.ssoMemberDecryptionType = this.getResponseProperty("SsoMemberDecryptionType"); this.usePhishingBlocker = this.getResponseProperty("UsePhishingBlocker") ?? false; + this.useMyItems = this.getResponseProperty("UseMyItems") ?? false; } }