From 47b7d7d698b3e081b93a8a329767a4cd46013b15 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Fri, 20 Dec 2024 14:27:55 +0000 Subject: [PATCH] Remove HE quals from VNext endpoints --- .../VNext/Requests/GetPersonRequestIncludes.cs | 3 +-- .../V3/VNext/Responses/GetPersonResponse.cs | 16 ---------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/VNext/Requests/GetPersonRequestIncludes.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/VNext/Requests/GetPersonRequestIncludes.cs index 94c277778..781094a24 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/VNext/Requests/GetPersonRequestIncludes.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/VNext/Requests/GetPersonRequestIncludes.cs @@ -13,12 +13,11 @@ public enum GetPersonRequestIncludes NpqQualifications = 1 << 2, MandatoryQualifications = 1 << 3, PendingDetailChanges = 1 << 4, - HigherEducationQualifications = 1 << 5, Alerts = 1 << 7, PreviousNames = 1 << 8, [ExcludeFromSchema] _AllowIdSignInWithProhibitions = 1 << 9, - All = Induction | InitialTeacherTraining | NpqQualifications | MandatoryQualifications | PendingDetailChanges | HigherEducationQualifications | Alerts | PreviousNames + All = Induction | InitialTeacherTraining | NpqQualifications | MandatoryQualifications | PendingDetailChanges | Alerts | PreviousNames } diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/VNext/Responses/GetPersonResponse.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/VNext/Responses/GetPersonResponse.cs index 2b4e3f62b..84e12ba75 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/VNext/Responses/GetPersonResponse.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/VNext/Responses/GetPersonResponse.cs @@ -24,7 +24,6 @@ public record GetPersonResponse public required Option> InitialTeacherTraining { get; init; } public required Option> NpqQualifications { get; init; } public required Option> MandatoryQualifications { get; init; } - public required Option> HigherEducationQualifications { get; init; } public required Option> Sanctions { get; init; } public required Option> Alerts { get; init; } public required Option> PreviousNames { get; init; } @@ -109,21 +108,6 @@ public record GetPersonResponseMandatoryQualification public required string Specialism { get; init; } } -[AutoMap(typeof(GetPersonResultHigherEducationQualification))] -public record GetPersonResponseHigherEducationQualification -{ - public required string? Name { get; init; } - public required DateOnly? Awarded { get; init; } - public required IReadOnlyCollection Subjects { get; init; } -} - -[AutoMap(typeof(GetPersonResultHigherEducationQualificationSubject))] -public record GetPersonResponseHigherEducationQualificationSubject -{ - public required string Code { get; init; } - public required string Name { get; init; } -} - [AutoMap(typeof(GetPersonResultInduction))] public record GetPersonResponseInduction : InductionInfo {