yach.open.jssdk 4.4.2 → 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.2.js +0 -1
- package/es/api/app/custom/talYoungFilesUpload.d.ts +0 -38
- package/es/api/app/custom/talYoungFilesUpload.js +0 -18
- package/es/api/biz/chat/chooseConversationByCorpId.d.ts +0 -36
- package/es/api/biz/chat/chooseConversationByCorpId.js +0 -10
- package/es/api/biz/chat/openSingleChat.d.ts +0 -10
- package/es/api/biz/chat/openSingleChat.js +0 -10
- package/es/api/biz/chat/openSquad.d.ts +0 -8
- package/es/api/biz/chat/openSquad.js +0 -10
- package/es/api/biz/chat/openTeamChat.d.ts +0 -10
- package/es/api/biz/chat/openTeamChat.js +0 -10
- package/es/api/biz/chat/pickConversation.d.ts +0 -19
- package/es/api/biz/chat/pickConversation.js +0 -21
- package/es/api/biz/chat/sendP2PMsg.d.ts +0 -10
- package/es/api/biz/chat/sendP2PMsg.js +0 -10
- package/es/api/biz/contact/complexPicker.d.ts +0 -62
- package/es/api/biz/contact/complexPicker.js +0 -10
- package/es/api/biz/contact/departmentsPicker.d.ts +0 -35
- package/es/api/biz/contact/departmentsPicker.js +0 -10
- package/es/api/biz/group/groupComplexPicker.d.ts +0 -33
- package/es/api/biz/group/groupComplexPicker.js +0 -10
- package/es/api/biz/map/multipointView.d.ts +0 -21
- package/es/api/biz/map/multipointView.js +0 -21
- package/es/api/biz/map/view.d.ts +0 -13
- package/es/api/biz/map/view.js +0 -21
- package/es/api/biz/navigation/close.d.ts +0 -7
- package/es/api/biz/navigation/close.js +0 -11
- package/es/api/biz/navigation/goBack.d.ts +0 -7
- package/es/api/biz/navigation/goBack.js +0 -21
- package/es/api/biz/navigation/quit.d.ts +0 -8
- package/es/api/biz/navigation/quit.js +0 -17
- package/es/api/biz/navigation/replace.d.ts +0 -8
- package/es/api/biz/navigation/replace.js +0 -10
- package/es/api/biz/navigation/setIcon.d.ts +0 -12
- package/es/api/biz/navigation/setIcon.js +0 -29
- package/es/api/biz/navigation/setLeft.d.ts +0 -9
- package/es/api/biz/navigation/setLeft.js +0 -33
- package/es/api/biz/navigation/setMenu.d.ts +0 -20
- package/es/api/biz/navigation/setMenu.js +0 -27
- package/es/api/biz/navigation/setPanGestureEnable.d.ts +0 -9
- package/es/api/biz/navigation/setPanGestureEnable.js +0 -28
- package/es/api/biz/navigation/setRight.d.ts +0 -13
- package/es/api/biz/navigation/setRight.js +0 -33
- package/es/api/biz/navigation/setTitle.d.ts +0 -11
- package/es/api/biz/navigation/setTitle.js +0 -10
- package/es/api/biz/navigation/setTitleExpandIcon.d.ts +0 -9
- package/es/api/biz/navigation/setTitleExpandIcon.js +0 -27
- package/es/api/biz/navigation/setWindowBig.d.ts +0 -9
- package/es/api/biz/navigation/setWindowBig.js +0 -18
- package/es/api/biz/navigation/tencentMeeting.d.ts +0 -23
- package/es/api/biz/navigation/tencentMeeting.js +0 -10
- package/es/api/biz/navigation/tencentMeetingBegin.d.ts +0 -7
- package/es/api/biz/navigation/tencentMeetingBegin.js +0 -10
- package/es/api/biz/navigation/updateExpandTitle.d.ts +0 -8
- package/es/api/biz/navigation/updateExpandTitle.js +0 -10
- package/es/api/biz/telephone/call.d.ts +0 -9
- package/es/api/biz/telephone/call.js +0 -21
- package/es/api/biz/telephone/showCallMenu.d.ts +0 -12
- package/es/api/biz/telephone/showCallMenu.js +0 -21
- package/es/api/biz/util/addAppToNav.d.ts +0 -9
- package/es/api/biz/util/addAppToNav.js +0 -25
- package/es/api/biz/util/assistantCreate.d.ts +0 -11
- package/es/api/biz/util/assistantCreate.js +0 -25
- package/es/api/biz/util/authFinish.d.ts +0 -11
- package/es/api/biz/util/authFinish.js +0 -21
- package/es/api/biz/util/authStart.d.ts +0 -9
- package/es/api/biz/util/authStart.js +0 -21
- package/es/api/biz/util/chosen.d.ts +0 -15
- package/es/api/biz/util/chosen.js +0 -21
- package/es/api/biz/util/clipboardFileUpload.d.ts +0 -7
- package/es/api/biz/util/clipboardFileUpload.js +0 -10
- package/es/api/biz/util/closeWindow.d.ts +0 -8
- package/es/api/biz/util/closeWindow.js +0 -17
- package/es/api/biz/util/complain.d.ts +0 -12
- package/es/api/biz/util/complain.js +0 -10
- package/es/api/biz/util/createModifySchedule.d.ts +0 -26
- package/es/api/biz/util/createModifySchedule.js +0 -17
- package/es/api/biz/util/datepicker.d.ts +0 -14
- package/es/api/biz/util/datepicker.js +0 -21
- package/es/api/biz/util/datetimepicker.d.ts +0 -14
- package/es/api/biz/util/datetimepicker.js +0 -21
- package/es/api/biz/util/disableScreenCapture.d.ts +0 -8
- package/es/api/biz/util/disableScreenCapture.js +0 -21
- package/es/api/biz/util/downloadFile.d.ts +0 -9
- package/es/api/biz/util/downloadFile.js +0 -10
- package/es/api/biz/util/entergroupCheck.d.ts +0 -11
- package/es/api/biz/util/entergroupCheck.js +0 -25
- package/es/api/biz/util/externalLinkPreviewFile.d.ts +0 -11
- package/es/api/biz/util/externalLinkPreviewFile.js +0 -10
- package/es/api/biz/util/feedback.d.ts +0 -11
- package/es/api/biz/util/feedback.js +0 -10
- package/es/api/biz/util/getSingleWebviewData.d.ts +0 -8
- package/es/api/biz/util/getSingleWebviewData.js +0 -10
- package/es/api/biz/util/getTogetherConfig.d.ts +0 -11
- package/es/api/biz/util/getTogetherConfig.js +0 -25
- package/es/api/biz/util/getToken.d.ts +0 -11
- package/es/api/biz/util/getToken.js +0 -21
- package/es/api/biz/util/injectScript.d.ts +0 -9
- package/es/api/biz/util/injectScript.js +0 -10
- package/es/api/biz/util/invoice.d.ts +0 -12
- package/es/api/biz/util/invoice.js +0 -17
- package/es/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/es/api/biz/util/knowledgeBaseSelect.js +0 -17
- package/es/api/biz/util/mediaFileUpload.d.ts +0 -26
- package/es/api/biz/util/mediaFileUpload.js +0 -17
- package/es/api/biz/util/onlineDocmentOpenTeamChat.d.ts +0 -10
- package/es/api/biz/util/onlineDocmentOpenTeamChat.js +0 -25
- package/es/api/biz/util/open.d.ts +0 -9
- package/es/api/biz/util/open.js +0 -10
- package/es/api/biz/util/openFutureGroup.d.ts +0 -10
- package/es/api/biz/util/openFutureGroup.js +0 -25
- package/es/api/biz/util/openLink.d.ts +0 -8
- package/es/api/biz/util/openLink.js +0 -10
- package/es/api/biz/util/openMediaFileDialog.d.ts +0 -23
- package/es/api/biz/util/openMediaFileDialog.js +0 -17
- package/es/api/biz/util/openSingleWebview.d.ts +0 -23
- package/es/api/biz/util/openSingleWebview.js +0 -17
- package/es/api/biz/util/openSlidePanel.d.ts +0 -11
- package/es/api/biz/util/openSlidePanel.js +0 -17
- package/es/api/biz/util/openTalYoungToTopic.d.ts +0 -6
- package/es/api/biz/util/openTalYoungToTopic.js +0 -17
- package/es/api/biz/util/openTogetherEyeWebview.d.ts +0 -11
- package/es/api/biz/util/openTogetherEyeWebview.js +0 -25
- package/es/api/biz/util/openUserSchedule.d.ts +0 -11
- package/es/api/biz/util/openUserSchedule.js +0 -25
- package/es/api/biz/util/openVideoPlayer.d.ts +0 -27
- package/es/api/biz/util/openVideoPlayer.js +0 -25
- package/es/api/biz/util/previewFile.d.ts +0 -11
- package/es/api/biz/util/previewFile.js +0 -10
- package/es/api/biz/util/previewImage.d.ts +0 -9
- package/es/api/biz/util/previewImage.js +0 -10
- package/es/api/biz/util/proxy.d.ts +0 -13
- package/es/api/biz/util/proxy.js +0 -10
- package/es/api/biz/util/pushWorkMsg.d.ts +0 -10
- package/es/api/biz/util/pushWorkMsg.js +0 -17
- package/es/api/biz/util/remind.d.ts +0 -15
- package/es/api/biz/util/remind.js +0 -25
- package/es/api/biz/util/resetSessionUnread.d.ts +0 -8
- package/es/api/biz/util/resetSessionUnread.js +0 -23
- package/es/api/biz/util/rouseApp.d.ts +0 -12
- package/es/api/biz/util/rouseApp.js +0 -17
- package/es/api/biz/util/savePic.d.ts +0 -8
- package/es/api/biz/util/savePic.js +0 -21
- package/es/api/biz/util/scan.d.ts +0 -11
- package/es/api/biz/util/scan.js +0 -21
- package/es/api/biz/util/screen.d.ts +0 -15
- package/es/api/biz/util/screen.js +0 -17
- package/es/api/biz/util/selectDepartment.d.ts +0 -9
- package/es/api/biz/util/selectDepartment.js +0 -10
- package/es/api/biz/util/share.d.ts +0 -12
- package/es/api/biz/util/share.js +0 -21
- package/es/api/biz/util/takePicture.d.ts +0 -13
- package/es/api/biz/util/takePicture.js +0 -10
- package/es/api/biz/util/uploadAttachment.d.ts +0 -55
- package/es/api/biz/util/uploadAttachment.js +0 -10
- package/es/api/biz/util/weeklyRead.d.ts +0 -5
- package/es/api/biz/util/weeklyRead.js +0 -25
- package/es/api/biz/util/yachEvent.d.ts +0 -12
- package/es/api/biz/util/yachEvent.js +0 -29
- package/es/api/biz/util/zfbAuth.d.ts +0 -10
- package/es/api/biz/util/zfbAuth.js +0 -21
- package/es/api/biz/webViewMessage/send.d.ts +0 -7
- package/es/api/biz/webViewMessage/send.js +0 -17
- 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 -21
- package/es/api/device/audio/onPlayEnd.d.ts +0 -7
- package/es/api/device/audio/onPlayEnd.js +0 -21
- package/es/api/device/audio/onRecordEnd.d.ts +0 -7
- package/es/api/device/audio/onRecordEnd.js +0 -21
- package/es/api/device/audio/onRecordEnd_v2.d.ts +0 -7
- package/es/api/device/audio/onRecordEnd_v2.js +0 -21
- package/es/api/device/audio/pause.d.ts +0 -8
- package/es/api/device/audio/pause.js +0 -21
- package/es/api/device/audio/play.d.ts +0 -8
- package/es/api/device/audio/play.js +0 -21
- package/es/api/device/audio/resume.d.ts +0 -8
- package/es/api/device/audio/resume.js +0 -21
- package/es/api/device/audio/startRecord.d.ts +0 -8
- package/es/api/device/audio/startRecord.js +0 -21
- package/es/api/device/audio/startRecord_v2.d.ts +0 -8
- package/es/api/device/audio/startRecord_v2.js +0 -21
- package/es/api/device/audio/stop.d.ts +0 -8
- package/es/api/device/audio/stop.js +0 -21
- package/es/api/device/audio/stopRecord.d.ts +0 -7
- package/es/api/device/audio/stopRecord.js +0 -21
- package/es/api/device/audio/stopRecord_v2.d.ts +0 -7
- package/es/api/device/audio/stopRecord_v2.js +0 -21
- package/es/api/device/base/checkStepPermission.d.ts +0 -8
- package/es/api/device/base/checkStepPermission.js +0 -21
- package/es/api/device/base/getPhoneInfo.d.ts +0 -16
- package/es/api/device/base/getPhoneInfo.js +0 -21
- package/es/api/device/base/getUUID.d.ts +0 -10
- package/es/api/device/base/getUUID.js +0 -25
- package/es/api/device/connection/getNetworkType.d.ts +0 -10
- package/es/api/device/connection/getNetworkType.js +0 -21
- package/es/api/device/connection/isAtTal.d.ts +0 -10
- package/es/api/device/connection/isAtTal.js +0 -23
- package/es/api/device/geolocation/get.d.ts +0 -42
- package/es/api/device/geolocation/get.js +0 -21
- package/es/api/device/geolocation/getSwitch.d.ts +0 -10
- package/es/api/device/geolocation/getSwitch.js +0 -17
- package/es/api/device/notification/actionSheet.d.ts +0 -15
- package/es/api/device/notification/actionSheet.js +0 -21
- package/es/api/device/notification/alert.d.ts +0 -13
- package/es/api/device/notification/alert.js +0 -25
- package/es/api/device/notification/confirm.d.ts +0 -16
- package/es/api/device/notification/confirm.js +0 -25
- package/es/api/device/notification/hidePreloader.d.ts +0 -12
- package/es/api/device/notification/hidePreloader.js +0 -36
- package/es/api/device/notification/showPreloader.d.ts +0 -18
- package/es/api/device/notification/showPreloader.js +0 -36
- package/es/api/device/notification/toast.d.ts +0 -15
- package/es/api/device/notification/toast.js +0 -10
- package/es/api/device/notification/vibrate.d.ts +0 -8
- package/es/api/device/notification/vibrate.js +0 -21
- package/es/api/device/system/getLang.d.ts +0 -10
- package/es/api/device/system/getLang.js +0 -10
- package/es/api/device/system/setLight.d.ts +0 -8
- package/es/api/device/system/setLight.js +0 -21
- package/es/api/initAPI.d.ts +0 -6
- package/es/api/initAPI.js +0 -24
- package/es/api/primary/createTab.d.ts +0 -13
- package/es/api/primary/createTab.js +0 -17
- package/es/api/primary/exitFullScreen.d.ts +0 -7
- package/es/api/primary/exitFullScreen.js +0 -17
- package/es/api/primary/fullScreen.d.ts +0 -7
- package/es/api/primary/fullScreen.js +0 -17
- package/es/api/primary/weeklyShare.d.ts +0 -13
- package/es/api/primary/weeklyShare.js +0 -17
- package/es/api/runtime/permission/requestAuthCode.d.ts +0 -12
- package/es/api/runtime/permission/requestAuthCode.js +0 -10
- package/es/api/ui/pullToRefresh/disable.d.ts +0 -7
- package/es/api/ui/pullToRefresh/disable.js +0 -21
- package/es/api/ui/pullToRefresh/enable.d.ts +0 -7
- package/es/api/ui/pullToRefresh/enable.js +0 -21
- package/es/api/ui/pullToRefresh/stop.d.ts +0 -7
- package/es/api/ui/pullToRefresh/stop.js +0 -21
- package/es/api/ui/webViewBounce/disable.d.ts +0 -7
- package/es/api/ui/webViewBounce/disable.js +0 -17
- package/es/api/util/domainStorage/getItem.d.ts +0 -12
- package/es/api/util/domainStorage/getItem.js +0 -21
- package/es/api/util/domainStorage/removeItem.d.ts +0 -9
- package/es/api/util/domainStorage/removeItem.js +0 -21
- package/es/api/util/domainStorage/setItem.d.ts +0 -11
- package/es/api/util/domainStorage/setItem.js +0 -21
- package/es/api/util/tool/flushLog.d.ts +0 -7
- package/es/api/util/tool/flushLog.js +0 -17
- package/es/api/util/tool/log.d.ts +0 -9
- package/es/api/util/tool/log.js +0 -17
- package/es/index.d.ts +0 -325
- package/es/index.js +0 -353
- 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 -184
- package/es/lib/bridge/pc.d.ts +0 -4
- package/es/lib/bridge/pc.js +0 -94
- package/es/lib/helper/apiHelper.d.ts +0 -2
- package/es/lib/helper/apiHelper.js +0 -10
- package/es/lib/helper/codeMap.d.ts +0 -2
- package/es/lib/helper/codeMap.js +0 -8
- package/es/lib/helper/event.d.ts +0 -9
- package/es/lib/helper/event.js +0 -52
- package/es/lib/helper/pcIframe.d.ts +0 -44
- package/es/lib/helper/pcIframe.js +0 -180
- package/es/lib/index.d.ts +0 -4
- package/es/lib/index.js +0 -92
- package/es/lib/sdk/index.d.ts +0 -19
- package/es/lib/sdk/index.js +0 -191
- package/es/lib/sdk/sdk.typings.d.ts +0 -85
- package/es/lib/sdk/sdk.typings.js +0 -8
- package/es/utils/bpitLog.d.ts +0 -16
- package/es/utils/bpitLog.js +0 -71
- package/es/utils/compareVersions.d.ts +0 -58
- package/es/utils/compareVersions.js +0 -192
- package/es/utils/console.d.ts +0 -4
- package/es/utils/console.js +0 -60
- package/es/utils/env.d.ts +0 -3
- package/es/utils/env.js +0 -52
- package/es/utils/index.d.ts +0 -4
- package/es/utils/index.js +0 -25
- package/libs/api/app/custom/talYoungFilesUpload.d.ts +0 -38
- package/libs/api/app/custom/talYoungFilesUpload.js +0 -29
- package/libs/api/biz/chat/chooseConversationByCorpId.d.ts +0 -36
- package/libs/api/biz/chat/chooseConversationByCorpId.js +0 -21
- package/libs/api/biz/chat/openSingleChat.d.ts +0 -10
- package/libs/api/biz/chat/openSingleChat.js +0 -21
- package/libs/api/biz/chat/openSquad.d.ts +0 -8
- package/libs/api/biz/chat/openSquad.js +0 -21
- package/libs/api/biz/chat/openTeamChat.d.ts +0 -10
- package/libs/api/biz/chat/openTeamChat.js +0 -21
- package/libs/api/biz/chat/pickConversation.d.ts +0 -19
- package/libs/api/biz/chat/pickConversation.js +0 -32
- package/libs/api/biz/chat/sendP2PMsg.d.ts +0 -10
- package/libs/api/biz/chat/sendP2PMsg.js +0 -21
- package/libs/api/biz/contact/complexPicker.d.ts +0 -62
- package/libs/api/biz/contact/complexPicker.js +0 -21
- package/libs/api/biz/contact/departmentsPicker.d.ts +0 -35
- package/libs/api/biz/contact/departmentsPicker.js +0 -21
- package/libs/api/biz/group/groupComplexPicker.d.ts +0 -33
- package/libs/api/biz/group/groupComplexPicker.js +0 -21
- package/libs/api/biz/map/multipointView.d.ts +0 -21
- package/libs/api/biz/map/multipointView.js +0 -32
- package/libs/api/biz/map/view.d.ts +0 -13
- package/libs/api/biz/map/view.js +0 -32
- package/libs/api/biz/navigation/close.d.ts +0 -7
- package/libs/api/biz/navigation/close.js +0 -22
- package/libs/api/biz/navigation/goBack.d.ts +0 -7
- package/libs/api/biz/navigation/goBack.js +0 -32
- package/libs/api/biz/navigation/quit.d.ts +0 -8
- package/libs/api/biz/navigation/quit.js +0 -28
- package/libs/api/biz/navigation/replace.d.ts +0 -8
- package/libs/api/biz/navigation/replace.js +0 -21
- package/libs/api/biz/navigation/setIcon.d.ts +0 -12
- package/libs/api/biz/navigation/setIcon.js +0 -41
- package/libs/api/biz/navigation/setLeft.d.ts +0 -9
- package/libs/api/biz/navigation/setLeft.js +0 -45
- package/libs/api/biz/navigation/setMenu.d.ts +0 -20
- package/libs/api/biz/navigation/setMenu.js +0 -39
- package/libs/api/biz/navigation/setPanGestureEnable.d.ts +0 -9
- package/libs/api/biz/navigation/setPanGestureEnable.js +0 -40
- package/libs/api/biz/navigation/setRight.d.ts +0 -13
- package/libs/api/biz/navigation/setRight.js +0 -45
- package/libs/api/biz/navigation/setTitle.d.ts +0 -11
- package/libs/api/biz/navigation/setTitle.js +0 -21
- package/libs/api/biz/navigation/setTitleExpandIcon.d.ts +0 -9
- package/libs/api/biz/navigation/setTitleExpandIcon.js +0 -39
- package/libs/api/biz/navigation/setWindowBig.d.ts +0 -9
- package/libs/api/biz/navigation/setWindowBig.js +0 -29
- package/libs/api/biz/navigation/tencentMeeting.d.ts +0 -23
- package/libs/api/biz/navigation/tencentMeeting.js +0 -21
- package/libs/api/biz/navigation/tencentMeetingBegin.d.ts +0 -7
- package/libs/api/biz/navigation/tencentMeetingBegin.js +0 -21
- package/libs/api/biz/navigation/updateExpandTitle.d.ts +0 -8
- package/libs/api/biz/navigation/updateExpandTitle.js +0 -21
- package/libs/api/biz/telephone/call.d.ts +0 -9
- package/libs/api/biz/telephone/call.js +0 -32
- package/libs/api/biz/telephone/showCallMenu.d.ts +0 -12
- package/libs/api/biz/telephone/showCallMenu.js +0 -32
- package/libs/api/biz/util/addAppToNav.d.ts +0 -9
- package/libs/api/biz/util/addAppToNav.js +0 -36
- package/libs/api/biz/util/assistantCreate.d.ts +0 -11
- package/libs/api/biz/util/assistantCreate.js +0 -36
- package/libs/api/biz/util/authFinish.d.ts +0 -11
- package/libs/api/biz/util/authFinish.js +0 -32
- package/libs/api/biz/util/authStart.d.ts +0 -9
- package/libs/api/biz/util/authStart.js +0 -32
- package/libs/api/biz/util/chosen.d.ts +0 -15
- package/libs/api/biz/util/chosen.js +0 -32
- package/libs/api/biz/util/clipboardFileUpload.d.ts +0 -7
- package/libs/api/biz/util/clipboardFileUpload.js +0 -21
- package/libs/api/biz/util/closeWindow.d.ts +0 -8
- package/libs/api/biz/util/closeWindow.js +0 -28
- package/libs/api/biz/util/complain.d.ts +0 -12
- package/libs/api/biz/util/complain.js +0 -21
- package/libs/api/biz/util/createModifySchedule.d.ts +0 -26
- package/libs/api/biz/util/createModifySchedule.js +0 -28
- package/libs/api/biz/util/datepicker.d.ts +0 -14
- package/libs/api/biz/util/datepicker.js +0 -32
- package/libs/api/biz/util/datetimepicker.d.ts +0 -14
- package/libs/api/biz/util/datetimepicker.js +0 -32
- package/libs/api/biz/util/disableScreenCapture.d.ts +0 -8
- package/libs/api/biz/util/disableScreenCapture.js +0 -32
- package/libs/api/biz/util/downloadFile.d.ts +0 -9
- package/libs/api/biz/util/downloadFile.js +0 -21
- package/libs/api/biz/util/entergroupCheck.d.ts +0 -11
- package/libs/api/biz/util/entergroupCheck.js +0 -36
- package/libs/api/biz/util/externalLinkPreviewFile.d.ts +0 -11
- package/libs/api/biz/util/externalLinkPreviewFile.js +0 -21
- package/libs/api/biz/util/feedback.d.ts +0 -11
- package/libs/api/biz/util/feedback.js +0 -21
- package/libs/api/biz/util/getSingleWebviewData.d.ts +0 -8
- package/libs/api/biz/util/getSingleWebviewData.js +0 -21
- package/libs/api/biz/util/getTogetherConfig.d.ts +0 -11
- package/libs/api/biz/util/getTogetherConfig.js +0 -36
- package/libs/api/biz/util/getToken.d.ts +0 -11
- package/libs/api/biz/util/getToken.js +0 -32
- package/libs/api/biz/util/injectScript.d.ts +0 -9
- package/libs/api/biz/util/injectScript.js +0 -21
- package/libs/api/biz/util/invoice.d.ts +0 -12
- package/libs/api/biz/util/invoice.js +0 -28
- package/libs/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/libs/api/biz/util/knowledgeBaseSelect.js +0 -28
- package/libs/api/biz/util/mediaFileUpload.d.ts +0 -26
- package/libs/api/biz/util/mediaFileUpload.js +0 -28
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.d.ts +0 -10
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.js +0 -36
- package/libs/api/biz/util/open.d.ts +0 -9
- package/libs/api/biz/util/open.js +0 -21
- package/libs/api/biz/util/openFutureGroup.d.ts +0 -10
- package/libs/api/biz/util/openFutureGroup.js +0 -36
- package/libs/api/biz/util/openLink.d.ts +0 -8
- package/libs/api/biz/util/openLink.js +0 -21
- package/libs/api/biz/util/openMediaFileDialog.d.ts +0 -23
- package/libs/api/biz/util/openMediaFileDialog.js +0 -28
- package/libs/api/biz/util/openSingleWebview.d.ts +0 -23
- package/libs/api/biz/util/openSingleWebview.js +0 -28
- package/libs/api/biz/util/openSlidePanel.d.ts +0 -11
- package/libs/api/biz/util/openSlidePanel.js +0 -28
- package/libs/api/biz/util/openTalYoungToTopic.d.ts +0 -6
- package/libs/api/biz/util/openTalYoungToTopic.js +0 -28
- package/libs/api/biz/util/openTogetherEyeWebview.d.ts +0 -11
- package/libs/api/biz/util/openTogetherEyeWebview.js +0 -36
- package/libs/api/biz/util/openUserSchedule.d.ts +0 -11
- package/libs/api/biz/util/openUserSchedule.js +0 -36
- package/libs/api/biz/util/openVideoPlayer.d.ts +0 -27
- package/libs/api/biz/util/openVideoPlayer.js +0 -36
- package/libs/api/biz/util/previewFile.d.ts +0 -11
- package/libs/api/biz/util/previewFile.js +0 -21
- package/libs/api/biz/util/previewImage.d.ts +0 -9
- package/libs/api/biz/util/previewImage.js +0 -21
- package/libs/api/biz/util/proxy.d.ts +0 -13
- package/libs/api/biz/util/proxy.js +0 -21
- package/libs/api/biz/util/pushWorkMsg.d.ts +0 -10
- package/libs/api/biz/util/pushWorkMsg.js +0 -28
- package/libs/api/biz/util/remind.d.ts +0 -15
- package/libs/api/biz/util/remind.js +0 -36
- package/libs/api/biz/util/resetSessionUnread.d.ts +0 -8
- package/libs/api/biz/util/resetSessionUnread.js +0 -34
- package/libs/api/biz/util/rouseApp.d.ts +0 -12
- package/libs/api/biz/util/rouseApp.js +0 -28
- package/libs/api/biz/util/savePic.d.ts +0 -8
- package/libs/api/biz/util/savePic.js +0 -32
- package/libs/api/biz/util/scan.d.ts +0 -11
- package/libs/api/biz/util/scan.js +0 -32
- package/libs/api/biz/util/screen.d.ts +0 -15
- package/libs/api/biz/util/screen.js +0 -28
- package/libs/api/biz/util/selectDepartment.d.ts +0 -9
- package/libs/api/biz/util/selectDepartment.js +0 -21
- package/libs/api/biz/util/share.d.ts +0 -12
- package/libs/api/biz/util/share.js +0 -32
- package/libs/api/biz/util/takePicture.d.ts +0 -13
- package/libs/api/biz/util/takePicture.js +0 -21
- package/libs/api/biz/util/uploadAttachment.d.ts +0 -55
- package/libs/api/biz/util/uploadAttachment.js +0 -21
- package/libs/api/biz/util/weeklyRead.d.ts +0 -5
- package/libs/api/biz/util/weeklyRead.js +0 -36
- package/libs/api/biz/util/yachEvent.d.ts +0 -12
- package/libs/api/biz/util/yachEvent.js +0 -40
- package/libs/api/biz/util/zfbAuth.d.ts +0 -10
- package/libs/api/biz/util/zfbAuth.js +0 -32
- package/libs/api/biz/webViewMessage/send.d.ts +0 -7
- package/libs/api/biz/webViewMessage/send.js +0 -28
- 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 -32
- package/libs/api/device/audio/onPlayEnd.d.ts +0 -7
- package/libs/api/device/audio/onPlayEnd.js +0 -32
- package/libs/api/device/audio/onRecordEnd.d.ts +0 -7
- package/libs/api/device/audio/onRecordEnd.js +0 -32
- package/libs/api/device/audio/onRecordEnd_v2.d.ts +0 -7
- package/libs/api/device/audio/onRecordEnd_v2.js +0 -32
- package/libs/api/device/audio/pause.d.ts +0 -8
- package/libs/api/device/audio/pause.js +0 -32
- package/libs/api/device/audio/play.d.ts +0 -8
- package/libs/api/device/audio/play.js +0 -32
- package/libs/api/device/audio/resume.d.ts +0 -8
- package/libs/api/device/audio/resume.js +0 -32
- package/libs/api/device/audio/startRecord.d.ts +0 -8
- package/libs/api/device/audio/startRecord.js +0 -32
- package/libs/api/device/audio/startRecord_v2.d.ts +0 -8
- package/libs/api/device/audio/startRecord_v2.js +0 -32
- package/libs/api/device/audio/stop.d.ts +0 -8
- package/libs/api/device/audio/stop.js +0 -32
- package/libs/api/device/audio/stopRecord.d.ts +0 -7
- package/libs/api/device/audio/stopRecord.js +0 -32
- package/libs/api/device/audio/stopRecord_v2.d.ts +0 -7
- package/libs/api/device/audio/stopRecord_v2.js +0 -32
- package/libs/api/device/base/checkStepPermission.d.ts +0 -8
- package/libs/api/device/base/checkStepPermission.js +0 -32
- package/libs/api/device/base/getPhoneInfo.d.ts +0 -16
- package/libs/api/device/base/getPhoneInfo.js +0 -32
- package/libs/api/device/base/getUUID.d.ts +0 -10
- package/libs/api/device/base/getUUID.js +0 -36
- package/libs/api/device/connection/getNetworkType.d.ts +0 -10
- package/libs/api/device/connection/getNetworkType.js +0 -32
- package/libs/api/device/connection/isAtTal.d.ts +0 -10
- package/libs/api/device/connection/isAtTal.js +0 -34
- package/libs/api/device/geolocation/get.d.ts +0 -42
- package/libs/api/device/geolocation/get.js +0 -32
- package/libs/api/device/geolocation/getSwitch.d.ts +0 -10
- package/libs/api/device/geolocation/getSwitch.js +0 -28
- package/libs/api/device/notification/actionSheet.d.ts +0 -15
- package/libs/api/device/notification/actionSheet.js +0 -32
- package/libs/api/device/notification/alert.d.ts +0 -13
- package/libs/api/device/notification/alert.js +0 -36
- package/libs/api/device/notification/confirm.d.ts +0 -16
- package/libs/api/device/notification/confirm.js +0 -36
- package/libs/api/device/notification/hidePreloader.d.ts +0 -12
- package/libs/api/device/notification/hidePreloader.js +0 -48
- package/libs/api/device/notification/showPreloader.d.ts +0 -18
- package/libs/api/device/notification/showPreloader.js +0 -48
- package/libs/api/device/notification/toast.d.ts +0 -15
- package/libs/api/device/notification/toast.js +0 -21
- package/libs/api/device/notification/vibrate.d.ts +0 -8
- package/libs/api/device/notification/vibrate.js +0 -32
- package/libs/api/device/system/getLang.d.ts +0 -10
- package/libs/api/device/system/getLang.js +0 -21
- package/libs/api/device/system/setLight.d.ts +0 -8
- package/libs/api/device/system/setLight.js +0 -32
- package/libs/api/initAPI.d.ts +0 -6
- package/libs/api/initAPI.js +0 -38
- package/libs/api/primary/createTab.d.ts +0 -13
- package/libs/api/primary/createTab.js +0 -28
- package/libs/api/primary/exitFullScreen.d.ts +0 -7
- package/libs/api/primary/exitFullScreen.js +0 -28
- package/libs/api/primary/fullScreen.d.ts +0 -7
- package/libs/api/primary/fullScreen.js +0 -28
- package/libs/api/primary/weeklyShare.d.ts +0 -13
- package/libs/api/primary/weeklyShare.js +0 -28
- package/libs/api/runtime/permission/requestAuthCode.d.ts +0 -12
- package/libs/api/runtime/permission/requestAuthCode.js +0 -21
- package/libs/api/ui/pullToRefresh/disable.d.ts +0 -7
- package/libs/api/ui/pullToRefresh/disable.js +0 -32
- package/libs/api/ui/pullToRefresh/enable.d.ts +0 -7
- package/libs/api/ui/pullToRefresh/enable.js +0 -32
- package/libs/api/ui/pullToRefresh/stop.d.ts +0 -7
- package/libs/api/ui/pullToRefresh/stop.js +0 -32
- package/libs/api/ui/webViewBounce/disable.d.ts +0 -7
- package/libs/api/ui/webViewBounce/disable.js +0 -28
- package/libs/api/util/domainStorage/getItem.d.ts +0 -12
- package/libs/api/util/domainStorage/getItem.js +0 -32
- package/libs/api/util/domainStorage/removeItem.d.ts +0 -9
- package/libs/api/util/domainStorage/removeItem.js +0 -32
- package/libs/api/util/domainStorage/setItem.d.ts +0 -11
- package/libs/api/util/domainStorage/setItem.js +0 -32
- package/libs/api/util/tool/flushLog.d.ts +0 -7
- package/libs/api/util/tool/flushLog.js +0 -28
- package/libs/api/util/tool/log.d.ts +0 -9
- package/libs/api/util/tool/log.js +0 -28
- package/libs/index.d.ts +0 -325
- package/libs/index.js +0 -1371
- package/libs/lib/bridge/index.d.ts +0 -2
- package/libs/lib/bridge/index.js +0 -39
- package/libs/lib/bridge/mobile.d.ts +0 -13
- package/libs/lib/bridge/mobile.js +0 -209
- package/libs/lib/bridge/pc.d.ts +0 -4
- package/libs/lib/bridge/pc.js +0 -114
- package/libs/lib/helper/apiHelper.d.ts +0 -2
- package/libs/lib/helper/apiHelper.js +0 -21
- package/libs/lib/helper/codeMap.d.ts +0 -2
- package/libs/lib/helper/codeMap.js +0 -19
- package/libs/lib/helper/event.d.ts +0 -9
- package/libs/lib/helper/event.js +0 -68
- package/libs/lib/helper/pcIframe.d.ts +0 -44
- package/libs/lib/helper/pcIframe.js +0 -196
- package/libs/lib/index.d.ts +0 -4
- package/libs/lib/index.js +0 -110
- package/libs/lib/sdk/index.d.ts +0 -19
- package/libs/lib/sdk/index.js +0 -208
- package/libs/lib/sdk/sdk.typings.d.ts +0 -85
- package/libs/lib/sdk/sdk.typings.js +0 -18
- package/libs/utils/bpitLog.d.ts +0 -16
- package/libs/utils/bpitLog.js +0 -81
- package/libs/utils/compareVersions.d.ts +0 -58
- package/libs/utils/compareVersions.js +0 -218
- package/libs/utils/console.d.ts +0 -4
- package/libs/utils/console.js +0 -69
- package/libs/utils/env.d.ts +0 -3
- package/libs/utils/env.js +0 -60
- package/libs/utils/index.d.ts +0 -4
- package/libs/utils/index.js +0 -64
package/es/utils/bpitLog.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface Options {
|
|
2
|
-
group: string;
|
|
3
|
-
project: string;
|
|
4
|
-
env: string;
|
|
5
|
-
version: string;
|
|
6
|
-
method?: string;
|
|
7
|
-
yachid?: string;
|
|
8
|
-
workcode?: string;
|
|
9
|
-
timestamp?: number;
|
|
10
|
-
api?: string;
|
|
11
|
-
time?: number;
|
|
12
|
-
errorcode?: string;
|
|
13
|
-
message?: string;
|
|
14
|
-
}
|
|
15
|
-
export default function bpitLog(options: Options): void;
|
|
16
|
-
export {};
|
package/es/utils/bpitLog.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
function loadScript(url) {
|
|
2
|
-
var script = document.createElement('script');
|
|
3
|
-
script.type = 'text/javascript';
|
|
4
|
-
|
|
5
|
-
if (script.readyState) {
|
|
6
|
-
// ie 浏览器
|
|
7
|
-
script.onreadystatechange = function () {
|
|
8
|
-
if (script.readyState == 'loaded' || script.readyState == 'complete') {
|
|
9
|
-
script.onreadystatechange = null;
|
|
10
|
-
document.getElementsByTagName('head')[0].removeChild(script);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
} else {
|
|
14
|
-
//其他
|
|
15
|
-
script.onload = function () {
|
|
16
|
-
document.getElementsByTagName('head')[0].removeChild(script);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
script.src = url;
|
|
21
|
-
document.getElementsByTagName('head')[0].appendChild(script);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default function bpitLog(options) {
|
|
25
|
-
if (!options) {
|
|
26
|
-
console.log('bpit error: need options');
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (!options.group) {
|
|
31
|
-
console.log('bpit error: need options.group');
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (!options.project) {
|
|
36
|
-
console.log('bpit error: need options.project');
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if (!options.hasOwnProperty('env')) {
|
|
41
|
-
console.log('bpit error: need options.env');
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (!options.hasOwnProperty('version')) {
|
|
46
|
-
console.log('bpit error: need options.version');
|
|
47
|
-
return;
|
|
48
|
-
} // upload data
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
var uploadData = ['https://es.zhiyinlou.com/log.js?'];
|
|
52
|
-
uploadData.push('group=' + options.group);
|
|
53
|
-
uploadData.push('&project=' + options.project);
|
|
54
|
-
uploadData.push('&env=' + options.env);
|
|
55
|
-
uploadData.push('&version=' + options.version);
|
|
56
|
-
uploadData.push('&method=' + options.method);
|
|
57
|
-
if (options.yachid) uploadData.push('&yachid=' + options.yachid);
|
|
58
|
-
if (options.workcode) uploadData.push('&workcode=' + options.workcode);
|
|
59
|
-
if (options.timestamp) uploadData.push('×tamp=' + options.timestamp);
|
|
60
|
-
if (options.errorcode) uploadData.push('&errorcode=' + options.errorcode);
|
|
61
|
-
if (options.message) uploadData.push('&message=' + options.message); // api load time
|
|
62
|
-
|
|
63
|
-
if (options.api && options.time) {
|
|
64
|
-
uploadData.push('&api=' + options.api);
|
|
65
|
-
uploadData.push('&load_time=' + options.time);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
var uploadDataUrl = uploadData.join('');
|
|
69
|
-
loadScript(uploadDataUrl);
|
|
70
|
-
if (options.env != 'online') console.log(uploadDataUrl);
|
|
71
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.
|
|
3
|
-
* This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`.
|
|
4
|
-
* @param v1 - First version to compare
|
|
5
|
-
* @param v2 - Second version to compare
|
|
6
|
-
* @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters).
|
|
7
|
-
*/
|
|
8
|
-
export declare const compareVersions: (v1: string, v2: string) => 0 | 1 | -1;
|
|
9
|
-
/**
|
|
10
|
-
* Validate [semver](https://semver.org/) version strings.
|
|
11
|
-
*
|
|
12
|
-
* @param version Version number to validate
|
|
13
|
-
* @returns `true` if the version number is a valid semver version number, `false` otherwise.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```
|
|
17
|
-
* validate('1.0.0-rc.1'); // return true
|
|
18
|
-
* validate('1.0-rc.1'); // return false
|
|
19
|
-
* validate('foo'); // return false
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare const validate: (version: string) => boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Allowed arithmetic operators
|
|
25
|
-
*/
|
|
26
|
-
export declare type CompareOperator = '>' | '>=' | '=' | '<' | '<=';
|
|
27
|
-
/**
|
|
28
|
-
* Compare [semver](https://semver.org/) version strings using the specified operator.
|
|
29
|
-
*
|
|
30
|
-
* @param v1 First version to compare
|
|
31
|
-
* @param v2 Second version to compare
|
|
32
|
-
* @param operator Allowed arithmetic operator to use
|
|
33
|
-
* @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```
|
|
37
|
-
* compare('10.1.8', '10.0.4', '>'); // return true
|
|
38
|
-
* compare('10.0.1', '10.0.1', '='); // return true
|
|
39
|
-
* compare('10.1.1', '10.2.2', '<'); // return true
|
|
40
|
-
* compare('10.1.1', '10.2.2', '<='); // return true
|
|
41
|
-
* compare('10.1.1', '10.2.2', '>='); // return false
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare const compare: (v1: string, v2: string, operator: CompareOperator) => boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.
|
|
47
|
-
*
|
|
48
|
-
* @param version Version number to match
|
|
49
|
-
* @param range Range pattern for version
|
|
50
|
-
* @returns `true` if the version number is within the range, `false` otherwise.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```
|
|
54
|
-
* satisfies('1.1.0', '^1.0.0'); // return true
|
|
55
|
-
* satisfies('1.1.0', '~1.0.0'); // return false
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
export declare const satisfies: (version: string, range: string) => boolean;
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js/instance/index-of";
|
|
2
|
-
import _Object$keys from "@babel/runtime-corejs3/core-js/object/keys";
|
|
3
|
-
import _typeof from "@babel/runtime-corejs3/helpers/typeof";
|
|
4
|
-
import _parseInt from "@babel/runtime-corejs3/core-js/parse-int";
|
|
5
|
-
import _slicedToArray from "@babel/runtime-corejs3/helpers/slicedToArray";
|
|
6
|
-
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js/instance/includes";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.
|
|
10
|
-
* This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`.
|
|
11
|
-
* @param v1 - First version to compare
|
|
12
|
-
* @param v2 - Second version to compare
|
|
13
|
-
* @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters).
|
|
14
|
-
*/
|
|
15
|
-
export var compareVersions = function compareVersions(v1, v2) {
|
|
16
|
-
// validate input and split into segments
|
|
17
|
-
var n1 = validateAndParse(v1);
|
|
18
|
-
var n2 = validateAndParse(v2); // pop off the patch
|
|
19
|
-
|
|
20
|
-
var p1 = n1.pop();
|
|
21
|
-
var p2 = n2.pop(); // validate numbers
|
|
22
|
-
|
|
23
|
-
var r = compareSegments(n1, n2);
|
|
24
|
-
if (r !== 0) return r; // validate pre-release
|
|
25
|
-
|
|
26
|
-
if (p1 && p2) {
|
|
27
|
-
return compareSegments(p1.split('.'), p2.split('.'));
|
|
28
|
-
} else if (p1 || p2) {
|
|
29
|
-
return p1 ? -1 : 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return 0;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Validate [semver](https://semver.org/) version strings.
|
|
36
|
-
*
|
|
37
|
-
* @param version Version number to validate
|
|
38
|
-
* @returns `true` if the version number is a valid semver version number, `false` otherwise.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```
|
|
42
|
-
* validate('1.0.0-rc.1'); // return true
|
|
43
|
-
* validate('1.0-rc.1'); // return false
|
|
44
|
-
* validate('foo'); // return false
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
export var validate = function validate(version) {
|
|
49
|
-
return typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version);
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Compare [semver](https://semver.org/) version strings using the specified operator.
|
|
53
|
-
*
|
|
54
|
-
* @param v1 First version to compare
|
|
55
|
-
* @param v2 Second version to compare
|
|
56
|
-
* @param operator Allowed arithmetic operator to use
|
|
57
|
-
* @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise.
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```
|
|
61
|
-
* compare('10.1.8', '10.0.4', '>'); // return true
|
|
62
|
-
* compare('10.0.1', '10.0.1', '='); // return true
|
|
63
|
-
* compare('10.1.1', '10.2.2', '<'); // return true
|
|
64
|
-
* compare('10.1.1', '10.2.2', '<='); // return true
|
|
65
|
-
* compare('10.1.1', '10.2.2', '>='); // return false
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
export var compare = function compare(v1, v2, operator) {
|
|
70
|
-
var _context;
|
|
71
|
-
|
|
72
|
-
// validate input operator
|
|
73
|
-
assertValidOperator(operator); // since result of compareVersions can only be -1 or 0 or 1
|
|
74
|
-
// a simple map can be used to replace switch
|
|
75
|
-
|
|
76
|
-
var res = compareVersions(v1, v2);
|
|
77
|
-
return _includesInstanceProperty(_context = operatorResMap[operator]).call(_context, res);
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.
|
|
81
|
-
*
|
|
82
|
-
* @param version Version number to match
|
|
83
|
-
* @param range Range pattern for version
|
|
84
|
-
* @returns `true` if the version number is within the range, `false` otherwise.
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```
|
|
88
|
-
* satisfies('1.1.0', '^1.0.0'); // return true
|
|
89
|
-
* satisfies('1.1.0', '~1.0.0'); // return false
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
|
|
93
|
-
export var satisfies = function satisfies(version, range) {
|
|
94
|
-
// if no range operator then "="
|
|
95
|
-
var m = range.match(/^([<>=~^]+)/);
|
|
96
|
-
var op = m ? m[1] : '='; // if gt/lt/eq then operator compare
|
|
97
|
-
|
|
98
|
-
if (op !== '^' && op !== '~') return compare(version, range, op); // else range of either "~" or "^" is assumed
|
|
99
|
-
|
|
100
|
-
var _validateAndParse = validateAndParse(version),
|
|
101
|
-
_validateAndParse2 = _slicedToArray(_validateAndParse, 3),
|
|
102
|
-
v1 = _validateAndParse2[0],
|
|
103
|
-
v2 = _validateAndParse2[1],
|
|
104
|
-
v3 = _validateAndParse2[2];
|
|
105
|
-
|
|
106
|
-
var _validateAndParse3 = validateAndParse(range),
|
|
107
|
-
_validateAndParse4 = _slicedToArray(_validateAndParse3, 3),
|
|
108
|
-
r1 = _validateAndParse4[0],
|
|
109
|
-
r2 = _validateAndParse4[1],
|
|
110
|
-
r3 = _validateAndParse4[2];
|
|
111
|
-
|
|
112
|
-
if (compareStrings(v1, r1) !== 0) return false;
|
|
113
|
-
|
|
114
|
-
if (op === '^') {
|
|
115
|
-
return compareSegments([v2, v3], [r2, r3]) >= 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (compareStrings(v2, r2) !== 0) return false;
|
|
119
|
-
return compareStrings(v3, r3) >= 0;
|
|
120
|
-
};
|
|
121
|
-
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
122
|
-
|
|
123
|
-
var validateAndParse = function validateAndParse(version) {
|
|
124
|
-
if (typeof version !== 'string') {
|
|
125
|
-
throw new TypeError('Invalid argument expected string');
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
var match = version.match(semver);
|
|
129
|
-
|
|
130
|
-
if (!match) {
|
|
131
|
-
throw new Error("Invalid argument not valid semver ('".concat(version, "' received)"));
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
match.shift();
|
|
135
|
-
return match;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
var isWildcard = function isWildcard(s) {
|
|
139
|
-
return s === '*' || s === 'x' || s === 'X';
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
var tryParse = function tryParse(v) {
|
|
143
|
-
var n = _parseInt(v, 10);
|
|
144
|
-
|
|
145
|
-
return isNaN(n) ? v : n;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
var forceType = function forceType(a, b) {
|
|
149
|
-
return _typeof(a) !== _typeof(b) ? [String(a), String(b)] : [a, b];
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
var compareStrings = function compareStrings(a, b) {
|
|
153
|
-
if (isWildcard(a) || isWildcard(b)) return 0;
|
|
154
|
-
|
|
155
|
-
var _forceType = forceType(tryParse(a), tryParse(b)),
|
|
156
|
-
_forceType2 = _slicedToArray(_forceType, 2),
|
|
157
|
-
ap = _forceType2[0],
|
|
158
|
-
bp = _forceType2[1];
|
|
159
|
-
|
|
160
|
-
if (ap > bp) return 1;
|
|
161
|
-
if (ap < bp) return -1;
|
|
162
|
-
return 0;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
var compareSegments = function compareSegments(a, b) {
|
|
166
|
-
for (var i = 0; i < Math.max(a.length, b.length); i++) {
|
|
167
|
-
var r = compareStrings(a[i] || '0', b[i] || '0');
|
|
168
|
-
if (r !== 0) return r;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
return 0;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
var operatorResMap = {
|
|
175
|
-
'>': [1],
|
|
176
|
-
'>=': [0, 1],
|
|
177
|
-
'=': [0],
|
|
178
|
-
'<=': [-1, 0],
|
|
179
|
-
'<': [-1]
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
var allowedOperators = _Object$keys(operatorResMap);
|
|
183
|
-
|
|
184
|
-
var assertValidOperator = function assertValidOperator(op) {
|
|
185
|
-
if (typeof op !== 'string') {
|
|
186
|
-
throw new TypeError("Invalid operator type, expected string but got ".concat(_typeof(op)));
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
if (_indexOfInstanceProperty(allowedOperators).call(allowedOperators, op) === -1) {
|
|
190
|
-
throw new Error("Invalid operator, expected one of ".concat(allowedOperators.join('|')));
|
|
191
|
-
}
|
|
192
|
-
};
|
package/es/utils/console.d.ts
DELETED
package/es/utils/console.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import _bindInstanceProperty from "@babel/runtime-corejs3/core-js/instance/bind";
|
|
2
|
-
|
|
3
|
-
var _context, _context2, _context3;
|
|
4
|
-
|
|
5
|
-
// 防止被应用复写console
|
|
6
|
-
var myconsole = {
|
|
7
|
-
log: function log() {},
|
|
8
|
-
warn: function warn() {},
|
|
9
|
-
error: function error() {}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
if (typeof window !== 'undefined' && window.console) {
|
|
13
|
-
myconsole = window.console;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
if (typeof document !== 'undefined' && document.body) {
|
|
17
|
-
var iframe = document.createElement('iframe');
|
|
18
|
-
|
|
19
|
-
if (iframe && iframe.contentWindow && iframe.contentWindow.console) {
|
|
20
|
-
iframe.style.display = 'none';
|
|
21
|
-
document.body.appendChild(iframe);
|
|
22
|
-
myconsole = iframe.contentWindow.console;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var myLog = _bindInstanceProperty(_context = myconsole.log).call(_context, myconsole);
|
|
27
|
-
|
|
28
|
-
var myWarn = _bindInstanceProperty(_context2 = myconsole.warn).call(_context2, myconsole);
|
|
29
|
-
|
|
30
|
-
var myError = _bindInstanceProperty(_context3 = myconsole.error).call(_context3, myconsole);
|
|
31
|
-
|
|
32
|
-
var style = 'color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;';
|
|
33
|
-
var styleError = "".concat(style, "background-color:red;");
|
|
34
|
-
var styleWarn = "".concat(style, "background-color:orange;");
|
|
35
|
-
|
|
36
|
-
function log() {
|
|
37
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38
|
-
args[_key] = arguments[_key];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return myLog("%c Yach-jssdk log: ", style, args);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function error() {
|
|
45
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
46
|
-
args[_key2] = arguments[_key2];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return myWarn("%c Yach-jssdk log: ", styleError, args);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function warn() {
|
|
53
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
54
|
-
args[_key3] = arguments[_key3];
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return myError("%c Yach-jssdk log: ", styleWarn, args);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export { log, error, warn };
|
package/es/utils/env.d.ts
DELETED
package/es/utils/env.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ENV_ENUM } from '../lib/sdk/sdk.typings';
|
|
2
|
-
|
|
3
|
-
function getUA() {
|
|
4
|
-
return typeof navigator !== 'undefined' ? navigator.userAgent : '';
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function getENV() {
|
|
8
|
-
var ua = getUA(),
|
|
9
|
-
inYach = /Yach/i.test(ua),
|
|
10
|
-
inIOS = /iPhone|iPad|iPod|iOS/i.test(ua) && inYach,
|
|
11
|
-
inAndroid = /Android/i.test(ua) && inYach,
|
|
12
|
-
inPC = /YachPc/i.test(ua),
|
|
13
|
-
inIpad = /iPad/i.test(ua) && inYach,
|
|
14
|
-
inIPhone = /iPhone/i.test(ua) && inYach,
|
|
15
|
-
isTest = /Yachtest/.test(ua) && inYach; // platform
|
|
16
|
-
|
|
17
|
-
var platform = ENV_ENUM.notInYach;
|
|
18
|
-
|
|
19
|
-
if (inIOS) {
|
|
20
|
-
platform = ENV_ENUM.ios;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (inAndroid) {
|
|
24
|
-
platform = ENV_ENUM.android;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (inPC) {
|
|
28
|
-
platform = ENV_ENUM.pc;
|
|
29
|
-
} // version
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var versionArr = ua.match(/Yach\/[a-zA-Z0-9.-]+/) || [];
|
|
33
|
-
var version = (versionArr[0] || '').split('/')[1] || ''; // language
|
|
34
|
-
|
|
35
|
-
var language = typeof navigator !== 'undefined' ? navigator.language : '*';
|
|
36
|
-
return {
|
|
37
|
-
platform: platform,
|
|
38
|
-
platformV2: {
|
|
39
|
-
inYach: inYach,
|
|
40
|
-
inIOS: inIOS,
|
|
41
|
-
inAndroid: inAndroid,
|
|
42
|
-
inPC: inPC,
|
|
43
|
-
inIpad: inIpad,
|
|
44
|
-
inIPhone: inIPhone
|
|
45
|
-
},
|
|
46
|
-
version: version,
|
|
47
|
-
language: language,
|
|
48
|
-
env: isTest ? 'test' : 'online'
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { getENV };
|
package/es/utils/index.d.ts
DELETED
package/es/utils/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import _Object$assign from "@babel/runtime-corejs3/core-js/object/assign";
|
|
2
|
-
import _Date$now from "@babel/runtime-corejs3/core-js/date/now";
|
|
3
|
-
import { getENV } from './env';
|
|
4
|
-
import bpitLog from './bpitLog';
|
|
5
|
-
import { log, error, warn } from './console';
|
|
6
|
-
|
|
7
|
-
function staticsLog(config) {
|
|
8
|
-
var env = getENV().env;
|
|
9
|
-
var version = getENV().version;
|
|
10
|
-
|
|
11
|
-
var timestamp = _Date$now();
|
|
12
|
-
|
|
13
|
-
var params = _Object$assign({
|
|
14
|
-
group: 'yach',
|
|
15
|
-
project: 'yach_31_jssdk',
|
|
16
|
-
env: env,
|
|
17
|
-
version: version,
|
|
18
|
-
timestamp: timestamp
|
|
19
|
-
}, config);
|
|
20
|
-
|
|
21
|
-
console.log('jssdk 项目 bpit 上报数据:', params);
|
|
22
|
-
bpitLog(params);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { log, error, warn, staticsLog as bpitLog, getENV };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizUtiltalYoungFilesUploadResult {
|
|
3
|
-
count?: number;
|
|
4
|
-
data?: {
|
|
5
|
-
imageId?: string;
|
|
6
|
-
filePath?: string;
|
|
7
|
-
fileName?: string;
|
|
8
|
-
source?: string;
|
|
9
|
-
base64?: string;
|
|
10
|
-
width?: number;
|
|
11
|
-
height?: number;
|
|
12
|
-
processdata?: object;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
interface IBizUtiltalYoungFilesUploadProgress {
|
|
16
|
-
loaded: number;
|
|
17
|
-
total: number;
|
|
18
|
-
speed: number;
|
|
19
|
-
percent: number;
|
|
20
|
-
}
|
|
21
|
-
export interface IBizUtiltalYoungFilesUploadParams {
|
|
22
|
-
/** types这个数组里有photo、camera参数需要构建这个数据 */
|
|
23
|
-
image?: {
|
|
24
|
-
/** 是否多选,默认为false */
|
|
25
|
-
multiple?: boolean;
|
|
26
|
-
/** 是否压缩,默认为true */
|
|
27
|
-
compress?: boolean;
|
|
28
|
-
/** 最多选择的图片数目,最多支持9张 */
|
|
29
|
-
max?: number;
|
|
30
|
-
};
|
|
31
|
-
/** 支持上传附件的文件类型,至少一个,最多支持两种种类型 */
|
|
32
|
-
types: Array<'photo' | 'vedio'>;
|
|
33
|
-
onSuccess?: (data: IBizUtiltalYoungFilesUploadResult) => void;
|
|
34
|
-
onFail?: (err: IError) => void;
|
|
35
|
-
onProgress?: (data: IBizUtiltalYoungFilesUploadProgress) => void;
|
|
36
|
-
}
|
|
37
|
-
declare function talYoungFilesUpload(params: IBizUtiltalYoungFilesUploadParams): void;
|
|
38
|
-
export { talYoungFilesUpload };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
exports.talYoungFilesUpload = talYoungFilesUpload;
|
|
12
|
-
|
|
13
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
|
-
/*
|
|
16
|
-
* @Descripttion:
|
|
17
|
-
* @Author: olei<wangzheng_jzb@100tal.com>
|
|
18
|
-
* @Date: 2020-09-07 19:55:47
|
|
19
|
-
* @LastEditors: olei<wangzheng_jzb@100tal.com>
|
|
20
|
-
* @LastEditTime: 2020-09-10 16:51:44
|
|
21
|
-
* yach > 1.4.7 已经废弃,目前只保留 sdk 入口兼容 yach 低版本调用
|
|
22
|
-
*/
|
|
23
|
-
var apiName = 'app.custom.talYoungFilesUpload';
|
|
24
|
-
|
|
25
|
-
function talYoungFilesUpload(params) {
|
|
26
|
-
(0, _initAPI["default"])(apiName, {
|
|
27
|
-
params: params
|
|
28
|
-
});
|
|
29
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
/**
|
|
3
|
-
* 返回参数定义
|
|
4
|
-
*/
|
|
5
|
-
export interface IBizChatChooseConversationByCorpIdResult {
|
|
6
|
-
chatId: string;
|
|
7
|
-
title: string;
|
|
8
|
-
type: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 选择企业会话 请求参数定义
|
|
12
|
-
* @apiName biz.chat.chooseConversationByCorpId
|
|
13
|
-
*/
|
|
14
|
-
export interface IBizChatChooseConversationByCorpIdParams {
|
|
15
|
-
/** 会话id */
|
|
16
|
-
chatId: string;
|
|
17
|
-
/** 是否允许创建会话, 仅支持移动端,暂时没用和钉钉保持一致*/
|
|
18
|
-
isAllowCreateGroup?: boolean;
|
|
19
|
-
/** 是否限制为自己创建的会话,仅支持移动端 */
|
|
20
|
-
filterNotOwnerGroup?: boolean;
|
|
21
|
-
/** 是否支持多选,默认不支持 */
|
|
22
|
-
multiple?: boolean;
|
|
23
|
-
/** 超过限定会话提示 */
|
|
24
|
-
limitTips?: string;
|
|
25
|
-
/** 最大选择会话数量 */
|
|
26
|
-
maxConversations?: number;
|
|
27
|
-
disabledUsers?: string[];
|
|
28
|
-
disabledTeams?: string[];
|
|
29
|
-
/** 是否展示外部联系人 */
|
|
30
|
-
showExternalContact?: boolean;
|
|
31
|
-
onSuccess?: (data: IBizChatChooseConversationByCorpIdResult) => void;
|
|
32
|
-
onFail?: (err: IError) => void;
|
|
33
|
-
onCancel?: () => void;
|
|
34
|
-
}
|
|
35
|
-
declare function chooseConversationByCorpId(params: IBizChatChooseConversationByCorpIdParams): void;
|
|
36
|
-
export { chooseConversationByCorpId };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
exports.chooseConversationByCorpId = chooseConversationByCorpId;
|
|
12
|
-
|
|
13
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
|
-
var apiName = 'biz.chat.chooseConversationByCorpId';
|
|
16
|
-
|
|
17
|
-
function chooseConversationByCorpId(params) {
|
|
18
|
-
(0, _initAPI["default"])(apiName, {
|
|
19
|
-
params: params
|
|
20
|
-
});
|
|
21
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizChatOpenSingleChatParams {
|
|
3
|
-
/** 企业id */
|
|
4
|
-
corpId: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
onSuccess?: () => void;
|
|
7
|
-
onFail?: (err: IError) => void;
|
|
8
|
-
}
|
|
9
|
-
declare function openSingleChat(params: IBizChatOpenSingleChatParams): void;
|
|
10
|
-
export { openSingleChat };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
exports.openSingleChat = openSingleChat;
|
|
12
|
-
|
|
13
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
|
-
var apiName = 'biz.chat.openSingleChat';
|
|
16
|
-
|
|
17
|
-
function openSingleChat(params) {
|
|
18
|
-
(0, _initAPI["default"])(apiName, {
|
|
19
|
-
params: params
|
|
20
|
-
});
|
|
21
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IBizChatOpenSquadParams {
|
|
3
|
-
sessionId: string;
|
|
4
|
-
onSuccess?: () => void;
|
|
5
|
-
onFail?: (err: IError) => void;
|
|
6
|
-
}
|
|
7
|
-
declare function openSquad(params: IBizChatOpenSquadParams): void;
|
|
8
|
-
export { openSquad };
|