yach.open.jssdk 4.4.1-beta9 → 4.4.3
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.3.js +1 -0
- package/es/api/biz/navigation/close.d.ts +1 -0
- package/es/api/biz/util/screen.d.ts +15 -0
- package/es/api/biz/util/screen.js +17 -0
- package/es/api/biz/util/topicEvent.d.ts +13 -0
- package/es/api/biz/util/topicEvent.js +29 -0
- package/es/api/biz/util/weeklyRead.d.ts +5 -0
- package/es/api/biz/util/weeklyRead.js +25 -0
- package/es/api/device/notification/hidePreloader.d.ts +6 -1
- package/es/api/device/notification/hidePreloader.js +17 -2
- package/es/api/device/notification/showPreloader.d.ts +10 -1
- package/es/api/device/notification/showPreloader.js +17 -2
- package/es/index.d.ts +11 -3
- package/es/index.js +14 -5
- package/libs/api/biz/navigation/close.d.ts +1 -0
- package/libs/api/biz/util/screen.d.ts +15 -0
- package/libs/api/biz/util/screen.js +28 -0
- package/libs/api/biz/util/topicEvent.d.ts +13 -0
- package/libs/api/biz/util/topicEvent.js +40 -0
- package/libs/api/biz/util/weeklyRead.d.ts +5 -0
- package/libs/api/biz/util/weeklyRead.js +36 -0
- package/libs/api/device/notification/hidePreloader.d.ts +6 -1
- package/libs/api/device/notification/hidePreloader.js +17 -1
- package/libs/api/device/notification/showPreloader.d.ts +10 -1
- package/libs/api/device/notification/showPreloader.js +17 -1
- package/libs/index.d.ts +11 -3
- package/libs/index.js +48 -1
- package/package.json +1 -1
- package/dist/yach_jssdk_4.4.1-beta9.js +0 -1
|
@@ -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.4.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=/Yachtest/.test(n)&&e,u=o.notInYach;return t&&(u=o.ios),i&&(u=o.android),r&&(u=o.pc),{platform:u,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:"*",env:c?"test":"online"}}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 Go})),t.d(e,"sdkVersion",(function(){return Ko})),t.d(e,"env",(function(){return $o})),t.d(e,"platform",(function(){return Xo})),t.d(e,"platformV2",(function(){return Zo})),t.d(e,"config",(function(){return Qo})),t.d(e,"ready",(function(){return ni})),t.d(e,"error",(function(){return ei})),t.d(e,"on",(function(){return ti})),t.d(e,"off",(function(){return oi})),t.d(e,"openLink",(function(){return _})),t.d(e,"feedback",(function(){return N})),t.d(e,"open",(function(){return L})),t.d(e,"openSlidePanel",(function(){return H})),t.d(e,"share",(function(){return Y})),t.d(e,"previewFile",(function(){return q})),t.d(e,"previewImage",(function(){return G})),t.d(e,"downloadFile",(function(){return K})),t.d(e,"uploadAttachment",(function(){return $})),t.d(e,"clipboardFileUpload",(function(){return X})),t.d(e,"proxy",(function(){return Z})),t.d(e,"datepicker",(function(){return nn})),t.d(e,"scan",(function(){return rn})),t.d(e,"chosen",(function(){return pn})),t.d(e,"openSingleWebview",(function(){return fn})),t.d(e,"getSingleWebviewData",(function(){return vn})),t.d(e,"injectScript",(function(){return mn})),t.d(e,"closeWindow",(function(){return hn})),t.d(e,"showCallMenu",(function(){return wo})),t.d(e,"call",(function(){return ko})),t.d(e,"setIcon",(function(){return ye})),t.d(e,"setTitle",(function(){return ke})),t.d(e,"setMenu",(function(){return ze})),t.d(e,"close",(function(){return Ce})),t.d(e,"replacePage",(function(){return Te})),t.d(e,"quit",(function(){return Me})),t.d(e,"setRight",(function(){return Ae})),t.d(e,"setTitleExpandIcon",(function(){return De})),t.d(e,"updateExpandTitle",(function(){return Oe})),t.d(e,"setLeft",(function(){return Be})),t.d(e,"goBack",(function(){return _e})),t.d(e,"complexPicker",(function(){return Ge})),t.d(e,"departmentsPicker",(function(){return Ke})),t.d(e,"groupComplexPicker",(function(){return $e})),t.d(e,"chooseConversationByCorpId",(function(){return Xe})),t.d(e,"pickConversation",(function(){return Qe})),t.d(e,"openSingleChat",(function(){return nt})),t.d(e,"openTeamChat",(function(){return et})),t.d(e,"openSquad",(function(){return tt})),t.d(e,"sendP2PMsg",(function(){return ot})),t.d(e,"mapView",(function(){return sn})),t.d(e,"multipointView",(function(){return un})),t.d(e,"requestAuthCode",(function(){return lt})),t.d(e,"createTab",(function(){return rt})),t.d(e,"weeklyShare",(function(){return st})),t.d(e,"fullScreen",(function(){return ut})),t.d(e,"exitFullScreen",(function(){return pt})),t.d(e,"showPreloader",(function(){return mt})),t.d(e,"showCustomOverlayContent",(function(){return gt})),t.d(e,"hidePreloader",(function(){return wt})),t.d(e,"hideCustomOverlayContent",(function(){return yt})),t.d(e,"vibrate",(function(){return Pt})),t.d(e,"toast",(function(){return St})),t.d(e,"alert",(function(){return xt})),t.d(e,"confirm",(function(){return At})),t.d(e,"getPhoneInfo",(function(){return It})),t.d(e,"getUUID",(function(){return ao})),t.d(e,"checkStepPermission",(function(){return co})),t.d(e,"getGeolocation",(function(){return jt})),t.d(e,"getGeolocationSwitch",(function(){return Ot})),t.d(e,"getLang",(function(){return Vt})),t.d(e,"startRecord",(function(){return Bt})),t.d(e,"stopRecord",(function(){return _t})),t.d(e,"onRecordEnd",(function(){return Lt})),t.d(e,"downloadAudio",(function(){return Ht})),t.d(e,"playAudio",(function(){return Yt})),t.d(e,"pauseAudio",(function(){return Gt})),t.d(e,"stopAudio",(function(){return $t})),t.d(e,"onPlayEnd",(function(){return Zt})),t.d(e,"resumeAudio",(function(){return no})),t.d(e,"getNetworkType",(function(){return to})),t.d(e,"isAtTal",(function(){return io})),t.d(e,"webViewBounceDisable",(function(){return So})),t.d(e,"pullToRefreshEnable",(function(){return Co})),t.d(e,"pullToRefreshStop",(function(){return Io})),t.d(e,"pullToRefreshDisable",(function(){return xo})),t.d(e,"getItem",(function(){return Ao})),t.d(e,"setItem",(function(){return jo})),t.d(e,"removeItem",(function(){return Oo})),t.d(e,"writeLog",(function(){return Ro})),t.d(e,"flushLog",(function(){return Wo})),t.d(e,"remind",(function(){return wn})),t.d(e,"takePicture",(function(){return yn})),t.d(e,"datetimepicker",(function(){return tn})),t.d(e,"actionSheet",(function(){return Ct})),t.d(e,"webViewMessageSend",(function(){return Uo})),t.d(e,"talYoungFilesUpload",(function(){return Ho})),t.d(e,"openVideoPlayer",(function(){return Pn})),t.d(e,"openMediaFileDialog",(function(){return Sn})),t.d(e,"mediaFileUpload",(function(){return zn})),t.d(e,"invoice",(function(){return Cn})),t.d(e,"pushWorkMsg",(function(){return Tn})),t.d(e,"openTalYoungToTopic",(function(){return In})),t.d(e,"getToken",(function(){return xn})),t.d(e,"authStart",(function(){return An})),t.d(e,"authFinish",(function(){return jn})),t.d(e,"assistantCreate",(function(){return On})),t.d(e,"yachEvent",(function(){return Rn})),t.d(e,"topicEvent",(function(){return Wn})),t.d(e,"openTogetherEyeWebview",(function(){return Nn})),t.d(e,"getTogetherConfig",(function(){return Un})),t.d(e,"rouseApp",(function(){return Hn})),t.d(e,"externalLinkPreviewFile",(function(){return Jn})),t.d(e,"savePic",(function(){return Kn})),t.d(e,"zfbAuth",(function(){return qn})),t.d(e,"complain",(function(){return $n})),t.d(e,"onRecordEnd_v2",(function(){return po})),t.d(e,"startRecord_v2",(function(){return fo})),t.d(e,"stopRecord_v2",(function(){return mo})),t.d(e,"selectDepartment",(function(){return Xn})),t.d(e,"setWindowBig",(function(){return Le})),t.d(e,"tencentMeeting",(function(){return Ue})),t.d(e,"tencentMeetingBegin",(function(){return He})),t.d(e,"createModifySchedule",(function(){return Qn})),t.d(e,"onlineDocmentOpenTeamChat",(function(){return oe})),t.d(e,"entergroupCheck",(function(){return re})),t.d(e,"resetSessionUnread",(function(){return se})),t.d(e,"weeklyRead",(function(){return ue})),t.d(e,"openFutureGroup",(function(){return fe})),t.d(e,"knowledgeBaseSelect",(function(){return me})),t.d(e,"setLight",(function(){return ho})),t.d(e,"openUserSchedule",(function(){return ee})),t.d(e,"disableScreenCapture",(function(){return pe})),t.d(e,"setPanGestureEnable",(function(){return qe})),t.d(e,"addAppToNav",(function(){return Yo})),t.d(e,"capturePage",(function(){return No})),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().env,t=i().version,o=Date.now(),s=a({group:"yach",project:"yach_31_jssdk",env:e,version:t,timestamp:o},n);console.log("jssdk 项目 bpit 上报数据:",s),r(s)}var c={log:function(){},warn:function(){},error:function(){}};if("undefined"!=typeof window&&window.console&&(c=window.console),"undefined"!=typeof document&&document.body){var u=document.createElement("iframe");u&&u.contentWindow&&u.contentWindow.console&&(u.style.display="none",document.body.appendChild(u),c=u.contentWindow.console)}var d=c.log.bind(c),p=(c.warn.bind(c),c.error.bind(c),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function l(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return d("%c Yach-jssdk log: ",p,n)}var f=function(n,e){var t=m(n),o=m(e),i=t.pop(),r=o.pop(),a=w(t,o);return 0!==a?a:i&&r?w(i.split("."),r.split(".")):i||r?i?-1:1:0},v=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,m=function(n){if("string"!=typeof n)throw new TypeError("Invalid argument expected string");var e=n.match(v);if(!e)throw new Error("Invalid argument not valid semver ('"+n+"' received)");return e.shift(),e},g=function(n){return"*"===n||"x"===n||"X"===n},h=function(n){var e=parseInt(n,10);return isNaN(e)?n:e},b=function(n,e){if(g(n)||g(e))return 0;var t=function(n,e){return typeof n!=typeof e?[String(n),String(e)]:[n,e]}(h(n),h(e)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},w=function(n,e){for(var t=0;t<Math.max(n.length,e.length);t++){var o=b(n[t]||"0",e[t]||"0");if(0!==o)return o}return 0},y={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},k=(Object.keys(y),t(0)),P=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:k.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(f(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(e){l("SDK 返回结果成功 ",{method:n,params:r,result:e})})).catch((function(e){l("SDK 返回结果失败",{method:n,params:r,error:e})}))})).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}(),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},C=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=void 0===s?{}:s,u=e.code,d=e.message,p=e.msg;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,c);break;case"zoomInClick":var l=document.documentElement.scrollTop||document.body.scrollTop,f=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:l,url:f,title:c&&c.title}})):window.sendToHost(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:l,url:f,title:c&&c.title}}))}else if("response"===o){var v=n.getPending(a);v&&v.receiveResponse({data:c,code:u,message:d||p||c.msg||c.message}),-3!=u&&n.deletePending(a)}},this.init=function(){window.addEventListener("message",(function(e){l("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 I(n){return T.get(n)||"onFail"}var M=function(){return(M=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)},x=function(n,e){return new Promise((function(t,o){return C.invokeAPI(n,e,(function(i){var r=i.data,a=i.code,c=i.message,u=parseInt(a),d=I(u),p=e[d];if(l("SDK执行后回调,相关参数 ",{method:n,param:e,data:r,_code:u,message:c,callbackFun:p}),"onFail"!==d)"function"==typeof p&&p(r||c),t({_code:u,message:c,data:r});else{if(s({method:n,errorcode:u,message:c||JSON.stringify(r)||"SDK执行失败回调,相关参数"}),"function"==typeof p){console.log("wenai-code",a,u);var f="[object Object]"===Object.prototype.toString.call(r)?M(M({},r),{code:a,message:c}):{data:r,code:a,message:c};p(c?f:r)}o({_code:u,message:c,data:r})}}))}))},F=function(){return(F=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=F({},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=I(d),f=i[p];if(l("SDK执行后回调,相关参数 ",{method:n,param:e,data:u,_code:d,message:c,callbackFun:f}),"onFail"===p)return s({method:n,errorcode:d,message:c||JSON.stringify(u)||"SDK执行失败回调,相关参数"}),"function"==typeof f&&f(c?{code:a,message:c}:u),void o({_code:d,message:c,data:u});"function"==typeof f&&f(u||c),t({_code:d,message:c,data:u})}))}))}))},j=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])}}},O=i(),V=O.platform,R=new P(O);!function(){var n=this,e={platform:V,authMethod:"config",bridgeInit:"pc"===V?function(){return j(n,void 0,void 0,(function(){return D(this,(function(n){return C.init(),[2,x]}))}))}:function(){return new Promise((function(n,e){A((function(e){l("注册resume事件 "),e.registerHandler("resume",(function(n){l("resume监听到回调,相关参数 ",{resData:n}),S.execEvent("resume",n)})),l("注册unreadMsgAction事件 "),e.registerHandler("unreadMsgAction",(function(n){l("unreadMsgAction监听到回调,相关参数 ",{resData:n}),S.execEvent("unreadMsgAction",n)})),l("注册webViewMsgReceive事件 "),e.registerHandler("webViewMsgReceive",(function(n){l("webViewMsgReceive监听到回调,相关参数 ",{resData:n}),S.execEvent("webViewMsgReceive",n)})),e.registerHandler("pushWorkMsg",(function(n){l("pushWorkMsg监听到回调,相关参数 ",{resData:n}),S.execEvent("pushWorkMsg",n)})),e.registerHandler("getTogetherCallback",(function(n){l("getTogetherCallback监听到回调,相关参数 ",{resData:n}),S.execEvent("getTogetherCallback",n)})),e.registerHandler("sendMsgCommon",(function(n){l("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)}}};R.setPlatform(e)}();var B={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var W=function(n,e){var t=e.params,o=void 0===t?{}:t,i=e.platform,r=void 0===i?B:i;R.setAPI(n,r),R.invokeAPI(n,o)};function _(n){W("biz.util.openLink",{params:n})}function N(n){W("biz.util.feedback",{params:n})}function L(n){W("biz.util.open",{params:n})}var U={pc:{vs:"0.0.0"}};function H(n){W("biz.util.openSlidePanel",{params:n,platform:U})}var J={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Y(n){W("biz.util.share",{params:n,platform:J})}function q(n){W("biz.util.previewFile",{params:n})}function G(n){W("biz.util.previewImage",{params:n})}function K(n){W("biz.util.downloadFile",{params:n})}function $(n){W("biz.util.uploadAttachment",{params:n})}function X(n){W("biz.util.clipboardFileUpload",{params:n})}function Z(n){W("biz.util.proxy",{params:n})}var Q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function nn(n){W("biz.util.datepicker",{params:n,platform:Q})}var en={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function tn(n){W("biz.util.datetimepicker",{params:n,platform:en})}var on={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function rn(n){W("biz.util.scan",{params:n,platform:on})}var an={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function sn(n){W("biz.map.view",{params:n,platform:an})}var cn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function un(n){W("biz.map.multipointView",{params:n,platform:cn})}var dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function pn(n){W("biz.util.chosen",{params:n,platform:dn})}var ln={pc:{vs:"0.0.0"}};function fn(n){W("biz.util.openSingleWebview",{params:n,platform:ln})}function vn(n){W("biz.util.getSingleWebviewData",{params:n})}function mn(n){W("biz.util.injectScript",{params:n})}var gn={pc:{vs:"0.0.0"}};function hn(n){W("biz.util.closeWindow",{params:n,platform:gn})}var bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function wn(n){W("biz.util.remind",{params:n,platform:bn})}function yn(n){W("biz.util.takePicture",{params:n})}var kn={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pn(n){W("biz.util.openVideoPlayer",{params:n,platform:kn})}function Sn(n){W("biz.util.openMediaFileDialog",{params:n})}function zn(n){W("biz.util.mediaFileUpload",{params:n})}function Cn(n){W("biz.util.invoice",{params:n})}function Tn(n){W("biz.util.pushWorkMsg",{params:n})}function In(n){W("biz.util.openTalYoungToTopic",{params:n})}var Mn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xn(n){W("biz.util.getToken",{params:n,platform:Mn})}var Fn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function An(n){W("biz.util.authStart",{params:n,platform:Fn})}var En={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jn(n){W("biz.util.authFinish",{params:n,platform:En})}var Dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function On(n){W("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 Rn(n){W("biz.util.yachEvent",{params:n,platform:Vn})}var Bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Wn(n){W("biz.util.topicEvent",{params:n,platform:Bn})}var _n={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Nn(n){W("biz.util.openTogetherEyeWebview",{params:n,platform:_n})}var Ln={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Un(n){W("biz.util.getTogetherConfig",{params:n,platform:Ln})}function Hn(n){W("biz.util.rouseApp",{params:n})}function Jn(n){W("biz.util.externalLinkPreviewFile",{params:n})}var Yn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function qn(n){W("biz.util.zfbAuth",{params:n,platform:Yn})}var Gn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Kn(n){W("biz.util.savePic",{params:n,platform:Gn})}function $n(n){W("biz.util.complain",{params:n})}function Xn(n){W("biz.util.selectDepartment",{params:n})}var Zn={pc:{vs:"0.0.0"}};function Qn(n){W("biz.util.createModifySchedule",{params:n,platform:Zn})}var ne={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function ee(n){W("biz.util.openUserSchedule",{params:n,platform:ne})}var te={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function oe(n){W("onlineDocmentOpenTeamChat",{params:n,platform:te})}var ie={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function re(n){W("biz.util.entergroupCheck",{params:n,platform:ie})}var ae={pc:{vs:"1.8.0"}};function se(n){W("biz.util.resetSessionUnread",{params:n,platform:ae})}var ce={pc:{vs:"1.9.3.1"},ios:{vs:"1.9.3.1"},android:{vs:"1.9.3.1"}};function ue(n){W("biz.util.weeklyRead",{params:n,platform:ce})}var de={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function pe(n){W("biz.util.disableScreenCapture",{params:n,platform:de})}var le={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function fe(n){W("biz.util.openFutureGroup",{params:n,platform:le})}var ve={pc:{vs:"1.8.8"}};function me(n){W("biz.util.knowledgeBaseSelect",{params:n,platform:ve})}var ge=function(){return(ge=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 he(n){return function(e){return ge(ge({},n),e)}}var be=he({control:!0,showIcon:!0,iconIndex:1}),we={ios:{vs:"0.0.0",paramsDeal:be},android:{vs:"0.0.0",paramsDeal:be}};function ye(n){W("biz.navigation.setIcon",{params:n,platform:we})}function ke(n){W("biz.navigation.setTitle",{params:n})}var Pe=he({control:!0}),Se={ios:{vs:"0.0.0",paramsDeal:Pe},android:{vs:"0.0.0",paramsDeal:Pe}};function ze(n){W("biz.navigation.setMenu",{params:n,platform:Se})}function Ce(n){W("biz.navigation.close",{params:n})}function Te(n){W("biz.navigation.replace",{params:n})}var Ie={pc:{vs:"0.0.0"}};function Me(n){W("biz.navigation.quit",{params:n,platform:Ie})}var xe=he({show:!0,control:!1,text:""}),Fe={ios:{vs:"0.0.0",paramsDeal:xe},android:{vs:"0.0.0",paramsDeal:xe},pc:{vs:"0.0.0"}};function Ae(n){W("biz.navigation.setRight",{params:n,platform:Fe})}var Ee=he({control:!0}),je={ios:{vs:"0.0.0",paramsDeal:Ee},android:{vs:"0.0.0",paramsDeal:Ee}};function De(n){W("biz.navigation.setTitleExpandIcon",{params:n,platform:je})}function Oe(n){W("biz.navigation.updateExpandTitle",{params:n})}var Ve=he({show:!0,control:!1,text:""}),Re={ios:{vs:"0.0.0",paramsDeal:Ve},android:{vs:"0.0.0",paramsDeal:Ve},pc:{vs:"0.0.0"}};function Be(n){W("biz.navigation.setLeft",{params:n,platform:Re})}var We={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _e(n){W("biz.navigation.goBack",{params:n,platform:We})}var Ne={pc:{vs:"0.0.0"}};function Le(n){W("biz.navigation.setWindowBig",{params:n,platform:Ne})}function Ue(n){W("biz.navigation.tencentMeeting",{params:n})}function He(n){W("biz.navigation.tencentMeetingBegin",{params:n})}var Je=he({nativePanEnable:!0,webPanEnable:!0}),Ye={ios:{vs:"0.0.0",paramsDeal:Je},android:{vs:"0.0.0",paramsDeal:Je}};function qe(n){W("biz.navigation.setPanGestureEnable",{params:n,platform:Ye})}function Ge(n){W("biz.contact.complexPicker",{params:n})}function Ke(n){W("biz.contact.departmentsPicker",{params:n})}function $e(n){W("biz.group.groupComplexPicker",{params:n})}function Xe(n){W("biz.chat.chooseConversationByCorpId",{params:n})}var Ze={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Qe(n){W("biz.chat.pickConversation",{params:n,platform:Ze})}function nt(n){W("biz.chat.openSingleChat",{params:n})}function et(n){W("biz.chat.openTeamChat",{params:n})}function tt(n){W("biz.chat.openSquad",{params:n})}function ot(n){W("biz.chat.sendP2PMsg",{params:n})}var it={pc:{vs:"0.0.0"}};function rt(n){W("primary.createTab",{params:n,platform:it})}var at={pc:{vs:"0.0.0"}};function st(n){W("primary.weeklyShare",{params:n,platform:at})}var ct={pc:{vs:"0.0.0"}};function ut(n){W("primary.fullScreen",{params:n,platform:ct})}var dt={pc:{vs:"0.0.0"}};function pt(n){W("primary.exitFullScreen",{params:n,platform:dt})}function lt(n){W("runtime.permission.requestAuthCode",{params:n})}var ft={vs:"1.9.9"},vt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:ft};function mt(n){W("device.notification.showPreloader",{params:n,platform:vt})}function gt(n){W("device.notification.showCustomOverlayContent",{params:n,platform:{pc:ft}})}var ht={vs:"1.9.9"},bt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:ht};function wt(n){W("device.notification.hidePreloader",{params:n,platform:bt})}function yt(n){W("device.notification.hideCustomOverlayContent",{params:n,platform:{pc:ht}})}var kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pt(n){W("device.notification.vibrate",{params:n,platform:kt})}function St(n){W("device.notification.toast",{params:n})}var zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ct(n){W("device.notification.actionSheet",{params:n,platform:zt})}var Tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function It(n){W("device.base.getPhoneInfo",{params:n,platform:Tt})}var Mt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function xt(n){W("device.notification.alert",{params:n,platform:Mt})}var Ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function At(n){W("device.notification.confirm",{params:n,platform:Ft})}var Et={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jt(n){W("device.geolocation.get",{params:n,platform:Et})}var Dt={android:{vs:"0.0.0"}};function Ot(n){W("device.geolocation.getSwitch",{params:n,platform:Dt})}function Vt(n){W("device.system.getLang",{params:n})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bt(n){W("device.audio.startRecord",{params:n,platform:Rt})}var Wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _t(n){W("device.audio.stopRecord",{params:n,platform:Wt})}var Nt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Lt(n){W("device.audio.onRecordEnd",{params:n,platform:Nt})}var Ut={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ht(n){W("device.audio.download",{params:n,platform:Ut})}var Jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yt(n){W("device.audio.play",{params:n,platform:Jt})}var qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(n){W("device.audio.pause",{params:n,platform:qt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $t(n){W("device.audio.stop",{params:n,platform:Kt})}var Xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Zt(n){W("device.audio.onPlayEnd",{params:n,platform:Xt})}var Qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function no(n){W("device.audio.resume",{params:n,platform:Qt})}var eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function to(n){W("device.connection.getNetworkType",{params:n,platform:eo})}var oo={pc:{vs:"0.0.0"}};function io(n){W("device.connection.isAtTal",{params:n,platform:oo})}var ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function ao(n){W("device.base.getUUID",{params:n,platform:ro})}var so={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function co(n){W("device.base.checkStepPermission",{params:n,platform:so})}var uo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function po(n){W("device.audio.onRecordEnd_v2",{params:n,platform:uo})}var lo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fo(n){W("device.audio.startRecord_v2",{params:n,platform:lo})}var vo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mo(n){W("device.audio.stopRecord_v2",{params:n,platform:vo})}var go={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ho(n){W("device.system.setLight",{params:n,platform:go})}var bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wo(n){W("biz.telephone.showCallMenu",{params:n,platform:bo})}var yo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ko(n){W("biz.telephone.call",{params:n,platform:yo})}var Po={ios:{vs:"0.0.0"}};function So(n){W("ui.webViewBounce.disable",{params:n,platform:Po})}var zo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Co(n){W("ui.pullToRefresh.enable",{params:n,platform:zo})}var To={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Io(n){W("ui.pullToRefresh.stop",{params:n,platform:To})}var Mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xo(n){W("ui.pullToRefresh.disable",{params:n,platform:Mo})}var Fo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ao(n){W("util.domainStorage.getItem",{params:n,platform:Fo})}var Eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jo(n){W("util.domainStorage.setItem",{params:n,platform:Eo})}var Do={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Oo(n){W("util.domainStorage.removeItem",{params:n,platform:Do})}var Vo={pc:{vs:"1.7.0"}};function Ro(n){W("util.tool.writeLog",{params:n,platform:Vo})}var Bo={pc:{vs:"1.7.0"}};function Wo(n){W("util.tool.flushLog",{params:n,platform:Bo})}var _o={pc:{vs:"1.9.9"}};function No(n){W("biz.util.capturePage",{params:n,platform:_o})}var Lo={ios:{vs:"0.0.0"}};function Uo(n){W("biz.webViewMessage.send",{params:n,platform:Lo})}function Ho(n){W("app.custom.talYoungFilesUpload",{params:n})}var Jo={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function Yo(n){W("biz.util.addAppToNav",{params:n,platform:Jo})}console.log("add rouseApp ------------\x3e",Hn);var qo=R.exportSdk,Go=qo.version,Ko=qo.sdkVersion,$o=qo.env,Xo=qo.platform,Zo=qo.platformV2,Qo=qo.config,ni=qo.ready,ei=qo.error,ti=qo.on,oi=qo.off;e.default={version:Go,sdkVersion:Ko,env:$o,platform:Xo,platformV2:Zo,config:Qo,ready:ni,error:ei,on:ti,off:oi,biz:{util:{openLink:_,feedback:N,open:L,openSlidePanel:H,share:Y,previewFile:q,previewImage:G,downloadFile:K,uploadAttachment:$,clipboardFileUpload:X,proxy:Z,datepicker:nn,datetimepicker:tn,scan:rn,chosen:pn,openSingleWebview:fn,getSingleWebviewData:vn,injectScript:mn,onlineDocmentOpenTeamChat:oe,entergroupCheck:re,resetSessionUnread:se,weeklyRead:ue,openFutureGroup:fe,closeWindow:hn,remind:wn,takePicture:yn,openVideoPlayer:Pn,openMediaFileDialog:Sn,mediaFileUpload:zn,invoice:Cn,pushWorkMsg:Tn,openTalYoungToTopic:In,getToken:xn,authStart:An,authFinish:jn,assistantCreate:On,yachEvent:Rn,topicEvent:Wn,openTogetherEyeWebview:Nn,getTogetherConfig:Un,rouseApp:Hn,externalLinkPreviewFile:Jn,savePic:Kn,zfbAuth:qn,complain:$n,selectDepartment:Xn,createModifySchedule:Qn,openUserSchedule:ee,disableScreenCapture:pe,addAppToNav:Yo,knowledgeBaseSelect:me,capturePage:No},telephone:{showCallMenu:wo,call:ko},navigation:{setIcon:ye,setTitle:ke,setMenu:ze,close:Ce,replace:Te,quit:Me,setRight:Ae,setTitleExpandIcon:De,updateExpandTitle:Oe,setLeft:Be,goBack:_e,setWindowBig:Le,tencentMeeting:Ue,tencentMeetingBegin:He,setPanGestureEnable:qe},contact:{complexPicker:Ge,departmentsPicker:Ke},group:{groupComplexPicker:$e},chat:{chooseConversationByCorpId:Xe,pickConversation:Qe,openSingleChat:nt,openTeamChat:et,openSquad:tt,sendP2PMsg:ot},map:{view:sn,multipointView:un},webViewMessage:{send:Uo}},runtime:{permission:{requestAuthCode:lt}},primary:{createTab:rt,weeklyShare:st,fullScreen:ut,exitFullScreen:pt},device:{notification:{showPreloader:mt,showCustomOverlayContent:gt,hidePreloader:wt,hideCustomOverlayContent:yt,vibrate:Pt,toast:St,alert:xt,confirm:At,actionSheet:Ct},base:{getPhoneInfo:It,getUUID:ao,checkStepPermission:co},geolocation:{get:jt,getSwitch:Ot},system:{getLang:Vt,setLight:ho},audio:{startRecord:Bt,stopRecord:_t,onRecordEnd:Lt,download:Ht,play:Yt,pause:Gt,stop:$t,onPlayEnd:Zt,resume:no,onRecordEnd_v2:po,startRecord_v2:fo,stopRecord_v2:mo},connection:{getNetworkType:to,isAtTal:io}},ui:{webViewBounce:{disable:So},pullToRefresh:{enable:Co,stop:Io,disable:xo}},util:{domainStorage:{getItem:Ao,setItem:jo,removeItem:Oo},tool:{writeLog:Ro,flushLog:Wo}},app:{custom:{talYoungFilesUpload:Ho}}}}]).default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IUtilCapturePageParams {
|
|
3
|
+
rect?: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
onSuccess?: () => {
|
|
10
|
+
base64: string;
|
|
11
|
+
};
|
|
12
|
+
onFail?: (err: IError) => void;
|
|
13
|
+
}
|
|
14
|
+
declare function capturePage(params: IUtilCapturePageParams): void;
|
|
15
|
+
export { capturePage };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import initAPI from '../../initAPI';
|
|
2
|
+
var apiName = 'biz.util.capturePage';
|
|
3
|
+
var pc = {
|
|
4
|
+
vs: '1.9.9'
|
|
5
|
+
};
|
|
6
|
+
var platform = {
|
|
7
|
+
pc: pc
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
function capturePage(params) {
|
|
11
|
+
initAPI(apiName, {
|
|
12
|
+
params: params,
|
|
13
|
+
platform: platform
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { capturePage };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilTopicEventParams {
|
|
3
|
+
eventName: string;
|
|
4
|
+
data: any;
|
|
5
|
+
onSuccess?: (res: any) => void;
|
|
6
|
+
onFail?: (err: IError) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 话题群 公共事件
|
|
10
|
+
* @param params
|
|
11
|
+
*/
|
|
12
|
+
declare function topicEvent(params: IBizUtilTopicEventParams): void;
|
|
13
|
+
export { topicEvent };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import initAPI from '../../initAPI';
|
|
2
|
+
var apiName = 'biz.util.topicEvent';
|
|
3
|
+
var ios = {
|
|
4
|
+
vs: '0.0.0'
|
|
5
|
+
};
|
|
6
|
+
var android = {
|
|
7
|
+
vs: '0.0.0'
|
|
8
|
+
};
|
|
9
|
+
var pc = {
|
|
10
|
+
vs: '0.0.0'
|
|
11
|
+
};
|
|
12
|
+
var platform = {
|
|
13
|
+
ios: ios,
|
|
14
|
+
android: android,
|
|
15
|
+
pc: pc
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 话题群 公共事件
|
|
19
|
+
* @param params
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
function topicEvent(params) {
|
|
23
|
+
initAPI(apiName, {
|
|
24
|
+
params: params,
|
|
25
|
+
platform: platform
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { topicEvent };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import initAPI from '../../initAPI';
|
|
2
|
+
var ios = {
|
|
3
|
+
vs: '1.9.3.1'
|
|
4
|
+
};
|
|
5
|
+
var android = {
|
|
6
|
+
vs: '1.9.3.1'
|
|
7
|
+
};
|
|
8
|
+
var pc = {
|
|
9
|
+
vs: '1.9.3.1'
|
|
10
|
+
};
|
|
11
|
+
var platform = {
|
|
12
|
+
pc: pc,
|
|
13
|
+
ios: ios,
|
|
14
|
+
android: android
|
|
15
|
+
};
|
|
16
|
+
var apiName = 'biz.util.weeklyRead';
|
|
17
|
+
|
|
18
|
+
function weeklyRead(params) {
|
|
19
|
+
initAPI(apiName, {
|
|
20
|
+
params: params,
|
|
21
|
+
platform: platform
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { weeklyRead };
|
|
@@ -4,4 +4,9 @@ export interface IDeviceNotificationHidePreloaderParams {
|
|
|
4
4
|
onFail?: (err: IError) => void;
|
|
5
5
|
}
|
|
6
6
|
declare function hidePreloader(params?: IDeviceNotificationHidePreloaderParams): void;
|
|
7
|
-
|
|
7
|
+
interface IDeviceNotificationHideCustomPreloaderParams {
|
|
8
|
+
onSuccess?: () => void;
|
|
9
|
+
onFail?: (err: IError) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function hideCustomOverlayContent(params?: IDeviceNotificationHideCustomPreloaderParams): void;
|
|
12
|
+
export { hidePreloader, hideCustomOverlayContent };
|
|
@@ -6,9 +6,13 @@ var ios = {
|
|
|
6
6
|
var android = {
|
|
7
7
|
vs: '0.0.0'
|
|
8
8
|
};
|
|
9
|
+
var pc = {
|
|
10
|
+
vs: '1.9.9'
|
|
11
|
+
};
|
|
9
12
|
var platform = {
|
|
10
13
|
ios: ios,
|
|
11
|
-
android: android
|
|
14
|
+
android: android,
|
|
15
|
+
pc: pc
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
function hidePreloader(params) {
|
|
@@ -18,4 +22,15 @@ function hidePreloader(params) {
|
|
|
18
22
|
});
|
|
19
23
|
}
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
var apiNameCustom = 'device.notification.hideCustomOverlayContent';
|
|
26
|
+
|
|
27
|
+
function hideCustomOverlayContent(params) {
|
|
28
|
+
initAPI(apiNameCustom, {
|
|
29
|
+
params: params,
|
|
30
|
+
platform: {
|
|
31
|
+
pc: pc
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { hidePreloader, hideCustomOverlayContent };
|
|
@@ -2,8 +2,17 @@ import { IError } from '../../common.typings';
|
|
|
2
2
|
export interface IDeviceNotificationShowPreloaderParams {
|
|
3
3
|
text?: string;
|
|
4
4
|
showIcon?: boolean;
|
|
5
|
+
showCancel?: boolean;
|
|
5
6
|
onSuccess?: () => void;
|
|
6
7
|
onFail?: (err: IError) => void;
|
|
7
8
|
}
|
|
8
9
|
declare function showPreloader(params?: IDeviceNotificationShowPreloaderParams): void;
|
|
9
|
-
|
|
10
|
+
interface IDeviceNotificationShowCustomPreloaderParams {
|
|
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 };
|
|
@@ -6,9 +6,13 @@ var ios = {
|
|
|
6
6
|
var android = {
|
|
7
7
|
vs: '0.0.0'
|
|
8
8
|
};
|
|
9
|
+
var pc = {
|
|
10
|
+
vs: '1.9.9'
|
|
11
|
+
};
|
|
9
12
|
var platform = {
|
|
10
13
|
ios: ios,
|
|
11
|
-
android: android
|
|
14
|
+
android: android,
|
|
15
|
+
pc: pc
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
function showPreloader(params) {
|
|
@@ -18,4 +22,15 @@ function showPreloader(params) {
|
|
|
18
22
|
});
|
|
19
23
|
}
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
var apiNameCustom = 'device.notification.showCustomOverlayContent';
|
|
26
|
+
|
|
27
|
+
function showCustomOverlayContent(params) {
|
|
28
|
+
initAPI(apiNameCustom, {
|
|
29
|
+
params: params,
|
|
30
|
+
platform: {
|
|
31
|
+
pc: pc
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { showPreloader, showCustomOverlayContent };
|
package/es/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { authStart } from './api/biz/util/authStart';
|
|
|
33
33
|
import { authFinish } from './api/biz/util/authFinish';
|
|
34
34
|
import { assistantCreate } from './api/biz/util/assistantCreate';
|
|
35
35
|
import { yachEvent } from './api/biz/util/yachEvent';
|
|
36
|
+
import { topicEvent } from './api/biz/util/topicEvent';
|
|
36
37
|
import { openTogetherEyeWebview } from './api/biz/util/openTogetherEyeWebview';
|
|
37
38
|
import { getTogetherConfig } from './api/biz/util/getTogetherConfig';
|
|
38
39
|
import { rouseApp } from './api/biz/util/rouseApp';
|
|
@@ -46,6 +47,7 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
|
|
|
46
47
|
import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
|
|
47
48
|
import { entergroupCheck } from './api/biz/util/entergroupCheck';
|
|
48
49
|
import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
|
|
50
|
+
import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
49
51
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
50
52
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
51
53
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
@@ -83,8 +85,8 @@ import { fullScreen } from './api/primary/fullScreen';
|
|
|
83
85
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
84
86
|
import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
|
|
85
87
|
/** device */
|
|
86
|
-
import { showPreloader } from './api/device/notification/showPreloader';
|
|
87
|
-
import { hidePreloader } from './api/device/notification/hidePreloader';
|
|
88
|
+
import { showPreloader, showCustomOverlayContent } from './api/device/notification/showPreloader';
|
|
89
|
+
import { hidePreloader, hideCustomOverlayContent } from './api/device/notification/hidePreloader';
|
|
88
90
|
import { vibrate } from './api/device/notification/vibrate';
|
|
89
91
|
import { toast } from './api/device/notification/toast';
|
|
90
92
|
import { actionSheet } from './api/device/notification/actionSheet';
|
|
@@ -124,11 +126,12 @@ import { setItem } from './api/util/domainStorage/setItem';
|
|
|
124
126
|
import { removeItem } from './api/util/domainStorage/removeItem';
|
|
125
127
|
import { writeLog } from './api/util/tool/log';
|
|
126
128
|
import { flushLog } from './api/util/tool/flushLog';
|
|
129
|
+
import { capturePage } from './api/biz/util/screen';
|
|
127
130
|
import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
128
131
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
129
132
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
130
133
|
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;
|
|
131
|
-
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, hidePreloader, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, openFutureGroup, knowledgeBaseSelect, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, };
|
|
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, };
|
|
132
135
|
declare const _default: {
|
|
133
136
|
version: string;
|
|
134
137
|
sdkVersion: string;
|
|
@@ -163,6 +166,7 @@ declare const _default: {
|
|
|
163
166
|
onlineDocmentOpenTeamChat: typeof onlineDocmentOpenTeamChat;
|
|
164
167
|
entergroupCheck: typeof entergroupCheck;
|
|
165
168
|
resetSessionUnread: typeof resetSessionUnread;
|
|
169
|
+
weeklyRead: typeof weeklyRead;
|
|
166
170
|
openFutureGroup: typeof openFutureGroup;
|
|
167
171
|
closeWindow: typeof closeWindow;
|
|
168
172
|
remind: typeof remind;
|
|
@@ -178,6 +182,7 @@ declare const _default: {
|
|
|
178
182
|
authFinish: typeof authFinish;
|
|
179
183
|
assistantCreate: typeof assistantCreate;
|
|
180
184
|
yachEvent: typeof yachEvent;
|
|
185
|
+
topicEvent: typeof topicEvent;
|
|
181
186
|
openTogetherEyeWebview: typeof openTogetherEyeWebview;
|
|
182
187
|
getTogetherConfig: typeof getTogetherConfig;
|
|
183
188
|
rouseApp: typeof rouseApp;
|
|
@@ -191,6 +196,7 @@ declare const _default: {
|
|
|
191
196
|
disableScreenCapture: typeof disableScreenCapture;
|
|
192
197
|
addAppToNav: typeof addAppToNav;
|
|
193
198
|
knowledgeBaseSelect: typeof knowledgeBaseSelect;
|
|
199
|
+
capturePage: typeof capturePage;
|
|
194
200
|
};
|
|
195
201
|
telephone: {
|
|
196
202
|
showCallMenu: typeof showCallMenu;
|
|
@@ -250,7 +256,9 @@ declare const _default: {
|
|
|
250
256
|
device: {
|
|
251
257
|
notification: {
|
|
252
258
|
showPreloader: typeof showPreloader;
|
|
259
|
+
showCustomOverlayContent: typeof showCustomOverlayContent;
|
|
253
260
|
hidePreloader: typeof hidePreloader;
|
|
261
|
+
hideCustomOverlayContent: typeof hideCustomOverlayContent;
|
|
254
262
|
vibrate: typeof vibrate;
|
|
255
263
|
toast: typeof toast;
|
|
256
264
|
alert: typeof alert;
|
package/es/index.js
CHANGED
|
@@ -37,6 +37,7 @@ import { authStart } from './api/biz/util/authStart';
|
|
|
37
37
|
import { authFinish } from './api/biz/util/authFinish';
|
|
38
38
|
import { assistantCreate } from './api/biz/util/assistantCreate';
|
|
39
39
|
import { yachEvent } from './api/biz/util/yachEvent';
|
|
40
|
+
import { topicEvent } from './api/biz/util/topicEvent';
|
|
40
41
|
import { openTogetherEyeWebview } from './api/biz/util/openTogetherEyeWebview';
|
|
41
42
|
import { getTogetherConfig } from './api/biz/util/getTogetherConfig';
|
|
42
43
|
import { rouseApp } from './api/biz/util/rouseApp';
|
|
@@ -50,6 +51,7 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
|
|
|
50
51
|
import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
|
|
51
52
|
import { entergroupCheck } from './api/biz/util/entergroupCheck';
|
|
52
53
|
import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
|
|
54
|
+
import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
53
55
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
54
56
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
55
57
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
@@ -96,8 +98,8 @@ import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
|
96
98
|
import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
|
|
97
99
|
/** device */
|
|
98
100
|
|
|
99
|
-
import { showPreloader } from './api/device/notification/showPreloader';
|
|
100
|
-
import { hidePreloader } from './api/device/notification/hidePreloader';
|
|
101
|
+
import { showPreloader, showCustomOverlayContent } from './api/device/notification/showPreloader';
|
|
102
|
+
import { hidePreloader, hideCustomOverlayContent } from './api/device/notification/hidePreloader';
|
|
101
103
|
import { vibrate } from './api/device/notification/vibrate';
|
|
102
104
|
import { toast } from './api/device/notification/toast';
|
|
103
105
|
import { actionSheet } from './api/device/notification/actionSheet';
|
|
@@ -140,7 +142,9 @@ import { setItem } from './api/util/domainStorage/setItem';
|
|
|
140
142
|
import { removeItem } from './api/util/domainStorage/removeItem'; // log
|
|
141
143
|
|
|
142
144
|
import { writeLog } from './api/util/tool/log';
|
|
143
|
-
import { flushLog } from './api/util/tool/flushLog';
|
|
145
|
+
import { flushLog } from './api/util/tool/flushLog'; // screen
|
|
146
|
+
|
|
147
|
+
import { capturePage } from './api/biz/util/screen';
|
|
144
148
|
import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
145
149
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
146
150
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
@@ -156,7 +160,7 @@ var _yachSdk$exportSdk = yachSdk.exportSdk,
|
|
|
156
160
|
error = _yachSdk$exportSdk.error,
|
|
157
161
|
on = _yachSdk$exportSdk.on,
|
|
158
162
|
off = _yachSdk$exportSdk.off;
|
|
159
|
-
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, hidePreloader, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, openFutureGroup, knowledgeBaseSelect, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav };
|
|
163
|
+
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 };
|
|
160
164
|
export default {
|
|
161
165
|
version: version,
|
|
162
166
|
sdkVersion: sdkVersion,
|
|
@@ -191,6 +195,7 @@ export default {
|
|
|
191
195
|
onlineDocmentOpenTeamChat: onlineDocmentOpenTeamChat,
|
|
192
196
|
entergroupCheck: entergroupCheck,
|
|
193
197
|
resetSessionUnread: resetSessionUnread,
|
|
198
|
+
weeklyRead: weeklyRead,
|
|
194
199
|
openFutureGroup: openFutureGroup,
|
|
195
200
|
closeWindow: closeWindow,
|
|
196
201
|
remind: remind,
|
|
@@ -206,6 +211,7 @@ export default {
|
|
|
206
211
|
authFinish: authFinish,
|
|
207
212
|
assistantCreate: assistantCreate,
|
|
208
213
|
yachEvent: yachEvent,
|
|
214
|
+
topicEvent: topicEvent,
|
|
209
215
|
openTogetherEyeWebview: openTogetherEyeWebview,
|
|
210
216
|
getTogetherConfig: getTogetherConfig,
|
|
211
217
|
rouseApp: rouseApp,
|
|
@@ -218,7 +224,8 @@ export default {
|
|
|
218
224
|
openUserSchedule: openUserSchedule,
|
|
219
225
|
disableScreenCapture: disableScreenCapture,
|
|
220
226
|
addAppToNav: addAppToNav,
|
|
221
|
-
knowledgeBaseSelect: knowledgeBaseSelect
|
|
227
|
+
knowledgeBaseSelect: knowledgeBaseSelect,
|
|
228
|
+
capturePage: capturePage
|
|
222
229
|
},
|
|
223
230
|
telephone: {
|
|
224
231
|
showCallMenu: showCallMenu,
|
|
@@ -278,7 +285,9 @@ export default {
|
|
|
278
285
|
device: {
|
|
279
286
|
notification: {
|
|
280
287
|
showPreloader: showPreloader,
|
|
288
|
+
showCustomOverlayContent: showCustomOverlayContent,
|
|
281
289
|
hidePreloader: hidePreloader,
|
|
290
|
+
hideCustomOverlayContent: hideCustomOverlayContent,
|
|
282
291
|
vibrate: vibrate,
|
|
283
292
|
toast: toast,
|
|
284
293
|
alert: alert,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IUtilCapturePageParams {
|
|
3
|
+
rect?: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
onSuccess?: () => {
|
|
10
|
+
base64: string;
|
|
11
|
+
};
|
|
12
|
+
onFail?: (err: IError) => void;
|
|
13
|
+
}
|
|
14
|
+
declare function capturePage(params: IUtilCapturePageParams): void;
|
|
15
|
+
export { capturePage };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
exports.capturePage = capturePage;
|
|
12
|
+
|
|
13
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
+
|
|
15
|
+
var apiName = 'biz.util.capturePage';
|
|
16
|
+
var pc = {
|
|
17
|
+
vs: '1.9.9'
|
|
18
|
+
};
|
|
19
|
+
var platform = {
|
|
20
|
+
pc: pc
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
function capturePage(params) {
|
|
24
|
+
(0, _initAPI["default"])(apiName, {
|
|
25
|
+
params: params,
|
|
26
|
+
platform: platform
|
|
27
|
+
});
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface IBizUtilTopicEventParams {
|
|
3
|
+
eventName: string;
|
|
4
|
+
data: any;
|
|
5
|
+
onSuccess?: (res: any) => void;
|
|
6
|
+
onFail?: (err: IError) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 话题群 公共事件
|
|
10
|
+
* @param params
|
|
11
|
+
*/
|
|
12
|
+
declare function topicEvent(params: IBizUtilTopicEventParams): void;
|
|
13
|
+
export { topicEvent };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
exports.topicEvent = topicEvent;
|
|
12
|
+
|
|
13
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
+
|
|
15
|
+
var apiName = 'biz.util.topicEvent';
|
|
16
|
+
var ios = {
|
|
17
|
+
vs: '0.0.0'
|
|
18
|
+
};
|
|
19
|
+
var android = {
|
|
20
|
+
vs: '0.0.0'
|
|
21
|
+
};
|
|
22
|
+
var pc = {
|
|
23
|
+
vs: '0.0.0'
|
|
24
|
+
};
|
|
25
|
+
var platform = {
|
|
26
|
+
ios: ios,
|
|
27
|
+
android: android,
|
|
28
|
+
pc: pc
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* 话题群 公共事件
|
|
32
|
+
* @param params
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
function topicEvent(params) {
|
|
36
|
+
(0, _initAPI["default"])(apiName, {
|
|
37
|
+
params: params,
|
|
38
|
+
platform: platform
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
6
|
+
|
|
7
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
exports.weeklyRead = weeklyRead;
|
|
12
|
+
|
|
13
|
+
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
|
+
|
|
15
|
+
var ios = {
|
|
16
|
+
vs: '1.9.3.1'
|
|
17
|
+
};
|
|
18
|
+
var android = {
|
|
19
|
+
vs: '1.9.3.1'
|
|
20
|
+
};
|
|
21
|
+
var pc = {
|
|
22
|
+
vs: '1.9.3.1'
|
|
23
|
+
};
|
|
24
|
+
var platform = {
|
|
25
|
+
pc: pc,
|
|
26
|
+
ios: ios,
|
|
27
|
+
android: android
|
|
28
|
+
};
|
|
29
|
+
var apiName = 'biz.util.weeklyRead';
|
|
30
|
+
|
|
31
|
+
function weeklyRead(params) {
|
|
32
|
+
(0, _initAPI["default"])(apiName, {
|
|
33
|
+
params: params,
|
|
34
|
+
platform: platform
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -4,4 +4,9 @@ export interface IDeviceNotificationHidePreloaderParams {
|
|
|
4
4
|
onFail?: (err: IError) => void;
|
|
5
5
|
}
|
|
6
6
|
declare function hidePreloader(params?: IDeviceNotificationHidePreloaderParams): void;
|
|
7
|
-
|
|
7
|
+
interface IDeviceNotificationHideCustomPreloaderParams {
|
|
8
|
+
onSuccess?: () => void;
|
|
9
|
+
onFail?: (err: IError) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function hideCustomOverlayContent(params?: IDeviceNotificationHideCustomPreloaderParams): void;
|
|
12
|
+
export { hidePreloader, hideCustomOverlayContent };
|
|
@@ -9,6 +9,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
exports.hidePreloader = hidePreloader;
|
|
12
|
+
exports.hideCustomOverlayContent = hideCustomOverlayContent;
|
|
12
13
|
|
|
13
14
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
15
|
|
|
@@ -19,9 +20,13 @@ var ios = {
|
|
|
19
20
|
var android = {
|
|
20
21
|
vs: '0.0.0'
|
|
21
22
|
};
|
|
23
|
+
var pc = {
|
|
24
|
+
vs: '1.9.9'
|
|
25
|
+
};
|
|
22
26
|
var platform = {
|
|
23
27
|
ios: ios,
|
|
24
|
-
android: android
|
|
28
|
+
android: android,
|
|
29
|
+
pc: pc
|
|
25
30
|
};
|
|
26
31
|
|
|
27
32
|
function hidePreloader(params) {
|
|
@@ -29,4 +34,15 @@ function hidePreloader(params) {
|
|
|
29
34
|
params: params,
|
|
30
35
|
platform: platform
|
|
31
36
|
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var apiNameCustom = 'device.notification.hideCustomOverlayContent';
|
|
40
|
+
|
|
41
|
+
function hideCustomOverlayContent(params) {
|
|
42
|
+
(0, _initAPI["default"])(apiNameCustom, {
|
|
43
|
+
params: params,
|
|
44
|
+
platform: {
|
|
45
|
+
pc: pc
|
|
46
|
+
}
|
|
47
|
+
});
|
|
32
48
|
}
|
|
@@ -2,8 +2,17 @@ import { IError } from '../../common.typings';
|
|
|
2
2
|
export interface IDeviceNotificationShowPreloaderParams {
|
|
3
3
|
text?: string;
|
|
4
4
|
showIcon?: boolean;
|
|
5
|
+
showCancel?: boolean;
|
|
5
6
|
onSuccess?: () => void;
|
|
6
7
|
onFail?: (err: IError) => void;
|
|
7
8
|
}
|
|
8
9
|
declare function showPreloader(params?: IDeviceNotificationShowPreloaderParams): void;
|
|
9
|
-
|
|
10
|
+
interface IDeviceNotificationShowCustomPreloaderParams {
|
|
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,6 +9,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
exports.showPreloader = showPreloader;
|
|
12
|
+
exports.showCustomOverlayContent = showCustomOverlayContent;
|
|
12
13
|
|
|
13
14
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
14
15
|
|
|
@@ -19,9 +20,13 @@ var ios = {
|
|
|
19
20
|
var android = {
|
|
20
21
|
vs: '0.0.0'
|
|
21
22
|
};
|
|
23
|
+
var pc = {
|
|
24
|
+
vs: '1.9.9'
|
|
25
|
+
};
|
|
22
26
|
var platform = {
|
|
23
27
|
ios: ios,
|
|
24
|
-
android: android
|
|
28
|
+
android: android,
|
|
29
|
+
pc: pc
|
|
25
30
|
};
|
|
26
31
|
|
|
27
32
|
function showPreloader(params) {
|
|
@@ -29,4 +34,15 @@ function showPreloader(params) {
|
|
|
29
34
|
params: params,
|
|
30
35
|
platform: platform
|
|
31
36
|
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var apiNameCustom = 'device.notification.showCustomOverlayContent';
|
|
40
|
+
|
|
41
|
+
function showCustomOverlayContent(params) {
|
|
42
|
+
(0, _initAPI["default"])(apiNameCustom, {
|
|
43
|
+
params: params,
|
|
44
|
+
platform: {
|
|
45
|
+
pc: pc
|
|
46
|
+
}
|
|
47
|
+
});
|
|
32
48
|
}
|
package/libs/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { authStart } from './api/biz/util/authStart';
|
|
|
33
33
|
import { authFinish } from './api/biz/util/authFinish';
|
|
34
34
|
import { assistantCreate } from './api/biz/util/assistantCreate';
|
|
35
35
|
import { yachEvent } from './api/biz/util/yachEvent';
|
|
36
|
+
import { topicEvent } from './api/biz/util/topicEvent';
|
|
36
37
|
import { openTogetherEyeWebview } from './api/biz/util/openTogetherEyeWebview';
|
|
37
38
|
import { getTogetherConfig } from './api/biz/util/getTogetherConfig';
|
|
38
39
|
import { rouseApp } from './api/biz/util/rouseApp';
|
|
@@ -46,6 +47,7 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
|
|
|
46
47
|
import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
|
|
47
48
|
import { entergroupCheck } from './api/biz/util/entergroupCheck';
|
|
48
49
|
import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
|
|
50
|
+
import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
49
51
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
50
52
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
51
53
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
@@ -83,8 +85,8 @@ import { fullScreen } from './api/primary/fullScreen';
|
|
|
83
85
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
84
86
|
import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
|
|
85
87
|
/** device */
|
|
86
|
-
import { showPreloader } from './api/device/notification/showPreloader';
|
|
87
|
-
import { hidePreloader } from './api/device/notification/hidePreloader';
|
|
88
|
+
import { showPreloader, showCustomOverlayContent } from './api/device/notification/showPreloader';
|
|
89
|
+
import { hidePreloader, hideCustomOverlayContent } from './api/device/notification/hidePreloader';
|
|
88
90
|
import { vibrate } from './api/device/notification/vibrate';
|
|
89
91
|
import { toast } from './api/device/notification/toast';
|
|
90
92
|
import { actionSheet } from './api/device/notification/actionSheet';
|
|
@@ -124,11 +126,12 @@ import { setItem } from './api/util/domainStorage/setItem';
|
|
|
124
126
|
import { removeItem } from './api/util/domainStorage/removeItem';
|
|
125
127
|
import { writeLog } from './api/util/tool/log';
|
|
126
128
|
import { flushLog } from './api/util/tool/flushLog';
|
|
129
|
+
import { capturePage } from './api/biz/util/screen';
|
|
127
130
|
import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
128
131
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
129
132
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
130
133
|
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;
|
|
131
|
-
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, hidePreloader, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, openFutureGroup, knowledgeBaseSelect, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, };
|
|
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, };
|
|
132
135
|
declare const _default: {
|
|
133
136
|
version: string;
|
|
134
137
|
sdkVersion: string;
|
|
@@ -163,6 +166,7 @@ declare const _default: {
|
|
|
163
166
|
onlineDocmentOpenTeamChat: typeof onlineDocmentOpenTeamChat;
|
|
164
167
|
entergroupCheck: typeof entergroupCheck;
|
|
165
168
|
resetSessionUnread: typeof resetSessionUnread;
|
|
169
|
+
weeklyRead: typeof weeklyRead;
|
|
166
170
|
openFutureGroup: typeof openFutureGroup;
|
|
167
171
|
closeWindow: typeof closeWindow;
|
|
168
172
|
remind: typeof remind;
|
|
@@ -178,6 +182,7 @@ declare const _default: {
|
|
|
178
182
|
authFinish: typeof authFinish;
|
|
179
183
|
assistantCreate: typeof assistantCreate;
|
|
180
184
|
yachEvent: typeof yachEvent;
|
|
185
|
+
topicEvent: typeof topicEvent;
|
|
181
186
|
openTogetherEyeWebview: typeof openTogetherEyeWebview;
|
|
182
187
|
getTogetherConfig: typeof getTogetherConfig;
|
|
183
188
|
rouseApp: typeof rouseApp;
|
|
@@ -191,6 +196,7 @@ declare const _default: {
|
|
|
191
196
|
disableScreenCapture: typeof disableScreenCapture;
|
|
192
197
|
addAppToNav: typeof addAppToNav;
|
|
193
198
|
knowledgeBaseSelect: typeof knowledgeBaseSelect;
|
|
199
|
+
capturePage: typeof capturePage;
|
|
194
200
|
};
|
|
195
201
|
telephone: {
|
|
196
202
|
showCallMenu: typeof showCallMenu;
|
|
@@ -250,7 +256,9 @@ declare const _default: {
|
|
|
250
256
|
device: {
|
|
251
257
|
notification: {
|
|
252
258
|
showPreloader: typeof showPreloader;
|
|
259
|
+
showCustomOverlayContent: typeof showCustomOverlayContent;
|
|
253
260
|
hidePreloader: typeof hidePreloader;
|
|
261
|
+
hideCustomOverlayContent: typeof hideCustomOverlayContent;
|
|
254
262
|
vibrate: typeof vibrate;
|
|
255
263
|
toast: typeof toast;
|
|
256
264
|
alert: typeof alert;
|
package/libs/index.js
CHANGED
|
@@ -244,6 +244,13 @@ _Object$defineProperty(exports, "yachEvent", {
|
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
|
|
247
|
+
_Object$defineProperty(exports, "topicEvent", {
|
|
248
|
+
enumerable: true,
|
|
249
|
+
get: function get() {
|
|
250
|
+
return _topicEvent.topicEvent;
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
|
|
247
254
|
_Object$defineProperty(exports, "openTogetherEyeWebview", {
|
|
248
255
|
enumerable: true,
|
|
249
256
|
get: function get() {
|
|
@@ -335,6 +342,13 @@ _Object$defineProperty(exports, "resetSessionUnread", {
|
|
|
335
342
|
}
|
|
336
343
|
});
|
|
337
344
|
|
|
345
|
+
_Object$defineProperty(exports, "weeklyRead", {
|
|
346
|
+
enumerable: true,
|
|
347
|
+
get: function get() {
|
|
348
|
+
return _weeklyRead.weeklyRead;
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
|
|
338
352
|
_Object$defineProperty(exports, "disableScreenCapture", {
|
|
339
353
|
enumerable: true,
|
|
340
354
|
get: function get() {
|
|
@@ -566,6 +580,13 @@ _Object$defineProperty(exports, "showPreloader", {
|
|
|
566
580
|
}
|
|
567
581
|
});
|
|
568
582
|
|
|
583
|
+
_Object$defineProperty(exports, "showCustomOverlayContent", {
|
|
584
|
+
enumerable: true,
|
|
585
|
+
get: function get() {
|
|
586
|
+
return _showPreloader.showCustomOverlayContent;
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
|
|
569
590
|
_Object$defineProperty(exports, "hidePreloader", {
|
|
570
591
|
enumerable: true,
|
|
571
592
|
get: function get() {
|
|
@@ -573,6 +594,13 @@ _Object$defineProperty(exports, "hidePreloader", {
|
|
|
573
594
|
}
|
|
574
595
|
});
|
|
575
596
|
|
|
597
|
+
_Object$defineProperty(exports, "hideCustomOverlayContent", {
|
|
598
|
+
enumerable: true,
|
|
599
|
+
get: function get() {
|
|
600
|
+
return _hidePreloader.hideCustomOverlayContent;
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
|
|
576
604
|
_Object$defineProperty(exports, "vibrate", {
|
|
577
605
|
enumerable: true,
|
|
578
606
|
get: function get() {
|
|
@@ -832,6 +860,13 @@ _Object$defineProperty(exports, "flushLog", {
|
|
|
832
860
|
}
|
|
833
861
|
});
|
|
834
862
|
|
|
863
|
+
_Object$defineProperty(exports, "capturePage", {
|
|
864
|
+
enumerable: true,
|
|
865
|
+
get: function get() {
|
|
866
|
+
return _screen.capturePage;
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
|
|
835
870
|
_Object$defineProperty(exports, "webViewMessageSend", {
|
|
836
871
|
enumerable: true,
|
|
837
872
|
get: function get() {
|
|
@@ -925,6 +960,8 @@ var _assistantCreate = require("./api/biz/util/assistantCreate");
|
|
|
925
960
|
|
|
926
961
|
var _yachEvent = require("./api/biz/util/yachEvent");
|
|
927
962
|
|
|
963
|
+
var _topicEvent = require("./api/biz/util/topicEvent");
|
|
964
|
+
|
|
928
965
|
var _openTogetherEyeWebview = require("./api/biz/util/openTogetherEyeWebview");
|
|
929
966
|
|
|
930
967
|
var _getTogetherConfig = require("./api/biz/util/getTogetherConfig");
|
|
@@ -951,6 +988,8 @@ var _entergroupCheck = require("./api/biz/util/entergroupCheck");
|
|
|
951
988
|
|
|
952
989
|
var _resetSessionUnread = require("./api/biz/util/resetSessionUnread");
|
|
953
990
|
|
|
991
|
+
var _weeklyRead = require("./api/biz/util/weeklyRead");
|
|
992
|
+
|
|
954
993
|
var _disableScreenCapture = require("./api/biz/util/disableScreenCapture");
|
|
955
994
|
|
|
956
995
|
var _openFutureGroup = require("./api/biz/util/openFutureGroup");
|
|
@@ -1093,6 +1132,8 @@ var _log = require("./api/util/tool/log");
|
|
|
1093
1132
|
|
|
1094
1133
|
var _flushLog = require("./api/util/tool/flushLog");
|
|
1095
1134
|
|
|
1135
|
+
var _screen = require("./api/biz/util/screen");
|
|
1136
|
+
|
|
1096
1137
|
var _send = require("./api/biz/webViewMessage/send");
|
|
1097
1138
|
|
|
1098
1139
|
var _talYoungFilesUpload = require("./api/app/custom/talYoungFilesUpload");
|
|
@@ -1122,6 +1163,7 @@ var _addAppToNav = require("./api/biz/util/addAppToNav");
|
|
|
1122
1163
|
/** ui */
|
|
1123
1164
|
// demainStorage
|
|
1124
1165
|
// log
|
|
1166
|
+
// screen
|
|
1125
1167
|
console.log('add rouseApp ------------>', _rouseApp.rouseApp);
|
|
1126
1168
|
var _yachSdk$exportSdk = _lib.yachSdk.exportSdk,
|
|
1127
1169
|
version = _yachSdk$exportSdk.version,
|
|
@@ -1178,6 +1220,7 @@ var _default = {
|
|
|
1178
1220
|
onlineDocmentOpenTeamChat: _onlineDocmentOpenTeamChat.onlineDocmentOpenTeamChat,
|
|
1179
1221
|
entergroupCheck: _entergroupCheck.entergroupCheck,
|
|
1180
1222
|
resetSessionUnread: _resetSessionUnread.resetSessionUnread,
|
|
1223
|
+
weeklyRead: _weeklyRead.weeklyRead,
|
|
1181
1224
|
openFutureGroup: _openFutureGroup.openFutureGroup,
|
|
1182
1225
|
closeWindow: _closeWindow.closeWindow,
|
|
1183
1226
|
remind: _remind.remind,
|
|
@@ -1193,6 +1236,7 @@ var _default = {
|
|
|
1193
1236
|
authFinish: _authFinish.authFinish,
|
|
1194
1237
|
assistantCreate: _assistantCreate.assistantCreate,
|
|
1195
1238
|
yachEvent: _yachEvent.yachEvent,
|
|
1239
|
+
topicEvent: _topicEvent.topicEvent,
|
|
1196
1240
|
openTogetherEyeWebview: _openTogetherEyeWebview.openTogetherEyeWebview,
|
|
1197
1241
|
getTogetherConfig: _getTogetherConfig.getTogetherConfig,
|
|
1198
1242
|
rouseApp: _rouseApp.rouseApp,
|
|
@@ -1205,7 +1249,8 @@ var _default = {
|
|
|
1205
1249
|
openUserSchedule: _openUserSchedule.openUserSchedule,
|
|
1206
1250
|
disableScreenCapture: _disableScreenCapture.disableScreenCapture,
|
|
1207
1251
|
addAppToNav: _addAppToNav.addAppToNav,
|
|
1208
|
-
knowledgeBaseSelect: _knowledgeBaseSelect.knowledgeBaseSelect
|
|
1252
|
+
knowledgeBaseSelect: _knowledgeBaseSelect.knowledgeBaseSelect,
|
|
1253
|
+
capturePage: _screen.capturePage
|
|
1209
1254
|
},
|
|
1210
1255
|
telephone: {
|
|
1211
1256
|
showCallMenu: _showCallMenu.showCallMenu,
|
|
@@ -1265,7 +1310,9 @@ var _default = {
|
|
|
1265
1310
|
device: {
|
|
1266
1311
|
notification: {
|
|
1267
1312
|
showPreloader: _showPreloader.showPreloader,
|
|
1313
|
+
showCustomOverlayContent: _showPreloader.showCustomOverlayContent,
|
|
1268
1314
|
hidePreloader: _hidePreloader.hidePreloader,
|
|
1315
|
+
hideCustomOverlayContent: _hidePreloader.hideCustomOverlayContent,
|
|
1269
1316
|
vibrate: _vibrate.vibrate,
|
|
1270
1317
|
toast: _toast.toast,
|
|
1271
1318
|
alert: _alert.alert,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
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.4.1-beta9","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=/Yachtest/.test(n)&&e,u=o.notInYach;return t&&(u=o.ios),i&&(u=o.android),r&&(u=o.pc),{platform:u,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:"*",env:c?"test":"online"}}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 Wo})),t.d(e,"sdkVersion",(function(){return Ro})),t.d(e,"env",(function(){return _o})),t.d(e,"platform",(function(){return No})),t.d(e,"platformV2",(function(){return Lo})),t.d(e,"config",(function(){return Uo})),t.d(e,"ready",(function(){return Ho})),t.d(e,"error",(function(){return Jo})),t.d(e,"on",(function(){return Yo})),t.d(e,"off",(function(){return qo})),t.d(e,"openLink",(function(){return _})),t.d(e,"feedback",(function(){return N})),t.d(e,"open",(function(){return L})),t.d(e,"openSlidePanel",(function(){return H})),t.d(e,"share",(function(){return Y})),t.d(e,"previewFile",(function(){return q})),t.d(e,"previewImage",(function(){return G})),t.d(e,"downloadFile",(function(){return K})),t.d(e,"uploadAttachment",(function(){return $})),t.d(e,"clipboardFileUpload",(function(){return X})),t.d(e,"proxy",(function(){return Z})),t.d(e,"datepicker",(function(){return nn})),t.d(e,"scan",(function(){return rn})),t.d(e,"chosen",(function(){return pn})),t.d(e,"openSingleWebview",(function(){return fn})),t.d(e,"getSingleWebviewData",(function(){return vn})),t.d(e,"injectScript",(function(){return mn})),t.d(e,"closeWindow",(function(){return hn})),t.d(e,"showCallMenu",(function(){return po})),t.d(e,"call",(function(){return fo})),t.d(e,"setIcon",(function(){return ge})),t.d(e,"setTitle",(function(){return he})),t.d(e,"setMenu",(function(){return ye})),t.d(e,"close",(function(){return ke})),t.d(e,"replacePage",(function(){return Pe})),t.d(e,"quit",(function(){return ze})),t.d(e,"setRight",(function(){return Ce})),t.d(e,"setTitleExpandIcon",(function(){return Fe})),t.d(e,"updateExpandTitle",(function(){return Ae})),t.d(e,"setLeft",(function(){return De})),t.d(e,"goBack",(function(){return Oe})),t.d(e,"complexPicker",(function(){return He})),t.d(e,"departmentsPicker",(function(){return Je})),t.d(e,"groupComplexPicker",(function(){return Ye})),t.d(e,"chooseConversationByCorpId",(function(){return qe})),t.d(e,"pickConversation",(function(){return Ke})),t.d(e,"openSingleChat",(function(){return $e})),t.d(e,"openTeamChat",(function(){return Xe})),t.d(e,"openSquad",(function(){return Ze})),t.d(e,"sendP2PMsg",(function(){return Qe})),t.d(e,"mapView",(function(){return sn})),t.d(e,"multipointView",(function(){return un})),t.d(e,"requestAuthCode",(function(){return ct})),t.d(e,"createTab",(function(){return et})),t.d(e,"weeklyShare",(function(){return ot})),t.d(e,"fullScreen",(function(){return rt})),t.d(e,"exitFullScreen",(function(){return st})),t.d(e,"showPreloader",(function(){return dt})),t.d(e,"hidePreloader",(function(){return lt})),t.d(e,"vibrate",(function(){return vt})),t.d(e,"toast",(function(){return mt})),t.d(e,"alert",(function(){return kt})),t.d(e,"confirm",(function(){return St})),t.d(e,"getPhoneInfo",(function(){return wt})),t.d(e,"getUUID",(function(){return Zt})),t.d(e,"checkStepPermission",(function(){return no})),t.d(e,"getGeolocation",(function(){return Tt})),t.d(e,"getGeolocationSwitch",(function(){return Ct})),t.d(e,"getLang",(function(){return Mt})),t.d(e,"startRecord",(function(){return Ft})),t.d(e,"stopRecord",(function(){return Et})),t.d(e,"onRecordEnd",(function(){return Dt})),t.d(e,"downloadAudio",(function(){return Ot})),t.d(e,"playAudio",(function(){return Wt})),t.d(e,"pauseAudio",(function(){return _t})),t.d(e,"stopAudio",(function(){return Lt})),t.d(e,"onPlayEnd",(function(){return Ht})),t.d(e,"resumeAudio",(function(){return Yt})),t.d(e,"getNetworkType",(function(){return Gt})),t.d(e,"isAtTal",(function(){return $t})),t.d(e,"webViewBounceDisable",(function(){return mo})),t.d(e,"pullToRefreshEnable",(function(){return ho})),t.d(e,"pullToRefreshStop",(function(){return wo})),t.d(e,"pullToRefreshDisable",(function(){return ko})),t.d(e,"getItem",(function(){return So})),t.d(e,"setItem",(function(){return To})),t.d(e,"removeItem",(function(){return Co})),t.d(e,"writeLog",(function(){return xo})),t.d(e,"flushLog",(function(){return Ao})),t.d(e,"remind",(function(){return wn})),t.d(e,"takePicture",(function(){return yn})),t.d(e,"datetimepicker",(function(){return tn})),t.d(e,"actionSheet",(function(){return ht})),t.d(e,"webViewMessageSend",(function(){return jo})),t.d(e,"talYoungFilesUpload",(function(){return Do})),t.d(e,"openVideoPlayer",(function(){return Pn})),t.d(e,"openMediaFileDialog",(function(){return Sn})),t.d(e,"mediaFileUpload",(function(){return zn})),t.d(e,"invoice",(function(){return Tn})),t.d(e,"pushWorkMsg",(function(){return In})),t.d(e,"openTalYoungToTopic",(function(){return Cn})),t.d(e,"getToken",(function(){return xn})),t.d(e,"authStart",(function(){return An})),t.d(e,"authFinish",(function(){return jn})),t.d(e,"assistantCreate",(function(){return Vn})),t.d(e,"yachEvent",(function(){return Bn})),t.d(e,"openTogetherEyeWebview",(function(){return Rn})),t.d(e,"getTogetherConfig",(function(){return Nn})),t.d(e,"rouseApp",(function(){return Ln})),t.d(e,"externalLinkPreviewFile",(function(){return Un})),t.d(e,"savePic",(function(){return qn})),t.d(e,"zfbAuth",(function(){return Jn})),t.d(e,"complain",(function(){return Gn})),t.d(e,"onRecordEnd_v2",(function(){return to})),t.d(e,"startRecord_v2",(function(){return io})),t.d(e,"stopRecord_v2",(function(){return ao})),t.d(e,"selectDepartment",(function(){return Kn})),t.d(e,"setWindowBig",(function(){return We})),t.d(e,"tencentMeeting",(function(){return Re})),t.d(e,"tencentMeetingBegin",(function(){return _e})),t.d(e,"createModifySchedule",(function(){return Xn})),t.d(e,"onlineDocmentOpenTeamChat",(function(){return ee})),t.d(e,"entergroupCheck",(function(){return oe})),t.d(e,"resetSessionUnread",(function(){return re})),t.d(e,"openFutureGroup",(function(){return ue})),t.d(e,"knowledgeBaseSelect",(function(){return pe})),t.d(e,"setLight",(function(){return co})),t.d(e,"openUserSchedule",(function(){return Qn})),t.d(e,"disableScreenCapture",(function(){return se})),t.d(e,"setPanGestureEnable",(function(){return Ue})),t.d(e,"addAppToNav",(function(){return Oo})),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().env,t=i().version,o=Date.now(),s=a({group:"yach",project:"yach_31_jssdk",env:e,version:t,timestamp:o},n);console.log("jssdk 项目 bpit 上报数据:",s),r(s)}var c={log:function(){},warn:function(){},error:function(){}};if("undefined"!=typeof window&&window.console&&(c=window.console),"undefined"!=typeof document&&document.body){var u=document.createElement("iframe");u&&u.contentWindow&&u.contentWindow.console&&(u.style.display="none",document.body.appendChild(u),c=u.contentWindow.console)}var d=c.log.bind(c),p=(c.warn.bind(c),c.error.bind(c),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function l(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return d("%c Yach-jssdk log: ",p,n)}var f=function(n,e){var t=m(n),o=m(e),i=t.pop(),r=o.pop(),a=w(t,o);return 0!==a?a:i&&r?w(i.split("."),r.split(".")):i||r?i?-1:1:0},v=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,m=function(n){if("string"!=typeof n)throw new TypeError("Invalid argument expected string");var e=n.match(v);if(!e)throw new Error("Invalid argument not valid semver ('"+n+"' received)");return e.shift(),e},g=function(n){return"*"===n||"x"===n||"X"===n},h=function(n){var e=parseInt(n,10);return isNaN(e)?n:e},b=function(n,e){if(g(n)||g(e))return 0;var t=function(n,e){return typeof n!=typeof e?[String(n),String(e)]:[n,e]}(h(n),h(e)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},w=function(n,e){for(var t=0;t<Math.max(n.length,e.length);t++){var o=b(n[t]||"0",e[t]||"0");if(0!==o)return o}return 0},y={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},k=(Object.keys(y),t(0)),P=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:k.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(f(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(e){l("SDK 返回结果成功 ",{method:n,params:r,result:e})})).catch((function(e){l("SDK 返回结果失败",{method:n,params:r,error:e})}))})).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}(),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},T=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=void 0===s?{}:s,u=e.code,d=e.message,p=e.msg;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,c);break;case"zoomInClick":var l=document.documentElement.scrollTop||document.body.scrollTop,f=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:l,url:f,title:c&&c.title}})):window.sendToHost(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:l,url:f,title:c&&c.title}}))}else if("response"===o){var v=n.getPending(a);v&&v.receiveResponse({data:c,code:u,message:d||p||c.msg||c.message}),-3!=u&&n.deletePending(a)}},this.init=function(){window.addEventListener("message",(function(e){l("electron res: ",e),n.handleCallback(e.data||{})})),window.receiveBrowserViewData&&window.receiveBrowserViewData((function(e,t){return n.handleCallback(t)}))},this.pendingMsgs={}},I=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function C(n){return I.get(n)||"onFail"}var M=function(){return(M=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)},x=function(n,e){return new Promise((function(t,o){return T.invokeAPI(n,e,(function(i){var r=i.data,a=i.code,c=i.message,u=parseInt(a),d=C(u),p=e[d];if(l("SDK执行后回调,相关参数 ",{method:n,param:e,data:r,_code:u,message:c,callbackFun:p}),"onFail"!==d)"function"==typeof p&&p(r||c),t({_code:u,message:c,data:r});else{if(s({method:n,errorcode:u,message:c||JSON.stringify(r)||"SDK执行失败回调,相关参数"}),"function"==typeof p){console.log("wenai-code",a,u);var f="[object Object]"===Object.prototype.toString.call(r)?M(M({},r),{code:a,message:c}):{data:r,code:a,message:c};p(c?f:r)}o({_code:u,message:c,data:r})}}))}))},F=function(){return(F=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=F({},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),f=i[p];if(l("SDK执行后回调,相关参数 ",{method:n,param:e,data:u,_code:d,message:c,callbackFun:f}),"onFail"===p)return s({method:n,errorcode:d,message:c||JSON.stringify(u)||"SDK执行失败回调,相关参数"}),"function"==typeof f&&f(c?{code:a,message:c}:u),void o({_code:d,message:c,data:u});"function"==typeof f&&f(u||c),t({_code:d,message:c,data:u})}))}))}))},j=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])}}},V=i(),O=V.platform,B=new P(V);!function(){var n=this,e={platform:O,authMethod:"config",bridgeInit:"pc"===O?function(){return j(n,void 0,void 0,(function(){return D(this,(function(n){return T.init(),[2,x]}))}))}:function(){return new Promise((function(n,e){A((function(e){l("注册resume事件 "),e.registerHandler("resume",(function(n){l("resume监听到回调,相关参数 ",{resData:n}),S.execEvent("resume",n)})),l("注册unreadMsgAction事件 "),e.registerHandler("unreadMsgAction",(function(n){l("unreadMsgAction监听到回调,相关参数 ",{resData:n}),S.execEvent("unreadMsgAction",n)})),l("注册webViewMsgReceive事件 "),e.registerHandler("webViewMsgReceive",(function(n){l("webViewMsgReceive监听到回调,相关参数 ",{resData:n}),S.execEvent("webViewMsgReceive",n)})),e.registerHandler("pushWorkMsg",(function(n){l("pushWorkMsg监听到回调,相关参数 ",{resData:n}),S.execEvent("pushWorkMsg",n)})),e.registerHandler("getTogetherCallback",(function(n){l("getTogetherCallback监听到回调,相关参数 ",{resData:n}),S.execEvent("getTogetherCallback",n)})),e.registerHandler("sendMsgCommon",(function(n){l("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)}}};B.setPlatform(e)}();var W={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var R=function(n,e){var t=e.params,o=void 0===t?{}:t,i=e.platform,r=void 0===i?W:i;B.setAPI(n,r),B.invokeAPI(n,o)};function _(n){R("biz.util.openLink",{params:n})}function N(n){R("biz.util.feedback",{params:n})}function L(n){R("biz.util.open",{params:n})}var U={pc:{vs:"0.0.0"}};function H(n){R("biz.util.openSlidePanel",{params:n,platform:U})}var J={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Y(n){R("biz.util.share",{params:n,platform:J})}function q(n){R("biz.util.previewFile",{params:n})}function G(n){R("biz.util.previewImage",{params:n})}function K(n){R("biz.util.downloadFile",{params:n})}function $(n){R("biz.util.uploadAttachment",{params:n})}function X(n){R("biz.util.clipboardFileUpload",{params:n})}function Z(n){R("biz.util.proxy",{params:n})}var Q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function nn(n){R("biz.util.datepicker",{params:n,platform:Q})}var en={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function tn(n){R("biz.util.datetimepicker",{params:n,platform:en})}var on={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function rn(n){R("biz.util.scan",{params:n,platform:on})}var an={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function sn(n){R("biz.map.view",{params:n,platform:an})}var cn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function un(n){R("biz.map.multipointView",{params:n,platform:cn})}var dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function pn(n){R("biz.util.chosen",{params:n,platform:dn})}var ln={pc:{vs:"0.0.0"}};function fn(n){R("biz.util.openSingleWebview",{params:n,platform:ln})}function vn(n){R("biz.util.getSingleWebviewData",{params:n})}function mn(n){R("biz.util.injectScript",{params:n})}var gn={pc:{vs:"0.0.0"}};function hn(n){R("biz.util.closeWindow",{params:n,platform:gn})}var bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function wn(n){R("biz.util.remind",{params:n,platform:bn})}function yn(n){R("biz.util.takePicture",{params:n})}var kn={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pn(n){R("biz.util.openVideoPlayer",{params:n,platform:kn})}function Sn(n){R("biz.util.openMediaFileDialog",{params:n})}function zn(n){R("biz.util.mediaFileUpload",{params:n})}function Tn(n){R("biz.util.invoice",{params:n})}function In(n){R("biz.util.pushWorkMsg",{params:n})}function Cn(n){R("biz.util.openTalYoungToTopic",{params:n})}var Mn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xn(n){R("biz.util.getToken",{params:n,platform:Mn})}var Fn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function An(n){R("biz.util.authStart",{params:n,platform:Fn})}var En={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jn(n){R("biz.util.authFinish",{params:n,platform:En})}var Dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vn(n){R("biz.util.assistantCreate",{params:n,platform:Dn})}var On={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Bn(n){R("biz.util.yachEvent",{params:n,platform:On})}var Wn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Rn(n){R("biz.util.openTogetherEyeWebview",{params:n,platform:Wn})}var _n={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Nn(n){R("biz.util.getTogetherConfig",{params:n,platform:_n})}function Ln(n){R("biz.util.rouseApp",{params:n})}function Un(n){R("biz.util.externalLinkPreviewFile",{params:n})}var Hn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Jn(n){R("biz.util.zfbAuth",{params:n,platform:Hn})}var Yn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function qn(n){R("biz.util.savePic",{params:n,platform:Yn})}function Gn(n){R("biz.util.complain",{params:n})}function Kn(n){R("biz.util.selectDepartment",{params:n})}var $n={pc:{vs:"0.0.0"}};function Xn(n){R("biz.util.createModifySchedule",{params:n,platform:$n})}var Zn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Qn(n){R("biz.util.openUserSchedule",{params:n,platform:Zn})}var ne={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function ee(n){R("onlineDocmentOpenTeamChat",{params:n,platform:ne})}var te={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function oe(n){R("biz.util.entergroupCheck",{params:n,platform:te})}var ie={pc:{vs:"1.8.0"}};function re(n){R("biz.util.resetSessionUnread",{params:n,platform:ie})}var ae={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function se(n){R("biz.util.disableScreenCapture",{params:n,platform:ae})}var ce={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function ue(n){R("biz.util.openFutureGroup",{params:n,platform:ce})}var de={pc:{vs:"1.8.8"}};function pe(n){R("biz.util.knowledgeBaseSelect",{params:n,platform:de})}var le=function(){return(le=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 fe(n){return function(e){return le(le({},n),e)}}var ve=fe({control:!0,showIcon:!0,iconIndex:1}),me={ios:{vs:"0.0.0",paramsDeal:ve},android:{vs:"0.0.0",paramsDeal:ve}};function ge(n){R("biz.navigation.setIcon",{params:n,platform:me})}function he(n){R("biz.navigation.setTitle",{params:n})}var be=fe({control:!0}),we={ios:{vs:"0.0.0",paramsDeal:be},android:{vs:"0.0.0",paramsDeal:be}};function ye(n){R("biz.navigation.setMenu",{params:n,platform:we})}function ke(n){R("biz.navigation.close",{params:n})}function Pe(n){R("biz.navigation.replace",{params:n})}var Se={pc:{vs:"0.0.0"}};function ze(n){R("biz.navigation.quit",{params:n,platform:Se})}var Te=fe({show:!0,control:!1,text:""}),Ie={ios:{vs:"0.0.0",paramsDeal:Te},android:{vs:"0.0.0",paramsDeal:Te},pc:{vs:"0.0.0"}};function Ce(n){R("biz.navigation.setRight",{params:n,platform:Ie})}var Me=fe({control:!0}),xe={ios:{vs:"0.0.0",paramsDeal:Me},android:{vs:"0.0.0",paramsDeal:Me}};function Fe(n){R("biz.navigation.setTitleExpandIcon",{params:n,platform:xe})}function Ae(n){R("biz.navigation.updateExpandTitle",{params:n})}var Ee=fe({show:!0,control:!1,text:""}),je={ios:{vs:"0.0.0",paramsDeal:Ee},android:{vs:"0.0.0",paramsDeal:Ee},pc:{vs:"0.0.0"}};function De(n){R("biz.navigation.setLeft",{params:n,platform:je})}var Ve={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Oe(n){R("biz.navigation.goBack",{params:n,platform:Ve})}var Be={pc:{vs:"0.0.0"}};function We(n){R("biz.navigation.setWindowBig",{params:n,platform:Be})}function Re(n){R("biz.navigation.tencentMeeting",{params:n})}function _e(n){R("biz.navigation.tencentMeetingBegin",{params:n})}var Ne=fe({nativePanEnable:!0,webPanEnable:!0}),Le={ios:{vs:"0.0.0",paramsDeal:Ne},android:{vs:"0.0.0",paramsDeal:Ne}};function Ue(n){R("biz.navigation.setPanGestureEnable",{params:n,platform:Le})}function He(n){R("biz.contact.complexPicker",{params:n})}function Je(n){R("biz.contact.departmentsPicker",{params:n})}function Ye(n){R("biz.group.groupComplexPicker",{params:n})}function qe(n){R("biz.chat.chooseConversationByCorpId",{params:n})}var Ge={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ke(n){R("biz.chat.pickConversation",{params:n,platform:Ge})}function $e(n){R("biz.chat.openSingleChat",{params:n})}function Xe(n){R("biz.chat.openTeamChat",{params:n})}function Ze(n){R("biz.chat.openSquad",{params:n})}function Qe(n){R("biz.chat.sendP2PMsg",{params:n})}var nt={pc:{vs:"0.0.0"}};function et(n){R("primary.createTab",{params:n,platform:nt})}var tt={pc:{vs:"0.0.0"}};function ot(n){R("primary.weeklyShare",{params:n,platform:tt})}var it={pc:{vs:"0.0.0"}};function rt(n){R("primary.fullScreen",{params:n,platform:it})}var at={pc:{vs:"0.0.0"}};function st(n){R("primary.exitFullScreen",{params:n,platform:at})}function ct(n){R("runtime.permission.requestAuthCode",{params:n})}var ut={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function dt(n){R("device.notification.showPreloader",{params:n,platform:ut})}var pt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function lt(n){R("device.notification.hidePreloader",{params:n,platform:pt})}var ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function vt(n){R("device.notification.vibrate",{params:n,platform:ft})}function mt(n){R("device.notification.toast",{params:n})}var gt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ht(n){R("device.notification.actionSheet",{params:n,platform:gt})}var bt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wt(n){R("device.base.getPhoneInfo",{params:n,platform:bt})}var yt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function kt(n){R("device.notification.alert",{params:n,platform:yt})}var Pt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function St(n){R("device.notification.confirm",{params:n,platform:Pt})}var zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Tt(n){R("device.geolocation.get",{params:n,platform:zt})}var It={android:{vs:"0.0.0"}};function Ct(n){R("device.geolocation.getSwitch",{params:n,platform:It})}function Mt(n){R("device.system.getLang",{params:n})}var xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ft(n){R("device.audio.startRecord",{params:n,platform:xt})}var At={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Et(n){R("device.audio.stopRecord",{params:n,platform:At})}var jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Dt(n){R("device.audio.onRecordEnd",{params:n,platform:jt})}var Vt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ot(n){R("device.audio.download",{params:n,platform:Vt})}var Bt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Wt(n){R("device.audio.play",{params:n,platform:Bt})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _t(n){R("device.audio.pause",{params:n,platform:Rt})}var Nt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Lt(n){R("device.audio.stop",{params:n,platform:Nt})}var Ut={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ht(n){R("device.audio.onPlayEnd",{params:n,platform:Ut})}var Jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yt(n){R("device.audio.resume",{params:n,platform:Jt})}var qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(n){R("device.connection.getNetworkType",{params:n,platform:qt})}var Kt={pc:{vs:"0.0.0"}};function $t(n){R("device.connection.isAtTal",{params:n,platform:Kt})}var Xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function Zt(n){R("device.base.getUUID",{params:n,platform:Xt})}var Qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function no(n){R("device.base.checkStepPermission",{params:n,platform:Qt})}var eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function to(n){R("device.audio.onRecordEnd_v2",{params:n,platform:eo})}var oo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function io(n){R("device.audio.startRecord_v2",{params:n,platform:oo})}var ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ao(n){R("device.audio.stopRecord_v2",{params:n,platform:ro})}var so={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function co(n){R("device.system.setLight",{params:n,platform:so})}var uo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function po(n){R("biz.telephone.showCallMenu",{params:n,platform:uo})}var lo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fo(n){R("biz.telephone.call",{params:n,platform:lo})}var vo={ios:{vs:"0.0.0"}};function mo(n){R("ui.webViewBounce.disable",{params:n,platform:vo})}var go={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ho(n){R("ui.pullToRefresh.enable",{params:n,platform:go})}var bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wo(n){R("ui.pullToRefresh.stop",{params:n,platform:bo})}var yo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ko(n){R("ui.pullToRefresh.disable",{params:n,platform:yo})}var Po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function So(n){R("util.domainStorage.getItem",{params:n,platform:Po})}var zo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function To(n){R("util.domainStorage.setItem",{params:n,platform:zo})}var Io={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Co(n){R("util.domainStorage.removeItem",{params:n,platform:Io})}var Mo={pc:{vs:"1.7.0"}};function xo(n){R("util.tool.writeLog",{params:n,platform:Mo})}var Fo={pc:{vs:"1.7.0"}};function Ao(n){R("util.tool.flushLog",{params:n,platform:Fo})}var Eo={ios:{vs:"0.0.0"}};function jo(n){R("biz.webViewMessage.send",{params:n,platform:Eo})}function Do(n){R("app.custom.talYoungFilesUpload",{params:n})}var Vo={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function Oo(n){R("biz.util.addAppToNav",{params:n,platform:Vo})}console.log("add rouseApp ------------\x3e",Ln);var Bo=B.exportSdk,Wo=Bo.version,Ro=Bo.sdkVersion,_o=Bo.env,No=Bo.platform,Lo=Bo.platformV2,Uo=Bo.config,Ho=Bo.ready,Jo=Bo.error,Yo=Bo.on,qo=Bo.off;e.default={version:Wo,sdkVersion:Ro,env:_o,platform:No,platformV2:Lo,config:Uo,ready:Ho,error:Jo,on:Yo,off:qo,biz:{util:{openLink:_,feedback:N,open:L,openSlidePanel:H,share:Y,previewFile:q,previewImage:G,downloadFile:K,uploadAttachment:$,clipboardFileUpload:X,proxy:Z,datepicker:nn,datetimepicker:tn,scan:rn,chosen:pn,openSingleWebview:fn,getSingleWebviewData:vn,injectScript:mn,onlineDocmentOpenTeamChat:ee,entergroupCheck:oe,resetSessionUnread:re,openFutureGroup:ue,closeWindow:hn,remind:wn,takePicture:yn,openVideoPlayer:Pn,openMediaFileDialog:Sn,mediaFileUpload:zn,invoice:Tn,pushWorkMsg:In,openTalYoungToTopic:Cn,getToken:xn,authStart:An,authFinish:jn,assistantCreate:Vn,yachEvent:Bn,openTogetherEyeWebview:Rn,getTogetherConfig:Nn,rouseApp:Ln,externalLinkPreviewFile:Un,savePic:qn,zfbAuth:Jn,complain:Gn,selectDepartment:Kn,createModifySchedule:Xn,openUserSchedule:Qn,disableScreenCapture:se,addAppToNav:Oo,knowledgeBaseSelect:pe},telephone:{showCallMenu:po,call:fo},navigation:{setIcon:ge,setTitle:he,setMenu:ye,close:ke,replace:Pe,quit:ze,setRight:Ce,setTitleExpandIcon:Fe,updateExpandTitle:Ae,setLeft:De,goBack:Oe,setWindowBig:We,tencentMeeting:Re,tencentMeetingBegin:_e,setPanGestureEnable:Ue},contact:{complexPicker:He,departmentsPicker:Je},group:{groupComplexPicker:Ye},chat:{chooseConversationByCorpId:qe,pickConversation:Ke,openSingleChat:$e,openTeamChat:Xe,openSquad:Ze,sendP2PMsg:Qe},map:{view:sn,multipointView:un},webViewMessage:{send:jo}},runtime:{permission:{requestAuthCode:ct}},primary:{createTab:et,weeklyShare:ot,fullScreen:rt,exitFullScreen:st},device:{notification:{showPreloader:dt,hidePreloader:lt,vibrate:vt,toast:mt,alert:kt,confirm:St,actionSheet:ht},base:{getPhoneInfo:wt,getUUID:Zt,checkStepPermission:no},geolocation:{get:Tt,getSwitch:Ct},system:{getLang:Mt,setLight:co},audio:{startRecord:Ft,stopRecord:Et,onRecordEnd:Dt,download:Ot,play:Wt,pause:_t,stop:Lt,onPlayEnd:Ht,resume:Yt,onRecordEnd_v2:to,startRecord_v2:io,stopRecord_v2:ao},connection:{getNetworkType:Gt,isAtTal:$t}},ui:{webViewBounce:{disable:mo},pullToRefresh:{enable:ho,stop:wo,disable:ko}},util:{domainStorage:{getItem:So,setItem:To,removeItem:Co},tool:{writeLog:xo,flushLog:Ao}},app:{custom:{talYoungFilesUpload:Do}}}}]).default;
|