-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating hmpps-approved-premises-api models from OpenAPI specification (
#1008) Co-authored-by: communityaccommodationtypegen[bot] <communityaccommodationtypegen[bot]@users.noreply.github.com>
- Loading branch information
1 parent
34b790a
commit 1610cd7
Showing
25 changed files
with
194 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
server/@types/shared/models/ApprovedPremisesUserPermission.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type ApprovedPremisesUserPermission = 'cas1_view_assigned_assessments' | 'cas1_process_an_appeal' | 'cas1_assess_placement_application' | 'cas1_assess_placement_request' | 'cas1_assess_application' | 'cas1_assess_appealed_application'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
server/@types/shared/models/Cas1PremisesSearchResultSummary.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { ApType } from './ApType'; | ||
import type { CharacteristicPair } from './CharacteristicPair'; | ||
import type { NamedId } from './NamedId'; | ||
export type Cas1PremisesSearchResultSummary = { | ||
id?: string; | ||
apCode?: string; | ||
deliusQCode?: string; | ||
apType?: ApType; | ||
name?: string; | ||
addressLine1?: string; | ||
addressLine2?: string; | ||
town?: string; | ||
postcode?: string; | ||
apArea?: NamedId; | ||
/** | ||
* The total number of spaces in this premises | ||
*/ | ||
totalSpaceCount?: number; | ||
premisesCharacteristics?: Array<CharacteristicPair>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { Cas1SpaceCharacteristic } from './Cas1SpaceCharacteristic'; | ||
export type Cas1SpaceAvailability = { | ||
spaceCharacteristics?: Array<Cas1SpaceCharacteristic>; | ||
durationInDays?: number; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { Cas1SpaceBookingRequirements } from './Cas1SpaceBookingRequirements'; | ||
import type { NamedId } from './NamedId'; | ||
import type { Person } from './Person'; | ||
import type { User } from './User'; | ||
export type Cas1SpaceBooking = { | ||
id: string; | ||
person: Person; | ||
requirements: Cas1SpaceBookingRequirements; | ||
premises: NamedId; | ||
apArea: NamedId; | ||
bookedBy: User; | ||
arrivalDate: string; | ||
departureDate: string; | ||
createdAt: string; | ||
}; | ||
|
14 changes: 14 additions & 0 deletions
14
server/@types/shared/models/Cas1SpaceBookingRequirements.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { ApType } from './ApType'; | ||
import type { Cas1SpaceCharacteristic } from './Cas1SpaceCharacteristic'; | ||
import type { Gender } from './Gender'; | ||
export type Cas1SpaceBookingRequirements = { | ||
apType: ApType; | ||
essentialCharacteristics?: Array<Cas1SpaceCharacteristic>; | ||
desirableCharacteristics?: Array<Cas1SpaceCharacteristic>; | ||
gender: Gender; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Spaces are categorised by these traits - 'standard' plus selected physcial and risk characteristics | ||
*/ | ||
export type Cas1SpaceCategory = 'standard' | 'arson' | 'wheelchair' | 'sexOffender' | 'enSuite' | 'single'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* All of the characteristics of both premises and rooms | ||
*/ | ||
export type Cas1SpaceCharacteristic = 'acceptsChildSexOffenders' | 'acceptsHateCrimeOffenders' | 'acceptsNonSexualChildOffenders' | 'acceptsSexOffenders' | 'hasArsonInsuranceConditions' | 'hasBrailleSignage' | 'hasCallForAssistance' | 'hasCrib7Bedding' | 'hasEnSuite' | 'hasFixedMobilityAids' | 'hasHearingLoop' | 'hasLift' | 'hasNearbySprinkler' | 'hasSmokeDetector' | 'hasStepFreeAccess' | 'hasStepFreeAccessToCommunalAreas' | 'hasTactileFlooring' | 'hasTurningSpace' | 'hasWheelChairAccessibleBathrooms' | 'hasWideAccessToCommunalAreas' | 'hasWideDoor' | 'hasWideStepFreeAccess' | 'isArsonDesignated' | 'isArsonSuitable' | 'isCatered' | 'isFullyFm' | 'isGroundFloor' | 'isGroundFloorNrOffice' | 'isIAP' | 'isSingle' | 'isStepFreeDesignated' | 'isSuitableForVulnerable' | 'isSuitedForSexOffenders' | 'isTopFloorVulnerable' | 'isWheelchairAccessible' | 'isWheelchairDesignated'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { Cas1SpaceSearchRequirements } from './Cas1SpaceSearchRequirements'; | ||
export type Cas1SpaceSearchParameters = { | ||
/** | ||
* The date the space is required from | ||
*/ | ||
startDate: string; | ||
/** | ||
* The number of days the space is needed, from the start date | ||
*/ | ||
durationInDays: number; | ||
/** | ||
* The 'target' location, in the form of a postcode district | ||
*/ | ||
targetPostcodeDistrict: string; | ||
requirements: Cas1SpaceSearchRequirements; | ||
}; | ||
|
13 changes: 13 additions & 0 deletions
13
server/@types/shared/models/Cas1SpaceSearchRequirements.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { ApType } from './ApType'; | ||
import type { Cas1SpaceCharacteristic } from './Cas1SpaceCharacteristic'; | ||
import type { Gender } from './Gender'; | ||
export type Cas1SpaceSearchRequirements = { | ||
apTypes?: Array<ApType>; | ||
spaceCharacteristics?: Array<Cas1SpaceCharacteristic>; | ||
genders?: Array<Gender>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { Cas1PremisesSearchResultSummary } from './Cas1PremisesSearchResultSummary'; | ||
import type { Cas1SpaceAvailability } from './Cas1SpaceAvailability'; | ||
export type Cas1SpaceSearchResult = { | ||
premises?: Cas1PremisesSearchResultSummary; | ||
distanceInMiles?: number; | ||
spacesAvailable?: Array<Cas1SpaceAvailability>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { Cas1SpaceSearchParameters } from './Cas1SpaceSearchParameters'; | ||
import type { Cas1SpaceSearchResult } from './Cas1SpaceSearchResult'; | ||
export type Cas1SpaceSearchResults = { | ||
searchCriteria?: Cas1SpaceSearchParameters; | ||
resultsCount: number; | ||
results: Array<Cas1SpaceSearchResult>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type GenderForAp = 'male' | 'female'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* generated using openapi-typescript-codegen -- do not edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { Cas1SpaceBookingRequirements } from './Cas1SpaceBookingRequirements'; | ||
export type NewCas1SpaceBooking = { | ||
arrivalDate: string; | ||
departureDate: string; | ||
premisesId: string; | ||
placementRequestId: string; | ||
requirements: Cas1SpaceBookingRequirements; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters