@wppconnect/wa-js 2.5.0 → 2.7.0

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.
@@ -17,178 +17,178 @@ import { EventEmitter } from './eventEmitter';
17
17
  import { EventTypes } from './eventTypes';
18
18
  export * from './eventTypes';
19
19
  export declare const internalEv: EventEmitter<EventTypes>;
20
- export declare const ev: EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
20
+ export declare const ev: EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
21
21
  alfa: string;
22
22
  beta: (from: number, to: string) => void;
23
23
  }>;
24
24
  export { EventEmitter };
25
- export declare const addListener: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
25
+ export declare const addListener: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
26
26
  alfa: string;
27
27
  beta: (from: number, to: string) => void;
28
- })[Name]>) => void) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
28
+ })[Name]>) => void) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
29
29
  alfa: string;
30
30
  beta: (from: number, to: string) => void;
31
31
  }> | import("eventemitter2").Listener;
32
- export declare const emit: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, ...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
32
+ export declare const emit: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, ...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
33
33
  alfa: string;
34
34
  beta: (from: number, to: string) => void;
35
35
  })[Name]>) => boolean;
36
- export declare const emitAsync: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, ...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
36
+ export declare const emitAsync: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, ...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
37
37
  alfa: string;
38
38
  beta: (from: number, to: string) => void;
39
39
  })[Name]>) => Promise<any[]>;
40
- export declare const eventNames: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(nsAsArray?: boolean | undefined) => Name[];
40
+ export declare const eventNames: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(nsAsArray?: boolean | undefined) => Name[];
41
41
  export declare const getMaxListeners: () => number;
42
- export declare const hasListeners: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => boolean;
42
+ export declare const hasListeners: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => boolean;
43
43
  export declare const listenTo: {
44
- (target: import("eventemitter2").GeneralEventEmitter, events: string | symbol | import("eventemitter2").event[], options?: import("eventemitter2").ListenToOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
44
+ (target: import("eventemitter2").GeneralEventEmitter, events: string | symbol | import("eventemitter2").event[], options?: import("eventemitter2").ListenToOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
45
45
  alfa: string;
46
46
  beta: (from: number, to: string) => void;
47
47
  }>;
48
- (target: import("eventemitter2").GeneralEventEmitter, events: import("eventemitter2").event[], options?: import("eventemitter2").ListenToOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
48
+ (target: import("eventemitter2").GeneralEventEmitter, events: import("eventemitter2").event[], options?: import("eventemitter2").ListenToOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
49
49
  alfa: string;
50
50
  beta: (from: number, to: string) => void;
51
51
  }>;
52
- (target: import("eventemitter2").GeneralEventEmitter, events: object, options?: import("eventemitter2").ListenToOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
52
+ (target: import("eventemitter2").GeneralEventEmitter, events: object, options?: import("eventemitter2").ListenToOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
53
53
  alfa: string;
54
54
  beta: (from: number, to: string) => void;
55
55
  }>;
56
56
  };
57
- export declare const listenerCount: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => number;
58
- export declare const listeners: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => import("eventemitter2").ListenerFn[];
57
+ export declare const listenerCount: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => number;
58
+ export declare const listeners: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => import("eventemitter2").ListenerFn[];
59
59
  export declare const listenersAny: () => import("eventemitter2").ListenerFn[];
60
60
  export declare const many: {
61
- <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
61
+ <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
62
62
  alfa: string;
63
63
  beta: (from: number, to: string) => void;
64
64
  })[Name]>) => void, options: import("./eventEmitter").OnOptions & {
65
65
  objectify: true;
66
66
  }): import("eventemitter2").Listener;
67
- <Name_1 extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
67
+ <Name_1 extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
68
68
  alfa: string;
69
69
  beta: (from: number, to: string) => void;
70
- })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
70
+ })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
71
71
  alfa: string;
72
72
  beta: (from: number, to: string) => void;
73
73
  }>;
74
74
  };
75
- export declare const off: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
75
+ export declare const off: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
76
76
  alfa: string;
77
77
  beta: (from: number, to: string) => void;
78
- })[Name]>) => void) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
78
+ })[Name]>) => void) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
79
79
  alfa: string;
80
80
  beta: (from: number, to: string) => void;
81
81
  }>;
82
- export declare const offAny: (listener: import("eventemitter2").ListenerFn) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
82
+ export declare const offAny: (listener: import("eventemitter2").ListenerFn) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
83
83
  alfa: string;
84
84
  beta: (from: number, to: string) => void;
85
85
  }>;
86
86
  export declare const on: {
87
- <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
87
+ <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
88
88
  alfa: string;
89
89
  beta: (from: number, to: string) => void;
90
90
  })[Name]>) => void, options: import("./eventEmitter").OnOptions & {
91
91
  objectify: true;
92
92
  }): import("eventemitter2").Listener;
93
- <Name_1 extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
93
+ <Name_1 extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
94
94
  alfa: string;
95
95
  beta: (from: number, to: string) => void;
96
- })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
96
+ })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
97
97
  alfa: string;
98
98
  beta: (from: number, to: string) => void;
99
99
  }>;
100
100
  };
101
- export declare const onAny: (listener: import("eventemitter2").EventAndListener) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
101
+ export declare const onAny: (listener: import("eventemitter2").EventAndListener) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
102
102
  alfa: string;
103
103
  beta: (from: number, to: string) => void;
104
104
  }>;
105
105
  export declare const once: {
106
- <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
106
+ <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
107
107
  alfa: string;
108
108
  beta: (from: number, to: string) => void;
109
109
  })[Name]>) => void, options: import("./eventEmitter").OnOptions & {
110
110
  objectify: true;
111
111
  }): import("eventemitter2").Listener;
112
- <Name_1 extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
112
+ <Name_1 extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
113
113
  alfa: string;
114
114
  beta: (from: number, to: string) => void;
115
- })[Name_1]>) => void, options?: true | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
115
+ })[Name_1]>) => void, options?: true | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
116
116
  alfa: string;
117
117
  beta: (from: number, to: string) => void;
118
118
  }>;
119
119
  };
120
- export declare const prependAny: (listener: import("eventemitter2").EventAndListener) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
120
+ export declare const prependAny: (listener: import("eventemitter2").EventAndListener) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
121
121
  alfa: string;
122
122
  beta: (from: number, to: string) => void;
123
123
  }>;
124
124
  export declare const prependListener: {
125
- <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
125
+ <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
126
126
  alfa: string;
127
127
  beta: (from: number, to: string) => void;
128
128
  })[Name]>) => void, options: import("./eventEmitter").OnOptions & {
129
129
  objectify: true;
130
130
  }): import("eventemitter2").Listener;
131
- <Name_1 extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
131
+ <Name_1 extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
132
132
  alfa: string;
133
133
  beta: (from: number, to: string) => void;
134
- })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
134
+ })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
135
135
  alfa: string;
136
136
  beta: (from: number, to: string) => void;
137
137
  }>;
138
138
  };
139
139
  export declare const prependMany: {
140
- <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
140
+ <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
141
141
  alfa: string;
142
142
  beta: (from: number, to: string) => void;
143
143
  })[Name]>) => void, options: import("./eventEmitter").OnOptions & {
144
144
  objectify: true;
145
145
  }): import("eventemitter2").Listener;
146
- <Name_1 extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
146
+ <Name_1 extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, timesToListen: number, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
147
147
  alfa: string;
148
148
  beta: (from: number, to: string) => void;
149
- })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
149
+ })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
150
150
  alfa: string;
151
151
  beta: (from: number, to: string) => void;
152
152
  }>;
153
153
  };
154
154
  export declare const prependOnceListener: {
155
- <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
155
+ <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
156
156
  alfa: string;
157
157
  beta: (from: number, to: string) => void;
158
158
  })[Name]>) => void, options: import("./eventEmitter").OnOptions & {
159
159
  objectify: true;
160
160
  }): import("eventemitter2").Listener;
161
- <Name_1 extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
161
+ <Name_1 extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
162
162
  alfa: string;
163
163
  beta: (from: number, to: string) => void;
164
- })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
164
+ })[Name_1]>) => void, options?: boolean | import("./eventEmitter").OnOptions | undefined): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
165
165
  alfa: string;
166
166
  beta: (from: number, to: string) => void;
167
167
  }>;
168
168
  };
169
- export declare const removeAllListeners: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
169
+ export declare const removeAllListeners: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
170
170
  alfa: string;
171
171
  beta: (from: number, to: string) => void;
172
172
  }>;
173
- export declare const removeListener: <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
173
+ export declare const removeListener: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, listener: (...args: import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
174
174
  alfa: string;
175
175
  beta: (from: number, to: string) => void;
176
- })[Name]>) => void) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
176
+ })[Name]>) => void) => EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
177
177
  alfa: string;
178
178
  beta: (from: number, to: string) => void;
179
179
  }>;
180
180
  export declare const setMaxListeners: (n: number) => void;
181
181
  export declare const stopListeningTo: (target?: import("eventemitter2").GeneralEventEmitter | undefined, event?: string | symbol | import("eventemitter2").event[] | undefined) => boolean;
182
182
  export declare const waitFor: {
183
- <Name extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timeout?: number | undefined): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
183
+ <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timeout?: number | undefined): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
184
184
  alfa: string;
185
185
  beta: (from: number, to: string) => void;
186
186
  })[Name]>>;
187
- <Name_1 extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, filter?: import("eventemitter2").WaitForFilter | undefined): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
187
+ <Name_1 extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_1, filter?: import("eventemitter2").WaitForFilter | undefined): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
188
188
  alfa: string;
189
189
  beta: (from: number, to: string) => void;
190
190
  })[Name_1]>>;
191
- <Name_2 extends "blocklist.sync" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_2, options?: import("eventemitter2").WaitForOptions | undefined): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
191
+ <Name_2 extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name_2, options?: import("eventemitter2").WaitForOptions | undefined): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
192
192
  alfa: string;
193
193
  beta: (from: number, to: string) => void;
194
194
  })[Name_2]>>;
package/dist/gtag.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const version: string;
package/dist/index.d.ts CHANGED
@@ -15,11 +15,14 @@
15
15
  */
16
16
  import './config';
17
17
  import './deviceName';
18
+ import './gtag';
18
19
  import * as webpack from './webpack';
19
20
  export { webpack };
20
21
  export { isInjected, isReady } from './webpack';
21
22
  export { config } from './config';
22
23
  export * as blocklist from './blocklist';
24
+ export * as call from './call';
25
+ export * as catalog from './catalog';
23
26
  export * as chat from './chat';
24
27
  export * as conn from './conn';
25
28
  export * as contact from './contact';
@@ -0,0 +1,32 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * @whatsapp 49835
18
+ */
19
+ export declare enum CALL_STATES {
20
+ INCOMING_RING = "INCOMING_RING",
21
+ OUTGOING_RING = "OUTGOING_RING",
22
+ OUTGOING_CALLING = "OUTGOING_CALLING",
23
+ CONNECTING = "CONNECTING",
24
+ CONNECTION_LOST = "CONNECTION_LOST",
25
+ ACTIVE = "ACTIVE",
26
+ HANDLED_REMOTELY = "HANDLED_REMOTELY",
27
+ ENDED = "ENDED",
28
+ REJECTED = "REJECTED",
29
+ REMOTE_CALL_IN_PROGRESS = "REMOTE_CALL_IN_PROGRESS",
30
+ FAILED = "FAILED",
31
+ NOT_ANSWERED = "NOT_ANSWERED"
32
+ }
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export * from './ACK';
17
+ export * from './CALL_STATES';
17
18
  export * from './GROUP_SETTING_TYPE';
18
19
  export * from './LogoutReason';
19
20
  export * from './MSG_TYPE';
@@ -27,9 +27,24 @@ export interface SimpleAckData {
27
27
  offline: null;
28
28
  biz?: null;
29
29
  }
30
- /** @whatsapp 90756 */
30
+ /**
31
+ * @whatsapp 90756
32
+ * @deprecated
33
+ */
31
34
  export declare function handleStatusSimpleAck(ackData: SimpleAckData): Promise<any>;
32
- /** @whatsapp 48309 */
35
+ /**
36
+ * @whatsapp 48309
37
+ * @deprecated
38
+ */
33
39
  export declare function handleChatSimpleAck(ackData: SimpleAckData): Promise<any>;
34
- /** @whatsapp 84947 */
40
+ /**
41
+ * @whatsapp 84947
42
+ * @deprecated
43
+ */
35
44
  export declare function handleGroupSimpleAck(ackData: SimpleAckData): Promise<any>;
45
+ /** @whatsapp 90756 */
46
+ export declare function handleStatusSimpleReceipt(ackData: SimpleAckData): Promise<any>;
47
+ /** @whatsapp 48309 */
48
+ export declare function handleChatSimpleReceipt(ackData: SimpleAckData): Promise<any>;
49
+ /** @whatsapp 84947 */
50
+ export declare function handleGroupSimpleReceipt(ackData: SimpleAckData): Promise<any>;
@@ -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: Wid;
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<ChatModel>;
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?: any;
20
- peerJid?: any;
21
- offerTime?: any;
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?: any;
27
- webClientShouldHandle?: any;
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(): any;
46
- setState(e?: any): any;
47
- handleNotification(): any;
47
+ getState(): CALL_STATES;
48
+ setState(state: CALL_STATES): void;
48
49
  getCollection(): CallCollection;
49
50
  }
50
51
  export {};
@@ -22,7 +22,7 @@ import { ModelChatBase, PropsChatBase, SessionChatBase } from './ModelChatBase';
22
22
  interface Props extends PropsChatBase {
23
23
  lastReceivedKey?: MsgKey;
24
24
  t?: number;
25
- unreadCount?: number;
25
+ unreadCount: number;
26
26
  archive?: any;
27
27
  isReadOnly: boolean;
28
28
  isAnnounceGrpRestrict: boolean;