From fe5f5c010c6fb6264db7e837045e97a6be7fdda2 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Wed, 14 Aug 2024 14:19:21 +0100 Subject: [PATCH] Fix references to old API version --- .../V3/V20240606/ApiModels/AlertInfo.cs | 10 +++++++ .../V3/V20240606/ApiModels/AlertType.cs | 7 +++++ .../V3/V20240606/ApiModels/InductionStatus.cs | 14 +++++++++ .../V3/V20240606/ApiModels/IttOutcome.cs | 17 +++++++++++ .../V20240606/ApiModels/IttProgrammeType.cs | 30 +++++++++++++++++++ .../V3/V20240606/ApiModels/NameInfo.cs | 9 ++++++ .../ApiModels/NpqQualificationType.cs | 14 +++++++++ .../V3/V20240606/ApiModels/SanctionInfo.cs | 8 +++++ .../V20240606/Responses/FindPersonResponse.cs | 2 +- .../V20240606/Responses/GetPersonResponse.cs | 2 +- 10 files changed, 111 insertions(+), 2 deletions(-) create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/AlertInfo.cs create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/AlertType.cs create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/InductionStatus.cs create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/IttOutcome.cs create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/IttProgrammeType.cs create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/NameInfo.cs create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/NpqQualificationType.cs create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/SanctionInfo.cs diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/AlertInfo.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/AlertInfo.cs new file mode 100644 index 000000000..9cc0a6916 --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/AlertInfo.cs @@ -0,0 +1,10 @@ +namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels; + +[AutoMap(typeof(Core.SharedModels.AlertInfo))] +public record AlertInfo +{ + public required AlertType AlertType { get; init; } + public required string DqtSanctionCode { get; init; } + public required DateOnly? StartDate { get; init; } + public required DateOnly? EndDate { get; init; } +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/AlertType.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/AlertType.cs new file mode 100644 index 000000000..29d44a6d0 --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/AlertType.cs @@ -0,0 +1,7 @@ +namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels; + +public enum AlertType +{ + Prohibition, + // Only exposing Prohibitions for now +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/InductionStatus.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/InductionStatus.cs new file mode 100644 index 000000000..05b12c1d3 --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/InductionStatus.cs @@ -0,0 +1,14 @@ +namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels; + +public enum InductionStatus +{ + Exempt, + Fail, + FailedinWales, + InductionExtended, + InProgress, + NotYetCompleted, + Pass, + PassedinWales, + RequiredtoComplete, +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/IttOutcome.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/IttOutcome.cs new file mode 100644 index 000000000..8db52448a --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/IttOutcome.cs @@ -0,0 +1,17 @@ +namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels; + +public enum IttOutcome +{ + Pass, + Fail, + Withdrawn, + Deferred, + DeferredForSkillsTests, + ApplicationReceived, + ApplicationUnsuccessful, + Approved, + Info, + InTraining, + NoResultSubmitted, + UnderAssessment, +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/IttProgrammeType.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/IttProgrammeType.cs new file mode 100644 index 000000000..09e3c75fb --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/IttProgrammeType.cs @@ -0,0 +1,30 @@ +namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels; + +public enum IttProgrammeType +{ + Apprenticeship, + AssessmentOnlyRoute, + Core, + CoreFlexible, + EYITTAssessmentOnly, + EYITTGraduateEmploymentBased, + EYITTGraduateEntry, + EYITTSchoolDirectEarlyYears, + EYITTUndergraduate, + FutureTeachingScholars, + GraduateTeacherProgramme, + HEI, + LicensedTeacherProgramme, + OverseasTrainedTeacherProgramme, + RegisteredTeacherProgramme, + SchoolDirectTrainingProgramme, + SchoolDirectTrainingProgrammeSalaried, + SchoolDirectTrainingProgrammeSelfFunded, + TeachFirstProgramme, + TeachFirstProgrammeCC, + UndergraduateOptIn, + ProviderLedPostgrad, + ProviderLedUndergrad, + InternationalQualifiedTeacherStatus, + HighPotentialITT +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/NameInfo.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/NameInfo.cs new file mode 100644 index 000000000..aec5819cb --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/NameInfo.cs @@ -0,0 +1,9 @@ +namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels; + +[AutoMap(typeof(Core.SharedModels.NameInfo))] +public record NameInfo +{ + public required string FirstName { get; init; } + public required string MiddleName { get; init; } + public required string LastName { get; init; } +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/NpqQualificationType.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/NpqQualificationType.cs new file mode 100644 index 000000000..54851c63b --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/NpqQualificationType.cs @@ -0,0 +1,14 @@ +namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels; + +public enum NpqQualificationType +{ + NPQEL, + NPQEYL, + NPQH, + NPQLBC, + NPQLL, + NPQLT, + NPQLTD, + NPQML, + NPQSL, +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/SanctionInfo.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/SanctionInfo.cs new file mode 100644 index 000000000..149f4ec19 --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/ApiModels/SanctionInfo.cs @@ -0,0 +1,8 @@ +namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels; + +[AutoMap(typeof(Core.SharedModels.SanctionInfo))] +public record SanctionInfo +{ + public required string Code { get; init; } + public required DateOnly? StartDate { get; init; } +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/Responses/FindPersonResponse.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/Responses/FindPersonResponse.cs index 314c567ee..d061a7775 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/Responses/FindPersonResponse.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/Responses/FindPersonResponse.cs @@ -1,5 +1,5 @@ using TeachingRecordSystem.Api.V3.Core.Operations; -using TeachingRecordSystem.Api.V3.V20240101.ApiModels; +using TeachingRecordSystem.Api.V3.V20240606.ApiModels; using TeachingRecordSystem.Api.V3.V20240606.Requests; namespace TeachingRecordSystem.Api.V3.V20240606.Responses; diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/Responses/GetPersonResponse.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/Responses/GetPersonResponse.cs index ad0ea98fe..b19c1b26d 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/Responses/GetPersonResponse.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/Responses/GetPersonResponse.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; using Optional; using TeachingRecordSystem.Api.V3.Core.Operations; -using TeachingRecordSystem.Api.V3.V20240101.ApiModels; +using TeachingRecordSystem.Api.V3.V20240606.ApiModels; namespace TeachingRecordSystem.Api.V3.V20240606.Responses;