@wppconnect/wa-js 3.11.0 → 3.12.1

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,9 +1,9 @@
1
- # 3.11.0 (2024-10-18)
1
+ ## 3.12.1 (2024-10-24)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * Added WPP.profile.getMyProfilePicture (close [#2327](https://github.com/wppconnect-team/wa-js/issues/2327)) ([b863dcf](https://github.com/wppconnect-team/wa-js/commit/b863dcfe1badacdeaf8bc39ab9a877a42f7ca9bb))
6
+ * Removed quotedMsgObj for mantain compatibility ([e590cd9](https://github.com/wppconnect-team/wa-js/commit/e590cd9cdf143a881208fb4502abb3491a015ade))
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 Chat
25
+ * @category Contact
26
26
  */
27
27
  export declare function getProfilePictureUrl(contactId: string | Wid, full?: boolean): Promise<string | null | undefined>;
@@ -22,6 +22,6 @@ import { Wid } from '../../whatsapp';
22
22
  * await WPP.contact.getStatus('[number]@c.us');
23
23
  * ```
24
24
  *
25
- * @category Chat
25
+ * @category Contact
26
26
  */
27
27
  export declare function getStatus(contactId: string | Wid): Promise<string | null>;
@@ -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';
@@ -43,6 +43,6 @@ export interface QueryExistsResult {
43
43
  * console.log(result.wid); // Correct ID
44
44
  * ```
45
45
  *
46
- * @category Chat
46
+ * @category Contact
47
47
  */
48
48
  export declare function queryExists(contactId: string | Wid): Promise<QueryExistsResult | null>;
@@ -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>;