linkdood-web-sdk 1.0.23 → 6.0.4-alpha.1
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 +80 -56
- package/README.md +74 -38
- package/dist/linkdoodWebSDK.js +48 -63
- package/docs/md/action/application.md +55 -0
- package/docs/md/action/auth.md +45 -45
- package/docs/md/action/buddy.md +92 -92
- package/docs/md/action/chat.md +74 -83
- package/docs/md/action/clientMenu.md +37 -0
- package/docs/md/action/config.md +15 -15
- package/docs/md/action/dictionary.md +49 -0
- package/docs/md/action/enterprise.md +5 -5
- package/docs/md/action/feedBack.md +21 -0
- package/docs/md/action/file.md +19 -19
- package/docs/md/action/group.md +234 -234
- package/docs/md/action/help.md +14 -0
- package/docs/md/action/media.md +32 -0
- package/docs/md/action/message.md +130 -114
- package/docs/md/action/organization.md +117 -0
- package/docs/md/action/search.md +26 -26
- package/docs/md/action/securty.md +37 -0
- package/docs/md/action/subscribe.md +24 -0
- package/docs/md/action/system.md +26 -26
- package/docs/md/action/systemMessage.md +30 -30
- package/docs/md/action/user.md +33 -33
- package/docs/md/apiDescribe.md +24 -24
- package/docs/md/apiSummary.md +121 -120
- package/docs/md/errorCode.md +390 -386
- package/docs/md/install.md +38 -38
- package/docs/md/model/AccountType.md +7 -7
- package/docs/md/model/AddGroupMemberResult.md +7 -7
- package/docs/md/model/ChatRes.md +18 -18
- package/docs/md/model/ClientMenu.md +16 -0
- package/docs/md/model/CommonDataResult.md +10 -10
- package/docs/md/model/CommonSettingServerResult.md +11 -11
- package/docs/md/model/EnORet.md +8 -8
- package/docs/md/model/EnterpriseBean.md +24 -24
- package/docs/md/model/EnterpriseDictionary.md +10 -0
- package/docs/md/model/EnterpriseUserBean.md +21 -21
- package/docs/md/model/GetBuddyOnlineResult.md +6 -6
- package/docs/md/model/GetMyselfResult.md +10 -10
- package/docs/md/model/GetOrgUserResult.md +7 -7
- package/docs/md/model/GetUserResult.md +6 -6
- package/docs/md/model/GroupInfo.md +28 -28
- package/docs/md/model/GroupInfoResult.md +7 -7
- package/docs/md/model/GroupMemberInfo.md +17 -17
- package/docs/md/model/GroupMemberInfoRefreshBean.md +11 -11
- package/docs/md/model/GroupMemberInfoResult.md +6 -6
- package/docs/md/model/GroupMembersRefreshBean.md +9 -9
- package/docs/md/model/GroupRefreshBean.md +8 -8
- package/docs/md/model/GroupSet.md +6 -6
- package/docs/md/model/GroupSetResult.md +6 -6
- package/docs/md/model/GroupTransferBean.md +7 -7
- package/docs/md/model/LoginResult.md +15 -15
- package/docs/md/model/MessageStorageBean.md +35 -35
- package/docs/md/model/MessageStorageResult.md +6 -6
- package/docs/md/model/Messages.md +7 -7
- package/docs/md/model/NoDisturbMode.md +9 -9
- package/docs/md/model/NoDisturbModeExtension.md +8 -8
- package/docs/md/model/OnlineBean.md +8 -8
- package/docs/md/model/OperateBuddyInfo.md +7 -7
- package/docs/md/model/OrgOpenConfig.md +7 -7
- package/docs/md/model/OrgSearchUserRet.md +16 -16
- package/docs/md/model/OrgUserAndChildNodes.md +7 -7
- package/docs/md/model/OrganizationBean.md +31 -31
- package/docs/md/model/PersonalDataSwitch.md +20 -20
- package/docs/md/model/QueryTag.md +6 -0
- package/docs/md/model/RemoveGroupMemberResult.md +6 -6
- package/docs/md/model/SearchResult.md +11 -11
- package/docs/md/model/Security.md +11 -0
- package/docs/md/model/SendMessageResult.md +12 -12
- package/docs/md/model/ShieldGroupMessageSet.md +10 -10
- package/docs/md/model/SmallEntAppInfo.md +30 -30
- package/docs/md/model/SmallMarketAppInfo.md +35 -0
- package/docs/md/model/SmallUserBean.md +34 -34
- package/docs/md/model/SystemHelp.md +18 -0
- package/docs/md/model/TinyGroupInfo.md +23 -23
- package/docs/md/model/TinyUserBean.md +31 -31
- package/docs/md/model/TransferGroupResult.md +6 -6
- package/docs/md/model/UserBean.md +34 -34
- package/docs/md/model/UserToTargetSwitch.md +7 -7
- package/docs/md/model/VerifyMessageRet.md +8 -8
- package/docs/md/model/YMD.md +6 -6
- package/docs/md/model/orgGroupInfo.md +7 -7
- package/docs/md/model/orgUserInfo.md +11 -11
- package/docs/md/model/systemMessageRes.md +27 -27
- package/docs/md/model/test.md +2 -2
- package/docs/md/model/tinyGroupMemberInfo.md +13 -13
- package/docs/md/notify/notify.md +89 -66
- package/es/cache/BuddyCache.js +82 -0
- package/es/cache/ChatCache.js +124 -0
- package/es/cache/ClientMenuCache.js +53 -0
- package/es/cache/DictionaryCache.js +67 -0
- package/es/cache/EnterpriseCache.js +61 -0
- package/es/cache/GroupCache.js +83 -0
- package/es/cache/GroupMemberCache.js +106 -0
- package/es/cache/GroupMessageCache.js +113 -0
- package/es/cache/HelpCache.js +24 -0
- package/es/cache/MessageCache.js +140 -0
- package/es/cache/MessageTimeStampCache.js +39 -0
- package/es/cache/MyselfCache.js +47 -0
- package/es/cache/OrganizationCache.js +35 -0
- package/es/cache/SecurtyCache.js +54 -0
- package/es/cache/SystemMessageCache.js +85 -0
- package/es/cache/TimeStampCache.js +35 -0
- package/es/cache/TimeStampOtherCache.js +104 -0
- package/es/cache/db/IMDB.js +78 -0
- package/es/cache/db/bean/Buddy.js +93 -0
- package/es/cache/db/bean/Chat.js +56 -0
- package/es/cache/db/bean/ClientMenu.js +38 -0
- package/es/cache/db/bean/Dictionary.js +18 -0
- package/es/cache/db/bean/GroupMessage.js +11 -0
- package/es/cache/db/bean/Message.js +96 -0
- package/es/cache/db/bean/Securty.js +20 -0
- package/es/cache/db/bean/SystemMessage.js +27 -0
- package/es/cache/db/bean/TimeStampOther.js +21 -0
- package/es/cache/db/bean/Timestamp.js +85 -0
- package/es/config/thriftConfig.js +20 -0
- package/es/constant/storageConstant.js +42 -0
- package/es/constant/timeStampOtherConstant.js +28 -0
- package/es/constant/uploadTypeConstant.js +8 -0
- package/es/core/LinkdoodWebSDK.js +80 -0
- package/es/core/action/ApplicationAction.js +71 -0
- package/es/core/action/AuthAction.js +185 -0
- package/es/core/action/BuddyAction.js +200 -0
- package/es/core/action/ChatAction.js +93 -0
- package/es/core/action/ClientMenuAction.js +41 -0
- package/es/core/action/ConfigAction.js +85 -0
- package/es/core/action/DictionaryAction.js +49 -0
- package/es/core/action/EnterpriseAction.js +26 -0
- package/es/core/action/FeedBackAction.js +50 -0
- package/es/core/action/FileAction.js +48 -0
- package/es/core/action/GroupAction.js +427 -0
- package/es/core/action/HelpAction.js +19 -0
- package/es/core/action/MediaAction.js +33 -0
- package/es/core/action/MessageAction.js +196 -0
- package/es/core/action/OrganizationAction.js +78 -0
- package/es/core/action/SearchAction.js +60 -0
- package/es/core/action/SecurtyAction.js +40 -0
- package/es/core/action/SubscribeAction.js +30 -0
- package/es/core/action/SystemAction.js +59 -0
- package/es/core/action/SystemMessageAction.js +35 -0
- package/es/core/action/UserAction.js +104 -0
- package/es/core/action/index.js +45 -0
- package/es/decorator/ErrorORCompletionDecorator.js +99 -0
- package/es/error/JSDKError.js +12 -0
- package/es/index.js +2 -0
- package/es/model/commonModel.js +38 -0
- package/es/model/loginModel.js +48 -0
- package/es/model/thriftConnectionModel.js +24 -0
- package/es/model/userModel.js +91 -0
- package/es/notify/NotifyAnalysis.js +267 -0
- package/es/notify/NotifyHeartBeat.js +125 -0
- package/es/notify/emitter/notifyEmitter.js +115 -0
- package/es/notify/send/NotifyFactory.js +77 -0
- package/es/notify/send/children/noticeReply.js +18 -0
- package/es/notify/send/children/notifyCreateFaceGroupSuccess.js +11 -0
- package/es/notify/send/children/notifyError.js +18 -0
- package/es/notify/send/children/notifyExitFaceAddBuddy.js +10 -0
- package/es/notify/send/children/notifyExitFaceJoinGroup.js +11 -0
- package/es/notify/send/children/notifyFaceAddBuddy.js +11 -0
- package/es/notify/send/children/notifyFaceAddBuddyConfirm.js +11 -0
- package/es/notify/send/children/notifyFaceJoinGroup.js +11 -0
- package/es/notify/send/children/notifyGroupMemberInfoRefresh.js +52 -0
- package/es/notify/send/children/notifyGroupMembersRefresh.js +52 -0
- package/es/notify/send/children/notifyGroupRefresh.js +46 -0
- package/es/notify/send/children/notifyMessageCursor.js +11 -0
- package/es/notify/send/children/notifyMessageJson.js +37 -0
- package/es/notify/send/children/notifyMessageStatusStatsInfo.js +11 -0
- package/es/notify/send/children/notifyOperateBuddy.js +31 -0
- package/es/notify/send/children/notifyOperateUser.js +16 -0
- package/es/notify/send/children/notifyPresent.js +11 -0
- package/es/notify/send/children/notifySendMessage.js +165 -0
- package/es/notify/send/children/notifyTransferGroup.js +22 -0
- package/es/notify/send/children/notifyTransferMessage.js +11 -0
- package/es/offline/OfflineBuddy.js +34 -0
- package/es/offline/OfflineClientMenu.js +13 -0
- package/es/offline/OfflineDictionary.js +32 -0
- package/es/offline/OfflineEnterprise.js +14 -0
- package/es/offline/OfflineGroup.js +87 -0
- package/es/offline/OfflineHelp.js +25 -0
- package/es/offline/OfflineMessage.js +62 -0
- package/es/offline/OfflineMyself.js +26 -0
- package/es/offline/OfflineSecurty.js +13 -0
- package/es/service/ApplicationService.js +69 -0
- package/es/service/BuddyService.js +220 -0
- package/es/service/ChatService.js +486 -0
- package/es/service/ClientMenuService.js +59 -0
- package/es/service/CommonService.js +73 -0
- package/es/service/DictionaryService.js +66 -0
- package/es/service/EnterpriseService.js +154 -0
- package/es/service/GroupMemberService.js +377 -0
- package/es/service/GroupMessageService.js +85 -0
- package/es/service/GroupService.js +216 -0
- package/es/service/HelpService.js +79 -0
- package/es/service/LoginService.js +100 -0
- package/es/service/MediaService.js +103 -0
- package/es/service/MessageService.js +414 -0
- package/es/service/MessageTimeStampService.js +52 -0
- package/es/service/MyselfService.js +64 -0
- package/es/service/OrganizationService.js +170 -0
- package/es/service/SecurtyService.js +57 -0
- package/es/service/SubscribeService.js +57 -0
- package/es/service/SystemMessageService.js +41 -0
- package/es/service/TimeStampOtherService.js +59 -0
- package/es/service/TimeStampService.js +94 -0
- package/es/thrift/client/ThriftBase.js +13 -0
- package/es/thrift/client/ThriftHoldClient.js +8 -0
- package/es/thrift/client/ThriftNotifyClient.js +8 -0
- package/es/thrift/client/ThriftServiceClient.js +8 -0
- package/es/thrift/merge/thrift-merge.js +92987 -0
- package/es/thrift/thriftClient.js +106 -0
- package/es/utils/Logger.js +40 -0
- package/es/utils/_decorators.js +31 -0
- package/es/utils/browserUtil.js +66 -0
- package/es/utils/commonUtil.js +136 -0
- package/es/utils/cryptoUtil.js +40 -0
- package/es/utils/filesUtil.js +324 -0
- package/es/utils/groupJudgeUtil.js +173 -0
- package/es/utils/navi.js +46 -0
- package/es/utils/proptypeExtend.js +26 -0
- package/es/utils/request.js +71 -0
- package/lib/cache/BuddyCache.js +130 -26
- package/lib/cache/ChatCache.js +227 -42
- package/lib/cache/ClientMenuCache.js +78 -0
- package/lib/cache/DictionaryCache.js +93 -0
- package/lib/cache/EnterpriseCache.js +96 -22
- package/lib/cache/GroupCache.js +165 -31
- package/lib/cache/GroupMemberCache.js +202 -40
- package/lib/cache/GroupMessageCache.js +229 -36
- package/lib/cache/HelpCache.js +39 -3
- package/lib/cache/MessageCache.js +255 -44
- package/lib/cache/MessageTimeStampCache.js +92 -13
- package/lib/cache/MyselfCache.js +88 -14
- package/lib/cache/OrganizationCache.js +55 -12
- package/lib/cache/SecurtyCache.js +78 -0
- package/lib/cache/SystemMessageCache.js +156 -19
- package/lib/cache/TimeStampCache.js +85 -3
- package/lib/cache/TimeStampOtherCache.js +200 -0
- package/lib/cache/db/IMDB.js +100 -23
- package/lib/cache/db/bean/Buddy.js +101 -32
- package/lib/cache/db/bean/Chat.js +69 -20
- package/lib/cache/db/bean/ClientMenu.js +47 -0
- package/lib/cache/db/bean/Dictionary.js +25 -0
- package/lib/cache/db/bean/GroupMessage.js +20 -5
- package/lib/cache/db/bean/Message.js +97 -30
- package/lib/cache/db/bean/Securty.js +26 -0
- package/lib/cache/db/bean/SystemMessage.js +37 -13
- package/lib/cache/db/bean/TimeStampOther.js +30 -0
- package/lib/cache/db/bean/Timestamp.js +92 -29
- package/lib/config/thriftConfig.js +27 -6
- package/lib/constant/storageConstant.js +43 -18
- package/lib/constant/timeStampOtherConstant.js +27 -0
- package/lib/constant/uploadTypeConstant.js +14 -1
- package/lib/core/LinkdoodWebSDK.js +68 -10
- package/lib/core/action/ApplicationAction.js +85 -19
- package/lib/core/action/AuthAction.js +293 -41
- package/lib/core/action/BuddyAction.js +317 -51
- package/lib/core/action/ChatAction.js +120 -33
- package/lib/core/action/ClientMenuAction.js +60 -0
- package/lib/core/action/ConfigAction.js +123 -18
- package/lib/core/action/DictionaryAction.js +71 -0
- package/lib/core/action/EnterpriseAction.js +46 -9
- package/lib/core/action/FeedBackAction.js +70 -12
- package/lib/core/action/FileAction.js +100 -14
- package/lib/core/action/GroupAction.js +510 -121
- package/lib/core/action/HelpAction.js +36 -6
- package/lib/core/action/MediaAction.js +81 -11
- package/lib/core/action/MessageAction.js +332 -58
- package/lib/core/action/OrganizationAction.js +101 -15
- package/lib/core/action/SearchAction.js +82 -11
- package/lib/core/action/SecurtyAction.js +60 -0
- package/lib/core/action/SubscribeAction.js +47 -10
- package/lib/core/action/SystemAction.js +96 -11
- package/lib/core/action/SystemMessageAction.js +54 -10
- package/lib/core/action/UserAction.js +180 -40
- package/lib/core/action/index.js +153 -1
- package/lib/decorator/ErrorORCompletionDecorator.js +128 -5
- package/lib/error/JSDKError.js +38 -5
- package/lib/index.js +9 -1
- package/lib/model/commonModel.js +55 -7
- package/lib/model/loginModel.js +63 -5
- package/lib/model/thriftConnectionModel.js +37 -5
- package/lib/model/userModel.js +114 -6
- package/lib/notify/NotifyAnalysis.js +194 -5
- package/lib/notify/NotifyHeartBeat.js +166 -21
- package/lib/notify/emitter/notifyEmitter.js +120 -101
- package/lib/notify/send/NotifyFactory.js +92 -5
- package/lib/notify/send/children/noticeReply.js +35 -7
- package/lib/notify/send/children/notifyCreateFaceGroupSuccess.js +28 -5
- package/lib/notify/send/children/notifyError.js +36 -6
- package/lib/notify/send/children/notifyExitFaceAddBuddy.js +28 -5
- package/lib/notify/send/children/notifyExitFaceJoinGroup.js +28 -5
- package/lib/notify/send/children/notifyFaceAddBuddy.js +28 -5
- package/lib/notify/send/children/notifyFaceAddBuddyConfirm.js +28 -5
- package/lib/notify/send/children/notifyFaceJoinGroup.js +28 -5
- package/lib/notify/send/children/notifyGroupMemberInfoRefresh.js +92 -5
- package/lib/notify/send/children/notifyGroupMembersRefresh.js +89 -14
- package/lib/notify/send/children/notifyGroupRefresh.js +82 -5
- package/lib/notify/send/children/notifyMessageCursor.js +28 -5
- package/lib/notify/send/children/notifyMessageJson.js +84 -5
- package/lib/notify/send/children/notifyMessageStatusStatsInfo.js +28 -5
- package/lib/notify/send/children/notifyOperateBuddy.js +70 -5
- package/lib/notify/send/children/notifyOperateUser.js +54 -5
- package/lib/notify/send/children/notifyPresent.js +28 -5
- package/lib/notify/send/children/notifySendMessage.js +184 -27
- package/lib/notify/send/children/notifyTransferGroup.js +58 -7
- package/lib/notify/send/children/notifyTransferMessage.js +28 -5
- package/lib/offline/OfflineBuddy.js +82 -5
- package/lib/offline/OfflineClientMenu.js +48 -0
- package/lib/offline/OfflineDictionary.js +85 -0
- package/lib/offline/OfflineEnterprise.js +48 -5
- package/lib/offline/OfflineGroup.js +187 -16
- package/lib/offline/OfflineHelp.js +80 -5
- package/lib/offline/OfflineMessage.js +157 -8
- package/lib/offline/OfflineMyself.js +84 -5
- package/lib/offline/OfflineSecurty.js +48 -0
- package/lib/service/ApplicationService.js +137 -14
- package/lib/service/BuddyService.js +435 -64
- package/lib/service/ChatService.js +817 -101
- package/lib/service/ClientMenuService.js +105 -0
- package/lib/service/CommonService.js +152 -17
- package/lib/service/DictionaryService.js +125 -0
- package/lib/service/EnterpriseService.js +331 -32
- package/lib/service/GroupMemberService.js +851 -82
- package/lib/service/GroupMessageService.js +192 -24
- package/lib/service/GroupService.js +406 -58
- package/lib/service/HelpService.js +162 -11
- package/lib/service/LoginService.js +174 -18
- package/lib/service/MediaService.js +215 -12
- package/lib/service/MessageService.js +757 -98
- package/lib/service/MessageTimeStampService.js +104 -14
- package/lib/service/MyselfService.js +112 -19
- package/lib/service/OrganizationService.js +237 -13
- package/lib/service/SecurtyService.js +103 -0
- package/lib/service/SubscribeService.js +100 -15
- package/lib/service/SystemMessageService.js +102 -4
- package/lib/service/TimeStampOtherService.js +108 -0
- package/lib/service/TimeStampService.js +174 -9
- package/lib/thrift/client/ThriftBase.js +23 -1
- package/lib/thrift/client/ThriftHoldClient.js +30 -1
- package/lib/thrift/client/ThriftNotifyClient.js +30 -1
- package/lib/thrift/client/ThriftServiceClient.js +30 -1
- package/lib/thrift/merge/thrift-merge.js +287 -77713
- package/lib/thrift/thriftClient.js +148 -22
- package/lib/utils/Logger.js +72 -1
- package/lib/utils/_decorators.js +41 -11
- package/lib/utils/browserUtil.js +70 -7
- package/lib/utils/commonUtil.js +157 -37
- package/lib/utils/cryptoUtil.js +45 -14
- package/lib/utils/filesUtil.js +358 -66
- package/lib/utils/groupJudgeUtil.js +166 -58
- package/lib/utils/navi.js +35 -11
- package/lib/utils/proptypeExtend.js +35 -13
- package/lib/utils/request.js +104 -8
- package/package.json +79 -84
- package/docs/md/action/org.md +0 -37
- package/docs/md/model/PltFRet.md +0 -0
- package/docs/thrift/ap.thrift +0 -3245
- package/docs/thrift/aphead.thrift +0 -2376
- package/docs/thrift/aphold.thrift +0 -14
- package/docs/thrift/apnotify.thrift +0 -275
- package/lib/cache/OrganizationTimeStampCache.js +0 -18
- package/lib/cache/SystemDictionaryCache.js +0 -41
- package/lib/cache/db/bean/SystemDictionarie.js +0 -9
- package/lib/constant/dictionaryConstant.js +0 -10
- package/lib/core/action/OrgAction.js +0 -12
- package/lib/offline/OfflineOrganization.js +0 -12
- package/lib/service/OrganizationTimeStampService.js +0 -10
- package/lib/service/SystemDictionaryService.js +0 -27
- package/lib/thrift/lib/ap/APHold.js +0 -7
- package/lib/thrift/lib/ap/APNotify.js +0 -7
- package/lib/thrift/lib/ap/APService.js +0 -7
- package/lib/thrift/lib/ap/ap_types.js +0 -6
- package/lib/thrift/lib/ap/aphead_types.js +0 -6
- package/lib/thrift/lib/ap/aphold_types.js +0 -6
- package/lib/thrift/lib/ap/apnotify_types.js +0 -6
- package/lib/thrift/lib/thrift.js +0 -398
package/CHANGELOG.md
CHANGED
|
@@ -1,56 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
1.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
## 1.0.25(2025.05.20)
|
|
4
|
+
### 🐛 Bug Fixes
|
|
5
|
+
1. 重构断链心跳机制
|
|
6
|
+
2. 移除networkError通知
|
|
7
|
+
3. 移除SDKError错误码-400为网络错误
|
|
8
|
+
4. 增加 notifyHeartError(心跳断网-失败)、notifyHeartSuccess(心跳断网后重新建立链接成功)、notifyHeartNetworkError(心跳请求异常[连续5次请求异常])
|
|
9
|
+
5. 增加全局错误码 1024-500(服务器异常)
|
|
10
|
+
6. 获取用户隐私设置添加入参switchType,默认为4 用户隐私,21为群隐私
|
|
11
|
+
7. 增加 登录94号登录方式
|
|
12
|
+
8. 增加 调用退出清除session用户信息
|
|
13
|
+
9. 修复已知问题
|
|
14
|
+
10. 增加搜索组织和组织用户接口
|
|
15
|
+
11. 增加 客户端菜单、字典、工作密级 相关内容
|
|
16
|
+
|
|
17
|
+
## 1.0.24(2024.10.21)
|
|
18
|
+
### 🐛 Bug Fixes
|
|
19
|
+
* 修复了一些已知问题
|
|
20
|
+
|
|
21
|
+
## 1.0.23(2024.10.17)
|
|
22
|
+
### Features
|
|
23
|
+
1. 增加89号视频文件消息接收通知;
|
|
24
|
+
|
|
25
|
+
## 1.0.22(2024.6.14)
|
|
26
|
+
### Features
|
|
27
|
+
1. 增加networkError通知逻辑;
|
|
28
|
+
2. 断连后重新启动心跳机制;
|
|
29
|
+
3. 增加JSDKError错误码-400为网络错误;
|
|
30
|
+
|
|
31
|
+
## 1.0.20(2024.5.17)
|
|
32
|
+
### Features
|
|
33
|
+
* 修改发送文件、图片消息方法
|
|
34
|
+
* 支持语音、转发、组合消息发送及接收
|
|
35
|
+
* 增加发送语音、转发消息
|
|
36
|
+
* 增加获取某个用户所在组织下可见的子组织和用户(在线)
|
|
37
|
+
* 增加获取用orgID获取组织信息(在线)
|
|
38
|
+
|
|
39
|
+
## 1.0.11(2024.03.07)
|
|
40
|
+
### 🐛 Bug Fixes
|
|
41
|
+
* 修复网页版发送图片客户端无法显示问题
|
|
42
|
+
|
|
43
|
+
## 1.0.12(2024.03.08)
|
|
44
|
+
### 🐛 Bug Fixes
|
|
45
|
+
* 修复创建群成功后无法打开群会话
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## 1.0.13(2024.03.11)
|
|
49
|
+
### 🐛 Bug Fixes
|
|
50
|
+
* 修复接受群消息通知解析报错问题
|
|
51
|
+
|
|
52
|
+
## 1.0.14(2024.03.12)
|
|
53
|
+
### 🐛 Bug Fixes
|
|
54
|
+
* 修复获取群成员列表异常问题
|
|
55
|
+
|
|
56
|
+
## 1.0.15(2024.03.14)
|
|
57
|
+
### 🐛 Bug Fixes
|
|
58
|
+
* 修复process兼容
|
|
59
|
+
* 修复获取消息异常问题
|
|
60
|
+
|
|
61
|
+
## 1.0.16(2024.03.15)
|
|
62
|
+
### 🐛 Bug Fixes
|
|
63
|
+
* 修复拦截响应long转string时转义问题
|
|
64
|
+
|
|
65
|
+
## 1.0.17(2024.03.22)
|
|
66
|
+
### 🐛 Bug Fixes
|
|
67
|
+
* 修复process单独提权异常问题
|
|
68
|
+
|
|
69
|
+
## 1.0.18(2024.05.08)
|
|
70
|
+
### 🐛 Bug Fixes
|
|
71
|
+
* 修复拦截响应数组中long转string时转义问题
|
|
72
|
+
|
|
73
|
+
## 1.0.19(2024.05.09)
|
|
74
|
+
### 🐛 Bug Fixes
|
|
75
|
+
* 修复拦截响应数组中string数字的转义问题
|
|
76
|
+
* 修复拦截响应数组中包含json对象未拦截问题
|
|
77
|
+
|
|
78
|
+
## 1.0.20
|
|
79
|
+
* 扩展 getMessageHistoryById 方法
|
|
80
|
+
* 扩展 getGroupMessageHistoryById 方法
|
package/README.md
CHANGED
|
@@ -1,38 +1,74 @@
|
|
|
1
|
-
# LinkDood-Web-SDK使用说明
|
|
2
|
-
|
|
3
|
-
## 一、引入方式
|
|
4
|
-
|
|
5
|
-
### 1.模块化引入
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
npm install linkdood-web-sdk
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### 2.文件引入
|
|
12
|
-
|
|
13
|
-
直接拷贝dist目录下*linkdoodWebSDK.min.js*至项目
|
|
14
|
-
|
|
15
|
-
```javascript
|
|
16
|
-
<script src="dist/linkdoodWebSDK.min.js"></script>
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## 二、初始化SDK
|
|
20
|
-
|
|
21
|
-
```javascript
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
# LinkDood-Web-SDK使用说明
|
|
2
|
+
|
|
3
|
+
## 一、引入方式
|
|
4
|
+
|
|
5
|
+
### 1.模块化引入
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install linkdood-web-sdk
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### 2.文件引入
|
|
12
|
+
|
|
13
|
+
直接拷贝dist目录下*linkdoodWebSDK.min.js*至项目
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
<script src="dist/linkdoodWebSDK.min.js"></script>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 二、初始化SDK
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
老版打包工具
|
|
23
|
+
import LinkdoodWebSDK from 'linkdood-web-sdk/lib'
|
|
24
|
+
|
|
25
|
+
新版打包工具(esm)
|
|
26
|
+
import LinkdoodWebSDK from 'linkdood-web-sdk'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
const webSDK = new LinkdoodWebSDK();
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```warning
|
|
33
|
+
使用esm如果打包工具未支持Decorator
|
|
34
|
+
|
|
35
|
+
请在 babel.config.js 添加
|
|
36
|
+
["@babel/plugin-proposal-decorators", { version: "2023-05" }]
|
|
37
|
+
|
|
38
|
+
如果什么都不想添加请使用
|
|
39
|
+
import LinkdoodWebSDK from 'linkdood-web-sdk/lib'
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### 三、示例调用
|
|
44
|
+
|
|
45
|
+
```javascript
|
|
46
|
+
let params = {
|
|
47
|
+
user: '18888888888',
|
|
48
|
+
pwd:"123456",
|
|
49
|
+
userType: 1
|
|
50
|
+
}
|
|
51
|
+
webSDK.login(params).then(res => console.log(res));
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
> 具体接口参考docs文档
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## 编译thrift方法
|
|
60
|
+
```
|
|
61
|
+
thrift --gen js aphold.thrift
|
|
62
|
+
thrift --gen js aphead.thrift
|
|
63
|
+
thrift --gen js apnotify.thrift
|
|
64
|
+
thrift --gen js interworking.thrift
|
|
65
|
+
thrift --gen js vrv-only/ap.thrift
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
thrift --gen js -out js-out aphold.thrift
|
|
70
|
+
thrift --gen js -out js-out aphead.thrift
|
|
71
|
+
thrift --gen js -out js-out vrv-IN-thrift/apnotify.thrift
|
|
72
|
+
thrift --gen js -out js-out .vrv-IN-thrift/interworking.thrift
|
|
73
|
+
thrift --gen js -out js-out -I doc/vrv-IN-thrift vrv-IN-thrift/vrv-only/ap.thrift
|
|
74
|
+
```
|