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 Jan 15, 2025
1 parent c86e131 commit 14839b8
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 40 deletions.
2 changes: 0 additions & 2 deletions server/@types/shared/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export type { ApprovedPremisesApplicationSummary } from './models/ApprovedPremis
export type { ApprovedPremisesAssessment } from './models/ApprovedPremisesAssessment';
export type { ApprovedPremisesAssessmentStatus } from './models/ApprovedPremisesAssessmentStatus';
export type { ApprovedPremisesAssessmentSummary } from './models/ApprovedPremisesAssessmentSummary';
export type { ApprovedPremisesBedSearchResult } from './models/ApprovedPremisesBedSearchResult';
export type { ApprovedPremisesSummary } from './models/ApprovedPremisesSummary';
export type { ApprovedPremisesUser } from './models/ApprovedPremisesUser';
export type { ApprovedPremisesUserPermission } from './models/ApprovedPremisesUserPermission';
Expand All @@ -41,7 +40,6 @@ export type { Bed } from './models/Bed';
export type { BedDetail } from './models/BedDetail';
export type { BedSearchAttributes } from './models/BedSearchAttributes';
export type { BedSearchParameters } from './models/BedSearchParameters';
export type { BedSearchResult } from './models/BedSearchResult';
export type { BedSearchResultBedSummary } from './models/BedSearchResultBedSummary';
export type { BedSearchResultPremisesSummary } from './models/BedSearchResultPremisesSummary';
export type { BedSearchResultRoomSummary } from './models/BedSearchResultRoomSummary';
Expand Down
16 changes: 0 additions & 16 deletions server/@types/shared/models/ApprovedPremisesBedSearchResult.ts

This file was deleted.

15 changes: 0 additions & 15 deletions server/@types/shared/models/BedSearchResult.ts

This file was deleted.

4 changes: 2 additions & 2 deletions server/@types/shared/models/BedSearchResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BedSearchResult } from './BedSearchResult';
import type { TemporaryAccommodationBedSearchResult } from './TemporaryAccommodationBedSearchResult';
export type BedSearchResults = {
/**
* How many distinct Rooms the Beds in the results belong to
Expand All @@ -16,6 +16,6 @@ export type BedSearchResults = {
* How many Beds are in the results
*/
resultsBedCount: number;
results: Array<BedSearchResult>;
results: Array<TemporaryAccommodationBedSearchResult>;
};

2 changes: 1 addition & 1 deletion server/@types/shared/models/MigrationJobType.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 MigrationJobType = 'update_all_users_from_community_api' | 'update_sentence_type_and_situation' | 'update_booking_status' | 'update_task_due_dates' | 'update_users_pdu_by_api' | 'update_cas2_applications_with_assessments' | 'update_cas2_status_updates_with_assessments' | 'update_cas2_notes_with_assessments' | 'update_cas1_fix_placement_app_links' | 'update_cas1_notice_types' | 'update_cas1_backfill_user_ap_area' | 'update_cas3_application_offender_name' | 'update_cas3_domain_event_type_for_person_departed_updated' | 'update_cas1_applications_licence_expiry_date';
export type MigrationJobType = 'update_all_users_from_community_api' | 'update_sentence_type_and_situation' | 'update_booking_status' | 'update_task_due_dates' | 'update_users_pdu_by_api' | 'update_cas2_applications_with_assessments' | 'update_cas2_status_updates_with_assessments' | 'update_cas2_notes_with_assessments' | 'update_cas1_fix_placement_app_links' | 'update_cas1_notice_types' | 'update_cas1_backfill_user_ap_area' | 'update_cas3_application_offender_name' | 'update_cas3_domain_event_type_for_person_departed_updated' | 'update_cas1_applications_licence_expiry_date' | 'update_cas1_backfill_offline_application_name';
3 changes: 3 additions & 0 deletions server/@types/shared/models/PlacementRequirements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import type { PlacementCriteria } from './PlacementCriteria';
export type PlacementRequirements = {
gender: Gender;
type: ApType;
/**
* Postcode outcode
*/
location: string;
radius: number;
essentialCriteria: Array<PlacementCriteria>;
Expand Down
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_referrals' | 'approved_premises_update_space_booking' | 'approved_premises_backfill_active_space_bookings_created_in_delius' | 'temporary_accommodation_referral_rejection';
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_referrals' | 'approved_premises_update_space_booking' | 'approved_premises_backfill_active_space_bookings_created_in_delius' | 'approved_premises_create_test_applications' | 'temporary_accommodation_referral_rejection';
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BedSearchResult } from './BedSearchResult';
import type { BedSearchResultBedSummary } from './BedSearchResultBedSummary';
import type { BedSearchResultPremisesSummary } from './BedSearchResultPremisesSummary';
import type { BedSearchResultRoomSummary } from './BedSearchResultRoomSummary';
import type { TemporaryAccommodationBedSearchResultOverlap } from './TemporaryAccommodationBedSearchResultOverlap';
export type TemporaryAccommodationBedSearchResult = (BedSearchResult & {
export type TemporaryAccommodationBedSearchResult = {
premises: BedSearchResultPremisesSummary;
room: BedSearchResultRoomSummary;
bed: BedSearchResultBedSummary;
overlaps: Array<TemporaryAccommodationBedSearchResultOverlap>;
});
};

0 comments on commit 14839b8

Please sign in to comment.