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,61 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './AggReactionsCollection';
|
|
17
|
+
export * from './BaseCollection';
|
|
18
|
+
export * from './BlocklistCollection';
|
|
19
|
+
export * from './BusinessCategoriesResultCollection';
|
|
20
|
+
export * from './BusinessProfileCollection';
|
|
21
|
+
export * from './ButtonCollection';
|
|
22
|
+
export * from './CallCollection';
|
|
23
|
+
export * from './CartCollection';
|
|
24
|
+
export * from './CartItemCollection';
|
|
25
|
+
export * from './CatalogCollection';
|
|
26
|
+
export * from './ChatCollection';
|
|
27
|
+
export * from './ChatstateCollection';
|
|
28
|
+
export * from './Collection';
|
|
29
|
+
export * from './ContactCollection';
|
|
30
|
+
export * from './ContactCollection';
|
|
31
|
+
export * from './ContactCollection';
|
|
32
|
+
export * from './EmojiVariantCollection';
|
|
33
|
+
export * from './GroupMetadataCollection';
|
|
34
|
+
export * from './LabelCollection';
|
|
35
|
+
export * from './LabelItemCollection';
|
|
36
|
+
export * from './MsgCollection';
|
|
37
|
+
export * from './MsgInfoCollection';
|
|
38
|
+
export * from './MsgInfoParticipantCollection';
|
|
39
|
+
export * from './MuteCollection';
|
|
40
|
+
export * from './OrderCollection';
|
|
41
|
+
export * from './OrderItemCollection';
|
|
42
|
+
export * from './ParticipantCollection';
|
|
43
|
+
export * from './PinInChatCollection';
|
|
44
|
+
export * from './PresenceCollection';
|
|
45
|
+
export * from './ProductCollCollection';
|
|
46
|
+
export * from './ProductCollection';
|
|
47
|
+
export * from './ProductImageCollection';
|
|
48
|
+
export * from './ProductMessageListCollection';
|
|
49
|
+
export * from './ProfilePicThumbCollection';
|
|
50
|
+
export * from './QuickReplyCollection';
|
|
51
|
+
export * from './ReactionsCollection';
|
|
52
|
+
export * from './ReactionsSendersCollection';
|
|
53
|
+
export * from './RecentEmojiCollection';
|
|
54
|
+
export * from './RecentStickerCollection';
|
|
55
|
+
export * from './StarredMsgCollection';
|
|
56
|
+
export * from './StatusCollection';
|
|
57
|
+
export * from './StatusV3Collection';
|
|
58
|
+
export * from './StickerCollection';
|
|
59
|
+
export * from './StickerPackCollection';
|
|
60
|
+
export * from './StickerSearchCollection';
|
|
61
|
+
export * from './TemplateButtonCollection';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp 831914
|
|
18
|
+
*/
|
|
19
|
+
export declare const DROP_ATTR: any;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp 831914
|
|
18
|
+
*/
|
|
19
|
+
export declare const SANITIZED_VERSION_STR: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './DROP_ATTR';
|
|
17
|
+
export * from './SANITIZED_VERSION_STR';
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
/** @whatsapp 35470
|
|
17
|
+
* @whatsapp 69618 >= 2.2204.13
|
|
18
|
+
* @whatsapp 535470 >= 2.2222.8
|
|
19
|
+
*/
|
|
20
|
+
export declare enum ACK {
|
|
21
|
+
MD_DOWNGRADE = -7,
|
|
22
|
+
INACTIVE = -6,
|
|
23
|
+
CONTENT_UNUPLOADABLE = -5,
|
|
24
|
+
CONTENT_TOO_BIG = -4,
|
|
25
|
+
CONTENT_GONE = -3,
|
|
26
|
+
EXPIRED = -2,
|
|
27
|
+
FAILED = -1,
|
|
28
|
+
CLOCK = 0,
|
|
29
|
+
SENT = 1,
|
|
30
|
+
RECEIVED = 2,
|
|
31
|
+
READ = 3,
|
|
32
|
+
PLAYED = 4,
|
|
33
|
+
PEER = 5
|
|
34
|
+
}
|
|
35
|
+
/** @whatsapp 35470
|
|
36
|
+
* @whatsapp 69618 >= 2.2204.13
|
|
37
|
+
* @whatsapp 535470 >= 2.2222.8
|
|
38
|
+
*/
|
|
39
|
+
export declare enum EDIT_ATTR {
|
|
40
|
+
SENDER_REVOKE = 7,
|
|
41
|
+
ADMIN_REVOKE = 8
|
|
42
|
+
}
|
|
43
|
+
/** @whatsapp 35470
|
|
44
|
+
* @whatsapp 69618 >= 2.2204.13
|
|
45
|
+
* @whatsapp 535470 >= 2.2222.8
|
|
46
|
+
*/
|
|
47
|
+
export declare enum ACK_STRING {
|
|
48
|
+
SENDER = "sender",
|
|
49
|
+
DELIVERY = "delivery",
|
|
50
|
+
READ = "read",
|
|
51
|
+
PLAYED = "played",
|
|
52
|
+
INACTIVE = "inactive",
|
|
53
|
+
READ_SELF = "read-self",
|
|
54
|
+
PLAYED_SELF = "played-self"
|
|
55
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp 49835
|
|
18
|
+
* @whatsapp 749835 >= 2.2222.8
|
|
19
|
+
* @whatsapp 873297 >= 2.2230.8
|
|
20
|
+
*/
|
|
21
|
+
export declare enum CALL_STATES {
|
|
22
|
+
INCOMING_RING = "INCOMING_RING",
|
|
23
|
+
OUTGOING_RING = "OUTGOING_RING",
|
|
24
|
+
OUTGOING_CALLING = "OUTGOING_CALLING",
|
|
25
|
+
CONNECTING = "CONNECTING",
|
|
26
|
+
CONNECTION_LOST = "CONNECTION_LOST",
|
|
27
|
+
ACTIVE = "ACTIVE",
|
|
28
|
+
HANDLED_REMOTELY = "HANDLED_REMOTELY",
|
|
29
|
+
ENDED = "ENDED",
|
|
30
|
+
REJECTED = "REJECTED",
|
|
31
|
+
REMOTE_CALL_IN_PROGRESS = "REMOTE_CALL_IN_PROGRESS",
|
|
32
|
+
FAILED = "FAILED",
|
|
33
|
+
NOT_ANSWERED = "NOT_ANSWERED"
|
|
34
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/** @whatsapp 12380
|
|
17
|
+
* @whatsapp 69618 >= 2.2204.13
|
|
18
|
+
* @whatsapp 312380 >= 2.2222.8
|
|
19
|
+
*/
|
|
20
|
+
export declare enum GROUP_SETTING_TYPE {
|
|
21
|
+
ANNOUNCEMENT = "announcement",
|
|
22
|
+
RESTRICT = "restrict",
|
|
23
|
+
NO_FREQUENTLY_FORWARDED = "no_frequently_forwarded",
|
|
24
|
+
EPHEMERAL = "ephemeral"
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp 982015
|
|
18
|
+
*/
|
|
19
|
+
export declare enum KIC_ENTRY_POINT_TYPE {
|
|
20
|
+
CHAT_INFO = 1,
|
|
21
|
+
SEARCH = 2,
|
|
22
|
+
CHAT = 3,
|
|
23
|
+
MEDIA = 4,
|
|
24
|
+
DOCS = 5,
|
|
25
|
+
LINKS = 6
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
/** @whatsapp 83578
|
|
17
|
+
* @whatsapp 88950 >= 2.2218.4
|
|
18
|
+
* @whatsapp 788950 >= 2.2222.8
|
|
19
|
+
*/
|
|
20
|
+
export declare enum LogoutReason {
|
|
21
|
+
USER_INITIATED = "user_initiated",
|
|
22
|
+
SYNCD_FAILURE = "syncd_failure",
|
|
23
|
+
CRITICAL_SYNC_TIMEOUT = "critical_sync_timeout",
|
|
24
|
+
UNKNOWN_COMPANION = "unknown_companion",
|
|
25
|
+
CLIENT_VERSION_OUTDATED = "client_version_outdated",
|
|
26
|
+
SYNCD_ERROR_DURING_BOOTSTRAP = "syncd_error_during_bootstrap",
|
|
27
|
+
ACCOUNT_SYNC_ERROR = "account_sync_error",
|
|
28
|
+
CLIENT_FATAL_ERROR = "client_fatal_error",
|
|
29
|
+
UNKNOWN = "unknown"
|
|
30
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
/** @whatsapp 15461
|
|
17
|
+
* @whatsapp 69618 >= 2.2204.13
|
|
18
|
+
* @whatsapp 115461 >= 2.2222.8
|
|
19
|
+
*/
|
|
20
|
+
export declare enum MSG_TYPE {
|
|
21
|
+
NOTIFICATION = "notification",
|
|
22
|
+
NOTIFICATION_TEMPLATE = "notification_template",
|
|
23
|
+
GROUP_NOTIFICATION = "group_notification",
|
|
24
|
+
GP2 = "gp2",
|
|
25
|
+
BROADCAST_NOTIFICATION = "broadcast_notification",
|
|
26
|
+
E2E_NOTIFICATION = "e2e_notification",
|
|
27
|
+
CALL_LOG = "call_log",
|
|
28
|
+
PROTOCOL = "protocol",
|
|
29
|
+
CHAT = "chat",
|
|
30
|
+
LOCATION = "location",
|
|
31
|
+
PAYMENT = "payment",
|
|
32
|
+
VCARD = "vcard",
|
|
33
|
+
CIPHERTEXT = "ciphertext",
|
|
34
|
+
MULTI_VCARD = "multi_vcard",
|
|
35
|
+
REVOKED = "revoked",
|
|
36
|
+
OVERSIZED = "oversized",
|
|
37
|
+
GROUPS_V4_INVITE = "groups_v4_invite",
|
|
38
|
+
HSM = "hsm",
|
|
39
|
+
TEMPLATE_BUTTON_REPLY = "template_button_reply",
|
|
40
|
+
IMAGE = "image",
|
|
41
|
+
VIDEO = "video",
|
|
42
|
+
AUDIO = "audio",
|
|
43
|
+
PTT = "ptt",
|
|
44
|
+
STICKER = "sticker",
|
|
45
|
+
DOCUMENT = "document",
|
|
46
|
+
PRODUCT = "product",
|
|
47
|
+
ORDER = "order",
|
|
48
|
+
LIST = "list",
|
|
49
|
+
INTERACTIVE = "interactive",
|
|
50
|
+
LIST_RESPONSE = "list_response",
|
|
51
|
+
BUTTONS_RESPONSE = "buttons_response",
|
|
52
|
+
REACTION = "reaction",
|
|
53
|
+
NATIVE_FLOW = "native_flow",
|
|
54
|
+
UNKNOWN = "unknown"
|
|
55
|
+
}
|
|
56
|
+
/** @whatsapp 15461
|
|
57
|
+
* @whatsapp 69618 >= 2.2204.13
|
|
58
|
+
* @whatsapp 115461 >= 2.2222.8
|
|
59
|
+
*/
|
|
60
|
+
export declare const SYSTEM_MESSAGE_TYPES: string[];
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/** @whatsapp 58668 */
|
|
17
|
+
export declare enum OUTWARD_TYPES {
|
|
18
|
+
IMAGE = "image",
|
|
19
|
+
VIDEO = "video",
|
|
20
|
+
AUDIO = "audio",
|
|
21
|
+
PTT = "ptt",
|
|
22
|
+
PTV = "ptv",
|
|
23
|
+
STICKER = "sticker",
|
|
24
|
+
DOCUMENT = "document",
|
|
25
|
+
PRODUCT = "product",
|
|
26
|
+
UNKNOWN = "unknown"
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
/** @whatsapp WAWebPinMsgConstants >= 2.3000.1012170943
|
|
17
|
+
*/
|
|
18
|
+
export declare enum PIN_STATE {
|
|
19
|
+
INVALID = 0,
|
|
20
|
+
PIN = 1,
|
|
21
|
+
UNPIN = 2
|
|
22
|
+
}
|
|
@@ -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
|
+
/** @whatsapp 62583 */
|
|
17
|
+
export declare enum SOCKET_STATE {
|
|
18
|
+
OPENING = "OPENING",
|
|
19
|
+
PAIRING = "PAIRING",
|
|
20
|
+
UNPAIRED = "UNPAIRED",
|
|
21
|
+
UNPAIRED_IDLE = "UNPAIRED_IDLE",
|
|
22
|
+
CONNECTED = "CONNECTED",
|
|
23
|
+
TIMEOUT = "TIMEOUT",
|
|
24
|
+
CONFLICT = "CONFLICT",
|
|
25
|
+
UNLAUNCHED = "UNLAUNCHED",
|
|
26
|
+
PROXYBLOCK = "PROXYBLOCK",
|
|
27
|
+
TOS_BLOCK = "TOS_BLOCK",
|
|
28
|
+
SMB_TOS_BLOCK = "SMB_TOS_BLOCK",
|
|
29
|
+
DEPRECATED_VERSION = "DEPRECATED_VERSION"
|
|
30
|
+
}
|
|
31
|
+
/** @whatsapp 62583 */
|
|
32
|
+
export declare enum SOCKET_STREAM {
|
|
33
|
+
DISCONNECTED = "DISCONNECTED",
|
|
34
|
+
SYNCING = "SYNCING",
|
|
35
|
+
RESUMING = "RESUMING",
|
|
36
|
+
CONNECTED = "CONNECTED"
|
|
37
|
+
}
|
|
38
|
+
/** @whatsapp 62583 */
|
|
39
|
+
export declare enum WATCHED_SOCKET_STATE {
|
|
40
|
+
OPEN = "OPEN",
|
|
41
|
+
CLOSED = "CLOSED"
|
|
42
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/** @whatsapp 13705
|
|
17
|
+
* @whatsapp 413705 >= 2.2222.8
|
|
18
|
+
* @whatsapp 20551 >= 2.2228.4
|
|
19
|
+
*/
|
|
20
|
+
export declare enum SendMsgResult {
|
|
21
|
+
OK = "OK",
|
|
22
|
+
ERROR_NETWORK = "ERROR_NETWORK",
|
|
23
|
+
ERROR_EXPIRED = "ERROR_EXPIRED",
|
|
24
|
+
ERROR_CANCELLED = "ERROR_CANCELLED",
|
|
25
|
+
ERROR_UPLOAD = "ERROR_UPLOAD",
|
|
26
|
+
ERROR_UNKNOWN = "ERROR_UNKNOWN"
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './ACK';
|
|
17
|
+
export * from './CALL_STATES';
|
|
18
|
+
export * from './GROUP_SETTING_TYPE';
|
|
19
|
+
export * from './KIC_ENTRY_POINT_TYP';
|
|
20
|
+
export * from './LogoutReason';
|
|
21
|
+
export * from './MSG_TYPE';
|
|
22
|
+
export * from './OUTWARD_TYPES';
|
|
23
|
+
export * from './PIN_STATE';
|
|
24
|
+
export * from './SendMsgResult';
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { InferArgs, InferReturn } from '../util';
|
|
17
|
+
import * as webpack from '../webpack';
|
|
18
|
+
declare class CustomWeakMap extends WeakMap<object, string> {
|
|
19
|
+
protected stringMap: Map<string, string>;
|
|
20
|
+
delete(key: object | string): boolean;
|
|
21
|
+
get(key: object | string): string | undefined;
|
|
22
|
+
has(key: object | string): boolean;
|
|
23
|
+
set(key: object | string, value: string): this;
|
|
24
|
+
}
|
|
25
|
+
export declare const _moduleIdMap: CustomWeakMap;
|
|
26
|
+
/**
|
|
27
|
+
* The object of this function is to override the exports to create getters.
|
|
28
|
+
*
|
|
29
|
+
* You can export a single module or specific functions
|
|
30
|
+
*
|
|
31
|
+
* Note: To create a documented type, you can use `export declare` to define types only
|
|
32
|
+
*
|
|
33
|
+
* @param exports The exports variable
|
|
34
|
+
* @param properties A single name or a map of exported data
|
|
35
|
+
* @param condition The seach condition to find the module
|
|
36
|
+
*/
|
|
37
|
+
export declare function exportModule(exports: any, properties: string | {
|
|
38
|
+
[key: string]: null | undefined | string | string[];
|
|
39
|
+
}, condition: webpack.SearchModuleCondition): void;
|
|
40
|
+
export declare function exportProxyModel(exports: any, name: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* Wrap a exported function from a module
|
|
43
|
+
*
|
|
44
|
+
* @param func The original function
|
|
45
|
+
* @param callback A callback to wrap the function
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```typescript
|
|
49
|
+
*wrapModuleFunction(createMsgProtobuf, (func, ...args) => {
|
|
50
|
+
const [message] = args; // Extract arguments
|
|
51
|
+
const result = func(...args); // Call the original function
|
|
52
|
+
// Logic to change the result
|
|
53
|
+
return result; // The new return
|
|
54
|
+
});
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare function wrapModuleFunction<TFunc extends (...args: any[]) => any>(func: TFunc, callback: (func: TFunc, ...args: InferArgs<TFunc>) => InferReturn<TFunc>): void;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/**
|
|
18
|
+
* @whatsapp 355813
|
|
19
|
+
*/
|
|
20
|
+
export declare function GROUP_JID(jid: Wid): any;
|
|
21
|
+
export declare function CHAT_JID(jid: Wid): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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 { SendMsgResult } from '../enums';
|
|
17
|
+
import { ModelPropertiesContructor, MsgModel } from '../models';
|
|
18
|
+
/** @whatsapp 375399
|
|
19
|
+
*/
|
|
20
|
+
export declare function addAndSendMessageEdit(editMsg: MsgModel, message: ModelPropertiesContructor<MsgModel>): Promise<[Promise<MsgModel>, Promise<SendMsgResult>]>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { SendMsgResult } from '../enums';
|
|
17
|
+
import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
|
|
18
|
+
/** @whatsapp 75887
|
|
19
|
+
* @whatsapp 975887 >= 2.2222.8
|
|
20
|
+
* @whatsapp 623631 >= 2.2228.4
|
|
21
|
+
*/
|
|
22
|
+
export declare function addAndSendMsgToChat(chat: ChatModel, message: ModelPropertiesContructor<MsgModel>): Promise<[Promise<MsgModel>, Promise<SendMsgResult>]>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 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
|
+
/** @whatsapp 388536
|
|
17
|
+
*/
|
|
18
|
+
export declare function addToLabelCollection(e: any, t: any, i: any): Promise<any>;
|
|
19
|
+
export declare function createLabelItemId(e: any, t: any, r: any): Promise<any>;
|
|
20
|
+
export declare function getParentCollection(e: any): Promise<any>;
|
|
21
|
+
export declare function initializeLabels(e: any): Promise<any>;
|
|
22
|
+
export declare function removeLabelFromCollection(e: any, t: any, i: any): Promise<any>;
|