From 815b90afa89001c2e29113459fefd6de8c07a8e2 Mon Sep 17 00:00:00 2001 From: gekkedev <17025257+gekkedev@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:42:39 +0200 Subject: [PATCH] Create incoming-call.ts --- src/api/model/incoming-call.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/api/model/incoming-call.ts diff --git a/src/api/model/incoming-call.ts b/src/api/model/incoming-call.ts new file mode 100644 index 000000000..e24061c2b --- /dev/null +++ b/src/api/model/incoming-call.ts @@ -0,0 +1,34 @@ +/* + * This file is part of WPPConnect. + * + * WPPConnect is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * WPPConnect is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with WPPConnect. If not, see . + */ + +export interface IncomingCall { + /** alphanumeric ID of the call, can e.g. usable for hanging up */ + id: string, + /** ID of the caller, can be used to message them directly */ + peerJid: string, + /** Epoch timestamp (seconds) */ + offerTime: number, + isVideo: boolean, + isGroup: boolean, + groupJid: string | null, + canHandleLocally: boolean, + outgoing: boolean, + isSilenced: boolean, + offerReceivedWhileOffline: boolean, + webClientShouldHandle: boolean, + participants: any[] +}