yach.open.jssdk 4.4.3 → 4.4.4-beta.11
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/dist/yach_jssdk_4.4.4-beta.11.js +1 -0
- package/es/api/app/custom/talYoungFilesUpload.js +0 -2
- package/es/api/biz/chat/chooseConversationByCorpId.js +0 -2
- package/es/api/biz/chat/openSingleChat.js +0 -2
- package/es/api/biz/chat/openSquad.js +0 -2
- package/es/api/biz/chat/openTeamChat.js +0 -2
- package/es/api/biz/chat/pickConversation.js +0 -2
- package/es/api/biz/chat/sendP2PMsg.js +0 -2
- package/es/api/biz/contact/complexPicker.js +0 -2
- package/es/api/biz/contact/departmentsPicker.js +0 -2
- package/es/api/biz/group/groupComplexPicker.js +0 -2
- package/es/api/biz/map/multipointView.js +0 -2
- package/es/api/biz/map/view.js +0 -2
- package/es/api/biz/navigation/close.js +0 -2
- package/es/api/biz/navigation/goBack.js +0 -2
- package/es/api/biz/navigation/quit.js +0 -2
- package/es/api/biz/navigation/replace.js +0 -2
- package/es/api/biz/navigation/setIcon.js +0 -2
- package/es/api/biz/navigation/setLeft.js +0 -2
- package/es/api/biz/navigation/setMenu.js +0 -2
- package/es/api/biz/navigation/setPanGestureEnable.js +0 -2
- package/es/api/biz/navigation/setRight.js +0 -2
- package/es/api/biz/navigation/setTitle.js +0 -2
- package/es/api/biz/navigation/setTitleExpandIcon.js +0 -2
- package/es/api/biz/navigation/setWindowBig.js +0 -2
- package/es/api/biz/navigation/tencentMeeting.js +0 -2
- package/es/api/biz/navigation/tencentMeetingBegin.js +0 -2
- package/es/api/biz/navigation/updateExpandTitle.js +0 -2
- package/es/api/biz/telephone/call.js +0 -2
- package/es/api/biz/telephone/showCallMenu.js +0 -2
- package/es/api/biz/util/addAppToNav.js +0 -2
- package/es/api/biz/util/assistantCreate.js +0 -2
- package/es/api/biz/util/authFinish.js +0 -2
- package/es/api/biz/util/authStart.js +0 -2
- package/es/api/biz/util/chosen.js +0 -2
- package/es/api/biz/util/clipboardFileUpload.js +0 -2
- package/es/api/biz/util/closeWindow.js +0 -2
- package/es/api/biz/util/complain.js +0 -2
- package/es/api/biz/util/copy.d.ts +11 -0
- package/es/api/biz/util/copy.js +19 -0
- package/es/api/biz/util/createModifySchedule.js +0 -2
- package/es/api/biz/util/datepicker.js +0 -2
- package/es/api/biz/util/datetimepicker.js +0 -2
- package/es/api/biz/util/disableScreenCapture.js +0 -2
- package/es/api/biz/util/downloadFile.js +0 -2
- package/es/api/biz/util/entergroupCheck.js +0 -2
- package/es/api/biz/util/externalLinkPreviewFile.js +0 -2
- package/es/api/biz/util/feedback.js +0 -2
- package/es/api/biz/util/getConfig.d.ts +13 -0
- package/es/api/biz/util/getConfig.js +19 -0
- package/es/api/biz/util/getSingleWebviewData.js +0 -2
- package/es/api/biz/util/getTogetherConfig.js +0 -2
- package/es/api/biz/util/getToken.js +0 -2
- package/es/api/biz/util/injectScript.js +0 -2
- package/es/api/biz/util/invoice.js +0 -2
- package/es/api/biz/util/knowledgeBaseSelect.js +9 -3
- package/es/api/biz/util/knowledgeSelectParams.d.ts +14 -0
- package/es/api/biz/util/knowledgeSelectParams.js +19 -0
- package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +11 -0
- package/es/api/biz/util/lorebaseRefreshNodeWebview.js +19 -0
- package/es/api/biz/util/lorebaseShowList.d.ts +11 -0
- package/es/api/biz/util/lorebaseShowList.js +19 -0
- package/es/api/biz/util/mediaFileUpload.js +0 -2
- package/es/api/biz/util/onlineDocmentOpenTeamChat.js +0 -2
- package/es/api/biz/util/open.js +0 -2
- package/es/api/biz/util/openFutureGroup.js +0 -2
- package/es/api/biz/util/openLink.js +0 -2
- package/es/api/biz/util/openMediaFileDialog.js +0 -2
- package/es/api/biz/util/openPublish.d.ts +22 -0
- package/es/api/biz/util/openPublish.js +15 -0
- package/es/api/biz/util/openSingleWebview.js +0 -2
- package/es/api/biz/util/openSlidePanel.js +0 -2
- package/es/api/biz/util/openTalYoungToTopic.js +0 -2
- package/es/api/biz/util/openTogetherEyeWebview.js +0 -2
- package/es/api/biz/util/openUserSchedule.js +0 -2
- package/es/api/biz/util/openVideoPlayer.js +0 -2
- package/es/api/biz/util/previewFile.js +0 -2
- package/es/api/biz/util/previewImage.js +0 -2
- package/es/api/biz/util/proxy.js +0 -2
- package/es/api/biz/util/pushWorkMsg.js +0 -2
- package/es/api/biz/util/remind.js +0 -2
- package/es/api/biz/util/resetSessionUnread.js +0 -2
- package/es/api/biz/util/rouseApp.js +0 -2
- package/es/api/biz/util/savePic.js +0 -2
- package/es/api/biz/util/scan.js +0 -2
- package/es/api/biz/util/screen.js +0 -2
- package/es/api/biz/util/selectDepartment.js +0 -2
- package/es/api/biz/util/share.js +0 -2
- package/es/api/biz/util/takePicture.js +0 -2
- package/es/api/biz/util/topicEvent.js +0 -2
- package/es/api/biz/util/uploadAttachment.js +0 -2
- package/es/api/biz/util/weeklyRead.js +0 -2
- package/es/api/biz/util/yachEvent.js +0 -2
- package/es/api/biz/util/zfbAuth.js +0 -2
- package/es/api/biz/webViewMessage/send.js +0 -2
- package/es/api/device/audio/download.js +0 -2
- package/es/api/device/audio/onPlayEnd.js +0 -2
- package/es/api/device/audio/onRecordEnd.js +0 -2
- package/es/api/device/audio/onRecordEnd_v2.js +0 -2
- package/es/api/device/audio/pause.js +0 -2
- package/es/api/device/audio/play.js +0 -2
- package/es/api/device/audio/resume.js +0 -2
- package/es/api/device/audio/startRecord.js +0 -2
- package/es/api/device/audio/startRecord_v2.js +0 -2
- package/es/api/device/audio/stop.js +0 -2
- package/es/api/device/audio/stopRecord.js +0 -2
- package/es/api/device/audio/stopRecord_v2.js +0 -2
- package/es/api/device/base/checkStepPermission.js +0 -2
- package/es/api/device/base/getPhoneInfo.js +0 -2
- package/es/api/device/base/getUUID.js +0 -2
- package/es/api/device/connection/getNetworkType.js +0 -2
- package/es/api/device/connection/isAtTal.js +2 -4
- package/es/api/device/geolocation/get.js +0 -2
- package/es/api/device/geolocation/getSwitch.js +0 -2
- package/es/api/device/notification/actionSheet.js +0 -2
- package/es/api/device/notification/alert.js +0 -2
- package/es/api/device/notification/confirm.js +0 -2
- package/es/api/device/notification/hidePreloader.js +0 -4
- package/es/api/device/notification/showPreloader.js +0 -4
- package/es/api/device/notification/toast.js +0 -2
- package/es/api/device/notification/vibrate.js +0 -2
- package/es/api/device/system/getLang.js +0 -2
- package/es/api/device/system/setLight.js +0 -2
- package/es/api/initAPI.js +3 -5
- package/es/api/primary/createTab.js +0 -2
- package/es/api/primary/exitFullScreen.js +0 -2
- package/es/api/primary/fullScreen.js +0 -2
- package/es/api/primary/updateTab.d.ts +9 -0
- package/es/api/primary/updateTab.js +15 -0
- package/es/api/primary/weeklyShare.js +0 -2
- package/es/api/runtime/permission/requestAuthCode.js +0 -2
- package/es/api/ui/pullToRefresh/disable.js +0 -2
- package/es/api/ui/pullToRefresh/enable.js +0 -2
- package/es/api/ui/pullToRefresh/stop.js +0 -2
- package/es/api/ui/webViewBounce/disable.js +0 -2
- package/es/api/util/domainStorage/getItem.js +0 -2
- package/es/api/util/domainStorage/removeItem.js +0 -2
- package/es/api/util/domainStorage/setItem.js +0 -2
- package/es/api/util/tool/flushLog.js +0 -2
- package/es/api/util/tool/log.js +0 -2
- package/es/index.d.ts +13 -1
- package/es/index.js +29 -28
- package/es/lib/bridge/mobile.js +22 -27
- package/es/lib/bridge/pc.js +11 -18
- package/es/lib/helper/apiHelper.js +0 -2
- package/es/lib/helper/codeMap.js +0 -2
- package/es/lib/helper/event.js +7 -19
- package/es/lib/helper/pcIframe.d.ts +8 -25
- package/es/lib/helper/pcIframe.js +48 -54
- package/es/lib/index.js +7 -21
- package/es/lib/sdk/index.js +16 -37
- package/es/lib/sdk/sdk.typings.d.ts +1 -0
- package/es/lib/sdk/sdk.typings.js +0 -1
- package/es/utils/bpitLog.js +4 -13
- package/es/utils/compareVersions.js +26 -53
- package/es/utils/console.js +1 -17
- package/es/utils/env.js +15 -20
- package/es/utils/index.js +1 -6
- package/libs/api/app/custom/talYoungFilesUpload.js +2 -7
- package/libs/api/biz/chat/chooseConversationByCorpId.js +1 -7
- package/libs/api/biz/chat/openSingleChat.js +1 -7
- package/libs/api/biz/chat/openSquad.js +1 -7
- package/libs/api/biz/chat/openTeamChat.js +1 -7
- package/libs/api/biz/chat/pickConversation.js +1 -7
- package/libs/api/biz/chat/sendP2PMsg.js +1 -7
- package/libs/api/biz/contact/complexPicker.js +1 -7
- package/libs/api/biz/contact/departmentsPicker.js +1 -7
- package/libs/api/biz/group/groupComplexPicker.js +1 -7
- package/libs/api/biz/map/multipointView.js +1 -7
- package/libs/api/biz/map/view.js +1 -7
- package/libs/api/biz/navigation/close.js +1 -7
- package/libs/api/biz/navigation/goBack.js +1 -7
- package/libs/api/biz/navigation/quit.js +1 -7
- package/libs/api/biz/navigation/replace.js +1 -7
- package/libs/api/biz/navigation/setIcon.js +1 -8
- package/libs/api/biz/navigation/setLeft.js +1 -8
- package/libs/api/biz/navigation/setMenu.js +1 -8
- package/libs/api/biz/navigation/setPanGestureEnable.js +1 -8
- package/libs/api/biz/navigation/setRight.js +1 -8
- package/libs/api/biz/navigation/setTitle.js +1 -7
- package/libs/api/biz/navigation/setTitleExpandIcon.js +1 -8
- package/libs/api/biz/navigation/setWindowBig.js +2 -7
- package/libs/api/biz/navigation/tencentMeeting.js +1 -7
- package/libs/api/biz/navigation/tencentMeetingBegin.js +1 -7
- package/libs/api/biz/navigation/updateExpandTitle.js +1 -7
- package/libs/api/biz/telephone/call.js +1 -7
- package/libs/api/biz/telephone/showCallMenu.js +1 -7
- package/libs/api/biz/util/addAppToNav.js +1 -7
- package/libs/api/biz/util/assistantCreate.js +1 -7
- package/libs/api/biz/util/authFinish.js +1 -7
- package/libs/api/biz/util/authStart.js +1 -7
- package/libs/api/biz/util/chosen.js +1 -7
- package/libs/api/biz/util/clipboardFileUpload.js +1 -7
- package/libs/api/biz/util/closeWindow.js +1 -7
- package/libs/api/biz/util/complain.js +1 -7
- package/libs/api/biz/util/copy.d.ts +11 -0
- package/libs/api/biz/util/copy.js +26 -0
- package/libs/api/biz/util/createModifySchedule.js +1 -7
- package/libs/api/biz/util/datepicker.js +1 -7
- package/libs/api/biz/util/datetimepicker.js +1 -7
- package/libs/api/biz/util/disableScreenCapture.js +1 -7
- package/libs/api/biz/util/downloadFile.js +1 -7
- package/libs/api/biz/util/entergroupCheck.js +1 -7
- package/libs/api/biz/util/externalLinkPreviewFile.js +1 -7
- package/libs/api/biz/util/feedback.js +1 -7
- package/libs/api/biz/util/getConfig.d.ts +13 -0
- package/libs/api/biz/util/getConfig.js +26 -0
- package/libs/api/biz/util/getSingleWebviewData.js +1 -7
- package/libs/api/biz/util/getTogetherConfig.js +1 -7
- package/libs/api/biz/util/getToken.js +1 -7
- package/libs/api/biz/util/injectScript.js +1 -7
- package/libs/api/biz/util/invoice.js +2 -7
- package/libs/api/biz/util/knowledgeBaseSelect.js +10 -8
- package/libs/api/biz/util/knowledgeSelectParams.d.ts +14 -0
- package/libs/api/biz/util/knowledgeSelectParams.js +26 -0
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +11 -0
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +26 -0
- package/libs/api/biz/util/lorebaseShowList.d.ts +11 -0
- package/libs/api/biz/util/lorebaseShowList.js +26 -0
- package/libs/api/biz/util/mediaFileUpload.js +2 -7
- package/libs/api/biz/util/onlineDocmentOpenTeamChat.js +1 -7
- package/libs/api/biz/util/open.js +1 -7
- package/libs/api/biz/util/openFutureGroup.js +1 -7
- package/libs/api/biz/util/openLink.js +1 -7
- package/libs/api/biz/util/openMediaFileDialog.js +2 -7
- package/libs/api/biz/util/openPublish.d.ts +22 -0
- package/libs/api/biz/util/openPublish.js +22 -0
- package/libs/api/biz/util/openSingleWebview.js +1 -7
- package/libs/api/biz/util/openSlidePanel.js +1 -7
- package/libs/api/biz/util/openTalYoungToTopic.js +2 -7
- package/libs/api/biz/util/openTogetherEyeWebview.js +1 -7
- package/libs/api/biz/util/openUserSchedule.js +1 -7
- package/libs/api/biz/util/openVideoPlayer.js +1 -7
- package/libs/api/biz/util/previewFile.js +1 -7
- package/libs/api/biz/util/previewImage.js +1 -7
- package/libs/api/biz/util/proxy.js +1 -7
- package/libs/api/biz/util/pushWorkMsg.js +2 -7
- package/libs/api/biz/util/remind.js +1 -7
- package/libs/api/biz/util/resetSessionUnread.js +1 -7
- package/libs/api/biz/util/rouseApp.js +2 -7
- package/libs/api/biz/util/savePic.js +1 -7
- package/libs/api/biz/util/scan.js +1 -7
- package/libs/api/biz/util/screen.js +1 -7
- package/libs/api/biz/util/selectDepartment.js +1 -7
- package/libs/api/biz/util/share.js +1 -7
- package/libs/api/biz/util/takePicture.js +1 -7
- package/libs/api/biz/util/topicEvent.js +1 -7
- package/libs/api/biz/util/uploadAttachment.js +1 -7
- package/libs/api/biz/util/weeklyRead.js +1 -7
- package/libs/api/biz/util/yachEvent.js +1 -7
- package/libs/api/biz/util/zfbAuth.js +1 -7
- package/libs/api/biz/webViewMessage/send.js +1 -7
- package/libs/api/device/audio/download.js +1 -7
- package/libs/api/device/audio/onPlayEnd.js +1 -7
- package/libs/api/device/audio/onRecordEnd.js +1 -7
- package/libs/api/device/audio/onRecordEnd_v2.js +1 -7
- package/libs/api/device/audio/pause.js +1 -7
- package/libs/api/device/audio/play.js +1 -7
- package/libs/api/device/audio/resume.js +1 -7
- package/libs/api/device/audio/startRecord.js +1 -7
- package/libs/api/device/audio/startRecord_v2.js +1 -7
- package/libs/api/device/audio/stop.js +1 -7
- package/libs/api/device/audio/stopRecord.js +1 -7
- package/libs/api/device/audio/stopRecord_v2.js +1 -7
- package/libs/api/device/base/checkStepPermission.js +1 -7
- package/libs/api/device/base/getPhoneInfo.js +1 -7
- package/libs/api/device/base/getUUID.js +1 -7
- package/libs/api/device/connection/getNetworkType.js +1 -7
- package/libs/api/device/connection/isAtTal.js +3 -9
- package/libs/api/device/geolocation/get.js +1 -7
- package/libs/api/device/geolocation/getSwitch.js +1 -7
- package/libs/api/device/notification/actionSheet.js +1 -7
- package/libs/api/device/notification/alert.js +1 -7
- package/libs/api/device/notification/confirm.js +1 -7
- package/libs/api/device/notification/hidePreloader.js +2 -10
- package/libs/api/device/notification/showPreloader.js +2 -10
- package/libs/api/device/notification/toast.js +1 -7
- package/libs/api/device/notification/vibrate.js +1 -7
- package/libs/api/device/system/getLang.js +1 -7
- package/libs/api/device/system/setLight.js +1 -7
- package/libs/api/initAPI.js +4 -13
- package/libs/api/primary/createTab.js +1 -7
- package/libs/api/primary/exitFullScreen.js +1 -7
- package/libs/api/primary/fullScreen.js +1 -7
- package/libs/api/primary/updateTab.d.ts +9 -0
- package/libs/api/primary/updateTab.js +22 -0
- package/libs/api/primary/weeklyShare.js +1 -7
- package/libs/api/runtime/permission/requestAuthCode.js +1 -7
- package/libs/api/ui/pullToRefresh/disable.js +1 -7
- package/libs/api/ui/pullToRefresh/enable.js +1 -7
- package/libs/api/ui/pullToRefresh/stop.js +1 -7
- package/libs/api/ui/webViewBounce/disable.js +1 -7
- package/libs/api/util/domainStorage/getItem.js +1 -7
- package/libs/api/util/domainStorage/removeItem.js +1 -7
- package/libs/api/util/domainStorage/setItem.js +1 -7
- package/libs/api/util/tool/flushLog.js +1 -7
- package/libs/api/util/tool/log.js +1 -7
- package/libs/index.d.ts +13 -1
- package/libs/index.js +316 -536
- package/libs/lib/bridge/index.js +6 -13
- package/libs/lib/bridge/mobile.js +26 -50
- package/libs/lib/bridge/pc.js +16 -37
- package/libs/lib/helper/apiHelper.js +1 -7
- package/libs/lib/helper/codeMap.js +1 -7
- package/libs/lib/helper/event.js +8 -28
- package/libs/lib/helper/pcIframe.d.ts +8 -25
- package/libs/lib/helper/pcIframe.js +47 -61
- package/libs/lib/index.js +9 -33
- package/libs/lib/sdk/index.js +17 -47
- package/libs/lib/sdk/sdk.typings.d.ts +1 -0
- package/libs/lib/sdk/sdk.typings.js +0 -4
- package/libs/utils/bpitLog.js +4 -16
- package/libs/utils/compareVersions.js +32 -77
- package/libs/utils/console.js +2 -18
- package/libs/utils/env.js +15 -22
- package/libs/utils/index.js +8 -21
- package/package.json +4 -6
- package/dist/yach_jssdk_4.4.3.js +0 -1
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
|
-
exports.showPreloader = showPreloader;
|
|
12
8
|
exports.showCustomOverlayContent = showCustomOverlayContent;
|
|
13
|
-
|
|
9
|
+
exports.showPreloader = showPreloader;
|
|
14
10
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
15
|
-
|
|
16
11
|
var apiName = 'device.notification.showPreloader';
|
|
17
12
|
var ios = {
|
|
18
13
|
vs: '0.0.0'
|
|
@@ -28,16 +23,13 @@ var platform = {
|
|
|
28
23
|
android: android,
|
|
29
24
|
pc: pc
|
|
30
25
|
};
|
|
31
|
-
|
|
32
26
|
function showPreloader(params) {
|
|
33
27
|
(0, _initAPI["default"])(apiName, {
|
|
34
28
|
params: params,
|
|
35
29
|
platform: platform
|
|
36
30
|
});
|
|
37
31
|
}
|
|
38
|
-
|
|
39
32
|
var apiNameCustom = 'device.notification.showCustomOverlayContent';
|
|
40
|
-
|
|
41
33
|
function showCustomOverlayContent(params) {
|
|
42
34
|
(0, _initAPI["default"])(apiNameCustom, {
|
|
43
35
|
params: params,
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.toast = toast;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'device.notification.toast';
|
|
16
|
-
|
|
17
11
|
function toast(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.vibrate = vibrate;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'device.notification.vibrate';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function vibrate(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.getLang = getLang;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'device.system.getLang';
|
|
16
|
-
|
|
17
11
|
function getLang(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.setLight = setLight;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var ios = {
|
|
16
11
|
vs: '0.0.0'
|
|
17
12
|
};
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
android: android
|
|
24
19
|
};
|
|
25
20
|
var apiName = 'device.system.setLight';
|
|
26
|
-
|
|
27
21
|
function setLight(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
package/libs/api/initAPI.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
|
|
5
4
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
|
-
|
|
9
7
|
exports["default"] = void 0;
|
|
10
|
-
|
|
11
8
|
var _lib = require("../lib");
|
|
12
|
-
|
|
13
9
|
var defaultVersion = '0.0.0';
|
|
14
10
|
var defaultPlatform = {
|
|
15
11
|
ios: {
|
|
@@ -22,17 +18,12 @@ var defaultPlatform = {
|
|
|
22
18
|
vs: defaultVersion
|
|
23
19
|
}
|
|
24
20
|
};
|
|
25
|
-
|
|
26
21
|
function initAPI(apiName, config) {
|
|
27
22
|
var _config$params = config.params,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
params = _config$params === void 0 ? {} : _config$params,
|
|
24
|
+
_config$platform = config.platform,
|
|
25
|
+
platform = _config$platform === void 0 ? defaultPlatform : _config$platform;
|
|
32
26
|
_lib.yachSdk.setAPI(apiName, platform);
|
|
33
|
-
|
|
34
27
|
_lib.yachSdk.invokeAPI(apiName, params);
|
|
35
28
|
}
|
|
36
|
-
|
|
37
|
-
var _default = initAPI;
|
|
38
|
-
exports["default"] = _default;
|
|
29
|
+
var _default = exports["default"] = initAPI;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.createTab = createTab;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'primary.createTab';
|
|
16
11
|
var pc = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -19,7 +14,6 @@ var pc = {
|
|
|
19
14
|
var platform = {
|
|
20
15
|
pc: pc
|
|
21
16
|
};
|
|
22
|
-
|
|
23
17
|
function createTab(params) {
|
|
24
18
|
(0, _initAPI["default"])(apiName, {
|
|
25
19
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.exitFullScreen = exitFullScreen;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'primary.exitFullScreen';
|
|
16
11
|
var pc = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -19,7 +14,6 @@ var pc = {
|
|
|
19
14
|
var platform = {
|
|
20
15
|
pc: pc
|
|
21
16
|
};
|
|
22
|
-
|
|
23
17
|
function exitFullScreen(params) {
|
|
24
18
|
(0, _initAPI["default"])(apiName, {
|
|
25
19
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.fullScreen = fullScreen;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'primary.fullScreen';
|
|
16
11
|
var pc = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -19,7 +14,6 @@ var pc = {
|
|
|
19
14
|
var platform = {
|
|
20
15
|
pc: pc
|
|
21
16
|
};
|
|
22
|
-
|
|
23
17
|
function fullScreen(params) {
|
|
24
18
|
(0, _initAPI["default"])(apiName, {
|
|
25
19
|
params: params,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IError } from '../common.typings';
|
|
2
|
+
export interface IPrimaryUpdateTab {
|
|
3
|
+
/** 应用标题 */
|
|
4
|
+
title?: string;
|
|
5
|
+
onSuccess?: () => void;
|
|
6
|
+
onFail?: (err: IError) => void;
|
|
7
|
+
}
|
|
8
|
+
declare function updateTab(params: IPrimaryUpdateTab): void;
|
|
9
|
+
export { updateTab };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.updateTab = updateTab;
|
|
9
|
+
var _initAPI = _interopRequireDefault(require("../initAPI"));
|
|
10
|
+
var apiName = 'primary.updateTab';
|
|
11
|
+
var pc = {
|
|
12
|
+
vs: '1.9.12'
|
|
13
|
+
};
|
|
14
|
+
var platform = {
|
|
15
|
+
pc: pc
|
|
16
|
+
};
|
|
17
|
+
function updateTab(params) {
|
|
18
|
+
(0, _initAPI["default"])(apiName, {
|
|
19
|
+
params: params,
|
|
20
|
+
platform: platform
|
|
21
|
+
});
|
|
22
|
+
}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.weeklyShare = weeklyShare;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'primary.weeklyShare';
|
|
16
11
|
var pc = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -19,7 +14,6 @@ var pc = {
|
|
|
19
14
|
var platform = {
|
|
20
15
|
pc: pc
|
|
21
16
|
};
|
|
22
|
-
|
|
23
17
|
function weeklyShare(params) {
|
|
24
18
|
(0, _initAPI["default"])(apiName, {
|
|
25
19
|
params: params,
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.requestAuthCode = requestAuthCode;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'runtime.permission.requestAuthCode';
|
|
16
|
-
|
|
17
11
|
function requestAuthCode(params) {
|
|
18
12
|
(0, _initAPI["default"])(apiName, {
|
|
19
13
|
params: params
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.disable = disable;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'ui.pullToRefresh.disable';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function disable(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.enable = enable;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'ui.pullToRefresh.enable';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function enable(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.stop = stop;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'ui.pullToRefresh.stop';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function stop(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.disable = disable;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'ui.webViewBounce.disable';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -19,7 +14,6 @@ var ios = {
|
|
|
19
14
|
var platform = {
|
|
20
15
|
ios: ios
|
|
21
16
|
};
|
|
22
|
-
|
|
23
17
|
function disable(params) {
|
|
24
18
|
(0, _initAPI["default"])(apiName, {
|
|
25
19
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.getItem = getItem;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'util.domainStorage.getItem';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function getItem(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.removeItem = removeItem;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'util.domainStorage.removeItem';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function removeItem(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.setItem = setItem;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'util.domainStorage.setItem';
|
|
16
11
|
var ios = {
|
|
17
12
|
vs: '0.0.0'
|
|
@@ -23,7 +18,6 @@ var platform = {
|
|
|
23
18
|
ios: ios,
|
|
24
19
|
android: android
|
|
25
20
|
};
|
|
26
|
-
|
|
27
21
|
function setItem(params) {
|
|
28
22
|
(0, _initAPI["default"])(apiName, {
|
|
29
23
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.flushLog = flushLog;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'util.tool.flushLog';
|
|
16
11
|
var pc = {
|
|
17
12
|
vs: '1.7.0'
|
|
@@ -19,7 +14,6 @@ var pc = {
|
|
|
19
14
|
var platform = {
|
|
20
15
|
pc: pc
|
|
21
16
|
};
|
|
22
|
-
|
|
23
17
|
function flushLog(params) {
|
|
24
18
|
(0, _initAPI["default"])(apiName, {
|
|
25
19
|
params: params,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
7
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
exports.writeLog = writeLog;
|
|
12
|
-
|
|
13
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
-
|
|
15
10
|
var apiName = 'util.tool.writeLog';
|
|
16
11
|
var pc = {
|
|
17
12
|
vs: '1.7.0'
|
|
@@ -19,7 +14,6 @@ var pc = {
|
|
|
19
14
|
var platform = {
|
|
20
15
|
pc: pc
|
|
21
16
|
};
|
|
22
|
-
|
|
23
17
|
function writeLog(params) {
|
|
24
18
|
(0, _initAPI["default"])(apiName, {
|
|
25
19
|
params: params,
|
package/libs/index.d.ts
CHANGED
|
@@ -51,6 +51,11 @@ import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
|
51
51
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
52
52
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
53
53
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
54
|
+
import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
|
|
55
|
+
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
56
|
+
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
57
|
+
import { copy } from './api/biz/util/copy';
|
|
58
|
+
import { openPublish } from './api/biz/util/openPublish';
|
|
54
59
|
/**navigation*/
|
|
55
60
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
56
61
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -80,6 +85,7 @@ import { openTeamChat } from './api/biz/chat/openTeamChat';
|
|
|
80
85
|
import { openSquad } from './api/biz/chat/openSquad';
|
|
81
86
|
import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
|
|
82
87
|
import { createTab } from './api/primary/createTab';
|
|
88
|
+
import { updateTab } from './api/primary/updateTab';
|
|
83
89
|
import { weeklyShare } from './api/primary/weeklyShare';
|
|
84
90
|
import { fullScreen } from './api/primary/fullScreen';
|
|
85
91
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
@@ -131,7 +137,7 @@ import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
|
131
137
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
132
138
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
133
139
|
declare const version: string, sdkVersion: string, env: import("./lib/sdk/sdk.typings").IENV, platform: import("./lib/sdk/sdk.typings").ENV_ENUM, platformV2: import("./lib/sdk/sdk.typings").PlatformV2Props, config: (configParams: import("./lib/sdk/sdk.typings").IConfigParams) => void, ready: (readyCallback: () => void) => void, error: (callback: (err: any) => void) => void, on: (methodName: string, listener: (e: any) => void) => void, off: (methodName: string, listener: (e: any) => void) => void;
|
|
134
|
-
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, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, 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, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, capturePage, };
|
|
140
|
+
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, updateTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, 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, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, knowledgeSelectParams, lorebaseShowList, lorebaseRefreshNodeWebview, openPublish, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage, };
|
|
135
141
|
declare const _default: {
|
|
136
142
|
version: string;
|
|
137
143
|
sdkVersion: string;
|
|
@@ -196,6 +202,11 @@ declare const _default: {
|
|
|
196
202
|
disableScreenCapture: typeof disableScreenCapture;
|
|
197
203
|
addAppToNav: typeof addAppToNav;
|
|
198
204
|
knowledgeBaseSelect: typeof knowledgeBaseSelect;
|
|
205
|
+
knowledgeSelectParams: typeof knowledgeSelectParams;
|
|
206
|
+
lorebaseShowList: typeof lorebaseShowList;
|
|
207
|
+
lorebaseRefreshNodeWebview: typeof lorebaseRefreshNodeWebview;
|
|
208
|
+
copy: typeof copy;
|
|
209
|
+
openPublish: typeof openPublish;
|
|
199
210
|
capturePage: typeof capturePage;
|
|
200
211
|
};
|
|
201
212
|
telephone: {
|
|
@@ -249,6 +260,7 @@ declare const _default: {
|
|
|
249
260
|
};
|
|
250
261
|
primary: {
|
|
251
262
|
createTab: typeof createTab;
|
|
263
|
+
updateTab: typeof updateTab;
|
|
252
264
|
weeklyShare: typeof weeklyShare;
|
|
253
265
|
fullScreen: typeof fullScreen;
|
|
254
266
|
exitFullScreen: typeof exitFullScreen;
|