yach.open.jssdk 4.4.1-beta8 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/yach_jssdk_4.4.2.js +1 -0
- package/es/api/biz/navigation/tencentMeeting.d.ts +0 -1
- package/es/api/biz/util/screen.d.ts +15 -0
- package/es/api/biz/util/screen.js +17 -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 +9 -3
- package/es/index.js +12 -5
- package/libs/api/biz/navigation/tencentMeeting.d.ts +0 -1
- package/libs/api/biz/util/screen.d.ts +15 -0
- package/libs/api/biz/util/screen.js +28 -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 +9 -3
- package/libs/index.js +38 -1
- package/package.json +1 -1
- package/dist/yach_jssdk_4.4.1-beta8.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.2","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 Yo})),t.d(e,"sdkVersion",(function(){return qo})),t.d(e,"env",(function(){return Go})),t.d(e,"platform",(function(){return Ko})),t.d(e,"platformV2",(function(){return $o})),t.d(e,"config",(function(){return Xo})),t.d(e,"ready",(function(){return Zo})),t.d(e,"error",(function(){return Qo})),t.d(e,"on",(function(){return ni})),t.d(e,"off",(function(){return ei})),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 ho})),t.d(e,"call",(function(){return wo})),t.d(e,"setIcon",(function(){return be})),t.d(e,"setTitle",(function(){return we})),t.d(e,"setMenu",(function(){return Pe})),t.d(e,"close",(function(){return Se})),t.d(e,"replacePage",(function(){return ze})),t.d(e,"quit",(function(){return Te})),t.d(e,"setRight",(function(){return xe})),t.d(e,"setTitleExpandIcon",(function(){return Ee})),t.d(e,"updateExpandTitle",(function(){return je})),t.d(e,"setLeft",(function(){return Ve})),t.d(e,"goBack",(function(){return Be})),t.d(e,"complexPicker",(function(){return Ye})),t.d(e,"departmentsPicker",(function(){return qe})),t.d(e,"groupComplexPicker",(function(){return Ge})),t.d(e,"chooseConversationByCorpId",(function(){return Ke})),t.d(e,"pickConversation",(function(){return Xe})),t.d(e,"openSingleChat",(function(){return Ze})),t.d(e,"openTeamChat",(function(){return Qe})),t.d(e,"openSquad",(function(){return nt})),t.d(e,"sendP2PMsg",(function(){return et})),t.d(e,"mapView",(function(){return sn})),t.d(e,"multipointView",(function(){return un})),t.d(e,"requestAuthCode",(function(){return dt})),t.d(e,"createTab",(function(){return ot})),t.d(e,"weeklyShare",(function(){return rt})),t.d(e,"fullScreen",(function(){return st})),t.d(e,"exitFullScreen",(function(){return ut})),t.d(e,"showPreloader",(function(){return ft})),t.d(e,"showCustomOverlayContent",(function(){return vt})),t.d(e,"hidePreloader",(function(){return ht})),t.d(e,"hideCustomOverlayContent",(function(){return bt})),t.d(e,"vibrate",(function(){return yt})),t.d(e,"toast",(function(){return kt})),t.d(e,"alert",(function(){return It})),t.d(e,"confirm",(function(){return xt})),t.d(e,"getPhoneInfo",(function(){return Ct})),t.d(e,"getUUID",(function(){return io})),t.d(e,"checkStepPermission",(function(){return ao})),t.d(e,"getGeolocation",(function(){return At})),t.d(e,"getGeolocationSwitch",(function(){return jt})),t.d(e,"getLang",(function(){return Dt})),t.d(e,"startRecord",(function(){return Vt})),t.d(e,"stopRecord",(function(){return Bt})),t.d(e,"onRecordEnd",(function(){return _t})),t.d(e,"downloadAudio",(function(){return Lt})),t.d(e,"playAudio",(function(){return Ht})),t.d(e,"pauseAudio",(function(){return Yt})),t.d(e,"stopAudio",(function(){return Gt})),t.d(e,"onPlayEnd",(function(){return $t})),t.d(e,"resumeAudio",(function(){return Zt})),t.d(e,"getNetworkType",(function(){return no})),t.d(e,"isAtTal",(function(){return to})),t.d(e,"webViewBounceDisable",(function(){return ko})),t.d(e,"pullToRefreshEnable",(function(){return So})),t.d(e,"pullToRefreshStop",(function(){return Co})),t.d(e,"pullToRefreshDisable",(function(){return Io})),t.d(e,"getItem",(function(){return xo})),t.d(e,"setItem",(function(){return Ao})),t.d(e,"removeItem",(function(){return jo})),t.d(e,"writeLog",(function(){return Oo})),t.d(e,"flushLog",(function(){return Ro})),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 St})),t.d(e,"webViewMessageSend",(function(){return No})),t.d(e,"talYoungFilesUpload",(function(){return Lo})),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,"openTogetherEyeWebview",(function(){return Wn})),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 co})),t.d(e,"startRecord_v2",(function(){return po})),t.d(e,"stopRecord_v2",(function(){return fo})),t.d(e,"selectDepartment",(function(){return Kn})),t.d(e,"setWindowBig",(function(){return _e})),t.d(e,"tencentMeeting",(function(){return Ne})),t.d(e,"tencentMeetingBegin",(function(){return Le})),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,"weeklyRead",(function(){return se})),t.d(e,"openFutureGroup",(function(){return pe})),t.d(e,"knowledgeBaseSelect",(function(){return fe})),t.d(e,"setLight",(function(){return mo})),t.d(e,"openUserSchedule",(function(){return Qn})),t.d(e,"disableScreenCapture",(function(){return ue})),t.d(e,"setPanGestureEnable",(function(){return Je})),t.d(e,"addAppToNav",(function(){return Ho})),t.d(e,"capturePage",(function(){return Wo})),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.openTogetherEyeWebview",{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.getTogetherConfig",{params:n,platform:_n})}function Ln(n){W("biz.util.rouseApp",{params:n})}function Un(n){W("biz.util.externalLinkPreviewFile",{params:n})}var Hn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Jn(n){W("biz.util.zfbAuth",{params:n,platform:Hn})}var Yn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function qn(n){W("biz.util.savePic",{params:n,platform:Yn})}function Gn(n){W("biz.util.complain",{params:n})}function Kn(n){W("biz.util.selectDepartment",{params:n})}var $n={pc:{vs:"0.0.0"}};function Xn(n){W("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){W("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){W("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){W("biz.util.entergroupCheck",{params:n,platform:te})}var ie={pc:{vs:"1.8.0"}};function re(n){W("biz.util.resetSessionUnread",{params:n,platform:ie})}var ae={pc:{vs:"1.9.3.1"},ios:{vs:"1.9.3.1"},android:{vs:"1.9.3.1"}};function se(n){W("biz.util.weeklyRead",{params:n,platform:ae})}var ce={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ue(n){W("biz.util.disableScreenCapture",{params:n,platform:ce})}var de={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function pe(n){W("biz.util.openFutureGroup",{params:n,platform:de})}var le={pc:{vs:"1.8.8"}};function fe(n){W("biz.util.knowledgeBaseSelect",{params:n,platform:le})}var ve=function(){return(ve=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 me(n){return function(e){return ve(ve({},n),e)}}var ge=me({control:!0,showIcon:!0,iconIndex:1}),he={ios:{vs:"0.0.0",paramsDeal:ge},android:{vs:"0.0.0",paramsDeal:ge}};function be(n){W("biz.navigation.setIcon",{params:n,platform:he})}function we(n){W("biz.navigation.setTitle",{params:n})}var ye=me({control:!0}),ke={ios:{vs:"0.0.0",paramsDeal:ye},android:{vs:"0.0.0",paramsDeal:ye}};function Pe(n){W("biz.navigation.setMenu",{params:n,platform:ke})}function Se(n){W("biz.navigation.close",{params:n})}function ze(n){W("biz.navigation.replace",{params:n})}var Ce={pc:{vs:"0.0.0"}};function Te(n){W("biz.navigation.quit",{params:n,platform:Ce})}var Ie=me({show:!0,control:!1,text:""}),Me={ios:{vs:"0.0.0",paramsDeal:Ie},android:{vs:"0.0.0",paramsDeal:Ie},pc:{vs:"0.0.0"}};function xe(n){W("biz.navigation.setRight",{params:n,platform:Me})}var Fe=me({control:!0}),Ae={ios:{vs:"0.0.0",paramsDeal:Fe},android:{vs:"0.0.0",paramsDeal:Fe}};function Ee(n){W("biz.navigation.setTitleExpandIcon",{params:n,platform:Ae})}function je(n){W("biz.navigation.updateExpandTitle",{params:n})}var De=me({show:!0,control:!1,text:""}),Oe={ios:{vs:"0.0.0",paramsDeal:De},android:{vs:"0.0.0",paramsDeal:De},pc:{vs:"0.0.0"}};function Ve(n){W("biz.navigation.setLeft",{params:n,platform:Oe})}var Re={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Be(n){W("biz.navigation.goBack",{params:n,platform:Re})}var We={pc:{vs:"0.0.0"}};function _e(n){W("biz.navigation.setWindowBig",{params:n,platform:We})}function Ne(n){W("biz.navigation.tencentMeeting",{params:n})}function Le(n){W("biz.navigation.tencentMeetingBegin",{params:n})}var Ue=me({nativePanEnable:!0,webPanEnable:!0}),He={ios:{vs:"0.0.0",paramsDeal:Ue},android:{vs:"0.0.0",paramsDeal:Ue}};function Je(n){W("biz.navigation.setPanGestureEnable",{params:n,platform:He})}function Ye(n){W("biz.contact.complexPicker",{params:n})}function qe(n){W("biz.contact.departmentsPicker",{params:n})}function Ge(n){W("biz.group.groupComplexPicker",{params:n})}function Ke(n){W("biz.chat.chooseConversationByCorpId",{params:n})}var $e={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Xe(n){W("biz.chat.pickConversation",{params:n,platform:$e})}function Ze(n){W("biz.chat.openSingleChat",{params:n})}function Qe(n){W("biz.chat.openTeamChat",{params:n})}function nt(n){W("biz.chat.openSquad",{params:n})}function et(n){W("biz.chat.sendP2PMsg",{params:n})}var tt={pc:{vs:"0.0.0"}};function ot(n){W("primary.createTab",{params:n,platform:tt})}var it={pc:{vs:"0.0.0"}};function rt(n){W("primary.weeklyShare",{params:n,platform:it})}var at={pc:{vs:"0.0.0"}};function st(n){W("primary.fullScreen",{params:n,platform:at})}var ct={pc:{vs:"0.0.0"}};function ut(n){W("primary.exitFullScreen",{params:n,platform:ct})}function dt(n){W("runtime.permission.requestAuthCode",{params:n})}var pt={vs:"1.9.9"},lt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:pt};function ft(n){W("device.notification.showPreloader",{params:n,platform:lt})}function vt(n){W("device.notification.showCustomOverlayContent",{params:n,platform:{pc:pt}})}var mt={vs:"1.9.9"},gt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:mt};function ht(n){W("device.notification.hidePreloader",{params:n,platform:gt})}function bt(n){W("device.notification.hideCustomOverlayContent",{params:n,platform:{pc:mt}})}var wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function yt(n){W("device.notification.vibrate",{params:n,platform:wt})}function kt(n){W("device.notification.toast",{params:n})}var Pt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function St(n){W("device.notification.actionSheet",{params:n,platform:Pt})}var zt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ct(n){W("device.base.getPhoneInfo",{params:n,platform:zt})}var Tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function It(n){W("device.notification.alert",{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.confirm",{params:n,platform:Mt})}var Ft={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function At(n){W("device.geolocation.get",{params:n,platform:Ft})}var Et={android:{vs:"0.0.0"}};function jt(n){W("device.geolocation.getSwitch",{params:n,platform:Et})}function Dt(n){W("device.system.getLang",{params:n})}var Ot={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vt(n){W("device.audio.startRecord",{params:n,platform:Ot})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bt(n){W("device.audio.stopRecord",{params:n,platform:Rt})}var Wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _t(n){W("device.audio.onRecordEnd",{params:n,platform:Wt})}var Nt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Lt(n){W("device.audio.download",{params:n,platform:Nt})}var Ut={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ht(n){W("device.audio.play",{params:n,platform:Ut})}var Jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yt(n){W("device.audio.pause",{params:n,platform:Jt})}var qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(n){W("device.audio.stop",{params:n,platform:qt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $t(n){W("device.audio.onPlayEnd",{params:n,platform:Kt})}var Xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Zt(n){W("device.audio.resume",{params:n,platform:Xt})}var Qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function no(n){W("device.connection.getNetworkType",{params:n,platform:Qt})}var eo={pc:{vs:"0.0.0"}};function to(n){W("device.connection.isAtTal",{params:n,platform:eo})}var oo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function io(n){W("device.base.getUUID",{params:n,platform:oo})}var ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ao(n){W("device.base.checkStepPermission",{params:n,platform:ro})}var so={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function co(n){W("device.audio.onRecordEnd_v2",{params:n,platform:so})}var uo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function po(n){W("device.audio.startRecord_v2",{params:n,platform:uo})}var lo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fo(n){W("device.audio.stopRecord_v2",{params:n,platform:lo})}var vo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mo(n){W("device.system.setLight",{params:n,platform:vo})}var go={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ho(n){W("biz.telephone.showCallMenu",{params:n,platform:go})}var bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wo(n){W("biz.telephone.call",{params:n,platform:bo})}var yo={ios:{vs:"0.0.0"}};function ko(n){W("ui.webViewBounce.disable",{params:n,platform:yo})}var Po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function So(n){W("ui.pullToRefresh.enable",{params:n,platform:Po})}var zo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Co(n){W("ui.pullToRefresh.stop",{params:n,platform:zo})}var To={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Io(n){W("ui.pullToRefresh.disable",{params:n,platform:To})}var Mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xo(n){W("util.domainStorage.getItem",{params:n,platform:Mo})}var Fo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ao(n){W("util.domainStorage.setItem",{params:n,platform:Fo})}var Eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function jo(n){W("util.domainStorage.removeItem",{params:n,platform:Eo})}var Do={pc:{vs:"1.7.0"}};function Oo(n){W("util.tool.writeLog",{params:n,platform:Do})}var Vo={pc:{vs:"1.7.0"}};function Ro(n){W("util.tool.flushLog",{params:n,platform:Vo})}var Bo={pc:{vs:"1.9.9"}};function Wo(n){W("biz.util.capturePage",{params:n,platform:Bo})}var _o={ios:{vs:"0.0.0"}};function No(n){W("biz.webViewMessage.send",{params:n,platform:_o})}function Lo(n){W("app.custom.talYoungFilesUpload",{params:n})}var Uo={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function Ho(n){W("biz.util.addAppToNav",{params:n,platform:Uo})}console.log("add rouseApp ------------\x3e",Ln);var Jo=R.exportSdk,Yo=Jo.version,qo=Jo.sdkVersion,Go=Jo.env,Ko=Jo.platform,$o=Jo.platformV2,Xo=Jo.config,Zo=Jo.ready,Qo=Jo.error,ni=Jo.on,ei=Jo.off;e.default={version:Yo,sdkVersion:qo,env:Go,platform:Ko,platformV2:$o,config:Xo,ready:Zo,error:Qo,on:ni,off:ei,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,weeklyRead:se,openFutureGroup:pe,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,openTogetherEyeWebview:Wn,getTogetherConfig:Nn,rouseApp:Ln,externalLinkPreviewFile:Un,savePic:qn,zfbAuth:Jn,complain:Gn,selectDepartment:Kn,createModifySchedule:Xn,openUserSchedule:Qn,disableScreenCapture:ue,addAppToNav:Ho,knowledgeBaseSelect:fe,capturePage:Wo},telephone:{showCallMenu:ho,call:wo},navigation:{setIcon:be,setTitle:we,setMenu:Pe,close:Se,replace:ze,quit:Te,setRight:xe,setTitleExpandIcon:Ee,updateExpandTitle:je,setLeft:Ve,goBack:Be,setWindowBig:_e,tencentMeeting:Ne,tencentMeetingBegin:Le,setPanGestureEnable:Je},contact:{complexPicker:Ye,departmentsPicker:qe},group:{groupComplexPicker:Ge},chat:{chooseConversationByCorpId:Ke,pickConversation:Xe,openSingleChat:Ze,openTeamChat:Qe,openSquad:nt,sendP2PMsg:et},map:{view:sn,multipointView:un},webViewMessage:{send:No}},runtime:{permission:{requestAuthCode:dt}},primary:{createTab:ot,weeklyShare:rt,fullScreen:st,exitFullScreen:ut},device:{notification:{showPreloader:ft,showCustomOverlayContent:vt,hidePreloader:ht,hideCustomOverlayContent:bt,vibrate:yt,toast:kt,alert:It,confirm:xt,actionSheet:St},base:{getPhoneInfo:Ct,getUUID:io,checkStepPermission:ao},geolocation:{get:At,getSwitch:jt},system:{getLang:Dt,setLight:mo},audio:{startRecord:Vt,stopRecord:Bt,onRecordEnd:_t,download:Lt,play:Ht,pause:Yt,stop:Gt,onPlayEnd:$t,resume:Zt,onRecordEnd_v2:co,startRecord_v2:po,stopRecord_v2:fo},connection:{getNetworkType:no,isAtTal:to}},ui:{webViewBounce:{disable:ko},pullToRefresh:{enable:So,stop:Co,disable:Io}},util:{domainStorage:{getItem:xo,setItem:Ao,removeItem:jo},tool:{writeLog:Oo,flushLog:Ro}},app:{custom:{talYoungFilesUpload:Lo}}}}]).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,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
|
@@ -46,6 +46,7 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
|
|
|
46
46
|
import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
|
|
47
47
|
import { entergroupCheck } from './api/biz/util/entergroupCheck';
|
|
48
48
|
import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
|
|
49
|
+
import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
49
50
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
50
51
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
51
52
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
@@ -83,8 +84,8 @@ import { fullScreen } from './api/primary/fullScreen';
|
|
|
83
84
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
84
85
|
import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
|
|
85
86
|
/** device */
|
|
86
|
-
import { showPreloader } from './api/device/notification/showPreloader';
|
|
87
|
-
import { hidePreloader } from './api/device/notification/hidePreloader';
|
|
87
|
+
import { showPreloader, showCustomOverlayContent } from './api/device/notification/showPreloader';
|
|
88
|
+
import { hidePreloader, hideCustomOverlayContent } from './api/device/notification/hidePreloader';
|
|
88
89
|
import { vibrate } from './api/device/notification/vibrate';
|
|
89
90
|
import { toast } from './api/device/notification/toast';
|
|
90
91
|
import { actionSheet } from './api/device/notification/actionSheet';
|
|
@@ -124,11 +125,12 @@ import { setItem } from './api/util/domainStorage/setItem';
|
|
|
124
125
|
import { removeItem } from './api/util/domainStorage/removeItem';
|
|
125
126
|
import { writeLog } from './api/util/tool/log';
|
|
126
127
|
import { flushLog } from './api/util/tool/flushLog';
|
|
128
|
+
import { capturePage } from './api/biz/util/screen';
|
|
127
129
|
import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
128
130
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
129
131
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
130
132
|
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, };
|
|
133
|
+
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, 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
134
|
declare const _default: {
|
|
133
135
|
version: string;
|
|
134
136
|
sdkVersion: string;
|
|
@@ -163,6 +165,7 @@ declare const _default: {
|
|
|
163
165
|
onlineDocmentOpenTeamChat: typeof onlineDocmentOpenTeamChat;
|
|
164
166
|
entergroupCheck: typeof entergroupCheck;
|
|
165
167
|
resetSessionUnread: typeof resetSessionUnread;
|
|
168
|
+
weeklyRead: typeof weeklyRead;
|
|
166
169
|
openFutureGroup: typeof openFutureGroup;
|
|
167
170
|
closeWindow: typeof closeWindow;
|
|
168
171
|
remind: typeof remind;
|
|
@@ -191,6 +194,7 @@ declare const _default: {
|
|
|
191
194
|
disableScreenCapture: typeof disableScreenCapture;
|
|
192
195
|
addAppToNav: typeof addAppToNav;
|
|
193
196
|
knowledgeBaseSelect: typeof knowledgeBaseSelect;
|
|
197
|
+
capturePage: typeof capturePage;
|
|
194
198
|
};
|
|
195
199
|
telephone: {
|
|
196
200
|
showCallMenu: typeof showCallMenu;
|
|
@@ -250,7 +254,9 @@ declare const _default: {
|
|
|
250
254
|
device: {
|
|
251
255
|
notification: {
|
|
252
256
|
showPreloader: typeof showPreloader;
|
|
257
|
+
showCustomOverlayContent: typeof showCustomOverlayContent;
|
|
253
258
|
hidePreloader: typeof hidePreloader;
|
|
259
|
+
hideCustomOverlayContent: typeof hideCustomOverlayContent;
|
|
254
260
|
vibrate: typeof vibrate;
|
|
255
261
|
toast: typeof toast;
|
|
256
262
|
alert: typeof alert;
|
package/es/index.js
CHANGED
|
@@ -50,6 +50,7 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
|
|
|
50
50
|
import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
|
|
51
51
|
import { entergroupCheck } from './api/biz/util/entergroupCheck';
|
|
52
52
|
import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
|
|
53
|
+
import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
53
54
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
54
55
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
55
56
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
@@ -96,8 +97,8 @@ import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
|
96
97
|
import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
|
|
97
98
|
/** device */
|
|
98
99
|
|
|
99
|
-
import { showPreloader } from './api/device/notification/showPreloader';
|
|
100
|
-
import { hidePreloader } from './api/device/notification/hidePreloader';
|
|
100
|
+
import { showPreloader, showCustomOverlayContent } from './api/device/notification/showPreloader';
|
|
101
|
+
import { hidePreloader, hideCustomOverlayContent } from './api/device/notification/hidePreloader';
|
|
101
102
|
import { vibrate } from './api/device/notification/vibrate';
|
|
102
103
|
import { toast } from './api/device/notification/toast';
|
|
103
104
|
import { actionSheet } from './api/device/notification/actionSheet';
|
|
@@ -140,7 +141,9 @@ import { setItem } from './api/util/domainStorage/setItem';
|
|
|
140
141
|
import { removeItem } from './api/util/domainStorage/removeItem'; // log
|
|
141
142
|
|
|
142
143
|
import { writeLog } from './api/util/tool/log';
|
|
143
|
-
import { flushLog } from './api/util/tool/flushLog';
|
|
144
|
+
import { flushLog } from './api/util/tool/flushLog'; // screen
|
|
145
|
+
|
|
146
|
+
import { capturePage } from './api/biz/util/screen';
|
|
144
147
|
import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
145
148
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
146
149
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
@@ -156,7 +159,7 @@ var _yachSdk$exportSdk = yachSdk.exportSdk,
|
|
|
156
159
|
error = _yachSdk$exportSdk.error,
|
|
157
160
|
on = _yachSdk$exportSdk.on,
|
|
158
161
|
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 };
|
|
162
|
+
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, 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
163
|
export default {
|
|
161
164
|
version: version,
|
|
162
165
|
sdkVersion: sdkVersion,
|
|
@@ -191,6 +194,7 @@ export default {
|
|
|
191
194
|
onlineDocmentOpenTeamChat: onlineDocmentOpenTeamChat,
|
|
192
195
|
entergroupCheck: entergroupCheck,
|
|
193
196
|
resetSessionUnread: resetSessionUnread,
|
|
197
|
+
weeklyRead: weeklyRead,
|
|
194
198
|
openFutureGroup: openFutureGroup,
|
|
195
199
|
closeWindow: closeWindow,
|
|
196
200
|
remind: remind,
|
|
@@ -218,7 +222,8 @@ export default {
|
|
|
218
222
|
openUserSchedule: openUserSchedule,
|
|
219
223
|
disableScreenCapture: disableScreenCapture,
|
|
220
224
|
addAppToNav: addAppToNav,
|
|
221
|
-
knowledgeBaseSelect: knowledgeBaseSelect
|
|
225
|
+
knowledgeBaseSelect: knowledgeBaseSelect,
|
|
226
|
+
capturePage: capturePage
|
|
222
227
|
},
|
|
223
228
|
telephone: {
|
|
224
229
|
showCallMenu: showCallMenu,
|
|
@@ -278,7 +283,9 @@ export default {
|
|
|
278
283
|
device: {
|
|
279
284
|
notification: {
|
|
280
285
|
showPreloader: showPreloader,
|
|
286
|
+
showCustomOverlayContent: showCustomOverlayContent,
|
|
281
287
|
hidePreloader: hidePreloader,
|
|
288
|
+
hideCustomOverlayContent: hideCustomOverlayContent,
|
|
282
289
|
vibrate: vibrate,
|
|
283
290
|
toast: toast,
|
|
284
291
|
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,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
|
@@ -46,6 +46,7 @@ import { openUserSchedule } from './api/biz/util/openUserSchedule';
|
|
|
46
46
|
import { onlineDocmentOpenTeamChat } from './api/biz/util/onlineDocmentOpenTeamChat';
|
|
47
47
|
import { entergroupCheck } from './api/biz/util/entergroupCheck';
|
|
48
48
|
import { resetSessionUnread } from './api/biz/util/resetSessionUnread';
|
|
49
|
+
import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
49
50
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
50
51
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
51
52
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
@@ -83,8 +84,8 @@ import { fullScreen } from './api/primary/fullScreen';
|
|
|
83
84
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
84
85
|
import { requestAuthCode } from './api/runtime/permission/requestAuthCode';
|
|
85
86
|
/** device */
|
|
86
|
-
import { showPreloader } from './api/device/notification/showPreloader';
|
|
87
|
-
import { hidePreloader } from './api/device/notification/hidePreloader';
|
|
87
|
+
import { showPreloader, showCustomOverlayContent } from './api/device/notification/showPreloader';
|
|
88
|
+
import { hidePreloader, hideCustomOverlayContent } from './api/device/notification/hidePreloader';
|
|
88
89
|
import { vibrate } from './api/device/notification/vibrate';
|
|
89
90
|
import { toast } from './api/device/notification/toast';
|
|
90
91
|
import { actionSheet } from './api/device/notification/actionSheet';
|
|
@@ -124,11 +125,12 @@ import { setItem } from './api/util/domainStorage/setItem';
|
|
|
124
125
|
import { removeItem } from './api/util/domainStorage/removeItem';
|
|
125
126
|
import { writeLog } from './api/util/tool/log';
|
|
126
127
|
import { flushLog } from './api/util/tool/flushLog';
|
|
128
|
+
import { capturePage } from './api/biz/util/screen';
|
|
127
129
|
import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
128
130
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
129
131
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
130
132
|
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, };
|
|
133
|
+
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, 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
134
|
declare const _default: {
|
|
133
135
|
version: string;
|
|
134
136
|
sdkVersion: string;
|
|
@@ -163,6 +165,7 @@ declare const _default: {
|
|
|
163
165
|
onlineDocmentOpenTeamChat: typeof onlineDocmentOpenTeamChat;
|
|
164
166
|
entergroupCheck: typeof entergroupCheck;
|
|
165
167
|
resetSessionUnread: typeof resetSessionUnread;
|
|
168
|
+
weeklyRead: typeof weeklyRead;
|
|
166
169
|
openFutureGroup: typeof openFutureGroup;
|
|
167
170
|
closeWindow: typeof closeWindow;
|
|
168
171
|
remind: typeof remind;
|
|
@@ -191,6 +194,7 @@ declare const _default: {
|
|
|
191
194
|
disableScreenCapture: typeof disableScreenCapture;
|
|
192
195
|
addAppToNav: typeof addAppToNav;
|
|
193
196
|
knowledgeBaseSelect: typeof knowledgeBaseSelect;
|
|
197
|
+
capturePage: typeof capturePage;
|
|
194
198
|
};
|
|
195
199
|
telephone: {
|
|
196
200
|
showCallMenu: typeof showCallMenu;
|
|
@@ -250,7 +254,9 @@ declare const _default: {
|
|
|
250
254
|
device: {
|
|
251
255
|
notification: {
|
|
252
256
|
showPreloader: typeof showPreloader;
|
|
257
|
+
showCustomOverlayContent: typeof showCustomOverlayContent;
|
|
253
258
|
hidePreloader: typeof hidePreloader;
|
|
259
|
+
hideCustomOverlayContent: typeof hideCustomOverlayContent;
|
|
254
260
|
vibrate: typeof vibrate;
|
|
255
261
|
toast: typeof toast;
|
|
256
262
|
alert: typeof alert;
|
package/libs/index.js
CHANGED
|
@@ -335,6 +335,13 @@ _Object$defineProperty(exports, "resetSessionUnread", {
|
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
|
|
338
|
+
_Object$defineProperty(exports, "weeklyRead", {
|
|
339
|
+
enumerable: true,
|
|
340
|
+
get: function get() {
|
|
341
|
+
return _weeklyRead.weeklyRead;
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
|
|
338
345
|
_Object$defineProperty(exports, "disableScreenCapture", {
|
|
339
346
|
enumerable: true,
|
|
340
347
|
get: function get() {
|
|
@@ -566,6 +573,13 @@ _Object$defineProperty(exports, "showPreloader", {
|
|
|
566
573
|
}
|
|
567
574
|
});
|
|
568
575
|
|
|
576
|
+
_Object$defineProperty(exports, "showCustomOverlayContent", {
|
|
577
|
+
enumerable: true,
|
|
578
|
+
get: function get() {
|
|
579
|
+
return _showPreloader.showCustomOverlayContent;
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
|
|
569
583
|
_Object$defineProperty(exports, "hidePreloader", {
|
|
570
584
|
enumerable: true,
|
|
571
585
|
get: function get() {
|
|
@@ -573,6 +587,13 @@ _Object$defineProperty(exports, "hidePreloader", {
|
|
|
573
587
|
}
|
|
574
588
|
});
|
|
575
589
|
|
|
590
|
+
_Object$defineProperty(exports, "hideCustomOverlayContent", {
|
|
591
|
+
enumerable: true,
|
|
592
|
+
get: function get() {
|
|
593
|
+
return _hidePreloader.hideCustomOverlayContent;
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
|
|
576
597
|
_Object$defineProperty(exports, "vibrate", {
|
|
577
598
|
enumerable: true,
|
|
578
599
|
get: function get() {
|
|
@@ -832,6 +853,13 @@ _Object$defineProperty(exports, "flushLog", {
|
|
|
832
853
|
}
|
|
833
854
|
});
|
|
834
855
|
|
|
856
|
+
_Object$defineProperty(exports, "capturePage", {
|
|
857
|
+
enumerable: true,
|
|
858
|
+
get: function get() {
|
|
859
|
+
return _screen.capturePage;
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
|
|
835
863
|
_Object$defineProperty(exports, "webViewMessageSend", {
|
|
836
864
|
enumerable: true,
|
|
837
865
|
get: function get() {
|
|
@@ -951,6 +979,8 @@ var _entergroupCheck = require("./api/biz/util/entergroupCheck");
|
|
|
951
979
|
|
|
952
980
|
var _resetSessionUnread = require("./api/biz/util/resetSessionUnread");
|
|
953
981
|
|
|
982
|
+
var _weeklyRead = require("./api/biz/util/weeklyRead");
|
|
983
|
+
|
|
954
984
|
var _disableScreenCapture = require("./api/biz/util/disableScreenCapture");
|
|
955
985
|
|
|
956
986
|
var _openFutureGroup = require("./api/biz/util/openFutureGroup");
|
|
@@ -1093,6 +1123,8 @@ var _log = require("./api/util/tool/log");
|
|
|
1093
1123
|
|
|
1094
1124
|
var _flushLog = require("./api/util/tool/flushLog");
|
|
1095
1125
|
|
|
1126
|
+
var _screen = require("./api/biz/util/screen");
|
|
1127
|
+
|
|
1096
1128
|
var _send = require("./api/biz/webViewMessage/send");
|
|
1097
1129
|
|
|
1098
1130
|
var _talYoungFilesUpload = require("./api/app/custom/talYoungFilesUpload");
|
|
@@ -1122,6 +1154,7 @@ var _addAppToNav = require("./api/biz/util/addAppToNav");
|
|
|
1122
1154
|
/** ui */
|
|
1123
1155
|
// demainStorage
|
|
1124
1156
|
// log
|
|
1157
|
+
// screen
|
|
1125
1158
|
console.log('add rouseApp ------------>', _rouseApp.rouseApp);
|
|
1126
1159
|
var _yachSdk$exportSdk = _lib.yachSdk.exportSdk,
|
|
1127
1160
|
version = _yachSdk$exportSdk.version,
|
|
@@ -1178,6 +1211,7 @@ var _default = {
|
|
|
1178
1211
|
onlineDocmentOpenTeamChat: _onlineDocmentOpenTeamChat.onlineDocmentOpenTeamChat,
|
|
1179
1212
|
entergroupCheck: _entergroupCheck.entergroupCheck,
|
|
1180
1213
|
resetSessionUnread: _resetSessionUnread.resetSessionUnread,
|
|
1214
|
+
weeklyRead: _weeklyRead.weeklyRead,
|
|
1181
1215
|
openFutureGroup: _openFutureGroup.openFutureGroup,
|
|
1182
1216
|
closeWindow: _closeWindow.closeWindow,
|
|
1183
1217
|
remind: _remind.remind,
|
|
@@ -1205,7 +1239,8 @@ var _default = {
|
|
|
1205
1239
|
openUserSchedule: _openUserSchedule.openUserSchedule,
|
|
1206
1240
|
disableScreenCapture: _disableScreenCapture.disableScreenCapture,
|
|
1207
1241
|
addAppToNav: _addAppToNav.addAppToNav,
|
|
1208
|
-
knowledgeBaseSelect: _knowledgeBaseSelect.knowledgeBaseSelect
|
|
1242
|
+
knowledgeBaseSelect: _knowledgeBaseSelect.knowledgeBaseSelect,
|
|
1243
|
+
capturePage: _screen.capturePage
|
|
1209
1244
|
},
|
|
1210
1245
|
telephone: {
|
|
1211
1246
|
showCallMenu: _showCallMenu.showCallMenu,
|
|
@@ -1265,7 +1300,9 @@ var _default = {
|
|
|
1265
1300
|
device: {
|
|
1266
1301
|
notification: {
|
|
1267
1302
|
showPreloader: _showPreloader.showPreloader,
|
|
1303
|
+
showCustomOverlayContent: _showPreloader.showCustomOverlayContent,
|
|
1268
1304
|
hidePreloader: _hidePreloader.hidePreloader,
|
|
1305
|
+
hideCustomOverlayContent: _hidePreloader.hideCustomOverlayContent,
|
|
1269
1306
|
vibrate: _vibrate.vibrate,
|
|
1270
1307
|
toast: _toast.toast,
|
|
1271
1308
|
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-beta8","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;
|