Skip to content

Commit

Permalink
Merge pull request #750 from wazo-platform/voicemail_typing
Browse files Browse the repository at this point in the history
deleteVoicemail API should also take string in parameter
  • Loading branch information
bogue authored Feb 28, 2024
2 parents d403d1f + 3467ccb commit a3e16d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/calld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface CallD {
listCalls: () => Promise<Array<Call>>;
relocateCall: (callId: string, destination: string, lineId: number | null | undefined, contact?: string | null | undefined) => Promise<Relocation>;
listVoicemails: () => Promise<Array<Voicemail>>;
deleteVoicemail: (voicemailId: number) => Promise<boolean>;
deleteVoicemail: (voicemailId: string) => Promise<boolean>;
getVoicemailUrl: (voicemail: Voicemail) => string;
fetchSwitchboardHeldCalls: (switchboardUuid: UUID) => Promise<any>; // @TODO: replace `any`
holdSwitchboardCall: (switchboardUuid: UUID, callId: string) => Promise<boolean>;
Expand Down Expand Up @@ -126,7 +126,7 @@ export default ((client: ApiRequester, baseUrl: string): CallD => ({
},

listVoicemails: (): Promise<Array<Voicemail>> => client.get(`${baseUrl}/users/me/voicemails`).then((response: any) => Voicemail.parseMany(response)),
deleteVoicemail: (voicemailId: number): Promise<boolean> => client.delete(`${baseUrl}/users/me/voicemails/messages/${voicemailId}`),
deleteVoicemail: (voicemailId: string): Promise<boolean> => client.delete(`${baseUrl}/users/me/voicemails/messages/${voicemailId}`),
getVoicemailUrl: (voicemail: Voicemail): string => {
const body = {
token: client.token,
Expand Down

0 comments on commit a3e16d8

Please sign in to comment.