yach.open.jssdk 4.4.4 → 4.4.6-beta1
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/knowledgeBaseSelect.js +9 -1
- package/es/api/biz/util/knowledgeSelectParams.d.ts +14 -0
- package/es/api/biz/util/knowledgeSelectParams.js +19 -0
- package/es/index.d.ts +3 -3
- package/es/index.js +3 -3
- package/es/lib/index.js +2 -2
- package/es/lib/sdk/sdk.typings.d.ts +0 -1
- package/es/utils/env.js +2 -4
- package/libs/api/biz/util/knowledgeBaseSelect.js +9 -1
- package/libs/api/biz/util/knowledgeSelectParams.d.ts +14 -0
- package/libs/api/biz/util/{openPublish.js → knowledgeSelectParams.js} +10 -6
- package/libs/index.d.ts +3 -3
- package/libs/index.js +8 -8
- package/libs/lib/index.js +2 -2
- package/libs/lib/sdk/sdk.typings.d.ts +0 -1
- package/libs/utils/env.js +2 -4
- package/package.json +5 -6
- package/dist/yach_jssdk_4.4.4.js +0 -1
- package/es/api/biz/util/openPublish.d.ts +0 -22
- package/es/api/biz/util/openPublish.js +0 -15
- package/libs/api/biz/util/openPublish.d.ts +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;
|
|
@@ -2,8 +2,16 @@ import initAPI from '../../initAPI';
|
|
|
2
2
|
var pc = {
|
|
3
3
|
vs: '1.8.8'
|
|
4
4
|
};
|
|
5
|
+
var ios = {
|
|
6
|
+
vs: '1.9.12'
|
|
7
|
+
};
|
|
8
|
+
var android = {
|
|
9
|
+
vs: '1.9.12'
|
|
10
|
+
};
|
|
5
11
|
var platform = {
|
|
6
|
-
pc: pc
|
|
12
|
+
pc: pc,
|
|
13
|
+
ios: ios,
|
|
14
|
+
android: android
|
|
7
15
|
};
|
|
8
16
|
var apiName = 'biz.util.knowledgeBaseSelect';
|
|
9
17
|
function knowledgeBaseSelect(params) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface KnowledgeSelectParamsParamsResult {
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
7
|
+
export interface KnowledgeSelectParamsParams {
|
|
8
|
+
type: number;
|
|
9
|
+
result: KnowledgeSelectParamsParamsResult;
|
|
10
|
+
onSuccess?: (res: KnowledgeSelectParamsParamsResult) => void;
|
|
11
|
+
onFail?: (err: IError) => void;
|
|
12
|
+
}
|
|
13
|
+
declare function knowledgeSelectParams(params: KnowledgeSelectParamsParams): void;
|
|
14
|
+
export { knowledgeSelectParams };
|
|
@@ -0,0 +1,19 @@
|
|
|
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.knowledgeSelectParams';
|
|
13
|
+
function knowledgeSelectParams(params) {
|
|
14
|
+
initAPI(apiName, {
|
|
15
|
+
params: params,
|
|
16
|
+
platform: platform
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export { knowledgeSelectParams };
|
package/es/index.d.ts
CHANGED
|
@@ -51,10 +51,10 @@ import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
|
51
51
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
52
52
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
53
53
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
54
|
+
import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
|
|
54
55
|
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
55
56
|
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
56
57
|
import { copy } from './api/biz/util/copy';
|
|
57
|
-
import { openPublish } from './api/biz/util/openPublish';
|
|
58
58
|
/**navigation*/
|
|
59
59
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
60
60
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -135,7 +135,7 @@ import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
|
135
135
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
136
136
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
137
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;
|
|
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, lorebaseShowList, lorebaseRefreshNodeWebview,
|
|
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, };
|
|
139
139
|
declare const _default: {
|
|
140
140
|
version: string;
|
|
141
141
|
sdkVersion: string;
|
|
@@ -200,10 +200,10 @@ declare const _default: {
|
|
|
200
200
|
disableScreenCapture: typeof disableScreenCapture;
|
|
201
201
|
addAppToNav: typeof addAppToNav;
|
|
202
202
|
knowledgeBaseSelect: typeof knowledgeBaseSelect;
|
|
203
|
+
knowledgeSelectParams: typeof knowledgeSelectParams;
|
|
203
204
|
lorebaseShowList: typeof lorebaseShowList;
|
|
204
205
|
lorebaseRefreshNodeWebview: typeof lorebaseRefreshNodeWebview;
|
|
205
206
|
copy: typeof copy;
|
|
206
|
-
openPublish: typeof openPublish;
|
|
207
207
|
capturePage: typeof capturePage;
|
|
208
208
|
};
|
|
209
209
|
telephone: {
|
package/es/index.js
CHANGED
|
@@ -53,10 +53,10 @@ import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
|
53
53
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
54
54
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
55
55
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
56
|
+
import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
|
|
56
57
|
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
57
58
|
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
58
59
|
import { copy } from './api/biz/util/copy';
|
|
59
|
-
import { openPublish } from './api/biz/util/openPublish';
|
|
60
60
|
/**navigation*/
|
|
61
61
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
62
62
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -153,7 +153,7 @@ var _yachSdk$exportSdk = yachSdk.exportSdk,
|
|
|
153
153
|
error = _yachSdk$exportSdk.error,
|
|
154
154
|
on = _yachSdk$exportSdk.on,
|
|
155
155
|
off = _yachSdk$exportSdk.off;
|
|
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, lorebaseShowList, lorebaseRefreshNodeWebview,
|
|
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 };
|
|
157
157
|
export default {
|
|
158
158
|
version: version,
|
|
159
159
|
sdkVersion: sdkVersion,
|
|
@@ -218,10 +218,10 @@ export default {
|
|
|
218
218
|
disableScreenCapture: disableScreenCapture,
|
|
219
219
|
addAppToNav: addAppToNav,
|
|
220
220
|
knowledgeBaseSelect: knowledgeBaseSelect,
|
|
221
|
+
knowledgeSelectParams: knowledgeSelectParams,
|
|
221
222
|
lorebaseShowList: lorebaseShowList,
|
|
222
223
|
lorebaseRefreshNodeWebview: lorebaseRefreshNodeWebview,
|
|
223
224
|
copy: copy,
|
|
224
|
-
openPublish: openPublish,
|
|
225
225
|
capturePage: capturePage
|
|
226
226
|
},
|
|
227
227
|
telephone: {
|
package/es/lib/index.js
CHANGED
|
@@ -40,12 +40,12 @@ function initSdk() {
|
|
|
40
40
|
if (platform === 'pc') {
|
|
41
41
|
bridgeInit = function bridgeInit() {
|
|
42
42
|
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
43
|
-
return _regeneratorRuntime.wrap(function
|
|
43
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
44
44
|
while (1) switch (_context.prev = _context.next) {
|
|
45
45
|
case 0:
|
|
46
46
|
PcBridgeInit();
|
|
47
47
|
return _context.abrupt("return", pcBridge);
|
|
48
|
-
case
|
|
48
|
+
case 1:
|
|
49
49
|
case "end":
|
|
50
50
|
return _context.stop();
|
|
51
51
|
}
|
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,
|
|
@@ -10,8 +10,16 @@ var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
|
10
10
|
var pc = {
|
|
11
11
|
vs: '1.8.8'
|
|
12
12
|
};
|
|
13
|
+
var ios = {
|
|
14
|
+
vs: '1.9.12'
|
|
15
|
+
};
|
|
16
|
+
var android = {
|
|
17
|
+
vs: '1.9.12'
|
|
18
|
+
};
|
|
13
19
|
var platform = {
|
|
14
|
-
pc: pc
|
|
20
|
+
pc: pc,
|
|
21
|
+
ios: ios,
|
|
22
|
+
android: android
|
|
15
23
|
};
|
|
16
24
|
var apiName = 'biz.util.knowledgeBaseSelect';
|
|
17
25
|
function knowledgeBaseSelect(params) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IError } from '../../common.typings';
|
|
2
|
+
export interface KnowledgeSelectParamsParamsResult {
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
7
|
+
export interface KnowledgeSelectParamsParams {
|
|
8
|
+
type: number;
|
|
9
|
+
result: KnowledgeSelectParamsParamsResult;
|
|
10
|
+
onSuccess?: (res: KnowledgeSelectParamsParamsResult) => void;
|
|
11
|
+
onFail?: (err: IError) => void;
|
|
12
|
+
}
|
|
13
|
+
declare function knowledgeSelectParams(params: KnowledgeSelectParamsParams): void;
|
|
14
|
+
export { knowledgeSelectParams };
|
|
@@ -5,16 +5,20 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
|
5
5
|
_Object$defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.knowledgeSelectParams = knowledgeSelectParams;
|
|
9
9
|
var _initAPI = _interopRequireDefault(require("../../initAPI"));
|
|
10
|
-
var
|
|
11
|
-
vs: '1.
|
|
10
|
+
var ios = {
|
|
11
|
+
vs: '1.9.12'
|
|
12
|
+
};
|
|
13
|
+
var android = {
|
|
14
|
+
vs: '1.9.12'
|
|
12
15
|
};
|
|
13
16
|
var platform = {
|
|
14
|
-
|
|
17
|
+
ios: ios,
|
|
18
|
+
android: android
|
|
15
19
|
};
|
|
16
|
-
var apiName = 'biz.util.
|
|
17
|
-
function
|
|
20
|
+
var apiName = 'biz.util.knowledgeSelectParams';
|
|
21
|
+
function knowledgeSelectParams(params) {
|
|
18
22
|
(0, _initAPI["default"])(apiName, {
|
|
19
23
|
params: params,
|
|
20
24
|
platform: platform
|
package/libs/index.d.ts
CHANGED
|
@@ -51,10 +51,10 @@ import { weeklyRead } from './api/biz/util/weeklyRead';
|
|
|
51
51
|
import { disableScreenCapture } from './api/biz/util/disableScreenCapture';
|
|
52
52
|
import { openFutureGroup } from './api/biz/util/openFutureGroup';
|
|
53
53
|
import { knowledgeBaseSelect } from './api/biz/util/knowledgeBaseSelect';
|
|
54
|
+
import { knowledgeSelectParams } from './api/biz/util/knowledgeSelectParams';
|
|
54
55
|
import { lorebaseShowList } from './api/biz/util/lorebaseShowList';
|
|
55
56
|
import { lorebaseRefreshNodeWebview } from './api/biz/util/lorebaseRefreshNodeWebview';
|
|
56
57
|
import { copy } from './api/biz/util/copy';
|
|
57
|
-
import { openPublish } from './api/biz/util/openPublish';
|
|
58
58
|
/**navigation*/
|
|
59
59
|
import { setIcon } from './api/biz/navigation/setIcon';
|
|
60
60
|
import { setTitle } from './api/biz/navigation/setTitle';
|
|
@@ -135,7 +135,7 @@ import { send as webViewMessageSend } from './api/biz/webViewMessage/send';
|
|
|
135
135
|
import { talYoungFilesUpload } from './api/app/custom/talYoungFilesUpload';
|
|
136
136
|
import { addAppToNav } from './api/biz/util/addAppToNav';
|
|
137
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;
|
|
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, lorebaseShowList, lorebaseRefreshNodeWebview,
|
|
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, };
|
|
139
139
|
declare const _default: {
|
|
140
140
|
version: string;
|
|
141
141
|
sdkVersion: string;
|
|
@@ -200,10 +200,10 @@ declare const _default: {
|
|
|
200
200
|
disableScreenCapture: typeof disableScreenCapture;
|
|
201
201
|
addAppToNav: typeof addAppToNav;
|
|
202
202
|
knowledgeBaseSelect: typeof knowledgeBaseSelect;
|
|
203
|
+
knowledgeSelectParams: typeof knowledgeSelectParams;
|
|
203
204
|
lorebaseShowList: typeof lorebaseShowList;
|
|
204
205
|
lorebaseRefreshNodeWebview: typeof lorebaseRefreshNodeWebview;
|
|
205
206
|
copy: typeof copy;
|
|
206
|
-
openPublish: typeof openPublish;
|
|
207
207
|
capturePage: typeof capturePage;
|
|
208
208
|
};
|
|
209
209
|
telephone: {
|
package/libs/index.js
CHANGED
|
@@ -307,6 +307,12 @@ _Object$defineProperty(exports, "knowledgeBaseSelect", {
|
|
|
307
307
|
return _knowledgeBaseSelect.knowledgeBaseSelect;
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
|
+
_Object$defineProperty(exports, "knowledgeSelectParams", {
|
|
311
|
+
enumerable: true,
|
|
312
|
+
get: function get() {
|
|
313
|
+
return _knowledgeSelectParams.knowledgeSelectParams;
|
|
314
|
+
}
|
|
315
|
+
});
|
|
310
316
|
_Object$defineProperty(exports, "lorebaseRefreshNodeWebview", {
|
|
311
317
|
enumerable: true,
|
|
312
318
|
get: function get() {
|
|
@@ -386,12 +392,6 @@ _Object$defineProperty(exports, "openMediaFileDialog", {
|
|
|
386
392
|
return _openMediaFileDialog.openMediaFileDialog;
|
|
387
393
|
}
|
|
388
394
|
});
|
|
389
|
-
_Object$defineProperty(exports, "openPublish", {
|
|
390
|
-
enumerable: true,
|
|
391
|
-
get: function get() {
|
|
392
|
-
return _openPublish.openPublish;
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
395
|
_Object$defineProperty(exports, "openSingleChat", {
|
|
396
396
|
enumerable: true,
|
|
397
397
|
get: function get() {
|
|
@@ -845,10 +845,10 @@ var _weeklyRead = require("./api/biz/util/weeklyRead");
|
|
|
845
845
|
var _disableScreenCapture = require("./api/biz/util/disableScreenCapture");
|
|
846
846
|
var _openFutureGroup = require("./api/biz/util/openFutureGroup");
|
|
847
847
|
var _knowledgeBaseSelect = require("./api/biz/util/knowledgeBaseSelect");
|
|
848
|
+
var _knowledgeSelectParams = require("./api/biz/util/knowledgeSelectParams");
|
|
848
849
|
var _lorebaseShowList = require("./api/biz/util/lorebaseShowList");
|
|
849
850
|
var _lorebaseRefreshNodeWebview = require("./api/biz/util/lorebaseRefreshNodeWebview");
|
|
850
851
|
var _copy = require("./api/biz/util/copy");
|
|
851
|
-
var _openPublish = require("./api/biz/util/openPublish");
|
|
852
852
|
var _setIcon = require("./api/biz/navigation/setIcon");
|
|
853
853
|
var _setTitle = require("./api/biz/navigation/setTitle");
|
|
854
854
|
var _setMenu = require("./api/biz/navigation/setMenu");
|
|
@@ -1024,10 +1024,10 @@ var _default = exports["default"] = {
|
|
|
1024
1024
|
disableScreenCapture: _disableScreenCapture.disableScreenCapture,
|
|
1025
1025
|
addAppToNav: _addAppToNav.addAppToNav,
|
|
1026
1026
|
knowledgeBaseSelect: _knowledgeBaseSelect.knowledgeBaseSelect,
|
|
1027
|
+
knowledgeSelectParams: _knowledgeSelectParams.knowledgeSelectParams,
|
|
1027
1028
|
lorebaseShowList: _lorebaseShowList.lorebaseShowList,
|
|
1028
1029
|
lorebaseRefreshNodeWebview: _lorebaseRefreshNodeWebview.lorebaseRefreshNodeWebview,
|
|
1029
1030
|
copy: _copy.copy,
|
|
1030
|
-
openPublish: _openPublish.openPublish,
|
|
1031
1031
|
capturePage: _screen.capturePage
|
|
1032
1032
|
},
|
|
1033
1033
|
telephone: {
|
package/libs/lib/index.js
CHANGED
|
@@ -49,12 +49,12 @@ function initSdk() {
|
|
|
49
49
|
if (platform === 'pc') {
|
|
50
50
|
bridgeInit = function bridgeInit() {
|
|
51
51
|
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
52
|
-
return _regenerator["default"].wrap(function
|
|
52
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
53
53
|
while (1) switch (_context.prev = _context.next) {
|
|
54
54
|
case 0:
|
|
55
55
|
(0, _bridge.PcBridgeInit)();
|
|
56
56
|
return _context.abrupt("return", _bridge.pcBridge);
|
|
57
|
-
case
|
|
57
|
+
case 1:
|
|
58
58
|
case "end":
|
|
59
59
|
return _context.stop();
|
|
60
60
|
}
|
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-beta1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"main": "./libs/index.js",
|
|
@@ -13,12 +13,10 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"start": "yach del es && tsc -w",
|
|
15
15
|
"build": "node ./tools/run compile",
|
|
16
|
-
"prepublish": "npm run upload-cdn",
|
|
17
|
-
"postpublish": "yach open https://www.npmjs.com/package/yach.open.jssdk",
|
|
18
|
-
"upload-cdn": "npm run build && node ./upload/upload.js",
|
|
19
16
|
"lint": "eslint 'src/**/*.{js,ts}'",
|
|
20
17
|
"lint-fix": "eslint --fix 'src/**/*.{js,ts}'",
|
|
21
|
-
"p:beta": "npm publish --tag=beta --access public"
|
|
18
|
+
"p:beta": "npm publish --tag=beta --access public",
|
|
19
|
+
"p": "npm publish"
|
|
22
20
|
},
|
|
23
21
|
"dependencies": {
|
|
24
22
|
"@babel/runtime-corejs3": "^7.10.3"
|
|
@@ -53,10 +51,11 @@
|
|
|
53
51
|
"gulp-umd": "^2.0.0",
|
|
54
52
|
"gulp-util": "^3.0.8",
|
|
55
53
|
"lint-staged": "^10.0.9",
|
|
54
|
+
"npm-cli-login": "1.0.0",
|
|
56
55
|
"prettier": "^2.0.2",
|
|
57
56
|
"qiao.ext.cos": "^0.1.2",
|
|
58
57
|
"ts-loader": "^7.0.1",
|
|
59
|
-
"typescript": "^3.
|
|
58
|
+
"typescript": "^3.9.7",
|
|
60
59
|
"webpack": "^4.43.0",
|
|
61
60
|
"webpack-cli": "^3.3.11",
|
|
62
61
|
"webpack-merge": "^4.2.2",
|
package/dist/yach_jssdk_4.4.4.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=1)}([function(e){e.exports=JSON.parse('{"name":"yach.open.jssdk","version":"4.4.4","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=/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"}}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 pi})),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 le})),t.d(n,"getSingleWebviewData",(function(){return fe})),t.d(n,"injectScript",(function(){return ve})),t.d(n,"closeWindow",(function(){return he})),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 pt})),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 gt})),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 go})),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 po})),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,"lorebaseShowList",(function(){return gn})),t.d(n,"lorebaseRefreshNodeWebview",(function(){return wn})),t.d(n,"openPublish",(function(){return Sn})),t.d(n,"setLight",(function(){return Co})),t.d(n,"openUserSchedule",(function(){return en})),t.d(n,"disableScreenCapture",(function(){return pn})),t.d(n,"setPanGestureEnable",(function(){return nt})),t.d(n,"addAppToNav",(function(){return ei})),t.d(n,"copy",(function(){return kn})),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),p=(c.warn.bind(c),c.error.bind(c),"color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;");function l(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return d("%c Yach-jssdk log: ",p,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},h=function(e){return"*"===e||"x"===e||"X"===e},g=function(e){var n=parseInt(e,10);return isNaN(n)?e:n},b=function(e,n){if(h(e)||h(n))return 0;var t=function(e,n){return typeof e!=typeof n?[String(e),String(n)]:[e,n]}(g(e),g(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){l("SDK 返回结果成功 ",{method:e,params:r,result:n})})).catch((function(n){l("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,p=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 l=document.documentElement.scrollTop||document.body.scrollTop,f=window.location.href;"browserView"===t?window.sendTo(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:l,url:f,title:c&&c.title}})):window.sendToHost(JSON.stringify({type:o,methodName:i,body:{scrollTopVal:l,url:f,title:c&&c.title}}))}else if("response"===o){var v=e.getPending(a);v&&v.receiveResponse({data:c,code:u,message:d||p||c.msg||c.message}),-3!=u&&e.deletePending(a)}},this.init=function(){window.addEventListener("message",(function(n){l("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),p=n[d];if(l("SDK执行后回调,相关参数 ",{method:e,param:n,data:r,_code:u,message:c,callbackFun:p}),"onFail"!==d)"function"==typeof p&&p(r||c),t({_code:u,message:c,data:r});else{if(s({method:e,errorcode:u,message:c||JSON.stringify(r)||"SDK执行失败回调,相关参数"}),"function"==typeof p){console.log("wenai-code",a,u);var f="[object Object]"===Object.prototype.toString.call(r)?M(M({},r),{code:a,message:c}):{data:r,code:a,message:c};p(c?f:r)}o({_code:u,message:c,data:r})}}))}))},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),p=I(d),f=i[p];if(l("SDK执行后回调,相关参数 ",{method:e,param:n,data:u,_code:d,message:c,callbackFun:f}),"onFail"===p)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){l("注册resume事件 "),n.registerHandler("resume",(function(e){l("resume监听到回调,相关参数 ",{resData:e}),S.execEvent("resume",e)})),l("注册unreadMsgAction事件 "),n.registerHandler("unreadMsgAction",(function(e){l("unreadMsgAction监听到回调,相关参数 ",{resData:e}),S.execEvent("unreadMsgAction",e)})),l("注册webViewMsgReceive事件 "),n.registerHandler("webViewMsgReceive",(function(e){l("webViewMsgReceive监听到回调,相关参数 ",{resData:e}),S.execEvent("webViewMsgReceive",e)})),n.registerHandler("pushWorkMsg",(function(e){l("pushWorkMsg监听到回调,相关参数 ",{resData:e}),S.execEvent("pushWorkMsg",e)})),n.registerHandler("getTogetherCallback",(function(e){l("getTogetherCallback监听到回调,相关参数 ",{resData:e}),S.execEvent("getTogetherCallback",e)})),n.registerHandler("sendMsgCommon",(function(e){l("sendMsgCommon ",{resData:e}),S.execEvent("sendMsgCommon",e)})),n.registerHandler("toolbarClickEvent",(function(e,n){l("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 pe={pc:{vs:"0.0.0"}};function le(e){B("biz.util.openSingleWebview",{params:e,platform:pe})}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 he(e){B("biz.util.closeWindow",{params:e,platform:me})}var ge={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:ge})}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 pn(e){B("biz.util.disableScreenCapture",{params:e,platform:dn})}var ln={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:ln})}var vn={pc:{vs:"1.8.8"}};function mn(e){B("biz.util.knowledgeBaseSelect",{params:e,platform:vn})}var hn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function gn(e){B("biz.util.lorebaseShowList",{params:e,platform:hn})}var bn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function wn(e){B("biz.util.lorebaseRefreshNodeWebview",{params:e,platform:bn})}var yn={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function kn(e){B("biz.util.copy",{params:e,platform:yn})}var Pn={pc:{vs:"1.8.8"}};function Sn(e){B("biz.util.openPublish",{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 pt(e){B("biz.chat.sendP2PMsg",{params:e})}var lt={pc:{vs:"0.0.0"}};function ft(e){B("primary.createTab",{params:e,platform:lt})}var vt={pc:{vs:"0.0.0"}};function mt(e){B("primary.weeklyShare",{params:e,platform:vt})}var ht={pc:{vs:"0.0.0"}};function gt(e){B("primary.fullScreen",{params:e,platform:ht})}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 po(e){B("device.connection.getNetworkType",{params:e,platform:uo})}var lo={pc:{vs:"0.0.0"}};function fo(e){B("device.connection.isAtTal",{params:e,platform:lo})}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 ho={ios:{vs:"0.0.0"},android:{vs:"0.0.0"}};function go(e){B("device.base.checkStepPermission",{params:e,platform:ho})}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,pi=ni.off;n.default={version:ti,sdkVersion:oi,env:ii,platform:ri,platformV2:ai,config:si,ready:ci,error:ui,on:di,off:pi,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:le,getSingleWebviewData:fe,injectScript:ve,onlineDocmentOpenTeamChat:tn,entergroupCheck:rn,resetSessionUnread:sn,weeklyRead:un,openFutureGroup:fn,closeWindow:he,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:pn,addAppToNav:ei,knowledgeBaseSelect:mn,lorebaseShowList:gn,lorebaseRefreshNodeWebview:wn,copy:kn,openPublish: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:pt},map:{view:ae,multipointView:ce},webViewMessage:{send:Xo}},runtime:{permission:{requestAuthCode:yt}},primary:{createTab:ft,weeklyShare:mt,fullScreen:gt,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:go},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:po,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,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,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 };
|