@wppconnect/wa-js 1.0.3 → 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 +26 -0
- package/README.md +13 -6
- package/dist/{src/assert → assert}/assertChat.d.ts +0 -0
- package/dist/{src/assert → assert}/assertWid.d.ts +0 -0
- package/dist/{src/assert → assert}/index.d.ts +0 -0
- package/dist/{src/auth → auth}/Auth.d.ts +2 -1
- package/dist/{src/auth → auth}/index.d.ts +0 -0
- package/dist/{src/auth → auth}/types.d.ts +1 -0
- package/dist/{src/blocklist → blocklist}/Blocklist.d.ts +0 -0
- package/dist/{src/blocklist → blocklist}/index.d.ts +0 -0
- package/dist/{src/blocklist → blocklist}/types.d.ts +0 -0
- package/dist/{src/chat → chat}/Chat.d.ts +10 -0
- package/dist/{src/chat → chat}/index.d.ts +0 -0
- package/dist/{src/group → chat}/types.d.ts +17 -1
- package/dist/{src/config.d.ts → config.d.ts} +5 -1
- package/dist/{src/deviceName.d.ts → deviceName.d.ts} +0 -0
- package/dist/{src/group → group}/Group.d.ts +0 -0
- package/dist/{src/group → group}/index.d.ts +0 -0
- package/dist/{src/chat → group}/types.d.ts +0 -0
- package/dist/{src/index.d.ts → index.d.ts} +8 -11
- package/dist/internal.d.ts +20 -0
- package/dist/{src/patch.d.ts → patch.d.ts} +0 -0
- package/dist/{src/status → status}/Status.d.ts +0 -0
- package/dist/{src/status → status}/index.d.ts +0 -0
- package/dist/{src/status → status}/types.d.ts +0 -0
- package/dist/{src/util → util}/createWid.d.ts +0 -0
- package/dist/{src/util → util}/errors.d.ts +0 -0
- package/dist/{src/util → util}/index.d.ts +0 -0
- package/dist/{src/util → util}/types.d.ts +0 -0
- package/dist/{src/webpack.d.ts → webpack.d.ts} +0 -0
- package/dist/{src/whatsapp → whatsapp}/collections/BlocklistCollection.d.ts +1 -1
- package/dist/{src/whatsapp → whatsapp}/collections/BusinessCategoriesResultCollection.d.ts +1 -1
- package/dist/{src/whatsapp → whatsapp}/collections/BusinessProfileCollection.d.ts +1 -1
- package/dist/{src/whatsapp → whatsapp}/collections/ButtonCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/CallCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/CartCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/CartItemCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/CatalogCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/ChatCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/ChatstateCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/Collection.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/collections/CollectionCache.d.ts +1 -4
- package/dist/{src/whatsapp → whatsapp}/collections/ContactCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/EmojiVariantCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/GroupMetadataCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/LabelCollection.d.ts +3 -5
- package/dist/{src/whatsapp → whatsapp}/collections/LabelItemCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/LiveLocationCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/MsgCollection.d.ts +4 -5
- package/dist/{src/whatsapp → whatsapp}/collections/MsgInfoCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/MuteCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/OrderCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/OrderItemCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/ParticipantCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/PresenceCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/ProductCollCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/ProductCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/ProductImageCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/ProductMessageListCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/ProfilePicThumbCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/QuickReplyCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/RecentEmojiCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/RecentStickerCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/StarredMsgCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/StarredStickerCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/StatusCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/StatusV3Collection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/StickerCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/StickerPackCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/StickerSearchCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/TemplateButtonCollection.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/collections/index.d.ts +0 -0
- package/dist/whatsapp/enums/LogoutReason.d.ts +27 -0
- package/dist/{src/whatsapp → whatsapp}/enums/SendMsgResult.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/enums/TextFontStyle.d.ts +0 -0
- package/dist/{src/whatsapp → whatsapp}/enums/index.d.ts +1 -0
- package/dist/{src/whatsapp → whatsapp}/exportModule.d.ts +0 -0
- package/dist/{src/whatsapp → whatsapp}/functions/addAndSendMsgToChat.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/functions/blockContact.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/functions/findChat.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/functions/getOrGenerate.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/functions/groupParticipants.d.ts +4 -12
- package/dist/{src/whatsapp → whatsapp}/functions/index.d.ts +2 -0
- package/dist/{src/whatsapp → whatsapp}/functions/isAuthenticated.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/functions/msgFindQuery.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/functions/randomId.d.ts +2 -6
- package/dist/whatsapp/functions/sendClear.d.ts +18 -0
- package/dist/whatsapp/functions/sendDelete.d.ts +18 -0
- package/dist/{src/whatsapp → whatsapp}/functions/sendTextMsgToChat.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/index.d.ts +0 -0
- package/dist/{src/whatsapp → whatsapp}/misc/Base64.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/Browser.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/ClockSkew.d.ts +1 -3
- package/dist/whatsapp/misc/Cmd.d.ts +150 -0
- package/dist/{src/whatsapp → whatsapp}/misc/Conn.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/Constants.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/EventEmitter.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/Features.d.ts +1 -6
- package/dist/{src/whatsapp → whatsapp}/misc/ImageUtils.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/MediaUtils.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/MsgKey.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/MsgLoadState.d.ts +5 -6
- package/dist/{src/whatsapp → whatsapp}/misc/State.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/Stringable.d.ts +0 -0
- package/dist/{src/whatsapp → whatsapp}/misc/UserPrefs.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/Wid.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/WidFactory.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/misc/index.d.ts +1 -0
- package/dist/{src/whatsapp → whatsapp}/models/AttachMediaModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/BlocklistModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/BusinessCategoriesResultModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/BusinessProfileModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/CallModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/CallParticipantModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/CartItemModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/CartModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/CatalogModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ChatModel.d.ts +10 -10
- package/dist/{src/whatsapp → whatsapp}/models/ChatPreferenceModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ChatstateModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ConnModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ContactModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ConversionTupleModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/EmojiVariantModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/GroupMetadataModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/LabelItemModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/LabelModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/LiveLocationModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/LiveLocationParticipantModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/MediaDataModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/Model.d.ts +1 -9
- package/dist/{src/whatsapp → whatsapp}/models/ModelChatBase.d.ts +1 -9
- package/dist/{src/whatsapp → whatsapp}/models/MsgButtonReplyMsgModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/MsgInfoModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/MsgModel.d.ts +3 -10
- package/dist/{src/whatsapp → whatsapp}/models/MuteModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/OrderItemModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/OrderModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ParticipantModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ProductCollModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ProductImageModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ProductModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/Product_listModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ProfilePicThumbModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/QuickReplyModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/RecentEmojiModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/RecentStickerModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/ReplyButtonModel.d.ts +2 -15
- package/dist/{src/whatsapp → whatsapp}/models/StateModel.d.ts +4 -7
- package/dist/{src/whatsapp → whatsapp}/models/StatusModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/StatusV3Model.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/StickerModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/StickerPackModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/TemplateButtonModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/UnreadMentionModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/WebCallModel.d.ts +2 -6
- package/dist/{src/whatsapp → whatsapp}/models/index.d.ts +1 -0
- package/dist/{src/whatsapp → whatsapp}/multidevice/adv.d.ts +1 -3
- package/dist/{src/whatsapp → whatsapp}/multidevice/index.d.ts +0 -0
- package/dist/{src/whatsapp → whatsapp}/multidevice/waNoiseInfo.d.ts +1 -6
- package/dist/{src/whatsapp → whatsapp}/multidevice/waSignalStore.d.ts +1 -6
- package/dist/{src/whatsapp → whatsapp}/stores.d.ts +29 -87
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## 1.0.7 (2021-10-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## 1.0.6 (2021-10-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Fixed declaration files export ([2d53d4c](https://github.com/wppconnect-team/wa-js/commit/2d53d4cd106b448680efae2139b762a83b38ba2b))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 1.0.5 (2021-10-12)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## 1.0.4 (2021-10-02)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* Added option to change the deviceName ([841bea8](https://github.com/wppconnect-team/wa-js/commit/841bea8d9d6661186bd17f32b6342e0b3918cf1a))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
1
27
|
## 1.0.3 (2021-10-02)
|
|
2
28
|
|
|
3
29
|
|
package/README.md
CHANGED
|
@@ -40,14 +40,21 @@ There are a convection name for some exported modules:
|
|
|
40
40
|
|
|
41
41
|
## Development
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
`npm run build:prd`
|
|
43
|
+
Steps to run locally:
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
```bash
|
|
46
|
+
# install the depencencies
|
|
47
|
+
npm install
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
# download whatsapp javascript and prettify (optional)
|
|
50
|
+
npm run wa-source
|
|
51
|
+
|
|
52
|
+
# build javascript files
|
|
53
|
+
npm run build:prd # or build:dev for development
|
|
54
|
+
|
|
55
|
+
# lauch a local browser with automatic injection
|
|
56
|
+
npm run launch:local
|
|
57
|
+
```
|
|
51
58
|
|
|
52
59
|
## License
|
|
53
60
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -21,11 +21,12 @@ export declare class Auth extends Emittery<AuthEventTypes> {
|
|
|
21
21
|
/**
|
|
22
22
|
* Return the current auth code
|
|
23
23
|
*
|
|
24
|
-
* @whatsapp 2.2132.6:57241
|
|
25
24
|
* @return {Promise<AuthCode>}[return description]
|
|
26
25
|
*/
|
|
27
26
|
getAuthCode(): Promise<AuthCode | null>;
|
|
28
27
|
isAuthenticated(): boolean;
|
|
29
28
|
isIdle(): boolean;
|
|
29
|
+
isMultiDevice(): boolean;
|
|
30
30
|
poke(): void;
|
|
31
|
+
logout(): Promise<any>;
|
|
31
32
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -20,8 +20,18 @@ export declare class Chat extends Emittery<ChatEventTypes> {
|
|
|
20
20
|
defaultSendMessageOptions: SendMessageOptions;
|
|
21
21
|
constructor();
|
|
22
22
|
initialize(): Promise<void>;
|
|
23
|
+
protected registerEvents(): void;
|
|
23
24
|
find(chatId: string | Wid): Promise<ChatModel>;
|
|
24
25
|
get(chatId: string | Wid): ChatModel | undefined;
|
|
26
|
+
delete(chatId: string | Wid): Promise<{
|
|
27
|
+
wid: Wid;
|
|
28
|
+
status: number;
|
|
29
|
+
}>;
|
|
30
|
+
clear(chatId: string | Wid, keepStarred?: boolean): Promise<{
|
|
31
|
+
wid: Wid;
|
|
32
|
+
status: number;
|
|
33
|
+
keepStarred: boolean;
|
|
34
|
+
}>;
|
|
25
35
|
/**
|
|
26
36
|
* Fetch messages from a chat
|
|
27
37
|
*
|
|
File without changes
|
|
@@ -13,10 +13,26 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { ModelPropertiesContructor, MsgModel } from '../whatsapp';
|
|
16
|
+
import { ModelPropertiesContructor, MsgKey, MsgModel, Wid } from '../whatsapp';
|
|
17
17
|
export interface ChatEventTypes {
|
|
18
18
|
change: string;
|
|
19
19
|
idle: undefined;
|
|
20
|
+
msg_revoke: {
|
|
21
|
+
/**
|
|
22
|
+
* Author of message, only for groups
|
|
23
|
+
*/
|
|
24
|
+
author?: Wid;
|
|
25
|
+
from: Wid;
|
|
26
|
+
/**
|
|
27
|
+
* Message id of revoke event
|
|
28
|
+
*/
|
|
29
|
+
id: MsgKey;
|
|
30
|
+
/**
|
|
31
|
+
* Message id of revoked message
|
|
32
|
+
*/
|
|
33
|
+
refId: MsgKey;
|
|
34
|
+
to: Wid;
|
|
35
|
+
};
|
|
20
36
|
}
|
|
21
37
|
export interface GetMessagesOptions {
|
|
22
38
|
count?: number;
|
|
@@ -25,7 +25,11 @@
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
export interface Config {
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Set the device name connected, false to disable
|
|
30
|
+
* @default 'WPPConnect'
|
|
31
|
+
*/
|
|
32
|
+
deviceName: string | false;
|
|
29
33
|
}
|
|
30
34
|
export declare const defaultConfig: Config;
|
|
31
35
|
export declare const config: Config;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -16,17 +16,14 @@
|
|
|
16
16
|
import './config';
|
|
17
17
|
import './deviceName';
|
|
18
18
|
import './patch';
|
|
19
|
-
import auth from './auth';
|
|
20
|
-
import blocklist from './blocklist';
|
|
21
|
-
import chat from './chat';
|
|
22
|
-
import group from './group';
|
|
23
|
-
import status from './status';
|
|
24
19
|
import * as webpack from './webpack';
|
|
25
|
-
export {
|
|
26
|
-
export * as Auth from './auth';
|
|
27
|
-
export * as Chat from './chat';
|
|
28
|
-
export * as config from './config';
|
|
29
|
-
export * as Group from './group';
|
|
30
|
-
export * as Status from './status';
|
|
20
|
+
export { webpack };
|
|
31
21
|
export { isInjected, isReady } from './webpack';
|
|
22
|
+
export * as config from './config';
|
|
23
|
+
export * as internal from './internal';
|
|
24
|
+
export { default as auth } from './auth';
|
|
25
|
+
export { default as blocklist } from './blocklist';
|
|
26
|
+
export { default as chat } from './chat';
|
|
27
|
+
export { default as group } from './group';
|
|
28
|
+
export { default as status } from './status';
|
|
32
29
|
export * as whatsapp from './whatsapp';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * as auth from './auth';
|
|
17
|
+
export * as blocklist from './blocklist';
|
|
18
|
+
export * as chat from './chat';
|
|
19
|
+
export * as group from './group';
|
|
20
|
+
export * as status from './status';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BlocklistModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2140.7:15701 */
|
|
19
19
|
export declare class BlocklistCollection extends Collection<BlocklistModel> {
|
|
20
20
|
static model: BlocklistModel;
|
|
21
21
|
blockContact(e?: any): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BusinessCategoriesResultModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2140.7:54100 */
|
|
19
19
|
export declare class BusinessCategoriesResultCollection extends Collection<BusinessCategoriesResultModel> {
|
|
20
20
|
static model: BusinessCategoriesResultModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BusinessProfileModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2140.7:8581 */
|
|
19
19
|
export declare class BusinessProfileCollection extends Collection<BusinessProfileModel> {
|
|
20
20
|
static model: BusinessProfileModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ReplyButtonModel } from '../models';
|
|
17
17
|
import { CollectionCache } from './CollectionCache';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:84142
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:84142 */
|
|
21
19
|
export declare class ButtonCollection extends CollectionCache<ReplyButtonModel> {
|
|
22
20
|
static model: ReplyButtonModel;
|
|
23
21
|
static comparator(): any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CallModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:15971
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:15971 */
|
|
21
19
|
export declare class CallCollection extends Collection<CallModel> {
|
|
22
20
|
static model: CallModel;
|
|
23
21
|
pendingOffers?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CartModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:25523
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:25523 */
|
|
21
19
|
export declare class CartCollection extends Collection<CartModel> {
|
|
22
20
|
static model: CartModel;
|
|
23
21
|
static cachePolicy?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CartItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:29844
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:29844 */
|
|
21
19
|
export declare class CartItemCollection extends Collection<CartItemModel> {
|
|
22
20
|
static model: CartItemModel;
|
|
23
21
|
}
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CatalogModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:60028
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:60028 */
|
|
21
19
|
export declare class CatalogCollection extends Collection<CatalogModel> {
|
|
22
20
|
static model: CatalogModel;
|
|
23
21
|
static staleCollection?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel } from '../models';
|
|
17
17
|
import { CollectionCache } from './CollectionCache';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:84758
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:84758 */
|
|
21
19
|
export declare class ChatCollection extends CollectionCache<ChatModel> {
|
|
22
20
|
static model: ChatModel;
|
|
23
21
|
static comparator(): any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatstateModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:42165
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:42165 */
|
|
21
19
|
export declare class ChatstateCollection extends Collection<ChatstateModel> {
|
|
22
20
|
static model: ChatstateModel;
|
|
23
21
|
}
|
|
@@ -19,14 +19,10 @@ interface Option {
|
|
|
19
19
|
merge: boolean;
|
|
20
20
|
remove: boolean;
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
* @whatsapp 2.2138.10:85392
|
|
24
|
-
*/
|
|
22
|
+
/** @whatsapp 2.2140.7:85392 */
|
|
25
23
|
export declare interface Collection<M> extends EventEmitter, Pick<Array<M>, 'indexOf' | 'lastIndexOf' | 'every' | 'some' | 'forEach' | 'map' | 'filter' | 'reduce' | 'slice'> {
|
|
26
24
|
}
|
|
27
|
-
/**
|
|
28
|
-
* @whatsapp 2.2138.10:85392
|
|
29
|
-
*/
|
|
25
|
+
/** @whatsapp 2.2140.7:85392 */
|
|
30
26
|
export declare class Collection<M, A = M | M[]> extends EventEmitter {
|
|
31
27
|
static model: any;
|
|
32
28
|
static comparator: (a: any, b: any) => number;
|
|
@@ -15,10 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Stringable } from '../misc';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2126.14:53125
|
|
20
|
-
* @whatsapp 2.2136.9:36513
|
|
21
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:36513 */
|
|
22
19
|
export declare class CollectionCache<C, A = C | C[]> extends Collection<C> {
|
|
23
20
|
static cachePolicy: {
|
|
24
21
|
id: string;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ContactModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:17025
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:17025 */
|
|
21
19
|
export declare class ContactCollection extends Collection<ContactModel> {
|
|
22
20
|
static model: ContactModel;
|
|
23
21
|
static cachePolicy?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { EmojiVariantModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:41098
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:41098 */
|
|
21
19
|
export declare class EmojiVariantCollection extends Collection<EmojiVariantModel> {
|
|
22
20
|
static model: EmojiVariantModel;
|
|
23
21
|
static cachePolicy?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { GroupMetadataModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:75798
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:75798 */
|
|
21
19
|
export declare class GroupMetadataCollection extends Collection<GroupMetadataModel> {
|
|
22
20
|
static model: GroupMetadataModel;
|
|
23
21
|
static cachePolicy?: any;
|
|
@@ -13,11 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { LabelModel } from '../models';
|
|
16
|
+
import { ChatModel, LabelModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:59606
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:59606 */
|
|
21
19
|
export declare class LabelCollection extends Collection<LabelModel> {
|
|
22
20
|
static model: LabelModel;
|
|
23
21
|
static staleCollection?: any;
|
|
@@ -25,7 +23,7 @@ export declare class LabelCollection extends Collection<LabelModel> {
|
|
|
25
23
|
checksum?: any;
|
|
26
24
|
initializeAssociationsFromCache(e?: any): any;
|
|
27
25
|
addNewLabel(e?: any, t?: any): any;
|
|
28
|
-
removeAllLabelsMD(
|
|
26
|
+
removeAllLabelsMD(chat: ChatModel): any;
|
|
29
27
|
addOrRemoveLabelsMD(e?: any, t?: any): any;
|
|
30
28
|
addOrRemoveLabels(e?: any, t?: any): any;
|
|
31
29
|
deleteLabel(e?: any): any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LabelItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:42745
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:42745 */
|
|
21
19
|
export declare class LabelItemCollection extends Collection<LabelItemModel> {
|
|
22
20
|
static model: LabelItemModel;
|
|
23
21
|
}
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LiveLocationModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:31104
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:31104 */
|
|
21
19
|
export declare class LiveLocationCollection extends Collection<LiveLocationModel> {
|
|
22
20
|
static model: LiveLocationModel;
|
|
23
21
|
static staleCollection?: any;
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { Wid } from '..';
|
|
17
|
+
import { ModelPropertiesContructor, MsgModel } from '../models';
|
|
17
18
|
import { CollectionCache } from './CollectionCache';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:45472
|
|
20
|
-
*/
|
|
19
|
+
/** @whatsapp 2.2140.7:45472 */
|
|
21
20
|
export declare class MsgCollection extends CollectionCache<MsgModel> {
|
|
22
21
|
static model: MsgModel;
|
|
23
22
|
lastReceivedReceipt?: any;
|
|
@@ -40,6 +39,6 @@ export declare class MsgCollection extends CollectionCache<MsgModel> {
|
|
|
40
39
|
resyncReceipts(): any;
|
|
41
40
|
updateLastReceipt(e?: any, t?: any): any;
|
|
42
41
|
updateLastTransactionTime(e?: any, t?: any): any;
|
|
43
|
-
processMultipleMessages(
|
|
42
|
+
processMultipleMessages(chatId: Wid, msgs: ModelPropertiesContructor<MsgModel>[], r?: any, a?: any): Promise<MsgModel[]>;
|
|
44
43
|
markAllAsStale(): any;
|
|
45
44
|
}
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MsgInfoModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:57636
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:57636 */
|
|
21
19
|
export declare class MsgInfoCollection extends Collection<MsgInfoModel> {
|
|
22
20
|
static model: MsgInfoModel;
|
|
23
21
|
static staleCollection?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MuteModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:80959
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:80959 */
|
|
21
19
|
export declare class MuteCollection extends Collection<MuteModel> {
|
|
22
20
|
static model: MuteModel;
|
|
23
21
|
static cachePolicy?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:98052
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:98052 */
|
|
21
19
|
export declare class OrderCollection extends Collection<OrderModel> {
|
|
22
20
|
static model: OrderModel;
|
|
23
21
|
static staleCollection?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:2414
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:2414 */
|
|
21
19
|
export declare class OrderItemCollection extends Collection<OrderItemModel> {
|
|
22
20
|
static model: OrderItemModel;
|
|
23
21
|
}
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ParticipantModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:16748
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:16748 */
|
|
21
19
|
export declare class ParticipantCollection extends Collection<ParticipantModel> {
|
|
22
20
|
static model: ParticipantModel;
|
|
23
21
|
static comparator(): any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatstateModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:48327
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:48327 */
|
|
21
19
|
export declare class PresenceCollection extends Collection<ChatstateModel> {
|
|
22
20
|
static model: ChatstateModel;
|
|
23
21
|
static staleCollection?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductCollModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:63875
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:63875 */
|
|
21
19
|
export declare class ProductCollCollection extends Collection<ProductCollModel> {
|
|
22
20
|
static model: ProductCollModel;
|
|
23
21
|
static staleCollection?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:26491
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:26491 */
|
|
21
19
|
export declare class ProductCollection extends Collection<ProductModel> {
|
|
22
20
|
static model: ProductModel;
|
|
23
21
|
getProductModels(e?: boolean): any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductImageModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:55845
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:55845 */
|
|
21
19
|
export declare class ProductImageCollection extends Collection<ProductImageModel> {
|
|
22
20
|
static model: ProductImageModel;
|
|
23
21
|
}
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Product_listModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:97038
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:97038 */
|
|
21
19
|
export declare class ProductMessageListCollection extends Collection<Product_listModel> {
|
|
22
20
|
static model: Product_listModel;
|
|
23
21
|
static staleCollection?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProfilePicThumbModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:3165
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:3165 */
|
|
21
19
|
export declare class ProfilePicThumbCollection extends Collection<ProfilePicThumbModel> {
|
|
22
20
|
static model: ProfilePicThumbModel;
|
|
23
21
|
static staleCollection?: any;
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { QuickReplyModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/**
|
|
19
|
-
* @whatsapp 2.2138.10:65963
|
|
20
|
-
*/
|
|
18
|
+
/** @whatsapp 2.2140.7:65963 */
|
|
21
19
|
export declare class QuickReplyCollection extends Collection<QuickReplyModel> {
|
|
22
20
|
static model: QuickReplyModel;
|
|
23
21
|
checksum?: any;
|