@ray-js/api 1.7.83-beta.0 → 1.7.84
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/AIStreamKit.d.ts +530 -10
- package/@types/BaseKit.d.ts +291 -233
- package/@types/BizKit.d.ts +499 -161
- package/@types/LightKit.d.ts +3 -3
- package/@types/MapKit.d.ts +24 -24
- package/@types/MiniKit.d.ts +117 -92
- package/@types/OutdoorKit.d.ts +61 -61
- package/@types/P2PKit.d.ts +25 -25
- package/@types/WearKit.d.ts +550 -26
- package/@types/api-extend.d.ts +1 -1
- package/lib/nativeRouters/device.d.ts +50 -15
- package/lib/nativeRouters/device.js +47 -15
- package/lib/nativeRouters/gw.d.ts +0 -3
- package/lib/nativeRouters/gw.js +0 -3
- package/lib/nativeRouters/outdoors.d.ts +12 -3
- package/lib/nativeRouters/outdoors.js +11 -3
- package/lib/nativeRouters/root.d.ts +33 -5
- package/lib/nativeRouters/root.js +32 -5
- package/package.json +5 -5
package/@types/LightKit.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare namespace ty.light {
|
|
|
8
8
|
* 设置蓝牙设备是否支持手机直连开关状态切换,传入 true 表示开启支持,false 表示关闭支持。
|
|
9
9
|
* @public
|
|
10
10
|
* @since LightKit 1.0.0
|
|
11
|
-
* @example
|
|
11
|
+
* @example
|
|
12
12
|
* ```tsx
|
|
13
13
|
* ty.light.onLocalMeshSupportSwitchChanged({
|
|
14
14
|
* isChecked: false,
|
|
@@ -52,7 +52,7 @@ declare namespace ty.light {
|
|
|
52
52
|
* 获取当前蓝牙设备是否支持手机直连开关状态
|
|
53
53
|
* @public
|
|
54
54
|
* @since LightKit 1.0.0
|
|
55
|
-
* @example
|
|
55
|
+
* @example
|
|
56
56
|
* ```tsx
|
|
57
57
|
* ty.light.getLocalMeshSupportSwitchStatus({
|
|
58
58
|
* success: data => {
|
|
@@ -90,7 +90,7 @@ declare namespace ty.light {
|
|
|
90
90
|
* 跳转群组管理页面
|
|
91
91
|
* @public
|
|
92
92
|
* @since LightKit 1.0.12
|
|
93
|
-
* @example
|
|
93
|
+
* @example
|
|
94
94
|
* ```tsx
|
|
95
95
|
* ty.light.gotoLightGroupManagePage({
|
|
96
96
|
* entityId: "xx",
|
package/@types/MapKit.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* MapKit
|
|
3
3
|
*
|
|
4
|
-
* @version 7.
|
|
4
|
+
* @version 7.10.1
|
|
5
5
|
*/
|
|
6
6
|
declare namespace ty.map {
|
|
7
7
|
/**
|
|
8
8
|
* 是否开启地理围栏功能,与 NG 配置是否开启有关
|
|
9
9
|
* @public
|
|
10
10
|
* @since MapKit 3.9.1
|
|
11
|
-
* @example
|
|
11
|
+
* @example
|
|
12
12
|
* ```tsx
|
|
13
13
|
* ty.map.isSupport({
|
|
14
14
|
* businessType: "scene",
|
|
@@ -65,7 +65,7 @@ declare namespace ty.map {
|
|
|
65
65
|
* 地理围栏是否达到上限,不同手机系统限制数量不一样
|
|
66
66
|
* @public
|
|
67
67
|
* @since MapKit 3.9.1
|
|
68
|
-
* @example
|
|
68
|
+
* @example
|
|
69
69
|
* ```tsx
|
|
70
70
|
* ty.map.isReachLimit({
|
|
71
71
|
* businessType: "scene",
|
|
@@ -123,7 +123,7 @@ declare namespace ty.map {
|
|
|
123
123
|
* 权限: [scope.userLocationBackground] 没有权限时本方法会引导申请权限
|
|
124
124
|
* @public
|
|
125
125
|
* @since MapKit 3.9.1
|
|
126
|
-
* @example
|
|
126
|
+
* @example
|
|
127
127
|
* ```tsx
|
|
128
128
|
* ty.map.openMap({
|
|
129
129
|
* businessInfo: {
|
|
@@ -195,7 +195,7 @@ declare namespace ty.map {
|
|
|
195
195
|
* 注册地理围栏。当编辑地理围栏时,需要先 unregister 旧的地理围栏,再 register 新的地理围栏
|
|
196
196
|
* @public
|
|
197
197
|
* @since MapKit 3.9.1
|
|
198
|
-
* @example
|
|
198
|
+
* @example
|
|
199
199
|
* ```tsx
|
|
200
200
|
* ty.map.register({
|
|
201
201
|
* businessInfo: {
|
|
@@ -255,7 +255,7 @@ declare namespace ty.map {
|
|
|
255
255
|
* 取消地理围栏
|
|
256
256
|
* @public
|
|
257
257
|
* @since MapKit 3.9.1
|
|
258
|
-
* @example
|
|
258
|
+
* @example
|
|
259
259
|
* ```tsx
|
|
260
260
|
* ty.map.unregister({
|
|
261
261
|
* businessInfo: {
|
|
@@ -315,7 +315,7 @@ declare namespace ty.map {
|
|
|
315
315
|
* 更新地理围栏状态
|
|
316
316
|
* @public
|
|
317
317
|
* @since MapKit 3.9.8
|
|
318
|
-
* @example
|
|
318
|
+
* @example
|
|
319
319
|
* ```tsx
|
|
320
320
|
* ty.map.changeGeofenceStatus({
|
|
321
321
|
* businessInfo: {
|
|
@@ -376,7 +376,7 @@ declare namespace ty.map {
|
|
|
376
376
|
* 权限: [scope.location]
|
|
377
377
|
* @public
|
|
378
378
|
* @since MapKit 3.0.1
|
|
379
|
-
* @example
|
|
379
|
+
* @example
|
|
380
380
|
* ```tsx
|
|
381
381
|
* ty.map.unregisterGeofence({
|
|
382
382
|
* geoTitle: "xx",
|
|
@@ -458,7 +458,7 @@ declare namespace ty.map {
|
|
|
458
458
|
* 权限: [scope.location]
|
|
459
459
|
* @public
|
|
460
460
|
* @since MapKit 3.0.1
|
|
461
|
-
* @example
|
|
461
|
+
* @example
|
|
462
462
|
* ```tsx
|
|
463
463
|
* ty.map.isGeofenceReachLimit({
|
|
464
464
|
* success: data => {
|
|
@@ -505,7 +505,7 @@ declare namespace ty.map {
|
|
|
505
505
|
* 权限: [scope.location]
|
|
506
506
|
* @public
|
|
507
507
|
* @since MapKit 3.0.1
|
|
508
|
-
* @example
|
|
508
|
+
* @example
|
|
509
509
|
* ```tsx
|
|
510
510
|
* ty.map.updateGeofence({
|
|
511
511
|
* registerGeoFence: [
|
|
@@ -573,7 +573,7 @@ declare namespace ty.map {
|
|
|
573
573
|
* 权限: [scope.location]
|
|
574
574
|
* @public
|
|
575
575
|
* @since MapKit 3.0.1
|
|
576
|
-
* @example
|
|
576
|
+
* @example
|
|
577
577
|
* ```tsx
|
|
578
578
|
* ty.map.registerGeofence({
|
|
579
579
|
* geoTitle: "xx",
|
|
@@ -655,7 +655,7 @@ declare namespace ty.map {
|
|
|
655
655
|
* 权限: [scope.location]
|
|
656
656
|
* @public
|
|
657
657
|
* @since MapKit 3.0.1
|
|
658
|
-
* @example
|
|
658
|
+
* @example
|
|
659
659
|
* ```tsx
|
|
660
660
|
* ty.map.openGeofenceMap({
|
|
661
661
|
* geoTitle: "xx",
|
|
@@ -736,7 +736,7 @@ declare namespace ty.map {
|
|
|
736
736
|
* 获取当前地理位置和速度
|
|
737
737
|
* @public
|
|
738
738
|
* @since MapKit 1.0.6
|
|
739
|
-
* @example
|
|
739
|
+
* @example
|
|
740
740
|
* ```tsx
|
|
741
741
|
* ty.map.getLocation({
|
|
742
742
|
* type: "gcj02",
|
|
@@ -879,7 +879,7 @@ declare namespace ty.map {
|
|
|
879
879
|
* 打开地图选择位置
|
|
880
880
|
* @public
|
|
881
881
|
* @since MapKit 1.0.6
|
|
882
|
-
* @example
|
|
882
|
+
* @example
|
|
883
883
|
* ```tsx
|
|
884
884
|
* ty.map.chooseLocation({
|
|
885
885
|
* latitude: 39.908823,
|
|
@@ -962,7 +962,7 @@ declare namespace ty.map {
|
|
|
962
962
|
* 获取可打开的第三方地图类型
|
|
963
963
|
* @public
|
|
964
964
|
* @since MapKit 2.1.0
|
|
965
|
-
* @example
|
|
965
|
+
* @example
|
|
966
966
|
* ```tsx
|
|
967
967
|
* ty.map.getMapList({
|
|
968
968
|
* success: data => {
|
|
@@ -1006,7 +1006,7 @@ declare namespace ty.map {
|
|
|
1006
1006
|
* 使用第三方地图查看位置
|
|
1007
1007
|
* @public
|
|
1008
1008
|
* @since MapKit 2.1.0
|
|
1009
|
-
* @example
|
|
1009
|
+
* @example
|
|
1010
1010
|
* ```tsx
|
|
1011
1011
|
* ty.map.openMapAppLocation({
|
|
1012
1012
|
* latitude: 39.908823,
|
|
@@ -1074,7 +1074,7 @@ declare namespace ty.map {
|
|
|
1074
1074
|
* 使用第三方地图应用打开地图并导航到指定位置
|
|
1075
1075
|
* @public
|
|
1076
1076
|
* @since MapKit 7.4.0
|
|
1077
|
-
* @example
|
|
1077
|
+
* @example
|
|
1078
1078
|
* ```tsx
|
|
1079
1079
|
* ty.map.openMapNavigation({
|
|
1080
1080
|
* startLocation: {
|
|
@@ -1144,7 +1144,7 @@ declare namespace ty.map {
|
|
|
1144
1144
|
* 转换经纬度或地址
|
|
1145
1145
|
* @public
|
|
1146
1146
|
* @since MapKit 3.2.2
|
|
1147
|
-
* @example
|
|
1147
|
+
* @example
|
|
1148
1148
|
* ```tsx
|
|
1149
1149
|
* ty.map.transformLocation({
|
|
1150
1150
|
* type: "gcj02",
|
|
@@ -1256,7 +1256,7 @@ declare namespace ty.map {
|
|
|
1256
1256
|
* 将经纬度转换为具体地址
|
|
1257
1257
|
* @public
|
|
1258
1258
|
* @since MapKit 3.4.13
|
|
1259
|
-
* @example
|
|
1259
|
+
* @example
|
|
1260
1260
|
* ```tsx
|
|
1261
1261
|
* ty.map.reverseGeocodeLocation({
|
|
1262
1262
|
* longitude: 116.39747,
|
|
@@ -1376,7 +1376,7 @@ declare namespace ty.map {
|
|
|
1376
1376
|
* 将WGS84坐标系转换为GCJ02坐标系
|
|
1377
1377
|
* @public
|
|
1378
1378
|
* @since MapKit 3.4.13
|
|
1379
|
-
* @example
|
|
1379
|
+
* @example
|
|
1380
1380
|
* ```tsx
|
|
1381
1381
|
* ty.map.coordinateWGS84ToGCJ02({
|
|
1382
1382
|
* longitude: 116.39747,
|
|
@@ -1437,7 +1437,7 @@ declare namespace ty.map {
|
|
|
1437
1437
|
* 将GCJ02坐标系转换为WGS84坐标系
|
|
1438
1438
|
* @public
|
|
1439
1439
|
* @since MapKit 3.4.13
|
|
1440
|
-
* @example
|
|
1440
|
+
* @example
|
|
1441
1441
|
* ```tsx
|
|
1442
1442
|
* ty.map.coordinateGCJ02ToWGS84({
|
|
1443
1443
|
* longitude: 116.39747,
|
|
@@ -1502,7 +1502,7 @@ declare namespace ty.map {
|
|
|
1502
1502
|
* apple: 苹果地图
|
|
1503
1503
|
* @public
|
|
1504
1504
|
* @since MapKit 3.4.13
|
|
1505
|
-
* @example
|
|
1505
|
+
* @example
|
|
1506
1506
|
* ```tsx
|
|
1507
1507
|
* ty.map.getMapType({
|
|
1508
1508
|
* success: data => {
|
|
@@ -1546,7 +1546,7 @@ declare namespace ty.map {
|
|
|
1546
1546
|
* 搜索地址(列表)
|
|
1547
1547
|
* @public
|
|
1548
1548
|
* @since MapKit 3.4.16
|
|
1549
|
-
* @example
|
|
1549
|
+
* @example
|
|
1550
1550
|
* ```tsx
|
|
1551
1551
|
* ty.map.searchAddressList({
|
|
1552
1552
|
* type: 0,
|
|
@@ -1630,7 +1630,7 @@ declare namespace ty.map {
|
|
|
1630
1630
|
* 获取地址详细信息
|
|
1631
1631
|
* @public
|
|
1632
1632
|
* @since MapKit 3.4.16
|
|
1633
|
-
* @example
|
|
1633
|
+
* @example
|
|
1634
1634
|
* ```tsx
|
|
1635
1635
|
* ty.map.getAddressInfo({
|
|
1636
1636
|
* poiID: "xx",
|