export interface ActiveCall { active: boolean; is_accepted: boolean; isTransmitter: boolean; transmitter: string; receiver: string; } export interface InitializeCallDTO { receiverNumber: string; } export interface InitializeCallResp { available: boolean; } export interface StartCallEventData { transmitter: string; receiver: string; isTransmitter: boolean; isUnavailable?: boolean; } export interface EndCallDTO { transmitterNumber: string; isTransmitter: boolean; } export interface TransmitterNumDTO { transmitterNumber: string; } export interface CallWasAcceptedEvent { channelId: number; currentCall: CallHistoryItem; isTransmitter: boolean; } export interface CallHistoryItem { id?: number; identifier: string; transmitter: string; transmitterSource?: number; receiver: string; receiverSource?: number; start: string; end?: number; is_accepted: boolean; } export enum CallRejectReasons { DECLINED, BUSY_LINE, } 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', SET_CALLER = 'npwd:setCaller', SET_CALL_MODAL = 'npwd:callModal', SET_CALL_HISTORY = 'npwd:setCallHistory', SEND_ALERT = 'npwd:callSetAlert', }