Skip to content

Commit

Permalink
Merge pull request #742 from ministryofjustice/update-api-types-16999…
Browse files Browse the repository at this point in the history
…60127

API model updates
  • Loading branch information
libuk authored Nov 14, 2023
2 parents 9a728ee + 298ebc9 commit cc71c4a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/@types/shared/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand Down
16 changes: 16 additions & 0 deletions server/@types/shared/models/Cas2StatusUpdate.ts
Original file line number Diff line number Diff line change
@@ -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;
};

2 changes: 2 additions & 0 deletions server/@types/shared/models/Cas2SubmittedApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -18,5 +19,6 @@ export type Cas2SubmittedApplication = {
document?: AnyValue;
status: ApplicationStatus;
submittedAt?: string;
statusUpdates?: Array<Cas2StatusUpdate>;
};

11 changes: 11 additions & 0 deletions server/@types/shared/models/ExternalUser.ts
Original file line number Diff line number Diff line change
@@ -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;
};

0 comments on commit cc71c4a

Please sign in to comment.