talkyzap-wapp-api 1.0.10 → 1.0.12
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 -1
- package/dist/chat/functions/index.d.ts +1 -0
- package/dist/chat/functions/sendCatalogMessage.d.ts +43 -0
- package/dist/eventEmitter/index.d.ts +25 -25
- package/dist/labels/patch.d.ts +17 -0
- package/dist/whatsapp/functions/createChat.d.ts +19 -0
- package/dist/whatsapp/functions/findOrCreateLatestChat.d.ts +1 -1
- package/dist/whatsapp/functions/getChatRecordByAccountLid.d.ts +20 -0
- package/dist/whatsapp/functions/getEnforceCurrentLid.d.ts +20 -0
- package/dist/whatsapp/functions/getExisting.d.ts +20 -0
- package/dist/whatsapp/functions/getSearchContext.d.ts +1 -1
- package/dist/whatsapp/functions/index.d.ts +5 -0
- package/dist/whatsapp/functions/selectChatForOneOnOneMessage.d.ts +19 -0
- package/dist/whatsapp/misc/Cmd.d.ts +5 -1
- package/dist/whatsapp/misc/Lid1X1MigrationUtils.d.ts +23 -0
- package/dist/whatsapp/misc/index.d.ts +1 -0
- package/dist/whatsapp/models/ChatModel.d.ts +1 -1
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +17 -1
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -56,6 +56,7 @@ export { LinkPreviewOptions, prepareLinkPreview } from './prepareLinkPreview';
|
|
|
56
56
|
export { MessageButtonsOptions, prepareMessageButtons, } from './prepareMessageButtons';
|
|
57
57
|
export { prepareRawMessage } from './prepareRawMessage';
|
|
58
58
|
export { requestPhoneNumber } from './requestPhoneNumber';
|
|
59
|
+
export { sendCatalogMessage } from './sendCatalogMessage';
|
|
59
60
|
export { OrderItems, OrderMessageOptions, sendChargeMessage, } from './sendChargeMessage';
|
|
60
61
|
export { PoolMessageOptions, sendCreatePollMessage, } from './sendCreatePollMessage';
|
|
61
62
|
export { sendEventMessage } from './sendEventMessage';
|
|
@@ -0,0 +1,43 @@
|
|
|
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 '../../whatsapp';
|
|
17
|
+
import { SendMessageOptions, SendMessageReturn } from '..';
|
|
18
|
+
export interface CatalogMessageOptions extends SendMessageOptions {
|
|
19
|
+
jpegThumbnail?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
textMessage?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Send catalog message
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```javascript
|
|
29
|
+
* WPP.chat.sendCatalogMessage(
|
|
30
|
+
* '[number]@c.us',
|
|
31
|
+
* '[number]@c.us',
|
|
32
|
+
* {
|
|
33
|
+
* title: 'My Catalog',
|
|
34
|
+
* description: 'This is my catalog',
|
|
35
|
+
* textMessage: 'Check out my catalog',
|
|
36
|
+
* jpegThumbnail: 'data:image/jpeg;base64,...'
|
|
37
|
+
* }
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @category Message
|
|
42
|
+
*/
|
|
43
|
+
export declare function sendCatalogMessage(chatToSend: string | Wid, chatFromCatalog: string | Wid, opts: CatalogMessageOptions): Promise<SendMessageReturn>;
|
|
@@ -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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
25
|
+
export declare const addListener: <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 & {
|
|
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
32
|
+
export declare const emit: <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, ...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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
36
|
+
export declare const emitAsync: <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, ...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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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
|
-
export declare const hasListeners: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
58
|
-
export declare const listeners: <Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
57
|
+
export declare const listenerCount: <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) => number;
|
|
58
|
+
export declare const listeners: <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) => import("eventemitter2").ListenerFn[];
|
|
59
59
|
export declare const listenersAny: () => import("eventemitter2").ListenerFn[];
|
|
60
60
|
export declare const many: {
|
|
61
|
-
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
61
|
+
<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 & {
|
|
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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 & {
|
|
@@ -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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
75
|
+
export declare const off: <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 & {
|
|
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
87
|
+
<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 & {
|
|
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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 & {
|
|
@@ -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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
106
|
+
<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 & {
|
|
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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 & {
|
|
@@ -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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
125
|
+
<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 & {
|
|
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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 & {
|
|
@@ -137,13 +137,13 @@ export declare const prependListener: {
|
|
|
137
137
|
}>;
|
|
138
138
|
};
|
|
139
139
|
export declare const prependMany: {
|
|
140
|
-
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
140
|
+
<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 & {
|
|
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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 & {
|
|
@@ -152,13 +152,13 @@ export declare const prependMany: {
|
|
|
152
152
|
}>;
|
|
153
153
|
};
|
|
154
154
|
export declare const prependOnceListener: {
|
|
155
|
-
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
155
|
+
<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 & {
|
|
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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 & {
|
|
@@ -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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
169
|
+
export declare const removeAllListeners: <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) => 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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
173
|
+
export declare const removeListener: <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 & {
|
|
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 "blocklist.sync" | "call.inco
|
|
|
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 "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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
|
-
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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
190
|
})[Name]>>;
|
|
191
|
-
<Name extends "blocklist.sync" | "call.incoming_call" | keyof import("./eventTypes").ChatEventTypes |
|
|
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]>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2025 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 { LabelModel } from '../whatsapp';
|
|
17
|
+
export declare function patchLabelCount(label: LabelModel): number;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 WAWebCreateChat >= 2.3000.0
|
|
18
|
+
*/
|
|
19
|
+
export declare function createChat(chatParams: any, context: any, options: any, extra: any): Promise<any>;
|
|
@@ -17,4 +17,4 @@ import { Wid } from '../misc';
|
|
|
17
17
|
import { ChatModel } from '../models';
|
|
18
18
|
/** @whatsapp WAWebFindChatAction
|
|
19
19
|
*/
|
|
20
|
-
export declare function findOrCreateLatestChat(wid: Wid, type?: 'username_contactless_search'): Promise<ChatModel>;
|
|
20
|
+
export declare function findOrCreateLatestChat(wid: Wid, type?: 'username_contactless_search' | 'forwardSelectedModals'): Promise<ChatModel>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2025 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 WAWebApiChat >= 2.3000.0
|
|
19
|
+
*/
|
|
20
|
+
export declare function getChatRecordByAccountLid(a: Wid): Promise<any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2025 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 WAWebLidMigrationUtils >= 2.3000.0
|
|
19
|
+
*/
|
|
20
|
+
export declare function getEnforceCurrentLid(chatId: Wid): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2025 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 WAWebChatGetExistingBridge >= 2.3000.0
|
|
19
|
+
*/
|
|
20
|
+
export declare function getExisting(chatId: Wid): Promise<any>;
|
|
@@ -18,7 +18,7 @@ import { ChatModel, MsgModel } from '../models';
|
|
|
18
18
|
/**
|
|
19
19
|
* @whatsapp 738599 >= 2.2242.5
|
|
20
20
|
*/
|
|
21
|
-
export declare function getSearchContext(chat: ChatModel, msg: MsgModel | MsgKey, options?: {
|
|
21
|
+
export declare function getSearchContext(chat: ChatModel | string, msg: MsgModel | MsgKey | string, options?: {
|
|
22
22
|
isQuotedMsgAvailable: boolean;
|
|
23
23
|
}): {
|
|
24
24
|
collection: MsgLoad;
|
|
@@ -26,6 +26,7 @@ export * from './changeOptInStatusForExternalWebBeta';
|
|
|
26
26
|
export * from './collections';
|
|
27
27
|
export * from './colorIndexToHex';
|
|
28
28
|
export * from './contactFunctions';
|
|
29
|
+
export * from './createChat';
|
|
29
30
|
export * from './createEventCallLink';
|
|
30
31
|
export * from './createFanoutMsgStanza';
|
|
31
32
|
export * from './createGroup';
|
|
@@ -56,11 +57,14 @@ export * from './genLinkDeviceCodeForPhoneNumber';
|
|
|
56
57
|
export * from './genMinimalLinkPreview';
|
|
57
58
|
export * from './getABPropConfigValue';
|
|
58
59
|
export * from './getAsMms';
|
|
60
|
+
export * from './getChatRecordByAccountLid';
|
|
59
61
|
export * from './getCommunityParticipants';
|
|
60
62
|
export * from './getCountryShortcodeByPhone';
|
|
61
63
|
export * from './getCurrentLid';
|
|
64
|
+
export * from './getEnforceCurrentLid';
|
|
62
65
|
export * from './getEphemeralFields';
|
|
63
66
|
export * from './getErrorCodeFromLogoutReason';
|
|
67
|
+
export * from './getExisting';
|
|
64
68
|
export * from './getFanOutList';
|
|
65
69
|
export * from './getGroupSenderKeyList';
|
|
66
70
|
export * from './getGroupSizeLimit';
|
|
@@ -117,6 +121,7 @@ export * from './randomId';
|
|
|
117
121
|
export * from './removeStatusMessage';
|
|
118
122
|
export * from './resetGroupInviteCode';
|
|
119
123
|
export * from './revokeStatus';
|
|
124
|
+
export * from './selectChatForOneOnOneMessage';
|
|
120
125
|
export * from './sendClear';
|
|
121
126
|
export * from './sendCreateCommunity';
|
|
122
127
|
export * from './sendCreateGroup';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2025 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 973480 >= 2.2241.6
|
|
18
|
+
*/
|
|
19
|
+
export declare function selectChatForOneOnOneMessage(params: any): Promise<any>;
|
|
@@ -73,7 +73,11 @@ export declare class CmdClass extends EventEmitter {
|
|
|
73
73
|
toastPosition?: any;
|
|
74
74
|
}): void;
|
|
75
75
|
_openChat(e?: any, t?: any): void;
|
|
76
|
-
openChatAt(chat: ChatModel,
|
|
76
|
+
openChatAt(chat: ChatModel, msgContext: ReturnType<typeof getSearchContext>): Promise<boolean>;
|
|
77
|
+
openChatAt(params?: {
|
|
78
|
+
chat: ChatModel;
|
|
79
|
+
msgContext: ReturnType<typeof getSearchContext>;
|
|
80
|
+
}): Promise<boolean>;
|
|
77
81
|
openChatFromUnread(chat: ChatModel): Promise<boolean>;
|
|
78
82
|
openChatBottom(chat: ChatModel): Promise<boolean>;
|
|
79
83
|
scrollToPtt(e?: any): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/** @whatsapp 15688
|
|
17
|
+
*/
|
|
18
|
+
export declare namespace Lid1X1MigrationUtils {
|
|
19
|
+
function isLidMigrated(): boolean;
|
|
20
|
+
function isSyncdSessionMigrated(): boolean;
|
|
21
|
+
function setIsLidMigrated(a?: any): any;
|
|
22
|
+
function shouldApplyNonMigratedMessagingRules(): any;
|
|
23
|
+
}
|
|
@@ -23,6 +23,7 @@ export * from './Constants';
|
|
|
23
23
|
export * from './EventEmitter';
|
|
24
24
|
export * from './ImageUtils';
|
|
25
25
|
export * from './IsOfficialClient';
|
|
26
|
+
export * from './Lid1X1MigrationUtils';
|
|
26
27
|
export * from './MediaBlobCache';
|
|
27
28
|
export * from './MediaEntry';
|
|
28
29
|
export * from './MediaObject';
|
|
@@ -165,7 +165,7 @@ export declare class ChatModel extends ModelChatBase {
|
|
|
165
165
|
loadEarlierMsgs(e?: any, t?: any): any;
|
|
166
166
|
isMostRecentCMC(e?: any): boolean;
|
|
167
167
|
loadRecentMsgs(e?: any): any;
|
|
168
|
-
getSearchContext?(msg: MsgModel | MsgKey, options?: {
|
|
168
|
+
getSearchContext?(chat: ChatModel | string, msg: MsgModel | MsgKey | string, options?: {
|
|
169
169
|
isQuotedMsgAvailable: boolean;
|
|
170
170
|
}): {
|
|
171
171
|
collection: MsgLoad;
|