yach.open.jssdk 4.4.1 → 4.4.3-beta1
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/package.json +1 -1
- package/dist/yach_jssdk_4.4.1-beta6.js +0 -1
- package/es/api/app/custom/talYoungFilesUpload.d.ts +0 -38
- package/es/api/app/custom/talYoungFilesUpload.js +0 -16
- package/es/api/biz/chat/chooseConversationByCorpId.d.ts +0 -36
- package/es/api/biz/chat/chooseConversationByCorpId.js +0 -8
- package/es/api/biz/chat/openSingleChat.d.ts +0 -10
- package/es/api/biz/chat/openSingleChat.js +0 -8
- package/es/api/biz/chat/openSquad.d.ts +0 -8
- package/es/api/biz/chat/openSquad.js +0 -8
- package/es/api/biz/chat/openTeamChat.d.ts +0 -10
- package/es/api/biz/chat/openTeamChat.js +0 -8
- package/es/api/biz/chat/pickConversation.d.ts +0 -19
- package/es/api/biz/chat/pickConversation.js +0 -19
- package/es/api/biz/chat/sendP2PMsg.d.ts +0 -10
- package/es/api/biz/chat/sendP2PMsg.js +0 -8
- package/es/api/biz/contact/complexPicker.d.ts +0 -62
- package/es/api/biz/contact/complexPicker.js +0 -8
- package/es/api/biz/contact/departmentsPicker.d.ts +0 -35
- package/es/api/biz/contact/departmentsPicker.js +0 -8
- package/es/api/biz/group/groupComplexPicker.d.ts +0 -33
- package/es/api/biz/group/groupComplexPicker.js +0 -8
- package/es/api/biz/map/multipointView.d.ts +0 -21
- package/es/api/biz/map/multipointView.js +0 -19
- package/es/api/biz/map/view.d.ts +0 -13
- package/es/api/biz/map/view.js +0 -19
- package/es/api/biz/navigation/close.d.ts +0 -7
- package/es/api/biz/navigation/close.js +0 -9
- package/es/api/biz/navigation/goBack.d.ts +0 -7
- package/es/api/biz/navigation/goBack.js +0 -19
- package/es/api/biz/navigation/quit.d.ts +0 -8
- package/es/api/biz/navigation/quit.js +0 -15
- package/es/api/biz/navigation/replace.d.ts +0 -8
- package/es/api/biz/navigation/replace.js +0 -8
- package/es/api/biz/navigation/setIcon.d.ts +0 -12
- package/es/api/biz/navigation/setIcon.js +0 -27
- package/es/api/biz/navigation/setLeft.d.ts +0 -9
- package/es/api/biz/navigation/setLeft.js +0 -31
- package/es/api/biz/navigation/setMenu.d.ts +0 -20
- package/es/api/biz/navigation/setMenu.js +0 -25
- package/es/api/biz/navigation/setPanGestureEnable.d.ts +0 -9
- package/es/api/biz/navigation/setPanGestureEnable.js +0 -26
- package/es/api/biz/navigation/setRight.d.ts +0 -13
- package/es/api/biz/navigation/setRight.js +0 -31
- package/es/api/biz/navigation/setTitle.d.ts +0 -11
- package/es/api/biz/navigation/setTitle.js +0 -8
- package/es/api/biz/navigation/setTitleExpandIcon.d.ts +0 -9
- package/es/api/biz/navigation/setTitleExpandIcon.js +0 -25
- package/es/api/biz/navigation/setWindowBig.d.ts +0 -9
- package/es/api/biz/navigation/setWindowBig.js +0 -16
- package/es/api/biz/navigation/tencentMeeting.d.ts +0 -22
- package/es/api/biz/navigation/tencentMeeting.js +0 -8
- package/es/api/biz/navigation/tencentMeetingBegin.d.ts +0 -7
- package/es/api/biz/navigation/tencentMeetingBegin.js +0 -8
- package/es/api/biz/navigation/updateExpandTitle.d.ts +0 -8
- package/es/api/biz/navigation/updateExpandTitle.js +0 -8
- package/es/api/biz/telephone/call.d.ts +0 -9
- package/es/api/biz/telephone/call.js +0 -19
- package/es/api/biz/telephone/showCallMenu.d.ts +0 -12
- package/es/api/biz/telephone/showCallMenu.js +0 -19
- package/es/api/biz/util/addAppToNav.d.ts +0 -9
- package/es/api/biz/util/addAppToNav.js +0 -23
- package/es/api/biz/util/assistantCreate.d.ts +0 -11
- package/es/api/biz/util/assistantCreate.js +0 -23
- package/es/api/biz/util/authFinish.d.ts +0 -11
- package/es/api/biz/util/authFinish.js +0 -19
- package/es/api/biz/util/authStart.d.ts +0 -9
- package/es/api/biz/util/authStart.js +0 -19
- package/es/api/biz/util/chosen.d.ts +0 -15
- package/es/api/biz/util/chosen.js +0 -19
- package/es/api/biz/util/clipboardFileUpload.d.ts +0 -7
- package/es/api/biz/util/clipboardFileUpload.js +0 -8
- package/es/api/biz/util/closeWindow.d.ts +0 -8
- package/es/api/biz/util/closeWindow.js +0 -15
- package/es/api/biz/util/complain.d.ts +0 -12
- package/es/api/biz/util/complain.js +0 -8
- package/es/api/biz/util/copy.d.ts +0 -11
- package/es/api/biz/util/copy.js +0 -19
- package/es/api/biz/util/createModifySchedule.d.ts +0 -26
- package/es/api/biz/util/createModifySchedule.js +0 -15
- package/es/api/biz/util/datepicker.d.ts +0 -14
- package/es/api/biz/util/datepicker.js +0 -19
- package/es/api/biz/util/datetimepicker.d.ts +0 -14
- package/es/api/biz/util/datetimepicker.js +0 -19
- package/es/api/biz/util/disableScreenCapture.d.ts +0 -8
- package/es/api/biz/util/disableScreenCapture.js +0 -19
- package/es/api/biz/util/downloadFile.d.ts +0 -9
- package/es/api/biz/util/downloadFile.js +0 -8
- package/es/api/biz/util/entergroupCheck.d.ts +0 -11
- package/es/api/biz/util/entergroupCheck.js +0 -23
- package/es/api/biz/util/externalLinkPreviewFile.d.ts +0 -11
- package/es/api/biz/util/externalLinkPreviewFile.js +0 -8
- package/es/api/biz/util/feedback.d.ts +0 -11
- package/es/api/biz/util/feedback.js +0 -8
- package/es/api/biz/util/getSingleWebviewData.d.ts +0 -8
- package/es/api/biz/util/getSingleWebviewData.js +0 -8
- package/es/api/biz/util/getTogetherConfig.d.ts +0 -11
- package/es/api/biz/util/getTogetherConfig.js +0 -23
- package/es/api/biz/util/getToken.d.ts +0 -11
- package/es/api/biz/util/getToken.js +0 -19
- package/es/api/biz/util/injectScript.d.ts +0 -9
- package/es/api/biz/util/injectScript.js +0 -8
- package/es/api/biz/util/invoice.d.ts +0 -12
- package/es/api/biz/util/invoice.js +0 -15
- package/es/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/es/api/biz/util/knowledgeBaseSelect.js +0 -15
- package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/es/api/biz/util/lorebaseRefreshNodeWebview.js +0 -19
- package/es/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/es/api/biz/util/lorebaseShowList.js +0 -19
- package/es/api/biz/util/mediaFileUpload.d.ts +0 -26
- package/es/api/biz/util/mediaFileUpload.js +0 -15
- package/es/api/biz/util/onlineDocmentOpenTeamChat.d.ts +0 -10
- package/es/api/biz/util/onlineDocmentOpenTeamChat.js +0 -23
- package/es/api/biz/util/open.d.ts +0 -9
- package/es/api/biz/util/open.js +0 -8
- package/es/api/biz/util/openFutureGroup.d.ts +0 -10
- package/es/api/biz/util/openFutureGroup.js +0 -23
- package/es/api/biz/util/openLink.d.ts +0 -8
- package/es/api/biz/util/openLink.js +0 -8
- package/es/api/biz/util/openMediaFileDialog.d.ts +0 -23
- package/es/api/biz/util/openMediaFileDialog.js +0 -15
- package/es/api/biz/util/openSingleWebview.d.ts +0 -23
- package/es/api/biz/util/openSingleWebview.js +0 -15
- package/es/api/biz/util/openSlidePanel.d.ts +0 -11
- package/es/api/biz/util/openSlidePanel.js +0 -15
- package/es/api/biz/util/openTalYoungToTopic.d.ts +0 -6
- package/es/api/biz/util/openTalYoungToTopic.js +0 -15
- package/es/api/biz/util/openTogetherEyeWebview.d.ts +0 -11
- package/es/api/biz/util/openTogetherEyeWebview.js +0 -23
- package/es/api/biz/util/openUserSchedule.d.ts +0 -11
- package/es/api/biz/util/openUserSchedule.js +0 -23
- package/es/api/biz/util/openVideoPlayer.d.ts +0 -27
- package/es/api/biz/util/openVideoPlayer.js +0 -23
- package/es/api/biz/util/previewFile.d.ts +0 -11
- package/es/api/biz/util/previewFile.js +0 -8
- package/es/api/biz/util/previewImage.d.ts +0 -9
- package/es/api/biz/util/previewImage.js +0 -8
- package/es/api/biz/util/proxy.d.ts +0 -13
- package/es/api/biz/util/proxy.js +0 -8
- package/es/api/biz/util/pushWorkMsg.d.ts +0 -10
- package/es/api/biz/util/pushWorkMsg.js +0 -15
- package/es/api/biz/util/remind.d.ts +0 -15
- package/es/api/biz/util/remind.js +0 -23
- package/es/api/biz/util/resetSessionUnread.d.ts +0 -8
- package/es/api/biz/util/resetSessionUnread.js +0 -21
- package/es/api/biz/util/rouseApp.d.ts +0 -12
- package/es/api/biz/util/rouseApp.js +0 -15
- package/es/api/biz/util/savePic.d.ts +0 -8
- package/es/api/biz/util/savePic.js +0 -19
- package/es/api/biz/util/scan.d.ts +0 -11
- package/es/api/biz/util/scan.js +0 -19
- package/es/api/biz/util/selectDepartment.d.ts +0 -9
- package/es/api/biz/util/selectDepartment.js +0 -8
- package/es/api/biz/util/share.d.ts +0 -12
- package/es/api/biz/util/share.js +0 -19
- package/es/api/biz/util/takePicture.d.ts +0 -13
- package/es/api/biz/util/takePicture.js +0 -8
- package/es/api/biz/util/uploadAttachment.d.ts +0 -55
- package/es/api/biz/util/uploadAttachment.js +0 -8
- package/es/api/biz/util/yachEvent.d.ts +0 -12
- package/es/api/biz/util/yachEvent.js +0 -27
- package/es/api/biz/util/zfbAuth.d.ts +0 -10
- package/es/api/biz/util/zfbAuth.js +0 -19
- package/es/api/biz/webViewMessage/send.d.ts +0 -7
- package/es/api/biz/webViewMessage/send.js +0 -15
- package/es/api/common.typings.d.ts +0 -9
- package/es/api/common.typings.js +0 -0
- package/es/api/device/audio/download.d.ts +0 -8
- package/es/api/device/audio/download.js +0 -19
- package/es/api/device/audio/onPlayEnd.d.ts +0 -7
- package/es/api/device/audio/onPlayEnd.js +0 -19
- package/es/api/device/audio/onRecordEnd.d.ts +0 -7
- package/es/api/device/audio/onRecordEnd.js +0 -19
- package/es/api/device/audio/onRecordEnd_v2.d.ts +0 -7
- package/es/api/device/audio/onRecordEnd_v2.js +0 -19
- package/es/api/device/audio/pause.d.ts +0 -8
- package/es/api/device/audio/pause.js +0 -19
- package/es/api/device/audio/play.d.ts +0 -8
- package/es/api/device/audio/play.js +0 -19
- package/es/api/device/audio/resume.d.ts +0 -8
- package/es/api/device/audio/resume.js +0 -19
- package/es/api/device/audio/startRecord.d.ts +0 -8
- package/es/api/device/audio/startRecord.js +0 -19
- package/es/api/device/audio/startRecord_v2.d.ts +0 -8
- package/es/api/device/audio/startRecord_v2.js +0 -19
- package/es/api/device/audio/stop.d.ts +0 -8
- package/es/api/device/audio/stop.js +0 -19
- package/es/api/device/audio/stopRecord.d.ts +0 -7
- package/es/api/device/audio/stopRecord.js +0 -19
- package/es/api/device/audio/stopRecord_v2.d.ts +0 -7
- package/es/api/device/audio/stopRecord_v2.js +0 -19
- package/es/api/device/base/checkStepPermission.d.ts +0 -8
- package/es/api/device/base/checkStepPermission.js +0 -19
- package/es/api/device/base/getPhoneInfo.d.ts +0 -16
- package/es/api/device/base/getPhoneInfo.js +0 -19
- package/es/api/device/base/getUUID.d.ts +0 -10
- package/es/api/device/base/getUUID.js +0 -23
- package/es/api/device/connection/getNetworkType.d.ts +0 -10
- package/es/api/device/connection/getNetworkType.js +0 -19
- package/es/api/device/connection/isAtTal.d.ts +0 -10
- package/es/api/device/connection/isAtTal.js +0 -21
- package/es/api/device/geolocation/get.d.ts +0 -42
- package/es/api/device/geolocation/get.js +0 -19
- package/es/api/device/geolocation/getSwitch.d.ts +0 -10
- package/es/api/device/geolocation/getSwitch.js +0 -15
- package/es/api/device/notification/actionSheet.d.ts +0 -15
- package/es/api/device/notification/actionSheet.js +0 -19
- package/es/api/device/notification/alert.d.ts +0 -13
- package/es/api/device/notification/alert.js +0 -23
- package/es/api/device/notification/confirm.d.ts +0 -16
- package/es/api/device/notification/confirm.js +0 -23
- package/es/api/device/notification/hidePreloader.d.ts +0 -7
- package/es/api/device/notification/hidePreloader.js +0 -19
- package/es/api/device/notification/showPreloader.d.ts +0 -9
- package/es/api/device/notification/showPreloader.js +0 -19
- package/es/api/device/notification/toast.d.ts +0 -15
- package/es/api/device/notification/toast.js +0 -8
- package/es/api/device/notification/vibrate.d.ts +0 -8
- package/es/api/device/notification/vibrate.js +0 -19
- package/es/api/device/system/getLang.d.ts +0 -10
- package/es/api/device/system/getLang.js +0 -8
- package/es/api/device/system/setLight.d.ts +0 -8
- package/es/api/device/system/setLight.js +0 -19
- package/es/api/initAPI.d.ts +0 -6
- package/es/api/initAPI.js +0 -22
- package/es/api/primary/createTab.d.ts +0 -13
- package/es/api/primary/createTab.js +0 -15
- package/es/api/primary/exitFullScreen.d.ts +0 -7
- package/es/api/primary/exitFullScreen.js +0 -15
- package/es/api/primary/fullScreen.d.ts +0 -7
- package/es/api/primary/fullScreen.js +0 -15
- package/es/api/primary/weeklyShare.d.ts +0 -13
- package/es/api/primary/weeklyShare.js +0 -15
- package/es/api/runtime/permission/requestAuthCode.d.ts +0 -12
- package/es/api/runtime/permission/requestAuthCode.js +0 -8
- package/es/api/ui/pullToRefresh/disable.d.ts +0 -7
- package/es/api/ui/pullToRefresh/disable.js +0 -19
- package/es/api/ui/pullToRefresh/enable.d.ts +0 -7
- package/es/api/ui/pullToRefresh/enable.js +0 -19
- package/es/api/ui/pullToRefresh/stop.d.ts +0 -7
- package/es/api/ui/pullToRefresh/stop.js +0 -19
- package/es/api/ui/webViewBounce/disable.d.ts +0 -7
- package/es/api/ui/webViewBounce/disable.js +0 -15
- package/es/api/util/domainStorage/getItem.d.ts +0 -12
- package/es/api/util/domainStorage/getItem.js +0 -19
- package/es/api/util/domainStorage/removeItem.d.ts +0 -9
- package/es/api/util/domainStorage/removeItem.js +0 -19
- package/es/api/util/domainStorage/setItem.d.ts +0 -11
- package/es/api/util/domainStorage/setItem.js +0 -19
- package/es/api/util/tool/flushLog.d.ts +0 -7
- package/es/api/util/tool/flushLog.js +0 -15
- package/es/api/util/tool/log.d.ts +0 -9
- package/es/api/util/tool/log.js +0 -15
- package/es/index.d.ts +0 -325
- package/es/index.js +0 -341
- package/es/lib/bridge/index.d.ts +0 -2
- package/es/lib/bridge/index.js +0 -2
- package/es/lib/bridge/mobile.d.ts +0 -13
- package/es/lib/bridge/mobile.js +0 -179
- package/es/lib/bridge/pc.d.ts +0 -4
- package/es/lib/bridge/pc.js +0 -87
- package/es/lib/helper/apiHelper.d.ts +0 -2
- package/es/lib/helper/apiHelper.js +0 -8
- package/es/lib/helper/codeMap.d.ts +0 -2
- package/es/lib/helper/codeMap.js +0 -6
- package/es/lib/helper/event.d.ts +0 -9
- package/es/lib/helper/event.js +0 -40
- package/es/lib/helper/pcIframe.d.ts +0 -44
- package/es/lib/helper/pcIframe.js +0 -150
- package/es/lib/index.d.ts +0 -4
- package/es/lib/index.js +0 -78
- package/es/lib/sdk/index.d.ts +0 -19
- package/es/lib/sdk/index.js +0 -170
- package/es/lib/sdk/sdk.typings.d.ts +0 -85
- package/es/lib/sdk/sdk.typings.js +0 -7
- package/es/utils/bpitLog.d.ts +0 -16
- package/es/utils/bpitLog.js +0 -62
- package/es/utils/compareVersions.d.ts +0 -58
- package/es/utils/compareVersions.js +0 -165
- package/es/utils/console.d.ts +0 -4
- package/es/utils/console.js +0 -44
- package/es/utils/env.d.ts +0 -3
- package/es/utils/env.js +0 -45
- package/es/utils/index.d.ts +0 -4
- package/es/utils/index.js +0 -20
- package/libs/api/app/custom/talYoungFilesUpload.d.ts +0 -38
- package/libs/api/app/custom/talYoungFilesUpload.js +0 -24
- package/libs/api/biz/chat/chooseConversationByCorpId.d.ts +0 -36
- package/libs/api/biz/chat/chooseConversationByCorpId.js +0 -15
- package/libs/api/biz/chat/openSingleChat.d.ts +0 -10
- package/libs/api/biz/chat/openSingleChat.js +0 -15
- package/libs/api/biz/chat/openSquad.d.ts +0 -8
- package/libs/api/biz/chat/openSquad.js +0 -15
- package/libs/api/biz/chat/openTeamChat.d.ts +0 -10
- package/libs/api/biz/chat/openTeamChat.js +0 -15
- package/libs/api/biz/chat/pickConversation.d.ts +0 -19
- package/libs/api/biz/chat/pickConversation.js +0 -26
- package/libs/api/biz/chat/sendP2PMsg.d.ts +0 -10
- package/libs/api/biz/chat/sendP2PMsg.js +0 -15
- package/libs/api/biz/contact/complexPicker.d.ts +0 -62
- package/libs/api/biz/contact/complexPicker.js +0 -15
- package/libs/api/biz/contact/departmentsPicker.d.ts +0 -35
- package/libs/api/biz/contact/departmentsPicker.js +0 -15
- package/libs/api/biz/group/groupComplexPicker.d.ts +0 -33
- package/libs/api/biz/group/groupComplexPicker.js +0 -15
- package/libs/api/biz/map/multipointView.d.ts +0 -21
- package/libs/api/biz/map/multipointView.js +0 -26
- package/libs/api/biz/map/view.d.ts +0 -13
- package/libs/api/biz/map/view.js +0 -26
- package/libs/api/biz/navigation/close.d.ts +0 -7
- package/libs/api/biz/navigation/close.js +0 -16
- package/libs/api/biz/navigation/goBack.d.ts +0 -7
- package/libs/api/biz/navigation/goBack.js +0 -26
- package/libs/api/biz/navigation/quit.d.ts +0 -8
- package/libs/api/biz/navigation/quit.js +0 -22
- package/libs/api/biz/navigation/replace.d.ts +0 -8
- package/libs/api/biz/navigation/replace.js +0 -15
- package/libs/api/biz/navigation/setIcon.d.ts +0 -12
- package/libs/api/biz/navigation/setIcon.js +0 -34
- package/libs/api/biz/navigation/setLeft.d.ts +0 -9
- package/libs/api/biz/navigation/setLeft.js +0 -38
- package/libs/api/biz/navigation/setMenu.d.ts +0 -20
- package/libs/api/biz/navigation/setMenu.js +0 -32
- package/libs/api/biz/navigation/setPanGestureEnable.d.ts +0 -9
- package/libs/api/biz/navigation/setPanGestureEnable.js +0 -33
- package/libs/api/biz/navigation/setRight.d.ts +0 -13
- package/libs/api/biz/navigation/setRight.js +0 -38
- package/libs/api/biz/navigation/setTitle.d.ts +0 -11
- package/libs/api/biz/navigation/setTitle.js +0 -15
- package/libs/api/biz/navigation/setTitleExpandIcon.d.ts +0 -9
- package/libs/api/biz/navigation/setTitleExpandIcon.js +0 -32
- package/libs/api/biz/navigation/setWindowBig.d.ts +0 -9
- package/libs/api/biz/navigation/setWindowBig.js +0 -24
- package/libs/api/biz/navigation/tencentMeeting.d.ts +0 -22
- package/libs/api/biz/navigation/tencentMeeting.js +0 -15
- package/libs/api/biz/navigation/tencentMeetingBegin.d.ts +0 -7
- package/libs/api/biz/navigation/tencentMeetingBegin.js +0 -15
- package/libs/api/biz/navigation/updateExpandTitle.d.ts +0 -8
- package/libs/api/biz/navigation/updateExpandTitle.js +0 -15
- package/libs/api/biz/telephone/call.d.ts +0 -9
- package/libs/api/biz/telephone/call.js +0 -26
- package/libs/api/biz/telephone/showCallMenu.d.ts +0 -12
- package/libs/api/biz/telephone/showCallMenu.js +0 -26
- package/libs/api/biz/util/addAppToNav.d.ts +0 -9
- package/libs/api/biz/util/addAppToNav.js +0 -30
- package/libs/api/biz/util/assistantCreate.d.ts +0 -11
- package/libs/api/biz/util/assistantCreate.js +0 -30
- package/libs/api/biz/util/authFinish.d.ts +0 -11
- package/libs/api/biz/util/authFinish.js +0 -26
- package/libs/api/biz/util/authStart.d.ts +0 -9
- package/libs/api/biz/util/authStart.js +0 -26
- package/libs/api/biz/util/chosen.d.ts +0 -15
- package/libs/api/biz/util/chosen.js +0 -26
- package/libs/api/biz/util/clipboardFileUpload.d.ts +0 -7
- package/libs/api/biz/util/clipboardFileUpload.js +0 -15
- package/libs/api/biz/util/closeWindow.d.ts +0 -8
- package/libs/api/biz/util/closeWindow.js +0 -22
- package/libs/api/biz/util/complain.d.ts +0 -12
- package/libs/api/biz/util/complain.js +0 -15
- package/libs/api/biz/util/copy.d.ts +0 -11
- package/libs/api/biz/util/copy.js +0 -26
- package/libs/api/biz/util/createModifySchedule.d.ts +0 -26
- package/libs/api/biz/util/createModifySchedule.js +0 -22
- package/libs/api/biz/util/datepicker.d.ts +0 -14
- package/libs/api/biz/util/datepicker.js +0 -26
- package/libs/api/biz/util/datetimepicker.d.ts +0 -14
- package/libs/api/biz/util/datetimepicker.js +0 -26
- package/libs/api/biz/util/disableScreenCapture.d.ts +0 -8
- package/libs/api/biz/util/disableScreenCapture.js +0 -26
- package/libs/api/biz/util/downloadFile.d.ts +0 -9
- package/libs/api/biz/util/downloadFile.js +0 -15
- package/libs/api/biz/util/entergroupCheck.d.ts +0 -11
- package/libs/api/biz/util/entergroupCheck.js +0 -30
- package/libs/api/biz/util/externalLinkPreviewFile.d.ts +0 -11
- package/libs/api/biz/util/externalLinkPreviewFile.js +0 -15
- package/libs/api/biz/util/feedback.d.ts +0 -11
- package/libs/api/biz/util/feedback.js +0 -15
- package/libs/api/biz/util/getSingleWebviewData.d.ts +0 -8
- package/libs/api/biz/util/getSingleWebviewData.js +0 -15
- package/libs/api/biz/util/getTogetherConfig.d.ts +0 -11
- package/libs/api/biz/util/getTogetherConfig.js +0 -30
- package/libs/api/biz/util/getToken.d.ts +0 -11
- package/libs/api/biz/util/getToken.js +0 -26
- package/libs/api/biz/util/injectScript.d.ts +0 -9
- package/libs/api/biz/util/injectScript.js +0 -15
- package/libs/api/biz/util/invoice.d.ts +0 -12
- package/libs/api/biz/util/invoice.js +0 -23
- package/libs/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/libs/api/biz/util/knowledgeBaseSelect.js +0 -22
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +0 -26
- package/libs/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/libs/api/biz/util/lorebaseShowList.js +0 -26
- package/libs/api/biz/util/mediaFileUpload.d.ts +0 -26
- package/libs/api/biz/util/mediaFileUpload.js +0 -23
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.d.ts +0 -10
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.js +0 -30
- package/libs/api/biz/util/open.d.ts +0 -9
- package/libs/api/biz/util/open.js +0 -15
- package/libs/api/biz/util/openFutureGroup.d.ts +0 -10
- package/libs/api/biz/util/openFutureGroup.js +0 -30
- package/libs/api/biz/util/openLink.d.ts +0 -8
- package/libs/api/biz/util/openLink.js +0 -15
- package/libs/api/biz/util/openMediaFileDialog.d.ts +0 -23
- package/libs/api/biz/util/openMediaFileDialog.js +0 -23
- package/libs/api/biz/util/openSingleWebview.d.ts +0 -23
- package/libs/api/biz/util/openSingleWebview.js +0 -22
- package/libs/api/biz/util/openSlidePanel.d.ts +0 -11
- package/libs/api/biz/util/openSlidePanel.js +0 -22
- package/libs/api/biz/util/openTalYoungToTopic.d.ts +0 -6
- package/libs/api/biz/util/openTalYoungToTopic.js +0 -23
- package/libs/api/biz/util/openTogetherEyeWebview.d.ts +0 -11
- package/libs/api/biz/util/openTogetherEyeWebview.js +0 -30
- package/libs/api/biz/util/openUserSchedule.d.ts +0 -11
- package/libs/api/biz/util/openUserSchedule.js +0 -30
- package/libs/api/biz/util/openVideoPlayer.d.ts +0 -27
- package/libs/api/biz/util/openVideoPlayer.js +0 -30
- package/libs/api/biz/util/previewFile.d.ts +0 -11
- package/libs/api/biz/util/previewFile.js +0 -15
- package/libs/api/biz/util/previewImage.d.ts +0 -9
- package/libs/api/biz/util/previewImage.js +0 -15
- package/libs/api/biz/util/proxy.d.ts +0 -13
- package/libs/api/biz/util/proxy.js +0 -15
- package/libs/api/biz/util/pushWorkMsg.d.ts +0 -10
- package/libs/api/biz/util/pushWorkMsg.js +0 -23
- package/libs/api/biz/util/remind.d.ts +0 -15
- package/libs/api/biz/util/remind.js +0 -30
- package/libs/api/biz/util/resetSessionUnread.d.ts +0 -8
- package/libs/api/biz/util/resetSessionUnread.js +0 -28
- package/libs/api/biz/util/rouseApp.d.ts +0 -12
- package/libs/api/biz/util/rouseApp.js +0 -23
- package/libs/api/biz/util/savePic.d.ts +0 -8
- package/libs/api/biz/util/savePic.js +0 -26
- package/libs/api/biz/util/scan.d.ts +0 -11
- package/libs/api/biz/util/scan.js +0 -26
- package/libs/api/biz/util/selectDepartment.d.ts +0 -9
- package/libs/api/biz/util/selectDepartment.js +0 -15
- package/libs/api/biz/util/share.d.ts +0 -12
- package/libs/api/biz/util/share.js +0 -26
- package/libs/api/biz/util/takePicture.d.ts +0 -13
- package/libs/api/biz/util/takePicture.js +0 -15
- package/libs/api/biz/util/uploadAttachment.d.ts +0 -55
- package/libs/api/biz/util/uploadAttachment.js +0 -15
- package/libs/api/biz/util/yachEvent.d.ts +0 -12
- package/libs/api/biz/util/yachEvent.js +0 -34
- package/libs/api/biz/util/zfbAuth.d.ts +0 -10
- package/libs/api/biz/util/zfbAuth.js +0 -26
- package/libs/api/biz/webViewMessage/send.d.ts +0 -7
- package/libs/api/biz/webViewMessage/send.js +0 -22
- package/libs/api/common.typings.d.ts +0 -9
- package/libs/api/common.typings.js +0 -1
- package/libs/api/device/audio/download.d.ts +0 -8
- package/libs/api/device/audio/download.js +0 -26
- package/libs/api/device/audio/onPlayEnd.d.ts +0 -7
- package/libs/api/device/audio/onPlayEnd.js +0 -26
- package/libs/api/device/audio/onRecordEnd.d.ts +0 -7
- package/libs/api/device/audio/onRecordEnd.js +0 -26
- package/libs/api/device/audio/onRecordEnd_v2.d.ts +0 -7
- package/libs/api/device/audio/onRecordEnd_v2.js +0 -26
- package/libs/api/device/audio/pause.d.ts +0 -8
- package/libs/api/device/audio/pause.js +0 -26
- package/libs/api/device/audio/play.d.ts +0 -8
- package/libs/api/device/audio/play.js +0 -26
- package/libs/api/device/audio/resume.d.ts +0 -8
- package/libs/api/device/audio/resume.js +0 -26
- package/libs/api/device/audio/startRecord.d.ts +0 -8
- package/libs/api/device/audio/startRecord.js +0 -26
- package/libs/api/device/audio/startRecord_v2.d.ts +0 -8
- package/libs/api/device/audio/startRecord_v2.js +0 -26
- package/libs/api/device/audio/stop.d.ts +0 -8
- package/libs/api/device/audio/stop.js +0 -26
- package/libs/api/device/audio/stopRecord.d.ts +0 -7
- package/libs/api/device/audio/stopRecord.js +0 -26
- package/libs/api/device/audio/stopRecord_v2.d.ts +0 -7
- package/libs/api/device/audio/stopRecord_v2.js +0 -26
- package/libs/api/device/base/checkStepPermission.d.ts +0 -8
- package/libs/api/device/base/checkStepPermission.js +0 -26
- package/libs/api/device/base/getPhoneInfo.d.ts +0 -16
- package/libs/api/device/base/getPhoneInfo.js +0 -26
- package/libs/api/device/base/getUUID.d.ts +0 -10
- package/libs/api/device/base/getUUID.js +0 -30
- package/libs/api/device/connection/getNetworkType.d.ts +0 -10
- package/libs/api/device/connection/getNetworkType.js +0 -26
- package/libs/api/device/connection/isAtTal.d.ts +0 -10
- package/libs/api/device/connection/isAtTal.js +0 -28
- package/libs/api/device/geolocation/get.d.ts +0 -42
- package/libs/api/device/geolocation/get.js +0 -26
- package/libs/api/device/geolocation/getSwitch.d.ts +0 -10
- package/libs/api/device/geolocation/getSwitch.js +0 -22
- package/libs/api/device/notification/actionSheet.d.ts +0 -15
- package/libs/api/device/notification/actionSheet.js +0 -26
- package/libs/api/device/notification/alert.d.ts +0 -13
- package/libs/api/device/notification/alert.js +0 -30
- package/libs/api/device/notification/confirm.d.ts +0 -16
- package/libs/api/device/notification/confirm.js +0 -30
- package/libs/api/device/notification/hidePreloader.d.ts +0 -7
- package/libs/api/device/notification/hidePreloader.js +0 -26
- package/libs/api/device/notification/showPreloader.d.ts +0 -9
- package/libs/api/device/notification/showPreloader.js +0 -26
- package/libs/api/device/notification/toast.d.ts +0 -15
- package/libs/api/device/notification/toast.js +0 -15
- package/libs/api/device/notification/vibrate.d.ts +0 -8
- package/libs/api/device/notification/vibrate.js +0 -26
- package/libs/api/device/system/getLang.d.ts +0 -10
- package/libs/api/device/system/getLang.js +0 -15
- package/libs/api/device/system/setLight.d.ts +0 -8
- package/libs/api/device/system/setLight.js +0 -26
- package/libs/api/initAPI.d.ts +0 -6
- package/libs/api/initAPI.js +0 -29
- package/libs/api/primary/createTab.d.ts +0 -13
- package/libs/api/primary/createTab.js +0 -22
- package/libs/api/primary/exitFullScreen.d.ts +0 -7
- package/libs/api/primary/exitFullScreen.js +0 -22
- package/libs/api/primary/fullScreen.d.ts +0 -7
- package/libs/api/primary/fullScreen.js +0 -22
- package/libs/api/primary/weeklyShare.d.ts +0 -13
- package/libs/api/primary/weeklyShare.js +0 -22
- package/libs/api/runtime/permission/requestAuthCode.d.ts +0 -12
- package/libs/api/runtime/permission/requestAuthCode.js +0 -15
- package/libs/api/ui/pullToRefresh/disable.d.ts +0 -7
- package/libs/api/ui/pullToRefresh/disable.js +0 -26
- package/libs/api/ui/pullToRefresh/enable.d.ts +0 -7
- package/libs/api/ui/pullToRefresh/enable.js +0 -26
- package/libs/api/ui/pullToRefresh/stop.d.ts +0 -7
- package/libs/api/ui/pullToRefresh/stop.js +0 -26
- package/libs/api/ui/webViewBounce/disable.d.ts +0 -7
- package/libs/api/ui/webViewBounce/disable.js +0 -22
- package/libs/api/util/domainStorage/getItem.d.ts +0 -12
- package/libs/api/util/domainStorage/getItem.js +0 -26
- package/libs/api/util/domainStorage/removeItem.d.ts +0 -9
- package/libs/api/util/domainStorage/removeItem.js +0 -26
- package/libs/api/util/domainStorage/setItem.d.ts +0 -11
- package/libs/api/util/domainStorage/setItem.js +0 -26
- package/libs/api/util/tool/flushLog.d.ts +0 -7
- package/libs/api/util/tool/flushLog.js +0 -22
- package/libs/api/util/tool/log.d.ts +0 -9
- package/libs/api/util/tool/log.js +0 -22
- package/libs/index.d.ts +0 -325
- package/libs/index.js +0 -1098
- package/libs/lib/bridge/index.d.ts +0 -2
- package/libs/lib/bridge/index.js +0 -32
- package/libs/lib/bridge/mobile.d.ts +0 -13
- package/libs/lib/bridge/mobile.js +0 -185
- package/libs/lib/bridge/pc.d.ts +0 -4
- package/libs/lib/bridge/pc.js +0 -93
- package/libs/lib/helper/apiHelper.d.ts +0 -2
- package/libs/lib/helper/apiHelper.js +0 -15
- package/libs/lib/helper/codeMap.d.ts +0 -2
- package/libs/lib/helper/codeMap.js +0 -13
- package/libs/lib/helper/event.d.ts +0 -9
- package/libs/lib/helper/event.js +0 -48
- package/libs/lib/helper/pcIframe.d.ts +0 -44
- package/libs/lib/helper/pcIframe.js +0 -158
- package/libs/lib/index.d.ts +0 -4
- package/libs/lib/index.js +0 -86
- package/libs/lib/sdk/index.d.ts +0 -19
- package/libs/lib/sdk/index.js +0 -178
- package/libs/lib/sdk/sdk.typings.d.ts +0 -85
- package/libs/lib/sdk/sdk.typings.js +0 -14
- package/libs/utils/bpitLog.d.ts +0 -16
- package/libs/utils/bpitLog.js +0 -69
- package/libs/utils/compareVersions.d.ts +0 -58
- package/libs/utils/compareVersions.js +0 -173
- package/libs/utils/console.d.ts +0 -4
- package/libs/utils/console.js +0 -53
- package/libs/utils/env.d.ts +0 -3
- package/libs/utils/env.js +0 -51
- package/libs/utils/index.d.ts +0 -4
- package/libs/utils/index.js +0 -51
package/es/index.js
DELETED
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
import { yachSdk } from './lib';
|
|
2
|
-
/*biz*****************************/
|
|
3
|
-
/**util*/
|
|
4
|
-
import { openLink } from './api/biz/util/openLink';
|
|
5
|
-
import { feedback } from './api/biz/util/feedback';
|
|
6
|
-
import { open } from './api/biz/util/open';
|
|
7
|
-
import { openSlidePanel } from './api/biz/util/openSlidePanel';
|
|
8
|
-
import { share } from './api/biz/util/share';
|
|
9
|
-
import { previewFile } from './api/biz/util/previewFile';
|
|
10
|
-
import { previewImage } from './api/biz/util/previewImage';
|
|
11
|
-
import { downloadFile } from './api/biz/util/downloadFile';
|
|
12
|
-
import { uploadAttachment } from './api/biz/util/uploadAttachment';
|
|
13
|
-
import { clipboardFileUpload } from './api/biz/util/clipboardFileUpload';
|
|
14
|
-
import { proxy } from './api/biz/util/proxy';
|
|
15
|
-
import { datepicker } from './api/biz/util/datepicker';
|
|
16
|
-
import { datetimepicker } from './api/biz/util/datetimepicker';
|
|
17
|
-
import { scan } from './api/biz/util/scan';
|
|
18
|
-
import { view as mapView } from './api/biz/map/view';
|
|
19
|
-
import { multipointView } from './api/biz/map/multipointView';
|
|
20
|
-
import { chosen } from './api/biz/util/chosen';
|
|
21
|
-
import { openSingleWebview } from './api/biz/util/openSingleWebview';
|
|
22
|
-
import { getSingleWebviewData } from './api/biz/util/getSingleWebviewData';
|
|
23
|
-
import { injectScript } from './api/biz/util/injectScript';
|
|
24
|
-
import { closeWindow } from './api/biz/util/closeWindow';
|
|
25
|
-
import { remind } from './api/biz/util/remind';
|
|
26
|
-
import { takePicture } from './api/biz/util/takePicture';
|
|
27
|
-
import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
|
|
28
|
-
import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
|
|
29
|
-
import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
|
|
30
|
-
import { invoice } from './api/biz/util/invoice';
|
|
31
|
-
import { pushWorkMsg } from './api/biz/util/pushWorkMsg';
|
|
32
|
-
import { openTalYoungToTopic } from './api/biz/util/openTalYoungToTopic';
|
|
33
|
-
import { getToken } from './api/biz/util/getToken';
|
|
34
|
-
import { authStart } from './api/biz/util/authStart';
|
|
35
|
-
import { authFinish } from './api/biz/util/authFinish';
|
|
36
|
-
import { assistantCreate } from './api/biz/util/assistantCreate';
|
|
37
|
-
import { yachEvent } from './api/biz/util/yachEvent';
|
|
38
|
-
import { openTogetherEyeWebview } from './api/biz/util/openTogetherEyeWebview';
|
|
39
|
-
import { getTogetherConfig } from './api/biz/util/getTogetherConfig';
|
|
40
|
-
import { rouseApp } from './api/biz/util/rouseApp';
|
|
41
|
-
import { externalLinkPreviewFile } from './api/biz/util/externalLinkPreviewFile';
|
|
42
|
-
import { zfbAuth } from './api/biz/util/zfbAuth';
|
|
43
|
-
import { savePic } from './api/biz/util/savePic';
|
|
44
|
-
import { complain } from './api/biz/util/complain';
|
|
45
|
-
import { selectDepartment } from './api/biz/util/selectDepartment';
|
|
46
|
-
import { createModifySchedule } from './api/biz/util/createModifySchedule';
|
|
47
|
-
import { openUserSchedule } from './api/biz/util/openUserSchedule';
|
|
48
|
-
import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
|
|
49
|
-
import { entergroupCheck } from './api/biz/util/entergroupCheck';
|
|
50
|
-
import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
|
|
51
|
-
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
52
|
-
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
53
|
-
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
54
|
-
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
55
|
-
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
56
|
-
import { copy } from './api/biz/util/copy';
|
|
57
|
-
/**navigation*/
|
|
58
|
-
import { setIcon } from './api/biz/navigation/setIcon';
|
|
59
|
-
import { setTitle } from './api/biz/navigation/setTitle';
|
|
60
|
-
import { setMenu } from './api/biz/navigation/setMenu';
|
|
61
|
-
import { close } from './api/biz/navigation/close';
|
|
62
|
-
import { replace as replacePage } from './api/biz/navigation/replace';
|
|
63
|
-
import { quit } from './api/biz/navigation/quit';
|
|
64
|
-
import { setRight } from './api/biz/navigation/setRight';
|
|
65
|
-
import { setTitleExpandIcon } from './api/biz/navigation/setTitleExpandIcon';
|
|
66
|
-
import { updateExpandTitle } from './api/biz/navigation/updateExpandTitle';
|
|
67
|
-
import { setLeft } from './api/biz/navigation/setLeft';
|
|
68
|
-
import { goBack } from './api/biz/navigation/goBack';
|
|
69
|
-
import { setWindowBig } from './api/biz/navigation/setWindowBig';
|
|
70
|
-
import { tencentMeeting } from './api/biz/navigation/tencentMeeting';
|
|
71
|
-
import { tencentMeetingBegin } from './api/biz/navigation/tencentMeetingBegin';
|
|
72
|
-
import { setPanGestureEnable } from './api/biz/navigation/setPanGestureEnable';
|
|
73
|
-
/**contact*/
|
|
74
|
-
import { complexPicker } from './api/biz/contact/complexPicker';
|
|
75
|
-
import { departmentsPicker } from './api/biz/contact/departmentsPicker';
|
|
76
|
-
/** group*/
|
|
77
|
-
import { groupComplexPicker } from './api/biz/group/groupComplexPicker';
|
|
78
|
-
/** chat*/
|
|
79
|
-
import { chooseConversationByCorpId } from './api/biz/chat/chooseConversationByCorpId';
|
|
80
|
-
import { pickConversation } from './api/biz/chat/pickConversation';
|
|
81
|
-
import { openSingleChat } from './api/biz/chat/openSingleChat';
|
|
82
|
-
import { openTeamChat } from './api/biz/chat/openTeamChat';
|
|
83
|
-
import { openSquad } from './api/biz/chat/openSquad';
|
|
84
|
-
import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
|
|
85
|
-
/* primary*****************************/
|
|
86
|
-
import { createTab } from './api/primary/createTab';
|
|
87
|
-
import { weeklyShare } from './api/primary/weeklyShare';
|
|
88
|
-
import { fullScreen } from './api/primary/fullScreen';
|
|
89
|
-
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
90
|
-
/* runtime*****************************/
|
|
91
|
-
import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
|
|
92
|
-
/** device */
|
|
93
|
-
import { showPreloader } from './api/device/notification/showPreloader';
|
|
94
|
-
import { hidePreloader } from './api/device/notification/hidePreloader';
|
|
95
|
-
import { vibrate } from './api/device/notification/vibrate';
|
|
96
|
-
import { toast } from './api/device/notification/toast';
|
|
97
|
-
import { actionSheet } from './api/device/notification/actionSheet';
|
|
98
|
-
import { getPhoneInfo } from './api/device/base/getPhoneInfo';
|
|
99
|
-
import { alert } from './api/device/notification/alert';
|
|
100
|
-
import { confirm } from './api/device/notification/confirm';
|
|
101
|
-
import { get as getGeolocation } from './api/device/geolocation/get';
|
|
102
|
-
import { getSwitch as getGeolocationSwitch } from './api/device/geolocation/getSwitch';
|
|
103
|
-
import { getLang } from './api/device/system/getLang';
|
|
104
|
-
import { startRecord } from './api/device/audio/startRecord';
|
|
105
|
-
import { stopRecord } from './api/device/audio/stopRecord';
|
|
106
|
-
import { onRecordEnd } from './api/device/audio/onRecordEnd';
|
|
107
|
-
import { download as downloadAudio } from './api/device/audio/download';
|
|
108
|
-
import { play as playAudio } from './api/device/audio/play';
|
|
109
|
-
import { pause as pauseAudio } from './api/device/audio/pause';
|
|
110
|
-
import { stop as stopAudio } from './api/device/audio/stop';
|
|
111
|
-
import { onPlayEnd } from './api/device/audio/onPlayEnd';
|
|
112
|
-
import { resume as resumeAudio } from './api/device/audio/resume';
|
|
113
|
-
import { getNetworkType } from './api/device/connection/getNetworkType';
|
|
114
|
-
import { isAtTal } from './api/device/connection/isAtTal';
|
|
115
|
-
import { getUUID } from './api/device/base/getUUID';
|
|
116
|
-
import { checkStepPermission } from './api/device/base/checkStepPermission';
|
|
117
|
-
import { onRecordEnd_v2 } from './api/device/audio/onRecordEnd_v2';
|
|
118
|
-
import { startRecord_v2 } from './api/device/audio/startRecord_v2';
|
|
119
|
-
import { stopRecord_v2 } from './api/device/audio/stopRecord_v2';
|
|
120
|
-
import { setLight } from './api/device/system/setLight';
|
|
121
|
-
/** telephone */
|
|
122
|
-
import { showCallMenu } from './api/biz/telephone/showCallMenu';
|
|
123
|
-
import { call } from './api/biz/telephone/call';
|
|
124
|
-
/** ui */
|
|
125
|
-
import { disable as webViewBounceDisable } from './api/ui/webViewBounce/disable';
|
|
126
|
-
import { enable as pullToRefreshEnable } from './api/ui/pullToRefresh/enable';
|
|
127
|
-
import { stop as pullToRefreshStop } from './api/ui/pullToRefresh/stop';
|
|
128
|
-
import { disable as pullToRefreshDisable } from './api/ui/pullToRefresh/disable';
|
|
129
|
-
// demainStorage
|
|
130
|
-
import { getItem } from './api/util/domainStorage/getItem';
|
|
131
|
-
import { setItem } from './api/util/domainStorage/setItem';
|
|
132
|
-
import { removeItem } from './api/util/domainStorage/removeItem';
|
|
133
|
-
// log
|
|
134
|
-
import { writeLog } from './api/util/tool/log';
|
|
135
|
-
import { flushLog } from './api/util/tool/flushLog';
|
|
136
|
-
import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
137
|
-
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
138
|
-
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
139
|
-
console.log('add rouseApp ------------>', rouseApp);
|
|
140
|
-
var _yachSdk$exportSdk = yachSdk.exportSdk,
|
|
141
|
-
version = _yachSdk$exportSdk.version,
|
|
142
|
-
sdkVersion = _yachSdk$exportSdk.sdkVersion,
|
|
143
|
-
env = _yachSdk$exportSdk.env,
|
|
144
|
-
platform = _yachSdk$exportSdk.platform,
|
|
145
|
-
platformV2 = _yachSdk$exportSdk.platformV2,
|
|
146
|
-
config = _yachSdk$exportSdk.config,
|
|
147
|
-
ready = _yachSdk$exportSdk.ready,
|
|
148
|
-
error = _yachSdk$exportSdk.error,
|
|
149
|
-
on = _yachSdk$exportSdk.on,
|
|
150
|
-
off = _yachSdk$exportSdk.off;
|
|
151
|
-
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, hidePreloader, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, openFutureGroup, knowledgeBaseSelect, lorebaseShowList, lorebaseRefreshNodeWebview, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy };
|
|
152
|
-
export default {
|
|
153
|
-
version: version,
|
|
154
|
-
sdkVersion: sdkVersion,
|
|
155
|
-
env: env,
|
|
156
|
-
platform: platform,
|
|
157
|
-
platformV2: platformV2,
|
|
158
|
-
config: config,
|
|
159
|
-
ready: ready,
|
|
160
|
-
error: error,
|
|
161
|
-
on: on,
|
|
162
|
-
off: off,
|
|
163
|
-
biz: {
|
|
164
|
-
util: {
|
|
165
|
-
openLink: openLink,
|
|
166
|
-
feedback: feedback,
|
|
167
|
-
open: open,
|
|
168
|
-
openSlidePanel: openSlidePanel,
|
|
169
|
-
share: share,
|
|
170
|
-
previewFile: previewFile,
|
|
171
|
-
previewImage: previewImage,
|
|
172
|
-
downloadFile: downloadFile,
|
|
173
|
-
uploadAttachment: uploadAttachment,
|
|
174
|
-
clipboardFileUpload: clipboardFileUpload,
|
|
175
|
-
proxy: proxy,
|
|
176
|
-
datepicker: datepicker,
|
|
177
|
-
datetimepicker: datetimepicker,
|
|
178
|
-
scan: scan,
|
|
179
|
-
chosen: chosen,
|
|
180
|
-
openSingleWebview: openSingleWebview,
|
|
181
|
-
getSingleWebviewData: getSingleWebviewData,
|
|
182
|
-
injectScript: injectScript,
|
|
183
|
-
onlineDocmentOpenTeamChat: onlineDocmentOpenTeamChat,
|
|
184
|
-
entergroupCheck: entergroupCheck,
|
|
185
|
-
resetSessionUnread: resetSessionUnread,
|
|
186
|
-
openFutureGroup: openFutureGroup,
|
|
187
|
-
closeWindow: closeWindow,
|
|
188
|
-
remind: remind,
|
|
189
|
-
takePicture: takePicture,
|
|
190
|
-
openVideoPlayer: openVideoPlayer,
|
|
191
|
-
openMediaFileDialog: openMediaFileDialog,
|
|
192
|
-
mediaFileUpload: mediaFileUpload,
|
|
193
|
-
invoice: invoice,
|
|
194
|
-
pushWorkMsg: pushWorkMsg,
|
|
195
|
-
openTalYoungToTopic: openTalYoungToTopic,
|
|
196
|
-
getToken: getToken,
|
|
197
|
-
authStart: authStart,
|
|
198
|
-
authFinish: authFinish,
|
|
199
|
-
assistantCreate: assistantCreate,
|
|
200
|
-
yachEvent: yachEvent,
|
|
201
|
-
openTogetherEyeWebview: openTogetherEyeWebview,
|
|
202
|
-
getTogetherConfig: getTogetherConfig,
|
|
203
|
-
rouseApp: rouseApp,
|
|
204
|
-
externalLinkPreviewFile: externalLinkPreviewFile,
|
|
205
|
-
savePic: savePic,
|
|
206
|
-
zfbAuth: zfbAuth,
|
|
207
|
-
complain: complain,
|
|
208
|
-
selectDepartment: selectDepartment,
|
|
209
|
-
createModifySchedule: createModifySchedule,
|
|
210
|
-
openUserSchedule: openUserSchedule,
|
|
211
|
-
disableScreenCapture: disableScreenCapture,
|
|
212
|
-
addAppToNav: addAppToNav,
|
|
213
|
-
knowledgeBaseSelect: knowledgeBaseSelect,
|
|
214
|
-
lorebaseShowList: lorebaseShowList,
|
|
215
|
-
lorebaseRefreshNodeWebview: lorebaseRefreshNodeWebview,
|
|
216
|
-
copy: copy
|
|
217
|
-
},
|
|
218
|
-
telephone: {
|
|
219
|
-
showCallMenu: showCallMenu,
|
|
220
|
-
call: call
|
|
221
|
-
},
|
|
222
|
-
navigation: {
|
|
223
|
-
setIcon: setIcon,
|
|
224
|
-
setTitle: setTitle,
|
|
225
|
-
setMenu: setMenu,
|
|
226
|
-
close: close,
|
|
227
|
-
replace: replacePage,
|
|
228
|
-
quit: quit,
|
|
229
|
-
setRight: setRight,
|
|
230
|
-
setTitleExpandIcon: setTitleExpandIcon,
|
|
231
|
-
updateExpandTitle: updateExpandTitle,
|
|
232
|
-
setLeft: setLeft,
|
|
233
|
-
goBack: goBack,
|
|
234
|
-
setWindowBig: setWindowBig,
|
|
235
|
-
tencentMeeting: tencentMeeting,
|
|
236
|
-
tencentMeetingBegin: tencentMeetingBegin,
|
|
237
|
-
setPanGestureEnable: setPanGestureEnable
|
|
238
|
-
},
|
|
239
|
-
contact: {
|
|
240
|
-
complexPicker: complexPicker,
|
|
241
|
-
departmentsPicker: departmentsPicker
|
|
242
|
-
},
|
|
243
|
-
group: {
|
|
244
|
-
groupComplexPicker: groupComplexPicker
|
|
245
|
-
},
|
|
246
|
-
chat: {
|
|
247
|
-
chooseConversationByCorpId: chooseConversationByCorpId,
|
|
248
|
-
pickConversation: pickConversation,
|
|
249
|
-
openSingleChat: openSingleChat,
|
|
250
|
-
openTeamChat: openTeamChat,
|
|
251
|
-
openSquad: openSquad,
|
|
252
|
-
sendP2PMsg: sendP2PMsg
|
|
253
|
-
},
|
|
254
|
-
map: {
|
|
255
|
-
view: mapView,
|
|
256
|
-
multipointView: multipointView
|
|
257
|
-
},
|
|
258
|
-
webViewMessage: {
|
|
259
|
-
send: webViewMessageSend
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
runtime: {
|
|
263
|
-
permission: {
|
|
264
|
-
requestAuthCode: requestAuthCode
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
primary: {
|
|
268
|
-
createTab: createTab,
|
|
269
|
-
weeklyShare: weeklyShare,
|
|
270
|
-
fullScreen: fullScreen,
|
|
271
|
-
exitFullScreen: exitFullScreen
|
|
272
|
-
},
|
|
273
|
-
device: {
|
|
274
|
-
notification: {
|
|
275
|
-
showPreloader: showPreloader,
|
|
276
|
-
hidePreloader: hidePreloader,
|
|
277
|
-
vibrate: vibrate,
|
|
278
|
-
toast: toast,
|
|
279
|
-
alert: alert,
|
|
280
|
-
confirm: confirm,
|
|
281
|
-
actionSheet: actionSheet
|
|
282
|
-
},
|
|
283
|
-
base: {
|
|
284
|
-
getPhoneInfo: getPhoneInfo,
|
|
285
|
-
getUUID: getUUID,
|
|
286
|
-
checkStepPermission: checkStepPermission
|
|
287
|
-
},
|
|
288
|
-
geolocation: {
|
|
289
|
-
get: getGeolocation,
|
|
290
|
-
getSwitch: getGeolocationSwitch
|
|
291
|
-
},
|
|
292
|
-
system: {
|
|
293
|
-
getLang: getLang,
|
|
294
|
-
setLight: setLight
|
|
295
|
-
},
|
|
296
|
-
audio: {
|
|
297
|
-
startRecord: startRecord,
|
|
298
|
-
stopRecord: stopRecord,
|
|
299
|
-
onRecordEnd: onRecordEnd,
|
|
300
|
-
download: downloadAudio,
|
|
301
|
-
play: playAudio,
|
|
302
|
-
pause: pauseAudio,
|
|
303
|
-
stop: stopAudio,
|
|
304
|
-
onPlayEnd: onPlayEnd,
|
|
305
|
-
resume: resumeAudio,
|
|
306
|
-
onRecordEnd_v2: onRecordEnd_v2,
|
|
307
|
-
startRecord_v2: startRecord_v2,
|
|
308
|
-
stopRecord_v2: stopRecord_v2
|
|
309
|
-
},
|
|
310
|
-
connection: {
|
|
311
|
-
getNetworkType: getNetworkType,
|
|
312
|
-
isAtTal: isAtTal
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
ui: {
|
|
316
|
-
webViewBounce: {
|
|
317
|
-
disable: webViewBounceDisable
|
|
318
|
-
},
|
|
319
|
-
pullToRefresh: {
|
|
320
|
-
enable: pullToRefreshEnable,
|
|
321
|
-
stop: pullToRefreshStop,
|
|
322
|
-
disable: pullToRefreshDisable
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
util: {
|
|
326
|
-
domainStorage: {
|
|
327
|
-
getItem: getItem,
|
|
328
|
-
setItem: setItem,
|
|
329
|
-
removeItem: removeItem
|
|
330
|
-
},
|
|
331
|
-
tool: {
|
|
332
|
-
writeLog: writeLog,
|
|
333
|
-
flushLog: flushLog
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
app: {
|
|
337
|
-
custom: {
|
|
338
|
-
talYoungFilesUpload: talYoungFilesUpload
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
};
|
package/es/lib/bridge/index.d.ts
DELETED
package/es/lib/bridge/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IJSBridge } from '../sdk/sdk.typings';
|
|
2
|
-
declare global {
|
|
3
|
-
const WebViewJavascriptBridge: any;
|
|
4
|
-
const WKWebViewJavascriptBridge: any;
|
|
5
|
-
interface Window {
|
|
6
|
-
WebViewJavascriptBridge: any;
|
|
7
|
-
WKWebViewJavascriptBridge: any;
|
|
8
|
-
WVJBCallbacks: any;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
declare const mobileBridgeInit: () => Promise<unknown>;
|
|
12
|
-
declare const mobileBridge: IJSBridge;
|
|
13
|
-
export { mobileBridge, mobileBridgeInit };
|
package/es/lib/bridge/mobile.js
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import _setTimeout from "@babel/runtime-corejs3/core-js/set-timeout";
|
|
2
|
-
import _Promise from "@babel/runtime-corejs3/core-js/promise";
|
|
3
|
-
import _Object$assign from "@babel/runtime-corejs3/core-js/object/assign";
|
|
4
|
-
import _parseInt from "@babel/runtime-corejs3/core-js/parse-int";
|
|
5
|
-
import _JSON$stringify from "@babel/runtime-corejs3/core-js/json/stringify";
|
|
6
|
-
import Event from '../helper/event';
|
|
7
|
-
import { electronResCodeMap } from '../helper/codeMap';
|
|
8
|
-
import { log, bpitLog } from '../../utils';
|
|
9
|
-
function setupWebViewJavascriptBridge(callback) {
|
|
10
|
-
if (window.WebViewJavascriptBridge) {
|
|
11
|
-
return callback(WebViewJavascriptBridge);
|
|
12
|
-
}
|
|
13
|
-
if (window.WKWebViewJavascriptBridge) {
|
|
14
|
-
return callback(WKWebViewJavascriptBridge);
|
|
15
|
-
}
|
|
16
|
-
if (window.WVJBCallbacks) {
|
|
17
|
-
return window.WVJBCallbacks.push(callback);
|
|
18
|
-
}
|
|
19
|
-
window.WVJBCallbacks = [callback];
|
|
20
|
-
var WVJBIframe = document.createElement('iframe');
|
|
21
|
-
WVJBIframe.style.display = 'none';
|
|
22
|
-
WVJBIframe.src = 'https://__bridge_loaded__';
|
|
23
|
-
document.documentElement.appendChild(WVJBIframe);
|
|
24
|
-
_setTimeout(function () {
|
|
25
|
-
document.documentElement.removeChild(WVJBIframe);
|
|
26
|
-
}, 0);
|
|
27
|
-
}
|
|
28
|
-
var mobileBridgeInit = function mobileBridgeInit() {
|
|
29
|
-
return new _Promise(function (resolve, reject) {
|
|
30
|
-
setupWebViewJavascriptBridge(function (bridge) {
|
|
31
|
-
log("\u6CE8\u518Cresume\u4E8B\u4EF6 ");
|
|
32
|
-
bridge.registerHandler('resume', function (resData) {
|
|
33
|
-
log("resume\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
34
|
-
resData: resData
|
|
35
|
-
});
|
|
36
|
-
Event.execEvent('resume', resData);
|
|
37
|
-
});
|
|
38
|
-
log("\u6CE8\u518CunreadMsgAction\u4E8B\u4EF6 ");
|
|
39
|
-
bridge.registerHandler('unreadMsgAction', function (resData) {
|
|
40
|
-
log("unreadMsgAction\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
41
|
-
resData: resData
|
|
42
|
-
});
|
|
43
|
-
Event.execEvent('unreadMsgAction', resData);
|
|
44
|
-
});
|
|
45
|
-
log("\u6CE8\u518CwebViewMsgReceive\u4E8B\u4EF6 ");
|
|
46
|
-
bridge.registerHandler('webViewMsgReceive', function (resData) {
|
|
47
|
-
log("webViewMsgReceive\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
48
|
-
resData: resData
|
|
49
|
-
});
|
|
50
|
-
Event.execEvent('webViewMsgReceive', resData);
|
|
51
|
-
});
|
|
52
|
-
bridge.registerHandler('pushWorkMsg', function (resData) {
|
|
53
|
-
log("pushWorkMsg\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
54
|
-
resData: resData
|
|
55
|
-
});
|
|
56
|
-
Event.execEvent('pushWorkMsg', resData);
|
|
57
|
-
});
|
|
58
|
-
bridge.registerHandler('getTogetherCallback', function (resData) {
|
|
59
|
-
log("getTogetherCallback\u76D1\u542C\u5230\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
60
|
-
resData: resData
|
|
61
|
-
});
|
|
62
|
-
Event.execEvent('getTogetherCallback', resData);
|
|
63
|
-
});
|
|
64
|
-
bridge.registerHandler('sendMsgCommon', function (resData) {
|
|
65
|
-
log("sendMsgCommon ", {
|
|
66
|
-
resData: resData
|
|
67
|
-
});
|
|
68
|
-
Event.execEvent('sendMsgCommon', resData);
|
|
69
|
-
});
|
|
70
|
-
bridge.registerHandler('toolbarClickEvent', function (resData, responseCallback) {
|
|
71
|
-
log("toolbarClickEvent ", {
|
|
72
|
-
resData: resData
|
|
73
|
-
});
|
|
74
|
-
var responseData = {
|
|
75
|
-
data: resData,
|
|
76
|
-
callback: responseCallback
|
|
77
|
-
};
|
|
78
|
-
Event.execEvent('toolbarClickEvent', responseData);
|
|
79
|
-
});
|
|
80
|
-
resolve();
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
var mobileBridge = function mobileBridge(method, param) {
|
|
85
|
-
return new _Promise(function (resolve, reject) {
|
|
86
|
-
var p = _Object$assign({}, param);
|
|
87
|
-
setupWebViewJavascriptBridge(function (bridge) {
|
|
88
|
-
if (param.control) {
|
|
89
|
-
bridge.registerHandler(method, function (data) {
|
|
90
|
-
var onSuccess = param.onSuccess;
|
|
91
|
-
delete p.onSuccess;
|
|
92
|
-
if ('function' === typeof onSuccess) {
|
|
93
|
-
onSuccess(data);
|
|
94
|
-
resolve({
|
|
95
|
-
code: '0',
|
|
96
|
-
message: 'success'
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
bridge.callHandler(method, param, function (e) {
|
|
102
|
-
var code = e.code,
|
|
103
|
-
message = e.message,
|
|
104
|
-
data = e.data;
|
|
105
|
-
var _code = _parseInt(code);
|
|
106
|
-
var callbackStr = electronResCodeMap(_code);
|
|
107
|
-
var callbackFun = p[callbackStr];
|
|
108
|
-
log("SDK\u6267\u884C\u540E\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
109
|
-
method: method,
|
|
110
|
-
param: param,
|
|
111
|
-
data: data,
|
|
112
|
-
_code: _code,
|
|
113
|
-
message: message,
|
|
114
|
-
callbackFun: callbackFun
|
|
115
|
-
});
|
|
116
|
-
// 请求失败
|
|
117
|
-
if (callbackStr === 'onFail') {
|
|
118
|
-
bpitLog({
|
|
119
|
-
method: method,
|
|
120
|
-
errorcode: _code,
|
|
121
|
-
message: message || _JSON$stringify(data) || 'SDK执行失败回调,相关参数'
|
|
122
|
-
});
|
|
123
|
-
if ('function' === typeof callbackFun) {
|
|
124
|
-
message ? callbackFun({
|
|
125
|
-
code: code,
|
|
126
|
-
message: message
|
|
127
|
-
}) : callbackFun(data);
|
|
128
|
-
}
|
|
129
|
-
reject({
|
|
130
|
-
_code: _code,
|
|
131
|
-
message: message,
|
|
132
|
-
data: data
|
|
133
|
-
});
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
// 请求成功
|
|
137
|
-
if ('function' === typeof callbackFun) {
|
|
138
|
-
callbackFun(data || message);
|
|
139
|
-
}
|
|
140
|
-
resolve({
|
|
141
|
-
_code: _code,
|
|
142
|
-
message: message,
|
|
143
|
-
data: data
|
|
144
|
-
});
|
|
145
|
-
// if (_code === -2 || _code === 7) {
|
|
146
|
-
// bpitLog({
|
|
147
|
-
// method,
|
|
148
|
-
// errorcode: _code,
|
|
149
|
-
// message: message || 'SDK执行失败回调,相关参数',
|
|
150
|
-
// });
|
|
151
|
-
// log(`SDK执行后回调,相关参数 `, {
|
|
152
|
-
// method,
|
|
153
|
-
// param,
|
|
154
|
-
// data,
|
|
155
|
-
// _code,
|
|
156
|
-
// message,
|
|
157
|
-
// });
|
|
158
|
-
// reject({_code, message});
|
|
159
|
-
// // return;
|
|
160
|
-
// }
|
|
161
|
-
// const callbackFun = p[callbackStr];
|
|
162
|
-
// log(`SDK执行后回调,相关参数 `, {
|
|
163
|
-
// method,
|
|
164
|
-
// param,
|
|
165
|
-
// data,
|
|
166
|
-
// _code,
|
|
167
|
-
// message,
|
|
168
|
-
// callbackFun,
|
|
169
|
-
// });
|
|
170
|
-
// if ('function' === typeof callbackFun) {
|
|
171
|
-
// callbackFun(data || message);
|
|
172
|
-
// }
|
|
173
|
-
// resolve({_code, message, data});
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
export { mobileBridge, mobileBridgeInit };
|
package/es/lib/bridge/pc.d.ts
DELETED
package/es/lib/bridge/pc.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import _Promise from "@babel/runtime-corejs3/core-js/promise";
|
|
2
|
-
import _parseInt from "@babel/runtime-corejs3/core-js/parse-int";
|
|
3
|
-
import _JSON$stringify from "@babel/runtime-corejs3/core-js/json/stringify";
|
|
4
|
-
import _Object$assign from "@babel/runtime-corejs3/core-js/object/assign";
|
|
5
|
-
import PcIframe from '../helper/pcIframe';
|
|
6
|
-
import { electronResCodeMap } from '../helper/codeMap';
|
|
7
|
-
import { log, bpitLog } from '../../utils';
|
|
8
|
-
var PcBridgeInit = function PcBridgeInit() {
|
|
9
|
-
PcIframe.init();
|
|
10
|
-
};
|
|
11
|
-
var pcBridge = function pcBridge(method, param) {
|
|
12
|
-
return new _Promise(function (resolve, reject) {
|
|
13
|
-
return PcIframe.invokeAPI(method, param, function (_ref) {
|
|
14
|
-
var data = _ref.data,
|
|
15
|
-
code = _ref.code,
|
|
16
|
-
message = _ref.message;
|
|
17
|
-
var _code = _parseInt(code);
|
|
18
|
-
var callbackStr = electronResCodeMap(_code);
|
|
19
|
-
var callbackFun = param[callbackStr];
|
|
20
|
-
log("SDK\u6267\u884C\u540E\u56DE\u8C03\uFF0C\u76F8\u5173\u53C2\u6570 ", {
|
|
21
|
-
method: method,
|
|
22
|
-
param: param,
|
|
23
|
-
data: data,
|
|
24
|
-
_code: _code,
|
|
25
|
-
message: message,
|
|
26
|
-
callbackFun: callbackFun
|
|
27
|
-
});
|
|
28
|
-
// 请求失败
|
|
29
|
-
if (callbackStr === 'onFail') {
|
|
30
|
-
bpitLog({
|
|
31
|
-
method: method,
|
|
32
|
-
errorcode: _code,
|
|
33
|
-
message: message || _JSON$stringify(data) || 'SDK执行失败回调,相关参数'
|
|
34
|
-
});
|
|
35
|
-
if ('function' === typeof callbackFun) {
|
|
36
|
-
console.log('wenai-code', code, _code);
|
|
37
|
-
var callbackData = Object.prototype.toString.call(data) === "[object Object]" ? _Object$assign(_Object$assign({}, data), {
|
|
38
|
-
code: code,
|
|
39
|
-
message: message
|
|
40
|
-
}) : {
|
|
41
|
-
data: data,
|
|
42
|
-
code: code,
|
|
43
|
-
message: message
|
|
44
|
-
};
|
|
45
|
-
message ? callbackFun(callbackData) : callbackFun(data);
|
|
46
|
-
}
|
|
47
|
-
reject({
|
|
48
|
-
_code: _code,
|
|
49
|
-
message: message,
|
|
50
|
-
data: data
|
|
51
|
-
});
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
// 请求成功
|
|
55
|
-
if ('function' === typeof callbackFun) {
|
|
56
|
-
callbackFun(data || message);
|
|
57
|
-
}
|
|
58
|
-
resolve({
|
|
59
|
-
_code: _code,
|
|
60
|
-
message: message,
|
|
61
|
-
data: data
|
|
62
|
-
});
|
|
63
|
-
// if (_code === -2) {
|
|
64
|
-
// bpitLog({
|
|
65
|
-
// method,
|
|
66
|
-
// errorcode: _code,
|
|
67
|
-
// message: message || 'SDK执行失败回调,相关参数',
|
|
68
|
-
// });
|
|
69
|
-
// }
|
|
70
|
-
// const callbackFun = param[callbackStr];
|
|
71
|
-
// log(`SDK执行后回调,相关参数 `, {
|
|
72
|
-
// method,
|
|
73
|
-
// param,
|
|
74
|
-
// data,
|
|
75
|
-
// _code,
|
|
76
|
-
// message,
|
|
77
|
-
// callbackFun
|
|
78
|
-
// });
|
|
79
|
-
// if ('function' === typeof callbackFun) {
|
|
80
|
-
// callbackFun(data || message);
|
|
81
|
-
// }
|
|
82
|
-
// resolve({ _code, message, data });
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export { pcBridge, PcBridgeInit };
|
package/es/lib/helper/codeMap.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import _Map from "@babel/runtime-corejs3/core-js/map";
|
|
2
|
-
var resCodeMap = new _Map([[0, 'onSuccess'], [-1, 'onCancel'], [-2, 'onFail'], [-3, 'onProgress'], [-4, 'onSubmit']]);
|
|
3
|
-
function electronResCodeMap(code) {
|
|
4
|
-
return resCodeMap.get(code) || 'onFail';
|
|
5
|
-
}
|
|
6
|
-
export { electronResCodeMap };
|
package/es/lib/helper/event.d.ts
DELETED