diff --git a/server/@types/shared/index.d.ts b/server/@types/shared/index.d.ts index fa7e60b91..e72a11e87 100644 --- a/server/@types/shared/index.d.ts +++ b/server/@types/shared/index.d.ts @@ -8,6 +8,8 @@ export type { Adjudication } from './models/Adjudication'; export type { AllocatedFilter } from './models/AllocatedFilter'; export type { AnyValue } from './models/AnyValue'; export type { ApArea } from './models/ApArea'; +export type { Appeal } from './models/Appeal'; +export type { AppealDecision } from './models/AppealDecision'; export type { Application } from './models/Application'; export type { ApplicationSortField } from './models/ApplicationSortField'; export type { ApplicationStatus } from './models/ApplicationStatus'; @@ -79,12 +81,16 @@ export type { CacheType } from './models/CacheType'; export type { Cancellation } from './models/Cancellation'; export type { CancellationReason } from './models/CancellationReason'; export type { Cas2Application } from './models/Cas2Application'; +export type { Cas2ApplicationNote } from './models/Cas2ApplicationNote'; export type { Cas2ApplicationStatus } from './models/Cas2ApplicationStatus'; +export type { Cas2ApplicationStatusDetail } from './models/Cas2ApplicationStatusDetail'; export type { Cas2ApplicationStatusUpdate } from './models/Cas2ApplicationStatusUpdate'; export type { Cas2ApplicationSummary } from './models/Cas2ApplicationSummary'; export type { Cas2StatusUpdate } from './models/Cas2StatusUpdate'; +export type { Cas2StatusUpdateDetail } from './models/Cas2StatusUpdateDetail'; export type { Cas2SubmittedApplication } from './models/Cas2SubmittedApplication'; export type { Cas2SubmittedApplicationSummary } from './models/Cas2SubmittedApplicationSummary'; +export type { Cas2TimelineEvent } from './models/Cas2TimelineEvent'; export type { Characteristic } from './models/Characteristic'; export type { CharacteristicPair } from './models/CharacteristicPair'; export type { ClarificationNote } from './models/ClarificationNote'; @@ -114,6 +120,7 @@ export type { MappaEnvelope } from './models/MappaEnvelope'; export type { MigrationJobRequest } from './models/MigrationJobRequest'; export type { MigrationJobType } from './models/MigrationJobType'; export type { MoveOnCategory } from './models/MoveOnCategory'; +export type { NewAppeal } from './models/NewAppeal'; export type { NewApplication } from './models/NewApplication'; export type { NewApplicationTimelineNote } from './models/NewApplicationTimelineNote'; export type { NewArrival } from './models/NewArrival'; @@ -122,6 +129,7 @@ export type { NewBooking } from './models/NewBooking'; export type { NewBookingNotMade } from './models/NewBookingNotMade'; export type { NewCancellation } from './models/NewCancellation'; export type { NewCas1Arrival } from './models/NewCas1Arrival'; +export type { NewCas2ApplicationNote } from './models/NewCas2ApplicationNote'; export type { NewCas2Arrival } from './models/NewCas2Arrival'; export type { NewCas3Arrival } from './models/NewCas3Arrival'; export type { NewClarificationNote } from './models/NewClarificationNote'; diff --git a/server/@types/shared/models/ActiveOffence.ts b/server/@types/shared/models/ActiveOffence.ts index 33c5119d9..16b5f22ac 100644 --- a/server/@types/shared/models/ActiveOffence.ts +++ b/server/@types/shared/models/ActiveOffence.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ActiveOffence = { deliusEventNumber: string; offenceDescription: string; diff --git a/server/@types/shared/models/Adjudication.ts b/server/@types/shared/models/Adjudication.ts index e04bf4f30..23f83b6e2 100644 --- a/server/@types/shared/models/Adjudication.ts +++ b/server/@types/shared/models/Adjudication.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Adjudication = { id: number; reportedAt: string; diff --git a/server/@types/shared/models/AllocatedFilter.ts b/server/@types/shared/models/AllocatedFilter.ts index a1ba57010..bf0dcfd0d 100644 --- a/server/@types/shared/models/AllocatedFilter.ts +++ b/server/@types/shared/models/AllocatedFilter.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type AllocatedFilter = 'allocated' | 'unallocated'; diff --git a/server/@types/shared/models/AnyValue.ts b/server/@types/shared/models/AnyValue.ts index 1812efdc3..090dcfec8 100644 --- a/server/@types/shared/models/AnyValue.ts +++ b/server/@types/shared/models/AnyValue.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - /** * Any object that conforms to the current JSON schema for an application */ diff --git a/server/@types/shared/models/ApArea.ts b/server/@types/shared/models/ApArea.ts index 17ec1430f..31bea67ef 100644 --- a/server/@types/shared/models/ApArea.ts +++ b/server/@types/shared/models/ApArea.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ApArea = { id: string; identifier: string; diff --git a/server/@types/shared/models/ApType.ts b/server/@types/shared/models/ApType.ts index 87d9d451c..7ed56ab90 100644 --- a/server/@types/shared/models/ApType.ts +++ b/server/@types/shared/models/ApType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ApType = 'normal' | 'pipe' | 'esap' | 'rfap'; diff --git a/server/@types/shared/models/Appeal.ts b/server/@types/shared/models/Appeal.ts new file mode 100644 index 000000000..f204b3a77 --- /dev/null +++ b/server/@types/shared/models/Appeal.ts @@ -0,0 +1,18 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { AppealDecision } from './AppealDecision'; +import type { User } from './User'; +export type Appeal = { + id: string; + appealDate: string; + appealDetail: string; + decision: AppealDecision; + decisionDetail: string; + createdAt: string; + applicationId: string; + assessmentId?: string; + createdByUser: User; +}; + diff --git a/server/@types/shared/models/AppealDecision.ts b/server/@types/shared/models/AppealDecision.ts new file mode 100644 index 000000000..d8179b518 --- /dev/null +++ b/server/@types/shared/models/AppealDecision.ts @@ -0,0 +1,5 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type AppealDecision = 'accepted' | 'rejected'; diff --git a/server/@types/shared/models/Application.ts b/server/@types/shared/models/Application.ts index 89fd5cb84..c88474ab0 100644 --- a/server/@types/shared/models/Application.ts +++ b/server/@types/shared/models/Application.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Person } from './Person'; - export type Application = { type: string; id: string; diff --git a/server/@types/shared/models/ApplicationSortField.ts b/server/@types/shared/models/ApplicationSortField.ts index 9b96c3441..2b7bc55be 100644 --- a/server/@types/shared/models/ApplicationSortField.ts +++ b/server/@types/shared/models/ApplicationSortField.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ApplicationSortField = 'tier' | 'createdAt' | 'arrivalDate'; diff --git a/server/@types/shared/models/ApplicationStatus.ts b/server/@types/shared/models/ApplicationStatus.ts index b982b2cc0..507aa3630 100644 --- a/server/@types/shared/models/ApplicationStatus.ts +++ b/server/@types/shared/models/ApplicationStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ApplicationStatus = 'inProgress' | 'submitted' | 'requestedFurtherInformation' | 'pending' | 'rejected' | 'awaitingPlacement' | 'placed' | 'inapplicable' | 'withdrawn'; diff --git a/server/@types/shared/models/ApplicationSummary.ts b/server/@types/shared/models/ApplicationSummary.ts index e129effeb..7a5490501 100644 --- a/server/@types/shared/models/ApplicationSummary.ts +++ b/server/@types/shared/models/ApplicationSummary.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Person } from './Person'; - export type ApplicationSummary = { type: string; id: string; diff --git a/server/@types/shared/models/ApplicationTimelineNote.ts b/server/@types/shared/models/ApplicationTimelineNote.ts index 9e29973d2..9599bea87 100644 --- a/server/@types/shared/models/ApplicationTimelineNote.ts +++ b/server/@types/shared/models/ApplicationTimelineNote.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { User } from './User'; - /** * Notes added to an application */ diff --git a/server/@types/shared/models/ApprovedPremises.ts b/server/@types/shared/models/ApprovedPremises.ts index 01ad0e8d8..e67080059 100644 --- a/server/@types/shared/models/ApprovedPremises.ts +++ b/server/@types/shared/models/ApprovedPremises.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { LocalAuthorityArea } from './LocalAuthorityArea'; import type { Premises } from './Premises'; - export type ApprovedPremises = (Premises & { apCode?: string; } & { diff --git a/server/@types/shared/models/ApprovedPremisesApplication.ts b/server/@types/shared/models/ApprovedPremisesApplication.ts index c70740e67..12369dd04 100644 --- a/server/@types/shared/models/ApprovedPremisesApplication.ts +++ b/server/@types/shared/models/ApprovedPremisesApplication.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { ApArea } from './ApArea'; import type { Application } from './Application'; @@ -10,7 +9,6 @@ import type { ApprovedPremisesApplicationStatus } from './ApprovedPremisesApplic import type { AssessmentDecision } from './AssessmentDecision'; import type { PersonRisks } from './PersonRisks'; import type { PersonStatus } from './PersonStatus'; - export type ApprovedPremisesApplication = (Application & { isWomensApplication?: boolean; isPipeApplication?: boolean; diff --git a/server/@types/shared/models/ApprovedPremisesApplicationStatus.ts b/server/@types/shared/models/ApprovedPremisesApplicationStatus.ts index 1301b4bbc..b9210ce2e 100644 --- a/server/@types/shared/models/ApprovedPremisesApplicationStatus.ts +++ b/server/@types/shared/models/ApprovedPremisesApplicationStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ApprovedPremisesApplicationStatus = 'started' | 'submitted' | 'rejected' | 'awaitingAssesment' | 'unallocatedAssesment' | 'assesmentInProgress' | 'awaitingPlacement' | 'placementAllocated' | 'inapplicable' | 'withdrawn' | 'requestedFurtherInformation' | 'pendingPlacementRequest'; diff --git a/server/@types/shared/models/ApprovedPremisesApplicationSummary.ts b/server/@types/shared/models/ApprovedPremisesApplicationSummary.ts index 09bba9401..544bd3938 100644 --- a/server/@types/shared/models/ApprovedPremisesApplicationSummary.ts +++ b/server/@types/shared/models/ApprovedPremisesApplicationSummary.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApplicationSummary } from './ApplicationSummary'; import type { ApprovedPremisesApplicationStatus } from './ApprovedPremisesApplicationStatus'; import type { PersonRisks } from './PersonRisks'; - export type ApprovedPremisesApplicationSummary = (ApplicationSummary & { isWomensApplication?: boolean; isPipeApplication?: boolean; @@ -17,5 +15,6 @@ export type ApprovedPremisesApplicationSummary = (ApplicationSummary & { createdByUserId: string; status: ApprovedPremisesApplicationStatus; tier?: string; + isWithdrawn: boolean; }); diff --git a/server/@types/shared/models/ApprovedPremisesAssessment.ts b/server/@types/shared/models/ApprovedPremisesAssessment.ts index 1694d45a9..226aafa9d 100644 --- a/server/@types/shared/models/ApprovedPremisesAssessment.ts +++ b/server/@types/shared/models/ApprovedPremisesAssessment.ts @@ -2,15 +2,14 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApprovedPremisesApplication } from './ApprovedPremisesApplication'; import type { ApprovedPremisesAssessmentStatus } from './ApprovedPremisesAssessmentStatus'; import type { ApprovedPremisesUser } from './ApprovedPremisesUser'; import type { Assessment } from './Assessment'; - export type ApprovedPremisesAssessment = (Assessment & { application: ApprovedPremisesApplication; allocatedToStaffMember?: ApprovedPremisesUser; status?: ApprovedPremisesAssessmentStatus; + createdFromAppeal: boolean; }); diff --git a/server/@types/shared/models/ApprovedPremisesAssessmentStatus.ts b/server/@types/shared/models/ApprovedPremisesAssessmentStatus.ts index a96eb9e08..5bb3a6cbf 100644 --- a/server/@types/shared/models/ApprovedPremisesAssessmentStatus.ts +++ b/server/@types/shared/models/ApprovedPremisesAssessmentStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ApprovedPremisesAssessmentStatus = 'awaiting_response' | 'completed' | 'reallocated' | 'in_progress' | 'not_started'; diff --git a/server/@types/shared/models/ApprovedPremisesAssessmentSummary.ts b/server/@types/shared/models/ApprovedPremisesAssessmentSummary.ts index 9cb9e8f7e..82fa91e4c 100644 --- a/server/@types/shared/models/ApprovedPremisesAssessmentSummary.ts +++ b/server/@types/shared/models/ApprovedPremisesAssessmentSummary.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApprovedPremisesAssessmentStatus } from './ApprovedPremisesAssessmentStatus'; import type { AssessmentSummary } from './AssessmentSummary'; - export type ApprovedPremisesAssessmentSummary = (AssessmentSummary & { status: ApprovedPremisesAssessmentStatus; }); diff --git a/server/@types/shared/models/ApprovedPremisesBedSearchParameters.ts b/server/@types/shared/models/ApprovedPremisesBedSearchParameters.ts index 0e5d9d6d5..5c73b4bef 100644 --- a/server/@types/shared/models/ApprovedPremisesBedSearchParameters.ts +++ b/server/@types/shared/models/ApprovedPremisesBedSearchParameters.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedSearchParameters } from './BedSearchParameters'; import type { PlacementCriteria } from './PlacementCriteria'; - export type ApprovedPremisesBedSearchParameters = (BedSearchParameters & { /** * The postcode district to search outwards from diff --git a/server/@types/shared/models/ApprovedPremisesBedSearchResult.ts b/server/@types/shared/models/ApprovedPremisesBedSearchResult.ts index 7c692a704..a00d8879d 100644 --- a/server/@types/shared/models/ApprovedPremisesBedSearchResult.ts +++ b/server/@types/shared/models/ApprovedPremisesBedSearchResult.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedSearchResult } from './BedSearchResult'; - export type ApprovedPremisesBedSearchResult = (BedSearchResult & { /** * how many miles away from the postcode district the Premises this Bed belongs to is diff --git a/server/@types/shared/models/ApprovedPremisesSummary.ts b/server/@types/shared/models/ApprovedPremisesSummary.ts index 763ea2fda..a8d78f2f4 100644 --- a/server/@types/shared/models/ApprovedPremisesSummary.ts +++ b/server/@types/shared/models/ApprovedPremisesSummary.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { PremisesSummary } from './PremisesSummary'; - export type ApprovedPremisesSummary = (PremisesSummary & { apCode?: string; probationRegion?: string; diff --git a/server/@types/shared/models/ApprovedPremisesUser.ts b/server/@types/shared/models/ApprovedPremisesUser.ts index 364a29c43..d6fa54833 100644 --- a/server/@types/shared/models/ApprovedPremisesUser.ts +++ b/server/@types/shared/models/ApprovedPremisesUser.ts @@ -2,12 +2,10 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApArea } from './ApArea'; import type { ApprovedPremisesUserRole } from './ApprovedPremisesUserRole'; import type { User } from './User'; import type { UserQualification } from './UserQualification'; - export type ApprovedPremisesUser = (User & { qualifications: Array; roles: Array; diff --git a/server/@types/shared/models/ApprovedPremisesUserRole.ts b/server/@types/shared/models/ApprovedPremisesUserRole.ts index 74f865737..954684170 100644 --- a/server/@types/shared/models/ApprovedPremisesUserRole.ts +++ b/server/@types/shared/models/ApprovedPremisesUserRole.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ApprovedPremisesUserRole = 'assessor' | 'matcher' | 'manager' | 'workflow_manager' | 'applicant' | 'role_admin' | 'report_viewer' | 'excluded_from_assess_allocation' | 'excluded_from_match_allocation' | 'excluded_from_placement_application_allocation' | 'appeals_manager'; diff --git a/server/@types/shared/models/ArrayOfOASysOffenceDetailsQuestions.ts b/server/@types/shared/models/ArrayOfOASysOffenceDetailsQuestions.ts index f504c75f2..d6371b4f8 100644 --- a/server/@types/shared/models/ArrayOfOASysOffenceDetailsQuestions.ts +++ b/server/@types/shared/models/ArrayOfOASysOffenceDetailsQuestions.ts @@ -2,7 +2,5 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { OASysQuestion } from './OASysQuestion'; - export type ArrayOfOASysOffenceDetailsQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskContributorsQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskContributorsQuestions.ts index e6181bc80..8a67e5aa3 100644 --- a/server/@types/shared/models/ArrayOfOASysRiskContributorsQuestions.ts +++ b/server/@types/shared/models/ArrayOfOASysRiskContributorsQuestions.ts @@ -2,7 +2,5 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { OASysQuestion } from './OASysQuestion'; - export type ArrayOfOASysRiskContributorsQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskManagementPlanQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskManagementPlanQuestions.ts index ea25d51d3..fcdd41cfe 100644 --- a/server/@types/shared/models/ArrayOfOASysRiskManagementPlanQuestions.ts +++ b/server/@types/shared/models/ArrayOfOASysRiskManagementPlanQuestions.ts @@ -2,7 +2,5 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { OASysQuestion } from './OASysQuestion'; - export type ArrayOfOASysRiskManagementPlanQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskManagementQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskManagementQuestions.ts index 9f0f56d7d..3404989c2 100644 --- a/server/@types/shared/models/ArrayOfOASysRiskManagementQuestions.ts +++ b/server/@types/shared/models/ArrayOfOASysRiskManagementQuestions.ts @@ -2,7 +2,5 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { OASysQuestion } from './OASysQuestion'; - export type ArrayOfOASysRiskManagementQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskOfSeriousHarmSummaryQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskOfSeriousHarmSummaryQuestions.ts index 103da3600..f2c2ed3e5 100644 --- a/server/@types/shared/models/ArrayOfOASysRiskOfSeriousHarmSummaryQuestions.ts +++ b/server/@types/shared/models/ArrayOfOASysRiskOfSeriousHarmSummaryQuestions.ts @@ -2,7 +2,5 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { OASysQuestion } from './OASysQuestion'; - export type ArrayOfOASysRiskOfSeriousHarmSummaryQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskToSelfQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskToSelfQuestions.ts index 20e82711f..0ec48a680 100644 --- a/server/@types/shared/models/ArrayOfOASysRiskToSelfQuestions.ts +++ b/server/@types/shared/models/ArrayOfOASysRiskToSelfQuestions.ts @@ -2,7 +2,5 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { OASysQuestion } from './OASysQuestion'; - export type ArrayOfOASysRiskToSelfQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRisksToOthersQuestions.ts b/server/@types/shared/models/ArrayOfOASysRisksToOthersQuestions.ts index 8f585cd7a..5ee56b609 100644 --- a/server/@types/shared/models/ArrayOfOASysRisksToOthersQuestions.ts +++ b/server/@types/shared/models/ArrayOfOASysRisksToOthersQuestions.ts @@ -2,7 +2,5 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { OASysQuestion } from './OASysQuestion'; - export type ArrayOfOASysRisksToOthersQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRisksToTheIndividualQuestions.ts b/server/@types/shared/models/ArrayOfOASysRisksToTheIndividualQuestions.ts index b6da45abf..5b8456b3d 100644 --- a/server/@types/shared/models/ArrayOfOASysRisksToTheIndividualQuestions.ts +++ b/server/@types/shared/models/ArrayOfOASysRisksToTheIndividualQuestions.ts @@ -2,7 +2,5 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { OASysQuestion } from './OASysQuestion'; - export type ArrayOfOASysRisksToTheIndividualQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysSupportingInformationQuestions.ts b/server/@types/shared/models/ArrayOfOASysSupportingInformationQuestions.ts index d2290e708..46f19404d 100644 --- a/server/@types/shared/models/ArrayOfOASysSupportingInformationQuestions.ts +++ b/server/@types/shared/models/ArrayOfOASysSupportingInformationQuestions.ts @@ -2,7 +2,5 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { OASysSupportingInformationQuestion } from './OASysSupportingInformationQuestion'; - export type ArrayOfOASysSupportingInformationQuestions = Array; diff --git a/server/@types/shared/models/Arrival.ts b/server/@types/shared/models/Arrival.ts index 15ca135f3..31c9ebefc 100644 --- a/server/@types/shared/models/Arrival.ts +++ b/server/@types/shared/models/Arrival.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Arrival = { expectedDepartureDate: string; arrivalDate: string; diff --git a/server/@types/shared/models/Assessment.ts b/server/@types/shared/models/Assessment.ts index 860c26b4d..02f9a7566 100644 --- a/server/@types/shared/models/Assessment.ts +++ b/server/@types/shared/models/Assessment.ts @@ -2,12 +2,10 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { AssessmentDecision } from './AssessmentDecision'; import type { ClarificationNote } from './ClarificationNote'; import type { ReferralHistoryNote } from './ReferralHistoryNote'; - export type Assessment = { service: string; id: string; diff --git a/server/@types/shared/models/AssessmentAcceptance.ts b/server/@types/shared/models/AssessmentAcceptance.ts index 71b71741d..b1c7ce0f0 100644 --- a/server/@types/shared/models/AssessmentAcceptance.ts +++ b/server/@types/shared/models/AssessmentAcceptance.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { PlacementDates } from './PlacementDates'; import type { PlacementRequirements } from './PlacementRequirements'; - export type AssessmentAcceptance = { document: AnyValue; requirements?: PlacementRequirements; diff --git a/server/@types/shared/models/AssessmentDecision.ts b/server/@types/shared/models/AssessmentDecision.ts index e80ce9ac4..82e0e4fa6 100644 --- a/server/@types/shared/models/AssessmentDecision.ts +++ b/server/@types/shared/models/AssessmentDecision.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type AssessmentDecision = 'accepted' | 'rejected'; diff --git a/server/@types/shared/models/AssessmentRejection.ts b/server/@types/shared/models/AssessmentRejection.ts index cd73735be..6cf40c440 100644 --- a/server/@types/shared/models/AssessmentRejection.ts +++ b/server/@types/shared/models/AssessmentRejection.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; - export type AssessmentRejection = { document: AnyValue; rejectionRationale: string; diff --git a/server/@types/shared/models/AssessmentSortField.ts b/server/@types/shared/models/AssessmentSortField.ts index 829d73071..abc1511a1 100644 --- a/server/@types/shared/models/AssessmentSortField.ts +++ b/server/@types/shared/models/AssessmentSortField.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type AssessmentSortField = 'name' | 'crn' | 'arrivalDate' | 'status' | 'createdAt'; diff --git a/server/@types/shared/models/AssessmentStatus.ts b/server/@types/shared/models/AssessmentStatus.ts index 2c0f23b62..b14539431 100644 --- a/server/@types/shared/models/AssessmentStatus.ts +++ b/server/@types/shared/models/AssessmentStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type AssessmentStatus = 'awaiting_response' | 'completed' | 'reallocated' | 'in_progress' | 'not_started' | 'unallocated' | 'in_review' | 'ready_to_place' | 'closed' | 'rejected'; diff --git a/server/@types/shared/models/AssessmentSummary.ts b/server/@types/shared/models/AssessmentSummary.ts index ba3333721..bd293cb20 100644 --- a/server/@types/shared/models/AssessmentSummary.ts +++ b/server/@types/shared/models/AssessmentSummary.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AssessmentDecision } from './AssessmentDecision'; import type { Person } from './Person'; import type { PersonRisks } from './PersonRisks'; - export type AssessmentSummary = { type: string; id: string; diff --git a/server/@types/shared/models/AssessmentTask.ts b/server/@types/shared/models/AssessmentTask.ts index ecbbd2724..bb4628526 100644 --- a/server/@types/shared/models/AssessmentTask.ts +++ b/server/@types/shared/models/AssessmentTask.ts @@ -2,8 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Task } from './Task'; - -export type AssessmentTask = Task; +export type AssessmentTask = (Task & { + createdFromAppeal: boolean; +}); diff --git a/server/@types/shared/models/Bed.ts b/server/@types/shared/models/Bed.ts index 95d62931b..ed84759ad 100644 --- a/server/@types/shared/models/Bed.ts +++ b/server/@types/shared/models/Bed.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Bed = { id: string; name: string; diff --git a/server/@types/shared/models/BedDetail.ts b/server/@types/shared/models/BedDetail.ts index 48dcfa2f6..8f6e51fcf 100644 --- a/server/@types/shared/models/BedDetail.ts +++ b/server/@types/shared/models/BedDetail.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedSummary } from './BedSummary'; import type { CharacteristicPair } from './CharacteristicPair'; - export type BedDetail = (BedSummary & { characteristics: Array; }); diff --git a/server/@types/shared/models/BedOccupancyBookingEntry.ts b/server/@types/shared/models/BedOccupancyBookingEntry.ts index b04cd038c..474d908d4 100644 --- a/server/@types/shared/models/BedOccupancyBookingEntry.ts +++ b/server/@types/shared/models/BedOccupancyBookingEntry.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedOccupancyEntry } from './BedOccupancyEntry'; - export type BedOccupancyBookingEntry = (BedOccupancyEntry & { bookingId: string; personName: string; diff --git a/server/@types/shared/models/BedOccupancyEntry.ts b/server/@types/shared/models/BedOccupancyEntry.ts index dac212c09..dd56c35df 100644 --- a/server/@types/shared/models/BedOccupancyEntry.ts +++ b/server/@types/shared/models/BedOccupancyEntry.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedOccupancyEntryType } from './BedOccupancyEntryType'; - export type BedOccupancyEntry = { type: BedOccupancyEntryType; length: number; diff --git a/server/@types/shared/models/BedOccupancyEntryType.ts b/server/@types/shared/models/BedOccupancyEntryType.ts index 4b119427c..b9048f1ef 100644 --- a/server/@types/shared/models/BedOccupancyEntryType.ts +++ b/server/@types/shared/models/BedOccupancyEntryType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BedOccupancyEntryType = 'booking' | 'lost_bed' | 'open'; diff --git a/server/@types/shared/models/BedOccupancyLostBedEntry.ts b/server/@types/shared/models/BedOccupancyLostBedEntry.ts index d6ceafffa..be78b7ce8 100644 --- a/server/@types/shared/models/BedOccupancyLostBedEntry.ts +++ b/server/@types/shared/models/BedOccupancyLostBedEntry.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedOccupancyEntry } from './BedOccupancyEntry'; - export type BedOccupancyLostBedEntry = (BedOccupancyEntry & { lostBedId: string; }); diff --git a/server/@types/shared/models/BedOccupancyOpenEntry.ts b/server/@types/shared/models/BedOccupancyOpenEntry.ts index cf0a8df40..6180c9d8a 100644 --- a/server/@types/shared/models/BedOccupancyOpenEntry.ts +++ b/server/@types/shared/models/BedOccupancyOpenEntry.ts @@ -2,8 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedOccupancyEntry } from './BedOccupancyEntry'; - export type BedOccupancyOpenEntry = BedOccupancyEntry; diff --git a/server/@types/shared/models/BedOccupancyRange.ts b/server/@types/shared/models/BedOccupancyRange.ts index ad8622306..4e8099edb 100644 --- a/server/@types/shared/models/BedOccupancyRange.ts +++ b/server/@types/shared/models/BedOccupancyRange.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedOccupancyEntry } from './BedOccupancyEntry'; - export type BedOccupancyRange = { bedId: string; bedName: string; diff --git a/server/@types/shared/models/BedSearchParameters.ts b/server/@types/shared/models/BedSearchParameters.ts index e3d6337e0..65aaf163b 100644 --- a/server/@types/shared/models/BedSearchParameters.ts +++ b/server/@types/shared/models/BedSearchParameters.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BedSearchParameters = { serviceName: string; /** diff --git a/server/@types/shared/models/BedSearchResult.ts b/server/@types/shared/models/BedSearchResult.ts index ab9781b7f..4b998f753 100644 --- a/server/@types/shared/models/BedSearchResult.ts +++ b/server/@types/shared/models/BedSearchResult.ts @@ -2,12 +2,10 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedSearchResultBedSummary } from './BedSearchResultBedSummary'; import type { BedSearchResultPremisesSummary } from './BedSearchResultPremisesSummary'; import type { BedSearchResultRoomSummary } from './BedSearchResultRoomSummary'; import type { ServiceName } from './ServiceName'; - export type BedSearchResult = { serviceName: ServiceName; premises: BedSearchResultPremisesSummary; diff --git a/server/@types/shared/models/BedSearchResultBedSummary.ts b/server/@types/shared/models/BedSearchResultBedSummary.ts index 307f0352b..6e740ea26 100644 --- a/server/@types/shared/models/BedSearchResultBedSummary.ts +++ b/server/@types/shared/models/BedSearchResultBedSummary.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BedSearchResultBedSummary = { id: string; name: string; diff --git a/server/@types/shared/models/BedSearchResultPremisesSummary.ts b/server/@types/shared/models/BedSearchResultPremisesSummary.ts index 4856625dc..01d513fac 100644 --- a/server/@types/shared/models/BedSearchResultPremisesSummary.ts +++ b/server/@types/shared/models/BedSearchResultPremisesSummary.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { CharacteristicPair } from './CharacteristicPair'; - export type BedSearchResultPremisesSummary = { id: string; name: string; diff --git a/server/@types/shared/models/BedSearchResultRoomSummary.ts b/server/@types/shared/models/BedSearchResultRoomSummary.ts index 6d8a946c8..9527ae364 100644 --- a/server/@types/shared/models/BedSearchResultRoomSummary.ts +++ b/server/@types/shared/models/BedSearchResultRoomSummary.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { CharacteristicPair } from './CharacteristicPair'; - export type BedSearchResultRoomSummary = { id: string; name: string; diff --git a/server/@types/shared/models/BedSearchResults.ts b/server/@types/shared/models/BedSearchResults.ts index d6702437e..66fa748ca 100644 --- a/server/@types/shared/models/BedSearchResults.ts +++ b/server/@types/shared/models/BedSearchResults.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedSearchResult } from './BedSearchResult'; - export type BedSearchResults = { /** * How many distinct Rooms the Beds in the results belong to diff --git a/server/@types/shared/models/BedStatus.ts b/server/@types/shared/models/BedStatus.ts index 07510576d..9e3d7a2fe 100644 --- a/server/@types/shared/models/BedStatus.ts +++ b/server/@types/shared/models/BedStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BedStatus = 'occupied' | 'available' | 'out_of_service'; diff --git a/server/@types/shared/models/BedSummary.ts b/server/@types/shared/models/BedSummary.ts index b7a49d51a..d12a3c378 100644 --- a/server/@types/shared/models/BedSummary.ts +++ b/server/@types/shared/models/BedSummary.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedStatus } from './BedStatus'; - export type BedSummary = { id: string; name: string; diff --git a/server/@types/shared/models/Booking.ts b/server/@types/shared/models/Booking.ts index e4474decd..b64f95ee3 100644 --- a/server/@types/shared/models/Booking.ts +++ b/server/@types/shared/models/Booking.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Arrival } from './Arrival'; import type { BookingBody } from './BookingBody'; import type { BookingPremisesSummary } from './BookingPremisesSummary'; @@ -13,7 +12,6 @@ import type { Departure } from './Departure'; import type { Extension } from './Extension'; import type { Nonarrival } from './Nonarrival'; import type { Turnaround } from './Turnaround'; - export type Booking = (BookingBody & { status: BookingStatus; extensions: Array; diff --git a/server/@types/shared/models/BookingAppealTask.ts b/server/@types/shared/models/BookingAppealTask.ts index ff6f5c930..810863694 100644 --- a/server/@types/shared/models/BookingAppealTask.ts +++ b/server/@types/shared/models/BookingAppealTask.ts @@ -2,8 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Task } from './Task'; - export type BookingAppealTask = Task; diff --git a/server/@types/shared/models/BookingBody.ts b/server/@types/shared/models/BookingBody.ts index 51d6bdb59..3be68cb26 100644 --- a/server/@types/shared/models/BookingBody.ts +++ b/server/@types/shared/models/BookingBody.ts @@ -2,12 +2,10 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Bed } from './Bed'; import type { Person } from './Person'; import type { ServiceName } from './ServiceName'; import type { StaffMember } from './StaffMember'; - export type BookingBody = { id: string; person: Person; diff --git a/server/@types/shared/models/BookingNotMade.ts b/server/@types/shared/models/BookingNotMade.ts index 25e1ce9fe..503559cdb 100644 --- a/server/@types/shared/models/BookingNotMade.ts +++ b/server/@types/shared/models/BookingNotMade.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BookingNotMade = { id: string; placementRequestId: string; diff --git a/server/@types/shared/models/BookingPremisesSummary.ts b/server/@types/shared/models/BookingPremisesSummary.ts index fdad7a57a..c8d6ef5b5 100644 --- a/server/@types/shared/models/BookingPremisesSummary.ts +++ b/server/@types/shared/models/BookingPremisesSummary.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BookingPremisesSummary = { id: string; name: string; diff --git a/server/@types/shared/models/BookingSearchResult.ts b/server/@types/shared/models/BookingSearchResult.ts index 774845693..700763dee 100644 --- a/server/@types/shared/models/BookingSearchResult.ts +++ b/server/@types/shared/models/BookingSearchResult.ts @@ -2,13 +2,11 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BookingSearchResultBedSummary } from './BookingSearchResultBedSummary'; import type { BookingSearchResultBookingSummary } from './BookingSearchResultBookingSummary'; import type { BookingSearchResultPersonSummary } from './BookingSearchResultPersonSummary'; import type { BookingSearchResultPremisesSummary } from './BookingSearchResultPremisesSummary'; import type { BookingSearchResultRoomSummary } from './BookingSearchResultRoomSummary'; - export type BookingSearchResult = { person: BookingSearchResultPersonSummary; booking: BookingSearchResultBookingSummary; diff --git a/server/@types/shared/models/BookingSearchResultBedSummary.ts b/server/@types/shared/models/BookingSearchResultBedSummary.ts index 0bd57d590..9f6cc0566 100644 --- a/server/@types/shared/models/BookingSearchResultBedSummary.ts +++ b/server/@types/shared/models/BookingSearchResultBedSummary.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BookingSearchResultBedSummary = { id: string; name: string; diff --git a/server/@types/shared/models/BookingSearchResultBookingSummary.ts b/server/@types/shared/models/BookingSearchResultBookingSummary.ts index 83f814a46..2bbfdf989 100644 --- a/server/@types/shared/models/BookingSearchResultBookingSummary.ts +++ b/server/@types/shared/models/BookingSearchResultBookingSummary.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BookingStatus } from './BookingStatus'; - export type BookingSearchResultBookingSummary = { id: string; status: BookingStatus; diff --git a/server/@types/shared/models/BookingSearchResultPersonSummary.ts b/server/@types/shared/models/BookingSearchResultPersonSummary.ts index f26a43b47..7811cb300 100644 --- a/server/@types/shared/models/BookingSearchResultPersonSummary.ts +++ b/server/@types/shared/models/BookingSearchResultPersonSummary.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BookingSearchResultPersonSummary = { name?: string; crn: string; diff --git a/server/@types/shared/models/BookingSearchResultPremisesSummary.ts b/server/@types/shared/models/BookingSearchResultPremisesSummary.ts index 8956bf757..0a41770ab 100644 --- a/server/@types/shared/models/BookingSearchResultPremisesSummary.ts +++ b/server/@types/shared/models/BookingSearchResultPremisesSummary.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BookingSearchResultPremisesSummary = { id: string; name: string; diff --git a/server/@types/shared/models/BookingSearchResultRoomSummary.ts b/server/@types/shared/models/BookingSearchResultRoomSummary.ts index a7edf0ced..42c3db73d 100644 --- a/server/@types/shared/models/BookingSearchResultRoomSummary.ts +++ b/server/@types/shared/models/BookingSearchResultRoomSummary.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BookingSearchResultRoomSummary = { id: string; name: string; diff --git a/server/@types/shared/models/BookingSearchResults.ts b/server/@types/shared/models/BookingSearchResults.ts index 06865d063..336f207ea 100644 --- a/server/@types/shared/models/BookingSearchResults.ts +++ b/server/@types/shared/models/BookingSearchResults.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BookingSearchResult } from './BookingSearchResult'; - export type BookingSearchResults = { resultsCount: number; results: Array; diff --git a/server/@types/shared/models/BookingSearchSortField.ts b/server/@types/shared/models/BookingSearchSortField.ts index 2b53b2bd2..a10bf04fe 100644 --- a/server/@types/shared/models/BookingSearchSortField.ts +++ b/server/@types/shared/models/BookingSearchSortField.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BookingSearchSortField = 'name' | 'crn' | 'startDate' | 'endDate' | 'createdAt'; diff --git a/server/@types/shared/models/BookingStatus.ts b/server/@types/shared/models/BookingStatus.ts index e36f8b79c..424e76a99 100644 --- a/server/@types/shared/models/BookingStatus.ts +++ b/server/@types/shared/models/BookingStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BookingStatus = 'arrived' | 'awaiting-arrival' | 'not-arrived' | 'departed' | 'cancelled' | 'provisional' | 'confirmed' | 'closed'; diff --git a/server/@types/shared/models/BookingSummary.ts b/server/@types/shared/models/BookingSummary.ts index f324dfaed..2fb2d60df 100644 --- a/server/@types/shared/models/BookingSummary.ts +++ b/server/@types/shared/models/BookingSummary.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type BookingSummary = { id: string; premisesId: string; diff --git a/server/@types/shared/models/CacheType.ts b/server/@types/shared/models/CacheType.ts index 8a5cd3b6d..bb7169731 100644 --- a/server/@types/shared/models/CacheType.ts +++ b/server/@types/shared/models/CacheType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type CacheType = 'qCodeStaffMembers' | 'userAccess' | 'staffDetails' | 'teamsManagingCase' | 'ukBankHolidays' | 'offenderDetails' | 'inmateDetails'; diff --git a/server/@types/shared/models/Cancellation.ts b/server/@types/shared/models/Cancellation.ts index e811723e1..0075cca2c 100644 --- a/server/@types/shared/models/Cancellation.ts +++ b/server/@types/shared/models/Cancellation.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { CancellationReason } from './CancellationReason'; - export type Cancellation = { id?: string; bookingId: string; diff --git a/server/@types/shared/models/CancellationReason.ts b/server/@types/shared/models/CancellationReason.ts index 3d49f43f6..5581a3989 100644 --- a/server/@types/shared/models/CancellationReason.ts +++ b/server/@types/shared/models/CancellationReason.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type CancellationReason = { id: string; name: string; diff --git a/server/@types/shared/models/Cas2Application.ts b/server/@types/shared/models/Cas2Application.ts index 78e889b87..ce879a7f4 100644 --- a/server/@types/shared/models/Cas2Application.ts +++ b/server/@types/shared/models/Cas2Application.ts @@ -2,12 +2,12 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { Application } from './Application'; import type { ApplicationStatus } from './ApplicationStatus'; +import type { Cas2StatusUpdate } from './Cas2StatusUpdate'; +import type { Cas2TimelineEvent } from './Cas2TimelineEvent'; import type { NomisUser } from './NomisUser'; - export type Cas2Application = (Application & { createdBy: NomisUser; schemaVersion: string; @@ -17,5 +17,7 @@ export type Cas2Application = (Application & { status: ApplicationStatus; submittedAt?: string; telephoneNumber?: string; + statusUpdates?: Array; + timelineEvents?: Array; }); diff --git a/server/@types/shared/models/Cas2ApplicationNote.ts b/server/@types/shared/models/Cas2ApplicationNote.ts new file mode 100644 index 000000000..0a35c1277 --- /dev/null +++ b/server/@types/shared/models/Cas2ApplicationNote.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +/** + * Notes added to an application + */ +export type Cas2ApplicationNote = { + id?: string; + email: string; + name: string; + body: string; + createdAt: string; +}; + diff --git a/server/@types/shared/models/Cas2ApplicationStatus.ts b/server/@types/shared/models/Cas2ApplicationStatus.ts index 673950d5e..60549c578 100644 --- a/server/@types/shared/models/Cas2ApplicationStatus.ts +++ b/server/@types/shared/models/Cas2ApplicationStatus.ts @@ -2,11 +2,12 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - +import type { Cas2ApplicationStatusDetail } from './Cas2ApplicationStatusDetail'; export type Cas2ApplicationStatus = { id: string; name: string; label: string; description: string; + statusDetails: Array; }; diff --git a/server/@types/shared/models/Cas2ApplicationStatusDetail.ts b/server/@types/shared/models/Cas2ApplicationStatusDetail.ts new file mode 100644 index 000000000..e3e12c158 --- /dev/null +++ b/server/@types/shared/models/Cas2ApplicationStatusDetail.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type Cas2ApplicationStatusDetail = { + id: string; + name: string; + label: string; +}; + diff --git a/server/@types/shared/models/Cas2ApplicationStatusUpdate.ts b/server/@types/shared/models/Cas2ApplicationStatusUpdate.ts index d29ade351..ab338921a 100644 --- a/server/@types/shared/models/Cas2ApplicationStatusUpdate.ts +++ b/server/@types/shared/models/Cas2ApplicationStatusUpdate.ts @@ -2,11 +2,11 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Cas2ApplicationStatusUpdate = { /** * The "name" of the new status to be applied */ newStatus: string; + newStatusDetails?: Array; }; diff --git a/server/@types/shared/models/Cas2ApplicationSummary.ts b/server/@types/shared/models/Cas2ApplicationSummary.ts index b15163faf..ec32888e6 100644 --- a/server/@types/shared/models/Cas2ApplicationSummary.ts +++ b/server/@types/shared/models/Cas2ApplicationSummary.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApplicationStatus } from './ApplicationStatus'; import type { ApplicationSummary } from './ApplicationSummary'; import type { PersonRisks } from './PersonRisks'; - export type Cas2ApplicationSummary = (ApplicationSummary & { createdByUserId: string; status: ApplicationStatus; diff --git a/server/@types/shared/models/Cas2StatusUpdate.ts b/server/@types/shared/models/Cas2StatusUpdate.ts index 990278207..ef74fcbbc 100644 --- a/server/@types/shared/models/Cas2StatusUpdate.ts +++ b/server/@types/shared/models/Cas2StatusUpdate.ts @@ -2,9 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - +import type { Cas2StatusUpdateDetail } from './Cas2StatusUpdateDetail'; import type { ExternalUser } from './ExternalUser'; - export type Cas2StatusUpdate = { id: string; name: string; @@ -12,5 +11,6 @@ export type Cas2StatusUpdate = { description: string; updatedBy?: ExternalUser; updatedAt?: string; + statusUpdateDetails?: Array; }; diff --git a/server/@types/shared/models/Cas2StatusUpdateDetail.ts b/server/@types/shared/models/Cas2StatusUpdateDetail.ts new file mode 100644 index 000000000..87610d02c --- /dev/null +++ b/server/@types/shared/models/Cas2StatusUpdateDetail.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type Cas2StatusUpdateDetail = { + id: string; + name: string; + label: string; +}; + diff --git a/server/@types/shared/models/Cas2SubmittedApplication.ts b/server/@types/shared/models/Cas2SubmittedApplication.ts index f0e3075ca..ce5d53d59 100644 --- a/server/@types/shared/models/Cas2SubmittedApplication.ts +++ b/server/@types/shared/models/Cas2SubmittedApplication.ts @@ -2,12 +2,11 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { Cas2StatusUpdate } from './Cas2StatusUpdate'; +import type { Cas2TimelineEvent } from './Cas2TimelineEvent'; import type { NomisUser } from './NomisUser'; import type { Person } from './Person'; - export type Cas2SubmittedApplication = { id: string; person: Person; @@ -19,5 +18,6 @@ export type Cas2SubmittedApplication = { submittedAt?: string; statusUpdates?: Array; telephoneNumber?: string; + timelineEvents: Array; }; diff --git a/server/@types/shared/models/Cas2SubmittedApplicationSummary.ts b/server/@types/shared/models/Cas2SubmittedApplicationSummary.ts index 37eae3629..46c3c3cd6 100644 --- a/server/@types/shared/models/Cas2SubmittedApplicationSummary.ts +++ b/server/@types/shared/models/Cas2SubmittedApplicationSummary.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Person } from './Person'; - export type Cas2SubmittedApplicationSummary = { id: string; createdByUserId: string; diff --git a/server/@types/shared/models/Cas2TimelineEvent.ts b/server/@types/shared/models/Cas2TimelineEvent.ts new file mode 100644 index 000000000..771ca1042 --- /dev/null +++ b/server/@types/shared/models/Cas2TimelineEvent.ts @@ -0,0 +1,13 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { TimelineEventType } from './TimelineEventType'; +export type Cas2TimelineEvent = { + type: TimelineEventType; + occurredAt: string; + label: string; + body?: string; + createdByName: string; +}; + diff --git a/server/@types/shared/models/Characteristic.ts b/server/@types/shared/models/Characteristic.ts index edfc9ae0b..c8f8bbe49 100644 --- a/server/@types/shared/models/Characteristic.ts +++ b/server/@types/shared/models/Characteristic.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Characteristic = { id: string; name: string; diff --git a/server/@types/shared/models/CharacteristicPair.ts b/server/@types/shared/models/CharacteristicPair.ts index 3e8e079f5..6b3489436 100644 --- a/server/@types/shared/models/CharacteristicPair.ts +++ b/server/@types/shared/models/CharacteristicPair.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type CharacteristicPair = { propertyName?: string; name: string; diff --git a/server/@types/shared/models/ClarificationNote.ts b/server/@types/shared/models/ClarificationNote.ts index 3762b862f..246f82320 100644 --- a/server/@types/shared/models/ClarificationNote.ts +++ b/server/@types/shared/models/ClarificationNote.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ClarificationNote = { id: string; createdAt: string; diff --git a/server/@types/shared/models/Confirmation.ts b/server/@types/shared/models/Confirmation.ts index 4ada44fce..0087788de 100644 --- a/server/@types/shared/models/Confirmation.ts +++ b/server/@types/shared/models/Confirmation.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Confirmation = { id: string; bookingId: string; diff --git a/server/@types/shared/models/DateCapacity.ts b/server/@types/shared/models/DateCapacity.ts index a62740c9c..7905b86ad 100644 --- a/server/@types/shared/models/DateCapacity.ts +++ b/server/@types/shared/models/DateCapacity.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type DateCapacity = { date: string; availableBeds: number; diff --git a/server/@types/shared/models/DateChange.ts b/server/@types/shared/models/DateChange.ts index 19d548645..0a2952424 100644 --- a/server/@types/shared/models/DateChange.ts +++ b/server/@types/shared/models/DateChange.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type DateChange = { id: string; bookingId: string; diff --git a/server/@types/shared/models/DatePeriod.ts b/server/@types/shared/models/DatePeriod.ts index 5e6aa214e..369a0002e 100644 --- a/server/@types/shared/models/DatePeriod.ts +++ b/server/@types/shared/models/DatePeriod.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type DatePeriod = { startDate: string; endDate: string; diff --git a/server/@types/shared/models/Departure.ts b/server/@types/shared/models/Departure.ts index 6867a3cef..77392cc40 100644 --- a/server/@types/shared/models/Departure.ts +++ b/server/@types/shared/models/Departure.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { DepartureReason } from './DepartureReason'; import type { DestinationProvider } from './DestinationProvider'; import type { MoveOnCategory } from './MoveOnCategory'; - export type Departure = { id: string; bookingId: string; diff --git a/server/@types/shared/models/DepartureReason.ts b/server/@types/shared/models/DepartureReason.ts index 67ba75c37..8f2bbd1ce 100644 --- a/server/@types/shared/models/DepartureReason.ts +++ b/server/@types/shared/models/DepartureReason.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type DepartureReason = { id: string; name: string; diff --git a/server/@types/shared/models/DestinationProvider.ts b/server/@types/shared/models/DestinationProvider.ts index 0e6eecaf2..ed050210b 100644 --- a/server/@types/shared/models/DestinationProvider.ts +++ b/server/@types/shared/models/DestinationProvider.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type DestinationProvider = { id: string; name: string; diff --git a/server/@types/shared/models/Document.ts b/server/@types/shared/models/Document.ts index 116897c99..20dd644a3 100644 --- a/server/@types/shared/models/Document.ts +++ b/server/@types/shared/models/Document.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { DocumentLevel } from './DocumentLevel'; - /** * Meta Info about a file relating to an Offender */ diff --git a/server/@types/shared/models/DocumentLevel.ts b/server/@types/shared/models/DocumentLevel.ts index dd2a62b75..631b024e1 100644 --- a/server/@types/shared/models/DocumentLevel.ts +++ b/server/@types/shared/models/DocumentLevel.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - /** * The level at which a Document is associated - i.e. to the Offender or to a specific Conviction */ diff --git a/server/@types/shared/models/ExtendedPremisesSummary.ts b/server/@types/shared/models/ExtendedPremisesSummary.ts index 4ac79b410..773997a66 100644 --- a/server/@types/shared/models/ExtendedPremisesSummary.ts +++ b/server/@types/shared/models/ExtendedPremisesSummary.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { DateCapacity } from './DateCapacity'; import type { PremisesBooking } from './PremisesBooking'; - export type ExtendedPremisesSummary = { id?: string; name?: string; diff --git a/server/@types/shared/models/Extension.ts b/server/@types/shared/models/Extension.ts index 08cf75294..48a66a2f0 100644 --- a/server/@types/shared/models/Extension.ts +++ b/server/@types/shared/models/Extension.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Extension = { id: string; bookingId: string; diff --git a/server/@types/shared/models/ExternalUser.ts b/server/@types/shared/models/ExternalUser.ts index 4c8045d3b..d78f5aa14 100644 --- a/server/@types/shared/models/ExternalUser.ts +++ b/server/@types/shared/models/ExternalUser.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ExternalUser = { id: string; username: string; diff --git a/server/@types/shared/models/FlagsEnvelope.ts b/server/@types/shared/models/FlagsEnvelope.ts index 9f4039bf3..dfc346db0 100644 --- a/server/@types/shared/models/FlagsEnvelope.ts +++ b/server/@types/shared/models/FlagsEnvelope.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { RiskEnvelopeStatus } from './RiskEnvelopeStatus'; - export type FlagsEnvelope = { status: RiskEnvelopeStatus; value?: Array; diff --git a/server/@types/shared/models/FullPerson.ts b/server/@types/shared/models/FullPerson.ts index 66ef397e8..d32833b0f 100644 --- a/server/@types/shared/models/FullPerson.ts +++ b/server/@types/shared/models/FullPerson.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Person } from './Person'; import type { PersonStatus } from './PersonStatus'; - export type FullPerson = (Person & { name: string; dateOfBirth: string; diff --git a/server/@types/shared/models/Gender.ts b/server/@types/shared/models/Gender.ts index fd99975d7..097b52ff8 100644 --- a/server/@types/shared/models/Gender.ts +++ b/server/@types/shared/models/Gender.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Gender = 'male' | 'female'; diff --git a/server/@types/shared/models/InvalidParam.ts b/server/@types/shared/models/InvalidParam.ts index 124bf126c..18d9bb89d 100644 --- a/server/@types/shared/models/InvalidParam.ts +++ b/server/@types/shared/models/InvalidParam.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type InvalidParam = { propertyName?: string; errorType?: string; diff --git a/server/@types/shared/models/LocalAuthorityArea.ts b/server/@types/shared/models/LocalAuthorityArea.ts index 2e0616154..bb3047392 100644 --- a/server/@types/shared/models/LocalAuthorityArea.ts +++ b/server/@types/shared/models/LocalAuthorityArea.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type LocalAuthorityArea = { id: string; identifier: string; diff --git a/server/@types/shared/models/LostBed.ts b/server/@types/shared/models/LostBed.ts index dbcc5b58e..5a0d5f2d9 100644 --- a/server/@types/shared/models/LostBed.ts +++ b/server/@types/shared/models/LostBed.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { LostBedCancellation } from './LostBedCancellation'; import type { LostBedReason } from './LostBedReason'; import type { LostBedStatus } from './LostBedStatus'; - export type LostBed = { id: string; startDate: string; diff --git a/server/@types/shared/models/LostBedCancellation.ts b/server/@types/shared/models/LostBedCancellation.ts index dd5a4f2be..c766cd89b 100644 --- a/server/@types/shared/models/LostBedCancellation.ts +++ b/server/@types/shared/models/LostBedCancellation.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type LostBedCancellation = { id: string; createdAt: string; diff --git a/server/@types/shared/models/LostBedReason.ts b/server/@types/shared/models/LostBedReason.ts index e9a0280c8..3d838d6a7 100644 --- a/server/@types/shared/models/LostBedReason.ts +++ b/server/@types/shared/models/LostBedReason.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type LostBedReason = { id: string; name: string; diff --git a/server/@types/shared/models/LostBedStatus.ts b/server/@types/shared/models/LostBedStatus.ts index 8ca17f799..749bb8b12 100644 --- a/server/@types/shared/models/LostBedStatus.ts +++ b/server/@types/shared/models/LostBedStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type LostBedStatus = 'active' | 'cancelled'; diff --git a/server/@types/shared/models/Mappa.ts b/server/@types/shared/models/Mappa.ts index 46c8c7011..de015c805 100644 --- a/server/@types/shared/models/Mappa.ts +++ b/server/@types/shared/models/Mappa.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Mappa = { level: string; lastUpdated: string; diff --git a/server/@types/shared/models/MappaEnvelope.ts b/server/@types/shared/models/MappaEnvelope.ts index 91e6bf3b9..b40cebfc0 100644 --- a/server/@types/shared/models/MappaEnvelope.ts +++ b/server/@types/shared/models/MappaEnvelope.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Mappa } from './Mappa'; import type { RiskEnvelopeStatus } from './RiskEnvelopeStatus'; - export type MappaEnvelope = { status: RiskEnvelopeStatus; value?: Mappa; diff --git a/server/@types/shared/models/MigrationJobRequest.ts b/server/@types/shared/models/MigrationJobRequest.ts index 9bd65d1db..de9e3ea90 100644 --- a/server/@types/shared/models/MigrationJobRequest.ts +++ b/server/@types/shared/models/MigrationJobRequest.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { MigrationJobType } from './MigrationJobType'; - export type MigrationJobRequest = { jobType: MigrationJobType; }; diff --git a/server/@types/shared/models/MigrationJobType.ts b/server/@types/shared/models/MigrationJobType.ts index b6237ceb0..98c87e62f 100644 --- a/server/@types/shared/models/MigrationJobType.ts +++ b/server/@types/shared/models/MigrationJobType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type MigrationJobType = 'update_inmate_status_on_submission' | 'update_all_users_from_community_api' | 'update_sentence_type_and_situation' | 'update_booking_status' | 'update_application_ap_areas'; diff --git a/server/@types/shared/models/MoveOnCategory.ts b/server/@types/shared/models/MoveOnCategory.ts index ed6bfb35e..810fae91a 100644 --- a/server/@types/shared/models/MoveOnCategory.ts +++ b/server/@types/shared/models/MoveOnCategory.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type MoveOnCategory = { id: string; name: string; diff --git a/server/@types/shared/models/NewAppeal.ts b/server/@types/shared/models/NewAppeal.ts new file mode 100644 index 000000000..02748589b --- /dev/null +++ b/server/@types/shared/models/NewAppeal.ts @@ -0,0 +1,12 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +import type { AppealDecision } from './AppealDecision'; +export type NewAppeal = { + appealDate: string; + appealDetail: string; + decision: AppealDecision; + decisionDetail: string; +}; + diff --git a/server/@types/shared/models/NewApplication.ts b/server/@types/shared/models/NewApplication.ts index 56060103a..e5169069d 100644 --- a/server/@types/shared/models/NewApplication.ts +++ b/server/@types/shared/models/NewApplication.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewApplication = { crn: string; convictionId?: number; diff --git a/server/@types/shared/models/NewApplicationTimelineNote.ts b/server/@types/shared/models/NewApplicationTimelineNote.ts index 7e9e144e6..1eed1b033 100644 --- a/server/@types/shared/models/NewApplicationTimelineNote.ts +++ b/server/@types/shared/models/NewApplicationTimelineNote.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - /** * A note to add to an application */ diff --git a/server/@types/shared/models/NewArrival.ts b/server/@types/shared/models/NewArrival.ts index a932d3ab1..65e5c5b9a 100644 --- a/server/@types/shared/models/NewArrival.ts +++ b/server/@types/shared/models/NewArrival.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewArrival = { type: string; expectedDepartureDate: string; diff --git a/server/@types/shared/models/NewBedMove.ts b/server/@types/shared/models/NewBedMove.ts index 2efab3052..d6464d82f 100644 --- a/server/@types/shared/models/NewBedMove.ts +++ b/server/@types/shared/models/NewBedMove.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewBedMove = { bedId: string; notes?: string; diff --git a/server/@types/shared/models/NewBooking.ts b/server/@types/shared/models/NewBooking.ts index 9de4c7298..9df02be4e 100644 --- a/server/@types/shared/models/NewBooking.ts +++ b/server/@types/shared/models/NewBooking.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ServiceName } from './ServiceName'; - export type NewBooking = { crn: string; arrivalDate: string; diff --git a/server/@types/shared/models/NewBookingNotMade.ts b/server/@types/shared/models/NewBookingNotMade.ts index 67f0a643d..75ddfc78c 100644 --- a/server/@types/shared/models/NewBookingNotMade.ts +++ b/server/@types/shared/models/NewBookingNotMade.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewBookingNotMade = { notes?: string; }; diff --git a/server/@types/shared/models/NewCancellation.ts b/server/@types/shared/models/NewCancellation.ts index faa745d62..bf984a7c4 100644 --- a/server/@types/shared/models/NewCancellation.ts +++ b/server/@types/shared/models/NewCancellation.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewCancellation = { date: string; reason: string; diff --git a/server/@types/shared/models/NewCas1Arrival.ts b/server/@types/shared/models/NewCas1Arrival.ts index 2f7ee94dc..038a398e9 100644 --- a/server/@types/shared/models/NewCas1Arrival.ts +++ b/server/@types/shared/models/NewCas1Arrival.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { NewArrival } from './NewArrival'; - export type NewCas1Arrival = (NewArrival & { arrivalDateTime: string; }); diff --git a/server/@types/shared/models/NewCas2ApplicationNote.ts b/server/@types/shared/models/NewCas2ApplicationNote.ts new file mode 100644 index 000000000..0cf2d63fb --- /dev/null +++ b/server/@types/shared/models/NewCas2ApplicationNote.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +/** + * A note to add to an application + */ +export type NewCas2ApplicationNote = { + note: string; +}; + diff --git a/server/@types/shared/models/NewCas2Arrival.ts b/server/@types/shared/models/NewCas2Arrival.ts index 9663b1d25..106a39de2 100644 --- a/server/@types/shared/models/NewCas2Arrival.ts +++ b/server/@types/shared/models/NewCas2Arrival.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { NewArrival } from './NewArrival'; - export type NewCas2Arrival = (NewArrival & { arrivalDate: string; }); diff --git a/server/@types/shared/models/NewCas3Arrival.ts b/server/@types/shared/models/NewCas3Arrival.ts index 7245fc353..8ef474df4 100644 --- a/server/@types/shared/models/NewCas3Arrival.ts +++ b/server/@types/shared/models/NewCas3Arrival.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { NewArrival } from './NewArrival'; - export type NewCas3Arrival = (NewArrival & { arrivalDate: string; }); diff --git a/server/@types/shared/models/NewClarificationNote.ts b/server/@types/shared/models/NewClarificationNote.ts index a51a2b8f3..3d543b3b7 100644 --- a/server/@types/shared/models/NewClarificationNote.ts +++ b/server/@types/shared/models/NewClarificationNote.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewClarificationNote = { query: string; }; diff --git a/server/@types/shared/models/NewConfirmation.ts b/server/@types/shared/models/NewConfirmation.ts index 4d3ba4685..5d4bca027 100644 --- a/server/@types/shared/models/NewConfirmation.ts +++ b/server/@types/shared/models/NewConfirmation.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewConfirmation = { notes?: string; }; diff --git a/server/@types/shared/models/NewDateChange.ts b/server/@types/shared/models/NewDateChange.ts index ac1770f2a..8418b7fa0 100644 --- a/server/@types/shared/models/NewDateChange.ts +++ b/server/@types/shared/models/NewDateChange.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewDateChange = { newArrivalDate?: string; newDepartureDate?: string; diff --git a/server/@types/shared/models/NewDeparture.ts b/server/@types/shared/models/NewDeparture.ts index 8291f36ef..1d686eb8b 100644 --- a/server/@types/shared/models/NewDeparture.ts +++ b/server/@types/shared/models/NewDeparture.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewDeparture = { dateTime: string; reasonId: string; diff --git a/server/@types/shared/models/NewExtension.ts b/server/@types/shared/models/NewExtension.ts index 2b9d638bc..97381aa2b 100644 --- a/server/@types/shared/models/NewExtension.ts +++ b/server/@types/shared/models/NewExtension.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewExtension = { newDepartureDate: string; notes?: string; diff --git a/server/@types/shared/models/NewLostBed.ts b/server/@types/shared/models/NewLostBed.ts index 51ff98d43..4f6b3621b 100644 --- a/server/@types/shared/models/NewLostBed.ts +++ b/server/@types/shared/models/NewLostBed.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewLostBed = { startDate: string; endDate: string; diff --git a/server/@types/shared/models/NewLostBedCancellation.ts b/server/@types/shared/models/NewLostBedCancellation.ts index 0ba7730b1..278794083 100644 --- a/server/@types/shared/models/NewLostBedCancellation.ts +++ b/server/@types/shared/models/NewLostBedCancellation.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewLostBedCancellation = { notes?: string; }; diff --git a/server/@types/shared/models/NewNonarrival.ts b/server/@types/shared/models/NewNonarrival.ts index c387834ec..eb4040fa2 100644 --- a/server/@types/shared/models/NewNonarrival.ts +++ b/server/@types/shared/models/NewNonarrival.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewNonarrival = { date: string; reason: string; diff --git a/server/@types/shared/models/NewPlacementApplication.ts b/server/@types/shared/models/NewPlacementApplication.ts index a134eccac..a9c119815 100644 --- a/server/@types/shared/models/NewPlacementApplication.ts +++ b/server/@types/shared/models/NewPlacementApplication.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewPlacementApplication = { applicationId: string; }; diff --git a/server/@types/shared/models/NewPlacementRequestBooking.ts b/server/@types/shared/models/NewPlacementRequestBooking.ts index 454cabfdd..5f0d43982 100644 --- a/server/@types/shared/models/NewPlacementRequestBooking.ts +++ b/server/@types/shared/models/NewPlacementRequestBooking.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewPlacementRequestBooking = { arrivalDate: string; departureDate: string; diff --git a/server/@types/shared/models/NewPlacementRequestBookingConfirmation.ts b/server/@types/shared/models/NewPlacementRequestBookingConfirmation.ts index d974e09be..c5887fd04 100644 --- a/server/@types/shared/models/NewPlacementRequestBookingConfirmation.ts +++ b/server/@types/shared/models/NewPlacementRequestBookingConfirmation.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewPlacementRequestBookingConfirmation = { premisesName: string; arrivalDate: string; diff --git a/server/@types/shared/models/NewPremises.ts b/server/@types/shared/models/NewPremises.ts index 9ae69608c..ec7142e97 100644 --- a/server/@types/shared/models/NewPremises.ts +++ b/server/@types/shared/models/NewPremises.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { PropertyStatus } from './PropertyStatus'; - export type NewPremises = { name: string; addressLine1: string; diff --git a/server/@types/shared/models/NewReallocation.ts b/server/@types/shared/models/NewReallocation.ts index c240b4def..a41e701dd 100644 --- a/server/@types/shared/models/NewReallocation.ts +++ b/server/@types/shared/models/NewReallocation.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewReallocation = { userId?: string; }; diff --git a/server/@types/shared/models/NewReferralHistoryUserNote.ts b/server/@types/shared/models/NewReferralHistoryUserNote.ts index b99a18d5d..35b91cc33 100644 --- a/server/@types/shared/models/NewReferralHistoryUserNote.ts +++ b/server/@types/shared/models/NewReferralHistoryUserNote.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewReferralHistoryUserNote = { message: string; }; diff --git a/server/@types/shared/models/NewRoom.ts b/server/@types/shared/models/NewRoom.ts index 37fc0fe18..44110e27f 100644 --- a/server/@types/shared/models/NewRoom.ts +++ b/server/@types/shared/models/NewRoom.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewRoom = { name: string; notes?: string; diff --git a/server/@types/shared/models/NewTurnaround.ts b/server/@types/shared/models/NewTurnaround.ts index 562f25f15..2411a343c 100644 --- a/server/@types/shared/models/NewTurnaround.ts +++ b/server/@types/shared/models/NewTurnaround.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NewTurnaround = { workingDays: number; }; diff --git a/server/@types/shared/models/NewWithdrawal.ts b/server/@types/shared/models/NewWithdrawal.ts index f6a4e26cd..9edc8d8e1 100644 --- a/server/@types/shared/models/NewWithdrawal.ts +++ b/server/@types/shared/models/NewWithdrawal.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { WithdrawalReason } from './WithdrawalReason'; - export type NewWithdrawal = { reason: WithdrawalReason; otherReason?: string; diff --git a/server/@types/shared/models/NomisUser.ts b/server/@types/shared/models/NomisUser.ts index b3bfda0f7..3946d0f20 100644 --- a/server/@types/shared/models/NomisUser.ts +++ b/server/@types/shared/models/NomisUser.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NomisUser = { id: string; name: string; diff --git a/server/@types/shared/models/NonArrivalReason.ts b/server/@types/shared/models/NonArrivalReason.ts index b4b06bef2..91be4957e 100644 --- a/server/@types/shared/models/NonArrivalReason.ts +++ b/server/@types/shared/models/NonArrivalReason.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type NonArrivalReason = { id: string; name: string; diff --git a/server/@types/shared/models/Nonarrival.ts b/server/@types/shared/models/Nonarrival.ts index 85cb87648..b9a697c36 100644 --- a/server/@types/shared/models/Nonarrival.ts +++ b/server/@types/shared/models/Nonarrival.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { NonArrivalReason } from './NonArrivalReason'; - export type Nonarrival = { id: string; bookingId: string; diff --git a/server/@types/shared/models/OASysAssessmentId.ts b/server/@types/shared/models/OASysAssessmentId.ts index 709cde1c8..b8b90ff6b 100644 --- a/server/@types/shared/models/OASysAssessmentId.ts +++ b/server/@types/shared/models/OASysAssessmentId.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - /** * The ID of assessment being used. This should always be the latest Layer 3 assessment, regardless of state. */ diff --git a/server/@types/shared/models/OASysAssessmentState.ts b/server/@types/shared/models/OASysAssessmentState.ts index c4fc1bd7c..4ec2b3821 100644 --- a/server/@types/shared/models/OASysAssessmentState.ts +++ b/server/@types/shared/models/OASysAssessmentState.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type OASysAssessmentState = 'Completed' | 'Incomplete'; diff --git a/server/@types/shared/models/OASysQuestion.ts b/server/@types/shared/models/OASysQuestion.ts index 2549a4e84..13f82617e 100644 --- a/server/@types/shared/models/OASysQuestion.ts +++ b/server/@types/shared/models/OASysQuestion.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type OASysQuestion = { label: string; questionNumber: string; diff --git a/server/@types/shared/models/OASysRiskOfSeriousHarm.ts b/server/@types/shared/models/OASysRiskOfSeriousHarm.ts index dc4e7f909..f2f2edd68 100644 --- a/server/@types/shared/models/OASysRiskOfSeriousHarm.ts +++ b/server/@types/shared/models/OASysRiskOfSeriousHarm.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ArrayOfOASysRiskOfSeriousHarmSummaryQuestions } from './ArrayOfOASysRiskOfSeriousHarmSummaryQuestions'; import type { OASysAssessmentId } from './OASysAssessmentId'; import type { OASysAssessmentState } from './OASysAssessmentState'; - export type OASysRiskOfSeriousHarm = { assessmentId: OASysAssessmentId; assessmentState: OASysAssessmentState; diff --git a/server/@types/shared/models/OASysRiskToSelf.ts b/server/@types/shared/models/OASysRiskToSelf.ts index 0980bb759..3048b5e0b 100644 --- a/server/@types/shared/models/OASysRiskToSelf.ts +++ b/server/@types/shared/models/OASysRiskToSelf.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ArrayOfOASysRiskToSelfQuestions } from './ArrayOfOASysRiskToSelfQuestions'; import type { OASysAssessmentId } from './OASysAssessmentId'; import type { OASysAssessmentState } from './OASysAssessmentState'; - export type OASysRiskToSelf = { assessmentId: OASysAssessmentId; assessmentState: OASysAssessmentState; diff --git a/server/@types/shared/models/OASysSection.ts b/server/@types/shared/models/OASysSection.ts index 738592ff9..3b3006e20 100644 --- a/server/@types/shared/models/OASysSection.ts +++ b/server/@types/shared/models/OASysSection.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type OASysSection = { section: number; name: string; diff --git a/server/@types/shared/models/OASysSections.ts b/server/@types/shared/models/OASysSections.ts index b65795e0a..59455795c 100644 --- a/server/@types/shared/models/OASysSections.ts +++ b/server/@types/shared/models/OASysSections.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ArrayOfOASysOffenceDetailsQuestions } from './ArrayOfOASysOffenceDetailsQuestions'; import type { ArrayOfOASysRiskManagementPlanQuestions } from './ArrayOfOASysRiskManagementPlanQuestions'; import type { ArrayOfOASysRiskOfSeriousHarmSummaryQuestions } from './ArrayOfOASysRiskOfSeriousHarmSummaryQuestions'; @@ -10,7 +9,6 @@ import type { ArrayOfOASysRiskToSelfQuestions } from './ArrayOfOASysRiskToSelfQu import type { ArrayOfOASysSupportingInformationQuestions } from './ArrayOfOASysSupportingInformationQuestions'; import type { OASysAssessmentId } from './OASysAssessmentId'; import type { OASysAssessmentState } from './OASysAssessmentState'; - export type OASysSections = { assessmentId: OASysAssessmentId; assessmentState: OASysAssessmentState; diff --git a/server/@types/shared/models/OASysSupportingInformationQuestion.ts b/server/@types/shared/models/OASysSupportingInformationQuestion.ts index 04fe4919f..8a52de3dc 100644 --- a/server/@types/shared/models/OASysSupportingInformationQuestion.ts +++ b/server/@types/shared/models/OASysSupportingInformationQuestion.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type OASysSupportingInformationQuestion = { label: string; sectionNumber?: number; diff --git a/server/@types/shared/models/OfflineApplication.ts b/server/@types/shared/models/OfflineApplication.ts index 784aa8ac1..eb3ae13c7 100644 --- a/server/@types/shared/models/OfflineApplication.ts +++ b/server/@types/shared/models/OfflineApplication.ts @@ -2,8 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Application } from './Application'; - export type OfflineApplication = Application; diff --git a/server/@types/shared/models/OfflineApplicationSummary.ts b/server/@types/shared/models/OfflineApplicationSummary.ts index df5f0d86b..cba9bb1c4 100644 --- a/server/@types/shared/models/OfflineApplicationSummary.ts +++ b/server/@types/shared/models/OfflineApplicationSummary.ts @@ -2,8 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApplicationSummary } from './ApplicationSummary'; - export type OfflineApplicationSummary = ApplicationSummary; diff --git a/server/@types/shared/models/Person.ts b/server/@types/shared/models/Person.ts index 356e7459b..759bad9fa 100644 --- a/server/@types/shared/models/Person.ts +++ b/server/@types/shared/models/Person.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { PersonType } from './PersonType'; - export type Person = { crn: string; type: PersonType; diff --git a/server/@types/shared/models/PersonAcctAlert.ts b/server/@types/shared/models/PersonAcctAlert.ts index 096d67a6a..7d8f7846e 100644 --- a/server/@types/shared/models/PersonAcctAlert.ts +++ b/server/@types/shared/models/PersonAcctAlert.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PersonAcctAlert = { alertId: number; comment?: string; diff --git a/server/@types/shared/models/PersonRisks.ts b/server/@types/shared/models/PersonRisks.ts index 2f6700653..b61c41aeb 100644 --- a/server/@types/shared/models/PersonRisks.ts +++ b/server/@types/shared/models/PersonRisks.ts @@ -2,12 +2,10 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { FlagsEnvelope } from './FlagsEnvelope'; import type { MappaEnvelope } from './MappaEnvelope'; import type { RiskTierEnvelope } from './RiskTierEnvelope'; import type { RoshRisksEnvelope } from './RoshRisksEnvelope'; - export type PersonRisks = { crn: string; roshRisks: RoshRisksEnvelope; diff --git a/server/@types/shared/models/PersonStatus.ts b/server/@types/shared/models/PersonStatus.ts index 951beab9c..a45027112 100644 --- a/server/@types/shared/models/PersonStatus.ts +++ b/server/@types/shared/models/PersonStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PersonStatus = 'InCustody' | 'InCommunity' | 'Unknown'; diff --git a/server/@types/shared/models/PersonType.ts b/server/@types/shared/models/PersonType.ts index b9a32cf06..a25dcafdb 100644 --- a/server/@types/shared/models/PersonType.ts +++ b/server/@types/shared/models/PersonType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PersonType = 'FullPerson' | 'RestrictedPerson' | 'UnknownPerson' | 'FullPersonInfo' | 'RestrictedPersonInfo'; diff --git a/server/@types/shared/models/PlacementApplication.ts b/server/@types/shared/models/PlacementApplication.ts index b0a55cfde..7c09e80ad 100644 --- a/server/@types/shared/models/PlacementApplication.ts +++ b/server/@types/shared/models/PlacementApplication.ts @@ -2,10 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { NewPlacementApplication } from './NewPlacementApplication'; - +import type { WithdrawPlacementRequestReason } from './WithdrawPlacementRequestReason'; export type PlacementApplication = (NewPlacementApplication & { id: string; createdByUserId: string; @@ -18,6 +17,8 @@ export type PlacementApplication = (NewPlacementApplication & { applicationCompletedAt: string; data?: AnyValue; document?: AnyValue; - canBeWithdrawn?: boolean; + canBeWithdrawn: boolean; + isWithdrawn: boolean; + withdrawalReason?: WithdrawPlacementRequestReason; }); diff --git a/server/@types/shared/models/PlacementApplicationDecision.ts b/server/@types/shared/models/PlacementApplicationDecision.ts index 247a14da6..e574a5999 100644 --- a/server/@types/shared/models/PlacementApplicationDecision.ts +++ b/server/@types/shared/models/PlacementApplicationDecision.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PlacementApplicationDecision = 'accepted' | 'rejected' | 'withdraw' | 'withdrawn_by_pp'; diff --git a/server/@types/shared/models/PlacementApplicationDecisionEnvelope.ts b/server/@types/shared/models/PlacementApplicationDecisionEnvelope.ts index eaac23feb..db1ea8fc1 100644 --- a/server/@types/shared/models/PlacementApplicationDecisionEnvelope.ts +++ b/server/@types/shared/models/PlacementApplicationDecisionEnvelope.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { PlacementApplicationDecision } from './PlacementApplicationDecision'; - export type PlacementApplicationDecisionEnvelope = { decision: PlacementApplicationDecision; summaryOfChanges: string; diff --git a/server/@types/shared/models/PlacementApplicationTask.ts b/server/@types/shared/models/PlacementApplicationTask.ts index 1d99e66c2..19e1870c0 100644 --- a/server/@types/shared/models/PlacementApplicationTask.ts +++ b/server/@types/shared/models/PlacementApplicationTask.ts @@ -2,13 +2,11 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { PlacementDates } from './PlacementDates'; import type { PlacementType } from './PlacementType'; import type { ReleaseTypeOption } from './ReleaseTypeOption'; import type { RiskTierEnvelope } from './RiskTierEnvelope'; import type { Task } from './Task'; - export type PlacementApplicationTask = (Task & { tier: RiskTierEnvelope; releaseType: ReleaseTypeOption; diff --git a/server/@types/shared/models/PlacementCriteria.ts b/server/@types/shared/models/PlacementCriteria.ts index c2f1af4ee..5106284e4 100644 --- a/server/@types/shared/models/PlacementCriteria.ts +++ b/server/@types/shared/models/PlacementCriteria.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PlacementCriteria = 'isPIPE' | 'isESAP' | 'isSemiSpecialistMentalHealth' | 'isRecoveryFocussed' | 'hasBrailleSignage' | 'hasTactileFlooring' | 'hasHearingLoop' | 'isStepFreeDesignated' | 'isArsonDesignated' | 'isWheelchairDesignated' | 'isSingle' | 'isCatered' | 'isSuitedForSexOffenders' | 'isSuitableForVulnerable' | 'acceptsSexOffenders' | 'acceptsHateCrimeOffenders' | 'acceptsChildSexOffenders' | 'acceptsNonSexualChildOffenders' | 'isArsonSuitable' | 'isGroundFloor' | 'hasEnSuite'; diff --git a/server/@types/shared/models/PlacementDates.ts b/server/@types/shared/models/PlacementDates.ts index 5e56f91be..4964ddba2 100644 --- a/server/@types/shared/models/PlacementDates.ts +++ b/server/@types/shared/models/PlacementDates.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PlacementDates = { expectedArrival: string; duration: number; diff --git a/server/@types/shared/models/PlacementRequest.ts b/server/@types/shared/models/PlacementRequest.ts index 4656cc70d..164e4af0b 100644 --- a/server/@types/shared/models/PlacementRequest.ts +++ b/server/@types/shared/models/PlacementRequest.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApprovedPremisesUser } from './ApprovedPremisesUser'; import type { AssessmentDecision } from './AssessmentDecision'; import type { BookingSummary } from './BookingSummary'; @@ -13,7 +12,7 @@ import type { PlacementRequestRequestType } from './PlacementRequestRequestType' import type { PlacementRequestStatus } from './PlacementRequestStatus'; import type { PlacementRequirements } from './PlacementRequirements'; import type { ReleaseTypeOption } from './ReleaseTypeOption'; - +import type { WithdrawPlacementRequestReason } from './WithdrawPlacementRequestReason'; export type PlacementRequest = (PlacementRequirements & PlacementDates & { id: string; person: Person; @@ -30,5 +29,7 @@ export type PlacementRequest = (PlacementRequirements & PlacementDates & { notes?: string; booking?: BookingSummary; requestType?: PlacementRequestRequestType; + isWithdrawn: boolean; + withdrawalReason?: WithdrawPlacementRequestReason; }); diff --git a/server/@types/shared/models/PlacementRequestDetail.ts b/server/@types/shared/models/PlacementRequestDetail.ts index 8f4e54b37..45b4f93c5 100644 --- a/server/@types/shared/models/PlacementRequestDetail.ts +++ b/server/@types/shared/models/PlacementRequestDetail.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Application } from './Application'; import type { Cancellation } from './Cancellation'; import type { PlacementRequest } from './PlacementRequest'; - export type PlacementRequestDetail = (PlacementRequest & { cancellations: Array; application: Application; diff --git a/server/@types/shared/models/PlacementRequestRequestType.ts b/server/@types/shared/models/PlacementRequestRequestType.ts index 15dc1c53a..e82e65803 100644 --- a/server/@types/shared/models/PlacementRequestRequestType.ts +++ b/server/@types/shared/models/PlacementRequestRequestType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PlacementRequestRequestType = 'parole' | 'standardRelease'; diff --git a/server/@types/shared/models/PlacementRequestSortField.ts b/server/@types/shared/models/PlacementRequestSortField.ts index 1d6daef4c..999c0749e 100644 --- a/server/@types/shared/models/PlacementRequestSortField.ts +++ b/server/@types/shared/models/PlacementRequestSortField.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PlacementRequestSortField = 'duration' | 'expected_arrival' | 'created_at' | 'application_date' | 'request_type' | 'person_name' | 'person_risks_tier'; diff --git a/server/@types/shared/models/PlacementRequestStatus.ts b/server/@types/shared/models/PlacementRequestStatus.ts index 6b8094885..8cf1ba2c5 100644 --- a/server/@types/shared/models/PlacementRequestStatus.ts +++ b/server/@types/shared/models/PlacementRequestStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PlacementRequestStatus = 'notMatched' | 'unableToMatch' | 'matched'; diff --git a/server/@types/shared/models/PlacementRequestTask.ts b/server/@types/shared/models/PlacementRequestTask.ts index c60027e28..d9a1567a6 100644 --- a/server/@types/shared/models/PlacementRequestTask.ts +++ b/server/@types/shared/models/PlacementRequestTask.ts @@ -2,13 +2,11 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { PlacementDates } from './PlacementDates'; import type { PlacementRequestStatus } from './PlacementRequestStatus'; import type { ReleaseTypeOption } from './ReleaseTypeOption'; import type { RiskTierEnvelope } from './RiskTierEnvelope'; import type { Task } from './Task'; - export type PlacementRequestTask = (Task & PlacementDates & { tier: RiskTierEnvelope; releaseType: ReleaseTypeOption; diff --git a/server/@types/shared/models/PlacementRequirements.ts b/server/@types/shared/models/PlacementRequirements.ts index 2b672f927..dd7ed2b81 100644 --- a/server/@types/shared/models/PlacementRequirements.ts +++ b/server/@types/shared/models/PlacementRequirements.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApType } from './ApType'; import type { Gender } from './Gender'; import type { PlacementCriteria } from './PlacementCriteria'; - export type PlacementRequirements = { gender: Gender; type: ApType; diff --git a/server/@types/shared/models/PlacementType.ts b/server/@types/shared/models/PlacementType.ts index da22a0f3b..3411eb9fc 100644 --- a/server/@types/shared/models/PlacementType.ts +++ b/server/@types/shared/models/PlacementType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PlacementType = 'rotl' | 'release_following_decision' | 'additional_placement'; diff --git a/server/@types/shared/models/Premises.ts b/server/@types/shared/models/Premises.ts index 049723bba..34bfb6831 100644 --- a/server/@types/shared/models/Premises.ts +++ b/server/@types/shared/models/Premises.ts @@ -2,13 +2,11 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApArea } from './ApArea'; import type { Characteristic } from './Characteristic'; import type { LocalAuthorityArea } from './LocalAuthorityArea'; import type { ProbationRegion } from './ProbationRegion'; import type { PropertyStatus } from './PropertyStatus'; - export type Premises = { service: string; id: string; diff --git a/server/@types/shared/models/PremisesBooking.ts b/server/@types/shared/models/PremisesBooking.ts index 468d273be..d870fcb13 100644 --- a/server/@types/shared/models/PremisesBooking.ts +++ b/server/@types/shared/models/PremisesBooking.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Bed } from './Bed'; import type { BookingStatus } from './BookingStatus'; import type { Person } from './Person'; - export type PremisesBooking = { id?: string; arrivalDate?: string; diff --git a/server/@types/shared/models/PremisesSummary.ts b/server/@types/shared/models/PremisesSummary.ts index 9829bd202..be2c38da1 100644 --- a/server/@types/shared/models/PremisesSummary.ts +++ b/server/@types/shared/models/PremisesSummary.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { PropertyStatus } from './PropertyStatus'; - export type PremisesSummary = { service: string; id: string; diff --git a/server/@types/shared/models/PrisonCaseNote.ts b/server/@types/shared/models/PrisonCaseNote.ts index 9af60fce6..0ac6f0e85 100644 --- a/server/@types/shared/models/PrisonCaseNote.ts +++ b/server/@types/shared/models/PrisonCaseNote.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PrisonCaseNote = { id: string; sensitive: boolean; diff --git a/server/@types/shared/models/ProbationDeliveryUnit.ts b/server/@types/shared/models/ProbationDeliveryUnit.ts index edbb1544b..76eb2e3bb 100644 --- a/server/@types/shared/models/ProbationDeliveryUnit.ts +++ b/server/@types/shared/models/ProbationDeliveryUnit.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ProbationDeliveryUnit = { id: string; name: string; diff --git a/server/@types/shared/models/ProbationRegion.ts b/server/@types/shared/models/ProbationRegion.ts index 5068c1606..40983f6c6 100644 --- a/server/@types/shared/models/ProbationRegion.ts +++ b/server/@types/shared/models/ProbationRegion.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ProbationRegion = { id: string; name: string; diff --git a/server/@types/shared/models/Problem.ts b/server/@types/shared/models/Problem.ts index 8719fdb36..0a440016b 100644 --- a/server/@types/shared/models/Problem.ts +++ b/server/@types/shared/models/Problem.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Problem = { type?: string; title?: string; diff --git a/server/@types/shared/models/PropertyStatus.ts b/server/@types/shared/models/PropertyStatus.ts index 31705da6c..93e634538 100644 --- a/server/@types/shared/models/PropertyStatus.ts +++ b/server/@types/shared/models/PropertyStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type PropertyStatus = 'pending' | 'active' | 'archived'; diff --git a/server/@types/shared/models/Reallocation.ts b/server/@types/shared/models/Reallocation.ts index 36bb51be3..3424da222 100644 --- a/server/@types/shared/models/Reallocation.ts +++ b/server/@types/shared/models/Reallocation.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApprovedPremisesUser } from './ApprovedPremisesUser'; import type { TaskType } from './TaskType'; - export type Reallocation = { user: ApprovedPremisesUser; taskType: TaskType; diff --git a/server/@types/shared/models/ReferralHistoryNote.ts b/server/@types/shared/models/ReferralHistoryNote.ts index 1d432b546..f5e3ebc45 100644 --- a/server/@types/shared/models/ReferralHistoryNote.ts +++ b/server/@types/shared/models/ReferralHistoryNote.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ReferralHistoryNote = { id: string; createdAt: string; diff --git a/server/@types/shared/models/ReferralHistorySystemNote.ts b/server/@types/shared/models/ReferralHistorySystemNote.ts index 4255afd49..299755d95 100644 --- a/server/@types/shared/models/ReferralHistorySystemNote.ts +++ b/server/@types/shared/models/ReferralHistorySystemNote.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ReferralHistoryNote } from './ReferralHistoryNote'; - export type ReferralHistorySystemNote = (ReferralHistoryNote & { category: 'submitted' | 'unallocated' | 'in_review' | 'ready_to_place' | 'rejected' | 'completed'; }); diff --git a/server/@types/shared/models/ReferralHistoryUserNote.ts b/server/@types/shared/models/ReferralHistoryUserNote.ts index d1db7245c..10d04e114 100644 --- a/server/@types/shared/models/ReferralHistoryUserNote.ts +++ b/server/@types/shared/models/ReferralHistoryUserNote.ts @@ -2,8 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ReferralHistoryNote } from './ReferralHistoryNote'; - export type ReferralHistoryUserNote = ReferralHistoryNote; diff --git a/server/@types/shared/models/ReleaseTypeOption.ts b/server/@types/shared/models/ReleaseTypeOption.ts index 773e936b2..df5391288 100644 --- a/server/@types/shared/models/ReleaseTypeOption.ts +++ b/server/@types/shared/models/ReleaseTypeOption.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ReleaseTypeOption = 'licence' | 'rotl' | 'hdc' | 'pss' | 'in_community' | 'not_applicable' | 'extendedDeterminateLicence' | 'paroleDirectedLicence'; diff --git a/server/@types/shared/models/RestrictedPerson.ts b/server/@types/shared/models/RestrictedPerson.ts index 81772d88a..21e6d30b4 100644 --- a/server/@types/shared/models/RestrictedPerson.ts +++ b/server/@types/shared/models/RestrictedPerson.ts @@ -2,8 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Person } from './Person'; - export type RestrictedPerson = Person; diff --git a/server/@types/shared/models/RiskEnvelopeStatus.ts b/server/@types/shared/models/RiskEnvelopeStatus.ts index 3174f4121..55160eac7 100644 --- a/server/@types/shared/models/RiskEnvelopeStatus.ts +++ b/server/@types/shared/models/RiskEnvelopeStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type RiskEnvelopeStatus = 'retrieved' | 'not_found' | 'error'; diff --git a/server/@types/shared/models/RiskTier.ts b/server/@types/shared/models/RiskTier.ts index 470aba9e2..7a0bd556a 100644 --- a/server/@types/shared/models/RiskTier.ts +++ b/server/@types/shared/models/RiskTier.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type RiskTier = { level: string; lastUpdated: string; diff --git a/server/@types/shared/models/RiskTierEnvelope.ts b/server/@types/shared/models/RiskTierEnvelope.ts index f99159f65..ed7f5524d 100644 --- a/server/@types/shared/models/RiskTierEnvelope.ts +++ b/server/@types/shared/models/RiskTierEnvelope.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { RiskEnvelopeStatus } from './RiskEnvelopeStatus'; import type { RiskTier } from './RiskTier'; - export type RiskTierEnvelope = { status: RiskEnvelopeStatus; value?: RiskTier; diff --git a/server/@types/shared/models/RiskTierLevel.ts b/server/@types/shared/models/RiskTierLevel.ts index d5465844d..a0eda49f0 100644 --- a/server/@types/shared/models/RiskTierLevel.ts +++ b/server/@types/shared/models/RiskTierLevel.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type RiskTierLevel = 'D0' | 'D1' | 'D2' | 'D3' | 'C0' | 'C1' | 'C2' | 'C3' | 'B0' | 'B1' | 'B2' | 'B3' | 'A0' | 'A1' | 'A2' | 'A3'; diff --git a/server/@types/shared/models/Room.ts b/server/@types/shared/models/Room.ts index e2250efa6..30a38b5f3 100644 --- a/server/@types/shared/models/Room.ts +++ b/server/@types/shared/models/Room.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Bed } from './Bed'; import type { Characteristic } from './Characteristic'; - export type Room = { id: string; name: string; diff --git a/server/@types/shared/models/RoshRisks.ts b/server/@types/shared/models/RoshRisks.ts index 1ae7f04b9..99cd844fa 100644 --- a/server/@types/shared/models/RoshRisks.ts +++ b/server/@types/shared/models/RoshRisks.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type RoshRisks = { overallRisk: string; riskToChildren: string; diff --git a/server/@types/shared/models/RoshRisksEnvelope.ts b/server/@types/shared/models/RoshRisksEnvelope.ts index c81523928..1d5956192 100644 --- a/server/@types/shared/models/RoshRisksEnvelope.ts +++ b/server/@types/shared/models/RoshRisksEnvelope.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { RiskEnvelopeStatus } from './RiskEnvelopeStatus'; import type { RoshRisks } from './RoshRisks'; - export type RoshRisksEnvelope = { status: RiskEnvelopeStatus; value?: RoshRisks; diff --git a/server/@types/shared/models/SeedFileType.ts b/server/@types/shared/models/SeedFileType.ts index e93f1603c..470328d3a 100644 --- a/server/@types/shared/models/SeedFileType.ts +++ b/server/@types/shared/models/SeedFileType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - -export type SeedFileType = 'approved_premises' | 'approved_premises_rooms' | 'temporary_accommodation_premises' | 'temporary_accommodation_bedspace' | 'user' | 'nomis_users' | 'external_users' | 'cas2_applications' | 'temporary_accommodation_users' | 'approved_premises_users' | 'characteristics' | 'approved_premises_offline_applications' | 'approved_premises_bookings' | 'approved_premises_cancel_bookings'; +export type SeedFileType = 'approved_premises' | 'approved_premises_rooms' | 'temporary_accommodation_premises' | 'temporary_accommodation_bedspace' | 'user' | 'nomis_users' | 'external_users' | 'cas2_applications' | 'temporary_accommodation_users' | 'approved_premises_users' | 'characteristics' | 'approved_premises_offline_applications' | 'approved_premises_bookings' | 'approved_premises_cancel_bookings' | 'approved_premises_ap_area_email_addresses'; diff --git a/server/@types/shared/models/SeedRequest.ts b/server/@types/shared/models/SeedRequest.ts index 3a84e3a32..d5943d3ef 100644 --- a/server/@types/shared/models/SeedRequest.ts +++ b/server/@types/shared/models/SeedRequest.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { SeedFileType } from './SeedFileType'; - export type SeedRequest = { seedType: SeedFileType; fileName: string; diff --git a/server/@types/shared/models/SentenceTypeOption.ts b/server/@types/shared/models/SentenceTypeOption.ts index 396c9a18e..3d94e9fa2 100644 --- a/server/@types/shared/models/SentenceTypeOption.ts +++ b/server/@types/shared/models/SentenceTypeOption.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type SentenceTypeOption = 'standardDeterminate' | 'life' | 'ipp' | 'extendedDeterminate' | 'communityOrder' | 'bailPlacement' | 'nonStatutory'; diff --git a/server/@types/shared/models/ServiceName.ts b/server/@types/shared/models/ServiceName.ts index 3c5005e80..279f91ec9 100644 --- a/server/@types/shared/models/ServiceName.ts +++ b/server/@types/shared/models/ServiceName.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type ServiceName = 'approved-premises' | 'cas2' | 'temporary-accommodation'; diff --git a/server/@types/shared/models/SituationOption.ts b/server/@types/shared/models/SituationOption.ts index c91a83219..e493f8400 100644 --- a/server/@types/shared/models/SituationOption.ts +++ b/server/@types/shared/models/SituationOption.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type SituationOption = 'riskManagement' | 'residencyManagement' | 'bailAssessment' | 'bailSentence'; diff --git a/server/@types/shared/models/SortDirection.ts b/server/@types/shared/models/SortDirection.ts index 8accc14ce..2ae1ab2cb 100644 --- a/server/@types/shared/models/SortDirection.ts +++ b/server/@types/shared/models/SortDirection.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type SortDirection = 'asc' | 'desc'; diff --git a/server/@types/shared/models/SortOrder.ts b/server/@types/shared/models/SortOrder.ts index fb44ab1a7..a88096e38 100644 --- a/server/@types/shared/models/SortOrder.ts +++ b/server/@types/shared/models/SortOrder.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type SortOrder = 'ascending' | 'descending'; diff --git a/server/@types/shared/models/StaffMember.ts b/server/@types/shared/models/StaffMember.ts index 183c13a00..1f76ccbb6 100644 --- a/server/@types/shared/models/StaffMember.ts +++ b/server/@types/shared/models/StaffMember.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type StaffMember = { code: string; keyWorker: boolean; diff --git a/server/@types/shared/models/SubmitApplication.ts b/server/@types/shared/models/SubmitApplication.ts index cf9475ed7..32b509531 100644 --- a/server/@types/shared/models/SubmitApplication.ts +++ b/server/@types/shared/models/SubmitApplication.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; - export type SubmitApplication = { type: string; translatedDocument: AnyValue; diff --git a/server/@types/shared/models/SubmitApprovedPremisesApplication.ts b/server/@types/shared/models/SubmitApprovedPremisesApplication.ts index 22341c3d6..3e39f76c2 100644 --- a/server/@types/shared/models/SubmitApprovedPremisesApplication.ts +++ b/server/@types/shared/models/SubmitApprovedPremisesApplication.ts @@ -2,12 +2,10 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ReleaseTypeOption } from './ReleaseTypeOption'; import type { SentenceTypeOption } from './SentenceTypeOption'; import type { SituationOption } from './SituationOption'; import type { SubmitApplication } from './SubmitApplication'; - export type SubmitApprovedPremisesApplication = (SubmitApplication & { isPipeApplication: boolean; isWomensApplication: boolean; diff --git a/server/@types/shared/models/SubmitCas2Application.ts b/server/@types/shared/models/SubmitCas2Application.ts index 1de0453d6..8cb7f0e19 100644 --- a/server/@types/shared/models/SubmitCas2Application.ts +++ b/server/@types/shared/models/SubmitCas2Application.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; - export type SubmitCas2Application = { translatedDocument: AnyValue; /** diff --git a/server/@types/shared/models/SubmitPlacementApplication.ts b/server/@types/shared/models/SubmitPlacementApplication.ts index bac902822..910eff294 100644 --- a/server/@types/shared/models/SubmitPlacementApplication.ts +++ b/server/@types/shared/models/SubmitPlacementApplication.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { PlacementDates } from './PlacementDates'; import type { PlacementType } from './PlacementType'; - export type SubmitPlacementApplication = { translatedDocument: AnyValue; placementType: PlacementType; diff --git a/server/@types/shared/models/SubmitTemporaryAccommodationApplication.ts b/server/@types/shared/models/SubmitTemporaryAccommodationApplication.ts index c78d1a203..b28a80cb5 100644 --- a/server/@types/shared/models/SubmitTemporaryAccommodationApplication.ts +++ b/server/@types/shared/models/SubmitTemporaryAccommodationApplication.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { SubmitApplication } from './SubmitApplication'; - export type SubmitTemporaryAccommodationApplication = (SubmitApplication & { arrivalDate: string; isRegisteredSexOffender?: boolean; diff --git a/server/@types/shared/models/SupervisingOfficer.ts b/server/@types/shared/models/SupervisingOfficer.ts index 0770b6d5f..bce7c0250 100644 --- a/server/@types/shared/models/SupervisingOfficer.ts +++ b/server/@types/shared/models/SupervisingOfficer.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type SupervisingOfficer = { id: string; name: string; diff --git a/server/@types/shared/models/SupervisingProvider.ts b/server/@types/shared/models/SupervisingProvider.ts index 5617b5c50..71bbd6c9e 100644 --- a/server/@types/shared/models/SupervisingProvider.ts +++ b/server/@types/shared/models/SupervisingProvider.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type SupervisingProvider = { id: string; name: string; diff --git a/server/@types/shared/models/SupervisingTeam.ts b/server/@types/shared/models/SupervisingTeam.ts index 0d16d0418..93ff0c90b 100644 --- a/server/@types/shared/models/SupervisingTeam.ts +++ b/server/@types/shared/models/SupervisingTeam.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type SupervisingTeam = { id: string; name: string; diff --git a/server/@types/shared/models/Task.ts b/server/@types/shared/models/Task.ts index f7e2f0a4c..60825edf1 100644 --- a/server/@types/shared/models/Task.ts +++ b/server/@types/shared/models/Task.ts @@ -2,11 +2,10 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - +import type { ApArea } from './ApArea'; import type { ApprovedPremisesUser } from './ApprovedPremisesUser'; import type { TaskStatus } from './TaskStatus'; import type { TaskType } from './TaskType'; - export type Task = { taskType: TaskType; id: string; @@ -16,5 +15,6 @@ export type Task = { dueDate: string; allocatedToStaffMember?: ApprovedPremisesUser; status: TaskStatus; + apArea?: ApArea; }; diff --git a/server/@types/shared/models/TaskSortField.ts b/server/@types/shared/models/TaskSortField.ts index 7a6bf863a..3988fbe32 100644 --- a/server/@types/shared/models/TaskSortField.ts +++ b/server/@types/shared/models/TaskSortField.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type TaskSortField = 'createdAt'; diff --git a/server/@types/shared/models/TaskStatus.ts b/server/@types/shared/models/TaskStatus.ts index 160574665..da35dfbe5 100644 --- a/server/@types/shared/models/TaskStatus.ts +++ b/server/@types/shared/models/TaskStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type TaskStatus = 'not_started' | 'in_progress' | 'complete'; diff --git a/server/@types/shared/models/TaskType.ts b/server/@types/shared/models/TaskType.ts index c5239acd2..b118da4eb 100644 --- a/server/@types/shared/models/TaskType.ts +++ b/server/@types/shared/models/TaskType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type TaskType = 'Assessment' | 'PlacementRequest' | 'PlacementApplication' | 'BookingAppeal'; diff --git a/server/@types/shared/models/TaskWrapper.ts b/server/@types/shared/models/TaskWrapper.ts index f6acb29a6..b00bf0194 100644 --- a/server/@types/shared/models/TaskWrapper.ts +++ b/server/@types/shared/models/TaskWrapper.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Task } from './Task'; import type { UserWithWorkload } from './UserWithWorkload'; - export type TaskWrapper = { task: Task; users: Array; diff --git a/server/@types/shared/models/TemporaryAccommodationApplication.ts b/server/@types/shared/models/TemporaryAccommodationApplication.ts index a6035c706..9f749944f 100644 --- a/server/@types/shared/models/TemporaryAccommodationApplication.ts +++ b/server/@types/shared/models/TemporaryAccommodationApplication.ts @@ -2,12 +2,10 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { Application } from './Application'; import type { ApplicationStatus } from './ApplicationStatus'; import type { PersonRisks } from './PersonRisks'; - export type TemporaryAccommodationApplication = (Application & { createdByUserId: string; schemaVersion: string; diff --git a/server/@types/shared/models/TemporaryAccommodationApplicationSummary.ts b/server/@types/shared/models/TemporaryAccommodationApplicationSummary.ts index 2b8c2062a..70115381d 100644 --- a/server/@types/shared/models/TemporaryAccommodationApplicationSummary.ts +++ b/server/@types/shared/models/TemporaryAccommodationApplicationSummary.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApplicationStatus } from './ApplicationStatus'; import type { ApplicationSummary } from './ApplicationSummary'; import type { PersonRisks } from './PersonRisks'; - export type TemporaryAccommodationApplicationSummary = (ApplicationSummary & { createdByUserId: string; status: ApplicationStatus; diff --git a/server/@types/shared/models/TemporaryAccommodationAssessment.ts b/server/@types/shared/models/TemporaryAccommodationAssessment.ts index f06c6db9c..d8837faa7 100644 --- a/server/@types/shared/models/TemporaryAccommodationAssessment.ts +++ b/server/@types/shared/models/TemporaryAccommodationAssessment.ts @@ -2,13 +2,11 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { Assessment } from './Assessment'; import type { TemporaryAccommodationApplication } from './TemporaryAccommodationApplication'; import type { TemporaryAccommodationAssessmentStatus } from './TemporaryAccommodationAssessmentStatus'; import type { TemporaryAccommodationUser } from './TemporaryAccommodationUser'; - export type TemporaryAccommodationAssessment = (Assessment & { application: TemporaryAccommodationApplication; allocatedToStaffMember?: TemporaryAccommodationUser; diff --git a/server/@types/shared/models/TemporaryAccommodationAssessmentStatus.ts b/server/@types/shared/models/TemporaryAccommodationAssessmentStatus.ts index 8d0b3527c..6d809aa07 100644 --- a/server/@types/shared/models/TemporaryAccommodationAssessmentStatus.ts +++ b/server/@types/shared/models/TemporaryAccommodationAssessmentStatus.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type TemporaryAccommodationAssessmentStatus = 'unallocated' | 'in_review' | 'ready_to_place' | 'closed' | 'rejected'; diff --git a/server/@types/shared/models/TemporaryAccommodationAssessmentSummary.ts b/server/@types/shared/models/TemporaryAccommodationAssessmentSummary.ts index ce7b7ba8b..70782c1a5 100644 --- a/server/@types/shared/models/TemporaryAccommodationAssessmentSummary.ts +++ b/server/@types/shared/models/TemporaryAccommodationAssessmentSummary.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AssessmentSummary } from './AssessmentSummary'; import type { TemporaryAccommodationAssessmentStatus } from './TemporaryAccommodationAssessmentStatus'; - export type TemporaryAccommodationAssessmentSummary = (AssessmentSummary & { status: TemporaryAccommodationAssessmentStatus; }); diff --git a/server/@types/shared/models/TemporaryAccommodationBedSearchParameters.ts b/server/@types/shared/models/TemporaryAccommodationBedSearchParameters.ts index 6c150ec1d..08be4f0ca 100644 --- a/server/@types/shared/models/TemporaryAccommodationBedSearchParameters.ts +++ b/server/@types/shared/models/TemporaryAccommodationBedSearchParameters.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedSearchParameters } from './BedSearchParameters'; - export type TemporaryAccommodationBedSearchParameters = (BedSearchParameters & { /** * The pdu to search within diff --git a/server/@types/shared/models/TemporaryAccommodationBedSearchResult.ts b/server/@types/shared/models/TemporaryAccommodationBedSearchResult.ts index b9e6c39c7..3d2e3d322 100644 --- a/server/@types/shared/models/TemporaryAccommodationBedSearchResult.ts +++ b/server/@types/shared/models/TemporaryAccommodationBedSearchResult.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { BedSearchResult } from './BedSearchResult'; import type { TemporaryAccommodationBedSearchResultOverlap } from './TemporaryAccommodationBedSearchResultOverlap'; - export type TemporaryAccommodationBedSearchResult = (BedSearchResult & { overlaps: Array; }); diff --git a/server/@types/shared/models/TemporaryAccommodationBedSearchResultOverlap.ts b/server/@types/shared/models/TemporaryAccommodationBedSearchResultOverlap.ts index be0e1ad86..558940efb 100644 --- a/server/@types/shared/models/TemporaryAccommodationBedSearchResultOverlap.ts +++ b/server/@types/shared/models/TemporaryAccommodationBedSearchResultOverlap.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type TemporaryAccommodationBedSearchResultOverlap = { crn: string; days: number; diff --git a/server/@types/shared/models/TemporaryAccommodationPremises.ts b/server/@types/shared/models/TemporaryAccommodationPremises.ts index c5d6fd000..dfb64ed4e 100644 --- a/server/@types/shared/models/TemporaryAccommodationPremises.ts +++ b/server/@types/shared/models/TemporaryAccommodationPremises.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Premises } from './Premises'; import type { ProbationDeliveryUnit } from './ProbationDeliveryUnit'; - export type TemporaryAccommodationPremises = (Premises & { pdu?: string; probationDeliveryUnit?: ProbationDeliveryUnit; diff --git a/server/@types/shared/models/TemporaryAccommodationPremisesSummary.ts b/server/@types/shared/models/TemporaryAccommodationPremisesSummary.ts index c6a017d14..4a565df55 100644 --- a/server/@types/shared/models/TemporaryAccommodationPremisesSummary.ts +++ b/server/@types/shared/models/TemporaryAccommodationPremisesSummary.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { PremisesSummary } from './PremisesSummary'; - export type TemporaryAccommodationPremisesSummary = (PremisesSummary & { pdu?: string; localAuthorityAreaName?: string; diff --git a/server/@types/shared/models/TemporaryAccommodationUser.ts b/server/@types/shared/models/TemporaryAccommodationUser.ts index 05f58a450..02599e4ff 100644 --- a/server/@types/shared/models/TemporaryAccommodationUser.ts +++ b/server/@types/shared/models/TemporaryAccommodationUser.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { TemporaryAccommodationUserRole } from './TemporaryAccommodationUserRole'; import type { User } from './User'; - export type TemporaryAccommodationUser = (User & { roles: Array; }); diff --git a/server/@types/shared/models/TemporaryAccommodationUserRole.ts b/server/@types/shared/models/TemporaryAccommodationUserRole.ts index c1ce859f7..27d2161c3 100644 --- a/server/@types/shared/models/TemporaryAccommodationUserRole.ts +++ b/server/@types/shared/models/TemporaryAccommodationUserRole.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type TemporaryAccommodationUserRole = 'assessor' | 'referrer' | 'reporter'; diff --git a/server/@types/shared/models/TimelineEvent.ts b/server/@types/shared/models/TimelineEvent.ts index 847b3266d..df8d30593 100644 --- a/server/@types/shared/models/TimelineEvent.ts +++ b/server/@types/shared/models/TimelineEvent.ts @@ -2,11 +2,9 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { TimelineEventAssociatedUrl } from './TimelineEventAssociatedUrl'; import type { TimelineEventType } from './TimelineEventType'; import type { User } from './User'; - export type TimelineEvent = { type?: TimelineEventType; id?: string; diff --git a/server/@types/shared/models/TimelineEventAssociatedUrl.ts b/server/@types/shared/models/TimelineEventAssociatedUrl.ts index 2a6c847d9..08c55c7cd 100644 --- a/server/@types/shared/models/TimelineEventAssociatedUrl.ts +++ b/server/@types/shared/models/TimelineEventAssociatedUrl.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { TimelineEventUrlType } from './TimelineEventUrlType'; - export type TimelineEventAssociatedUrl = { type: TimelineEventUrlType; url: string; diff --git a/server/@types/shared/models/TimelineEventType.ts b/server/@types/shared/models/TimelineEventType.ts index 41eb1aed9..009f4376d 100644 --- a/server/@types/shared/models/TimelineEventType.ts +++ b/server/@types/shared/models/TimelineEventType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - -export type TimelineEventType = 'approved_premises_application_submitted' | 'approved_premises_application_assessed' | 'approved_premises_booking_made' | 'approved_premises_person_arrived' | 'approved_premises_person_not_arrived' | 'approved_premises_person_departed' | 'approved_premises_booking_not_made' | 'approved_premises_booking_cancelled' | 'approved_premises_booking_changed' | 'approved_premises_application_withdrawn' | 'approved_premises_information_request' | 'cas3_person_arrived' | 'cas3_person_departed' | 'application_timeline_note'; +export type TimelineEventType = 'approved_premises_application_submitted' | 'approved_premises_application_assessed' | 'approved_premises_booking_made' | 'approved_premises_person_arrived' | 'approved_premises_person_not_arrived' | 'approved_premises_person_departed' | 'approved_premises_booking_not_made' | 'approved_premises_booking_cancelled' | 'approved_premises_booking_changed' | 'approved_premises_application_withdrawn' | 'approved_premises_information_request' | 'approved_premises_assessment_appealed' | 'approved_premises_placement_application_withdrawn' | 'cas3_person_arrived' | 'cas3_person_departed' | 'application_timeline_note' | 'cas2_application_submitted' | 'cas2_note' | 'cas2_status_update'; diff --git a/server/@types/shared/models/TimelineEventUrlType.ts b/server/@types/shared/models/TimelineEventUrlType.ts index 91f896925..b06ddfaa2 100644 --- a/server/@types/shared/models/TimelineEventUrlType.ts +++ b/server/@types/shared/models/TimelineEventUrlType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - -export type TimelineEventUrlType = 'application' | 'booking' | 'assessment'; +export type TimelineEventUrlType = 'application' | 'booking' | 'assessment' | 'assessmentAppeal'; diff --git a/server/@types/shared/models/Turnaround.ts b/server/@types/shared/models/Turnaround.ts index fe2e12fe1..8e3f1fdcc 100644 --- a/server/@types/shared/models/Turnaround.ts +++ b/server/@types/shared/models/Turnaround.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type Turnaround = { id: string; bookingId: string; diff --git a/server/@types/shared/models/UnknownPerson.ts b/server/@types/shared/models/UnknownPerson.ts index 8d99956d4..5474a144b 100644 --- a/server/@types/shared/models/UnknownPerson.ts +++ b/server/@types/shared/models/UnknownPerson.ts @@ -2,8 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { Person } from './Person'; - export type UnknownPerson = Person; diff --git a/server/@types/shared/models/UpdateApplication.ts b/server/@types/shared/models/UpdateApplication.ts index daf2b8ae8..a5ed7ba84 100644 --- a/server/@types/shared/models/UpdateApplication.ts +++ b/server/@types/shared/models/UpdateApplication.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; import type { UpdateApplicationType } from './UpdateApplicationType'; - export type UpdateApplication = { type: UpdateApplicationType; data: Record; diff --git a/server/@types/shared/models/UpdateApplicationType.ts b/server/@types/shared/models/UpdateApplicationType.ts index 461f6dcc7..c76c5a1b4 100644 --- a/server/@types/shared/models/UpdateApplicationType.ts +++ b/server/@types/shared/models/UpdateApplicationType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type UpdateApplicationType = 'CAS1' | 'CAS2' | 'CAS3'; diff --git a/server/@types/shared/models/UpdateApprovedPremisesApplication.ts b/server/@types/shared/models/UpdateApprovedPremisesApplication.ts index 4f08f17fc..04fcf696c 100644 --- a/server/@types/shared/models/UpdateApprovedPremisesApplication.ts +++ b/server/@types/shared/models/UpdateApprovedPremisesApplication.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ReleaseTypeOption } from './ReleaseTypeOption'; import type { UpdateApplication } from './UpdateApplication'; - export type UpdateApprovedPremisesApplication = (UpdateApplication & { isInapplicable?: boolean; isWomensApplication?: boolean; diff --git a/server/@types/shared/models/UpdateAssessment.ts b/server/@types/shared/models/UpdateAssessment.ts index 40a83844f..895cbb7d4 100644 --- a/server/@types/shared/models/UpdateAssessment.ts +++ b/server/@types/shared/models/UpdateAssessment.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; - export type UpdateAssessment = { data: Record; }; diff --git a/server/@types/shared/models/UpdateCas2Application.ts b/server/@types/shared/models/UpdateCas2Application.ts index d0c7bab57..56916ef95 100644 --- a/server/@types/shared/models/UpdateCas2Application.ts +++ b/server/@types/shared/models/UpdateCas2Application.ts @@ -2,8 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { UpdateApplication } from './UpdateApplication'; - export type UpdateCas2Application = UpdateApplication; diff --git a/server/@types/shared/models/UpdateLostBed.ts b/server/@types/shared/models/UpdateLostBed.ts index 6af7dcd68..0325f0cc4 100644 --- a/server/@types/shared/models/UpdateLostBed.ts +++ b/server/@types/shared/models/UpdateLostBed.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type UpdateLostBed = { startDate: string; endDate: string; diff --git a/server/@types/shared/models/UpdatePlacementApplication.ts b/server/@types/shared/models/UpdatePlacementApplication.ts index 4770d11bd..3791ec736 100644 --- a/server/@types/shared/models/UpdatePlacementApplication.ts +++ b/server/@types/shared/models/UpdatePlacementApplication.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { AnyValue } from './AnyValue'; - export type UpdatePlacementApplication = { data: Record; }; diff --git a/server/@types/shared/models/UpdatePremises.ts b/server/@types/shared/models/UpdatePremises.ts index bae8c5e96..391b78c69 100644 --- a/server/@types/shared/models/UpdatePremises.ts +++ b/server/@types/shared/models/UpdatePremises.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { PropertyStatus } from './PropertyStatus'; - export type UpdatePremises = { addressLine1: string; addressLine2?: string; diff --git a/server/@types/shared/models/UpdateRoom.ts b/server/@types/shared/models/UpdateRoom.ts index 732bd32a0..8ede5ca19 100644 --- a/server/@types/shared/models/UpdateRoom.ts +++ b/server/@types/shared/models/UpdateRoom.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type UpdateRoom = { notes?: string; characteristicIds: Array; diff --git a/server/@types/shared/models/UpdateTemporaryAccommodationApplication.ts b/server/@types/shared/models/UpdateTemporaryAccommodationApplication.ts index f202e814a..eb1b55551 100644 --- a/server/@types/shared/models/UpdateTemporaryAccommodationApplication.ts +++ b/server/@types/shared/models/UpdateTemporaryAccommodationApplication.ts @@ -2,8 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { UpdateApplication } from './UpdateApplication'; - export type UpdateTemporaryAccommodationApplication = UpdateApplication; diff --git a/server/@types/shared/models/UpdatedClarificationNote.ts b/server/@types/shared/models/UpdatedClarificationNote.ts index 03cb88dfd..4c45803a5 100644 --- a/server/@types/shared/models/UpdatedClarificationNote.ts +++ b/server/@types/shared/models/UpdatedClarificationNote.ts @@ -2,7 +2,6 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type UpdatedClarificationNote = { response: string; responseReceivedOn: string; diff --git a/server/@types/shared/models/User.ts b/server/@types/shared/models/User.ts index 20886bca8..5dd53fd24 100644 --- a/server/@types/shared/models/User.ts +++ b/server/@types/shared/models/User.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ProbationRegion } from './ProbationRegion'; - export type User = { service: string; id: string; diff --git a/server/@types/shared/models/UserQualification.ts b/server/@types/shared/models/UserQualification.ts index ced535740..ee0eacb92 100644 --- a/server/@types/shared/models/UserQualification.ts +++ b/server/@types/shared/models/UserQualification.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type UserQualification = 'womens' | 'pipe' | 'lao' | 'emergency' | 'esap'; diff --git a/server/@types/shared/models/UserRolesAndQualifications.ts b/server/@types/shared/models/UserRolesAndQualifications.ts index fff84b99a..7b5acb06c 100644 --- a/server/@types/shared/models/UserRolesAndQualifications.ts +++ b/server/@types/shared/models/UserRolesAndQualifications.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { ApprovedPremisesUserRole } from './ApprovedPremisesUserRole'; import type { UserQualification } from './UserQualification'; - export type UserRolesAndQualifications = { roles: Array; qualifications: Array; diff --git a/server/@types/shared/models/UserSortField.ts b/server/@types/shared/models/UserSortField.ts index e0f9638e7..85eb33e62 100644 --- a/server/@types/shared/models/UserSortField.ts +++ b/server/@types/shared/models/UserSortField.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type UserSortField = 'name'; diff --git a/server/@types/shared/models/UserWithWorkload.ts b/server/@types/shared/models/UserWithWorkload.ts index 87eb45349..75b491a9e 100644 --- a/server/@types/shared/models/UserWithWorkload.ts +++ b/server/@types/shared/models/UserWithWorkload.ts @@ -2,16 +2,16 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - +import type { ApArea } from './ApArea'; import type { ApprovedPremisesUserRole } from './ApprovedPremisesUserRole'; import type { User } from './User'; import type { UserQualification } from './UserQualification'; - export type UserWithWorkload = (User & { numTasksPending?: number; numTasksCompleted7Days?: number; numTasksCompleted30Days?: number; qualifications?: Array; roles?: Array; + apArea?: ApArea; }); diff --git a/server/@types/shared/models/ValidationError.ts b/server/@types/shared/models/ValidationError.ts index eae63c8e9..857d480d3 100644 --- a/server/@types/shared/models/ValidationError.ts +++ b/server/@types/shared/models/ValidationError.ts @@ -2,10 +2,8 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { InvalidParam } from './InvalidParam'; import type { Problem } from './Problem'; - export type ValidationError = (Problem & { 'invalid-params'?: Array; }); diff --git a/server/@types/shared/models/WithdrawPlacementApplication.ts b/server/@types/shared/models/WithdrawPlacementApplication.ts index fd3b29ae6..ba3b79b54 100644 --- a/server/@types/shared/models/WithdrawPlacementApplication.ts +++ b/server/@types/shared/models/WithdrawPlacementApplication.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { WithdrawPlacementRequestReason } from './WithdrawPlacementRequestReason'; - export type WithdrawPlacementApplication = { reason: WithdrawPlacementRequestReason; }; diff --git a/server/@types/shared/models/WithdrawPlacementRequest.ts b/server/@types/shared/models/WithdrawPlacementRequest.ts index 25b35ca5e..5238b69ea 100644 --- a/server/@types/shared/models/WithdrawPlacementRequest.ts +++ b/server/@types/shared/models/WithdrawPlacementRequest.ts @@ -2,9 +2,7 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { WithdrawPlacementRequestReason } from './WithdrawPlacementRequestReason'; - export type WithdrawPlacementRequest = { reason: WithdrawPlacementRequestReason; }; diff --git a/server/@types/shared/models/WithdrawPlacementRequestReason.ts b/server/@types/shared/models/WithdrawPlacementRequestReason.ts index 30dda80d9..b62445af2 100644 --- a/server/@types/shared/models/WithdrawPlacementRequestReason.ts +++ b/server/@types/shared/models/WithdrawPlacementRequestReason.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - -export type WithdrawPlacementRequestReason = 'DuplicatePlacementRequest' | 'AlternativeProvisionIdentified' | 'ChangeInCircumstances' | 'ChangeInReleaseDecision' | 'NoCapacityDueToLostBed' | 'NoCapacityDueToPlacementPrioritisation' | 'NoCapacity' | 'ErrorInPlacementRequest'; +export type WithdrawPlacementRequestReason = 'DuplicatePlacementRequest' | 'AlternativeProvisionIdentified' | 'ChangeInCircumstances' | 'ChangeInReleaseDecision' | 'NoCapacityDueToLostBed' | 'NoCapacityDueToPlacementPrioritisation' | 'NoCapacity' | 'ErrorInPlacementRequest' | 'WithdrawnByPP' | 'RelatedApplicationWithdrawn' | 'RelatedPlacementRequestWithdrawn' | 'RelatedPlacementApplicationWithdrawn'; diff --git a/server/@types/shared/models/Withdrawable.ts b/server/@types/shared/models/Withdrawable.ts index 827be755f..3f22cd268 100644 --- a/server/@types/shared/models/Withdrawable.ts +++ b/server/@types/shared/models/Withdrawable.ts @@ -2,13 +2,14 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - import type { DatePeriod } from './DatePeriod'; import type { WithdrawableType } from './WithdrawableType'; - export type Withdrawable = { id: string; type: WithdrawableType; + /** + * 0, 1 or more dates can be specified depending upon the WithdrawableType + */ dates: Array; }; diff --git a/server/@types/shared/models/WithdrawableType.ts b/server/@types/shared/models/WithdrawableType.ts index e699fd950..7e3d76252 100644 --- a/server/@types/shared/models/WithdrawableType.ts +++ b/server/@types/shared/models/WithdrawableType.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - -export type WithdrawableType = 'placement_request' | 'placement_application' | 'booking'; +export type WithdrawableType = 'application' | 'booking' | 'placement_application' | 'placement_request'; diff --git a/server/@types/shared/models/WithdrawalReason.ts b/server/@types/shared/models/WithdrawalReason.ts index cc6a684af..a2c3419f0 100644 --- a/server/@types/shared/models/WithdrawalReason.ts +++ b/server/@types/shared/models/WithdrawalReason.ts @@ -2,5 +2,4 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ - export type WithdrawalReason = 'change_in_circumstances_new_application_to_be_submitted' | 'error_in_application' | 'duplicate_application' | 'death' | 'other_accommodation_identified' | 'other';