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 96b4203 commit eb1fecc
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 77 deletions.
9 changes: 0 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

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.

This file was deleted.

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>;
};

0 comments on commit eb1fecc

Please sign in to comment.