fix(calls): Fix incorrect data type being sent over net

This commit is contained in:
Taso committed 2021-07-29 20:29:27 -04:00
1 parent 60b9e35ae8
commit 5263a83d1f
10 files changed
+99 -107

No files matched your search

+12 -6
View File
@@ -1,19 +1,16 @@
export interface ActiveCall {
active: boolean;
is_accepted: boolean;
isTransmitter: boolean;
transmitter: string;
receiver: string;
channelId?: number;
isUnavailable?: boolean;
}
export interface InitializeCallDTO {
receiverNumber: string;
}
export interface InitializeCallResp {
available: boolean;
}
export interface StartCallEventData {
transmitter: string;
receiver: string;
@@ -36,6 +33,16 @@ export interface CallWasAcceptedEvent {
isTransmitter: boolean;
}
export interface ActiveCallRaw {
identifier: string;
transmitter: string;
transmitterSource: number;
receiver: string;
receiverSource: number;
start: string;
is_accepted: boolean;
}
export interface CallHistoryItem {
id?: number;
identifier: string;
@@ -65,6 +72,5 @@ export enum CallEvents {
FETCH_CALLS = 'npwd:fetchCalls',
SET_CALLER = 'npwd:setCaller',
SET_CALL_MODAL = 'npwd:callModal',
SET_CALL_HISTORY = 'npwd:setCallHistory',
SEND_ALERT = 'npwd:callSetAlert',
}