Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API model updates #751

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions server/@types/shared/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ export type { Cancellation } from './models/Cancellation';
export type { CancellationReason } from './models/CancellationReason';
export type { Cas1ApplicationTimelinessCategory } from './models/Cas1ApplicationTimelinessCategory';
export type { Cas1ApplicationUserDetails } from './models/Cas1ApplicationUserDetails';
export type { Cas1OutOfServiceBed } from './models/Cas1OutOfServiceBed';
export type { Cas1OutOfServiceBedCancellation } from './models/Cas1OutOfServiceBedCancellation';
export type { Cas1OutOfServiceBedReason } from './models/Cas1OutOfServiceBedReason';
export type { Cas1OutOfServiceBedSortField } from './models/Cas1OutOfServiceBedSortField';
export type { Cas1OutOfServiceBedStatus } from './models/Cas1OutOfServiceBedStatus';
export type { Cas1ReportName } from './models/Cas1ReportName';
export type { Cas2Application } from './models/Cas2Application';
export type { Cas2ApplicationNote } from './models/Cas2ApplicationNote';
export type { Cas2ApplicationStatus } from './models/Cas2ApplicationStatus';
Expand Down Expand Up @@ -127,6 +133,7 @@ export type { MappaEnvelope } from './models/MappaEnvelope';
export type { MigrationJobRequest } from './models/MigrationJobRequest';
export type { MigrationJobType } from './models/MigrationJobType';
export type { MoveOnCategory } from './models/MoveOnCategory';
export type { NamedId } from './models/NamedId';
export type { NewAppeal } from './models/NewAppeal';
export type { NewApplication } from './models/NewApplication';
export type { NewApplicationTimelineNote } from './models/NewApplicationTimelineNote';
Expand All @@ -136,6 +143,8 @@ export type { NewBooking } from './models/NewBooking';
export type { NewBookingNotMade } from './models/NewBookingNotMade';
export type { NewCancellation } from './models/NewCancellation';
export type { NewCas1Arrival } from './models/NewCas1Arrival';
export type { NewCas1OutOfServiceBed } from './models/NewCas1OutOfServiceBed';
export type { NewCas1OutOfServiceBedCancellation } from './models/NewCas1OutOfServiceBedCancellation';
export type { NewCas2ApplicationNote } from './models/NewCas2ApplicationNote';
export type { NewCas2Arrival } from './models/NewCas2Arrival';
export type { NewCas3Arrival } from './models/NewCas3Arrival';
Expand Down Expand Up @@ -201,6 +210,7 @@ export type { Problem } from './models/Problem';
export type { PropertyStatus } from './models/PropertyStatus';
export type { Reallocation } from './models/Reallocation';
export type { ReferralHistoryNote } from './models/ReferralHistoryNote';
export type { ReferralHistoryNoteMessageDetails } from './models/ReferralHistoryNoteMessageDetails';
export type { ReferralHistorySystemNote } from './models/ReferralHistorySystemNote';
export type { ReferralHistoryUserNote } from './models/ReferralHistoryUserNote';
export type { ReferralRejectionReason } from './models/ReferralRejectionReason';
Expand Down Expand Up @@ -237,6 +247,7 @@ export type { TaskSortField } from './models/TaskSortField';
export type { TaskStatus } from './models/TaskStatus';
export type { TaskType } from './models/TaskType';
export type { TaskWrapper } from './models/TaskWrapper';
export type { Temporality } from './models/Temporality';
export type { TemporaryAccommodationApplication } from './models/TemporaryAccommodationApplication';
export type { TemporaryAccommodationApplicationSummary } from './models/TemporaryAccommodationApplicationSummary';
export type { TemporaryAccommodationAssessment } from './models/TemporaryAccommodationAssessment';
Expand All @@ -260,6 +271,7 @@ export type { UpdateApplication } from './models/UpdateApplication';
export type { UpdateApplicationType } from './models/UpdateApplicationType';
export type { UpdateApprovedPremisesApplication } from './models/UpdateApprovedPremisesApplication';
export type { UpdateAssessment } from './models/UpdateAssessment';
export type { UpdateCas1OutOfServiceBed } from './models/UpdateCas1OutOfServiceBed';
export type { UpdateCas2Application } from './models/UpdateCas2Application';
export type { UpdateCas2Assessment } from './models/UpdateCas2Assessment';
export type { UpdatedClarificationNote } from './models/UpdatedClarificationNote';
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' | 'manager' | 'legacy_manager' | 'future_manager' | 'workflow_manager' | 'applicant' | 'role_admin' | 'report_viewer' | 'excluded_from_assess_allocation' | 'excluded_from_match_allocation' | 'excluded_from_placement_application_allocation' | 'appeals_manager';
export type ApprovedPremisesUserRole = 'assessor' | 'matcher' | 'manager' | 'legacy_manager' | 'future_manager' | 'workflow_manager' | 'cru_member' | 'applicant' | 'role_admin' | 'report_viewer' | 'excluded_from_assess_allocation' | 'excluded_from_match_allocation' | 'excluded_from_placement_application_allocation' | 'appeals_manager';
2 changes: 2 additions & 0 deletions server/@types/shared/models/AssessmentAcceptance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
/* tslint:disable */
/* eslint-disable */
import type { AnyValue } from './AnyValue';
import type { ApType } from './ApType';
import type { PlacementDates } from './PlacementDates';
import type { PlacementRequirements } from './PlacementRequirements';
export type AssessmentAcceptance = {
document: AnyValue;
requirements?: PlacementRequirements;
placementDates?: PlacementDates;
apType?: ApType;
notes?: string;
};

1 change: 1 addition & 0 deletions server/@types/shared/models/Cancellation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ export type Cancellation = {
notes?: string;
createdAt: string;
premisesName: string;
otherReason?: string;
};

27 changes: 27 additions & 0 deletions server/@types/shared/models/Cas1OutOfServiceBed.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Cas1OutOfServiceBedCancellation } from './Cas1OutOfServiceBedCancellation';
import type { Cas1OutOfServiceBedReason } from './Cas1OutOfServiceBedReason';
import type { Cas1OutOfServiceBedStatus } from './Cas1OutOfServiceBedStatus';
import type { NamedId } from './NamedId';
import type { Temporality } from './Temporality';
export type Cas1OutOfServiceBed = {
id: string;
createdAt: string;
outOfServiceFrom: string;
outOfServiceTo: string;
bed: NamedId;
room: NamedId;
premises: NamedId;
apArea: NamedId;
reason: Cas1OutOfServiceBedReason;
referenceNumber?: string;
notes?: string;
daysLostCount: number;
temporality: Temporality;
status: Cas1OutOfServiceBedStatus;
cancellation?: Cas1OutOfServiceBedCancellation | null;
};

10 changes: 10 additions & 0 deletions server/@types/shared/models/Cas1OutOfServiceBedCancellation.ts
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 */
export type Cas1OutOfServiceBedCancellation = {
id: string;
createdAt: string;
notes?: string;
};

10 changes: 10 additions & 0 deletions server/@types/shared/models/Cas1OutOfServiceBedReason.ts
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 */
export type Cas1OutOfServiceBedReason = {
id: string;
name: string;
isActive: boolean;
};

5 changes: 5 additions & 0 deletions server/@types/shared/models/Cas1OutOfServiceBedSortField.ts
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 Cas1OutOfServiceBedSortField = 'premisesName' | 'roomName' | 'bedName' | 'outOfServiceFrom' | 'outOfServiceTo' | 'reason' | 'daysLost';
5 changes: 5 additions & 0 deletions server/@types/shared/models/Cas1OutOfServiceBedStatus.ts
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 Cas1OutOfServiceBedStatus = 'active' | 'cancelled';
5 changes: 5 additions & 0 deletions server/@types/shared/models/Cas1ReportName.ts
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 Cas1ReportName = 'applications' | 'dailyMetrics' | 'lostBeds' | 'placementApplications' | 'placementMatchingOutcomes';
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_application_ap_areas' | 'update_task_due_dates' | 'update_cas2_applications_with_assessments' | 'update_cas2_status_updates_with_assessments' | 'update_cas2_notes_with_assessments' | 'update_cas1_user_details' | 'update_cas1_fix_placement_app_links' | 'update_cas1_notice_types' | 'update_cas1_backfill_user_ap_area' | 'update_cas1_out_of_service_bed_reasons' | 'update_cas3_application_offender_name' | 'update_cas3_users_pdu_from_community_api';
export type MigrationJobType = 'update_all_users_from_community_api' | 'update_sentence_type_and_situation' | 'update_booking_status' | 'update_application_ap_areas' | 'update_task_due_dates' | 'update_cas2_applications_with_assessments' | 'update_cas2_status_updates_with_assessments' | 'update_cas2_notes_with_assessments' | 'update_cas1_user_details' | 'update_cas1_fix_placement_app_links' | 'update_cas1_notice_types' | 'update_cas1_backfill_user_ap_area' | 'update_cas1_out_of_service_bed_reasons' | 'update_cas3_application_offender_name' | 'update_cas3_users_pdu_from_community_api' | 'update_cas1_populate_app_reason_for_short_notice_metadata';
12 changes: 12 additions & 0 deletions server/@types/shared/models/NamedId.ts
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 */
/**
* A generic stub for an object with a name and an ID.
*/
export type NamedId = {
id: string;
name: string;
};

13 changes: 13 additions & 0 deletions server/@types/shared/models/NewCas1OutOfServiceBed.ts
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 */
export type NewCas1OutOfServiceBed = {
startDate: string;
endDate: string;
reason: string;
referenceNumber?: string;
notes?: string;
bedId: string;
};

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 */
export type NewCas1OutOfServiceBedCancellation = {
notes?: string;
};

2 changes: 2 additions & 0 deletions server/@types/shared/models/ReferralHistoryNote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ReferralHistoryNoteMessageDetails } from './ReferralHistoryNoteMessageDetails';
export type ReferralHistoryNote = {
id: string;
createdAt: string;
message: string;
messageDetails?: ReferralHistoryNoteMessageDetails;
createdByUserName: string;
type: string;
};
Expand Down
10 changes: 10 additions & 0 deletions server/@types/shared/models/ReferralHistoryNoteMessageDetails.ts
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 */
export type ReferralHistoryNoteMessageDetails = {
rejectionReason?: string;
rejectionReasonDetails?: string;
isWithdrawn?: boolean;
};

5 changes: 5 additions & 0 deletions server/@types/shared/models/Temporality.ts
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 Temporality = 'past' | 'current' | 'future';
12 changes: 12 additions & 0 deletions server/@types/shared/models/UpdateCas1OutOfServiceBed.ts
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 */
export type UpdateCas1OutOfServiceBed = {
startDate: string;
endDate: string;
reason: string;
referenceNumber?: string;
notes?: string;
};