@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
|
@@ -14,11 +14,19 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel, ParticipantModel } from '..';
|
|
17
|
-
/** @whatsapp 89389
|
|
17
|
+
/** @whatsapp 89389
|
|
18
|
+
* @whatsapp 389389 >= 2.2222.8
|
|
19
|
+
*/
|
|
18
20
|
export declare function addParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
19
|
-
/** @whatsapp 89389
|
|
21
|
+
/** @whatsapp 89389
|
|
22
|
+
* @whatsapp 389389 >= 2.2222.8
|
|
23
|
+
*/
|
|
20
24
|
export declare function removeParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
21
|
-
/** @whatsapp 89389
|
|
25
|
+
/** @whatsapp 89389
|
|
26
|
+
* @whatsapp 389389 >= 2.2222.8
|
|
27
|
+
*/
|
|
22
28
|
export declare function promoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
23
|
-
/** @whatsapp 89389
|
|
29
|
+
/** @whatsapp 89389
|
|
30
|
+
* @whatsapp 389389 >= 2.2222.8
|
|
31
|
+
*/
|
|
24
32
|
export declare function demoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
|
|
@@ -30,21 +30,30 @@ export interface SimpleAckData {
|
|
|
30
30
|
/**
|
|
31
31
|
* @whatsapp 90756
|
|
32
32
|
* @deprecated
|
|
33
|
+
* @whatsapp 590756 >= 2.2222.8
|
|
33
34
|
*/
|
|
34
35
|
export declare function handleStatusSimpleAck(ackData: SimpleAckData): Promise<any>;
|
|
35
36
|
/**
|
|
36
37
|
* @whatsapp 48309
|
|
37
38
|
* @deprecated
|
|
39
|
+
* @whatsapp 648309 >= 2.2222.8
|
|
38
40
|
*/
|
|
39
41
|
export declare function handleChatSimpleAck(ackData: SimpleAckData): Promise<any>;
|
|
40
42
|
/**
|
|
41
43
|
* @whatsapp 84947
|
|
42
44
|
* @deprecated
|
|
45
|
+
* @whatsapp 284947 >= 2.2222.8
|
|
43
46
|
*/
|
|
44
47
|
export declare function handleGroupSimpleAck(ackData: SimpleAckData): Promise<any>;
|
|
45
|
-
/** @whatsapp 90756
|
|
48
|
+
/** @whatsapp 90756
|
|
49
|
+
* @whatsapp 590756 >= 2.2222.8
|
|
50
|
+
*/
|
|
46
51
|
export declare function handleStatusSimpleReceipt(ackData: SimpleAckData): Promise<any>;
|
|
47
|
-
/** @whatsapp 48309
|
|
52
|
+
/** @whatsapp 48309
|
|
53
|
+
* @whatsapp 648309 >= 2.2222.8
|
|
54
|
+
*/
|
|
48
55
|
export declare function handleChatSimpleReceipt(ackData: SimpleAckData): Promise<any>;
|
|
49
|
-
/** @whatsapp 84947
|
|
56
|
+
/** @whatsapp 84947
|
|
57
|
+
* @whatsapp 284947 >= 2.2222.8
|
|
58
|
+
*/
|
|
50
59
|
export declare function handleGroupSimpleReceipt(ackData: SimpleAckData): Promise<any>;
|
|
@@ -42,6 +42,7 @@ export * from './sendClear';
|
|
|
42
42
|
export * from './sendCreateGroup';
|
|
43
43
|
export * from './sendDelete';
|
|
44
44
|
export * from './sendExitGroup';
|
|
45
|
+
export * from './sendGroupParticipants';
|
|
45
46
|
export * from './sendJoinGroupViaInvite';
|
|
46
47
|
export * from './sendQueryExists';
|
|
47
48
|
export * from './sendQueryGroupInvite';
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* @whatsapp 13194
|
|
18
18
|
* @whatsapp 9530 >= 2.2210.9
|
|
19
|
+
* @whatsapp 909530 >= 2.2222.8
|
|
19
20
|
*/
|
|
20
21
|
export declare function isAuthenticated(): boolean;
|
|
21
22
|
/**
|
|
22
23
|
* @whatsapp 13194 >= 2.2208.11
|
|
23
24
|
* @whatsapp 9530 >= 2.2210.9
|
|
25
|
+
* @whatsapp 909530 >= 2.2222.8
|
|
24
26
|
*/
|
|
25
27
|
export declare function isLoggedIn(): boolean;
|
|
@@ -18,7 +18,9 @@ import { ChatModel, MsgModel } from '../models';
|
|
|
18
18
|
export declare function markUnread(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
|
|
19
19
|
/** @whatsapp 9609 */
|
|
20
20
|
export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
|
|
21
|
-
/** @whatsapp 30734
|
|
21
|
+
/** @whatsapp 30734
|
|
22
|
+
* @whatsapp 730734 >= 2.2222.8
|
|
23
|
+
*/
|
|
22
24
|
export declare function markPlayed(msg: MsgModel): Promise<void>;
|
|
23
25
|
/**
|
|
24
26
|
* @whatsapp 2.2146.9:64850
|
|
@@ -16,11 +16,19 @@
|
|
|
16
16
|
import { ProductModel } from '..';
|
|
17
17
|
/** @whatsapp 2.2144.10:35339 */
|
|
18
18
|
export declare function createBusinessCatalog(): Promise<any>;
|
|
19
|
-
/** @whatsapp 96519
|
|
19
|
+
/** @whatsapp 96519
|
|
20
|
+
* @whatsapp 196519 >= 2.2222.8
|
|
21
|
+
*/
|
|
20
22
|
export declare function addProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
|
|
21
|
-
/** @whatsapp 96519
|
|
23
|
+
/** @whatsapp 96519
|
|
24
|
+
* @whatsapp 196519 >= 2.2222.8
|
|
25
|
+
*/
|
|
22
26
|
export declare function editProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
|
|
23
|
-
/** @whatsapp 96519
|
|
27
|
+
/** @whatsapp 96519
|
|
28
|
+
* @whatsapp 196519 >= 2.2222.8
|
|
29
|
+
*/
|
|
24
30
|
export declare function deleteProducts(productIds: string[]): Promise<any>;
|
|
25
|
-
/** @whatsapp 96519
|
|
31
|
+
/** @whatsapp 96519
|
|
32
|
+
* @whatsapp 196519 >= 2.2222.8
|
|
33
|
+
*/
|
|
26
34
|
export declare function sendProductToChat(...args: any[]): Promise<any>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Wid } from '..';
|
|
17
|
+
/**
|
|
18
|
+
* @whatsapp 437722 >= 2.2222.8
|
|
19
|
+
*/
|
|
20
|
+
export declare function sendAddParticipants(group: Wid, participants: Wid[]): Promise<{
|
|
21
|
+
participants?: {
|
|
22
|
+
[key: `${number}@c.us`]: {
|
|
23
|
+
code: string;
|
|
24
|
+
invite_code: string | null;
|
|
25
|
+
invite_code_exp: string | null;
|
|
26
|
+
};
|
|
27
|
+
}[];
|
|
28
|
+
status: number;
|
|
29
|
+
[key: `${number}@c.us`]: number;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* @whatsapp 437722 >= 2.2222.8
|
|
33
|
+
*/
|
|
34
|
+
export declare function sendRemoveParticipants(group: Wid, participants: Wid[]): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* @whatsapp 437722 >= 2.2222.8
|
|
37
|
+
*/
|
|
38
|
+
export declare function sendPromoteParticipants(group: Wid, participants: Wid[]): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* @whatsapp 437722 >= 2.2222.8
|
|
41
|
+
*/
|
|
42
|
+
export declare function sendDemoteParticipants(group: Wid, participants: Wid[]): Promise<void>;
|
|
@@ -40,5 +40,7 @@ export interface QueryGroupInviteResult {
|
|
|
40
40
|
support: boolean;
|
|
41
41
|
suspended: boolean;
|
|
42
42
|
}
|
|
43
|
-
/** @whatsapp 10790
|
|
43
|
+
/** @whatsapp 10790
|
|
44
|
+
* @whatsapp 810790 >= 2.2222.8
|
|
45
|
+
*/
|
|
44
46
|
export declare function sendQueryGroupInvite(inviteCode: string): Promise<QueryGroupInviteResult>;
|
|
@@ -14,5 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { MsgModel } from '../models';
|
|
17
|
-
/** @whatsapp 21357
|
|
17
|
+
/** @whatsapp 21357
|
|
18
|
+
* @whatsapp 621357 >= 2.2222.8
|
|
19
|
+
*/
|
|
18
20
|
export declare function sendReactionToMsg(msg: MsgModel, reactionText: string): Promise<string>;
|
|
@@ -13,5 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/** @whatsapp 5524
|
|
16
|
+
/** @whatsapp 5524
|
|
17
|
+
* @whatsapp 105524 >= 2.2222.8
|
|
18
|
+
*/
|
|
17
19
|
export declare function sendTextMsgToChat(chat: any, message: any, options: any): Promise<string>;
|
|
@@ -15,9 +15,15 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from '..';
|
|
17
17
|
import { GROUP_SETTING_TYPE } from '../enums';
|
|
18
|
-
/** @whatsapp 57490
|
|
18
|
+
/** @whatsapp 57490
|
|
19
|
+
* @whatsapp 357490 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare function sendSetGroupSubject(groupId: Wid, subject: string): Promise<void>;
|
|
20
|
-
/** @whatsapp 57490
|
|
22
|
+
/** @whatsapp 57490
|
|
23
|
+
* @whatsapp 357490 >= 2.2222.8
|
|
24
|
+
*/
|
|
21
25
|
export declare function sendSetGroupDescription(groupId: Wid, description: string, tagId: string, previousTagId?: string): Promise<void>;
|
|
22
|
-
/** @whatsapp 57490
|
|
26
|
+
/** @whatsapp 57490
|
|
27
|
+
* @whatsapp 357490 >= 2.2222.8
|
|
28
|
+
*/
|
|
23
29
|
export declare function sendSetGroupProperty(groupId: Wid, property: GROUP_SETTING_TYPE, value: number): Promise<void>;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { Wid } from '..';
|
|
17
17
|
/** @whatsapp 46898
|
|
18
18
|
* @whatsapp 51316 >= 2.2204.13
|
|
19
|
+
* @whatsapp 546898 >= 2.2222.8
|
|
19
20
|
*/
|
|
20
21
|
export declare function getStatus(contactId: Wid): Promise<{
|
|
21
22
|
id: Wid;
|
|
@@ -23,6 +24,7 @@ export declare function getStatus(contactId: Wid): Promise<{
|
|
|
23
24
|
}>;
|
|
24
25
|
/** @whatsapp 46898
|
|
25
26
|
* @whatsapp 51316 >= 2.2204.13
|
|
27
|
+
* @whatsapp 546898 >= 2.2222.8
|
|
26
28
|
*/
|
|
27
29
|
export declare function setMyStatus(status: string, seqId?: number): Promise<{
|
|
28
30
|
status: number;
|
|
@@ -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 93650
|
|
16
|
+
/** @whatsapp 93650
|
|
17
|
+
* @whatsapp 193650 >= 2.2222.8
|
|
18
|
+
*/
|
|
17
19
|
export declare function typeAttributeFromProtobuf(protoMessage: {
|
|
18
20
|
[key: string]: any;
|
|
19
21
|
}): string;
|
|
@@ -14,5 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { OpaqueData } from '..';
|
|
17
|
-
/** @whatsapp 78986
|
|
17
|
+
/** @whatsapp 78986
|
|
18
|
+
* @whatsapp 778986 >= 2.2222.8
|
|
19
|
+
*/
|
|
18
20
|
export declare function uploadProductImage(mediaBlob: OpaqueData, filehash: string): Promise<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 15688
|
|
16
|
+
/** @whatsapp 15688
|
|
17
|
+
* @whatsapp 615688 >= 2.2222.8
|
|
18
|
+
*/
|
|
17
19
|
export declare namespace Base64 {
|
|
18
20
|
const BASE64_DATA_URL_SCHEME: 'data:image/jpeg;base64,';
|
|
19
21
|
function encodeB64(data: ArrayLike<number> | ArrayBufferLike): string;
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel } from '..';
|
|
17
|
-
/** @whatsapp 371
|
|
17
|
+
/** @whatsapp 371
|
|
18
|
+
* @whatsapp 800371 >= 2.2222.8
|
|
19
|
+
*/
|
|
18
20
|
export declare namespace ChatPresence {
|
|
19
21
|
function markComposing(chat: ChatModel): Promise<void>;
|
|
20
22
|
function markPaused(chat: ChatModel): Promise<void>;
|
|
@@ -18,6 +18,7 @@ import { MsgModel } from '../models';
|
|
|
18
18
|
import { EventEmitter } from '.';
|
|
19
19
|
/** @whatsapp 88102
|
|
20
20
|
* @whatsapp 81572 >= 2.2218.4
|
|
21
|
+
* @whatsapp 781572 >= 2.2222.8
|
|
21
22
|
*/
|
|
22
23
|
export declare class CmdClass extends EventEmitter {
|
|
23
24
|
isMainLoaded: boolean;
|
|
@@ -152,5 +153,6 @@ export declare class CmdClass extends EventEmitter {
|
|
|
152
153
|
}
|
|
153
154
|
/** @whatsapp 88102
|
|
154
155
|
* @whatsapp 81572 >= 2.2218.4
|
|
156
|
+
* @whatsapp 781572 >= 2.2222.8
|
|
155
157
|
*/
|
|
156
158
|
export declare const Cmd: CmdClass;
|
|
@@ -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 84866
|
|
16
|
+
/** @whatsapp 84866
|
|
17
|
+
* @whatsapp 284866 >= 2.2222.8
|
|
18
|
+
*/
|
|
17
19
|
export declare class MediaBlobCacheImpl {
|
|
18
20
|
is24h: boolean;
|
|
19
21
|
getOrCreateURL(filehash: string): string;
|
|
@@ -26,5 +28,7 @@ export declare class MediaBlobCacheImpl {
|
|
|
26
28
|
increaseUsageCount(filehash: string): void;
|
|
27
29
|
decreaseUsageCount(filehash: string): void;
|
|
28
30
|
}
|
|
29
|
-
/** @whatsapp 84866
|
|
31
|
+
/** @whatsapp 84866
|
|
32
|
+
* @whatsapp 284866 >= 2.2222.8
|
|
33
|
+
*/
|
|
30
34
|
export declare const MediaBlobCache: MediaBlobCacheImpl;
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { MediaObject } from '.';
|
|
17
|
-
/** @whatsapp 88297
|
|
17
|
+
/** @whatsapp 88297
|
|
18
|
+
* @whatsapp 988297 >= 2.2222.8
|
|
19
|
+
*/
|
|
18
20
|
export declare namespace MediaObjectUtil {
|
|
19
21
|
function getOrCreateMediaObject(hash: string): MediaObject;
|
|
20
22
|
}
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
import { ChatModel, MediaDataModel, ModelPropertiesContructor, MsgModel } from '..';
|
|
17
17
|
import { OUTWARD_TYPES, SendMsgResult } from '../enums';
|
|
18
18
|
import { OpaqueData } from '.';
|
|
19
|
-
/** @whatsapp 78986
|
|
19
|
+
/** @whatsapp 78986
|
|
20
|
+
* @whatsapp 778986 >= 2.2222.8
|
|
21
|
+
*/
|
|
20
22
|
export declare namespace MediaPrep {
|
|
21
23
|
function prepRawMedia(data: OpaqueData, options: {
|
|
22
24
|
isPtt?: boolean;
|
|
@@ -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 56406
|
|
16
|
+
/** @whatsapp 56406
|
|
17
|
+
* @whatsapp 756406 >= 2.2222.8
|
|
18
|
+
*/
|
|
17
19
|
export declare namespace MediaUtils {
|
|
18
20
|
function getImageWidthHeight(): Promise<{
|
|
19
21
|
width: number;
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BaseCollection } from '../collections';
|
|
17
17
|
import { Model, MsgModel } from '../models';
|
|
18
|
-
/** @whatsapp 51612
|
|
18
|
+
/** @whatsapp 51612
|
|
19
|
+
* @whatsapp 951612 >= 2.2222.8
|
|
20
|
+
*/
|
|
19
21
|
export declare class MsgLoadState extends Model {
|
|
20
22
|
noEarlierMsgs: any;
|
|
21
23
|
isLoadingEarlierMsgs: any;
|
|
@@ -23,7 +25,9 @@ export declare class MsgLoadState extends Model {
|
|
|
23
25
|
isLoadingAroundMsgs: any;
|
|
24
26
|
contextLoaded: any;
|
|
25
27
|
}
|
|
26
|
-
/** @whatsapp 51612
|
|
28
|
+
/** @whatsapp 51612
|
|
29
|
+
* @whatsapp 951612 >= 2.2222.8
|
|
30
|
+
*/
|
|
27
31
|
export declare class MsgLoad extends BaseCollection<MsgModel> {
|
|
28
32
|
msgLoadState: MsgLoadState;
|
|
29
33
|
loadRecentPromise?: Promise<any>;
|