From da9a502f81e40b42f16a1f07d3ea89f4c87d0ced Mon Sep 17 00:00:00 2001 From: Ostap Zherebetskyi Date: Mon, 30 Mar 2026 16:49:29 +0300 Subject: [PATCH] feat(institutions): Add sso_availability attribute to Institution model and mapper --- src/app/shared/mappers/institutions/institutions.mapper.ts | 1 + src/app/shared/models/institutions/institution-json-api.model.ts | 1 + src/app/shared/models/institutions/institutions.models.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/src/app/shared/mappers/institutions/institutions.mapper.ts b/src/app/shared/mappers/institutions/institutions.mapper.ts index 66642d805..516b3e6da 100644 --- a/src/app/shared/mappers/institutions/institutions.mapper.ts +++ b/src/app/shared/mappers/institutions/institutions.mapper.ts @@ -25,6 +25,7 @@ export class InstitutionsMapper { logoPath: data.attributes.logo_path, userMetricsUrl: data.relationships?.user_metrics?.links?.related?.href, linkToExternalReportsArchive: data.attributes.link_to_external_reports_archive, + sso_availability: data.attributes.sso_availability, }; } diff --git a/src/app/shared/models/institutions/institution-json-api.model.ts b/src/app/shared/models/institutions/institution-json-api.model.ts index 16f4b4226..6b899405d 100644 --- a/src/app/shared/models/institutions/institution-json-api.model.ts +++ b/src/app/shared/models/institutions/institution-json-api.model.ts @@ -23,6 +23,7 @@ interface InstitutionAttributesJsonApi { institutional_request_access_enabled: boolean; logo_path: string; link_to_external_reports_archive: string; + sso_availability: string; } interface InstitutionLinksJsonApi { diff --git a/src/app/shared/models/institutions/institutions.models.ts b/src/app/shared/models/institutions/institutions.models.ts index f00b4a278..aaee35b7d 100644 --- a/src/app/shared/models/institutions/institutions.models.ts +++ b/src/app/shared/models/institutions/institutions.models.ts @@ -16,6 +16,7 @@ export interface Institution { logoPath: string; userMetricsUrl?: string; linkToExternalReportsArchive?: string; + sso_availability: string; } export interface InstitutionAssets {