From eb1fecc993ce7018be6c1def2783e160bf646e8f Mon Sep 17 00:00:00 2001 From: "communityaccommodationtypegen[bot]" Date: Tue, 17 Dec 2024 14:05:31 +0000 Subject: [PATCH] Updating hmpps-approved-premises-api models from OpenAPI specification --- server/@types/shared/index.d.ts | 9 --------- .../ArrayOfOASysOffenceDetailsQuestions.ts | 6 ------ .../ArrayOfOASysRiskContributorsQuestions.ts | 6 ------ .../ArrayOfOASysRiskManagementPlanQuestions.ts | 6 ------ .../ArrayOfOASysRiskManagementQuestions.ts | 6 ------ ...yOfOASysRiskOfSeriousHarmSummaryQuestions.ts | 6 ------ .../models/ArrayOfOASysRiskToSelfQuestions.ts | 6 ------ .../ArrayOfOASysRisksToOthersQuestions.ts | 6 ------ ...ArrayOfOASysRisksToTheIndividualQuestions.ts | 6 ------ ...rrayOfOASysSupportingInformationQuestions.ts | 6 ------ .../shared/models/OASysRiskOfSeriousHarm.ts | 4 ++-- server/@types/shared/models/OASysRiskToSelf.ts | 4 ++-- server/@types/shared/models/OASysSections.ts | 17 +++++++---------- 13 files changed, 11 insertions(+), 77 deletions(-) delete mode 100644 server/@types/shared/models/ArrayOfOASysOffenceDetailsQuestions.ts delete mode 100644 server/@types/shared/models/ArrayOfOASysRiskContributorsQuestions.ts delete mode 100644 server/@types/shared/models/ArrayOfOASysRiskManagementPlanQuestions.ts delete mode 100644 server/@types/shared/models/ArrayOfOASysRiskManagementQuestions.ts delete mode 100644 server/@types/shared/models/ArrayOfOASysRiskOfSeriousHarmSummaryQuestions.ts delete mode 100644 server/@types/shared/models/ArrayOfOASysRiskToSelfQuestions.ts delete mode 100644 server/@types/shared/models/ArrayOfOASysRisksToOthersQuestions.ts delete mode 100644 server/@types/shared/models/ArrayOfOASysRisksToTheIndividualQuestions.ts delete mode 100644 server/@types/shared/models/ArrayOfOASysSupportingInformationQuestions.ts diff --git a/server/@types/shared/index.d.ts b/server/@types/shared/index.d.ts index f2dea4ba1..17446bbe3 100644 --- a/server/@types/shared/index.d.ts +++ b/server/@types/shared/index.d.ts @@ -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'; diff --git a/server/@types/shared/models/ArrayOfOASysOffenceDetailsQuestions.ts b/server/@types/shared/models/ArrayOfOASysOffenceDetailsQuestions.ts deleted file mode 100644 index ed1859243..000000000 --- a/server/@types/shared/models/ArrayOfOASysOffenceDetailsQuestions.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* generated using openapi-typescript-codegen -- do not edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { OASysQuestion } from './OASysQuestion'; -export type ArrayOfOASysOffenceDetailsQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskContributorsQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskContributorsQuestions.ts deleted file mode 100644 index 78a8f48ff..000000000 --- a/server/@types/shared/models/ArrayOfOASysRiskContributorsQuestions.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* generated using openapi-typescript-codegen -- do not edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { OASysQuestion } from './OASysQuestion'; -export type ArrayOfOASysRiskContributorsQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskManagementPlanQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskManagementPlanQuestions.ts deleted file mode 100644 index 062516173..000000000 --- a/server/@types/shared/models/ArrayOfOASysRiskManagementPlanQuestions.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* generated using openapi-typescript-codegen -- do not edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { OASysQuestion } from './OASysQuestion'; -export type ArrayOfOASysRiskManagementPlanQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskManagementQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskManagementQuestions.ts deleted file mode 100644 index a83646670..000000000 --- a/server/@types/shared/models/ArrayOfOASysRiskManagementQuestions.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* generated using openapi-typescript-codegen -- do not edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { OASysQuestion } from './OASysQuestion'; -export type ArrayOfOASysRiskManagementQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskOfSeriousHarmSummaryQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskOfSeriousHarmSummaryQuestions.ts deleted file mode 100644 index c9e81f401..000000000 --- a/server/@types/shared/models/ArrayOfOASysRiskOfSeriousHarmSummaryQuestions.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* generated using openapi-typescript-codegen -- do not edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { OASysQuestion } from './OASysQuestion'; -export type ArrayOfOASysRiskOfSeriousHarmSummaryQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRiskToSelfQuestions.ts b/server/@types/shared/models/ArrayOfOASysRiskToSelfQuestions.ts deleted file mode 100644 index 85e1675ff..000000000 --- a/server/@types/shared/models/ArrayOfOASysRiskToSelfQuestions.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* generated using openapi-typescript-codegen -- do not edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { OASysQuestion } from './OASysQuestion'; -export type ArrayOfOASysRiskToSelfQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRisksToOthersQuestions.ts b/server/@types/shared/models/ArrayOfOASysRisksToOthersQuestions.ts deleted file mode 100644 index 6c25705c5..000000000 --- a/server/@types/shared/models/ArrayOfOASysRisksToOthersQuestions.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* generated using openapi-typescript-codegen -- do not edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { OASysQuestion } from './OASysQuestion'; -export type ArrayOfOASysRisksToOthersQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysRisksToTheIndividualQuestions.ts b/server/@types/shared/models/ArrayOfOASysRisksToTheIndividualQuestions.ts deleted file mode 100644 index 4eccfb0de..000000000 --- a/server/@types/shared/models/ArrayOfOASysRisksToTheIndividualQuestions.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* generated using openapi-typescript-codegen -- do not edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { OASysQuestion } from './OASysQuestion'; -export type ArrayOfOASysRisksToTheIndividualQuestions = Array; diff --git a/server/@types/shared/models/ArrayOfOASysSupportingInformationQuestions.ts b/server/@types/shared/models/ArrayOfOASysSupportingInformationQuestions.ts deleted file mode 100644 index d1a1ab7f9..000000000 --- a/server/@types/shared/models/ArrayOfOASysSupportingInformationQuestions.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* generated using openapi-typescript-codegen -- do not edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { OASysSupportingInformationQuestion } from './OASysSupportingInformationQuestion'; -export type ArrayOfOASysSupportingInformationQuestions = Array; diff --git a/server/@types/shared/models/OASysRiskOfSeriousHarm.ts b/server/@types/shared/models/OASysRiskOfSeriousHarm.ts index 1922b6a09..7e7fa6058 100644 --- a/server/@types/shared/models/OASysRiskOfSeriousHarm.ts +++ b/server/@types/shared/models/OASysRiskOfSeriousHarm.ts @@ -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; }; diff --git a/server/@types/shared/models/OASysRiskToSelf.ts b/server/@types/shared/models/OASysRiskToSelf.ts index b85b8fa0b..0215a7fc8 100644 --- a/server/@types/shared/models/OASysRiskToSelf.ts +++ b/server/@types/shared/models/OASysRiskToSelf.ts @@ -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; }; diff --git a/server/@types/shared/models/OASysSections.ts b/server/@types/shared/models/OASysSections.ts index 2cbdffad5..e7c14e5c4 100644 --- a/server/@types/shared/models/OASysSections.ts +++ b/server/@types/shared/models/OASysSections.ts @@ -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; + roshSummary: Array; + supportingInformation: Array; + riskToSelf: Array; + riskManagementPlan: Array; };