talkyzap-wapp-api 1.0.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 +486 -0
- package/LICENSE +190 -0
- package/README.md +143 -0
- package/dist/assert/assertChat.d.ts +27 -0
- package/dist/assert/assertColor.d.ts +35 -0
- package/dist/assert/assertIsBusiness.d.ts +20 -0
- package/dist/assert/assertProduct.d.ts +22 -0
- package/dist/assert/assertWid.d.ts +28 -0
- package/dist/assert/index.d.ts +20 -0
- package/dist/blocklist/events/eventTypes.d.ts +18 -0
- package/dist/blocklist/events/index.d.ts +16 -0
- package/dist/blocklist/events/registerSyncedEvent.d.ts +16 -0
- package/dist/blocklist/functions/all.d.ts +17 -0
- package/dist/blocklist/functions/blockContact.d.ts +18 -0
- package/dist/blocklist/functions/index.d.ts +19 -0
- package/dist/blocklist/functions/isBlocked.d.ts +17 -0
- package/dist/blocklist/functions/unblockContact.d.ts +18 -0
- package/dist/blocklist/index.d.ts +17 -0
- package/dist/blocklist/types.d.ts +20 -0
- package/dist/call/events/eventTypes.d.ts +56 -0
- package/dist/call/events/index.d.ts +16 -0
- package/dist/call/events/registerIncomingCallEvent.d.ts +16 -0
- package/dist/call/functions/accept.d.ts +38 -0
- package/dist/call/functions/end.d.ts +36 -0
- package/dist/call/functions/index.d.ts +19 -0
- package/dist/call/functions/offer.d.ts +33 -0
- package/dist/call/functions/parseRelayResponse.d.ts +31 -0
- package/dist/call/functions/prepareDestination.d.ts +17 -0
- package/dist/call/functions/reject.d.ts +36 -0
- package/dist/call/index.d.ts +17 -0
- package/dist/catalog/functions/addProductImage.d.ts +28 -0
- package/dist/catalog/functions/changeProductImage.d.ts +28 -0
- package/dist/catalog/functions/createCollection.d.ts +26 -0
- package/dist/catalog/functions/createProduct.d.ts +47 -0
- package/dist/catalog/functions/deleteCollection.d.ts +26 -0
- package/dist/catalog/functions/deleteProduct.d.ts +30 -0
- package/dist/catalog/functions/editCollection.d.ts +32 -0
- package/dist/catalog/functions/editProduct.d.ts +37 -0
- package/dist/catalog/functions/getCollections.d.ts +31 -0
- package/dist/catalog/functions/getMyCatalog.d.ts +27 -0
- package/dist/catalog/functions/getProductById.d.ts +28 -0
- package/dist/catalog/functions/getProducts.d.ts +27 -0
- package/dist/catalog/functions/index.d.ts +30 -0
- package/dist/catalog/functions/removeProductImage.d.ts +29 -0
- package/dist/catalog/functions/setProductVisibility.d.ts +30 -0
- package/dist/catalog/functions/updateCartEnabled.d.ts +30 -0
- package/dist/catalog/index.d.ts +16 -0
- package/dist/chat/defaultSendMessageOptions.d.ts +19 -0
- package/dist/chat/events/eventTypes.d.ts +183 -0
- package/dist/chat/events/index.d.ts +25 -0
- package/dist/chat/events/registerAckMessageEvent.d.ts +16 -0
- package/dist/chat/events/registerActiveChatEvent.d.ts +16 -0
- package/dist/chat/events/registerEditedMessageEvent.d.ts +16 -0
- package/dist/chat/events/registerLabelEvent.d.ts +16 -0
- package/dist/chat/events/registerLiveLocationUpdateEvent.d.ts +16 -0
- package/dist/chat/events/registerNewMessageEvent.d.ts +16 -0
- package/dist/chat/events/registerPollEvent.d.ts +16 -0
- package/dist/chat/events/registerPresenceChange.d.ts +16 -0
- package/dist/chat/events/registerReactionsEvent.d.ts +16 -0
- package/dist/chat/events/registerRevokeMessageEvent.d.ts +16 -0
- package/dist/chat/functions/archive.d.ts +54 -0
- package/dist/chat/functions/canMarkPlayed.d.ts +27 -0
- package/dist/chat/functions/canMute.d.ts +27 -0
- package/dist/chat/functions/canReply.d.ts +27 -0
- package/dist/chat/functions/clear.d.ts +26 -0
- package/dist/chat/functions/delete.d.ts +26 -0
- package/dist/chat/functions/deleteMessage.d.ts +48 -0
- package/dist/chat/functions/downloadMedia.d.ts +29 -0
- package/dist/chat/functions/editMessage.d.ts +30 -0
- package/dist/chat/functions/find.d.ts +24 -0
- package/dist/chat/functions/forwardMessage.d.ts +32 -0
- package/dist/chat/functions/generateMessageID.d.ts +22 -0
- package/dist/chat/functions/get.d.ts +22 -0
- package/dist/chat/functions/getActiveChat.d.ts +30 -0
- package/dist/chat/functions/getLastSeen.d.ts +25 -0
- package/dist/chat/functions/getMessageACK.d.ts +60 -0
- package/dist/chat/functions/getMessageById.d.ts +33 -0
- package/dist/chat/functions/getMessages.d.ts +86 -0
- package/dist/chat/functions/getPlatformFromMessage.d.ts +34 -0
- package/dist/chat/functions/getQuotedMsg.d.ts +22 -0
- package/dist/chat/functions/getQuotedMsgKey.d.ts +22 -0
- package/dist/chat/functions/getReactions.d.ts +48 -0
- package/dist/chat/functions/getVotes.d.ts +33 -0
- package/dist/chat/functions/index.d.ts +69 -0
- package/dist/chat/functions/keepMessage.d.ts +30 -0
- package/dist/chat/functions/list.d.ts +62 -0
- package/dist/chat/functions/markIsComposing.d.ts +31 -0
- package/dist/chat/functions/markIsPaused.d.ts +27 -0
- package/dist/chat/functions/markIsRead.d.ts +30 -0
- package/dist/chat/functions/markIsRecording.d.ts +31 -0
- package/dist/chat/functions/markIsUnread.d.ts +29 -0
- package/dist/chat/functions/markPlayed.d.ts +27 -0
- package/dist/chat/functions/mute.d.ts +45 -0
- package/dist/chat/functions/openChatAt.d.ts +27 -0
- package/dist/chat/functions/openChatBottom.d.ts +27 -0
- package/dist/chat/functions/openChatFromUnread.d.ts +27 -0
- package/dist/chat/functions/pin.d.ts +54 -0
- package/dist/chat/functions/pinMsg.d.ts +60 -0
- package/dist/chat/functions/prepareAudioWaveform.d.ts +26 -0
- package/dist/chat/functions/prepareLinkPreview.d.ts +53 -0
- package/dist/chat/functions/prepareMessageButtons.d.ts +52 -0
- package/dist/chat/functions/prepareRawMessage.d.ts +23 -0
- package/dist/chat/functions/requestPhoneNumber.d.ts +28 -0
- package/dist/chat/functions/sendCreatePollMessage.d.ts +49 -0
- package/dist/chat/functions/sendFileMessage.d.ts +181 -0
- package/dist/chat/functions/sendGroupInviteMessage.d.ts +56 -0
- package/dist/chat/functions/sendListMessage.d.ts +57 -0
- package/dist/chat/functions/sendLocationMessage.d.ts +100 -0
- package/dist/chat/functions/sendOrderMessage.d.ts +57 -0
- package/dist/chat/functions/sendRawMessage.d.ts +22 -0
- package/dist/chat/functions/sendReactionToMessage.d.ts +36 -0
- package/dist/chat/functions/sendScheduledCallMessage.d.ts +40 -0
- package/dist/chat/functions/sendTextMessage.d.ts +54 -0
- package/dist/chat/functions/sendVCardContactMessage.d.ts +47 -0
- package/dist/chat/functions/starMessage.d.ts +47 -0
- package/dist/chat/functions/unmute.d.ts +27 -0
- package/dist/chat/index.d.ts +20 -0
- package/dist/chat/patch.d.ts +16 -0
- package/dist/chat/types.d.ts +116 -0
- package/dist/community/functions/addSubgroups.d.ts +33 -0
- package/dist/community/functions/create.d.ts +27 -0
- package/dist/community/functions/deactivate.d.ts +27 -0
- package/dist/community/functions/demoteParticipants.d.ts +27 -0
- package/dist/community/functions/getParticipants.d.ts +27 -0
- package/dist/community/functions/index.d.ts +22 -0
- package/dist/community/functions/promoteParticipants.d.ts +27 -0
- package/dist/community/functions/removeSubgroups.d.ts +33 -0
- package/dist/community/index.d.ts +16 -0
- package/dist/config/Config.d.ts +74 -0
- package/dist/config/defaultConfig.d.ts +17 -0
- package/dist/config/eventTypes.d.ts +25 -0
- package/dist/config/index.d.ts +23 -0
- package/dist/conn/events/eventTypes.d.ts +92 -0
- package/dist/conn/events/index.d.ts +25 -0
- package/dist/conn/events/registerAuthCodeChangeEvent.d.ts +16 -0
- package/dist/conn/events/registerAuthenticatedEvent.d.ts +16 -0
- package/dist/conn/events/registerLogoutEvent.d.ts +16 -0
- package/dist/conn/events/registerMainInit.d.ts +16 -0
- package/dist/conn/events/registerMainLoadedEvent.d.ts +16 -0
- package/dist/conn/events/registerMainReadyEvent.d.ts +16 -0
- package/dist/conn/events/registerNeedsUpdateEvent.d.ts +16 -0
- package/dist/conn/events/registerOnlineEvent.d.ts +16 -0
- package/dist/conn/events/registerQRCodeIdleEvent.d.ts +16 -0
- package/dist/conn/events/registerRequireAuthEvent.d.ts +16 -0
- package/dist/conn/functions/genLinkDeviceCodeForPhoneNumber.d.ts +30 -0
- package/dist/conn/functions/getAuthCode.d.ts +28 -0
- package/dist/conn/functions/getHistorySyncProgress.d.ts +32 -0
- package/dist/conn/functions/getMyDeviceId.d.ts +26 -0
- package/dist/conn/functions/getMyUserId.d.ts +26 -0
- package/dist/conn/functions/getPlatform.d.ts +25 -0
- package/dist/conn/functions/index.d.ts +37 -0
- package/dist/conn/functions/isAuthenticated.d.ts +16 -0
- package/dist/conn/functions/isIdle.d.ts +16 -0
- package/dist/conn/functions/isMainInit.d.ts +24 -0
- package/dist/conn/functions/isMainLoaded.d.ts +24 -0
- package/dist/conn/functions/isMainReady.d.ts +24 -0
- package/dist/conn/functions/isMultiDevice.d.ts +16 -0
- package/dist/conn/functions/isOnline.d.ts +24 -0
- package/dist/conn/functions/isRegistered.d.ts +24 -0
- package/dist/conn/functions/joinWebBeta.d.ts +29 -0
- package/dist/conn/functions/logout.d.ts +16 -0
- package/dist/conn/functions/markAvailable.d.ts +33 -0
- package/dist/conn/functions/needsUpdate.d.ts +24 -0
- package/dist/conn/functions/refreshQR.d.ts +28 -0
- package/dist/conn/functions/setKeepAlive.d.ts +28 -0
- package/dist/conn/functions/setLimit.d.ts +65 -0
- package/dist/conn/functions/setMultiDevice.d.ts +23 -0
- package/dist/conn/index.d.ts +19 -0
- package/dist/conn/patch.d.ts +16 -0
- package/dist/conn/types.d.ts +31 -0
- package/dist/contact/functions/get.d.ts +27 -0
- package/dist/contact/functions/getBusinessProfile.d.ts +27 -0
- package/dist/contact/functions/getCommonGroups.d.ts +27 -0
- package/dist/contact/functions/getProfilePictureUrl.d.ts +27 -0
- package/dist/contact/functions/getStatus.d.ts +27 -0
- package/dist/contact/functions/index.d.ts +22 -0
- package/dist/contact/functions/list.d.ts +44 -0
- package/dist/contact/functions/queryExists.d.ts +47 -0
- package/dist/contact/index.d.ts +17 -0
- package/dist/contact/patch.d.ts +16 -0
- package/dist/deviceName.d.ts +16 -0
- package/dist/enums.d.ts +23 -0
- package/dist/eventEmitter/eventEmitter.d.ts +172 -0
- package/dist/eventEmitter/eventTypes.d.ts +34 -0
- package/dist/eventEmitter/index.d.ts +195 -0
- package/dist/group/events/eventTypes.d.ts +53 -0
- package/dist/group/events/index.d.ts +16 -0
- package/dist/group/events/registerParticipantsChangedEvent.d.ts +16 -0
- package/dist/group/functions/addParticipants.d.ts +59 -0
- package/dist/group/functions/approve.d.ts +30 -0
- package/dist/group/functions/canAdd.d.ts +28 -0
- package/dist/group/functions/canDemote.d.ts +28 -0
- package/dist/group/functions/canPromote.d.ts +28 -0
- package/dist/group/functions/canRemove.d.ts +28 -0
- package/dist/group/functions/create.d.ts +59 -0
- package/dist/group/functions/demoteParticipants.d.ts +29 -0
- package/dist/group/functions/ensureGroup.d.ts +17 -0
- package/dist/group/functions/ensureGroupAndParticipants.d.ts +20 -0
- package/dist/group/functions/getAllGroups.d.ts +26 -0
- package/dist/group/functions/getGroupInfoFromInviteCode.d.ts +51 -0
- package/dist/group/functions/getGroupSizeLimit.d.ts +27 -0
- package/dist/group/functions/getInviteCode.d.ts +28 -0
- package/dist/group/functions/getMembershipRequests.d.ts +33 -0
- package/dist/group/functions/getParticipants.d.ts +27 -0
- package/dist/group/functions/iAmAdmin.d.ts +17 -0
- package/dist/group/functions/iAmMember.d.ts +17 -0
- package/dist/group/functions/iAmRestrictedMember.d.ts +17 -0
- package/dist/group/functions/iAmSuperAdmin.d.ts +17 -0
- package/dist/group/functions/index.d.ts +46 -0
- package/dist/group/functions/join.d.ts +28 -0
- package/dist/group/functions/leave.d.ts +27 -0
- package/dist/group/functions/promoteParticipants.d.ts +31 -0
- package/dist/group/functions/reject.d.ts +30 -0
- package/dist/group/functions/removeIcon.d.ts +27 -0
- package/dist/group/functions/removeParticipants.d.ts +31 -0
- package/dist/group/functions/revokeInviteCode.d.ts +28 -0
- package/dist/group/functions/setDescription.d.ts +27 -0
- package/dist/group/functions/setIcon.d.ts +33 -0
- package/dist/group/functions/setProperty.d.ts +54 -0
- package/dist/group/functions/setSubject.d.ts +27 -0
- package/dist/group/index.d.ts +17 -0
- package/dist/gtag/Tracker.d.ts +52 -0
- package/dist/gtag/index.d.ts +18 -0
- package/dist/index.d.ts +42 -0
- package/dist/labels/functions/addNewLabel.d.ts +36 -0
- package/dist/labels/functions/addOrRemoveLabels.d.ts +31 -0
- package/dist/labels/functions/colorIsInLabelPalette.d.ts +26 -0
- package/dist/labels/functions/deleteAllLabels.d.ts +17 -0
- package/dist/labels/functions/deleteLabel.d.ts +21 -0
- package/dist/labels/functions/editLabel.d.ts +37 -0
- package/dist/labels/functions/getAllLabels.d.ts +17 -0
- package/dist/labels/functions/getLabelById.d.ts +17 -0
- package/dist/labels/functions/getLabelColorPalette.d.ts +19 -0
- package/dist/labels/functions/getNewLabelColor.d.ts +19 -0
- package/dist/labels/functions/index.d.ts +25 -0
- package/dist/labels/index.d.ts +17 -0
- package/dist/labels/types.d.ts +23 -0
- package/dist/newsletter/functions/create.d.ts +42 -0
- package/dist/newsletter/functions/destroy.d.ts +26 -0
- package/dist/newsletter/functions/edit.d.ts +58 -0
- package/dist/newsletter/functions/ensureNewsletter.d.ts +17 -0
- package/dist/newsletter/functions/index.d.ts +19 -0
- package/dist/newsletter/functions/mute.d.ts +33 -0
- package/dist/newsletter/index.d.ts +16 -0
- package/dist/order/events/eventTypes.d.ts +34 -0
- package/dist/order/events/index.d.ts +16 -0
- package/dist/order/events/registerUpdateOrderEvent.d.ts +16 -0
- package/dist/order/functions/get.d.ts +27 -0
- package/dist/order/functions/index.d.ts +16 -0
- package/dist/order/index.d.ts +17 -0
- package/dist/profile/functions/editBusinessProfile.d.ts +177 -0
- package/dist/profile/functions/getMyProfileName.d.ts +26 -0
- package/dist/profile/functions/getMyStatus.d.ts +26 -0
- package/dist/profile/functions/index.d.ts +23 -0
- package/dist/profile/functions/isBusiness.d.ts +25 -0
- package/dist/profile/functions/removeMyProfilePicture.d.ts +26 -0
- package/dist/profile/functions/setMyProfileName.d.ts +26 -0
- package/dist/profile/functions/setMyProfilePicture.d.ts +32 -0
- package/dist/profile/functions/setMyStatus.d.ts +26 -0
- package/dist/profile/index.d.ts +16 -0
- package/dist/status/defaultSendStatusOptions.d.ts +19 -0
- package/dist/status/events/eventTypes.d.ts +18 -0
- package/dist/status/events/index.d.ts +16 -0
- package/dist/status/events/registerSyncedEvent.d.ts +16 -0
- package/dist/status/functions/get.d.ts +17 -0
- package/dist/status/functions/getMyStatus.d.ts +17 -0
- package/dist/status/functions/index.d.ts +23 -0
- package/dist/status/functions/postSendStatus.d.ts +17 -0
- package/dist/status/functions/sendImageStatus.d.ts +26 -0
- package/dist/status/functions/sendRawStatus.d.ts +22 -0
- package/dist/status/functions/sendReadStatus.d.ts +25 -0
- package/dist/status/functions/sendTextStatus.d.ts +31 -0
- package/dist/status/functions/sendVideoStatus.d.ts +26 -0
- package/dist/status/functions/updateParticipants.d.ts +32 -0
- package/dist/status/index.d.ts +19 -0
- package/dist/status/patch.d.ts +16 -0
- package/dist/types.d.ts +18 -0
- package/dist/util/blobToArrayBuffer.d.ts +16 -0
- package/dist/util/blobToBase64.d.ts +16 -0
- package/dist/util/convertToFile.d.ts +16 -0
- package/dist/util/createWid.d.ts +19 -0
- package/dist/util/downloadImage.d.ts +20 -0
- package/dist/util/errors.d.ts +21 -0
- package/dist/util/fetchDataFromPNG.d.ts +16 -0
- package/dist/util/generateOrderUniqueId.d.ts +16 -0
- package/dist/util/getVideoInfoFromBuffer.d.ts +25 -0
- package/dist/util/index.d.ts +28 -0
- package/dist/util/isBase64.d.ts +16 -0
- package/dist/util/linkPreview.d.ts +41 -0
- package/dist/util/resizeImage.d.ts +17 -0
- package/dist/util/types.d.ts +42 -0
- package/dist/util/wrapFunction.d.ts +20 -0
- package/dist/webpack/eventTypes.d.ts +20 -0
- package/dist/webpack/index.d.ts +93 -0
- package/dist/whatsapp/collections/AggReactionsCollection.d.ts +24 -0
- package/dist/whatsapp/collections/BaseCollection.d.ts +47 -0
- package/dist/whatsapp/collections/BlocklistCollection.d.ts +25 -0
- package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +24 -0
- package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +27 -0
- package/dist/whatsapp/collections/ButtonCollection.d.ts +22 -0
- package/dist/whatsapp/collections/CallCollection.d.ts +30 -0
- package/dist/whatsapp/collections/CartCollection.d.ts +27 -0
- package/dist/whatsapp/collections/CartItemCollection.d.ts +23 -0
- package/dist/whatsapp/collections/CatalogCollection.d.ts +35 -0
- package/dist/whatsapp/collections/ChatCollection.d.ts +35 -0
- package/dist/whatsapp/collections/ChatstateCollection.d.ts +23 -0
- package/dist/whatsapp/collections/Collection.d.ts +67 -0
- package/dist/whatsapp/collections/ContactCollection.d.ts +37 -0
- package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +27 -0
- package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +24 -0
- package/dist/whatsapp/collections/LabelCollection.d.ts +40 -0
- package/dist/whatsapp/collections/LabelItemCollection.d.ts +23 -0
- package/dist/whatsapp/collections/MsgCollection.d.ts +46 -0
- package/dist/whatsapp/collections/MsgInfoCollection.d.ts +26 -0
- package/dist/whatsapp/collections/MsgInfoParticipantCollection.d.ts +24 -0
- package/dist/whatsapp/collections/MuteCollection.d.ts +33 -0
- package/dist/whatsapp/collections/OrderCollection.d.ts +28 -0
- package/dist/whatsapp/collections/OrderItemCollection.d.ts +23 -0
- package/dist/whatsapp/collections/ParticipantCollection.d.ts +38 -0
- package/dist/whatsapp/collections/PinInChatCollection.d.ts +29 -0
- package/dist/whatsapp/collections/PresenceCollection.d.ts +25 -0
- package/dist/whatsapp/collections/ProductCollCollection.d.ts +27 -0
- package/dist/whatsapp/collections/ProductCollection.d.ts +26 -0
- package/dist/whatsapp/collections/ProductImageCollection.d.ts +23 -0
- package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +23 -0
- package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +29 -0
- package/dist/whatsapp/collections/QuickReplyCollection.d.ts +35 -0
- package/dist/whatsapp/collections/ReactionsCollection.d.ts +32 -0
- package/dist/whatsapp/collections/ReactionsSendersCollection.d.ts +24 -0
- package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +29 -0
- package/dist/whatsapp/collections/RecentStickerCollection.d.ts +28 -0
- package/dist/whatsapp/collections/StarredMsgCollection.d.ts +29 -0
- package/dist/whatsapp/collections/StatusCollection.d.ts +25 -0
- package/dist/whatsapp/collections/StatusV3Collection.d.ts +35 -0
- package/dist/whatsapp/collections/StickerCollection.d.ts +24 -0
- package/dist/whatsapp/collections/StickerPackCollection.d.ts +35 -0
- package/dist/whatsapp/collections/StickerSearchCollection.d.ts +29 -0
- package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +24 -0
- package/dist/whatsapp/collections/index.d.ts +61 -0
- package/dist/whatsapp/contants/DROP_ATTR.d.ts +19 -0
- package/dist/whatsapp/contants/SANITIZED_VERSION_STR.d.ts +19 -0
- package/dist/whatsapp/contants/index.d.ts +17 -0
- package/dist/whatsapp/enums/ACK.d.ts +55 -0
- package/dist/whatsapp/enums/CALL_STATES.d.ts +34 -0
- package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +25 -0
- package/dist/whatsapp/enums/KIC_ENTRY_POINT_TYP.d.ts +26 -0
- package/dist/whatsapp/enums/LogoutReason.d.ts +30 -0
- package/dist/whatsapp/enums/MSG_TYPE.d.ts +60 -0
- package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +27 -0
- package/dist/whatsapp/enums/PIN_STATE.d.ts +22 -0
- package/dist/whatsapp/enums/SOCKET_STATE.d.ts +42 -0
- package/dist/whatsapp/enums/SendMsgResult.d.ts +27 -0
- package/dist/whatsapp/enums/index.d.ts +24 -0
- package/dist/whatsapp/exportModule.d.ts +58 -0
- package/dist/whatsapp/functions/GROUP_JID.d.ts +21 -0
- package/dist/whatsapp/functions/addAndSendMessageEdit.d.ts +20 -0
- package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +22 -0
- package/dist/whatsapp/functions/addToLabelCollection.d.ts +22 -0
- package/dist/whatsapp/functions/blockContact.d.ts +30 -0
- package/dist/whatsapp/functions/calculateFilehashFromBlob.d.ts +19 -0
- package/dist/whatsapp/functions/canEditMsg.d.ts +20 -0
- package/dist/whatsapp/functions/canReplyMsg.d.ts +20 -0
- package/dist/whatsapp/functions/changeOptInStatusForExternalWebBeta.d.ts +19 -0
- package/dist/whatsapp/functions/collections.d.ts +37 -0
- package/dist/whatsapp/functions/colorIndexToHex.d.ts +20 -0
- package/dist/whatsapp/functions/contactFunctions.d.ts +140 -0
- package/dist/whatsapp/functions/createFanoutMsgStanza.d.ts +24 -0
- package/dist/whatsapp/functions/createGroup.d.ts +28 -0
- package/dist/whatsapp/functions/createMsgProtobuf.d.ts +25 -0
- package/dist/whatsapp/functions/createNewsletterQuery.d.ts +23 -0
- package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +29 -0
- package/dist/whatsapp/functions/currencyForCountryShortcode.d.ts +19 -0
- package/dist/whatsapp/functions/deleteNewsletter.d.ts +19 -0
- package/dist/whatsapp/functions/editBusinessProfile.d.ts +20 -0
- package/dist/whatsapp/functions/editNewsletterMetadataAction.d.ts +28 -0
- package/dist/whatsapp/functions/encodeMaybeMediaType.d.ts +19 -0
- package/dist/whatsapp/functions/encryptAndSendGroupMsg.d.ts +22 -0
- package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +34 -0
- package/dist/whatsapp/functions/encryptAndSendSenderKeyMsg.d.ts +34 -0
- package/dist/whatsapp/functions/encryptMsgProtobuf.d.ts +23 -0
- package/dist/whatsapp/functions/fetchLinkPreview.d.ts +48 -0
- package/dist/whatsapp/functions/findChat.d.ts +22 -0
- package/dist/whatsapp/functions/findCommonGroups.d.ts +21 -0
- package/dist/whatsapp/functions/findFirstWebLink.d.ts +21 -0
- package/dist/whatsapp/functions/forwardMessagesToChats.d.ts +20 -0
- package/dist/whatsapp/functions/frontendFireAndForget.d.ts +19 -0
- package/dist/whatsapp/functions/genLinkDeviceCodeForPhoneNumber.d.ts +19 -0
- package/dist/whatsapp/functions/genMinimalLinkPreview.d.ts +22 -0
- package/dist/whatsapp/functions/generateVideoThumbsAndDuration.d.ts +34 -0
- package/dist/whatsapp/functions/getABPropConfigValue.d.ts +21 -0
- package/dist/whatsapp/functions/getAsMms.d.ts +20 -0
- package/dist/whatsapp/functions/getCommunityParticipants.d.ts +20 -0
- package/dist/whatsapp/functions/getCountryShortcodeByPhone.d.ts +19 -0
- package/dist/whatsapp/functions/getCurrentLid.d.ts +21 -0
- package/dist/whatsapp/functions/getEphemeralFields.d.ts +24 -0
- package/dist/whatsapp/functions/getFanOutList.d.ts +24 -0
- package/dist/whatsapp/functions/getGroupSenderKeyList.d.ts +30 -0
- package/dist/whatsapp/functions/getGroupSizeLimit.d.ts +19 -0
- package/dist/whatsapp/functions/getHistorySyncProgress.d.ts +20 -0
- package/dist/whatsapp/functions/getMembershipApprovalRequests.d.ts +19 -0
- package/dist/whatsapp/functions/getNextLabelId.d.ts +18 -0
- package/dist/whatsapp/functions/getNumChatsPinned.d.ts +21 -0
- package/dist/whatsapp/functions/getOrderInfo.d.ts +20 -0
- package/dist/whatsapp/functions/getParticipants.d.ts +29 -0
- package/dist/whatsapp/functions/getPushname.d.ts +19 -0
- package/dist/whatsapp/functions/getQuotedMsgObj.d.ts +20 -0
- package/dist/whatsapp/functions/getReactions.d.ts +37 -0
- package/dist/whatsapp/functions/getSearchContext.d.ts +28 -0
- package/dist/whatsapp/functions/getVotes.d.ts +22 -0
- package/dist/whatsapp/functions/getWhatsAppWebExternalBetaJoinedIdb.d.ts +21 -0
- package/dist/whatsapp/functions/groupParticipants.d.ts +42 -0
- package/dist/whatsapp/functions/handleAck.d.ts +65 -0
- package/dist/whatsapp/functions/handleSingleMsg.d.ts +21 -0
- package/dist/whatsapp/functions/index.d.ts +134 -0
- package/dist/whatsapp/functions/initializeAltDeviceLinking.d.ts +19 -0
- package/dist/whatsapp/functions/isAnimatedWebp.d.ts +19 -0
- package/dist/whatsapp/functions/isAuthenticated.d.ts +27 -0
- package/dist/whatsapp/functions/isLegitErrorStack.d.ts +19 -0
- package/dist/whatsapp/functions/isRegistered.d.ts +19 -0
- package/dist/whatsapp/functions/isUnreadTypeMsg.d.ts +20 -0
- package/dist/whatsapp/functions/joinGroupViaInvite.d.ts +22 -0
- package/dist/whatsapp/functions/keepMessage.d.ts +23 -0
- package/dist/whatsapp/functions/labelAddAction.d.ts +20 -0
- package/dist/whatsapp/functions/markSeen.d.ts +34 -0
- package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +23 -0
- package/dist/whatsapp/functions/membershipApprovalRequestAction.d.ts +22 -0
- package/dist/whatsapp/functions/msgDataFromMsgModel.d.ts +19 -0
- package/dist/whatsapp/functions/msgFindQuery.d.ts +28 -0
- package/dist/whatsapp/functions/muteNewsletter.d.ts +19 -0
- package/dist/whatsapp/functions/processRawAudioVideo.d.ts +28 -0
- package/dist/whatsapp/functions/processRawMedia.d.ts +26 -0
- package/dist/whatsapp/functions/processRawSticker.d.ts +26 -0
- package/dist/whatsapp/functions/productVisibilitySet.d.ts +21 -0
- package/dist/whatsapp/functions/products.d.ts +43 -0
- package/dist/whatsapp/functions/profilePic.d.ts +36 -0
- package/dist/whatsapp/functions/queryAllGroups.d.ts +42 -0
- package/dist/whatsapp/functions/queryGroupInviteCode.d.ts +22 -0
- package/dist/whatsapp/functions/queryNewsletterMetadataByJid.d.ts +32 -0
- package/dist/whatsapp/functions/randomHex.d.ts +20 -0
- package/dist/whatsapp/functions/randomId.d.ts +22 -0
- package/dist/whatsapp/functions/resetGroupInviteCode.d.ts +22 -0
- package/dist/whatsapp/functions/sendClear.d.ts +21 -0
- package/dist/whatsapp/functions/sendCreateCommunity.d.ts +44 -0
- package/dist/whatsapp/functions/sendCreateGroup.d.ts +32 -0
- package/dist/whatsapp/functions/sendDelete.d.ts +21 -0
- package/dist/whatsapp/functions/sendExitGroup.d.ts +21 -0
- package/dist/whatsapp/functions/sendGroupParticipants.d.ts +50 -0
- package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +20 -0
- package/dist/whatsapp/functions/sendNewsletterMessageJob.d.ts +28 -0
- package/dist/whatsapp/functions/sendPinInChatMsg.d.ts +25 -0
- package/dist/whatsapp/functions/sendQueryExists.d.ts +36 -0
- package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +46 -0
- package/dist/whatsapp/functions/sendQueryGroupInviteCode.d.ts +18 -0
- package/dist/whatsapp/functions/sendReactionToMsg.d.ts +21 -0
- package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +20 -0
- package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +20 -0
- package/dist/whatsapp/functions/setArchive.d.ts +31 -0
- package/dist/whatsapp/functions/setGroup.d.ts +29 -0
- package/dist/whatsapp/functions/setPin.d.ts +23 -0
- package/dist/whatsapp/functions/setPushname.d.ts +19 -0
- package/dist/whatsapp/functions/status.d.ts +31 -0
- package/dist/whatsapp/functions/syncABPropsTask.d.ts +19 -0
- package/dist/whatsapp/functions/typeAttributeFromProtobuf.d.ts +22 -0
- package/dist/whatsapp/functions/unixTime.d.ts +23 -0
- package/dist/whatsapp/functions/unmuteNewsletter.d.ts +19 -0
- package/dist/whatsapp/functions/updateCartEnabled.d.ts +19 -0
- package/dist/whatsapp/functions/updateDBForGroupAction.d.ts +50 -0
- package/dist/whatsapp/functions/updateNewsletterMsgRecord.d.ts +20 -0
- package/dist/whatsapp/functions/updateParticipants.d.ts +27 -0
- package/dist/whatsapp/functions/uploadMedia.d.ts +19 -0
- package/dist/whatsapp/functions/uploadProductImage.d.ts +20 -0
- package/dist/whatsapp/functions/uploadThumbnail.d.ts +38 -0
- package/dist/whatsapp/functions/upsertVotes.d.ts +29 -0
- package/dist/whatsapp/index.d.ts +25 -0
- package/dist/whatsapp/misc/Base64.d.ts +27 -0
- package/dist/whatsapp/misc/Browser.d.ts +34 -0
- package/dist/whatsapp/misc/ChatPresence.d.ts +28 -0
- package/dist/whatsapp/misc/Cmd.d.ts +159 -0
- package/dist/whatsapp/misc/Conn.d.ts +20 -0
- package/dist/whatsapp/misc/Constants.d.ts +48 -0
- package/dist/whatsapp/misc/EventEmitter.d.ts +107 -0
- package/dist/whatsapp/misc/ImageUtils.d.ts +26 -0
- package/dist/whatsapp/misc/IsOfficialClient.d.ts +21 -0
- package/dist/whatsapp/misc/MediaBlobCache.d.ts +34 -0
- package/dist/whatsapp/misc/MediaEntry.d.ts +37 -0
- package/dist/whatsapp/misc/MediaObject.d.ts +67 -0
- package/dist/whatsapp/misc/MediaObjectUtil.d.ts +22 -0
- package/dist/whatsapp/misc/MediaPrep.d.ts +48 -0
- package/dist/whatsapp/misc/MediaUtils.d.ts +24 -0
- package/dist/whatsapp/misc/MsgKey.d.ts +47 -0
- package/dist/whatsapp/misc/MsgLoadState.d.ts +36 -0
- package/dist/whatsapp/misc/NetworkStatus.d.ts +20 -0
- package/dist/whatsapp/misc/OpaqueData.d.ts +43 -0
- package/dist/whatsapp/misc/ProductCatalogSession.d.ts +27 -0
- package/dist/whatsapp/misc/ServerProps.d.ts +20 -0
- package/dist/whatsapp/misc/Socket.d.ts +20 -0
- package/dist/whatsapp/misc/Stream.d.ts +20 -0
- package/dist/whatsapp/misc/UserPrefs.d.ts +39 -0
- package/dist/whatsapp/misc/VCard.d.ts +29 -0
- package/dist/whatsapp/misc/Wid.d.ts +68 -0
- package/dist/whatsapp/misc/WidFactory.d.ts +33 -0
- package/dist/whatsapp/misc/index.d.ts +42 -0
- package/dist/whatsapp/models/AggReactionsModel.d.ts +41 -0
- package/dist/whatsapp/models/AttachMediaModel.d.ts +73 -0
- package/dist/whatsapp/models/BlocklistModel.d.ts +41 -0
- package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +41 -0
- package/dist/whatsapp/models/BusinessProfileModel.d.ts +54 -0
- package/dist/whatsapp/models/CallModel.d.ts +53 -0
- package/dist/whatsapp/models/CallParticipantModel.d.ts +50 -0
- package/dist/whatsapp/models/CartItemModel.d.ts +43 -0
- package/dist/whatsapp/models/CartModel.d.ts +44 -0
- package/dist/whatsapp/models/CatalogModel.d.ts +53 -0
- package/dist/whatsapp/models/ChatModel.d.ts +201 -0
- package/dist/whatsapp/models/ChatPreferenceModel.d.ts +43 -0
- package/dist/whatsapp/models/ChatstateModel.d.ts +44 -0
- package/dist/whatsapp/models/ConnModel.d.ts +72 -0
- package/dist/whatsapp/models/ContactModel.d.ts +230 -0
- package/dist/whatsapp/models/ConversionTupleModel.d.ts +45 -0
- package/dist/whatsapp/models/EmojiVariantModel.d.ts +37 -0
- package/dist/whatsapp/models/GroupMetadataModel.d.ts +101 -0
- package/dist/whatsapp/models/HistorySyncProgressModel.d.ts +40 -0
- package/dist/whatsapp/models/LabelItemModel.d.ts +39 -0
- package/dist/whatsapp/models/LabelModel.d.ts +41 -0
- package/dist/whatsapp/models/MediaDataModel.d.ts +82 -0
- package/dist/whatsapp/models/Model.d.ts +63 -0
- package/dist/whatsapp/models/ModelChatBase.d.ts +45 -0
- package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +39 -0
- package/dist/whatsapp/models/MsgInfoModel.d.ts +52 -0
- package/dist/whatsapp/models/MsgInfoParticipantModel.d.ts +41 -0
- package/dist/whatsapp/models/MsgModel.d.ts +392 -0
- package/dist/whatsapp/models/MuteModel.d.ts +54 -0
- package/dist/whatsapp/models/NetworkStatusModel.d.ts +43 -0
- package/dist/whatsapp/models/OrderItemModel.d.ts +47 -0
- package/dist/whatsapp/models/OrderModel.d.ts +48 -0
- package/dist/whatsapp/models/ParticipantModel.d.ts +42 -0
- package/dist/whatsapp/models/PinInChatModel.d.ts +50 -0
- package/dist/whatsapp/models/PresenceModel.d.ts +53 -0
- package/dist/whatsapp/models/ProductCollModel.d.ts +45 -0
- package/dist/whatsapp/models/ProductImageModel.d.ts +45 -0
- package/dist/whatsapp/models/ProductMessageListModel.d.ts +52 -0
- package/dist/whatsapp/models/ProductModel.d.ts +69 -0
- package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +55 -0
- package/dist/whatsapp/models/QuickReplyModel.d.ts +45 -0
- package/dist/whatsapp/models/ReactionsModel.d.ts +49 -0
- package/dist/whatsapp/models/ReactionsSendersModel.d.ts +49 -0
- package/dist/whatsapp/models/RecentEmojiModel.d.ts +33 -0
- package/dist/whatsapp/models/RecentStickerModel.d.ts +39 -0
- package/dist/whatsapp/models/ReplyButtonModel.d.ts +38 -0
- package/dist/whatsapp/models/ServerPropsModel.d.ts +40 -0
- package/dist/whatsapp/models/SocketModel.d.ts +116 -0
- package/dist/whatsapp/models/StatusModel.d.ts +41 -0
- package/dist/whatsapp/models/StatusV3Model.d.ts +63 -0
- package/dist/whatsapp/models/StickerModel.d.ts +56 -0
- package/dist/whatsapp/models/StickerPackModel.d.ts +56 -0
- package/dist/whatsapp/models/StreamModel.d.ts +65 -0
- package/dist/whatsapp/models/TemplateButtonModel.d.ts +42 -0
- package/dist/whatsapp/models/UnreadMentionModel.d.ts +37 -0
- package/dist/whatsapp/models/index.d.ts +70 -0
- package/dist/whatsapp/multidevice/adv.d.ts +32 -0
- package/dist/whatsapp/multidevice/index.d.ts +18 -0
- package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +33 -0
- package/dist/whatsapp/multidevice/waSignalStore.d.ts +76 -0
- package/dist/whatsapp/stores.d.ts +128 -0
- package/dist/whatsapp/websocket/WapNode.d.ts +29 -0
- package/dist/whatsapp/websocket/ensureE2ESessions.d.ts +20 -0
- package/dist/whatsapp/websocket/generateId.d.ts +19 -0
- package/dist/whatsapp/websocket/index.d.ts +23 -0
- package/dist/whatsapp/websocket/sendSmaxStanza.d.ts +20 -0
- package/dist/whatsapp/websocket/smax.d.ts +22 -0
- package/dist/whatsapp/websocket/startWebComms.d.ts +19 -0
- package/dist/whatsapp/websocket/stopComms.d.ts +20 -0
- package/dist/whatsapp/websocket/wap.d.ts +22 -0
- package/dist/wppconnect-wa.js +2 -0
- package/dist/wppconnect-wa.js.LICENSE.txt +90 -0
- package/package.json +91 -0
- package/playwright.config.ts +39 -0
- package/storageState.json +4 -0
- package/tests/check-auth.ts +39 -0
- package/tests/global.d.ts +24 -0
- package/tests/prepare.ts +40 -0
- package/tests/tsconfig.json +7 -0
- package/tests/wpp-test.ts +78 -0
|
@@ -0,0 +1,63 @@
|
|
|
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 { Stringable } from '../../types';
|
|
17
|
+
import { WritableProperties } from '../../util';
|
|
18
|
+
import { EventEmitter } from '../misc';
|
|
19
|
+
export type ModelProxy<P, S, D> = P & S & Readonly<D> & {
|
|
20
|
+
readonly attributes: P & S;
|
|
21
|
+
readonly isState: true;
|
|
22
|
+
readonly mirrorMask: {
|
|
23
|
+
[key in keyof (P & S & D) as `change:${string & key}`]: number;
|
|
24
|
+
};
|
|
25
|
+
toJSON(): P;
|
|
26
|
+
serialize(): P;
|
|
27
|
+
};
|
|
28
|
+
export type ModelPropertiesContructor<Model, K extends keyof Model = any> = Partial<WritableProperties<Model>> & Required<WritableProperties<Pick<Model, K>>>;
|
|
29
|
+
export interface ModelOptions {
|
|
30
|
+
_internalInitializationDoNotUse?: any;
|
|
31
|
+
collection?: any;
|
|
32
|
+
merge?: any;
|
|
33
|
+
parent?: any;
|
|
34
|
+
silent?: any;
|
|
35
|
+
}
|
|
36
|
+
/** @whatsapp 11290
|
|
37
|
+
* @whatsapp 411290 >= 2.2222.8
|
|
38
|
+
*/
|
|
39
|
+
export declare class Model<Collection = undefined> extends EventEmitter {
|
|
40
|
+
static Proxy: string;
|
|
41
|
+
static idClass?: any;
|
|
42
|
+
static allowedIds?: any[];
|
|
43
|
+
parent?: any;
|
|
44
|
+
collection?: Collection;
|
|
45
|
+
proxyName: string;
|
|
46
|
+
constructor(proterties?: any, options?: any);
|
|
47
|
+
initialize(): void;
|
|
48
|
+
incObservers(e?: boolean): void;
|
|
49
|
+
decObservers(): void;
|
|
50
|
+
hasObservers(): boolean;
|
|
51
|
+
addChild(id: Stringable, context: {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}): void;
|
|
54
|
+
get<T extends keyof this>(attr: T): this[T];
|
|
55
|
+
set(...args: any): any;
|
|
56
|
+
hasUnfiredChanges(): boolean;
|
|
57
|
+
unset(ids: Stringable | Stringable[], t?: any): void;
|
|
58
|
+
clear(): void;
|
|
59
|
+
delete(): void;
|
|
60
|
+
reset(): void;
|
|
61
|
+
getDefault<T extends keyof this>(attr: T): any;
|
|
62
|
+
static isIdType(e: any): boolean;
|
|
63
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { ChatCollection } from '../collections';
|
|
17
|
+
import { MsgKey, MsgLoad, Wid } from '../misc';
|
|
18
|
+
import { Model } from './Model';
|
|
19
|
+
import { MsgModel } from './MsgModel';
|
|
20
|
+
export interface PropsChatBase {
|
|
21
|
+
id: Wid;
|
|
22
|
+
pendingMsgs: boolean;
|
|
23
|
+
labels?: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface SessionChatBase {
|
|
26
|
+
msgChunks: MsgLoad[];
|
|
27
|
+
lastReceivedKey?: MsgKey;
|
|
28
|
+
unreadMsgAnchor: any;
|
|
29
|
+
disableUnreadAnchor: any;
|
|
30
|
+
msgsLength: number;
|
|
31
|
+
msgsChanged: number;
|
|
32
|
+
}
|
|
33
|
+
/** @whatsapp 58492
|
|
34
|
+
* @whatsapp 558492 >= 2.2222.8
|
|
35
|
+
*/
|
|
36
|
+
export declare class ModelChatBase extends Model<ChatCollection> {
|
|
37
|
+
msgs: MsgLoad;
|
|
38
|
+
onEmptyMRM(): void;
|
|
39
|
+
removeMsg(msg: MsgModel): void;
|
|
40
|
+
getAllCMCs(): MsgLoad[];
|
|
41
|
+
getAllMsgs(): MsgModel[];
|
|
42
|
+
replaceMsgsCollection(collecton: MsgLoad): void;
|
|
43
|
+
removeMsgsCollection(collecton: MsgLoad): void;
|
|
44
|
+
notifyMsgCollectionMerge(...args: any[]): void;
|
|
45
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { MsgKey } from '../misc';
|
|
17
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
18
|
+
interface Props {
|
|
19
|
+
id: MsgKey;
|
|
20
|
+
unsyncedButtonReplies?: any;
|
|
21
|
+
}
|
|
22
|
+
interface Session {
|
|
23
|
+
stale?: any;
|
|
24
|
+
}
|
|
25
|
+
interface Derived {
|
|
26
|
+
}
|
|
27
|
+
/** @whatsapp 52846
|
|
28
|
+
* @whatsapp 252846 >= 2.2222.8
|
|
29
|
+
*/
|
|
30
|
+
export declare interface MsgButtonReplyMsgModel extends ModelProxy<Props, Session, Derived> {
|
|
31
|
+
}
|
|
32
|
+
/** @whatsapp 52846
|
|
33
|
+
* @whatsapp 252846 >= 2.2222.8
|
|
34
|
+
*/
|
|
35
|
+
export declare class MsgButtonReplyMsgModel extends Model {
|
|
36
|
+
idClass: typeof MsgKey;
|
|
37
|
+
constructor(proterties?: ModelPropertiesContructor<MsgButtonReplyMsgModel>, options?: ModelOptions);
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { MsgInfoCollection, MsgInfoParticipantCollection } from '../collections';
|
|
17
|
+
import { MsgKey } from '../misc';
|
|
18
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
19
|
+
interface Props {
|
|
20
|
+
id: MsgKey;
|
|
21
|
+
usePlayReceipt?: any;
|
|
22
|
+
playedRemaining: number;
|
|
23
|
+
readRemaining: number;
|
|
24
|
+
deliveryRemaining: number;
|
|
25
|
+
deliveryPrivacyMode?: any;
|
|
26
|
+
}
|
|
27
|
+
interface Session {
|
|
28
|
+
stale?: any;
|
|
29
|
+
}
|
|
30
|
+
interface Derived {
|
|
31
|
+
settled?: any;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @whatsapp 54311
|
|
35
|
+
* @whatsapp 754311 >= 2.2222.8
|
|
36
|
+
* @whatsapp 738482 >= 2.2242.6
|
|
37
|
+
*/
|
|
38
|
+
export declare interface MsgInfoModel extends ModelProxy<Props, Session, Derived> {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @whatsapp 54311
|
|
42
|
+
* @whatsapp 738482 >= 2.2222.8
|
|
43
|
+
*/
|
|
44
|
+
export declare class MsgInfoModel extends Model<MsgInfoCollection> {
|
|
45
|
+
idClass: typeof MsgKey;
|
|
46
|
+
played: MsgInfoParticipantCollection;
|
|
47
|
+
read: MsgInfoParticipantCollection;
|
|
48
|
+
delivery: MsgInfoParticipantCollection;
|
|
49
|
+
constructor(proterties?: ModelPropertiesContructor<MsgInfoModel>, options?: ModelOptions);
|
|
50
|
+
getCollection(): MsgInfoCollection;
|
|
51
|
+
}
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { MsgInfoCollection } from '../collections';
|
|
17
|
+
import { Wid } from '../misc';
|
|
18
|
+
import { ContactModel } from './ContactModel';
|
|
19
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
20
|
+
interface Props {
|
|
21
|
+
id: Wid;
|
|
22
|
+
t: number;
|
|
23
|
+
}
|
|
24
|
+
interface Session {
|
|
25
|
+
contact: ContactModel;
|
|
26
|
+
}
|
|
27
|
+
interface Derived {
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @whatsapp 738482 >= 2.2242.6
|
|
31
|
+
*/
|
|
32
|
+
export declare interface MsgInfoParticipantModel extends ModelProxy<Props, Session, Derived> {
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @whatsapp 738482 >= 2.2242.6
|
|
36
|
+
*/
|
|
37
|
+
export declare class MsgInfoParticipantModel extends Model<MsgInfoCollection> {
|
|
38
|
+
constructor(proterties?: ModelPropertiesContructor<MsgInfoParticipantModel>, options?: ModelOptions);
|
|
39
|
+
getCollection(): MsgInfoCollection;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,392 @@
|
|
|
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 { TextFontStyle } from '../../enums';
|
|
17
|
+
import { ButtonCollection, MsgCollection, TemplateButtonCollection } from '../collections';
|
|
18
|
+
import { ACK } from '../enums';
|
|
19
|
+
import { MediaObject, MsgKey, Wid } from '../misc';
|
|
20
|
+
import { ChatModel, MediaDataModel } from '.';
|
|
21
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
22
|
+
interface Props {
|
|
23
|
+
id: MsgKey;
|
|
24
|
+
rowId?: any;
|
|
25
|
+
serverId?: number;
|
|
26
|
+
body?: string;
|
|
27
|
+
type?: string;
|
|
28
|
+
subtype?: string | null;
|
|
29
|
+
t?: number;
|
|
30
|
+
notifyName?: any;
|
|
31
|
+
from?: Wid;
|
|
32
|
+
to?: Wid;
|
|
33
|
+
author?: Wid;
|
|
34
|
+
self?: string;
|
|
35
|
+
/**
|
|
36
|
+
* See {@link Constants}
|
|
37
|
+
*/
|
|
38
|
+
ack?: ACK;
|
|
39
|
+
invis?: any;
|
|
40
|
+
isNewMsg: boolean;
|
|
41
|
+
star?: any;
|
|
42
|
+
recvFresh?: any;
|
|
43
|
+
caption?: string;
|
|
44
|
+
interactiveAnnotations?: any;
|
|
45
|
+
clientUrl?: any;
|
|
46
|
+
loc?: any;
|
|
47
|
+
lat?: number;
|
|
48
|
+
lng?: number;
|
|
49
|
+
isLive: boolean;
|
|
50
|
+
accuracy?: number;
|
|
51
|
+
speed?: number;
|
|
52
|
+
degrees?: number;
|
|
53
|
+
comment?: string;
|
|
54
|
+
sequence?: number;
|
|
55
|
+
shareDuration?: number;
|
|
56
|
+
finalLat?: any;
|
|
57
|
+
finalLng?: any;
|
|
58
|
+
finalAccuracy?: any;
|
|
59
|
+
finalThumbnail?: any;
|
|
60
|
+
finalSpeed?: any;
|
|
61
|
+
finalDegrees?: any;
|
|
62
|
+
finalTimeOffset?: any;
|
|
63
|
+
deprecatedMms3Url?: any;
|
|
64
|
+
directPath?: any;
|
|
65
|
+
mimetype?: any;
|
|
66
|
+
waveform?: any;
|
|
67
|
+
duration?: number;
|
|
68
|
+
filehash?: any;
|
|
69
|
+
encFilehash?: any;
|
|
70
|
+
size?: any;
|
|
71
|
+
filename?: any;
|
|
72
|
+
streamingSidecar?: any;
|
|
73
|
+
mediaKey?: any;
|
|
74
|
+
mediaKeyTimestamp?: any;
|
|
75
|
+
pageCount?: any;
|
|
76
|
+
isGif: boolean;
|
|
77
|
+
gifAttribution?: any;
|
|
78
|
+
isViewOnce: boolean;
|
|
79
|
+
streamable?: any;
|
|
80
|
+
width?: any;
|
|
81
|
+
height?: any;
|
|
82
|
+
thumbnailDirectPath?: any;
|
|
83
|
+
thumbnailSha256?: any;
|
|
84
|
+
thumbnailEncSha256?: any;
|
|
85
|
+
thumbnailHeight?: any;
|
|
86
|
+
thumbnailWidth?: any;
|
|
87
|
+
scanLengths?: any;
|
|
88
|
+
scansSidecar?: any;
|
|
89
|
+
isFromTemplate: boolean;
|
|
90
|
+
devicesAdded?: any;
|
|
91
|
+
devicesRemoved?: any;
|
|
92
|
+
isThisDeviceAdded: boolean;
|
|
93
|
+
firstFrameLength?: any;
|
|
94
|
+
firstFrameSidecar?: any;
|
|
95
|
+
isAnimated: boolean;
|
|
96
|
+
canonicalUrl: boolean;
|
|
97
|
+
matchedText?: any;
|
|
98
|
+
thumbnail?: any;
|
|
99
|
+
thumbnailHQ?: any;
|
|
100
|
+
richPreviewType?: any;
|
|
101
|
+
doNotPlayInline?: any;
|
|
102
|
+
title?: string;
|
|
103
|
+
description?: any;
|
|
104
|
+
businessOwnerJid?: any;
|
|
105
|
+
productId?: any;
|
|
106
|
+
currencyCode?: any;
|
|
107
|
+
priceAmount1000?: any;
|
|
108
|
+
salePriceAmount1000?: any;
|
|
109
|
+
retailerId?: any;
|
|
110
|
+
url?: any;
|
|
111
|
+
productImageCount?: any;
|
|
112
|
+
sessionId?: any;
|
|
113
|
+
recipients?: any;
|
|
114
|
+
broadcast?: any;
|
|
115
|
+
/** @deprecated */
|
|
116
|
+
quotedMsgId?: MsgKey;
|
|
117
|
+
quotedMsg?: MsgModel;
|
|
118
|
+
quotedStanzaID?: any;
|
|
119
|
+
quotedRemoteJid?: any;
|
|
120
|
+
quotedParticipant?: any;
|
|
121
|
+
quotedGroupSubject?: any;
|
|
122
|
+
quotedParentGroupJid?: any;
|
|
123
|
+
mentionedJidList?: Wid[];
|
|
124
|
+
footer?: string;
|
|
125
|
+
hydratedButtons?: Array<{
|
|
126
|
+
index?: number;
|
|
127
|
+
quickReplyButton?: {
|
|
128
|
+
displayText: string;
|
|
129
|
+
id: string;
|
|
130
|
+
};
|
|
131
|
+
urlButton?: {
|
|
132
|
+
displayText: string;
|
|
133
|
+
url: string;
|
|
134
|
+
};
|
|
135
|
+
callButton?: {
|
|
136
|
+
displayText: string;
|
|
137
|
+
phoneNumber: string;
|
|
138
|
+
};
|
|
139
|
+
}>;
|
|
140
|
+
buttons?: TemplateButtonCollection;
|
|
141
|
+
selectedId?: any;
|
|
142
|
+
selectedIndex?: any;
|
|
143
|
+
multicast?: any;
|
|
144
|
+
urlText?: string | null;
|
|
145
|
+
urlNumber?: string | null;
|
|
146
|
+
clearMedia?: any;
|
|
147
|
+
isVcardOverMmsDocument: boolean;
|
|
148
|
+
vcardList?: any;
|
|
149
|
+
vcardFormattedName?: any;
|
|
150
|
+
protocolMessageKey?: any;
|
|
151
|
+
templateParams?: any;
|
|
152
|
+
textColor?: number;
|
|
153
|
+
backgroundColor?: number;
|
|
154
|
+
font?: TextFontStyle;
|
|
155
|
+
isForwarded: boolean;
|
|
156
|
+
forwardingScore?: any;
|
|
157
|
+
labels?: any;
|
|
158
|
+
paymentCurrency?: any;
|
|
159
|
+
paymentAmount1000?: any;
|
|
160
|
+
paymentMessageReceiverJid?: any;
|
|
161
|
+
paymentTransactionTimestamp?: any;
|
|
162
|
+
paymentStatus?: any;
|
|
163
|
+
paymentTxnStatus?: any;
|
|
164
|
+
paymentNoteMsg?: any;
|
|
165
|
+
paymentRequestMessageKey?: any;
|
|
166
|
+
paymentExpiryTimestamp?: any;
|
|
167
|
+
ephemeralStartTimestamp?: any;
|
|
168
|
+
ephemeralDuration?: number;
|
|
169
|
+
ephemeralSettingTimestamp?: number;
|
|
170
|
+
ephemeralOutOfSync?: any;
|
|
171
|
+
ephemeralSharedSecret?: any;
|
|
172
|
+
disappearingModeInitiator?: any;
|
|
173
|
+
bizPrivacyStatus?: any;
|
|
174
|
+
privacyModeWhenSent?: any;
|
|
175
|
+
verifiedBizName?: any;
|
|
176
|
+
inviteCode?: any;
|
|
177
|
+
inviteCodeExp?: any;
|
|
178
|
+
inviteGrp?: any;
|
|
179
|
+
inviteGrpName?: any;
|
|
180
|
+
inviteGrpJpegThum?: any;
|
|
181
|
+
sellerJid?: any;
|
|
182
|
+
message?: any;
|
|
183
|
+
orderTitle?: any;
|
|
184
|
+
itemCount?: any;
|
|
185
|
+
orderId?: any;
|
|
186
|
+
surface?: any;
|
|
187
|
+
status?: any;
|
|
188
|
+
token?: any;
|
|
189
|
+
totalAmount1000?: any;
|
|
190
|
+
totalCurrencyCode?: any;
|
|
191
|
+
historySyncMetaData?: any;
|
|
192
|
+
mdDowngrade?: any;
|
|
193
|
+
isCaptionByUser: boolean;
|
|
194
|
+
isSendFailure: boolean;
|
|
195
|
+
appStateSyncKeyShare?: any;
|
|
196
|
+
appStateSyncKeyRequest?: any;
|
|
197
|
+
appStateFatalExceptionNotification?: any;
|
|
198
|
+
broadcastParticipants?: any;
|
|
199
|
+
broadcastEphSettings?: any;
|
|
200
|
+
broadcastId?: any;
|
|
201
|
+
ctwaContext?: any;
|
|
202
|
+
list?: {
|
|
203
|
+
buttonText: string;
|
|
204
|
+
description: string;
|
|
205
|
+
footerText?: string;
|
|
206
|
+
title?: string;
|
|
207
|
+
sections: Array<{
|
|
208
|
+
title: string;
|
|
209
|
+
rows: Array<{
|
|
210
|
+
title: string;
|
|
211
|
+
description: string;
|
|
212
|
+
rowId: string;
|
|
213
|
+
}>;
|
|
214
|
+
}>;
|
|
215
|
+
listType: number;
|
|
216
|
+
};
|
|
217
|
+
listResponse?: any;
|
|
218
|
+
productListItemCount?: any;
|
|
219
|
+
productHeaderImageRejected?: any;
|
|
220
|
+
isDynamicReplyButtonsMsg: boolean;
|
|
221
|
+
dynamicReplyButtons?: Array<{
|
|
222
|
+
buttonId: string;
|
|
223
|
+
buttonText: {
|
|
224
|
+
displayText: string;
|
|
225
|
+
};
|
|
226
|
+
type: number;
|
|
227
|
+
}>;
|
|
228
|
+
replyButtons?: ButtonCollection;
|
|
229
|
+
buttonsResponse?: any;
|
|
230
|
+
selectedButtonId?: string;
|
|
231
|
+
interactiveMessage?: any;
|
|
232
|
+
isMdHistoryMsg: boolean;
|
|
233
|
+
}
|
|
234
|
+
interface Session {
|
|
235
|
+
stale?: any;
|
|
236
|
+
sendDeferred?: any;
|
|
237
|
+
local?: true;
|
|
238
|
+
search?: any;
|
|
239
|
+
msgChunk?: any;
|
|
240
|
+
phoneUploading?: any;
|
|
241
|
+
startOfDay?: any;
|
|
242
|
+
startOfDaySkew?: any;
|
|
243
|
+
isQuotedMsgAvailable: boolean;
|
|
244
|
+
senderObj?: any;
|
|
245
|
+
mediaData?: MediaDataModel;
|
|
246
|
+
forwardedFromWeb?: any;
|
|
247
|
+
linksIndexParsed?: any;
|
|
248
|
+
quotedMsgKey?: MsgKey;
|
|
249
|
+
}
|
|
250
|
+
interface Derived {
|
|
251
|
+
/**
|
|
252
|
+
* @deprecated
|
|
253
|
+
*/
|
|
254
|
+
chat?: ChatModel;
|
|
255
|
+
hasTemplateButtons: boolean;
|
|
256
|
+
ephemeralExpirationTimestamp?: any;
|
|
257
|
+
isEphemeral: boolean;
|
|
258
|
+
isQuickReply: boolean;
|
|
259
|
+
isFutureproof: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* @deprecated
|
|
262
|
+
*/
|
|
263
|
+
isGroupMsg: boolean;
|
|
264
|
+
isStatusV3: boolean;
|
|
265
|
+
isPSA: boolean;
|
|
266
|
+
isRTL: boolean;
|
|
267
|
+
asProductInquiry?: any;
|
|
268
|
+
statusV3TextBg?: any;
|
|
269
|
+
isSentByMe: boolean;
|
|
270
|
+
isSentByMeFromWeb: boolean;
|
|
271
|
+
isInternational: boolean;
|
|
272
|
+
isNotification: boolean;
|
|
273
|
+
asGroupNotification?: any;
|
|
274
|
+
asBroadcastNotification?: any;
|
|
275
|
+
isBizNotification: boolean;
|
|
276
|
+
asProduct?: any;
|
|
277
|
+
asAlbumAsset?: any;
|
|
278
|
+
asGroupedSticker?: any;
|
|
279
|
+
isMedia: boolean;
|
|
280
|
+
asDoc?: any;
|
|
281
|
+
asImage?: any;
|
|
282
|
+
asVideo?: any;
|
|
283
|
+
asMms?: any;
|
|
284
|
+
asPollCreation?: any;
|
|
285
|
+
asPollUpdate?: any;
|
|
286
|
+
asUrl?: any;
|
|
287
|
+
asRevoked?: any;
|
|
288
|
+
asViewOnce?: any;
|
|
289
|
+
asVisualMedia?: any;
|
|
290
|
+
numTimesForwarded?: any;
|
|
291
|
+
isFrequentlyForwarded: boolean;
|
|
292
|
+
eventType?: any;
|
|
293
|
+
sender?: Wid;
|
|
294
|
+
text?: any;
|
|
295
|
+
containsEmoji?: any;
|
|
296
|
+
isFailed: boolean;
|
|
297
|
+
vcard?: any;
|
|
298
|
+
isUnsentMedia: boolean;
|
|
299
|
+
dir?: any;
|
|
300
|
+
rtl?: any;
|
|
301
|
+
linkPreview?: {
|
|
302
|
+
title?: string;
|
|
303
|
+
description?: string;
|
|
304
|
+
canonicalUrl?: string;
|
|
305
|
+
matchedText: string;
|
|
306
|
+
richPreviewType: number;
|
|
307
|
+
thumbnail?: string;
|
|
308
|
+
doNotPlayInline: boolean;
|
|
309
|
+
};
|
|
310
|
+
isGroupsV4InviteExpired: boolean;
|
|
311
|
+
isPersistent: boolean;
|
|
312
|
+
isRevokedByMe: boolean;
|
|
313
|
+
isUnreadType: boolean;
|
|
314
|
+
isUserCreatedType: boolean;
|
|
315
|
+
supportsMessageFooter?: any;
|
|
316
|
+
supportsMessageFooterLinks?: any;
|
|
317
|
+
hasBodyOrFooter: boolean;
|
|
318
|
+
initialPageSize?: any;
|
|
319
|
+
productListHeaderImage?: any;
|
|
320
|
+
pollInvalidated?: boolean;
|
|
321
|
+
pollName?: string;
|
|
322
|
+
pollOptions?: any;
|
|
323
|
+
pollSelectableOptionsCount?: number;
|
|
324
|
+
pollUpdateParentKey?: any;
|
|
325
|
+
nativeFlowName?: string;
|
|
326
|
+
interactivePayload?: any;
|
|
327
|
+
}
|
|
328
|
+
/** @whatsapp 17304 */
|
|
329
|
+
export declare interface MsgModel extends ModelProxy<Props, Session, Derived> {
|
|
330
|
+
}
|
|
331
|
+
/** @whatsapp 17304 */
|
|
332
|
+
export declare class MsgModel extends Model {
|
|
333
|
+
idClass: typeof MsgKey;
|
|
334
|
+
constructor(proterties: ModelPropertiesContructor<MsgModel, 'id'>, options?: ModelOptions);
|
|
335
|
+
mediaObject?: MediaObject;
|
|
336
|
+
getLinks(e?: number): any;
|
|
337
|
+
getHeaderLinks(): any;
|
|
338
|
+
getFooterLinks(): any;
|
|
339
|
+
getGalleryLinks(): any;
|
|
340
|
+
getSuspiciousLinks(): any;
|
|
341
|
+
hasSymbol(): boolean;
|
|
342
|
+
mayFail(): any;
|
|
343
|
+
isUnsentPhoneMsg(): boolean;
|
|
344
|
+
canReply?(): boolean;
|
|
345
|
+
canPrivateReply(): boolean;
|
|
346
|
+
canPrivateReplyInRestrictedGrp(): boolean;
|
|
347
|
+
canForward(): boolean;
|
|
348
|
+
canQuickForward(): boolean;
|
|
349
|
+
canStar(): boolean;
|
|
350
|
+
interactiveButtonsReleased(): any;
|
|
351
|
+
isGroupLeave(): boolean;
|
|
352
|
+
isTrusted(): boolean;
|
|
353
|
+
getVcardWids(): any;
|
|
354
|
+
getLocObject(): any;
|
|
355
|
+
resumeRemoteUpload(): any;
|
|
356
|
+
forceRMR(): any;
|
|
357
|
+
isForcingRMR(): boolean;
|
|
358
|
+
cancelDownload(): boolean;
|
|
359
|
+
resumeUpload(): any;
|
|
360
|
+
cancelUpload(): boolean;
|
|
361
|
+
waitForPhoneUpload(): any;
|
|
362
|
+
downloadMedia(e?: any): any;
|
|
363
|
+
applyUpdate(e?: any): any;
|
|
364
|
+
waitForPrep(): any;
|
|
365
|
+
/**
|
|
366
|
+
* @deprecated
|
|
367
|
+
* @whatsapp < 2.2245.8
|
|
368
|
+
*/
|
|
369
|
+
quotedMsgObj?(): any;
|
|
370
|
+
getQuotedMsgAdminGroupJid(): any;
|
|
371
|
+
msgContextInfo(chatId: Wid): any;
|
|
372
|
+
displayName(e?: any, t?: any): any;
|
|
373
|
+
isQuoted(e?: any): boolean;
|
|
374
|
+
isMentioned(e?: any): boolean;
|
|
375
|
+
mentionMap(): any;
|
|
376
|
+
updateAck(e?: any, t?: any): any;
|
|
377
|
+
avParams(): any;
|
|
378
|
+
resend(): any;
|
|
379
|
+
onCiphertextDecrypted(): any;
|
|
380
|
+
onViewOnceMediaStatusChanged(): any;
|
|
381
|
+
canRevoke(): boolean;
|
|
382
|
+
getWamMessageType(): any;
|
|
383
|
+
getWamMediaType(): any;
|
|
384
|
+
getForwardingScoreWhenForwarded(): any;
|
|
385
|
+
updateEphemeralStartTimestamp(e?: any): any;
|
|
386
|
+
isExpired(): boolean;
|
|
387
|
+
getCollection(): MsgCollection;
|
|
388
|
+
isDownloadable(): boolean;
|
|
389
|
+
safe(): any;
|
|
390
|
+
unsafe(): any;
|
|
391
|
+
}
|
|
392
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { MuteCollection } from '../collections';
|
|
17
|
+
import { Wid } from '../misc';
|
|
18
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
19
|
+
interface Props {
|
|
20
|
+
id: Wid;
|
|
21
|
+
expiration: number;
|
|
22
|
+
}
|
|
23
|
+
interface Session {
|
|
24
|
+
stale?: any;
|
|
25
|
+
promises?: any;
|
|
26
|
+
}
|
|
27
|
+
interface Derived {
|
|
28
|
+
isMuted: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** @whatsapp 40214
|
|
31
|
+
* @whatsapp 440214 >= 2.2222.8
|
|
32
|
+
*/
|
|
33
|
+
export declare interface MuteModel extends ModelProxy<Props, Session, Derived> {
|
|
34
|
+
}
|
|
35
|
+
/** @whatsapp 40214
|
|
36
|
+
* @whatsapp 440214 >= 2.2222.8
|
|
37
|
+
*/
|
|
38
|
+
export declare class MuteModel extends Model<MuteCollection> {
|
|
39
|
+
idClass: typeof Wid;
|
|
40
|
+
allowedIds?: any;
|
|
41
|
+
constructor(proterties?: ModelPropertiesContructor<MuteModel>, options?: ModelOptions);
|
|
42
|
+
setMute(expiration?: number, isAutoMuted?: boolean, sendDevice?: boolean): any;
|
|
43
|
+
mute(args: {
|
|
44
|
+
expiration: number;
|
|
45
|
+
sendDevice?: boolean;
|
|
46
|
+
isAutoMuted?: boolean;
|
|
47
|
+
}): Promise<number>;
|
|
48
|
+
canMute(): boolean;
|
|
49
|
+
unmute(args: {
|
|
50
|
+
sendDevice?: boolean;
|
|
51
|
+
}): Promise<void>;
|
|
52
|
+
getCollection(): MuteCollection;
|
|
53
|
+
}
|
|
54
|
+
export {};
|