@wppconnect/wa-js 1.1.8 → 1.1.12
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 +1 -0
- package/dist/chat/functions/starMessage.d.ts +47 -0
- package/dist/config.d.ts +6 -1
- package/dist/contact/functions/queryExists.d.ts +13 -0
- package/dist/profile/functions/getMyStatus.d.ts +26 -0
- package/dist/profile/functions/index.d.ts +1 -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/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/functions/addAndSendMsgToChat.d.ts +1 -1
- package/dist/whatsapp/functions/blockContact.d.ts +2 -2
- 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/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/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/sendQueryExists.d.ts +1 -1
- package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -1
- 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 +2 -2
- 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 +3 -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 +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 -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 +3 -3
- 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 +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
## 1.1.12 (2022-01-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Improved file mimetype detection ([df98559](https://github.com/wppconnect-team/wa-js/commit/df98559ef9be4356b9bd73944259c4e171ef7cc4))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## 1.1.11 (2022-01-22)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Added WPP.profile.getMyStatus function ([7c5975d](https://github.com/wppconnect-team/wa-js/commit/7c5975df3eaacc6a4b98f5e9116574dfbcaf8cfa))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## 1.1.10 (2022-01-22)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* Fixed getMessageById when the message is from status (wppconnect-team/wppconnect[#823](https://github.com/wppconnect-team/wa-js/issues/823)) ([f075cd2](https://github.com/wppconnect-team/wa-js/commit/f075cd24fd01e33f0322da9f9be321f039b9b6b3))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## 1.1.9 (2022-01-21)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* Fixed live location event register and added a option ([08949a9](https://github.com/wppconnect-team/wa-js/commit/08949a9c3c46274f2ccca7d30e3aeb9c8a4e9851))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
1
37
|
## 1.1.8 (2022-01-21)
|
|
2
38
|
|
|
3
39
|
|
|
@@ -37,4 +37,5 @@ export { ListMessageOptions, sendListMessage } from './sendListMessage';
|
|
|
37
37
|
export { sendRawMessage } from './sendRawMessage';
|
|
38
38
|
export { sendTextMessage, TextMessageOptions } from './sendTextMessage';
|
|
39
39
|
export { sendVCardContactMessage, VCardContact, } from './sendVCardContactMessage';
|
|
40
|
+
export { starMessage, StarMessageReturn } from './starMessage';
|
|
40
41
|
export { unmute } from './unmute';
|
|
@@ -0,0 +1,47 @@
|
|
|
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 interface StarMessageReturn {
|
|
17
|
+
id: string;
|
|
18
|
+
star: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Star/Unstar a message
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```javascript
|
|
25
|
+
* // star a message
|
|
26
|
+
* WPP.chat.starMessage('<message id>');
|
|
27
|
+
*
|
|
28
|
+
* // unstar a message
|
|
29
|
+
* WPP.chat.starMessage('<message id>', false);
|
|
30
|
+
* ```
|
|
31
|
+
* @category Message
|
|
32
|
+
*/
|
|
33
|
+
export declare function starMessage(id: string, star: boolean): Promise<StarMessageReturn>;
|
|
34
|
+
/**
|
|
35
|
+
* Star/Unstar messages
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```javascript
|
|
39
|
+
* // star messages
|
|
40
|
+
* WPP.chat.starMessage(['<message id>', '<message id>']);
|
|
41
|
+
*
|
|
42
|
+
* // unstar messages
|
|
43
|
+
* WPP.chat.starMessage(['<message id>', '<message id>'], false);
|
|
44
|
+
* ```
|
|
45
|
+
* @category Message
|
|
46
|
+
*/
|
|
47
|
+
export declare function starMessage(ids: string[], star: boolean): Promise<StarMessageReturn[]>;
|
package/dist/config.d.ts
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
* ```javascript
|
|
21
21
|
* // Global variable before injection
|
|
22
22
|
* WPPConfig = {
|
|
23
|
-
* deviceName: 'WPPConnect'
|
|
23
|
+
* deviceName: 'WPPConnect',
|
|
24
|
+
* liveLocationLimit: 10
|
|
24
25
|
* };
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
@@ -30,6 +31,10 @@ export interface Config {
|
|
|
30
31
|
* @default 'WPPConnect'
|
|
31
32
|
*/
|
|
32
33
|
deviceName: string | false;
|
|
34
|
+
/**
|
|
35
|
+
* Number of last chats to check live location after a page reload
|
|
36
|
+
*/
|
|
37
|
+
liveLocationLimit: number;
|
|
33
38
|
}
|
|
34
39
|
export declare const defaultConfig: Config;
|
|
35
40
|
export declare const config: Config;
|
|
@@ -31,4 +31,17 @@ export interface QueryExistsResult {
|
|
|
31
31
|
settingTimestamp: number;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if the number exists and what is correct ID
|
|
36
|
+
*
|
|
37
|
+
* This help to identify numbers with nine digit in Brazil
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```javascript
|
|
41
|
+
* const result = await WPP.contact.queryExists('<number>@c.us');
|
|
42
|
+
* console.log(result.wid); // Correct ID
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @category Chat
|
|
46
|
+
*/
|
|
34
47
|
export declare function queryExists(contactId: string | Wid): Promise<QueryExistsResult | null>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Get your current text status
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* await WPP.profile.getMyStatus();
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @category Chat
|
|
25
|
+
*/
|
|
26
|
+
export declare function getMyStatus(): Promise<string | undefined>;
|
package/dist/util/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isBase64(data: string): boolean;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Stringable } from '../../types';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 30765 */
|
|
19
19
|
export declare class BaseCollection<C, A = C | C[]> extends Collection<C> {
|
|
20
20
|
static cachePolicy: {
|
|
21
21
|
id: string;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BlocklistModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 48192 */
|
|
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
|
|
18
|
+
/** @whatsapp 23420 */
|
|
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
|
|
18
|
+
/** @whatsapp 45209 */
|
|
19
19
|
export declare class BusinessProfileCollection extends Collection<BusinessProfileModel> {
|
|
20
20
|
static model: BusinessProfileModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ReplyButtonModel } from '../models';
|
|
17
17
|
import { BaseCollection } from './BaseCollection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 6136 */
|
|
19
19
|
export declare class ButtonCollection extends BaseCollection<ReplyButtonModel> {
|
|
20
20
|
static model: ReplyButtonModel;
|
|
21
21
|
static comparator(): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CallModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 78230 */
|
|
19
19
|
export declare class CallCollection extends Collection<CallModel> {
|
|
20
20
|
static model: CallModel;
|
|
21
21
|
pendingOffers?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CartModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 93987 */
|
|
19
19
|
export declare class CartCollection extends Collection<CartModel> {
|
|
20
20
|
static model: CartModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CartItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 51317 */
|
|
19
19
|
export declare class CartItemCollection extends Collection<CartItemModel> {
|
|
20
20
|
static model: CartItemModel;
|
|
21
21
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CatalogModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 39985 */
|
|
19
19
|
export declare class CatalogCollection extends Collection<CatalogModel> {
|
|
20
20
|
static model: CatalogModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel } from '../models';
|
|
17
17
|
import { BaseCollection } from './BaseCollection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 91129 */
|
|
19
19
|
export declare class ChatCollection extends BaseCollection<ChatModel> {
|
|
20
20
|
static model: ChatModel;
|
|
21
21
|
static comparator(): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatstateModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 74378 */
|
|
19
19
|
export declare class ChatstateCollection extends Collection<ChatstateModel> {
|
|
20
20
|
static model: ChatstateModel;
|
|
21
21
|
}
|
|
@@ -21,10 +21,10 @@ interface Option {
|
|
|
21
21
|
merge: boolean;
|
|
22
22
|
remove: boolean;
|
|
23
23
|
}
|
|
24
|
-
/** @whatsapp
|
|
24
|
+
/** @whatsapp 93458 */
|
|
25
25
|
export declare interface Collection<M> extends EventEmitter, Pick<Array<M>, 'indexOf' | 'lastIndexOf' | 'every' | 'some' | 'forEach' | 'map' | 'filter' | 'reduce' | 'slice'> {
|
|
26
26
|
}
|
|
27
|
-
/** @whatsapp
|
|
27
|
+
/** @whatsapp 93458 */
|
|
28
28
|
export declare class Collection<M, A = M | M[]> extends EventEmitter {
|
|
29
29
|
static model: any;
|
|
30
30
|
static comparator: (a: any, b: any) => number;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ContactModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 49798 */
|
|
19
19
|
export declare class ContactCollection extends Collection<ContactModel> {
|
|
20
20
|
static model: ContactModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { EmojiVariantModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 96539 */
|
|
19
19
|
export declare class EmojiVariantCollection extends Collection<EmojiVariantModel> {
|
|
20
20
|
static model: EmojiVariantModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { GroupMetadataModel } from '../models';
|
|
17
17
|
import { BaseCollection } from '.';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 20029 */
|
|
19
19
|
export declare class GroupMetadataCollection extends BaseCollection<GroupMetadataModel> {
|
|
20
20
|
static model: GroupMetadataModel;
|
|
21
21
|
handlePendingInvite(): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel, LabelModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 79491 */
|
|
19
19
|
export declare class LabelCollection extends Collection<LabelModel> {
|
|
20
20
|
static model: LabelModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LabelItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 62004 */
|
|
19
19
|
export declare class LabelItemCollection extends Collection<LabelItemModel> {
|
|
20
20
|
static model: LabelItemModel;
|
|
21
21
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LiveLocationModel } from '../models';
|
|
17
17
|
import { BaseCollection } from '.';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 28920 */
|
|
19
19
|
export declare class LiveLocationCollection extends BaseCollection<LiveLocationModel> {
|
|
20
20
|
static model: LiveLocationModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { Wid } from '..';
|
|
17
17
|
import { ModelPropertiesContructor, MsgModel } from '../models';
|
|
18
18
|
import { BaseCollection } from './BaseCollection';
|
|
19
|
-
/** @whatsapp
|
|
19
|
+
/** @whatsapp 51610 */
|
|
20
20
|
export declare class MsgCollection extends BaseCollection<MsgModel> {
|
|
21
21
|
static model: MsgModel;
|
|
22
22
|
lastReceivedReceipt?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MsgInfoModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 65018 */
|
|
19
19
|
export declare class MsgInfoCollection extends Collection<MsgInfoModel> {
|
|
20
20
|
static model: MsgInfoModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MuteModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 23297 */
|
|
19
19
|
export declare class MuteCollection extends Collection<MuteModel> {
|
|
20
20
|
static model: MuteModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 10492 */
|
|
19
19
|
export declare class OrderCollection extends Collection<OrderModel> {
|
|
20
20
|
static model: OrderModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 67180 */
|
|
19
19
|
export declare class OrderItemCollection extends Collection<OrderItemModel> {
|
|
20
20
|
static model: OrderItemModel;
|
|
21
21
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ParticipantModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 59638 */
|
|
19
19
|
export declare class ParticipantCollection extends Collection<ParticipantModel> {
|
|
20
20
|
static model: ParticipantModel;
|
|
21
21
|
static comparator(): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatstateModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 67652 */
|
|
19
19
|
export declare class PresenceCollection extends Collection<ChatstateModel> {
|
|
20
20
|
static model: ChatstateModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductCollModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 49675 */
|
|
19
19
|
export declare class ProductCollCollection extends Collection<ProductCollModel> {
|
|
20
20
|
static model: ProductCollModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 77470 */
|
|
19
19
|
export declare class ProductCollection extends Collection<ProductModel> {
|
|
20
20
|
static model: ProductModel;
|
|
21
21
|
getProductModels(e?: boolean): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductImageModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 47473 */
|
|
19
19
|
export declare class ProductImageCollection extends Collection<ProductImageModel> {
|
|
20
20
|
static model: ProductImageModel;
|
|
21
21
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductMessageListModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 7798 */
|
|
19
19
|
export declare class ProductMessageListCollection extends Collection<ProductMessageListModel> {
|
|
20
20
|
static model: ProductMessageListModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProfilePicThumbModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 18178 */
|
|
19
19
|
export declare class ProfilePicThumbCollection extends Collection<ProfilePicThumbModel> {
|
|
20
20
|
static model: ProfilePicThumbModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { QuickReplyModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 28290 */
|
|
19
19
|
export declare class QuickReplyCollection extends Collection<QuickReplyModel> {
|
|
20
20
|
static model: QuickReplyModel;
|
|
21
21
|
checksum?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { RecentEmojiModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 28057 */
|
|
19
19
|
export declare class RecentEmojiCollection extends Collection<RecentEmojiModel> {
|
|
20
20
|
static cachePolicy?: any;
|
|
21
21
|
static model: RecentEmojiModel;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 45935 */
|
|
19
19
|
export declare class RecentStickerCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
enqueue(e?: any): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MsgModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 2029 */
|
|
19
19
|
export declare class StarredMsgCollection extends Collection<MsgModel> {
|
|
20
20
|
static model: MsgModel;
|
|
21
21
|
syncPromise?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 71273 */
|
|
19
19
|
export declare class StarredStickerCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
syncNextPage(): any;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { Wid } from '../misc';
|
|
17
17
|
import { StatusModel } from '../models';
|
|
18
18
|
import { BaseCollection } from '.';
|
|
19
|
-
/** @whatsapp
|
|
19
|
+
/** @whatsapp 798 */
|
|
20
20
|
export declare class StatusCollection extends BaseCollection<StatusModel> {
|
|
21
21
|
static model: StatusModel;
|
|
22
22
|
static idClass: typeof Wid;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StatusV3Model } from '../models';
|
|
17
17
|
import { BaseCollection } from '.';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 7687 */
|
|
19
19
|
export declare class StatusV3Collection extends BaseCollection<StatusV3Model> {
|
|
20
20
|
static model: StatusV3Model;
|
|
21
21
|
loadMore(e?: any, t?: any, r?: any): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 42179 */
|
|
19
19
|
export declare class StickerCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
fetch(): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerPackModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 8764 */
|
|
19
19
|
export declare class StickerPackCollection extends Collection<StickerPackModel> {
|
|
20
20
|
static model: StickerPackModel;
|
|
21
21
|
checksum?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 21940 */
|
|
19
19
|
export declare class StickerSearchCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
isFetchingData(): boolean;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { TemplateButtonModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp
|
|
18
|
+
/** @whatsapp 41605 */
|
|
19
19
|
export declare class TemplateButtonCollection extends Collection<TemplateButtonModel> {
|
|
20
20
|
static model: TemplateButtonModel;
|
|
21
21
|
static comparator(): 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 77976 */
|
|
17
17
|
export declare enum LogoutReason {
|
|
18
18
|
USER_INITIATED = "user_initiated",
|
|
19
19
|
SYNCD_FAILURE = "syncd_failure",
|