yach.open.jssdk 4.4.5 → 4.4.6-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/yach_jssdk_4.4.4-beta4.js +1 -0
- package/es/api/biz/util/knowledgeSelectParams.d.ts +5 -5
- package/es/index.d.ts +1 -7
- package/es/index.js +2 -8
- package/es/lib/helper/pcIframe.d.ts +25 -8
- package/es/lib/helper/pcIframe.js +5 -29
- package/es/lib/sdk/sdk.typings.d.ts +0 -1
- package/es/utils/env.js +2 -4
- package/libs/api/biz/util/knowledgeSelectParams.d.ts +5 -5
- package/libs/index.d.ts +1 -7
- package/libs/index.js +1 -25
- package/libs/lib/helper/pcIframe.d.ts +25 -8
- package/libs/lib/helper/pcIframe.js +5 -29
- package/libs/lib/sdk/sdk.typings.d.ts +0 -1
- package/libs/utils/env.js +2 -4
- package/package.json +5 -4
- package/dist/yach_jssdk_4.4.5.js +0 -1
- package/es/api/biz/util/getConfig.d.ts +0 -13
- package/es/api/biz/util/getConfig.js +0 -19
- package/es/api/biz/util/openPublish.d.ts +0 -22
- package/es/api/biz/util/openPublish.js +0 -15
- package/es/api/primary/updateTab.d.ts +0 -9
- package/es/api/primary/updateTab.js +0 -15
- package/libs/api/biz/util/getConfig.d.ts +0 -13
- package/libs/api/biz/util/getConfig.js +0 -26
- package/libs/api/biz/util/openPublish.d.ts +0 -22
- package/libs/api/biz/util/openPublish.js +0 -22
- package/libs/api/primary/updateTab.d.ts +0 -9
- package/libs/api/primary/updateTab.js +0 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.yy=function(e){var n={};function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(o,i,function(n){return e[n]}.bind(null,i));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=1)}([function(e){e.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.4.4-beta4","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(e,n,t){"use strict";var o;function i(){var e="undefined"!=typeof navigator?navigator.userAgent:"",n=/Yach/i.test(e),t=/iPhone|iPad|iPod|iOS/i.test(e)&&n,i=/Android/i.test(e)&&n,r=/YachPc/i.test(e),a=/iPad/i.test(e)&&n,s=/iPhone/i.test(e)&&n,c=/Yachtest/.test(e)&&n,u=o.notInYach;return t&&(u=o.ios),i&&(u=o.android),r&&(u=o.pc),{platform:u,platformV2:{inYach:n,inIOS:t,inAndroid:i,inPC:r,inIpad:a,inIPhone:s},version:((e.match(/Yach\/[a-zA-Z0-9.-]+/)||[])[0]||"").split("/")[1]||"",language:"undefined"!=typeof navigator?navigator.language:"*",env:c?"test":"online"}}function r(e){if(e)if(e.group)if(e.project)if(e.hasOwnProperty("env"))if(e.hasOwnProperty("version")){var n=["https://es.zhiyinlou.com/log.js?"];n.push("group="+e.group),n.push("&project="+e.project),n.push("&env="+e.env),n.push("&version="+e.version),n.push("&method="+e.method),e.yachid&&n.push("&yachid="+e.yachid),e.workcode&&n.push("&workcode="+e.workcode),e.timestamp&&n.push("×tamp="+e.timestamp),e.errorcode&&n.push("&errorcode="+e.errorcode),e.message&&n.push("&message="+e.message),e.api&&e.time&&(n.push("&api="+e.api),n.push("&load_time="+e.time));var t,o,i=n.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"!=e.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(n),t.d(n,"version",(function(){return ti})),t.d(n,"sdkVersion",(function(){return oi})),t.d(n,"env",(function(){return ii})),t.d(n,"platform",(function(){return ri})),t.d(n,"platformV2",(function(){return ai})),t.d(n,"config",(function(){return si})),t.d(n,"ready",(function(){return ci})),t.d(n,"error",(function(){return ui})),t.d(n,"on",(function(){return di})),t.d(n,"off",(function(){return li})),t.d(n,"openLink",(function(){return _})),t.d(n,"feedback",(function(){return N})),t.d(n,"open",(function(){return L})),t.d(n,"openSlidePanel",(function(){return U})),t.d(n,"share",(function(){return Y})),t.d(n,"previewFile",(function(){return q})),t.d(n,"previewImage",(function(){return G})),t.d(n,"downloadFile",(function(){return K})),t.d(n,"uploadAttachment",(function(){return $})),t.d(n,"clipboardFileUpload",(function(){return X})),t.d(n,"proxy",(function(){return Z})),t.d(n,"datepicker",(function(){return ee})),t.d(n,"scan",(function(){return ie})),t.d(n,"chosen",(function(){return de})),t.d(n,"openSingleWebview",(function(){return pe})),t.d(n,"getSingleWebviewData",(function(){return fe})),t.d(n,"injectScript",(function(){return ve})),t.d(n,"closeWindow",(function(){return ge})),t.d(n,"showCallMenu",(function(){return Io})),t.d(n,"call",(function(){return xo})),t.d(n,"setIcon",(function(){return Mn})),t.d(n,"setTitle",(function(){return xn})),t.d(n,"setMenu",(function(){return An})),t.d(n,"close",(function(){return Dn})),t.d(n,"replacePage",(function(){return jn})),t.d(n,"quit",(function(){return Vn})),t.d(n,"setRight",(function(){return Bn})),t.d(n,"setTitleExpandIcon",(function(){return Ln})),t.d(n,"updateExpandTitle",(function(){return Hn})),t.d(n,"setLeft",(function(){return Yn})),t.d(n,"goBack",(function(){return Gn})),t.d(n,"complexPicker",(function(){return tt})),t.d(n,"departmentsPicker",(function(){return ot})),t.d(n,"groupComplexPicker",(function(){return it})),t.d(n,"chooseConversationByCorpId",(function(){return rt})),t.d(n,"pickConversation",(function(){return st})),t.d(n,"openSingleChat",(function(){return ct})),t.d(n,"openTeamChat",(function(){return ut})),t.d(n,"openSquad",(function(){return dt})),t.d(n,"sendP2PMsg",(function(){return lt})),t.d(n,"mapView",(function(){return ae})),t.d(n,"multipointView",(function(){return ce})),t.d(n,"requestAuthCode",(function(){return yt})),t.d(n,"createTab",(function(){return ft})),t.d(n,"weeklyShare",(function(){return mt})),t.d(n,"fullScreen",(function(){return ht})),t.d(n,"exitFullScreen",(function(){return wt})),t.d(n,"showPreloader",(function(){return St})),t.d(n,"showCustomOverlayContent",(function(){return zt})),t.d(n,"hidePreloader",(function(){return It})),t.d(n,"hideCustomOverlayContent",(function(){return Mt})),t.d(n,"vibrate",(function(){return Et})),t.d(n,"toast",(function(){return Ft})),t.d(n,"alert",(function(){return Rt})),t.d(n,"confirm",(function(){return Bt})),t.d(n,"getPhoneInfo",(function(){return Ot})),t.d(n,"getUUID",(function(){return mo})),t.d(n,"checkStepPermission",(function(){return ho})),t.d(n,"getGeolocation",(function(){return Nt})),t.d(n,"getGeolocationSwitch",(function(){return Ht})),t.d(n,"getLang",(function(){return Ut})),t.d(n,"startRecord",(function(){return Yt})),t.d(n,"stopRecord",(function(){return Gt})),t.d(n,"onRecordEnd",(function(){return $t})),t.d(n,"downloadAudio",(function(){return Zt})),t.d(n,"playAudio",(function(){return eo})),t.d(n,"pauseAudio",(function(){return to})),t.d(n,"stopAudio",(function(){return io})),t.d(n,"onPlayEnd",(function(){return ao})),t.d(n,"resumeAudio",(function(){return co})),t.d(n,"getNetworkType",(function(){return lo})),t.d(n,"isAtTal",(function(){return fo})),t.d(n,"webViewBounceDisable",(function(){return Fo})),t.d(n,"pullToRefreshEnable",(function(){return Do})),t.d(n,"pullToRefreshStop",(function(){return Oo})),t.d(n,"pullToRefreshDisable",(function(){return Ro})),t.d(n,"getItem",(function(){return Bo})),t.d(n,"setItem",(function(){return No})),t.d(n,"removeItem",(function(){return Ho})),t.d(n,"writeLog",(function(){return Jo})),t.d(n,"flushLog",(function(){return qo})),t.d(n,"remind",(function(){return be})),t.d(n,"takePicture",(function(){return we})),t.d(n,"datetimepicker",(function(){return te})),t.d(n,"actionSheet",(function(){return Dt})),t.d(n,"webViewMessageSend",(function(){return Xo})),t.d(n,"talYoungFilesUpload",(function(){return Zo})),t.d(n,"openVideoPlayer",(function(){return ke})),t.d(n,"openMediaFileDialog",(function(){return Pe})),t.d(n,"mediaFileUpload",(function(){return Se})),t.d(n,"invoice",(function(){return ze})),t.d(n,"pushWorkMsg",(function(){return Ce})),t.d(n,"openTalYoungToTopic",(function(){return Te})),t.d(n,"getToken",(function(){return Me})),t.d(n,"authStart",(function(){return Ee})),t.d(n,"authFinish",(function(){return Ae})),t.d(n,"assistantCreate",(function(){return je})),t.d(n,"yachEvent",(function(){return Ve})),t.d(n,"topicEvent",(function(){return We})),t.d(n,"openTogetherEyeWebview",(function(){return _e})),t.d(n,"getTogetherConfig",(function(){return Le})),t.d(n,"rouseApp",(function(){return He})),t.d(n,"externalLinkPreviewFile",(function(){return Ue})),t.d(n,"savePic",(function(){return Ge})),t.d(n,"zfbAuth",(function(){return Ye})),t.d(n,"complain",(function(){return Ke})),t.d(n,"onRecordEnd_v2",(function(){return wo})),t.d(n,"startRecord_v2",(function(){return ko})),t.d(n,"stopRecord_v2",(function(){return So})),t.d(n,"selectDepartment",(function(){return $e})),t.d(n,"setWindowBig",(function(){return $n})),t.d(n,"tencentMeeting",(function(){return Xn})),t.d(n,"tencentMeetingBegin",(function(){return Zn})),t.d(n,"createModifySchedule",(function(){return Ze})),t.d(n,"onlineDocmentOpenTeamChat",(function(){return tn})),t.d(n,"entergroupCheck",(function(){return rn})),t.d(n,"resetSessionUnread",(function(){return sn})),t.d(n,"weeklyRead",(function(){return un})),t.d(n,"openFutureGroup",(function(){return fn})),t.d(n,"knowledgeBaseSelect",(function(){return mn})),t.d(n,"knowledgeSelectParams",(function(){return hn})),t.d(n,"lorebaseShowList",(function(){return wn})),t.d(n,"lorebaseRefreshNodeWebview",(function(){return kn})),t.d(n,"setLight",(function(){return Co})),t.d(n,"openUserSchedule",(function(){return en})),t.d(n,"disableScreenCapture",(function(){return ln})),t.d(n,"setPanGestureEnable",(function(){return nt})),t.d(n,"addAppToNav",(function(){return ei})),t.d(n,"copy",(function(){return Sn})),t.d(n,"capturePage",(function(){return Ko})),function(e){e.pc="pc",e.android="android",e.ios="ios",e.notInYach="notInYach"}(o||(o={}));var a=function(){return(a=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function s(e){var n=i().env,t=i().version,o=Date.now(),s=a({group:"yach",project:"yach_31_jssdk",env:n,version:t,timestamp:o},e);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),l=(c.warn.bind(c),c.error.bind(c),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function p(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return d("%c Yach-jssdk log: ",l,e)}var f=function(e,n){var t=m(e),o=m(n),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(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");var n=e.match(v);if(!n)throw new Error("Invalid argument not valid semver ('"+e+"' received)");return n.shift(),n},g=function(e){return"*"===e||"x"===e||"X"===e},h=function(e){var n=parseInt(e,10);return isNaN(n)?e:n},b=function(e,n){if(g(e)||g(n))return 0;var t=function(e,n){return typeof e!=typeof n?[String(e),String(n)]:[e,n]}(h(e),h(n)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},w=function(e,n){for(var t=0;t<Math.max(e.length,n.length);t++){var o=b(e[t]||"0",n[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 e(e){var n=this;this.invokeAPIConfigMapByMethod={},this.configJsApiList=[],this.platformConfigMap={},this.hadConfig=!1,this.bridgeInitFnPromise=null,this.cacheP={},this.config$=new Promise((function(e,t){n.cacheP.resolve=e,n.cacheP.reject=t})),this.env=e,this.exportSdk={version:e.version,sdkVersion:k.version,env:e,platform:e.platform,platformV2:e.platformV2,config:function(e){void 0===e&&(e={});var t=e.jsApiList,o=void 0===t?[]:t;n.hadConfig?console.log("Config has been executed"):n.bridgeInitFn().then((function(t){t("config",e).then((function(e){n.cacheP.resolve(e),n.hadConfig=!0,n.configJsApiList=o})).catch((function(e){n.cacheP.reject(e)}))}))},ready:function(e){n.bridgeInitFn().then((function(){e()}))},error:function(e){n.config$.catch((function(n){e(n)}))},on:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.on(t,o)}))},off:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.off(t,o)}))}}}return e.prototype.setAPI=function(e,n){this.invokeAPIConfigMapByMethod[e]=n},e.prototype.setPlatform=function(e){var n=e.platform;e.bridgeInit;this.platformConfigMap[n]=e},e.prototype.bridgeInitFn=function(){if(this.bridgeInitFnPromise)return this.bridgeInitFnPromise;var e=this.platformConfigMap[this.env.platform];if(e)this.bridgeInitFnPromise=e.bridgeInit();else{var n="Do not support the current environment�"+this.env.platform;this.bridgeInitFnPromise=Promise.reject(new Error(n))}return this.bridgeInitFnPromise},e.prototype._onFail=function(e,n,t,o){s({method:e,errorcode:n,message:t}),o&&"function"==typeof o&&o({code:n,message:t})},e.prototype.invokeAPI=function(e,n){if(n||(n={}),e){var t=this.invokeAPIConfigMapByMethod[e];if(!t)return this._onFail(e,"-1","["+e+"] method is not exist",n.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(e,"-1","The current application version is "+this.env.version+". This method does not support versions less than "+i,n.onFail);var r=o.paramsDeal?o.paramsDeal(n):n;if("function"==typeof r.onSuccess){var a=r.onSuccess;r.onSuccess=function(e){a(e)}}this.bridgeInitFn().then((function(n){n(e,r).then((function(n){p("SDK 返回结果成功 ",{method:e,params:r,result:n})})).catch((function(n){p("SDK 返回结果失败",{method:e,params:r,error:n})}))})).catch((function(e){console.log("wenai err",e)}))}else this._onFail(e,"-1","["+e+"] method do not support the current platform ("+this.env.platform+")",n.onFail)}},e}(),S=new function(){var e=this;this.on=function(n,t){if(!n||"function"!=typeof t)throw"eventName is null or handle is not a function, on fail";Array.isArray(e.eventsHandle[n])||(e.eventsHandle[n]=[]),e.eventsHandle[n].push(t)},this.off=function(n,t){if(!n)throw"eventName is null, invoke off fail";if(t){if(Array.isArray(e.eventsHandle[n])){var o=e.eventsHandle[n].indexOf(t);-1!==o&&e.eventsHandle[n].splice(o,1)}}else e.eventsHandle[n]=[]},this.execEvent=function(e,n){Array.isArray(this.eventsHandle[e])&&this.eventsHandle[e].forEach((function(e){try{e(n)}catch(e){console.error(n)}}))},this.eventsHandle={}},z=function(e,n,t){var o=this;this.genid=function(){var e=Date.now().toString(36);return e+=Math.random().toString(36).substr(3)},this.receiveResponse=function(e){o.callback(e)},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=e,this.plainMsg=n,this.invokeType=null==n?void 0:n.invokeType,this.callback=t},C=new function(){var e=this;this.addPending=function(n){e.pendingMsgs[n.id]=n},this.deletePending=function(n){delete e.pendingMsgs[n.id]},this.getPending=function(e){return this.pendingMsgs[e]},this.invokeAPIInBrowserView=function(e){window.sendTo(e)},this.invokeAPIInWebview=function(e){window.sendToHost(e)},this.invokeAPI=function(n,t,o){var i=new z(n,t,o),r=JSON.stringify(i.getPayload()),a=t.invokeType;return"browserView"===(void 0===a?"":a)?e.invokeAPIInBrowserView(r):e.invokeAPIInWebview(r),e.addPending(i),i},this.handleCallback=function(n,t){var o=n.type,i=n.methodName,r=n.eventName,a=n.msgId,s=n.data,c=void 0===s?{}:s,u=n.code,d=n.message,l=n.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 p=document.documentElement.scrollTop||document.body.scrollTop,f=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:p,url:f,title:c&&c.title}})):window.sendToHost(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:p,url:f,title:c&&c.title}}))}else if("response"===o){var v=e.getPending(a);v&&v.receiveResponse({data:c,code:u,message:d||l||c.msg||c.message}),-3!=u&&e.deletePending(a)}},this.init=function(){window.addEventListener("message",(function(n){p("electron res: ",n),e.handleCallback(n.data||{})})),window.receiveBrowserViewData&&window.receiveBrowserViewData((function(n,t){return e.handleCallback(t)}))},this.pendingMsgs={}},T=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function I(e){return T.get(e)||"onFail"}var M=function(){return(M=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},x=function(e,n){return new Promise((function(t,o){return C.invokeAPI(e,n,(function(i){var r=i.data,a=i.code,c=i.message,u=parseInt(a),d=I(u),l=n[d];if(p("SDK执行后回调,相关参数 ",{method:e,param:n,data:r,_code:u,message:c,callbackFun:l}),"onFail"!==d)"function"==typeof l&&l(r||c),t({_code:u,message:c,data:r});else{if(s({method:e,errorcode:u,message:c||JSON.stringify(r)||"SDK执行失败回调,相关参数"}),"function"==typeof l){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};l(c?f:r)}o({_code:u,message:c,data:r})}}))}))},E=function(){return(E=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function F(e){if(window.WebViewJavascriptBridge)return e(WebViewJavascriptBridge);if(window.WKWebViewJavascriptBridge)return e(WKWebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(e);window.WVJBCallbacks=[e];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout((function(){document.documentElement.removeChild(n)}),0)}var A=function(e,n){return new Promise((function(t,o){var i=E({},n);F((function(r){n.control&&r.registerHandler(e,(function(e){var o=n.onSuccess;delete i.onSuccess,"function"==typeof o&&(o(e),t({code:"0",message:"success"}))})),r.callHandler(e,n,(function(r){var a=r.code,c=r.message,u=r.data,d=parseInt(a),l=I(d),f=i[l];if(p("SDK执行后回调,相关参数 ",{method:e,param:n,data:u,_code:d,message:c,callbackFun:f}),"onFail"===l)return s({method:e,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})}))}))}))},D=function(e,n,t,o){return new(t||(t=Promise))((function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((o=o.apply(e,n||[])).next())}))},j=function(e,n){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=n.call(e,a)}catch(e){r=[6,e],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 e=this,n={platform:V,authMethod:"config",bridgeInit:"pc"===V?function(){return D(e,void 0,void 0,(function(){return j(this,(function(e){return C.init(),[2,x]}))}))}:function(){return new Promise((function(e,n){F((function(n){p("注册resume事件 "),n.registerHandler("resume",(function(e){p("resume监听到回调,相关参数 ",{resData:e}),S.execEvent("resume",e)})),p("注册unreadMsgAction事件 "),n.registerHandler("unreadMsgAction",(function(e){p("unreadMsgAction监听到回调,相关参数 ",{resData:e}),S.execEvent("unreadMsgAction",e)})),p("注册webViewMsgReceive事件 "),n.registerHandler("webViewMsgReceive",(function(e){p("webViewMsgReceive监听到回调,相关参数 ",{resData:e}),S.execEvent("webViewMsgReceive",e)})),n.registerHandler("pushWorkMsg",(function(e){p("pushWorkMsg监听到回调,相关参数 ",{resData:e}),S.execEvent("pushWorkMsg",e)})),n.registerHandler("getTogetherCallback",(function(e){p("getTogetherCallback监听到回调,相关参数 ",{resData:e}),S.execEvent("getTogetherCallback",e)})),n.registerHandler("sendMsgCommon",(function(e){p("sendMsgCommon ",{resData:e}),S.execEvent("sendMsgCommon",e)})),n.registerHandler("toolbarClickEvent",(function(e,n){p("toolbarClickEvent ",{resData:e});var t={data:e,callback:n};S.execEvent("toolbarClickEvent",t)})),e()}))})).then((function(){return A}))},event:{on:function(e,n){S.on(e,n)},off:function(e,n){S.off(e,n)}}};R.setPlatform(n)}();var W={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var B=function(e,n){var t=n.params,o=void 0===t?{}:t,i=n.platform,r=void 0===i?W:i;R.setAPI(e,r),R.invokeAPI(e,o)};function _(e){B("biz.util.openLink",{params:e})}function N(e){B("biz.util.feedback",{params:e})}function L(e){B("biz.util.open",{params:e})}var H={pc:{vs:"0.0.0"}};function U(e){B("biz.util.openSlidePanel",{params:e,platform:H})}var J={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Y(e){B("biz.util.share",{params:e,platform:J})}function q(e){B("biz.util.previewFile",{params:e})}function G(e){B("biz.util.previewImage",{params:e})}function K(e){B("biz.util.downloadFile",{params:e})}function $(e){B("biz.util.uploadAttachment",{params:e})}function X(e){B("biz.util.clipboardFileUpload",{params:e})}function Z(e){B("biz.util.proxy",{params:e})}var Q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ee(e){B("biz.util.datepicker",{params:e,platform:Q})}var ne={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function te(e){B("biz.util.datetimepicker",{params:e,platform:ne})}var oe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ie(e){B("biz.util.scan",{params:e,platform:oe})}var re={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ae(e){B("biz.map.view",{params:e,platform:re})}var se={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ce(e){B("biz.map.multipointView",{params:e,platform:se})}var ue={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function de(e){B("biz.util.chosen",{params:e,platform:ue})}var le={pc:{vs:"0.0.0"}};function pe(e){B("biz.util.openSingleWebview",{params:e,platform:le})}function fe(e){B("biz.util.getSingleWebviewData",{params:e})}function ve(e){B("biz.util.injectScript",{params:e})}var me={pc:{vs:"0.0.0"}};function ge(e){B("biz.util.closeWindow",{params:e,platform:me})}var he={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function be(e){B("biz.util.remind",{params:e,platform:he})}function we(e){B("biz.util.takePicture",{params:e})}var ye={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ke(e){B("biz.util.openVideoPlayer",{params:e,platform:ye})}function Pe(e){B("biz.util.openMediaFileDialog",{params:e})}function Se(e){B("biz.util.mediaFileUpload",{params:e})}function ze(e){B("biz.util.invoice",{params:e})}function Ce(e){B("biz.util.pushWorkMsg",{params:e})}function Te(e){B("biz.util.openTalYoungToTopic",{params:e})}var Ie={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Me(e){B("biz.util.getToken",{params:e,platform:Ie})}var xe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ee(e){B("biz.util.authStart",{params:e,platform:xe})}var Fe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ae(e){B("biz.util.authFinish",{params:e,platform:Fe})}var De={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function je(e){B("biz.util.assistantCreate",{params:e,platform:De})}var Oe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ve(e){B("biz.util.yachEvent",{params:e,platform:Oe})}var Re={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function We(e){B("biz.util.topicEvent",{params:e,platform:Re})}var Be={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function _e(e){B("biz.util.openTogetherEyeWebview",{params:e,platform:Be})}var Ne={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Le(e){B("biz.util.getTogetherConfig",{params:e,platform:Ne})}function He(e){B("biz.util.rouseApp",{params:e})}function Ue(e){B("biz.util.externalLinkPreviewFile",{params:e})}var Je={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ye(e){B("biz.util.zfbAuth",{params:e,platform:Je})}var qe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ge(e){B("biz.util.savePic",{params:e,platform:qe})}function Ke(e){B("biz.util.complain",{params:e})}function $e(e){B("biz.util.selectDepartment",{params:e})}var Xe={pc:{vs:"0.0.0"}};function Ze(e){B("biz.util.createModifySchedule",{params:e,platform:Xe})}var Qe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function en(e){B("biz.util.openUserSchedule",{params:e,platform:Qe})}var nn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function tn(e){B("onlineDocmentOpenTeamChat",{params:e,platform:nn})}var on={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function rn(e){B("biz.util.entergroupCheck",{params:e,platform:on})}var an={pc:{vs:"1.8.0"}};function sn(e){B("biz.util.resetSessionUnread",{params:e,platform:an})}var cn={pc:{vs:"1.9.3.1"},ios:{vs:"1.9.3.1"},android:{vs:"1.9.3.1"}};function un(e){B("biz.util.weeklyRead",{params:e,platform:cn})}var dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ln(e){B("biz.util.disableScreenCapture",{params:e,platform:dn})}var pn={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function fn(e){B("biz.util.openFutureGroup",{params:e,platform:pn})}var vn={pc:{vs:"1.8.8"},ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function mn(e){B("biz.util.knowledgeBaseSelect",{params:e,platform:vn})}var gn={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function hn(e){B("biz.util.knowledgeSelectParams",{params:e,platform:gn})}var bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wn(e){B("biz.util.lorebaseShowList",{params:e,platform:bn})}var yn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function kn(e){B("biz.util.lorebaseRefreshNodeWebview",{params:e,platform:yn})}var Pn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Sn(e){B("biz.util.copy",{params:e,platform:Pn})}var zn=function(){return(zn=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function Cn(e){return function(n){return zn(zn({},e),n)}}var Tn=Cn({control:!0,showIcon:!0,iconIndex:1}),In={ios:{vs:"0.0.0",paramsDeal:Tn},android:{vs:"0.0.0",paramsDeal:Tn}};function Mn(e){B("biz.navigation.setIcon",{params:e,platform:In})}function xn(e){B("biz.navigation.setTitle",{params:e})}var En=Cn({control:!0}),Fn={ios:{vs:"0.0.0",paramsDeal:En},android:{vs:"0.0.0",paramsDeal:En}};function An(e){B("biz.navigation.setMenu",{params:e,platform:Fn})}function Dn(e){B("biz.navigation.close",{params:e})}function jn(e){B("biz.navigation.replace",{params:e})}var On={pc:{vs:"0.0.0"}};function Vn(e){B("biz.navigation.quit",{params:e,platform:On})}var Rn=Cn({show:!0,control:!1,text:""}),Wn={ios:{vs:"0.0.0",paramsDeal:Rn},android:{vs:"0.0.0",paramsDeal:Rn},pc:{vs:"0.0.0"}};function Bn(e){B("biz.navigation.setRight",{params:e,platform:Wn})}var _n=Cn({control:!0}),Nn={ios:{vs:"0.0.0",paramsDeal:_n},android:{vs:"0.0.0",paramsDeal:_n}};function Ln(e){B("biz.navigation.setTitleExpandIcon",{params:e,platform:Nn})}function Hn(e){B("biz.navigation.updateExpandTitle",{params:e})}var Un=Cn({show:!0,control:!1,text:""}),Jn={ios:{vs:"0.0.0",paramsDeal:Un},android:{vs:"0.0.0",paramsDeal:Un},pc:{vs:"0.0.0"}};function Yn(e){B("biz.navigation.setLeft",{params:e,platform:Jn})}var qn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gn(e){B("biz.navigation.goBack",{params:e,platform:qn})}var Kn={pc:{vs:"0.0.0"}};function $n(e){B("biz.navigation.setWindowBig",{params:e,platform:Kn})}function Xn(e){B("biz.navigation.tencentMeeting",{params:e})}function Zn(e){B("biz.navigation.tencentMeetingBegin",{params:e})}var Qn=Cn({nativePanEnable:!0,webPanEnable:!0}),et={ios:{vs:"0.0.0",paramsDeal:Qn},android:{vs:"0.0.0",paramsDeal:Qn}};function nt(e){B("biz.navigation.setPanGestureEnable",{params:e,platform:et})}function tt(e){B("biz.contact.complexPicker",{params:e})}function ot(e){B("biz.contact.departmentsPicker",{params:e})}function it(e){B("biz.group.groupComplexPicker",{params:e})}function rt(e){B("biz.chat.chooseConversationByCorpId",{params:e})}var at={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function st(e){B("biz.chat.pickConversation",{params:e,platform:at})}function ct(e){B("biz.chat.openSingleChat",{params:e})}function ut(e){B("biz.chat.openTeamChat",{params:e})}function dt(e){B("biz.chat.openSquad",{params:e})}function lt(e){B("biz.chat.sendP2PMsg",{params:e})}var pt={pc:{vs:"0.0.0"}};function ft(e){B("primary.createTab",{params:e,platform:pt})}var vt={pc:{vs:"0.0.0"}};function mt(e){B("primary.weeklyShare",{params:e,platform:vt})}var gt={pc:{vs:"0.0.0"}};function ht(e){B("primary.fullScreen",{params:e,platform:gt})}var bt={pc:{vs:"0.0.0"}};function wt(e){B("primary.exitFullScreen",{params:e,platform:bt})}function yt(e){B("runtime.permission.requestAuthCode",{params:e})}var kt={vs:"1.9.9"},Pt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:kt};function St(e){B("device.notification.showPreloader",{params:e,platform:Pt})}function zt(e){B("device.notification.showCustomOverlayContent",{params:e,platform:{pc:kt}})}var Ct={vs:"1.9.9"},Tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:Ct};function It(e){B("device.notification.hidePreloader",{params:e,platform:Tt})}function Mt(e){B("device.notification.hideCustomOverlayContent",{params:e,platform:{pc:Ct}})}var xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Et(e){B("device.notification.vibrate",{params:e,platform:xt})}function Ft(e){B("device.notification.toast",{params:e})}var At={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Dt(e){B("device.notification.actionSheet",{params:e,platform:At})}var jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ot(e){B("device.base.getPhoneInfo",{params:e,platform:jt})}var Vt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Rt(e){B("device.notification.alert",{params:e,platform:Vt})}var Wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Bt(e){B("device.notification.confirm",{params:e,platform:Wt})}var _t={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Nt(e){B("device.geolocation.get",{params:e,platform:_t})}var Lt={android:{vs:"0.0.0"}};function Ht(e){B("device.geolocation.getSwitch",{params:e,platform:Lt})}function Ut(e){B("device.system.getLang",{params:e})}var Jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yt(e){B("device.audio.startRecord",{params:e,platform:Jt})}var qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(e){B("device.audio.stopRecord",{params:e,platform:qt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $t(e){B("device.audio.onRecordEnd",{params:e,platform:Kt})}var Xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Zt(e){B("device.audio.download",{params:e,platform:Xt})}var Qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function eo(e){B("device.audio.play",{params:e,platform:Qt})}var no={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function to(e){B("device.audio.pause",{params:e,platform:no})}var oo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function io(e){B("device.audio.stop",{params:e,platform:oo})}var ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ao(e){B("device.audio.onPlayEnd",{params:e,platform:ro})}var so={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function co(e){B("device.audio.resume",{params:e,platform:so})}var uo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function lo(e){B("device.connection.getNetworkType",{params:e,platform:uo})}var po={pc:{vs:"0.0.0"}};function fo(e){B("device.connection.isAtTal",{params:e,platform:po})}var vo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function mo(e){B("device.base.getUUID",{params:e,platform:vo})}var go={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ho(e){B("device.base.checkStepPermission",{params:e,platform:go})}var bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wo(e){B("device.audio.onRecordEnd_v2",{params:e,platform:bo})}var yo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ko(e){B("device.audio.startRecord_v2",{params:e,platform:yo})}var Po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function So(e){B("device.audio.stopRecord_v2",{params:e,platform:Po})}var zo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Co(e){B("device.system.setLight",{params:e,platform:zo})}var To={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Io(e){B("biz.telephone.showCallMenu",{params:e,platform:To})}var Mo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function xo(e){B("biz.telephone.call",{params:e,platform:Mo})}var Eo={ios:{vs:"0.0.0"}};function Fo(e){B("ui.webViewBounce.disable",{params:e,platform:Eo})}var Ao={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Do(e){B("ui.pullToRefresh.enable",{params:e,platform:Ao})}var jo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Oo(e){B("ui.pullToRefresh.stop",{params:e,platform:jo})}var Vo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ro(e){B("ui.pullToRefresh.disable",{params:e,platform:Vo})}var Wo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bo(e){B("util.domainStorage.getItem",{params:e,platform:Wo})}var _o={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function No(e){B("util.domainStorage.setItem",{params:e,platform:_o})}var Lo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ho(e){B("util.domainStorage.removeItem",{params:e,platform:Lo})}var Uo={pc:{vs:"1.7.0"}};function Jo(e){B("util.tool.writeLog",{params:e,platform:Uo})}var Yo={pc:{vs:"1.7.0"}};function qo(e){B("util.tool.flushLog",{params:e,platform:Yo})}var Go={pc:{vs:"1.9.9"}};function Ko(e){B("biz.util.capturePage",{params:e,platform:Go})}var $o={ios:{vs:"0.0.0"}};function Xo(e){B("biz.webViewMessage.send",{params:e,platform:$o})}function Zo(e){B("app.custom.talYoungFilesUpload",{params:e})}var Qo={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function ei(e){B("biz.util.addAppToNav",{params:e,platform:Qo})}console.log("add rouseApp ------------\x3e",He);var ni=R.exportSdk,ti=ni.version,oi=ni.sdkVersion,ii=ni.env,ri=ni.platform,ai=ni.platformV2,si=ni.config,ci=ni.ready,ui=ni.error,di=ni.on,li=ni.off;n.default={version:ti,sdkVersion:oi,env:ii,platform:ri,platformV2:ai,config:si,ready:ci,error:ui,on:di,off:li,biz:{util:{openLink:_,feedback:N,open:L,openSlidePanel:U,share:Y,previewFile:q,previewImage:G,downloadFile:K,uploadAttachment:$,clipboardFileUpload:X,proxy:Z,datepicker:ee,datetimepicker:te,scan:ie,chosen:de,openSingleWebview:pe,getSingleWebviewData:fe,injectScript:ve,onlineDocmentOpenTeamChat:tn,entergroupCheck:rn,resetSessionUnread:sn,weeklyRead:un,openFutureGroup:fn,closeWindow:ge,remind:be,takePicture:we,openVideoPlayer:ke,openMediaFileDialog:Pe,mediaFileUpload:Se,invoice:ze,pushWorkMsg:Ce,openTalYoungToTopic:Te,getToken:Me,authStart:Ee,authFinish:Ae,assistantCreate:je,yachEvent:Ve,topicEvent:We,openTogetherEyeWebview:_e,getTogetherConfig:Le,rouseApp:He,externalLinkPreviewFile:Ue,savePic:Ge,zfbAuth:Ye,complain:Ke,selectDepartment:$e,createModifySchedule:Ze,openUserSchedule:en,disableScreenCapture:ln,addAppToNav:ei,knowledgeBaseSelect:mn,knowledgeSelectParams:hn,lorebaseShowList:wn,lorebaseRefreshNodeWebview:kn,copy:Sn,capturePage:Ko},telephone:{showCallMenu:Io,call:xo},navigation:{setIcon:Mn,setTitle:xn,setMenu:An,close:Dn,replace:jn,quit:Vn,setRight:Bn,setTitleExpandIcon:Ln,updateExpandTitle:Hn,setLeft:Yn,goBack:Gn,setWindowBig:$n,tencentMeeting:Xn,tencentMeetingBegin:Zn,setPanGestureEnable:nt},contact:{complexPicker:tt,departmentsPicker:ot},group:{groupComplexPicker:it},chat:{chooseConversationByCorpId:rt,pickConversation:st,openSingleChat:ct,openTeamChat:ut,openSquad:dt,sendP2PMsg:lt},map:{view:ae,multipointView:ce},webViewMessage:{send:Xo}},runtime:{permission:{requestAuthCode:yt}},primary:{createTab:ft,weeklyShare:mt,fullScreen:ht,exitFullScreen:wt},device:{notification:{showPreloader:St,showCustomOverlayContent:zt,hidePreloader:It,hideCustomOverlayContent:Mt,vibrate:Et,toast:Ft,alert:Rt,confirm:Bt,actionSheet:Dt},base:{getPhoneInfo:Ot,getUUID:mo,checkStepPermission:ho},geolocation:{get:Nt,getSwitch:Ht},system:{getLang:Ut,setLight:Co},audio:{startRecord:Yt,stopRecord:Gt,onRecordEnd:$t,download:Zt,play:eo,pause:to,stop:io,onPlayEnd:ao,resume:co,onRecordEnd_v2:wo,startRecord_v2:ko,stopRecord_v2:So},connection:{getNetworkType:lo,isAtTal:fo}},ui:{webViewBounce:{disable:Fo},pullToRefresh:{enable:Do,stop:Oo,disable:Ro}},util:{domainStorage:{getItem:Bo,setItem:No,removeItem:Ho},tool:{writeLog:Jo,flushLog:qo}},app:{custom:{talYoungFilesUpload:Zo}}}}]).default;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IError } from '../../common.typings';
|
|
2
|
-
export interface
|
|
2
|
+
export interface KnowledgeSelectParamsParamsResult {
|
|
3
3
|
code: number;
|
|
4
4
|
message: string;
|
|
5
5
|
data: any;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface KnowledgeSelectParamsParams {
|
|
8
8
|
type: number;
|
|
9
|
-
result:
|
|
10
|
-
onSuccess?: (res:
|
|
9
|
+
result: KnowledgeSelectParamsParamsResult;
|
|
10
|
+
onSuccess?: (res: KnowledgeSelectParamsParamsResult) => void;
|
|
11
11
|
onFail?: (err: IError) => void;
|
|
12
12
|
}
|
|
13
|
-
declare function knowledgeSelectParams(params:
|
|
13
|
+
declare function knowledgeSelectParams(params: KnowledgeSelectParamsParams): void;
|
|
14
14
|
export { knowledgeSelectParams };
|
package/es/index.d.ts
CHANGED
|
@@ -55,8 +55,6 @@ import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
|
|
|
55
55
|
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
56
56
|
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
57
57
|
import { copy } from './api/biz/util/copy';
|
|
58
|
-
import { openPublish } from './api/biz/util/openPublish';
|
|
59
|
-
import { getConfig } from './api/biz/util/getConfig';
|
|
60
58
|
/**navigation*/
|
|
61
59
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
62
60
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -86,7 +84,6 @@ import { openTeamChat } from './api/biz/chat/openTeamChat';
|
|
|
86
84
|
import { openSquad } from './api/biz/chat/openSquad';
|
|
87
85
|
import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
|
|
88
86
|
import { createTab } from './api/primary/createTab';
|
|
89
|
-
import { updateTab } from './api/primary/updateTab';
|
|
90
87
|
import { weeklyShare } from './api/primary/weeklyShare';
|
|
91
88
|
import { fullScreen } from './api/primary/fullScreen';
|
|
92
89
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
@@ -138,7 +135,7 @@ import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
|
138
135
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
139
136
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
140
137
|
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;
|
|
141
|
-
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,
|
|
138
|
+
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, knowledgeSelectParams, lorebaseShowList, lorebaseRefreshNodeWebview, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage, };
|
|
142
139
|
declare const _default: {
|
|
143
140
|
version: string;
|
|
144
141
|
sdkVersion: string;
|
|
@@ -207,9 +204,7 @@ declare const _default: {
|
|
|
207
204
|
lorebaseShowList: typeof lorebaseShowList;
|
|
208
205
|
lorebaseRefreshNodeWebview: typeof lorebaseRefreshNodeWebview;
|
|
209
206
|
copy: typeof copy;
|
|
210
|
-
openPublish: typeof openPublish;
|
|
211
207
|
capturePage: typeof capturePage;
|
|
212
|
-
getConfig: typeof getConfig;
|
|
213
208
|
};
|
|
214
209
|
telephone: {
|
|
215
210
|
showCallMenu: typeof showCallMenu;
|
|
@@ -262,7 +257,6 @@ declare const _default: {
|
|
|
262
257
|
};
|
|
263
258
|
primary: {
|
|
264
259
|
createTab: typeof createTab;
|
|
265
|
-
updateTab: typeof updateTab;
|
|
266
260
|
weeklyShare: typeof weeklyShare;
|
|
267
261
|
fullScreen: typeof fullScreen;
|
|
268
262
|
exitFullScreen: typeof exitFullScreen;
|
package/es/index.js
CHANGED
|
@@ -57,8 +57,6 @@ import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
|
|
|
57
57
|
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
58
58
|
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
59
59
|
import { copy } from './api/biz/util/copy';
|
|
60
|
-
import { openPublish } from './api/biz/util/openPublish';
|
|
61
|
-
import { getConfig } from './api/biz/util/getConfig';
|
|
62
60
|
/**navigation*/
|
|
63
61
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
64
62
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -89,7 +87,6 @@ import { openSquad } from './api/biz/chat/openSquad';
|
|
|
89
87
|
import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
|
|
90
88
|
/* primary*****************************/
|
|
91
89
|
import { createTab } from './api/primary/createTab';
|
|
92
|
-
import { updateTab } from './api/primary/updateTab';
|
|
93
90
|
import { weeklyShare } from './api/primary/weeklyShare';
|
|
94
91
|
import { fullScreen } from './api/primary/fullScreen';
|
|
95
92
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
@@ -156,7 +153,7 @@ var _yachSdk$exportSdk = yachSdk.exportSdk,
|
|
|
156
153
|
error = _yachSdk$exportSdk.error,
|
|
157
154
|
on = _yachSdk$exportSdk.on,
|
|
158
155
|
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,
|
|
156
|
+
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, knowledgeSelectParams, lorebaseShowList, lorebaseRefreshNodeWebview, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage };
|
|
160
157
|
export default {
|
|
161
158
|
version: version,
|
|
162
159
|
sdkVersion: sdkVersion,
|
|
@@ -225,9 +222,7 @@ export default {
|
|
|
225
222
|
lorebaseShowList: lorebaseShowList,
|
|
226
223
|
lorebaseRefreshNodeWebview: lorebaseRefreshNodeWebview,
|
|
227
224
|
copy: copy,
|
|
228
|
-
|
|
229
|
-
capturePage: capturePage,
|
|
230
|
-
getConfig: getConfig
|
|
225
|
+
capturePage: capturePage
|
|
231
226
|
},
|
|
232
227
|
telephone: {
|
|
233
228
|
showCallMenu: showCallMenu,
|
|
@@ -280,7 +275,6 @@ export default {
|
|
|
280
275
|
},
|
|
281
276
|
primary: {
|
|
282
277
|
createTab: createTab,
|
|
283
|
-
updateTab: updateTab,
|
|
284
278
|
weeklyShare: weeklyShare,
|
|
285
279
|
fullScreen: fullScreen,
|
|
286
280
|
exitFullScreen: exitFullScreen
|
|
@@ -3,24 +3,41 @@ declare global {
|
|
|
3
3
|
sendToHost: any;
|
|
4
4
|
sendTo: any;
|
|
5
5
|
receiveBrowserViewData: any;
|
|
6
|
-
remoteSendToHost?: (payload: string) => void;
|
|
7
|
-
remoteReceiveFromHost?: (callback: (result: Record<string, any>) => void, moduleId?: string) => void;
|
|
8
6
|
}
|
|
9
7
|
}
|
|
10
|
-
|
|
8
|
+
interface APIParams {
|
|
9
|
+
invokeType?: 'browserView' | '';
|
|
10
|
+
[propName: string]: any;
|
|
11
|
+
}
|
|
12
|
+
declare class GenPostMsg {
|
|
13
|
+
private id;
|
|
14
|
+
private PromiseObj;
|
|
15
|
+
private methodName;
|
|
16
|
+
private plainMsg;
|
|
17
|
+
callback: (v: any) => void;
|
|
18
|
+
result: Promise<any>;
|
|
19
|
+
invokeType: 'browserView' | '';
|
|
20
|
+
constructor(method: string, param: APIParams, callback: any);
|
|
21
|
+
genid: () => string;
|
|
22
|
+
receiveResponse: (data: any) => void;
|
|
23
|
+
getPayload: () => {
|
|
24
|
+
msgId: string;
|
|
25
|
+
methodName: string;
|
|
26
|
+
body: object;
|
|
27
|
+
type: string;
|
|
28
|
+
invokeType: "" | "browserView";
|
|
29
|
+
};
|
|
30
|
+
}
|
|
11
31
|
declare class Frame {
|
|
12
32
|
pendingMsgs: {};
|
|
13
|
-
invokeType?: InvokeType;
|
|
14
|
-
moduleId?: string;
|
|
15
33
|
constructor();
|
|
16
34
|
addPending: (e: any) => void;
|
|
17
35
|
deletePending: (e: any) => void;
|
|
18
36
|
getPending: (t: any) => any;
|
|
19
37
|
invokeAPIInBrowserView: (payload: string) => void;
|
|
20
38
|
invokeAPIInWebview: (payload: string) => void;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
handleCallback: (datas: any, invokeType?: InvokeType) => void;
|
|
39
|
+
invokeAPI: (method: string, param: any, callback: any) => GenPostMsg;
|
|
40
|
+
handleCallback: (datas: any, invokeType?: 'browserView' | '') => void;
|
|
24
41
|
init: () => void;
|
|
25
42
|
}
|
|
26
43
|
declare const frame: Frame;
|
|
@@ -21,7 +21,6 @@ var GenPostMsg = /*#__PURE__*/_createClass(function GenPostMsg(method, param, ca
|
|
|
21
21
|
return {
|
|
22
22
|
msgId: _this.id,
|
|
23
23
|
methodName: _this.methodName,
|
|
24
|
-
moduleId: _this.moduleId,
|
|
25
24
|
body: _this.plainMsg,
|
|
26
25
|
type: 'request',
|
|
27
26
|
invokeType: _this.invokeType
|
|
@@ -35,7 +34,6 @@ var GenPostMsg = /*#__PURE__*/_createClass(function GenPostMsg(method, param, ca
|
|
|
35
34
|
this.methodName = method;
|
|
36
35
|
this.plainMsg = param;
|
|
37
36
|
this.invokeType = param === null || param === void 0 ? void 0 : param.invokeType;
|
|
38
|
-
this.moduleId = param === null || param === void 0 ? void 0 : param.moduleId;
|
|
39
37
|
this.callback = callback;
|
|
40
38
|
// this.result = new Promise(
|
|
41
39
|
// function (resolve, reject) {
|
|
@@ -64,25 +62,12 @@ var Frame = /*#__PURE__*/_createClass(function Frame() {
|
|
|
64
62
|
this.invokeAPIInWebview = function (payload) {
|
|
65
63
|
window.sendToHost(payload);
|
|
66
64
|
};
|
|
67
|
-
this.invokeAPIInModuleFederation = function (payload) {
|
|
68
|
-
window.remoteSendToHost(payload);
|
|
69
|
-
};
|
|
70
65
|
this.invokeAPI = function (method, param, callback) {
|
|
71
|
-
var genPostMsg;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
var payload = _JSON$stringify(genPostMsg.getPayload());
|
|
77
|
-
_this2.invokeAPIInModuleFederation(payload);
|
|
78
|
-
} else {
|
|
79
|
-
genPostMsg = new GenPostMsg(method, param, callback);
|
|
80
|
-
var _payload = _JSON$stringify(genPostMsg.getPayload());
|
|
81
|
-
var _param$invokeType = param.invokeType,
|
|
82
|
-
invokeType = _param$invokeType === void 0 ? '' : _param$invokeType;
|
|
83
|
-
invokeType === 'browserView' ? _this2.invokeAPIInBrowserView(_payload) : _this2.invokeAPIInWebview(_payload);
|
|
84
|
-
}
|
|
85
|
-
// 调用时传入 moduleId
|
|
66
|
+
var genPostMsg = new GenPostMsg(method, param, callback);
|
|
67
|
+
var payload = _JSON$stringify(genPostMsg.getPayload());
|
|
68
|
+
var _param$invokeType = param.invokeType,
|
|
69
|
+
invokeType = _param$invokeType === void 0 ? '' : _param$invokeType;
|
|
70
|
+
invokeType === 'browserView' ? _this2.invokeAPIInBrowserView(payload) : _this2.invokeAPIInWebview(payload);
|
|
86
71
|
_this2.addPending(genPostMsg);
|
|
87
72
|
return genPostMsg;
|
|
88
73
|
};
|
|
@@ -151,13 +136,6 @@ var Frame = /*#__PURE__*/_createClass(function Frame() {
|
|
|
151
136
|
}
|
|
152
137
|
};
|
|
153
138
|
this.init = function () {
|
|
154
|
-
var _a;
|
|
155
|
-
if (_this2.invokeType === 'moduleFederation') {
|
|
156
|
-
(_a = window.remoteReceiveFromHost) === null || _a === void 0 ? void 0 : _a.call(window, function (response) {
|
|
157
|
-
_this2.handleCallback(response);
|
|
158
|
-
}, _this2.moduleId);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
139
|
window.addEventListener('message', function (msg) {
|
|
162
140
|
log('electron res: ', msg);
|
|
163
141
|
_this2.handleCallback(msg.data || {});
|
|
@@ -167,8 +145,6 @@ var Frame = /*#__PURE__*/_createClass(function Frame() {
|
|
|
167
145
|
});
|
|
168
146
|
};
|
|
169
147
|
this.pendingMsgs = {};
|
|
170
|
-
this.invokeType = window.remoteSendToHost && window.remoteReceiveFromHost && process ? 'moduleFederation' : '';
|
|
171
|
-
this.moduleId = Math.random().toString(36).substring(2, 15);
|
|
172
148
|
});
|
|
173
149
|
var frame = new Frame();
|
|
174
150
|
export default frame;
|
package/es/utils/env.js
CHANGED
|
@@ -10,8 +10,7 @@ function getENV() {
|
|
|
10
10
|
inPC = /YachPc/i.test(ua),
|
|
11
11
|
inIpad = /iPad/i.test(ua) && inYach,
|
|
12
12
|
inIPhone = /iPhone/i.test(ua) && inYach,
|
|
13
|
-
isTest = /Yachtest/.test(ua) && inYach
|
|
14
|
-
inHarmonyNext = /HarmonyOSNext/i.test(ua) && inYach;
|
|
13
|
+
isTest = /Yachtest/.test(ua) && inYach;
|
|
15
14
|
// platform
|
|
16
15
|
var platform = ENV_ENUM.notInYach;
|
|
17
16
|
if (inIOS) {
|
|
@@ -36,8 +35,7 @@ function getENV() {
|
|
|
36
35
|
inAndroid: inAndroid,
|
|
37
36
|
inPC: inPC,
|
|
38
37
|
inIpad: inIpad,
|
|
39
|
-
inIPhone: inIPhone
|
|
40
|
-
inHarmonyNext: inHarmonyNext
|
|
38
|
+
inIPhone: inIPhone
|
|
41
39
|
},
|
|
42
40
|
version: version,
|
|
43
41
|
language: language,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IError } from '../../common.typings';
|
|
2
|
-
export interface
|
|
2
|
+
export interface KnowledgeSelectParamsParamsResult {
|
|
3
3
|
code: number;
|
|
4
4
|
message: string;
|
|
5
5
|
data: any;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface KnowledgeSelectParamsParams {
|
|
8
8
|
type: number;
|
|
9
|
-
result:
|
|
10
|
-
onSuccess?: (res:
|
|
9
|
+
result: KnowledgeSelectParamsParamsResult;
|
|
10
|
+
onSuccess?: (res: KnowledgeSelectParamsParamsResult) => void;
|
|
11
11
|
onFail?: (err: IError) => void;
|
|
12
12
|
}
|
|
13
|
-
declare function knowledgeSelectParams(params:
|
|
13
|
+
declare function knowledgeSelectParams(params: KnowledgeSelectParamsParams): void;
|
|
14
14
|
export { knowledgeSelectParams };
|
package/libs/index.d.ts
CHANGED
|
@@ -55,8 +55,6 @@ import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
|
|
|
55
55
|
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
56
56
|
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
57
57
|
import { copy } from './api/biz/util/copy';
|
|
58
|
-
import { openPublish } from './api/biz/util/openPublish';
|
|
59
|
-
import { getConfig } from './api/biz/util/getConfig';
|
|
60
58
|
/**navigation*/
|
|
61
59
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
62
60
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -86,7 +84,6 @@ import { openTeamChat } from './api/biz/chat/openTeamChat';
|
|
|
86
84
|
import { openSquad } from './api/biz/chat/openSquad';
|
|
87
85
|
import { sendP2PMsg } from './api/biz/chat/sendP2PMsg';
|
|
88
86
|
import { createTab } from './api/primary/createTab';
|
|
89
|
-
import { updateTab } from './api/primary/updateTab';
|
|
90
87
|
import { weeklyShare } from './api/primary/weeklyShare';
|
|
91
88
|
import { fullScreen } from './api/primary/fullScreen';
|
|
92
89
|
import { exitFullScreen } from './api/primary/exitFullScreen';
|
|
@@ -138,7 +135,7 @@ import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
|
138
135
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
139
136
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
140
137
|
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;
|
|
141
|
-
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,
|
|
138
|
+
export { version, sdkVersion, env, platform, platformV2, config, ready, error, on, off, openLink, feedback, open, openSlidePanel, share, previewFile, previewImage, downloadFile, uploadAttachment, clipboardFileUpload, proxy, datepicker, scan, chosen, openSingleWebview, getSingleWebviewData, injectScript, closeWindow, showCallMenu, call, setIcon, setTitle, setMenu, close, replacePage, quit, setRight, setTitleExpandIcon, updateExpandTitle, setLeft, goBack, complexPicker, departmentsPicker, groupComplexPicker, chooseConversationByCorpId, pickConversation, openSingleChat, openTeamChat, openSquad, sendP2PMsg, mapView, multipointView, requestAuthCode, createTab, weeklyShare, fullScreen, exitFullScreen, showPreloader, showCustomOverlayContent, hidePreloader, hideCustomOverlayContent, vibrate, toast, alert, confirm, getPhoneInfo, getUUID, checkStepPermission, getGeolocation, getGeolocationSwitch, getLang, startRecord, stopRecord, onRecordEnd, downloadAudio, playAudio, pauseAudio, stopAudio, onPlayEnd, resumeAudio, getNetworkType, isAtTal, webViewBounceDisable, pullToRefreshEnable, pullToRefreshStop, pullToRefreshDisable, getItem, setItem, removeItem, writeLog, flushLog, remind, takePicture, datetimepicker, actionSheet, webViewMessageSend, talYoungFilesUpload, openVideoPlayer, openMediaFileDialog, mediaFileUpload, invoice, pushWorkMsg, openTalYoungToTopic, getToken, authStart, authFinish, assistantCreate, yachEvent, topicEvent, openTogetherEyeWebview, getTogetherConfig, rouseApp, externalLinkPreviewFile, savePic, zfbAuth, complain, onRecordEnd_v2, startRecord_v2, stopRecord_v2, selectDepartment, setWindowBig, tencentMeeting, tencentMeetingBegin, createModifySchedule, onlineDocmentOpenTeamChat, entergroupCheck, resetSessionUnread, weeklyRead, openFutureGroup, knowledgeBaseSelect, knowledgeSelectParams, lorebaseShowList, lorebaseRefreshNodeWebview, setLight, openUserSchedule, disableScreenCapture, setPanGestureEnable, addAppToNav, copy, capturePage, };
|
|
142
139
|
declare const _default: {
|
|
143
140
|
version: string;
|
|
144
141
|
sdkVersion: string;
|
|
@@ -207,9 +204,7 @@ declare const _default: {
|
|
|
207
204
|
lorebaseShowList: typeof lorebaseShowList;
|
|
208
205
|
lorebaseRefreshNodeWebview: typeof lorebaseRefreshNodeWebview;
|
|
209
206
|
copy: typeof copy;
|
|
210
|
-
openPublish: typeof openPublish;
|
|
211
207
|
capturePage: typeof capturePage;
|
|
212
|
-
getConfig: typeof getConfig;
|
|
213
208
|
};
|
|
214
209
|
telephone: {
|
|
215
210
|
showCallMenu: typeof showCallMenu;
|
|
@@ -262,7 +257,6 @@ declare const _default: {
|
|
|
262
257
|
};
|
|
263
258
|
primary: {
|
|
264
259
|
createTab: typeof createTab;
|
|
265
|
-
updateTab: typeof updateTab;
|
|
266
260
|
weeklyShare: typeof weeklyShare;
|
|
267
261
|
fullScreen: typeof fullScreen;
|
|
268
262
|
exitFullScreen: typeof exitFullScreen;
|
package/libs/index.js
CHANGED
|
@@ -199,12 +199,6 @@ _Object$defineProperty(exports, "fullScreen", {
|
|
|
199
199
|
return _fullScreen.fullScreen;
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
|
-
_Object$defineProperty(exports, "getConfig", {
|
|
203
|
-
enumerable: true,
|
|
204
|
-
get: function get() {
|
|
205
|
-
return _getConfig.getConfig;
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
202
|
_Object$defineProperty(exports, "getGeolocation", {
|
|
209
203
|
enumerable: true,
|
|
210
204
|
get: function get() {
|
|
@@ -398,12 +392,6 @@ _Object$defineProperty(exports, "openMediaFileDialog", {
|
|
|
398
392
|
return _openMediaFileDialog.openMediaFileDialog;
|
|
399
393
|
}
|
|
400
394
|
});
|
|
401
|
-
_Object$defineProperty(exports, "openPublish", {
|
|
402
|
-
enumerable: true,
|
|
403
|
-
get: function get() {
|
|
404
|
-
return _openPublish.openPublish;
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
395
|
_Object$defineProperty(exports, "openSingleChat", {
|
|
408
396
|
enumerable: true,
|
|
409
397
|
get: function get() {
|
|
@@ -749,12 +737,6 @@ _Object$defineProperty(exports, "updateExpandTitle", {
|
|
|
749
737
|
return _updateExpandTitle.updateExpandTitle;
|
|
750
738
|
}
|
|
751
739
|
});
|
|
752
|
-
_Object$defineProperty(exports, "updateTab", {
|
|
753
|
-
enumerable: true,
|
|
754
|
-
get: function get() {
|
|
755
|
-
return _updateTab.updateTab;
|
|
756
|
-
}
|
|
757
|
-
});
|
|
758
740
|
_Object$defineProperty(exports, "uploadAttachment", {
|
|
759
741
|
enumerable: true,
|
|
760
742
|
get: function get() {
|
|
@@ -867,8 +849,6 @@ var _knowledgeSelectParams = require("./api/biz/util/knowledgeSelectParams");
|
|
|
867
849
|
var _lorebaseShowList = require("./api/biz/util/lorebaseShowList");
|
|
868
850
|
var _lorebaseRefreshNodeWebview = require("./api/biz/util/lorebaseRefreshNodeWebview");
|
|
869
851
|
var _copy = require("./api/biz/util/copy");
|
|
870
|
-
var _openPublish = require("./api/biz/util/openPublish");
|
|
871
|
-
var _getConfig = require("./api/biz/util/getConfig");
|
|
872
852
|
var _setIcon = require("./api/biz/navigation/setIcon");
|
|
873
853
|
var _setTitle = require("./api/biz/navigation/setTitle");
|
|
874
854
|
var _setMenu = require("./api/biz/navigation/setMenu");
|
|
@@ -894,7 +874,6 @@ var _openTeamChat = require("./api/biz/chat/openTeamChat");
|
|
|
894
874
|
var _openSquad = require("./api/biz/chat/openSquad");
|
|
895
875
|
var _sendP2PMsg = require("./api/biz/chat/sendP2PMsg");
|
|
896
876
|
var _createTab = require("./api/primary/createTab");
|
|
897
|
-
var _updateTab = require("./api/primary/updateTab");
|
|
898
877
|
var _weeklyShare = require("./api/primary/weeklyShare");
|
|
899
878
|
var _fullScreen = require("./api/primary/fullScreen");
|
|
900
879
|
var _exitFullScreen = require("./api/primary/exitFullScreen");
|
|
@@ -1049,9 +1028,7 @@ var _default = exports["default"] = {
|
|
|
1049
1028
|
lorebaseShowList: _lorebaseShowList.lorebaseShowList,
|
|
1050
1029
|
lorebaseRefreshNodeWebview: _lorebaseRefreshNodeWebview.lorebaseRefreshNodeWebview,
|
|
1051
1030
|
copy: _copy.copy,
|
|
1052
|
-
|
|
1053
|
-
capturePage: _screen.capturePage,
|
|
1054
|
-
getConfig: _getConfig.getConfig
|
|
1031
|
+
capturePage: _screen.capturePage
|
|
1055
1032
|
},
|
|
1056
1033
|
telephone: {
|
|
1057
1034
|
showCallMenu: _showCallMenu.showCallMenu,
|
|
@@ -1104,7 +1081,6 @@ var _default = exports["default"] = {
|
|
|
1104
1081
|
},
|
|
1105
1082
|
primary: {
|
|
1106
1083
|
createTab: _createTab.createTab,
|
|
1107
|
-
updateTab: _updateTab.updateTab,
|
|
1108
1084
|
weeklyShare: _weeklyShare.weeklyShare,
|
|
1109
1085
|
fullScreen: _fullScreen.fullScreen,
|
|
1110
1086
|
exitFullScreen: _exitFullScreen.exitFullScreen
|
|
@@ -3,24 +3,41 @@ declare global {
|
|
|
3
3
|
sendToHost: any;
|
|
4
4
|
sendTo: any;
|
|
5
5
|
receiveBrowserViewData: any;
|
|
6
|
-
remoteSendToHost?: (payload: string) => void;
|
|
7
|
-
remoteReceiveFromHost?: (callback: (result: Record<string, any>) => void, moduleId?: string) => void;
|
|
8
6
|
}
|
|
9
7
|
}
|
|
10
|
-
|
|
8
|
+
interface APIParams {
|
|
9
|
+
invokeType?: 'browserView' | '';
|
|
10
|
+
[propName: string]: any;
|
|
11
|
+
}
|
|
12
|
+
declare class GenPostMsg {
|
|
13
|
+
private id;
|
|
14
|
+
private PromiseObj;
|
|
15
|
+
private methodName;
|
|
16
|
+
private plainMsg;
|
|
17
|
+
callback: (v: any) => void;
|
|
18
|
+
result: Promise<any>;
|
|
19
|
+
invokeType: 'browserView' | '';
|
|
20
|
+
constructor(method: string, param: APIParams, callback: any);
|
|
21
|
+
genid: () => string;
|
|
22
|
+
receiveResponse: (data: any) => void;
|
|
23
|
+
getPayload: () => {
|
|
24
|
+
msgId: string;
|
|
25
|
+
methodName: string;
|
|
26
|
+
body: object;
|
|
27
|
+
type: string;
|
|
28
|
+
invokeType: "" | "browserView";
|
|
29
|
+
};
|
|
30
|
+
}
|
|
11
31
|
declare class Frame {
|
|
12
32
|
pendingMsgs: {};
|
|
13
|
-
invokeType?: InvokeType;
|
|
14
|
-
moduleId?: string;
|
|
15
33
|
constructor();
|
|
16
34
|
addPending: (e: any) => void;
|
|
17
35
|
deletePending: (e: any) => void;
|
|
18
36
|
getPending: (t: any) => any;
|
|
19
37
|
invokeAPIInBrowserView: (payload: string) => void;
|
|
20
38
|
invokeAPIInWebview: (payload: string) => void;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
handleCallback: (datas: any, invokeType?: InvokeType) => void;
|
|
39
|
+
invokeAPI: (method: string, param: any, callback: any) => GenPostMsg;
|
|
40
|
+
handleCallback: (datas: any, invokeType?: 'browserView' | '') => void;
|
|
24
41
|
init: () => void;
|
|
25
42
|
}
|
|
26
43
|
declare const frame: Frame;
|
|
@@ -29,7 +29,6 @@ var GenPostMsg = /*#__PURE__*/(0, _createClass2["default"])(function GenPostMsg(
|
|
|
29
29
|
return {
|
|
30
30
|
msgId: _this.id,
|
|
31
31
|
methodName: _this.methodName,
|
|
32
|
-
moduleId: _this.moduleId,
|
|
33
32
|
body: _this.plainMsg,
|
|
34
33
|
type: 'request',
|
|
35
34
|
invokeType: _this.invokeType
|
|
@@ -43,7 +42,6 @@ var GenPostMsg = /*#__PURE__*/(0, _createClass2["default"])(function GenPostMsg(
|
|
|
43
42
|
this.methodName = method;
|
|
44
43
|
this.plainMsg = param;
|
|
45
44
|
this.invokeType = param === null || param === void 0 ? void 0 : param.invokeType;
|
|
46
|
-
this.moduleId = param === null || param === void 0 ? void 0 : param.moduleId;
|
|
47
45
|
this.callback = callback;
|
|
48
46
|
// this.result = new Promise(
|
|
49
47
|
// function (resolve, reject) {
|
|
@@ -72,25 +70,12 @@ var Frame = /*#__PURE__*/(0, _createClass2["default"])(function Frame() {
|
|
|
72
70
|
this.invokeAPIInWebview = function (payload) {
|
|
73
71
|
window.sendToHost(payload);
|
|
74
72
|
};
|
|
75
|
-
this.invokeAPIInModuleFederation = function (payload) {
|
|
76
|
-
window.remoteSendToHost(payload);
|
|
77
|
-
};
|
|
78
73
|
this.invokeAPI = function (method, param, callback) {
|
|
79
|
-
var genPostMsg;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
var payload = (0, _stringify["default"])(genPostMsg.getPayload());
|
|
85
|
-
_this2.invokeAPIInModuleFederation(payload);
|
|
86
|
-
} else {
|
|
87
|
-
genPostMsg = new GenPostMsg(method, param, callback);
|
|
88
|
-
var _payload = (0, _stringify["default"])(genPostMsg.getPayload());
|
|
89
|
-
var _param$invokeType = param.invokeType,
|
|
90
|
-
invokeType = _param$invokeType === void 0 ? '' : _param$invokeType;
|
|
91
|
-
invokeType === 'browserView' ? _this2.invokeAPIInBrowserView(_payload) : _this2.invokeAPIInWebview(_payload);
|
|
92
|
-
}
|
|
93
|
-
// 调用时传入 moduleId
|
|
74
|
+
var genPostMsg = new GenPostMsg(method, param, callback);
|
|
75
|
+
var payload = (0, _stringify["default"])(genPostMsg.getPayload());
|
|
76
|
+
var _param$invokeType = param.invokeType,
|
|
77
|
+
invokeType = _param$invokeType === void 0 ? '' : _param$invokeType;
|
|
78
|
+
invokeType === 'browserView' ? _this2.invokeAPIInBrowserView(payload) : _this2.invokeAPIInWebview(payload);
|
|
94
79
|
_this2.addPending(genPostMsg);
|
|
95
80
|
return genPostMsg;
|
|
96
81
|
};
|
|
@@ -159,13 +144,6 @@ var Frame = /*#__PURE__*/(0, _createClass2["default"])(function Frame() {
|
|
|
159
144
|
}
|
|
160
145
|
};
|
|
161
146
|
this.init = function () {
|
|
162
|
-
var _a;
|
|
163
|
-
if (_this2.invokeType === 'moduleFederation') {
|
|
164
|
-
(_a = window.remoteReceiveFromHost) === null || _a === void 0 ? void 0 : _a.call(window, function (response) {
|
|
165
|
-
_this2.handleCallback(response);
|
|
166
|
-
}, _this2.moduleId);
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
147
|
window.addEventListener('message', function (msg) {
|
|
170
148
|
(0, _utils.log)('electron res: ', msg);
|
|
171
149
|
_this2.handleCallback(msg.data || {});
|
|
@@ -175,8 +153,6 @@ var Frame = /*#__PURE__*/(0, _createClass2["default"])(function Frame() {
|
|
|
175
153
|
});
|
|
176
154
|
};
|
|
177
155
|
this.pendingMsgs = {};
|
|
178
|
-
this.invokeType = window.remoteSendToHost && window.remoteReceiveFromHost && process ? 'moduleFederation' : '';
|
|
179
|
-
this.moduleId = Math.random().toString(36).substring(2, 15);
|
|
180
156
|
});
|
|
181
157
|
var frame = new Frame();
|
|
182
158
|
var _default = exports["default"] = frame;
|
package/libs/utils/env.js
CHANGED
|
@@ -17,8 +17,7 @@ function getENV() {
|
|
|
17
17
|
inPC = /YachPc/i.test(ua),
|
|
18
18
|
inIpad = /iPad/i.test(ua) && inYach,
|
|
19
19
|
inIPhone = /iPhone/i.test(ua) && inYach,
|
|
20
|
-
isTest = /Yachtest/.test(ua) && inYach
|
|
21
|
-
inHarmonyNext = /HarmonyOSNext/i.test(ua) && inYach;
|
|
20
|
+
isTest = /Yachtest/.test(ua) && inYach;
|
|
22
21
|
// platform
|
|
23
22
|
var platform = _sdk.ENV_ENUM.notInYach;
|
|
24
23
|
if (inIOS) {
|
|
@@ -43,8 +42,7 @@ function getENV() {
|
|
|
43
42
|
inAndroid: inAndroid,
|
|
44
43
|
inPC: inPC,
|
|
45
44
|
inIpad: inIpad,
|
|
46
|
-
inIPhone: inIPhone
|
|
47
|
-
inHarmonyNext: inHarmonyNext
|
|
45
|
+
inIPhone: inIPhone
|
|
48
46
|
},
|
|
49
47
|
version: version,
|
|
50
48
|
language: language,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yach.open.jssdk",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.6-beta2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"main": "./libs/index.js",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"build": "node ./tools/run compile",
|
|
16
16
|
"lint": "eslint 'src/**/*.{js,ts}'",
|
|
17
17
|
"lint-fix": "eslint --fix 'src/**/*.{js,ts}'",
|
|
18
|
-
"p:beta": "npm publish --tag=beta --access public"
|
|
18
|
+
"p:beta": "npm publish --tag=beta --access public",
|
|
19
|
+
"p": "npm publish"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@babel/runtime-corejs3": "^7.10.3"
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"gulp-umd": "^2.0.0",
|
|
51
52
|
"gulp-util": "^3.0.8",
|
|
52
53
|
"lint-staged": "^10.0.9",
|
|
54
|
+
"npm-cli-login": "1.0.0",
|
|
53
55
|
"prettier": "^2.0.2",
|
|
54
56
|
"qiao.ext.cos": "^0.1.2",
|
|
55
57
|
"ts-loader": "^7.0.1",
|
|
@@ -57,7 +59,6 @@
|
|
|
57
59
|
"webpack": "^4.43.0",
|
|
58
60
|
"webpack-cli": "^3.3.11",
|
|
59
61
|
"webpack-merge": "^4.2.2",
|
|
60
|
-
"yach.open.cli": "^1.0.1"
|
|
61
|
-
"npm-cli-login": "1.0.0"
|
|
62
|
+
"yach.open.cli": "^1.0.1"
|
|
62
63
|
}
|
|
63
64
|
}
|
package/dist/yach_jssdk_4.4.5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.yy=function(e){var n={};function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(o,i,function(n){return e[n]}.bind(null,i));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=7)}([function(e,n,t){"use strict";var o=new function(){var e=this;this.on=function(n,t){if(!n||"function"!=typeof t)throw"eventName is null or handle is not a function, on fail";Array.isArray(e.eventsHandle[n])||(e.eventsHandle[n]=[]),e.eventsHandle[n].push(t)},this.off=function(n,t){if(!n)throw"eventName is null, invoke off fail";if(t){if(Array.isArray(e.eventsHandle[n])){var o=e.eventsHandle[n].indexOf(t);-1!==o&&e.eventsHandle[n].splice(o,1)}}else e.eventsHandle[n]=[]},this.execEvent=function(e,n){Array.isArray(this.eventsHandle[e])&&this.eventsHandle[e].forEach((function(e){try{e(n)}catch(e){console.error(n)}}))},this.eventsHandle={}};n.a=o},function(e,n,t){"use strict";t.d(n,"a",(function(){return a}));var o=t(3);function i(e){if(e)if(e.group)if(e.project)if(e.hasOwnProperty("env"))if(e.hasOwnProperty("version")){var n=["https://es.zhiyinlou.com/log.js?"];n.push("group="+e.group),n.push("&project="+e.project),n.push("&env="+e.env),n.push("&version="+e.version),n.push("&method="+e.method),e.yachid&&n.push("&yachid="+e.yachid),e.workcode&&n.push("&workcode="+e.workcode),e.timestamp&&n.push("×tamp="+e.timestamp),e.errorcode&&n.push("&errorcode="+e.errorcode),e.message&&n.push("&message="+e.message),e.api&&e.time&&(n.push("&api="+e.api),n.push("&load_time="+e.time));var t,o,i=n.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"!=e.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")}var r=function(){return(r=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function a(e){var n=Object(o.a)().env,t=Object(o.a)().version,a=Date.now(),s=r({group:"yach",project:"yach_31_jssdk",env:n,version:t,timestamp:a},e);console.log("jssdk 项目 bpit 上报数据:",s),i(s)}},function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var o={log:function(){},warn:function(){},error:function(){}};if("undefined"!=typeof window&&window.console&&(o=window.console),"undefined"!=typeof document&&document.body){var i=document.createElement("iframe");i&&i.contentWindow&&i.contentWindow.console&&(i.style.display="none",document.body.appendChild(i),o=i.contentWindow.console)}var r=o.log.bind(o),a=(o.warn.bind(o),o.error.bind(o),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function s(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return r("%c Yach-jssdk log: ",a,e)}},function(e,n,t){"use strict";var o;function i(){var e="undefined"!=typeof navigator?navigator.userAgent:"",n=/Yach/i.test(e),t=/iPhone|iPad|iPod|iOS/i.test(e)&&n,i=/Android/i.test(e)&&n,r=/YachPc/i.test(e),a=/iPad/i.test(e)&&n,s=/iPhone/i.test(e)&&n,c=/Yachtest/.test(e)&&n,u=/HarmonyOSNext/i.test(e)&&n,d=o.notInYach;return t&&(d=o.ios),i&&(d=o.android),r&&(d=o.pc),{platform:d,platformV2:{inYach:n,inIOS:t,inAndroid:i,inPC:r,inIpad:a,inIPhone:s,inHarmonyNext:u},version:((e.match(/Yach\/[a-zA-Z0-9.-]+/)||[])[0]||"").split("/")[1]||"",language:"undefined"!=typeof navigator?navigator.language:"*",env:c?"test":"online"}}t.d(n,"a",(function(){return i})),function(e){e.pc="pc",e.android="android",e.ios="ios",e.notInYach="notInYach"}(o||(o={}))},function(e,n,t){"use strict";(function(e){var o=t(2),i=t(0),r=function(e,n,t){var o=this;this.genid=function(){var e=Date.now().toString(36);return e+=Math.random().toString(36).substr(3)},this.receiveResponse=function(e){o.callback(e)},this.getPayload=function(){return{msgId:o.id,methodName:o.methodName,moduleId:o.moduleId,body:o.plainMsg,type:"request",invokeType:o.invokeType}},this.id=this.genid(),this.PromiseObj={resolve:null,reject:null},this.methodName=e,this.plainMsg=n,this.invokeType=null==n?void 0:n.invokeType,this.moduleId=null==n?void 0:n.moduleId,this.callback=t},a=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(e){return this.pendingMsgs[e]},this.invokeAPIInBrowserView=function(e){window.sendTo(e)},this.invokeAPIInWebview=function(e){window.sendToHost(e)},this.invokeAPIInModuleFederation=function(e){window.remoteSendToHost(e)},this.invokeAPI=function(e,t,o){var i;if("moduleFederation"===n.invokeType){t.invokeType=n.invokeType,t.moduleId=n.moduleId,i=new r(e,t,o);var a=JSON.stringify(i.getPayload());n.invokeAPIInModuleFederation(a)}else{i=new r(e,t,o),a=JSON.stringify(i.getPayload());var s=t.invokeType;"browserView"===(void 0===s?"":s)?n.invokeAPIInBrowserView(a):n.invokeAPIInWebview(a)}return n.addPending(i),i},this.handleCallback=function(e,t){var o=e.type,r=e.methodName,a=e.eventName,s=e.msgId,c=e.data,u=void 0===c?{}:c,d=e.code,l=e.message,p=e.msg;if("request"===o)switch(r){case"refresh":window.location.reload();break;case"back":window.history.back();break;case"forward":window.history.forward();break;case"event":i.a.execEvent(a,u);break;case"zoomInClick":var f=document.documentElement.scrollTop||document.body.scrollTop,v=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:r,body:{scrollTopVal:f,url:v,title:u&&u.title}})):window.sendToHost(JSON.stringify({type:o,methodName:r,body:{scrollTopVal:f,url:v,title:u&&u.title}}))}else if("response"===o){var m=n.getPending(s);m&&m.receiveResponse({data:u,code:d,message:l||p||u.msg||u.message}),-3!=d&&n.deletePending(s)}},this.init=function(){var e;"moduleFederation"!==n.invokeType?(window.addEventListener("message",(function(e){Object(o.a)("electron res: ",e),n.handleCallback(e.data||{})})),window.receiveBrowserViewData&&window.receiveBrowserViewData((function(e,t){return n.handleCallback(t)}))):null===(e=window.remoteReceiveFromHost)||void 0===e||e.call(window,(function(e){n.handleCallback(e)}),n.moduleId)},this.pendingMsgs={},this.invokeType=window.remoteSendToHost&&window.remoteReceiveFromHost&&e?"moduleFederation":"",this.moduleId=Math.random().toString(36).substring(2,15)};n.a=a}).call(this,t(6))},function(e){e.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.4.5","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","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.9.7","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-merge":"^4.2.2","yach.open.cli":"^1.0.1","npm-cli-login":"1.0.0"}}')},function(e,n){var t,o,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,u=[],d=!1,l=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):l=-1,u.length&&f())}function f(){if(!d){var e=s(p);d=!0;for(var n=u.length;n;){for(c=u,u=[];++l<n;)c&&c[l].run();l=-1,n=u.length}c=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(n){try{return o.call(null,e)}catch(n){return o.call(this,e)}}}(e)}}function v(e,n){this.fun=e,this.array=n}function m(){}i.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];u.push(new v(e,n)),1!==u.length||d||s(f)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,n,t){"use strict";t.r(n),t.d(n,"version",(function(){return ei})),t.d(n,"sdkVersion",(function(){return ni})),t.d(n,"env",(function(){return ti})),t.d(n,"platform",(function(){return oi})),t.d(n,"platformV2",(function(){return ii})),t.d(n,"config",(function(){return ri})),t.d(n,"ready",(function(){return ai})),t.d(n,"error",(function(){return si})),t.d(n,"on",(function(){return ci})),t.d(n,"off",(function(){return ui})),t.d(n,"openLink",(function(){return E})),t.d(n,"feedback",(function(){return F})),t.d(n,"open",(function(){return A})),t.d(n,"openSlidePanel",(function(){return R})),t.d(n,"share",(function(){return W})),t.d(n,"previewFile",(function(){return B})),t.d(n,"previewImage",(function(){return L})),t.d(n,"downloadFile",(function(){return _})),t.d(n,"uploadAttachment",(function(){return N})),t.d(n,"clipboardFileUpload",(function(){return H})),t.d(n,"proxy",(function(){return U})),t.d(n,"datepicker",(function(){return Y})),t.d(n,"scan",(function(){return $})),t.d(n,"chosen",(function(){return te})),t.d(n,"openSingleWebview",(function(){return ie})),t.d(n,"getSingleWebviewData",(function(){return re})),t.d(n,"injectScript",(function(){return ae})),t.d(n,"closeWindow",(function(){return ce})),t.d(n,"showCallMenu",(function(){return zo})),t.d(n,"call",(function(){return Io})),t.d(n,"setIcon",(function(){return Tn})),t.d(n,"setTitle",(function(){return zn})),t.d(n,"setMenu",(function(){return Mn})),t.d(n,"close",(function(){return jn})),t.d(n,"replacePage",(function(){return xn})),t.d(n,"quit",(function(){return En})),t.d(n,"setRight",(function(){return Dn})),t.d(n,"setTitleExpandIcon",(function(){return Wn})),t.d(n,"updateExpandTitle",(function(){return Bn})),t.d(n,"setLeft",(function(){return Nn})),t.d(n,"goBack",(function(){return Un})),t.d(n,"complexPicker",(function(){return Zn})),t.d(n,"departmentsPicker",(function(){return Qn})),t.d(n,"groupComplexPicker",(function(){return et})),t.d(n,"chooseConversationByCorpId",(function(){return nt})),t.d(n,"pickConversation",(function(){return ot})),t.d(n,"openSingleChat",(function(){return it})),t.d(n,"openTeamChat",(function(){return rt})),t.d(n,"openSquad",(function(){return at})),t.d(n,"sendP2PMsg",(function(){return st})),t.d(n,"mapView",(function(){return Z})),t.d(n,"multipointView",(function(){return ee})),t.d(n,"requestAuthCode",(function(){return bt})),t.d(n,"createTab",(function(){return ut})),t.d(n,"updateTab",(function(){return lt})),t.d(n,"weeklyShare",(function(){return ft})),t.d(n,"fullScreen",(function(){return mt})),t.d(n,"exitFullScreen",(function(){return gt})),t.d(n,"showPreloader",(function(){return kt})),t.d(n,"showCustomOverlayContent",(function(){return Pt})),t.d(n,"hidePreloader",(function(){return zt})),t.d(n,"hideCustomOverlayContent",(function(){return Ct})),t.d(n,"vibrate",(function(){return Mt})),t.d(n,"toast",(function(){return jt})),t.d(n,"alert",(function(){return Dt})),t.d(n,"confirm",(function(){return Vt})),t.d(n,"getPhoneInfo",(function(){return Ft})),t.d(n,"getUUID",(function(){return fo})),t.d(n,"checkStepPermission",(function(){return mo})),t.d(n,"getGeolocation",(function(){return Bt})),t.d(n,"getGeolocationSwitch",(function(){return _t})),t.d(n,"getLang",(function(){return Nt})),t.d(n,"startRecord",(function(){return Ut})),t.d(n,"stopRecord",(function(){return Yt})),t.d(n,"onRecordEnd",(function(){return Gt})),t.d(n,"downloadAudio",(function(){return $t})),t.d(n,"playAudio",(function(){return Zt})),t.d(n,"pauseAudio",(function(){return eo})),t.d(n,"stopAudio",(function(){return to})),t.d(n,"onPlayEnd",(function(){return io})),t.d(n,"resumeAudio",(function(){return ao})),t.d(n,"getNetworkType",(function(){return co})),t.d(n,"isAtTal",(function(){return lo})),t.d(n,"webViewBounceDisable",(function(){return jo})),t.d(n,"pullToRefreshEnable",(function(){return Oo})),t.d(n,"pullToRefreshStop",(function(){return Fo})),t.d(n,"pullToRefreshDisable",(function(){return Do})),t.d(n,"getItem",(function(){return Vo})),t.d(n,"setItem",(function(){return Bo})),t.d(n,"removeItem",(function(){return _o})),t.d(n,"writeLog",(function(){return Ho})),t.d(n,"flushLog",(function(){return Jo})),t.d(n,"remind",(function(){return de})),t.d(n,"takePicture",(function(){return le})),t.d(n,"datetimepicker",(function(){return G})),t.d(n,"actionSheet",(function(){return Ot})),t.d(n,"webViewMessageSend",(function(){return Ko})),t.d(n,"talYoungFilesUpload",(function(){return $o})),t.d(n,"openVideoPlayer",(function(){return fe})),t.d(n,"openMediaFileDialog",(function(){return ve})),t.d(n,"mediaFileUpload",(function(){return me})),t.d(n,"invoice",(function(){return he})),t.d(n,"pushWorkMsg",(function(){return ge})),t.d(n,"openTalYoungToTopic",(function(){return be})),t.d(n,"getToken",(function(){return ye})),t.d(n,"authStart",(function(){return Pe})),t.d(n,"authFinish",(function(){return Te})),t.d(n,"assistantCreate",(function(){return Ce})),t.d(n,"yachEvent",(function(){return Me})),t.d(n,"topicEvent",(function(){return xe})),t.d(n,"openTogetherEyeWebview",(function(){return Ee})),t.d(n,"getTogetherConfig",(function(){return Ae})),t.d(n,"rouseApp",(function(){return De})),t.d(n,"externalLinkPreviewFile",(function(){return Re})),t.d(n,"savePic",(function(){return Le})),t.d(n,"zfbAuth",(function(){return We})),t.d(n,"complain",(function(){return _e})),t.d(n,"onRecordEnd_v2",(function(){return go})),t.d(n,"startRecord_v2",(function(){return wo})),t.d(n,"stopRecord_v2",(function(){return ko})),t.d(n,"selectDepartment",(function(){return Ne})),t.d(n,"setWindowBig",(function(){return Yn})),t.d(n,"tencentMeeting",(function(){return qn})),t.d(n,"tencentMeetingBegin",(function(){return Gn})),t.d(n,"createModifySchedule",(function(){return Ue})),t.d(n,"onlineDocmentOpenTeamChat",(function(){return Ge})),t.d(n,"entergroupCheck",(function(){return $e})),t.d(n,"resetSessionUnread",(function(){return Ze})),t.d(n,"weeklyRead",(function(){return en})),t.d(n,"openFutureGroup",(function(){return rn})),t.d(n,"knowledgeBaseSelect",(function(){return sn})),t.d(n,"knowledgeSelectParams",(function(){return un})),t.d(n,"lorebaseShowList",(function(){return ln})),t.d(n,"lorebaseRefreshNodeWebview",(function(){return fn})),t.d(n,"openPublish",(function(){return gn})),t.d(n,"setLight",(function(){return So})),t.d(n,"openUserSchedule",(function(){return Ye})),t.d(n,"disableScreenCapture",(function(){return tn})),t.d(n,"setPanGestureEnable",(function(){return Xn})),t.d(n,"addAppToNav",(function(){return Zo})),t.d(n,"copy",(function(){return mn})),t.d(n,"capturePage",(function(){return qo})),t.d(n,"getConfig",(function(){return wn}));var o=t(3),i=t(1),r=t(2),a=function(e,n){var t=c(e),o=c(n),i=t.pop(),r=o.pop(),a=p(t,o);return 0!==a?a:i&&r?p(i.split("."),r.split(".")):i||r?i?-1:1:0},s=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,c=function(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");var n=e.match(s);if(!n)throw new Error("Invalid argument not valid semver ('"+e+"' received)");return n.shift(),n},u=function(e){return"*"===e||"x"===e||"X"===e},d=function(e){var n=parseInt(e,10);return isNaN(n)?e:n},l=function(e,n){if(u(e)||u(n))return 0;var t=function(e,n){return typeof e!=typeof n?[String(e),String(n)]:[e,n]}(d(e),d(n)),o=t[0],i=t[1];return o>i?1:o<i?-1:0},p=function(e,n){for(var t=0;t<Math.max(e.length,n.length);t++){var o=l(e[t]||"0",n[t]||"0");if(0!==o)return o}return 0},f={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},v=(Object.keys(f),t(5)),m=function(){function e(e){var n=this;this.invokeAPIConfigMapByMethod={},this.configJsApiList=[],this.platformConfigMap={},this.hadConfig=!1,this.bridgeInitFnPromise=null,this.cacheP={},this.config$=new Promise((function(e,t){n.cacheP.resolve=e,n.cacheP.reject=t})),this.env=e,this.exportSdk={version:e.version,sdkVersion:v.version,env:e,platform:e.platform,platformV2:e.platformV2,config:function(e){void 0===e&&(e={});var t=e.jsApiList,o=void 0===t?[]:t;n.hadConfig?console.log("Config has been executed"):n.bridgeInitFn().then((function(t){t("config",e).then((function(e){n.cacheP.resolve(e),n.hadConfig=!0,n.configJsApiList=o})).catch((function(e){n.cacheP.reject(e)}))}))},ready:function(e){n.bridgeInitFn().then((function(){e()}))},error:function(e){n.config$.catch((function(n){e(n)}))},on:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.on(t,o)}))},off:function(t,o){n.bridgeInitFn().then((function(){n.platformConfigMap[e.platform].event.off(t,o)}))}}}return e.prototype.setAPI=function(e,n){this.invokeAPIConfigMapByMethod[e]=n},e.prototype.setPlatform=function(e){var n=e.platform;e.bridgeInit;this.platformConfigMap[n]=e},e.prototype.bridgeInitFn=function(){if(this.bridgeInitFnPromise)return this.bridgeInitFnPromise;var e=this.platformConfigMap[this.env.platform];if(e)this.bridgeInitFnPromise=e.bridgeInit();else{var n="Do not support the current environment�"+this.env.platform;this.bridgeInitFnPromise=Promise.reject(new Error(n))}return this.bridgeInitFnPromise},e.prototype._onFail=function(e,n,t,o){Object(i.a)({method:e,errorcode:n,message:t}),o&&"function"==typeof o&&o({code:n,message:t})},e.prototype.invokeAPI=function(e,n){if(n||(n={}),e){var t=this.invokeAPIConfigMapByMethod[e];if(!t)return this._onFail(e,"-1","["+e+"] method is not exist",n.onFail);var o=t[this.env.platform];if(o){var i=o.vs||"0.0.0";if(a(this.env.version,i)<0)return this._onFail(e,"-1","The current application version is "+this.env.version+". This method does not support versions less than "+i,n.onFail);var s=o.paramsDeal?o.paramsDeal(n):n;if("function"==typeof s.onSuccess){var c=s.onSuccess;s.onSuccess=function(e){c(e)}}this.bridgeInitFn().then((function(n){n(e,s).then((function(n){Object(r.a)("SDK 返回结果成功 ",{method:e,params:s,result:n})})).catch((function(n){Object(r.a)("SDK 返回结果失败",{method:e,params:s,error:n})}))})).catch((function(e){console.log("wenai err",e)}))}else this._onFail(e,"-1","["+e+"] method do not support the current platform ("+this.env.platform+")",n.onFail)}},e}(),h=t(4),g=new Map([[0,"onSuccess"],[-1,"onCancel"],[-2,"onFail"],[-3,"onProgress"],[-4,"onSubmit"]]);function b(e){return g.get(e)||"onFail"}var w=function(){return(w=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},y=function(e,n){return new Promise((function(t,o){return h.a.invokeAPI(e,n,(function(a){var s=a.data,c=a.code,u=a.message,d=parseInt(c),l=b(d),p=n[l];if(Object(r.a)("SDK执行后回调,相关参数 ",{method:e,param:n,data:s,_code:d,message:u,callbackFun:p}),"onFail"!==l)"function"==typeof p&&p(s||u),t({_code:d,message:u,data:s});else{if(Object(i.a)({method:e,errorcode:d,message:u||JSON.stringify(s)||"SDK执行失败回调,相关参数"}),"function"==typeof p){console.log("wenai-code",c,d);var f="[object Object]"===Object.prototype.toString.call(s)?w(w({},s),{code:c,message:u}):{data:s,code:c,message:u};p(u?f:s)}o({_code:d,message:u,data:s})}}))}))},k=t(0),P=function(){return(P=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function S(e){if(window.WebViewJavascriptBridge)return e(WebViewJavascriptBridge);if(window.WKWebViewJavascriptBridge)return e(WKWebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(e);window.WVJBCallbacks=[e];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout((function(){document.documentElement.removeChild(n)}),0)}var T=function(e,n){return new Promise((function(t,o){var a=P({},n);S((function(s){n.control&&s.registerHandler(e,(function(e){var o=n.onSuccess;delete a.onSuccess,"function"==typeof o&&(o(e),t({code:"0",message:"success"}))})),s.callHandler(e,n,(function(s){var c=s.code,u=s.message,d=s.data,l=parseInt(c),p=b(l),f=a[p];if(Object(r.a)("SDK执行后回调,相关参数 ",{method:e,param:n,data:d,_code:l,message:u,callbackFun:f}),"onFail"===p)return Object(i.a)({method:e,errorcode:l,message:u||JSON.stringify(d)||"SDK执行失败回调,相关参数"}),"function"==typeof f&&f(u?{code:c,message:u}:d),void o({_code:l,message:u,data:d});"function"==typeof f&&f(d||u),t({_code:l,message:u,data:d})}))}))}))},z=function(e,n,t,o){return new(t||(t=Promise))((function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((o=o.apply(e,n||[])).next())}))},C=function(e,n){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=n.call(e,a)}catch(e){r=[6,e],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])}}},I=Object(o.a)(),M=I.platform,j=new m(I);!function(){var e=this,n={platform:M,authMethod:"config",bridgeInit:"pc"===M?function(){return z(e,void 0,void 0,(function(){return C(this,(function(e){return h.a.init(),[2,y]}))}))}:function(){return new Promise((function(e,n){S((function(n){Object(r.a)("注册resume事件 "),n.registerHandler("resume",(function(e){Object(r.a)("resume监听到回调,相关参数 ",{resData:e}),k.a.execEvent("resume",e)})),Object(r.a)("注册unreadMsgAction事件 "),n.registerHandler("unreadMsgAction",(function(e){Object(r.a)("unreadMsgAction监听到回调,相关参数 ",{resData:e}),k.a.execEvent("unreadMsgAction",e)})),Object(r.a)("注册webViewMsgReceive事件 "),n.registerHandler("webViewMsgReceive",(function(e){Object(r.a)("webViewMsgReceive监听到回调,相关参数 ",{resData:e}),k.a.execEvent("webViewMsgReceive",e)})),n.registerHandler("pushWorkMsg",(function(e){Object(r.a)("pushWorkMsg监听到回调,相关参数 ",{resData:e}),k.a.execEvent("pushWorkMsg",e)})),n.registerHandler("getTogetherCallback",(function(e){Object(r.a)("getTogetherCallback监听到回调,相关参数 ",{resData:e}),k.a.execEvent("getTogetherCallback",e)})),n.registerHandler("sendMsgCommon",(function(e){Object(r.a)("sendMsgCommon ",{resData:e}),k.a.execEvent("sendMsgCommon",e)})),n.registerHandler("toolbarClickEvent",(function(e,n){Object(r.a)("toolbarClickEvent ",{resData:e});var t={data:e,callback:n};k.a.execEvent("toolbarClickEvent",t)})),e()}))})).then((function(){return T}))},event:{on:function(e,n){k.a.on(e,n)},off:function(e,n){k.a.off(e,n)}}};j.setPlatform(n)}();var x={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};var O=function(e,n){var t=n.params,o=void 0===t?{}:t,i=n.platform,r=void 0===i?x:i;j.setAPI(e,r),j.invokeAPI(e,o)};function E(e){O("biz.util.openLink",{params:e})}function F(e){O("biz.util.feedback",{params:e})}function A(e){O("biz.util.open",{params:e})}var D={pc:{vs:"0.0.0"}};function R(e){O("biz.util.openSlidePanel",{params:e,platform:D})}var V={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function W(e){O("biz.util.share",{params:e,platform:V})}function B(e){O("biz.util.previewFile",{params:e})}function L(e){O("biz.util.previewImage",{params:e})}function _(e){O("biz.util.downloadFile",{params:e})}function N(e){O("biz.util.uploadAttachment",{params:e})}function H(e){O("biz.util.clipboardFileUpload",{params:e})}function U(e){O("biz.util.proxy",{params:e})}var J={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Y(e){O("biz.util.datepicker",{params:e,platform:J})}var q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function G(e){O("biz.util.datetimepicker",{params:e,platform:q})}var K={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $(e){O("biz.util.scan",{params:e,platform:K})}var X={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Z(e){O("biz.map.view",{params:e,platform:X})}var Q={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ee(e){O("biz.map.multipointView",{params:e,platform:Q})}var ne={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function te(e){O("biz.util.chosen",{params:e,platform:ne})}var oe={pc:{vs:"0.0.0"}};function ie(e){O("biz.util.openSingleWebview",{params:e,platform:oe})}function re(e){O("biz.util.getSingleWebviewData",{params:e})}function ae(e){O("biz.util.injectScript",{params:e})}var se={pc:{vs:"0.0.0"}};function ce(e){O("biz.util.closeWindow",{params:e,platform:se})}var ue={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function de(e){O("biz.util.remind",{params:e,platform:ue})}function le(e){O("biz.util.takePicture",{params:e})}var pe={pc:{vs:"0.0.0"},ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fe(e){O("biz.util.openVideoPlayer",{params:e,platform:pe})}function ve(e){O("biz.util.openMediaFileDialog",{params:e})}function me(e){O("biz.util.mediaFileUpload",{params:e})}function he(e){O("biz.util.invoice",{params:e})}function ge(e){O("biz.util.pushWorkMsg",{params:e})}function be(e){O("biz.util.openTalYoungToTopic",{params:e})}var we={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ye(e){O("biz.util.getToken",{params:e,platform:we})}var ke={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Pe(e){O("biz.util.authStart",{params:e,platform:ke})}var Se={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Te(e){O("biz.util.authFinish",{params:e,platform:Se})}var ze={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ce(e){O("biz.util.assistantCreate",{params:e,platform:ze})}var Ie={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Me(e){O("biz.util.yachEvent",{params:e,platform:Ie})}var je={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function xe(e){O("biz.util.topicEvent",{params:e,platform:je})}var Oe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ee(e){O("biz.util.openTogetherEyeWebview",{params:e,platform:Oe})}var Fe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ae(e){O("biz.util.getTogetherConfig",{params:e,platform:Fe})}function De(e){O("biz.util.rouseApp",{params:e})}function Re(e){O("biz.util.externalLinkPreviewFile",{params:e})}var Ve={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function We(e){O("biz.util.zfbAuth",{params:e,platform:Ve})}var Be={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Le(e){O("biz.util.savePic",{params:e,platform:Be})}function _e(e){O("biz.util.complain",{params:e})}function Ne(e){O("biz.util.selectDepartment",{params:e})}var He={pc:{vs:"0.0.0"}};function Ue(e){O("biz.util.createModifySchedule",{params:e,platform:He})}var Je={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ye(e){O("biz.util.openUserSchedule",{params:e,platform:Je})}var qe={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Ge(e){O("onlineDocmentOpenTeamChat",{params:e,platform:qe})}var Ke={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.0"}};function $e(e){O("biz.util.entergroupCheck",{params:e,platform:Ke})}var Xe={pc:{vs:"1.8.0"}};function Ze(e){O("biz.util.resetSessionUnread",{params:e,platform:Xe})}var Qe={pc:{vs:"1.9.3.1"},ios:{vs:"1.9.3.1"},android:{vs:"1.9.3.1"}};function en(e){O("biz.util.weeklyRead",{params:e,platform:Qe})}var nn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function tn(e){O("biz.util.disableScreenCapture",{params:e,platform:nn})}var on={pc:{vs:"1.8.8"},ios:{vs:"1.8.8"},android:{vs:"1.8.8"}};function rn(e){O("biz.util.openFutureGroup",{params:e,platform:on})}var an={pc:{vs:"1.8.8"},ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function sn(e){O("biz.util.knowledgeBaseSelect",{params:e,platform:an})}var cn={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function un(e){O("biz.util.knowledgeSelectParams",{params:e,platform:cn})}var dn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ln(e){O("biz.util.lorebaseShowList",{params:e,platform:dn})}var pn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function fn(e){O("biz.util.lorebaseRefreshNodeWebview",{params:e,platform:pn})}var vn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mn(e){O("biz.util.copy",{params:e,platform:vn})}var hn={pc:{vs:"1.8.8"}};function gn(e){O("biz.util.openPublish",{params:e,platform:hn})}var bn={ios:{vs:"1.9.12"},android:{vs:"1.9.12"}};function wn(e){O("biz.util.getConfig",{params:e,platform:bn})}var yn=function(){return(yn=Object.assign||function(e){for(var n,t=1,o=arguments.length;t<o;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function kn(e){return function(n){return yn(yn({},e),n)}}var Pn=kn({control:!0,showIcon:!0,iconIndex:1}),Sn={ios:{vs:"0.0.0",paramsDeal:Pn},android:{vs:"0.0.0",paramsDeal:Pn}};function Tn(e){O("biz.navigation.setIcon",{params:e,platform:Sn})}function zn(e){O("biz.navigation.setTitle",{params:e})}var Cn=kn({control:!0}),In={ios:{vs:"0.0.0",paramsDeal:Cn},android:{vs:"0.0.0",paramsDeal:Cn}};function Mn(e){O("biz.navigation.setMenu",{params:e,platform:In})}function jn(e){O("biz.navigation.close",{params:e})}function xn(e){O("biz.navigation.replace",{params:e})}var On={pc:{vs:"0.0.0"}};function En(e){O("biz.navigation.quit",{params:e,platform:On})}var Fn=kn({show:!0,control:!1,text:""}),An={ios:{vs:"0.0.0",paramsDeal:Fn},android:{vs:"0.0.0",paramsDeal:Fn},pc:{vs:"0.0.0"}};function Dn(e){O("biz.navigation.setRight",{params:e,platform:An})}var Rn=kn({control:!0}),Vn={ios:{vs:"0.0.0",paramsDeal:Rn},android:{vs:"0.0.0",paramsDeal:Rn}};function Wn(e){O("biz.navigation.setTitleExpandIcon",{params:e,platform:Vn})}function Bn(e){O("biz.navigation.updateExpandTitle",{params:e})}var Ln=kn({show:!0,control:!1,text:""}),_n={ios:{vs:"0.0.0",paramsDeal:Ln},android:{vs:"0.0.0",paramsDeal:Ln},pc:{vs:"0.0.0"}};function Nn(e){O("biz.navigation.setLeft",{params:e,platform:_n})}var Hn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Un(e){O("biz.navigation.goBack",{params:e,platform:Hn})}var Jn={pc:{vs:"0.0.0"}};function Yn(e){O("biz.navigation.setWindowBig",{params:e,platform:Jn})}function qn(e){O("biz.navigation.tencentMeeting",{params:e})}function Gn(e){O("biz.navigation.tencentMeetingBegin",{params:e})}var Kn=kn({nativePanEnable:!0,webPanEnable:!0}),$n={ios:{vs:"0.0.0",paramsDeal:Kn},android:{vs:"0.0.0",paramsDeal:Kn}};function Xn(e){O("biz.navigation.setPanGestureEnable",{params:e,platform:$n})}function Zn(e){O("biz.contact.complexPicker",{params:e})}function Qn(e){O("biz.contact.departmentsPicker",{params:e})}function et(e){O("biz.group.groupComplexPicker",{params:e})}function nt(e){O("biz.chat.chooseConversationByCorpId",{params:e})}var tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ot(e){O("biz.chat.pickConversation",{params:e,platform:tt})}function it(e){O("biz.chat.openSingleChat",{params:e})}function rt(e){O("biz.chat.openTeamChat",{params:e})}function at(e){O("biz.chat.openSquad",{params:e})}function st(e){O("biz.chat.sendP2PMsg",{params:e})}var ct={pc:{vs:"0.0.0"}};function ut(e){O("primary.createTab",{params:e,platform:ct})}var dt={pc:{vs:"1.9.12"}};function lt(e){O("primary.updateTab",{params:e,platform:dt})}var pt={pc:{vs:"0.0.0"}};function ft(e){O("primary.weeklyShare",{params:e,platform:pt})}var vt={pc:{vs:"0.0.0"}};function mt(e){O("primary.fullScreen",{params:e,platform:vt})}var ht={pc:{vs:"0.0.0"}};function gt(e){O("primary.exitFullScreen",{params:e,platform:ht})}function bt(e){O("runtime.permission.requestAuthCode",{params:e})}var wt={vs:"1.9.9"},yt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:wt};function kt(e){O("device.notification.showPreloader",{params:e,platform:yt})}function Pt(e){O("device.notification.showCustomOverlayContent",{params:e,platform:{pc:wt}})}var St={vs:"1.9.9"},Tt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:St};function zt(e){O("device.notification.hidePreloader",{params:e,platform:Tt})}function Ct(e){O("device.notification.hideCustomOverlayContent",{params:e,platform:{pc:St}})}var It={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Mt(e){O("device.notification.vibrate",{params:e,platform:It})}function jt(e){O("device.notification.toast",{params:e})}var xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ot(e){O("device.notification.actionSheet",{params:e,platform:xt})}var Et={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ft(e){O("device.base.getPhoneInfo",{params:e,platform:Et})}var At={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Dt(e){O("device.notification.alert",{params:e,platform:At})}var Rt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"0.0.0"}};function Vt(e){O("device.notification.confirm",{params:e,platform:Rt})}var Wt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bt(e){O("device.geolocation.get",{params:e,platform:Wt})}var Lt={android:{vs:"0.0.0"}};function _t(e){O("device.geolocation.getSwitch",{params:e,platform:Lt})}function Nt(e){O("device.system.getLang",{params:e})}var Ht={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Ut(e){O("device.audio.startRecord",{params:e,platform:Ht})}var Jt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Yt(e){O("device.audio.stopRecord",{params:e,platform:Jt})}var qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Gt(e){O("device.audio.onRecordEnd",{params:e,platform:qt})}var Kt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function $t(e){O("device.audio.download",{params:e,platform:Kt})}var Xt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Zt(e){O("device.audio.play",{params:e,platform:Xt})}var Qt={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function eo(e){O("device.audio.pause",{params:e,platform:Qt})}var no={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function to(e){O("device.audio.stop",{params:e,platform:no})}var oo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function io(e){O("device.audio.onPlayEnd",{params:e,platform:oo})}var ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ao(e){O("device.audio.resume",{params:e,platform:ro})}var so={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function co(e){O("device.connection.getNetworkType",{params:e,platform:so})}var uo={pc:{vs:"0.0.0"}};function lo(e){O("device.connection.isAtTal",{params:e,platform:uo})}var po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"},pc:{vs:"1.8.1"}};function fo(e){O("device.base.getUUID",{params:e,platform:po})}var vo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function mo(e){O("device.base.checkStepPermission",{params:e,platform:vo})}var ho={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function go(e){O("device.audio.onRecordEnd_v2",{params:e,platform:ho})}var bo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wo(e){O("device.audio.startRecord_v2",{params:e,platform:bo})}var yo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function ko(e){O("device.audio.stopRecord_v2",{params:e,platform:yo})}var Po={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function So(e){O("device.system.setLight",{params:e,platform:Po})}var To={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function zo(e){O("biz.telephone.showCallMenu",{params:e,platform:To})}var Co={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Io(e){O("biz.telephone.call",{params:e,platform:Co})}var Mo={ios:{vs:"0.0.0"}};function jo(e){O("ui.webViewBounce.disable",{params:e,platform:Mo})}var xo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Oo(e){O("ui.pullToRefresh.enable",{params:e,platform:xo})}var Eo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Fo(e){O("ui.pullToRefresh.stop",{params:e,platform:Eo})}var Ao={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Do(e){O("ui.pullToRefresh.disable",{params:e,platform:Ao})}var Ro={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Vo(e){O("util.domainStorage.getItem",{params:e,platform:Ro})}var Wo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function Bo(e){O("util.domainStorage.setItem",{params:e,platform:Wo})}var Lo={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function _o(e){O("util.domainStorage.removeItem",{params:e,platform:Lo})}var No={pc:{vs:"1.7.0"}};function Ho(e){O("util.tool.writeLog",{params:e,platform:No})}var Uo={pc:{vs:"1.7.0"}};function Jo(e){O("util.tool.flushLog",{params:e,platform:Uo})}var Yo={pc:{vs:"1.9.9"}};function qo(e){O("biz.util.capturePage",{params:e,platform:Yo})}var Go={ios:{vs:"0.0.0"}};function Ko(e){O("biz.webViewMessage.send",{params:e,platform:Go})}function $o(e){O("app.custom.talYoungFilesUpload",{params:e})}var Xo={ios:{vs:"1.8.8"},android:{vs:"1.8.8"},pc:{vs:"1.8.8"}};function Zo(e){O("biz.util.addAppToNav",{params:e,platform:Xo})}console.log("add rouseApp ------------\x3e",De);var Qo=j.exportSdk,ei=Qo.version,ni=Qo.sdkVersion,ti=Qo.env,oi=Qo.platform,ii=Qo.platformV2,ri=Qo.config,ai=Qo.ready,si=Qo.error,ci=Qo.on,ui=Qo.off;n.default={version:ei,sdkVersion:ni,env:ti,platform:oi,platformV2:ii,config:ri,ready:ai,error:si,on:ci,off:ui,biz:{util:{openLink:E,feedback:F,open:A,openSlidePanel:R,share:W,previewFile:B,previewImage:L,downloadFile:_,uploadAttachment:N,clipboardFileUpload:H,proxy:U,datepicker:Y,datetimepicker:G,scan:$,chosen:te,openSingleWebview:ie,getSingleWebviewData:re,injectScript:ae,onlineDocmentOpenTeamChat:Ge,entergroupCheck:$e,resetSessionUnread:Ze,weeklyRead:en,openFutureGroup:rn,closeWindow:ce,remind:de,takePicture:le,openVideoPlayer:fe,openMediaFileDialog:ve,mediaFileUpload:me,invoice:he,pushWorkMsg:ge,openTalYoungToTopic:be,getToken:ye,authStart:Pe,authFinish:Te,assistantCreate:Ce,yachEvent:Me,topicEvent:xe,openTogetherEyeWebview:Ee,getTogetherConfig:Ae,rouseApp:De,externalLinkPreviewFile:Re,savePic:Le,zfbAuth:We,complain:_e,selectDepartment:Ne,createModifySchedule:Ue,openUserSchedule:Ye,disableScreenCapture:tn,addAppToNav:Zo,knowledgeBaseSelect:sn,knowledgeSelectParams:un,lorebaseShowList:ln,lorebaseRefreshNodeWebview:fn,copy:mn,openPublish:gn,capturePage:qo,getConfig:wn},telephone:{showCallMenu:zo,call:Io},navigation:{setIcon:Tn,setTitle:zn,setMenu:Mn,close:jn,replace:xn,quit:En,setRight:Dn,setTitleExpandIcon:Wn,updateExpandTitle:Bn,setLeft:Nn,goBack:Un,setWindowBig:Yn,tencentMeeting:qn,tencentMeetingBegin:Gn,setPanGestureEnable:Xn},contact:{complexPicker:Zn,departmentsPicker:Qn},group:{groupComplexPicker:et},chat:{chooseConversationByCorpId:nt,pickConversation:ot,openSingleChat:it,openTeamChat:rt,openSquad:at,sendP2PMsg:st},map:{view:Z,multipointView:ee},webViewMessage:{send:Ko}},runtime:{permission:{requestAuthCode:bt}},primary:{createTab:ut,updateTab:lt,weeklyShare:ft,fullScreen:mt,exitFullScreen:gt},device:{notification:{showPreloader:kt,showCustomOverlayContent:Pt,hidePreloader:zt,hideCustomOverlayContent:Ct,vibrate:Mt,toast:jt,alert:Dt,confirm:Vt,actionSheet:Ot},base:{getPhoneInfo:Ft,getUUID:fo,checkStepPermission:mo},geolocation:{get:Bt,getSwitch:_t},system:{getLang:Nt,setLight:So},audio:{startRecord:Ut,stopRecord:Yt,onRecordEnd:Gt,download:$t,play:Zt,pause:eo,stop:to,onPlayEnd:io,resume:ao,onRecordEnd_v2:go,startRecord_v2:wo,stopRecord_v2:ko},connection:{getNetworkType:co,isAtTal:lo}},ui:{webViewBounce:{disable:jo},pullToRefresh:{enable:Oo,stop:Fo,disable:Do}},util:{domainStorage:{getItem:Vo,setItem:Bo,removeItem:_o},tool:{writeLog:Ho,flushLog:Jo}},app:{custom:{talYoungFilesUpload:$o}}}}]).default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface GetConfigResult {
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
export interface GetConfigParams {
|
|
8
|
-
configNode: String;
|
|
9
|
-
onSuccess?: (res: GetConfigResult) => void;
|
|
10
|
-
onFail?: (err: IError) => void;
|
|
11
|
-
}
|
|
12
|
-
declare function getConfig(params: GetConfigParams): void;
|
|
13
|
-
export { getConfig };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var ios = {
|
|
3
|
-
vs: '1.9.12'
|
|
4
|
-
};
|
|
5
|
-
var android = {
|
|
6
|
-
vs: '1.9.12'
|
|
7
|
-
};
|
|
8
|
-
var platform = {
|
|
9
|
-
ios: ios,
|
|
10
|
-
android: android
|
|
11
|
-
};
|
|
12
|
-
var apiName = 'biz.util.getConfig';
|
|
13
|
-
function getConfig(params) {
|
|
14
|
-
initAPI(apiName, {
|
|
15
|
-
params: params,
|
|
16
|
-
platform: platform
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
export { getConfig };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IOpenPublishResult {
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
export interface IOpenPublishParams {
|
|
8
|
-
squadId?: string;
|
|
9
|
-
squadName?: string;
|
|
10
|
-
publishType?: 'publish' | 'forward';
|
|
11
|
-
multiple?: boolean;
|
|
12
|
-
topicType: '0' | '1' | '2';
|
|
13
|
-
TopicTypeMultiple?: boolean;
|
|
14
|
-
content?: string;
|
|
15
|
-
pic?: string;
|
|
16
|
-
video?: string;
|
|
17
|
-
url?: string;
|
|
18
|
-
onSuccess?: (res: IOpenPublishResult) => void;
|
|
19
|
-
onFail?: (err: IError) => void;
|
|
20
|
-
}
|
|
21
|
-
declare function openPublish(params: IOpenPublishParams): void;
|
|
22
|
-
export { openPublish };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import initAPI from '../../initAPI';
|
|
2
|
-
var pc = {
|
|
3
|
-
vs: '1.8.8'
|
|
4
|
-
};
|
|
5
|
-
var platform = {
|
|
6
|
-
pc: pc
|
|
7
|
-
};
|
|
8
|
-
var apiName = 'biz.util.openPublish';
|
|
9
|
-
function openPublish(params) {
|
|
10
|
-
initAPI(apiName, {
|
|
11
|
-
params: params,
|
|
12
|
-
platform: platform
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export { openPublish };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IError } from '../common.typings';
|
|
2
|
-
export interface IPrimaryUpdateTab {
|
|
3
|
-
/** 应用标题 */
|
|
4
|
-
title?: string;
|
|
5
|
-
onSuccess?: () => void;
|
|
6
|
-
onFail?: (err: IError) => void;
|
|
7
|
-
}
|
|
8
|
-
declare function updateTab(params: IPrimaryUpdateTab): void;
|
|
9
|
-
export { updateTab };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import initAPI from '../initAPI';
|
|
2
|
-
var apiName = 'primary.updateTab';
|
|
3
|
-
var pc = {
|
|
4
|
-
vs: '1.9.12'
|
|
5
|
-
};
|
|
6
|
-
var platform = {
|
|
7
|
-
pc: pc
|
|
8
|
-
};
|
|
9
|
-
function updateTab(params) {
|
|
10
|
-
initAPI(apiName, {
|
|
11
|
-
params: params,
|
|
12
|
-
platform: platform
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export { updateTab };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface GetConfigResult {
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
export interface GetConfigParams {
|
|
8
|
-
configNode: String;
|
|
9
|
-
onSuccess?: (res: GetConfigResult) => void;
|
|
10
|
-
onFail?: (err: IError) => void;
|
|
11
|
-
}
|
|
12
|
-
declare function getConfig(params: GetConfigParams): void;
|
|
13
|
-
export { getConfig };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.getConfig = getConfig;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var ios = {
|
|
11
|
-
vs: '1.9.12'
|
|
12
|
-
};
|
|
13
|
-
var android = {
|
|
14
|
-
vs: '1.9.12'
|
|
15
|
-
};
|
|
16
|
-
var platform = {
|
|
17
|
-
ios: ios,
|
|
18
|
-
android: android
|
|
19
|
-
};
|
|
20
|
-
var apiName = 'biz.util.getConfig';
|
|
21
|
-
function getConfig(params) {
|
|
22
|
-
(0, _initAPI["default"])(apiName, {
|
|
23
|
-
params: params,
|
|
24
|
-
platform: platform
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IError } from '../../common.typings';
|
|
2
|
-
export interface IOpenPublishResult {
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
export interface IOpenPublishParams {
|
|
8
|
-
squadId?: string;
|
|
9
|
-
squadName?: string;
|
|
10
|
-
publishType?: 'publish' | 'forward';
|
|
11
|
-
multiple?: boolean;
|
|
12
|
-
topicType: '0' | '1' | '2';
|
|
13
|
-
TopicTypeMultiple?: boolean;
|
|
14
|
-
content?: string;
|
|
15
|
-
pic?: string;
|
|
16
|
-
video?: string;
|
|
17
|
-
url?: string;
|
|
18
|
-
onSuccess?: (res: IOpenPublishResult) => void;
|
|
19
|
-
onFail?: (err: IError) => void;
|
|
20
|
-
}
|
|
21
|
-
declare function openPublish(params: IOpenPublishParams): void;
|
|
22
|
-
export { openPublish };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.openPublish = openPublish;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var pc = {
|
|
11
|
-
vs: '1.8.8'
|
|
12
|
-
};
|
|
13
|
-
var platform = {
|
|
14
|
-
pc: pc
|
|
15
|
-
};
|
|
16
|
-
var apiName = 'biz.util.openPublish';
|
|
17
|
-
function openPublish(params) {
|
|
18
|
-
(0, _initAPI["default"])(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IError } from '../common.typings';
|
|
2
|
-
export interface IPrimaryUpdateTab {
|
|
3
|
-
/** 应用标题 */
|
|
4
|
-
title?: string;
|
|
5
|
-
onSuccess?: () => void;
|
|
6
|
-
onFail?: (err: IError) => void;
|
|
7
|
-
}
|
|
8
|
-
declare function updateTab(params: IPrimaryUpdateTab): void;
|
|
9
|
-
export { updateTab };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.updateTab = updateTab;
|
|
9
|
-
var _initAPI = _interopRequireDefault(require("../initAPI"));
|
|
10
|
-
var apiName = 'primary.updateTab';
|
|
11
|
-
var pc = {
|
|
12
|
-
vs: '1.9.12'
|
|
13
|
-
};
|
|
14
|
-
var platform = {
|
|
15
|
-
pc: pc
|
|
16
|
-
};
|
|
17
|
-
function updateTab(params) {
|
|
18
|
-
(0, _initAPI["default"])(apiName, {
|
|
19
|
-
params: params,
|
|
20
|
-
platform: platform
|
|
21
|
-
});
|
|
22
|
-
}
|