@dcloudio/uni-app-x 0.7.19 → 0.7.21

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 (335) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +27 -27
  6. package/types/app.d.ts +1002 -842
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +7 -7
  9. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  10. package/types/native/CanvasRenderingContext2D.d.ts +2048 -2047
  11. package/types/native/DOMRect.d.ts +56 -56
  12. package/types/native/DrawableContext.d.ts +162 -162
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +2859 -2859
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniObjectElement.d.ts +124 -124
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +240 -240
  22. package/types/native/SnapshotOptions.d.ts +63 -63
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniApp.d.ts +205 -205
  27. package/types/native/UniCallbackWrapper.d.ts +7 -7
  28. package/types/native/UniCanvasElement.d.ts +9 -9
  29. package/types/native/UniCustomEvent.d.ts +24 -24
  30. package/types/native/UniDocument.d.ts +83 -83
  31. package/types/native/UniElement.d.ts +79 -79
  32. package/types/native/UniError.d.ts +70 -70
  33. package/types/native/UniEvent.d.ts +92 -92
  34. package/types/native/UniFormControl.d.ts +8 -8
  35. package/types/native/UniFormControlElement.d.ts +14 -14
  36. package/types/native/UniImageErrorEvent.d.ts +33 -33
  37. package/types/native/UniImageLoadEvent.d.ts +37 -37
  38. package/types/native/UniInputBlurEvent.d.ts +36 -36
  39. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  40. package/types/native/UniInputEvent.d.ts +38 -38
  41. package/types/native/UniInputFocusEvent.d.ts +53 -53
  42. package/types/native/UniNativePage.d.ts +270 -270
  43. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  44. package/types/native/UniPageEvent.d.ts +10 -10
  45. package/types/native/UniPageManager.d.ts +27 -20
  46. package/types/native/UniPageScrollEvent.d.ts +13 -13
  47. package/types/native/UniPointerEvent.d.ts +74 -74
  48. package/types/native/UniProvider.d.ts +15 -15
  49. package/types/native/UniRefresherEvent.d.ts +18 -18
  50. package/types/native/UniResizeEvent.d.ts +34 -34
  51. package/types/native/UniResizeObserver.d.ts +184 -184
  52. package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
  53. package/types/native/UniScrollEvent.d.ts +42 -42
  54. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  55. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  56. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  57. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  58. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  59. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  60. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  61. package/types/native/UniTabTapEvent.d.ts +18 -18
  62. package/types/native/UniTabsElement.d.ts +59 -59
  63. package/types/native/UniTextElement.d.ts +34 -34
  64. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  65. package/types/native/UniTouchEvent.d.ts +64 -64
  66. package/types/native/UniVideoElement.d.ts +75 -75
  67. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  68. package/types/native/UniWebViewElement.d.ts +10 -10
  69. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  70. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  71. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  72. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  73. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  74. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  75. package/types/native/WebViewStyles.d.ts +20 -20
  76. package/types/native/global.d.ts +598 -598
  77. package/types/native/index.d.ts +71 -71
  78. package/types/native-global/index.d.ts +1 -1
  79. package/types/page.d.ts +1682 -1682
  80. package/types/process.d.ts +5 -5
  81. package/types/uni/base/index.d.ts +3 -3
  82. package/types/uni/env/index.d.ts +103 -103
  83. package/types/uni/global.d.ts +6 -6
  84. package/types/uni/index.d.ts +4 -4
  85. package/types/uni/uts-plugin-api/global.d.ts +58 -57
  86. package/types/uni/uts-plugin-api/index.d.ts +58 -57
  87. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
  88. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
  89. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
  90. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +12 -12
  91. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +5 -5
  92. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +50 -50
  93. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  94. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  95. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
  96. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -0
  97. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -0
  98. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +161 -0
  99. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  100. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  101. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
  102. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -20
  103. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -9
  104. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +264 -242
  105. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  106. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  107. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
  108. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
  109. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
  110. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
  111. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  112. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  113. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
  114. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  115. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  116. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  117. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  118. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  119. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -427
  120. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  121. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  122. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  123. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  124. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  125. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1336 -1336
  126. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  127. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  128. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +305 -305
  129. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  130. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  131. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +91 -91
  132. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  133. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  134. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
  135. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +142 -142
  136. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +70 -70
  137. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1840 -1840
  138. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  139. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  140. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  141. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  142. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +329 -329
  143. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  144. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  145. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
  146. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
  147. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
  148. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
  149. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  150. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  151. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
  152. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  153. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  154. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
  155. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  156. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  157. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
  158. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  159. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  160. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
  161. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  162. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  163. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +563 -564
  164. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  165. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  166. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  167. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  168. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  169. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  170. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  171. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  172. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  173. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
  174. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +30 -32
  175. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +14 -15
  176. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +375 -375
  177. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  178. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  179. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
  180. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  181. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  182. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2131 -2131
  183. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  184. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  185. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +169 -169
  186. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  187. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  188. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  189. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  190. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  191. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  192. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  193. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
  194. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  195. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  196. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +564 -564
  197. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  198. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  199. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
  200. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +160 -160
  201. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +79 -79
  202. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1339 -1339
  203. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  204. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  205. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
  206. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  207. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  208. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1493 -1493
  209. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  210. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  211. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  212. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  213. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
  214. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  215. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  216. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
  217. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  218. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  219. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +240 -240
  220. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  221. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  222. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  223. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  224. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -74
  225. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -36
  226. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +193 -8
  227. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  228. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  229. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
  230. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  231. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  232. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2165 -2165
  233. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  234. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  235. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
  236. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  237. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  238. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
  239. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  240. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  241. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
  242. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  243. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  244. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1086 -1086
  245. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
  246. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
  247. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  248. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  249. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  250. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  251. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +844 -844
  252. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  253. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  254. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
  255. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
  256. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +141 -141
  257. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  258. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  259. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
  260. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  261. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  262. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +808 -778
  263. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  264. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  265. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
  266. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  267. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  268. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  269. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  270. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
  271. package/types/uni/uts-plugin-extend/README.md +3 -3
  272. package/types/uni/uts-plugin-extend/global.d.ts +14 -14
  273. package/types/uni/uts-plugin-extend/index.d.ts +14 -14
  274. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  275. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  276. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
  277. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  278. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  279. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
  280. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
  281. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  282. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
  283. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  284. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  285. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
  286. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
  287. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
  288. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
  289. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
  290. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
  291. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
  292. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  293. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  294. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  295. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
  296. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
  297. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
  298. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  299. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  300. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  301. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  302. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  303. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
  304. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  305. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  306. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
  307. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  308. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  309. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
  310. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  311. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  312. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  313. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
  314. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
  315. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
  316. package/types/uni-cloud/index.d.ts +67 -63
  317. package/types/uni-cloud/interface.d.ts +987 -991
  318. package/types/uni-cloud/unicloud-db/index.ts +314 -314
  319. package/types/uni-global/index.d.ts +1 -1
  320. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  321. package/types/vue/LifeCycle.d.ts +55 -55
  322. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  323. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  324. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  325. package/types/vue/SliderChangeEvent.d.ts +35 -35
  326. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  327. package/types/vue/UniCanvasElement.d.ts +275 -275
  328. package/types/vue/UniCloudDBElement.d.ts +217 -217
  329. package/types/vue/UniFormElement.d.ts +54 -54
  330. package/types/vue/UniNavigatorElement.d.ts +11 -11
  331. package/types/vue/global.d.ts +191 -191
  332. package/types/vue/index.d.ts +10 -10
  333. package/types/vue-global/index.d.ts +1 -1
  334. package/uts-plugin.d.ts +27 -27
  335. package/types/shim-uts-basic.d.ts +0 -4495
@@ -1,991 +1,987 @@
1
- import { mixinDatacom } from './unicloud-db'
2
-
3
- type UniCloudCallback<T> = (arg: T) => any | null;
4
-
5
- type UniCloudInitOptions = {
6
- /**
7
- * 服务商,目前支持 aliyun、tencent、alipay
8
- */
9
- provider : string
10
- /**
11
- * 服务空间名
12
- */
13
- spaceName ?: string
14
- /**
15
- * 服务空间id
16
- */
17
- spaceId : string
18
- /**
19
- * 阿里云clientSecret
20
- */
21
- clientSecret ?: string
22
- /**
23
- * 阿里云endpoint
24
- */
25
- endpoint ?: string
26
- /**
27
- * 支付宝云spaceAppId
28
- */
29
- spaceAppId ?: string
30
- /**
31
- * 支付宝云accessKey
32
- */
33
- accessKey ?: string
34
- /**
35
- * 支付宝云secretKey
36
- */
37
- secretKey ?: string
38
- /**
39
- * 支付宝云 WebSocket Endpoint
40
- */
41
- wsEndpoint ?: string
42
- };
43
- type UniCloudCallFunctionOptions = {
44
- /**
45
- * 云函数名
46
- */
47
- name: string | string.CloudFunctionString;
48
- /**
49
- * 云函数参数
50
- */
51
- data?: UTSJSONObject;
52
- };
53
- type UniCloudCallFunctionResult<T = UTSJSONObject> = {
54
- /**
55
- * 云函数返回结果
56
- */
57
- result: T;
58
- /**
59
- * 云函数请求id
60
- */
61
- requestId?: string;
62
- };
63
- type UniCloudUploadProgress = {
64
- /**
65
- * 已上传大小
66
- */
67
- loaded: number;
68
- /**
69
- * 总大小
70
- */
71
- total: number;
72
- };
73
- type UniCloudUploadFileOptions = {
74
- /**
75
- * 文件路径
76
- */
77
- filePath: string;
78
- /**
79
- * 云端路径
80
- */
81
- cloudPath: string;
82
- /**
83
- * 是否以云端路径是否为真实路径保存上传的文件
84
- */
85
- cloudPathAsRealPath?: boolean;
86
- /**
87
- * 上传进度回调
88
- * @param options 上传进度回调参数
89
- * @returns
90
- */
91
- onUploadProgress?: (options: UniCloudUploadProgress) => any;
92
- };
93
- type UniCloudUploadFileResult = {
94
- /**
95
- * 文件路径
96
- */
97
- filePath: string;
98
- /**
99
- * 文件id
100
- */
101
- fileID: string;
102
- };
103
- type UniCloudGetTempFileURLOptions = {
104
- /**
105
- * 文件列表
106
- */
107
- fileList: Array<string>;
108
- };
109
- type UniCloudGetTempFileURLResultItem = {
110
- /**
111
- * 文件id
112
- */
113
- fileID: string;
114
- /**
115
- * 文件临时url
116
- */
117
- tempFileURL: string;
118
- };
119
- type UniCloudGetTempFileURLResult = {
120
- /**
121
- * 文件列表
122
- */
123
- fileList: Array<UniCloudGetTempFileURLResultItem>;
124
- };
125
- type UniCloudResponseEvent = {
126
- /**
127
- * 响应事件类型
128
- */
129
- type: string;
130
- /**
131
- * 响应事件由哪个云函数触发
132
- */
133
- name: string;
134
- /**
135
- * 响应结果、错误内容
136
- */
137
- content: any;
138
- };
139
- type UniCloudRefreshTokenEvent = {
140
- /**
141
- * token内容
142
- */
143
- token: string;
144
- /**
145
- * token过期时间
146
- */
147
- tokenExpired: number;
148
- };
149
- type UniCloudDBAddResult = {
150
- /**
151
- * 添加的记录的id
152
- */
153
- id: string;
154
- /**
155
- * 请求id
156
- */
157
- requestId?: string;
158
- };
159
- type UniCloudDBBatchAddResult = {
160
- /**
161
- * 添加的记录的id列表
162
- */
163
- ids: Array<string>;
164
- /**
165
- * 添加成功的记录数
166
- */
167
- inserted: number;
168
- /**
169
- * 请求id
170
- */
171
- requestId?: string;
172
- };
173
- type UniCloudDBUpdateResult = {
174
- /**
175
- * 更新成功的记录数
176
- */
177
- updated: number;
178
- /**
179
- * 请求id
180
- */
181
- requestId?: string;
182
- };
183
- type UniCloudDBRemoveResult = {
184
- /**
185
- * 删除成功的记录数
186
- */
187
- deleted: number;
188
- /**
189
- * 请求id
190
- */
191
- requestId?: string;
192
- };
193
- type UniCloudDBGetResult = {
194
- /**
195
- * 添加的记录的id列表
196
- */
197
- data: Array<UTSJSONObject>;
198
- /**
199
- * 匹配到的数据总量
200
- */
201
- count?: number | null;
202
- /**
203
- * 请求id
204
- */
205
- requestId?: string;
206
- };
207
- type UniCloudDBCountResult = {
208
- /**
209
- * 添加的记录的id列表
210
- */
211
- total: number;
212
- /**
213
- * 请求id
214
- */
215
- requestId?: string;
216
- };
217
- type UniCloudDBMultiSendResultItem = {
218
- /**
219
- * 错误码,可能为字符串或数字,数字0表示成功
220
- */
221
- errCode : any
222
- /**
223
- * 错误信息
224
- */
225
- errMsg : string
226
- /**
227
- * 数据
228
- */
229
- data ?: Array<UTSJSONObject>
230
- }
231
- type UniCloudDBMultiSendResult = {
232
- /**
233
- * 数据列表
234
- */
235
- dataList : UniCloudDBMultiSendResultItem[]
236
- /**
237
- * 请求id
238
- */
239
- requestId ?: string
240
- }
241
- type UniCloudUserInfo = {
242
- /**
243
- * 用户id
244
- */
245
- uid?: string | null;
246
- /**
247
- * 用户角色列表
248
- */
249
- role: Array<string>;
250
- /**
251
- * 用户权限列表
252
- */
253
- permission: Array<string>;
254
- /**
255
- * 用户token过期时间
256
- */
257
- tokenExpired: number;
258
- };
259
-
260
- declare class UniCloudError extends Error {
261
- code: any;
262
- errMsg: string;
263
- errCode: any;
264
- errSubject?: string;
265
- requestId?: string;
266
- /**
267
- * 错误详情
268
- * @description 合并查询请求
269
- * @uniPlatform {
270
- * "app": {
271
- * "android": {
272
- * "osVer": "5.0",
273
- * "uniVer": "√",
274
- * "unixVer": "4.24"
275
- * },
276
- * "ios": {
277
- * "uniVer": "√",
278
- * "unixVer": "4.11"
279
- * }
280
- * },
281
- * "web": {
282
- * "uniVer": "√",
283
- * "unixVer": "4.0"
284
- * }
285
- * }
286
- */
287
- detail?: UTSJSONObject;
288
- constructor(message: string, code: string, subject?: string, options?: UTSJSONObject);
289
- private _init;
290
- toJson(): UTSJSONObject;
291
- }
292
-
293
- declare class EventEmitter<T> {
294
- private _callbacks;
295
- constructor();
296
- on(eventName: string, callback: UniCloudCallback<T>): void;
297
- off(eventName: string, callback: UniCloudCallback<T>): void;
298
- emit(eventName: string, arg: T): void;
299
- }
300
-
301
- declare class UniCloudUnified {
302
- config: UniCloudInitOptions;
303
- private _client;
304
- private _baseSystemInfo;
305
- private _hasBaseSystemInfo;
306
- private _provider;
307
- private _spaceId;
308
- private _prepareLocalServerHub;
309
- responseEventEmitter: EventEmitter<UniCloudResponseEvent>;
310
- refreshTokenEventEmitter: EventEmitter<UniCloudRefreshTokenEvent>;
311
- constructor(options: UniCloudInitOptions);
312
- private _getBaseSystemInfo;
313
- private _getSystemInfo;
314
- private _getUniIdToken;
315
- private _isServerOk;
316
- private _pingLocalServer;
317
- private _prepareLocalServer;
318
- private _checkFunction;
319
- private _prepareFunction;
320
- private _getCallFunctionOptions;
321
- private _callCloudFunction;
322
- private _callLocalFunction;
323
- callFunction<T = UTSJSONObject>(options: UniCloudCallFunctionOptions): Promise<UniCloudCallFunctionResult<T>>;
324
- uploadFile(options: UniCloudUploadFileOptions): Promise<UniCloudUploadFileResult>;
325
- getTempFileURL(options: UniCloudGetTempFileURLOptions): Promise<UniCloudGetTempFileURLResult>;
326
- importObject(objectName: string, options: UniCloudImportObjectOptions): UniCloudCloudObjectCaller;
327
- }
328
-
329
- declare class InternalUniCloudCloudObjectCaller {
330
- protected _obj: InternalUniCloudCloudObject;
331
- constructor(obj: InternalUniCloudCloudObject);
332
- protected _getArgs(...args: Array<any | null>): Array<any | null>;
333
- }
334
-
335
- type UniCloudCloudObjectCaller = InternalUniCloudCloudObjectCaller & Record<string, <T = UTSJSONObject>(...args: Array<any | null>) => Promise<T>>;
336
-
337
- type UniCloudImportObjectLoadingOptions = {
338
- /**
339
- * 加载框标题
340
- */
341
- title?: string | null;
342
- /**
343
- * 加载框是否显示mask
344
- */
345
- mask?: boolean | null;
346
- };
347
- type UniCloudImportObjectErrorOptions = {
348
- /**
349
- * 错误提示类型,可以是modal或者toast
350
- */
351
- type?: string | null;
352
- /**
353
- * 是否显示重试按钮
354
- */
355
- retry?: boolean | null;
356
- };
357
- type UniCloudImportObjectOptions = {
358
- /**
359
- * 是否移除自动展示的ui
360
- */
361
- customUI?: boolean | null;
362
- /**
363
- * loading界面配置
364
- */
365
- loadingOptions?: UniCloudImportObjectLoadingOptions | null;
366
- /**
367
- * 错误提示配置
368
- */
369
- errorOptions?: UniCloudImportObjectErrorOptions | null;
370
- };
371
- declare class InternalUniCloudCloudObject {
372
- private _name;
373
- private _client;
374
- private _customUI;
375
- private _loadingUITitle;
376
- private _loadingUIMask;
377
- private _errorUIType;
378
- private _errorUIRetry;
379
- constructor(client: UniCloudUnified, name: string, options: UniCloudImportObjectOptions);
380
- private _initUIOptions;
381
- private _internalCallMethod;
382
- callMethod<T = UTSJSONObject>(methodName: string, args: Array<any | null>): Promise<T>;
383
- }
384
-
385
- declare class Stage {
386
- $method: string;
387
- $param?: Array<any> | null;
388
- constructor($method: string, $param?: Array<any> | null);
389
- }
390
- declare class Stages {
391
- private _client?;
392
- private _stages;
393
- private _isNew;
394
- constructor(stages?: Array<Stage>, isNew?: boolean, client?: UniCloudUnified | null);
395
- push(stage: Stage): Stages;
396
- toJSON(): UTSJSONObject;
397
- private _emitResponse;
398
- sendAdd(): Promise<UniCloudDBAddResult>;
399
- sendBatchAdd(): Promise<UniCloudDBBatchAddResult>;
400
- sendUpdate(): Promise<UniCloudDBUpdateResult>;
401
- sendRemove(): Promise<UniCloudDBRemoveResult>;
402
- sendGet(): Promise<UniCloudDBGetResult>;
403
- sendCount(): Promise<UniCloudDBCountResult>;
404
- private _send;
405
- }
406
-
407
- declare class UniCloudDBQuery {
408
- private _client;
409
- private _stages;
410
- constructor(client: UniCloudUnified, stages: Stages);
411
- get(arg?: UTSJSONObject | null): Promise<UniCloudDBGetResult>;
412
- count(): Promise<UniCloudDBCountResult>;
413
- getTemp(): UTSJSONObject;
414
- field(filed: string): UniCloudDBQuery;
415
- skip(num: number): UniCloudDBQuery;
416
- limit(num: number): UniCloudDBQuery;
417
- orderBy(order: string): UniCloudDBQuery;
418
- groupBy(field: string): UniCloudDBQuery;
419
- groupField(field: string): UniCloudDBQuery;
420
- distinct(field: string): UniCloudDBQuery;
421
- geoNear(options: UTSJSONObject): UniCloudDBQuery;
422
- }
423
-
424
- declare class UniCloudDBFilter {
425
- private _client;
426
- private _stages;
427
- constructor(client: UniCloudUnified, stages: Stages);
428
- get(arg?: UTSJSONObject | null): Promise<UniCloudDBGetResult>;
429
- count(): Promise<UniCloudDBCountResult>;
430
- update(data: UTSJSONObject): Promise<UniCloudDBUpdateResult>;
431
- remove(): Promise<UniCloudDBRemoveResult>;
432
- getTemp(): UTSJSONObject;
433
- where(condition: any): UniCloudDBFilter;
434
- doc(docId: string): UniCloudDBFilter;
435
- field(filed: string): UniCloudDBQuery;
436
- skip(num: number): UniCloudDBQuery;
437
- limit(num: number): UniCloudDBQuery;
438
- orderBy(order: string): UniCloudDBQuery;
439
- groupBy(field: string): UniCloudDBQuery;
440
- groupField(field: string): UniCloudDBQuery;
441
- distinct(field: string): UniCloudDBQuery;
442
- geoNear(options: UTSJSONObject): UniCloudDBQuery;
443
- }
444
-
445
- declare class Collection {
446
- private _client;
447
- private _collectionList;
448
- private _stages;
449
- constructor(client: UniCloudUnified, collectionList: Array<any>);
450
- where(condition: any): UniCloudDBFilter;
451
- doc(docId: string): UniCloudDBFilter;
452
- aggregate(): UniCloudDBFilter;
453
- foreignKey(foreignKey: string): UniCloudDBFilter;
454
- add(data: UTSJSONObject): Promise<UniCloudDBAddResult>;
455
- add(data: UTSJSONObject[]): Promise<UniCloudDBBatchAddResult>;
456
- get(arg?: UTSJSONObject | null): Promise<UniCloudDBGetResult>;
457
- count(): Promise<UniCloudDBCountResult>;
458
- getTemp(): UTSJSONObject;
459
- field(filed: string): UniCloudDBQuery;
460
- skip(num: number): UniCloudDBQuery;
461
- limit(num: number): UniCloudDBQuery;
462
- orderBy(order: string): UniCloudDBQuery;
463
- }
464
-
465
- declare class UniCloudDBCommand {
466
- private static _push;
467
- /**
468
- * 查询操作符,用于表示逻辑 "与" 的关系,表示需同时满足多个查询筛选条件
469
- */
470
- static and(args: Array<UTSJSONObject>): UTSJSONObject;
471
- /**
472
- * 查询操作符,用于表示逻辑 "或" 的关系,表示需同时满足多个查询筛选条件
473
- */
474
- static or(args: Array<UTSJSONObject>): UTSJSONObject;
475
- /**
476
- * 查询操作符,用于表示逻辑 "非" 的关系,表示需不满足指定的条件
477
- */
478
- static not(arg: UTSJSONObject): UTSJSONObject;
479
- /**
480
- * 查询操作符,用于表示逻辑 "都不" 的关系,表示需不满足指定的所有条件
481
- */
482
- static nor(args: Array<UTSJSONObject>): UTSJSONObject;
483
- /**
484
- * 查询筛选条件,表示字段等于某个值
485
- */
486
- static eq(arg: any): UTSJSONObject;
487
- /**
488
- * 查询筛选条件,表示字段不等于某个值
489
- */
490
- static neq(arg: any): UTSJSONObject;
491
- /**
492
- * 查询筛选操作符,表示需小于指定值
493
- */
494
- static lt(arg: any): UTSJSONObject;
495
- /**
496
- * 查询筛选操作符,表示需小于或等于指定值
497
- */
498
- static lte(arg: any): UTSJSONObject;
499
- /**
500
- * 查询筛选操作符,表示需大于指定值
501
- */
502
- static gt(arg: any): UTSJSONObject;
503
- /**
504
- * 查询筛选操作符,表示需大于或等于指定值
505
- */
506
- static gte(arg: any): UTSJSONObject;
507
- /**
508
- * 查询筛选操作符,表示要求值在给定的数组内
509
- */
510
- static in(arr: Array<any>): UTSJSONObject;
511
- /**
512
- * 查询筛选操作符,表示要求值不在给定的数组内
513
- */
514
- static nin(arr: Array<any>): UTSJSONObject;
515
- /**
516
- * 判断字段是否存在
517
- */
518
- static exists(arg: boolean): UTSJSONObject;
519
- /**
520
- * 查询筛选操作符,给定除数 divisor 和余数 remainder
521
- * @param divisor 除数
522
- * @param remainder 余数
523
- * @returns
524
- */
525
- static mod(divisor: number, remainder: number): UTSJSONObject;
526
- /**
527
- * 数组查询操作符。用于数组字段的查询筛选条件,要求数组字段中包含给定数组的所有元素
528
- */
529
- static all(arr: Array<any>): UTSJSONObject;
530
- /**
531
- * 用于数组字段的查询筛选条件,要求数组中包含至少一个满足 elemMatch 给定的所有条件的元素
532
- */
533
- static elemMatch(arg: UTSJSONObject): UTSJSONObject;
534
- /**
535
- * 更新操作符,用于数组字段的查询筛选条件,要求数组长度为给定值
536
- */
537
- static size(arg: number): UTSJSONObject;
538
- /**
539
- * 按从近到远的顺序,找出字段值在给定点的附近的记录
540
- */
541
- static geoNear(arg: UTSJSONObject): UTSJSONObject;
542
- /**
543
- * 找出字段值在指定区域内的记录,无排序。指定的区域必须是多边形(Polygon)或多边形集合(MultiPolygon)
544
- */
545
- static geoWithin(arg: UTSJSONObject): UTSJSONObject;
546
- /**
547
- * 找出给定的地理位置图形相交的记录
548
- */
549
- static geoIntersects(arg: UTSJSONObject): UTSJSONObject;
550
- }
551
-
552
- declare class Geometry extends UTSJSONObject {
553
- constructor(arg: UTSJSONObject);
554
- }
555
- declare class GeoPoint extends Geometry {
556
- constructor(lat: number, lng: number);
557
- }
558
- declare class GeoLineString extends Geometry {
559
- constructor(points: Array<GeoPoint>);
560
- }
561
- declare class GeoPolygon extends Geometry {
562
- constructor(lines: Array<GeoLineString>);
563
- }
564
- declare class GeoMultiPoint extends Geometry {
565
- constructor(points: Array<GeoPoint>);
566
- }
567
- declare class GeoMultiLineString extends Geometry {
568
- constructor(lines: Array<GeoLineString>);
569
- }
570
- declare class GeoMultiPolygon extends Geometry {
571
- constructor(polygons: Array<GeoPolygon>);
572
- }
573
- declare class UniCloudDBGeo {
574
- /**
575
- * 地理位置点
576
- */
577
- static get Point(): typeof GeoPoint;
578
- /**
579
- * 地理路径,是由两个或者更多的 Point 组成的线段
580
- */
581
- static get LineString(): typeof GeoLineString;
582
- /**
583
- * 地理上的一个多边形(有洞或无洞均可),它是由一个或多个闭环 LineString 组成的几何图形
584
- */
585
- static get Polygon(): typeof GeoPolygon;
586
- /**
587
- * 多个地理位置点 Point 的集合
588
- */
589
- static get MultiPoint(): typeof GeoMultiPoint;
590
- /**
591
- * 多个地理路径 LineString 的集合
592
- */
593
- static get MultiLineString(): typeof GeoMultiLineString;
594
- /**
595
- * 多个地理多边形 Polygon 的集合
596
- */
597
- static get MultiPolygon(): typeof GeoMultiPolygon;
598
- }
599
-
600
- declare class Database {
601
- private _client;
602
- constructor(client: UniCloudUnified);
603
- collection(...args: Array<any>): Collection;
604
- get command(): typeof UniCloudDBCommand;
605
- get Geo(): typeof UniCloudDBGeo;
606
- /**
607
- * 合并查询请求
608
- * @description 合并查询请求
609
- * @uniPlatform {
610
- * "app": {
611
- * "android": {
612
- * "osVer": "5.0",
613
- * "uniVer": "√",
614
- * "unixVer": "4.16"
615
- * },
616
- * "ios": {
617
- * "uniVer": "√",
618
- * "unixVer": "4.11"
619
- * }
620
- * },
621
- * "web": {
622
- * "uniVer": "√",
623
- * "unixVer": "4.0"
624
- * }
625
- * }
626
- */
627
- multiSend(...args: Array<UTSJSONObject>): Promise<UniCloudDBMultiSendResult>;
628
- }
629
-
630
- type UniCloudChooseAndUploadFileOptions = {
631
- sourceType?: Array<'album' | 'camera'> | null;
632
- count?: number | null;
633
- sizeType?: Array<'original' | 'compressed'> | null;
634
- extension?: Array<string> | null;
635
- compressed?: boolean | null;
636
- maxDuration?: number | null;
637
- camera?: 'front' | 'back' | null;
638
- crop?: ChooseImageCropOptions | null;
639
- type: 'image' | 'video' | 'all';
640
- onChooseFile?: (arg: UniCloudChooseFileResult) => void | null;
641
- onUploadProgress?: (arg: UniCloudChooseAndUploadFileProgressEvent) => void | null;
642
- };
643
- type UniCloudChooseAndUploadFileProgressEvent = {
644
- index: number;
645
- loaded: number;
646
- total: number;
647
- tempFilePath: string;
648
- tempFile: UniCloudChooseFileItem;
649
- };
650
- type UniCloudChooseAndUploadFileResult = {
651
- tempFiles: Array<UniCloudChooseFileItem>;
652
- tempFilePaths: Array<string>;
653
- };
654
- type UniCloudChooseFileResult = {
655
- tempFiles: Array<UniCloudChooseFileItem>;
656
- tempFilePaths: Array<string>;
657
- };
658
- type UniCloudChooseFileItem = {
659
- name: string;
660
- path: string;
661
- cloudPath: string;
662
- cloudPathAsRealPath?: boolean | null;
663
- url?: string | null;
664
- errMsg?: string | null;
665
- };
666
- type UniCloudConnectWebSocketOptions = {
667
- /** WebSocket云函数/云对象名称 */
668
- name: string;
669
- /** 建立连接时需要传递的参数, 仅在 connection 事件中接收到 */
670
- query?: UTSJSONObject;
671
- }
672
-
673
- declare class UniCloud {
674
- private _client;
675
- private _provider;
676
- private _spaceId;
677
- config: UniCloudInitOptions;
678
- mixinDatacom: typeof mixinDatacom;
679
- constructor(options: UniCloudInitOptions);
680
- // /**
681
- // * 连接其他服务空间
682
- // * @uniPlatform {
683
- // * "app": {
684
- // * "android": {
685
- // * "osVer": "5.0",
686
- // * "uniVer": "√",
687
- // * "unixVer": "4.18"
688
- // * },
689
- // * "ios": {
690
- // * "uniVer": "√",
691
- // * "unixVer": "4.11"
692
- // * }
693
- // * },
694
- // * "web": {
695
- // * "uniVer": "√",
696
- // * "unixVer": "4.0"
697
- // * }
698
- // * }
699
- // */
700
- // init(options: UniCloudInitOptions): UniCloud;
701
-
702
- /**
703
- * 设置
704
- * @uniPlatform {
705
- * "app": {
706
- * "android": {
707
- * "uniVer": "4.21",
708
- * "unixVer": "4.21"
709
- * },
710
- * "ios": {
711
- * "uniVer": "4.21",
712
- * "unixVer": "4.21"
713
- * }
714
- * },
715
- * "web": {
716
- * "uniVer": "4.21",
717
- * "unixVer": "4.21"
718
- * }
719
- * }
720
- */
721
- setCustomClientInfo(info: UTSJSONObject): void;
722
-
723
- /**
724
- * 请求云函数
725
- * @description 请求云函数
726
- * @uniPlatform {
727
- * "app": {
728
- * "android": {
729
- * "osVer": "5.0",
730
- * "uniVer": "√",
731
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
732
- * },
733
- * "ios": {
734
- * "uniVer": "√",
735
- * "unixVer": "4.11"
736
- * }
737
- * },
738
- * "web": {
739
- * "uniVer": "√",
740
- * "unixVer": "4.0"
741
- * }
742
- * }
743
- */
744
- callFunction<T = UTSJSONObject>(options: UniCloudCallFunctionOptions): Promise<UniCloudCallFunctionResult<T>>;
745
- /**
746
- * 上传文件到云存储
747
- * @description 上传文件到云存储
748
- * @uniPlatform {
749
- * "app": {
750
- * "android": {
751
- * "osVer": "5.0",
752
- * "uniVer": "√",
753
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
754
- * },
755
- * "ios": {
756
- * "uniVer": "√",
757
- * "unixVer": "4.11"
758
- * }
759
- * },
760
- * "web": {
761
- * "uniVer": "√",
762
- * "unixVer": "4.0"
763
- * }
764
- * }
765
- */
766
- uploadFile(options: UniCloudUploadFileOptions): Promise<UniCloudUploadFileResult>;
767
- /**
768
- * 获取文件临时URL
769
- * @description 获取文件临时URL
770
- * @uniPlatform {
771
- * "app": {
772
- * "android": {
773
- * "osVer": "5.0",
774
- * "uniVer": "√",
775
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
776
- * },
777
- * "ios": {
778
- * "uniVer": "√",
779
- * "unixVer": "4.11"
780
- * }
781
- * },
782
- * "web": {
783
- * "uniVer": "√",
784
- * "unixVer": "4.0"
785
- * }
786
- * }
787
- */
788
- getTempFileURL(options: UniCloudGetTempFileURLOptions): Promise<UniCloudGetTempFileURLResult>;
789
- /**
790
- * 引用云对象
791
- * @description 引用云对象
792
- * @uniPlatform {
793
- * "app": {
794
- * "android": {
795
- * "osVer": "5.0",
796
- * "uniVer": "√",
797
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
798
- * },
799
- * "ios": {
800
- * "uniVer": "√",
801
- * "unixVer": "4.11"
802
- * }
803
- * },
804
- * "web": {
805
- * "uniVer": "√",
806
- * "unixVer": "4.0"
807
- * }
808
- * }
809
- */
810
- importObject(objectName: string | string.CloudObjectString, options?: UniCloudImportObjectOptions): UniCloudCloudObjectCaller;
811
- /**
812
- * 监听响应事件
813
- * @description 监听响应事件
814
- * @uniPlatform {
815
- * "app": {
816
- * "android": {
817
- * "osVer": "5.0",
818
- * "uniVer": "√",
819
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
820
- * },
821
- * "ios": {
822
- * "uniVer": "√",
823
- * "unixVer": "4.11"
824
- * }
825
- * },
826
- * "web": {
827
- * "uniVer": "√",
828
- * "unixVer": "4.0"
829
- * }
830
- * }
831
- */
832
- onResponse(callback: UniCloudCallback<UniCloudResponseEvent>): void;
833
- /**
834
- * 移除响应事件监听
835
- * @description 移除响应事件监听
836
- * @uniPlatform {
837
- * "app": {
838
- * "android": {
839
- * "osVer": "5.0",
840
- * "uniVer": "√",
841
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
842
- * },
843
- * "ios": {
844
- * "uniVer": "√",
845
- * "unixVer": "4.11"
846
- * }
847
- * },
848
- * "web": {
849
- * "uniVer": "√",
850
- * "unixVer": "4.0"
851
- * }
852
- * }
853
- */
854
- offResponse(callback: UniCloudCallback<UniCloudResponseEvent>): void;
855
- /**
856
- * 监听token刷新事件
857
- * @description 监听token刷新事件
858
- * @uniPlatform {
859
- * "app": {
860
- * "android": {
861
- * "osVer": "5.0",
862
- * "uniVer": "√",
863
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
864
- * },
865
- * "ios": {
866
- * "uniVer": "√",
867
- * "unixVer": "4.11"
868
- * }
869
- * },
870
- * "web": {
871
- * "uniVer": "√",
872
- * "unixVer": "4.0"
873
- * }
874
- * }
875
- */
876
- onRefreshToken(callback: UniCloudCallback<UniCloudRefreshTokenEvent>): void;
877
- /**
878
- * 移除token刷新事件监听
879
- * @description 移除token刷新事件监听
880
- * @uniPlatform {
881
- * "app": {
882
- * "android": {
883
- * "osVer": "5.0",
884
- * "uniVer": "√",
885
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
886
- * },
887
- * "ios": {
888
- * "uniVer": "√",
889
- * "unixVer": "4.11"
890
- * }
891
- * },
892
- * "web": {
893
- * "uniVer": "√",
894
- * "unixVer": "4.0"
895
- * }
896
- * }
897
- */
898
- offRefreshToken(callback: UniCloudCallback<UniCloudRefreshTokenEvent>): void;
899
- /**
900
- * 获取数据库操作实例
901
- * @description 获取数据库操作实例
902
- * @uniPlatform {
903
- * "app": {
904
- * "android": {
905
- * "osVer": "5.0",
906
- * "uniVer": "√",
907
- * "unixVer": "阿里云 3.91,腾讯云 3.91,支付宝云 3.98"
908
- * },
909
- * "ios": {
910
- * "uniVer": "√",
911
- * "unixVer": "4.11"
912
- * }
913
- * },
914
- * "web": {
915
- * "uniVer": "√",
916
- * "unixVer": "4.0"
917
- * }
918
- * }
919
- */
920
- databaseForJQL(): Database;
921
- /**
922
- * 获取token内缓存的用户信息
923
- * @description 获取token内缓存的用户信息
924
- * @uniPlatform {
925
- * "app": {
926
- * "android": {
927
- * "osVer": "5.0",
928
- * "uniVer": "√",
929
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
930
- * },
931
- * "ios": {
932
- * "uniVer": "√",
933
- * "unixVer": "4.11"
934
- * }
935
- * },
936
- * "web": {
937
- * "uniVer": "√",
938
- * "unixVer": "4.0"
939
- * }
940
- * }
941
- */
942
- getCurrentUserInfo(): UniCloudUserInfo;
943
- /**
944
- * 选择并上传文件
945
- * @description 选择并上传文件
946
- * @uniPlatform {
947
- * "app": {
948
- * "android": {
949
- * "osVer": "5.0",
950
- * "uniVer": "√",
951
- * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
952
- * },
953
- * "ios": {
954
- * "uniVer": "√",
955
- * "unixVer": "4.11"
956
- * }
957
- * },
958
- * "web": {
959
- * "uniVer": "√",
960
- * "unixVer": "4.0"
961
- * }
962
- * }
963
- */
964
- chooseAndUploadFile(options: UniCloudChooseAndUploadFileOptions): Promise<UniCloudChooseAndUploadFileResult>;
965
- /**
966
- * 连接 WebSocket
967
- * @description 连接 WebSocket
968
- * @uniPlatform {
969
- * "app": {
970
- * "android": {
971
- * "osVer": "5.0",
972
- * "uniVer": "4.23",
973
- * "unixVer": "4.24"
974
- * },
975
- * "ios": {
976
- * "uniVer": "4.23",
977
- * "unixVer": "4.24"
978
- * }
979
- * },
980
- * "web": {
981
- * "uniVer": "4.23",
982
- * "unixVer": "4.24"
983
- * }
984
- * }
985
- */
986
- connectWebSocket (options: UniCloudConnectWebSocketOptions) : SocketTask;
987
- }
988
-
989
- declare const uniCloud: UniCloud;
990
-
991
- export { type UniCloudCallFunctionOptions, type UniCloudCallFunctionResult, type UniCloudChooseAndUploadFileOptions, type UniCloudChooseAndUploadFileResult, type UniCloudDBAddResult, type UniCloudDBBatchAddResult, type UniCloudDBCountResult, UniCloudDBFilter, type UniCloudDBGetResult, UniCloudDBQuery, type UniCloudDBRemoveResult, type UniCloudDBUpdateResult, type UniCloudDBMultiSendResultItem, type UniCloudDBMultiSendResult, UniCloudError, type UniCloudGetTempFileURLOptions, type UniCloudGetTempFileURLResult, type UniCloudGetTempFileURLResultItem, type UniCloudImportObjectErrorOptions, type UniCloudImportObjectLoadingOptions, type UniCloudImportObjectOptions, type UniCloudInitOptions, type UniCloudRefreshTokenEvent, type UniCloudResponseEvent, type UniCloudUploadFileOptions, type UniCloudUploadFileResult, type UniCloudUploadProgress, type UniCloudUserInfo, uniCloud };
1
+ import { mixinDatacom } from './unicloud-db'
2
+
3
+ type UniCloudCallback<T> = (arg: T) => any | null;
4
+
5
+ type UniCloudInitOptions = {
6
+ /**
7
+ * 服务商,目前支持 aliyun、tencent、alipay
8
+ */
9
+ provider: string
10
+ /**
11
+ * 服务空间名
12
+ */
13
+ spaceName?: string
14
+ /**
15
+ * 服务空间id
16
+ */
17
+ spaceId: string
18
+ /**
19
+ * 阿里云clientSecret
20
+ */
21
+ clientSecret?: string
22
+ /**
23
+ * 阿里云endpoint
24
+ */
25
+ endpoint?: string
26
+ /**
27
+ * 支付宝云spaceAppId
28
+ */
29
+ spaceAppId?: string
30
+ /**
31
+ * 支付宝云accessKey
32
+ */
33
+ accessKey?: string
34
+ /**
35
+ * 支付宝云secretKey
36
+ */
37
+ secretKey?: string
38
+ /**
39
+ * 支付宝云 WebSocket Endpoint
40
+ */
41
+ wsEndpoint?: string
42
+ };
43
+ type UniCloudCallFunctionOptions = {
44
+ /**
45
+ * 云函数名
46
+ */
47
+ name: string | string.CloudFunctionString;
48
+ /**
49
+ * 云函数参数
50
+ */
51
+ data?: UTSJSONObject;
52
+ };
53
+ type UniCloudCallFunctionResult<T = UTSJSONObject> = {
54
+ /**
55
+ * 云函数返回结果
56
+ */
57
+ result: T;
58
+ /**
59
+ * 云函数请求id
60
+ */
61
+ requestId?: string;
62
+ };
63
+ type UniCloudUploadProgress = {
64
+ /**
65
+ * 已上传大小
66
+ */
67
+ loaded: number;
68
+ /**
69
+ * 总大小
70
+ */
71
+ total: number;
72
+ };
73
+ type UniCloudUploadFileOptions = {
74
+ /**
75
+ * 文件路径
76
+ */
77
+ filePath: string;
78
+ /**
79
+ * 云端路径
80
+ */
81
+ cloudPath: string;
82
+ /**
83
+ * 是否以云端路径是否为真实路径保存上传的文件
84
+ */
85
+ cloudPathAsRealPath?: boolean;
86
+ /**
87
+ * 上传进度回调
88
+ * @param options 上传进度回调参数
89
+ * @returns
90
+ */
91
+ onUploadProgress?: (options: UniCloudUploadProgress) => any;
92
+ };
93
+ type UniCloudUploadFileResult = {
94
+ /**
95
+ * 文件路径
96
+ */
97
+ filePath: string;
98
+ /**
99
+ * 文件id
100
+ */
101
+ fileID: string;
102
+ };
103
+ type UniCloudGetTempFileURLOptions = {
104
+ /**
105
+ * 文件列表
106
+ */
107
+ fileList: Array<string>;
108
+ };
109
+ type UniCloudGetTempFileURLResultItem = {
110
+ /**
111
+ * 文件id
112
+ */
113
+ fileID: string;
114
+ /**
115
+ * 文件临时url
116
+ */
117
+ tempFileURL: string;
118
+ };
119
+ type UniCloudGetTempFileURLResult = {
120
+ /**
121
+ * 文件列表
122
+ */
123
+ fileList: Array<UniCloudGetTempFileURLResultItem>;
124
+ };
125
+ type UniCloudResponseEvent = {
126
+ /**
127
+ * 响应事件类型
128
+ */
129
+ type: string;
130
+ /**
131
+ * 响应事件由哪个云函数触发
132
+ */
133
+ name: string;
134
+ /**
135
+ * 响应结果、错误内容
136
+ */
137
+ content: any;
138
+ };
139
+ type UniCloudRefreshTokenEvent = {
140
+ /**
141
+ * token内容
142
+ */
143
+ token: string;
144
+ /**
145
+ * token过期时间
146
+ */
147
+ tokenExpired: number;
148
+ };
149
+ type UniCloudDBAddResult = {
150
+ /**
151
+ * 添加的记录的id
152
+ */
153
+ id: string;
154
+ /**
155
+ * 请求id
156
+ */
157
+ requestId?: string;
158
+ };
159
+ type UniCloudDBBatchAddResult = {
160
+ /**
161
+ * 添加的记录的id列表
162
+ */
163
+ ids: Array<string>;
164
+ /**
165
+ * 添加成功的记录数
166
+ */
167
+ inserted: number;
168
+ /**
169
+ * 请求id
170
+ */
171
+ requestId?: string;
172
+ };
173
+ type UniCloudDBUpdateResult = {
174
+ /**
175
+ * 更新成功的记录数
176
+ */
177
+ updated: number;
178
+ /**
179
+ * 请求id
180
+ */
181
+ requestId?: string;
182
+ };
183
+ type UniCloudDBRemoveResult = {
184
+ /**
185
+ * 删除成功的记录数
186
+ */
187
+ deleted: number;
188
+ /**
189
+ * 请求id
190
+ */
191
+ requestId?: string;
192
+ };
193
+ type UniCloudDBGetResult = {
194
+ /**
195
+ * 添加的记录的id列表
196
+ */
197
+ data: Array<UTSJSONObject>;
198
+ /**
199
+ * 匹配到的数据总量
200
+ */
201
+ count?: number | null;
202
+ /**
203
+ * 请求id
204
+ */
205
+ requestId?: string;
206
+ };
207
+ type UniCloudDBCountResult = {
208
+ /**
209
+ * 添加的记录的id列表
210
+ */
211
+ total: number;
212
+ /**
213
+ * 请求id
214
+ */
215
+ requestId?: string;
216
+ };
217
+ type UniCloudDBMultiSendResultItem = {
218
+ /**
219
+ * 错误码,可能为字符串或数字,数字0表示成功
220
+ */
221
+ errCode: any
222
+ /**
223
+ * 错误信息
224
+ */
225
+ errMsg: string
226
+ /**
227
+ * 数据
228
+ */
229
+ data?: Array<UTSJSONObject>
230
+ }
231
+ type UniCloudDBMultiSendResult = {
232
+ /**
233
+ * 数据列表
234
+ */
235
+ dataList: UniCloudDBMultiSendResultItem[]
236
+ /**
237
+ * 请求id
238
+ */
239
+ requestId?: string
240
+ }
241
+ type UniCloudUserInfo = {
242
+ /**
243
+ * 用户id
244
+ */
245
+ uid?: string | null;
246
+ /**
247
+ * 用户角色列表
248
+ */
249
+ role: Array<string>;
250
+ /**
251
+ * 用户权限列表
252
+ */
253
+ permission: Array<string>;
254
+ /**
255
+ * 用户token过期时间
256
+ */
257
+ tokenExpired: number;
258
+ };
259
+
260
+ declare class UniCloudError extends Error {
261
+ code: any;
262
+ errMsg: string;
263
+ errCode: any;
264
+ errSubject?: string;
265
+ requestId?: string;
266
+ /**
267
+ * 错误详情
268
+ * @description 合并查询请求
269
+ * @uniPlatform {
270
+ * "app": {
271
+ * "android": {
272
+ * "osVer": "5.0",
273
+ * "uniVer": "√",
274
+ * "unixVer": "4.24"
275
+ * },
276
+ * "ios": {
277
+ * "uniVer": "√",
278
+ * "unixVer": "4.11"
279
+ * }
280
+ * },
281
+ * "web": {
282
+ * "uniVer": "√",
283
+ * "unixVer": "4.0"
284
+ * }
285
+ * }
286
+ */
287
+ detail?: UTSJSONObject;
288
+ constructor(message: string, code: string, subject?: string, options?: UTSJSONObject);
289
+ private _init;
290
+ toJson(): UTSJSONObject;
291
+ }
292
+
293
+ declare class EventEmitter<T> {
294
+ private _callbacks;
295
+ constructor();
296
+ on(eventName: string, callback: UniCloudCallback<T>): void;
297
+ off(eventName: string, callback: UniCloudCallback<T>): void;
298
+ emit(eventName: string, arg: T): void;
299
+ }
300
+
301
+ declare class UniCloudUnified {
302
+ config: UniCloudInitOptions;
303
+ private _client;
304
+ private _baseSystemInfo;
305
+ private _hasBaseSystemInfo;
306
+ private _provider;
307
+ private _spaceId;
308
+ private _prepareLocalServerHub;
309
+ responseEventEmitter: EventEmitter<UniCloudResponseEvent>;
310
+ refreshTokenEventEmitter: EventEmitter<UniCloudRefreshTokenEvent>;
311
+ constructor(options: UniCloudInitOptions);
312
+ private _getBaseSystemInfo;
313
+ private _getSystemInfo;
314
+ private _getUniIdToken;
315
+ private _isServerOk;
316
+ private _pingLocalServer;
317
+ private _prepareLocalServer;
318
+ private _checkFunction;
319
+ private _prepareFunction;
320
+ private _getCallFunctionOptions;
321
+ private _callCloudFunction;
322
+ private _callLocalFunction;
323
+ callFunction<T = UTSJSONObject>(options: UniCloudCallFunctionOptions): Promise<UniCloudCallFunctionResult<T>>;
324
+ uploadFile(options: UniCloudUploadFileOptions): Promise<UniCloudUploadFileResult>;
325
+ getTempFileURL(options: UniCloudGetTempFileURLOptions): Promise<UniCloudGetTempFileURLResult>;
326
+ importObject(objectName: string, options: UniCloudImportObjectOptions): UniCloudCloudObjectCaller;
327
+ }
328
+
329
+ declare class InternalUniCloudCloudObjectCaller {
330
+ protected _obj: InternalUniCloudCloudObject;
331
+ constructor(obj: InternalUniCloudCloudObject);
332
+ protected _getArgs(...args: Array<any | null>): Array<any | null>;
333
+ }
334
+
335
+ type UniCloudCloudObjectCaller = InternalUniCloudCloudObjectCaller & Record<string, <T = UTSJSONObject>(...args: Array<any | null>) => Promise<T>>;
336
+
337
+ type UniCloudImportObjectLoadingOptions = {
338
+ /**
339
+ * 加载框标题
340
+ */
341
+ title?: string | null;
342
+ /**
343
+ * 加载框是否显示mask
344
+ */
345
+ mask?: boolean | null;
346
+ };
347
+ type UniCloudImportObjectErrorOptions = {
348
+ /**
349
+ * 错误提示类型,可以是modal或者toast
350
+ */
351
+ type?: string | null;
352
+ /**
353
+ * 是否显示重试按钮
354
+ */
355
+ retry?: boolean | null;
356
+ };
357
+ type UniCloudImportObjectOptions = {
358
+ /**
359
+ * 是否移除自动展示的ui
360
+ */
361
+ customUI?: boolean | null;
362
+ /**
363
+ * loading界面配置
364
+ */
365
+ loadingOptions?: UniCloudImportObjectLoadingOptions | null;
366
+ /**
367
+ * 错误提示配置
368
+ */
369
+ errorOptions?: UniCloudImportObjectErrorOptions | null;
370
+ };
371
+ declare class InternalUniCloudCloudObject {
372
+ private _name;
373
+ private _client;
374
+ private _customUI;
375
+ private _loadingUITitle;
376
+ private _loadingUIMask;
377
+ private _errorUIType;
378
+ private _errorUIRetry;
379
+ constructor(client: UniCloudUnified, name: string, options: UniCloudImportObjectOptions);
380
+ private _initUIOptions;
381
+ private _internalCallMethod;
382
+ callMethod<T = UTSJSONObject>(methodName: string, args: Array<any | null>): Promise<T>;
383
+ }
384
+
385
+ declare class Stage {
386
+ $method: string;
387
+ $param?: Array<any> | null;
388
+ constructor($method: string, $param?: Array<any> | null);
389
+ }
390
+ declare class Stages {
391
+ private _client?;
392
+ private _stages;
393
+ private _isNew;
394
+ constructor(stages?: Array<Stage>, isNew?: boolean, client?: UniCloudUnified | null);
395
+ push(stage: Stage): Stages;
396
+ toJSON(): UTSJSONObject;
397
+ private _emitResponse;
398
+ sendAdd(): Promise<UniCloudDBAddResult>;
399
+ sendBatchAdd(): Promise<UniCloudDBBatchAddResult>;
400
+ sendUpdate(): Promise<UniCloudDBUpdateResult>;
401
+ sendRemove(): Promise<UniCloudDBRemoveResult>;
402
+ sendGet(): Promise<UniCloudDBGetResult>;
403
+ sendCount(): Promise<UniCloudDBCountResult>;
404
+ private _send;
405
+ }
406
+
407
+ declare class UniCloudDBQuery {
408
+ private _client;
409
+ private _stages;
410
+ constructor(client: UniCloudUnified, stages: Stages);
411
+ get(arg?: UTSJSONObject | null): Promise<UniCloudDBGetResult>;
412
+ count(): Promise<UniCloudDBCountResult>;
413
+ getTemp(): UTSJSONObject;
414
+ field(filed: string): UniCloudDBQuery;
415
+ skip(num: number): UniCloudDBQuery;
416
+ limit(num: number): UniCloudDBQuery;
417
+ orderBy(order: string): UniCloudDBQuery;
418
+ groupBy(field: string): UniCloudDBQuery;
419
+ groupField(field: string): UniCloudDBQuery;
420
+ distinct(field: string): UniCloudDBQuery;
421
+ geoNear(options: UTSJSONObject): UniCloudDBQuery;
422
+ }
423
+
424
+ declare class UniCloudDBFilter {
425
+ private _client;
426
+ private _stages;
427
+ constructor(client: UniCloudUnified, stages: Stages);
428
+ get(arg?: UTSJSONObject | null): Promise<UniCloudDBGetResult>;
429
+ count(): Promise<UniCloudDBCountResult>;
430
+ update(data: UTSJSONObject): Promise<UniCloudDBUpdateResult>;
431
+ remove(): Promise<UniCloudDBRemoveResult>;
432
+ getTemp(): UTSJSONObject;
433
+ where(condition: any): UniCloudDBFilter;
434
+ doc(docId: string): UniCloudDBFilter;
435
+ field(filed: string): UniCloudDBQuery;
436
+ skip(num: number): UniCloudDBQuery;
437
+ limit(num: number): UniCloudDBQuery;
438
+ orderBy(order: string): UniCloudDBQuery;
439
+ groupBy(field: string): UniCloudDBQuery;
440
+ groupField(field: string): UniCloudDBQuery;
441
+ distinct(field: string): UniCloudDBQuery;
442
+ geoNear(options: UTSJSONObject): UniCloudDBQuery;
443
+ }
444
+
445
+ declare class Collection {
446
+ private _client;
447
+ private _collectionList;
448
+ private _stages;
449
+ constructor(client: UniCloudUnified, collectionList: Array<any>);
450
+ where(condition: any): UniCloudDBFilter;
451
+ doc(docId: string): UniCloudDBFilter;
452
+ aggregate(): UniCloudDBFilter;
453
+ foreignKey(foreignKey: string): UniCloudDBFilter;
454
+ add(data: UTSJSONObject): Promise<UniCloudDBAddResult>;
455
+ add(data: UTSJSONObject[]): Promise<UniCloudDBBatchAddResult>;
456
+ get(arg?: UTSJSONObject | null): Promise<UniCloudDBGetResult>;
457
+ count(): Promise<UniCloudDBCountResult>;
458
+ getTemp(): UTSJSONObject;
459
+ field(filed: string): UniCloudDBQuery;
460
+ skip(num: number): UniCloudDBQuery;
461
+ limit(num: number): UniCloudDBQuery;
462
+ orderBy(order: string): UniCloudDBQuery;
463
+ }
464
+
465
+ declare class UniCloudDBCommand {
466
+ private static _push;
467
+ /**
468
+ * 查询操作符,用于表示逻辑 "与" 的关系,表示需同时满足多个查询筛选条件
469
+ */
470
+ static and(args: Array<UTSJSONObject>): UTSJSONObject;
471
+ /**
472
+ * 查询操作符,用于表示逻辑 "或" 的关系,表示需同时满足多个查询筛选条件
473
+ */
474
+ static or(args: Array<UTSJSONObject>): UTSJSONObject;
475
+ /**
476
+ * 查询操作符,用于表示逻辑 "非" 的关系,表示需不满足指定的条件
477
+ */
478
+ static not(arg: UTSJSONObject): UTSJSONObject;
479
+ /**
480
+ * 查询操作符,用于表示逻辑 "都不" 的关系,表示需不满足指定的所有条件
481
+ */
482
+ static nor(args: Array<UTSJSONObject>): UTSJSONObject;
483
+ /**
484
+ * 查询筛选条件,表示字段等于某个值
485
+ */
486
+ static eq(arg: any): UTSJSONObject;
487
+ /**
488
+ * 查询筛选条件,表示字段不等于某个值
489
+ */
490
+ static neq(arg: any): UTSJSONObject;
491
+ /**
492
+ * 查询筛选操作符,表示需小于指定值
493
+ */
494
+ static lt(arg: any): UTSJSONObject;
495
+ /**
496
+ * 查询筛选操作符,表示需小于或等于指定值
497
+ */
498
+ static lte(arg: any): UTSJSONObject;
499
+ /**
500
+ * 查询筛选操作符,表示需大于指定值
501
+ */
502
+ static gt(arg: any): UTSJSONObject;
503
+ /**
504
+ * 查询筛选操作符,表示需大于或等于指定值
505
+ */
506
+ static gte(arg: any): UTSJSONObject;
507
+ /**
508
+ * 查询筛选操作符,表示要求值在给定的数组内
509
+ */
510
+ static in(arr: Array<any>): UTSJSONObject;
511
+ /**
512
+ * 查询筛选操作符,表示要求值不在给定的数组内
513
+ */
514
+ static nin(arr: Array<any>): UTSJSONObject;
515
+ /**
516
+ * 判断字段是否存在
517
+ */
518
+ static exists(arg: boolean): UTSJSONObject;
519
+ /**
520
+ * 查询筛选操作符,给定除数 divisor 和余数 remainder
521
+ * @param divisor 除数
522
+ * @param remainder 余数
523
+ * @returns
524
+ */
525
+ static mod(divisor: number, remainder: number): UTSJSONObject;
526
+ /**
527
+ * 数组查询操作符。用于数组字段的查询筛选条件,要求数组字段中包含给定数组的所有元素
528
+ */
529
+ static all(arr: Array<any>): UTSJSONObject;
530
+ /**
531
+ * 用于数组字段的查询筛选条件,要求数组中包含至少一个满足 elemMatch 给定的所有条件的元素
532
+ */
533
+ static elemMatch(arg: UTSJSONObject): UTSJSONObject;
534
+ /**
535
+ * 更新操作符,用于数组字段的查询筛选条件,要求数组长度为给定值
536
+ */
537
+ static size(arg: number): UTSJSONObject;
538
+ /**
539
+ * 按从近到远的顺序,找出字段值在给定点的附近的记录
540
+ */
541
+ static geoNear(arg: UTSJSONObject): UTSJSONObject;
542
+ /**
543
+ * 找出字段值在指定区域内的记录,无排序。指定的区域必须是多边形(Polygon)或多边形集合(MultiPolygon)
544
+ */
545
+ static geoWithin(arg: UTSJSONObject): UTSJSONObject;
546
+ /**
547
+ * 找出给定的地理位置图形相交的记录
548
+ */
549
+ static geoIntersects(arg: UTSJSONObject): UTSJSONObject;
550
+ }
551
+
552
+ declare class Geometry extends UTSJSONObject {
553
+ constructor(arg: UTSJSONObject);
554
+ }
555
+ declare class GeoPoint extends Geometry {
556
+ constructor(lat: number, lng: number);
557
+ }
558
+ declare class GeoLineString extends Geometry {
559
+ constructor(points: Array<GeoPoint>);
560
+ }
561
+ declare class GeoPolygon extends Geometry {
562
+ constructor(lines: Array<GeoLineString>);
563
+ }
564
+ declare class GeoMultiPoint extends Geometry {
565
+ constructor(points: Array<GeoPoint>);
566
+ }
567
+ declare class GeoMultiLineString extends Geometry {
568
+ constructor(lines: Array<GeoLineString>);
569
+ }
570
+ declare class GeoMultiPolygon extends Geometry {
571
+ constructor(polygons: Array<GeoPolygon>);
572
+ }
573
+ declare class UniCloudDBGeo {
574
+ /**
575
+ * 地理位置点
576
+ */
577
+ static get Point(): typeof GeoPoint;
578
+ /**
579
+ * 地理路径,是由两个或者更多的 Point 组成的线段
580
+ */
581
+ static get LineString(): typeof GeoLineString;
582
+ /**
583
+ * 地理上的一个多边形(有洞或无洞均可),它是由一个或多个闭环 LineString 组成的几何图形
584
+ */
585
+ static get Polygon(): typeof GeoPolygon;
586
+ /**
587
+ * 多个地理位置点 Point 的集合
588
+ */
589
+ static get MultiPoint(): typeof GeoMultiPoint;
590
+ /**
591
+ * 多个地理路径 LineString 的集合
592
+ */
593
+ static get MultiLineString(): typeof GeoMultiLineString;
594
+ /**
595
+ * 多个地理多边形 Polygon 的集合
596
+ */
597
+ static get MultiPolygon(): typeof GeoMultiPolygon;
598
+ }
599
+
600
+ declare class Database {
601
+ private _client;
602
+ constructor(client: UniCloudUnified);
603
+ collection(...args: Array<any>): Collection;
604
+ get command(): typeof UniCloudDBCommand;
605
+ get Geo(): typeof UniCloudDBGeo;
606
+ /**
607
+ * 合并查询请求
608
+ * @description 合并查询请求
609
+ * @uniPlatform {
610
+ * "app": {
611
+ * "android": {
612
+ * "osVer": "5.0",
613
+ * "uniVer": "√",
614
+ * "unixVer": "4.16"
615
+ * },
616
+ * "ios": {
617
+ * "uniVer": "√",
618
+ * "unixVer": "4.11"
619
+ * }
620
+ * },
621
+ * "web": {
622
+ * "uniVer": "√",
623
+ * "unixVer": "4.0"
624
+ * }
625
+ * }
626
+ */
627
+ multiSend(...args: Array<UTSJSONObject>): Promise<UniCloudDBMultiSendResult>;
628
+ }
629
+
630
+ type UniCloudChooseAndUploadFileOptions = {
631
+ sourceType?: Array<'album' | 'camera'> | null;
632
+ count?: number | null;
633
+ sizeType?: Array<'original' | 'compressed'> | null;
634
+ extension?: Array<string> | null;
635
+ compressed?: boolean | null;
636
+ maxDuration?: number | null;
637
+ camera?: 'front' | 'back' | null;
638
+ crop?: ChooseImageCropOptions | null;
639
+ type: 'image' | 'video' | 'all';
640
+ onChooseFile?: (arg: UniCloudChooseAndUploadFileResult) => void | null;
641
+ onUploadProgress?: (arg: UniCloudChooseAndUploadFileProgressEvent) => void | null;
642
+ };
643
+ type UniCloudChooseAndUploadFileProgressEvent = {
644
+ index: number;
645
+ loaded: number;
646
+ total: number;
647
+ tempFilePath: string;
648
+ tempFile: UniCloudChooseAndUploadFileItem;
649
+ };
650
+ type UniCloudChooseAndUploadFileResult = {
651
+ tempFiles: Array<UniCloudChooseAndUploadFileItem>;
652
+ tempFilePaths: Array<string>;
653
+ };
654
+ type UniCloudChooseAndUploadFileItem = {
655
+ name: string;
656
+ path: string;
657
+ cloudPath: string;
658
+ cloudPathAsRealPath?: boolean | null;
659
+ url?: string | null;
660
+ errMsg?: string | null;
661
+ };
662
+ type UniCloudConnectWebSocketOptions = {
663
+ /** WebSocket云函数/云对象名称 */
664
+ name: string;
665
+ /** 建立连接时需要传递的参数, 仅在 connection 事件中接收到 */
666
+ query?: UTSJSONObject;
667
+ }
668
+
669
+ declare class UniCloud {
670
+ private _client;
671
+ private _provider;
672
+ private _spaceId;
673
+ config: UniCloudInitOptions;
674
+ mixinDatacom: typeof mixinDatacom;
675
+ constructor(options: UniCloudInitOptions);
676
+ // /**
677
+ // * 连接其他服务空间
678
+ // * @uniPlatform {
679
+ // * "app": {
680
+ // * "android": {
681
+ // * "osVer": "5.0",
682
+ // * "uniVer": "√",
683
+ // * "unixVer": "4.18"
684
+ // * },
685
+ // * "ios": {
686
+ // * "uniVer": "√",
687
+ // * "unixVer": "4.11"
688
+ // * }
689
+ // * },
690
+ // * "web": {
691
+ // * "uniVer": "",
692
+ // * "unixVer": "4.0"
693
+ // * }
694
+ // * }
695
+ // */
696
+ // init(options: UniCloudInitOptions): UniCloud;
697
+
698
+ /**
699
+ * 设置
700
+ * @uniPlatform {
701
+ * "app": {
702
+ * "android": {
703
+ * "uniVer": "4.21",
704
+ * "unixVer": "4.21"
705
+ * },
706
+ * "ios": {
707
+ * "uniVer": "4.21",
708
+ * "unixVer": "4.21"
709
+ * }
710
+ * },
711
+ * "web": {
712
+ * "uniVer": "4.21",
713
+ * "unixVer": "4.21"
714
+ * }
715
+ * }
716
+ */
717
+ setCustomClientInfo(info: UTSJSONObject): void;
718
+
719
+ /**
720
+ * 请求云函数
721
+ * @description 请求云函数
722
+ * @uniPlatform {
723
+ * "app": {
724
+ * "android": {
725
+ * "osVer": "5.0",
726
+ * "uniVer": "√",
727
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
728
+ * },
729
+ * "ios": {
730
+ * "uniVer": "√",
731
+ * "unixVer": "4.11"
732
+ * }
733
+ * },
734
+ * "web": {
735
+ * "uniVer": "",
736
+ * "unixVer": "4.0"
737
+ * }
738
+ * }
739
+ */
740
+ callFunction<T = UTSJSONObject>(options: UniCloudCallFunctionOptions): Promise<UniCloudCallFunctionResult<T>>;
741
+ /**
742
+ * 上传文件到云存储
743
+ * @description 上传文件到云存储
744
+ * @uniPlatform {
745
+ * "app": {
746
+ * "android": {
747
+ * "osVer": "5.0",
748
+ * "uniVer": "√",
749
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
750
+ * },
751
+ * "ios": {
752
+ * "uniVer": "√",
753
+ * "unixVer": "4.11"
754
+ * }
755
+ * },
756
+ * "web": {
757
+ * "uniVer": "",
758
+ * "unixVer": "4.0"
759
+ * }
760
+ * }
761
+ */
762
+ uploadFile(options: UniCloudUploadFileOptions): Promise<UniCloudUploadFileResult>;
763
+ /**
764
+ * 获取文件临时URL
765
+ * @description 获取文件临时URL
766
+ * @uniPlatform {
767
+ * "app": {
768
+ * "android": {
769
+ * "osVer": "5.0",
770
+ * "uniVer": "√",
771
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
772
+ * },
773
+ * "ios": {
774
+ * "uniVer": "√",
775
+ * "unixVer": "4.11"
776
+ * }
777
+ * },
778
+ * "web": {
779
+ * "uniVer": "",
780
+ * "unixVer": "4.0"
781
+ * }
782
+ * }
783
+ */
784
+ getTempFileURL(options: UniCloudGetTempFileURLOptions): Promise<UniCloudGetTempFileURLResult>;
785
+ /**
786
+ * 引用云对象
787
+ * @description 引用云对象
788
+ * @uniPlatform {
789
+ * "app": {
790
+ * "android": {
791
+ * "osVer": "5.0",
792
+ * "uniVer": "√",
793
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
794
+ * },
795
+ * "ios": {
796
+ * "uniVer": "√",
797
+ * "unixVer": "4.11"
798
+ * }
799
+ * },
800
+ * "web": {
801
+ * "uniVer": "",
802
+ * "unixVer": "4.0"
803
+ * }
804
+ * }
805
+ */
806
+ importObject(objectName: string | string.CloudObjectString, options?: UniCloudImportObjectOptions): UniCloudCloudObjectCaller;
807
+ /**
808
+ * 监听响应事件
809
+ * @description 监听响应事件
810
+ * @uniPlatform {
811
+ * "app": {
812
+ * "android": {
813
+ * "osVer": "5.0",
814
+ * "uniVer": "√",
815
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
816
+ * },
817
+ * "ios": {
818
+ * "uniVer": "√",
819
+ * "unixVer": "4.11"
820
+ * }
821
+ * },
822
+ * "web": {
823
+ * "uniVer": "",
824
+ * "unixVer": "4.0"
825
+ * }
826
+ * }
827
+ */
828
+ onResponse(callback: UniCloudCallback<UniCloudResponseEvent>): void;
829
+ /**
830
+ * 移除响应事件监听
831
+ * @description 移除响应事件监听
832
+ * @uniPlatform {
833
+ * "app": {
834
+ * "android": {
835
+ * "osVer": "5.0",
836
+ * "uniVer": "√",
837
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
838
+ * },
839
+ * "ios": {
840
+ * "uniVer": "√",
841
+ * "unixVer": "4.11"
842
+ * }
843
+ * },
844
+ * "web": {
845
+ * "uniVer": "",
846
+ * "unixVer": "4.0"
847
+ * }
848
+ * }
849
+ */
850
+ offResponse(callback: UniCloudCallback<UniCloudResponseEvent>): void;
851
+ /**
852
+ * 监听token刷新事件
853
+ * @description 监听token刷新事件
854
+ * @uniPlatform {
855
+ * "app": {
856
+ * "android": {
857
+ * "osVer": "5.0",
858
+ * "uniVer": "√",
859
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
860
+ * },
861
+ * "ios": {
862
+ * "uniVer": "√",
863
+ * "unixVer": "4.11"
864
+ * }
865
+ * },
866
+ * "web": {
867
+ * "uniVer": "",
868
+ * "unixVer": "4.0"
869
+ * }
870
+ * }
871
+ */
872
+ onRefreshToken(callback: UniCloudCallback<UniCloudRefreshTokenEvent>): void;
873
+ /**
874
+ * 移除token刷新事件监听
875
+ * @description 移除token刷新事件监听
876
+ * @uniPlatform {
877
+ * "app": {
878
+ * "android": {
879
+ * "osVer": "5.0",
880
+ * "uniVer": "√",
881
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
882
+ * },
883
+ * "ios": {
884
+ * "uniVer": "√",
885
+ * "unixVer": "4.11"
886
+ * }
887
+ * },
888
+ * "web": {
889
+ * "uniVer": "",
890
+ * "unixVer": "4.0"
891
+ * }
892
+ * }
893
+ */
894
+ offRefreshToken(callback: UniCloudCallback<UniCloudRefreshTokenEvent>): void;
895
+ /**
896
+ * 获取数据库操作实例
897
+ * @description 获取数据库操作实例
898
+ * @uniPlatform {
899
+ * "app": {
900
+ * "android": {
901
+ * "osVer": "5.0",
902
+ * "uniVer": "√",
903
+ * "unixVer": "阿里云 3.91,腾讯云 3.91,支付宝云 3.98"
904
+ * },
905
+ * "ios": {
906
+ * "uniVer": "√",
907
+ * "unixVer": "4.11"
908
+ * }
909
+ * },
910
+ * "web": {
911
+ * "uniVer": "",
912
+ * "unixVer": "4.0"
913
+ * }
914
+ * }
915
+ */
916
+ databaseForJQL(): Database;
917
+ /**
918
+ * 获取token内缓存的用户信息
919
+ * @description 获取token内缓存的用户信息
920
+ * @uniPlatform {
921
+ * "app": {
922
+ * "android": {
923
+ * "osVer": "5.0",
924
+ * "uniVer": "√",
925
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
926
+ * },
927
+ * "ios": {
928
+ * "uniVer": "√",
929
+ * "unixVer": "4.11"
930
+ * }
931
+ * },
932
+ * "web": {
933
+ * "uniVer": "",
934
+ * "unixVer": "4.0"
935
+ * }
936
+ * }
937
+ */
938
+ getCurrentUserInfo(): UniCloudUserInfo;
939
+ /**
940
+ * 选择并上传文件
941
+ * @description 选择并上传文件
942
+ * @uniPlatform {
943
+ * "app": {
944
+ * "android": {
945
+ * "osVer": "5.0",
946
+ * "uniVer": "√",
947
+ * "unixVer": "阿里云 3.9,腾讯云 3.91,支付宝云 3.98"
948
+ * },
949
+ * "ios": {
950
+ * "uniVer": "√",
951
+ * "unixVer": "4.11"
952
+ * }
953
+ * },
954
+ * "web": {
955
+ * "uniVer": "",
956
+ * "unixVer": "4.0"
957
+ * }
958
+ * }
959
+ */
960
+ chooseAndUploadFile(options: UniCloudChooseAndUploadFileOptions): Promise<UniCloudChooseAndUploadFileResult>;
961
+ /**
962
+ * 连接 WebSocket
963
+ * @description 连接 WebSocket
964
+ * @uniPlatform {
965
+ * "app": {
966
+ * "android": {
967
+ * "osVer": "5.0",
968
+ * "uniVer": "4.23",
969
+ * "unixVer": "4.24"
970
+ * },
971
+ * "ios": {
972
+ * "uniVer": "4.23",
973
+ * "unixVer": "4.24"
974
+ * }
975
+ * },
976
+ * "web": {
977
+ * "uniVer": "4.23",
978
+ * "unixVer": "4.24"
979
+ * }
980
+ * }
981
+ */
982
+ connectWebSocket(options: UniCloudConnectWebSocketOptions): SocketTask;
983
+ }
984
+
985
+ declare const uniCloud: UniCloud;
986
+
987
+ export { type UniCloudCallFunctionOptions, type UniCloudCallFunctionResult, type UniCloudChooseAndUploadFileOptions, type UniCloudChooseAndUploadFileResult, type UniCloudChooseAndUploadFileItem, type UniCloudChooseAndUploadFileProgressEvent, type UniCloudDBAddResult, type UniCloudDBBatchAddResult, type UniCloudDBCountResult, UniCloudDBFilter, type UniCloudDBGetResult, UniCloudDBQuery, type UniCloudDBRemoveResult, type UniCloudDBUpdateResult, type UniCloudDBMultiSendResultItem, type UniCloudDBMultiSendResult, UniCloudError, type UniCloudGetTempFileURLOptions, type UniCloudGetTempFileURLResult, type UniCloudGetTempFileURLResultItem, type UniCloudImportObjectErrorOptions, type UniCloudImportObjectLoadingOptions, type UniCloudImportObjectOptions, type UniCloudInitOptions, type UniCloudRefreshTokenEvent, type UniCloudResponseEvent, type UniCloudUploadFileOptions, type UniCloudUploadFileResult, type UniCloudUploadProgress, type UniCloudUserInfo, uniCloud };