@wppconnect/wa-js 2.23.5 → 2.24.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/chat/events/eventTypes.d.ts +10 -0
- package/dist/chat/events/index.d.ts +1 -0
- package/dist/chat/events/registerLabelEvent.d.ts +16 -0
- package/dist/conn/events/eventTypes.d.ts +15 -0
- package/dist/conn/events/index.d.ts +1 -0
- package/dist/conn/events/registerOnlineEvent.d.ts +16 -0
- package/dist/conn/functions/index.d.ts +2 -0
- package/dist/conn/functions/isOnline.d.ts +24 -0
- package/dist/conn/functions/joinWebBeta.d.ts +29 -0
- package/dist/group/functions/approve.d.ts +30 -0
- package/dist/group/functions/getAllGroups.d.ts +1 -1
- package/dist/group/functions/getMembershipRequests.d.ts +33 -0
- package/dist/group/functions/index.d.ts +3 -0
- package/dist/group/functions/reject.d.ts +30 -0
- package/dist/whatsapp/functions/addToLabelCollection.d.ts +22 -0
- package/dist/whatsapp/functions/changeOptInStatusForExternalWebBeta.d.ts +19 -0
- package/dist/whatsapp/functions/frontendFireAndForget.d.ts +19 -0
- package/dist/whatsapp/functions/getAsMms.d.ts +20 -0
- package/dist/whatsapp/functions/getEphemeralFields.d.ts +24 -0
- package/dist/whatsapp/functions/getMembershipApprovalRequests.d.ts +19 -0
- package/dist/whatsapp/functions/getWhatsAppWebExternalBetaJoinedIdb.d.ts +21 -0
- package/dist/whatsapp/functions/index.d.ts +9 -0
- package/dist/whatsapp/functions/membershipApprovalRequestAction.d.ts +22 -0
- package/dist/whatsapp/functions/syncABPropsTask.d.ts +19 -0
- package/dist/whatsapp/misc/NetworkStatus.d.ts +20 -0
- package/dist/whatsapp/misc/index.d.ts +1 -0
- package/dist/whatsapp/models/MsgModel.d.ts +2 -2
- package/dist/whatsapp/models/NetworkStatusModel.d.ts +43 -0
- package/dist/whatsapp/models/index.d.ts +1 -0
- package/dist/whatsapp/websocket/index.d.ts +2 -0
- package/dist/whatsapp/websocket/startWebComms.d.ts +19 -0
- package/dist/whatsapp/websocket/stopComms.d.ts +20 -0
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
# 2.24.0 (2023-05-03)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Features
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Added WPP.conn.isOnline function (close [#1085](https://github.com/wppconnect-team/wa-js/issues/1085)) ([b2d48c1](https://github.com/wppconnect-team/wa-js/commit/b2d48c116d0d03614dc66fbcf857c72e5fb7fc4f))
|
|
@@ -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
|
+
import { Label } from '../../labels';
|
|
16
17
|
import { ChatModel, MsgKey, MsgModel, Wid } from '../../whatsapp';
|
|
17
18
|
export interface ChatEventTypes {
|
|
18
19
|
/**
|
|
@@ -162,4 +163,13 @@ export interface ChatEventTypes {
|
|
|
162
163
|
timestamp: number;
|
|
163
164
|
sender: Wid;
|
|
164
165
|
};
|
|
166
|
+
/**
|
|
167
|
+
* On Labels update
|
|
168
|
+
*/
|
|
169
|
+
'chat.update_label': {
|
|
170
|
+
chat: ChatModel;
|
|
171
|
+
ids: string[];
|
|
172
|
+
labels: Label[];
|
|
173
|
+
type: 'add' | 'remove';
|
|
174
|
+
};
|
|
165
175
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 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
|
+
export {};
|
|
@@ -72,6 +72,21 @@ export interface ConnEventTypes {
|
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
74
|
'conn.needs_update': undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Triggered when the online change to online or offline
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```javascript
|
|
80
|
+
* WPP.on('conn.online', (online) => {
|
|
81
|
+
* if (online) {
|
|
82
|
+
* console.log('You are online');
|
|
83
|
+
* } else {
|
|
84
|
+
* console.log('You are offline');
|
|
85
|
+
* }
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
'conn.online': boolean;
|
|
75
90
|
'conn.qrcode_idle': undefined;
|
|
76
91
|
'conn.require_auth': undefined;
|
|
77
92
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export {};
|
|
@@ -24,7 +24,9 @@ export { isMainInit } from './isMainInit';
|
|
|
24
24
|
export { isMainLoaded } from './isMainLoaded';
|
|
25
25
|
export { isMainReady } from './isMainReady';
|
|
26
26
|
export { isMultiDevice } from './isMultiDevice';
|
|
27
|
+
export { isOnline } from './isOnline';
|
|
27
28
|
export { isRegistered } from './isRegistered';
|
|
29
|
+
export { joinWebBeta } from './joinWebBeta';
|
|
28
30
|
export { logout } from './logout';
|
|
29
31
|
export { markAvailable, markUnavailable } from './markAvailable';
|
|
30
32
|
export { needsUpdate } from './needsUpdate';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
* Check is online
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* const isOnline = WPP.conn.isOnline();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function isOnline(): boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Join or leave of WhatsApp Web beta program.
|
|
18
|
+
* Will return the value seted
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* // For join on Beta
|
|
23
|
+
* WPP.conn.joinWebBeta(true);
|
|
24
|
+
*
|
|
25
|
+
* // For leave of Beta
|
|
26
|
+
* WPP.conn.joinWebBeta(true);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function joinWebBeta(value: boolean): Promise<boolean>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
* Approve a membership request to group
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* await WPP.group.approve(12345645@g.us, 5554999999999@c.us);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Group
|
|
26
|
+
*/
|
|
27
|
+
export declare function approve(groupId: string | Wid, membershipIds: (string | Wid) | (string | Wid)[]): Promise<{
|
|
28
|
+
error: any;
|
|
29
|
+
wid: Wid;
|
|
30
|
+
}[]>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
* Retrieve a lista of a membership approval requests
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* await WPP.group.getMembershipRequests(12345645@g.us);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Group
|
|
26
|
+
*/
|
|
27
|
+
export declare function getMembershipRequests(groupId: string | Wid): Promise<{
|
|
28
|
+
addedBy: Wid;
|
|
29
|
+
id: Wid;
|
|
30
|
+
parentGroupId?: Wid;
|
|
31
|
+
requestMethod: 'InviteLink' | 'LinkedGroupJoin' | 'NonAdminAdd';
|
|
32
|
+
t: number;
|
|
33
|
+
}[]>;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export { addParticipants } from './addParticipants';
|
|
17
|
+
export { approve } from './approve';
|
|
17
18
|
export { canAdd } from './canAdd';
|
|
18
19
|
export { canDemote } from './canDemote';
|
|
19
20
|
export { canPromote } from './canPromote';
|
|
@@ -26,6 +27,7 @@ export { getAllGroups } from './getAllGroups';
|
|
|
26
27
|
export { getGroupInfoFromInviteCode } from './getGroupInfoFromInviteCode';
|
|
27
28
|
export { getGroupSizeLimit } from './getGroupSizeLimit';
|
|
28
29
|
export { getInviteCode } from './getInviteCode';
|
|
30
|
+
export { getMembershipRequests } from './getMembershipRequests';
|
|
29
31
|
export { getParticipants } from './getParticipants';
|
|
30
32
|
export { iAmAdmin } from './iAmAdmin';
|
|
31
33
|
export { iAmMember } from './iAmMember';
|
|
@@ -34,6 +36,7 @@ export { iAmSuperAdmin } from './iAmSuperAdmin';
|
|
|
34
36
|
export { join } from './join';
|
|
35
37
|
export { leave } from './leave';
|
|
36
38
|
export { promoteParticipants } from './promoteParticipants';
|
|
39
|
+
export { reject } from './reject';
|
|
37
40
|
export { removeIcon } from './removeIcon';
|
|
38
41
|
export { removeParticipants } from './removeParticipants';
|
|
39
42
|
export { revokeInviteCode } from './revokeInviteCode';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
* Reject a membership request to group
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```javascript
|
|
22
|
+
* await WPP.group.reject(12345645@g.us, 5554999999999@c.us);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Group
|
|
26
|
+
*/
|
|
27
|
+
export declare function reject(groupId: string | Wid, membershipIds: (string | Wid) | (string | Wid)[]): Promise<{
|
|
28
|
+
error: any;
|
|
29
|
+
wid: Wid;
|
|
30
|
+
}[]>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/** @whatsapp 388536
|
|
17
|
+
*/
|
|
18
|
+
export declare function addToLabelCollection(e: any, t: any, i: any): Promise<any>;
|
|
19
|
+
export declare function createLabelItemId(e: any, t: any, r: any): Promise<any>;
|
|
20
|
+
export declare function getParentCollection(e: any): Promise<any>;
|
|
21
|
+
export declare function initializeLabels(e: any): Promise<any>;
|
|
22
|
+
export declare function removeLabelFromCollection(e: any, t: any, i: any): Promise<any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 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 795715
|
|
18
|
+
*/
|
|
19
|
+
export declare function changeOptInStatusForExternalWebBeta(value: boolean): Promise<any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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 359987
|
|
18
|
+
*/
|
|
19
|
+
export declare function frontendFireAndForget(e: any, t: any): Promise<any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 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 { MsgModel } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 163755 >= 2.2318.11
|
|
19
|
+
*/
|
|
20
|
+
export declare function getAsMms(msg: MsgModel): boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { ChatModel } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 700154 >= 2.2318.11
|
|
19
|
+
*/
|
|
20
|
+
export declare function getEphemeralFields(chat: ChatModel): {
|
|
21
|
+
ephemeralDuration?: number;
|
|
22
|
+
ephemeralSettingTimestamp?: number;
|
|
23
|
+
disappearingModeInitiator?: number;
|
|
24
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/** @whatsapp 779423
|
|
18
|
+
*/
|
|
19
|
+
export declare function getMembershipApprovalRequests(groupId: Wid): Promise<any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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 757453
|
|
18
|
+
*/
|
|
19
|
+
export declare function getWhatsAppWebExternalBetaJoinedIdb(): Promise<any>;
|
|
20
|
+
export declare function setWhatsAppWebExternalBetaDirtyBitIdb(value: boolean): Promise<any>;
|
|
21
|
+
export declare function setWhatsAppWebExternalBetaJoinedIdb(value: boolean): Promise<any>;
|
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * from './addAndSendMsgToChat';
|
|
17
|
+
export * from './addToLabelCollection';
|
|
17
18
|
export * from './blockContact';
|
|
18
19
|
export * from './calculateFilehashFromBlob';
|
|
19
20
|
export * from './canEditMsg';
|
|
20
21
|
export * from './canReplyMsg';
|
|
22
|
+
export * from './changeOptInStatusForExternalWebBeta';
|
|
21
23
|
export * from './collections';
|
|
22
24
|
export * from './createFanoutMsgStanza';
|
|
23
25
|
export * from './createGroup';
|
|
@@ -31,20 +33,25 @@ export * from './encryptMsgProtobuf';
|
|
|
31
33
|
export * from './fetchLinkPreview';
|
|
32
34
|
export * from './findChat';
|
|
33
35
|
export * from './findFirstWebLink';
|
|
36
|
+
export * from './frontendFireAndForget';
|
|
34
37
|
export * from './generateVideoThumbsAndDuration';
|
|
35
38
|
export * from './genMinimalLinkPreview';
|
|
36
39
|
export * from './getABPropConfigValue';
|
|
40
|
+
export * from './getAsMms';
|
|
37
41
|
export * from './getCommunityParticipants';
|
|
42
|
+
export * from './getEphemeralFields';
|
|
38
43
|
export * from './getFanOutList';
|
|
39
44
|
export * from './getGroupSenderKeyList';
|
|
40
45
|
export * from './getGroupSizeLimit';
|
|
41
46
|
export * from './getHistorySyncProgress';
|
|
47
|
+
export * from './getMembershipApprovalRequests';
|
|
42
48
|
export * from './getNumChatsPinned';
|
|
43
49
|
export * from './getParticipants';
|
|
44
50
|
export * from './getQuotedMsgObj';
|
|
45
51
|
export * from './getReactions';
|
|
46
52
|
export * from './getSearchContext';
|
|
47
53
|
export * from './getVotes';
|
|
54
|
+
export * from './getWhatsAppWebExternalBetaJoinedIdb';
|
|
48
55
|
export * from './groupParticipants';
|
|
49
56
|
export * from './handleAck';
|
|
50
57
|
export * from './handleSingleMsg';
|
|
@@ -55,6 +62,7 @@ export * from './isUnreadTypeMsg';
|
|
|
55
62
|
export * from './joinGroupViaInvite';
|
|
56
63
|
export * from './markSeen';
|
|
57
64
|
export * from './mediaTypeFromProtobuf';
|
|
65
|
+
export * from './membershipApprovalRequestAction';
|
|
58
66
|
export * from './msgFindQuery';
|
|
59
67
|
export * from './processRawSticker';
|
|
60
68
|
export * from './products';
|
|
@@ -83,6 +91,7 @@ export * from './setGroup';
|
|
|
83
91
|
export * from './setPin';
|
|
84
92
|
export * from './setPushname';
|
|
85
93
|
export * from './status';
|
|
94
|
+
export * from './syncABPropsTask';
|
|
86
95
|
export * from './typeAttributeFromProtobuf';
|
|
87
96
|
export * from './unixTime';
|
|
88
97
|
export * from './updateCartEnabled';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/** @whatsapp 290542
|
|
18
|
+
*/
|
|
19
|
+
export declare function membershipApprovalRequestAction(groupId: Wid, requestedMembersId: Wid[], type: 'Approve' | 'Reject'): Promise<{
|
|
20
|
+
error: any;
|
|
21
|
+
wid: Wid;
|
|
22
|
+
}[]>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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 266485
|
|
18
|
+
*/
|
|
19
|
+
export declare function syncABPropsTask(): Promise<any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { NetworkStatusModel } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 765044 >= 2.2222.8
|
|
19
|
+
*/
|
|
20
|
+
export declare const NetworkStatus: NetworkStatusModel;
|
|
@@ -30,6 +30,7 @@ export * from './MediaPrep';
|
|
|
30
30
|
export * from './MediaUtils';
|
|
31
31
|
export * from './MsgKey';
|
|
32
32
|
export * from './MsgLoadState';
|
|
33
|
+
export * from './NetworkStatus';
|
|
33
34
|
export * from './OpaqueData';
|
|
34
35
|
export * from './ProductCatalogSession';
|
|
35
36
|
export * from './ServerProps';
|
|
@@ -164,8 +164,8 @@ interface Props {
|
|
|
164
164
|
paymentRequestMessageKey?: any;
|
|
165
165
|
paymentExpiryTimestamp?: any;
|
|
166
166
|
ephemeralStartTimestamp?: any;
|
|
167
|
-
ephemeralDuration?:
|
|
168
|
-
ephemeralSettingTimestamp?:
|
|
167
|
+
ephemeralDuration?: number;
|
|
168
|
+
ephemeralSettingTimestamp?: number;
|
|
169
169
|
ephemeralOutOfSync?: any;
|
|
170
170
|
ephemeralSharedSecret?: any;
|
|
171
171
|
disappearingModeInitiator?: any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { MuteCollection } from '../collections';
|
|
17
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
18
|
+
interface Props {
|
|
19
|
+
}
|
|
20
|
+
interface Session {
|
|
21
|
+
online: boolean;
|
|
22
|
+
simulatedOfflineConditions: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface Derived {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @whatsapp 99398 >= 2.2318.11
|
|
28
|
+
*/
|
|
29
|
+
export declare interface NetworkStatusModel extends ModelProxy<Props, Session, Derived> {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @whatsapp 99398 >= 2.2318.11
|
|
33
|
+
*/
|
|
34
|
+
export declare class NetworkStatusModel extends Model<MuteCollection> {
|
|
35
|
+
constructor(proterties?: ModelPropertiesContructor<NetworkStatusModel>, options?: ModelOptions);
|
|
36
|
+
waitIfOffline(options: {
|
|
37
|
+
signal: AbortSignal;
|
|
38
|
+
}): Promise<void>;
|
|
39
|
+
checkOnline(options: {
|
|
40
|
+
signal: AbortSignal;
|
|
41
|
+
}): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -42,6 +42,7 @@ export * from './MsgInfoModel';
|
|
|
42
42
|
export * from './MsgInfoParticipantModel';
|
|
43
43
|
export * from './MsgModel';
|
|
44
44
|
export * from './MuteModel';
|
|
45
|
+
export * from './NetworkStatusModel';
|
|
45
46
|
export * from './OrderItemModel';
|
|
46
47
|
export * from './OrderModel';
|
|
47
48
|
export * from './ParticipantModel';
|