@wppconnect/wa-js 3.18.1 → 3.18.3
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
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
## 3.18.
|
|
1
|
+
## 3.18.3 (2025-09-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update UserPrefs method calls for WhatsApp Web compatibility ([#2871](https://github.com/wppconnect-team/wa-js/issues/2871)) ([3ea0e80](https://github.com/wppconnect-team/wa-js/commit/3ea0e8030ebbe6898516a378dd1374b956fa8e02))
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import { Wid } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Return the current logged user ID without device id
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* const wid = WPP.conn.getMyUserId();
|
|
23
|
+
* console.log(wid.toString()); // Output: 123@c.us
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function getMyUserWid(): Wid;
|
|
@@ -18,14 +18,15 @@ import { Wid } from './Wid';
|
|
|
18
18
|
* @whatsapp 459857 >= 2.2310.5
|
|
19
19
|
*/
|
|
20
20
|
export declare namespace UserPrefs {
|
|
21
|
+
function getMaybeMeDevicePn(...args: any[]): any;
|
|
21
22
|
function assertGetMe(): Wid;
|
|
22
23
|
function assertGetMeUser(): Wid;
|
|
23
|
-
function
|
|
24
|
+
function clearGetMaybeMePnUserCache(...args: any[]): any;
|
|
24
25
|
function getMaybeMeDisplayName(...args: any[]): any;
|
|
25
|
-
function
|
|
26
|
+
function getMaybeMeDeviceLid(...args: any[]): any;
|
|
26
27
|
function getMaybeMeLidUser(...args: any[]): any;
|
|
28
|
+
function getMaybeMePnUser(): Wid;
|
|
27
29
|
function getMaybeMeUser(): Wid;
|
|
28
|
-
function getMe(...args: any[]): any;
|
|
29
30
|
function getMePNandLIDWids(...args: any[]): any;
|
|
30
31
|
function getMeUser(): Wid;
|
|
31
32
|
function isMeAccount(...args: any[]): any;
|
|
@@ -36,4 +37,21 @@ export declare namespace UserPrefs {
|
|
|
36
37
|
function setMe(...args: any[]): any;
|
|
37
38
|
function setMeDisplayName(...args: any[]): any;
|
|
38
39
|
function setMeLid(...args: any[]): any;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
function clearGetMaybeMeUserCache(...args: any[]): any;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
47
|
+
function getMeDevicePn(...args: any[]): any;
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
function getMaybeMeLid(...args: any[]): any;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated
|
|
54
|
+
* @whatsapp 498050 >= 2.3000.1026
|
|
55
|
+
**/
|
|
56
|
+
function getMe(...args: any[]): any;
|
|
39
57
|
}
|