@wppconnect/wa-js 3.17.1 → 3.17.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 +1 -6
- package/README.md +1 -1
- package/dist/conn/functions/setLimit.d.ts +2 -0
- package/dist/whatsapp/functions/fetchMexGroupInviteCode.d.ts +22 -0
- package/dist/whatsapp/functions/getPhoneNumber.d.ts +20 -0
- package/dist/whatsapp/functions/index.d.ts +3 -2
- package/dist/whatsapp/misc/ApiContact.d.ts +41 -0
- package/dist/whatsapp/misc/ServerPropsConstants.d.ts +30 -0
- package/dist/whatsapp/misc/index.d.ts +3 -1
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ There are a convection name for some exported modules:
|
|
|
90
90
|
|
|
91
91
|
`WPP.group.demoteParticipant` - Demote a participant from admin.
|
|
92
92
|
|
|
93
|
-
`WPP.group.
|
|
93
|
+
`WPP.group.getGroupInfoFromInviteCode` - Get group information from an invitation link or an invite code.
|
|
94
94
|
|
|
95
95
|
### Events
|
|
96
96
|
`WPP.chat.on('chat.new_message')` - Event to dispatch on receive a new message
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
* //Change the maximum size (bytes) for uploading media (max 70MB)
|
|
22
22
|
* WPP.conn.setLimit('maxMediaSize',16777216);
|
|
23
23
|
* ```
|
|
24
|
+
* @deprecated
|
|
24
25
|
*/
|
|
25
26
|
export declare function setLimit(key: 'maxMediaSize', value: number): number;
|
|
26
27
|
/**
|
|
@@ -51,6 +52,7 @@ export declare function setLimit(key: 'maxShare', value: number): number;
|
|
|
51
52
|
* //Change the maximum time (seconds) of a video status
|
|
52
53
|
* WPP.conn.setLimit('statusVideoMaxDuration',120);
|
|
53
54
|
* ```
|
|
55
|
+
* @deprecated
|
|
54
56
|
*/
|
|
55
57
|
export declare function setLimit(key: 'statusVideoMaxDuration', value: number): number;
|
|
56
58
|
/**
|
|
@@ -0,0 +1,22 @@
|
|
|
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 '..';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp WAWebMexFetchGroupInviteCodeJob
|
|
19
|
+
*/
|
|
20
|
+
export declare function fetchMexGroupInviteCode(groupId: Wid): Promise<{
|
|
21
|
+
inviteCode: string;
|
|
22
|
+
}>;
|
|
@@ -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 WAWebApiContact
|
|
19
|
+
*/
|
|
20
|
+
export declare function getPhoneNumber(wid: Wid): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025 WPPConnect Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -46,6 +46,7 @@ export * from './encryptAndSendSenderKeyMsg';
|
|
|
46
46
|
export * from './encryptAndSendStatusMsg';
|
|
47
47
|
export * from './encryptMsgProtobuf';
|
|
48
48
|
export * from './fetchLinkPreview';
|
|
49
|
+
export * from './fetchMexGroupInviteCode';
|
|
49
50
|
export * from './findChat';
|
|
50
51
|
export * from './findCommonGroups';
|
|
51
52
|
export * from './findFirstWebLink';
|
|
@@ -76,6 +77,7 @@ export * from './getNextLabelId';
|
|
|
76
77
|
export * from './getNumChatsPinned';
|
|
77
78
|
export * from './getOrderInfo';
|
|
78
79
|
export * from './getParticipants';
|
|
80
|
+
export * from './getPhoneNumber';
|
|
79
81
|
export * from './getPrivacyDisallowedListTable';
|
|
80
82
|
export * from './getPushname';
|
|
81
83
|
export * from './getQuotedMsgObj';
|
|
@@ -100,7 +102,6 @@ export * from './isWid';
|
|
|
100
102
|
export * from './joinGroupViaInvite';
|
|
101
103
|
export * from './keepMessage';
|
|
102
104
|
export * from './labelAddAction';
|
|
103
|
-
export * from './labelAddAction';
|
|
104
105
|
export * from './markSeen';
|
|
105
106
|
export * from './mediaTypeFromProtobuf';
|
|
106
107
|
export * from './membershipApprovalRequestAction';
|
|
@@ -0,0 +1,41 @@
|
|
|
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 './Wid';
|
|
17
|
+
/** @whatsapp WAWebApiContact
|
|
18
|
+
*/
|
|
19
|
+
export declare namespace ApiContact {
|
|
20
|
+
function checkPnToLidMapping(a?: any, b?: any): any;
|
|
21
|
+
function clearLidPnMappingCache(): any;
|
|
22
|
+
function createOrMergeAddressBookContacts(a?: any): any;
|
|
23
|
+
function deleteAddressBookContacts(a?: any): any;
|
|
24
|
+
function getAccountLidFromChat(a?: any): Wid;
|
|
25
|
+
function getAllLidContacts(): Wid[];
|
|
26
|
+
function getAlternateDeviceWid(a?: any): Wid;
|
|
27
|
+
function getAlternateUserWid(a?: any): Wid;
|
|
28
|
+
function getContactHash(a?: any): any;
|
|
29
|
+
function getContactRecord(a?: any): any;
|
|
30
|
+
function getContactUsername(a?: any): any;
|
|
31
|
+
function getCurrentLid(a?: any): any;
|
|
32
|
+
function getCurrentLidDevice(a?: any): any;
|
|
33
|
+
function getLatestLid(a?: any): any;
|
|
34
|
+
function getPhoneNumber(wid: Wid): Wid;
|
|
35
|
+
function getPnIfLidIsLatestMapping(a?: any): any;
|
|
36
|
+
function hasLidMapping(a?: any): any;
|
|
37
|
+
function isAddressBookContact(a?: any): any;
|
|
38
|
+
function setNotAddressBookContacts(a?: any): any;
|
|
39
|
+
function updateContactAdvHostedType(a?: any, b?: any): any;
|
|
40
|
+
function updateLidMetadata(a?: any, b?: any): any;
|
|
41
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 WAWebServerPropConstants
|
|
18
|
+
*/
|
|
19
|
+
interface ServerPropsModel {
|
|
20
|
+
MMS_VCARD_AUTODOWNLOAD_SIZE_KB: number;
|
|
21
|
+
VCARD_AS_DOCUMENT_SIZE_KB: number;
|
|
22
|
+
VCARD_MAX_SIZE_KB: number;
|
|
23
|
+
MULTICAST_LIMIT_GLOBAL: number;
|
|
24
|
+
PTT_PLAYBACK_SPEED_HIDE_DELAY: number;
|
|
25
|
+
DEFAULT_MAX_FILE_SIZE_BYTES: number;
|
|
26
|
+
MAX_FILE_SIZE_BYTES: number;
|
|
27
|
+
UNINITIALIZED_VALUE_WEB_BIZ_PROFILE_OPTIONS: number;
|
|
28
|
+
}
|
|
29
|
+
export declare const ServerPropsConstants: ServerPropsModel;
|
|
30
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025 WPPConnect Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
export * from './ApiContact';
|
|
16
17
|
export * from './Base64';
|
|
17
18
|
export * from './Browser';
|
|
18
19
|
export * from './ChatPresence';
|
|
@@ -36,6 +37,7 @@ export * from './NetworkStatus';
|
|
|
36
37
|
export * from './OpaqueData';
|
|
37
38
|
export * from './ProductCatalogSession';
|
|
38
39
|
export * from './ServerProps';
|
|
40
|
+
export * from './ServerPropsConstants';
|
|
39
41
|
export * from './Socket';
|
|
40
42
|
export * from './Stream';
|
|
41
43
|
export * from './UserPrefs';
|