mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
44 lines
985 B
TypeScript
44 lines
985 B
TypeScript
export interface CallProps {
|
|
active: boolean;
|
|
accepted: boolean;
|
|
isTransmitter: boolean;
|
|
transmitter: string;
|
|
receiver: string;
|
|
}
|
|
|
|
export interface ICall {
|
|
id?: number;
|
|
identifier: string;
|
|
transmitter: string;
|
|
transmitterSource?: number;
|
|
receiver: string;
|
|
receiverSource?: number;
|
|
start: number;
|
|
end?: number;
|
|
accepted: boolean;
|
|
}
|
|
|
|
export interface ICallDuration {
|
|
ms: number;
|
|
s: number;
|
|
m: number;
|
|
h: number;
|
|
}
|
|
|
|
export enum CallEvents {
|
|
INITIALIZE_CALL = 'npwd:beginCall',
|
|
START_CALL = 'npwd:startCall',
|
|
ACCEPT_CALL = 'npwd:acceptCall',
|
|
END_CALL = 'npwd:endCall',
|
|
WAS_ENDED = 'npwd:callEnded',
|
|
WAS_ACCEPTED = 'npwd:callAccepted',
|
|
REJECTED = 'npwd:rejectCall',
|
|
WAS_REJECTED = 'npwd:callRejected',
|
|
FETCH_CALLS = 'npwd:fetchCalls',
|
|
SEND_HISTORY = 'npwd:sendCallHistory',
|
|
SEND_HANGUP_ANIM = 'npwd:sendHangupAnim',
|
|
SET_CALLER = 'npwd:setCaller',
|
|
SET_CALL_MODAL = 'npwd:callModal',
|
|
SET_CALL_HISTORY = 'npwd:setCallHistory',
|
|
}
|