diff --git a/server/@types/shared/index.d.ts b/server/@types/shared/index.d.ts index 7af7754e5..6ae252e56 100644 --- a/server/@types/shared/index.d.ts +++ b/server/@types/shared/index.d.ts @@ -78,6 +78,7 @@ export type { Cas2Application } from './models/Cas2Application'; export type { Cas2ApplicationStatus } from './models/Cas2ApplicationStatus'; export type { Cas2ApplicationStatusUpdate } from './models/Cas2ApplicationStatusUpdate'; export type { Cas2ApplicationSummary } from './models/Cas2ApplicationSummary'; +export type { Cas2StatusUpdate } from './models/Cas2StatusUpdate'; export type { Cas2SubmittedApplication } from './models/Cas2SubmittedApplication'; export type { Cas2SubmittedApplicationSummary } from './models/Cas2SubmittedApplicationSummary'; export type { Characteristic } from './models/Characteristic'; @@ -93,6 +94,7 @@ export type { Document } from './models/Document'; export type { DocumentLevel } from './models/DocumentLevel'; export type { ExtendedPremisesSummary } from './models/ExtendedPremisesSummary'; export type { Extension } from './models/Extension'; +export type { ExternalUser } from './models/ExternalUser'; export type { FlagsEnvelope } from './models/FlagsEnvelope'; export type { FullPerson } from './models/FullPerson'; export type { Gender } from './models/Gender'; diff --git a/server/@types/shared/models/Cas2StatusUpdate.ts b/server/@types/shared/models/Cas2StatusUpdate.ts new file mode 100644 index 000000000..990278207 --- /dev/null +++ b/server/@types/shared/models/Cas2StatusUpdate.ts @@ -0,0 +1,16 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ExternalUser } from './ExternalUser'; + +export type Cas2StatusUpdate = { + id: string; + name: string; + label: string; + description: string; + updatedBy?: ExternalUser; + updatedAt?: string; +}; + diff --git a/server/@types/shared/models/Cas2SubmittedApplication.ts b/server/@types/shared/models/Cas2SubmittedApplication.ts index 4aede3ed8..3a732a8ec 100644 --- a/server/@types/shared/models/Cas2SubmittedApplication.ts +++ b/server/@types/shared/models/Cas2SubmittedApplication.ts @@ -5,6 +5,7 @@ import type { AnyValue } from './AnyValue'; import type { ApplicationStatus } from './ApplicationStatus'; +import type { Cas2StatusUpdate } from './Cas2StatusUpdate'; import type { NomisUser } from './NomisUser'; import type { Person } from './Person'; @@ -18,5 +19,6 @@ export type Cas2SubmittedApplication = { document?: AnyValue; status: ApplicationStatus; submittedAt?: string; + statusUpdates?: Array; }; diff --git a/server/@types/shared/models/ExternalUser.ts b/server/@types/shared/models/ExternalUser.ts new file mode 100644 index 000000000..53f23eb65 --- /dev/null +++ b/server/@types/shared/models/ExternalUser.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type ExternalUser = { + id: string; + username: string; + origin?: string; +}; +