yach.open.jssdk 4.3.8 → 4.4.0-beta.1

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