Skip to content

Commit

Permalink
Updating hmpps-approved-premises-api models from OpenAPI specification
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 232b4b0 commit e27b01f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/@types/shared/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down
19 changes: 19 additions & 0 deletions server/@types/shared/models/ExtendedPremisesSummary.ts
Original file line number Diff line number Diff line change
@@ -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<PremisesBooking>;
dateCapacities?: Array<DateCapacity>;
};

16 changes: 16 additions & 0 deletions server/@types/shared/models/PremisesBooking.ts
Original file line number Diff line number Diff line change
@@ -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;
};

1 change: 1 addition & 0 deletions server/@types/shared/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type User = {
deliusUsername: string;
email?: string;
telephoneNumber?: string;
isActive?: boolean;
region: ProbationRegion;
};

0 comments on commit e27b01f

Please sign in to comment.