mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
* chore(scripts/twitter): Refactored twitter to use event enums * chore(scripts/marketplace): Refactored marketplace to use event enums * chore(scripts/messages): Refactored messages to use event enums * chore(scripts/contacts): Refactored contacts to use event enums * chore(scripts/calls): Refactored calls to use event enums * chore(scripts/notes): Refactored notes to use event enums * chore(scripts/photos): Refactored photos to use event enums * chore(scripts/bank): Refactored bank to use event enums * chore(scripts/phone): Refactored phone to use event enums * chore(events): Removed old events object * refactor(phone/nui-events): Attached NUI events to respective enum * tweak(event-enums): Added npwd prefix to all events * tweak(phone/serve): Added craco to override CRA without eject Also bumped react-scripts to 4.0.1, with seemingly no issues * fix(typings/twitter): Fixed method enums for twitter
41 lines
871 B
TypeScript
41 lines
871 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',
|
|
}
|