@wppconnect/wa-js 1.0.6 → 1.0.7
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 +4 -0
- package/dist/auth/Auth.d.ts +1 -0
- package/dist/auth/types.d.ts +1 -0
- package/dist/chat/Chat.d.ts +9 -0
- 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/CollectionCache.d.ts +1 -3
- 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 +3 -3
- 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/LogoutReason.d.ts +27 -0
- 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/findChat.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/index.d.ts +2 -0
- package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
- package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
- package/dist/whatsapp/functions/randomId.d.ts +2 -2
- package/dist/whatsapp/functions/sendClear.d.ts +18 -0
- package/dist/whatsapp/functions/sendDelete.d.ts +18 -0
- package/dist/whatsapp/functions/sendTextMsgToChat.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/ClockSkew.d.ts +1 -1
- package/dist/whatsapp/misc/Cmd.d.ts +150 -0
- 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/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/State.d.ts +1 -1
- package/dist/whatsapp/misc/UserPrefs.d.ts +1 -1
- package/dist/whatsapp/misc/Wid.d.ts +1 -1
- package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
- package/dist/whatsapp/misc/index.d.ts +1 -0
- 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 +6 -4
- 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 +2 -2
- 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 -3
- 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/ProductModel.d.ts +2 -2
- package/dist/whatsapp/models/Product_listModel.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 +4 -3
- 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 +7 -7
|
@@ -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 { ChatModel } from '..';
|
|
17
|
+
/** @whatsapp 2.2140.7:67357 */
|
|
18
|
+
export declare function sendClear(chat: ChatModel, keepStarred?: boolean): Promise<void>;
|
|
@@ -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 { ChatModel } from '..';
|
|
17
|
+
/** @whatsapp 2.2140.7:61670 */
|
|
18
|
+
export declare function sendDelete(chat: ChatModel): Promise<void>;
|
|
@@ -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 2.
|
|
16
|
+
/** @whatsapp 2.2140.7:30239 */
|
|
17
17
|
export declare function sendTextMsgToChat(chat: any, message: any, options: any): Promise<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 2.
|
|
16
|
+
/** @whatsapp 2.2140.7:42977 */
|
|
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 2.
|
|
16
|
+
/** @whatsapp 2.2140.7:94666 */
|
|
17
17
|
export declare namespace Browser {
|
|
18
18
|
let promptUnloadGuards: number;
|
|
19
19
|
function id(): 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 2.
|
|
16
|
+
/** @whatsapp 2.2140.7:25142 */
|
|
17
17
|
export declare namespace ClockSkew {
|
|
18
18
|
const is24h: boolean;
|
|
19
19
|
const skew: number;
|
|
@@ -0,0 +1,150 @@
|
|
|
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 { EventEmitter } from '.';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 2.2140.7:69162
|
|
19
|
+
*/
|
|
20
|
+
export declare class CmdClass extends EventEmitter {
|
|
21
|
+
isMainLoaded: boolean;
|
|
22
|
+
uiBusy: number;
|
|
23
|
+
mainLoaded(): void;
|
|
24
|
+
incrementProgress(): void;
|
|
25
|
+
initialLoadReady(): void;
|
|
26
|
+
logSocketSummary(): void;
|
|
27
|
+
muteAll(e?: any, t?: any): void;
|
|
28
|
+
muteAllCall(e?: any, t?: any): void;
|
|
29
|
+
muteChat(e?: any, t?: any): void;
|
|
30
|
+
muteChats(e?: any, t?: any, r?: any): void;
|
|
31
|
+
deleteOrExitChat(e?: any, t?: any): void;
|
|
32
|
+
clearChat(e?: any, t?: any): void;
|
|
33
|
+
archiveChat(e?: any, t?: any): void;
|
|
34
|
+
pinChat(e?: any, t?: any): void;
|
|
35
|
+
pinChats(e?: any, t?: any): void;
|
|
36
|
+
markChatUnread(e?: any, t?: any): void;
|
|
37
|
+
msgInfoDrawer(e?: any): void;
|
|
38
|
+
chatSearch(e?: any): void;
|
|
39
|
+
chatInfoDrawer(e?: any, t?: any, r?: any): void;
|
|
40
|
+
attachMediaDrawer(e?: any): void;
|
|
41
|
+
attachProduct(e?: any): void;
|
|
42
|
+
verificationDrawer(e?: any): void;
|
|
43
|
+
liveLocationDrawer(e?: any, t?: any): void;
|
|
44
|
+
expiredLocationDrawer(e?: any): void;
|
|
45
|
+
mediaViewerModal(e?: any): void;
|
|
46
|
+
openMediaViewerForAlbumMedia(e?: any): void;
|
|
47
|
+
productImageViewerModal(e?: any, t?: any): void;
|
|
48
|
+
ephemeralDrawer(e?: any, t?: any): void;
|
|
49
|
+
sendStarMsgs(e?: any, t?: any, r?: any, n?: any): void;
|
|
50
|
+
sendUnstarMsgs(e?: any, t?: any, r?: any, n?: any): void;
|
|
51
|
+
sendDeleteMsgs(e?: any, t?: any, r?: any, n?: any, i?: any): void;
|
|
52
|
+
sendRevokeMsgs(e?: any, t?: any, r?: any, n?: any, i?: any): void;
|
|
53
|
+
_openChat(e?: any, t?: any): void;
|
|
54
|
+
openChatAt(e?: any, t?: any): void;
|
|
55
|
+
openChatFromUnread(e?: any): void;
|
|
56
|
+
openChatBottom(e?: any): void;
|
|
57
|
+
scrollToPtt(e?: any): void;
|
|
58
|
+
_scrollToFocusedMsg(e?: any): void;
|
|
59
|
+
_scrollChatToBottom(): void;
|
|
60
|
+
flashFocusedMsg(e?: any): void;
|
|
61
|
+
updateChatlistSelection(e?: any): void;
|
|
62
|
+
closeChat(e?: any): void;
|
|
63
|
+
focusChatTextInput(e?: any): void;
|
|
64
|
+
setChatCtwaContextLinkData(e?: any, t?: any): void;
|
|
65
|
+
focusShowMsg(e?: any): void;
|
|
66
|
+
enterChatTextInput(e?: any): void;
|
|
67
|
+
focusNextChat(e?: any): void;
|
|
68
|
+
focusPrevChat(e?: any): void;
|
|
69
|
+
focusChatList(): void;
|
|
70
|
+
focusChatSearch(): void;
|
|
71
|
+
pasteChatTextInput(e?: any, t?: any): void;
|
|
72
|
+
startGroupCall(e?: any, t?: any): void;
|
|
73
|
+
closeStatusViewer(): void;
|
|
74
|
+
sendPasteToCompose(e?: any, t?: any): void;
|
|
75
|
+
openComposeBoxPanel(e?: any): void;
|
|
76
|
+
login(e?: any): void;
|
|
77
|
+
logout(): void;
|
|
78
|
+
openContextMenu(e?: any, t?: any): void;
|
|
79
|
+
closeContextMenu(e?: any): void;
|
|
80
|
+
openTooltip(e?: any, t?: any): void;
|
|
81
|
+
closeTooltip(e?: any): void;
|
|
82
|
+
openToast(e?: any): void;
|
|
83
|
+
closeToast(e?: any): void;
|
|
84
|
+
alertNewMsg(e?: any): void;
|
|
85
|
+
newMediaMsg(e?: any): void;
|
|
86
|
+
alertCall(e?: any, t?: any, r?: any, n?: any, i?: any): void;
|
|
87
|
+
cancelCall(e?: any): void;
|
|
88
|
+
windowError(): void;
|
|
89
|
+
cannotReachPhone(): void;
|
|
90
|
+
sentPing(): void;
|
|
91
|
+
openModal(e?: any, t?: any): void;
|
|
92
|
+
closeModal(e?: any): void;
|
|
93
|
+
openModalMedia(e?: any, t?: any): void;
|
|
94
|
+
closeModalMedia(): void;
|
|
95
|
+
setDrawerContext(e?: any, t?: any): void;
|
|
96
|
+
openDrawerRight(e?: any, t?: any, r?: any, n?: any, i?: any): void;
|
|
97
|
+
openDrawerMid(e?: any, t?: any, r?: any, n?: any, i?: any, a?: any): void;
|
|
98
|
+
openDrawerLeft(e?: any, t?: any, r?: any, n?: any, i?: any): void;
|
|
99
|
+
existsDrawerRight(e?: any): void;
|
|
100
|
+
existsDrawerMid(e?: any): void;
|
|
101
|
+
existsDrawerLeft(e?: any): void;
|
|
102
|
+
closeDrawerRight(): void;
|
|
103
|
+
closeDrawerMid(): void;
|
|
104
|
+
closeDrawerLeft(): void;
|
|
105
|
+
onPanesWillChange(e?: any): void;
|
|
106
|
+
onPanesDidChange(e?: any): void;
|
|
107
|
+
openGroupInviteModal(e?: any): void;
|
|
108
|
+
openGroupV4InviteRequestFlow(e?: any, t?: any, r?: any, n?: any): void;
|
|
109
|
+
mediaPlaying(e?: any): void;
|
|
110
|
+
pttRecording(): void;
|
|
111
|
+
pttPlaying(e?: any): void;
|
|
112
|
+
uiResize(): void;
|
|
113
|
+
setUiBusy(e?: any): void;
|
|
114
|
+
windowMouseDown(e?: any): void;
|
|
115
|
+
windowClick(e?: any): void;
|
|
116
|
+
midnight(): void;
|
|
117
|
+
textsizeChange(e?: any): void;
|
|
118
|
+
scrollMessages(): void;
|
|
119
|
+
getConversationHeaderOffset(e?: any): void;
|
|
120
|
+
floaterEscapeOverlap(e?: any, t?: any): void;
|
|
121
|
+
autoplayPTT(e?: any): void;
|
|
122
|
+
refreshMessages(): void;
|
|
123
|
+
serverPropsUpdated(): void;
|
|
124
|
+
storageInitializationError(): void;
|
|
125
|
+
restartBackend(): void;
|
|
126
|
+
downgradeWebclient(): void;
|
|
127
|
+
upgradeToMDInternal(): void;
|
|
128
|
+
upgradeToMDProd(): void;
|
|
129
|
+
refreshQR(): void;
|
|
130
|
+
setSocketState(e?: any): void;
|
|
131
|
+
socketStreamDisconnected(): void;
|
|
132
|
+
openSocketStream(): void;
|
|
133
|
+
readyForMainStreamMode(): void;
|
|
134
|
+
onInitialChatHistorySynced(): void;
|
|
135
|
+
onRecentChatHistorySynced(): void;
|
|
136
|
+
onFullChatHistorySynced(): void;
|
|
137
|
+
onHistorySyncChunkProcessed(e?: any): void;
|
|
138
|
+
handleOfflineProgressUpdate(): void;
|
|
139
|
+
criticalSyncDone(): void;
|
|
140
|
+
onTemporaryBan(e?: any): void;
|
|
141
|
+
onStartingLogout(): void;
|
|
142
|
+
handleFatalError(): void;
|
|
143
|
+
merchantDetailsDrawer(e?: any): void;
|
|
144
|
+
showMerchantDetailsEntityTypePopup(e?: any, t?: any): void;
|
|
145
|
+
showCountrySelector(e?: any, t?: any, r?: any): void;
|
|
146
|
+
toggleStickerMaker(): void;
|
|
147
|
+
}
|
|
148
|
+
/** @whatsapp 2.2140.7:69162 */
|
|
149
|
+
export declare const Cmd: CmdClass;
|
|
150
|
+
export declare const APP_STATE_SYNC_COMPLETED: 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 2.
|
|
16
|
+
/** @whatsapp 2.2140.7:55454 */
|
|
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 2.
|
|
24
|
+
/** @whatsapp 2.2140.7:95863 */
|
|
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 2.
|
|
16
|
+
/** @whatsapp 2.2140.7:49288 */
|
|
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 2.
|
|
16
|
+
/** @whatsapp 2.2140.7:63063 */
|
|
17
17
|
export declare namespace MediaUtils {
|
|
18
18
|
function getImageWidthHeight(): Promise<{
|
|
19
19
|
width: number;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CollectionCache } from '../collections';
|
|
17
17
|
import { Model, MsgModel } from '../models';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2140.7:97490 */
|
|
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 2.
|
|
26
|
+
/** @whatsapp 2.2140.7:97490 */
|
|
27
27
|
export declare class MsgLoad extends CollectionCache<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 2.
|
|
16
|
+
/** @whatsapp 2.2140.7:69635 */
|
|
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 2.
|
|
17
|
+
/** @whatsapp 2.2140.7:89573 */
|
|
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 2.
|
|
49
|
+
/** @whatsapp 2.2140.7:73754 */
|
|
50
50
|
export declare interface AttachMediaModel extends ModelProxy<Props, Session, Derived> {
|
|
51
51
|
}
|
|
52
|
-
/** @whatsapp 2.
|
|
52
|
+
/** @whatsapp 2.2140.7:73754 */
|
|
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 2.
|
|
27
|
+
/** @whatsapp 2.2140.7:43123 */
|
|
28
28
|
export declare interface BlocklistModel extends ModelProxy<Props, Session, Derived> {
|
|
29
29
|
}
|
|
30
|
-
/** @whatsapp 2.
|
|
30
|
+
/** @whatsapp 2.2140.7:43123 */
|
|
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 2.
|
|
28
|
+
/** @whatsapp 2.2140.7:32816 */
|
|
29
29
|
export declare interface BusinessCategoriesResultModel extends ModelProxy<Props, Session, Derived> {
|
|
30
30
|
}
|
|
31
|
-
/** @whatsapp 2.
|
|
31
|
+
/** @whatsapp 2.2140.7:32816 */
|
|
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 2.
|
|
39
|
+
/** @whatsapp 2.2140.7:42097 */
|
|
40
40
|
export declare interface BusinessProfileModel extends ModelProxy<Props, Session, Derived> {
|
|
41
41
|
}
|
|
42
|
-
/** @whatsapp 2.
|
|
42
|
+
/** @whatsapp 2.2140.7:42097 */
|
|
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 2.
|
|
35
|
+
/** @whatsapp 2.2140.7:70026 */
|
|
36
36
|
export declare interface CallModel extends ModelProxy<Props, Session, Derived> {
|
|
37
37
|
}
|
|
38
|
-
/** @whatsapp 2.
|
|
38
|
+
/** @whatsapp 2.2140.7:70026 */
|
|
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 2.
|
|
37
|
+
/** @whatsapp 2.2140.7:5483 */
|
|
38
38
|
export declare interface CallParticipantModel extends ModelProxy<Props, Session, Derived> {
|
|
39
39
|
}
|
|
40
|
-
/** @whatsapp 2.
|
|
40
|
+
/** @whatsapp 2.2140.7:5483 */
|
|
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 2.
|
|
31
|
+
/** @whatsapp 2.2140.7:53685 */
|
|
32
32
|
export declare interface CartItemModel extends ModelProxy<Props, Session, Derived> {
|
|
33
33
|
}
|
|
34
|
-
/** @whatsapp 2.
|
|
34
|
+
/** @whatsapp 2.2140.7:53685 */
|
|
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 2.
|
|
31
|
+
/** @whatsapp 2.2140.7:95537 */
|
|
32
32
|
export declare interface CartModel extends ModelProxy<Props, Session, Derived> {
|
|
33
33
|
}
|
|
34
|
-
/** @whatsapp 2.
|
|
34
|
+
/** @whatsapp 2.2140.7:95537 */
|
|
35
35
|
export declare class CartModel extends Model<CartCollection> {
|
|
36
36
|
constructor(proterties?: ModelPropertiesContructor<CartModel>, options?: ModelOptions);
|
|
37
37
|
countTotals(): any;
|
|
@@ -27,10 +27,10 @@ interface Session {
|
|
|
27
27
|
}
|
|
28
28
|
interface Derived {
|
|
29
29
|
}
|
|
30
|
-
/** @whatsapp 2.
|
|
30
|
+
/** @whatsapp 2.2140.7:73310 */
|
|
31
31
|
export declare interface CatalogModel extends ModelProxy<Props, Session, Derived> {
|
|
32
32
|
}
|
|
33
|
-
/** @whatsapp 2.
|
|
33
|
+
/** @whatsapp 2.2140.7:73310 */
|
|
34
34
|
export declare class CatalogModel extends Model<CatalogCollection> {
|
|
35
35
|
idClass: typeof Wid;
|
|
36
36
|
constructor(proterties?: ModelPropertiesContructor<CatalogModel>, options?: ModelOptions);
|
|
@@ -56,7 +56,9 @@ interface Session extends SessionChatBase {
|
|
|
56
56
|
markedUnread?: any;
|
|
57
57
|
trusted?: any;
|
|
58
58
|
canSend: boolean;
|
|
59
|
-
promises
|
|
59
|
+
promises: {
|
|
60
|
+
[key: string]: Promise<any> | undefined | null;
|
|
61
|
+
};
|
|
60
62
|
ftsCache?: any;
|
|
61
63
|
composeQuotedMsg?: any;
|
|
62
64
|
composeQuotedMsgRemoteJid?: any;
|
|
@@ -92,10 +94,10 @@ interface Derived {
|
|
|
92
94
|
showChangeNumberNotification?: any;
|
|
93
95
|
shouldShowUnreadInTitle?: any;
|
|
94
96
|
}
|
|
95
|
-
/** @whatsapp 2.
|
|
97
|
+
/** @whatsapp 2.2140.7:58380 */
|
|
96
98
|
export declare interface ChatModel extends ModelProxy<Props, Session, Derived> {
|
|
97
99
|
}
|
|
98
|
-
/** @whatsapp 2.
|
|
100
|
+
/** @whatsapp 2.2140.7:58380 */
|
|
99
101
|
export declare class ChatModel extends ModelChatBase {
|
|
100
102
|
idClass: typeof Wid;
|
|
101
103
|
constructor(proterties?: ModelPropertiesContructor<ChatModel>, options?: ModelOptions);
|
|
@@ -140,7 +142,7 @@ export declare class ChatModel extends ModelChatBase {
|
|
|
140
142
|
getFirstMsgWithStatus(): any;
|
|
141
143
|
getLastReceivedMsg(): any;
|
|
142
144
|
getLastReceivedNonExpiredMsg(e?: any): any;
|
|
143
|
-
getLastMsgKeyForAction():
|
|
145
|
+
getLastMsgKeyForAction(): MsgKey;
|
|
144
146
|
getLastTimestampMsg(): any;
|
|
145
147
|
getWebcChatType(): any;
|
|
146
148
|
deregisterExpiredViewOnceBulkMessages(e?: any): any;
|
|
@@ -26,10 +26,10 @@ interface Session {
|
|
|
26
26
|
}
|
|
27
27
|
interface Derived {
|
|
28
28
|
}
|
|
29
|
-
/** @whatsapp 2.
|
|
29
|
+
/** @whatsapp 2.2140.7:23821 */
|
|
30
30
|
export declare interface ChatPreferenceModel extends ModelProxy<Props, Session, Derived> {
|
|
31
31
|
}
|
|
32
|
-
/** @whatsapp 2.
|
|
32
|
+
/** @whatsapp 2.2140.7:23821 */
|
|
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 2.
|
|
30
|
+
/** @whatsapp 2.2140.7:42165 */
|
|
31
31
|
export declare interface ChatstateModel extends ModelProxy<Props, Session, Derived> {
|
|
32
32
|
}
|
|
33
|
-
/** @whatsapp 2.
|
|
33
|
+
/** @whatsapp 2.2140.7:42165 */
|
|
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 2.
|
|
56
|
+
/** @whatsapp 2.2140.7:9322 */
|
|
57
57
|
export declare interface ConnModel extends ModelProxy<Props, Session, Derived> {
|
|
58
58
|
}
|
|
59
|
-
/** @whatsapp 2.
|
|
59
|
+
/** @whatsapp 2.2140.7:9322 */
|
|
60
60
|
export declare class ConnModel extends Model {
|
|
61
61
|
constructor(proterties?: ModelPropertiesContructor<ConnModel>, options?: ModelOptions);
|
|
62
62
|
canSetMyPushname(): boolean;
|
|
@@ -70,10 +70,10 @@ interface Derived {
|
|
|
70
70
|
showBusinessCheckmarkAsPrimary?: any;
|
|
71
71
|
showBusinessCheckmarkAsSecondary?: any;
|
|
72
72
|
}
|
|
73
|
-
/** @whatsapp 2.
|
|
73
|
+
/** @whatsapp 2.2140.7:27387 */
|
|
74
74
|
export declare interface ContactModel extends ModelProxy<Props, Session, Derived> {
|
|
75
75
|
}
|
|
76
|
-
/** @whatsapp 2.
|
|
76
|
+
/** @whatsapp 2.2140.7:27387 */
|
|
77
77
|
export declare class ContactModel extends Model<ContactCollection> {
|
|
78
78
|
idClass: typeof Wid;
|
|
79
79
|
constructor(proterties?: ModelPropertiesContructor<ContactModel>, options?: ModelOptions);
|
|
@@ -27,10 +27,10 @@ interface Session {
|
|
|
27
27
|
}
|
|
28
28
|
interface Derived {
|
|
29
29
|
}
|
|
30
|
-
/** @whatsapp 2.
|
|
30
|
+
/** @whatsapp 2.2140.7:71815 */
|
|
31
31
|
export declare interface ConversionTupleModel extends ModelProxy<Props, Session, Derived> {
|
|
32
32
|
}
|
|
33
|
-
/** @whatsapp 2.
|
|
33
|
+
/** @whatsapp 2.2140.7:71815 */
|
|
34
34
|
export declare class ConversionTupleModel extends Model {
|
|
35
35
|
idClass: typeof Wid;
|
|
36
36
|
constructor(proterties?: ModelPropertiesContructor<ConversionTupleModel>, options?: ModelOptions);
|
|
@@ -23,10 +23,10 @@ interface Session {
|
|
|
23
23
|
}
|
|
24
24
|
interface Derived {
|
|
25
25
|
}
|
|
26
|
-
/** @whatsapp 2.
|
|
26
|
+
/** @whatsapp 2.2140.7:14996 */
|
|
27
27
|
export declare interface EmojiVariantModel extends ModelProxy<Props, Session, Derived> {
|
|
28
28
|
}
|
|
29
|
-
/** @whatsapp 2.
|
|
29
|
+
/** @whatsapp 2.2140.7:14996 */
|
|
30
30
|
export declare class EmojiVariantModel extends Model {
|
|
31
31
|
constructor(proterties?: ModelPropertiesContructor<EmojiVariantModel>, options?: ModelOptions);
|
|
32
32
|
}
|
|
@@ -43,10 +43,10 @@ interface Session {
|
|
|
43
43
|
interface Derived {
|
|
44
44
|
groupInviteLink?: any;
|
|
45
45
|
}
|
|
46
|
-
/** @whatsapp 2.
|
|
46
|
+
/** @whatsapp 2.2140.7:28197 */
|
|
47
47
|
export declare interface GroupMetadataModel extends ModelProxy<Props, Session, Derived> {
|
|
48
48
|
}
|
|
49
|
-
/** @whatsapp 2.
|
|
49
|
+
/** @whatsapp 2.2140.7:28197 */
|
|
50
50
|
export declare class GroupMetadataModel extends Model {
|
|
51
51
|
idClass: typeof Wid;
|
|
52
52
|
participants: ParticipantCollection;
|
|
@@ -25,10 +25,10 @@ interface Session {
|
|
|
25
25
|
}
|
|
26
26
|
interface Derived {
|
|
27
27
|
}
|
|
28
|
-
/** @whatsapp 2.
|
|
28
|
+
/** @whatsapp 2.2140.7:36705 */
|
|
29
29
|
export declare interface LabelItemModel extends ModelProxy<Props, Session, Derived> {
|
|
30
30
|
}
|
|
31
|
-
/** @whatsapp 2.
|
|
31
|
+
/** @whatsapp 2.2140.7:36705 */
|
|
32
32
|
export declare class LabelItemModel extends Model {
|
|
33
33
|
constructor(proterties?: ModelPropertiesContructor<LabelItemModel>, options?: ModelOptions);
|
|
34
34
|
}
|
|
@@ -26,10 +26,10 @@ interface Session {
|
|
|
26
26
|
interface Derived {
|
|
27
27
|
hexColor?: any;
|
|
28
28
|
}
|
|
29
|
-
/** @whatsapp 2.
|
|
29
|
+
/** @whatsapp 2.2140.7:14137 */
|
|
30
30
|
export declare interface LabelModel extends ModelProxy<Props, Session, Derived> {
|
|
31
31
|
}
|
|
32
|
-
/** @whatsapp 2.
|
|
32
|
+
/** @whatsapp 2.2140.7:14137 */
|
|
33
33
|
export declare class LabelModel extends Model {
|
|
34
34
|
constructor(proterties?: ModelPropertiesContructor<LabelModel>, options?: ModelOptions);
|
|
35
35
|
}
|