zalo-api-sdk 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/.prettierrc +5 -0
- package/.tmp-cache/_update-notifier-last-checked +0 -0
- package/CODE_OF_CONDUCT.md +157 -0
- package/CONTRIBUTING.md +491 -0
- package/LICENSE +21 -0
- package/README.md +421 -0
- package/SECURITY.md +82 -0
- package/commit-push.sh +79 -0
- package/deploy.sh +172 -0
- package/dist/Errors/ZaloApiError.d.ts +4 -0
- package/dist/Errors/ZaloApiError.js +7 -0
- package/dist/Errors/index.d.ts +1 -0
- package/dist/Errors/index.js +1 -0
- package/dist/apis/acceptFriendRequest.d.ts +2 -0
- package/dist/apis/acceptFriendRequest.js +28 -0
- package/dist/apis/addGroupBlockedMember.d.ts +2 -0
- package/dist/apis/addGroupBlockedMember.js +28 -0
- package/dist/apis/addGroupDeputy.d.ts +2 -0
- package/dist/apis/addGroupDeputy.js +30 -0
- package/dist/apis/addQuickMessage.d.ts +11 -0
- package/dist/apis/addQuickMessage.js +60 -0
- package/dist/apis/addReaction.d.ts +18 -0
- package/dist/apis/addReaction.js +294 -0
- package/dist/apis/addUnreadMark.d.ts +8 -0
- package/dist/apis/addUnreadMark.js +52 -0
- package/dist/apis/addUserToGroup.d.ts +5 -0
- package/dist/apis/addUserToGroup.js +34 -0
- package/dist/apis/blockUser.d.ts +2 -0
- package/dist/apis/blockUser.js +28 -0
- package/dist/apis/blockViewFeed.d.ts +2 -0
- package/dist/apis/blockViewFeed.js +30 -0
- package/dist/apis/changeAccountAvatar.d.ts +3 -0
- package/dist/apis/changeAccountAvatar.js +52 -0
- package/dist/apis/changeFriendAlias.d.ts +2 -0
- package/dist/apis/changeFriendAlias.js +27 -0
- package/dist/apis/changeGroupAvatar.d.ts +3 -0
- package/dist/apis/changeGroupAvatar.js +44 -0
- package/dist/apis/changeGroupName.d.ts +4 -0
- package/dist/apis/changeGroupName.js +32 -0
- package/dist/apis/changeGroupOwner.d.ts +4 -0
- package/dist/apis/changeGroupOwner.js +30 -0
- package/dist/apis/createAutoReply.d.ts +14 -0
- package/dist/apis/createAutoReply.js +37 -0
- package/dist/apis/createCatalog.d.ts +7 -0
- package/dist/apis/createCatalog.js +29 -0
- package/dist/apis/createGroup.d.ts +28 -0
- package/dist/apis/createGroup.js +43 -0
- package/dist/apis/createNoteGroup.d.ts +7 -0
- package/dist/apis/createNoteGroup.js +47 -0
- package/dist/apis/createPoll.d.ts +57 -0
- package/dist/apis/createPoll.js +40 -0
- package/dist/apis/createProductCatalog.d.ts +23 -0
- package/dist/apis/createProductCatalog.js +50 -0
- package/dist/apis/createReminder.d.ts +10 -0
- package/dist/apis/createReminder.js +63 -0
- package/dist/apis/custom.d.ts +9 -0
- package/dist/apis/custom.js +15 -0
- package/dist/apis/deleteAutoReply.d.ts +5 -0
- package/dist/apis/deleteAutoReply.js +29 -0
- package/dist/apis/deleteAvatar.d.ts +9 -0
- package/dist/apis/deleteAvatar.js +27 -0
- package/dist/apis/deleteCatalog.d.ts +2 -0
- package/dist/apis/deleteCatalog.js +28 -0
- package/dist/apis/deleteChat.d.ts +19 -0
- package/dist/apis/deleteChat.js +50 -0
- package/dist/apis/deleteMessage.d.ts +14 -0
- package/dist/apis/deleteMessage.js +52 -0
- package/dist/apis/deleteProductCatalog.d.ts +10 -0
- package/dist/apis/deleteProductCatalog.js +31 -0
- package/dist/apis/disableGroupLink.d.ts +2 -0
- package/dist/apis/disableGroupLink.js +24 -0
- package/dist/apis/disperseGroup.d.ts +2 -0
- package/dist/apis/disperseGroup.js +28 -0
- package/dist/apis/editNoteGroup.d.ts +32 -0
- package/dist/apis/editNoteGroup.js +40 -0
- package/dist/apis/editReminder.d.ts +18 -0
- package/dist/apis/editReminder.js +61 -0
- package/dist/apis/enableGroupLink.d.ts +6 -0
- package/dist/apis/enableGroupLink.js +25 -0
- package/dist/apis/fetchAccountInfo.d.ts +34 -0
- package/dist/apis/fetchAccountInfo.js +10 -0
- package/dist/apis/findUser.d.ts +15 -0
- package/dist/apis/findUser.js +40 -0
- package/dist/apis/forwardMessage.d.ts +26 -0
- package/dist/apis/forwardMessage.js +99 -0
- package/dist/apis/getAliasList.d.ts +8 -0
- package/dist/apis/getAliasList.js +27 -0
- package/dist/apis/getAllFriends.d.ts +34 -0
- package/dist/apis/getAllFriends.js +32 -0
- package/dist/apis/getAllGroups.d.ts +7 -0
- package/dist/apis/getAllGroups.js +10 -0
- package/dist/apis/getArchivedChatList.d.ts +5 -0
- package/dist/apis/getArchivedChatList.js +23 -0
- package/dist/apis/getAutoDeleteChat.d.ts +9 -0
- package/dist/apis/getAutoDeleteChat.js +21 -0
- package/dist/apis/getAutoReplyList.d.ts +6 -0
- package/dist/apis/getAutoReplyList.js +24 -0
- package/dist/apis/getAvatarList.d.ts +12 -0
- package/dist/apis/getAvatarList.js +28 -0
- package/dist/apis/getBizAccount.d.ts +19 -0
- package/dist/apis/getBizAccount.js +27 -0
- package/dist/apis/getCatalogList.d.ts +12 -0
- package/dist/apis/getCatalogList.js +32 -0
- package/dist/apis/getContext.d.ts +1 -0
- package/dist/apis/getContext.js +4 -0
- package/dist/apis/getCookie.d.ts +1 -0
- package/dist/apis/getCookie.js +9 -0
- package/dist/apis/getFriendBoardList.d.ts +5 -0
- package/dist/apis/getFriendBoardList.js +26 -0
- package/dist/apis/getFriendRequestStatus.d.ts +8 -0
- package/dist/apis/getFriendRequestStatus.js +25 -0
- package/dist/apis/getGroupBlockedMember.d.ts +17 -0
- package/dist/apis/getGroupBlockedMember.js +29 -0
- package/dist/apis/getGroupInfo.d.ts +43 -0
- package/dist/apis/getGroupInfo.js +32 -0
- package/dist/apis/getGroupLinkDetail.d.ts +6 -0
- package/dist/apis/getGroupLinkDetail.js +25 -0
- package/dist/apis/getGroupLinkInfo.d.ts +31 -0
- package/dist/apis/getGroupLinkInfo.js +28 -0
- package/dist/apis/getGroupMembersInfo.d.ts +17 -0
- package/dist/apis/getGroupMembersInfo.js +24 -0
- package/dist/apis/getHiddenConversations.d.ts +11 -0
- package/dist/apis/getHiddenConversations.js +23 -0
- package/dist/apis/getLabels.d.ts +15 -0
- package/dist/apis/getLabels.js +28 -0
- package/dist/apis/getListBoard.d.ts +15 -0
- package/dist/apis/getListBoard.js +45 -0
- package/dist/apis/getListReminder.d.ts +22 -0
- package/dist/apis/getListReminder.js +47 -0
- package/dist/apis/getMute.d.ts +13 -0
- package/dist/apis/getMute.js +22 -0
- package/dist/apis/getOwnId.d.ts +1 -0
- package/dist/apis/getOwnId.js +4 -0
- package/dist/apis/getPendingGroupMembers.d.ts +10 -0
- package/dist/apis/getPendingGroupMembers.js +27 -0
- package/dist/apis/getPinConversations.d.ts +5 -0
- package/dist/apis/getPinConversations.js +22 -0
- package/dist/apis/getPollDetail.d.ts +3 -0
- package/dist/apis/getPollDetail.js +30 -0
- package/dist/apis/getProductCatalogList.d.ts +14 -0
- package/dist/apis/getProductCatalogList.js +33 -0
- package/dist/apis/getQR.d.ts +4 -0
- package/dist/apis/getQR.js +29 -0
- package/dist/apis/getQuickMessage.d.ts +7 -0
- package/dist/apis/getQuickMessage.js +24 -0
- package/dist/apis/getReceivedFriendRequests.d.ts +35 -0
- package/dist/apis/getReceivedFriendRequests.js +22 -0
- package/dist/apis/getReminder.d.ts +13 -0
- package/dist/apis/getReminder.js +25 -0
- package/dist/apis/getReminderResponses.d.ts +5 -0
- package/dist/apis/getReminderResponses.js +24 -0
- package/dist/apis/getSentFriendRequest.d.ts +17 -0
- package/dist/apis/getSentFriendRequest.js +24 -0
- package/dist/apis/getStickers.d.ts +1 -0
- package/dist/apis/getStickers.js +40 -0
- package/dist/apis/getStickersDetail.d.ts +24 -0
- package/dist/apis/getStickersDetail.js +40 -0
- package/dist/apis/getUnreadMark.d.ts +14 -0
- package/dist/apis/getUnreadMark.js +30 -0
- package/dist/apis/getUserInfo.d.ts +39 -0
- package/dist/apis/getUserInfo.js +42 -0
- package/dist/apis/inviteUserToGroups.d.ts +10 -0
- package/dist/apis/inviteUserToGroups.js +30 -0
- package/dist/apis/joinGroupLink.d.ts +2 -0
- package/dist/apis/joinGroupLink.js +27 -0
- package/dist/apis/keepAlive.d.ts +4 -0
- package/dist/apis/keepAlive.js +22 -0
- package/dist/apis/lastOnline.d.ts +7 -0
- package/dist/apis/lastOnline.js +26 -0
- package/dist/apis/leaveGroup.d.ts +4 -0
- package/dist/apis/leaveGroup.js +33 -0
- package/dist/apis/listen.d.ts +100 -0
- package/dist/apis/listen.js +424 -0
- package/dist/apis/lockPoll.d.ts +2 -0
- package/dist/apis/lockPoll.js +28 -0
- package/dist/apis/login.d.ts +3 -0
- package/dist/apis/login.js +96 -0
- package/dist/apis/loginQR.d.ts +70 -0
- package/dist/apis/loginQR.js +359 -0
- package/dist/apis/parseLink.d.ts +21 -0
- package/dist/apis/parseLink.js +27 -0
- package/dist/apis/removeFriend.d.ts +2 -0
- package/dist/apis/removeFriend.js +28 -0
- package/dist/apis/removeFriendAlias.d.ts +2 -0
- package/dist/apis/removeFriendAlias.js +24 -0
- package/dist/apis/removeGroupBlockedMember.d.ts +2 -0
- package/dist/apis/removeGroupBlockedMember.js +28 -0
- package/dist/apis/removeGroupDeputy.d.ts +2 -0
- package/dist/apis/removeGroupDeputy.js +30 -0
- package/dist/apis/removeQuickMessage.d.ts +5 -0
- package/dist/apis/removeQuickMessage.js +27 -0
- package/dist/apis/removeReminder.d.ts +3 -0
- package/dist/apis/removeReminder.js +40 -0
- package/dist/apis/removeUnreadMark.d.ts +8 -0
- package/dist/apis/removeUnreadMark.js +50 -0
- package/dist/apis/removeUserFromGroup.d.ts +4 -0
- package/dist/apis/removeUserFromGroup.js +34 -0
- package/dist/apis/resetHiddenConversPin.d.ts +2 -0
- package/dist/apis/resetHiddenConversPin.js +20 -0
- package/dist/apis/reuseAvatar.d.ts +2 -0
- package/dist/apis/reuseAvatar.js +26 -0
- package/dist/apis/reviewPendingMemberRequest.d.ts +6 -0
- package/dist/apis/reviewPendingMemberRequest.js +31 -0
- package/dist/apis/sendBankCard.d.ts +9 -0
- package/dist/apis/sendBankCard.js +39 -0
- package/dist/apis/sendCard.d.ts +10 -0
- package/dist/apis/sendCard.js +59 -0
- package/dist/apis/sendDeliveredEvent.d.ts +16 -0
- package/dist/apis/sendDeliveredEvent.js +55 -0
- package/dist/apis/sendFriendRequest.d.ts +2 -0
- package/dist/apis/sendFriendRequest.js +39 -0
- package/dist/apis/sendLink.d.ts +10 -0
- package/dist/apis/sendLink.js +61 -0
- package/dist/apis/sendMessage.d.ts +99 -0
- package/dist/apis/sendMessage.js +460 -0
- package/dist/apis/sendReport.d.ts +17 -0
- package/dist/apis/sendReport.js +53 -0
- package/dist/apis/sendSeenEvent.d.ts +16 -0
- package/dist/apis/sendSeenEvent.js +63 -0
- package/dist/apis/sendSticker.d.ts +6 -0
- package/dist/apis/sendSticker.js +56 -0
- package/dist/apis/sendTypingEvent.d.ts +5 -0
- package/dist/apis/sendTypingEvent.js +33 -0
- package/dist/apis/sendVideo.d.ts +35 -0
- package/dist/apis/sendVideo.js +118 -0
- package/dist/apis/sendVoice.d.ts +12 -0
- package/dist/apis/sendVoice.js +73 -0
- package/dist/apis/setHiddenConversations.d.ts +3 -0
- package/dist/apis/setHiddenConversations.js +37 -0
- package/dist/apis/setMute.d.ts +17 -0
- package/dist/apis/setMute.js +67 -0
- package/dist/apis/setPinnedConversations.d.ts +3 -0
- package/dist/apis/setPinnedConversations.js +34 -0
- package/dist/apis/unblockUser.d.ts +2 -0
- package/dist/apis/unblockUser.js +28 -0
- package/dist/apis/undo.d.ts +9 -0
- package/dist/apis/undo.js +42 -0
- package/dist/apis/undoFriendRequest.d.ts +2 -0
- package/dist/apis/undoFriendRequest.js +27 -0
- package/dist/apis/updateAutoDeleteChat.d.ts +9 -0
- package/dist/apis/updateAutoDeleteChat.js +40 -0
- package/dist/apis/updateAutoReply.d.ts +14 -0
- package/dist/apis/updateAutoReply.js +37 -0
- package/dist/apis/updateCatalog.d.ts +11 -0
- package/dist/apis/updateCatalog.js +30 -0
- package/dist/apis/updateGroupSettings.d.ts +40 -0
- package/dist/apis/updateGroupSettings.js +43 -0
- package/dist/apis/updateHiddenConversPin.d.ts +2 -0
- package/dist/apis/updateHiddenConversPin.js +30 -0
- package/dist/apis/updateLabels.d.ts +24 -0
- package/dist/apis/updateLabels.js +34 -0
- package/dist/apis/updateLang.d.ts +7 -0
- package/dist/apis/updateLang.js +32 -0
- package/dist/apis/updateProductCatalog.d.ts +25 -0
- package/dist/apis/updateProductCatalog.js +51 -0
- package/dist/apis/updateProfile.d.ts +13 -0
- package/dist/apis/updateProfile.js +42 -0
- package/dist/apis/updateQuickMessage.d.ts +11 -0
- package/dist/apis/updateQuickMessage.js +61 -0
- package/dist/apis/updateSettings.d.ts +3 -0
- package/dist/apis/updateSettings.js +23 -0
- package/dist/apis/uploadAttachment.d.ts +50 -0
- package/dist/apis/uploadAttachment.js +205 -0
- package/dist/apis/uploadProductPhoto.d.ts +14 -0
- package/dist/apis/uploadProductPhoto.js +50 -0
- package/dist/cjs/Errors/ZaloApiError.cjs +11 -0
- package/dist/cjs/apis/acceptFriendRequest.cjs +33 -0
- package/dist/cjs/apis/addGroupBlockedMember.cjs +33 -0
- package/dist/cjs/apis/addGroupDeputy.cjs +35 -0
- package/dist/cjs/apis/addQuickMessage.cjs +65 -0
- package/dist/cjs/apis/addReaction.cjs +304 -0
- package/dist/cjs/apis/addUnreadMark.cjs +62 -0
- package/dist/cjs/apis/addUserToGroup.cjs +39 -0
- package/dist/cjs/apis/blockUser.cjs +33 -0
- package/dist/cjs/apis/blockViewFeed.cjs +35 -0
- package/dist/cjs/apis/changeAccountAvatar.cjs +57 -0
- package/dist/cjs/apis/changeFriendAlias.cjs +32 -0
- package/dist/cjs/apis/changeGroupAvatar.cjs +49 -0
- package/dist/cjs/apis/changeGroupName.cjs +37 -0
- package/dist/cjs/apis/changeGroupOwner.cjs +35 -0
- package/dist/cjs/apis/createAutoReply.cjs +42 -0
- package/dist/cjs/apis/createCatalog.cjs +34 -0
- package/dist/cjs/apis/createGroup.cjs +48 -0
- package/dist/cjs/apis/createNoteGroup.cjs +52 -0
- package/dist/cjs/apis/createPoll.cjs +45 -0
- package/dist/cjs/apis/createProductCatalog.cjs +55 -0
- package/dist/cjs/apis/createReminder.cjs +73 -0
- package/dist/cjs/apis/custom.cjs +19 -0
- package/dist/cjs/apis/deleteAutoReply.cjs +34 -0
- package/dist/cjs/apis/deleteAvatar.cjs +32 -0
- package/dist/cjs/apis/deleteCatalog.cjs +33 -0
- package/dist/cjs/apis/deleteChat.cjs +60 -0
- package/dist/cjs/apis/deleteMessage.cjs +62 -0
- package/dist/cjs/apis/deleteProductCatalog.cjs +36 -0
- package/dist/cjs/apis/disableGroupLink.cjs +29 -0
- package/dist/cjs/apis/disperseGroup.cjs +33 -0
- package/dist/cjs/apis/editNoteGroup.cjs +45 -0
- package/dist/cjs/apis/editReminder.cjs +71 -0
- package/dist/cjs/apis/enableGroupLink.cjs +30 -0
- package/dist/cjs/apis/fetchAccountInfo.cjs +15 -0
- package/dist/cjs/apis/findUser.cjs +45 -0
- package/dist/cjs/apis/forwardMessage.cjs +109 -0
- package/dist/cjs/apis/getAliasList.cjs +32 -0
- package/dist/cjs/apis/getAllFriends.cjs +37 -0
- package/dist/cjs/apis/getAllGroups.cjs +15 -0
- package/dist/cjs/apis/getArchivedChatList.cjs +28 -0
- package/dist/cjs/apis/getAutoDeleteChat.cjs +26 -0
- package/dist/cjs/apis/getAutoReplyList.cjs +29 -0
- package/dist/cjs/apis/getAvatarList.cjs +33 -0
- package/dist/cjs/apis/getBizAccount.cjs +32 -0
- package/dist/cjs/apis/getCatalogList.cjs +37 -0
- package/dist/cjs/apis/getContext.cjs +9 -0
- package/dist/cjs/apis/getCookie.cjs +14 -0
- package/dist/cjs/apis/getFriendBoardList.cjs +31 -0
- package/dist/cjs/apis/getFriendRequestStatus.cjs +30 -0
- package/dist/cjs/apis/getGroupBlockedMember.cjs +34 -0
- package/dist/cjs/apis/getGroupInfo.cjs +37 -0
- package/dist/cjs/apis/getGroupLinkDetail.cjs +30 -0
- package/dist/cjs/apis/getGroupLinkInfo.cjs +33 -0
- package/dist/cjs/apis/getGroupMembersInfo.cjs +29 -0
- package/dist/cjs/apis/getHiddenConversations.cjs +28 -0
- package/dist/cjs/apis/getLabels.cjs +33 -0
- package/dist/cjs/apis/getListBoard.cjs +55 -0
- package/dist/cjs/apis/getListReminder.cjs +57 -0
- package/dist/cjs/apis/getMute.cjs +27 -0
- package/dist/cjs/apis/getOwnId.cjs +9 -0
- package/dist/cjs/apis/getPendingGroupMembers.cjs +32 -0
- package/dist/cjs/apis/getPinConversations.cjs +27 -0
- package/dist/cjs/apis/getPollDetail.cjs +35 -0
- package/dist/cjs/apis/getProductCatalogList.cjs +38 -0
- package/dist/cjs/apis/getQR.cjs +34 -0
- package/dist/cjs/apis/getQuickMessage.cjs +29 -0
- package/dist/cjs/apis/getReceivedFriendRequests.cjs +27 -0
- package/dist/cjs/apis/getReminder.cjs +30 -0
- package/dist/cjs/apis/getReminderResponses.cjs +29 -0
- package/dist/cjs/apis/getSentFriendRequest.cjs +29 -0
- package/dist/cjs/apis/getStickers.cjs +45 -0
- package/dist/cjs/apis/getStickersDetail.cjs +45 -0
- package/dist/cjs/apis/getUnreadMark.cjs +35 -0
- package/dist/cjs/apis/getUserInfo.cjs +47 -0
- package/dist/cjs/apis/inviteUserToGroups.cjs +35 -0
- package/dist/cjs/apis/joinGroupLink.cjs +32 -0
- package/dist/cjs/apis/keepAlive.cjs +27 -0
- package/dist/cjs/apis/lastOnline.cjs +31 -0
- package/dist/cjs/apis/leaveGroup.cjs +38 -0
- package/dist/cjs/apis/listen.cjs +435 -0
- package/dist/cjs/apis/lockPoll.cjs +33 -0
- package/dist/cjs/apis/login.cjs +102 -0
- package/dist/cjs/apis/loginQR.cjs +364 -0
- package/dist/cjs/apis/parseLink.cjs +32 -0
- package/dist/cjs/apis/removeFriend.cjs +33 -0
- package/dist/cjs/apis/removeFriendAlias.cjs +29 -0
- package/dist/cjs/apis/removeGroupBlockedMember.cjs +33 -0
- package/dist/cjs/apis/removeGroupDeputy.cjs +35 -0
- package/dist/cjs/apis/removeQuickMessage.cjs +32 -0
- package/dist/cjs/apis/removeReminder.cjs +50 -0
- package/dist/cjs/apis/removeUnreadMark.cjs +60 -0
- package/dist/cjs/apis/removeUserFromGroup.cjs +39 -0
- package/dist/cjs/apis/resetHiddenConversPin.cjs +25 -0
- package/dist/cjs/apis/reuseAvatar.cjs +31 -0
- package/dist/cjs/apis/reviewPendingMemberRequest.cjs +36 -0
- package/dist/cjs/apis/sendBankCard.cjs +49 -0
- package/dist/cjs/apis/sendCard.cjs +69 -0
- package/dist/cjs/apis/sendDeliveredEvent.cjs +65 -0
- package/dist/cjs/apis/sendFriendRequest.cjs +44 -0
- package/dist/cjs/apis/sendLink.cjs +71 -0
- package/dist/cjs/apis/sendMessage.cjs +469 -0
- package/dist/cjs/apis/sendReport.cjs +63 -0
- package/dist/cjs/apis/sendSeenEvent.cjs +73 -0
- package/dist/cjs/apis/sendSticker.cjs +66 -0
- package/dist/cjs/apis/sendTypingEvent.cjs +43 -0
- package/dist/cjs/apis/sendVideo.cjs +128 -0
- package/dist/cjs/apis/sendVoice.cjs +83 -0
- package/dist/cjs/apis/setHiddenConversations.cjs +47 -0
- package/dist/cjs/apis/setMute.cjs +77 -0
- package/dist/cjs/apis/setPinnedConversations.cjs +44 -0
- package/dist/cjs/apis/unblockUser.cjs +33 -0
- package/dist/cjs/apis/undo.cjs +52 -0
- package/dist/cjs/apis/undoFriendRequest.cjs +32 -0
- package/dist/cjs/apis/updateAutoDeleteChat.cjs +50 -0
- package/dist/cjs/apis/updateAutoReply.cjs +42 -0
- package/dist/cjs/apis/updateCatalog.cjs +35 -0
- package/dist/cjs/apis/updateGroupSettings.cjs +48 -0
- package/dist/cjs/apis/updateHiddenConversPin.cjs +35 -0
- package/dist/cjs/apis/updateLabels.cjs +39 -0
- package/dist/cjs/apis/updateLang.cjs +37 -0
- package/dist/cjs/apis/updateProductCatalog.cjs +56 -0
- package/dist/cjs/apis/updateProfile.cjs +47 -0
- package/dist/cjs/apis/updateQuickMessage.cjs +66 -0
- package/dist/cjs/apis/updateSettings.cjs +28 -0
- package/dist/cjs/apis/uploadAttachment.cjs +215 -0
- package/dist/cjs/apis/uploadProductPhoto.cjs +55 -0
- package/dist/cjs/context.cjs +34 -0
- package/dist/cjs/index.cjs +121 -0
- package/dist/cjs/models/AutoReply.cjs +9 -0
- package/dist/cjs/models/DeliveredMessage.cjs +23 -0
- package/dist/cjs/models/Enum.cjs +95 -0
- package/dist/cjs/models/FriendEvent.cjs +87 -0
- package/dist/cjs/models/GroupEvent.cjs +88 -0
- package/dist/cjs/models/Message.cjs +32 -0
- package/dist/cjs/models/Reaction.cjs +74 -0
- package/dist/cjs/models/SeenMessage.cjs +23 -0
- package/dist/cjs/models/Typing.cjs +23 -0
- package/dist/cjs/models/Undo.cjs +16 -0
- package/dist/cjs/models/ZBusiness.cjs +46 -0
- package/dist/cjs/update.cjs +27 -0
- package/dist/cjs/utils.cjs +732 -0
- package/dist/cjs/zalo.cjs +360 -0
- package/dist/context.d.ts +177 -0
- package/dist/context.js +28 -0
- package/dist/index.d.ts +130 -0
- package/dist/index.js +11 -0
- package/dist/models/Attachment.d.ts +9 -0
- package/dist/models/Attachment.js +1 -0
- package/dist/models/AutoReply.d.ts +20 -0
- package/dist/models/AutoReply.js +7 -0
- package/dist/models/Board.d.ts +54 -0
- package/dist/models/Board.js +1 -0
- package/dist/models/Catalog.d.ts +16 -0
- package/dist/models/Catalog.js +1 -0
- package/dist/models/DeliveredMessage.d.ts +27 -0
- package/dist/models/DeliveredMessage.js +17 -0
- package/dist/models/Enum.d.ts +87 -0
- package/dist/models/Enum.js +93 -0
- package/dist/models/FriendEvent.d.ts +107 -0
- package/dist/models/FriendEvent.js +83 -0
- package/dist/models/GroupEvent.d.ts +197 -0
- package/dist/models/GroupEvent.js +84 -0
- package/dist/models/Message.d.ts +91 -0
- package/dist/models/Message.js +26 -0
- package/dist/models/ProductCatalog.d.ts +17 -0
- package/dist/models/ProductCatalog.js +1 -0
- package/dist/models/QuickMessage.d.ts +25 -0
- package/dist/models/QuickMessage.js +1 -0
- package/dist/models/Reaction.d.ts +85 -0
- package/dist/models/Reaction.js +70 -0
- package/dist/models/Reminder.d.ts +35 -0
- package/dist/models/Reminder.js +1 -0
- package/dist/models/SeenMessage.d.ts +26 -0
- package/dist/models/SeenMessage.js +17 -0
- package/dist/models/Typing.d.ts +24 -0
- package/dist/models/Typing.js +17 -0
- package/dist/models/Undo.d.ts +34 -0
- package/dist/models/Undo.js +12 -0
- package/dist/models/ZBusiness.d.ts +29 -0
- package/dist/models/ZBusiness.js +42 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +17 -0
- package/dist/update.d.ts +2 -0
- package/dist/update.js +22 -0
- package/dist/utils.d.ts +168 -0
- package/dist/utils.js +748 -0
- package/dist/zalo.d.ts +291 -0
- package/dist/zalo.js +354 -0
- package/eslint.config.js +21 -0
- package/index.d.ts +2 -0
- package/package.json +143 -0
- package/qr.png +0 -0
- package/rollup.config.js +28 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export * from "./Errors/index.js";
|
|
2
|
+
export * from "./models/index.js";
|
|
3
|
+
export * from "./zalo.js";
|
|
4
|
+
export type { AcceptFriendRequestResponse } from "./apis/acceptFriendRequest.js";
|
|
5
|
+
export type { AddGroupBlockedMemberResponse } from "./apis/addGroupBlockedMember.js";
|
|
6
|
+
export type { AddGroupDeputyResponse } from "./apis/addGroupDeputy.js";
|
|
7
|
+
export type { AddQuickMessagePayload, AddQuickMessageResponse } from "./apis/addQuickMessage.js";
|
|
8
|
+
export type { AddReactionDestination, AddReactionResponse, CustomReaction } from "./apis/addReaction.js";
|
|
9
|
+
export type { AddUnreadMarkResponse } from "./apis/addUnreadMark.js";
|
|
10
|
+
export type { AddUserToGroupResponse } from "./apis/addUserToGroup.js";
|
|
11
|
+
export type { BlockUserResponse } from "./apis/blockUser.js";
|
|
12
|
+
export type { BlockViewFeedResponse } from "./apis/blockViewFeed.js";
|
|
13
|
+
export type { ChangeAccountAvatarResponse } from "./apis/changeAccountAvatar.js";
|
|
14
|
+
export type { ChangeFriendAliasResponse } from "./apis/changeFriendAlias.js";
|
|
15
|
+
export type { ChangeGroupAvatarResponse } from "./apis/changeGroupAvatar.js";
|
|
16
|
+
export type { ChangeGroupNameResponse } from "./apis/changeGroupName.js";
|
|
17
|
+
export type { ChangeGroupOwnerResponse } from "./apis/changeGroupOwner.js";
|
|
18
|
+
export type { CreateAutoReplyPayload, CreateAutoReplyResponse } from "./apis/createAutoReply.js";
|
|
19
|
+
export type { CreateCatalogResponse } from "./apis/createCatalog.js";
|
|
20
|
+
export type { CreateGroupOptions, CreateGroupResponse } from "./apis/createGroup.js";
|
|
21
|
+
export type { CreateNoteGroupOptions, CreateNoteGroupResponse } from "./apis/createNoteGroup.js";
|
|
22
|
+
export type { CreatePollOptions, CreatePollResponse } from "./apis/createPoll.js";
|
|
23
|
+
export type { CreateProductCatalogPayload, CreateProductCatalogResponse } from "./apis/createProductCatalog.js";
|
|
24
|
+
export type { CreateReminderOptions, CreateReminderResponse } from "./apis/createReminder.js";
|
|
25
|
+
export type { DeleteAutoReplyResponse } from "./apis/deleteAutoReply.js";
|
|
26
|
+
export type { DeleteAvatarResponse } from "./apis/deleteAvatar.js";
|
|
27
|
+
export type { DeleteCatalogResponse } from "./apis/deleteCatalog.js";
|
|
28
|
+
export type { DeleteChatLastMessage, DeleteChatResponse } from "./apis/deleteChat.js";
|
|
29
|
+
export type { DeleteMessageDestination, DeleteMessageResponse } from "./apis/deleteMessage.js";
|
|
30
|
+
export type { DeleteProductCatalogPayload, DeleteProductCatalogResponse } from "./apis/deleteProductCatalog.js";
|
|
31
|
+
export type { DisableGroupLinkResponse } from "./apis/disableGroupLink.js";
|
|
32
|
+
export type { DisperseGroupResponse } from "./apis/disperseGroup.js";
|
|
33
|
+
export type { EditNoteGroupOptions, EditNoteGroupResponse } from "./apis/editNoteGroup.js";
|
|
34
|
+
export type { CreateReminderGroup, CreateReminderUser, EditReminderOptions, EditReminderResponse } from "./apis/editReminder.js";
|
|
35
|
+
export type { EnableGroupLinkResponse } from "./apis/enableGroupLink.js";
|
|
36
|
+
export type { FetchAccountInfoResponse } from "./apis/fetchAccountInfo.js";
|
|
37
|
+
export type { FindUserResponse } from "./apis/findUser.js";
|
|
38
|
+
export type { Success, Failed, ForwardMessagePayload, ForwardMessageResponse } from "./apis/forwardMessage.js";
|
|
39
|
+
export type { GetAliasListResponse } from "./apis/getAliasList.js";
|
|
40
|
+
export type { GetAllFriendsResponse } from "./apis/getAllFriends.js";
|
|
41
|
+
export type { GetAllGroupsResponse } from "./apis/getAllGroups.js";
|
|
42
|
+
export type { GetArchivedChatListResponse } from "./apis/getArchivedChatList.js";
|
|
43
|
+
export type { GetAutoDeleteChatResponse } from "./apis/getAutoDeleteChat.js";
|
|
44
|
+
export type { GetAutoReplyListResponse } from "./apis/getAutoReplyList.js";
|
|
45
|
+
export type { GetAvatarListResponse } from "./apis/getAvatarList.js";
|
|
46
|
+
export type { GetBizAccountResponse } from "./apis/getBizAccount.js";
|
|
47
|
+
export type { GetCatalogListPayload, GetCatalogListResponse } from "./apis/getCatalogList.js";
|
|
48
|
+
export type { GetFriendBoardListResponse } from "./apis/getFriendBoardList.js";
|
|
49
|
+
export type { GetGroupBlockedMemberPayload, GetGroupBlockedMemberResponse } from "./apis/getGroupBlockedMember.js";
|
|
50
|
+
export type { GroupInfo, GroupInfoExtra, GroupInfoPendingApprove, GroupInfoResponse } from "./apis/getGroupInfo.js";
|
|
51
|
+
export type { GetGroupLinkDetailResponse } from "./apis/getGroupLinkDetail.js";
|
|
52
|
+
export type { GetGroupLinkInfoPayload, GetGroupLinkInfoResponse } from "./apis/getGroupLinkInfo.js";
|
|
53
|
+
export type { GetGroupMembersInfoResponse, GroupMemberProfile } from "./apis/getGroupMembersInfo.js";
|
|
54
|
+
export type { GetHiddenConversationsResponse } from "./apis/getHiddenConversations.js";
|
|
55
|
+
export type { GetLabelsResponse } from "./apis/getLabels.js";
|
|
56
|
+
export type { BoardItem, GetListBoardResponse, ListBoardOptions } from "./apis/getListBoard.js";
|
|
57
|
+
export type { GetListReminderResponse, ListReminderOptions, ReminderListGroup, ReminderListUser } from "./apis/getListReminder.js";
|
|
58
|
+
export type { GetMuteResponse, MuteEntriesInfo } from "./apis/getMute.js";
|
|
59
|
+
export type { GetPendingGroupMembersResponse } from "./apis/getPendingGroupMembers.js";
|
|
60
|
+
export type { GetPinConversationsResponse } from "./apis/getPinConversations.js";
|
|
61
|
+
export type { PollDetailResponse } from "./apis/getPollDetail.js";
|
|
62
|
+
export type { GetProductCatalogListPayload, GetProductCatalogListResponse } from "./apis/getProductCatalogList.js";
|
|
63
|
+
export type { GetQRResponse } from "./apis/getQR.js";
|
|
64
|
+
export type { GetQuickMessageResponse } from "./apis/getQuickMessage.js";
|
|
65
|
+
export type { CollapseMsgListConfig, GetReceivedFriendRequestsResponse, ReceivedFriendRequestsDataInfo } from "./apis/getReceivedFriendRequests.js";
|
|
66
|
+
export type { GetReminderResponse } from "./apis/getReminder.js";
|
|
67
|
+
export type { GetReminderResponsesResponse } from "./apis/getReminderResponses.js";
|
|
68
|
+
export type { GetFriendRequestStatusResponse } from "./apis/getFriendRequestStatus.js";
|
|
69
|
+
export type { GetSentFriendRequestResponse } from "./apis/getSentFriendRequest.js";
|
|
70
|
+
export type { StickerDetail, StickerDetailResponse } from "./apis/getStickersDetail.js";
|
|
71
|
+
export type { GetUnreadMarkResponse, UnreadMark } from "./apis/getUnreadMark.js";
|
|
72
|
+
export type { ProfileInfo, UserInfoResponse } from "./apis/getUserInfo.js";
|
|
73
|
+
export type { InviteUserToGroupsResponse } from "./apis/inviteUserToGroups.js";
|
|
74
|
+
export type { JoinGroupLinkResponse } from "./apis/joinGroupLink.js";
|
|
75
|
+
export type { KeepAliveResponse } from "./apis/keepAlive.js";
|
|
76
|
+
export type { LastOnlineResponse } from "./apis/lastOnline.js";
|
|
77
|
+
export type { LeaveGroupResponse } from "./apis/leaveGroup.js";
|
|
78
|
+
export type { LockPollResponse } from "./apis/lockPoll.js";
|
|
79
|
+
export type { LoginQRCallback, LoginQRCallbackEvent } from "./apis/loginQR.js";
|
|
80
|
+
export type { ParseLinkErrorMaps, ParseLinkResponse } from "./apis/parseLink.js";
|
|
81
|
+
export type { RemoveFriendResponse } from "./apis/removeFriend.js";
|
|
82
|
+
export type { RemoveFriendAliasResponse } from "./apis/removeFriendAlias.js";
|
|
83
|
+
export type { RemoveGroupBlockedMemberResponse } from "./apis/removeGroupBlockedMember.js";
|
|
84
|
+
export type { RemoveGroupDeputyResponse } from "./apis/removeGroupDeputy.js";
|
|
85
|
+
export type { RemoveQuickMessageResponse } from "./apis/removeQuickMessage.js";
|
|
86
|
+
export type { RemoveReminderResponse } from "./apis/removeReminder.js";
|
|
87
|
+
export type { RemoveUnreadMarkResponse } from "./apis/removeUnreadMark.js";
|
|
88
|
+
export type { RemoveUserFromGroupResponse } from "./apis/removeUserFromGroup.js";
|
|
89
|
+
export type { ResetHiddenConversPinResponse } from "./apis/resetHiddenConversPin.js";
|
|
90
|
+
export type { ReuseAvatarResponse } from "./apis/reuseAvatar.js";
|
|
91
|
+
export type { ReviewPendingMemberRequestPayload, ReviewPendingMemberRequestResponse } from "./apis/reviewPendingMemberRequest.js";
|
|
92
|
+
export type { SendBankCardPayload, SendBankCardResponse } from "./apis/sendBankCard.js";
|
|
93
|
+
export type { SendCardOptions, SendCardResponse } from "./apis/sendCard.js";
|
|
94
|
+
export type { SendDeliveredEventMessageParams, SendDeliveredEventResponse } from "./apis/sendDeliveredEvent.js";
|
|
95
|
+
export type { SendFriendRequestResponse } from "./apis/sendFriendRequest.js";
|
|
96
|
+
export type { SendLinkOptions, SendLinkResponse } from "./apis/sendLink.js";
|
|
97
|
+
export type { Mention, MessageContent, SendMessageQuote, SendMessageResponse, SendMessageResult, Style } from "./apis/sendMessage.js";
|
|
98
|
+
export type { SendReportOptions, SendReportResponse } from "./apis/sendReport.js";
|
|
99
|
+
export type { SendSeenEventMessageParams, SendSeenEventResponse } from "./apis/sendSeenEvent.js";
|
|
100
|
+
export type { SendStickerResponse } from "./apis/sendSticker.js";
|
|
101
|
+
export type { SendTypingEventResponse } from "./apis/sendTypingEvent.js";
|
|
102
|
+
export type { SendVideoOptions, SendVideoResponse } from "./apis/sendVideo.js";
|
|
103
|
+
export type { SendVoiceOptions, SendVoiceResponse } from "./apis/sendVoice.js";
|
|
104
|
+
export type { SetHiddenConversationsResponse } from "./apis/setHiddenConversations.js";
|
|
105
|
+
export type { SetMuteParams, SetMuteResponse } from "./apis/setMute.js";
|
|
106
|
+
export type { SetPinnedConversationsResponse } from "./apis/setPinnedConversations.js";
|
|
107
|
+
export type { UnBlockUserResponse } from "./apis/unblockUser.js";
|
|
108
|
+
export type { UndoPayload, UndoResponse } from "./apis/undo.js";
|
|
109
|
+
export type { UndoFriendRequestResponse } from "./apis/undoFriendRequest.js";
|
|
110
|
+
export type { UpdateAutoDeleteChatResponse } from "./apis/updateAutoDeleteChat.js";
|
|
111
|
+
export type { UpdateAutoReplyPayload, UpdateAutoReplyResponse } from "./apis/updateAutoReply.js";
|
|
112
|
+
export type { UpdateCatalogPayload, UpdateCatalogResponse } from "./apis/updateCatalog.js";
|
|
113
|
+
export type { UpdateGroupSettingsOptions, UpdateGroupSettingsResponse } from "./apis/updateGroupSettings.js";
|
|
114
|
+
export type { UpdateHiddenConversPinResponse } from "./apis/updateHiddenConversPin.js";
|
|
115
|
+
export type { UpdateLabelsPayload, UpdateLabelsResponse } from "./apis/updateLabels.js";
|
|
116
|
+
export type { UpdateLangResponse } from "./apis/updateLang.js";
|
|
117
|
+
export type { UpdateProductCatalogPayload, UpdateProductCatalogResponse } from "./apis/updateProductCatalog.js";
|
|
118
|
+
export type { UpdateProfilePayload, ChangeAccountSettingResponse } from "./apis/updateProfile.js";
|
|
119
|
+
export type { UpdateQuickMessagePayload, UpdateQuickMessageResponse } from "./apis/updateQuickMessage.js";
|
|
120
|
+
export type { UpdateSettingsResponse, UpdateSettingsType } from "./apis/updateSettings.js";
|
|
121
|
+
export type { FileData, ImageData, UploadAttachmentResponse, UploadAttachmentType, UploadAttachmentImageResponse, UploadAttachmentVideoResponse, UploadAttachmentFileResponse } from "./apis/uploadAttachment.js";
|
|
122
|
+
export type { UploadProductPhotoPayload, UploadProductPhotoResponse } from "./apis/uploadProductPhoto.js";
|
|
123
|
+
export type { CustomAPICallback, CustomAPIProps } from "./apis/custom.js";
|
|
124
|
+
export { CloseReason } from "./apis/listen.js";
|
|
125
|
+
export { LoginQRCallbackEventType } from "./apis/loginQR.js";
|
|
126
|
+
export { TextStyle, Urgency } from "./apis/sendMessage.js";
|
|
127
|
+
export { ReportReason } from "./apis/sendReport.js";
|
|
128
|
+
export { MuteAction, MuteDuration } from "./apis/setMute.js";
|
|
129
|
+
export { ChatTTL } from "./apis/updateAutoDeleteChat.js";
|
|
130
|
+
export { UpdateLangAvailableLanguages } from "./apis/updateLang.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./Errors/index.js";
|
|
2
|
+
export * from "./models/index.js";
|
|
3
|
+
export * from "./zalo.js";
|
|
4
|
+
// Others (Enum)
|
|
5
|
+
export { CloseReason } from "./apis/listen.js";
|
|
6
|
+
export { LoginQRCallbackEventType } from "./apis/loginQR.js";
|
|
7
|
+
export { TextStyle, Urgency } from "./apis/sendMessage.js";
|
|
8
|
+
export { ReportReason } from "./apis/sendReport.js";
|
|
9
|
+
export { MuteAction, MuteDuration } from "./apis/setMute.js";
|
|
10
|
+
export { ChatTTL } from "./apis/updateAutoDeleteChat.js";
|
|
11
|
+
export { UpdateLangAvailableLanguages } from "./apis/updateLang.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type AutoReplyItem = {
|
|
2
|
+
id: number;
|
|
3
|
+
weight: number;
|
|
4
|
+
enable: boolean;
|
|
5
|
+
modifiedTime: number;
|
|
6
|
+
startTime: number;
|
|
7
|
+
endTime: number;
|
|
8
|
+
content: string;
|
|
9
|
+
scope: AutoReplyScope;
|
|
10
|
+
uids: string[] | null;
|
|
11
|
+
ownerId: number;
|
|
12
|
+
recurrence: string[];
|
|
13
|
+
createdTime: number;
|
|
14
|
+
};
|
|
15
|
+
export declare enum AutoReplyScope {
|
|
16
|
+
Everyone = 0,
|
|
17
|
+
Stranger = 1,
|
|
18
|
+
SpecificFriends = 2,
|
|
19
|
+
FriendsExcept = 3
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var AutoReplyScope;
|
|
2
|
+
(function (AutoReplyScope) {
|
|
3
|
+
AutoReplyScope[AutoReplyScope["Everyone"] = 0] = "Everyone";
|
|
4
|
+
AutoReplyScope[AutoReplyScope["Stranger"] = 1] = "Stranger";
|
|
5
|
+
AutoReplyScope[AutoReplyScope["SpecificFriends"] = 2] = "SpecificFriends";
|
|
6
|
+
AutoReplyScope[AutoReplyScope["FriendsExcept"] = 3] = "FriendsExcept";
|
|
7
|
+
})(AutoReplyScope || (AutoReplyScope = {}));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type PollDetail = {
|
|
2
|
+
creator: string;
|
|
3
|
+
question: string;
|
|
4
|
+
options: PollOptions[];
|
|
5
|
+
joined: boolean;
|
|
6
|
+
closed: boolean;
|
|
7
|
+
poll_id: number;
|
|
8
|
+
allow_multi_choices: boolean;
|
|
9
|
+
allow_add_new_option: boolean;
|
|
10
|
+
is_anonymous: boolean;
|
|
11
|
+
poll_type: number;
|
|
12
|
+
created_time: number;
|
|
13
|
+
updated_time: number;
|
|
14
|
+
expired_time: number;
|
|
15
|
+
is_hide_vote_preview: boolean;
|
|
16
|
+
num_vote: number;
|
|
17
|
+
};
|
|
18
|
+
export type PollOptions = {
|
|
19
|
+
content: string;
|
|
20
|
+
votes: number;
|
|
21
|
+
voted: boolean;
|
|
22
|
+
voters: string[];
|
|
23
|
+
option_id: number;
|
|
24
|
+
};
|
|
25
|
+
export type NoteDetail = {
|
|
26
|
+
id: string;
|
|
27
|
+
type: number;
|
|
28
|
+
color: number;
|
|
29
|
+
emoji: string;
|
|
30
|
+
startTime: number;
|
|
31
|
+
duration: number;
|
|
32
|
+
params: {
|
|
33
|
+
title: string;
|
|
34
|
+
};
|
|
35
|
+
creatorId: string;
|
|
36
|
+
editorId: string;
|
|
37
|
+
createTime: number;
|
|
38
|
+
editTime: number;
|
|
39
|
+
repeat: number;
|
|
40
|
+
};
|
|
41
|
+
export type PinnedMessageDetail = {
|
|
42
|
+
id: string;
|
|
43
|
+
type: number;
|
|
44
|
+
color: number;
|
|
45
|
+
emoji: string;
|
|
46
|
+
startTime: number;
|
|
47
|
+
duration: number;
|
|
48
|
+
params: Record<string, unknown>;
|
|
49
|
+
creatorId: string;
|
|
50
|
+
editorId: string;
|
|
51
|
+
createTime: number;
|
|
52
|
+
editTime: number;
|
|
53
|
+
repeat: number;
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type CatalogItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
version: number;
|
|
5
|
+
ownerId: string;
|
|
6
|
+
isDefault: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Relative path used to build the catalog URL.
|
|
9
|
+
*
|
|
10
|
+
* Example: `https://catalog.zalo.me/${path}`
|
|
11
|
+
*/
|
|
12
|
+
path: string;
|
|
13
|
+
catalogPhoto: string | null;
|
|
14
|
+
totalProduct: number;
|
|
15
|
+
created_time: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ThreadType } from "./Enum.js";
|
|
2
|
+
export type TDeliveredMessage = {
|
|
3
|
+
msgId: string;
|
|
4
|
+
seen: number;
|
|
5
|
+
deliveredUids: string[];
|
|
6
|
+
seenUids: string[];
|
|
7
|
+
realMsgId: string;
|
|
8
|
+
mSTs: number;
|
|
9
|
+
};
|
|
10
|
+
export type TGroupDeliveredMessage = TDeliveredMessage & {
|
|
11
|
+
groupId: string;
|
|
12
|
+
};
|
|
13
|
+
export declare class UserDeliveredMessage {
|
|
14
|
+
type: ThreadType.User;
|
|
15
|
+
data: TDeliveredMessage;
|
|
16
|
+
threadId: string;
|
|
17
|
+
isSelf: false;
|
|
18
|
+
constructor(data: TDeliveredMessage);
|
|
19
|
+
}
|
|
20
|
+
export declare class GroupDeliveredMessage {
|
|
21
|
+
type: ThreadType.Group;
|
|
22
|
+
data: TGroupDeliveredMessage;
|
|
23
|
+
threadId: string;
|
|
24
|
+
isSelf: boolean;
|
|
25
|
+
constructor(uid: string, data: TGroupDeliveredMessage);
|
|
26
|
+
}
|
|
27
|
+
export type DeliveredMessage = UserDeliveredMessage | GroupDeliveredMessage;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ThreadType } from "./Enum.js";
|
|
2
|
+
export class UserDeliveredMessage {
|
|
3
|
+
constructor(data) {
|
|
4
|
+
this.type = ThreadType.User;
|
|
5
|
+
this.data = data;
|
|
6
|
+
this.threadId = data.deliveredUids[0];
|
|
7
|
+
this.isSelf = false;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export class GroupDeliveredMessage {
|
|
11
|
+
constructor(uid, data) {
|
|
12
|
+
this.type = ThreadType.Group;
|
|
13
|
+
this.data = data;
|
|
14
|
+
this.threadId = data.groupId;
|
|
15
|
+
this.isSelf = data.deliveredUids.includes(uid);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare enum ThreadType {
|
|
2
|
+
User = 0,
|
|
3
|
+
Group = 1
|
|
4
|
+
}
|
|
5
|
+
export declare enum DestType {
|
|
6
|
+
Group = 1,
|
|
7
|
+
User = 3,
|
|
8
|
+
Page = 5
|
|
9
|
+
}
|
|
10
|
+
export declare enum ReminderRepeatMode {
|
|
11
|
+
None = 0,
|
|
12
|
+
Daily = 1,
|
|
13
|
+
Weekly = 2,
|
|
14
|
+
Monthly = 3
|
|
15
|
+
}
|
|
16
|
+
export declare enum Gender {
|
|
17
|
+
Male = 0,
|
|
18
|
+
Female = 1
|
|
19
|
+
}
|
|
20
|
+
export declare enum BoardType {
|
|
21
|
+
Note = 1,
|
|
22
|
+
PinnedMessage = 2,
|
|
23
|
+
Poll = 3
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @note Bank codes list after Mitm on Mobile and Bank's supported by Zalo
|
|
27
|
+
* @documents https://developers.zalo.me/docs/zalo-notification-service/phu-luc/danh-sach-bin-code - docs missing bin code and short_name bank
|
|
28
|
+
*/
|
|
29
|
+
export declare enum BinBankCard {
|
|
30
|
+
ABBank = 970425,// NH TMCP An Bình
|
|
31
|
+
ACB = 970416,// NH TMCP Á Châu
|
|
32
|
+
Agribank = 970405,// NH Nông nghiệp và Phát triển Nông thôn Việt Nam
|
|
33
|
+
BIDV = 970418,// NH TMCP Đầu tư và Phát triển Việt Nam
|
|
34
|
+
BVBank = 970454,// NH TMCP Bản Việt
|
|
35
|
+
BacA_Bank = 970409,// NH TMCP Bắc Á
|
|
36
|
+
BaoViet_Bank = 970438,// NH TMCP Bảo Việt
|
|
37
|
+
CAKE = 546034,// NH số CAKE by VPBank - TMCP Việt Nam Thịnh Vượng
|
|
38
|
+
CB_Bank = 970444,// NH Thương mại TNHH MTV Xây dựng Việt Nam
|
|
39
|
+
CIMB_Bank = 422589,// NH TNHH MTV CIMB Việt Nam
|
|
40
|
+
Coop_Bank = 970446,// NH Hợp tác xã Việt Nam
|
|
41
|
+
DBS_Bank = 796500,// NH TNHH MTV Phát triển Singapore - CN TP. Hồ Chí Minh
|
|
42
|
+
DongA_Bank = 970406,// NH TMCP Đông Á
|
|
43
|
+
Eximbank = 970431,// NH TMCP Xuất Nhập khẩu Việt Nam
|
|
44
|
+
GPBank = 970408,// NH TMCP Dầu khí Toàn cầu
|
|
45
|
+
HDBank = 970437,// NH TMCP Phát triển TP. Hồ Chí Minh
|
|
46
|
+
HSBC = 458761,// NH TNHH MTV HSBC (Việt Nam)
|
|
47
|
+
HongLeong_Bank = 970442,// NH TNHH MTV Hong Leong Việt Nam
|
|
48
|
+
IBK_HCM = 970456,// NH Công nghiệp Hàn Quốc - CN TP. Hồ Chí Minh
|
|
49
|
+
IBK_HN = 970455,// NH Công nghiệp Hàn Quốc - CN Hà Nội
|
|
50
|
+
Indovina_Bank = 970434,// NH TNHH Indovina
|
|
51
|
+
KBank = 668888,// NH Đại chúng TNHH Kasikornbank - CN TP. Hồ Chí Minh
|
|
52
|
+
KienlongBank = 970452,// NH TMCP Kiên Long
|
|
53
|
+
Kookmin_Bank_HCM = 970463,// NH Kookmin - CN TP. Hồ Chí Minh
|
|
54
|
+
Kookmin_Bank_HN = 970462,// NH Kookmin - CN Hà Nội
|
|
55
|
+
LPBank = 970449,// NH TMCP Lộc Phát Việt Nam
|
|
56
|
+
MB_Bank = 970422,// NH TMCP Quân đội
|
|
57
|
+
MSB = 970426,// NH TMCP Hàng Hải
|
|
58
|
+
NCB = 970419,// NH TMCP Quốc Dân
|
|
59
|
+
Nam_A_Bank = 970428,// NH TMCP Nam Á
|
|
60
|
+
NongHyup_Bank = 801011,// NH Nonghyup - CN Hà Nội
|
|
61
|
+
OCB = 970448,// NH TMCP Phương Đông
|
|
62
|
+
Ocean_Bank = 970414,// NH Thương mại TNHH MTV Đại Dương
|
|
63
|
+
PGBank = 970430,// NH TMCP Thịnh vượng và Phát triển
|
|
64
|
+
PVcomBank = 970412,// NH TMCP Đại Chúng Việt Nam
|
|
65
|
+
Public_Bank_Vietnam = 970439,// NH TNHH MTV Public Việt Nam
|
|
66
|
+
SCB = 970429,// NH TMCP Sài Gòn
|
|
67
|
+
SHB = 970443,// NH TMCP Sài Gòn - Hà Nội
|
|
68
|
+
Sacombank = 970403,// NH TMCP Sài Gòn Thương Tín
|
|
69
|
+
Saigon_Bank = 970400,// NH TMCP Sài Gòn Công Thương
|
|
70
|
+
SeABank = 970440,// NH TMCP Đông Nam Á
|
|
71
|
+
Shinhan_Bank = 970424,// NH TNHH MTV Shinhan Việt Nam
|
|
72
|
+
Standard_Chartered_Vietnam = 970410,// NH TNHH MTV Standard Chartered Bank Việt Nam
|
|
73
|
+
TNEX = 9704261,// NH số TNEX
|
|
74
|
+
TPBank = 970423,// NH TMCP Tiên Phong
|
|
75
|
+
Techcombank = 970407,// NH TMCP Kỹ thương Việt Nam
|
|
76
|
+
Timo = 963388,// NH số Timo by Bản Việt Bank
|
|
77
|
+
UBank = 546035,// NH số UBank by VPBank
|
|
78
|
+
United_Overseas_Bank_Vietnam = 970458,// NH United Overseas Bank Việt Nam
|
|
79
|
+
VIB = 970441,// NH TMCP Quốc tế Việt Nam
|
|
80
|
+
VPBank = 970432,// NH TMCP Việt Nam Thịnh Vượng
|
|
81
|
+
VRB = 970421,// NH Liên doanh Việt - Nga
|
|
82
|
+
VietABank = 970427,// NH TMCP Việt Á
|
|
83
|
+
VietBank = 970433,// NH TMCP Việt Nam Thương Tín
|
|
84
|
+
Vietcombank = 970436,// NH TMCP Ngoại Thương Việt Nam
|
|
85
|
+
VietinBank = 970415,// NH TMCP Công thương Việt Nam
|
|
86
|
+
Woori_Bank = 970457
|
|
87
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export var ThreadType;
|
|
2
|
+
(function (ThreadType) {
|
|
3
|
+
ThreadType[ThreadType["User"] = 0] = "User";
|
|
4
|
+
ThreadType[ThreadType["Group"] = 1] = "Group";
|
|
5
|
+
})(ThreadType || (ThreadType = {}));
|
|
6
|
+
export var DestType;
|
|
7
|
+
(function (DestType) {
|
|
8
|
+
DestType[DestType["Group"] = 1] = "Group";
|
|
9
|
+
DestType[DestType["User"] = 3] = "User";
|
|
10
|
+
DestType[DestType["Page"] = 5] = "Page";
|
|
11
|
+
})(DestType || (DestType = {}));
|
|
12
|
+
export var ReminderRepeatMode;
|
|
13
|
+
(function (ReminderRepeatMode) {
|
|
14
|
+
ReminderRepeatMode[ReminderRepeatMode["None"] = 0] = "None";
|
|
15
|
+
ReminderRepeatMode[ReminderRepeatMode["Daily"] = 1] = "Daily";
|
|
16
|
+
ReminderRepeatMode[ReminderRepeatMode["Weekly"] = 2] = "Weekly";
|
|
17
|
+
ReminderRepeatMode[ReminderRepeatMode["Monthly"] = 3] = "Monthly";
|
|
18
|
+
})(ReminderRepeatMode || (ReminderRepeatMode = {}));
|
|
19
|
+
export var Gender;
|
|
20
|
+
(function (Gender) {
|
|
21
|
+
Gender[Gender["Male"] = 0] = "Male";
|
|
22
|
+
Gender[Gender["Female"] = 1] = "Female";
|
|
23
|
+
})(Gender || (Gender = {}));
|
|
24
|
+
export var BoardType;
|
|
25
|
+
(function (BoardType) {
|
|
26
|
+
BoardType[BoardType["Note"] = 1] = "Note";
|
|
27
|
+
BoardType[BoardType["PinnedMessage"] = 2] = "PinnedMessage";
|
|
28
|
+
BoardType[BoardType["Poll"] = 3] = "Poll";
|
|
29
|
+
})(BoardType || (BoardType = {}));
|
|
30
|
+
/**
|
|
31
|
+
* @note Bank codes list after Mitm on Mobile and Bank's supported by Zalo
|
|
32
|
+
* @documents https://developers.zalo.me/docs/zalo-notification-service/phu-luc/danh-sach-bin-code - docs missing bin code and short_name bank
|
|
33
|
+
*/
|
|
34
|
+
export var BinBankCard;
|
|
35
|
+
(function (BinBankCard) {
|
|
36
|
+
BinBankCard[BinBankCard["ABBank"] = 970425] = "ABBank";
|
|
37
|
+
BinBankCard[BinBankCard["ACB"] = 970416] = "ACB";
|
|
38
|
+
BinBankCard[BinBankCard["Agribank"] = 970405] = "Agribank";
|
|
39
|
+
BinBankCard[BinBankCard["BIDV"] = 970418] = "BIDV";
|
|
40
|
+
BinBankCard[BinBankCard["BVBank"] = 970454] = "BVBank";
|
|
41
|
+
BinBankCard[BinBankCard["BacA_Bank"] = 970409] = "BacA_Bank";
|
|
42
|
+
BinBankCard[BinBankCard["BaoViet_Bank"] = 970438] = "BaoViet_Bank";
|
|
43
|
+
BinBankCard[BinBankCard["CAKE"] = 546034] = "CAKE";
|
|
44
|
+
BinBankCard[BinBankCard["CB_Bank"] = 970444] = "CB_Bank";
|
|
45
|
+
BinBankCard[BinBankCard["CIMB_Bank"] = 422589] = "CIMB_Bank";
|
|
46
|
+
BinBankCard[BinBankCard["Coop_Bank"] = 970446] = "Coop_Bank";
|
|
47
|
+
BinBankCard[BinBankCard["DBS_Bank"] = 796500] = "DBS_Bank";
|
|
48
|
+
BinBankCard[BinBankCard["DongA_Bank"] = 970406] = "DongA_Bank";
|
|
49
|
+
BinBankCard[BinBankCard["Eximbank"] = 970431] = "Eximbank";
|
|
50
|
+
BinBankCard[BinBankCard["GPBank"] = 970408] = "GPBank";
|
|
51
|
+
BinBankCard[BinBankCard["HDBank"] = 970437] = "HDBank";
|
|
52
|
+
BinBankCard[BinBankCard["HSBC"] = 458761] = "HSBC";
|
|
53
|
+
BinBankCard[BinBankCard["HongLeong_Bank"] = 970442] = "HongLeong_Bank";
|
|
54
|
+
BinBankCard[BinBankCard["IBK_HCM"] = 970456] = "IBK_HCM";
|
|
55
|
+
BinBankCard[BinBankCard["IBK_HN"] = 970455] = "IBK_HN";
|
|
56
|
+
BinBankCard[BinBankCard["Indovina_Bank"] = 970434] = "Indovina_Bank";
|
|
57
|
+
BinBankCard[BinBankCard["KBank"] = 668888] = "KBank";
|
|
58
|
+
BinBankCard[BinBankCard["KienlongBank"] = 970452] = "KienlongBank";
|
|
59
|
+
BinBankCard[BinBankCard["Kookmin_Bank_HCM"] = 970463] = "Kookmin_Bank_HCM";
|
|
60
|
+
BinBankCard[BinBankCard["Kookmin_Bank_HN"] = 970462] = "Kookmin_Bank_HN";
|
|
61
|
+
BinBankCard[BinBankCard["LPBank"] = 970449] = "LPBank";
|
|
62
|
+
BinBankCard[BinBankCard["MB_Bank"] = 970422] = "MB_Bank";
|
|
63
|
+
BinBankCard[BinBankCard["MSB"] = 970426] = "MSB";
|
|
64
|
+
BinBankCard[BinBankCard["NCB"] = 970419] = "NCB";
|
|
65
|
+
BinBankCard[BinBankCard["Nam_A_Bank"] = 970428] = "Nam_A_Bank";
|
|
66
|
+
BinBankCard[BinBankCard["NongHyup_Bank"] = 801011] = "NongHyup_Bank";
|
|
67
|
+
BinBankCard[BinBankCard["OCB"] = 970448] = "OCB";
|
|
68
|
+
BinBankCard[BinBankCard["Ocean_Bank"] = 970414] = "Ocean_Bank";
|
|
69
|
+
BinBankCard[BinBankCard["PGBank"] = 970430] = "PGBank";
|
|
70
|
+
BinBankCard[BinBankCard["PVcomBank"] = 970412] = "PVcomBank";
|
|
71
|
+
BinBankCard[BinBankCard["Public_Bank_Vietnam"] = 970439] = "Public_Bank_Vietnam";
|
|
72
|
+
BinBankCard[BinBankCard["SCB"] = 970429] = "SCB";
|
|
73
|
+
BinBankCard[BinBankCard["SHB"] = 970443] = "SHB";
|
|
74
|
+
BinBankCard[BinBankCard["Sacombank"] = 970403] = "Sacombank";
|
|
75
|
+
BinBankCard[BinBankCard["Saigon_Bank"] = 970400] = "Saigon_Bank";
|
|
76
|
+
BinBankCard[BinBankCard["SeABank"] = 970440] = "SeABank";
|
|
77
|
+
BinBankCard[BinBankCard["Shinhan_Bank"] = 970424] = "Shinhan_Bank";
|
|
78
|
+
BinBankCard[BinBankCard["Standard_Chartered_Vietnam"] = 970410] = "Standard_Chartered_Vietnam";
|
|
79
|
+
BinBankCard[BinBankCard["TNEX"] = 9704261] = "TNEX";
|
|
80
|
+
BinBankCard[BinBankCard["TPBank"] = 970423] = "TPBank";
|
|
81
|
+
BinBankCard[BinBankCard["Techcombank"] = 970407] = "Techcombank";
|
|
82
|
+
BinBankCard[BinBankCard["Timo"] = 963388] = "Timo";
|
|
83
|
+
BinBankCard[BinBankCard["UBank"] = 546035] = "UBank";
|
|
84
|
+
BinBankCard[BinBankCard["United_Overseas_Bank_Vietnam"] = 970458] = "United_Overseas_Bank_Vietnam";
|
|
85
|
+
BinBankCard[BinBankCard["VIB"] = 970441] = "VIB";
|
|
86
|
+
BinBankCard[BinBankCard["VPBank"] = 970432] = "VPBank";
|
|
87
|
+
BinBankCard[BinBankCard["VRB"] = 970421] = "VRB";
|
|
88
|
+
BinBankCard[BinBankCard["VietABank"] = 970427] = "VietABank";
|
|
89
|
+
BinBankCard[BinBankCard["VietBank"] = 970433] = "VietBank";
|
|
90
|
+
BinBankCard[BinBankCard["Vietcombank"] = 970436] = "Vietcombank";
|
|
91
|
+
BinBankCard[BinBankCard["VietinBank"] = 970415] = "VietinBank";
|
|
92
|
+
BinBankCard[BinBankCard["Woori_Bank"] = 970457] = "Woori_Bank";
|
|
93
|
+
})(BinBankCard || (BinBankCard = {}));
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare enum FriendEventType {
|
|
2
|
+
ADD = 0,
|
|
3
|
+
REMOVE = 1,
|
|
4
|
+
REQUEST = 2,
|
|
5
|
+
UNDO_REQUEST = 3,
|
|
6
|
+
REJECT_REQUEST = 4,
|
|
7
|
+
SEEN_FRIEND_REQUEST = 5,
|
|
8
|
+
BLOCK = 6,
|
|
9
|
+
UNBLOCK = 7,
|
|
10
|
+
BLOCK_CALL = 8,
|
|
11
|
+
UNBLOCK_CALL = 9,
|
|
12
|
+
PIN_UNPIN = 10,
|
|
13
|
+
PIN_CREATE = 11,
|
|
14
|
+
UNKNOWN = 12
|
|
15
|
+
}
|
|
16
|
+
export type TFriendEventBase = string;
|
|
17
|
+
export type TFriendEventRejectUndo = {
|
|
18
|
+
toUid: string;
|
|
19
|
+
fromUid: string;
|
|
20
|
+
};
|
|
21
|
+
export type TFriendEventRequest = {
|
|
22
|
+
toUid: string;
|
|
23
|
+
fromUid: string;
|
|
24
|
+
src: number;
|
|
25
|
+
message: string;
|
|
26
|
+
};
|
|
27
|
+
export type TFriendEventSeenRequest = string[];
|
|
28
|
+
export type TFriendEventPinCreateTopicParams = {
|
|
29
|
+
senderUid: string;
|
|
30
|
+
senderName: string;
|
|
31
|
+
client_msg_id: string;
|
|
32
|
+
global_msg_id: string;
|
|
33
|
+
msg_type: number;
|
|
34
|
+
title: string;
|
|
35
|
+
};
|
|
36
|
+
export type TFriendEventPinTopic = {
|
|
37
|
+
topicId: string;
|
|
38
|
+
topicType: number;
|
|
39
|
+
};
|
|
40
|
+
export type TFriendEventPinCreateTopic = {
|
|
41
|
+
type: number;
|
|
42
|
+
color: number;
|
|
43
|
+
emoji: string;
|
|
44
|
+
startTime: number;
|
|
45
|
+
duration: number;
|
|
46
|
+
params: TFriendEventPinCreateTopicParams;
|
|
47
|
+
id: string;
|
|
48
|
+
creatorId: string;
|
|
49
|
+
createTime: number;
|
|
50
|
+
editorId: string;
|
|
51
|
+
editTime: number;
|
|
52
|
+
repeat: number;
|
|
53
|
+
action: number;
|
|
54
|
+
};
|
|
55
|
+
export type TFriendEventPinCreate = {
|
|
56
|
+
oldTopic?: TFriendEventPinTopic;
|
|
57
|
+
topic: TFriendEventPinCreateTopic;
|
|
58
|
+
actorId: string;
|
|
59
|
+
oldVersion: number;
|
|
60
|
+
version: number;
|
|
61
|
+
conversationId: string;
|
|
62
|
+
};
|
|
63
|
+
export type TFriendEventPinUnpin = {
|
|
64
|
+
topic: TFriendEventPinTopic;
|
|
65
|
+
actorId: string;
|
|
66
|
+
oldVersion: number;
|
|
67
|
+
version: number;
|
|
68
|
+
conversationId: string;
|
|
69
|
+
};
|
|
70
|
+
export type TFriendEvent = TFriendEventBase | TFriendEventRequest | TFriendEventRejectUndo | TFriendEventSeenRequest | TFriendEventPinUnpin | TFriendEventPinCreate;
|
|
71
|
+
export type FriendEvent = {
|
|
72
|
+
type: FriendEventType.ADD | FriendEventType.REMOVE | FriendEventType.BLOCK | FriendEventType.UNBLOCK | FriendEventType.BLOCK_CALL | FriendEventType.UNBLOCK_CALL;
|
|
73
|
+
data: TFriendEventBase;
|
|
74
|
+
threadId: string;
|
|
75
|
+
isSelf: boolean;
|
|
76
|
+
} | {
|
|
77
|
+
type: FriendEventType.REJECT_REQUEST | FriendEventType.UNDO_REQUEST;
|
|
78
|
+
data: TFriendEventRejectUndo;
|
|
79
|
+
threadId: string;
|
|
80
|
+
isSelf: boolean;
|
|
81
|
+
} | {
|
|
82
|
+
type: FriendEventType.REQUEST;
|
|
83
|
+
data: TFriendEventRequest;
|
|
84
|
+
threadId: string;
|
|
85
|
+
isSelf: boolean;
|
|
86
|
+
} | {
|
|
87
|
+
type: FriendEventType.SEEN_FRIEND_REQUEST;
|
|
88
|
+
data: TFriendEventSeenRequest;
|
|
89
|
+
threadId: string;
|
|
90
|
+
isSelf: boolean;
|
|
91
|
+
} | {
|
|
92
|
+
type: FriendEventType.PIN_CREATE;
|
|
93
|
+
data: TFriendEventPinCreate;
|
|
94
|
+
threadId: string;
|
|
95
|
+
isSelf: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
type: FriendEventType.PIN_UNPIN;
|
|
98
|
+
data: TFriendEventPinUnpin;
|
|
99
|
+
threadId: string;
|
|
100
|
+
isSelf: boolean;
|
|
101
|
+
} | {
|
|
102
|
+
type: FriendEventType.UNKNOWN;
|
|
103
|
+
data: string;
|
|
104
|
+
threadId: string;
|
|
105
|
+
isSelf: boolean;
|
|
106
|
+
};
|
|
107
|
+
export declare function initializeFriendEvent(uid: string, data: TFriendEvent, type: FriendEventType): FriendEvent;
|