Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
refactor(types): use API types generated from spec
Browse files Browse the repository at this point in the history
  • Loading branch information
adriengibrat committed Jan 13, 2020
1 parent 1c808a3 commit fb6efc6
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ export interface State {
archiveActivity: (id: number) => void;
}

export interface Activity {
id: number;
created_at: string;
direction: 'inbound' | 'outbound';
from: string;
to: string;
via: string;
duration: string;
is_archived: boolean;
call_type: 'answered' | 'missed' | 'voicemail';
}
import { Schemas } from './api';
import Activity = Schemas.Activity;
export { Activity };

0 comments on commit fb6efc6

Please sign in to comment.