@wppconnect/wa-js 2.7.1 → 2.8.0
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 +62 -222
- package/dist/config.d.ts +25 -1
- package/dist/contact/functions/getStatus.d.ts +1 -1
- package/dist/group/functions/addParticipants.d.ts +20 -1
- package/dist/group/functions/index.d.ts +1 -0
- package/dist/group/functions/setIcon.d.ts +31 -0
- package/dist/gtag/Tracker.d.ts +51 -0
- package/dist/{gtag.d.ts → gtag/index.d.ts} +3 -2
- package/dist/profile/functions/index.d.ts +1 -0
- package/dist/profile/functions/setMyProfilePicture.d.ts +32 -0
- package/dist/status/functions/index.d.ts +2 -0
- package/dist/status/functions/sendImageStatus.d.ts +26 -0
- package/dist/status/functions/sendVideoStatus.d.ts +26 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/{profile/functions/queryExists.d.ts → util/resizeImage.d.ts} +2 -5
- 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 +6 -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 +2 -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/profilePic.d.ts +7 -1
- 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/updateParticipants.d.ts +26 -0
- 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 +9 -5
- 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/dist/wppconnect-wa.js.LICENSE.txt +10 -0
- package/package.json +20 -18
|
@@ -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
|
}): {
|
|
@@ -16,9 +16,15 @@
|
|
|
16
16
|
import { Wid } from '../misc';
|
|
17
17
|
/**
|
|
18
18
|
* @whatsapp 43201
|
|
19
|
+
* @whatsapp 543201 >= 2.2222.8
|
|
19
20
|
*/
|
|
20
21
|
export declare function getGroupSenderKeyList(wid: Wid): Promise<{
|
|
21
22
|
skList: Wid[];
|
|
22
23
|
skDistribList: Wid[];
|
|
23
24
|
rotateKey: boolean;
|
|
24
25
|
}>;
|
|
26
|
+
/**
|
|
27
|
+
* @whatsapp 43201
|
|
28
|
+
* @whatsapp 543201 >= 2.2222.8
|
|
29
|
+
*/
|
|
30
|
+
export declare function markForgetSenderKey(wid: Wid, participants: Wid[]): Promise<any>;
|
|
@@ -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';
|
|
@@ -53,5 +54,6 @@ export * from './setGroup';
|
|
|
53
54
|
export * from './setPin';
|
|
54
55
|
export * from './status';
|
|
55
56
|
export * from './typeAttributeFromProtobuf';
|
|
57
|
+
export * from './updateParticipants';
|
|
56
58
|
export * from './uploadProductImage';
|
|
57
59
|
export * from './uploadThumbnail';
|
|
@@ -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>;
|
|
@@ -19,4 +19,10 @@ import { Wid } from '..';
|
|
|
19
19
|
* @whatsapp 78426
|
|
20
20
|
* @whatsapp 5018 >= 2.2204.13
|
|
21
21
|
*/
|
|
22
|
-
export declare function sendSetPicture(chat: Wid, previewBase64: string, pictureBase64: string): Promise<
|
|
22
|
+
export declare function sendSetPicture(chat: Wid, previewBase64: string, pictureBase64: string): Promise<{
|
|
23
|
+
eurl: string;
|
|
24
|
+
status: number;
|
|
25
|
+
tag: string;
|
|
26
|
+
token: string;
|
|
27
|
+
_duplicate: boolean;
|
|
28
|
+
}>;
|
|
@@ -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;
|
|
@@ -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
|
+
import { Wid } from '../misc';
|
|
17
|
+
import { ParticipantModel } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* @whatsapp 951974 >= 2.2222.8
|
|
20
|
+
*/
|
|
21
|
+
export declare function updateParticipants(params: {
|
|
22
|
+
group: Wid;
|
|
23
|
+
participants: ParticipantModel[];
|
|
24
|
+
version: number;
|
|
25
|
+
isOffline: boolean;
|
|
26
|
+
}): Promise<any>;
|
|
@@ -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;
|