@wppconnect/wa-js 1.1.11 → 1.1.15
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 +36 -0
- package/dist/chat/functions/index.d.ts +3 -0
- package/dist/chat/functions/openChatAt.d.ts +27 -0
- package/dist/chat/functions/openChatBottom.d.ts +27 -0
- package/dist/chat/functions/openChatFromUnread.d.ts +27 -0
- package/dist/contact/functions/queryExists.d.ts +13 -0
- package/dist/group/functions/ensureGroup.d.ts +1 -1
- package/dist/group/functions/getGroupInfoFromInviteCode.d.ts +51 -0
- package/dist/group/functions/getInviteCode.d.ts +26 -0
- package/dist/group/functions/index.d.ts +7 -0
- package/dist/group/functions/join.d.ts +28 -0
- package/dist/group/functions/leave.d.ts +27 -0
- package/dist/group/functions/revokeInviteCode.d.ts +28 -0
- package/dist/group/functions/setDescription.d.ts +27 -0
- package/dist/group/functions/setProperty.d.ts +54 -0
- package/dist/group/functions/setSubject.d.ts +27 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/util/isBase64.d.ts +16 -0
- package/dist/whatsapp/collections/BaseCollection.d.ts +1 -1
- package/dist/whatsapp/collections/BlocklistCollection.d.ts +1 -1
- package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +1 -1
- package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ButtonCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CallCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CartCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CartItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CatalogCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ChatCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ChatstateCollection.d.ts +1 -1
- package/dist/whatsapp/collections/Collection.d.ts +2 -2
- package/dist/whatsapp/collections/ContactCollection.d.ts +1 -1
- package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +1 -1
- package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +1 -1
- package/dist/whatsapp/collections/LabelCollection.d.ts +1 -1
- package/dist/whatsapp/collections/LabelItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/LiveLocationCollection.d.ts +1 -1
- package/dist/whatsapp/collections/MsgCollection.d.ts +1 -1
- package/dist/whatsapp/collections/MsgInfoCollection.d.ts +1 -1
- package/dist/whatsapp/collections/MuteCollection.d.ts +1 -1
- package/dist/whatsapp/collections/OrderCollection.d.ts +1 -1
- package/dist/whatsapp/collections/OrderItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -1
- package/dist/whatsapp/collections/PresenceCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductCollCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductImageCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +1 -1
- package/dist/whatsapp/collections/QuickReplyCollection.d.ts +1 -1
- package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +1 -1
- package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StarredMsgCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StarredStickerCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StatusCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StatusV3Collection.d.ts +1 -1
- package/dist/whatsapp/collections/StickerCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StickerSearchCollection.d.ts +1 -1
- package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +1 -1
- package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +22 -0
- package/dist/whatsapp/enums/LogoutReason.d.ts +1 -1
- package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +1 -1
- package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -1
- package/dist/whatsapp/enums/index.d.ts +1 -0
- package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -1
- package/dist/whatsapp/functions/blockContact.d.ts +2 -2
- package/dist/whatsapp/functions/createMsgProtobuf.d.ts +20 -0
- package/dist/whatsapp/functions/fetchLinkPreview.d.ts +1 -1
- package/dist/whatsapp/functions/findChat.d.ts +1 -1
- package/dist/whatsapp/functions/findFirstWebLink.d.ts +1 -1
- package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -1
- package/dist/whatsapp/functions/groupParticipants.d.ts +4 -4
- package/dist/whatsapp/functions/handleAck.d.ts +3 -3
- package/dist/whatsapp/functions/index.d.ts +7 -0
- package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
- package/dist/whatsapp/functions/markSeen.d.ts +3 -3
- package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
- package/dist/whatsapp/functions/products.d.ts +4 -4
- package/dist/whatsapp/functions/profilePic.d.ts +1 -1
- package/dist/whatsapp/functions/randomId.d.ts +2 -2
- package/dist/whatsapp/functions/sendCallSignalingMsg.d.ts +34 -0
- package/dist/whatsapp/functions/sendClear.d.ts +1 -1
- package/dist/whatsapp/functions/sendCreateGroup.d.ts +1 -1
- package/dist/whatsapp/functions/sendDelete.d.ts +1 -1
- package/dist/whatsapp/functions/sendExitGroup.d.ts +18 -0
- package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +18 -0
- package/dist/whatsapp/functions/sendQueryExists.d.ts +1 -1
- package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +44 -0
- package/dist/whatsapp/functions/sendQueryGroupInviteCode.d.ts +18 -0
- package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +18 -0
- package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -1
- package/dist/whatsapp/functions/setGroup.d.ts +23 -0
- package/dist/whatsapp/functions/status.d.ts +2 -2
- package/dist/whatsapp/functions/uploadProductImage.d.ts +1 -1
- package/dist/whatsapp/misc/Base64.d.ts +1 -1
- package/dist/whatsapp/misc/Browser.d.ts +1 -1
- package/dist/whatsapp/misc/ChatPresence.d.ts +1 -1
- package/dist/whatsapp/misc/Clock.d.ts +2 -2
- package/dist/whatsapp/misc/Cmd.d.ts +6 -5
- package/dist/whatsapp/misc/Conn.d.ts +1 -1
- package/dist/whatsapp/misc/Constants.d.ts +1 -1
- package/dist/whatsapp/misc/EventEmitter.d.ts +1 -1
- package/dist/whatsapp/misc/Features.d.ts +1 -1
- package/dist/whatsapp/misc/ImageUtils.d.ts +1 -1
- package/dist/whatsapp/misc/Locale.d.ts +1 -1
- package/dist/whatsapp/misc/MediaBlobCache.d.ts +2 -2
- package/dist/whatsapp/misc/MediaObject.d.ts +1 -1
- package/dist/whatsapp/misc/MediaObjectUtil.d.ts +1 -1
- package/dist/whatsapp/misc/MediaPrep.d.ts +1 -1
- package/dist/whatsapp/misc/MediaUtils.d.ts +1 -1
- package/dist/whatsapp/misc/MsgKey.d.ts +1 -1
- package/dist/whatsapp/misc/MsgLoadState.d.ts +2 -2
- package/dist/whatsapp/misc/OpaqueData.d.ts +2 -2
- package/dist/whatsapp/misc/State.d.ts +1 -1
- package/dist/whatsapp/misc/UserPrefs.d.ts +1 -1
- package/dist/whatsapp/misc/VCard.d.ts +1 -1
- package/dist/whatsapp/misc/Wap.d.ts +2 -2
- package/dist/whatsapp/misc/Wid.d.ts +1 -1
- package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
- package/dist/whatsapp/models/AttachMediaModel.d.ts +2 -2
- package/dist/whatsapp/models/BlocklistModel.d.ts +2 -2
- package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +2 -2
- package/dist/whatsapp/models/BusinessProfileModel.d.ts +2 -2
- package/dist/whatsapp/models/CallModel.d.ts +2 -2
- package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -2
- package/dist/whatsapp/models/CartItemModel.d.ts +2 -2
- package/dist/whatsapp/models/CartModel.d.ts +2 -2
- package/dist/whatsapp/models/CatalogModel.d.ts +2 -2
- package/dist/whatsapp/models/ChatModel.d.ts +4 -3
- package/dist/whatsapp/models/ChatPreferenceModel.d.ts +2 -2
- package/dist/whatsapp/models/ChatstateModel.d.ts +2 -2
- package/dist/whatsapp/models/ConnModel.d.ts +2 -2
- package/dist/whatsapp/models/ContactModel.d.ts +2 -2
- package/dist/whatsapp/models/ConversionTupleModel.d.ts +2 -2
- package/dist/whatsapp/models/EmojiVariantModel.d.ts +2 -2
- package/dist/whatsapp/models/GroupMetadataModel.d.ts +4 -4
- package/dist/whatsapp/models/LabelItemModel.d.ts +2 -2
- package/dist/whatsapp/models/LabelModel.d.ts +2 -2
- package/dist/whatsapp/models/LiveLocationModel.d.ts +2 -2
- package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +2 -2
- package/dist/whatsapp/models/MediaDataModel.d.ts +2 -2
- package/dist/whatsapp/models/Model.d.ts +1 -1
- package/dist/whatsapp/models/ModelChatBase.d.ts +1 -1
- package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +2 -2
- package/dist/whatsapp/models/MsgInfoModel.d.ts +2 -2
- package/dist/whatsapp/models/MsgModel.d.ts +2 -2
- package/dist/whatsapp/models/MuteModel.d.ts +2 -2
- package/dist/whatsapp/models/OrderItemModel.d.ts +2 -2
- package/dist/whatsapp/models/OrderModel.d.ts +2 -2
- package/dist/whatsapp/models/ParticipantModel.d.ts +2 -2
- package/dist/whatsapp/models/ProductCollModel.d.ts +2 -2
- package/dist/whatsapp/models/ProductImageModel.d.ts +2 -2
- package/dist/whatsapp/models/ProductMessageListModel.d.ts +2 -2
- package/dist/whatsapp/models/ProductModel.d.ts +2 -2
- package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +2 -2
- package/dist/whatsapp/models/QuickReplyModel.d.ts +2 -2
- package/dist/whatsapp/models/RecentEmojiModel.d.ts +2 -2
- package/dist/whatsapp/models/RecentStickerModel.d.ts +2 -2
- package/dist/whatsapp/models/ReplyButtonModel.d.ts +2 -2
- package/dist/whatsapp/models/StateModel.d.ts +2 -2
- package/dist/whatsapp/models/StatusModel.d.ts +2 -2
- package/dist/whatsapp/models/StatusV3Model.d.ts +2 -2
- package/dist/whatsapp/models/StickerModel.d.ts +2 -2
- package/dist/whatsapp/models/StickerPackModel.d.ts +2 -2
- package/dist/whatsapp/models/TemplateButtonModel.d.ts +2 -2
- package/dist/whatsapp/models/UnreadMentionModel.d.ts +2 -2
- package/dist/whatsapp/models/WebCallModel.d.ts +2 -2
- package/dist/whatsapp/multidevice/adv.d.ts +1 -1
- package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -1
- package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -1
- package/dist/whatsapp/stores.d.ts +29 -29
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +15 -13
|
@@ -0,0 +1,44 @@
|
|
|
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 { Wid } from '..';
|
|
17
|
+
export interface QueryGroupInviteResult {
|
|
18
|
+
announce: boolean;
|
|
19
|
+
creation: number;
|
|
20
|
+
desc: string;
|
|
21
|
+
descId: string;
|
|
22
|
+
descOwner: Wid;
|
|
23
|
+
descTime: number;
|
|
24
|
+
id: Wid;
|
|
25
|
+
noFrequentlyForwarded: boolean;
|
|
26
|
+
owner: Wid;
|
|
27
|
+
parent: boolean;
|
|
28
|
+
participants: {
|
|
29
|
+
id: Wid;
|
|
30
|
+
isAdmin: boolean;
|
|
31
|
+
isSuperAdmin: boolean;
|
|
32
|
+
}[];
|
|
33
|
+
pvId?: string;
|
|
34
|
+
restrict: boolean;
|
|
35
|
+
size: number;
|
|
36
|
+
status: number;
|
|
37
|
+
subject: string;
|
|
38
|
+
subjectOwner: Wid;
|
|
39
|
+
subjectTime: number;
|
|
40
|
+
support: boolean;
|
|
41
|
+
suspended: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** @whatsapp 85709 */
|
|
44
|
+
export declare function sendQueryGroupInvite(inviteCode: string): Promise<QueryGroupInviteResult>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { Wid } from '..';
|
|
17
|
+
/** @whatsapp 65705 */
|
|
18
|
+
export declare function sendQueryGroupInviteCode(groupId: Wid): Promise<string>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { Wid } from '..';
|
|
17
|
+
/** @whatsapp 65705 */
|
|
18
|
+
export declare function sendRevokeGroupInviteCode(groupId: Wid): Promise<string>;
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 54701 */
|
|
17
17
|
export declare function sendTextMsgToChat(chat: any, message: any, options: any): Promise<string>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { Wid } from '..';
|
|
17
|
+
import { GROUP_SETTING_TYPE } from '../enums';
|
|
18
|
+
/** @whatsapp 66365 */
|
|
19
|
+
export declare function sendSetGroupSubject(groupId: Wid, subject: string): Promise<void>;
|
|
20
|
+
/** @whatsapp 66365 */
|
|
21
|
+
export declare function sendSetGroupDescription(groupId: Wid, description: string, tagId: string, previousTagId?: string): Promise<void>;
|
|
22
|
+
/** @whatsapp 66365 */
|
|
23
|
+
export declare function sendSetGroupProperty(groupId: Wid, property: GROUP_SETTING_TYPE, value: number): Promise<void>;
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from '..';
|
|
17
|
-
/** @whatsapp
|
|
17
|
+
/** @whatsapp 12391 */
|
|
18
18
|
export declare function getStatus(contactId: Wid): Promise<{
|
|
19
19
|
id: Wid;
|
|
20
20
|
status: string;
|
|
21
21
|
}>;
|
|
22
|
-
/** @whatsapp
|
|
22
|
+
/** @whatsapp 12391 */
|
|
23
23
|
export declare function setMyStatus(status: string, seqId?: number): Promise<{
|
|
24
24
|
status: number;
|
|
25
25
|
}>;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 76512 */
|
|
17
17
|
export declare namespace Base64 {
|
|
18
18
|
const BASE64_DATA_URL_SCHEME: 'data:image/jpeg;base64,';
|
|
19
19
|
function encodeB64(data: ArrayLike<number> | ArrayBufferLike): string;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 5897 */
|
|
17
17
|
export declare namespace Browser {
|
|
18
18
|
let promptUnloadGuards: number;
|
|
19
19
|
function id(): string;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel } from '..';
|
|
17
|
-
/** @whatsapp
|
|
17
|
+
/** @whatsapp 58487 */
|
|
18
18
|
export declare namespace ChatPresence {
|
|
19
19
|
function markComposing(chat: ChatModel): Promise<void>;
|
|
20
20
|
function markPaused(chat: ChatModel): Promise<void>;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 21810 */
|
|
17
17
|
export declare class ClockClass {
|
|
18
18
|
is24h: boolean;
|
|
19
19
|
skew: number;
|
|
@@ -41,5 +41,5 @@ export declare class ClockClass {
|
|
|
41
41
|
liveLocationLastUpdatedStr(timestamp: number): string;
|
|
42
42
|
shouldUseIntlDateTimeFormat(): boolean;
|
|
43
43
|
}
|
|
44
|
-
/** @whatsapp
|
|
44
|
+
/** @whatsapp 21810 */
|
|
45
45
|
export declare const Clock: ClockClass;
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { ChatModel } from '..';
|
|
16
17
|
import { EventEmitter } from '.';
|
|
17
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 2751 */
|
|
18
19
|
export declare class CmdClass extends EventEmitter {
|
|
19
20
|
isMainLoaded: boolean;
|
|
20
21
|
uiBusy: number;
|
|
@@ -49,9 +50,9 @@ export declare class CmdClass extends EventEmitter {
|
|
|
49
50
|
sendDeleteMsgs(e?: any, t?: any, r?: any, n?: any, i?: any): void;
|
|
50
51
|
sendRevokeMsgs(e?: any, t?: any, r?: any, n?: any, i?: any): void;
|
|
51
52
|
_openChat(e?: any, t?: any): void;
|
|
52
|
-
openChatAt(
|
|
53
|
-
openChatFromUnread(
|
|
54
|
-
openChatBottom(
|
|
53
|
+
openChatAt(chat: ChatModel, context: ReturnType<ChatModel['getSearchContext']>): Promise<boolean>;
|
|
54
|
+
openChatFromUnread(chat: ChatModel): Promise<boolean>;
|
|
55
|
+
openChatBottom(chat: ChatModel): Promise<boolean>;
|
|
55
56
|
scrollToPtt(e?: any): void;
|
|
56
57
|
_scrollToFocusedMsg(e?: any): void;
|
|
57
58
|
_scrollChatToBottom(): void;
|
|
@@ -143,5 +144,5 @@ export declare class CmdClass extends EventEmitter {
|
|
|
143
144
|
showCountrySelector(e?: any, t?: any, r?: any): void;
|
|
144
145
|
toggleStickerMaker(): void;
|
|
145
146
|
}
|
|
146
|
-
/** @whatsapp
|
|
147
|
+
/** @whatsapp 2751 */
|
|
147
148
|
export declare const Cmd: CmdClass;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 11547 */
|
|
17
17
|
export declare const Constants: {
|
|
18
18
|
ARCHIVE_NUX_MAX_VIEWS: number;
|
|
19
19
|
IMG_THUMB_MAX_EDGE: number;
|
|
@@ -21,7 +21,7 @@ declare type Event = string | symbol;
|
|
|
21
21
|
* The callback function.
|
|
22
22
|
*/
|
|
23
23
|
declare type Listener = (...args: any[]) => void;
|
|
24
|
-
/** @whatsapp
|
|
24
|
+
/** @whatsapp 98239 */
|
|
25
25
|
export declare class EventEmitter {
|
|
26
26
|
/**
|
|
27
27
|
* Adds the listener function to the end of the listeners array for the event named eventName.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 72999 */
|
|
17
17
|
export declare namespace ImageUtils {
|
|
18
18
|
function rotateAndResize(e: any, t: any, r: any): Promise<{
|
|
19
19
|
width: number;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 21289 */
|
|
17
17
|
export declare class MediaBlobCacheImpl {
|
|
18
18
|
is24h: boolean;
|
|
19
19
|
getOrCreateURL(filehash: string): string;
|
|
@@ -26,5 +26,5 @@ export declare class MediaBlobCacheImpl {
|
|
|
26
26
|
increaseUsageCount(filehash: string): void;
|
|
27
27
|
decreaseUsageCount(filehash: string): void;
|
|
28
28
|
}
|
|
29
|
-
/** @whatsapp
|
|
29
|
+
/** @whatsapp 21289 */
|
|
30
30
|
export declare const MediaBlobCache: MediaBlobCacheImpl;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { ChatModel, MediaDataModel, ModelPropertiesContructor, MsgModel } from '..';
|
|
17
17
|
import { OUTWARD_TYPES, SendMsgResult } from '../enums';
|
|
18
18
|
import { OpaqueData } from '.';
|
|
19
|
-
/** @whatsapp
|
|
19
|
+
/** @whatsapp 22367 */
|
|
20
20
|
export declare namespace MediaPrep {
|
|
21
21
|
function prepRawMedia(data: OpaqueData, options: {
|
|
22
22
|
isPtt?: boolean;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 76329 */
|
|
17
17
|
export declare namespace MediaUtils {
|
|
18
18
|
function getImageWidthHeight(): Promise<{
|
|
19
19
|
width: number;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BaseCollection } from '../collections';
|
|
17
17
|
import { Model, MsgModel } from '../models';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 38671 */
|
|
19
19
|
export declare class MsgLoadState extends Model {
|
|
20
20
|
noEarlierMsgs: any;
|
|
21
21
|
isLoadingEarlierMsgs: any;
|
|
@@ -23,7 +23,7 @@ export declare class MsgLoadState extends Model {
|
|
|
23
23
|
isLoadingAroundMsgs: any;
|
|
24
24
|
contextLoaded: any;
|
|
25
25
|
}
|
|
26
|
-
/** @whatsapp
|
|
26
|
+
/** @whatsapp 38671 */
|
|
27
27
|
export declare class MsgLoad extends BaseCollection<MsgModel> {
|
|
28
28
|
msgLoadState: MsgLoadState;
|
|
29
29
|
loadRecentPromise?: Promise<any>;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 45138 */
|
|
17
17
|
export declare class OpaqueDataBase {
|
|
18
18
|
released: boolean;
|
|
19
19
|
retain(): void;
|
|
@@ -21,7 +21,7 @@ export declare class OpaqueDataBase {
|
|
|
21
21
|
autoreleaseWhenPromiseCompletes(e: Promise<any>): void;
|
|
22
22
|
throwIfReleased(e: any): void;
|
|
23
23
|
}
|
|
24
|
-
/** @whatsapp
|
|
24
|
+
/** @whatsapp 45138 */
|
|
25
25
|
export declare class OpaqueData extends OpaqueDataBase {
|
|
26
26
|
url(): string;
|
|
27
27
|
getBase64(): string;
|
|
@@ -19,7 +19,7 @@ export interface VCardData {
|
|
|
19
19
|
vcard: string;
|
|
20
20
|
isMultiVcard: false;
|
|
21
21
|
}
|
|
22
|
-
/** @whatsapp
|
|
22
|
+
/** @whatsapp 26478 */
|
|
23
23
|
export declare namespace VCard {
|
|
24
24
|
function vcardFromContactModel(contact: ContactModel): VCardData;
|
|
25
25
|
function mergeVcards(vcards: VCardData[]): VCardData;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from '.';
|
|
17
|
-
/** @whatsapp
|
|
17
|
+
/** @whatsapp 25195 */
|
|
18
18
|
export declare class WapClass {
|
|
19
19
|
queryExist(contactId: string): Promise<{
|
|
20
20
|
status: 200;
|
|
@@ -27,5 +27,5 @@ export declare class WapClass {
|
|
|
27
27
|
settingTimestamp: number;
|
|
28
28
|
}>;
|
|
29
29
|
}
|
|
30
|
-
/** @whatsapp
|
|
30
|
+
/** @whatsapp 25195 */
|
|
31
31
|
export declare const Wap: WapClass;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp
|
|
16
|
+
/** @whatsapp 69678 */
|
|
17
17
|
export declare class Wid {
|
|
18
18
|
constructor(id: string, options?: {
|
|
19
19
|
intentionallyUsePrivateConstructor: boolean;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from './Wid';
|
|
17
|
-
/** @whatsapp
|
|
17
|
+
/** @whatsapp 31517 */
|
|
18
18
|
export declare namespace WidFactory {
|
|
19
19
|
function createDeviceWid(wid: string): Wid;
|
|
20
20
|
function createDeviceWidFromUserAndDevice(user: string, device: string): Wid;
|
|
@@ -46,10 +46,10 @@ interface Derived {
|
|
|
46
46
|
filesize?: any;
|
|
47
47
|
fileExt?: any;
|
|
48
48
|
}
|
|
49
|
-
/** @whatsapp
|
|
49
|
+
/** @whatsapp 47121 */
|
|
50
50
|
export declare interface AttachMediaModel extends ModelProxy<Props, Session, Derived> {
|
|
51
51
|
}
|
|
52
|
-
/** @whatsapp
|
|
52
|
+
/** @whatsapp 47121 */
|
|
53
53
|
export declare class AttachMediaModel extends Model {
|
|
54
54
|
constructor(proterties?: ModelPropertiesContructor<AttachMediaModel>, options?: ModelOptions);
|
|
55
55
|
processAttachment(e?: any): any;
|
|
@@ -24,10 +24,10 @@ interface Session {
|
|
|
24
24
|
}
|
|
25
25
|
interface Derived {
|
|
26
26
|
}
|
|
27
|
-
/** @whatsapp
|
|
27
|
+
/** @whatsapp 95254 */
|
|
28
28
|
export declare interface BlocklistModel extends ModelProxy<Props, Session, Derived> {
|
|
29
29
|
}
|
|
30
|
-
/** @whatsapp
|
|
30
|
+
/** @whatsapp 95254 */
|
|
31
31
|
export declare class BlocklistModel extends Model<BlocklistCollection> {
|
|
32
32
|
idClass: typeof Wid;
|
|
33
33
|
constructor(proterties?: ModelPropertiesContructor<BlocklistModel>, options?: ModelOptions);
|
|
@@ -25,10 +25,10 @@ interface Session {
|
|
|
25
25
|
}
|
|
26
26
|
interface Derived {
|
|
27
27
|
}
|
|
28
|
-
/** @whatsapp
|
|
28
|
+
/** @whatsapp 85840 */
|
|
29
29
|
export declare interface BusinessCategoriesResultModel extends ModelProxy<Props, Session, Derived> {
|
|
30
30
|
}
|
|
31
|
-
/** @whatsapp
|
|
31
|
+
/** @whatsapp 85840 */
|
|
32
32
|
export declare class BusinessCategoriesResultModel extends Model<BusinessCategoriesResultCollection> {
|
|
33
33
|
idClass: typeof Wid;
|
|
34
34
|
constructor(proterties?: ModelPropertiesContructor<BusinessCategoriesResultModel>, options?: ModelOptions);
|
|
@@ -36,10 +36,10 @@ interface Session {
|
|
|
36
36
|
}
|
|
37
37
|
interface Derived {
|
|
38
38
|
}
|
|
39
|
-
/** @whatsapp
|
|
39
|
+
/** @whatsapp 20586 */
|
|
40
40
|
export declare interface BusinessProfileModel extends ModelProxy<Props, Session, Derived> {
|
|
41
41
|
}
|
|
42
|
-
/** @whatsapp
|
|
42
|
+
/** @whatsapp 20586 */
|
|
43
43
|
export declare class BusinessProfileModel extends Model<BusinessProfileCollection> {
|
|
44
44
|
idClass: typeof Wid;
|
|
45
45
|
constructor(proterties?: ModelPropertiesContructor<BusinessProfileModel>, options?: ModelOptions);
|
|
@@ -32,10 +32,10 @@ interface Session {
|
|
|
32
32
|
}
|
|
33
33
|
interface Derived {
|
|
34
34
|
}
|
|
35
|
-
/** @whatsapp
|
|
35
|
+
/** @whatsapp 42810 */
|
|
36
36
|
export declare interface CallModel extends ModelProxy<Props, Session, Derived> {
|
|
37
37
|
}
|
|
38
|
-
/** @whatsapp
|
|
38
|
+
/** @whatsapp 42810 */
|
|
39
39
|
export declare class CallModel extends Model<CallCollection> {
|
|
40
40
|
constructor(proterties?: ModelPropertiesContructor<CallModel>, options?: ModelOptions);
|
|
41
41
|
getState(): any;
|
|
@@ -34,10 +34,10 @@ interface Session {
|
|
|
34
34
|
}
|
|
35
35
|
interface Derived {
|
|
36
36
|
}
|
|
37
|
-
/** @whatsapp
|
|
37
|
+
/** @whatsapp 5584 */
|
|
38
38
|
export declare interface CallParticipantModel extends ModelProxy<Props, Session, Derived> {
|
|
39
39
|
}
|
|
40
|
-
/** @whatsapp
|
|
40
|
+
/** @whatsapp 5584 */
|
|
41
41
|
export declare class CallParticipantModel extends Model {
|
|
42
42
|
constructor(proterties?: ModelPropertiesContructor<CallParticipantModel>, options?: ModelOptions);
|
|
43
43
|
}
|
|
@@ -28,10 +28,10 @@ interface Session {
|
|
|
28
28
|
}
|
|
29
29
|
interface Derived {
|
|
30
30
|
}
|
|
31
|
-
/** @whatsapp
|
|
31
|
+
/** @whatsapp 57961 */
|
|
32
32
|
export declare interface CartItemModel extends ModelProxy<Props, Session, Derived> {
|
|
33
33
|
}
|
|
34
|
-
/** @whatsapp
|
|
34
|
+
/** @whatsapp 57961 */
|
|
35
35
|
export declare class CartItemModel extends Model<CartCollection> {
|
|
36
36
|
constructor(proterties?: ModelPropertiesContructor<CartItemModel>, options?: ModelOptions);
|
|
37
37
|
getCollection(): CartCollection;
|
|
@@ -28,10 +28,10 @@ interface Session {
|
|
|
28
28
|
}
|
|
29
29
|
interface Derived {
|
|
30
30
|
}
|
|
31
|
-
/** @whatsapp
|
|
31
|
+
/** @whatsapp 88043 */
|
|
32
32
|
export declare interface CartModel extends ModelProxy<Props, Session, Derived> {
|
|
33
33
|
}
|
|
34
|
-
/** @whatsapp
|
|
34
|
+
/** @whatsapp 88043 */
|
|
35
35
|
export declare class CartModel extends Model<CartCollection> {
|
|
36
36
|
constructor(proterties?: ModelPropertiesContructor<CartModel>, options?: ModelOptions);
|
|
37
37
|
countTotals(): any;
|
|
@@ -28,10 +28,10 @@ interface Session {
|
|
|
28
28
|
}
|
|
29
29
|
interface Derived {
|
|
30
30
|
}
|
|
31
|
-
/** @whatsapp
|
|
31
|
+
/** @whatsapp 22746 */
|
|
32
32
|
export declare interface CatalogModel extends ModelProxy<Props, Session, Derived> {
|
|
33
33
|
}
|
|
34
|
-
/** @whatsapp
|
|
34
|
+
/** @whatsapp 22746 */
|
|
35
35
|
export declare class CatalogModel extends Model<CatalogCollection> {
|
|
36
36
|
idClass: typeof Wid;
|
|
37
37
|
constructor(proterties?: ModelPropertiesContructor<CatalogModel>, options?: ModelOptions);
|
|
@@ -28,6 +28,7 @@ interface Props extends PropsChatBase {
|
|
|
28
28
|
isAnnounceGrpRestrict: boolean;
|
|
29
29
|
modifyTag?: any;
|
|
30
30
|
muteExpiration?: any;
|
|
31
|
+
name?: string;
|
|
31
32
|
notSpam?: any;
|
|
32
33
|
pin?: any;
|
|
33
34
|
changeNumberOldJid?: any;
|
|
@@ -43,7 +44,7 @@ interface Session extends SessionChatBase {
|
|
|
43
44
|
stale?: any;
|
|
44
45
|
createdLocally?: any;
|
|
45
46
|
pendingAction?: any;
|
|
46
|
-
formattedTitle?:
|
|
47
|
+
formattedTitle?: string;
|
|
47
48
|
active?: any;
|
|
48
49
|
pausedTimerId?: any;
|
|
49
50
|
presenceResendTimerId?: any;
|
|
@@ -95,10 +96,10 @@ interface Derived {
|
|
|
95
96
|
showChangeNumberNotification?: any;
|
|
96
97
|
shouldShowUnreadInTitle?: any;
|
|
97
98
|
}
|
|
98
|
-
/** @whatsapp
|
|
99
|
+
/** @whatsapp 8853 */
|
|
99
100
|
export declare interface ChatModel extends ModelProxy<Props, Session, Derived> {
|
|
100
101
|
}
|
|
101
|
-
/** @whatsapp
|
|
102
|
+
/** @whatsapp 8853 */
|
|
102
103
|
export declare class ChatModel extends ModelChatBase {
|
|
103
104
|
idClass: typeof Wid;
|
|
104
105
|
constructor(proterties?: ModelPropertiesContructor<ChatModel>, options?: ModelOptions);
|
|
@@ -26,10 +26,10 @@ interface Session {
|
|
|
26
26
|
}
|
|
27
27
|
interface Derived {
|
|
28
28
|
}
|
|
29
|
-
/** @whatsapp
|
|
29
|
+
/** @whatsapp 2100 */
|
|
30
30
|
export declare interface ChatPreferenceModel extends ModelProxy<Props, Session, Derived> {
|
|
31
31
|
}
|
|
32
|
-
/** @whatsapp
|
|
32
|
+
/** @whatsapp 2100 */
|
|
33
33
|
export declare class ChatPreferenceModel extends Model {
|
|
34
34
|
idClass: typeof Wid;
|
|
35
35
|
allowedIds?: any;
|
|
@@ -27,10 +27,10 @@ interface Session {
|
|
|
27
27
|
}
|
|
28
28
|
interface Derived {
|
|
29
29
|
}
|
|
30
|
-
/** @whatsapp
|
|
30
|
+
/** @whatsapp 74378 */
|
|
31
31
|
export declare interface ChatstateModel extends ModelProxy<Props, Session, Derived> {
|
|
32
32
|
}
|
|
33
|
-
/** @whatsapp
|
|
33
|
+
/** @whatsapp 74378 */
|
|
34
34
|
export declare class ChatstateModel extends Model {
|
|
35
35
|
idClass: typeof Wid;
|
|
36
36
|
allowedIds?: any;
|
|
@@ -53,10 +53,10 @@ interface Derived {
|
|
|
53
53
|
tosShowCallNotification?: any;
|
|
54
54
|
isSMB?: boolean;
|
|
55
55
|
}
|
|
56
|
-
/** @whatsapp
|
|
56
|
+
/** @whatsapp 13798 */
|
|
57
57
|
export declare interface ConnModel extends ModelProxy<Props, Session, Derived> {
|
|
58
58
|
}
|
|
59
|
-
/** @whatsapp
|
|
59
|
+
/** @whatsapp 13798 */
|
|
60
60
|
export declare class ConnModel extends Model {
|
|
61
61
|
constructor(proterties?: ModelPropertiesContructor<ConnModel>, options?: ModelOptions);
|
|
62
62
|
canSetMyPushname(): boolean;
|