@wppconnect/wa-js 2.7.0 → 2.7.3
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 +59 -221
- package/dist/config.d.ts +15 -1
- package/dist/contact/functions/getStatus.d.ts +1 -1
- package/dist/group/functions/addParticipants.d.ts +20 -1
- package/dist/gtag/Tracker.d.ts +51 -0
- package/dist/{gtag.d.ts → gtag/index.d.ts} +3 -2
- package/dist/whatsapp/collections/AggReactionsCollection.d.ts +3 -1
- package/dist/whatsapp/collections/BaseCollection.d.ts +4 -2
- package/dist/whatsapp/collections/BlocklistCollection.d.ts +3 -1
- package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +3 -1
- package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +3 -1
- package/dist/whatsapp/collections/CallCollection.d.ts +1 -0
- package/dist/whatsapp/collections/CartCollection.d.ts +3 -1
- package/dist/whatsapp/collections/CartItemCollection.d.ts +3 -1
- package/dist/whatsapp/collections/CatalogCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ChatCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ChatstateCollection.d.ts +3 -1
- package/dist/whatsapp/collections/Collection.d.ts +6 -2
- package/dist/whatsapp/collections/ContactCollection.d.ts +5 -4
- package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +3 -1
- package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +3 -1
- package/dist/whatsapp/collections/LabelCollection.d.ts +3 -1
- package/dist/whatsapp/collections/LabelItemCollection.d.ts +3 -1
- package/dist/whatsapp/collections/LiveLocationCollection.d.ts +3 -1
- package/dist/whatsapp/collections/MsgCollection.d.ts +3 -1
- package/dist/whatsapp/collections/MsgInfoCollection.d.ts +3 -1
- package/dist/whatsapp/collections/OrderCollection.d.ts +3 -1
- package/dist/whatsapp/collections/OrderItemCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -0
- package/dist/whatsapp/collections/PresenceCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ProductCollCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ProductCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ProductImageCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +3 -1
- package/dist/whatsapp/collections/QuickReplyCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ReactionsCollection.d.ts +3 -1
- package/dist/whatsapp/collections/ReactionsSendersCollection.d.ts +3 -1
- package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +3 -1
- package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -0
- package/dist/whatsapp/collections/StarredMsgCollection.d.ts +3 -1
- package/dist/whatsapp/collections/StatusV3Collection.d.ts +3 -1
- package/dist/whatsapp/collections/StickerCollection.d.ts +3 -1
- package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -0
- package/dist/whatsapp/collections/StickerSearchCollection.d.ts +3 -1
- package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +3 -1
- package/dist/whatsapp/enums/ACK.d.ts +3 -0
- package/dist/whatsapp/enums/CALL_STATES.d.ts +1 -0
- package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +1 -0
- package/dist/whatsapp/enums/LogoutReason.d.ts +1 -0
- package/dist/whatsapp/enums/MSG_TYPE.d.ts +2 -0
- package/dist/whatsapp/enums/SendMsgResult.d.ts +3 -1
- package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +3 -1
- package/dist/whatsapp/functions/blockContact.d.ts +6 -2
- package/dist/whatsapp/functions/createMsgProtobuf.d.ts +3 -1
- package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +3 -1
- package/dist/whatsapp/functions/encryptAndSendGroupMsg.d.ts +1 -0
- package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +1 -0
- package/dist/whatsapp/functions/fetchLinkPreview.d.ts +1 -0
- package/dist/whatsapp/functions/findChat.d.ts +3 -1
- package/dist/whatsapp/functions/findFirstWebLink.d.ts +1 -0
- package/dist/whatsapp/functions/genMinimalLinkPreview.d.ts +1 -0
- package/dist/whatsapp/functions/generateVideoThumbsAndDuration.d.ts +2 -1
- package/dist/whatsapp/functions/getFanOutList.d.ts +1 -0
- package/dist/whatsapp/functions/getGroupSenderKeyList.d.ts +1 -0
- package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -0
- package/dist/whatsapp/functions/groupParticipants.d.ts +12 -4
- package/dist/whatsapp/functions/handleAck.d.ts +12 -3
- package/dist/whatsapp/functions/index.d.ts +1 -0
- package/dist/whatsapp/functions/isAuthenticated.d.ts +2 -0
- package/dist/whatsapp/functions/markSeen.d.ts +3 -1
- package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +1 -0
- package/dist/whatsapp/functions/products.d.ts +12 -4
- package/dist/whatsapp/functions/randomId.d.ts +1 -0
- package/dist/whatsapp/functions/sendClear.d.ts +3 -1
- package/dist/whatsapp/functions/sendDelete.d.ts +3 -1
- package/dist/whatsapp/functions/sendExitGroup.d.ts +3 -1
- package/dist/whatsapp/functions/sendGroupParticipants.d.ts +42 -0
- package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +3 -1
- package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +3 -1
- package/dist/whatsapp/functions/sendReactionToMsg.d.ts +3 -1
- package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +3 -1
- package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +3 -1
- package/dist/whatsapp/functions/setArchive.d.ts +1 -0
- package/dist/whatsapp/functions/setGroup.d.ts +9 -3
- package/dist/whatsapp/functions/setPin.d.ts +1 -0
- package/dist/whatsapp/functions/status.d.ts +2 -0
- package/dist/whatsapp/functions/typeAttributeFromProtobuf.d.ts +3 -1
- package/dist/whatsapp/functions/uploadProductImage.d.ts +3 -1
- package/dist/whatsapp/functions/uploadThumbnail.d.ts +1 -0
- package/dist/whatsapp/misc/Base64.d.ts +3 -1
- package/dist/whatsapp/misc/Browser.d.ts +1 -0
- package/dist/whatsapp/misc/ChatPresence.d.ts +3 -1
- package/dist/whatsapp/misc/Cmd.d.ts +2 -0
- package/dist/whatsapp/misc/Conn.d.ts +3 -1
- package/dist/whatsapp/misc/Constants.d.ts +1 -0
- package/dist/whatsapp/misc/EventEmitter.d.ts +1 -0
- package/dist/whatsapp/misc/Features.d.ts +1 -0
- package/dist/whatsapp/misc/ImageUtils.d.ts +1 -0
- package/dist/whatsapp/misc/Locale.d.ts +1 -0
- package/dist/whatsapp/misc/MediaBlobCache.d.ts +6 -2
- package/dist/whatsapp/misc/MediaEntry.d.ts +2 -1
- package/dist/whatsapp/misc/MediaObject.d.ts +3 -1
- package/dist/whatsapp/misc/MediaObjectUtil.d.ts +3 -1
- package/dist/whatsapp/misc/MediaPrep.d.ts +3 -1
- package/dist/whatsapp/misc/MediaUtils.d.ts +3 -1
- package/dist/whatsapp/misc/MsgKey.d.ts +1 -0
- package/dist/whatsapp/misc/MsgLoadState.d.ts +6 -2
- package/dist/whatsapp/misc/OpaqueData.d.ts +6 -2
- package/dist/whatsapp/misc/Socket.d.ts +3 -1
- package/dist/whatsapp/misc/Stream.d.ts +3 -1
- package/dist/whatsapp/misc/UserPrefs.d.ts +1 -0
- package/dist/whatsapp/misc/VCard.d.ts +1 -0
- package/dist/whatsapp/misc/Wap.d.ts +2 -0
- package/dist/whatsapp/misc/Wid.d.ts +1 -0
- package/dist/whatsapp/misc/WidFactory.d.ts +1 -0
- package/dist/whatsapp/models/AggReactionsModel.d.ts +2 -0
- package/dist/whatsapp/models/AttachMediaModel.d.ts +6 -2
- package/dist/whatsapp/models/BlocklistModel.d.ts +6 -2
- package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +6 -2
- package/dist/whatsapp/models/BusinessProfileModel.d.ts +6 -2
- package/dist/whatsapp/models/CallModel.d.ts +2 -0
- package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -0
- package/dist/whatsapp/models/CartItemModel.d.ts +6 -2
- package/dist/whatsapp/models/CartModel.d.ts +6 -2
- package/dist/whatsapp/models/CatalogModel.d.ts +6 -2
- package/dist/whatsapp/models/ChatPreferenceModel.d.ts +6 -2
- package/dist/whatsapp/models/ChatstateModel.d.ts +6 -2
- package/dist/whatsapp/models/ConnModel.d.ts +6 -2
- package/dist/whatsapp/models/ContactModel.d.ts +6 -2
- package/dist/whatsapp/models/ConversionTupleModel.d.ts +6 -2
- package/dist/whatsapp/models/EmojiVariantModel.d.ts +6 -2
- package/dist/whatsapp/models/GroupMetadataModel.d.ts +6 -2
- package/dist/whatsapp/models/LabelItemModel.d.ts +6 -2
- package/dist/whatsapp/models/LabelModel.d.ts +6 -2
- package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +6 -2
- package/dist/whatsapp/models/MediaDataModel.d.ts +6 -2
- package/dist/whatsapp/models/Model.d.ts +3 -1
- package/dist/whatsapp/models/ModelChatBase.d.ts +3 -1
- package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +6 -2
- package/dist/whatsapp/models/MsgInfoModel.d.ts +6 -2
- package/dist/whatsapp/models/MuteModel.d.ts +6 -2
- package/dist/whatsapp/models/OrderItemModel.d.ts +6 -2
- package/dist/whatsapp/models/OrderModel.d.ts +6 -2
- package/dist/whatsapp/models/ParticipantModel.d.ts +6 -2
- package/dist/whatsapp/models/PresenceModel.d.ts +6 -2
- package/dist/whatsapp/models/ProductCollModel.d.ts +6 -2
- package/dist/whatsapp/models/ProductImageModel.d.ts +6 -2
- package/dist/whatsapp/models/ProductMessageListModel.d.ts +6 -2
- package/dist/whatsapp/models/ProductModel.d.ts +6 -2
- package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +6 -2
- package/dist/whatsapp/models/QuickReplyModel.d.ts +6 -2
- package/dist/whatsapp/models/ReactionsModel.d.ts +2 -0
- package/dist/whatsapp/models/ReactionsSendersModel.d.ts +2 -0
- package/dist/whatsapp/models/RecentStickerModel.d.ts +6 -2
- package/dist/whatsapp/models/ReplyButtonModel.d.ts +6 -2
- package/dist/whatsapp/models/StatusModel.d.ts +6 -2
- package/dist/whatsapp/models/StatusV3Model.d.ts +6 -2
- package/dist/whatsapp/models/StickerModel.d.ts +2 -0
- package/dist/whatsapp/models/StickerPackModel.d.ts +6 -2
- package/dist/whatsapp/models/StreamModel.d.ts +6 -2
- package/dist/whatsapp/models/TemplateButtonModel.d.ts +6 -2
- package/dist/whatsapp/models/UnreadMentionModel.d.ts +6 -2
- package/dist/whatsapp/models/WebCallModel.d.ts +2 -0
- package/dist/whatsapp/multidevice/adv.d.ts +1 -0
- package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -0
- package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -0
- package/dist/whatsapp/stores.d.ts +76 -25
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +7 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2022 WPPConnect Team
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export * from './Tracker';
|
|
17
|
+
export declare const waVersion: string;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { AggReactionsModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 81130
|
|
18
|
+
/** @whatsapp 81130
|
|
19
|
+
* @whatsapp 981130 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class AggReactionsCollection extends Collection<AggReactionsModel> {
|
|
20
22
|
static model: AggReactionsModel;
|
|
21
23
|
static comparator(): number;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Stringable } from '../../types';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 1255
|
|
18
|
+
/** @whatsapp 1255
|
|
19
|
+
* @whatsapp 801255 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class BaseCollection<C, A = C | C[]> extends Collection<C> {
|
|
20
22
|
static cachePolicy: {
|
|
21
23
|
id: string;
|
|
@@ -38,7 +40,7 @@ export declare class BaseCollection<C, A = C | C[]> extends Collection<C> {
|
|
|
38
40
|
set?: boolean;
|
|
39
41
|
}): Promise<C>;
|
|
40
42
|
handle(values: A): void;
|
|
41
|
-
gadd(id: C | Stringable): C;
|
|
43
|
+
gadd(id: C | Stringable, options?: any): C;
|
|
42
44
|
gaddUp(id: C | Stringable): C;
|
|
43
45
|
delete(): void;
|
|
44
46
|
isStateStale(id: Stringable): boolean;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BlocklistModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 32826
|
|
18
|
+
/** @whatsapp 32826
|
|
19
|
+
* @whatsapp 132826 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class BlocklistCollection extends Collection<BlocklistModel> {
|
|
20
22
|
static model: BlocklistModel;
|
|
21
23
|
blockContact(e?: any): any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BusinessCategoriesResultModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 3754
|
|
18
|
+
/** @whatsapp 3754
|
|
19
|
+
* @whatsapp 203754 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class BusinessCategoriesResultCollection extends Collection<BusinessCategoriesResultModel> {
|
|
20
22
|
static model: BusinessCategoriesResultModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BusinessProfileModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 93581
|
|
18
|
+
/** @whatsapp 93581
|
|
19
|
+
* @whatsapp 493581 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class BusinessProfileCollection extends Collection<BusinessProfileModel> {
|
|
20
22
|
static model: BusinessProfileModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -17,6 +17,7 @@ import { CallModel } from '../models';
|
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
18
|
/** @whatsapp 60868
|
|
19
19
|
* @whatsapp 31218 >= 2.2204.13
|
|
20
|
+
* @whatsapp 160868 >= 2.2222.8
|
|
20
21
|
*/
|
|
21
22
|
export declare class CallCollection extends Collection<CallModel> {
|
|
22
23
|
static model: CallModel;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CartModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 12392
|
|
18
|
+
/** @whatsapp 12392
|
|
19
|
+
* @whatsapp 612392 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class CartCollection extends Collection<CartModel> {
|
|
20
22
|
static model: CartModel;
|
|
21
23
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CartItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 57037
|
|
18
|
+
/** @whatsapp 57037
|
|
19
|
+
* @whatsapp 457037 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class CartItemCollection extends Collection<CartItemModel> {
|
|
20
22
|
static model: CartItemModel;
|
|
21
23
|
}
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CatalogModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 99989
|
|
18
|
+
/** @whatsapp 99989
|
|
19
|
+
* @whatsapp 599989 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class CatalogCollection extends Collection<CatalogModel> {
|
|
20
22
|
static model: CatalogModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel } from '../models';
|
|
17
17
|
import { BaseCollection } from './BaseCollection';
|
|
18
|
-
/** @whatsapp 69951
|
|
18
|
+
/** @whatsapp 69951
|
|
19
|
+
* @whatsapp 669951 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class ChatCollection extends BaseCollection<ChatModel> {
|
|
20
22
|
static model: ChatModel;
|
|
21
23
|
static comparator(): any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatstateModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 30000
|
|
18
|
+
/** @whatsapp 30000
|
|
19
|
+
* @whatsapp 330000 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class ChatstateCollection extends Collection<ChatstateModel> {
|
|
20
22
|
static model: ChatstateModel;
|
|
21
23
|
}
|
|
@@ -21,10 +21,14 @@ interface Option {
|
|
|
21
21
|
merge: boolean;
|
|
22
22
|
remove: boolean;
|
|
23
23
|
}
|
|
24
|
-
/** @whatsapp 31727
|
|
24
|
+
/** @whatsapp 31727
|
|
25
|
+
* @whatsapp 631727 >= 2.2222.8
|
|
26
|
+
*/
|
|
25
27
|
export declare interface Collection<M> extends EventEmitter, Pick<Array<M>, 'indexOf' | 'lastIndexOf' | 'every' | 'some' | 'forEach' | 'map' | 'filter' | 'reduce' | 'slice'> {
|
|
26
28
|
}
|
|
27
|
-
/** @whatsapp 31727
|
|
29
|
+
/** @whatsapp 31727
|
|
30
|
+
* @whatsapp 631727 >= 2.2222.8
|
|
31
|
+
*/
|
|
28
32
|
export declare class Collection<M, A = M | M[]> extends EventEmitter {
|
|
29
33
|
static model: any;
|
|
30
34
|
static comparator: (a: any, b: any) => number;
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ContactModel } from '../models';
|
|
17
|
-
import {
|
|
18
|
-
/** @whatsapp 19380
|
|
19
|
-
|
|
17
|
+
import { BaseCollection } from './BaseCollection';
|
|
18
|
+
/** @whatsapp 19380
|
|
19
|
+
* @whatsapp 719380 >= 2.2222.8
|
|
20
|
+
*/
|
|
21
|
+
export declare class ContactCollection extends BaseCollection<ContactModel> {
|
|
20
22
|
static model: ContactModel;
|
|
21
|
-
static cachePolicy?: any;
|
|
22
23
|
checksum?: any;
|
|
23
24
|
ensureSorted(): any;
|
|
24
25
|
contactAdded(e?: any): any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { EmojiVariantModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 13185
|
|
18
|
+
/** @whatsapp 13185
|
|
19
|
+
* @whatsapp 513185 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class EmojiVariantCollection extends Collection<EmojiVariantModel> {
|
|
20
22
|
static model: EmojiVariantModel;
|
|
21
23
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { GroupMetadataModel } from '../models';
|
|
17
17
|
import { BaseCollection } from '.';
|
|
18
|
-
/** @whatsapp 63928
|
|
18
|
+
/** @whatsapp 63928
|
|
19
|
+
* @whatsapp 963928 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class GroupMetadataCollection extends BaseCollection<GroupMetadataModel> {
|
|
20
22
|
static model: GroupMetadataModel;
|
|
21
23
|
handlePendingInvite(): any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel, LabelModel } from '../models';
|
|
17
17
|
import { BaseCollection } from './BaseCollection';
|
|
18
|
-
/** @whatsapp 16770
|
|
18
|
+
/** @whatsapp 16770
|
|
19
|
+
* @whatsapp 316770 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class LabelCollection extends BaseCollection<LabelModel> {
|
|
20
22
|
static model: LabelModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LabelItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 34741
|
|
18
|
+
/** @whatsapp 34741
|
|
19
|
+
* @whatsapp 634741 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class LabelItemCollection extends Collection<LabelItemModel> {
|
|
20
22
|
static model: LabelItemModel;
|
|
21
23
|
}
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LiveLocationModel } from '../models';
|
|
17
17
|
import { BaseCollection } from '.';
|
|
18
|
-
/** @whatsapp 85865
|
|
18
|
+
/** @whatsapp 85865
|
|
19
|
+
* @whatsapp 985865 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class LiveLocationCollection extends BaseCollection<LiveLocationModel> {
|
|
20
22
|
static model: LiveLocationModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
import { Wid } from '..';
|
|
17
17
|
import { ModelPropertiesContructor, MsgModel } from '../models';
|
|
18
18
|
import { BaseCollection } from './BaseCollection';
|
|
19
|
-
/** @whatsapp 59871
|
|
19
|
+
/** @whatsapp 59871
|
|
20
|
+
* @whatsapp 559871 >= 2.2222.8
|
|
21
|
+
*/
|
|
20
22
|
export declare class MsgCollection extends BaseCollection<MsgModel> {
|
|
21
23
|
static model: MsgModel;
|
|
22
24
|
lastReceivedReceipt?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MsgInfoModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 17972
|
|
18
|
+
/** @whatsapp 17972
|
|
19
|
+
* @whatsapp 617972 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class MsgInfoCollection extends Collection<MsgInfoModel> {
|
|
20
22
|
static model: MsgInfoModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 84312
|
|
18
|
+
/** @whatsapp 84312
|
|
19
|
+
* @whatsapp 584312 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class OrderCollection extends Collection<OrderModel> {
|
|
20
22
|
static model: OrderModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 23412
|
|
18
|
+
/** @whatsapp 23412
|
|
19
|
+
* @whatsapp 823412 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class OrderItemCollection extends Collection<OrderItemModel> {
|
|
20
22
|
static model: OrderItemModel;
|
|
21
23
|
}
|
|
@@ -17,6 +17,7 @@ import { ParticipantModel } from '../models';
|
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
18
|
/** @whatsapp 96091
|
|
19
19
|
* @whatsapp 54311 >= 2.2212.8
|
|
20
|
+
* @whatsapp 754311 >= 2.2222.8
|
|
20
21
|
*/
|
|
21
22
|
export declare class ParticipantCollection extends Collection<ParticipantModel> {
|
|
22
23
|
static model: ParticipantModel;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { PresenceModel } from '../models';
|
|
17
17
|
import { BaseCollection } from './BaseCollection';
|
|
18
|
-
/** @whatsapp 68315
|
|
18
|
+
/** @whatsapp 68315
|
|
19
|
+
* @whatsapp 868315 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class PresenceCollection extends BaseCollection<PresenceModel> {
|
|
20
22
|
static model: PresenceModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductCollModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 12496
|
|
18
|
+
/** @whatsapp 12496
|
|
19
|
+
* @whatsapp 912496 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class ProductCollCollection extends Collection<ProductCollModel> {
|
|
20
22
|
static model: ProductCollModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 5641
|
|
18
|
+
/** @whatsapp 5641
|
|
19
|
+
* @whatsapp 105641 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class ProductCollection extends Collection<ProductModel> {
|
|
20
22
|
static model: ProductModel;
|
|
21
23
|
getProductModels(e?: boolean): any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductImageModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 7514
|
|
18
|
+
/** @whatsapp 7514
|
|
19
|
+
* @whatsapp 307514 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class ProductImageCollection extends Collection<ProductImageModel> {
|
|
20
22
|
static model: ProductImageModel;
|
|
21
23
|
}
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProfilePicThumbModel } from '../models';
|
|
17
17
|
import { BaseCollection } from './BaseCollection';
|
|
18
|
-
/** @whatsapp 82039
|
|
18
|
+
/** @whatsapp 82039
|
|
19
|
+
* @whatsapp 582039 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class ProfilePicThumbCollection extends BaseCollection<ProfilePicThumbModel> {
|
|
20
22
|
static model: ProfilePicThumbModel;
|
|
21
23
|
static staleCollection?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { QuickReplyModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 99662
|
|
18
|
+
/** @whatsapp 99662
|
|
19
|
+
* @whatsapp 999662 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class QuickReplyCollection extends Collection<QuickReplyModel> {
|
|
20
22
|
static model: QuickReplyModel;
|
|
21
23
|
checksum?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ReactionsModel } from '../models';
|
|
17
17
|
import { BaseCollection } from './BaseCollection';
|
|
18
|
-
/** @whatsapp 57162
|
|
18
|
+
/** @whatsapp 57162
|
|
19
|
+
* @whatsapp 257162 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class ReactionsCollection extends BaseCollection<ReactionsModel> {
|
|
20
22
|
static model: ReactionsModel;
|
|
21
23
|
static comparator(): any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ReactionsModel, ReactionsSendersModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 81130
|
|
18
|
+
/** @whatsapp 81130
|
|
19
|
+
* @whatsapp 981130 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class ReactionsSendersCollection extends Collection<ReactionsModel> {
|
|
20
22
|
static model: ReactionsSendersModel;
|
|
21
23
|
static comparator(): number;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { RecentEmojiModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 92671
|
|
18
|
+
/** @whatsapp 92671
|
|
19
|
+
* @whatsapp 492671 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class RecentEmojiCollection extends Collection<RecentEmojiModel> {
|
|
20
22
|
static cachePolicy?: any;
|
|
21
23
|
static model: RecentEmojiModel;
|
|
@@ -17,6 +17,7 @@ import { StickerModel } from '../models';
|
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
18
|
/** @whatsapp 49264
|
|
19
19
|
* @whatsapp 91692 >= 2.2212.8
|
|
20
|
+
* @whatsapp 191692 >= 2.2222.8
|
|
20
21
|
*/
|
|
21
22
|
export declare class RecentStickerCollection extends Collection<StickerModel> {
|
|
22
23
|
static model: StickerModel;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MsgModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 19011
|
|
18
|
+
/** @whatsapp 19011
|
|
19
|
+
* @whatsapp 719011 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class StarredMsgCollection extends Collection<MsgModel> {
|
|
20
22
|
static model: MsgModel;
|
|
21
23
|
syncPromise?: any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StatusV3Model } from '../models';
|
|
17
17
|
import { BaseCollection } from '.';
|
|
18
|
-
/** @whatsapp 59387
|
|
18
|
+
/** @whatsapp 59387
|
|
19
|
+
* @whatsapp 459387 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class StatusV3Collection extends BaseCollection<StatusV3Model> {
|
|
20
22
|
static model: StatusV3Model;
|
|
21
23
|
loadMore(e?: any, t?: any, r?: any): any;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 67963
|
|
18
|
+
/** @whatsapp 67963
|
|
19
|
+
* @whatsapp 767963 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class StickerCollection extends Collection<StickerModel> {
|
|
20
22
|
static model: StickerModel;
|
|
21
23
|
fetch(): any;
|
|
@@ -17,6 +17,7 @@ import { StickerPackModel } from '../models';
|
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
18
|
/** @whatsapp 44333
|
|
19
19
|
* @whatsapp 66299 >= 2.2212.8
|
|
20
|
+
* @whatsapp 366299 >= 2.2222.8
|
|
20
21
|
*/
|
|
21
22
|
export declare class StickerPackCollection extends Collection<StickerPackModel> {
|
|
22
23
|
static model: StickerPackModel;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 45068
|
|
18
|
+
/** @whatsapp 45068
|
|
19
|
+
* @whatsapp 545068 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class StickerSearchCollection extends Collection<StickerModel> {
|
|
20
22
|
static model: StickerModel;
|
|
21
23
|
isFetchingData(): boolean;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { TemplateButtonModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 82988
|
|
18
|
+
/** @whatsapp 82988
|
|
19
|
+
* @whatsapp 682988 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class TemplateButtonCollection extends Collection<TemplateButtonModel> {
|
|
20
22
|
static model: TemplateButtonModel;
|
|
21
23
|
static comparator(): any;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
/** @whatsapp 35470
|
|
17
17
|
* @whatsapp 69618 >= 2.2204.13
|
|
18
|
+
* @whatsapp 535470 >= 2.2222.8
|
|
18
19
|
*/
|
|
19
20
|
export declare enum ACK {
|
|
20
21
|
MD_DOWNGRADE = -7,
|
|
@@ -33,6 +34,7 @@ export declare enum ACK {
|
|
|
33
34
|
}
|
|
34
35
|
/** @whatsapp 35470
|
|
35
36
|
* @whatsapp 69618 >= 2.2204.13
|
|
37
|
+
* @whatsapp 535470 >= 2.2222.8
|
|
36
38
|
*/
|
|
37
39
|
export declare enum EDIT_ATTR {
|
|
38
40
|
SENDER_REVOKE = 7,
|
|
@@ -40,6 +42,7 @@ export declare enum EDIT_ATTR {
|
|
|
40
42
|
}
|
|
41
43
|
/** @whatsapp 35470
|
|
42
44
|
* @whatsapp 69618 >= 2.2204.13
|
|
45
|
+
* @whatsapp 535470 >= 2.2222.8
|
|
43
46
|
*/
|
|
44
47
|
export declare enum ACK_STRING {
|
|
45
48
|
SENDER = "sender",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
/** @whatsapp 15461
|
|
17
17
|
* @whatsapp 69618 >= 2.2204.13
|
|
18
|
+
* @whatsapp 115461 >= 2.2222.8
|
|
18
19
|
*/
|
|
19
20
|
export declare enum MSG_TYPE {
|
|
20
21
|
NOTIFICATION = "notification",
|
|
@@ -54,5 +55,6 @@ export declare enum MSG_TYPE {
|
|
|
54
55
|
}
|
|
55
56
|
/** @whatsapp 15461
|
|
56
57
|
* @whatsapp 69618 >= 2.2204.13
|
|
58
|
+
* @whatsapp 115461 >= 2.2222.8
|
|
57
59
|
*/
|
|
58
60
|
export declare const SYSTEM_MESSAGE_TYPES: string[];
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 13705
|
|
16
|
+
/** @whatsapp 13705
|
|
17
|
+
* @whatsapp 413705 >= 2.2222.8
|
|
18
|
+
*/
|
|
17
19
|
export declare enum SendMsgResult {
|
|
18
20
|
OK = "OK",
|
|
19
21
|
ERROR_NETWORK = "ERROR_NETWORK",
|
|
@@ -15,5 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { SendMsgResult } from '../enums';
|
|
17
17
|
import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
|
|
18
|
-
/** @whatsapp 75887
|
|
18
|
+
/** @whatsapp 75887
|
|
19
|
+
* @whatsapp 975887 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare function addAndSendMsgToChat(chat: ChatModel, message: ModelPropertiesContructor<MsgModel>): Promise<[Promise<MsgModel>, Promise<SendMsgResult>]>;
|
|
@@ -14,7 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ContactModel } from '../models';
|
|
17
|
-
/** @whatsapp 80140
|
|
17
|
+
/** @whatsapp 80140
|
|
18
|
+
* @whatsapp 780140 >= 2.2222.8
|
|
19
|
+
*/
|
|
18
20
|
export declare function blockContact(contact: ContactModel): Promise<void>;
|
|
19
|
-
/** @whatsapp 80140
|
|
21
|
+
/** @whatsapp 80140
|
|
22
|
+
* @whatsapp 780140 >= 2.2222.8
|
|
23
|
+
*/
|
|
20
24
|
export declare function unblockContact(contact: ContactModel): Promise<void>;
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { MsgModel } from '..';
|
|
17
|
-
/** @whatsapp 6565
|
|
17
|
+
/** @whatsapp 6565
|
|
18
|
+
* @whatsapp 606565 >= 2.2222.8
|
|
19
|
+
*/
|
|
18
20
|
export declare function createMsgProtobuf(e: MsgModel, t?: {
|
|
19
21
|
[key: string]: any;
|
|
20
22
|
}): {
|