diff --git a/server/@types/shared/index.d.ts b/server/@types/shared/index.d.ts index 2c1f2edcf..cc3e8f92c 100644 --- a/server/@types/shared/index.d.ts +++ b/server/@types/shared/index.d.ts @@ -237,5 +237,6 @@ export type { User } from './models/User'; export type { UserQualification } from './models/UserQualification'; export type { UserRolesAndQualifications } from './models/UserRolesAndQualifications'; export type { UserSortField } from './models/UserSortField'; +export type { UserWithWorkload } from './models/UserWithWorkload'; export type { ValidationError } from './models/ValidationError'; export type { WithdrawalReason } from './models/WithdrawalReason'; diff --git a/server/@types/shared/models/UserWithWorkload.ts b/server/@types/shared/models/UserWithWorkload.ts new file mode 100644 index 000000000..8f77332be --- /dev/null +++ b/server/@types/shared/models/UserWithWorkload.ts @@ -0,0 +1,17 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ApprovedPremisesUserRole } from './ApprovedPremisesUserRole'; +import type { User } from './User'; +import type { UserQualification } from './UserQualification'; + +export type UserWithWorkload = (User & { + numAssessmentsPending?: number; + numAssessmentsCompleted7Days?: number; + numAssessmentsCompleted30Days?: number; + qualifications?: Array; + roles?: Array; +}); +