@wppconnect/wa-js 2.6.0 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -215
- package/dist/call/events/eventTypes.d.ts +56 -0
- package/dist/call/events/index.d.ts +16 -0
- package/dist/call/events/registerIncomingCallEvent.d.ts +16 -0
- package/dist/call/functions/index.d.ts +16 -0
- package/dist/call/functions/rejectCall.d.ts +36 -0
- package/dist/call/index.d.ts +17 -0
- package/dist/catalog/functions/getMyCatalog.d.ts +27 -0
- package/dist/catalog/functions/index.d.ts +16 -0
- package/dist/catalog/index.d.ts +16 -0
- package/dist/config.d.ts +15 -1
- package/dist/eventEmitter/eventTypes.d.ts +4 -2
- package/dist/eventEmitter/index.d.ts +41 -41
- package/dist/gtag/Tracker.d.ts +51 -0
- package/dist/gtag/index.d.ts +17 -0
- package/dist/index.d.ts +3 -0
- package/dist/whatsapp/enums/CALL_STATES.d.ts +32 -0
- package/dist/whatsapp/enums/index.d.ts +1 -0
- package/dist/whatsapp/functions/handleAck.d.ts +18 -3
- package/dist/whatsapp/functions/sendCallSignalingMsg.d.ts +5 -4
- package/dist/whatsapp/models/CallModel.d.ts +9 -8
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +16 -0
- package/package.json +9 -8
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Wid } from '..';
|
|
17
|
-
import { ChatModel } from '../models';
|
|
18
16
|
/** @whatsapp 56981 */
|
|
19
17
|
export declare function sendCallSignalingMsg(data: {
|
|
20
18
|
common: {
|
|
21
19
|
type?: string;
|
|
22
20
|
call_id?: string;
|
|
23
|
-
peer_jid:
|
|
21
|
+
peer_jid: string;
|
|
24
22
|
};
|
|
25
23
|
payload: [
|
|
26
24
|
string,
|
|
@@ -31,4 +29,7 @@ export declare function sendCallSignalingMsg(data: {
|
|
|
31
29
|
},
|
|
32
30
|
null
|
|
33
31
|
];
|
|
34
|
-
}, tagId?: string): Promise<
|
|
32
|
+
}, tagId?: string): Promise<{
|
|
33
|
+
payload: any;
|
|
34
|
+
status: 200;
|
|
35
|
+
}>;
|
|
@@ -14,17 +14,19 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { CallCollection } from '../collections';
|
|
17
|
+
import { CALL_STATES } from '../enums';
|
|
18
|
+
import { Wid } from '../misc';
|
|
17
19
|
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
18
20
|
interface Props {
|
|
19
|
-
id
|
|
20
|
-
peerJid
|
|
21
|
-
offerTime
|
|
21
|
+
id: string;
|
|
22
|
+
peerJid: Wid;
|
|
23
|
+
offerTime: number;
|
|
22
24
|
isVideo: boolean;
|
|
23
25
|
isGroup: boolean;
|
|
24
26
|
groupCallParticipants?: any;
|
|
25
27
|
canHandleLocally: boolean;
|
|
26
|
-
outgoing
|
|
27
|
-
webClientShouldHandle
|
|
28
|
+
outgoing: boolean;
|
|
29
|
+
webClientShouldHandle: boolean;
|
|
28
30
|
callInfo?: any;
|
|
29
31
|
}
|
|
30
32
|
interface Session {
|
|
@@ -42,9 +44,8 @@ export declare interface CallModel extends ModelProxy<Props, Session, Derived> {
|
|
|
42
44
|
*/
|
|
43
45
|
export declare class CallModel extends Model<CallCollection> {
|
|
44
46
|
constructor(proterties?: ModelPropertiesContructor<CallModel>, options?: ModelOptions);
|
|
45
|
-
getState():
|
|
46
|
-
setState(
|
|
47
|
-
handleNotification(): any;
|
|
47
|
+
getState(): CALL_STATES;
|
|
48
|
+
setState(state: CALL_STATES): void;
|
|
48
49
|
getCollection(): CallCollection;
|
|
49
50
|
}
|
|
50
51
|
export {};
|