@wppconnect/wa-js 3.19.6 → 3.19.7
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 +6 -1
- package/dist/conn/functions/getBuildConstants.d.ts +15 -0
- package/dist/conn/functions/getMigrationState.d.ts +0 -2
- package/dist/whatsapp/functions/shouldHaveAccountLid.d.ts +3 -1
- package/dist/whatsapp/misc/Cmd.d.ts +7 -1
- package/dist/whatsapp/misc/DBCreateLidPnMappings.d.ts +31 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
## 3.19.
|
|
1
|
+
## 3.19.7 (2026-01-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update sendSeen call to ensure immediate UI update for markIsRead ([#3211](https://github.com/wppconnect-team/wa-js/issues/3211)) ([503c612](https://github.com/wppconnect-team/wa-js/commit/503c612ae75368da904a32bab5980bbacd5a010a))
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
|
|
@@ -64,3 +64,18 @@ export declare function getBuildConstants(): BuildConstants | null;
|
|
|
64
64
|
* @returns {boolean} True if current version is >= specified version
|
|
65
65
|
*/
|
|
66
66
|
export declare function isWhatsAppVersionGTE(version: string): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Check if the current WhatsApp version is less than or equal to a specified version
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```javascript
|
|
72
|
+
* // Check if version is <= 2.3000.1029960097
|
|
73
|
+
* if (WPP.conn.isWhatsAppVersionLTE('2.3000.1029960097')) {
|
|
74
|
+
* console.log('Using legacy API');
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @param version - Version string to compare against (e.g., "2.3000.1029")
|
|
79
|
+
* @returns {boolean} True if current version is <= specified version
|
|
80
|
+
*/
|
|
81
|
+
export declare function isWhatsAppVersionLTE(version: string): boolean;
|
|
@@ -24,8 +24,6 @@ export interface MigrationState {
|
|
|
24
24
|
isSyncdSessionMigrated: boolean;
|
|
25
25
|
/** Whether old messaging rules should still be applied */
|
|
26
26
|
shouldApplyNonMigratedMessagingRules: boolean;
|
|
27
|
-
/** Whether the account should have an account LID */
|
|
28
|
-
shouldHaveAccountLid: boolean;
|
|
29
27
|
/** The current user's LID, if available */
|
|
30
28
|
currentLid?: Wid;
|
|
31
29
|
/** The current user's PN, if available */
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { Wid } from '../misc';
|
|
16
17
|
/**
|
|
18
|
+
* Check if a given Wid should have an account LID based on migration status
|
|
17
19
|
* @whatsapp WAWebLidMigrationUtils >= 2.3000.x
|
|
18
20
|
*/
|
|
19
|
-
export declare function shouldHaveAccountLid(): boolean;
|
|
21
|
+
export declare function shouldHaveAccountLid(wid: Wid): boolean;
|
|
@@ -88,10 +88,16 @@ export declare class CmdClass extends EventEmitter {
|
|
|
88
88
|
chat: ChatModel;
|
|
89
89
|
chatEntryPoint?: string;
|
|
90
90
|
}): Promise<boolean>;
|
|
91
|
-
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Use openChatBottom({chat, chatEntryPoint}) for versions >= 2.3000.1029960097
|
|
93
|
+
* @whatsapp < 2.3000.1029960097
|
|
94
|
+
*/
|
|
95
|
+
openChatBottom(chat: ChatModel, chatEntryPoint?: string): Promise<boolean>;
|
|
96
|
+
/** @whatsapp >= 2.3000.1029960097 */
|
|
92
97
|
openChatBottom(params: {
|
|
93
98
|
chat: ChatModel;
|
|
94
99
|
chatEntryPoint?: string;
|
|
100
|
+
threadId?: string;
|
|
95
101
|
}): Promise<boolean>;
|
|
96
102
|
scrollToPtt(e?: any): void;
|
|
97
103
|
_scrollToFocusedMsg(e?: any): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 './Wid';
|
|
17
|
+
interface LidPnMapping {
|
|
18
|
+
lid: Wid;
|
|
19
|
+
pn: Wid;
|
|
20
|
+
}
|
|
21
|
+
interface CreateLidPnMappingsParams {
|
|
22
|
+
mappings: LidPnMapping[];
|
|
23
|
+
flushImmediately: boolean;
|
|
24
|
+
learningSource: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @whatsapp WAWebDBCreateLidPnMappings
|
|
28
|
+
* Last verified >= 2.3000.1032022795
|
|
29
|
+
*/
|
|
30
|
+
export declare function createLidPnMappings(params: CreateLidPnMappingsParams): Promise<void>;
|
|
31
|
+
export {};
|