@tarojs/taro-h5 3.4.4 → 3.4.7

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 (153) hide show
  1. package/dist/api/device/scan.js +8 -4
  2. package/dist/api/location/chooseLocation.js +16 -7
  3. package/dist/api/location/getLocation.js +64 -0
  4. package/dist/api/location/index.js +6 -3
  5. package/dist/api/media/image/chooseImage.js +12 -1
  6. package/dist/api/media/image/getImageInfo.js +16 -1
  7. package/dist/api/network/request/index.js +4 -0
  8. package/dist/api/utils/index.js +30 -25
  9. package/dist/dist/api/ad/index.d.ts +6 -0
  10. package/dist/dist/api/ai/facial.d.ts +9 -0
  11. package/dist/dist/api/ai/index.d.ts +2 -0
  12. package/dist/dist/api/ai/visual.d.ts +6 -0
  13. package/dist/dist/api/alipay/index.d.ts +3 -0
  14. package/dist/dist/api/base/crypto.d.ts +3 -0
  15. package/dist/dist/api/base/debug.d.ts +9 -0
  16. package/dist/dist/api/base/index.d.ts +12 -0
  17. package/dist/dist/api/base/performance.d.ts +6 -0
  18. package/dist/dist/api/base/system.d.ts +25 -0
  19. package/dist/dist/api/base/update.d.ts +6 -0
  20. package/dist/dist/api/base/weapp/app-event.d.ts +48 -0
  21. package/dist/dist/api/base/weapp/life-cycle.d.ts +6 -0
  22. package/dist/dist/api/canvas/CanvasContext.d.ts +104 -0
  23. package/dist/dist/api/canvas/canvasGetImageData.d.ts +5 -0
  24. package/dist/dist/api/canvas/canvasPutImageData.d.ts +6 -0
  25. package/dist/dist/api/canvas/canvasToTempFilePath.d.ts +6 -0
  26. package/dist/dist/api/canvas/createCanvasContext.d.ts +5 -0
  27. package/dist/dist/api/canvas/index.d.ts +12 -0
  28. package/dist/dist/api/cloud/index.d.ts +31 -0
  29. package/dist/dist/api/data-analysis/index.d.ts +12 -0
  30. package/dist/dist/api/device/accelerometer.d.ts +17 -0
  31. package/dist/dist/api/device/accessibility.d.ts +3 -0
  32. package/dist/dist/api/device/battery.d.ts +5 -0
  33. package/dist/dist/api/device/bluetooth-ble.d.ts +48 -0
  34. package/dist/dist/api/device/bluetooth-peripheral.d.ts +9 -0
  35. package/dist/dist/api/device/bluetooth.d.ts +39 -0
  36. package/dist/dist/api/device/calendar.d.ts +6 -0
  37. package/dist/dist/api/device/clipboard.d.ts +15 -0
  38. package/dist/dist/api/device/compass.d.ts +17 -0
  39. package/dist/dist/api/device/contact.d.ts +6 -0
  40. package/dist/dist/api/device/crypto.d.ts +3 -0
  41. package/dist/dist/api/device/gyroscope.d.ts +12 -0
  42. package/dist/dist/api/device/iBeacon.d.ts +21 -0
  43. package/dist/dist/api/device/index.d.ts +23 -0
  44. package/dist/dist/api/device/keyboard.d.ts +12 -0
  45. package/dist/dist/api/device/memory.d.ts +6 -0
  46. package/dist/dist/api/device/motion.d.ts +17 -0
  47. package/dist/dist/api/device/network.d.ts +20 -0
  48. package/dist/dist/api/device/nfc.d.ts +21 -0
  49. package/dist/dist/api/device/phone.d.ts +2 -0
  50. package/dist/dist/api/device/scan.d.ts +3 -0
  51. package/dist/dist/api/device/screen.d.ts +18 -0
  52. package/dist/dist/api/device/vibrate.d.ts +9 -0
  53. package/dist/dist/api/device/wifi.d.ts +33 -0
  54. package/dist/dist/api/ext/index.d.ts +6 -0
  55. package/dist/dist/api/files/index.d.ts +24 -0
  56. package/dist/dist/api/framework/index.d.ts +4 -0
  57. package/dist/dist/api/index.d.ts +24 -0
  58. package/dist/dist/api/location/chooseLocation.d.ts +6 -0
  59. package/dist/dist/api/location/getLocation.d.ts +2 -0
  60. package/dist/dist/api/location/index.d.ts +29 -0
  61. package/dist/dist/api/media/EditorContext.d.ts +42 -0
  62. package/dist/dist/api/media/audio/InnerAudioContext.d.ts +58 -0
  63. package/dist/dist/api/media/audio/index.d.ts +29 -0
  64. package/dist/dist/api/media/background-audio/BackgroundAudioManager.d.ts +71 -0
  65. package/dist/dist/api/media/background-audio/index.d.ts +29 -0
  66. package/dist/dist/api/media/camera.d.ts +3 -0
  67. package/dist/dist/api/media/image/chooseImage.d.ts +5 -0
  68. package/dist/dist/api/media/image/getImageInfo.d.ts +5 -0
  69. package/dist/dist/api/media/image/index.d.ts +15 -0
  70. package/dist/dist/api/media/image/previewImage.d.ts +8 -0
  71. package/dist/dist/api/media/index.d.ts +12 -0
  72. package/dist/dist/api/media/live.d.ts +6 -0
  73. package/dist/dist/api/media/map.d.ts +3 -0
  74. package/dist/dist/api/media/media-recorder.d.ts +3 -0
  75. package/dist/dist/api/media/recorder.d.ts +9 -0
  76. package/dist/dist/api/media/video/index.d.ts +24 -0
  77. package/dist/dist/api/media/video-decoder.d.ts +3 -0
  78. package/dist/dist/api/media/video-processing.d.ts +3 -0
  79. package/dist/dist/api/media/voip.d.ts +42 -0
  80. package/dist/dist/api/navigate/index.d.ts +12 -0
  81. package/dist/dist/api/network/download.d.ts +6 -0
  82. package/dist/dist/api/network/index.d.ts +7 -0
  83. package/dist/dist/api/network/mdns.d.ts +30 -0
  84. package/dist/dist/api/network/request/index.d.ts +4 -0
  85. package/dist/dist/api/network/tcp.d.ts +3 -0
  86. package/dist/dist/api/network/udp.d.ts +3 -0
  87. package/dist/dist/api/network/upload.d.ts +5 -0
  88. package/dist/dist/api/network/utils.d.ts +44 -0
  89. package/dist/dist/api/network/websocket/index.d.ts +7 -0
  90. package/dist/dist/api/network/websocket/socketTask.d.ts +25 -0
  91. package/dist/dist/api/open-api/account.d.ts +3 -0
  92. package/dist/dist/api/open-api/address.d.ts +3 -0
  93. package/dist/dist/api/open-api/authorize.d.ts +6 -0
  94. package/dist/dist/api/open-api/card.d.ts +6 -0
  95. package/dist/dist/api/open-api/channels-live.d.ts +18 -0
  96. package/dist/dist/api/open-api/customer-service.d.ts +3 -0
  97. package/dist/dist/api/open-api/facial.d.ts +12 -0
  98. package/dist/dist/api/open-api/favorites.d.ts +6 -0
  99. package/dist/dist/api/open-api/group.d.ts +3 -0
  100. package/dist/dist/api/open-api/index.d.ts +18 -0
  101. package/dist/dist/api/open-api/invoice.d.ts +6 -0
  102. package/dist/dist/api/open-api/license-plate.d.ts +3 -0
  103. package/dist/dist/api/open-api/login.d.ts +9 -0
  104. package/dist/dist/api/open-api/red-package.d.ts +3 -0
  105. package/dist/dist/api/open-api/settings.d.ts +6 -0
  106. package/dist/dist/api/open-api/soter.d.ts +9 -0
  107. package/dist/dist/api/open-api/subscribe-message.d.ts +3 -0
  108. package/dist/dist/api/open-api/user-info.d.ts +6 -0
  109. package/dist/dist/api/open-api/werun.d.ts +6 -0
  110. package/dist/dist/api/payment/index.d.ts +6 -0
  111. package/dist/dist/api/route/index.d.ts +1 -0
  112. package/dist/dist/api/share/index.d.ts +30 -0
  113. package/dist/dist/api/storage/background-fetch.d.ts +12 -0
  114. package/dist/dist/api/storage/index.d.ts +18 -0
  115. package/dist/dist/api/swan/index.d.ts +63 -0
  116. package/dist/dist/api/taro.d.ts +12 -0
  117. package/dist/dist/api/ui/animation/index.d.ts +2 -0
  118. package/dist/dist/api/ui/background.d.ts +6 -0
  119. package/dist/dist/api/ui/custom-component.d.ts +1 -0
  120. package/dist/dist/api/ui/fonts.d.ts +2 -0
  121. package/dist/dist/api/ui/index.d.ts +12 -0
  122. package/dist/dist/api/ui/interaction/actionSheet.d.ts +61 -0
  123. package/dist/dist/api/ui/interaction/index.d.ts +14 -0
  124. package/dist/dist/api/ui/interaction/modal.d.ts +69 -0
  125. package/dist/dist/api/ui/interaction/toast.d.ts +85 -0
  126. package/dist/dist/api/ui/menu.d.ts +3 -0
  127. package/dist/dist/api/ui/navigation-bar/index.d.ts +15 -0
  128. package/dist/dist/api/ui/pull-down-refresh.d.ts +9 -0
  129. package/dist/dist/api/ui/scroll/index.d.ts +5 -0
  130. package/dist/dist/api/ui/sticky.d.ts +3 -0
  131. package/dist/dist/api/ui/tab-bar.d.ts +34 -0
  132. package/dist/dist/api/ui/window.d.ts +15 -0
  133. package/dist/dist/api/utils/handler.d.ts +48 -0
  134. package/dist/dist/api/utils/index.d.ts +45 -0
  135. package/dist/dist/api/worker/index.d.ts +3 -0
  136. package/dist/dist/api/wxml/index.d.ts +5 -0
  137. package/dist/dist/api/wxml/nodesRef.d.ts +13 -0
  138. package/dist/dist/api/wxml/selectorQuery.d.ts +24 -0
  139. package/dist/dist/index.d.ts +4 -0
  140. package/dist/dist/types/type.d.ts +29 -0
  141. package/dist/index.cjs.js +4675 -8471
  142. package/dist/index.cjs.js.map +1 -0
  143. package/dist/taroApis.js +1 -0
  144. package/dist/taroApis.js.map +1 -0
  145. package/package.json +12 -9
  146. package/src/api/device/scan.ts +8 -4
  147. package/src/api/location/chooseLocation.ts +14 -4
  148. package/src/api/location/getLocation.ts +80 -0
  149. package/src/api/location/index.ts +6 -3
  150. package/src/api/media/image/chooseImage.ts +18 -1
  151. package/src/api/media/image/getImageInfo.ts +16 -1
  152. package/src/api/network/request/index.ts +4 -0
  153. package/src/api/utils/index.ts +39 -23
@@ -0,0 +1,71 @@
1
+ import Taro from '@tarojs/api';
2
+ import { CallbackManager } from '../../utils/handler';
3
+ export declare class BackgroundAudioManager implements Taro.BackgroundAudioManager {
4
+ Instance?: HTMLAudioElement;
5
+ errorStack: CallbackManager;
6
+ stopStack: CallbackManager;
7
+ __startTime: number;
8
+ constructor();
9
+ set src(e: string);
10
+ get src(): string;
11
+ set startTime(e: number);
12
+ get startTime(): number;
13
+ set title(e: string);
14
+ get title(): string;
15
+ set epname(e: string);
16
+ get epname(): string;
17
+ set singer(e: string);
18
+ get singer(): string;
19
+ set coverImgUrl(e: string);
20
+ get coverImgUrl(): string;
21
+ set webUrl(e: string);
22
+ get webUrl(): string;
23
+ set protocol(e: string);
24
+ get protocol(): string;
25
+ set playbackRate(e: number);
26
+ get playbackRate(): number;
27
+ get duration(): number;
28
+ get currentTime(): number;
29
+ get paused(): boolean;
30
+ get buffered(): number;
31
+ set referrerPolicy(e: string);
32
+ get referrerPolicy(): string;
33
+ private setProperty;
34
+ private dataset;
35
+ play: () => Promise<void> | undefined;
36
+ pause: () => void | undefined;
37
+ seek: (position: number) => void;
38
+ stop: () => void;
39
+ onCanplay: (callback?: () => void) => void | undefined;
40
+ onWaiting: (callback?: () => void) => void | undefined;
41
+ onError: (callback?: ((res: Taro.InnerAudioContext.onErrorDetail) => void) | undefined) => void;
42
+ onPlay: (callback?: () => void) => void | undefined;
43
+ onPause: (callback?: () => void) => void | undefined;
44
+ onSeeking: (callback?: () => void) => void | undefined;
45
+ onSeeked: (callback?: () => void) => void | undefined;
46
+ onEnded: (callback?: () => void) => void | undefined;
47
+ onStop: (callback?: () => void) => void;
48
+ onTimeUpdate: (callback?: () => void) => void | undefined;
49
+ onPrev: () => Promise<{
50
+ errMsg: string;
51
+ }>;
52
+ onNext: () => Promise<{
53
+ errMsg: string;
54
+ }>;
55
+ offCanplay: (callback?: () => void) => void | undefined;
56
+ offWaiting: (callback?: () => void) => void | undefined;
57
+ offError: (callback?: () => void) => void;
58
+ offPlay: (callback?: () => void) => void | undefined;
59
+ offPause: (callback?: () => void) => void | undefined;
60
+ offSeeking: (callback?: () => void) => void | undefined;
61
+ offSeeked: (callback?: () => void) => void | undefined;
62
+ offEnded: (callback?: () => void) => void | undefined;
63
+ offStop: (callback?: () => void) => void;
64
+ offTimeUpdate: (callback?: () => void) => void | undefined;
65
+ offPrev: () => Promise<{
66
+ errMsg: string;
67
+ }>;
68
+ offNext: () => Promise<{
69
+ errMsg: string;
70
+ }>;
71
+ }
@@ -0,0 +1,29 @@
1
+ import { BackgroundAudioManager } from './BackgroundAudioManager';
2
+ export declare const stopBackgroundAudio: () => Promise<{
3
+ errMsg: string;
4
+ }>;
5
+ export declare const seekBackgroundAudio: () => Promise<{
6
+ errMsg: string;
7
+ }>;
8
+ export declare const playBackgroundAudio: () => Promise<{
9
+ errMsg: string;
10
+ }>;
11
+ export declare const pauseBackgroundAudio: () => Promise<{
12
+ errMsg: string;
13
+ }>;
14
+ export declare const onBackgroundAudioStop: () => Promise<{
15
+ errMsg: string;
16
+ }>;
17
+ export declare const onBackgroundAudioPlay: () => Promise<{
18
+ errMsg: string;
19
+ }>;
20
+ export declare const onBackgroundAudioPause: () => Promise<{
21
+ errMsg: string;
22
+ }>;
23
+ export declare const getBackgroundAudioPlayerState: () => Promise<{
24
+ errMsg: string;
25
+ }>;
26
+ /**
27
+ * 获取全局唯一的背景音频管理器
28
+ */
29
+ export declare const getBackgroundAudioManager: () => BackgroundAudioManager;
@@ -0,0 +1,3 @@
1
+ export declare const createCameraContext: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,5 @@
1
+ import Taro from '@tarojs/api';
2
+ /**
3
+ * 从本地相册选择图片或使用相机拍照。
4
+ */
5
+ export declare const chooseImage: typeof Taro.chooseImage;
@@ -0,0 +1,5 @@
1
+ import Taro from '@tarojs/api';
2
+ /**
3
+ * 获取图片信息。网络图片需先配置download域名才能生效。
4
+ */
5
+ export declare const getImageInfo: typeof Taro.getImageInfo;
@@ -0,0 +1,15 @@
1
+ export declare const saveImageToPhotosAlbum: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const previewMedia: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export * from './previewImage';
8
+ export * from './getImageInfo';
9
+ export declare const compressImage: () => Promise<{
10
+ errMsg: string;
11
+ }>;
12
+ export declare const chooseMessageFile: () => Promise<{
13
+ errMsg: string;
14
+ }>;
15
+ export * from './chooseImage';
@@ -0,0 +1,8 @@
1
+ import Taro from '@tarojs/api';
2
+ /**
3
+ * previewImage api基于开源的React组件[react-wx-images-viewer](https://github.com/react-ld/react-wx-images-viewer)开发,感谢!
4
+ */
5
+ /**
6
+ * 在新页面中全屏预览图片。预览的过程中用户可以进行保存图片、发送给朋友等操作。
7
+ */
8
+ export declare const previewImage: typeof Taro.previewImage;
@@ -0,0 +1,12 @@
1
+ export * from './audio';
2
+ export * from './background-audio';
3
+ export * from './camera';
4
+ export * from './image';
5
+ export * from './live';
6
+ export * from './map';
7
+ export * from './media-recorder';
8
+ export * from './recorder';
9
+ export * from './video';
10
+ export * from './video-decoder';
11
+ export * from './video-processing';
12
+ export * from './voip';
@@ -0,0 +1,6 @@
1
+ export declare const createLivePusherContext: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const createLivePlayerContext: () => Promise<{
5
+ errMsg: string;
6
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const createMapContext: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const createMediaRecorder: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,9 @@
1
+ export declare const stopRecord: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const startRecord: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const getRecorderManager: () => Promise<{
8
+ errMsg: string;
9
+ }>;
@@ -0,0 +1,24 @@
1
+ import Taro from '@tarojs/api';
2
+ export declare const saveVideoToPhotosAlbum: () => Promise<{
3
+ errMsg: string;
4
+ }>;
5
+ export declare const openVideoEditor: () => Promise<{
6
+ errMsg: string;
7
+ }>;
8
+ export declare const getVideoInfo: () => Promise<{
9
+ errMsg: string;
10
+ }>;
11
+ /**
12
+ * 创建 video 上下文 VideoContext 对象。
13
+ */
14
+ export declare const createVideoContext: typeof Taro.createVideoContext;
15
+ export declare const compressVideo: () => Promise<{
16
+ errMsg: string;
17
+ }>;
18
+ /**
19
+ * 拍摄视频或从手机相册中选视频。
20
+ */
21
+ export declare const chooseVideo: typeof Taro.chooseVideo;
22
+ export declare const chooseMedia: () => Promise<{
23
+ errMsg: string;
24
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const createVideoDecoder: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const createMediaContainer: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,42 @@
1
+ export declare const updateVoIPChatMuteConfig: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const subscribeVoIPVideoMembers: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const setEnable1v1Chat: () => Promise<{
8
+ errMsg: string;
9
+ }>;
10
+ export declare const onVoIPVideoMembersChanged: () => Promise<{
11
+ errMsg: string;
12
+ }>;
13
+ export declare const onVoIPChatStateChanged: () => Promise<{
14
+ errMsg: string;
15
+ }>;
16
+ export declare const onVoIPChatSpeakersChanged: () => Promise<{
17
+ errMsg: string;
18
+ }>;
19
+ export declare const onVoIPChatMembersChanged: () => Promise<{
20
+ errMsg: string;
21
+ }>;
22
+ export declare const onVoIPChatInterrupted: () => Promise<{
23
+ errMsg: string;
24
+ }>;
25
+ export declare const offVoIPVideoMembersChanged: () => Promise<{
26
+ errMsg: string;
27
+ }>;
28
+ export declare const offVoIPChatStateChanged: () => Promise<{
29
+ errMsg: string;
30
+ }>;
31
+ export declare const offVoIPChatMembersChanged: () => Promise<{
32
+ errMsg: string;
33
+ }>;
34
+ export declare const offVoIPChatInterrupted: () => Promise<{
35
+ errMsg: string;
36
+ }>;
37
+ export declare const joinVoIPChat: () => Promise<{
38
+ errMsg: string;
39
+ }>;
40
+ export declare const exitVoIPChat: () => Promise<{
41
+ errMsg: string;
42
+ }>;
@@ -0,0 +1,12 @@
1
+ export declare const openEmbeddedMiniProgram: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const navigateToMiniProgram: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const navigateBackMiniProgram: () => Promise<{
8
+ errMsg: string;
9
+ }>;
10
+ export declare const exitMiniProgram: () => Promise<{
11
+ errMsg: string;
12
+ }>;
@@ -0,0 +1,6 @@
1
+ import Taro from '@tarojs/api';
2
+ /**
3
+ * 下载文件资源到本地。客户端直接发起一个 HTTPS GET 请求,返回文件的本地临时路径。使用前请注意阅读相关说明。
4
+ * 注意:请在服务端响应的 header 中指定合理的 Content-Type 字段,以保证客户端正确处理文件类型。
5
+ */
6
+ export declare const downloadFile: typeof Taro.downloadFile;
@@ -0,0 +1,7 @@
1
+ export * from './download';
2
+ export * from './mdns';
3
+ export * from './request';
4
+ export * from './tcp';
5
+ export * from './udp';
6
+ export * from './upload';
7
+ export * from './websocket';
@@ -0,0 +1,30 @@
1
+ export declare const stopLocalServiceDiscovery: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const startLocalServiceDiscovery: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const onLocalServiceResolveFail: () => Promise<{
8
+ errMsg: string;
9
+ }>;
10
+ export declare const onLocalServiceLost: () => Promise<{
11
+ errMsg: string;
12
+ }>;
13
+ export declare const onLocalServiceFound: () => Promise<{
14
+ errMsg: string;
15
+ }>;
16
+ export declare const onLocalServiceDiscoveryStop: () => Promise<{
17
+ errMsg: string;
18
+ }>;
19
+ export declare const offLocalServiceResolveFail: () => Promise<{
20
+ errMsg: string;
21
+ }>;
22
+ export declare const offLocalServiceLost: () => Promise<{
23
+ errMsg: string;
24
+ }>;
25
+ export declare const offLocalServiceFound: () => Promise<{
26
+ errMsg: string;
27
+ }>;
28
+ export declare const offLocalServiceDiscoveryStop: () => Promise<{
29
+ errMsg: string;
30
+ }>;
@@ -0,0 +1,4 @@
1
+ import Taro from '@tarojs/api';
2
+ import 'whatwg-fetch';
3
+ export declare const request: typeof Taro.request;
4
+ export declare const addInterceptor: any;
@@ -0,0 +1,3 @@
1
+ export declare const createTCPSocket: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const createUDPSocket: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,5 @@
1
+ import Taro from '@tarojs/api';
2
+ /**
3
+ * 将本地资源上传到服务器。客户端发起一个 HTTPS POST 请求,其中 content-type 为 multipart/form-data。使用前请注意阅读相关说明。
4
+ */
5
+ export declare const uploadFile: typeof Taro.uploadFile;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * HTTP Response Header 事件回调函数的参数
3
+ * @typedef {Object} HeadersReceivedParam
4
+ * @property {Object} header 开发者服务器返回的 HTTP Response Header
5
+ */
6
+ /**
7
+ * HTTP Response Header 事件的回调函数
8
+ * @callback HeadersReceivedCallback
9
+ * @param {HeadersReceivedParam} res 参数
10
+ */
11
+ /**
12
+ * 进度变化回调函数的参数
13
+ * @typedef {Object} ProgressUpdateParam
14
+ * @property {number} progress 进度百分比
15
+ * @property {number} [totalBytesWritten] 已经下载的数据长度,单位 Bytes
16
+ * @property {number} [totalBytesSent] 已经上传的数据长度,单位 Bytes
17
+ * @property {number} [totalBytesExpectedToWrite] 预期需要下载的数据总长度,单位 Bytes
18
+ * @property {number} [totalBytesExpectedToSend] 预期需要上传的数据总长度,单位 Bytes
19
+ */
20
+ /**
21
+ * 进度变化事件的回调函数
22
+ * @callback ProgressUpdateCallback
23
+ * @param {ProgressUpdateParam} res 参数
24
+ */
25
+ export declare const NETWORK_TIMEOUT = 60000;
26
+ export declare const XHR_STATS: {
27
+ UNSENT: number;
28
+ OPENED: number;
29
+ HEADERS_RECEIVED: number;
30
+ LOADING: number;
31
+ DONE: number;
32
+ };
33
+ /**
34
+ * 设置xhr的header
35
+ * @param {XMLHttpRequest} xhr
36
+ * @param {Object} header
37
+ */
38
+ export declare const setHeader: (xhr: any, header: any) => void;
39
+ /**
40
+ * 将 blob url 转化为文件
41
+ * @param {string} url 要转换的 blob url
42
+ * @returns {Promise<File>}
43
+ */
44
+ export declare const convertObjectUrlToBlob: (url: any) => Promise<unknown>;
@@ -0,0 +1,7 @@
1
+ export declare function sendSocketMessage(): void;
2
+ export declare function onSocketOpen(): void;
3
+ export declare function onSocketMessage(): void;
4
+ export declare function onSocketError(): void;
5
+ export declare function onSocketClose(): void;
6
+ export declare function connectSocket(options: any): Promise<unknown>;
7
+ export declare function closeSocket(): void;
@@ -0,0 +1,25 @@
1
+ import Taro from '@tarojs/api';
2
+ export declare class SocketTask {
3
+ ws: WebSocket;
4
+ CONNECTING: number;
5
+ OPEN: number;
6
+ CLOSING: number;
7
+ CLOSED: number;
8
+ closeDetail: {
9
+ code: any;
10
+ reason: any;
11
+ };
12
+ _destroyWhenClose?: () => void;
13
+ constructor(url: any, protocols: any);
14
+ get readyState(): number;
15
+ send(opts?: Partial<Taro.SocketTask.SendOption>): Promise<{
16
+ errMsg: string;
17
+ }>;
18
+ close(opts?: Partial<Taro.SocketTask.CloseOption>): Promise<{
19
+ errMsg: string;
20
+ }>;
21
+ onOpen(func: any): void;
22
+ onMessage(func: any): void;
23
+ onClose(func: any): void;
24
+ onError(func: any): void;
25
+ }
@@ -0,0 +1,3 @@
1
+ export declare const getAccountInfoSync: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const chooseAddress: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare const authorizeForMiniProgram: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const authorize: () => Promise<{
5
+ errMsg: string;
6
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare const openCard: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const addCard: () => Promise<{
5
+ errMsg: string;
6
+ }>;
@@ -0,0 +1,18 @@
1
+ export declare const reserveChannelsLive: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const openChannelsLive: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const openChannelsEvent: () => Promise<{
8
+ errMsg: string;
9
+ }>;
10
+ export declare const openChannelsActivity: () => Promise<{
11
+ errMsg: string;
12
+ }>;
13
+ export declare const getChannelsLiveNoticeInfo: () => Promise<{
14
+ errMsg: string;
15
+ }>;
16
+ export declare const getChannelsLiveInfo: () => Promise<{
17
+ errMsg: string;
18
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const openCustomerServiceChat: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,12 @@
1
+ export declare const checkIsSupportFacialRecognition: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const startFacialRecognitionVerify: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const startFacialRecognitionVerifyAndUploadVideo: () => Promise<{
8
+ errMsg: string;
9
+ }>;
10
+ export declare const faceVerifyForPay: () => Promise<{
11
+ errMsg: string;
12
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare const addVideoToFavorites: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const addFileToFavorites: () => Promise<{
5
+ errMsg: string;
6
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const getGroupEnterInfo: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,18 @@
1
+ export * from './account';
2
+ export * from './address';
3
+ export * from './authorize';
4
+ export * from './card';
5
+ export * from './channels-live';
6
+ export * from './customer-service';
7
+ export * from './facial';
8
+ export * from './favorites';
9
+ export * from './group';
10
+ export * from './invoice';
11
+ export * from './license-plate';
12
+ export * from './login';
13
+ export * from './red-package';
14
+ export * from './settings';
15
+ export * from './soter';
16
+ export * from './subscribe-message';
17
+ export * from './user-info';
18
+ export * from './werun';
@@ -0,0 +1,6 @@
1
+ export declare const chooseInvoiceTitle: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const chooseInvoice: () => Promise<{
5
+ errMsg: string;
6
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const chooseLicensePlate: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,9 @@
1
+ export declare const pluginLogin: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const login: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const checkSession: () => Promise<{
8
+ errMsg: string;
9
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const showRedPackage: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare const openSetting: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const getSetting: () => Promise<{
5
+ errMsg: string;
6
+ }>;
@@ -0,0 +1,9 @@
1
+ export declare const startSoterAuthentication: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const checkIsSupportSoterAuthentication: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const checkIsSoterEnrolledInDevice: () => Promise<{
8
+ errMsg: string;
9
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare const requestSubscribeMessage: () => Promise<{
2
+ errMsg: string;
3
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare const getUserProfile: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const getUserInfo: () => Promise<{
5
+ errMsg: string;
6
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare const shareToWeRun: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const getWeRunData: () => Promise<{
5
+ errMsg: string;
6
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare const requestPayment: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const requestOrderPayment: () => Promise<{
5
+ errMsg: string;
6
+ }>;
@@ -0,0 +1 @@
1
+ export { switchTab, reLaunch, redirectTo, navigateTo, navigateBack } from '@tarojs/router';
@@ -0,0 +1,30 @@
1
+ export declare const updateShareMenu: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const showShareMenu: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const showShareImageMenu: () => Promise<{
8
+ errMsg: string;
9
+ }>;
10
+ export declare const shareVideoMessage: () => Promise<{
11
+ errMsg: string;
12
+ }>;
13
+ export declare const shareFileMessage: () => Promise<{
14
+ errMsg: string;
15
+ }>;
16
+ export declare const onCopyUrl: () => Promise<{
17
+ errMsg: string;
18
+ }>;
19
+ export declare const offCopyUrl: () => Promise<{
20
+ errMsg: string;
21
+ }>;
22
+ export declare const hideShareMenu: () => Promise<{
23
+ errMsg: string;
24
+ }>;
25
+ export declare const getShareInfo: () => Promise<{
26
+ errMsg: string;
27
+ }>;
28
+ export declare const authPrivateMessage: () => Promise<{
29
+ errMsg: string;
30
+ }>;
@@ -0,0 +1,12 @@
1
+ export declare const setBackgroundFetchToken: () => Promise<{
2
+ errMsg: string;
3
+ }>;
4
+ export declare const onBackgroundFetchData: () => Promise<{
5
+ errMsg: string;
6
+ }>;
7
+ export declare const getBackgroundFetchToken: () => Promise<{
8
+ errMsg: string;
9
+ }>;
10
+ export declare const getBackgroundFetchData: () => Promise<{
11
+ errMsg: string;
12
+ }>;