mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(calls): Fix incorrect data type being sent over net
This commit is contained in:
1 parent
60b9e35ae8
commit
5263a83d1f
10 files changed
+99
-107
No files matched your search
+12
-6
@@ -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',
|
||||
}
|
||||
Reference in new issue
Block a user