@wppconnect/wa-js 2.23.4 → 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 +5 -1
- 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/chat/functions/getQuotedMsg.d.ts +1 -1
- 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 +3 -0
- package/dist/conn/functions/isOnline.d.ts +24 -0
- package/dist/conn/functions/joinWebBeta.d.ts +29 -0
- package/dist/conn/functions/setLimit.d.ts +65 -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/util/linkPreview.d.ts +0 -10
- 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/getABPropConfigValue.d.ts +21 -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/getNumChatsPinned.d.ts +21 -0
- package/dist/whatsapp/functions/getWhatsAppWebExternalBetaJoinedIdb.d.ts +21 -0
- package/dist/whatsapp/functions/index.d.ts +11 -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/ServerProps.d.ts +20 -0
- package/dist/whatsapp/misc/index.d.ts +2 -0
- package/dist/whatsapp/models/MsgModel.d.ts +2 -2
- package/dist/whatsapp/models/NetworkStatusModel.d.ts +43 -0
- package/dist/whatsapp/models/ServerPropsModel.d.ts +40 -0
- package/dist/whatsapp/models/index.d.ts +2 -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 +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
# 2.24.0 (2023-05-03)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
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,10 +24,13 @@ 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';
|
|
31
33
|
export { refreshQR } from './refreshQR';
|
|
32
34
|
export { setKeepAlive } from './setKeepAlive';
|
|
35
|
+
export { setLimit } from './setLimit';
|
|
33
36
|
export { setMultiDevice } from './setMultiDevice';
|
|
@@ -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,65 @@
|
|
|
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
|
+
* Change the limit of MediaSize
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* //Change the maximum size (bytes) for uploading media (max 70MB)
|
|
22
|
+
* WPP.conn.setLimit('maxMediaSize',16777216);
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function setLimit(key: 'maxMediaSize', value: number): number;
|
|
26
|
+
/**
|
|
27
|
+
* Change the limit of FileSize
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```javascript
|
|
31
|
+
* //Change the maximum size (bytes) for uploading files (max 1GB)
|
|
32
|
+
* WPP.conn.setLimit('maxFileSize',104857600);
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function setLimit(key: 'maxFileSize', value: number): number;
|
|
36
|
+
/**
|
|
37
|
+
* Change the limit of Share
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```javascript
|
|
41
|
+
* //Change the maximum number of contacts that can be selected when sharing (Default 5)
|
|
42
|
+
* WPP.conn.setLimit('maxShare',100);
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function setLimit(key: 'maxShare', value: number): number;
|
|
46
|
+
/**
|
|
47
|
+
* Change the limit of Status Video Duration
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```javascript
|
|
51
|
+
* //Change the maximum time (seconds) of a video status
|
|
52
|
+
* WPP.conn.setLimit('statusVideoMaxDuration',120);
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare function setLimit(key: 'statusVideoMaxDuration', value: number): number;
|
|
56
|
+
/**
|
|
57
|
+
* Change the limit of Pin
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```javascript
|
|
61
|
+
* //Remove pinned conversation limit (only whatsapp web) (Default 3)
|
|
62
|
+
* WPP.conn.setLimit('unlimitedPin',true);
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function setLimit(key: 'unlimitedPin', value: boolean): 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
|
+
}[]>;
|
|
@@ -29,16 +29,6 @@ export declare function fetchRemoteLinkPreviewData(url: string): Promise<{
|
|
|
29
29
|
* Generate the preview link thumbnail data
|
|
30
30
|
*/
|
|
31
31
|
export declare function generateThumbnailLinkPreviewData(url: string): Promise<{
|
|
32
|
-
thumbnail: unknown;
|
|
33
|
-
thumbnailHQ?: undefined;
|
|
34
|
-
mediaKey?: undefined;
|
|
35
|
-
mediaKeyTimestamp?: undefined;
|
|
36
|
-
thumbnailDirectPath?: undefined;
|
|
37
|
-
thumbnailSha256?: undefined;
|
|
38
|
-
thumbnailEncSha256?: undefined;
|
|
39
|
-
thumbnailWidth?: undefined;
|
|
40
|
-
thumbnailHeight?: undefined;
|
|
41
|
-
} | {
|
|
42
32
|
thumbnail: unknown;
|
|
43
33
|
thumbnailHQ: string;
|
|
44
34
|
mediaKey: any;
|
|
@@ -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,21 @@
|
|
|
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
|
+
* @whatsapp 95547
|
|
18
|
+
* @whatsapp 695547 >= 2.2222.8
|
|
19
|
+
* @whatsapp 925080 >= 2.2228.4
|
|
20
|
+
*/
|
|
21
|
+
export declare function getABPropConfigValue(value: any): 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 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
|
+
* @whatsapp 95547
|
|
18
|
+
* @whatsapp 695547 >= 2.2222.8
|
|
19
|
+
* @whatsapp 925080 >= 2.2228.4
|
|
20
|
+
*/
|
|
21
|
+
export declare function getNumChatsPinned(value: any): 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,18 +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';
|
|
39
|
+
export * from './getABPropConfigValue';
|
|
40
|
+
export * from './getAsMms';
|
|
36
41
|
export * from './getCommunityParticipants';
|
|
42
|
+
export * from './getEphemeralFields';
|
|
37
43
|
export * from './getFanOutList';
|
|
38
44
|
export * from './getGroupSenderKeyList';
|
|
39
45
|
export * from './getGroupSizeLimit';
|
|
40
46
|
export * from './getHistorySyncProgress';
|
|
47
|
+
export * from './getMembershipApprovalRequests';
|
|
48
|
+
export * from './getNumChatsPinned';
|
|
41
49
|
export * from './getParticipants';
|
|
42
50
|
export * from './getQuotedMsgObj';
|
|
43
51
|
export * from './getReactions';
|
|
44
52
|
export * from './getSearchContext';
|
|
45
53
|
export * from './getVotes';
|
|
54
|
+
export * from './getWhatsAppWebExternalBetaJoinedIdb';
|
|
46
55
|
export * from './groupParticipants';
|
|
47
56
|
export * from './handleAck';
|
|
48
57
|
export * from './handleSingleMsg';
|
|
@@ -53,6 +62,7 @@ export * from './isUnreadTypeMsg';
|
|
|
53
62
|
export * from './joinGroupViaInvite';
|
|
54
63
|
export * from './markSeen';
|
|
55
64
|
export * from './mediaTypeFromProtobuf';
|
|
65
|
+
export * from './membershipApprovalRequestAction';
|
|
56
66
|
export * from './msgFindQuery';
|
|
57
67
|
export * from './processRawSticker';
|
|
58
68
|
export * from './products';
|
|
@@ -81,6 +91,7 @@ export * from './setGroup';
|
|
|
81
91
|
export * from './setPin';
|
|
82
92
|
export * from './setPushname';
|
|
83
93
|
export * from './status';
|
|
94
|
+
export * from './syncABPropsTask';
|
|
84
95
|
export * from './typeAttributeFromProtobuf';
|
|
85
96
|
export * from './unixTime';
|
|
86
97
|
export * from './updateCartEnabled';
|