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
communityaccommodationtypegen[bot] authored and github-actions[bot] committed Dec 20, 2024
1 parent e847ee6 commit ab50340
Show file tree
Hide file tree
Showing 19 changed files with 49 additions and 75 deletions.
12 changes: 3 additions & 9 deletions server/@types/shared/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ export type { ApprovedPremisesUser } from './models/ApprovedPremisesUser';
export type { ApprovedPremisesUserPermission } from './models/ApprovedPremisesUserPermission';
export type { ApprovedPremisesUserRole } from './models/ApprovedPremisesUserRole';
export type { ApType } from './models/ApType';
export type { ArrayOfOASysOffenceDetailsQuestions } from './models/ArrayOfOASysOffenceDetailsQuestions';
export type { ArrayOfOASysRiskContributorsQuestions } from './models/ArrayOfOASysRiskContributorsQuestions';
export type { ArrayOfOASysRiskManagementPlanQuestions } from './models/ArrayOfOASysRiskManagementPlanQuestions';
export type { ArrayOfOASysRiskManagementQuestions } from './models/ArrayOfOASysRiskManagementQuestions';
export type { ArrayOfOASysRiskOfSeriousHarmSummaryQuestions } from './models/ArrayOfOASysRiskOfSeriousHarmSummaryQuestions';
export type { ArrayOfOASysRisksToOthersQuestions } from './models/ArrayOfOASysRisksToOthersQuestions';
export type { ArrayOfOASysRisksToTheIndividualQuestions } from './models/ArrayOfOASysRisksToTheIndividualQuestions';
export type { ArrayOfOASysRiskToSelfQuestions } from './models/ArrayOfOASysRiskToSelfQuestions';
export type { ArrayOfOASysSupportingInformationQuestions } from './models/ArrayOfOASysSupportingInformationQuestions';
export type { Arrival } from './models/Arrival';
export type { Assessment } from './models/Assessment';
export type { AssessmentAcceptance } from './models/AssessmentAcceptance';
Expand Down Expand Up @@ -127,6 +118,7 @@ export type { Cas1SpaceSearchParameters } from './models/Cas1SpaceSearchParamete
export type { Cas1SpaceSearchRequirements } from './models/Cas1SpaceSearchRequirements';
export type { Cas1SpaceSearchResult } from './models/Cas1SpaceSearchResult';
export type { Cas1SpaceSearchResults } from './models/Cas1SpaceSearchResults';
export type { Cas1UpdateSpaceBooking } from './models/Cas1UpdateSpaceBooking';
export type { Cas1UpdateUser } from './models/Cas1UpdateUser';
export type { Cas2Application } from './models/Cas2Application';
export type { Cas2ApplicationNote } from './models/Cas2ApplicationNote';
Expand Down Expand Up @@ -268,6 +260,8 @@ export type { Room } from './models/Room';
export type { RoshRisks } from './models/RoshRisks';
export type { RoshRisksEnvelope } from './models/RoshRisksEnvelope';
export type { SeedFileType } from './models/SeedFileType';
export type { SeedFromExcelFileType } from './models/SeedFromExcelFileType';
export type { SeedFromExcelRequest } from './models/SeedFromExcelRequest';
export type { SeedRequest } from './models/SeedRequest';
export type { SentenceTypeOption } from './models/SentenceTypeOption';
export type { ServiceName } from './models/ServiceName';
Expand Down
2 changes: 1 addition & 1 deletion server/@types/shared/models/ApprovedPremisesUserRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ApprovedPremisesUserRole = 'assessor' | 'matcher' | 'future_manager' | 'workflow_manager' | 'cru_member' | 'cru_member_find_and_book_beta' | 'cru_member_enable_out_of_service_beds' | 'applicant' | 'role_admin' | 'report_viewer' | 'excluded_from_assess_allocation' | 'excluded_from_match_allocation' | 'excluded_from_placement_application_allocation' | 'appeals_manager' | 'janitor' | 'user_manager';
export type ApprovedPremisesUserRole = 'assessor' | 'matcher' | 'future_manager' | 'workflow_manager' | 'cru_member' | 'cru_member_find_and_book_beta' | 'cru_member_enable_out_of_service_beds' | 'applicant' | 'report_viewer' | 'excluded_from_assess_allocation' | 'excluded_from_match_allocation' | 'excluded_from_placement_application_allocation' | 'appeals_manager' | 'janitor' | 'user_manager';

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions server/@types/shared/models/Cas1SpaceAvailability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/* tslint:disable */
/* eslint-disable */
import type { Cas1SpaceCharacteristic } from './Cas1SpaceCharacteristic';
/**
* @deprecated
*/
export type Cas1SpaceAvailability = {
spaceCharacteristics?: Array<Cas1SpaceCharacteristic>;
durationInDays?: number;
Expand Down
4 changes: 4 additions & 0 deletions server/@types/shared/models/Cas1SpaceSearchResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import type { Cas1SpaceAvailability } from './Cas1SpaceAvailability';
export type Cas1SpaceSearchResult = {
premises?: Cas1PremisesSearchResultSummary;
distanceInMiles?: number;
/**
* This is not populated and will be removed in the future
* @deprecated
*/
spacesAvailable?: Array<Cas1SpaceAvailability>;
};

14 changes: 14 additions & 0 deletions server/@types/shared/models/Cas1UpdateSpaceBooking.ts
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 { Cas1SpaceBookingCharacteristic } from './Cas1SpaceBookingCharacteristic';
/**
* Only provide values when a change is required
*/
export type Cas1UpdateSpaceBooking = {
arrivalDate?: string;
departureDate?: string;
characteristics?: Array<Cas1SpaceBookingCharacteristic>;
};

4 changes: 2 additions & 2 deletions server/@types/shared/models/OASysRiskOfSeriousHarm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ArrayOfOASysRiskOfSeriousHarmSummaryQuestions } from './ArrayOfOASysRiskOfSeriousHarmSummaryQuestions';
import type { OASysAssessmentId } from './OASysAssessmentId';
import type { OASysAssessmentState } from './OASysAssessmentState';
import type { OASysQuestion } from './OASysQuestion';
export type OASysRiskOfSeriousHarm = {
assessmentId: OASysAssessmentId;
assessmentState: OASysAssessmentState;
dateStarted: string;
dateCompleted?: string;
rosh: ArrayOfOASysRiskOfSeriousHarmSummaryQuestions;
rosh: Array<OASysQuestion>;
};

4 changes: 2 additions & 2 deletions server/@types/shared/models/OASysRiskToSelf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ArrayOfOASysRiskToSelfQuestions } from './ArrayOfOASysRiskToSelfQuestions';
import type { OASysAssessmentId } from './OASysAssessmentId';
import type { OASysAssessmentState } from './OASysAssessmentState';
import type { OASysQuestion } from './OASysQuestion';
export type OASysRiskToSelf = {
assessmentId: OASysAssessmentId;
assessmentState: OASysAssessmentState;
dateStarted: string;
dateCompleted?: string;
riskToSelf: ArrayOfOASysRiskToSelfQuestions;
riskToSelf: Array<OASysQuestion>;
};

17 changes: 7 additions & 10 deletions server/@types/shared/models/OASysSections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ArrayOfOASysOffenceDetailsQuestions } from './ArrayOfOASysOffenceDetailsQuestions';
import type { ArrayOfOASysRiskManagementPlanQuestions } from './ArrayOfOASysRiskManagementPlanQuestions';
import type { ArrayOfOASysRiskOfSeriousHarmSummaryQuestions } from './ArrayOfOASysRiskOfSeriousHarmSummaryQuestions';
import type { ArrayOfOASysRiskToSelfQuestions } from './ArrayOfOASysRiskToSelfQuestions';
import type { ArrayOfOASysSupportingInformationQuestions } from './ArrayOfOASysSupportingInformationQuestions';
import type { OASysAssessmentId } from './OASysAssessmentId';
import type { OASysAssessmentState } from './OASysAssessmentState';
import type { OASysQuestion } from './OASysQuestion';
import type { OASysSupportingInformationQuestion } from './OASysSupportingInformationQuestion';
export type OASysSections = {
assessmentId: OASysAssessmentId;
assessmentState: OASysAssessmentState;
dateStarted: string;
dateCompleted?: string;
offenceDetails: ArrayOfOASysOffenceDetailsQuestions;
roshSummary: ArrayOfOASysRiskOfSeriousHarmSummaryQuestions;
supportingInformation: ArrayOfOASysSupportingInformationQuestions;
riskToSelf: ArrayOfOASysRiskToSelfQuestions;
riskManagementPlan: ArrayOfOASysRiskManagementPlanQuestions;
offenceDetails: Array<OASysQuestion>;
roshSummary: Array<OASysQuestion>;
supportingInformation: Array<OASysSupportingInformationQuestion>;
riskToSelf: Array<OASysQuestion>;
riskManagementPlan: Array<OASysQuestion>;
};

2 changes: 1 addition & 1 deletion server/@types/shared/models/SeedFileType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +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' | 'update_noms_number' | 'update_users_from_api' | 'approved_premises_ap_staff_users' | 'approved_premises_cancel_bookings' | 'approved_premises_assessment_more_info_bug_fix' | 'approved_premises_redact_assessment_details' | 'approved_premises_booking_to_space_booking' | 'approved_premises_withdraw_placement_request' | 'approved_premises_replay_domain_events' | 'approved_premises_duplicate_application' | 'approved_premises_update_event_number' | 'approved_premises_link_booking_to_placement_request' | 'approved_premises_out_of_service_beds' | 'approved_premises_cru_management_areas' | 'approved_premises_space_planning_dry_run' | 'approved_premises_import_delius_booking_management_data' | 'approved_premises_update_space_booking';
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' | 'update_noms_number' | 'update_users_from_api' | 'approved_premises_ap_staff_users' | 'approved_premises_cancel_bookings' | 'approved_premises_assessment_more_info_bug_fix' | 'approved_premises_redact_assessment_details' | 'approved_premises_booking_to_space_booking' | 'approved_premises_withdraw_placement_request' | 'approved_premises_replay_domain_events' | 'approved_premises_duplicate_application' | 'approved_premises_update_event_number' | 'approved_premises_link_booking_to_placement_request' | 'approved_premises_out_of_service_beds' | 'approved_premises_cru_management_areas' | 'approved_premises_space_planning_dry_run' | 'approved_premises_import_delius_booking_management_data' | 'approved_premises_update_space_booking' | 'temporary_accommodation_referral_rejection';
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { OASysQuestion } from './OASysQuestion';
export type ArrayOfOASysRiskToSelfQuestions = Array<OASysQuestion>;
export type SeedFromExcelFileType = 'approved_premises_room' | 'cas1_import_site_survey_premise';
11 changes: 11 additions & 0 deletions server/@types/shared/models/SeedFromExcelRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { SeedFromExcelFileType } from './SeedFromExcelFileType';
export type SeedFromExcelRequest = {
seedType: SeedFromExcelFileType;
premisesId: string;
fileName: string;
};

0 comments on commit ab50340

Please sign in to comment.