diff --git a/server/data/masApiClient.ts b/server/data/masApiClient.ts index a21e1a85..ae21a5e3 100644 --- a/server/data/masApiClient.ts +++ b/server/data/masApiClient.ts @@ -9,7 +9,7 @@ import { PersonalDetails, ProvisionOverview, } from './model/personalDetails' -import { AddressOverview, ErrorSummary, PersonSummary } from './model/common' +import { AddressOverview, PersonSummary } from './model/common' import { SentenceDetails } from './model/sentenceDetails' export default class MasApiClient extends RestClient { @@ -17,27 +17,27 @@ export default class MasApiClient extends RestClient { super('Manage a Supervision API', config.apis.masApi, token) } - async getOverview(crn: string): Promise { + async getOverview(crn: string): Promise { return this.get({ path: `/overview/${crn}`, handle404: false }) } - async getSentenceDetails(crn: string): Promise { + async getSentenceDetails(crn: string): Promise { return this.get({ path: `/sentence/${crn}`, handle404: false }) } - async getPersonalDetails(crn: string): Promise { + async getPersonalDetails(crn: string): Promise { return this.get({ path: `/personal-details/${crn}`, handle404: false }) } - async getPersonalContact(crn: string, id: string): Promise { + async getPersonalContact(crn: string, id: string): Promise { return this.get({ path: `/personal-details/${crn}/personal-contact/${id}`, handle404: false }) } - async getPersonalAddresses(crn: string): Promise { + async getPersonalAddresses(crn: string): Promise { return this.get({ path: `/personal-details/${crn}/addresses`, handle404: false }) } - async getPersonSummary(crn: string): Promise { + async getPersonSummary(crn: string): Promise { return this.get({ path: `/personal-details/${crn}/summary`, handle404: false }) } @@ -61,7 +61,7 @@ export default class MasApiClient extends RestClient { return this.get({ path: `/schedule/${crn}/${type}`, handle404: false }) } - async getPersonAppointment(crn: string, appointmentId: string): Promise { + async getPersonAppointment(crn: string, appointmentId: string): Promise { return this.get({ path: `/schedule/${crn}/appointment/${appointmentId}`, handle404: false }) } }