@dcloudio/uni-app-x 0.7.21 → 0.7.23

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 (337) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +27 -27
  6. package/types/app.d.ts +1002 -1002
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +7 -7
  9. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  10. package/types/native/CanvasRenderingContext2D.d.ts +3634 -2048
  11. package/types/native/DOMRect.d.ts +56 -56
  12. package/types/native/DrawableContext.d.ts +162 -162
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +2928 -2859
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/{IUniObjectElement.d.ts → IUniNativeViewElement.d.ts} +124 -124
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +269 -241
  22. package/types/native/SnapshotOptions.d.ts +63 -63
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniApp.d.ts +205 -205
  27. package/types/native/UniCallbackWrapper.d.ts +7 -7
  28. package/types/native/UniCanvasElement.d.ts +9 -9
  29. package/types/native/UniCustomEvent.d.ts +24 -24
  30. package/types/native/UniDocument.d.ts +83 -83
  31. package/types/native/UniElement.d.ts +79 -79
  32. package/types/native/UniError.d.ts +70 -70
  33. package/types/native/UniEvent.d.ts +92 -92
  34. package/types/native/UniFormControl.d.ts +8 -8
  35. package/types/native/UniFormControlElement.d.ts +14 -14
  36. package/types/native/UniImageErrorEvent.d.ts +33 -33
  37. package/types/native/UniImageLoadEvent.d.ts +37 -37
  38. package/types/native/UniInputBlurEvent.d.ts +36 -36
  39. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  40. package/types/native/UniInputEvent.d.ts +38 -38
  41. package/types/native/UniInputFocusEvent.d.ts +53 -53
  42. package/types/native/UniNativePage.d.ts +270 -270
  43. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  44. package/types/native/UniPageEvent.d.ts +10 -10
  45. package/types/native/UniPageManager.d.ts +27 -27
  46. package/types/native/UniPageScrollEvent.d.ts +13 -13
  47. package/types/native/UniPointerEvent.d.ts +74 -74
  48. package/types/native/UniProvider.d.ts +32 -15
  49. package/types/native/UniRefresherEvent.d.ts +18 -18
  50. package/types/native/UniResizeEvent.d.ts +34 -34
  51. package/types/native/UniResizeObserver.d.ts +184 -184
  52. package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
  53. package/types/native/UniScrollEvent.d.ts +42 -42
  54. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  55. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  56. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  57. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  58. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  59. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  60. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  61. package/types/native/UniTabTapEvent.d.ts +18 -18
  62. package/types/native/UniTabsElement.d.ts +59 -59
  63. package/types/native/UniTextElement.d.ts +34 -34
  64. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  65. package/types/native/UniTouchEvent.d.ts +64 -64
  66. package/types/native/UniVideoElement.d.ts +83 -75
  67. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  68. package/types/native/UniWebViewElement.d.ts +10 -10
  69. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  70. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  71. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  72. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  73. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  74. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  75. package/types/native/WebViewStyles.d.ts +20 -20
  76. package/types/native/global.d.ts +616 -598
  77. package/types/native/index.d.ts +71 -71
  78. package/types/native-global/index.d.ts +1 -1
  79. package/types/page.d.ts +1682 -1682
  80. package/types/process.d.ts +5 -5
  81. package/types/uni/base/index.d.ts +3 -3
  82. package/types/uni/env/index.d.ts +103 -103
  83. package/types/uni/global.d.ts +6 -6
  84. package/types/uni/index.d.ts +4 -4
  85. package/types/uni/uts-plugin-api/global.d.ts +58 -58
  86. package/types/uni/uts-plugin-api/index.d.ts +58 -58
  87. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
  88. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
  89. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
  90. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  91. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  92. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
  93. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -60
  94. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -29
  95. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +171 -161
  96. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  97. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  98. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
  99. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +22 -20
  100. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +10 -9
  101. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +332 -264
  102. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  103. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  104. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
  105. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
  106. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
  107. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
  108. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  109. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  110. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
  111. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  112. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  113. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  114. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  115. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  116. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -464
  117. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  118. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  119. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  120. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  121. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  122. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1400 -1336
  123. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  124. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  125. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +305 -305
  126. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  127. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  128. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +97 -91
  129. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  130. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  131. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
  132. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +142 -142
  133. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +70 -70
  134. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1881 -1840
  135. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  136. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  137. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  138. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  139. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +455 -329
  140. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  141. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  142. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
  143. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
  144. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
  145. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
  146. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  147. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  148. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
  149. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  150. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  151. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
  152. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  153. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  154. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
  155. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  156. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  157. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
  158. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  159. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  160. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1008 -563
  161. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  162. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  163. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  164. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  165. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  166. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  167. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  168. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  169. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  170. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
  171. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +36 -30
  172. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +17 -14
  173. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +521 -375
  174. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  175. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  176. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
  177. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  178. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  179. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2138 -2131
  180. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  181. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  182. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +207 -169
  183. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  184. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  185. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  186. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  187. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  188. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  189. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  190. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
  191. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  192. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  193. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +581 -564
  194. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  195. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  196. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
  197. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +160 -160
  198. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +79 -79
  199. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1386 -1339
  200. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  201. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  202. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
  203. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  204. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  205. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1539 -1493
  206. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  207. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  208. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  209. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  210. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
  211. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  212. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  213. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
  214. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  215. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  216. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +527 -240
  217. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  218. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  219. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  220. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  221. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  222. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  223. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +213 -21
  224. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  225. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  226. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
  227. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  228. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  229. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2695 -2165
  230. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  231. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  232. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
  233. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  234. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  235. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
  236. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +22 -0
  237. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +10 -0
  238. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +120 -0
  239. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  240. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  241. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
  242. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  243. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  244. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1106 -1086
  245. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
  246. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
  247. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  248. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  249. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +766 -364
  250. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  251. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  252. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +854 -844
  253. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  254. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  255. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
  256. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
  257. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +141 -141
  258. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  259. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  260. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
  261. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  262. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  263. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  264. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  265. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
  266. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  267. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  268. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  269. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  270. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
  271. package/types/uni/uts-plugin-extend/README.md +3 -3
  272. package/types/uni/uts-plugin-extend/global.d.ts +14 -14
  273. package/types/uni/uts-plugin-extend/index.d.ts +14 -14
  274. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  275. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  276. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
  277. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  278. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  279. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
  280. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
  281. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  282. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
  283. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  284. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  285. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
  286. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
  287. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
  288. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
  289. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
  290. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
  291. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
  292. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  293. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  294. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  295. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
  296. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
  297. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
  298. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  299. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  300. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  301. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  302. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  303. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
  304. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  305. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  306. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
  307. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  308. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  309. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
  310. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  311. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  312. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  313. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
  314. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
  315. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
  316. package/types/uni-cloud/index.d.ts +67 -67
  317. package/types/uni-cloud/interface.d.ts +987 -987
  318. package/types/uni-cloud/unicloud-db/index.ts +314 -314
  319. package/types/uni-global/index.d.ts +1 -1
  320. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  321. package/types/vue/LifeCycle.d.ts +55 -55
  322. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  323. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  324. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  325. package/types/vue/SliderChangeEvent.d.ts +35 -35
  326. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  327. package/types/vue/UniCanvasElement.d.ts +275 -275
  328. package/types/vue/UniCloudDBElement.d.ts +217 -217
  329. package/types/vue/UniFormElement.d.ts +54 -54
  330. package/types/vue/UniNavigatorElement.d.ts +11 -11
  331. package/types/vue/global.d.ts +191 -191
  332. package/types/vue/index.d.ts +10 -10
  333. package/types/vue-global/index.d.ts +1 -1
  334. package/uts-plugin.d.ts +27 -27
  335. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +0 -12
  336. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +0 -5
  337. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +0 -50
@@ -14,7 +14,7 @@ export interface Uni {
14
14
  * console.log("支付成功"+JSON.stringify(res))
15
15
  * }
16
16
  * });
17
- * ```
17
+ * ```
18
18
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#requestvirtualpayment
19
19
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#requestvirtualpayment
20
20
  * @uniPlatform {
@@ -83,7 +83,7 @@ export interface VirtualPaymentManager {
83
83
  * console.log("恢复成功"+JSON.stringify(res))
84
84
  * }
85
85
  * });
86
- * ```
86
+ * ```
87
87
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#restoretransactions
88
88
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#restoretransactions
89
89
  * @uniPlatform {
@@ -117,7 +117,7 @@ export interface VirtualPaymentManager {
117
117
  * console.log("获取成功"+JSON.stringify(res))
118
118
  * }
119
119
  * });
120
- * ```
120
+ * ```
121
121
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#getunfinishedtransactions
122
122
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#getunfinishedtransactions
123
123
  * @uniPlatform {
@@ -150,7 +150,7 @@ export interface VirtualPaymentManager {
150
150
  * console.log("关单成功"+JSON.stringify(res))
151
151
  * }
152
152
  * });
153
- * ```
153
+ * ```
154
154
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#finishtransaction
155
155
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/virtual-payment.html#finishtransaction
156
156
  * @uniPlatform {
@@ -178,23 +178,213 @@ export interface VirtualPaymentManager {
178
178
 
179
179
  /**
180
180
  * 错误码
181
- * - 700600 正在处理中,支付结果未知
182
- * - 700601 用户中途取消。
183
- * - 700602 网络连接出错。
184
- * - 700604 不允许App内购买项目, 请授权应用内购买权限。
185
- * - 700605 产品无效。
186
- * - 700606 促销信息错误。
187
- * - 700607 缺少支付参数。
188
- * - 700800 只支持iOS15以上的版本。
189
- * - 700000 其他未知错误。
190
181
  */
191
- export type RequestVirtualPaymentErrorCode = 700600 | 700601 | 700602 | 700604 | 700605 | 700606 | 700607 | 700800 | 700000;
182
+ export type RequestVirtualPaymentErrorCode =
183
+ /**
184
+ * 正在处理中,支付结果未知
185
+ * @uniPlatform {
186
+ * "app": {
187
+ * "android": {
188
+ * "osVer": "5.0",
189
+ * "uniVer": "x",
190
+ * "unixVer": "x"
191
+ * },
192
+ * "ios": {
193
+ * "osVer": "15.0",
194
+ * "uniVer": "√",
195
+ * "unixVer": "4.25"
196
+ * }
197
+ * },
198
+ * "web": {
199
+ * "uniVer": "x",
200
+ * "unixVer": "x"
201
+ * }
202
+ * }
203
+ */
204
+ 700600 |
205
+ /**
206
+ * 用户中途取消。
207
+ * @uniPlatform {
208
+ * "app": {
209
+ * "android": {
210
+ * "osVer": "5.0",
211
+ * "uniVer": "x",
212
+ * "unixVer": "x"
213
+ * },
214
+ * "ios": {
215
+ * "osVer": "15.0",
216
+ * "uniVer": "√",
217
+ * "unixVer": "4.25"
218
+ * }
219
+ * },
220
+ * "web": {
221
+ * "uniVer": "x",
222
+ * "unixVer": "x"
223
+ * }
224
+ * }
225
+ */
226
+ 700601 |
227
+ /**
228
+ * 网络连接出错。
229
+ * @uniPlatform {
230
+ * "app": {
231
+ * "android": {
232
+ * "osVer": "5.0",
233
+ * "uniVer": "x",
234
+ * "unixVer": "x"
235
+ * },
236
+ * "ios": {
237
+ * "osVer": "15.0",
238
+ * "uniVer": "√",
239
+ * "unixVer": "4.25"
240
+ * }
241
+ * },
242
+ * "web": {
243
+ * "uniVer": "x",
244
+ * "unixVer": "x"
245
+ * }
246
+ * }
247
+ */
248
+ 700602 |
249
+ /**
250
+ * 不允许App内购买项目, 请授权应用内购买权限。
251
+ * @uniPlatform {
252
+ * "app": {
253
+ * "android": {
254
+ * "osVer": "5.0",
255
+ * "uniVer": "x",
256
+ * "unixVer": "x"
257
+ * },
258
+ * "ios": {
259
+ * "osVer": "15.0",
260
+ * "uniVer": "√",
261
+ * "unixVer": "4.25"
262
+ * }
263
+ * },
264
+ * "web": {
265
+ * "uniVer": "x",
266
+ * "unixVer": "x"
267
+ * }
268
+ * }
269
+ */
270
+ 700604 |
271
+ /**
272
+ * 产品无效。
273
+ * @uniPlatform {
274
+ * "app": {
275
+ * "android": {
276
+ * "osVer": "5.0",
277
+ * "uniVer": "x",
278
+ * "unixVer": "x"
279
+ * },
280
+ * "ios": {
281
+ * "osVer": "15.0",
282
+ * "uniVer": "√",
283
+ * "unixVer": "4.25"
284
+ * }
285
+ * },
286
+ * "web": {
287
+ * "uniVer": "x",
288
+ * "unixVer": "x"
289
+ * }
290
+ * }
291
+ */
292
+ 700605 |
293
+ /**
294
+ * 促销信息错误。
295
+ * @uniPlatform {
296
+ * "app": {
297
+ * "android": {
298
+ * "osVer": "5.0",
299
+ * "uniVer": "x",
300
+ * "unixVer": "x"
301
+ * },
302
+ * "ios": {
303
+ * "osVer": "15.0",
304
+ * "uniVer": "√",
305
+ * "unixVer": "4.25"
306
+ * }
307
+ * },
308
+ * "web": {
309
+ * "uniVer": "x",
310
+ * "unixVer": "x"
311
+ * }
312
+ * }
313
+ */
314
+ 700606 |
315
+ /**
316
+ * 缺少支付参数。
317
+ * @uniPlatform {
318
+ * "app": {
319
+ * "android": {
320
+ * "osVer": "5.0",
321
+ * "uniVer": "x",
322
+ * "unixVer": "x"
323
+ * },
324
+ * "ios": {
325
+ * "osVer": "15.0",
326
+ * "uniVer": "√",
327
+ * "unixVer": "4.25"
328
+ * }
329
+ * },
330
+ * "web": {
331
+ * "uniVer": "x",
332
+ * "unixVer": "x"
333
+ * }
334
+ * }
335
+ */
336
+ 700607 |
337
+ /**
338
+ * 只支持iOS15以上的版本。
339
+ * @uniPlatform {
340
+ * "app": {
341
+ * "android": {
342
+ * "osVer": "5.0",
343
+ * "uniVer": "x",
344
+ * "unixVer": "x"
345
+ * },
346
+ * "ios": {
347
+ * "osVer": "15.0",
348
+ * "uniVer": "√",
349
+ * "unixVer": "4.25"
350
+ * }
351
+ * },
352
+ * "web": {
353
+ * "uniVer": "x",
354
+ * "unixVer": "x"
355
+ * }
356
+ * }
357
+ */
358
+ 700800 |
359
+ /**
360
+ * 其他未知错误。
361
+ * @uniPlatform {
362
+ * "app": {
363
+ * "android": {
364
+ * "osVer": "5.0",
365
+ * "uniVer": "x",
366
+ * "unixVer": "x"
367
+ * },
368
+ * "ios": {
369
+ * "osVer": "15.0",
370
+ * "uniVer": "√",
371
+ * "unixVer": "4.25"
372
+ * }
373
+ * },
374
+ * "web": {
375
+ * "uniVer": "x",
376
+ * "unixVer": "x"
377
+ * }
378
+ * }
379
+ */
380
+ 700000;
381
+
192
382
 
193
383
  export type RequestVirtualPayment = (options : RequestVirtualPaymentOptions) => void;
194
384
 
195
385
  export type AppleIAPPromotionalOffer = {
196
386
  /**
197
- * 促销id
387
+ * 促销id
198
388
  * @uniPlatform {
199
389
  * "app": {
200
390
  * "android": {
@@ -216,7 +406,7 @@ export type AppleIAPPromotionalOffer = {
216
406
  */
217
407
  offerIdentifier : string,
218
408
  /**
219
- * 密钥
409
+ * 密钥
220
410
  * @uniPlatform {
221
411
  * "app": {
222
412
  * "android": {
@@ -238,7 +428,7 @@ export type AppleIAPPromotionalOffer = {
238
428
  */
239
429
  keyIdentifier : string,
240
430
  /**
241
- * 唯一id (必须小写 24小时有效)
431
+ * 唯一id (必须小写 24小时有效)
242
432
  * @uniPlatform {
243
433
  * "app": {
244
434
  * "android": {
@@ -260,7 +450,7 @@ export type AppleIAPPromotionalOffer = {
260
450
  */
261
451
  nonce : string,
262
452
  /**
263
- * 签名
453
+ * 签名
264
454
  * @uniPlatform {
265
455
  * "app": {
266
456
  * "android": {
@@ -282,7 +472,7 @@ export type AppleIAPPromotionalOffer = {
282
472
  */
283
473
  signature : string,
284
474
  /**
285
- * 创建证书的时间戳(毫秒 24小时有效)
475
+ * 创建证书的时间戳(毫秒 24小时有效)
286
476
  * @uniPlatform {
287
477
  * "app": {
288
478
  * "android": {
@@ -305,9 +495,9 @@ export type AppleIAPPromotionalOffer = {
305
495
  timestamp : number
306
496
  }
307
497
 
308
- export type AppleIAPTransactionOptions = {
309
- /**
310
- * 产品id,和苹果开发者中心配置的一样
498
+ export type AppleIAPTransactionOptions = {
499
+ /**
500
+ * 产品id,和苹果开发者中心配置的一样
311
501
  * @uniPlatform {
312
502
  * "app": {
313
503
  * "android": {
@@ -325,11 +515,11 @@ export type AppleIAPTransactionOptions = {
325
515
  * "uniVer": "x",
326
516
  * "unixVer": "x"
327
517
  * }
328
- * }
329
- */
330
- productId : string,
331
- /**
332
- * 透传参数,一般用于标记订单和用户的关系,可以用来验证和关联用户账户和购买记录
518
+ * }
519
+ */
520
+ productId : string,
521
+ /**
522
+ * 透传参数,一般用于标记订单和用户的关系,可以用来验证和关联用户账户和购买记录
333
523
  * @uniPlatform {
334
524
  * "app": {
335
525
  * "android": {
@@ -347,11 +537,11 @@ export type AppleIAPTransactionOptions = {
347
537
  * "uniVer": "x",
348
538
  * "unixVer": "x"
349
539
  * }
350
- * }
351
- */
352
- appAccountToken ?: string | null,
353
- /**
354
- * 购买数量
540
+ * }
541
+ */
542
+ appAccountToken ?: string | null,
543
+ /**
544
+ * 购买数量
355
545
  * @uniPlatform {
356
546
  * "app": {
357
547
  * "android": {
@@ -369,11 +559,11 @@ export type AppleIAPTransactionOptions = {
369
559
  * "uniVer": "x",
370
560
  * "unixVer": "x"
371
561
  * }
372
- * }
373
- */
562
+ * }
563
+ */
374
564
  quantity : number,
375
565
  /**
376
- * 交易日期,示例 2022-01-01 08:00:00
566
+ * 交易日期,示例 2022-01-01 08:00:00
377
567
  * @uniPlatform {
378
568
  * "app": {
379
569
  * "android": {
@@ -395,7 +585,29 @@ export type AppleIAPTransactionOptions = {
395
585
  */
396
586
  transactionDate : Date,
397
587
  /**
398
- * 交易唯一标识
588
+ * 交易唯一标识
589
+ * @uniPlatform {
590
+ * "app": {
591
+ * "android": {
592
+ * "osVer": "5.0",
593
+ * "uniVer": "x",
594
+ * "unixVer": "x"
595
+ * },
596
+ * "ios": {
597
+ * "osVer": "15.0",
598
+ * "uniVer": "√",
599
+ * "unixVer": "4.25"
600
+ * }
601
+ * },
602
+ * "web": {
603
+ * "uniVer": "x",
604
+ * "unixVer": "x"
605
+ * }
606
+ * }
607
+ */
608
+ transactionIdentifier : string,
609
+ /**
610
+ * 原始交易日期,示例 2022-01-01 08:00:00
399
611
  * @uniPlatform {
400
612
  * "app": {
401
613
  * "android": {
@@ -415,31 +627,9 @@ export type AppleIAPTransactionOptions = {
415
627
  * }
416
628
  * }
417
629
  */
418
- transactionIdentifier : string,
419
- /**
420
- * 原始交易日期,示例 2022-01-01 08:00:00
421
- * @uniPlatform {
422
- * "app": {
423
- * "android": {
424
- * "osVer": "5.0",
425
- * "uniVer": "x",
426
- * "unixVer": "x"
427
- * },
428
- * "ios": {
429
- * "osVer": "15.0",
430
- * "uniVer": "√",
431
- * "unixVer": "4.25"
432
- * }
433
- * },
434
- * "web": {
435
- * "uniVer": "x",
436
- * "unixVer": "x"
437
- * }
438
- * }
439
- */
440
630
  originalTransactionDate : Date,
441
631
  /**
442
- * 原始交易唯一标识
632
+ * 原始交易唯一标识
443
633
  * @uniPlatform {
444
634
  * "app": {
445
635
  * "android": {
@@ -461,7 +651,7 @@ export type AppleIAPTransactionOptions = {
461
651
  */
462
652
  originalTransactionIdentifier : string,
463
653
  /**
464
- * 支付票据
654
+ * 支付票据
465
655
  * @uniPlatform {
466
656
  * "app": {
467
657
  * "android": {
@@ -493,9 +683,39 @@ export type WeixinIapSuccessOptions = {
493
683
 
494
684
  }
495
685
 
496
- export type RequestVirtualPaymentSuccess = {
686
+ export type RequestVirtualPaymentSuccess = {
687
+ /**
688
+ * 支付成功返回结果
689
+ * @uniPlatform {
690
+ * "app": {
691
+ * "android": {
692
+ * "osVer": "5.0",
693
+ * "uniVer": "x",
694
+ * "unixVer": "x"
695
+ * },
696
+ * "ios": {
697
+ * "osVer": "15.0",
698
+ * "uniVer": "√",
699
+ * "unixVer": "4.25"
700
+ * }
701
+ * },
702
+ * "web": {
703
+ * "uniVer": "x",
704
+ * "unixVer": "x"
705
+ * }
706
+ * }
707
+ */
708
+ apple ?: AppleIAPTransactionOptions | null,
709
+ // google ?: GoolgeIapSuccessOptions | null,
710
+ // huawei ?: HuaweiIapSuccessOptions | null,
711
+ // weixin ?: WeixinIapSuccessOptions | null,
712
+ };
713
+ export type RequestVirtualPaymentSuccessCallback = (result : RequestVirtualPaymentSuccess) => void;
714
+ export type RequestVirtualPaymentFail = IRequestVirtualPaymentFail;
715
+ export type RequestVirtualPaymentFailCallback = (result : RequestVirtualPaymentFail) => void;
716
+ export interface IRequestVirtualPaymentFail extends IUniError {
497
717
  /**
498
- * 支付成功返回结果
718
+ * 错误码
499
719
  * @uniPlatform {
500
720
  * "app": {
501
721
  * "android": {
@@ -515,15 +735,6 @@ export type RequestVirtualPaymentSuccess = {
515
735
  * }
516
736
  * }
517
737
  */
518
- apple ?: AppleIAPTransactionOptions | null,
519
- // google ?: GoolgeIapSuccessOptions | null,
520
- // huawei ?: HuaweiIapSuccessOptions | null,
521
- // weixin ?: WeixinIapSuccessOptions | null,
522
- };
523
- export type RequestVirtualPaymentSuccessCallback = (result : RequestVirtualPaymentSuccess) => void;
524
- export type RequestVirtualPaymentFail = IRequestVirtualPaymentFail;
525
- export type RequestVirtualPaymentFailCallback = (result : RequestVirtualPaymentFail) => void;
526
- export interface IRequestVirtualPaymentFail extends IUniError {
527
738
  errCode : RequestVirtualPaymentErrorCode
528
739
  };
529
740
  export type RequestVirtualPaymentComplete = any
@@ -531,29 +742,29 @@ export type RequestVirtualPaymentCompleteCallback = (result : RequestVirtualPaym
531
742
 
532
743
  export type AppleIAPOptions = {
533
744
  /**
534
- * 产品id,在苹果开发者中心配置
535
- * @uniPlatform {
536
- * "app": {
537
- * "android": {
538
- * "osVer": "5.0",
539
- * "uniVer": "x",
540
- * "unixVer": "x"
541
- * },
542
- * "ios": {
543
- * "osVer": "15.0",
544
- * "uniVer": "√",
545
- * "unixVer": "4.25"
546
- * }
547
- * },
548
- * "web": {
549
- * "uniVer": "x",
550
- * "unixVer": "x"
551
- * }
745
+ * 产品id,在苹果开发者中心配置
746
+ * @uniPlatform {
747
+ * "app": {
748
+ * "android": {
749
+ * "osVer": "5.0",
750
+ * "uniVer": "x",
751
+ * "unixVer": "x"
752
+ * },
753
+ * "ios": {
754
+ * "osVer": "15.0",
755
+ * "uniVer": "√",
756
+ * "unixVer": "4.25"
757
+ * }
758
+ * },
759
+ * "web": {
760
+ * "uniVer": "x",
761
+ * "unixVer": "x"
762
+ * }
552
763
  * }
553
764
  */
554
765
  productId : string,
555
766
  /**
556
- * 透传参数,一般用于标记订单和用户的关系,可以用来验证和关联用户账户和购买记录
767
+ * 透传参数,一般用于标记订单和用户的关系,可以用来验证和关联用户账户和购买记录
557
768
  * @uniPlatform {
558
769
  * "app": {
559
770
  * "android": {
@@ -575,7 +786,7 @@ export type AppleIAPOptions = {
575
786
  */
576
787
  appAccountToken ?: string | null,
577
788
  /**
578
- * 购买数量,默认是1,最小值是1,最大值是10
789
+ * 购买数量,默认是1,最小值是1,最大值是10
579
790
  * @uniPlatform {
580
791
  * "app": {
581
792
  * "android": {
@@ -597,7 +808,7 @@ export type AppleIAPOptions = {
597
808
  */
598
809
  quantity : number,
599
810
  /**
600
- * 促销优惠参数说明
811
+ * 促销优惠参数说明
601
812
  * @uniPlatform {
602
813
  * "app": {
603
814
  * "android": {
@@ -630,7 +841,7 @@ export type WeixinIapOptions = {
630
841
  };
631
842
  export type RequestVirtualPaymentOptions = {
632
843
  /**
633
- * 苹果IAP的参数
844
+ * 苹果IAP的参数
634
845
  * @uniPlatform {
635
846
  * "app": {
636
847
  * "android": {
@@ -660,72 +871,72 @@ export type RequestVirtualPaymentOptions = {
660
871
  // */
661
872
  // huawei ?: HuaweiIapOptions | null,
662
873
  // /**
663
- // * 微信虚拟支付的参数
874
+ // * 微信虚拟支付的参数
664
875
  // */
665
876
  // weixin ?: WeixinIapOptions | null,
666
877
  /**
667
- * 接口调用成功的回调函数
668
- * @uniPlatform {
669
- * "app": {
670
- * "android": {
671
- * "osVer": "5.0",
672
- * "uniVer": "x",
673
- * "unixVer": "x"
674
- * },
675
- * "ios": {
676
- * "osVer": "15.0",
677
- * "uniVer": "√",
678
- * "unixVer": "4.25"
679
- * }
680
- * },
681
- * "web": {
682
- * "uniVer": "x",
683
- * "unixVer": "x"
684
- * }
878
+ * 接口调用成功的回调函数
879
+ * @uniPlatform {
880
+ * "app": {
881
+ * "android": {
882
+ * "osVer": "5.0",
883
+ * "uniVer": "x",
884
+ * "unixVer": "x"
885
+ * },
886
+ * "ios": {
887
+ * "osVer": "15.0",
888
+ * "uniVer": "√",
889
+ * "unixVer": "4.25"
890
+ * }
891
+ * },
892
+ * "web": {
893
+ * "uniVer": "x",
894
+ * "unixVer": "x"
895
+ * }
685
896
  * }
686
897
  */
687
898
  success ?: RequestVirtualPaymentSuccessCallback | null,
688
899
  /**
689
- * 接口调用失败的回调函数
690
- * @uniPlatform {
691
- * "app": {
692
- * "android": {
693
- * "osVer": "5.0",
694
- * "uniVer": "x",
695
- * "unixVer": "x"
696
- * },
697
- * "ios": {
698
- * "osVer": "15.0",
699
- * "uniVer": "√",
700
- * "unixVer": "4.25"
701
- * }
702
- * },
703
- * "web": {
704
- * "uniVer": "x",
705
- * "unixVer": "x"
706
- * }
900
+ * 接口调用失败的回调函数
901
+ * @uniPlatform {
902
+ * "app": {
903
+ * "android": {
904
+ * "osVer": "5.0",
905
+ * "uniVer": "x",
906
+ * "unixVer": "x"
907
+ * },
908
+ * "ios": {
909
+ * "osVer": "15.0",
910
+ * "uniVer": "√",
911
+ * "unixVer": "4.25"
912
+ * }
913
+ * },
914
+ * "web": {
915
+ * "uniVer": "x",
916
+ * "unixVer": "x"
917
+ * }
707
918
  * }
708
919
  */
709
920
  fail ?: RequestVirtualPaymentFailCallback | null,
710
921
  /**
711
- * 接口调用结束的回调函数(调用成功、失败都会执行)
712
- * @uniPlatform {
713
- * "app": {
714
- * "android": {
715
- * "osVer": "5.0",
716
- * "uniVer": "x",
717
- * "unixVer": "x"
718
- * },
719
- * "ios": {
720
- * "osVer": "15.0",
721
- * "uniVer": "√",
722
- * "unixVer": "4.25"
723
- * }
724
- * },
725
- * "web": {
726
- * "uniVer": "x",
727
- * "unixVer": "x"
728
- * }
922
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
923
+ * @uniPlatform {
924
+ * "app": {
925
+ * "android": {
926
+ * "osVer": "5.0",
927
+ * "uniVer": "x",
928
+ * "unixVer": "x"
929
+ * },
930
+ * "ios": {
931
+ * "osVer": "15.0",
932
+ * "uniVer": "√",
933
+ * "unixVer": "4.25"
934
+ * }
935
+ * },
936
+ * "web": {
937
+ * "uniVer": "x",
938
+ * "unixVer": "x"
939
+ * }
729
940
  * }
730
941
  */
731
942
  complete ?: RequestVirtualPaymentCompleteCallback | null
@@ -734,9 +945,36 @@ export type RequestVirtualPaymentOptions = {
734
945
 
735
946
  //restoreTransactions
736
947
  export type RestoreTransactions = (options : AppleIAPRestoreOptions) => void;
737
- export type AppleIAPRestoreSuccess = {
948
+ export type AppleIAPRestoreSuccess = {
949
+ /**
950
+ * 返回的交易列表
951
+ * @uniPlatform {
952
+ * "app": {
953
+ * "android": {
954
+ * "osVer": "5.0",
955
+ * "uniVer": "x",
956
+ * "unixVer": "x"
957
+ * },
958
+ * "ios": {
959
+ * "osVer": "15.0",
960
+ * "uniVer": "√",
961
+ * "unixVer": "4.25"
962
+ * }
963
+ * },
964
+ * "web": {
965
+ * "uniVer": "x",
966
+ * "unixVer": "x"
967
+ * }
968
+ * }
969
+ */
970
+ transactions ?: AppleIAPTransactionOptions[] | null
971
+ };
972
+ export type AppleIAPRestoreSuccessCallback = (result : AppleIAPRestoreSuccess) => void;
973
+ export type AppleIAPRestoreFail = IAppleIAPRestoreFail;
974
+ export type AppleIAPRestoreFailCallback = (result : AppleIAPRestoreFail) => void;
975
+ export interface IAppleIAPRestoreFail extends IUniError {
738
976
  /**
739
- * 返回的交易列表
977
+ * 错误码
740
978
  * @uniPlatform {
741
979
  * "app": {
742
980
  * "android": {
@@ -756,89 +994,168 @@ export type AppleIAPRestoreSuccess = {
756
994
  * }
757
995
  * }
758
996
  */
759
- transactions ?: AppleIAPTransactionOptions[] | null
760
- };
761
- export type AppleIAPRestoreSuccessCallback = (result : AppleIAPRestoreSuccess) => void;
762
- export type AppleIAPRestoreFail = IAppleIAPRestoreFail;
763
- export type AppleIAPRestoreFailCallback = (result : AppleIAPRestoreFail) => void;
764
- export interface IAppleIAPRestoreFail extends IUniError {
765
997
  errCode : AppleIAPRestoreErrorCode
766
998
  };
767
999
  export type AppleIAPRestoreComplete = any
768
1000
  export type AppleIAPRestoreCompleteCallback = (result : AppleIAPRestoreComplete) => void;
769
1001
  /**
770
1002
  * 错误码
771
- * - 700600 apple restore 请求失败。
772
- * - 700601 用户中途取消。
773
- * - 700602 网络连接出错。
774
- * - 700800 只支持iOS15以上的版本。
775
1003
  */
776
- export type AppleIAPRestoreErrorCode = 700600 | 700601 | 700602 | 700800;
1004
+ export type AppleIAPRestoreErrorCode =
1005
+ /**
1006
+ * apple restore 请求失败。
1007
+ * @uniPlatform {
1008
+ * "app": {
1009
+ * "android": {
1010
+ * "osVer": "5.0",
1011
+ * "uniVer": "x",
1012
+ * "unixVer": "x"
1013
+ * },
1014
+ * "ios": {
1015
+ * "osVer": "15.0",
1016
+ * "uniVer": "√",
1017
+ * "unixVer": "4.25"
1018
+ * }
1019
+ * },
1020
+ * "web": {
1021
+ * "uniVer": "x",
1022
+ * "unixVer": "x"
1023
+ * }
1024
+ * }
1025
+ */
1026
+ 700600 |
1027
+ /**
1028
+ * 用户中途取消。
1029
+ * @uniPlatform {
1030
+ * "app": {
1031
+ * "android": {
1032
+ * "osVer": "5.0",
1033
+ * "uniVer": "x",
1034
+ * "unixVer": "x"
1035
+ * },
1036
+ * "ios": {
1037
+ * "osVer": "15.0",
1038
+ * "uniVer": "√",
1039
+ * "unixVer": "4.25"
1040
+ * }
1041
+ * },
1042
+ * "web": {
1043
+ * "uniVer": "x",
1044
+ * "unixVer": "x"
1045
+ * }
1046
+ * }
1047
+ */
1048
+ 700601 |
1049
+ /**
1050
+ * 网络连接出错。
1051
+ * @uniPlatform {
1052
+ * "app": {
1053
+ * "android": {
1054
+ * "osVer": "5.0",
1055
+ * "uniVer": "x",
1056
+ * "unixVer": "x"
1057
+ * },
1058
+ * "ios": {
1059
+ * "osVer": "15.0",
1060
+ * "uniVer": "√",
1061
+ * "unixVer": "4.25"
1062
+ * }
1063
+ * },
1064
+ * "web": {
1065
+ * "uniVer": "x",
1066
+ * "unixVer": "x"
1067
+ * }
1068
+ * }
1069
+ */
1070
+ 700602 |
1071
+ /**
1072
+ * 只支持iOS15以上的版本。
1073
+ * @uniPlatform {
1074
+ * "app": {
1075
+ * "android": {
1076
+ * "osVer": "5.0",
1077
+ * "uniVer": "x",
1078
+ * "unixVer": "x"
1079
+ * },
1080
+ * "ios": {
1081
+ * "osVer": "15.0",
1082
+ * "uniVer": "√",
1083
+ * "unixVer": "4.25"
1084
+ * }
1085
+ * },
1086
+ * "web": {
1087
+ * "uniVer": "x",
1088
+ * "unixVer": "x"
1089
+ * }
1090
+ * }
1091
+ */
1092
+ 700800;
1093
+
777
1094
 
778
1095
  export type AppleIAPRestoreOptions = {
779
1096
  /**
780
- * 接口调用成功的回调函数
781
- * @uniPlatform {
782
- * "app": {
783
- * "android": {
784
- * "osVer": "5.0",
785
- * "uniVer": "x",
786
- * "unixVer": "x"
787
- * },
788
- * "ios": {
789
- * "osVer": "15.0",
790
- * "uniVer": "√",
791
- * "unixVer": "4.25"
792
- * }
793
- * },
794
- * "web": {
795
- * "uniVer": "x",
796
- * "unixVer": "x"
797
- * }
1097
+ * 接口调用成功的回调函数
1098
+ * @uniPlatform {
1099
+ * "app": {
1100
+ * "android": {
1101
+ * "osVer": "5.0",
1102
+ * "uniVer": "x",
1103
+ * "unixVer": "x"
1104
+ * },
1105
+ * "ios": {
1106
+ * "osVer": "15.0",
1107
+ * "uniVer": "√",
1108
+ * "unixVer": "4.25"
1109
+ * }
1110
+ * },
1111
+ * "web": {
1112
+ * "uniVer": "x",
1113
+ * "unixVer": "x"
1114
+ * }
798
1115
  * }
799
1116
  */
800
1117
  success ?: AppleIAPRestoreSuccessCallback | null,
801
1118
  /**
802
- * 接口调用失败的回调函数
803
- * @uniPlatform {
804
- * "app": {
805
- * "android": {
806
- * "osVer": "5.0",
807
- * "uniVer": "x",
808
- * "unixVer": "x"
809
- * },
810
- * "ios": {
811
- * "osVer": "15.0",
812
- * "uniVer": "√",
813
- * "unixVer": "4.25"
814
- * }
815
- * },
816
- * "web": {
817
- * "uniVer": "x",
818
- * "unixVer": "x"
819
- * }
1119
+ * 接口调用失败的回调函数
1120
+ * @uniPlatform {
1121
+ * "app": {
1122
+ * "android": {
1123
+ * "osVer": "5.0",
1124
+ * "uniVer": "x",
1125
+ * "unixVer": "x"
1126
+ * },
1127
+ * "ios": {
1128
+ * "osVer": "15.0",
1129
+ * "uniVer": "√",
1130
+ * "unixVer": "4.25"
1131
+ * }
1132
+ * },
1133
+ * "web": {
1134
+ * "uniVer": "x",
1135
+ * "unixVer": "x"
1136
+ * }
820
1137
  * }
821
1138
  */
822
1139
  fail ?: AppleIAPRestoreFailCallback | null,
823
1140
  /**
824
- * 接口调用结束的回调函数(调用成功、失败都会执行)
825
- * @uniPlatform {
826
- * "app": {
827
- * "android": {
828
- * "osVer": "5.0",
829
- * "uniVer": "x",
830
- * "unixVer": "x"
831
- * },
832
- * "ios": {
833
- * "osVer": "15.0",
834
- * "uniVer": "√",
835
- * "unixVer": "4.25"
836
- * }
837
- * },
838
- * "web": {
839
- * "uniVer": "x",
840
- * "unixVer": "x"
841
- * }
1141
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1142
+ * @uniPlatform {
1143
+ * "app": {
1144
+ * "android": {
1145
+ * "osVer": "5.0",
1146
+ * "uniVer": "x",
1147
+ * "unixVer": "x"
1148
+ * },
1149
+ * "ios": {
1150
+ * "osVer": "15.0",
1151
+ * "uniVer": "√",
1152
+ * "unixVer": "4.25"
1153
+ * }
1154
+ * },
1155
+ * "web": {
1156
+ * "uniVer": "x",
1157
+ * "unixVer": "x"
1158
+ * }
842
1159
  * }
843
1160
  */
844
1161
  complete ?: AppleIAPRestoreCompleteCallback | null
@@ -848,9 +1165,36 @@ export type AppleIAPRestoreOptions = {
848
1165
 
849
1166
  //getUnfinishedTransactions
850
1167
  export type GetUnfinishedTransactions = (options : AppleIAPUnfinishedTransactionOptions) => void;
851
- export type AppleIAPUnfinishedTransactionSuccess = {
1168
+ export type AppleIAPUnfinishedTransactionSuccess = {
1169
+ /**
1170
+ * 返回的交易列表
1171
+ * @uniPlatform {
1172
+ * "app": {
1173
+ * "android": {
1174
+ * "osVer": "5.0",
1175
+ * "uniVer": "x",
1176
+ * "unixVer": "x"
1177
+ * },
1178
+ * "ios": {
1179
+ * "osVer": "15.0",
1180
+ * "uniVer": "√",
1181
+ * "unixVer": "4.25"
1182
+ * }
1183
+ * },
1184
+ * "web": {
1185
+ * "uniVer": "x",
1186
+ * "unixVer": "x"
1187
+ * }
1188
+ * }
1189
+ */
1190
+ transactions ?: AppleIAPTransactionOptions[] | null
1191
+ };
1192
+ export type AppleIAPUnfinishedTransactionSuccessCallback = (result : AppleIAPUnfinishedTransactionSuccess) => void;
1193
+ export type AppleIAPUnfinishedTransactionFail = IAppleIAPUnfinishedTransactionFail;
1194
+ export type AppleIAPUnfinishedTransactionFailCallback = (result : AppleIAPUnfinishedTransactionFail) => void;
1195
+ export interface IAppleIAPUnfinishedTransactionFail extends IUniError {
852
1196
  /**
853
- * 返回的交易列表
1197
+ * 错误码
854
1198
  * @uniPlatform {
855
1199
  * "app": {
856
1200
  * "android": {
@@ -870,12 +1214,6 @@ export type AppleIAPUnfinishedTransactionSuccess = {
870
1214
  * }
871
1215
  * }
872
1216
  */
873
- transactions ?: AppleIAPTransactionOptions[] | null
874
- };
875
- export type AppleIAPUnfinishedTransactionSuccessCallback = (result : AppleIAPUnfinishedTransactionSuccess) => void;
876
- export type AppleIAPUnfinishedTransactionFail = IAppleIAPUnfinishedTransactionFail;
877
- export type AppleIAPUnfinishedTransactionFailCallback = (result : AppleIAPUnfinishedTransactionFail) => void;
878
- export interface IAppleIAPUnfinishedTransactionFail extends IUniError {
879
1217
  errCode : AppleIAPUnfinishedTransactionErrorCode
880
1218
  };
881
1219
  export type AppleIAPUnfinishedTransactionComplete = any
@@ -888,68 +1226,68 @@ export type AppleIAPUnfinishedTransactionErrorCode = 700800;
888
1226
 
889
1227
  export type AppleIAPUnfinishedTransactionOptions = {
890
1228
  /**
891
- * 接口调用成功的回调函数
892
- * @uniPlatform {
893
- * "app": {
894
- * "android": {
895
- * "osVer": "5.0",
896
- * "uniVer": "x",
897
- * "unixVer": "x"
898
- * },
899
- * "ios": {
900
- * "osVer": "15.0",
901
- * "uniVer": "√",
902
- * "unixVer": "4.25"
903
- * }
904
- * },
905
- * "web": {
906
- * "uniVer": "x",
907
- * "unixVer": "x"
908
- * }
1229
+ * 接口调用成功的回调函数
1230
+ * @uniPlatform {
1231
+ * "app": {
1232
+ * "android": {
1233
+ * "osVer": "5.0",
1234
+ * "uniVer": "x",
1235
+ * "unixVer": "x"
1236
+ * },
1237
+ * "ios": {
1238
+ * "osVer": "15.0",
1239
+ * "uniVer": "√",
1240
+ * "unixVer": "4.25"
1241
+ * }
1242
+ * },
1243
+ * "web": {
1244
+ * "uniVer": "x",
1245
+ * "unixVer": "x"
1246
+ * }
909
1247
  * }
910
1248
  */
911
1249
  success ?: AppleIAPUnfinishedTransactionSuccessCallback | null,
912
1250
  /**
913
- * 接口调用失败的回调函数
914
- * @uniPlatform {
915
- * "app": {
916
- * "android": {
917
- * "osVer": "5.0",
918
- * "uniVer": "x",
919
- * "unixVer": "x"
920
- * },
921
- * "ios": {
922
- * "osVer": "15.0",
923
- * "uniVer": "√",
924
- * "unixVer": "4.25"
925
- * }
926
- * },
927
- * "web": {
928
- * "uniVer": "x",
929
- * "unixVer": "x"
930
- * }
1251
+ * 接口调用失败的回调函数
1252
+ * @uniPlatform {
1253
+ * "app": {
1254
+ * "android": {
1255
+ * "osVer": "5.0",
1256
+ * "uniVer": "x",
1257
+ * "unixVer": "x"
1258
+ * },
1259
+ * "ios": {
1260
+ * "osVer": "15.0",
1261
+ * "uniVer": "√",
1262
+ * "unixVer": "4.25"
1263
+ * }
1264
+ * },
1265
+ * "web": {
1266
+ * "uniVer": "x",
1267
+ * "unixVer": "x"
1268
+ * }
931
1269
  * }
932
1270
  */
933
1271
  fail ?: AppleIAPUnfinishedTransactionFailCallback | null,
934
1272
  /**
935
- * 接口调用结束的回调函数(调用成功、失败都会执行)
936
- * @uniPlatform {
937
- * "app": {
938
- * "android": {
939
- * "osVer": "5.0",
940
- * "uniVer": "x",
941
- * "unixVer": "x"
942
- * },
943
- * "ios": {
944
- * "osVer": "15.0",
945
- * "uniVer": "√",
946
- * "unixVer": "4.25"
947
- * }
948
- * },
949
- * "web": {
950
- * "uniVer": "x",
951
- * "unixVer": "x"
952
- * }
1273
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1274
+ * @uniPlatform {
1275
+ * "app": {
1276
+ * "android": {
1277
+ * "osVer": "5.0",
1278
+ * "uniVer": "x",
1279
+ * "unixVer": "x"
1280
+ * },
1281
+ * "ios": {
1282
+ * "osVer": "15.0",
1283
+ * "uniVer": "√",
1284
+ * "unixVer": "4.25"
1285
+ * }
1286
+ * },
1287
+ * "web": {
1288
+ * "uniVer": "x",
1289
+ * "unixVer": "x"
1290
+ * }
953
1291
  * }
954
1292
  */
955
1293
  complete ?: AppleIAPUnfinishedTransactionCompleteCallback | null
@@ -959,9 +1297,36 @@ export type AppleIAPUnfinishedTransactionOptions = {
959
1297
 
960
1298
  //finishTransaction 相关定义
961
1299
  export type FinishTransaction = (options : AppleIAPFinishTransactionOptions) => void;
962
- export type AppleIAPFinishTransactionSuccess = {
1300
+ export type AppleIAPFinishTransactionSuccess = {
1301
+ /**
1302
+ * 关单状态
1303
+ * @uniPlatform {
1304
+ * "app": {
1305
+ * "android": {
1306
+ * "osVer": "5.0",
1307
+ * "uniVer": "x",
1308
+ * "unixVer": "x"
1309
+ * },
1310
+ * "ios": {
1311
+ * "osVer": "15.0",
1312
+ * "uniVer": "√",
1313
+ * "unixVer": "4.25"
1314
+ * }
1315
+ * },
1316
+ * "web": {
1317
+ * "uniVer": "x",
1318
+ * "unixVer": "x"
1319
+ * }
1320
+ * }
1321
+ */
1322
+ state ?: boolean | null
1323
+ };
1324
+ export type AppleIAPFinishTransactionSuccessCallback = (result : AppleIAPFinishTransactionSuccess) => void;
1325
+ export type AppleIAPFinishTransactionFail = IAppleIAPFinishTransactionFail;
1326
+ export type AppleIAPFinishTransactionFailCallback = (result : AppleIAPFinishTransactionFail) => void;
1327
+ export interface IAppleIAPFinishTransactionFail extends IUniError {
963
1328
  /**
964
- * 关单状态
1329
+ * 错误码
965
1330
  * @uniPlatform {
966
1331
  * "app": {
967
1332
  * "android": {
@@ -981,110 +1346,147 @@ export type AppleIAPFinishTransactionSuccess = {
981
1346
  * }
982
1347
  * }
983
1348
  */
984
- state ?: boolean | null
985
- };
986
- export type AppleIAPFinishTransactionSuccessCallback = (result : AppleIAPFinishTransactionSuccess) => void;
987
- export type AppleIAPFinishTransactionFail = IAppleIAPFinishTransactionFail;
988
- export type AppleIAPFinishTransactionFailCallback = (result : AppleIAPFinishTransactionFail) => void;
989
- export interface IAppleIAPFinishTransactionFail extends IUniError {
990
1349
  errCode : AppleIAPFinishTransactionFailErrorCode
991
1350
  };
992
1351
  export type AppleIAPFinishTransactionComplete = any
993
1352
  export type AppleIAPFinishTransactionCompleteCallback = (result : AppleIAPFinishTransactionComplete) => void;
994
1353
  /**
995
1354
  * 错误码
996
- * - 700600 没有该交易。
997
- * - 700800 只支持iOS15以上的版本。
998
1355
  */
999
- export type AppleIAPFinishTransactionFailErrorCode = 700600 | 700800;
1356
+ export type AppleIAPFinishTransactionFailErrorCode =
1357
+ /**
1358
+ * 没有该交易。
1359
+ * @uniPlatform {
1360
+ * "app": {
1361
+ * "android": {
1362
+ * "osVer": "5.0",
1363
+ * "uniVer": "x",
1364
+ * "unixVer": "x"
1365
+ * },
1366
+ * "ios": {
1367
+ * "osVer": "15.0",
1368
+ * "uniVer": "√",
1369
+ * "unixVer": "4.25"
1370
+ * }
1371
+ * },
1372
+ * "web": {
1373
+ * "uniVer": "x",
1374
+ * "unixVer": "x"
1375
+ * }
1376
+ * }
1377
+ */
1378
+ 700600 |
1379
+ /**
1380
+ * 只支持iOS15以上的版本。
1381
+ * @uniPlatform {
1382
+ * "app": {
1383
+ * "android": {
1384
+ * "osVer": "5.0",
1385
+ * "uniVer": "x",
1386
+ * "unixVer": "x"
1387
+ * },
1388
+ * "ios": {
1389
+ * "osVer": "15.0",
1390
+ * "uniVer": "√",
1391
+ * "unixVer": "4.25"
1392
+ * }
1393
+ * },
1394
+ * "web": {
1395
+ * "uniVer": "x",
1396
+ * "unixVer": "x"
1397
+ * }
1398
+ * }
1399
+ */
1400
+ 700800;
1000
1401
 
1001
- export type AppleIAPFinishTransactionOptions = {
1002
- /**
1003
- * 交易对象
1004
- * @uniPlatform {
1005
- * "app": {
1006
- * "android": {
1007
- * "osVer": "5.0",
1008
- * "uniVer": "x",
1009
- * "unixVer": "x"
1010
- * },
1011
- * "ios": {
1012
- * "osVer": "15.0",
1013
- * "uniVer": "",
1014
- * "unixVer": "4.25"
1015
- * }
1016
- * },
1017
- * "web": {
1018
- * "uniVer": "x",
1019
- * "unixVer": "x"
1020
- * }
1021
- * }
1402
+
1403
+ export type AppleIAPFinishTransactionOptions = {
1404
+ /**
1405
+ * 交易对象
1406
+ * @uniPlatform {
1407
+ * "app": {
1408
+ * "android": {
1409
+ * "osVer": "5.0",
1410
+ * "uniVer": "x",
1411
+ * "unixVer": "x"
1412
+ * },
1413
+ * "ios": {
1414
+ * "osVer": "15.0",
1415
+ * "uniVer": "",
1416
+ * "unixVer": "4.25"
1417
+ * }
1418
+ * },
1419
+ * "web": {
1420
+ * "uniVer": "x",
1421
+ * "unixVer": "x"
1422
+ * }
1423
+ * }
1022
1424
  */
1023
1425
  transaction : AppleIAPTransactionOptions
1024
1426
  /**
1025
- * 接口调用成功的回调函数
1026
- * @uniPlatform {
1027
- * "app": {
1028
- * "android": {
1029
- * "osVer": "5.0",
1030
- * "uniVer": "x",
1031
- * "unixVer": "x"
1032
- * },
1033
- * "ios": {
1034
- * "osVer": "15.0",
1035
- * "uniVer": "√",
1036
- * "unixVer": "4.25"
1037
- * }
1038
- * },
1039
- * "web": {
1040
- * "uniVer": "x",
1041
- * "unixVer": "x"
1042
- * }
1427
+ * 接口调用成功的回调函数
1428
+ * @uniPlatform {
1429
+ * "app": {
1430
+ * "android": {
1431
+ * "osVer": "5.0",
1432
+ * "uniVer": "x",
1433
+ * "unixVer": "x"
1434
+ * },
1435
+ * "ios": {
1436
+ * "osVer": "15.0",
1437
+ * "uniVer": "√",
1438
+ * "unixVer": "4.25"
1439
+ * }
1440
+ * },
1441
+ * "web": {
1442
+ * "uniVer": "x",
1443
+ * "unixVer": "x"
1444
+ * }
1043
1445
  * }
1044
1446
  */
1045
1447
  success ?: AppleIAPFinishTransactionSuccessCallback | null,
1046
1448
  /**
1047
- * 接口调用失败的回调函数
1048
- * @uniPlatform {
1049
- * "app": {
1050
- * "android": {
1051
- * "osVer": "5.0",
1052
- * "uniVer": "x",
1053
- * "unixVer": "x"
1054
- * },
1055
- * "ios": {
1056
- * "osVer": "15.0",
1057
- * "uniVer": "√",
1058
- * "unixVer": "4.25"
1059
- * }
1060
- * },
1061
- * "web": {
1062
- * "uniVer": "x",
1063
- * "unixVer": "x"
1064
- * }
1449
+ * 接口调用失败的回调函数
1450
+ * @uniPlatform {
1451
+ * "app": {
1452
+ * "android": {
1453
+ * "osVer": "5.0",
1454
+ * "uniVer": "x",
1455
+ * "unixVer": "x"
1456
+ * },
1457
+ * "ios": {
1458
+ * "osVer": "15.0",
1459
+ * "uniVer": "√",
1460
+ * "unixVer": "4.25"
1461
+ * }
1462
+ * },
1463
+ * "web": {
1464
+ * "uniVer": "x",
1465
+ * "unixVer": "x"
1466
+ * }
1065
1467
  * }
1066
1468
  */
1067
1469
  fail ?: AppleIAPFinishTransactionFailCallback | null,
1068
1470
  /**
1069
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1070
- * @uniPlatform {
1071
- * "app": {
1072
- * "android": {
1073
- * "osVer": "5.0",
1074
- * "uniVer": "x",
1075
- * "unixVer": "x"
1076
- * },
1077
- * "ios": {
1078
- * "osVer": "15.0",
1079
- * "uniVer": "√",
1080
- * "unixVer": "4.25"
1081
- * }
1082
- * },
1083
- * "web": {
1084
- * "uniVer": "x",
1085
- * "unixVer": "x"
1086
- * }
1471
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1472
+ * @uniPlatform {
1473
+ * "app": {
1474
+ * "android": {
1475
+ * "osVer": "5.0",
1476
+ * "uniVer": "x",
1477
+ * "unixVer": "x"
1478
+ * },
1479
+ * "ios": {
1480
+ * "osVer": "15.0",
1481
+ * "uniVer": "√",
1482
+ * "unixVer": "4.25"
1483
+ * }
1484
+ * },
1485
+ * "web": {
1486
+ * "uniVer": "x",
1487
+ * "unixVer": "x"
1488
+ * }
1087
1489
  * }
1088
1490
  */
1089
1491
  complete ?: AppleIAPFinishTransactionCompleteCallback | null
1090
- };
1492
+ };