diff --git a/src/api/calld.ts b/src/api/calld.ts index 385724a2..c49dc7f9 100644 --- a/src/api/calld.ts +++ b/src/api/calld.ts @@ -24,7 +24,7 @@ export interface CallD { listCalls: () => Promise>; relocateCall: (callId: string, destination: string, lineId: number | null | undefined, contact?: string | null | undefined) => Promise; listVoicemails: () => Promise>; - deleteVoicemail: (voicemailId: number) => Promise; + deleteVoicemail: (voicemailId: string) => Promise; getVoicemailUrl: (voicemail: Voicemail) => string; fetchSwitchboardHeldCalls: (switchboardUuid: UUID) => Promise; // @TODO: replace `any` holdSwitchboardCall: (switchboardUuid: UUID, callId: string) => Promise; @@ -126,7 +126,7 @@ export default ((client: ApiRequester, baseUrl: string): CallD => ({ }, listVoicemails: (): Promise> => client.get(`${baseUrl}/users/me/voicemails`).then((response: any) => Voicemail.parseMany(response)), - deleteVoicemail: (voicemailId: number): Promise => client.delete(`${baseUrl}/users/me/voicemails/messages/${voicemailId}`), + deleteVoicemail: (voicemailId: string): Promise => client.delete(`${baseUrl}/users/me/voicemails/messages/${voicemailId}`), getVoicemailUrl: (voicemail: Voicemail): string => { const body = { token: client.token,