@wppconnect/wa-js 3.3.1 → 3.4.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.
- package/CHANGELOG.md +1 -6
- package/dist/assert/assertColor.d.ts +4 -4
- package/dist/call/functions/end.d.ts +5 -5
- package/dist/chat/functions/index.d.ts +1 -0
- package/dist/chat/functions/sendPixKeyMessage.d.ts +53 -0
- package/dist/eventEmitter/index.d.ts +22 -22
- package/dist/group/functions/getGroupInfoFromInviteCode.d.ts +1 -1
- package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +1 -0
- package/dist/whatsapp/models/index.d.ts +0 -1
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +12 -12
- package/dist/whatsapp/models/CallParticipantModel.d.ts +0 -50
package/CHANGELOG.md
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { WPPError } from '../util';
|
|
17
17
|
export declare class InvalidColor extends WPPError {
|
|
18
|
-
readonly color?: string | number | {
|
|
18
|
+
readonly color?: (string | number | {
|
|
19
19
|
_serialized: string;
|
|
20
|
-
} | undefined;
|
|
21
|
-
constructor(color?: string | number | {
|
|
20
|
+
}) | undefined;
|
|
21
|
+
constructor(color?: (string | number | {
|
|
22
22
|
_serialized: string;
|
|
23
|
-
} | undefined);
|
|
23
|
+
}) | undefined);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Return the color in positive decimal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2024 WPPConnect Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
|
-
* End a
|
|
17
|
+
* End a call
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```javascript
|
|
21
|
-
* // End any
|
|
21
|
+
* // End any call
|
|
22
22
|
* WPP.call.end();
|
|
23
23
|
*
|
|
24
24
|
* // End specific call id
|
|
25
25
|
* WPP.call.end(callId);
|
|
26
26
|
*
|
|
27
|
-
* // End any
|
|
28
|
-
* WPP.on('call.
|
|
27
|
+
* // End any incoming call
|
|
28
|
+
* WPP.on('call.incoming_call', (call) => {
|
|
29
29
|
* WPP.call.end(call.id);
|
|
30
30
|
* });
|
|
31
31
|
* ```
|
|
@@ -60,6 +60,7 @@ export { GroupInviteMessage, sendGroupInviteMessage, } from './sendGroupInviteMe
|
|
|
60
60
|
export { ListMessageOptions, sendListMessage } from './sendListMessage';
|
|
61
61
|
export { LocationMessageOptions, sendLocationMessage, } from './sendLocationMessage';
|
|
62
62
|
export { OrderItems, OrderMessageOptions, sendOrderMessage, } from './sendOrderMessage';
|
|
63
|
+
export { sendPixKeyMessage } from './sendPixKeyMessage';
|
|
63
64
|
export { sendRawMessage } from './sendRawMessage';
|
|
64
65
|
export { sendReactionToMessage } from './sendReactionToMessage';
|
|
65
66
|
export { ScheduledCallMessageOptions, sendScheduledCallMessage, } from './sendScheduledCallMessage';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 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
|
+
import { SendMessageOptions, SendMessageReturn } from '..';
|
|
17
|
+
export interface OrderItems {
|
|
18
|
+
type: 'product' | 'custom';
|
|
19
|
+
id?: number[] | string[];
|
|
20
|
+
name?: string;
|
|
21
|
+
price?: number;
|
|
22
|
+
qnt?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface OrderMessageOptions extends SendMessageOptions {
|
|
25
|
+
notes?: string;
|
|
26
|
+
discount?: number;
|
|
27
|
+
tax?: number;
|
|
28
|
+
shipping?: number;
|
|
29
|
+
offset?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Send a invoice message
|
|
33
|
+
* To send (prices, tax, shipping or discount), for example: USD 12.90, send them without dots or commas, like: 12900
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```javascript
|
|
37
|
+
* // Send PIX Key Message (Brazil Pix Key)
|
|
38
|
+
* WPP.chat.sendPixKeyMessage('[number]@c.us', {
|
|
39
|
+
* keyType: 'CNPJ',
|
|
40
|
+
* name: 'WPPCONNECT-TEAM',
|
|
41
|
+
* key: '33460516000178',
|
|
42
|
+
* instructions: 'Pay text for instructions here',
|
|
43
|
+
* });
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
* @category Message
|
|
47
|
+
*/
|
|
48
|
+
export declare function sendPixKeyMessage(chatId: any, params: {
|
|
49
|
+
keyType: 'CNPJ' | 'CPF' | 'PHONE' | 'EMAIL' | 'EVP';
|
|
50
|
+
name: string;
|
|
51
|
+
key: string;
|
|
52
|
+
instructions?: string;
|
|
53
|
+
}, options?: SendMessageOptions): Promise<SendMessageReturn>;
|
|
@@ -37,19 +37,19 @@ export declare const emitAsync: <Name extends "config.update" | "blocklist.sync"
|
|
|
37
37
|
alfa: string;
|
|
38
38
|
beta: (from: number, to: string) => void;
|
|
39
39
|
})[Name]>) => Promise<any[]>;
|
|
40
|
-
export declare const eventNames: <Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(nsAsArray?: boolean
|
|
40
|
+
export declare const eventNames: <Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(nsAsArray?: boolean) => Name[];
|
|
41
41
|
export declare const getMaxListeners: () => number;
|
|
42
42
|
export declare const hasListeners: <Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => boolean;
|
|
43
43
|
export declare const listenTo: {
|
|
44
|
-
(target: import("eventemitter2").GeneralEventEmitter, events:
|
|
44
|
+
(target: import("eventemitter2").GeneralEventEmitter, events: import("eventemitter2").event | import("eventemitter2").eventNS, options?: import("eventemitter2").ListenToOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & 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
|
|
48
|
+
(target: import("eventemitter2").GeneralEventEmitter, events: import("eventemitter2").event[], options?: import("eventemitter2").ListenToOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & 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
|
|
52
|
+
(target: import("eventemitter2").GeneralEventEmitter, events: object, options?: import("eventemitter2").ListenToOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
53
53
|
alfa: string;
|
|
54
54
|
beta: (from: number, to: string) => void;
|
|
55
55
|
}>;
|
|
@@ -64,10 +64,10 @@ export declare const many: {
|
|
|
64
64
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
65
65
|
objectify: true;
|
|
66
66
|
}): import("eventemitter2").Listener;
|
|
67
|
-
<
|
|
67
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
68
68
|
alfa: string;
|
|
69
69
|
beta: (from: number, to: string) => void;
|
|
70
|
-
})[
|
|
70
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
71
71
|
alfa: string;
|
|
72
72
|
beta: (from: number, to: string) => void;
|
|
73
73
|
}>;
|
|
@@ -90,10 +90,10 @@ export declare const on: {
|
|
|
90
90
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
91
91
|
objectify: true;
|
|
92
92
|
}): import("eventemitter2").Listener;
|
|
93
|
-
<
|
|
93
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
94
94
|
alfa: string;
|
|
95
95
|
beta: (from: number, to: string) => void;
|
|
96
|
-
})[
|
|
96
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
97
97
|
alfa: string;
|
|
98
98
|
beta: (from: number, to: string) => void;
|
|
99
99
|
}>;
|
|
@@ -109,10 +109,10 @@ export declare const once: {
|
|
|
109
109
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
110
110
|
objectify: true;
|
|
111
111
|
}): import("eventemitter2").Listener;
|
|
112
|
-
<
|
|
112
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
113
113
|
alfa: string;
|
|
114
114
|
beta: (from: number, to: string) => void;
|
|
115
|
-
})[
|
|
115
|
+
})[Name]>) => void, options?: true | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
116
116
|
alfa: string;
|
|
117
117
|
beta: (from: number, to: string) => void;
|
|
118
118
|
}>;
|
|
@@ -128,10 +128,10 @@ export declare const prependListener: {
|
|
|
128
128
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
129
129
|
objectify: true;
|
|
130
130
|
}): import("eventemitter2").Listener;
|
|
131
|
-
<
|
|
131
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
132
132
|
alfa: string;
|
|
133
133
|
beta: (from: number, to: string) => void;
|
|
134
|
-
})[
|
|
134
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
135
135
|
alfa: string;
|
|
136
136
|
beta: (from: number, to: string) => void;
|
|
137
137
|
}>;
|
|
@@ -143,10 +143,10 @@ export declare const prependMany: {
|
|
|
143
143
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
144
144
|
objectify: true;
|
|
145
145
|
}): import("eventemitter2").Listener;
|
|
146
|
-
<
|
|
146
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
147
147
|
alfa: string;
|
|
148
148
|
beta: (from: number, to: string) => void;
|
|
149
|
-
})[
|
|
149
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
150
150
|
alfa: string;
|
|
151
151
|
beta: (from: number, to: string) => void;
|
|
152
152
|
}>;
|
|
@@ -158,10 +158,10 @@ export declare const prependOnceListener: {
|
|
|
158
158
|
})[Name]>) => void, options: import("./eventEmitter").OnOptions & {
|
|
159
159
|
objectify: true;
|
|
160
160
|
}): import("eventemitter2").Listener;
|
|
161
|
-
<
|
|
161
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
162
162
|
alfa: string;
|
|
163
163
|
beta: (from: number, to: string) => void;
|
|
164
|
-
})[
|
|
164
|
+
})[Name]>) => void, options?: boolean | import("./eventEmitter").OnOptions): EventEmitter<import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
165
165
|
alfa: string;
|
|
166
166
|
beta: (from: number, to: string) => void;
|
|
167
167
|
}>;
|
|
@@ -178,18 +178,18 @@ export declare const removeListener: <Name extends "config.update" | "blocklist.
|
|
|
178
178
|
beta: (from: number, to: string) => void;
|
|
179
179
|
}>;
|
|
180
180
|
export declare const setMaxListeners: (n: number) => void;
|
|
181
|
-
export declare const stopListeningTo: (target?: import("eventemitter2").GeneralEventEmitter
|
|
181
|
+
export declare const stopListeningTo: (target?: import("eventemitter2").GeneralEventEmitter, event?: import("eventemitter2").event | import("eventemitter2").eventNS) => boolean;
|
|
182
182
|
export declare const waitFor: {
|
|
183
|
-
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timeout?: number
|
|
183
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, timeout?: number): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
184
184
|
alfa: string;
|
|
185
185
|
beta: (from: number, to: string) => void;
|
|
186
186
|
})[Name]>>;
|
|
187
|
-
<
|
|
187
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, filter?: import("./eventEmitter").WaitForFilter): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
188
188
|
alfa: string;
|
|
189
189
|
beta: (from: number, to: string) => void;
|
|
190
|
-
})[
|
|
191
|
-
<
|
|
190
|
+
})[Name]>>;
|
|
191
|
+
<Name extends "config.update" | "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event: Name, options?: import("eventemitter2").WaitForOptions): import("eventemitter2").CancelablePromise<import("./eventEmitter").ListenerType<(import("./eventTypes").BlocklistEventTypes & import("./eventTypes").CallEventTypes & import("./eventTypes").ChatEventTypes & import("./eventTypes").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & import("./eventTypes").StatusEventTypes & import("./eventTypes").WebpackEvents & {
|
|
192
192
|
alfa: string;
|
|
193
193
|
beta: (from: number, to: string) => void;
|
|
194
|
-
})[
|
|
194
|
+
})[Name]>>;
|
|
195
195
|
};
|
|
@@ -40,7 +40,7 @@ export declare function getGroupInfoFromInviteCode(inviteCode: string): Promise<
|
|
|
40
40
|
descTime: number;
|
|
41
41
|
noFrequentlyForwarded: boolean;
|
|
42
42
|
parent: boolean;
|
|
43
|
-
pvId?: string
|
|
43
|
+
pvId?: string;
|
|
44
44
|
restrict: boolean;
|
|
45
45
|
size: number;
|
|
46
46
|
status: number;
|
|
@@ -19,7 +19,6 @@ export * from './BlocklistModel';
|
|
|
19
19
|
export * from './BusinessCategoriesResultModel';
|
|
20
20
|
export * from './BusinessProfileModel';
|
|
21
21
|
export * from './CallModel';
|
|
22
|
-
export * from './CallParticipantModel';
|
|
23
22
|
export * from './CartItemModel';
|
|
24
23
|
export * from './CartModel';
|
|
25
24
|
export * from './CatalogModel';
|