UNPKG

@ministryofjustice/hmpps-prison-permissions-lib

Version:

A library to centralise the process of determining whether a user should have access to create/read/update/delete a prison resource, for example, accessing a prisoner's Prisoner Profile.

8 lines (7 loc) 418 B
import { RestClient, ApiConfig, AuthenticationClient } from '@ministryofjustice/hmpps-rest-client'; import type Logger from 'bunyan'; import Prisoner from './interfaces/Prisoner'; export default class PrisonerSearchClient extends RestClient { constructor(logger: Logger | Console, config: ApiConfig, authenticationClient: AuthenticationClient); getPrisonerDetails(prisonerNumber: string): Promise<Prisoner>; }