@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.
- package/.prettierrc +5 -5
- package/README.md +1 -1
- package/index.d.ts +1 -1
- package/options.d.ts +9 -9
- package/package.json +27 -27
- package/types/app.d.ts +1002 -842
- package/types/index.d.ts +7 -7
- package/types/native/AsyncApiResult.d.ts +7 -7
- package/types/native/CSSStyleDeclaration.d.ts +25 -25
- package/types/native/CanvasRenderingContext2D.d.ts +2048 -2047
- package/types/native/DOMRect.d.ts +56 -56
- package/types/native/DrawableContext.d.ts +162 -162
- package/types/native/INavigationBar.d.ts +22 -22
- package/types/native/IUniElement.d.ts +2859 -2859
- package/types/native/IUniError.d.ts +20 -20
- package/types/native/IUniForm.d.ts +9 -9
- package/types/native/IUniObjectElement.d.ts +124 -124
- package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
- package/types/native/NodeData.d.ts +22 -22
- package/types/native/PageNode.d.ts +6 -6
- package/types/native/Path2D.d.ts +240 -240
- package/types/native/SnapshotOptions.d.ts +63 -63
- package/types/native/SourceError.d.ts +46 -46
- package/types/native/UTSAndroidHookProxy.d.ts +14 -14
- package/types/native/UniAggregateError.d.ts +19 -19
- package/types/native/UniApp.d.ts +205 -205
- package/types/native/UniCallbackWrapper.d.ts +7 -7
- package/types/native/UniCanvasElement.d.ts +9 -9
- package/types/native/UniCustomEvent.d.ts +24 -24
- package/types/native/UniDocument.d.ts +83 -83
- package/types/native/UniElement.d.ts +79 -79
- package/types/native/UniError.d.ts +70 -70
- package/types/native/UniEvent.d.ts +92 -92
- package/types/native/UniFormControl.d.ts +8 -8
- package/types/native/UniFormControlElement.d.ts +14 -14
- package/types/native/UniImageErrorEvent.d.ts +33 -33
- package/types/native/UniImageLoadEvent.d.ts +37 -37
- package/types/native/UniInputBlurEvent.d.ts +36 -36
- package/types/native/UniInputConfirmEvent.d.ts +30 -30
- package/types/native/UniInputEvent.d.ts +38 -38
- package/types/native/UniInputFocusEvent.d.ts +53 -53
- package/types/native/UniNativePage.d.ts +270 -270
- package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
- package/types/native/UniPageEvent.d.ts +10 -10
- package/types/native/UniPageManager.d.ts +27 -20
- package/types/native/UniPageScrollEvent.d.ts +13 -13
- package/types/native/UniPointerEvent.d.ts +74 -74
- package/types/native/UniProvider.d.ts +15 -15
- package/types/native/UniRefresherEvent.d.ts +18 -18
- package/types/native/UniResizeEvent.d.ts +34 -34
- package/types/native/UniResizeObserver.d.ts +184 -184
- package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
- package/types/native/UniScrollEvent.d.ts +42 -42
- package/types/native/UniScrollToLowerEvent.d.ts +23 -23
- package/types/native/UniScrollToUpperEvent.d.ts +23 -23
- package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
- package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
- package/types/native/UniSwiperChangeEvent.d.ts +44 -44
- package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
- package/types/native/UniTabTapEvent.d.ts +18 -18
- package/types/native/UniTabsElement.d.ts +59 -59
- package/types/native/UniTextElement.d.ts +34 -34
- package/types/native/UniTextareaFocusEvent.d.ts +54 -54
- package/types/native/UniTouchEvent.d.ts +64 -64
- package/types/native/UniVideoElement.d.ts +75 -75
- package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
- package/types/native/UniWebViewElement.d.ts +10 -10
- package/types/native/UniWebViewErrorEvent.d.ts +59 -59
- package/types/native/UniWebViewLoadEvent.d.ts +41 -41
- package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
- package/types/native/UniWebViewMessageEvent.d.ts +36 -36
- package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
- package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
- package/types/native/WebViewStyles.d.ts +20 -20
- package/types/native/global.d.ts +598 -598
- package/types/native/index.d.ts +71 -71
- package/types/native-global/index.d.ts +1 -1
- package/types/page.d.ts +1682 -1682
- package/types/process.d.ts +5 -5
- package/types/uni/base/index.d.ts +3 -3
- package/types/uni/env/index.d.ts +103 -103
- package/types/uni/global.d.ts +6 -6
- package/types/uni/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/global.d.ts +58 -57
- package/types/uni/uts-plugin-api/index.d.ts +58 -57
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
- package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +50 -50
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +161 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +264 -242
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -427
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1336 -1336
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +305 -305
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +91 -91
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +142 -142
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +70 -70
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1840 -1840
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +329 -329
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +563 -564
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +30 -32
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +14 -15
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +375 -375
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2131 -2131
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +169 -169
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +564 -564
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +160 -160
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +79 -79
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1339 -1339
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1493 -1493
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +240 -240
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -74
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -36
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +193 -8
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2165 -2165
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1086 -1086
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +844 -844
- package/types/uni/uts-plugin-biz/global.d.ts +4 -4
- package/types/uni/uts-plugin-biz/index.d.ts +4 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +141 -141
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +808 -778
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
- package/types/uni/uts-plugin-component/global.d.ts +1 -1
- package/types/uni/uts-plugin-component/index.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
- package/types/uni/uts-plugin-extend/README.md +3 -3
- package/types/uni/uts-plugin-extend/global.d.ts +14 -14
- package/types/uni/uts-plugin-extend/index.d.ts +14 -14
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
- package/types/uni-cloud/index.d.ts +67 -63
- package/types/uni-cloud/interface.d.ts +987 -991
- package/types/uni-cloud/unicloud-db/index.ts +314 -314
- package/types/uni-global/index.d.ts +1 -1
- package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
- package/types/vue/LifeCycle.d.ts +55 -55
- package/types/vue/PickerViewChangeEvent.d.ts +41 -41
- package/types/vue/ProgressActiveendEvent.d.ts +32 -32
- package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
- package/types/vue/SliderChangeEvent.d.ts +35 -35
- package/types/vue/SwitchChangeEvent.d.ts +32 -32
- package/types/vue/UniCanvasElement.d.ts +275 -275
- package/types/vue/UniCloudDBElement.d.ts +217 -217
- package/types/vue/UniFormElement.d.ts +54 -54
- package/types/vue/UniNavigatorElement.d.ts +11 -11
- package/types/vue/global.d.ts +191 -191
- package/types/vue/index.d.ts +10 -10
- package/types/vue-global/index.d.ts +1 -1
- package/uts-plugin.d.ts +27 -27
- 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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
type UniCloudCallFunctionOptions = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
type UniCloudCallFunctionResult<T = UTSJSONObject> = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
type UniCloudUploadProgress = {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
type UniCloudUploadFileOptions = {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
};
|
|
93
|
-
type UniCloudUploadFileResult = {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
};
|
|
103
|
-
type UniCloudGetTempFileURLOptions = {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
};
|
|
109
|
-
type UniCloudGetTempFileURLResultItem = {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
};
|
|
119
|
-
type UniCloudGetTempFileURLResult = {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
};
|
|
125
|
-
type UniCloudResponseEvent = {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
};
|
|
139
|
-
type UniCloudRefreshTokenEvent = {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
};
|
|
149
|
-
type UniCloudDBAddResult = {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
};
|
|
159
|
-
type UniCloudDBBatchAddResult = {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
};
|
|
173
|
-
type UniCloudDBUpdateResult = {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
};
|
|
183
|
-
type UniCloudDBRemoveResult = {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
};
|
|
193
|
-
type UniCloudDBGetResult = {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
};
|
|
207
|
-
type UniCloudDBCountResult = {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
};
|
|
217
|
-
type UniCloudDBMultiSendResultItem = {
|
|
218
|
-
/**
|
|
219
|
-
* 错误码,可能为字符串或数字,数字0表示成功
|
|
220
|
-
*/
|
|
221
|
-
errCode
|
|
222
|
-
/**
|
|
223
|
-
* 错误信息
|
|
224
|
-
*/
|
|
225
|
-
errMsg
|
|
226
|
-
/**
|
|
227
|
-
* 数据
|
|
228
|
-
*/
|
|
229
|
-
data
|
|
230
|
-
}
|
|
231
|
-
type UniCloudDBMultiSendResult = {
|
|
232
|
-
/**
|
|
233
|
-
* 数据列表
|
|
234
|
-
*/
|
|
235
|
-
dataList
|
|
236
|
-
/**
|
|
237
|
-
* 请求id
|
|
238
|
-
*/
|
|
239
|
-
requestId
|
|
240
|
-
}
|
|
241
|
-
type UniCloudUserInfo = {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
declare class UniCloudError extends Error {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
declare class EventEmitter<T> {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
declare class UniCloudUnified {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
declare class InternalUniCloudCloudObjectCaller {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
type UniCloudCloudObjectCaller = InternalUniCloudCloudObjectCaller & Record<string, <T = UTSJSONObject>(...args: Array<any | null>) => Promise<T>>;
|
|
336
|
-
|
|
337
|
-
type UniCloudImportObjectLoadingOptions = {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
};
|
|
347
|
-
type UniCloudImportObjectErrorOptions = {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
};
|
|
357
|
-
type UniCloudImportObjectOptions = {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
};
|
|
371
|
-
declare class InternalUniCloudCloudObject {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
declare class Stage {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
390
|
-
declare class Stages {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
declare class UniCloudDBQuery {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
declare class UniCloudDBFilter {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
declare class Collection {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
declare class UniCloudDBCommand {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
declare class Geometry extends UTSJSONObject {
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
declare class GeoPoint extends Geometry {
|
|
556
|
-
|
|
557
|
-
}
|
|
558
|
-
declare class GeoLineString extends Geometry {
|
|
559
|
-
|
|
560
|
-
}
|
|
561
|
-
declare class GeoPolygon extends Geometry {
|
|
562
|
-
|
|
563
|
-
}
|
|
564
|
-
declare class GeoMultiPoint extends Geometry {
|
|
565
|
-
|
|
566
|
-
}
|
|
567
|
-
declare class GeoMultiLineString extends Geometry {
|
|
568
|
-
|
|
569
|
-
}
|
|
570
|
-
declare class GeoMultiPolygon extends Geometry {
|
|
571
|
-
|
|
572
|
-
}
|
|
573
|
-
declare class UniCloudDBGeo {
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
declare class Database {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
type UniCloudChooseAndUploadFileOptions = {
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
};
|
|
643
|
-
type UniCloudChooseAndUploadFileProgressEvent = {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
};
|
|
650
|
-
type UniCloudChooseAndUploadFileResult = {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
};
|
|
654
|
-
type
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
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 };
|