yach.open.jssdk 4.4.2 → 4.4.3-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (566) hide show
  1. package/package.json +1 -1
  2. package/dist/yach_jssdk_4.4.2.js +0 -1
  3. package/es/api/app/custom/talYoungFilesUpload.d.ts +0 -38
  4. package/es/api/app/custom/talYoungFilesUpload.js +0 -18
  5. package/es/api/biz/chat/chooseConversationByCorpId.d.ts +0 -36
  6. package/es/api/biz/chat/chooseConversationByCorpId.js +0 -10
  7. package/es/api/biz/chat/openSingleChat.d.ts +0 -10
  8. package/es/api/biz/chat/openSingleChat.js +0 -10
  9. package/es/api/biz/chat/openSquad.d.ts +0 -8
  10. package/es/api/biz/chat/openSquad.js +0 -10
  11. package/es/api/biz/chat/openTeamChat.d.ts +0 -10
  12. package/es/api/biz/chat/openTeamChat.js +0 -10
  13. package/es/api/biz/chat/pickConversation.d.ts +0 -19
  14. package/es/api/biz/chat/pickConversation.js +0 -21
  15. package/es/api/biz/chat/sendP2PMsg.d.ts +0 -10
  16. package/es/api/biz/chat/sendP2PMsg.js +0 -10
  17. package/es/api/biz/contact/complexPicker.d.ts +0 -62
  18. package/es/api/biz/contact/complexPicker.js +0 -10
  19. package/es/api/biz/contact/departmentsPicker.d.ts +0 -35
  20. package/es/api/biz/contact/departmentsPicker.js +0 -10
  21. package/es/api/biz/group/groupComplexPicker.d.ts +0 -33
  22. package/es/api/biz/group/groupComplexPicker.js +0 -10
  23. package/es/api/biz/map/multipointView.d.ts +0 -21
  24. package/es/api/biz/map/multipointView.js +0 -21
  25. package/es/api/biz/map/view.d.ts +0 -13
  26. package/es/api/biz/map/view.js +0 -21
  27. package/es/api/biz/navigation/close.d.ts +0 -7
  28. package/es/api/biz/navigation/close.js +0 -11
  29. package/es/api/biz/navigation/goBack.d.ts +0 -7
  30. package/es/api/biz/navigation/goBack.js +0 -21
  31. package/es/api/biz/navigation/quit.d.ts +0 -8
  32. package/es/api/biz/navigation/quit.js +0 -17
  33. package/es/api/biz/navigation/replace.d.ts +0 -8
  34. package/es/api/biz/navigation/replace.js +0 -10
  35. package/es/api/biz/navigation/setIcon.d.ts +0 -12
  36. package/es/api/biz/navigation/setIcon.js +0 -29
  37. package/es/api/biz/navigation/setLeft.d.ts +0 -9
  38. package/es/api/biz/navigation/setLeft.js +0 -33
  39. package/es/api/biz/navigation/setMenu.d.ts +0 -20
  40. package/es/api/biz/navigation/setMenu.js +0 -27
  41. package/es/api/biz/navigation/setPanGestureEnable.d.ts +0 -9
  42. package/es/api/biz/navigation/setPanGestureEnable.js +0 -28
  43. package/es/api/biz/navigation/setRight.d.ts +0 -13
  44. package/es/api/biz/navigation/setRight.js +0 -33
  45. package/es/api/biz/navigation/setTitle.d.ts +0 -11
  46. package/es/api/biz/navigation/setTitle.js +0 -10
  47. package/es/api/biz/navigation/setTitleExpandIcon.d.ts +0 -9
  48. package/es/api/biz/navigation/setTitleExpandIcon.js +0 -27
  49. package/es/api/biz/navigation/setWindowBig.d.ts +0 -9
  50. package/es/api/biz/navigation/setWindowBig.js +0 -18
  51. package/es/api/biz/navigation/tencentMeeting.d.ts +0 -23
  52. package/es/api/biz/navigation/tencentMeeting.js +0 -10
  53. package/es/api/biz/navigation/tencentMeetingBegin.d.ts +0 -7
  54. package/es/api/biz/navigation/tencentMeetingBegin.js +0 -10
  55. package/es/api/biz/navigation/updateExpandTitle.d.ts +0 -8
  56. package/es/api/biz/navigation/updateExpandTitle.js +0 -10
  57. package/es/api/biz/telephone/call.d.ts +0 -9
  58. package/es/api/biz/telephone/call.js +0 -21
  59. package/es/api/biz/telephone/showCallMenu.d.ts +0 -12
  60. package/es/api/biz/telephone/showCallMenu.js +0 -21
  61. package/es/api/biz/util/addAppToNav.d.ts +0 -9
  62. package/es/api/biz/util/addAppToNav.js +0 -25
  63. package/es/api/biz/util/assistantCreate.d.ts +0 -11
  64. package/es/api/biz/util/assistantCreate.js +0 -25
  65. package/es/api/biz/util/authFinish.d.ts +0 -11
  66. package/es/api/biz/util/authFinish.js +0 -21
  67. package/es/api/biz/util/authStart.d.ts +0 -9
  68. package/es/api/biz/util/authStart.js +0 -21
  69. package/es/api/biz/util/chosen.d.ts +0 -15
  70. package/es/api/biz/util/chosen.js +0 -21
  71. package/es/api/biz/util/clipboardFileUpload.d.ts +0 -7
  72. package/es/api/biz/util/clipboardFileUpload.js +0 -10
  73. package/es/api/biz/util/closeWindow.d.ts +0 -8
  74. package/es/api/biz/util/closeWindow.js +0 -17
  75. package/es/api/biz/util/complain.d.ts +0 -12
  76. package/es/api/biz/util/complain.js +0 -10
  77. package/es/api/biz/util/createModifySchedule.d.ts +0 -26
  78. package/es/api/biz/util/createModifySchedule.js +0 -17
  79. package/es/api/biz/util/datepicker.d.ts +0 -14
  80. package/es/api/biz/util/datepicker.js +0 -21
  81. package/es/api/biz/util/datetimepicker.d.ts +0 -14
  82. package/es/api/biz/util/datetimepicker.js +0 -21
  83. package/es/api/biz/util/disableScreenCapture.d.ts +0 -8
  84. package/es/api/biz/util/disableScreenCapture.js +0 -21
  85. package/es/api/biz/util/downloadFile.d.ts +0 -9
  86. package/es/api/biz/util/downloadFile.js +0 -10
  87. package/es/api/biz/util/entergroupCheck.d.ts +0 -11
  88. package/es/api/biz/util/entergroupCheck.js +0 -25
  89. package/es/api/biz/util/externalLinkPreviewFile.d.ts +0 -11
  90. package/es/api/biz/util/externalLinkPreviewFile.js +0 -10
  91. package/es/api/biz/util/feedback.d.ts +0 -11
  92. package/es/api/biz/util/feedback.js +0 -10
  93. package/es/api/biz/util/getSingleWebviewData.d.ts +0 -8
  94. package/es/api/biz/util/getSingleWebviewData.js +0 -10
  95. package/es/api/biz/util/getTogetherConfig.d.ts +0 -11
  96. package/es/api/biz/util/getTogetherConfig.js +0 -25
  97. package/es/api/biz/util/getToken.d.ts +0 -11
  98. package/es/api/biz/util/getToken.js +0 -21
  99. package/es/api/biz/util/injectScript.d.ts +0 -9
  100. package/es/api/biz/util/injectScript.js +0 -10
  101. package/es/api/biz/util/invoice.d.ts +0 -12
  102. package/es/api/biz/util/invoice.js +0 -17
  103. package/es/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
  104. package/es/api/biz/util/knowledgeBaseSelect.js +0 -17
  105. package/es/api/biz/util/mediaFileUpload.d.ts +0 -26
  106. package/es/api/biz/util/mediaFileUpload.js +0 -17
  107. package/es/api/biz/util/onlineDocmentOpenTeamChat.d.ts +0 -10
  108. package/es/api/biz/util/onlineDocmentOpenTeamChat.js +0 -25
  109. package/es/api/biz/util/open.d.ts +0 -9
  110. package/es/api/biz/util/open.js +0 -10
  111. package/es/api/biz/util/openFutureGroup.d.ts +0 -10
  112. package/es/api/biz/util/openFutureGroup.js +0 -25
  113. package/es/api/biz/util/openLink.d.ts +0 -8
  114. package/es/api/biz/util/openLink.js +0 -10
  115. package/es/api/biz/util/openMediaFileDialog.d.ts +0 -23
  116. package/es/api/biz/util/openMediaFileDialog.js +0 -17
  117. package/es/api/biz/util/openSingleWebview.d.ts +0 -23
  118. package/es/api/biz/util/openSingleWebview.js +0 -17
  119. package/es/api/biz/util/openSlidePanel.d.ts +0 -11
  120. package/es/api/biz/util/openSlidePanel.js +0 -17
  121. package/es/api/biz/util/openTalYoungToTopic.d.ts +0 -6
  122. package/es/api/biz/util/openTalYoungToTopic.js +0 -17
  123. package/es/api/biz/util/openTogetherEyeWebview.d.ts +0 -11
  124. package/es/api/biz/util/openTogetherEyeWebview.js +0 -25
  125. package/es/api/biz/util/openUserSchedule.d.ts +0 -11
  126. package/es/api/biz/util/openUserSchedule.js +0 -25
  127. package/es/api/biz/util/openVideoPlayer.d.ts +0 -27
  128. package/es/api/biz/util/openVideoPlayer.js +0 -25
  129. package/es/api/biz/util/previewFile.d.ts +0 -11
  130. package/es/api/biz/util/previewFile.js +0 -10
  131. package/es/api/biz/util/previewImage.d.ts +0 -9
  132. package/es/api/biz/util/previewImage.js +0 -10
  133. package/es/api/biz/util/proxy.d.ts +0 -13
  134. package/es/api/biz/util/proxy.js +0 -10
  135. package/es/api/biz/util/pushWorkMsg.d.ts +0 -10
  136. package/es/api/biz/util/pushWorkMsg.js +0 -17
  137. package/es/api/biz/util/remind.d.ts +0 -15
  138. package/es/api/biz/util/remind.js +0 -25
  139. package/es/api/biz/util/resetSessionUnread.d.ts +0 -8
  140. package/es/api/biz/util/resetSessionUnread.js +0 -23
  141. package/es/api/biz/util/rouseApp.d.ts +0 -12
  142. package/es/api/biz/util/rouseApp.js +0 -17
  143. package/es/api/biz/util/savePic.d.ts +0 -8
  144. package/es/api/biz/util/savePic.js +0 -21
  145. package/es/api/biz/util/scan.d.ts +0 -11
  146. package/es/api/biz/util/scan.js +0 -21
  147. package/es/api/biz/util/screen.d.ts +0 -15
  148. package/es/api/biz/util/screen.js +0 -17
  149. package/es/api/biz/util/selectDepartment.d.ts +0 -9
  150. package/es/api/biz/util/selectDepartment.js +0 -10
  151. package/es/api/biz/util/share.d.ts +0 -12
  152. package/es/api/biz/util/share.js +0 -21
  153. package/es/api/biz/util/takePicture.d.ts +0 -13
  154. package/es/api/biz/util/takePicture.js +0 -10
  155. package/es/api/biz/util/uploadAttachment.d.ts +0 -55
  156. package/es/api/biz/util/uploadAttachment.js +0 -10
  157. package/es/api/biz/util/weeklyRead.d.ts +0 -5
  158. package/es/api/biz/util/weeklyRead.js +0 -25
  159. package/es/api/biz/util/yachEvent.d.ts +0 -12
  160. package/es/api/biz/util/yachEvent.js +0 -29
  161. package/es/api/biz/util/zfbAuth.d.ts +0 -10
  162. package/es/api/biz/util/zfbAuth.js +0 -21
  163. package/es/api/biz/webViewMessage/send.d.ts +0 -7
  164. package/es/api/biz/webViewMessage/send.js +0 -17
  165. package/es/api/common.typings.d.ts +0 -9
  166. package/es/api/common.typings.js +0 -0
  167. package/es/api/device/audio/download.d.ts +0 -8
  168. package/es/api/device/audio/download.js +0 -21
  169. package/es/api/device/audio/onPlayEnd.d.ts +0 -7
  170. package/es/api/device/audio/onPlayEnd.js +0 -21
  171. package/es/api/device/audio/onRecordEnd.d.ts +0 -7
  172. package/es/api/device/audio/onRecordEnd.js +0 -21
  173. package/es/api/device/audio/onRecordEnd_v2.d.ts +0 -7
  174. package/es/api/device/audio/onRecordEnd_v2.js +0 -21
  175. package/es/api/device/audio/pause.d.ts +0 -8
  176. package/es/api/device/audio/pause.js +0 -21
  177. package/es/api/device/audio/play.d.ts +0 -8
  178. package/es/api/device/audio/play.js +0 -21
  179. package/es/api/device/audio/resume.d.ts +0 -8
  180. package/es/api/device/audio/resume.js +0 -21
  181. package/es/api/device/audio/startRecord.d.ts +0 -8
  182. package/es/api/device/audio/startRecord.js +0 -21
  183. package/es/api/device/audio/startRecord_v2.d.ts +0 -8
  184. package/es/api/device/audio/startRecord_v2.js +0 -21
  185. package/es/api/device/audio/stop.d.ts +0 -8
  186. package/es/api/device/audio/stop.js +0 -21
  187. package/es/api/device/audio/stopRecord.d.ts +0 -7
  188. package/es/api/device/audio/stopRecord.js +0 -21
  189. package/es/api/device/audio/stopRecord_v2.d.ts +0 -7
  190. package/es/api/device/audio/stopRecord_v2.js +0 -21
  191. package/es/api/device/base/checkStepPermission.d.ts +0 -8
  192. package/es/api/device/base/checkStepPermission.js +0 -21
  193. package/es/api/device/base/getPhoneInfo.d.ts +0 -16
  194. package/es/api/device/base/getPhoneInfo.js +0 -21
  195. package/es/api/device/base/getUUID.d.ts +0 -10
  196. package/es/api/device/base/getUUID.js +0 -25
  197. package/es/api/device/connection/getNetworkType.d.ts +0 -10
  198. package/es/api/device/connection/getNetworkType.js +0 -21
  199. package/es/api/device/connection/isAtTal.d.ts +0 -10
  200. package/es/api/device/connection/isAtTal.js +0 -23
  201. package/es/api/device/geolocation/get.d.ts +0 -42
  202. package/es/api/device/geolocation/get.js +0 -21
  203. package/es/api/device/geolocation/getSwitch.d.ts +0 -10
  204. package/es/api/device/geolocation/getSwitch.js +0 -17
  205. package/es/api/device/notification/actionSheet.d.ts +0 -15
  206. package/es/api/device/notification/actionSheet.js +0 -21
  207. package/es/api/device/notification/alert.d.ts +0 -13
  208. package/es/api/device/notification/alert.js +0 -25
  209. package/es/api/device/notification/confirm.d.ts +0 -16
  210. package/es/api/device/notification/confirm.js +0 -25
  211. package/es/api/device/notification/hidePreloader.d.ts +0 -12
  212. package/es/api/device/notification/hidePreloader.js +0 -36
  213. package/es/api/device/notification/showPreloader.d.ts +0 -18
  214. package/es/api/device/notification/showPreloader.js +0 -36
  215. package/es/api/device/notification/toast.d.ts +0 -15
  216. package/es/api/device/notification/toast.js +0 -10
  217. package/es/api/device/notification/vibrate.d.ts +0 -8
  218. package/es/api/device/notification/vibrate.js +0 -21
  219. package/es/api/device/system/getLang.d.ts +0 -10
  220. package/es/api/device/system/getLang.js +0 -10
  221. package/es/api/device/system/setLight.d.ts +0 -8
  222. package/es/api/device/system/setLight.js +0 -21
  223. package/es/api/initAPI.d.ts +0 -6
  224. package/es/api/initAPI.js +0 -24
  225. package/es/api/primary/createTab.d.ts +0 -13
  226. package/es/api/primary/createTab.js +0 -17
  227. package/es/api/primary/exitFullScreen.d.ts +0 -7
  228. package/es/api/primary/exitFullScreen.js +0 -17
  229. package/es/api/primary/fullScreen.d.ts +0 -7
  230. package/es/api/primary/fullScreen.js +0 -17
  231. package/es/api/primary/weeklyShare.d.ts +0 -13
  232. package/es/api/primary/weeklyShare.js +0 -17
  233. package/es/api/runtime/permission/requestAuthCode.d.ts +0 -12
  234. package/es/api/runtime/permission/requestAuthCode.js +0 -10
  235. package/es/api/ui/pullToRefresh/disable.d.ts +0 -7
  236. package/es/api/ui/pullToRefresh/disable.js +0 -21
  237. package/es/api/ui/pullToRefresh/enable.d.ts +0 -7
  238. package/es/api/ui/pullToRefresh/enable.js +0 -21
  239. package/es/api/ui/pullToRefresh/stop.d.ts +0 -7
  240. package/es/api/ui/pullToRefresh/stop.js +0 -21
  241. package/es/api/ui/webViewBounce/disable.d.ts +0 -7
  242. package/es/api/ui/webViewBounce/disable.js +0 -17
  243. package/es/api/util/domainStorage/getItem.d.ts +0 -12
  244. package/es/api/util/domainStorage/getItem.js +0 -21
  245. package/es/api/util/domainStorage/removeItem.d.ts +0 -9
  246. package/es/api/util/domainStorage/removeItem.js +0 -21
  247. package/es/api/util/domainStorage/setItem.d.ts +0 -11
  248. package/es/api/util/domainStorage/setItem.js +0 -21
  249. package/es/api/util/tool/flushLog.d.ts +0 -7
  250. package/es/api/util/tool/flushLog.js +0 -17
  251. package/es/api/util/tool/log.d.ts +0 -9
  252. package/es/api/util/tool/log.js +0 -17
  253. package/es/index.d.ts +0 -325
  254. package/es/index.js +0 -353
  255. package/es/lib/bridge/index.d.ts +0 -2
  256. package/es/lib/bridge/index.js +0 -2
  257. package/es/lib/bridge/mobile.d.ts +0 -13
  258. package/es/lib/bridge/mobile.js +0 -184
  259. package/es/lib/bridge/pc.d.ts +0 -4
  260. package/es/lib/bridge/pc.js +0 -94
  261. package/es/lib/helper/apiHelper.d.ts +0 -2
  262. package/es/lib/helper/apiHelper.js +0 -10
  263. package/es/lib/helper/codeMap.d.ts +0 -2
  264. package/es/lib/helper/codeMap.js +0 -8
  265. package/es/lib/helper/event.d.ts +0 -9
  266. package/es/lib/helper/event.js +0 -52
  267. package/es/lib/helper/pcIframe.d.ts +0 -44
  268. package/es/lib/helper/pcIframe.js +0 -180
  269. package/es/lib/index.d.ts +0 -4
  270. package/es/lib/index.js +0 -92
  271. package/es/lib/sdk/index.d.ts +0 -19
  272. package/es/lib/sdk/index.js +0 -191
  273. package/es/lib/sdk/sdk.typings.d.ts +0 -85
  274. package/es/lib/sdk/sdk.typings.js +0 -8
  275. package/es/utils/bpitLog.d.ts +0 -16
  276. package/es/utils/bpitLog.js +0 -71
  277. package/es/utils/compareVersions.d.ts +0 -58
  278. package/es/utils/compareVersions.js +0 -192
  279. package/es/utils/console.d.ts +0 -4
  280. package/es/utils/console.js +0 -60
  281. package/es/utils/env.d.ts +0 -3
  282. package/es/utils/env.js +0 -52
  283. package/es/utils/index.d.ts +0 -4
  284. package/es/utils/index.js +0 -25
  285. package/libs/api/app/custom/talYoungFilesUpload.d.ts +0 -38
  286. package/libs/api/app/custom/talYoungFilesUpload.js +0 -29
  287. package/libs/api/biz/chat/chooseConversationByCorpId.d.ts +0 -36
  288. package/libs/api/biz/chat/chooseConversationByCorpId.js +0 -21
  289. package/libs/api/biz/chat/openSingleChat.d.ts +0 -10
  290. package/libs/api/biz/chat/openSingleChat.js +0 -21
  291. package/libs/api/biz/chat/openSquad.d.ts +0 -8
  292. package/libs/api/biz/chat/openSquad.js +0 -21
  293. package/libs/api/biz/chat/openTeamChat.d.ts +0 -10
  294. package/libs/api/biz/chat/openTeamChat.js +0 -21
  295. package/libs/api/biz/chat/pickConversation.d.ts +0 -19
  296. package/libs/api/biz/chat/pickConversation.js +0 -32
  297. package/libs/api/biz/chat/sendP2PMsg.d.ts +0 -10
  298. package/libs/api/biz/chat/sendP2PMsg.js +0 -21
  299. package/libs/api/biz/contact/complexPicker.d.ts +0 -62
  300. package/libs/api/biz/contact/complexPicker.js +0 -21
  301. package/libs/api/biz/contact/departmentsPicker.d.ts +0 -35
  302. package/libs/api/biz/contact/departmentsPicker.js +0 -21
  303. package/libs/api/biz/group/groupComplexPicker.d.ts +0 -33
  304. package/libs/api/biz/group/groupComplexPicker.js +0 -21
  305. package/libs/api/biz/map/multipointView.d.ts +0 -21
  306. package/libs/api/biz/map/multipointView.js +0 -32
  307. package/libs/api/biz/map/view.d.ts +0 -13
  308. package/libs/api/biz/map/view.js +0 -32
  309. package/libs/api/biz/navigation/close.d.ts +0 -7
  310. package/libs/api/biz/navigation/close.js +0 -22
  311. package/libs/api/biz/navigation/goBack.d.ts +0 -7
  312. package/libs/api/biz/navigation/goBack.js +0 -32
  313. package/libs/api/biz/navigation/quit.d.ts +0 -8
  314. package/libs/api/biz/navigation/quit.js +0 -28
  315. package/libs/api/biz/navigation/replace.d.ts +0 -8
  316. package/libs/api/biz/navigation/replace.js +0 -21
  317. package/libs/api/biz/navigation/setIcon.d.ts +0 -12
  318. package/libs/api/biz/navigation/setIcon.js +0 -41
  319. package/libs/api/biz/navigation/setLeft.d.ts +0 -9
  320. package/libs/api/biz/navigation/setLeft.js +0 -45
  321. package/libs/api/biz/navigation/setMenu.d.ts +0 -20
  322. package/libs/api/biz/navigation/setMenu.js +0 -39
  323. package/libs/api/biz/navigation/setPanGestureEnable.d.ts +0 -9
  324. package/libs/api/biz/navigation/setPanGestureEnable.js +0 -40
  325. package/libs/api/biz/navigation/setRight.d.ts +0 -13
  326. package/libs/api/biz/navigation/setRight.js +0 -45
  327. package/libs/api/biz/navigation/setTitle.d.ts +0 -11
  328. package/libs/api/biz/navigation/setTitle.js +0 -21
  329. package/libs/api/biz/navigation/setTitleExpandIcon.d.ts +0 -9
  330. package/libs/api/biz/navigation/setTitleExpandIcon.js +0 -39
  331. package/libs/api/biz/navigation/setWindowBig.d.ts +0 -9
  332. package/libs/api/biz/navigation/setWindowBig.js +0 -29
  333. package/libs/api/biz/navigation/tencentMeeting.d.ts +0 -23
  334. package/libs/api/biz/navigation/tencentMeeting.js +0 -21
  335. package/libs/api/biz/navigation/tencentMeetingBegin.d.ts +0 -7
  336. package/libs/api/biz/navigation/tencentMeetingBegin.js +0 -21
  337. package/libs/api/biz/navigation/updateExpandTitle.d.ts +0 -8
  338. package/libs/api/biz/navigation/updateExpandTitle.js +0 -21
  339. package/libs/api/biz/telephone/call.d.ts +0 -9
  340. package/libs/api/biz/telephone/call.js +0 -32
  341. package/libs/api/biz/telephone/showCallMenu.d.ts +0 -12
  342. package/libs/api/biz/telephone/showCallMenu.js +0 -32
  343. package/libs/api/biz/util/addAppToNav.d.ts +0 -9
  344. package/libs/api/biz/util/addAppToNav.js +0 -36
  345. package/libs/api/biz/util/assistantCreate.d.ts +0 -11
  346. package/libs/api/biz/util/assistantCreate.js +0 -36
  347. package/libs/api/biz/util/authFinish.d.ts +0 -11
  348. package/libs/api/biz/util/authFinish.js +0 -32
  349. package/libs/api/biz/util/authStart.d.ts +0 -9
  350. package/libs/api/biz/util/authStart.js +0 -32
  351. package/libs/api/biz/util/chosen.d.ts +0 -15
  352. package/libs/api/biz/util/chosen.js +0 -32
  353. package/libs/api/biz/util/clipboardFileUpload.d.ts +0 -7
  354. package/libs/api/biz/util/clipboardFileUpload.js +0 -21
  355. package/libs/api/biz/util/closeWindow.d.ts +0 -8
  356. package/libs/api/biz/util/closeWindow.js +0 -28
  357. package/libs/api/biz/util/complain.d.ts +0 -12
  358. package/libs/api/biz/util/complain.js +0 -21
  359. package/libs/api/biz/util/createModifySchedule.d.ts +0 -26
  360. package/libs/api/biz/util/createModifySchedule.js +0 -28
  361. package/libs/api/biz/util/datepicker.d.ts +0 -14
  362. package/libs/api/biz/util/datepicker.js +0 -32
  363. package/libs/api/biz/util/datetimepicker.d.ts +0 -14
  364. package/libs/api/biz/util/datetimepicker.js +0 -32
  365. package/libs/api/biz/util/disableScreenCapture.d.ts +0 -8
  366. package/libs/api/biz/util/disableScreenCapture.js +0 -32
  367. package/libs/api/biz/util/downloadFile.d.ts +0 -9
  368. package/libs/api/biz/util/downloadFile.js +0 -21
  369. package/libs/api/biz/util/entergroupCheck.d.ts +0 -11
  370. package/libs/api/biz/util/entergroupCheck.js +0 -36
  371. package/libs/api/biz/util/externalLinkPreviewFile.d.ts +0 -11
  372. package/libs/api/biz/util/externalLinkPreviewFile.js +0 -21
  373. package/libs/api/biz/util/feedback.d.ts +0 -11
  374. package/libs/api/biz/util/feedback.js +0 -21
  375. package/libs/api/biz/util/getSingleWebviewData.d.ts +0 -8
  376. package/libs/api/biz/util/getSingleWebviewData.js +0 -21
  377. package/libs/api/biz/util/getTogetherConfig.d.ts +0 -11
  378. package/libs/api/biz/util/getTogetherConfig.js +0 -36
  379. package/libs/api/biz/util/getToken.d.ts +0 -11
  380. package/libs/api/biz/util/getToken.js +0 -32
  381. package/libs/api/biz/util/injectScript.d.ts +0 -9
  382. package/libs/api/biz/util/injectScript.js +0 -21
  383. package/libs/api/biz/util/invoice.d.ts +0 -12
  384. package/libs/api/biz/util/invoice.js +0 -28
  385. package/libs/api/biz/util/knowledgeBaseSelect.d.ts +0 -21
  386. package/libs/api/biz/util/knowledgeBaseSelect.js +0 -28
  387. package/libs/api/biz/util/mediaFileUpload.d.ts +0 -26
  388. package/libs/api/biz/util/mediaFileUpload.js +0 -28
  389. package/libs/api/biz/util/onlineDocmentOpenTeamChat.d.ts +0 -10
  390. package/libs/api/biz/util/onlineDocmentOpenTeamChat.js +0 -36
  391. package/libs/api/biz/util/open.d.ts +0 -9
  392. package/libs/api/biz/util/open.js +0 -21
  393. package/libs/api/biz/util/openFutureGroup.d.ts +0 -10
  394. package/libs/api/biz/util/openFutureGroup.js +0 -36
  395. package/libs/api/biz/util/openLink.d.ts +0 -8
  396. package/libs/api/biz/util/openLink.js +0 -21
  397. package/libs/api/biz/util/openMediaFileDialog.d.ts +0 -23
  398. package/libs/api/biz/util/openMediaFileDialog.js +0 -28
  399. package/libs/api/biz/util/openSingleWebview.d.ts +0 -23
  400. package/libs/api/biz/util/openSingleWebview.js +0 -28
  401. package/libs/api/biz/util/openSlidePanel.d.ts +0 -11
  402. package/libs/api/biz/util/openSlidePanel.js +0 -28
  403. package/libs/api/biz/util/openTalYoungToTopic.d.ts +0 -6
  404. package/libs/api/biz/util/openTalYoungToTopic.js +0 -28
  405. package/libs/api/biz/util/openTogetherEyeWebview.d.ts +0 -11
  406. package/libs/api/biz/util/openTogetherEyeWebview.js +0 -36
  407. package/libs/api/biz/util/openUserSchedule.d.ts +0 -11
  408. package/libs/api/biz/util/openUserSchedule.js +0 -36
  409. package/libs/api/biz/util/openVideoPlayer.d.ts +0 -27
  410. package/libs/api/biz/util/openVideoPlayer.js +0 -36
  411. package/libs/api/biz/util/previewFile.d.ts +0 -11
  412. package/libs/api/biz/util/previewFile.js +0 -21
  413. package/libs/api/biz/util/previewImage.d.ts +0 -9
  414. package/libs/api/biz/util/previewImage.js +0 -21
  415. package/libs/api/biz/util/proxy.d.ts +0 -13
  416. package/libs/api/biz/util/proxy.js +0 -21
  417. package/libs/api/biz/util/pushWorkMsg.d.ts +0 -10
  418. package/libs/api/biz/util/pushWorkMsg.js +0 -28
  419. package/libs/api/biz/util/remind.d.ts +0 -15
  420. package/libs/api/biz/util/remind.js +0 -36
  421. package/libs/api/biz/util/resetSessionUnread.d.ts +0 -8
  422. package/libs/api/biz/util/resetSessionUnread.js +0 -34
  423. package/libs/api/biz/util/rouseApp.d.ts +0 -12
  424. package/libs/api/biz/util/rouseApp.js +0 -28
  425. package/libs/api/biz/util/savePic.d.ts +0 -8
  426. package/libs/api/biz/util/savePic.js +0 -32
  427. package/libs/api/biz/util/scan.d.ts +0 -11
  428. package/libs/api/biz/util/scan.js +0 -32
  429. package/libs/api/biz/util/screen.d.ts +0 -15
  430. package/libs/api/biz/util/screen.js +0 -28
  431. package/libs/api/biz/util/selectDepartment.d.ts +0 -9
  432. package/libs/api/biz/util/selectDepartment.js +0 -21
  433. package/libs/api/biz/util/share.d.ts +0 -12
  434. package/libs/api/biz/util/share.js +0 -32
  435. package/libs/api/biz/util/takePicture.d.ts +0 -13
  436. package/libs/api/biz/util/takePicture.js +0 -21
  437. package/libs/api/biz/util/uploadAttachment.d.ts +0 -55
  438. package/libs/api/biz/util/uploadAttachment.js +0 -21
  439. package/libs/api/biz/util/weeklyRead.d.ts +0 -5
  440. package/libs/api/biz/util/weeklyRead.js +0 -36
  441. package/libs/api/biz/util/yachEvent.d.ts +0 -12
  442. package/libs/api/biz/util/yachEvent.js +0 -40
  443. package/libs/api/biz/util/zfbAuth.d.ts +0 -10
  444. package/libs/api/biz/util/zfbAuth.js +0 -32
  445. package/libs/api/biz/webViewMessage/send.d.ts +0 -7
  446. package/libs/api/biz/webViewMessage/send.js +0 -28
  447. package/libs/api/common.typings.d.ts +0 -9
  448. package/libs/api/common.typings.js +0 -1
  449. package/libs/api/device/audio/download.d.ts +0 -8
  450. package/libs/api/device/audio/download.js +0 -32
  451. package/libs/api/device/audio/onPlayEnd.d.ts +0 -7
  452. package/libs/api/device/audio/onPlayEnd.js +0 -32
  453. package/libs/api/device/audio/onRecordEnd.d.ts +0 -7
  454. package/libs/api/device/audio/onRecordEnd.js +0 -32
  455. package/libs/api/device/audio/onRecordEnd_v2.d.ts +0 -7
  456. package/libs/api/device/audio/onRecordEnd_v2.js +0 -32
  457. package/libs/api/device/audio/pause.d.ts +0 -8
  458. package/libs/api/device/audio/pause.js +0 -32
  459. package/libs/api/device/audio/play.d.ts +0 -8
  460. package/libs/api/device/audio/play.js +0 -32
  461. package/libs/api/device/audio/resume.d.ts +0 -8
  462. package/libs/api/device/audio/resume.js +0 -32
  463. package/libs/api/device/audio/startRecord.d.ts +0 -8
  464. package/libs/api/device/audio/startRecord.js +0 -32
  465. package/libs/api/device/audio/startRecord_v2.d.ts +0 -8
  466. package/libs/api/device/audio/startRecord_v2.js +0 -32
  467. package/libs/api/device/audio/stop.d.ts +0 -8
  468. package/libs/api/device/audio/stop.js +0 -32
  469. package/libs/api/device/audio/stopRecord.d.ts +0 -7
  470. package/libs/api/device/audio/stopRecord.js +0 -32
  471. package/libs/api/device/audio/stopRecord_v2.d.ts +0 -7
  472. package/libs/api/device/audio/stopRecord_v2.js +0 -32
  473. package/libs/api/device/base/checkStepPermission.d.ts +0 -8
  474. package/libs/api/device/base/checkStepPermission.js +0 -32
  475. package/libs/api/device/base/getPhoneInfo.d.ts +0 -16
  476. package/libs/api/device/base/getPhoneInfo.js +0 -32
  477. package/libs/api/device/base/getUUID.d.ts +0 -10
  478. package/libs/api/device/base/getUUID.js +0 -36
  479. package/libs/api/device/connection/getNetworkType.d.ts +0 -10
  480. package/libs/api/device/connection/getNetworkType.js +0 -32
  481. package/libs/api/device/connection/isAtTal.d.ts +0 -10
  482. package/libs/api/device/connection/isAtTal.js +0 -34
  483. package/libs/api/device/geolocation/get.d.ts +0 -42
  484. package/libs/api/device/geolocation/get.js +0 -32
  485. package/libs/api/device/geolocation/getSwitch.d.ts +0 -10
  486. package/libs/api/device/geolocation/getSwitch.js +0 -28
  487. package/libs/api/device/notification/actionSheet.d.ts +0 -15
  488. package/libs/api/device/notification/actionSheet.js +0 -32
  489. package/libs/api/device/notification/alert.d.ts +0 -13
  490. package/libs/api/device/notification/alert.js +0 -36
  491. package/libs/api/device/notification/confirm.d.ts +0 -16
  492. package/libs/api/device/notification/confirm.js +0 -36
  493. package/libs/api/device/notification/hidePreloader.d.ts +0 -12
  494. package/libs/api/device/notification/hidePreloader.js +0 -48
  495. package/libs/api/device/notification/showPreloader.d.ts +0 -18
  496. package/libs/api/device/notification/showPreloader.js +0 -48
  497. package/libs/api/device/notification/toast.d.ts +0 -15
  498. package/libs/api/device/notification/toast.js +0 -21
  499. package/libs/api/device/notification/vibrate.d.ts +0 -8
  500. package/libs/api/device/notification/vibrate.js +0 -32
  501. package/libs/api/device/system/getLang.d.ts +0 -10
  502. package/libs/api/device/system/getLang.js +0 -21
  503. package/libs/api/device/system/setLight.d.ts +0 -8
  504. package/libs/api/device/system/setLight.js +0 -32
  505. package/libs/api/initAPI.d.ts +0 -6
  506. package/libs/api/initAPI.js +0 -38
  507. package/libs/api/primary/createTab.d.ts +0 -13
  508. package/libs/api/primary/createTab.js +0 -28
  509. package/libs/api/primary/exitFullScreen.d.ts +0 -7
  510. package/libs/api/primary/exitFullScreen.js +0 -28
  511. package/libs/api/primary/fullScreen.d.ts +0 -7
  512. package/libs/api/primary/fullScreen.js +0 -28
  513. package/libs/api/primary/weeklyShare.d.ts +0 -13
  514. package/libs/api/primary/weeklyShare.js +0 -28
  515. package/libs/api/runtime/permission/requestAuthCode.d.ts +0 -12
  516. package/libs/api/runtime/permission/requestAuthCode.js +0 -21
  517. package/libs/api/ui/pullToRefresh/disable.d.ts +0 -7
  518. package/libs/api/ui/pullToRefresh/disable.js +0 -32
  519. package/libs/api/ui/pullToRefresh/enable.d.ts +0 -7
  520. package/libs/api/ui/pullToRefresh/enable.js +0 -32
  521. package/libs/api/ui/pullToRefresh/stop.d.ts +0 -7
  522. package/libs/api/ui/pullToRefresh/stop.js +0 -32
  523. package/libs/api/ui/webViewBounce/disable.d.ts +0 -7
  524. package/libs/api/ui/webViewBounce/disable.js +0 -28
  525. package/libs/api/util/domainStorage/getItem.d.ts +0 -12
  526. package/libs/api/util/domainStorage/getItem.js +0 -32
  527. package/libs/api/util/domainStorage/removeItem.d.ts +0 -9
  528. package/libs/api/util/domainStorage/removeItem.js +0 -32
  529. package/libs/api/util/domainStorage/setItem.d.ts +0 -11
  530. package/libs/api/util/domainStorage/setItem.js +0 -32
  531. package/libs/api/util/tool/flushLog.d.ts +0 -7
  532. package/libs/api/util/tool/flushLog.js +0 -28
  533. package/libs/api/util/tool/log.d.ts +0 -9
  534. package/libs/api/util/tool/log.js +0 -28
  535. package/libs/index.d.ts +0 -325
  536. package/libs/index.js +0 -1371
  537. package/libs/lib/bridge/index.d.ts +0 -2
  538. package/libs/lib/bridge/index.js +0 -39
  539. package/libs/lib/bridge/mobile.d.ts +0 -13
  540. package/libs/lib/bridge/mobile.js +0 -209
  541. package/libs/lib/bridge/pc.d.ts +0 -4
  542. package/libs/lib/bridge/pc.js +0 -114
  543. package/libs/lib/helper/apiHelper.d.ts +0 -2
  544. package/libs/lib/helper/apiHelper.js +0 -21
  545. package/libs/lib/helper/codeMap.d.ts +0 -2
  546. package/libs/lib/helper/codeMap.js +0 -19
  547. package/libs/lib/helper/event.d.ts +0 -9
  548. package/libs/lib/helper/event.js +0 -68
  549. package/libs/lib/helper/pcIframe.d.ts +0 -44
  550. package/libs/lib/helper/pcIframe.js +0 -196
  551. package/libs/lib/index.d.ts +0 -4
  552. package/libs/lib/index.js +0 -110
  553. package/libs/lib/sdk/index.d.ts +0 -19
  554. package/libs/lib/sdk/index.js +0 -208
  555. package/libs/lib/sdk/sdk.typings.d.ts +0 -85
  556. package/libs/lib/sdk/sdk.typings.js +0 -18
  557. package/libs/utils/bpitLog.d.ts +0 -16
  558. package/libs/utils/bpitLog.js +0 -81
  559. package/libs/utils/compareVersions.d.ts +0 -58
  560. package/libs/utils/compareVersions.js +0 -218
  561. package/libs/utils/console.d.ts +0 -4
  562. package/libs/utils/console.js +0 -69
  563. package/libs/utils/env.d.ts +0 -3
  564. package/libs/utils/env.js +0 -60
  565. package/libs/utils/index.d.ts +0 -4
  566. package/libs/utils/index.js +0 -64
@@ -1,81 +0,0 @@
1
- "use strict";
2
-
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
-
5
- _Object$defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
-
9
- exports["default"] = bpitLog;
10
-
11
- function loadScript(url) {
12
- var script = document.createElement('script');
13
- script.type = 'text/javascript';
14
-
15
- if (script.readyState) {
16
- // ie 浏览器
17
- script.onreadystatechange = function () {
18
- if (script.readyState == 'loaded' || script.readyState == 'complete') {
19
- script.onreadystatechange = null;
20
- document.getElementsByTagName('head')[0].removeChild(script);
21
- }
22
- };
23
- } else {
24
- //其他
25
- script.onload = function () {
26
- document.getElementsByTagName('head')[0].removeChild(script);
27
- };
28
- }
29
-
30
- script.src = url;
31
- document.getElementsByTagName('head')[0].appendChild(script);
32
- }
33
-
34
- function bpitLog(options) {
35
- if (!options) {
36
- console.log('bpit error: need options');
37
- return;
38
- }
39
-
40
- if (!options.group) {
41
- console.log('bpit error: need options.group');
42
- return;
43
- }
44
-
45
- if (!options.project) {
46
- console.log('bpit error: need options.project');
47
- return;
48
- }
49
-
50
- if (!options.hasOwnProperty('env')) {
51
- console.log('bpit error: need options.env');
52
- return;
53
- }
54
-
55
- if (!options.hasOwnProperty('version')) {
56
- console.log('bpit error: need options.version');
57
- return;
58
- } // upload data
59
-
60
-
61
- var uploadData = ['https://es.zhiyinlou.com/log.js?'];
62
- uploadData.push('group=' + options.group);
63
- uploadData.push('&project=' + options.project);
64
- uploadData.push('&env=' + options.env);
65
- uploadData.push('&version=' + options.version);
66
- uploadData.push('&method=' + options.method);
67
- if (options.yachid) uploadData.push('&yachid=' + options.yachid);
68
- if (options.workcode) uploadData.push('&workcode=' + options.workcode);
69
- if (options.timestamp) uploadData.push('&timestamp=' + options.timestamp);
70
- if (options.errorcode) uploadData.push('&errorcode=' + options.errorcode);
71
- if (options.message) uploadData.push('&message=' + options.message); // api load time
72
-
73
- if (options.api && options.time) {
74
- uploadData.push('&api=' + options.api);
75
- uploadData.push('&load_time=' + options.time);
76
- }
77
-
78
- var uploadDataUrl = uploadData.join('');
79
- loadScript(uploadDataUrl);
80
- if (options.env != 'online') console.log(uploadDataUrl);
81
- }
@@ -1,58 +0,0 @@
1
- /**
2
- * Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.
3
- * This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`.
4
- * @param v1 - First version to compare
5
- * @param v2 - Second version to compare
6
- * @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters).
7
- */
8
- export declare const compareVersions: (v1: string, v2: string) => 0 | 1 | -1;
9
- /**
10
- * Validate [semver](https://semver.org/) version strings.
11
- *
12
- * @param version Version number to validate
13
- * @returns `true` if the version number is a valid semver version number, `false` otherwise.
14
- *
15
- * @example
16
- * ```
17
- * validate('1.0.0-rc.1'); // return true
18
- * validate('1.0-rc.1'); // return false
19
- * validate('foo'); // return false
20
- * ```
21
- */
22
- export declare const validate: (version: string) => boolean;
23
- /**
24
- * Allowed arithmetic operators
25
- */
26
- export declare type CompareOperator = '>' | '>=' | '=' | '<' | '<=';
27
- /**
28
- * Compare [semver](https://semver.org/) version strings using the specified operator.
29
- *
30
- * @param v1 First version to compare
31
- * @param v2 Second version to compare
32
- * @param operator Allowed arithmetic operator to use
33
- * @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise.
34
- *
35
- * @example
36
- * ```
37
- * compare('10.1.8', '10.0.4', '>'); // return true
38
- * compare('10.0.1', '10.0.1', '='); // return true
39
- * compare('10.1.1', '10.2.2', '<'); // return true
40
- * compare('10.1.1', '10.2.2', '<='); // return true
41
- * compare('10.1.1', '10.2.2', '>='); // return false
42
- * ```
43
- */
44
- export declare const compare: (v1: string, v2: string, operator: CompareOperator) => boolean;
45
- /**
46
- * Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.
47
- *
48
- * @param version Version number to match
49
- * @param range Range pattern for version
50
- * @returns `true` if the version number is within the range, `false` otherwise.
51
- *
52
- * @example
53
- * ```
54
- * satisfies('1.1.0', '^1.0.0'); // return true
55
- * satisfies('1.1.0', '~1.0.0'); // return false
56
- * ```
57
- */
58
- export declare const satisfies: (version: string, range: string) => boolean;
@@ -1,218 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
-
5
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
-
7
- _Object$defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
-
11
- exports.satisfies = exports.compare = exports.validate = exports.compareVersions = void 0;
12
-
13
- var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/index-of"));
14
-
15
- var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/keys"));
16
-
17
- var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
18
-
19
- var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/parse-int"));
20
-
21
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
22
-
23
- var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/includes"));
24
-
25
- /**
26
- * Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.
27
- * This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`.
28
- * @param v1 - First version to compare
29
- * @param v2 - Second version to compare
30
- * @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters).
31
- */
32
- var compareVersions = function compareVersions(v1, v2) {
33
- // validate input and split into segments
34
- var n1 = validateAndParse(v1);
35
- var n2 = validateAndParse(v2); // pop off the patch
36
-
37
- var p1 = n1.pop();
38
- var p2 = n2.pop(); // validate numbers
39
-
40
- var r = compareSegments(n1, n2);
41
- if (r !== 0) return r; // validate pre-release
42
-
43
- if (p1 && p2) {
44
- return compareSegments(p1.split('.'), p2.split('.'));
45
- } else if (p1 || p2) {
46
- return p1 ? -1 : 1;
47
- }
48
-
49
- return 0;
50
- };
51
- /**
52
- * Validate [semver](https://semver.org/) version strings.
53
- *
54
- * @param version Version number to validate
55
- * @returns `true` if the version number is a valid semver version number, `false` otherwise.
56
- *
57
- * @example
58
- * ```
59
- * validate('1.0.0-rc.1'); // return true
60
- * validate('1.0-rc.1'); // return false
61
- * validate('foo'); // return false
62
- * ```
63
- */
64
-
65
-
66
- exports.compareVersions = compareVersions;
67
-
68
- var validate = function validate(version) {
69
- return typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version);
70
- };
71
- /**
72
- * Compare [semver](https://semver.org/) version strings using the specified operator.
73
- *
74
- * @param v1 First version to compare
75
- * @param v2 Second version to compare
76
- * @param operator Allowed arithmetic operator to use
77
- * @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise.
78
- *
79
- * @example
80
- * ```
81
- * compare('10.1.8', '10.0.4', '>'); // return true
82
- * compare('10.0.1', '10.0.1', '='); // return true
83
- * compare('10.1.1', '10.2.2', '<'); // return true
84
- * compare('10.1.1', '10.2.2', '<='); // return true
85
- * compare('10.1.1', '10.2.2', '>='); // return false
86
- * ```
87
- */
88
-
89
-
90
- exports.validate = validate;
91
-
92
- var compare = function compare(v1, v2, operator) {
93
- var _context;
94
-
95
- // validate input operator
96
- assertValidOperator(operator); // since result of compareVersions can only be -1 or 0 or 1
97
- // a simple map can be used to replace switch
98
-
99
- var res = compareVersions(v1, v2);
100
- return (0, _includes["default"])(_context = operatorResMap[operator]).call(_context, res);
101
- };
102
- /**
103
- * Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.
104
- *
105
- * @param version Version number to match
106
- * @param range Range pattern for version
107
- * @returns `true` if the version number is within the range, `false` otherwise.
108
- *
109
- * @example
110
- * ```
111
- * satisfies('1.1.0', '^1.0.0'); // return true
112
- * satisfies('1.1.0', '~1.0.0'); // return false
113
- * ```
114
- */
115
-
116
-
117
- exports.compare = compare;
118
-
119
- var satisfies = function satisfies(version, range) {
120
- // if no range operator then "="
121
- var m = range.match(/^([<>=~^]+)/);
122
- var op = m ? m[1] : '='; // if gt/lt/eq then operator compare
123
-
124
- if (op !== '^' && op !== '~') return compare(version, range, op); // else range of either "~" or "^" is assumed
125
-
126
- var _validateAndParse = validateAndParse(version),
127
- _validateAndParse2 = (0, _slicedToArray2["default"])(_validateAndParse, 3),
128
- v1 = _validateAndParse2[0],
129
- v2 = _validateAndParse2[1],
130
- v3 = _validateAndParse2[2];
131
-
132
- var _validateAndParse3 = validateAndParse(range),
133
- _validateAndParse4 = (0, _slicedToArray2["default"])(_validateAndParse3, 3),
134
- r1 = _validateAndParse4[0],
135
- r2 = _validateAndParse4[1],
136
- r3 = _validateAndParse4[2];
137
-
138
- if (compareStrings(v1, r1) !== 0) return false;
139
-
140
- if (op === '^') {
141
- return compareSegments([v2, v3], [r2, r3]) >= 0;
142
- }
143
-
144
- if (compareStrings(v2, r2) !== 0) return false;
145
- return compareStrings(v3, r3) >= 0;
146
- };
147
-
148
- exports.satisfies = satisfies;
149
- var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
150
-
151
- var validateAndParse = function validateAndParse(version) {
152
- if (typeof version !== 'string') {
153
- throw new TypeError('Invalid argument expected string');
154
- }
155
-
156
- var match = version.match(semver);
157
-
158
- if (!match) {
159
- throw new Error("Invalid argument not valid semver ('".concat(version, "' received)"));
160
- }
161
-
162
- match.shift();
163
- return match;
164
- };
165
-
166
- var isWildcard = function isWildcard(s) {
167
- return s === '*' || s === 'x' || s === 'X';
168
- };
169
-
170
- var tryParse = function tryParse(v) {
171
- var n = (0, _parseInt2["default"])(v, 10);
172
- return isNaN(n) ? v : n;
173
- };
174
-
175
- var forceType = function forceType(a, b) {
176
- return (0, _typeof2["default"])(a) !== (0, _typeof2["default"])(b) ? [String(a), String(b)] : [a, b];
177
- };
178
-
179
- var compareStrings = function compareStrings(a, b) {
180
- if (isWildcard(a) || isWildcard(b)) return 0;
181
-
182
- var _forceType = forceType(tryParse(a), tryParse(b)),
183
- _forceType2 = (0, _slicedToArray2["default"])(_forceType, 2),
184
- ap = _forceType2[0],
185
- bp = _forceType2[1];
186
-
187
- if (ap > bp) return 1;
188
- if (ap < bp) return -1;
189
- return 0;
190
- };
191
-
192
- var compareSegments = function compareSegments(a, b) {
193
- for (var i = 0; i < Math.max(a.length, b.length); i++) {
194
- var r = compareStrings(a[i] || '0', b[i] || '0');
195
- if (r !== 0) return r;
196
- }
197
-
198
- return 0;
199
- };
200
-
201
- var operatorResMap = {
202
- '>': [1],
203
- '>=': [0, 1],
204
- '=': [0],
205
- '<=': [-1, 0],
206
- '<': [-1]
207
- };
208
- var allowedOperators = (0, _keys["default"])(operatorResMap);
209
-
210
- var assertValidOperator = function assertValidOperator(op) {
211
- if (typeof op !== 'string') {
212
- throw new TypeError("Invalid operator type, expected string but got ".concat((0, _typeof2["default"])(op)));
213
- }
214
-
215
- if ((0, _indexOf["default"])(allowedOperators).call(allowedOperators, op) === -1) {
216
- throw new Error("Invalid operator, expected one of ".concat(allowedOperators.join('|')));
217
- }
218
- };
@@ -1,4 +0,0 @@
1
- declare function log(...args: any): any;
2
- declare function error(...args: any): any;
3
- declare function warn(...args: any): any;
4
- export { log, error, warn };
@@ -1,69 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
-
5
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
-
7
- _Object$defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
-
11
- exports.log = log;
12
- exports.error = error;
13
- exports.warn = warn;
14
-
15
- var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/instance/bind"));
16
-
17
- var _context, _context2, _context3;
18
-
19
- // 防止被应用复写console
20
- var myconsole = {
21
- log: function log() {},
22
- warn: function warn() {},
23
- error: function error() {}
24
- };
25
-
26
- if (typeof window !== 'undefined' && window.console) {
27
- myconsole = window.console;
28
- }
29
-
30
- if (typeof document !== 'undefined' && document.body) {
31
- var iframe = document.createElement('iframe');
32
-
33
- if (iframe && iframe.contentWindow && iframe.contentWindow.console) {
34
- iframe.style.display = 'none';
35
- document.body.appendChild(iframe);
36
- myconsole = iframe.contentWindow.console;
37
- }
38
- }
39
-
40
- var myLog = (0, _bind["default"])(_context = myconsole.log).call(_context, myconsole);
41
- var myWarn = (0, _bind["default"])(_context2 = myconsole.warn).call(_context2, myconsole);
42
- var myError = (0, _bind["default"])(_context3 = myconsole.error).call(_context3, myconsole);
43
- var style = 'color:#fff;font-weight:bold;border-radius:5px;background:#67c23a;';
44
- var styleError = "".concat(style, "background-color:red;");
45
- var styleWarn = "".concat(style, "background-color:orange;");
46
-
47
- function log() {
48
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
49
- args[_key] = arguments[_key];
50
- }
51
-
52
- return myLog("%c Yach-jssdk log: ", style, args);
53
- }
54
-
55
- function error() {
56
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
57
- args[_key2] = arguments[_key2];
58
- }
59
-
60
- return myWarn("%c Yach-jssdk log: ", styleError, args);
61
- }
62
-
63
- function warn() {
64
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
65
- args[_key3] = arguments[_key3];
66
- }
67
-
68
- return myError("%c Yach-jssdk log: ", styleWarn, args);
69
- }
@@ -1,3 +0,0 @@
1
- import { IENV } from '../lib/sdk/sdk.typings';
2
- declare function getENV(): IENV;
3
- export { getENV };
package/libs/utils/env.js DELETED
@@ -1,60 +0,0 @@
1
- "use strict";
2
-
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
-
5
- _Object$defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
-
9
- exports.getENV = getENV;
10
-
11
- var _sdk = require("../lib/sdk/sdk.typings");
12
-
13
- function getUA() {
14
- return typeof navigator !== 'undefined' ? navigator.userAgent : '';
15
- }
16
-
17
- function getENV() {
18
- var ua = getUA(),
19
- inYach = /Yach/i.test(ua),
20
- inIOS = /iPhone|iPad|iPod|iOS/i.test(ua) && inYach,
21
- inAndroid = /Android/i.test(ua) && inYach,
22
- inPC = /YachPc/i.test(ua),
23
- inIpad = /iPad/i.test(ua) && inYach,
24
- inIPhone = /iPhone/i.test(ua) && inYach,
25
- isTest = /Yachtest/.test(ua) && inYach; // platform
26
-
27
- var platform = _sdk.ENV_ENUM.notInYach;
28
-
29
- if (inIOS) {
30
- platform = _sdk.ENV_ENUM.ios;
31
- }
32
-
33
- if (inAndroid) {
34
- platform = _sdk.ENV_ENUM.android;
35
- }
36
-
37
- if (inPC) {
38
- platform = _sdk.ENV_ENUM.pc;
39
- } // version
40
-
41
-
42
- var versionArr = ua.match(/Yach\/[a-zA-Z0-9.-]+/) || [];
43
- var version = (versionArr[0] || '').split('/')[1] || ''; // language
44
-
45
- var language = typeof navigator !== 'undefined' ? navigator.language : '*';
46
- return {
47
- platform: platform,
48
- platformV2: {
49
- inYach: inYach,
50
- inIOS: inIOS,
51
- inAndroid: inAndroid,
52
- inPC: inPC,
53
- inIpad: inIpad,
54
- inIPhone: inIPhone
55
- },
56
- version: version,
57
- language: language,
58
- env: isTest ? 'test' : 'online'
59
- };
60
- }
@@ -1,4 +0,0 @@
1
- import { getENV } from './env';
2
- import { log, error, warn } from './console';
3
- declare function staticsLog(config: object): void;
4
- export { log, error, warn, staticsLog as bpitLog, getENV, };
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
-
5
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
-
7
- _Object$defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
-
11
- exports.bpitLog = staticsLog;
12
-
13
- _Object$defineProperty(exports, "getENV", {
14
- enumerable: true,
15
- get: function get() {
16
- return _env.getENV;
17
- }
18
- });
19
-
20
- _Object$defineProperty(exports, "log", {
21
- enumerable: true,
22
- get: function get() {
23
- return _console.log;
24
- }
25
- });
26
-
27
- _Object$defineProperty(exports, "error", {
28
- enumerable: true,
29
- get: function get() {
30
- return _console.error;
31
- }
32
- });
33
-
34
- _Object$defineProperty(exports, "warn", {
35
- enumerable: true,
36
- get: function get() {
37
- return _console.warn;
38
- }
39
- });
40
-
41
- var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/object/assign"));
42
-
43
- var _now = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/date/now"));
44
-
45
- var _env = require("./env");
46
-
47
- var _bpitLog = _interopRequireDefault(require("./bpitLog"));
48
-
49
- var _console = require("./console");
50
-
51
- function staticsLog(config) {
52
- var env = (0, _env.getENV)().env;
53
- var version = (0, _env.getENV)().version;
54
- var timestamp = (0, _now["default"])();
55
- var params = (0, _assign["default"])({
56
- group: 'yach',
57
- project: 'yach_31_jssdk',
58
- env: env,
59
- version: version,
60
- timestamp: timestamp
61
- }, config);
62
- console.log('jssdk 项目 bpit 上报数据:', params);
63
- (0, _bpitLog["default"])(params);
64
- }