@wppconnect/wa-js 3.11.0 → 3.12.0
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 +3 -3
- package/dist/contact/functions/getProfilePictureUrl.d.ts +1 -1
- package/dist/contact/functions/getStatus.d.ts +1 -1
- package/dist/contact/functions/index.d.ts +2 -0
- package/dist/contact/functions/queryExists.d.ts +1 -1
- package/dist/contact/functions/subscribePresence.d.ts +27 -0
- package/dist/contact/functions/unsubscribePresence.d.ts +27 -0
- package/dist/whatsapp/functions/index.d.ts +1 -0
- package/dist/whatsapp/functions/subscribePresence.d.ts +20 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# 3.
|
|
1
|
+
# 3.12.0 (2024-10-24)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* Fixed 'chat.new_message' event on receive replied [@lid](https://github.com/lid) msgs ([2a40d01](https://github.com/wppconnect-team/wa-js/commit/2a40d0126c6c4f16ae27add91f4fc7d1263073af))
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,6 +22,6 @@ import { Wid } from '../../whatsapp';
|
|
|
22
22
|
* const url = await WPP.contact.getProfilePictureUrl('[number]@c.us');
|
|
23
23
|
* ```
|
|
24
24
|
*
|
|
25
|
-
* @category
|
|
25
|
+
* @category Contact
|
|
26
26
|
*/
|
|
27
27
|
export declare function getProfilePictureUrl(contactId: string | Wid, full?: boolean): Promise<string | null | undefined>;
|
|
@@ -20,3 +20,5 @@ 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 { subscribePresence } from './subscribePresence';
|
|
24
|
+
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 { Wid } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Subscribe presente from a contact
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* await WPP.contact.subscribePresence('[number]@c.us');
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Contact
|
|
26
|
+
*/
|
|
27
|
+
export declare function subscribePresence(ids: string | string[]): Promise<Wid[]>;
|
|
@@ -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 { Wid } from '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Unsubscribe presence of a contact
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* await WPP.contact.unsubscribePresence('[number]@c.us');
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Contact
|
|
26
|
+
*/
|
|
27
|
+
export declare function unsubscribePresence(ids: string | string[]): Promise<Wid[]>;
|
|
@@ -136,6 +136,7 @@ export * from './setPushname';
|
|
|
136
136
|
export * from './status';
|
|
137
137
|
export * from './STATUS_JID';
|
|
138
138
|
export * from './statusEnable';
|
|
139
|
+
export * from './subscribePresence';
|
|
139
140
|
export * from './syncABPropsTask';
|
|
140
141
|
export * from './typeAttributeFromProtobuf';
|
|
141
142
|
export * from './unixTime';
|
|
@@ -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 '..';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp WAWebContactPresenceBridge
|
|
19
|
+
*/
|
|
20
|
+
export declare function subscribePresence(id: Wid, tcToken?: any): Promise<any>;
|