Skip to content

Commit

Permalink
Fix references to old API version
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad committed Aug 14, 2024
1 parent 2aef5e5 commit fe5f5c0
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels;

public enum AlertType
{
Prohibition,
// Only exposing Prohibitions for now
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels;

public enum InductionStatus
{
Exempt,
Fail,
FailedinWales,
InductionExtended,
InProgress,
NotYetCompleted,
Pass,
PassedinWales,
RequiredtoComplete,
}
Original file line number Diff line number Diff line change
@@ -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,
}
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace TeachingRecordSystem.Api.V3.V20240606.ApiModels;

public enum NpqQualificationType
{
NPQEL,
NPQEYL,
NPQH,
NPQLBC,
NPQLL,
NPQLT,
NPQLTD,
NPQML,
NPQSL,
}
Original file line number Diff line number Diff line change
@@ -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; }
}
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit fe5f5c0

Please sign in to comment.