@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/lib/HomeKit-3.1.4.d.ts
CHANGED
|
@@ -2,20 +2,24 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
* @since @ray-js/ray 1.2.10
|
|
5
|
+
*
|
|
5
6
|
*/
|
|
6
7
|
export declare const getCurrentHomeInfo: typeof ty.home.getCurrentHomeInfo;
|
|
7
8
|
/**
|
|
8
9
|
* @public
|
|
9
10
|
* @since @ray-js/ray 1.2.10
|
|
11
|
+
*
|
|
10
12
|
*/
|
|
11
13
|
export declare const getDeviceIdList: typeof ty.home.getDeviceIdList;
|
|
12
14
|
/**
|
|
13
15
|
* @public
|
|
14
16
|
* @since @ray-js/ray 1.2.10
|
|
17
|
+
*
|
|
15
18
|
*/
|
|
16
19
|
export declare const getRoomList: typeof ty.home.getRoomList;
|
|
17
20
|
/**
|
|
18
21
|
* @public
|
|
19
22
|
* @since @ray-js/ray 1.2.10
|
|
23
|
+
*
|
|
20
24
|
*/
|
|
21
25
|
export declare const getDeviceRoomInfo: typeof ty.home.getDeviceRoomInfo;
|
package/lib/HomeKit-3.1.4.js
CHANGED
|
@@ -6,6 +6,7 @@ const factory = createFactory('HomeKit');
|
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
8
8
|
* @since @ray-js/ray 1.2.10
|
|
9
|
+
*
|
|
9
10
|
*/
|
|
10
11
|
export const getCurrentHomeInfo = factory('getCurrentHomeInfo', {
|
|
11
12
|
namespace: 'home'
|
|
@@ -13,6 +14,7 @@ export const getCurrentHomeInfo = factory('getCurrentHomeInfo', {
|
|
|
13
14
|
/**
|
|
14
15
|
* @public
|
|
15
16
|
* @since @ray-js/ray 1.2.10
|
|
17
|
+
*
|
|
16
18
|
*/
|
|
17
19
|
export const getDeviceIdList = factory('getDeviceIdList', {
|
|
18
20
|
namespace: 'home'
|
|
@@ -20,6 +22,7 @@ export const getDeviceIdList = factory('getDeviceIdList', {
|
|
|
20
22
|
/**
|
|
21
23
|
* @public
|
|
22
24
|
* @since @ray-js/ray 1.2.10
|
|
25
|
+
*
|
|
23
26
|
*/
|
|
24
27
|
export const getRoomList = factory('getRoomList', {
|
|
25
28
|
namespace: 'home'
|
|
@@ -27,6 +30,7 @@ export const getRoomList = factory('getRoomList', {
|
|
|
27
30
|
/**
|
|
28
31
|
* @public
|
|
29
32
|
* @since @ray-js/ray 1.2.10
|
|
33
|
+
*
|
|
30
34
|
*/
|
|
31
35
|
export const getDeviceRoomInfo = factory('getDeviceRoomInfo', {
|
|
32
36
|
namespace: 'home'
|
package/lib/IPCKit-6.4.5.d.ts
CHANGED
|
@@ -300,7 +300,6 @@ export declare const onPlayMessageVideoInfo: typeof ty.ipc.onPlayMessageVideoInf
|
|
|
300
300
|
*/
|
|
301
301
|
export declare const openFloatWindow: typeof ty.ipc.openFloatWindow;
|
|
302
302
|
/**
|
|
303
|
-
* @public
|
|
304
303
|
* @since @ray-js/ray 1.6.31
|
|
305
304
|
*/
|
|
306
305
|
export declare const publishDps: typeof ty.ipc.publishDps;
|
package/lib/IPCKit-6.4.5.js
CHANGED
package/lib/MapKit-3.4.13.d.ts
CHANGED
|
@@ -2,70 +2,321 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
* @since @ray-js/ray 1.2.10
|
|
5
|
+
*
|
|
6
|
+
* @example 基础调用
|
|
7
|
+
* ```tsx
|
|
8
|
+
* import { map } from '@ray-js/ray';
|
|
9
|
+
*
|
|
10
|
+
* const { chooseLocation } = map;
|
|
11
|
+
*
|
|
12
|
+
* chooseLocation({
|
|
13
|
+
* success: (result) => {
|
|
14
|
+
* console.log('chooseLocation success', result);
|
|
15
|
+
* },
|
|
16
|
+
* fail: (error) => {
|
|
17
|
+
* console.log('chooseLocation fail', error.errorMsg);
|
|
18
|
+
* },
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
5
21
|
*/
|
|
6
22
|
export declare const chooseLocation: typeof ty.map.chooseLocation;
|
|
7
23
|
/**
|
|
8
24
|
* @public
|
|
9
25
|
* @since @ray-js/ray 1.2.10
|
|
26
|
+
*
|
|
27
|
+
* @example 基础调用
|
|
28
|
+
* ```tsx
|
|
29
|
+
* import { map } from '@ray-js/ray';
|
|
30
|
+
*
|
|
31
|
+
* const { getLocation } = map;
|
|
32
|
+
*
|
|
33
|
+
* getLocation({
|
|
34
|
+
* type: 'gcj02',
|
|
35
|
+
* altitude: false,
|
|
36
|
+
* isHighAccuracy: false,
|
|
37
|
+
* highAccuracyExpireTime: 3000,
|
|
38
|
+
* success: (result) => {
|
|
39
|
+
* console.log('getLocation success', result);
|
|
40
|
+
* },
|
|
41
|
+
* fail: (error) => {
|
|
42
|
+
* console.log('getLocation fail', error.errorMsg);
|
|
43
|
+
* },
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
10
46
|
*/
|
|
11
47
|
export declare const getLocation: typeof ty.map.getLocation;
|
|
12
48
|
/**
|
|
13
49
|
* @public
|
|
14
50
|
* @since @ray-js/ray 1.2.10
|
|
51
|
+
*
|
|
52
|
+
* @example 基础调用
|
|
53
|
+
* ```tsx
|
|
54
|
+
* import { map } from '@ray-js/ray';
|
|
55
|
+
*
|
|
56
|
+
* const { getMapList } = map;
|
|
57
|
+
*
|
|
58
|
+
* getMapList({
|
|
59
|
+
* success: (result) => {
|
|
60
|
+
* console.log('getMapList success', result);
|
|
61
|
+
* },
|
|
62
|
+
* fail: (error) => {
|
|
63
|
+
* console.log('getMapList fail', error.errorMsg);
|
|
64
|
+
* },
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
15
67
|
*/
|
|
16
68
|
export declare const getMapList: typeof ty.map.getMapList;
|
|
17
69
|
/**
|
|
18
70
|
* @public
|
|
19
71
|
* @since @ray-js/ray 1.2.10
|
|
72
|
+
*
|
|
73
|
+
* @example 基础调用
|
|
74
|
+
* ```tsx
|
|
75
|
+
* import { map } from '@ray-js/ray';
|
|
76
|
+
*
|
|
77
|
+
* const { isGeofenceReachLimit } = map;
|
|
78
|
+
*
|
|
79
|
+
* isGeofenceReachLimit({
|
|
80
|
+
* success: (result) => {
|
|
81
|
+
* console.log('isGeofenceReachLimit success', result);
|
|
82
|
+
* },
|
|
83
|
+
* fail: (error) => {
|
|
84
|
+
* console.log('isGeofenceReachLimit fail', error.errorMsg);
|
|
85
|
+
* },
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
20
88
|
*/
|
|
21
89
|
export declare const isGeofenceReachLimit: typeof ty.map.isGeofenceReachLimit;
|
|
22
90
|
/**
|
|
23
91
|
* @public
|
|
24
92
|
* @since @ray-js/ray 1.2.10
|
|
93
|
+
*
|
|
94
|
+
* @example 基础调用
|
|
95
|
+
* ```tsx
|
|
96
|
+
* import { map } from '@ray-js/ray';
|
|
97
|
+
*
|
|
98
|
+
* const { openGeofenceMap } = map;
|
|
99
|
+
*
|
|
100
|
+
* openGeofenceMap({
|
|
101
|
+
* success: () => {
|
|
102
|
+
* console.log('openGeofenceMap success');
|
|
103
|
+
* },
|
|
104
|
+
* fail: (error) => {
|
|
105
|
+
* console.log('openGeofenceMap fail', error.errorMsg);
|
|
106
|
+
* },
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
25
109
|
*/
|
|
26
110
|
export declare const openGeofenceMap: typeof ty.map.openGeofenceMap;
|
|
27
111
|
/**
|
|
28
112
|
* @public
|
|
29
113
|
* @since @ray-js/ray 1.2.10
|
|
114
|
+
*
|
|
115
|
+
* @example 基础调用
|
|
116
|
+
* ```tsx
|
|
117
|
+
* import { map } from '@ray-js/ray';
|
|
118
|
+
*
|
|
119
|
+
* const { openMapAppLocation } = map;
|
|
120
|
+
*
|
|
121
|
+
* openMapAppLocation({
|
|
122
|
+
* latitude: 30.27,
|
|
123
|
+
* longitude: 120.15,
|
|
124
|
+
* name: 'example location',
|
|
125
|
+
* address: 'example address',
|
|
126
|
+
* mapType: 'MA',
|
|
127
|
+
* success: () => {
|
|
128
|
+
* console.log('openMapAppLocation success');
|
|
129
|
+
* },
|
|
130
|
+
* fail: (error) => {
|
|
131
|
+
* console.log('openMapAppLocation fail', error.errorMsg);
|
|
132
|
+
* },
|
|
133
|
+
* });
|
|
134
|
+
* ```
|
|
30
135
|
*/
|
|
31
136
|
export declare const openMapAppLocation: typeof ty.map.openMapAppLocation;
|
|
32
137
|
/**
|
|
33
138
|
* @public
|
|
34
139
|
* @since @ray-js/ray 1.2.10
|
|
140
|
+
*
|
|
141
|
+
* @example 基础调用
|
|
142
|
+
* ```tsx
|
|
143
|
+
* import { map } from '@ray-js/ray';
|
|
144
|
+
*
|
|
145
|
+
* const { registerGeofence } = map;
|
|
146
|
+
*
|
|
147
|
+
* registerGeofence({
|
|
148
|
+
* geoTitle: 'home',
|
|
149
|
+
* longitude: 120.15,
|
|
150
|
+
* latitude: 30.27,
|
|
151
|
+
* radius: 500,
|
|
152
|
+
* geofenceId: 'fence_001',
|
|
153
|
+
* type: 0,
|
|
154
|
+
* success: () => {
|
|
155
|
+
* console.log('registerGeofence success');
|
|
156
|
+
* },
|
|
157
|
+
* fail: (error) => {
|
|
158
|
+
* console.log('registerGeofence fail', error.errorMsg);
|
|
159
|
+
* },
|
|
160
|
+
* });
|
|
161
|
+
* ```
|
|
35
162
|
*/
|
|
36
163
|
export declare const registerGeofence: typeof ty.map.registerGeofence;
|
|
37
164
|
/**
|
|
38
165
|
* @public
|
|
39
166
|
* @since @ray-js/ray 1.2.10
|
|
167
|
+
*
|
|
168
|
+
* @example 基础调用
|
|
169
|
+
* ```tsx
|
|
170
|
+
* import { map } from '@ray-js/ray';
|
|
171
|
+
*
|
|
172
|
+
* const { unregisterGeofence } = map;
|
|
173
|
+
*
|
|
174
|
+
* unregisterGeofence({
|
|
175
|
+
* geofenceId: 'fence_001',
|
|
176
|
+
* success: () => {
|
|
177
|
+
* console.log('unregisterGeofence success');
|
|
178
|
+
* },
|
|
179
|
+
* fail: (error) => {
|
|
180
|
+
* console.log('unregisterGeofence fail', error.errorMsg);
|
|
181
|
+
* },
|
|
182
|
+
* });
|
|
183
|
+
* ```
|
|
40
184
|
*/
|
|
41
185
|
export declare const unregisterGeofence: typeof ty.map.unregisterGeofence;
|
|
42
186
|
/**
|
|
43
187
|
* @public
|
|
44
188
|
* @since @ray-js/ray 1.2.10
|
|
189
|
+
*
|
|
190
|
+
* @example 基础调用
|
|
191
|
+
* ```tsx
|
|
192
|
+
* import { map } from '@ray-js/ray';
|
|
193
|
+
*
|
|
194
|
+
* const { updateGeofence } = map;
|
|
195
|
+
*
|
|
196
|
+
* updateGeofence({
|
|
197
|
+
* registerGeoFence: [{ geofenceId: 'fence_001', longitude: 120.15, latitude: 30.27, radius: 500 }],
|
|
198
|
+
* unregisterGeoFence: [],
|
|
199
|
+
* success: (result) => {
|
|
200
|
+
* console.log('updateGeofence success', result);
|
|
201
|
+
* },
|
|
202
|
+
* fail: (error) => {
|
|
203
|
+
* console.log('updateGeofence fail', error.errorMsg);
|
|
204
|
+
* },
|
|
205
|
+
* });
|
|
206
|
+
* ```
|
|
45
207
|
*/
|
|
46
208
|
export declare const updateGeofence: typeof ty.map.updateGeofence;
|
|
47
209
|
/**
|
|
48
210
|
* @public
|
|
49
211
|
* @since @ray-js/ray 1.4.38
|
|
212
|
+
*
|
|
213
|
+
* @example 基础调用
|
|
214
|
+
* ```tsx
|
|
215
|
+
* import { map } from '@ray-js/ray';
|
|
216
|
+
*
|
|
217
|
+
* const { transformLocation } = map;
|
|
218
|
+
*
|
|
219
|
+
* transformLocation({
|
|
220
|
+
* type: 'gcj02',
|
|
221
|
+
* latitude: 30.27,
|
|
222
|
+
* longitude: 120.15,
|
|
223
|
+
* success: (result) => {
|
|
224
|
+
* console.log('transformLocation success', result);
|
|
225
|
+
* },
|
|
226
|
+
* fail: (error) => {
|
|
227
|
+
* console.log('transformLocation fail', error.errorMsg);
|
|
228
|
+
* },
|
|
229
|
+
* });
|
|
230
|
+
* ```
|
|
50
231
|
*/
|
|
51
232
|
export declare const transformLocation: typeof ty.map.transformLocation;
|
|
52
233
|
/**
|
|
53
234
|
* @public
|
|
54
235
|
* @since @ray-js/ray 1.4.41
|
|
236
|
+
*
|
|
237
|
+
* @example 基础调用
|
|
238
|
+
* ```tsx
|
|
239
|
+
* import { map } from '@ray-js/ray';
|
|
240
|
+
*
|
|
241
|
+
* const { reverseGeocodeLocation } = map;
|
|
242
|
+
*
|
|
243
|
+
* reverseGeocodeLocation({
|
|
244
|
+
* longitude: 120.15,
|
|
245
|
+
* latitude: 30.27,
|
|
246
|
+
* success: (result) => {
|
|
247
|
+
* console.log('reverseGeocodeLocation success', result);
|
|
248
|
+
* },
|
|
249
|
+
* fail: (error) => {
|
|
250
|
+
* console.log('reverseGeocodeLocation fail', error.errorMsg);
|
|
251
|
+
* },
|
|
252
|
+
* });
|
|
253
|
+
* ```
|
|
55
254
|
*/
|
|
56
255
|
export declare const reverseGeocodeLocation: typeof ty.map.reverseGeocodeLocation;
|
|
57
256
|
/**
|
|
58
257
|
* @public
|
|
59
258
|
* @since @ray-js/ray 1.4.41
|
|
259
|
+
*
|
|
260
|
+
* @example 基础调用
|
|
261
|
+
* ```tsx
|
|
262
|
+
* import { map } from '@ray-js/ray';
|
|
263
|
+
*
|
|
264
|
+
* const { coordinateWGS84ToGCJ02 } = map;
|
|
265
|
+
*
|
|
266
|
+
* coordinateWGS84ToGCJ02({
|
|
267
|
+
* longitude: 120.15,
|
|
268
|
+
* latitude: 30.27,
|
|
269
|
+
* success: (result) => {
|
|
270
|
+
* console.log('coordinateWGS84ToGCJ02 success', result);
|
|
271
|
+
* },
|
|
272
|
+
* fail: (error) => {
|
|
273
|
+
* console.log('coordinateWGS84ToGCJ02 fail', error.errorMsg);
|
|
274
|
+
* },
|
|
275
|
+
* });
|
|
276
|
+
* ```
|
|
60
277
|
*/
|
|
61
278
|
export declare const coordinateWGS84ToGCJ02: typeof ty.map.coordinateWGS84ToGCJ02;
|
|
62
279
|
/**
|
|
63
280
|
* @public
|
|
64
281
|
* @since @ray-js/ray 1.4.41
|
|
282
|
+
*
|
|
283
|
+
* @example 基础调用
|
|
284
|
+
* ```tsx
|
|
285
|
+
* import { map } from '@ray-js/ray';
|
|
286
|
+
*
|
|
287
|
+
* const { coordinateGCJ02ToWGS84 } = map;
|
|
288
|
+
*
|
|
289
|
+
* coordinateGCJ02ToWGS84({
|
|
290
|
+
* longitude: 120.15,
|
|
291
|
+
* latitude: 30.27,
|
|
292
|
+
* success: (result) => {
|
|
293
|
+
* console.log('coordinateGCJ02ToWGS84 success', result);
|
|
294
|
+
* },
|
|
295
|
+
* fail: (error) => {
|
|
296
|
+
* console.log('coordinateGCJ02ToWGS84 fail', error.errorMsg);
|
|
297
|
+
* },
|
|
298
|
+
* });
|
|
299
|
+
* ```
|
|
65
300
|
*/
|
|
66
301
|
export declare const coordinateGCJ02ToWGS84: typeof ty.map.coordinateGCJ02ToWGS84;
|
|
67
302
|
/**
|
|
68
303
|
* @public
|
|
69
304
|
* @since @ray-js/ray 1.4.41
|
|
305
|
+
*
|
|
306
|
+
* @example 基础调用
|
|
307
|
+
* ```tsx
|
|
308
|
+
* import { map } from '@ray-js/ray';
|
|
309
|
+
*
|
|
310
|
+
* const { getMapType } = map;
|
|
311
|
+
*
|
|
312
|
+
* getMapType({
|
|
313
|
+
* success: (result) => {
|
|
314
|
+
* console.log('getMapType success', result);
|
|
315
|
+
* },
|
|
316
|
+
* fail: (error) => {
|
|
317
|
+
* console.log('getMapType fail', error.errorMsg);
|
|
318
|
+
* },
|
|
319
|
+
* });
|
|
320
|
+
* ```
|
|
70
321
|
*/
|
|
71
322
|
export declare const getMapType: typeof ty.map.getMapType;
|