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 #869

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
8 changes: 8 additions & 0 deletions server/@types/shared/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export type { Adjudication } from './models/Adjudication';
export type { AllocatedFilter } from './models/AllocatedFilter';
export type { AnyValue } from './models/AnyValue';
export type { ApArea } from './models/ApArea';
export type { Appeal } from './models/Appeal';
export type { AppealDecision } from './models/AppealDecision';
export type { Application } from './models/Application';
export type { ApplicationSortField } from './models/ApplicationSortField';
export type { ApplicationStatus } from './models/ApplicationStatus';
Expand Down Expand Up @@ -79,12 +81,16 @@ export type { CacheType } from './models/CacheType';
export type { Cancellation } from './models/Cancellation';
export type { CancellationReason } from './models/CancellationReason';
export type { Cas2Application } from './models/Cas2Application';
export type { Cas2ApplicationNote } from './models/Cas2ApplicationNote';
export type { Cas2ApplicationStatus } from './models/Cas2ApplicationStatus';
export type { Cas2ApplicationStatusDetail } from './models/Cas2ApplicationStatusDetail';
export type { Cas2ApplicationStatusUpdate } from './models/Cas2ApplicationStatusUpdate';
export type { Cas2ApplicationSummary } from './models/Cas2ApplicationSummary';
export type { Cas2StatusUpdate } from './models/Cas2StatusUpdate';
export type { Cas2StatusUpdateDetail } from './models/Cas2StatusUpdateDetail';
export type { Cas2SubmittedApplication } from './models/Cas2SubmittedApplication';
export type { Cas2SubmittedApplicationSummary } from './models/Cas2SubmittedApplicationSummary';
export type { Cas2TimelineEvent } from './models/Cas2TimelineEvent';
export type { Characteristic } from './models/Characteristic';
export type { CharacteristicPair } from './models/CharacteristicPair';
export type { ClarificationNote } from './models/ClarificationNote';
Expand Down Expand Up @@ -114,6 +120,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 { NewAppeal } from './models/NewAppeal';
export type { NewApplication } from './models/NewApplication';
export type { NewApplicationTimelineNote } from './models/NewApplicationTimelineNote';
export type { NewArrival } from './models/NewArrival';
Expand All @@ -122,6 +129,7 @@ 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 { NewCas2ApplicationNote } from './models/NewCas2ApplicationNote';
export type { NewCas2Arrival } from './models/NewCas2Arrival';
export type { NewCas3Arrival } from './models/NewCas3Arrival';
export type { NewClarificationNote } from './models/NewClarificationNote';
Expand Down
1 change: 0 additions & 1 deletion server/@types/shared/models/ActiveOffence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ActiveOffence = {
deliusEventNumber: string;
offenceDescription: string;
Expand Down
1 change: 0 additions & 1 deletion server/@types/shared/models/Adjudication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Adjudication = {
id: number;
reportedAt: string;
Expand Down
1 change: 0 additions & 1 deletion server/@types/shared/models/AllocatedFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type AllocatedFilter = 'allocated' | 'unallocated';
1 change: 0 additions & 1 deletion server/@types/shared/models/AnyValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* Any object that conforms to the current JSON schema for an application
*/
Expand Down
1 change: 0 additions & 1 deletion server/@types/shared/models/ApArea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ApArea = {
id: string;
identifier: string;
Expand Down
1 change: 0 additions & 1 deletion server/@types/shared/models/ApType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ApType = 'normal' | 'pipe' | 'esap' | 'rfap';
18 changes: 18 additions & 0 deletions server/@types/shared/models/Appeal.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { AppealDecision } from './AppealDecision';
import type { User } from './User';
export type Appeal = {
id: string;
appealDate: string;
appealDetail: string;
decision: AppealDecision;
decisionDetail: string;
createdAt: string;
applicationId: string;
assessmentId?: string;
createdByUser: User;
};

5 changes: 5 additions & 0 deletions server/@types/shared/models/AppealDecision.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type AppealDecision = 'accepted' | 'rejected';
2 changes: 0 additions & 2 deletions server/@types/shared/models/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Person } from './Person';

export type Application = {
type: string;
id: string;
Expand Down
1 change: 0 additions & 1 deletion server/@types/shared/models/ApplicationSortField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ApplicationSortField = 'tier' | 'createdAt' | 'arrivalDate';
1 change: 0 additions & 1 deletion server/@types/shared/models/ApplicationStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ApplicationStatus = 'inProgress' | 'submitted' | 'requestedFurtherInformation' | 'pending' | 'rejected' | 'awaitingPlacement' | 'placed' | 'inapplicable' | 'withdrawn';
2 changes: 0 additions & 2 deletions server/@types/shared/models/ApplicationSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Person } from './Person';

export type ApplicationSummary = {
type: string;
id: string;
Expand Down
2 changes: 0 additions & 2 deletions server/@types/shared/models/ApplicationTimelineNote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { User } from './User';

/**
* Notes added to an application
*/
Expand Down
2 changes: 0 additions & 2 deletions server/@types/shared/models/ApprovedPremises.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { LocalAuthorityArea } from './LocalAuthorityArea';
import type { Premises } from './Premises';

export type ApprovedPremises = (Premises & {
apCode?: string;
} & {
Expand Down
2 changes: 0 additions & 2 deletions server/@types/shared/models/ApprovedPremisesApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { AnyValue } from './AnyValue';
import type { ApArea } from './ApArea';
import type { Application } from './Application';
import type { ApprovedPremisesApplicationStatus } from './ApprovedPremisesApplicationStatus';
import type { AssessmentDecision } from './AssessmentDecision';
import type { PersonRisks } from './PersonRisks';
import type { PersonStatus } from './PersonStatus';

export type ApprovedPremisesApplication = (Application & {
isWomensApplication?: boolean;
isPipeApplication?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ApprovedPremisesApplicationStatus = 'started' | 'submitted' | 'rejected' | 'awaitingAssesment' | 'unallocatedAssesment' | 'assesmentInProgress' | 'awaitingPlacement' | 'placementAllocated' | 'inapplicable' | 'withdrawn' | 'requestedFurtherInformation' | 'pendingPlacementRequest';
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { ApplicationSummary } from './ApplicationSummary';
import type { ApprovedPremisesApplicationStatus } from './ApprovedPremisesApplicationStatus';
import type { PersonRisks } from './PersonRisks';

export type ApprovedPremisesApplicationSummary = (ApplicationSummary & {
isWomensApplication?: boolean;
isPipeApplication?: boolean;
Expand All @@ -17,5 +15,6 @@ export type ApprovedPremisesApplicationSummary = (ApplicationSummary & {
createdByUserId: string;
status: ApprovedPremisesApplicationStatus;
tier?: string;
isWithdrawn: boolean;
});

3 changes: 1 addition & 2 deletions server/@types/shared/models/ApprovedPremisesAssessment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { ApprovedPremisesApplication } from './ApprovedPremisesApplication';
import type { ApprovedPremisesAssessmentStatus } from './ApprovedPremisesAssessmentStatus';
import type { ApprovedPremisesUser } from './ApprovedPremisesUser';
import type { Assessment } from './Assessment';

export type ApprovedPremisesAssessment = (Assessment & {
application: ApprovedPremisesApplication;
allocatedToStaffMember?: ApprovedPremisesUser;
status?: ApprovedPremisesAssessmentStatus;
createdFromAppeal: boolean;
});

Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ApprovedPremisesAssessmentStatus = 'awaiting_response' | 'completed' | 'reallocated' | 'in_progress' | 'not_started';
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { ApprovedPremisesAssessmentStatus } from './ApprovedPremisesAssessmentStatus';
import type { AssessmentSummary } from './AssessmentSummary';

export type ApprovedPremisesAssessmentSummary = (AssessmentSummary & {
status: ApprovedPremisesAssessmentStatus;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { BedSearchParameters } from './BedSearchParameters';
import type { PlacementCriteria } from './PlacementCriteria';

export type ApprovedPremisesBedSearchParameters = (BedSearchParameters & {
/**
* The postcode district to search outwards from
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { BedSearchResult } from './BedSearchResult';

export type ApprovedPremisesBedSearchResult = (BedSearchResult & {
/**
* how many miles away from the postcode district the Premises this Bed belongs to is
Expand Down
2 changes: 0 additions & 2 deletions server/@types/shared/models/ApprovedPremisesSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { PremisesSummary } from './PremisesSummary';

export type ApprovedPremisesSummary = (PremisesSummary & {
apCode?: string;
probationRegion?: string;
Expand Down
2 changes: 0 additions & 2 deletions server/@types/shared/models/ApprovedPremisesUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { ApArea } from './ApArea';
import type { ApprovedPremisesUserRole } from './ApprovedPremisesUserRole';
import type { User } from './User';
import type { UserQualification } from './UserQualification';

export type ApprovedPremisesUser = (User & {
qualifications: Array<UserQualification>;
roles: Array<ApprovedPremisesUserRole>;
Expand Down
1 change: 0 additions & 1 deletion server/@types/shared/models/ApprovedPremisesUserRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ApprovedPremisesUserRole = 'assessor' | 'matcher' | 'manager' | 'workflow_manager' | 'applicant' | 'role_admin' | 'report_viewer' | 'excluded_from_assess_allocation' | 'excluded_from_match_allocation' | 'excluded_from_placement_application_allocation' | 'appeals_manager';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { OASysQuestion } from './OASysQuestion';

export type ArrayOfOASysOffenceDetailsQuestions = Array<OASysQuestion>;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { OASysQuestion } from './OASysQuestion';

export type ArrayOfOASysRiskContributorsQuestions = Array<OASysQuestion>;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { OASysQuestion } from './OASysQuestion';

export type ArrayOfOASysRiskManagementPlanQuestions = Array<OASysQuestion>;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { OASysQuestion } from './OASysQuestion';

export type ArrayOfOASysRiskManagementQuestions = Array<OASysQuestion>;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { OASysQuestion } from './OASysQuestion';

export type ArrayOfOASysRiskOfSeriousHarmSummaryQuestions = Array<OASysQuestion>;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { OASysQuestion } from './OASysQuestion';

export type ArrayOfOASysRiskToSelfQuestions = Array<OASysQuestion>;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { OASysQuestion } from './OASysQuestion';

export type ArrayOfOASysRisksToOthersQuestions = Array<OASysQuestion>;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { OASysQuestion } from './OASysQuestion';

export type ArrayOfOASysRisksToTheIndividualQuestions = Array<OASysQuestion>;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { OASysSupportingInformationQuestion } from './OASysSupportingInformationQuestion';

export type ArrayOfOASysSupportingInformationQuestions = Array<OASysSupportingInformationQuestion>;
1 change: 0 additions & 1 deletion server/@types/shared/models/Arrival.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Arrival = {
expectedDepartureDate: string;
arrivalDate: string;
Expand Down
2 changes: 0 additions & 2 deletions server/@types/shared/models/Assessment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { AnyValue } from './AnyValue';
import type { AssessmentDecision } from './AssessmentDecision';
import type { ClarificationNote } from './ClarificationNote';
import type { ReferralHistoryNote } from './ReferralHistoryNote';

export type Assessment = {
service: string;
id: string;
Expand Down
2 changes: 0 additions & 2 deletions server/@types/shared/models/AssessmentAcceptance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { AnyValue } from './AnyValue';
import type { PlacementDates } from './PlacementDates';
import type { PlacementRequirements } from './PlacementRequirements';

export type AssessmentAcceptance = {
document: AnyValue;
requirements?: PlacementRequirements;
Expand Down
1 change: 0 additions & 1 deletion server/@types/shared/models/AssessmentDecision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type AssessmentDecision = 'accepted' | 'rejected';
Loading
Loading