@ray-js/api 1.7.79 → 1.7.80
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/@types/AIKit.d.ts +1140 -1009
- package/@types/AVideoKit.d.ts +26 -101
- package/@types/BaseKit.d.ts +234 -210
- package/@types/BizKit.d.ts +271 -296
- package/@types/DeviceKit.d.ts +57 -88
- package/@types/GroupCITestKit.d.ts +1 -3
- package/@types/HealthKit.d.ts +273 -230
- package/@types/HomeKit.d.ts +1062 -891
- package/@types/IPCKit.d.ts +23 -50
- package/@types/LightKit.d.ts +2 -2
- package/@types/MapKit.d.ts +592 -381
- package/@types/MediaPlayerKit.d.ts +4 -28
- package/@types/MiniKit.d.ts +198 -375
- package/@types/P2PKit.d.ts +139 -205
- package/@types/PayKit.d.ts +10 -79
- package/@types/SweeperKit.d.ts +10 -10
- package/@types/ThirdAuthKit.d.ts +28 -252
- package/@types/WearKit.d.ts +630 -1593
- package/@types/api-extend.d.ts +0 -63
- package/lib/AIKit-1.6.0.d.ts +732 -35
- package/lib/AIKit-1.6.0.js +732 -51
- package/lib/BaseKit-3.17.7.d.ts +0 -214
- package/lib/BaseKit-3.17.7.js +1 -227
- package/lib/DeviceKit-4.13.1.d.ts +3666 -0
- package/lib/DeviceKit-4.13.1.js +3666 -0
- package/lib/HealthKit-6.5.0.d.ts +603 -0
- package/lib/HealthKit-6.5.0.js +603 -0
- package/lib/HomeKit-3.1.4.d.ts +4 -0
- package/lib/HomeKit-3.1.4.js +4 -0
- package/lib/IPCKit-6.4.5.d.ts +0 -1
- package/lib/IPCKit-6.4.5.js +0 -1
- package/lib/MapKit-3.4.13.d.ts +251 -0
- package/lib/MapKit-3.4.13.js +251 -0
- package/lib/MediaKit-3.4.1.d.ts +16 -0
- package/lib/MediaKit-3.4.1.js +16 -0
- package/lib/PlayNetKit-1.3.30.d.ts +930 -0
- package/lib/PlayNetKit-1.3.30.js +930 -0
- package/lib/cloud/alarm.d.ts +38 -5
- package/lib/cloud/alarm.js +38 -5
- package/lib/cloud/device.d.ts +42 -6
- package/lib/cloud/device.js +42 -6
- package/lib/cloud/gateway.d.ts +16 -0
- package/lib/cloud/gateway.js +16 -0
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +272 -0
- package/lib/cloud/interface.d.ts +161 -0
- package/lib/cloud/interface.js +18 -0
- package/lib/cloud/statistic.d.ts +112 -26
- package/lib/cloud/statistic.js +112 -26
- package/lib/cloud/timer.d.ts +2 -4
- package/lib/nativeRouters/outdoors.d.ts +2 -0
- package/lib/nativeRouters/outdoors.js +2 -0
- package/lib/nativeRouters/remoteGroup.d.ts +2 -0
- package/lib/nativeRouters/remoteGroup.js +2 -0
- package/lib/panel/publishDps.js +1 -1
- package/package.json +5 -5
package/@types/MiniKit.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* MiniKit
|
|
3
3
|
*
|
|
4
|
-
* @version 3.33.
|
|
4
|
+
* @version 3.33.2
|
|
5
5
|
*/
|
|
6
6
|
declare namespace ty {
|
|
7
7
|
/**
|
|
@@ -79,7 +79,7 @@ declare namespace ty {
|
|
|
79
79
|
* 缓存数据
|
|
80
80
|
* @since MiniKit 3.20.2
|
|
81
81
|
*/
|
|
82
|
-
fetchedData:
|
|
82
|
+
fetchedData: {}
|
|
83
83
|
/**
|
|
84
84
|
* 客户端拿到缓存数据的时间戳
|
|
85
85
|
* @since MiniKit 3.20.2
|
|
@@ -121,7 +121,7 @@ declare namespace ty {
|
|
|
121
121
|
nativeDisabled: boolean
|
|
122
122
|
/**
|
|
123
123
|
* 需要禁止或启用手势分发的页面id
|
|
124
|
-
* @since MiniKit 2.
|
|
124
|
+
* @since MiniKit 2.3.12
|
|
125
125
|
*/
|
|
126
126
|
pageId: string
|
|
127
127
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
@@ -176,11 +176,11 @@ declare namespace ty {
|
|
|
176
176
|
* 参数等
|
|
177
177
|
* @since MiniKit 2.3.0
|
|
178
178
|
*/
|
|
179
|
-
params: Record<string,
|
|
179
|
+
params: Record<string, Object>
|
|
180
180
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
181
181
|
complete?: () => void
|
|
182
182
|
/** 接口调用成功的回调函数 */
|
|
183
|
-
success?: (params:
|
|
183
|
+
success?: (params: {}) => void
|
|
184
184
|
/** 接口调用失败的回调函数 */
|
|
185
185
|
fail?: (params: {
|
|
186
186
|
/** 错误信息 */
|
|
@@ -239,7 +239,7 @@ declare namespace ty {
|
|
|
239
239
|
export function getPermissionConfigSync(): {
|
|
240
240
|
/**
|
|
241
241
|
* 权限相关配置信息
|
|
242
|
-
* @since MiniKit 2.
|
|
242
|
+
* @since MiniKit 3.2.0
|
|
243
243
|
*/
|
|
244
244
|
result: Record<string, any>
|
|
245
245
|
}
|
|
@@ -294,7 +294,7 @@ declare namespace ty {
|
|
|
294
294
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
295
295
|
complete?: () => void
|
|
296
296
|
/** 接口调用成功的回调函数 */
|
|
297
|
-
success?: () => void
|
|
297
|
+
success?: (params: null) => void
|
|
298
298
|
/** 接口调用失败的回调函数 */
|
|
299
299
|
fail?: (params: {
|
|
300
300
|
/** 错误信息 */
|
|
@@ -321,7 +321,7 @@ declare namespace ty {
|
|
|
321
321
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
322
322
|
complete?: () => void
|
|
323
323
|
/** 接口调用成功的回调函数 */
|
|
324
|
-
success?: () => void
|
|
324
|
+
success?: (params: null) => void
|
|
325
325
|
/** 接口调用失败的回调函数 */
|
|
326
326
|
fail?: (params: {
|
|
327
327
|
/** 错误信息 */
|
|
@@ -353,7 +353,7 @@ declare namespace ty {
|
|
|
353
353
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
354
354
|
complete?: () => void
|
|
355
355
|
/** 接口调用成功的回调函数 */
|
|
356
|
-
success?: () => void
|
|
356
|
+
success?: (params: null) => void
|
|
357
357
|
/** 接口调用失败的回调函数 */
|
|
358
358
|
fail?: (params: {
|
|
359
359
|
/** 错误信息 */
|
|
@@ -385,7 +385,7 @@ declare namespace ty {
|
|
|
385
385
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
386
386
|
complete?: () => void
|
|
387
387
|
/** 接口调用成功的回调函数 */
|
|
388
|
-
success?: () => void
|
|
388
|
+
success?: (params: null) => void
|
|
389
389
|
/** 接口调用失败的回调函数 */
|
|
390
390
|
fail?: (params: {
|
|
391
391
|
/** 错误信息 */
|
|
@@ -432,7 +432,7 @@ declare namespace ty {
|
|
|
432
432
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
433
433
|
complete?: () => void
|
|
434
434
|
/** 接口调用成功的回调函数 */
|
|
435
|
-
success?: () => void
|
|
435
|
+
success?: (params: null) => void
|
|
436
436
|
/** 接口调用失败的回调函数 */
|
|
437
437
|
fail?: (params: {
|
|
438
438
|
/** 错误信息 */
|
|
@@ -479,7 +479,7 @@ declare namespace ty {
|
|
|
479
479
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
480
480
|
complete?: () => void
|
|
481
481
|
/** 接口调用成功的回调函数 */
|
|
482
|
-
success?: () => void
|
|
482
|
+
success?: (params: null) => void
|
|
483
483
|
/** 接口调用失败的回调函数 */
|
|
484
484
|
fail?: (params: {
|
|
485
485
|
/** 错误信息 */
|
|
@@ -516,7 +516,7 @@ declare namespace ty {
|
|
|
516
516
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
517
517
|
complete?: () => void
|
|
518
518
|
/** 接口调用成功的回调函数 */
|
|
519
|
-
success?: () => void
|
|
519
|
+
success?: (params: null) => void
|
|
520
520
|
/** 接口调用失败的回调函数 */
|
|
521
521
|
fail?: (params: {
|
|
522
522
|
/** 错误信息 */
|
|
@@ -548,7 +548,7 @@ declare namespace ty {
|
|
|
548
548
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
549
549
|
complete?: () => void
|
|
550
550
|
/** 接口调用成功的回调函数 */
|
|
551
|
-
success?: () => void
|
|
551
|
+
success?: (params: null) => void
|
|
552
552
|
/** 接口调用失败的回调函数 */
|
|
553
553
|
fail?: (params: {
|
|
554
554
|
/** 错误信息 */
|
|
@@ -580,7 +580,7 @@ declare namespace ty {
|
|
|
580
580
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
581
581
|
complete?: () => void
|
|
582
582
|
/** 接口调用成功的回调函数 */
|
|
583
|
-
success?: () => void
|
|
583
|
+
success?: (params: null) => void
|
|
584
584
|
/** 接口调用失败的回调函数 */
|
|
585
585
|
fail?: (params: {
|
|
586
586
|
/** 错误信息 */
|
|
@@ -612,7 +612,7 @@ declare namespace ty {
|
|
|
612
612
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
613
613
|
complete?: () => void
|
|
614
614
|
/** 接口调用成功的回调函数 */
|
|
615
|
-
success?: () => void
|
|
615
|
+
success?: (params: null) => void
|
|
616
616
|
/** 接口调用失败的回调函数 */
|
|
617
617
|
fail?: (params: {
|
|
618
618
|
/** 错误信息 */
|
|
@@ -632,23 +632,23 @@ declare namespace ty {
|
|
|
632
632
|
/**
|
|
633
633
|
* 发起highway请求
|
|
634
634
|
* @public
|
|
635
|
-
* @since MiniKit
|
|
635
|
+
* @since MiniKit 1.0.0
|
|
636
636
|
* @platform iOS Android
|
|
637
637
|
*/
|
|
638
638
|
export function apiRequestByHighway(params: {
|
|
639
639
|
/**
|
|
640
640
|
* api 名称
|
|
641
|
-
* @since MiniKit
|
|
641
|
+
* @since MiniKit 1.0.0
|
|
642
642
|
*/
|
|
643
643
|
api: string
|
|
644
644
|
/**
|
|
645
|
-
*
|
|
646
|
-
* @since MiniKit
|
|
645
|
+
* data 请求入参
|
|
646
|
+
* @since MiniKit 1.0.0
|
|
647
647
|
*/
|
|
648
648
|
data?: Record<string, any>
|
|
649
649
|
/**
|
|
650
650
|
* method 请求方法
|
|
651
|
-
* @since MiniKit
|
|
651
|
+
* @since MiniKit 1.0.0
|
|
652
652
|
* @defaultValue HighwayMethod.GET
|
|
653
653
|
*/
|
|
654
654
|
method?: HighwayMethod
|
|
@@ -666,11 +666,16 @@ declare namespace ty {
|
|
|
666
666
|
complete?: () => void
|
|
667
667
|
/** 接口调用成功的回调函数 */
|
|
668
668
|
success?: (params: {
|
|
669
|
+
/**
|
|
670
|
+
* 接口返回数据的序列化对象,序列化失败时为null
|
|
671
|
+
* @since MiniKit 3.2.0
|
|
672
|
+
*/
|
|
673
|
+
thing_json_?: {}
|
|
669
674
|
/**
|
|
670
675
|
* 接口返回的原始数据
|
|
671
676
|
* @since MiniKit 3.2.0
|
|
672
677
|
*/
|
|
673
|
-
data:
|
|
678
|
+
data: string
|
|
674
679
|
}) => void
|
|
675
680
|
/** 接口调用失败的回调函数 */
|
|
676
681
|
fail?: (params: {
|
|
@@ -703,7 +708,7 @@ declare namespace ty {
|
|
|
703
708
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
704
709
|
complete?: () => void
|
|
705
710
|
/** 接口调用成功的回调函数 */
|
|
706
|
-
success?: () => void
|
|
711
|
+
success?: (params: null) => void
|
|
707
712
|
/** 接口调用失败的回调函数 */
|
|
708
713
|
fail?: (params: {
|
|
709
714
|
/** 错误信息 */
|
|
@@ -730,7 +735,7 @@ declare namespace ty {
|
|
|
730
735
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
731
736
|
complete?: () => void
|
|
732
737
|
/** 接口调用成功的回调函数 */
|
|
733
|
-
success?: () => void
|
|
738
|
+
success?: (params: null) => void
|
|
734
739
|
/** 接口调用失败的回调函数 */
|
|
735
740
|
fail?: (params: {
|
|
736
741
|
/** 错误信息 */
|
|
@@ -765,7 +770,7 @@ declare namespace ty {
|
|
|
765
770
|
path: string
|
|
766
771
|
/**
|
|
767
772
|
* 启动小程序的场景值
|
|
768
|
-
* @since MiniKit 3.
|
|
773
|
+
* @since MiniKit 3.14.1
|
|
769
774
|
* @defaultValue MiniAppScene.DEFAULT
|
|
770
775
|
*/
|
|
771
776
|
scene?: MiniAppScene
|
|
@@ -816,28 +821,28 @@ declare namespace ty {
|
|
|
816
821
|
export function getLaunchOptionsSync(): {
|
|
817
822
|
/**
|
|
818
823
|
* 启动小程序的路径 (代码包路径)
|
|
819
|
-
* @since MiniKit
|
|
824
|
+
* @since MiniKit 3.2.0
|
|
820
825
|
*/
|
|
821
826
|
path: string
|
|
822
827
|
/**
|
|
823
828
|
* 启动小程序的场景值
|
|
824
|
-
* @since MiniKit 3.
|
|
829
|
+
* @since MiniKit 3.14.1
|
|
825
830
|
* @defaultValue MiniAppScene.DEFAULT
|
|
826
831
|
*/
|
|
827
832
|
scene?: MiniAppScene
|
|
828
833
|
/**
|
|
829
834
|
* 启动小程序的 query 参数
|
|
830
|
-
* @since MiniKit
|
|
835
|
+
* @since MiniKit 3.2.0
|
|
831
836
|
*/
|
|
832
837
|
query: Record<string, any>
|
|
833
838
|
/**
|
|
834
839
|
* 分享转发
|
|
835
|
-
* @since MiniKit
|
|
840
|
+
* @since MiniKit 3.2.0
|
|
836
841
|
*/
|
|
837
842
|
referrerInfo: ReferrerInfo
|
|
838
843
|
/**
|
|
839
844
|
* API 类别: default 默认类别; embedded 内嵌,通过打开半屏小程序能力打开的小程序
|
|
840
|
-
* @since MiniKit
|
|
845
|
+
* @since MiniKit 3.2.0
|
|
841
846
|
* @defaultValue "default"
|
|
842
847
|
*/
|
|
843
848
|
apiCategory?: string
|
|
@@ -866,7 +871,7 @@ declare namespace ty {
|
|
|
866
871
|
path: string
|
|
867
872
|
/**
|
|
868
873
|
* 启动小程序的场景值
|
|
869
|
-
* @since MiniKit 3.
|
|
874
|
+
* @since MiniKit 3.14.1
|
|
870
875
|
* @defaultValue MiniAppScene.DEFAULT
|
|
871
876
|
*/
|
|
872
877
|
scene?: MiniAppScene
|
|
@@ -917,28 +922,28 @@ declare namespace ty {
|
|
|
917
922
|
export function getEnterOptionsSync(): {
|
|
918
923
|
/**
|
|
919
924
|
* 启动小程序的路径 (代码包路径)
|
|
920
|
-
* @since MiniKit
|
|
925
|
+
* @since MiniKit 3.2.0
|
|
921
926
|
*/
|
|
922
927
|
path: string
|
|
923
928
|
/**
|
|
924
929
|
* 启动小程序的场景值
|
|
925
|
-
* @since MiniKit 3.
|
|
930
|
+
* @since MiniKit 3.14.1
|
|
926
931
|
* @defaultValue MiniAppScene.DEFAULT
|
|
927
932
|
*/
|
|
928
933
|
scene?: MiniAppScene
|
|
929
934
|
/**
|
|
930
935
|
* 启动小程序的 query 参数
|
|
931
|
-
* @since MiniKit
|
|
936
|
+
* @since MiniKit 3.2.0
|
|
932
937
|
*/
|
|
933
938
|
query: Record<string, any>
|
|
934
939
|
/**
|
|
935
940
|
* 分享转发
|
|
936
|
-
* @since MiniKit
|
|
941
|
+
* @since MiniKit 3.2.0
|
|
937
942
|
*/
|
|
938
943
|
referrerInfo: ReferrerInfo
|
|
939
944
|
/**
|
|
940
945
|
* API 类别: default 默认类别; embedded 内嵌,通过打开半屏小程序能力打开的小程序
|
|
941
|
-
* @since MiniKit
|
|
946
|
+
* @since MiniKit 3.2.0
|
|
942
947
|
* @defaultValue "default"
|
|
943
948
|
*/
|
|
944
949
|
apiCategory?: string
|
|
@@ -952,19 +957,19 @@ declare namespace ty {
|
|
|
952
957
|
/**
|
|
953
958
|
* 设置小程序看板页标题,小程序名称,面板名称等
|
|
954
959
|
* @public
|
|
955
|
-
* @since MiniKit
|
|
960
|
+
* @since MiniKit 1.0.0
|
|
956
961
|
* @platform iOS Android
|
|
957
962
|
*/
|
|
958
963
|
export function setBoardTitle(params: {
|
|
959
964
|
/**
|
|
960
965
|
* 看板页标题
|
|
961
|
-
* @since MiniKit
|
|
966
|
+
* @since MiniKit 1.0.0
|
|
962
967
|
*/
|
|
963
968
|
title: string
|
|
964
969
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
965
970
|
complete?: () => void
|
|
966
971
|
/** 接口调用成功的回调函数 */
|
|
967
|
-
success?: () => void
|
|
972
|
+
success?: (params: null) => void
|
|
968
973
|
/** 接口调用失败的回调函数 */
|
|
969
974
|
fail?: (params: {
|
|
970
975
|
/** 错误信息 */
|
|
@@ -984,7 +989,7 @@ declare namespace ty {
|
|
|
984
989
|
/**
|
|
985
990
|
* 设置小程序看板页标题,小程序名称,面板名称等
|
|
986
991
|
* @public
|
|
987
|
-
* @since MiniKit
|
|
992
|
+
* @since MiniKit 1.0.0
|
|
988
993
|
* @platform iOS Android
|
|
989
994
|
*/
|
|
990
995
|
export function setBoardTitleSync(boardBean?: BoardBean): null
|
|
@@ -1004,7 +1009,7 @@ declare namespace ty {
|
|
|
1004
1009
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1005
1010
|
complete?: () => void
|
|
1006
1011
|
/** 接口调用成功的回调函数 */
|
|
1007
|
-
success?: () => void
|
|
1012
|
+
success?: (params: null) => void
|
|
1008
1013
|
/** 接口调用失败的回调函数 */
|
|
1009
1014
|
fail?: (params: {
|
|
1010
1015
|
/** 错误信息 */
|
|
@@ -1039,7 +1044,7 @@ declare namespace ty {
|
|
|
1039
1044
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1040
1045
|
complete?: () => void
|
|
1041
1046
|
/** 接口调用成功的回调函数 */
|
|
1042
|
-
success?: () => void
|
|
1047
|
+
success?: (params: null) => void
|
|
1043
1048
|
/** 接口调用失败的回调函数 */
|
|
1044
1049
|
fail?: (params: {
|
|
1045
1050
|
/** 错误信息 */
|
|
@@ -1074,7 +1079,7 @@ declare namespace ty {
|
|
|
1074
1079
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1075
1080
|
complete?: () => void
|
|
1076
1081
|
/** 接口调用成功的回调函数 */
|
|
1077
|
-
success?: () => void
|
|
1082
|
+
success?: (params: null) => void
|
|
1078
1083
|
/** 接口调用失败的回调函数 */
|
|
1079
1084
|
fail?: (params: {
|
|
1080
1085
|
/** 错误信息 */
|
|
@@ -1166,32 +1171,32 @@ declare namespace ty {
|
|
|
1166
1171
|
export function getMenuButtonBoundingClientRectSync(): {
|
|
1167
1172
|
/**
|
|
1168
1173
|
* 宽度,单位:px
|
|
1169
|
-
* @since MiniKit 2.
|
|
1174
|
+
* @since MiniKit 3.2.0
|
|
1170
1175
|
*/
|
|
1171
1176
|
width: number
|
|
1172
1177
|
/**
|
|
1173
1178
|
* 高度,单位:px
|
|
1174
|
-
* @since MiniKit 2.
|
|
1179
|
+
* @since MiniKit 3.2.0
|
|
1175
1180
|
*/
|
|
1176
1181
|
height: number
|
|
1177
1182
|
/**
|
|
1178
1183
|
* 上边界坐标,单位:px
|
|
1179
|
-
* @since MiniKit 2.
|
|
1184
|
+
* @since MiniKit 3.2.0
|
|
1180
1185
|
*/
|
|
1181
1186
|
top: number
|
|
1182
1187
|
/**
|
|
1183
1188
|
* 右边界坐标,单位:px
|
|
1184
|
-
* @since MiniKit 2.
|
|
1189
|
+
* @since MiniKit 3.2.0
|
|
1185
1190
|
*/
|
|
1186
1191
|
right: number
|
|
1187
1192
|
/**
|
|
1188
1193
|
* 下边界坐标,单位:px
|
|
1189
|
-
* @since MiniKit 2.
|
|
1194
|
+
* @since MiniKit 3.2.0
|
|
1190
1195
|
*/
|
|
1191
1196
|
bottom: number
|
|
1192
1197
|
/**
|
|
1193
1198
|
* 左边界坐标,单位:px
|
|
1194
|
-
* @since MiniKit 2.
|
|
1199
|
+
* @since MiniKit 3.2.0
|
|
1195
1200
|
*/
|
|
1196
1201
|
left: number
|
|
1197
1202
|
}
|
|
@@ -1216,7 +1221,7 @@ declare namespace ty {
|
|
|
1216
1221
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1217
1222
|
complete?: () => void
|
|
1218
1223
|
/** 接口调用成功的回调函数 */
|
|
1219
|
-
success?: () => void
|
|
1224
|
+
success?: (params: null) => void
|
|
1220
1225
|
/** 接口调用失败的回调函数 */
|
|
1221
1226
|
fail?: (params: {
|
|
1222
1227
|
/** 错误信息 */
|
|
@@ -1291,7 +1296,7 @@ declare namespace ty {
|
|
|
1291
1296
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1292
1297
|
complete?: () => void
|
|
1293
1298
|
/** 接口调用成功的回调函数 */
|
|
1294
|
-
success?: () => void
|
|
1299
|
+
success?: (params: null) => void
|
|
1295
1300
|
/** 接口调用失败的回调函数 */
|
|
1296
1301
|
fail?: (params: {
|
|
1297
1302
|
/** 错误信息 */
|
|
@@ -1318,7 +1323,7 @@ declare namespace ty {
|
|
|
1318
1323
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1319
1324
|
complete?: () => void
|
|
1320
1325
|
/** 接口调用成功的回调函数 */
|
|
1321
|
-
success?: () => void
|
|
1326
|
+
success?: (params: null) => void
|
|
1322
1327
|
/** 接口调用失败的回调函数 */
|
|
1323
1328
|
fail?: (params: {
|
|
1324
1329
|
/** 错误信息 */
|
|
@@ -1345,7 +1350,7 @@ declare namespace ty {
|
|
|
1345
1350
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1346
1351
|
complete?: () => void
|
|
1347
1352
|
/** 接口调用成功的回调函数 */
|
|
1348
|
-
success?: () => void
|
|
1353
|
+
success?: (params: null) => void
|
|
1349
1354
|
/** 接口调用失败的回调函数 */
|
|
1350
1355
|
fail?: (params: {
|
|
1351
1356
|
/** 错误信息 */
|
|
@@ -1372,7 +1377,7 @@ declare namespace ty {
|
|
|
1372
1377
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1373
1378
|
complete?: () => void
|
|
1374
1379
|
/** 接口调用成功的回调函数 */
|
|
1375
|
-
success?: () => void
|
|
1380
|
+
success?: (params: null) => void
|
|
1376
1381
|
/** 接口调用失败的回调函数 */
|
|
1377
1382
|
fail?: (params: {
|
|
1378
1383
|
/** 错误信息 */
|
|
@@ -1399,7 +1404,7 @@ declare namespace ty {
|
|
|
1399
1404
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1400
1405
|
complete?: () => void
|
|
1401
1406
|
/** 接口调用成功的回调函数 */
|
|
1402
|
-
success?: () => void
|
|
1407
|
+
success?: (params: null) => void
|
|
1403
1408
|
/** 接口调用失败的回调函数 */
|
|
1404
1409
|
fail?: (params: {
|
|
1405
1410
|
/** 错误信息 */
|
|
@@ -1426,7 +1431,7 @@ declare namespace ty {
|
|
|
1426
1431
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1427
1432
|
complete?: () => void
|
|
1428
1433
|
/** 接口调用成功的回调函数 */
|
|
1429
|
-
success?: () => void
|
|
1434
|
+
success?: (params: null) => void
|
|
1430
1435
|
/** 接口调用失败的回调函数 */
|
|
1431
1436
|
fail?: (params: {
|
|
1432
1437
|
/** 错误信息 */
|
|
@@ -1491,7 +1496,7 @@ declare namespace ty {
|
|
|
1491
1496
|
export function canOpenURLSync(openURLBean?: OpenURLBean): {
|
|
1492
1497
|
/**
|
|
1493
1498
|
* 是否支持打开对应的url
|
|
1494
|
-
* @since MiniKit 3.
|
|
1499
|
+
* @since MiniKit 3.2.0
|
|
1495
1500
|
* @defaultValue false
|
|
1496
1501
|
*/
|
|
1497
1502
|
isCanOpen?: boolean
|
|
@@ -1512,7 +1517,7 @@ declare namespace ty {
|
|
|
1512
1517
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1513
1518
|
complete?: () => void
|
|
1514
1519
|
/** 接口调用成功的回调函数 */
|
|
1515
|
-
success?: () => void
|
|
1520
|
+
success?: (params: null) => void
|
|
1516
1521
|
/** 接口调用失败的回调函数 */
|
|
1517
1522
|
fail?: (params: {
|
|
1518
1523
|
/** 错误信息 */
|
|
@@ -1571,7 +1576,7 @@ declare namespace ty {
|
|
|
1571
1576
|
export function getAccountInfoSync(): {
|
|
1572
1577
|
/**
|
|
1573
1578
|
* 小程序账号信息
|
|
1574
|
-
* @since MiniKit 3.
|
|
1579
|
+
* @since MiniKit 3.2.0
|
|
1575
1580
|
*/
|
|
1576
1581
|
miniProgram: MiniProgramAccountInfo
|
|
1577
1582
|
}
|
|
@@ -1591,7 +1596,7 @@ declare namespace ty {
|
|
|
1591
1596
|
* 小程序自定义配置
|
|
1592
1597
|
* @since MiniKit 3.11.5
|
|
1593
1598
|
*/
|
|
1594
|
-
config:
|
|
1599
|
+
config: {}
|
|
1595
1600
|
}) => void
|
|
1596
1601
|
/** 接口调用失败的回调函数 */
|
|
1597
1602
|
fail?: (params: {
|
|
@@ -1620,7 +1625,7 @@ declare namespace ty {
|
|
|
1620
1625
|
* 小程序自定义配置
|
|
1621
1626
|
* @since MiniKit 3.11.5
|
|
1622
1627
|
*/
|
|
1623
|
-
config:
|
|
1628
|
+
config: {}
|
|
1624
1629
|
}
|
|
1625
1630
|
|
|
1626
1631
|
/**
|
|
@@ -1633,7 +1638,7 @@ declare namespace ty {
|
|
|
1633
1638
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1634
1639
|
complete?: () => void
|
|
1635
1640
|
/** 接口调用成功的回调函数 */
|
|
1636
|
-
success?: () => void
|
|
1641
|
+
success?: (params: null) => void
|
|
1637
1642
|
/** 接口调用失败的回调函数 */
|
|
1638
1643
|
fail?: (params: {
|
|
1639
1644
|
/** 错误信息 */
|
|
@@ -1671,7 +1676,7 @@ declare namespace ty {
|
|
|
1671
1676
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1672
1677
|
complete?: () => void
|
|
1673
1678
|
/** 接口调用成功的回调函数 */
|
|
1674
|
-
success?: () => void
|
|
1679
|
+
success?: (params: null) => void
|
|
1675
1680
|
/** 接口调用失败的回调函数 */
|
|
1676
1681
|
fail?: (params: {
|
|
1677
1682
|
/** 错误信息 */
|
|
@@ -1709,7 +1714,7 @@ declare namespace ty {
|
|
|
1709
1714
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1710
1715
|
complete?: () => void
|
|
1711
1716
|
/** 接口调用成功的回调函数 */
|
|
1712
|
-
success?: () => void
|
|
1717
|
+
success?: (params: null) => void
|
|
1713
1718
|
/** 接口调用失败的回调函数 */
|
|
1714
1719
|
fail?: (params: {
|
|
1715
1720
|
/** 错误信息 */
|
|
@@ -1747,7 +1752,7 @@ declare namespace ty {
|
|
|
1747
1752
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1748
1753
|
complete?: () => void
|
|
1749
1754
|
/** 接口调用成功的回调函数 */
|
|
1750
|
-
success?: () => void
|
|
1755
|
+
success?: (params: null) => void
|
|
1751
1756
|
/** 接口调用失败的回调函数 */
|
|
1752
1757
|
fail?: (params: {
|
|
1753
1758
|
/** 错误信息 */
|
|
@@ -1785,7 +1790,7 @@ declare namespace ty {
|
|
|
1785
1790
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1786
1791
|
complete?: () => void
|
|
1787
1792
|
/** 接口调用成功的回调函数 */
|
|
1788
|
-
success?: () => void
|
|
1793
|
+
success?: (params: null) => void
|
|
1789
1794
|
/** 接口调用失败的回调函数 */
|
|
1790
1795
|
fail?: (params: {
|
|
1791
1796
|
/** 错误信息 */
|
|
@@ -1812,7 +1817,7 @@ declare namespace ty {
|
|
|
1812
1817
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1813
1818
|
complete?: () => void
|
|
1814
1819
|
/** 接口调用成功的回调函数 */
|
|
1815
|
-
success?: () => void
|
|
1820
|
+
success?: (params: null) => void
|
|
1816
1821
|
/** 接口调用失败的回调函数 */
|
|
1817
1822
|
fail?: (params: {
|
|
1818
1823
|
/** 错误信息 */
|
|
@@ -1844,7 +1849,7 @@ declare namespace ty {
|
|
|
1844
1849
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1845
1850
|
complete?: () => void
|
|
1846
1851
|
/** 接口调用成功的回调函数 */
|
|
1847
|
-
success?: () => void
|
|
1852
|
+
success?: (params: null) => void
|
|
1848
1853
|
/** 接口调用失败的回调函数 */
|
|
1849
1854
|
fail?: (params: {
|
|
1850
1855
|
/** 错误信息 */
|
|
@@ -1876,7 +1881,7 @@ declare namespace ty {
|
|
|
1876
1881
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1877
1882
|
complete?: () => void
|
|
1878
1883
|
/** 接口调用成功的回调函数 */
|
|
1879
|
-
success?: () => void
|
|
1884
|
+
success?: (params: null) => void
|
|
1880
1885
|
/** 接口调用失败的回调函数 */
|
|
1881
1886
|
fail?: (params: {
|
|
1882
1887
|
/** 错误信息 */
|
|
@@ -1903,7 +1908,7 @@ declare namespace ty {
|
|
|
1903
1908
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1904
1909
|
complete?: () => void
|
|
1905
1910
|
/** 接口调用成功的回调函数 */
|
|
1906
|
-
success?: () => void
|
|
1911
|
+
success?: (params: null) => void
|
|
1907
1912
|
/** 接口调用失败的回调函数 */
|
|
1908
1913
|
fail?: (params: {
|
|
1909
1914
|
/** 错误信息 */
|
|
@@ -1940,7 +1945,7 @@ declare namespace ty {
|
|
|
1940
1945
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1941
1946
|
complete?: () => void
|
|
1942
1947
|
/** 接口调用成功的回调函数 */
|
|
1943
|
-
success?: () => void
|
|
1948
|
+
success?: (params: null) => void
|
|
1944
1949
|
/** 接口调用失败的回调函数 */
|
|
1945
1950
|
fail?: (params: {
|
|
1946
1951
|
/** 错误信息 */
|
|
@@ -1967,7 +1972,7 @@ declare namespace ty {
|
|
|
1967
1972
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
1968
1973
|
complete?: () => void
|
|
1969
1974
|
/** 接口调用成功的回调函数 */
|
|
1970
|
-
success?: () => void
|
|
1975
|
+
success?: (params: null) => void
|
|
1971
1976
|
/** 接口调用失败的回调函数 */
|
|
1972
1977
|
fail?: (params: {
|
|
1973
1978
|
/** 错误信息 */
|
|
@@ -1999,7 +2004,7 @@ declare namespace ty {
|
|
|
1999
2004
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2000
2005
|
complete?: () => void
|
|
2001
2006
|
/** 接口调用成功的回调函数 */
|
|
2002
|
-
success?: () => void
|
|
2007
|
+
success?: (params: null) => void
|
|
2003
2008
|
/** 接口调用失败的回调函数 */
|
|
2004
2009
|
fail?: (params: {
|
|
2005
2010
|
/** 错误信息 */
|
|
@@ -2041,7 +2046,7 @@ declare namespace ty {
|
|
|
2041
2046
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2042
2047
|
complete?: () => void
|
|
2043
2048
|
/** 接口调用成功的回调函数 */
|
|
2044
|
-
success?: () => void
|
|
2049
|
+
success?: (params: null) => void
|
|
2045
2050
|
/** 接口调用失败的回调函数 */
|
|
2046
2051
|
fail?: (params: {
|
|
2047
2052
|
/** 错误信息 */
|
|
@@ -2068,7 +2073,7 @@ declare namespace ty {
|
|
|
2068
2073
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2069
2074
|
complete?: () => void
|
|
2070
2075
|
/** 接口调用成功的回调函数 */
|
|
2071
|
-
success?: () => void
|
|
2076
|
+
success?: (params: null) => void
|
|
2072
2077
|
/** 接口调用失败的回调函数 */
|
|
2073
2078
|
fail?: (params: {
|
|
2074
2079
|
/** 错误信息 */
|
|
@@ -2095,7 +2100,7 @@ declare namespace ty {
|
|
|
2095
2100
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2096
2101
|
complete?: () => void
|
|
2097
2102
|
/** 接口调用成功的回调函数 */
|
|
2098
|
-
success?: () => void
|
|
2103
|
+
success?: (params: null) => void
|
|
2099
2104
|
/** 接口调用失败的回调函数 */
|
|
2100
2105
|
fail?: (params: {
|
|
2101
2106
|
/** 错误信息 */
|
|
@@ -2155,7 +2160,7 @@ declare namespace ty {
|
|
|
2155
2160
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2156
2161
|
complete?: () => void
|
|
2157
2162
|
/** 接口调用成功的回调函数 */
|
|
2158
|
-
success?: () => void
|
|
2163
|
+
success?: (params: null) => void
|
|
2159
2164
|
/** 接口调用失败的回调函数 */
|
|
2160
2165
|
fail?: (params: {
|
|
2161
2166
|
/** 错误信息 */
|
|
@@ -2188,7 +2193,7 @@ declare namespace ty {
|
|
|
2188
2193
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2189
2194
|
complete?: () => void
|
|
2190
2195
|
/** 接口调用成功的回调函数 */
|
|
2191
|
-
success?: () => void
|
|
2196
|
+
success?: (params: null) => void
|
|
2192
2197
|
/** 接口调用失败的回调函数 */
|
|
2193
2198
|
fail?: (params: {
|
|
2194
2199
|
/** 错误信息 */
|
|
@@ -2220,7 +2225,7 @@ declare namespace ty {
|
|
|
2220
2225
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2221
2226
|
complete?: () => void
|
|
2222
2227
|
/** 接口调用成功的回调函数 */
|
|
2223
|
-
success?: () => void
|
|
2228
|
+
success?: (params: null) => void
|
|
2224
2229
|
/** 接口调用失败的回调函数 */
|
|
2225
2230
|
fail?: (params: {
|
|
2226
2231
|
/** 错误信息 */
|
|
@@ -2252,7 +2257,7 @@ declare namespace ty {
|
|
|
2252
2257
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2253
2258
|
complete?: () => void
|
|
2254
2259
|
/** 接口调用成功的回调函数 */
|
|
2255
|
-
success?: () => void
|
|
2260
|
+
success?: (params: null) => void
|
|
2256
2261
|
/** 接口调用失败的回调函数 */
|
|
2257
2262
|
fail?: (params: {
|
|
2258
2263
|
/** 错误信息 */
|
|
@@ -2284,7 +2289,7 @@ declare namespace ty {
|
|
|
2284
2289
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2285
2290
|
complete?: () => void
|
|
2286
2291
|
/** 接口调用成功的回调函数 */
|
|
2287
|
-
success?: () => void
|
|
2292
|
+
success?: (params: null) => void
|
|
2288
2293
|
/** 接口调用失败的回调函数 */
|
|
2289
2294
|
fail?: (params: {
|
|
2290
2295
|
/** 错误信息 */
|
|
@@ -2348,7 +2353,7 @@ declare namespace ty {
|
|
|
2348
2353
|
export function extApiCanIUseSync(caniuseBean?: CanIUseBean): {
|
|
2349
2354
|
/**
|
|
2350
2355
|
* 当前版本是否可用
|
|
2351
|
-
* @since MiniKit 2.
|
|
2356
|
+
* @since MiniKit 3.2.0
|
|
2352
2357
|
*/
|
|
2353
2358
|
result: boolean
|
|
2354
2359
|
}
|
|
@@ -2378,7 +2383,7 @@ declare namespace ty {
|
|
|
2378
2383
|
* extApi返回数据
|
|
2379
2384
|
* @since MiniKit 3.2.0
|
|
2380
2385
|
*/
|
|
2381
|
-
data?:
|
|
2386
|
+
data?: {}
|
|
2382
2387
|
}) => void
|
|
2383
2388
|
/** 接口调用失败的回调函数 */
|
|
2384
2389
|
fail?: (params: {
|
|
@@ -2405,9 +2410,9 @@ declare namespace ty {
|
|
|
2405
2410
|
export function extApiInvokeSync(extApiBean?: ExtApiBean): {
|
|
2406
2411
|
/**
|
|
2407
2412
|
* extApi返回数据
|
|
2408
|
-
* @since MiniKit 2.
|
|
2413
|
+
* @since MiniKit 3.2.0
|
|
2409
2414
|
*/
|
|
2410
|
-
data?:
|
|
2415
|
+
data?: {}
|
|
2411
2416
|
}
|
|
2412
2417
|
|
|
2413
2418
|
/**
|
|
@@ -2431,7 +2436,7 @@ declare namespace ty {
|
|
|
2431
2436
|
* thing_data_ 出参结构体, JSON序列化
|
|
2432
2437
|
* @since MiniKit 3.27.0
|
|
2433
2438
|
*/
|
|
2434
|
-
thing_json_?:
|
|
2439
|
+
thing_json_?: {}
|
|
2435
2440
|
/**
|
|
2436
2441
|
* 元数据
|
|
2437
2442
|
* @since MiniKit 3.27.0
|
|
@@ -2441,7 +2446,7 @@ declare namespace ty {
|
|
|
2441
2446
|
* 序列化返回结果
|
|
2442
2447
|
* @since MiniKit 3.27.0
|
|
2443
2448
|
*/
|
|
2444
|
-
result:
|
|
2449
|
+
result: {}
|
|
2445
2450
|
/**
|
|
2446
2451
|
* apiName
|
|
2447
2452
|
* @since MiniKit 3.27.0
|
|
@@ -2479,7 +2484,7 @@ declare namespace ty {
|
|
|
2479
2484
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2480
2485
|
complete?: () => void
|
|
2481
2486
|
/** 接口调用成功的回调函数 */
|
|
2482
|
-
success?: () => void
|
|
2487
|
+
success?: (params: null) => void
|
|
2483
2488
|
/** 接口调用失败的回调函数 */
|
|
2484
2489
|
fail?: (params: {
|
|
2485
2490
|
/** 错误信息 */
|
|
@@ -2506,7 +2511,7 @@ declare namespace ty {
|
|
|
2506
2511
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2507
2512
|
complete?: () => void
|
|
2508
2513
|
/** 接口调用成功的回调函数 */
|
|
2509
|
-
success?: () => void
|
|
2514
|
+
success?: (params: null) => void
|
|
2510
2515
|
/** 接口调用失败的回调函数 */
|
|
2511
2516
|
fail?: (params: {
|
|
2512
2517
|
/** 错误信息 */
|
|
@@ -2533,7 +2538,7 @@ declare namespace ty {
|
|
|
2533
2538
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2534
2539
|
complete?: () => void
|
|
2535
2540
|
/** 接口调用成功的回调函数 */
|
|
2536
|
-
success?: () => void
|
|
2541
|
+
success?: (params: null) => void
|
|
2537
2542
|
/** 接口调用失败的回调函数 */
|
|
2538
2543
|
fail?: (params: {
|
|
2539
2544
|
/** 错误信息 */
|
|
@@ -2566,7 +2571,7 @@ declare namespace ty {
|
|
|
2566
2571
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2567
2572
|
complete?: () => void
|
|
2568
2573
|
/** 接口调用成功的回调函数 */
|
|
2569
|
-
success?: () => void
|
|
2574
|
+
success?: (params: null) => void
|
|
2570
2575
|
/** 接口调用失败的回调函数 */
|
|
2571
2576
|
fail?: (params: {
|
|
2572
2577
|
/** 错误信息 */
|
|
@@ -2599,7 +2604,7 @@ declare namespace ty {
|
|
|
2599
2604
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
2600
2605
|
complete?: () => void
|
|
2601
2606
|
/** 接口调用成功的回调函数 */
|
|
2602
|
-
success?: () => void
|
|
2607
|
+
success?: (params: null) => void
|
|
2603
2608
|
/** 接口调用失败的回调函数 */
|
|
2604
2609
|
fail?: (params: {
|
|
2605
2610
|
/** 错误信息 */
|
|
@@ -2619,7 +2624,7 @@ declare namespace ty {
|
|
|
2619
2624
|
/**
|
|
2620
2625
|
* 原生上报的事件
|
|
2621
2626
|
* @public
|
|
2622
|
-
* @since MiniKit
|
|
2627
|
+
* @since MiniKit 3.33.0
|
|
2623
2628
|
* @platform iOS Android
|
|
2624
2629
|
*/
|
|
2625
2630
|
export function onNativeEvent(
|
|
@@ -2629,7 +2634,7 @@ declare namespace ty {
|
|
|
2629
2634
|
/**
|
|
2630
2635
|
* 原生上报的事件
|
|
2631
2636
|
* @public
|
|
2632
|
-
* @since MiniKit
|
|
2637
|
+
* @since MiniKit 3.33.0
|
|
2633
2638
|
* @platform iOS Android
|
|
2634
2639
|
*/
|
|
2635
2640
|
export function offNativeEvent(
|
|
@@ -2639,7 +2644,7 @@ declare namespace ty {
|
|
|
2639
2644
|
/**
|
|
2640
2645
|
* 添加监听体验评分结束事件方法
|
|
2641
2646
|
* @public
|
|
2642
|
-
* @since MiniKit 3.
|
|
2647
|
+
* @since MiniKit 3.33.0
|
|
2643
2648
|
* @platform iOS Android
|
|
2644
2649
|
*/
|
|
2645
2650
|
export function onExperienceRateEnd(
|
|
@@ -2648,7 +2653,6 @@ declare namespace ty {
|
|
|
2648
2653
|
* 体验评分结果
|
|
2649
2654
|
* id: 评分表示
|
|
2650
2655
|
* detail: 评分详情
|
|
2651
|
-
* @since MiniKit 3.18.2
|
|
2652
2656
|
*/
|
|
2653
2657
|
source: string
|
|
2654
2658
|
}) => void
|
|
@@ -2657,7 +2661,7 @@ declare namespace ty {
|
|
|
2657
2661
|
/**
|
|
2658
2662
|
* 移除监听体验评分结束事件方法
|
|
2659
2663
|
* @public
|
|
2660
|
-
* @since MiniKit 3.
|
|
2664
|
+
* @since MiniKit 3.33.0
|
|
2661
2665
|
* @platform iOS Android
|
|
2662
2666
|
*/
|
|
2663
2667
|
export function offExperienceRateEnd(
|
|
@@ -2666,13 +2670,11 @@ declare namespace ty {
|
|
|
2666
2670
|
* 体验评分结果
|
|
2667
2671
|
* id: 评分表示
|
|
2668
2672
|
* detail: 评分详情
|
|
2669
|
-
* @since MiniKit 3.18.2
|
|
2670
2673
|
*/
|
|
2671
2674
|
source: string
|
|
2672
2675
|
}) => void
|
|
2673
2676
|
): void
|
|
2674
2677
|
|
|
2675
|
-
/** @since MiniKit 3.20.2 */
|
|
2676
2678
|
export interface FetchBean {
|
|
2677
2679
|
/**
|
|
2678
2680
|
* 拉取数据的类型,默认pre:表示预拉取
|
|
@@ -2687,21 +2689,13 @@ declare namespace ty {
|
|
|
2687
2689
|
fetchApiKeys?: string[]
|
|
2688
2690
|
}
|
|
2689
2691
|
|
|
2690
|
-
/** @since MiniKit 3.20.2 */
|
|
2691
2692
|
export interface FetchDataResp {
|
|
2692
|
-
/**
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
*/
|
|
2696
|
-
fetchedData: Record<string, any>
|
|
2697
|
-
/**
|
|
2698
|
-
* 客户端拿到缓存数据的时间戳
|
|
2699
|
-
* @since MiniKit 3.20.2
|
|
2700
|
-
*/
|
|
2693
|
+
/** 缓存数据 */
|
|
2694
|
+
fetchedData: {}
|
|
2695
|
+
/** 客户端拿到缓存数据的时间戳 */
|
|
2701
2696
|
timeStamp: number
|
|
2702
2697
|
}
|
|
2703
2698
|
|
|
2704
|
-
/** @since MiniKit 3.20.2 */
|
|
2705
2699
|
export interface FetchResponse {
|
|
2706
2700
|
/**
|
|
2707
2701
|
* 缓存数据
|
|
@@ -2710,7 +2704,6 @@ declare namespace ty {
|
|
|
2710
2704
|
fetchedData: Record<string, FetchDataResp>
|
|
2711
2705
|
}
|
|
2712
2706
|
|
|
2713
|
-
/** @since MiniKit 3.20.2 */
|
|
2714
2707
|
export interface RegisterBean {
|
|
2715
2708
|
/**
|
|
2716
2709
|
* 拉取数据的类型,默认pre:表示预拉取
|
|
@@ -2730,13 +2723,12 @@ declare namespace ty {
|
|
|
2730
2723
|
registerId: string
|
|
2731
2724
|
}
|
|
2732
2725
|
|
|
2733
|
-
/** @since MiniKit 3.20.2 */
|
|
2734
2726
|
export interface RegisterResponse {
|
|
2735
2727
|
/**
|
|
2736
2728
|
* 缓存数据
|
|
2737
2729
|
* @since MiniKit 3.20.2
|
|
2738
2730
|
*/
|
|
2739
|
-
fetchedData:
|
|
2731
|
+
fetchedData: {}
|
|
2740
2732
|
/**
|
|
2741
2733
|
* 客户端拿到缓存数据的时间戳
|
|
2742
2734
|
* @since MiniKit 3.20.2
|
|
@@ -2749,7 +2741,6 @@ declare namespace ty {
|
|
|
2749
2741
|
registerId: string
|
|
2750
2742
|
}
|
|
2751
2743
|
|
|
2752
|
-
/** @since MiniKit 2.3.0 */
|
|
2753
2744
|
export interface NativeDisabledParam {
|
|
2754
2745
|
/**
|
|
2755
2746
|
* 禁用异层渲染手势分发
|
|
@@ -2758,12 +2749,13 @@ declare namespace ty {
|
|
|
2758
2749
|
nativeDisabled: boolean
|
|
2759
2750
|
/**
|
|
2760
2751
|
* 需要禁止或启用手势分发的页面id
|
|
2761
|
-
* @since MiniKit 2.
|
|
2752
|
+
* @since MiniKit 2.3.12
|
|
2762
2753
|
*/
|
|
2763
2754
|
pageId: string
|
|
2764
2755
|
}
|
|
2765
2756
|
|
|
2766
|
-
|
|
2757
|
+
export interface Object {}
|
|
2758
|
+
|
|
2767
2759
|
export interface NativeParams {
|
|
2768
2760
|
/**
|
|
2769
2761
|
* 原生组件类型
|
|
@@ -2790,90 +2782,60 @@ declare namespace ty {
|
|
|
2790
2782
|
* 参数等
|
|
2791
2783
|
* @since MiniKit 2.3.0
|
|
2792
2784
|
*/
|
|
2793
|
-
params: Record<string,
|
|
2785
|
+
params: Record<string, Object>
|
|
2794
2786
|
}
|
|
2795
2787
|
|
|
2796
|
-
/** @since MiniKit 2.3.0 */
|
|
2797
2788
|
export interface NativeUploadData {
|
|
2798
|
-
/**
|
|
2799
|
-
* 原生组件的EventName
|
|
2800
|
-
* @since MiniKit 2.3.0
|
|
2801
|
-
*/
|
|
2789
|
+
/** 原生组件的EventName */
|
|
2802
2790
|
eventName: string
|
|
2803
|
-
/**
|
|
2804
|
-
* 异层渲染原生视图id
|
|
2805
|
-
* @since MiniKit 2.3.0
|
|
2806
|
-
*/
|
|
2791
|
+
/** 异层渲染原生视图id */
|
|
2807
2792
|
id: string
|
|
2808
|
-
/**
|
|
2809
|
-
* 小程序页面id
|
|
2810
|
-
* @since MiniKit 2.3.0
|
|
2811
|
-
*/
|
|
2793
|
+
/** 小程序页面id */
|
|
2812
2794
|
pageId: string
|
|
2813
|
-
/**
|
|
2814
|
-
|
|
2815
|
-
* @since MiniKit 2.3.0
|
|
2816
|
-
*/
|
|
2817
|
-
data: Record<string, Record<string, any>>
|
|
2795
|
+
/** 数据等 */
|
|
2796
|
+
data: Record<string, Object>
|
|
2818
2797
|
}
|
|
2819
2798
|
|
|
2820
|
-
/** @since MiniKit 2.3.0 */
|
|
2821
2799
|
export interface ViewId {
|
|
2822
|
-
/**
|
|
2823
|
-
* 异层渲染原生视图id
|
|
2824
|
-
* @since MiniKit 2.3.0
|
|
2825
|
-
*/
|
|
2800
|
+
/** 异层渲染原生视图id */
|
|
2826
2801
|
viewId: string
|
|
2827
2802
|
}
|
|
2828
2803
|
|
|
2829
|
-
/** @since MiniKit 2.3.0 */
|
|
2830
2804
|
export interface RegisterNativeEventBody {
|
|
2831
|
-
/**
|
|
2832
|
-
* key对应的内容
|
|
2833
|
-
* @since MiniKit 2.3.0
|
|
2834
|
-
*/
|
|
2805
|
+
/** key对应的内容 */
|
|
2835
2806
|
data: string
|
|
2836
2807
|
}
|
|
2837
2808
|
|
|
2838
|
-
/** @since MiniKit 2.3.0 */
|
|
2839
2809
|
export interface SuccessMessage {
|
|
2840
|
-
/**
|
|
2841
|
-
* key对应的内容
|
|
2842
|
-
* @since MiniKit 2.3.0
|
|
2843
|
-
*/
|
|
2810
|
+
/** key对应的内容 */
|
|
2844
2811
|
data: string
|
|
2845
2812
|
}
|
|
2846
2813
|
|
|
2847
|
-
/** @since MiniKit 3.18.2 */
|
|
2848
2814
|
export interface RateEventEndBody {
|
|
2849
2815
|
/**
|
|
2850
2816
|
* 体验评分结果
|
|
2851
2817
|
* id: 评分表示
|
|
2852
2818
|
* detail: 评分详情
|
|
2853
|
-
* @since MiniKit 3.18.2
|
|
2854
2819
|
*/
|
|
2855
2820
|
source: string
|
|
2856
2821
|
}
|
|
2857
2822
|
|
|
2858
|
-
/** @since MiniKit 2.6.0 */
|
|
2859
2823
|
export interface PermissionConfig {
|
|
2860
2824
|
/**
|
|
2861
2825
|
* 权限相关配置信息
|
|
2862
|
-
* @since MiniKit 2.
|
|
2826
|
+
* @since MiniKit 3.2.0
|
|
2863
2827
|
*/
|
|
2864
2828
|
result: Record<string, any>
|
|
2865
2829
|
}
|
|
2866
2830
|
|
|
2867
|
-
/** @since MiniKit 2.6.0 */
|
|
2868
2831
|
export interface AuthSetting {
|
|
2869
2832
|
/**
|
|
2870
2833
|
* 用户授权设置信息
|
|
2871
|
-
* @since MiniKit 2.
|
|
2834
|
+
* @since MiniKit 3.2.0
|
|
2872
2835
|
*/
|
|
2873
2836
|
scope: Record<string, boolean>
|
|
2874
2837
|
}
|
|
2875
2838
|
|
|
2876
|
-
/** @since MiniKit 2.6.0 */
|
|
2877
2839
|
export interface DebugModeSetting {
|
|
2878
2840
|
/**
|
|
2879
2841
|
* 调试模式开关
|
|
@@ -2882,16 +2844,14 @@ declare namespace ty {
|
|
|
2882
2844
|
isEnable: boolean
|
|
2883
2845
|
}
|
|
2884
2846
|
|
|
2885
|
-
/** @since MiniKit 3.15.2 */
|
|
2886
2847
|
export interface TabBarIndexBean {
|
|
2887
2848
|
/**
|
|
2888
2849
|
* tabBar 的哪一项,从左边算起
|
|
2889
|
-
* @since MiniKit
|
|
2850
|
+
* @since MiniKit 1.0.0
|
|
2890
2851
|
*/
|
|
2891
2852
|
index: number
|
|
2892
2853
|
}
|
|
2893
2854
|
|
|
2894
|
-
/** @since MiniKit 1.0.0 */
|
|
2895
2855
|
export interface OperateTabBarParams {
|
|
2896
2856
|
/**
|
|
2897
2857
|
* 是否需要动画效果
|
|
@@ -2900,7 +2860,6 @@ declare namespace ty {
|
|
|
2900
2860
|
animation: boolean
|
|
2901
2861
|
}
|
|
2902
2862
|
|
|
2903
|
-
/** @since MiniKit 1.0.0 */
|
|
2904
2863
|
export interface TabBarStyleParams {
|
|
2905
2864
|
/**
|
|
2906
2865
|
* tab 上的文字默认颜色
|
|
@@ -2924,7 +2883,6 @@ declare namespace ty {
|
|
|
2924
2883
|
borderStyle: string
|
|
2925
2884
|
}
|
|
2926
2885
|
|
|
2927
|
-
/** @since MiniKit 1.0.0 */
|
|
2928
2886
|
export interface TabBarItemParams {
|
|
2929
2887
|
/**
|
|
2930
2888
|
* tabBar 的哪一项,从左边算起
|
|
@@ -2948,7 +2906,6 @@ declare namespace ty {
|
|
|
2948
2906
|
selectedIconPath: string
|
|
2949
2907
|
}
|
|
2950
2908
|
|
|
2951
|
-
/** @since MiniKit 1.0.0 */
|
|
2952
2909
|
export interface TabBarBadgeParams {
|
|
2953
2910
|
/**
|
|
2954
2911
|
* tabBar 的哪一项,从左边算起
|
|
@@ -2962,79 +2919,43 @@ declare namespace ty {
|
|
|
2962
2919
|
text: string
|
|
2963
2920
|
}
|
|
2964
2921
|
|
|
2965
|
-
/** @since MiniKit 2.3.6 */
|
|
2966
2922
|
export enum HighwayMethod {
|
|
2967
|
-
/**
|
|
2968
|
-
* HTTP 请求 OPTIONS
|
|
2969
|
-
* @since MiniKit 2.3.6
|
|
2970
|
-
*/
|
|
2923
|
+
/** HTTP 请求 OPTIONS */
|
|
2971
2924
|
OPTIONS = "OPTIONS",
|
|
2972
2925
|
|
|
2973
|
-
/**
|
|
2974
|
-
* HTTP 请求 GET
|
|
2975
|
-
* @since MiniKit 2.3.6
|
|
2976
|
-
*/
|
|
2926
|
+
/** HTTP 请求 GET */
|
|
2977
2927
|
GET = "GET",
|
|
2978
2928
|
|
|
2979
|
-
/**
|
|
2980
|
-
* HTTP 请求 HEAD
|
|
2981
|
-
* @since MiniKit 2.3.6
|
|
2982
|
-
*/
|
|
2929
|
+
/** HTTP 请求 HEAD */
|
|
2983
2930
|
HEAD = "HEAD",
|
|
2984
2931
|
|
|
2985
|
-
/**
|
|
2986
|
-
* HTTP 请求 POST
|
|
2987
|
-
* @since MiniKit 2.3.6
|
|
2988
|
-
*/
|
|
2932
|
+
/** HTTP 请求 POST */
|
|
2989
2933
|
POST = "POST",
|
|
2990
2934
|
|
|
2991
|
-
/**
|
|
2992
|
-
* HTTP 请求 PUT
|
|
2993
|
-
* @since MiniKit 2.3.6
|
|
2994
|
-
*/
|
|
2935
|
+
/** HTTP 请求 PUT */
|
|
2995
2936
|
PUT = "PUT",
|
|
2996
2937
|
|
|
2997
|
-
/**
|
|
2998
|
-
* HTTP 请求 DELETE
|
|
2999
|
-
* @since MiniKit 2.3.6
|
|
3000
|
-
*/
|
|
2938
|
+
/** HTTP 请求 DELETE */
|
|
3001
2939
|
DELETE = "DELETE",
|
|
3002
2940
|
|
|
3003
|
-
/**
|
|
3004
|
-
* HTTP 请求 TRACE
|
|
3005
|
-
* @since MiniKit 2.3.6
|
|
3006
|
-
*/
|
|
2941
|
+
/** HTTP 请求 TRACE */
|
|
3007
2942
|
TRACE = "TRACE",
|
|
3008
2943
|
|
|
3009
|
-
/**
|
|
3010
|
-
* HTTP 请求 CONNECT
|
|
3011
|
-
* @since MiniKit 2.3.6
|
|
3012
|
-
*/
|
|
2944
|
+
/** HTTP 请求 TRACE */
|
|
3013
2945
|
CONNECT = "CONNECT",
|
|
3014
2946
|
}
|
|
3015
2947
|
|
|
3016
|
-
/** @since MiniKit 3.27.0 */
|
|
3017
2948
|
export enum CachePolicy {
|
|
3018
|
-
/**
|
|
3019
|
-
* 仅发起网络请求,不使用缓存
|
|
3020
|
-
* @since MiniKit 3.27.0
|
|
3021
|
-
*/
|
|
2949
|
+
/** 仅发起网络请求,不使用缓存 */
|
|
3022
2950
|
NETWORK_ONLY = "NETWORK_ONLY",
|
|
3023
2951
|
|
|
3024
|
-
/**
|
|
3025
|
-
* 先使用缓存,缓存不存在时发起网络请求
|
|
3026
|
-
* @since MiniKit 3.27.0
|
|
3027
|
-
*/
|
|
2952
|
+
/** 先使用缓存,缓存不存在时发起网络请求 */
|
|
3028
2953
|
CACHE_ELSE_NETWORK = "CACHE_ELSE_NETWORK",
|
|
3029
2954
|
|
|
3030
|
-
/**
|
|
3031
|
-
* 优先使用缓存,同时发起网络请求,网络请求结果会通过事件下发
|
|
3032
|
-
* @since MiniKit 3.27.0
|
|
3033
|
-
*/
|
|
2955
|
+
/** 优先使用缓存,同时发起网络请求,网络请求结果会通过事件下发 */
|
|
3034
2956
|
CACHE_THEN_NETWORK = "CACHE_THEN_NETWORK",
|
|
3035
2957
|
}
|
|
3036
2958
|
|
|
3037
|
-
/** @since MiniKit 3.27.0 */
|
|
3038
2959
|
export interface ApiRequestCacheBean {
|
|
3039
2960
|
/**
|
|
3040
2961
|
* 缓存超时时间,单位秒
|
|
@@ -3049,21 +2970,20 @@ declare namespace ty {
|
|
|
3049
2970
|
policy?: CachePolicy
|
|
3050
2971
|
}
|
|
3051
2972
|
|
|
3052
|
-
/** @since MiniKit 2.3.6 */
|
|
3053
2973
|
export interface HighwayRequestBean {
|
|
3054
2974
|
/**
|
|
3055
2975
|
* api 名称
|
|
3056
|
-
* @since MiniKit
|
|
2976
|
+
* @since MiniKit 1.0.0
|
|
3057
2977
|
*/
|
|
3058
2978
|
api: string
|
|
3059
2979
|
/**
|
|
3060
|
-
*
|
|
3061
|
-
* @since MiniKit
|
|
2980
|
+
* data 请求入参
|
|
2981
|
+
* @since MiniKit 1.0.0
|
|
3062
2982
|
*/
|
|
3063
2983
|
data?: Record<string, any>
|
|
3064
2984
|
/**
|
|
3065
2985
|
* method 请求方法
|
|
3066
|
-
* @since MiniKit
|
|
2986
|
+
* @since MiniKit 1.0.0
|
|
3067
2987
|
* @defaultValue HighwayMethod.GET
|
|
3068
2988
|
*/
|
|
3069
2989
|
method?: HighwayMethod
|
|
@@ -3079,21 +2999,21 @@ declare namespace ty {
|
|
|
3079
2999
|
cache?: ApiRequestCacheBean
|
|
3080
3000
|
}
|
|
3081
3001
|
|
|
3082
|
-
/** @since MiniKit 2.3.6 */
|
|
3083
3002
|
export interface HighwayRequestResponse {
|
|
3003
|
+
/**
|
|
3004
|
+
* 接口返回数据的序列化对象,序列化失败时为null
|
|
3005
|
+
* @since MiniKit 3.2.0
|
|
3006
|
+
*/
|
|
3007
|
+
thing_json_?: {}
|
|
3084
3008
|
/**
|
|
3085
3009
|
* 接口返回的原始数据
|
|
3086
|
-
* @since MiniKit 2.
|
|
3010
|
+
* @since MiniKit 3.2.0
|
|
3087
3011
|
*/
|
|
3088
|
-
data:
|
|
3012
|
+
data: string
|
|
3089
3013
|
}
|
|
3090
3014
|
|
|
3091
|
-
/** @since MiniKit 3.29.2 */
|
|
3092
3015
|
export interface MiniappLogContext {
|
|
3093
|
-
/**
|
|
3094
|
-
* managerId
|
|
3095
|
-
* @since MiniKit 3.29.2
|
|
3096
|
-
*/
|
|
3016
|
+
/** managerId */
|
|
3097
3017
|
logManagerId: number
|
|
3098
3018
|
/**
|
|
3099
3019
|
* 业务类型,比如:Framework、 DeviceDetail等,必传
|
|
@@ -3107,7 +3027,6 @@ declare namespace ty {
|
|
|
3107
3027
|
publicParam?: Record<string, string>
|
|
3108
3028
|
}
|
|
3109
3029
|
|
|
3110
|
-
/** @since MiniKit 3.29.2 */
|
|
3111
3030
|
export interface LogManagerCode {
|
|
3112
3031
|
/**
|
|
3113
3032
|
* 错误码
|
|
@@ -3132,12 +3051,8 @@ declare namespace ty {
|
|
|
3132
3051
|
isEvent?: boolean
|
|
3133
3052
|
}
|
|
3134
3053
|
|
|
3135
|
-
/** @since MiniKit 3.29.2 */
|
|
3136
3054
|
export interface LogManagerReqContext {
|
|
3137
|
-
/**
|
|
3138
|
-
* managerId
|
|
3139
|
-
* @since MiniKit 3.29.2
|
|
3140
|
-
*/
|
|
3055
|
+
/** managerId */
|
|
3141
3056
|
logManagerId: number
|
|
3142
3057
|
/**
|
|
3143
3058
|
* errorCode
|
|
@@ -3153,10 +3068,9 @@ declare namespace ty {
|
|
|
3153
3068
|
* 自定义参数,(限制1000个字符)
|
|
3154
3069
|
* @since MiniKit 3.29.2
|
|
3155
3070
|
*/
|
|
3156
|
-
params?:
|
|
3071
|
+
params?: Object
|
|
3157
3072
|
}
|
|
3158
3073
|
|
|
3159
|
-
/** @since MiniKit 1.0.0 */
|
|
3160
3074
|
export interface BackMiniProgramBean {
|
|
3161
3075
|
/**
|
|
3162
3076
|
* 需要返回给上一个小程序的数据,上一个小程序可在 App.onShow 中获取到这份数据
|
|
@@ -3165,28 +3079,17 @@ declare namespace ty {
|
|
|
3165
3079
|
extraData?: Record<string, any>
|
|
3166
3080
|
}
|
|
3167
3081
|
|
|
3168
|
-
/** @since MiniKit 3.15.0 */
|
|
3169
3082
|
export enum MiniAppScene {
|
|
3170
|
-
/**
|
|
3171
|
-
* 默认值
|
|
3172
|
-
* @since MiniKit 3.15.0
|
|
3173
|
-
*/
|
|
3083
|
+
/** 默认值 */
|
|
3174
3084
|
DEFAULT = 1000,
|
|
3175
3085
|
|
|
3176
|
-
/**
|
|
3177
|
-
* 通过最近使用小程序列表进入
|
|
3178
|
-
* @since MiniKit 3.15.0
|
|
3179
|
-
*/
|
|
3086
|
+
/** 通过最近使用小程序列表进入 */
|
|
3180
3087
|
RECENTLY_USED = 1001,
|
|
3181
3088
|
|
|
3182
|
-
/**
|
|
3183
|
-
* 通过URL映射进入
|
|
3184
|
-
* @since MiniKit 3.15.0
|
|
3185
|
-
*/
|
|
3089
|
+
/** 通过URL映射进入 */
|
|
3186
3090
|
URL_MAPPING = 1002,
|
|
3187
3091
|
}
|
|
3188
3092
|
|
|
3189
|
-
/** @since MiniKit 1.0.0 */
|
|
3190
3093
|
export interface ReferrerInfo {
|
|
3191
3094
|
/**
|
|
3192
3095
|
* 来源小程序的 appId
|
|
@@ -3200,32 +3103,31 @@ declare namespace ty {
|
|
|
3200
3103
|
extraData: Record<string, any>
|
|
3201
3104
|
}
|
|
3202
3105
|
|
|
3203
|
-
/** @since MiniKit 1.0.0 */
|
|
3204
3106
|
export interface MiniAppOptions {
|
|
3205
3107
|
/**
|
|
3206
3108
|
* 启动小程序的路径 (代码包路径)
|
|
3207
|
-
* @since MiniKit
|
|
3109
|
+
* @since MiniKit 3.2.0
|
|
3208
3110
|
*/
|
|
3209
3111
|
path: string
|
|
3210
3112
|
/**
|
|
3211
3113
|
* 启动小程序的场景值
|
|
3212
|
-
* @since MiniKit 3.
|
|
3114
|
+
* @since MiniKit 3.14.1
|
|
3213
3115
|
* @defaultValue MiniAppScene.DEFAULT
|
|
3214
3116
|
*/
|
|
3215
3117
|
scene?: MiniAppScene
|
|
3216
3118
|
/**
|
|
3217
3119
|
* 启动小程序的 query 参数
|
|
3218
|
-
* @since MiniKit
|
|
3120
|
+
* @since MiniKit 3.2.0
|
|
3219
3121
|
*/
|
|
3220
3122
|
query: Record<string, any>
|
|
3221
3123
|
/**
|
|
3222
3124
|
* 分享转发
|
|
3223
|
-
* @since MiniKit
|
|
3125
|
+
* @since MiniKit 3.2.0
|
|
3224
3126
|
*/
|
|
3225
3127
|
referrerInfo: ReferrerInfo
|
|
3226
3128
|
/**
|
|
3227
3129
|
* API 类别: default 默认类别; embedded 内嵌,通过打开半屏小程序能力打开的小程序
|
|
3228
|
-
* @since MiniKit
|
|
3130
|
+
* @since MiniKit 3.2.0
|
|
3229
3131
|
* @defaultValue "default"
|
|
3230
3132
|
*/
|
|
3231
3133
|
apiCategory?: string
|
|
@@ -3236,16 +3138,14 @@ declare namespace ty {
|
|
|
3236
3138
|
extraQuery?: Record<string, any>
|
|
3237
3139
|
}
|
|
3238
3140
|
|
|
3239
|
-
/** @since MiniKit 2.0.6 */
|
|
3240
3141
|
export interface BoardBean {
|
|
3241
3142
|
/**
|
|
3242
3143
|
* 看板页标题
|
|
3243
|
-
* @since MiniKit
|
|
3144
|
+
* @since MiniKit 1.0.0
|
|
3244
3145
|
*/
|
|
3245
3146
|
title: string
|
|
3246
3147
|
}
|
|
3247
3148
|
|
|
3248
|
-
/** @since MiniKit 2.3.17 */
|
|
3249
3149
|
export interface BoardIconBean {
|
|
3250
3150
|
/**
|
|
3251
3151
|
* 看板页icon
|
|
@@ -3254,41 +3154,39 @@ declare namespace ty {
|
|
|
3254
3154
|
icon: string
|
|
3255
3155
|
}
|
|
3256
3156
|
|
|
3257
|
-
/** @since MiniKit 2.3.0 */
|
|
3258
3157
|
export interface CapsuleButtonRectBean {
|
|
3259
3158
|
/**
|
|
3260
3159
|
* 宽度,单位:px
|
|
3261
|
-
* @since MiniKit 2.
|
|
3160
|
+
* @since MiniKit 3.2.0
|
|
3262
3161
|
*/
|
|
3263
3162
|
width: number
|
|
3264
3163
|
/**
|
|
3265
3164
|
* 高度,单位:px
|
|
3266
|
-
* @since MiniKit 2.
|
|
3165
|
+
* @since MiniKit 3.2.0
|
|
3267
3166
|
*/
|
|
3268
3167
|
height: number
|
|
3269
3168
|
/**
|
|
3270
3169
|
* 上边界坐标,单位:px
|
|
3271
|
-
* @since MiniKit 2.
|
|
3170
|
+
* @since MiniKit 3.2.0
|
|
3272
3171
|
*/
|
|
3273
3172
|
top: number
|
|
3274
3173
|
/**
|
|
3275
3174
|
* 右边界坐标,单位:px
|
|
3276
|
-
* @since MiniKit 2.
|
|
3175
|
+
* @since MiniKit 3.2.0
|
|
3277
3176
|
*/
|
|
3278
3177
|
right: number
|
|
3279
3178
|
/**
|
|
3280
3179
|
* 下边界坐标,单位:px
|
|
3281
|
-
* @since MiniKit 2.
|
|
3180
|
+
* @since MiniKit 3.2.0
|
|
3282
3181
|
*/
|
|
3283
3182
|
bottom: number
|
|
3284
3183
|
/**
|
|
3285
3184
|
* 左边界坐标,单位:px
|
|
3286
|
-
* @since MiniKit 2.
|
|
3185
|
+
* @since MiniKit 3.2.0
|
|
3287
3186
|
*/
|
|
3288
3187
|
left: number
|
|
3289
3188
|
}
|
|
3290
3189
|
|
|
3291
|
-
/** @since MiniKit 2.3.0 */
|
|
3292
3190
|
export interface PreDownloadMiniAppParams {
|
|
3293
3191
|
/**
|
|
3294
3192
|
* 小程序id
|
|
@@ -3302,7 +3200,6 @@ declare namespace ty {
|
|
|
3302
3200
|
miniAppVersion?: string
|
|
3303
3201
|
}
|
|
3304
3202
|
|
|
3305
|
-
/** @since MiniKit 2.3.2 */
|
|
3306
3203
|
export interface LoginBean {
|
|
3307
3204
|
/**
|
|
3308
3205
|
* 超时时间,单位ms
|
|
@@ -3311,16 +3208,14 @@ declare namespace ty {
|
|
|
3311
3208
|
timeout?: number
|
|
3312
3209
|
}
|
|
3313
3210
|
|
|
3314
|
-
/** @since MiniKit 2.3.2 */
|
|
3315
3211
|
export interface LoginResult {
|
|
3316
3212
|
/**
|
|
3317
3213
|
* 用户登录凭证(有效期五分钟)
|
|
3318
|
-
* @since MiniKit
|
|
3214
|
+
* @since MiniKit 3.2.0
|
|
3319
3215
|
*/
|
|
3320
3216
|
code: string
|
|
3321
3217
|
}
|
|
3322
3218
|
|
|
3323
|
-
/** @since MiniKit 2.4.1 */
|
|
3324
3219
|
export interface OrientationBean {
|
|
3325
3220
|
/**
|
|
3326
3221
|
* 屏幕旋转设置, auto / portrait / landscape (默认landscape-right)
|
|
@@ -3334,7 +3229,6 @@ declare namespace ty {
|
|
|
3334
3229
|
reverse?: boolean
|
|
3335
3230
|
}
|
|
3336
3231
|
|
|
3337
|
-
/** @since MiniKit 3.0.0 */
|
|
3338
3232
|
export interface OpenURLBean {
|
|
3339
3233
|
/**
|
|
3340
3234
|
* 要打开的url
|
|
@@ -3343,17 +3237,15 @@ declare namespace ty {
|
|
|
3343
3237
|
url: string
|
|
3344
3238
|
}
|
|
3345
3239
|
|
|
3346
|
-
/** @since MiniKit 3.0.0 */
|
|
3347
3240
|
export interface CanOpenURLResultBean {
|
|
3348
3241
|
/**
|
|
3349
3242
|
* 是否支持打开对应的url
|
|
3350
|
-
* @since MiniKit 3.
|
|
3243
|
+
* @since MiniKit 3.2.0
|
|
3351
3244
|
* @defaultValue false
|
|
3352
3245
|
*/
|
|
3353
3246
|
isCanOpen?: boolean
|
|
3354
3247
|
}
|
|
3355
3248
|
|
|
3356
|
-
/** @since MiniKit 3.1.0 */
|
|
3357
3249
|
export interface MiniProgramAccountInfo {
|
|
3358
3250
|
/**
|
|
3359
3251
|
* 小程序 appId
|
|
@@ -3392,40 +3284,30 @@ declare namespace ty {
|
|
|
3392
3284
|
providerType: string
|
|
3393
3285
|
}
|
|
3394
3286
|
|
|
3395
|
-
/** @since MiniKit 3.1.0 */
|
|
3396
3287
|
export interface AccountInfoResp {
|
|
3397
3288
|
/**
|
|
3398
3289
|
* 小程序账号信息
|
|
3399
|
-
* @since MiniKit 3.
|
|
3290
|
+
* @since MiniKit 3.2.0
|
|
3400
3291
|
*/
|
|
3401
3292
|
miniProgram: MiniProgramAccountInfo
|
|
3402
3293
|
}
|
|
3403
3294
|
|
|
3404
|
-
/** @since MiniKit 3.11.5 */
|
|
3405
3295
|
export interface MiniAppConfigResp {
|
|
3406
3296
|
/**
|
|
3407
3297
|
* 小程序自定义配置
|
|
3408
3298
|
* @since MiniKit 3.11.5
|
|
3409
3299
|
*/
|
|
3410
|
-
config:
|
|
3300
|
+
config: {}
|
|
3411
3301
|
}
|
|
3412
3302
|
|
|
3413
|
-
/** @since MiniKit 3.4.0 */
|
|
3414
3303
|
export enum EffectPage {
|
|
3415
|
-
/**
|
|
3416
|
-
* 当前页面
|
|
3417
|
-
* @since MiniKit 3.4.0
|
|
3418
|
-
*/
|
|
3304
|
+
/** 当前页面 */
|
|
3419
3305
|
current = "current",
|
|
3420
3306
|
|
|
3421
|
-
/**
|
|
3422
|
-
* 所有页面
|
|
3423
|
-
* @since MiniKit 3.4.0
|
|
3424
|
-
*/
|
|
3307
|
+
/** 所有页面 */
|
|
3425
3308
|
all = "all",
|
|
3426
3309
|
}
|
|
3427
3310
|
|
|
3428
|
-
/** @since MiniKit 3.4.0 */
|
|
3429
3311
|
export interface BoardItemBean {
|
|
3430
3312
|
/**
|
|
3431
3313
|
* item名称
|
|
@@ -3450,7 +3332,6 @@ declare namespace ty {
|
|
|
3450
3332
|
isShow?: boolean
|
|
3451
3333
|
}
|
|
3452
3334
|
|
|
3453
|
-
/** @since MiniKit 3.4.0 */
|
|
3454
3335
|
export interface BoardMenusBean {
|
|
3455
3336
|
/**
|
|
3456
3337
|
* 生效页面, 默认当前页面
|
|
@@ -3465,7 +3346,6 @@ declare namespace ty {
|
|
|
3465
3346
|
menus: BoardItemBean[]
|
|
3466
3347
|
}
|
|
3467
3348
|
|
|
3468
|
-
/** @since MiniKit 3.6.1 */
|
|
3469
3349
|
export interface RedBodReq {
|
|
3470
3350
|
/**
|
|
3471
3351
|
* 生效页面, 默认当前页面
|
|
@@ -3480,7 +3360,6 @@ declare namespace ty {
|
|
|
3480
3360
|
key: string
|
|
3481
3361
|
}
|
|
3482
3362
|
|
|
3483
|
-
/** @since MiniKit 3.12.1 */
|
|
3484
3363
|
export interface BackgroundImageBean {
|
|
3485
3364
|
/**
|
|
3486
3365
|
* 图片地址,支持网络图片和本地图片
|
|
@@ -3489,7 +3368,6 @@ declare namespace ty {
|
|
|
3489
3368
|
imageUrl: string
|
|
3490
3369
|
}
|
|
3491
3370
|
|
|
3492
|
-
/** @since MiniKit 3.14.0 */
|
|
3493
3371
|
export interface BackgroundColorBean {
|
|
3494
3372
|
/**
|
|
3495
3373
|
* 当前页面背景颜色
|
|
@@ -3498,12 +3376,8 @@ declare namespace ty {
|
|
|
3498
3376
|
color: string
|
|
3499
3377
|
}
|
|
3500
3378
|
|
|
3501
|
-
/** @since MiniKit 3.6.0 */
|
|
3502
3379
|
export interface CreateReq {
|
|
3503
|
-
/**
|
|
3504
|
-
* managerId: 通知管理器id
|
|
3505
|
-
* @since MiniKit 3.6.0
|
|
3506
|
-
*/
|
|
3380
|
+
/** managerId: 通知管理器id */
|
|
3507
3381
|
managerId: string
|
|
3508
3382
|
/**
|
|
3509
3383
|
* name: 通知名称
|
|
@@ -3512,16 +3386,11 @@ declare namespace ty {
|
|
|
3512
3386
|
name: string
|
|
3513
3387
|
}
|
|
3514
3388
|
|
|
3515
|
-
/** @since MiniKit 3.6.0 */
|
|
3516
3389
|
export interface ObserverReq {
|
|
3517
|
-
/**
|
|
3518
|
-
* managerId: 通知管理器id
|
|
3519
|
-
* @since MiniKit 3.6.0
|
|
3520
|
-
*/
|
|
3390
|
+
/** managerId: 通知管理器id */
|
|
3521
3391
|
managerId: string
|
|
3522
3392
|
}
|
|
3523
3393
|
|
|
3524
|
-
/** @since MiniKit 3.20.0 */
|
|
3525
3394
|
export interface SendNotificationToNativeParams {
|
|
3526
3395
|
/**
|
|
3527
3396
|
* eventId: 事件id
|
|
@@ -3535,21 +3404,13 @@ declare namespace ty {
|
|
|
3535
3404
|
name: string
|
|
3536
3405
|
}
|
|
3537
3406
|
|
|
3538
|
-
/** @since MiniKit 3.6.0 */
|
|
3539
3407
|
export interface Received {
|
|
3540
|
-
/**
|
|
3541
|
-
* managerId
|
|
3542
|
-
* @since MiniKit 3.6.0
|
|
3543
|
-
*/
|
|
3408
|
+
/** managerId */
|
|
3544
3409
|
managerId: string
|
|
3545
|
-
/**
|
|
3546
|
-
|
|
3547
|
-
* @since MiniKit 3.6.0
|
|
3548
|
-
*/
|
|
3549
|
-
data: Record<string, any>
|
|
3410
|
+
/** data: 通知内容 */
|
|
3411
|
+
data: {}
|
|
3550
3412
|
}
|
|
3551
3413
|
|
|
3552
|
-
/** @since MiniKit 1.0.0 */
|
|
3553
3414
|
export interface NavigationBarLoadingParams {
|
|
3554
3415
|
/**
|
|
3555
3416
|
* 页面标题
|
|
@@ -3558,7 +3419,6 @@ declare namespace ty {
|
|
|
3558
3419
|
title: string
|
|
3559
3420
|
}
|
|
3560
3421
|
|
|
3561
|
-
/** @since MiniKit 1.0.0 */
|
|
3562
3422
|
export interface NavigationBarColorAnimationInfo {
|
|
3563
3423
|
/**
|
|
3564
3424
|
* 动画变化时间,单位 ms
|
|
@@ -3578,7 +3438,6 @@ declare namespace ty {
|
|
|
3578
3438
|
timingFunc?: string
|
|
3579
3439
|
}
|
|
3580
3440
|
|
|
3581
|
-
/** @since MiniKit 1.0.0 */
|
|
3582
3441
|
export interface NavigationBarColorParams {
|
|
3583
3442
|
/**
|
|
3584
3443
|
* 前景颜色值,包括按钮、标题、状态栏的颜色,仅支持 #ffffff 和 #000000
|
|
@@ -3597,7 +3456,6 @@ declare namespace ty {
|
|
|
3597
3456
|
animation: NavigationBarColorAnimationInfo
|
|
3598
3457
|
}
|
|
3599
3458
|
|
|
3600
|
-
/** @since MiniKit 1.0.0 */
|
|
3601
3459
|
export interface RouteBean {
|
|
3602
3460
|
/**
|
|
3603
3461
|
* 页面路径, 参数需要做 url encode 处理
|
|
@@ -3634,62 +3492,55 @@ declare namespace ty {
|
|
|
3634
3492
|
animationType?: string
|
|
3635
3493
|
}
|
|
3636
3494
|
|
|
3637
|
-
/** @since MiniKit 2.4.8 */
|
|
3638
3495
|
export interface BackRouteBean {
|
|
3639
3496
|
/**
|
|
3640
3497
|
* 返回的页面数,如果 delta 大于现有页面数,则返回到首页
|
|
3641
|
-
* @since MiniKit
|
|
3498
|
+
* @since MiniKit 1.0.0
|
|
3642
3499
|
* @defaultValue 1
|
|
3643
3500
|
*/
|
|
3644
3501
|
delta?: number
|
|
3645
3502
|
}
|
|
3646
3503
|
|
|
3647
|
-
/** @since MiniKit 3.15.2 */
|
|
3648
3504
|
export interface RedirectBean {
|
|
3649
3505
|
/**
|
|
3650
3506
|
* 页面路径, 参数需要做 url encode 处理
|
|
3651
|
-
* @since MiniKit
|
|
3507
|
+
* @since MiniKit 1.0.0
|
|
3652
3508
|
*/
|
|
3653
3509
|
url: string
|
|
3654
3510
|
}
|
|
3655
3511
|
|
|
3656
|
-
/** @since MiniKit 3.15.2 */
|
|
3657
3512
|
export interface ReLaunchBean {
|
|
3658
3513
|
/**
|
|
3659
3514
|
* 页面路径, 参数需要做 url encode 处理
|
|
3660
|
-
* @since MiniKit
|
|
3515
|
+
* @since MiniKit 1.0.0
|
|
3661
3516
|
*/
|
|
3662
3517
|
url: string
|
|
3663
3518
|
}
|
|
3664
3519
|
|
|
3665
|
-
/** @since MiniKit 3.15.2 */
|
|
3666
3520
|
export interface SwitchTabBean {
|
|
3667
3521
|
/**
|
|
3668
3522
|
* 页面路径, 不支持参数
|
|
3669
|
-
* @since MiniKit
|
|
3523
|
+
* @since MiniKit 1.0.0
|
|
3670
3524
|
*/
|
|
3671
3525
|
url: string
|
|
3672
3526
|
}
|
|
3673
3527
|
|
|
3674
|
-
/** @since MiniKit 3.15.2 */
|
|
3675
3528
|
export interface CanIUseBean {
|
|
3676
3529
|
/**
|
|
3677
3530
|
* api名称
|
|
3678
|
-
* @since MiniKit
|
|
3531
|
+
* @since MiniKit 2.4.2
|
|
3679
3532
|
*/
|
|
3680
3533
|
api: string
|
|
3681
3534
|
}
|
|
3682
3535
|
|
|
3683
|
-
/** @since MiniKit 2.4.2 */
|
|
3684
3536
|
export interface SuccessResult {
|
|
3685
3537
|
/**
|
|
3686
3538
|
* 当前版本是否可用
|
|
3687
|
-
* @since MiniKit 2.
|
|
3539
|
+
* @since MiniKit 3.2.0
|
|
3688
3540
|
*/
|
|
3689
3541
|
result: boolean
|
|
3690
3542
|
}
|
|
3691
3543
|
|
|
3692
|
-
/** @since MiniKit 2.4.2 */
|
|
3693
3544
|
export interface ExtApiBean {
|
|
3694
3545
|
/**
|
|
3695
3546
|
* api名称
|
|
@@ -3703,16 +3554,14 @@ declare namespace ty {
|
|
|
3703
3554
|
params?: Record<string, any>
|
|
3704
3555
|
}
|
|
3705
3556
|
|
|
3706
|
-
/** @since MiniKit 2.4.2 */
|
|
3707
3557
|
export interface InvokeResult {
|
|
3708
3558
|
/**
|
|
3709
3559
|
* extApi返回数据
|
|
3710
|
-
* @since MiniKit 2.
|
|
3560
|
+
* @since MiniKit 3.2.0
|
|
3711
3561
|
*/
|
|
3712
|
-
data?:
|
|
3562
|
+
data?: {}
|
|
3713
3563
|
}
|
|
3714
3564
|
|
|
3715
|
-
/** @since MiniKit 3.27.0 */
|
|
3716
3565
|
export interface ReceiveApiRequestCacheReq {
|
|
3717
3566
|
/**
|
|
3718
3567
|
* requestId 请求ID
|
|
@@ -3721,14 +3570,13 @@ declare namespace ty {
|
|
|
3721
3570
|
requestId: string
|
|
3722
3571
|
}
|
|
3723
3572
|
|
|
3724
|
-
/** @since MiniKit 3.27.0 */
|
|
3725
3573
|
export interface ReceiveApiRequestCacheRes {
|
|
3726
3574
|
/**
|
|
3727
3575
|
* 请求结果
|
|
3728
3576
|
* thing_data_ 出参结构体, JSON序列化
|
|
3729
3577
|
* @since MiniKit 3.27.0
|
|
3730
3578
|
*/
|
|
3731
|
-
thing_json_?:
|
|
3579
|
+
thing_json_?: {}
|
|
3732
3580
|
/**
|
|
3733
3581
|
* 元数据
|
|
3734
3582
|
* @since MiniKit 3.27.0
|
|
@@ -3738,7 +3586,7 @@ declare namespace ty {
|
|
|
3738
3586
|
* 序列化返回结果
|
|
3739
3587
|
* @since MiniKit 3.27.0
|
|
3740
3588
|
*/
|
|
3741
|
-
result:
|
|
3589
|
+
result: {}
|
|
3742
3590
|
/**
|
|
3743
3591
|
* apiName
|
|
3744
3592
|
* @since MiniKit 3.27.0
|
|
@@ -3746,7 +3594,6 @@ declare namespace ty {
|
|
|
3746
3594
|
api: string
|
|
3747
3595
|
}
|
|
3748
3596
|
|
|
3749
|
-
/** @since MiniKit 3.27.0 */
|
|
3750
3597
|
export interface RemoveApiRequestCacheBean {
|
|
3751
3598
|
/**
|
|
3752
3599
|
* apiName API名称
|
|
@@ -3760,7 +3607,6 @@ declare namespace ty {
|
|
|
3760
3607
|
version: string
|
|
3761
3608
|
}
|
|
3762
3609
|
|
|
3763
|
-
/** @since MiniKit 3.27.0 */
|
|
3764
3610
|
export interface RemoveApiRequestCacheReq {
|
|
3765
3611
|
/**
|
|
3766
3612
|
* apiList 需要删除缓存的API列表
|
|
@@ -3769,7 +3615,6 @@ declare namespace ty {
|
|
|
3769
3615
|
apiList: RemoveApiRequestCacheBean[]
|
|
3770
3616
|
}
|
|
3771
3617
|
|
|
3772
|
-
/** @since MiniKit 3.30.0 */
|
|
3773
3618
|
export interface EnablePageScrollBean {
|
|
3774
3619
|
/**
|
|
3775
3620
|
* 是否允许页面滚动
|
|
@@ -3779,22 +3624,14 @@ declare namespace ty {
|
|
|
3779
3624
|
scrollEnable?: boolean
|
|
3780
3625
|
}
|
|
3781
3626
|
|
|
3782
|
-
/** @since MiniKit 3.5.4 */
|
|
3783
3627
|
export enum WidgetMode {
|
|
3784
|
-
/**
|
|
3785
|
-
* 单次移除
|
|
3786
|
-
* @since MiniKit 3.5.4
|
|
3787
|
-
*/
|
|
3628
|
+
/** 单次移除 */
|
|
3788
3629
|
ONCE = "ONCE",
|
|
3789
3630
|
|
|
3790
|
-
/**
|
|
3791
|
-
* 永久移除
|
|
3792
|
-
* @since MiniKit 3.5.4
|
|
3793
|
-
*/
|
|
3631
|
+
/** 永久移除 */
|
|
3794
3632
|
FOREVER = "FOREVER",
|
|
3795
3633
|
}
|
|
3796
3634
|
|
|
3797
|
-
/** @since MiniKit 3.5.4 */
|
|
3798
3635
|
export interface MiniWidgetRemoveBean {
|
|
3799
3636
|
/**
|
|
3800
3637
|
* 移除模式
|
|
@@ -3826,11 +3663,11 @@ declare namespace ty {
|
|
|
3826
3663
|
* 自定义参数,(限制1000个字符)
|
|
3827
3664
|
* @since MiniKit 3.29.2
|
|
3828
3665
|
*/
|
|
3829
|
-
params?:
|
|
3666
|
+
params?: Object
|
|
3830
3667
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
3831
3668
|
complete?: () => void
|
|
3832
3669
|
/** 接口调用成功的回调函数 */
|
|
3833
|
-
success?: () => void
|
|
3670
|
+
success?: (params: null) => void
|
|
3834
3671
|
/** 接口调用失败的回调函数 */
|
|
3835
3672
|
fail?: (params: {
|
|
3836
3673
|
/** 错误信息 */
|
|
@@ -3868,11 +3705,11 @@ declare namespace ty {
|
|
|
3868
3705
|
* 自定义参数,(限制1000个字符)
|
|
3869
3706
|
* @since MiniKit 3.29.2
|
|
3870
3707
|
*/
|
|
3871
|
-
params?:
|
|
3708
|
+
params?: Object
|
|
3872
3709
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
3873
3710
|
complete?: () => void
|
|
3874
3711
|
/** 接口调用成功的回调函数 */
|
|
3875
|
-
success?: () => void
|
|
3712
|
+
success?: (params: null) => void
|
|
3876
3713
|
/** 接口调用失败的回调函数 */
|
|
3877
3714
|
fail?: (params: {
|
|
3878
3715
|
/** 错误信息 */
|
|
@@ -3910,11 +3747,11 @@ declare namespace ty {
|
|
|
3910
3747
|
* 自定义参数,(限制1000个字符)
|
|
3911
3748
|
* @since MiniKit 3.29.2
|
|
3912
3749
|
*/
|
|
3913
|
-
params?:
|
|
3750
|
+
params?: Object
|
|
3914
3751
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
3915
3752
|
complete?: () => void
|
|
3916
3753
|
/** 接口调用成功的回调函数 */
|
|
3917
|
-
success?: () => void
|
|
3754
|
+
success?: (params: null) => void
|
|
3918
3755
|
/** 接口调用失败的回调函数 */
|
|
3919
3756
|
fail?: (params: {
|
|
3920
3757
|
/** 错误信息 */
|
|
@@ -3951,7 +3788,7 @@ declare namespace ty {
|
|
|
3951
3788
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
3952
3789
|
complete?: () => void
|
|
3953
3790
|
/** 接口调用成功的回调函数 */
|
|
3954
|
-
success?: () => void
|
|
3791
|
+
success?: (params: null) => void
|
|
3955
3792
|
/** 接口调用失败的回调函数 */
|
|
3956
3793
|
fail?: (params: {
|
|
3957
3794
|
/** 错误信息 */
|
|
@@ -3980,7 +3817,7 @@ declare namespace ty {
|
|
|
3980
3817
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
3981
3818
|
complete?: () => void
|
|
3982
3819
|
/** 接口调用成功的回调函数 */
|
|
3983
|
-
success?: () => void
|
|
3820
|
+
success?: (params: null) => void
|
|
3984
3821
|
/** 接口调用失败的回调函数 */
|
|
3985
3822
|
fail?: (params: {
|
|
3986
3823
|
/** 错误信息 */
|
|
@@ -4000,42 +3837,28 @@ declare namespace ty {
|
|
|
4000
3837
|
/**
|
|
4001
3838
|
* 开始监听通知
|
|
4002
3839
|
* @public
|
|
4003
|
-
* @since MiniKit 3.6.0
|
|
4004
3840
|
* @platform iOS Android
|
|
4005
3841
|
*/
|
|
4006
3842
|
onListener(
|
|
4007
3843
|
listener: (params: {
|
|
4008
|
-
/**
|
|
4009
|
-
* managerId
|
|
4010
|
-
* @since MiniKit 3.6.0
|
|
4011
|
-
*/
|
|
3844
|
+
/** managerId */
|
|
4012
3845
|
managerId: string
|
|
4013
|
-
/**
|
|
4014
|
-
|
|
4015
|
-
* @since MiniKit 3.6.0
|
|
4016
|
-
*/
|
|
4017
|
-
data: Record<string, any>
|
|
3846
|
+
/** data: 通知内容 */
|
|
3847
|
+
data: {}
|
|
4018
3848
|
}) => void
|
|
4019
3849
|
): void
|
|
4020
3850
|
|
|
4021
3851
|
/**
|
|
4022
3852
|
* 停止监听通知
|
|
4023
3853
|
* @public
|
|
4024
|
-
* @since MiniKit 3.15.2
|
|
4025
3854
|
* @platform iOS Android
|
|
4026
3855
|
*/
|
|
4027
3856
|
offListener(
|
|
4028
3857
|
listener: (params: {
|
|
4029
|
-
/**
|
|
4030
|
-
* managerId
|
|
4031
|
-
* @since MiniKit 3.6.0
|
|
4032
|
-
*/
|
|
3858
|
+
/** managerId */
|
|
4033
3859
|
managerId: string
|
|
4034
|
-
/**
|
|
4035
|
-
|
|
4036
|
-
* @since MiniKit 3.6.0
|
|
4037
|
-
*/
|
|
4038
|
-
data: Record<string, any>
|
|
3860
|
+
/** data: 通知内容 */
|
|
3861
|
+
data: {}
|
|
4039
3862
|
}) => void
|
|
4040
3863
|
): void
|
|
4041
3864
|
}
|
|
@@ -4054,7 +3877,7 @@ declare namespace ty {
|
|
|
4054
3877
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
4055
3878
|
complete?: () => void
|
|
4056
3879
|
/** 接口调用成功的回调函数 */
|
|
4057
|
-
success?: () => void
|
|
3880
|
+
success?: (params: null) => void
|
|
4058
3881
|
/** 接口调用失败的回调函数 */
|
|
4059
3882
|
fail?: (params: {
|
|
4060
3883
|
/** 错误信息 */
|