@wppconnect/wa-js 1.1.17 → 1.1.18

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,3 +1,12 @@
1
+ ## 1.1.18 (2022-02-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Fixed group functions when there are a lot of chats (fix wppconnect-team/wppconnect[#871](https://github.com/wppconnect-team/wa-js/issues/871)) ([1ff6a50](https://github.com/wppconnect-team/wa-js/commit/1ff6a5053cdd6ccc2ddc5df09dc3e73497987ad5))
7
+
8
+
9
+
1
10
  ## 1.1.17 (2022-02-12)
2
11
 
3
12
 
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function canAdd(groupId: string | Wid): boolean;
17
+ export declare function canAdd(groupId: string | Wid): Promise<boolean>;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function canDemote(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): boolean;
17
+ export declare function canDemote(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<boolean>;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function canPromote(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): boolean;
17
+ export declare function canPromote(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<boolean>;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function canRemove(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): boolean;
17
+ export declare function canRemove(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<boolean>;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function ensureGroup(groupId: string | Wid, checkIsAdmin?: boolean): import("../../whatsapp").ChatModel;
17
+ export declare function ensureGroup(groupId: string | Wid, checkIsAdmin?: boolean): Promise<import("../../whatsapp").ChatModel>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ParticipantModel, Wid } from '../../whatsapp';
17
- export declare function ensureGroupAndParticipants(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[], createIfNotExists?: boolean): {
17
+ export declare function ensureGroupAndParticipants(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[], createIfNotExists?: boolean): Promise<{
18
18
  groupChat: import("../../whatsapp").ChatModel;
19
19
  participants: ParticipantModel[];
20
- };
20
+ }>;
@@ -22,4 +22,4 @@ import { Wid } from '../../whatsapp';
22
22
  * WPP.group.getParticipants('<group-id>@g.us');
23
23
  * ```
24
24
  */
25
- export declare function getParticipants(groupId: string | Wid): import("../../whatsapp").ParticipantModel[];
25
+ export declare function getParticipants(groupId: string | Wid): Promise<import("../../whatsapp").ParticipantModel[]>;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function iAmAdmin(groupId: string | Wid): boolean;
17
+ export declare function iAmAdmin(groupId: string | Wid): Promise<boolean>;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function iAmMember(groupId: string | Wid): boolean;
17
+ export declare function iAmMember(groupId: string | Wid): Promise<boolean>;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function iAmRestrictedMember(groupId: string | Wid): boolean;
17
+ export declare function iAmRestrictedMember(groupId: string | Wid): Promise<boolean>;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function iAmSuperAdmin(groupId: string | Wid): boolean;
17
+ export declare function iAmSuperAdmin(groupId: string | Wid): Promise<boolean>;