diff --git a/server/@types/shared/index.d.ts b/server/@types/shared/index.d.ts index 2576ad4b7..64477bc05 100644 --- a/server/@types/shared/index.d.ts +++ b/server/@types/shared/index.d.ts @@ -86,6 +86,7 @@ export type { DepartureReason } from './models/DepartureReason'; export type { DestinationProvider } from './models/DestinationProvider'; export type { Document } from './models/Document'; export type { DocumentLevel } from './models/DocumentLevel'; +export type { ExtendedPremisesSummary } from './models/ExtendedPremisesSummary'; export type { Extension } from './models/Extension'; export type { FlagsEnvelope } from './models/FlagsEnvelope'; export type { FullPerson } from './models/FullPerson'; @@ -157,6 +158,7 @@ export type { PlacementRequestTask } from './models/PlacementRequestTask'; export type { PlacementRequirements } from './models/PlacementRequirements'; export type { PlacementType } from './models/PlacementType'; export type { Premises } from './models/Premises'; +export type { PremisesBooking } from './models/PremisesBooking'; export type { PremisesSummary } from './models/PremisesSummary'; export type { PrisonCaseNote } from './models/PrisonCaseNote'; export type { ProbationDeliveryUnit } from './models/ProbationDeliveryUnit'; diff --git a/server/@types/shared/models/ExtendedPremisesSummary.ts b/server/@types/shared/models/ExtendedPremisesSummary.ts new file mode 100644 index 000000000..4ac79b410 --- /dev/null +++ b/server/@types/shared/models/ExtendedPremisesSummary.ts @@ -0,0 +1,19 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { DateCapacity } from './DateCapacity'; +import type { PremisesBooking } from './PremisesBooking'; + +export type ExtendedPremisesSummary = { + id?: string; + name?: string; + apCode?: string; + postcode?: string; + bedCount?: number; + availableBedsForToday?: number; + bookings?: Array; + dateCapacities?: Array; +}; + diff --git a/server/@types/shared/models/PremisesBooking.ts b/server/@types/shared/models/PremisesBooking.ts new file mode 100644 index 000000000..951a53ac2 --- /dev/null +++ b/server/@types/shared/models/PremisesBooking.ts @@ -0,0 +1,16 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Bed } from './Bed'; +import type { Person } from './Person'; + +export type PremisesBooking = { + id?: string; + arrivalDate?: string; + departureDate?: string; + person?: Person; + bed?: Bed; +}; + diff --git a/server/@types/shared/models/User.ts b/server/@types/shared/models/User.ts index 72faf6cae..20886bca8 100644 --- a/server/@types/shared/models/User.ts +++ b/server/@types/shared/models/User.ts @@ -12,6 +12,7 @@ export type User = { deliusUsername: string; email?: string; telephoneNumber?: string; + isActive?: boolean; region: ProbationRegion; };