yach.open.jssdk 4.4.10-beta.1 → 4.4.10-beta.2
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.3.3.js +1 -0
- package/es/api/biz/navigation/close.d.ts +0 -1
- package/es/api/biz/navigation/tencentMeeting.d.ts +0 -1
- package/es/api/device/notification/hidePreloader.d.ts +1 -6
- package/es/api/device/notification/hidePreloader.js +2 -15
- package/es/api/device/notification/showPreloader.d.ts +1 -10
- package/es/api/device/notification/showPreloader.js +2 -15
- package/es/index.d.ts +3 -45
- package/es/index.js +5 -48
- package/es/lib/bridge/mobile.js +20 -61
- package/es/lib/bridge/pc.js +8 -50
- package/es/lib/helper/pcIframe.d.ts +25 -8
- package/es/lib/helper/pcIframe.js +8 -34
- package/es/lib/index.js +2 -2
- package/es/lib/sdk/index.js +4 -13
- package/es/lib/sdk/sdk.typings.d.ts +0 -2
- package/es/utils/console.d.ts +1 -1
- package/es/utils/console.js +2 -2
- package/es/utils/env.js +3 -7
- package/es/utils/index.js +1 -1
- package/libs/api/biz/navigation/close.d.ts +0 -1
- package/libs/api/biz/navigation/tencentMeeting.d.ts +0 -1
- package/libs/api/device/notification/hidePreloader.d.ts +1 -6
- package/libs/api/device/notification/hidePreloader.js +1 -15
- package/libs/api/device/notification/showPreloader.d.ts +1 -10
- package/libs/api/device/notification/showPreloader.js +1 -15
- package/libs/api/initAPI.js +2 -1
- package/libs/index.d.ts +3 -45
- package/libs/index.js +25 -196
- package/libs/lib/bridge/mobile.js +25 -64
- package/libs/lib/bridge/pc.js +13 -53
- package/libs/lib/helper/event.js +2 -1
- package/libs/lib/helper/pcIframe.d.ts +25 -8
- package/libs/lib/helper/pcIframe.js +10 -35
- package/libs/lib/index.js +4 -3
- package/libs/lib/sdk/index.js +5 -13
- package/libs/lib/sdk/sdk.typings.d.ts +0 -2
- package/libs/lib/sdk/sdk.typings.js +1 -0
- package/libs/utils/compareVersions.js +8 -4
- package/libs/utils/console.d.ts +1 -1
- package/libs/utils/console.js +2 -2
- package/libs/utils/env.js +3 -7
- package/libs/utils/index.js +1 -1
- package/package.json +3 -1
- package/dist/yach_jssdk_4.4.10-beta.1.js +0 -1
- package/es/api/biz/util/addAppToNav.d.ts +0 -9
- package/es/api/biz/util/addAppToNav.js +0 -23
- package/es/api/biz/util/copy.d.ts +0 -11
- package/es/api/biz/util/copy.js +0 -19
- package/es/api/biz/util/focus.d.ts +0 -7
- package/es/api/biz/util/focus.js +0 -23
- package/es/api/biz/util/getConfig.d.ts +0 -13
- package/es/api/biz/util/getConfig.js +0 -19
- package/es/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/es/api/biz/util/knowledgeBaseSelect.js +0 -23
- package/es/api/biz/util/knowledgeSelectParams.d.ts +0 -14
- package/es/api/biz/util/knowledgeSelectParams.js +0 -19
- package/es/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/es/api/biz/util/lorebaseRefreshNodeWebview.js +0 -19
- package/es/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/es/api/biz/util/lorebaseShowList.js +0 -19
- package/es/api/biz/util/mediaFileUploadV2.d.ts +0 -26
- package/es/api/biz/util/mediaFileUploadV2.js +0 -15
- package/es/api/biz/util/openAudioPlayer.d.ts +0 -17
- package/es/api/biz/util/openAudioPlayer.js +0 -23
- package/es/api/biz/util/openFutureGroup.d.ts +0 -10
- package/es/api/biz/util/openFutureGroup.js +0 -23
- package/es/api/biz/util/openMediaFileDialogV2.d.ts +0 -23
- package/es/api/biz/util/openMediaFileDialogV2.js +0 -16
- package/es/api/biz/util/openPublish.d.ts +0 -22
- package/es/api/biz/util/openPublish.js +0 -15
- package/es/api/biz/util/screen.d.ts +0 -15
- package/es/api/biz/util/screen.js +0 -15
- package/es/api/biz/util/topicEvent.d.ts +0 -13
- package/es/api/biz/util/topicEvent.js +0 -27
- package/es/api/biz/util/weeklyRead.d.ts +0 -5
- package/es/api/biz/util/weeklyRead.js +0 -23
- package/es/api/device/connection/startNetworkChangeWatch.d.ts +0 -8
- package/es/api/device/connection/startNetworkChangeWatch.js +0 -23
- package/es/api/primary/updateTab.d.ts +0 -9
- package/es/api/primary/updateTab.js +0 -15
- package/es/api/private/nativeEvent.d.ts +0 -13
- package/es/api/private/nativeEvent.js +0 -26
- package/libs/api/biz/util/addAppToNav.d.ts +0 -9
- package/libs/api/biz/util/addAppToNav.js +0 -30
- package/libs/api/biz/util/copy.d.ts +0 -11
- package/libs/api/biz/util/copy.js +0 -26
- package/libs/api/biz/util/focus.d.ts +0 -7
- package/libs/api/biz/util/focus.js +0 -30
- package/libs/api/biz/util/getConfig.d.ts +0 -13
- package/libs/api/biz/util/getConfig.js +0 -26
- package/libs/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
- package/libs/api/biz/util/knowledgeBaseSelect.js +0 -30
- package/libs/api/biz/util/knowledgeSelectParams.d.ts +0 -14
- package/libs/api/biz/util/knowledgeSelectParams.js +0 -26
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.d.ts +0 -11
- package/libs/api/biz/util/lorebaseRefreshNodeWebview.js +0 -26
- package/libs/api/biz/util/lorebaseShowList.d.ts +0 -11
- package/libs/api/biz/util/lorebaseShowList.js +0 -26
- package/libs/api/biz/util/mediaFileUploadV2.d.ts +0 -26
- package/libs/api/biz/util/mediaFileUploadV2.js +0 -23
- package/libs/api/biz/util/openAudioPlayer.d.ts +0 -17
- package/libs/api/biz/util/openAudioPlayer.js +0 -30
- package/libs/api/biz/util/openFutureGroup.d.ts +0 -10
- package/libs/api/biz/util/openFutureGroup.js +0 -30
- package/libs/api/biz/util/openMediaFileDialogV2.d.ts +0 -23
- package/libs/api/biz/util/openMediaFileDialogV2.js +0 -24
- package/libs/api/biz/util/openPublish.d.ts +0 -22
- package/libs/api/biz/util/openPublish.js +0 -22
- package/libs/api/biz/util/screen.d.ts +0 -15
- package/libs/api/biz/util/screen.js +0 -22
- package/libs/api/biz/util/topicEvent.d.ts +0 -13
- package/libs/api/biz/util/topicEvent.js +0 -34
- package/libs/api/biz/util/weeklyRead.d.ts +0 -5
- package/libs/api/biz/util/weeklyRead.js +0 -30
- package/libs/api/device/connection/startNetworkChangeWatch.d.ts +0 -8
- package/libs/api/device/connection/startNetworkChangeWatch.js +0 -30
- package/libs/api/primary/updateTab.d.ts +0 -9
- package/libs/api/primary/updateTab.js +0 -22
- package/libs/api/private/nativeEvent.d.ts +0 -13
- package/libs/api/private/nativeEvent.js +0 -33
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.yy=function(n){var e={};function t(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=n,t.c=e,t.d=function(n,e,o){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:o})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)t.d(o,i,function(e){return n[e]}.bind(null,i));return o},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=1)}([function(n){n.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.3.3","description":"","module":"./es/index.js","main":"./libs/index.js","files":["es","libs","dist"],"sideEffects":false,"scripts":{"start":"yach del es && tsc -w","build":"node ./tools/run compile","prepublish":"npm run upload-cdn","postpublish":"yach open https://www.npmjs.com/package/yach.open.jssdk","upload-cdn":"npm run build && node ./upload/upload.js","lint":"eslint \'src/**/*.{js,ts}\'","lint-fix":"eslint --fix \'src/**/*.{js,ts}\'","p:beta":"npm publish --tag=beta --access public"},"dependencies":{"@babel/runtime-corejs3":"^7.10.3"},"authors":[{"name":"ostwind","email":"9837438@qq.com"}],"license":"ISC","devDependencies":{"@babel/core":"^7.10.2","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.5","@types/node":"^13.9.8","@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","babel-loader":"^8.1.0","colorful":"^2.1.0","commander":"^5.1.0","dingtalk-jsapi":"^2.10.2","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-concat":"^2.6.1","gulp-typescript":"^6.0.0-alpha.1","gulp-uglify":"^3.0.2","gulp-umd":"^2.0.0","gulp-util":"^3.0.8","lint-staged":"^10.0.9","prettier":"^2.0.2","qiao.ext.cos":"^0.1.2","ts-loader":"^7.0.1","typescript":"^3.8.3","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-merge":"^4.2.2","yach.open.cli":"^1.0.1"}}')},function(n,e,t){"use strict";var o;function i(){var n="undefined"!=typeof navigator?navigator.userAgent:"",e=/Yach/i.test(n),t=/iPhone|iPad|iPod|iOS/i.test(n)&&e,i=/Android/i.test(n)&&e,r=/YachPc/i.test(n),a=/iPad/i.test(n)&&e,s=/iPhone/i.test(n)&&e,c=o.notInYach;return t&&(c=o.ios),i&&(c=o.android),r&&(c=o.pc),{platform:c,platformV2:{inYach:e,inIOS:t,inAndroid:i,inPC:r,inIpad:a,inIPhone:s},version:((n.match(/Yach\/[a-zA-Z0-9.-]+/)||[])[0]||"").split("/")[1]||"",language:"undefined"!=typeof navigator?navigator.language:"*"}}function r(n){if(n)if(n.group)if(n.project)if(n.hasOwnProperty("env"))if(n.hasOwnProperty("version")){var e=["https://es.zhiyinlou.com/log.js?"];e.push("group="+n.group),e.push("&project="+n.project),e.push("&env="+n.env),e.push("&version="+n.version),e.push("&method="+n.method),n.yachid&&e.push("&yachid="+n.yachid),n.workcode&&e.push("&workcode="+n.workcode),n.timestamp&&e.push("×tamp="+n.timestamp),n.errorcode&&e.push("&errorcode="+n.errorcode),n.message&&e.push("&message="+n.message),n.api&&n.time&&(e.push("&api="+n.api),e.push("&load_time="+n.time));var t,o,i=e.join("");t=i,(o=document.createElement("script")).type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,document.getElementsByTagName("head")[0].removeChild(o))}:o.onload=function(){document.getElementsByTagName("head")[0].removeChild(o)},o.src=t,document.getElementsByTagName("head")[0].appendChild(o),"online"!=n.env&&console.log(i)}else console.log("bpit error: need options.version");else console.log("bpit error: need options.env");else console.log("bpit error: need options.project");else console.log("bpit error: need options.group");else console.log("bpit error: need options")}t.r(e),t.d(e,"version",(function(){return Eo})),t.d(e,"sdkVersion",(function(){return Fo})),t.d(e,"env",(function(){return Do})),t.d(e,"platform",(function(){return jo})),t.d(e,"platformV2",(function(){return Vo})),t.d(e,"config",(function(){return Wo})),t.d(e,"ready",(function(){return Ro})),t.d(e,"error",(function(){return _o})),t.d(e,"on",(function(){return Bo})),t.d(e,"off",(function(){return Oo})),t.d(e,"openLink",(function(){return B})),t.d(e,"feedback",(function(){return O})),t.d(e,"open",(function(){return L})),t.d(e,"openSlidePanel",(function(){return U})),t.d(e,"share",(function(){return q})),t.d(e,"previewFile",(function(){return Y})),t.d(e,"previewImage",(function(){return J})),t.d(e,"downloadFile",(function(){return K})),t.d(e,"uploadAttachment",(function(){return G})),t.d(e,"clipboardFileUpload",(function(){return $})),t.d(e,"proxy",(function(){return X})),t.d(e,"datepicker",(function(){return Q})),t.d(e,"scan",(function(){return on})),t.d(e,"chosen",(function(){return dn})),t.d(e,"openSingleWebview",(function(){return ln})),t.d(e,"getSingleWebviewData",(function(){return fn})),t.d(e,"injectScript",(function(){return vn})),t.d(e,"closeWindow",(function(){return gn})),t.d(e,"showCallMenu",(function(){return ro})),t.d(e,"call",(function(){return so})),t.d(e,"setIcon",(function(){return pe})),t.d(e,"setTitle",(function(){return le})),t.d(e,"setMenu",(function(){return me})),t.d(e,"close",(function(){return ge})),t.d(e,"replacePage",(function(){return he})),t.d(e,"quit",(function(){return we})),t.d(e,"setRight",(function(){return Pe})),t.d(e,"setTitleExpandIcon",(function(){return Ie})),t.d(e,"updateExpandTitle",(function(){return Te})),t.d(e,"setLeft",(function(){return xe})),t.d(e,"goBack",(function(){return Ee})),t.d(e,"complexPicker",(function(){return Be})),t.d(e,"departmentsPicker",(function(){return Oe})),t.d(e,"groupComplexPicker",(function(){return Le})),t.d(e,"chooseConversationByCorpId",(function(){return Ne})),t.d(e,"pickConversation",(function(){return He})),t.d(e,"openSingleChat",(function(){return qe})),t.d(e,"openTeamChat",(function(){return Ye})),t.d(e,"openSquad",(function(){return Je})),t.d(e,"sendP2PMsg",(function(){return Ke})),t.d(e,"mapView",(function(){return an})),t.d(e,"multipointView",(function(){return cn})),t.d(e,"requestAuthCode",(function(){return ot})),t.d(e,"createTab",(function(){return $e})),t.d(e,"weeklyShare",(function(){return Ze})),t.d(e,"fullScreen",(function(){return nt})),t.d(e,"exitFullScreen",(function(){return tt})),t.d(e,"showPreloader",(function(){return rt})),t.d(e,"hidePreloader",(function(){return st})),t.d(e,"vibrate",(function(){return ut})),t.d(e,"toast",(function(){return dt})),t.d(e,"alert",(function(){return gt})),t.d(e,"confirm",(function(){return bt})),t.d(e,"getPhoneInfo",(function(){return vt})),t.d(e,"getUUID",(function(){return Jt})),t.d(e,"checkStepPermission",(function(){return Gt})),t.d(e,"getGeolocation",(function(){return yt})),t.d(e,"getGeolocationSwitch",(function(){return Pt})),t.d(e,"getLang",(function(){return St})),t.d(e,"startRecord",(function(){return It})),t.d(e,"stopRecord",(function(){return Ct})),t.d(e,"onRecordEnd",(function(){return xt})),t.d(e,"downloadAudio",(function(){return Et})),t.d(e,"playAudio",(function(){return Dt})),t.d(e,"pauseAudio",(function(){return Vt})),t.d(e,"stopAudio",(function(){return Rt})),t.d(e,"onPlayEnd",(function(){return Bt})),t.d(e,"resumeAudio",(function(){return Lt})),t.d(e,"getNetworkType",(function(){return Ut})),t.d(e,"isAtTal",(function(){return qt})),t.d(e,"webViewBounceDisable",(function(){return uo})),t.d(e,"pullToRefreshEnable",(function(){return lo})),t.d(e,"pullToRefreshStop",(function(){return vo})),t.d(e,"pullToRefreshDisable",(function(){return go})),t.d(e,"getItem",(function(){return bo})),t.d(e,"setItem",(function(){return yo})),t.d(e,"removeItem",(function(){return Po})),t.d(e,"writeLog",(function(){return zo})),t.d(e,"flushLog",(function(){return To})),t.d(e,"remind",(function(){return bn})),t.d(e,"takePicture",(function(){return wn})),t.d(e,"datetimepicker",(function(){return en})),t.d(e,"actionSheet",(function(){return lt})),t.d(e,"webViewMessageSend",(function(){return Mo})),t.d(e,"talYoungFilesUpload",(function(){return xo})),t.d(e,"openVideoPlayer",(function(){return kn})),t.d(e,"openMediaFileDialog",(function(){return Pn})),t.d(e,"mediaFileUpload",(function(){return Sn})),t.d(e,"invoice",(function(){return zn})),t.d(e,"pushWorkMsg",(function(){return In})),t.d(e,"openTalYoungToTopic",(function(){return Tn})),t.d(e,"getToken",(function(){return Mn})),t.d(e,"authStart",(function(){return An})),t.d(e,"authFinish",(function(){return Fn})),t.d(e,"assistantCreate",(function(){return jn})),t.d(e,"yachEvent",(function(){return Wn})),t.d(e,"openTogetherEyeWebview",(function(){return _n})),t.d(e,"getTogetherConfig",(function(){return On})),t.d(e,"rouseApp",(function(){return Ln})),t.d(e,"externalLinkPreviewFile",(function(){return Nn})),t.d(e,"savePic",(function(){return Yn})),t.d(e,"zfbAuth",(function(){return Hn})),t.d(e,"complain",(function(){return Jn})),t.d(e,"onRecordEnd_v2",(function(){return Xt})),t.d(e,"startRecord_v2",(function(){return Qt})),t.d(e,"stopRecord_v2",(function(){return eo})),t.d(e,"selectDepartment",(function(){return Kn})),t.d(e,"setWindowBig",(function(){return De})),t.d(e,"tencentMeeting",(function(){return je})),t.d(e,"tencentMeetingBegin",(function(){return Ve})),t.d(e,"createModifySchedule",(function(){return $n})),t.d(e,"onlineDocmentOpenTeamChat",(function(){return ne})),t.d(e,"entergroupCheck",(function(){return te})),t.d(e,"resetSessionUnread",(function(){return ie})),t.d(e,"setLight",(function(){return oo})),t.d(e,"openUserSchedule",(function(){return Zn})),t.d(e,"disableScreenCapture",(function(){return ae})),t.d(e,"setPanGestureEnable",(function(){return _e})),function(n){n.pc="pc",n.android="android",n.ios="ios",n.notInYach="notInYach"}(o||(o={}));var a=function(){return(a=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};function s(n){var e=i().version,t=Date.now(),o=a({group:"yach",project:"yach_31_jssdk",env:"test",version:e,timestamp:t},n);console.log("jssdk 项目 bpit 上报数据:",o),r(o)}var c=function(n,e){var t=d(n),o=d(e),i=t.pop(),r=o.pop(),a=v(t,o);return 0!==a?a:i&&r?v(i.split("."),r.split(".")):i||r?i?-1:1:0},u=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,d=function(n){if("string"!=typeof n)throw new TypeError("Invalid argument expected string");var e=n.match(u);if(!e)throw new Error("Invalid argument not valid semver ('"+n+"' received)");return e.shift(),e},p=function(n){return"*"===n||"x"===n||"X"===n},l=function(n){var e=parseInt(n,10);return isNaN(e)?n:e},f=function(n,e){if(p(n)||p(e))return 0;var t=function(n,e){return typeof n!=typeof e?[String(n),String(e)]:[n,e]}(l(n),l(e)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},v=function(n,e){for(var t=0;t<Math.max(n.length,e.length);t++){var o=f(n[t]||"0",e[t]||"0");if(0!==o)return o}return 0},m={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},g=(Object.keys(m),t(0)),h=function(){function n(n){var e=this;this.invokeAPIConfigMapByMethod={},this.configJsApiList=[],this.platformConfigMap={},this.hadConfig=!1,this.bridgeInitFnPromise=null,this.cacheP={},this.config$=new Promise((function(n,t){e.cacheP.resolve=n,e.cacheP.reject=t})),this.env=n,this.exportSdk={version:n.version,sdkVersion:g.version,env:n,platform:n.platform,platformV2:n.platformV2,config:function(n){void 0===n&&(n={});var t=n.jsApiList,o=void 0===t?[]:t;e.hadConfig?console.log("Config has been executed"):e.bridgeInitFn().then((function(t){t("config",n).then((function(n){e.cacheP.resolve(n),e.hadConfig=!0,e.configJsApiList=o})).catch((function(n){e.cacheP.reject(n)}))}))},ready:function(n){e.bridgeInitFn().then((function(){n()}))},error:function(n){e.config$.catch((function(e){n(e)}))},on:function(t,o){e.bridgeInitFn().then((function(){e.platformConfigMap[n.platform].event.on(t,o)}))},off:function(t,o){e.bridgeInitFn().then((function(){e.platformConfigMap[n.platform].event.off(t,o)}))}}}return n.prototype.setAPI=function(n,e){this.invokeAPIConfigMapByMethod[n]=e},n.prototype.setPlatform=function(n){var e=n.platform;n.bridgeInit;this.platformConfigMap[e]=n},n.prototype.bridgeInitFn=function(){if(this.bridgeInitFnPromise)return this.bridgeInitFnPromise;var n=this.platformConfigMap[this.env.platform];if(n)this.bridgeInitFnPromise=n.bridgeInit();else{var e="Do not support the current environment�"+this.env.platform;this.bridgeInitFnPromise=Promise.reject(new Error(e))}return this.bridgeInitFnPromise},n.prototype._onFail=function(n,e,t,o){s({method:n,errorcode:e,message:t}),o&&"function"==typeof o&&o({code:e,message:t})},n.prototype.invokeAPI=function(n,e){if(e||(e={}),n){var t=this.invokeAPIConfigMapByMethod[n];if(!t)return this._onFail(n,"-1","["+n+"] method is not exist",e.onFail);var o=t[this.env.platform];if(o){var i=o.vs||"0.0.0";if(c(this.env.version,i)<0)return this._onFail(n,"-1","The current application version is "+this.env.version+". This method does not support versions less than "+i,e.onFail);var r=o.paramsDeal?o.paramsDeal(e):e;if("function"==typeof r.onSuccess){var a=r.onSuccess;r.onSuccess=function(n){a(n)}}this.bridgeInitFn().then((function(e){e(n,r).then((function(){})).catch((function(n){}))})).catch((function(n){console.log("wenai err",n)}))}else this._onFail(n,"-1","["+n+"] method do not support the current platform ("+this.env.platform+")",e.onFail)}},n}(),b={log:function(){},warn:function(){},error:function(){}};if(window&&window.console&&(b=window.console),document&&document.body){var w=document.createElement("iframe");w&&w.contentWindow&&w.contentWindow.console&&(w.style.display="none",document.body.appendChild(w),b=w.contentWindow.console)}var y=b.log.bind(b),k=(b.warn.bind(b),b.error.bind(b),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function P(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return y("%c Yach-jssdk log: ",k,n)}var S=new function(){var n=this;this.on=function(e,t){if(!e||"function"!=typeof t)throw"eventName is null or handle is not a function, on fail";Array.isArray(n.eventsHandle[e])||(n.eventsHandle[e]=[]),n.eventsHandle[e].push(t)},this.off=function(e,t){if(!e)throw"eventName is null, invoke off fail";if(t){if(Array.isArray(n.eventsHandle[e])){var o=n.eventsHandle[e].indexOf(t);-1!==o&&n.eventsHandle[e].splice(o,1)}}else n.eventsHandle[e]=[]},this.execEvent=function(n,e){Array.isArray(this.eventsHandle[n])&&this.eventsHandle[n].forEach((function(n){try{n(e)}catch(n){console.error(e)}}))},this.eventsHandle={}},z=function(n,e,t){var o=this;this.genid=function(){var n=Date.now().toString(36);return n+=Math.random().toString(36).substr(3)},this.receiveResponse=function(n){o.callback(n)},this.getPayload=function(){return{msgId:o.id,methodName:o.methodName,body:o.plainMsg,type:"request",invokeType:o.invokeType}},this.id=this.genid(),this.PromiseObj={resolve:null,reject:null},this.methodName=n,this.plainMsg=e,this.invokeType=null==e?void 0:e.invokeType,this.callback=t},I=new function(){var n=this;this.addPending=function(e){n.pendingMsgs[e.id]=e},this.deletePending=function(e){delete n.pendingMsgs[e.id]},this.getPending=function(n){return this.pendingMsgs[n]},this.invokeAPIInBrowserView=function(n){window.sendTo(n)},this.invokeAPIInWebview=function(n){window.sendToHost(n)},this.invokeAPI=function(e,t,o){var i=new z(e,t,o),r=JSON.stringify(i.getPayload()),a=t.invokeType;return"browserView"===(void 0===a?"":a)?n.invokeAPIInBrowserView(r):n.invokeAPIInWebview(r),n.addPending(i),i},this.handleCallback=function(e,t){var o=e.type,i=e.methodName,r=e.eventName,a=e.msgId,s=e.data,c=e.code,u=e.message;if("request"===o)switch(i){case"refresh":window.location.reload();break;case"back":window.history.back();break;case"forward":window.history.forward();break;case"event":S.execEvent(r,s);break;case"zoomInClick":var d=document.documentElement.scrollTop||document.body.scrollTop,p=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:d,url:p,title:s&&s.title}})):window.sendToHost(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:d,url:p,title:s&&s.title}}))}else if("response"===o){var l=n.getPending(a);l&&l.receiveResponse({data:s,code:c,message:u}),-3!=c&&n.deletePending(a)}},this.init=function(){window.addEventListener("message",(function(e){P("electron res: ",e),n.handleCallback(e.data||{})})),window.receiveBrowserViewData&&window.receiveBrowserViewData((function(e,t){return n.handleCallback(t)}))},this.pendingMsgs={}},T=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function C(n){return T.get(n)||"onFail"}var M=function(n,e){return new Promise((function(t){return I.invokeAPI(n,e,(function(o){var i=o.data,r=o.code,a=o.message,c=parseInt(r),u=C(c);-2===c&&s({method:n,errorcode:c,message:a||"SDK执行失败回调,相关参数"});var d=e[u];P("SDK执行后回调,相关参数 ",{method:n,param:e,data:i,_code:c,message:a,callbackFun:d}),"function"==typeof d&&d(i||a),t({_code:c,message:a,data:i})}))}))},x=function(){return(x=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};function A(n){if(window.WebViewJavascriptBridge)return n(WebViewJavascriptBridge);if(window.WKWebViewJavascriptBridge)return n(WKWebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(n);window.WVJBCallbacks=[n];var e=document.createElement("iframe");e.style.display="none",e.src="https://__bridge_loaded__",document.documentElement.appendChild(e),setTimeout((function(){document.documentElement.removeChild(e)}),0)}var E=function(n,e){return new Promise((function(t,o){var i=x({},e);A((function(r){e.control&&r.registerHandler(n,(function(n){var o=e.onSuccess;delete i.onSuccess,"function"==typeof o&&(o(n),t({code:"0",message:"success"}))})),r.callHandler(n,e,(function(r){var a=r.code,c=r.message,u=r.data,d=parseInt(a),p=C(d);-2!==d&&7!==d||(s({method:n,errorcode:d,message:c||"SDK执行失败回调,相关参数"}),P("SDK执行后回调,相关参数 ",{method:n,param:e,data:u,_code:d,message:c}),o({_code:d,message:c}));var l=i[p];P("SDK执行后回调,相关参数 ",{method:n,param:e,data:u,_code:d,message:c,callbackFun:l}),"function"==typeof l&&l(u||c),t({_code:d,message:c,data:u})}))}))}))},F=function(n,e,t,o){return new(t||(t=Promise))((function(i,r){function a(n){try{c(o.next(n))}catch(n){r(n)}}function s(n){try{c(o.throw(n))}catch(n){r(n)}}function c(n){var e;n.done?i(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(a,s)}c((o=o.apply(n,e||[])).next())}))},D=function(n,e){var t,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(n,a)}catch(n){r=[6,n],o=0}finally{t=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},j=i(),V=j.platform,W=new h(j);!function(){var n=this,e={platform:V,authMethod:"config",bridgeInit:"pc"===V?function(){return F(n,void 0,void 0,(function(){return D(this,(function(n){return I.init(),[2,M]}))}))}:function(){return new Promise((function(n,e){A((function(e){P("注册resume事件 "),e.registerHandler("resume",(function(n){P("resume监听到回调,相关参数 ",{resData:n}),S.execEvent("resume",n)})),P("注册unreadMsgAction事件 "),e.registerHandler("unreadMsgAction",(function(n){P("unreadMsgAction监听到回调,相关参数 ",{resData:n}),S.execEvent("unreadMsgAction",n)})),P("注册webViewMsgReceive事件 "),e.registerHandler("webViewMsgReceive",(function(n){P("webViewMsgReceive监听到回调,相关参数 ",{resData:n}),S.execEvent("webViewMsgReceive",n)})),e.registerHandler("pushWorkMsg",(function(n){P("pushWorkMsg监听到回调,相关参数 ",{resData:n}),S.execEvent("pushWorkMsg",n)})),e.registerHandler("getTogetherCallback",(function(n){P("getTogetherCallback监听到回调,相关参数 ",{resData:n}),S.execEvent("getTogetherCallback",n)})),e.registerHandler("sendMsgCommon",(function(n){P("sendMsgCommon ",{resData:n}),S.execEvent("sendMsgCommon",n)})),n()}))})).then((function(){return E}))},event:{on:function(n,e){S.on(n,e)},off:function(n,e){S.off(n,e)}}};W.setPlatform(e)}();var R={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var _=function(n,e){var t=e.params,o=void 0===t?{}:t,i=e.platform,r=void 0===i?R:i;W.setAPI(n,r),W.invokeAPI(n,o)};function B(n){_("biz.util.openLink",{params:n})}function O(n){_("biz.util.feedback",{params:n})}function L(n){_("biz.util.open",{params:n})}var N={pc:{vs:"0.0.0"}};function U(n){_("biz.util.openSlidePanel",{params:n,platform:N})}var H={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function q(n){_("biz.util.share",{params:n,platform:H})}function Y(n){_("biz.util.previewFile",{params:n})}function J(n){_("biz.util.previewImage",{params:n})}function K(n){_("biz.util.downloadFile",{params:n})}function G(n){_("biz.util.uploadAttachment",{params:n})}function $(n){_("biz.util.clipboardFileUpload",{params:n})}function X(n){_("biz.util.proxy",{params:n})}var Z={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Q(n){_("biz.util.datepicker",{params:n,platform:Z})}var nn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function en(n){_("biz.util.datetimepicker",{params:n,platform:nn})}var tn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function on(n){_("biz.util.scan",{params:n,platform:tn})}var rn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function an(n){_("biz.map.view",{params:n,platform:rn})}var sn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function cn(n){_("biz.map.multipointView",{params:n,platform:sn})}var un={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function dn(n){_("biz.util.chosen",{params:n,platform:un})}var pn={pc:{vs:"0.0.0"}};function ln(n){_("biz.util.openSingleWebview",{params:n,platform:pn})}function fn(n){_("biz.util.getSingleWebviewData",{params:n})}function vn(n){_("biz.util.injectScript",{params:n})}var mn={pc:{vs:"0.0.0"}};function gn(n){_("biz.util.closeWindow",{params:n,platform:mn})}var hn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function bn(n){_("biz.util.remind",{params:n,platform:hn})}function wn(n){_("biz.util.takePicture",{params:n})}var yn={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function kn(n){_("biz.util.openVideoPlayer",{params:n,platform:yn})}function Pn(n){_("biz.util.openMediaFileDialog",{params:n})}function Sn(n){_("biz.util.mediaFileUpload",{params:n})}function zn(n){_("biz.util.invoice",{params:n})}function In(n){_("biz.util.pushWorkMsg",{params:n})}function Tn(n){_("biz.util.openTalYoungToTopic",{params:n})}var Cn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Mn(n){_("biz.util.getToken",{params:n,platform:Cn})}var xn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function An(n){_("biz.util.authStart",{params:n,platform:xn})}var En={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Fn(n){_("biz.util.authFinish",{params:n,platform:En})}var Dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jn(n){_("biz.util.assistantCreate",{params:n,platform:Dn})}var Vn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Wn(n){_("biz.util.yachEvent",{params:n,platform:Vn})}var Rn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function _n(n){_("biz.util.openTogetherEyeWebview",{params:n,platform:Rn})}var Bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function On(n){_("biz.util.getTogetherConfig",{params:n,platform:Bn})}function Ln(n){_("biz.util.rouseApp",{params:n})}function Nn(n){_("biz.util.externalLinkPreviewFile",{params:n})}var Un={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Hn(n){_("biz.util.zfbAuth",{params:n,platform:Un})}var qn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yn(n){_("biz.util.savePic",{params:n,platform:qn})}function Jn(n){_("biz.util.complain",{params:n})}function Kn(n){_("biz.util.selectDepartment",{params:n})}var Gn={pc:{vs:"0.0.0"}};function $n(n){_("biz.util.createModifySchedule",{params:n,platform:Gn})}var Xn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Zn(n){_("biz.util.openUserSchedule",{params:n,platform:Xn})}var Qn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function ne(n){_("onlineDocmentOpenTeamChat",{params:n,platform:Qn})}var ee={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function te(n){_("biz.util.entergroupCheck",{params:n,platform:ee})}var oe={pc:{vs:"1.8.0"}};function ie(n){_("biz.util.resetSessionUnread",{params:n,platform:oe})}var re={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ae(n){_("biz.util.disableScreenCapture",{params:n,platform:re})}var se=function(){return(se=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}).apply(this,arguments)};function ce(n){return function(e){return se(se({},n),e)}}var ue=ce({control:!0,showIcon:!0,iconIndex:1}),de={ios:{vs:"0.0.0",paramsDeal:ue},android:{vs:"0.0.0",paramsDeal:ue}};function pe(n){_("biz.navigation.setIcon",{params:n,platform:de})}function le(n){_("biz.navigation.setTitle",{params:n})}var fe=ce({control:!0}),ve={ios:{vs:"0.0.0",paramsDeal:fe},android:{vs:"0.0.0",paramsDeal:fe}};function me(n){_("biz.navigation.setMenu",{params:n,platform:ve})}function ge(n){_("biz.navigation.close",{params:n})}function he(n){_("biz.navigation.replace",{params:n})}var be={pc:{vs:"0.0.0"}};function we(n){_("biz.navigation.quit",{params:n,platform:be})}var ye=ce({show:!0,control:!1,text:""}),ke={ios:{vs:"0.0.0",paramsDeal:ye},android:{vs:"0.0.0",paramsDeal:ye},pc:{vs:"0.0.0"}};function Pe(n){_("biz.navigation.setRight",{params:n,platform:ke})}var Se=ce({control:!0}),ze={ios:{vs:"0.0.0",paramsDeal:Se},android:{vs:"0.0.0",paramsDeal:Se}};function Ie(n){_("biz.navigation.setTitleExpandIcon",{params:n,platform:ze})}function Te(n){_("biz.navigation.updateExpandTitle",{params:n})}var Ce=ce({show:!0,control:!1,text:""}),Me={ios:{vs:"0.0.0",paramsDeal:Ce},android:{vs:"0.0.0",paramsDeal:Ce},pc:{vs:"0.0.0"}};function xe(n){_("biz.navigation.setLeft",{params:n,platform:Me})}var Ae={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ee(n){_("biz.navigation.goBack",{params:n,platform:Ae})}var Fe={pc:{vs:"0.0.0"}};function De(n){_("biz.navigation.setWindowBig",{params:n,platform:Fe})}function je(n){_("biz.navigation.tencentMeeting",{params:n})}function Ve(n){_("biz.navigation.tencentMeetingBegin",{params:n})}var We=ce({nativePanEnable:!0,webPanEnable:!0}),Re={ios:{vs:"0.0.0",paramsDeal:We},android:{vs:"0.0.0",paramsDeal:We}};function _e(n){_("biz.navigation.setPanGestureEnable",{params:n,platform:Re})}function Be(n){_("biz.contact.complexPicker",{params:n})}function Oe(n){_("biz.contact.departmentsPicker",{params:n})}function Le(n){_("biz.group.groupComplexPicker",{params:n})}function Ne(n){_("biz.chat.chooseConversationByCorpId",{params:n})}var Ue={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function He(n){_("biz.chat.pickConversation",{params:n,platform:Ue})}function qe(n){_("biz.chat.openSingleChat",{params:n})}function Ye(n){_("biz.chat.openTeamChat",{params:n})}function Je(n){_("biz.chat.openSquad",{params:n})}function Ke(n){_("biz.chat.sendP2PMsg",{params:n})}var Ge={pc:{vs:"0.0.0"}};function $e(n){_("primary.createTab",{params:n,platform:Ge})}var Xe={pc:{vs:"0.0.0"}};function Ze(n){_("primary.weeklyShare",{params:n,platform:Xe})}var Qe={pc:{vs:"0.0.0"}};function nt(n){_("primary.fullScreen",{params:n,platform:Qe})}var et={pc:{vs:"0.0.0"}};function tt(n){_("primary.exitFullScreen",{params:n,platform:et})}function ot(n){_("runtime.permission.requestAuthCode",{params:n})}var it={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function rt(n){_("device.notification.showPreloader",{params:n,platform:it})}var at={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function st(n){_("device.notification.hidePreloader",{params:n,platform:at})}var ct={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ut(n){_("device.notification.vibrate",{params:n,platform:ct})}function dt(n){_("device.notification.toast",{params:n})}var pt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function lt(n){_("device.notification.actionSheet",{params:n,platform:pt})}var ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function vt(n){_("device.base.getPhoneInfo",{params:n,platform:ft})}var mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function gt(n){_("device.notification.alert",{params:n,platform:mt})}var ht={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function bt(n){_("device.notification.confirm",{params:n,platform:ht})}var wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function yt(n){_("device.geolocation.get",{params:n,platform:wt})}var kt={android:{vs:"0.0.0"}};function Pt(n){_("device.geolocation.getSwitch",{params:n,platform:kt})}function St(n){_("device.system.getLang",{params:n})}var zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function It(n){_("device.audio.startRecord",{params:n,platform:zt})}var Tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ct(n){_("device.audio.stopRecord",{params:n,platform:Tt})}var Mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xt(n){_("device.audio.onRecordEnd",{params:n,platform:Mt})}var At={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Et(n){_("device.audio.download",{params:n,platform:At})}var Ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Dt(n){_("device.audio.play",{params:n,platform:Ft})}var jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vt(n){_("device.audio.pause",{params:n,platform:jt})}var Wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Rt(n){_("device.audio.stop",{params:n,platform:Wt})}var _t={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bt(n){_("device.audio.onPlayEnd",{params:n,platform:_t})}var Ot={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Lt(n){_("device.audio.resume",{params:n,platform:Ot})}var Nt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ut(n){_("device.connection.getNetworkType",{params:n,platform:Nt})}var Ht={pc:{vs:"0.0.0"}};function qt(n){_("device.connection.isAtTal",{params:n,platform:Ht})}var Yt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function Jt(n){_("device.base.getUUID",{params:n,platform:Yt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(n){_("device.base.checkStepPermission",{params:n,platform:Kt})}var $t={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Xt(n){_("device.audio.onRecordEnd_v2",{params:n,platform:$t})}var Zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Qt(n){_("device.audio.startRecord_v2",{params:n,platform:Zt})}var no={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function eo(n){_("device.audio.stopRecord_v2",{params:n,platform:no})}var to={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function oo(n){_("device.system.setLight",{params:n,platform:to})}var io={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ro(n){_("biz.telephone.showCallMenu",{params:n,platform:io})}var ao={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function so(n){_("biz.telephone.call",{params:n,platform:ao})}var co={ios:{vs:"0.0.0"}};function uo(n){_("ui.webViewBounce.disable",{params:n,platform:co})}var po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function lo(n){_("ui.pullToRefresh.enable",{params:n,platform:po})}var fo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function vo(n){_("ui.pullToRefresh.stop",{params:n,platform:fo})}var mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function go(n){_("ui.pullToRefresh.disable",{params:n,platform:mo})}var ho={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function bo(n){_("util.domainStorage.getItem",{params:n,platform:ho})}var wo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function yo(n){_("util.domainStorage.setItem",{params:n,platform:wo})}var ko={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Po(n){_("util.domainStorage.removeItem",{params:n,platform:ko})}var So={pc:{vs:"1.7.0"}};function zo(n){_("util.tool.writeLog",{params:n,platform:So})}var Io={pc:{vs:"1.7.0"}};function To(n){_("util.tool.flushLog",{params:n,platform:Io})}var Co={ios:{vs:"0.0.0"}};function Mo(n){_("biz.webViewMessage.send",{params:n,platform:Co})}function xo(n){_("app.custom.talYoungFilesUpload",{params:n})}console.log("add rouseApp ------------\x3e",Ln);var Ao=W.exportSdk,Eo=Ao.version,Fo=Ao.sdkVersion,Do=Ao.env,jo=Ao.platform,Vo=Ao.platformV2,Wo=Ao.config,Ro=Ao.ready,_o=Ao.error,Bo=Ao.on,Oo=Ao.off;e.default={version:Eo,sdkVersion:Fo,env:Do,platform:jo,platformV2:Vo,config:Wo,ready:Ro,error:_o,on:Bo,off:Oo,biz:{util:{openLink:B,feedback:O,open:L,openSlidePanel:U,share:q,previewFile:Y,previewImage:J,downloadFile:K,uploadAttachment:G,clipboardFileUpload:$,proxy:X,datepicker:Q,datetimepicker:en,scan:on,chosen:dn,openSingleWebview:ln,getSingleWebviewData:fn,injectScript:vn,onlineDocmentOpenTeamChat:ne,entergroupCheck:te,resetSessionUnread:ie,closeWindow:gn,remind:bn,takePicture:wn,openVideoPlayer:kn,openMediaFileDialog:Pn,mediaFileUpload:Sn,invoice:zn,pushWorkMsg:In,openTalYoungToTopic:Tn,getToken:Mn,authStart:An,authFinish:Fn,assistantCreate:jn,yachEvent:Wn,openTogetherEyeWebview:_n,getTogetherConfig:On,rouseApp:Ln,externalLinkPreviewFile:Nn,savePic:Yn,zfbAuth:Hn,complain:Jn,selectDepartment:Kn,createModifySchedule:$n,openUserSchedule:Zn,disableScreenCapture:ae},telephone:{showCallMenu:ro,call:so},navigation:{setIcon:pe,setTitle:le,setMenu:me,close:ge,replace:he,quit:we,setRight:Pe,setTitleExpandIcon:Ie,updateExpandTitle:Te,setLeft:xe,goBack:Ee,setWindowBig:De,tencentMeeting:je,tencentMeetingBegin:Ve,setPanGestureEnable:_e},contact:{complexPicker:Be,departmentsPicker:Oe},group:{groupComplexPicker:Le},chat:{chooseConversationByCorpId:Ne,pickConversation:He,openSingleChat:qe,openTeamChat:Ye,openSquad:Je,sendP2PMsg:Ke},map:{view:an,multipointView:cn},webViewMessage:{send:Mo}},runtime:{permission:{requestAuthCode:ot}},primary:{createTab:$e,weeklyShare:Ze,fullScreen:nt,exitFullScreen:tt},device:{notification:{showPreloader:rt,hidePreloader:st,vibrate:ut,toast:dt,alert:gt,confirm:bt,actionSheet:lt},base:{getPhoneInfo:vt,getUUID:Jt,checkStepPermission:Gt},geolocation:{get:yt,getSwitch:Pt},system:{getLang:St,setLight:oo},audio:{startRecord:It,stopRecord:Ct,onRecordEnd:xt,download:Et,play:Dt,pause:Vt,stop:Rt,onPlayEnd:Bt,resume:Lt,onRecordEnd_v2:Xt,startRecord_v2:Qt,stopRecord_v2:eo},connection:{getNetworkType:Ut,isAtTal:qt}},ui:{webViewBounce:{disable:uo},pullToRefresh:{enable:lo,stop:vo,disable:go}},util:{domainStorage:{getItem:bo,setItem:yo,removeItem:Po},tool:{writeLog:zo,flushLog:To}},app:{custom:{talYoungFilesUpload:xo}}}}]).default;
|
|
@@ -4,9 +4,4 @@ export interface IDeviceNotificationHidePreloaderParams {
|
|
|
4
4
|
onFail?: (err: IError) => void;
|
|
5
5
|
}
|
|
6
6
|
declare function hidePreloader(params?: IDeviceNotificationHidePreloaderParams): void;
|
|
7
|
-
|
|
8
|
-
onSuccess?: () => void;
|
|
9
|
-
onFail?: (err: IError) => void;
|
|
10
|
-
}
|
|
11
|
-
declare function hideCustomOverlayContent(params?: IDeviceNotificationHideCustomPreloaderParams): void;
|
|
12
|
-
export { hidePreloader, hideCustomOverlayContent };
|
|
7
|
+
export { hidePreloader };
|
|
@@ -6,13 +6,9 @@ var ios = {
|
|
|
6
6
|
var android = {
|
|
7
7
|
vs: '0.0.0'
|
|
8
8
|
};
|
|
9
|
-
var pc = {
|
|
10
|
-
vs: '1.9.9'
|
|
11
|
-
};
|
|
12
9
|
var platform = {
|
|
13
10
|
ios: ios,
|
|
14
|
-
android: android
|
|
15
|
-
pc: pc
|
|
11
|
+
android: android
|
|
16
12
|
};
|
|
17
13
|
function hidePreloader(params) {
|
|
18
14
|
initAPI(apiName, {
|
|
@@ -20,13 +16,4 @@ function hidePreloader(params) {
|
|
|
20
16
|
platform: platform
|
|
21
17
|
});
|
|
22
18
|
}
|
|
23
|
-
|
|
24
|
-
function hideCustomOverlayContent(params) {
|
|
25
|
-
initAPI(apiNameCustom, {
|
|
26
|
-
params: params,
|
|
27
|
-
platform: {
|
|
28
|
-
pc: pc
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
export { hidePreloader, hideCustomOverlayContent };
|
|
19
|
+
export { hidePreloader };
|
|
@@ -2,17 +2,8 @@ import { IError } from '../../common.typings';
|
|
|
2
2
|
export interface IDeviceNotificationShowPreloaderParams {
|
|
3
3
|
text?: string;
|
|
4
4
|
showIcon?: boolean;
|
|
5
|
-
showCancel?: boolean;
|
|
6
5
|
onSuccess?: () => void;
|
|
7
6
|
onFail?: (err: IError) => void;
|
|
8
7
|
}
|
|
9
8
|
declare function showPreloader(params?: IDeviceNotificationShowPreloaderParams): void;
|
|
10
|
-
|
|
11
|
-
html: string;
|
|
12
|
-
styles?: string;
|
|
13
|
-
containerClassName?: string;
|
|
14
|
-
onSuccess?: () => void;
|
|
15
|
-
onFail?: (err: IError) => void;
|
|
16
|
-
}
|
|
17
|
-
declare function showCustomOverlayContent(params?: IDeviceNotificationShowCustomPreloaderParams): void;
|
|
18
|
-
export { showPreloader, showCustomOverlayContent };
|
|
9
|
+
export { showPreloader };
|
|
@@ -6,13 +6,9 @@ var ios = {
|
|
|
6
6
|
var android = {
|
|
7
7
|
vs: '0.0.0'
|
|
8
8
|
};
|
|
9
|
-
var pc = {
|
|
10
|
-
vs: '1.9.9'
|
|
11
|
-
};
|
|
12
9
|
var platform = {
|
|
13
10
|
ios: ios,
|
|
14
|
-
android: android
|
|
15
|
-
pc: pc
|
|
11
|
+
android: android
|
|
16
12
|
};
|
|
17
13
|
function showPreloader(params) {
|
|
18
14
|
initAPI(apiName, {
|
|
@@ -20,13 +16,4 @@ function showPreloader(params) {
|
|
|
20
16
|
platform: platform
|
|
21
17
|
});
|
|
22
18
|
}
|
|
23
|
-
|
|
24
|
-
function showCustomOverlayContent(params) {
|
|
25
|
-
initAPI(apiNameCustom, {
|
|
26
|
-
params: params,
|
|
27
|
-
platform: {
|
|
28
|
-
pc: pc
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
export { showPreloader, showCustomOverlayContent };
|
|
19
|
+
export { showPreloader };
|
package/es/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/**util*/
|
|
2
|
-
import { openMediaFileDialogV2 } from './api/biz/util/openMediaFileDialogV2';
|
|
3
|
-
import { mediaFileUploadV2 } from './api/biz/util/mediaFileUploadV2';
|
|
4
2
|
import { openLink } from './api/biz/util/openLink';
|
|
5
3
|
import { feedback } from './api/biz/util/feedback';
|
|
6
4
|
import { open } from './api/biz/util/open';
|
|
@@ -24,7 +22,6 @@ import { injectScript } from './api/biz/util/injectScript';
|
|
|
24
22
|
import { closeWindow } from './api/biz/util/closeWindow';
|
|
25
23
|
import { remind } from './api/biz/util/remind';
|
|
26
24
|
import { takePicture } from './api/biz/util/takePicture';
|
|
27
|
-
import { openAudioPlayer } from './api/biz/util/openAudioPlayer';
|
|
28
25
|
import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
|
|
29
26
|
import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
|
|
30
27
|
import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
|
|
@@ -36,7 +33,6 @@ import { authStart } from './api/biz/util/authStart';
|
|
|
36
33
|
import { authFinish } from './api/biz/util/authFinish';
|
|
37
34
|
import { assistantCreate } from './api/biz/util/assistantCreate';
|
|
38
35
|
import { yachEvent } from './api/biz/util/yachEvent';
|
|
39
|
-
import { topicEvent } from './api/biz/util/topicEvent';
|
|
40
36
|
import { openTogetherEyeWebview } from './api/biz/util/openTogetherEyeWebview';
|
|
41
37
|
import { getTogetherConfig } from './api/biz/util/getTogetherConfig';
|
|
42
38
|
import { rouseApp } from './api/biz/util/rouseApp';
|
|
@@ -50,17 +46,7 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
|
|
|
50
46
|
import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
|
|
51
47
|
import { entergroupCheck } from './api/biz/util/entergroupCheck';
|
|
52
48
|
import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
|
|
53
|
-
import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
54
49
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
55
|
-
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
56
|
-
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
57
|
-
import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
|
|
58
|
-
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
59
|
-
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
60
|
-
import { copy } from './api/biz/util/copy';
|
|
61
|
-
import { openPublish } from './api/biz/util/openPublish';
|
|
62
|
-
import { getConfig } from './api/biz/util/getConfig';
|
|
63
|
-
import { focus } from './api/biz/util/focus';
|
|
64
50
|
/**navigation*/
|
|
65
51
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
66
52
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -90,14 +76,13 @@ import { openTeamChat } from './api/biz/chat/openTeamChat';
|
|
|
90
76
|
import { openSquad } from './api/biz/chat/openSquad';
|
|
91
77
|
import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
|
|
92
78
|
import { createTab } from './api/primary/createTab';
|
|
93
|
-
import { updateTab } from './api/primary/updateTab';
|
|
94
79
|
import { weeklyShare } from './api/primary/weeklyShare';
|
|
95
80
|
import { fullScreen } from './api/primary/fullScreen';
|
|
96
81
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
97
82
|
import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
|
|
98
83
|
/** device */
|
|
99
|
-
import { showPreloader
|
|
100
|
-
import { hidePreloader
|
|
84
|
+
import { showPreloader } from './api/device/notification/showPreloader';
|
|
85
|
+
import { hidePreloader } from './api/device/notification/hidePreloader';
|
|
101
86
|
import { vibrate } from './api/device/notification/vibrate';
|
|
102
87
|
import { toast } from './api/device/notification/toast';
|
|
103
88
|
import { actionSheet } from './api/device/notification/actionSheet';
|
|
@@ -118,7 +103,6 @@ import { onPlayEnd } from './api/device/audio/onPlayEnd';
|
|
|
118
103
|
import { resume as resumeAudio } from './api/device/audio/resume';
|
|
119
104
|
import { getNetworkType } from './api/device/connection/getNetworkType';
|
|
120
105
|
import { isAtTal } from './api/device/connection/isAtTal';
|
|
121
|
-
import { startNetworkChangeWatch } from './api/device/connection/startNetworkChangeWatch';
|
|
122
106
|
import { getUUID } from './api/device/base/getUUID';
|
|
123
107
|
import { checkStepPermission } from './api/device/base/checkStepPermission';
|
|
124
108
|
import { onRecordEnd_v2 } from './api/device/audio/onRecordEnd_v2';
|
|
@@ -138,13 +122,10 @@ import { setItem } from './api/util/domainStorage/setItem';
|
|
|
138
122
|
import { removeItem } from './api/util/domainStorage/removeItem';
|
|
139
123
|
import { writeLog } from './api/util/tool/log';
|
|
140
124
|
import { flushLog } from './api/util/tool/flushLog';
|
|
141
|
-
import { nativeEvent } from './api/private/nativeEvent';
|
|
142
|
-
import { capturePage } from './api/biz/util/screen';
|
|
143
125
|
import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
144
126
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
145
|
-
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
146
127
|
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;
|
|
147
|
-
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,
|
|
128
|
+
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, hidePreloader, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, };
|
|
148
129
|
declare const _default: {
|
|
149
130
|
version: string;
|
|
150
131
|
sdkVersion: string;
|
|
@@ -160,7 +141,6 @@ declare const _default: {
|
|
|
160
141
|
util: {
|
|
161
142
|
openLink: typeof openLink;
|
|
162
143
|
feedback: typeof feedback;
|
|
163
|
-
focus: typeof focus;
|
|
164
144
|
open: typeof open;
|
|
165
145
|
openSlidePanel: typeof openSlidePanel;
|
|
166
146
|
share: typeof share;
|
|
@@ -180,17 +160,12 @@ declare const _default: {
|
|
|
180
160
|
onlineDocmentOpenTeamChat: typeof onlineDocmentOpenTeamChat;
|
|
181
161
|
entergroupCheck: typeof entergroupCheck;
|
|
182
162
|
resetSessionUnread: typeof resetSessionUnread;
|
|
183
|
-
weeklyRead: typeof weeklyRead;
|
|
184
|
-
openFutureGroup: typeof openFutureGroup;
|
|
185
163
|
closeWindow: typeof closeWindow;
|
|
186
164
|
remind: typeof remind;
|
|
187
165
|
takePicture: typeof takePicture;
|
|
188
|
-
openAudioPlayer: typeof openAudioPlayer;
|
|
189
166
|
openVideoPlayer: typeof openVideoPlayer;
|
|
190
167
|
openMediaFileDialog: typeof openMediaFileDialog;
|
|
191
|
-
openMediaFileDialogV2: typeof openMediaFileDialogV2;
|
|
192
168
|
mediaFileUpload: typeof mediaFileUpload;
|
|
193
|
-
mediaFileUploadV2: typeof mediaFileUploadV2;
|
|
194
169
|
invoice: typeof invoice;
|
|
195
170
|
pushWorkMsg: typeof pushWorkMsg;
|
|
196
171
|
openTalYoungToTopic: typeof openTalYoungToTopic;
|
|
@@ -199,7 +174,6 @@ declare const _default: {
|
|
|
199
174
|
authFinish: typeof authFinish;
|
|
200
175
|
assistantCreate: typeof assistantCreate;
|
|
201
176
|
yachEvent: typeof yachEvent;
|
|
202
|
-
topicEvent: typeof topicEvent;
|
|
203
177
|
openTogetherEyeWebview: typeof openTogetherEyeWebview;
|
|
204
178
|
getTogetherConfig: typeof getTogetherConfig;
|
|
205
179
|
rouseApp: typeof rouseApp;
|
|
@@ -211,15 +185,6 @@ declare const _default: {
|
|
|
211
185
|
createModifySchedule: typeof createModifySchedule;
|
|
212
186
|
openUserSchedule: typeof openUserSchedule;
|
|
213
187
|
disableScreenCapture: typeof disableScreenCapture;
|
|
214
|
-
addAppToNav: typeof addAppToNav;
|
|
215
|
-
knowledgeBaseSelect: typeof knowledgeBaseSelect;
|
|
216
|
-
knowledgeSelectParams: typeof knowledgeSelectParams;
|
|
217
|
-
lorebaseShowList: typeof lorebaseShowList;
|
|
218
|
-
lorebaseRefreshNodeWebview: typeof lorebaseRefreshNodeWebview;
|
|
219
|
-
copy: typeof copy;
|
|
220
|
-
openPublish: typeof openPublish;
|
|
221
|
-
capturePage: typeof capturePage;
|
|
222
|
-
getConfig: typeof getConfig;
|
|
223
188
|
};
|
|
224
189
|
telephone: {
|
|
225
190
|
showCallMenu: typeof showCallMenu;
|
|
@@ -272,7 +237,6 @@ declare const _default: {
|
|
|
272
237
|
};
|
|
273
238
|
primary: {
|
|
274
239
|
createTab: typeof createTab;
|
|
275
|
-
updateTab: typeof updateTab;
|
|
276
240
|
weeklyShare: typeof weeklyShare;
|
|
277
241
|
fullScreen: typeof fullScreen;
|
|
278
242
|
exitFullScreen: typeof exitFullScreen;
|
|
@@ -280,9 +244,7 @@ declare const _default: {
|
|
|
280
244
|
device: {
|
|
281
245
|
notification: {
|
|
282
246
|
showPreloader: typeof showPreloader;
|
|
283
|
-
showCustomOverlayContent: typeof showCustomOverlayContent;
|
|
284
247
|
hidePreloader: typeof hidePreloader;
|
|
285
|
-
hideCustomOverlayContent: typeof hideCustomOverlayContent;
|
|
286
248
|
vibrate: typeof vibrate;
|
|
287
249
|
toast: typeof toast;
|
|
288
250
|
alert: typeof alert;
|
|
@@ -319,7 +281,6 @@ declare const _default: {
|
|
|
319
281
|
connection: {
|
|
320
282
|
getNetworkType: typeof getNetworkType;
|
|
321
283
|
isAtTal: typeof isAtTal;
|
|
322
|
-
startNetworkChangeWatch: typeof startNetworkChangeWatch;
|
|
323
284
|
};
|
|
324
285
|
};
|
|
325
286
|
ui: {
|
|
@@ -348,8 +309,5 @@ declare const _default: {
|
|
|
348
309
|
talYoungFilesUpload: typeof talYoungFilesUpload;
|
|
349
310
|
};
|
|
350
311
|
};
|
|
351
|
-
private: {
|
|
352
|
-
nativeEvent: typeof nativeEvent;
|
|
353
|
-
};
|
|
354
312
|
};
|
|
355
313
|
export default _default;
|
package/es/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { yachSdk } from './lib';
|
|
2
2
|
/*biz*****************************/
|
|
3
3
|
/**util*/
|
|
4
|
-
import { openMediaFileDialogV2 } from './api/biz/util/openMediaFileDialogV2';
|
|
5
|
-
import { mediaFileUploadV2 } from './api/biz/util/mediaFileUploadV2';
|
|
6
4
|
import { openLink } from './api/biz/util/openLink';
|
|
7
5
|
import { feedback } from './api/biz/util/feedback';
|
|
8
6
|
import { open } from './api/biz/util/open';
|
|
@@ -26,7 +24,6 @@ import { injectScript } from './api/biz/util/injectScript';
|
|
|
26
24
|
import { closeWindow } from './api/biz/util/closeWindow';
|
|
27
25
|
import { remind } from './api/biz/util/remind';
|
|
28
26
|
import { takePicture } from './api/biz/util/takePicture';
|
|
29
|
-
import { openAudioPlayer } from './api/biz/util/openAudioPlayer';
|
|
30
27
|
import { openVideoPlayer } from './api/biz/util/openVideoPlayer';
|
|
31
28
|
import { openMediaFileDialog } from './api/biz/util/openMediaFileDialog';
|
|
32
29
|
import { mediaFileUpload } from './api/biz/util/mediaFileUpload';
|
|
@@ -38,7 +35,6 @@ import { authStart } from './api/biz/util/authStart';
|
|
|
38
35
|
import { authFinish } from './api/biz/util/authFinish';
|
|
39
36
|
import { assistantCreate } from './api/biz/util/assistantCreate';
|
|
40
37
|
import { yachEvent } from './api/biz/util/yachEvent';
|
|
41
|
-
import { topicEvent } from './api/biz/util/topicEvent';
|
|
42
38
|
import { openTogetherEyeWebview } from './api/biz/util/openTogetherEyeWebview';
|
|
43
39
|
import { getTogetherConfig } from './api/biz/util/getTogetherConfig';
|
|
44
40
|
import { rouseApp } from './api/biz/util/rouseApp';
|
|
@@ -52,17 +48,7 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
|
|
|
52
48
|
import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
|
|
53
49
|
import { entergroupCheck } from './api/biz/util/entergroupCheck';
|
|
54
50
|
import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
|
|
55
|
-
import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
56
51
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
57
|
-
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
58
|
-
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
59
|
-
import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
|
|
60
|
-
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
61
|
-
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
62
|
-
import { copy } from './api/biz/util/copy';
|
|
63
|
-
import { openPublish } from './api/biz/util/openPublish';
|
|
64
|
-
import { getConfig } from './api/biz/util/getConfig';
|
|
65
|
-
import { focus } from './api/biz/util/focus';
|
|
66
52
|
/**navigation*/
|
|
67
53
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
68
54
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -93,15 +79,14 @@ import { openSquad } from './api/biz/chat/openSquad';
|
|
|
93
79
|
import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
|
|
94
80
|
/* primary*****************************/
|
|
95
81
|
import { createTab } from './api/primary/createTab';
|
|
96
|
-
import { updateTab } from './api/primary/updateTab';
|
|
97
82
|
import { weeklyShare } from './api/primary/weeklyShare';
|
|
98
83
|
import { fullScreen } from './api/primary/fullScreen';
|
|
99
84
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
100
85
|
/* runtime*****************************/
|
|
101
86
|
import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
|
|
102
87
|
/** device */
|
|
103
|
-
import { showPreloader
|
|
104
|
-
import { hidePreloader
|
|
88
|
+
import { showPreloader } from './api/device/notification/showPreloader';
|
|
89
|
+
import { hidePreloader } from './api/device/notification/hidePreloader';
|
|
105
90
|
import { vibrate } from './api/device/notification/vibrate';
|
|
106
91
|
import { toast } from './api/device/notification/toast';
|
|
107
92
|
import { actionSheet } from './api/device/notification/actionSheet';
|
|
@@ -122,7 +107,6 @@ import { onPlayEnd } from './api/device/audio/onPlayEnd';
|
|
|
122
107
|
import { resume as resumeAudio } from './api/device/audio/resume';
|
|
123
108
|
import { getNetworkType } from './api/device/connection/getNetworkType';
|
|
124
109
|
import { isAtTal } from './api/device/connection/isAtTal';
|
|
125
|
-
import { startNetworkChangeWatch } from './api/device/connection/startNetworkChangeWatch';
|
|
126
110
|
import { getUUID } from './api/device/base/getUUID';
|
|
127
111
|
import { checkStepPermission } from './api/device/base/checkStepPermission';
|
|
128
112
|
import { onRecordEnd_v2 } from './api/device/audio/onRecordEnd_v2';
|
|
@@ -144,12 +128,8 @@ import { removeItem } from './api/util/domainStorage/removeItem';
|
|
|
144
128
|
// log
|
|
145
129
|
import { writeLog } from './api/util/tool/log';
|
|
146
130
|
import { flushLog } from './api/util/tool/flushLog';
|
|
147
|
-
import { nativeEvent } from './api/private/nativeEvent';
|
|
148
|
-
// screen
|
|
149
|
-
import { capturePage } from './api/biz/util/screen';
|
|
150
131
|
import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
151
132
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
152
|
-
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
153
133
|
console.log('add rouseApp ------------>', rouseApp);
|
|
154
134
|
var _yachSdk$exportSdk = yachSdk.exportSdk,
|
|
155
135
|
version = _yachSdk$exportSdk.version,
|
|
@@ -162,7 +142,7 @@ var _yachSdk$exportSdk = yachSdk.exportSdk,
|
|
|
162
142
|
error = _yachSdk$exportSdk.error,
|
|
163
143
|
on = _yachSdk$exportSdk.on,
|
|
164
144
|
off = _yachSdk$exportSdk.off;
|
|
165
|
-
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,
|
|
145
|
+
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, hidePreloader, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable };
|
|
166
146
|
export default {
|
|
167
147
|
version: version,
|
|
168
148
|
sdkVersion: sdkVersion,
|
|
@@ -178,7 +158,6 @@ export default {
|
|
|
178
158
|
util: {
|
|
179
159
|
openLink: openLink,
|
|
180
160
|
feedback: feedback,
|
|
181
|
-
focus: focus,
|
|
182
161
|
open: open,
|
|
183
162
|
openSlidePanel: openSlidePanel,
|
|
184
163
|
share: share,
|
|
@@ -198,17 +177,12 @@ export default {
|
|
|
198
177
|
onlineDocmentOpenTeamChat: onlineDocmentOpenTeamChat,
|
|
199
178
|
entergroupCheck: entergroupCheck,
|
|
200
179
|
resetSessionUnread: resetSessionUnread,
|
|
201
|
-
weeklyRead: weeklyRead,
|
|
202
|
-
openFutureGroup: openFutureGroup,
|
|
203
180
|
closeWindow: closeWindow,
|
|
204
181
|
remind: remind,
|
|
205
182
|
takePicture: takePicture,
|
|
206
|
-
openAudioPlayer: openAudioPlayer,
|
|
207
183
|
openVideoPlayer: openVideoPlayer,
|
|
208
184
|
openMediaFileDialog: openMediaFileDialog,
|
|
209
|
-
openMediaFileDialogV2: openMediaFileDialogV2,
|
|
210
185
|
mediaFileUpload: mediaFileUpload,
|
|
211
|
-
mediaFileUploadV2: mediaFileUploadV2,
|
|
212
186
|
invoice: invoice,
|
|
213
187
|
pushWorkMsg: pushWorkMsg,
|
|
214
188
|
openTalYoungToTopic: openTalYoungToTopic,
|
|
@@ -217,7 +191,6 @@ export default {
|
|
|
217
191
|
authFinish: authFinish,
|
|
218
192
|
assistantCreate: assistantCreate,
|
|
219
193
|
yachEvent: yachEvent,
|
|
220
|
-
topicEvent: topicEvent,
|
|
221
194
|
openTogetherEyeWebview: openTogetherEyeWebview,
|
|
222
195
|
getTogetherConfig: getTogetherConfig,
|
|
223
196
|
rouseApp: rouseApp,
|
|
@@ -228,16 +201,7 @@ export default {
|
|
|
228
201
|
selectDepartment: selectDepartment,
|
|
229
202
|
createModifySchedule: createModifySchedule,
|
|
230
203
|
openUserSchedule: openUserSchedule,
|
|
231
|
-
disableScreenCapture: disableScreenCapture
|
|
232
|
-
addAppToNav: addAppToNav,
|
|
233
|
-
knowledgeBaseSelect: knowledgeBaseSelect,
|
|
234
|
-
knowledgeSelectParams: knowledgeSelectParams,
|
|
235
|
-
lorebaseShowList: lorebaseShowList,
|
|
236
|
-
lorebaseRefreshNodeWebview: lorebaseRefreshNodeWebview,
|
|
237
|
-
copy: copy,
|
|
238
|
-
openPublish: openPublish,
|
|
239
|
-
capturePage: capturePage,
|
|
240
|
-
getConfig: getConfig
|
|
204
|
+
disableScreenCapture: disableScreenCapture
|
|
241
205
|
},
|
|
242
206
|
telephone: {
|
|
243
207
|
showCallMenu: showCallMenu,
|
|
@@ -290,7 +254,6 @@ export default {
|
|
|
290
254
|
},
|
|
291
255
|
primary: {
|
|
292
256
|
createTab: createTab,
|
|
293
|
-
updateTab: updateTab,
|
|
294
257
|
weeklyShare: weeklyShare,
|
|
295
258
|
fullScreen: fullScreen,
|
|
296
259
|
exitFullScreen: exitFullScreen
|
|
@@ -298,9 +261,7 @@ export default {
|
|
|
298
261
|
device: {
|
|
299
262
|
notification: {
|
|
300
263
|
showPreloader: showPreloader,
|
|
301
|
-
showCustomOverlayContent: showCustomOverlayContent,
|
|
302
264
|
hidePreloader: hidePreloader,
|
|
303
|
-
hideCustomOverlayContent: hideCustomOverlayContent,
|
|
304
265
|
vibrate: vibrate,
|
|
305
266
|
toast: toast,
|
|
306
267
|
alert: alert,
|
|
@@ -336,8 +297,7 @@ export default {
|
|
|
336
297
|
},
|
|
337
298
|
connection: {
|
|
338
299
|
getNetworkType: getNetworkType,
|
|
339
|
-
isAtTal: isAtTal
|
|
340
|
-
startNetworkChangeWatch: startNetworkChangeWatch
|
|
300
|
+
isAtTal: isAtTal
|
|
341
301
|
}
|
|
342
302
|
},
|
|
343
303
|
ui: {
|
|
@@ -365,8 +325,5 @@ export default {
|
|
|
365
325
|
custom: {
|
|
366
326
|
talYoungFilesUpload: talYoungFilesUpload
|
|
367
327
|
}
|
|
368
|
-
},
|
|
369
|
-
"private": {
|
|
370
|
-
nativeEvent: nativeEvent
|
|
371
328
|
}
|
|
372
329
|
};
|