yach.open.jssdk 4.4.1-beta11 → 4.4.1-beta13

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 (293) hide show
  1. package/dist/yach_jssdk_4.4.1-beta13.js +1 -0
  2. package/es/api/app/custom/talYoungFilesUpload.js +2 -0
  3. package/es/api/biz/chat/chooseConversationByCorpId.js +2 -0
  4. package/es/api/biz/chat/openSingleChat.js +2 -0
  5. package/es/api/biz/chat/openSquad.js +2 -0
  6. package/es/api/biz/chat/openTeamChat.js +2 -0
  7. package/es/api/biz/chat/pickConversation.js +2 -0
  8. package/es/api/biz/chat/sendP2PMsg.js +2 -0
  9. package/es/api/biz/contact/complexPicker.js +2 -0
  10. package/es/api/biz/contact/departmentsPicker.js +2 -0
  11. package/es/api/biz/group/groupComplexPicker.js +2 -0
  12. package/es/api/biz/map/multipointView.js +2 -0
  13. package/es/api/biz/map/view.js +2 -0
  14. package/es/api/biz/navigation/close.js +2 -0
  15. package/es/api/biz/navigation/goBack.js +2 -0
  16. package/es/api/biz/navigation/quit.js +2 -0
  17. package/es/api/biz/navigation/replace.js +2 -0
  18. package/es/api/biz/navigation/setIcon.js +2 -0
  19. package/es/api/biz/navigation/setLeft.js +2 -0
  20. package/es/api/biz/navigation/setMenu.js +2 -0
  21. package/es/api/biz/navigation/setPanGestureEnable.js +2 -0
  22. package/es/api/biz/navigation/setRight.js +2 -0
  23. package/es/api/biz/navigation/setTitle.js +2 -0
  24. package/es/api/biz/navigation/setTitleExpandIcon.js +2 -0
  25. package/es/api/biz/navigation/setWindowBig.js +2 -0
  26. package/es/api/biz/navigation/tencentMeeting.js +2 -0
  27. package/es/api/biz/navigation/tencentMeetingBegin.js +2 -0
  28. package/es/api/biz/navigation/updateExpandTitle.js +2 -0
  29. package/es/api/biz/telephone/call.js +2 -0
  30. package/es/api/biz/telephone/showCallMenu.js +2 -0
  31. package/es/api/biz/util/addAppToNav.js +2 -0
  32. package/es/api/biz/util/assistantCreate.js +2 -0
  33. package/es/api/biz/util/authFinish.js +2 -0
  34. package/es/api/biz/util/authStart.js +2 -0
  35. package/es/api/biz/util/chosen.js +2 -0
  36. package/es/api/biz/util/clipboardFileUpload.js +2 -0
  37. package/es/api/biz/util/closeWindow.js +2 -0
  38. package/es/api/biz/util/complain.js +2 -0
  39. package/es/api/biz/util/createModifySchedule.js +2 -0
  40. package/es/api/biz/util/datepicker.js +2 -0
  41. package/es/api/biz/util/datetimepicker.js +2 -0
  42. package/es/api/biz/util/disableScreenCapture.js +2 -0
  43. package/es/api/biz/util/downloadFile.js +2 -0
  44. package/es/api/biz/util/entergroupCheck.js +2 -0
  45. package/es/api/biz/util/externalLinkPreviewFile.js +2 -0
  46. package/es/api/biz/util/feedback.js +2 -0
  47. package/es/api/biz/util/getSingleWebviewData.js +2 -0
  48. package/es/api/biz/util/getTogetherConfig.js +2 -0
  49. package/es/api/biz/util/getToken.js +2 -0
  50. package/es/api/biz/util/injectScript.js +2 -0
  51. package/es/api/biz/util/invoice.js +2 -0
  52. package/es/api/biz/util/knowledgeBaseSelect.js +2 -0
  53. package/es/api/biz/util/mediaFileUpload.js +2 -0
  54. package/es/api/biz/util/onlineDocmentOpenTeamChat.js +2 -0
  55. package/es/api/biz/util/open.js +2 -0
  56. package/es/api/biz/util/openFutureGroup.js +2 -0
  57. package/es/api/biz/util/openLink.js +2 -0
  58. package/es/api/biz/util/openMediaFileDialog.js +2 -0
  59. package/es/api/biz/util/openSingleWebview.js +2 -0
  60. package/es/api/biz/util/openSlidePanel.js +2 -0
  61. package/es/api/biz/util/openTalYoungToTopic.js +2 -0
  62. package/es/api/biz/util/openTogetherEyeWebview.js +2 -0
  63. package/es/api/biz/util/openUserSchedule.js +2 -0
  64. package/es/api/biz/util/openVideoPlayer.js +2 -0
  65. package/es/api/biz/util/previewFile.js +2 -0
  66. package/es/api/biz/util/previewImage.js +2 -0
  67. package/es/api/biz/util/proxy.js +2 -0
  68. package/es/api/biz/util/pushWorkMsg.js +2 -0
  69. package/es/api/biz/util/remind.js +2 -0
  70. package/es/api/biz/util/resetSessionUnread.js +2 -0
  71. package/es/api/biz/util/rouseApp.js +2 -0
  72. package/es/api/biz/util/savePic.js +2 -0
  73. package/es/api/biz/util/scan.js +2 -0
  74. package/es/api/biz/util/screen.d.ts +15 -0
  75. package/es/api/biz/util/screen.js +17 -0
  76. package/es/api/biz/util/selectDepartment.js +2 -0
  77. package/es/api/biz/util/share.js +2 -0
  78. package/es/api/biz/util/takePicture.js +2 -0
  79. package/es/api/biz/util/uploadAttachment.js +2 -0
  80. package/es/api/biz/util/weeklyRead.js +2 -0
  81. package/es/api/biz/util/yachEvent.js +2 -0
  82. package/es/api/biz/util/zfbAuth.js +2 -0
  83. package/es/api/biz/webViewMessage/send.js +2 -0
  84. package/es/api/device/audio/download.js +2 -0
  85. package/es/api/device/audio/onPlayEnd.js +2 -0
  86. package/es/api/device/audio/onRecordEnd.js +2 -0
  87. package/es/api/device/audio/onRecordEnd_v2.js +2 -0
  88. package/es/api/device/audio/pause.js +2 -0
  89. package/es/api/device/audio/play.js +2 -0
  90. package/es/api/device/audio/resume.js +2 -0
  91. package/es/api/device/audio/startRecord.js +2 -0
  92. package/es/api/device/audio/startRecord_v2.js +2 -0
  93. package/es/api/device/audio/stop.js +2 -0
  94. package/es/api/device/audio/stopRecord.js +2 -0
  95. package/es/api/device/audio/stopRecord_v2.js +2 -0
  96. package/es/api/device/base/checkStepPermission.js +2 -0
  97. package/es/api/device/base/getPhoneInfo.js +2 -0
  98. package/es/api/device/base/getUUID.js +2 -0
  99. package/es/api/device/connection/getNetworkType.js +2 -0
  100. package/es/api/device/connection/isAtTal.js +4 -2
  101. package/es/api/device/geolocation/get.js +2 -0
  102. package/es/api/device/geolocation/getSwitch.js +2 -0
  103. package/es/api/device/notification/actionSheet.js +2 -0
  104. package/es/api/device/notification/alert.js +2 -0
  105. package/es/api/device/notification/confirm.js +2 -0
  106. package/es/api/device/notification/hidePreloader.d.ts +6 -1
  107. package/es/api/device/notification/hidePreloader.js +19 -2
  108. package/es/api/device/notification/showPreloader.d.ts +10 -1
  109. package/es/api/device/notification/showPreloader.js +19 -2
  110. package/es/api/device/notification/toast.js +2 -0
  111. package/es/api/device/notification/vibrate.js +2 -0
  112. package/es/api/device/system/getLang.js +2 -0
  113. package/es/api/device/system/setLight.js +2 -0
  114. package/es/api/initAPI.js +5 -3
  115. package/es/api/primary/createTab.js +2 -0
  116. package/es/api/primary/exitFullScreen.js +2 -0
  117. package/es/api/primary/fullScreen.js +2 -0
  118. package/es/api/primary/weeklyShare.js +2 -0
  119. package/es/api/runtime/permission/requestAuthCode.js +2 -0
  120. package/es/api/ui/pullToRefresh/disable.js +2 -0
  121. package/es/api/ui/pullToRefresh/enable.js +2 -0
  122. package/es/api/ui/pullToRefresh/stop.js +2 -0
  123. package/es/api/ui/webViewBounce/disable.js +2 -0
  124. package/es/api/util/domainStorage/getItem.js +2 -0
  125. package/es/api/util/domainStorage/removeItem.js +2 -0
  126. package/es/api/util/domainStorage/setItem.js +2 -0
  127. package/es/api/util/tool/flushLog.js +2 -0
  128. package/es/api/util/tool/log.js +2 -0
  129. package/es/index.d.ts +7 -5
  130. package/es/index.js +35 -21
  131. package/es/lib/bridge/mobile.js +28 -12
  132. package/es/lib/bridge/pc.js +19 -11
  133. package/es/lib/helper/apiHelper.js +2 -0
  134. package/es/lib/helper/codeMap.js +2 -0
  135. package/es/lib/helper/event.js +19 -7
  136. package/es/lib/helper/pcIframe.js +51 -21
  137. package/es/lib/index.js +21 -7
  138. package/es/lib/sdk/index.js +39 -17
  139. package/es/lib/sdk/sdk.typings.js +1 -0
  140. package/es/utils/bpitLog.js +13 -4
  141. package/es/utils/compareVersions.js +53 -26
  142. package/es/utils/console.js +17 -1
  143. package/es/utils/env.js +19 -12
  144. package/es/utils/index.js +6 -1
  145. package/libs/api/app/custom/talYoungFilesUpload.js +7 -2
  146. package/libs/api/biz/chat/chooseConversationByCorpId.js +7 -1
  147. package/libs/api/biz/chat/openSingleChat.js +7 -1
  148. package/libs/api/biz/chat/openSquad.js +7 -1
  149. package/libs/api/biz/chat/openTeamChat.js +7 -1
  150. package/libs/api/biz/chat/pickConversation.js +7 -1
  151. package/libs/api/biz/chat/sendP2PMsg.js +7 -1
  152. package/libs/api/biz/contact/complexPicker.js +7 -1
  153. package/libs/api/biz/contact/departmentsPicker.js +7 -1
  154. package/libs/api/biz/group/groupComplexPicker.js +7 -1
  155. package/libs/api/biz/map/multipointView.js +7 -1
  156. package/libs/api/biz/map/view.js +7 -1
  157. package/libs/api/biz/navigation/close.js +7 -1
  158. package/libs/api/biz/navigation/goBack.js +7 -1
  159. package/libs/api/biz/navigation/quit.js +7 -1
  160. package/libs/api/biz/navigation/replace.js +7 -1
  161. package/libs/api/biz/navigation/setIcon.js +8 -1
  162. package/libs/api/biz/navigation/setLeft.js +8 -1
  163. package/libs/api/biz/navigation/setMenu.js +8 -1
  164. package/libs/api/biz/navigation/setPanGestureEnable.js +8 -1
  165. package/libs/api/biz/navigation/setRight.js +8 -1
  166. package/libs/api/biz/navigation/setTitle.js +7 -1
  167. package/libs/api/biz/navigation/setTitleExpandIcon.js +8 -1
  168. package/libs/api/biz/navigation/setWindowBig.js +7 -2
  169. package/libs/api/biz/navigation/tencentMeeting.js +7 -1
  170. package/libs/api/biz/navigation/tencentMeetingBegin.js +7 -1
  171. package/libs/api/biz/navigation/updateExpandTitle.js +7 -1
  172. package/libs/api/biz/telephone/call.js +7 -1
  173. package/libs/api/biz/telephone/showCallMenu.js +7 -1
  174. package/libs/api/biz/util/addAppToNav.js +7 -1
  175. package/libs/api/biz/util/assistantCreate.js +7 -1
  176. package/libs/api/biz/util/authFinish.js +7 -1
  177. package/libs/api/biz/util/authStart.js +7 -1
  178. package/libs/api/biz/util/chosen.js +7 -1
  179. package/libs/api/biz/util/clipboardFileUpload.js +7 -1
  180. package/libs/api/biz/util/closeWindow.js +7 -1
  181. package/libs/api/biz/util/complain.js +7 -1
  182. package/libs/api/biz/util/createModifySchedule.js +7 -1
  183. package/libs/api/biz/util/datepicker.js +7 -1
  184. package/libs/api/biz/util/datetimepicker.js +7 -1
  185. package/libs/api/biz/util/disableScreenCapture.js +7 -1
  186. package/libs/api/biz/util/downloadFile.js +7 -1
  187. package/libs/api/biz/util/entergroupCheck.js +7 -1
  188. package/libs/api/biz/util/externalLinkPreviewFile.js +7 -1
  189. package/libs/api/biz/util/feedback.js +7 -1
  190. package/libs/api/biz/util/getSingleWebviewData.js +7 -1
  191. package/libs/api/biz/util/getTogetherConfig.js +7 -1
  192. package/libs/api/biz/util/getToken.js +7 -1
  193. package/libs/api/biz/util/injectScript.js +7 -1
  194. package/libs/api/biz/util/invoice.js +7 -2
  195. package/libs/api/biz/util/knowledgeBaseSelect.js +7 -1
  196. package/libs/api/biz/util/mediaFileUpload.js +7 -2
  197. package/libs/api/biz/util/onlineDocmentOpenTeamChat.js +7 -1
  198. package/libs/api/biz/util/open.js +7 -1
  199. package/libs/api/biz/util/openFutureGroup.js +7 -1
  200. package/libs/api/biz/util/openLink.js +7 -1
  201. package/libs/api/biz/util/openMediaFileDialog.js +7 -2
  202. package/libs/api/biz/util/openSingleWebview.js +7 -1
  203. package/libs/api/biz/util/openSlidePanel.js +7 -1
  204. package/libs/api/biz/util/openTalYoungToTopic.js +7 -2
  205. package/libs/api/biz/util/openTogetherEyeWebview.js +7 -1
  206. package/libs/api/biz/util/openUserSchedule.js +7 -1
  207. package/libs/api/biz/util/openVideoPlayer.js +7 -1
  208. package/libs/api/biz/util/previewFile.js +7 -1
  209. package/libs/api/biz/util/previewImage.js +7 -1
  210. package/libs/api/biz/util/proxy.js +7 -1
  211. package/libs/api/biz/util/pushWorkMsg.js +7 -2
  212. package/libs/api/biz/util/remind.js +7 -1
  213. package/libs/api/biz/util/resetSessionUnread.js +7 -1
  214. package/libs/api/biz/util/rouseApp.js +7 -2
  215. package/libs/api/biz/util/savePic.js +7 -1
  216. package/libs/api/biz/util/scan.js +7 -1
  217. package/libs/api/biz/util/screen.d.ts +15 -0
  218. package/libs/api/biz/util/{topicEvent.js → screen.js} +11 -17
  219. package/libs/api/biz/util/selectDepartment.js +7 -1
  220. package/libs/api/biz/util/share.js +7 -1
  221. package/libs/api/biz/util/takePicture.js +7 -1
  222. package/libs/api/biz/util/uploadAttachment.js +7 -1
  223. package/libs/api/biz/util/weeklyRead.js +7 -1
  224. package/libs/api/biz/util/yachEvent.js +7 -1
  225. package/libs/api/biz/util/zfbAuth.js +7 -1
  226. package/libs/api/biz/webViewMessage/send.js +7 -1
  227. package/libs/api/device/audio/download.js +7 -1
  228. package/libs/api/device/audio/onPlayEnd.js +7 -1
  229. package/libs/api/device/audio/onRecordEnd.js +7 -1
  230. package/libs/api/device/audio/onRecordEnd_v2.js +7 -1
  231. package/libs/api/device/audio/pause.js +7 -1
  232. package/libs/api/device/audio/play.js +7 -1
  233. package/libs/api/device/audio/resume.js +7 -1
  234. package/libs/api/device/audio/startRecord.js +7 -1
  235. package/libs/api/device/audio/startRecord_v2.js +7 -1
  236. package/libs/api/device/audio/stop.js +7 -1
  237. package/libs/api/device/audio/stopRecord.js +7 -1
  238. package/libs/api/device/audio/stopRecord_v2.js +7 -1
  239. package/libs/api/device/base/checkStepPermission.js +7 -1
  240. package/libs/api/device/base/getPhoneInfo.js +7 -1
  241. package/libs/api/device/base/getUUID.js +7 -1
  242. package/libs/api/device/connection/getNetworkType.js +7 -1
  243. package/libs/api/device/connection/isAtTal.js +9 -3
  244. package/libs/api/device/geolocation/get.js +7 -1
  245. package/libs/api/device/geolocation/getSwitch.js +7 -1
  246. package/libs/api/device/notification/actionSheet.js +7 -1
  247. package/libs/api/device/notification/alert.js +7 -1
  248. package/libs/api/device/notification/confirm.js +7 -1
  249. package/libs/api/device/notification/hidePreloader.d.ts +6 -1
  250. package/libs/api/device/notification/hidePreloader.js +24 -2
  251. package/libs/api/device/notification/showPreloader.d.ts +10 -1
  252. package/libs/api/device/notification/showPreloader.js +24 -2
  253. package/libs/api/device/notification/toast.js +7 -1
  254. package/libs/api/device/notification/vibrate.js +7 -1
  255. package/libs/api/device/system/getLang.js +7 -1
  256. package/libs/api/device/system/setLight.js +7 -1
  257. package/libs/api/initAPI.js +13 -4
  258. package/libs/api/primary/createTab.js +7 -1
  259. package/libs/api/primary/exitFullScreen.js +7 -1
  260. package/libs/api/primary/fullScreen.js +7 -1
  261. package/libs/api/primary/weeklyShare.js +7 -1
  262. package/libs/api/runtime/permission/requestAuthCode.js +7 -1
  263. package/libs/api/ui/pullToRefresh/disable.js +7 -1
  264. package/libs/api/ui/pullToRefresh/enable.js +7 -1
  265. package/libs/api/ui/pullToRefresh/stop.js +7 -1
  266. package/libs/api/ui/webViewBounce/disable.js +7 -1
  267. package/libs/api/util/domainStorage/getItem.js +7 -1
  268. package/libs/api/util/domainStorage/removeItem.js +7 -1
  269. package/libs/api/util/domainStorage/setItem.js +7 -1
  270. package/libs/api/util/tool/flushLog.js +7 -1
  271. package/libs/api/util/tool/log.js +7 -1
  272. package/libs/index.d.ts +7 -5
  273. package/libs/index.js +537 -268
  274. package/libs/lib/bridge/index.js +13 -6
  275. package/libs/lib/bridge/mobile.js +50 -16
  276. package/libs/lib/bridge/pc.js +37 -16
  277. package/libs/lib/helper/apiHelper.js +7 -1
  278. package/libs/lib/helper/codeMap.js +7 -1
  279. package/libs/lib/helper/event.js +28 -8
  280. package/libs/lib/helper/pcIframe.js +58 -20
  281. package/libs/lib/index.js +33 -9
  282. package/libs/lib/sdk/index.js +49 -18
  283. package/libs/lib/sdk/sdk.typings.js +4 -0
  284. package/libs/utils/bpitLog.js +16 -4
  285. package/libs/utils/compareVersions.js +77 -32
  286. package/libs/utils/console.js +18 -2
  287. package/libs/utils/env.js +21 -12
  288. package/libs/utils/index.js +21 -8
  289. package/package.json +1 -1
  290. package/dist/yach_jssdk_4.4.1-beta11.js +0 -1
  291. package/es/api/biz/util/topicEvent.d.ts +0 -13
  292. package/es/api/biz/util/topicEvent.js +0 -27
  293. package/libs/api/biz/util/topicEvent.d.ts +0 -13
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.confirm = confirm;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'device.notification.confirm';
11
16
  var ios = {
12
17
  vs: '0.0.0'
@@ -22,6 +27,7 @@ var platform = {
22
27
  android: android,
23
28
  pc: pc
24
29
  };
30
+
25
31
  function confirm(params) {
26
32
  (0, _initAPI["default"])(apiName, {
27
33
  params: params,
@@ -4,4 +4,9 @@ export interface IDeviceNotificationHidePreloaderParams {
4
4
  onFail?: (err: IError) => void;
5
5
  }
6
6
  declare function hidePreloader(params?: IDeviceNotificationHidePreloaderParams): void;
7
- export { hidePreloader };
7
+ interface IDeviceNotificationHideCustomPreloaderParams {
8
+ onSuccess?: () => void;
9
+ onFail?: (err: IError) => void;
10
+ }
11
+ declare function hideCustomOverlayContent(params?: IDeviceNotificationHideCustomPreloaderParams): void;
12
+ export { hidePreloader, hideCustomOverlayContent };
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.hidePreloader = hidePreloader;
12
+ exports.hideCustomOverlayContent = hideCustomOverlayContent;
13
+
9
14
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
15
+
10
16
  var apiName = 'device.notification.hidePreloader';
11
17
  var ios = {
12
18
  vs: '0.0.0'
@@ -14,13 +20,29 @@ var ios = {
14
20
  var android = {
15
21
  vs: '0.0.0'
16
22
  };
23
+ var pc = {
24
+ vs: '1.9.9'
25
+ };
17
26
  var platform = {
18
27
  ios: ios,
19
- android: android
28
+ android: android,
29
+ pc: pc
20
30
  };
31
+
21
32
  function hidePreloader(params) {
22
33
  (0, _initAPI["default"])(apiName, {
23
34
  params: params,
24
35
  platform: platform
25
36
  });
37
+ }
38
+
39
+ var apiNameCustom = 'device.notification.hideCustomOverlayContent';
40
+
41
+ function hideCustomOverlayContent(params) {
42
+ (0, _initAPI["default"])(apiNameCustom, {
43
+ params: params,
44
+ platform: {
45
+ pc: pc
46
+ }
47
+ });
26
48
  }
@@ -2,8 +2,17 @@ import { IError } from '../../common.typings';
2
2
  export interface IDeviceNotificationShowPreloaderParams {
3
3
  text?: string;
4
4
  showIcon?: boolean;
5
+ showCancel?: boolean;
5
6
  onSuccess?: () => void;
6
7
  onFail?: (err: IError) => void;
7
8
  }
8
9
  declare function showPreloader(params?: IDeviceNotificationShowPreloaderParams): void;
9
- export { showPreloader };
10
+ interface IDeviceNotificationShowCustomPreloaderParams {
11
+ html: string;
12
+ styles?: string;
13
+ containerClassName?: string;
14
+ onSuccess?: () => void;
15
+ onFail?: (err: IError) => void;
16
+ }
17
+ declare function showCustomOverlayContent(params?: IDeviceNotificationShowCustomPreloaderParams): void;
18
+ export { showPreloader, showCustomOverlayContent };
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.showPreloader = showPreloader;
12
+ exports.showCustomOverlayContent = showCustomOverlayContent;
13
+
9
14
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
15
+
10
16
  var apiName = 'device.notification.showPreloader';
11
17
  var ios = {
12
18
  vs: '0.0.0'
@@ -14,13 +20,29 @@ var ios = {
14
20
  var android = {
15
21
  vs: '0.0.0'
16
22
  };
23
+ var pc = {
24
+ vs: '1.9.9'
25
+ };
17
26
  var platform = {
18
27
  ios: ios,
19
- android: android
28
+ android: android,
29
+ pc: pc
20
30
  };
31
+
21
32
  function showPreloader(params) {
22
33
  (0, _initAPI["default"])(apiName, {
23
34
  params: params,
24
35
  platform: platform
25
36
  });
37
+ }
38
+
39
+ var apiNameCustom = 'device.notification.showCustomOverlayContent';
40
+
41
+ function showCustomOverlayContent(params) {
42
+ (0, _initAPI["default"])(apiNameCustom, {
43
+ params: params,
44
+ platform: {
45
+ pc: pc
46
+ }
47
+ });
26
48
  }
@@ -1,13 +1,19 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.toast = toast;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'device.notification.toast';
16
+
11
17
  function toast(params) {
12
18
  (0, _initAPI["default"])(apiName, {
13
19
  params: params
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.vibrate = vibrate;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'device.notification.vibrate';
11
16
  var ios = {
12
17
  vs: '0.0.0'
@@ -18,6 +23,7 @@ var platform = {
18
23
  ios: ios,
19
24
  android: android
20
25
  };
26
+
21
27
  function vibrate(params) {
22
28
  (0, _initAPI["default"])(apiName, {
23
29
  params: params,
@@ -1,13 +1,19 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.getLang = getLang;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'device.system.getLang';
16
+
11
17
  function getLang(params) {
12
18
  (0, _initAPI["default"])(apiName, {
13
19
  params: params
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.setLight = setLight;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var ios = {
11
16
  vs: '0.0.0'
12
17
  };
@@ -18,6 +23,7 @@ var platform = {
18
23
  android: android
19
24
  };
20
25
  var apiName = 'device.system.setLight';
26
+
21
27
  function setLight(params) {
22
28
  (0, _initAPI["default"])(apiName, {
23
29
  params: params,
@@ -1,11 +1,15 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
+
4
5
  _Object$defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
8
+
7
9
  exports["default"] = void 0;
10
+
8
11
  var _lib = require("../lib");
12
+
9
13
  var defaultVersion = '0.0.0';
10
14
  var defaultPlatform = {
11
15
  ios: {
@@ -18,12 +22,17 @@ var defaultPlatform = {
18
22
  vs: defaultVersion
19
23
  }
20
24
  };
25
+
21
26
  function initAPI(apiName, config) {
22
27
  var _config$params = config.params,
23
- params = _config$params === void 0 ? {} : _config$params,
24
- _config$platform = config.platform,
25
- platform = _config$platform === void 0 ? defaultPlatform : _config$platform;
28
+ params = _config$params === void 0 ? {} : _config$params,
29
+ _config$platform = config.platform,
30
+ platform = _config$platform === void 0 ? defaultPlatform : _config$platform;
31
+
26
32
  _lib.yachSdk.setAPI(apiName, platform);
33
+
27
34
  _lib.yachSdk.invokeAPI(apiName, params);
28
35
  }
29
- var _default = exports["default"] = initAPI;
36
+
37
+ var _default = initAPI;
38
+ exports["default"] = _default;
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.createTab = createTab;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../initAPI"));
14
+
10
15
  var apiName = 'primary.createTab';
11
16
  var pc = {
12
17
  vs: '0.0.0'
@@ -14,6 +19,7 @@ var pc = {
14
19
  var platform = {
15
20
  pc: pc
16
21
  };
22
+
17
23
  function createTab(params) {
18
24
  (0, _initAPI["default"])(apiName, {
19
25
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.exitFullScreen = exitFullScreen;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../initAPI"));
14
+
10
15
  var apiName = 'primary.exitFullScreen';
11
16
  var pc = {
12
17
  vs: '0.0.0'
@@ -14,6 +19,7 @@ var pc = {
14
19
  var platform = {
15
20
  pc: pc
16
21
  };
22
+
17
23
  function exitFullScreen(params) {
18
24
  (0, _initAPI["default"])(apiName, {
19
25
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.fullScreen = fullScreen;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../initAPI"));
14
+
10
15
  var apiName = 'primary.fullScreen';
11
16
  var pc = {
12
17
  vs: '0.0.0'
@@ -14,6 +19,7 @@ var pc = {
14
19
  var platform = {
15
20
  pc: pc
16
21
  };
22
+
17
23
  function fullScreen(params) {
18
24
  (0, _initAPI["default"])(apiName, {
19
25
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.weeklyShare = weeklyShare;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../initAPI"));
14
+
10
15
  var apiName = 'primary.weeklyShare';
11
16
  var pc = {
12
17
  vs: '0.0.0'
@@ -14,6 +19,7 @@ var pc = {
14
19
  var platform = {
15
20
  pc: pc
16
21
  };
22
+
17
23
  function weeklyShare(params) {
18
24
  (0, _initAPI["default"])(apiName, {
19
25
  params: params,
@@ -1,13 +1,19 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.requestAuthCode = requestAuthCode;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'runtime.permission.requestAuthCode';
16
+
11
17
  function requestAuthCode(params) {
12
18
  (0, _initAPI["default"])(apiName, {
13
19
  params: params
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.disable = disable;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'ui.pullToRefresh.disable';
11
16
  var ios = {
12
17
  vs: '0.0.0'
@@ -18,6 +23,7 @@ var platform = {
18
23
  ios: ios,
19
24
  android: android
20
25
  };
26
+
21
27
  function disable(params) {
22
28
  (0, _initAPI["default"])(apiName, {
23
29
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.enable = enable;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'ui.pullToRefresh.enable';
11
16
  var ios = {
12
17
  vs: '0.0.0'
@@ -18,6 +23,7 @@ var platform = {
18
23
  ios: ios,
19
24
  android: android
20
25
  };
26
+
21
27
  function enable(params) {
22
28
  (0, _initAPI["default"])(apiName, {
23
29
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.stop = stop;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'ui.pullToRefresh.stop';
11
16
  var ios = {
12
17
  vs: '0.0.0'
@@ -18,6 +23,7 @@ var platform = {
18
23
  ios: ios,
19
24
  android: android
20
25
  };
26
+
21
27
  function stop(params) {
22
28
  (0, _initAPI["default"])(apiName, {
23
29
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.disable = disable;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'ui.webViewBounce.disable';
11
16
  var ios = {
12
17
  vs: '0.0.0'
@@ -14,6 +19,7 @@ var ios = {
14
19
  var platform = {
15
20
  ios: ios
16
21
  };
22
+
17
23
  function disable(params) {
18
24
  (0, _initAPI["default"])(apiName, {
19
25
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.getItem = getItem;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'util.domainStorage.getItem';
11
16
  var ios = {
12
17
  vs: '0.0.0'
@@ -18,6 +23,7 @@ var platform = {
18
23
  ios: ios,
19
24
  android: android
20
25
  };
26
+
21
27
  function getItem(params) {
22
28
  (0, _initAPI["default"])(apiName, {
23
29
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.removeItem = removeItem;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'util.domainStorage.removeItem';
11
16
  var ios = {
12
17
  vs: '0.0.0'
@@ -18,6 +23,7 @@ var platform = {
18
23
  ios: ios,
19
24
  android: android
20
25
  };
26
+
21
27
  function removeItem(params) {
22
28
  (0, _initAPI["default"])(apiName, {
23
29
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.setItem = setItem;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'util.domainStorage.setItem';
11
16
  var ios = {
12
17
  vs: '0.0.0'
@@ -18,6 +23,7 @@ var platform = {
18
23
  ios: ios,
19
24
  android: android
20
25
  };
26
+
21
27
  function setItem(params) {
22
28
  (0, _initAPI["default"])(apiName, {
23
29
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.flushLog = flushLog;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'util.tool.flushLog';
11
16
  var pc = {
12
17
  vs: '1.7.0'
@@ -14,6 +19,7 @@ var pc = {
14
19
  var platform = {
15
20
  pc: pc
16
21
  };
22
+
17
23
  function flushLog(params) {
18
24
  (0, _initAPI["default"])(apiName, {
19
25
  params: params,
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
4
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
6
+
5
7
  _Object$defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
10
+
8
11
  exports.writeLog = writeLog;
12
+
9
13
  var _initAPI = _interopRequireDefault(require("../../initAPI"));
14
+
10
15
  var apiName = 'util.tool.writeLog';
11
16
  var pc = {
12
17
  vs: '1.7.0'
@@ -14,6 +19,7 @@ var pc = {
14
19
  var platform = {
15
20
  pc: pc
16
21
  };
22
+
17
23
  function writeLog(params) {
18
24
  (0, _initAPI["default"])(apiName, {
19
25
  params: params,