talkyzap-wapp-api 1.0.14 → 1.0.15
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 +2 -2
- package/dist/assert/assertColor.d.ts +4 -4
- package/dist/chat/functions/sendFileMessage.d.ts +2 -2
- package/dist/contact/functions/index.d.ts +2 -0
- package/dist/contact/functions/queryExists.d.ts +1 -0
- package/dist/contact/functions/remove.d.ts +27 -0
- package/dist/contact/functions/save.d.ts +33 -0
- package/dist/eventEmitter/index.d.ts +25 -25
- package/dist/profile/functions/editBusinessProfile.d.ts +60 -26
- package/dist/whatsapp/functions/canSaveAsMyContacts.d.ts +20 -0
- package/dist/whatsapp/functions/deleteContactAction.d.ts +19 -0
- package/dist/whatsapp/functions/index.d.ts +6 -0
- package/dist/whatsapp/functions/isLidMigrated.d.ts +19 -0
- package/dist/whatsapp/functions/productVisibilitySet.d.ts +1 -1
- package/dist/whatsapp/functions/saveContactAction.d.ts +26 -0
- package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +35 -32
- package/dist/whatsapp/functions/shouldHaveAccountLid.d.ts +19 -0
- package/dist/whatsapp/functions/toUserLid.d.ts +20 -0
- package/dist/whatsapp/misc/UserPrefs.d.ts +6 -1
- package/dist/whatsapp/misc/WidFactory.d.ts +3 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## 3.
|
|
1
|
+
## 3.18.2 (2025-08-29)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* Fixed getMyDeviceId >= 2.3000.1026498050 ([#2869](https://github.com/wppconnect-team/wa-js/issues/2869)) ([56ee7de](https://github.com/wppconnect-team/wa-js/commit/56ee7de458fcd62ef59409cd307b1cc5ef9d76ec))
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { WPPError } from '../util';
|
|
17
17
|
export declare class InvalidColor extends WPPError {
|
|
18
|
-
readonly color?:
|
|
18
|
+
readonly color?: string | number | {
|
|
19
19
|
_serialized: string;
|
|
20
|
-
}
|
|
21
|
-
constructor(color?:
|
|
20
|
+
} | undefined;
|
|
21
|
+
constructor(color?: string | number | {
|
|
22
22
|
_serialized: string;
|
|
23
|
-
}
|
|
23
|
+
} | undefined);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Return the color in positive decimal
|
|
@@ -164,7 +164,7 @@ export interface VideoMessageOptions extends FileMessageOptions, MessageButtonsO
|
|
|
164
164
|
* // A simple video
|
|
165
165
|
* WPP.chat.sendFileMessage(
|
|
166
166
|
* '[number]@c.us',
|
|
167
|
-
* 'data:
|
|
167
|
+
* 'data:video/mp4;base64,<a long base64 file...>',
|
|
168
168
|
* {
|
|
169
169
|
* type: 'video',
|
|
170
170
|
* }
|
|
@@ -173,7 +173,7 @@ export interface VideoMessageOptions extends FileMessageOptions, MessageButtonsO
|
|
|
173
173
|
* // A PTV Video (micro video)
|
|
174
174
|
* WPP.chat.sendFileMessage(
|
|
175
175
|
* '[number]@c.us',
|
|
176
|
-
* 'data:
|
|
176
|
+
* 'data:video/mp4;base64,<a long base64 file...>',
|
|
177
177
|
* {
|
|
178
178
|
* type: 'video',
|
|
179
179
|
* isPtv: true,
|
|
@@ -20,5 +20,7 @@ export { getProfilePictureUrl } from './getProfilePictureUrl';
|
|
|
20
20
|
export { getStatus } from './getStatus';
|
|
21
21
|
export { ContactListOptions, list } from './list';
|
|
22
22
|
export { queryExists } from './queryExists';
|
|
23
|
+
export { remove } from './remove';
|
|
24
|
+
export { save } from './save';
|
|
23
25
|
export { subscribePresence } from './subscribePresence';
|
|
24
26
|
export { unsubscribePresence } from './unsubscribePresence';
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { ContactModel, Wid } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Remove/delete contact in the device
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* await WPP.contact.remove('5533999999999@c.us');
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Contact
|
|
26
|
+
*/
|
|
27
|
+
export declare function remove(contactId: string | Wid): Promise<ContactModel | undefined>;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { ContactModel, Wid } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Create new or update a contact in the device
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* await WPP.contact.save('5533999999999@c.us', 'John', {
|
|
23
|
+
* surname: 'Doe',
|
|
24
|
+
* syncAdressBook: true,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @category Contact
|
|
29
|
+
*/
|
|
30
|
+
export declare function save(contactId: string | Wid, name: string, options?: {
|
|
31
|
+
surname?: string;
|
|
32
|
+
syncAdressBook?: boolean;
|
|
33
|
+
}): Promise<ContactModel | undefined>;
|
|
@@ -22,24 +22,24 @@ export declare const ev: EventEmitter<import("./eventTypes").BlocklistEventTypes
|
|
|
22
22
|
beta: (from: number, to: string) => void;
|
|
23
23
|
}>;
|
|
24
24
|
export { EventEmitter };
|
|
25
|
-
export declare const addListener: <Name extends "
|
|
25
|
+
export declare const addListener: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
26
26
|
alfa: string;
|
|
27
27
|
beta: (from: number, to: string) => void;
|
|
28
28
|
})[Name]>) => void) => 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 & {
|
|
29
29
|
alfa: string;
|
|
30
30
|
beta: (from: number, to: string) => void;
|
|
31
31
|
}> | import("eventemitter2").Listener;
|
|
32
|
-
export declare const emit: <Name extends "
|
|
32
|
+
export declare const emit: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & 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 "
|
|
36
|
+
export declare const emitAsync: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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").ConfigEventTypes & import("./eventTypes").ConnEventTypes & import("./eventTypes").GroupEventTypes & import("./eventTypes").OrderEventTypes & 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 "
|
|
40
|
+
export declare const eventNames: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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
|
-
export declare const hasListeners: <Name extends "
|
|
42
|
+
export declare const hasListeners: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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
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;
|
|
@@ -54,17 +54,17 @@ export declare const listenTo: {
|
|
|
54
54
|
beta: (from: number, to: string) => void;
|
|
55
55
|
}>;
|
|
56
56
|
};
|
|
57
|
-
export declare const listenerCount: <Name extends "
|
|
58
|
-
export declare const listeners: <Name extends "
|
|
57
|
+
export declare const listenerCount: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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 | "config.update" | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "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 "
|
|
61
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
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 extends "
|
|
67
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
@@ -72,7 +72,7 @@ export declare const many: {
|
|
|
72
72
|
beta: (from: number, to: string) => void;
|
|
73
73
|
}>;
|
|
74
74
|
};
|
|
75
|
-
export declare const off: <Name extends "
|
|
75
|
+
export declare const off: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
76
76
|
alfa: string;
|
|
77
77
|
beta: (from: number, to: string) => void;
|
|
78
78
|
})[Name]>) => void) => 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 & {
|
|
@@ -84,13 +84,13 @@ export declare const offAny: (listener: import("eventemitter2").ListenerFn) => E
|
|
|
84
84
|
beta: (from: number, to: string) => void;
|
|
85
85
|
}>;
|
|
86
86
|
export declare const on: {
|
|
87
|
-
<Name extends "
|
|
87
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
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 extends "
|
|
93
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
@@ -103,13 +103,13 @@ export declare const onAny: (listener: import("eventemitter2").EventAndListener)
|
|
|
103
103
|
beta: (from: number, to: string) => void;
|
|
104
104
|
}>;
|
|
105
105
|
export declare const once: {
|
|
106
|
-
<Name extends "
|
|
106
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
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 extends "
|
|
112
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
@@ -122,13 +122,13 @@ export declare const prependAny: (listener: import("eventemitter2").EventAndList
|
|
|
122
122
|
beta: (from: number, to: string) => void;
|
|
123
123
|
}>;
|
|
124
124
|
export declare const prependListener: {
|
|
125
|
-
<Name extends "
|
|
125
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
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 extends "
|
|
131
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
@@ -137,13 +137,13 @@ export declare const prependListener: {
|
|
|
137
137
|
}>;
|
|
138
138
|
};
|
|
139
139
|
export declare const prependMany: {
|
|
140
|
-
<Name extends "
|
|
140
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
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 extends "
|
|
146
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
@@ -152,13 +152,13 @@ export declare const prependMany: {
|
|
|
152
152
|
}>;
|
|
153
153
|
};
|
|
154
154
|
export declare const prependOnceListener: {
|
|
155
|
-
<Name extends "
|
|
155
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
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 extends "
|
|
161
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
@@ -166,11 +166,11 @@ export declare const prependOnceListener: {
|
|
|
166
166
|
beta: (from: number, to: string) => void;
|
|
167
167
|
}>;
|
|
168
168
|
};
|
|
169
|
-
export declare const removeAllListeners: <Name extends "
|
|
169
|
+
export declare const removeAllListeners: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | keyof import("./eventTypes").ConnEventTypes | "group.participant_changed" | "order.payment_status" | "status.sync" | keyof import("./eventTypes").WebpackEvents | "alfa" | "beta">(event?: Name | undefined) => 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 & {
|
|
170
170
|
alfa: string;
|
|
171
171
|
beta: (from: number, to: string) => void;
|
|
172
172
|
}>;
|
|
173
|
-
export declare const removeListener: <Name extends "
|
|
173
|
+
export declare const removeListener: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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 & {
|
|
174
174
|
alfa: string;
|
|
175
175
|
beta: (from: number, to: string) => void;
|
|
176
176
|
})[Name]>) => void) => 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 & {
|
|
@@ -180,15 +180,15 @@ export declare const removeListener: <Name extends "config.update" | "blocklist.
|
|
|
180
180
|
export declare const setMaxListeners: (n: number) => void;
|
|
181
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 "
|
|
183
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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
|
-
<Name extends "
|
|
187
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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
190
|
})[Name]>>;
|
|
191
|
-
<Name extends "
|
|
191
|
+
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes | "config.update" | 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]>>;
|
|
@@ -23,11 +23,11 @@ import { BusinessProfileModel } from '../../whatsapp';
|
|
|
23
23
|
* ```
|
|
24
24
|
*
|
|
25
25
|
* ```javascript
|
|
26
|
-
* await WPP.profile.editBusinessProfile({categories: {
|
|
26
|
+
* await WPP.profile.editBusinessProfile({categories: [{
|
|
27
27
|
id: "133436743388217",
|
|
28
28
|
localized_display_name: "Artes e entretenimento",
|
|
29
29
|
not_a_biz: false,
|
|
30
|
-
}});
|
|
30
|
+
}]});
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
33
|
* ```javascript
|
|
@@ -144,31 +144,65 @@ import { BusinessProfileModel } from '../../whatsapp';
|
|
|
144
144
|
*
|
|
145
145
|
* Change businessHours for Appointment Only
|
|
146
146
|
* ```javascript
|
|
147
|
-
* await WPP.profile.editBusinessProfile({
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
* await WPP.profile.editBusinessProfile({ {
|
|
148
|
+
"config": {
|
|
149
|
+
"mon": {
|
|
150
|
+
"mode": "specific_hours",
|
|
151
|
+
"hours": [
|
|
152
|
+
[
|
|
153
|
+
480,
|
|
154
|
+
1260
|
|
155
|
+
]
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"tue": {
|
|
159
|
+
"mode": "specific_hours",
|
|
160
|
+
"hours": [
|
|
161
|
+
[
|
|
162
|
+
480,
|
|
163
|
+
1260
|
|
164
|
+
]
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"wed": {
|
|
168
|
+
"mode": "specific_hours",
|
|
169
|
+
"hours": [
|
|
170
|
+
[
|
|
171
|
+
480,
|
|
172
|
+
1260
|
|
173
|
+
]
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"thu": {
|
|
177
|
+
"mode": "specific_hours",
|
|
178
|
+
"hours": [
|
|
179
|
+
[
|
|
180
|
+
480,
|
|
181
|
+
1260
|
|
182
|
+
]
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"fri": {
|
|
186
|
+
"mode": "specific_hours",
|
|
187
|
+
"hours": [
|
|
188
|
+
[
|
|
189
|
+
480,
|
|
190
|
+
1260
|
|
191
|
+
]
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"sat": {
|
|
195
|
+
"mode": "specific_hours",
|
|
196
|
+
"hours": [
|
|
197
|
+
[
|
|
198
|
+
660,
|
|
199
|
+
1320
|
|
200
|
+
]
|
|
201
|
+
]
|
|
202
|
+
}
|
|
150
203
|
},
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
wed: {
|
|
155
|
-
mode: "appointment_only",
|
|
156
|
-
},
|
|
157
|
-
thu: {
|
|
158
|
-
mode: "appointment_only",
|
|
159
|
-
},
|
|
160
|
-
fri: {
|
|
161
|
-
mode: "appointment_only",
|
|
162
|
-
},
|
|
163
|
-
sat: {
|
|
164
|
-
mode: "appointment_only",
|
|
165
|
-
},
|
|
166
|
-
sun: {
|
|
167
|
-
mode: "appointment_only",
|
|
168
|
-
},
|
|
169
|
-
}
|
|
170
|
-
timezone: "America/Sao_Paulo"
|
|
171
|
-
});
|
|
204
|
+
"timezone": "America/Sao_Paulo"
|
|
205
|
+
});
|
|
172
206
|
*
|
|
173
207
|
*
|
|
174
208
|
* ```
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { Wid } from '../misc';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp WAWebContactEditUtils >= 2.3000.0
|
|
19
|
+
*/
|
|
20
|
+
export declare function canSaveAsMyContacts(wid: Wid): boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* @whatsapp WAWebDeleteContactAction >= 2.3000.0
|
|
18
|
+
*/
|
|
19
|
+
export declare function deleteContactAction(number: string): Promise<void>;
|
|
@@ -22,6 +22,7 @@ export * from './calculateFilehashFromBlob';
|
|
|
22
22
|
export * from './canEditCaption';
|
|
23
23
|
export * from './canEditMsg';
|
|
24
24
|
export * from './canReplyMsg';
|
|
25
|
+
export * from './canSaveAsMyContacts';
|
|
25
26
|
export * from './changeOptInStatusForExternalWebBeta';
|
|
26
27
|
export * from './checkChatExistedOrCreate';
|
|
27
28
|
export * from './collections';
|
|
@@ -37,6 +38,7 @@ export * from './createNewsletterQuery';
|
|
|
37
38
|
export * from './createOrder';
|
|
38
39
|
export * from './createOrUpdateReactions';
|
|
39
40
|
export * from './currencyForCountryShortcode';
|
|
41
|
+
export * from './deleteContactAction';
|
|
40
42
|
export * from './deleteNewsletter';
|
|
41
43
|
export * from './editBusinessProfile';
|
|
42
44
|
export * from './editNewsletterMetadataAction';
|
|
@@ -97,6 +99,7 @@ export * from './initializeAltDeviceLinking';
|
|
|
97
99
|
export * from './isAnimatedWebp';
|
|
98
100
|
export * from './isAuthenticated';
|
|
99
101
|
export * from './isFilterExcludedFromSearchTreatmentInInboxFlow';
|
|
102
|
+
export * from './isLidMigrated';
|
|
100
103
|
export * from './isRegistered';
|
|
101
104
|
export * from './isUnreadTypeMsg';
|
|
102
105
|
export * from './isWid';
|
|
@@ -124,6 +127,7 @@ export * from './randomId';
|
|
|
124
127
|
export * from './removeStatusMessage';
|
|
125
128
|
export * from './resetGroupInviteCode';
|
|
126
129
|
export * from './revokeStatus';
|
|
130
|
+
export * from './saveContactAction';
|
|
127
131
|
export * from './selectChatForOneOnOneMessage';
|
|
128
132
|
export * from './sendClear';
|
|
129
133
|
export * from './sendCreateCommunity';
|
|
@@ -145,11 +149,13 @@ export * from './setGroup';
|
|
|
145
149
|
export * from './setPin';
|
|
146
150
|
export * from './setPrivacyForOneCategory';
|
|
147
151
|
export * from './setPushname';
|
|
152
|
+
export * from './shouldHaveAccountLid';
|
|
148
153
|
export * from './status';
|
|
149
154
|
export * from './STATUS_JID';
|
|
150
155
|
export * from './statusEnable';
|
|
151
156
|
export * from './subscribePresence';
|
|
152
157
|
export * from './syncABPropsTask';
|
|
158
|
+
export * from './toUserLid';
|
|
153
159
|
export * from './typeAttributeFromProtobuf';
|
|
154
160
|
export * from './unixTime';
|
|
155
161
|
export * from './unmuteNewsletter';
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* @whatsapp WAWebLidMigrationUtils >= 2.3000.x
|
|
18
|
+
*/
|
|
19
|
+
export declare function isLidMigrated(): boolean;
|
|
@@ -18,4 +18,4 @@ export interface ProductVisibilitySetParams {
|
|
|
18
18
|
productId: number;
|
|
19
19
|
}
|
|
20
20
|
/** @whatsapp 621374 >= 2.2228.14 */
|
|
21
|
-
export declare function productVisibilitySet(
|
|
21
|
+
export declare function productVisibilitySet(productId: string, isHidden: boolean): any;
|