@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.
Files changed (56) hide show
  1. package/@types/AIKit.d.ts +1140 -1009
  2. package/@types/AVideoKit.d.ts +26 -101
  3. package/@types/BaseKit.d.ts +234 -210
  4. package/@types/BizKit.d.ts +271 -296
  5. package/@types/DeviceKit.d.ts +57 -88
  6. package/@types/GroupCITestKit.d.ts +1 -3
  7. package/@types/HealthKit.d.ts +273 -230
  8. package/@types/HomeKit.d.ts +1062 -891
  9. package/@types/IPCKit.d.ts +23 -50
  10. package/@types/LightKit.d.ts +2 -2
  11. package/@types/MapKit.d.ts +592 -381
  12. package/@types/MediaPlayerKit.d.ts +4 -28
  13. package/@types/MiniKit.d.ts +198 -375
  14. package/@types/P2PKit.d.ts +139 -205
  15. package/@types/PayKit.d.ts +10 -79
  16. package/@types/SweeperKit.d.ts +10 -10
  17. package/@types/ThirdAuthKit.d.ts +28 -252
  18. package/@types/WearKit.d.ts +630 -1593
  19. package/@types/api-extend.d.ts +0 -63
  20. package/lib/AIKit-1.6.0.d.ts +732 -35
  21. package/lib/AIKit-1.6.0.js +732 -51
  22. package/lib/BaseKit-3.17.7.d.ts +0 -214
  23. package/lib/BaseKit-3.17.7.js +1 -227
  24. package/lib/DeviceKit-4.13.1.d.ts +3666 -0
  25. package/lib/DeviceKit-4.13.1.js +3666 -0
  26. package/lib/HealthKit-6.5.0.d.ts +603 -0
  27. package/lib/HealthKit-6.5.0.js +603 -0
  28. package/lib/HomeKit-3.1.4.d.ts +4 -0
  29. package/lib/HomeKit-3.1.4.js +4 -0
  30. package/lib/IPCKit-6.4.5.d.ts +0 -1
  31. package/lib/IPCKit-6.4.5.js +0 -1
  32. package/lib/MapKit-3.4.13.d.ts +251 -0
  33. package/lib/MapKit-3.4.13.js +251 -0
  34. package/lib/MediaKit-3.4.1.d.ts +16 -0
  35. package/lib/MediaKit-3.4.1.js +16 -0
  36. package/lib/PlayNetKit-1.3.30.d.ts +930 -0
  37. package/lib/PlayNetKit-1.3.30.js +930 -0
  38. package/lib/cloud/alarm.d.ts +38 -5
  39. package/lib/cloud/alarm.js +38 -5
  40. package/lib/cloud/device.d.ts +42 -6
  41. package/lib/cloud/device.js +42 -6
  42. package/lib/cloud/gateway.d.ts +16 -0
  43. package/lib/cloud/gateway.js +16 -0
  44. package/lib/cloud/health.d.ts +1 -0
  45. package/lib/cloud/health.js +272 -0
  46. package/lib/cloud/interface.d.ts +161 -0
  47. package/lib/cloud/interface.js +18 -0
  48. package/lib/cloud/statistic.d.ts +112 -26
  49. package/lib/cloud/statistic.js +112 -26
  50. package/lib/cloud/timer.d.ts +2 -4
  51. package/lib/nativeRouters/outdoors.d.ts +2 -0
  52. package/lib/nativeRouters/outdoors.js +2 -0
  53. package/lib/nativeRouters/remoteGroup.d.ts +2 -0
  54. package/lib/nativeRouters/remoteGroup.js +2 -0
  55. package/lib/panel/publishDps.js +1 -1
  56. package/package.json +5 -5
@@ -6,6 +6,22 @@ const factory = createFactory('MapKit');
6
6
  /**
7
7
  * @public
8
8
  * @since @ray-js/ray 1.2.10
9
+ *
10
+ * @example 基础调用
11
+ * ```tsx
12
+ * import { map } from '@ray-js/ray';
13
+ *
14
+ * const { chooseLocation } = map;
15
+ *
16
+ * chooseLocation({
17
+ * success: (result) => {
18
+ * console.log('chooseLocation success', result);
19
+ * },
20
+ * fail: (error) => {
21
+ * console.log('chooseLocation fail', error.errorMsg);
22
+ * },
23
+ * });
24
+ * ```
9
25
  */
10
26
  export const chooseLocation = factory('chooseLocation', {
11
27
  namespace: 'map'
@@ -13,6 +29,26 @@ export const chooseLocation = factory('chooseLocation', {
13
29
  /**
14
30
  * @public
15
31
  * @since @ray-js/ray 1.2.10
32
+ *
33
+ * @example 基础调用
34
+ * ```tsx
35
+ * import { map } from '@ray-js/ray';
36
+ *
37
+ * const { getLocation } = map;
38
+ *
39
+ * getLocation({
40
+ * type: 'gcj02',
41
+ * altitude: false,
42
+ * isHighAccuracy: false,
43
+ * highAccuracyExpireTime: 3000,
44
+ * success: (result) => {
45
+ * console.log('getLocation success', result);
46
+ * },
47
+ * fail: (error) => {
48
+ * console.log('getLocation fail', error.errorMsg);
49
+ * },
50
+ * });
51
+ * ```
16
52
  */
17
53
  export const getLocation = factory('getLocation', {
18
54
  namespace: 'map'
@@ -20,6 +56,22 @@ export const getLocation = factory('getLocation', {
20
56
  /**
21
57
  * @public
22
58
  * @since @ray-js/ray 1.2.10
59
+ *
60
+ * @example 基础调用
61
+ * ```tsx
62
+ * import { map } from '@ray-js/ray';
63
+ *
64
+ * const { getMapList } = map;
65
+ *
66
+ * getMapList({
67
+ * success: (result) => {
68
+ * console.log('getMapList success', result);
69
+ * },
70
+ * fail: (error) => {
71
+ * console.log('getMapList fail', error.errorMsg);
72
+ * },
73
+ * });
74
+ * ```
23
75
  */
24
76
  export const getMapList = factory('getMapList', {
25
77
  namespace: 'map'
@@ -27,6 +79,22 @@ export const getMapList = factory('getMapList', {
27
79
  /**
28
80
  * @public
29
81
  * @since @ray-js/ray 1.2.10
82
+ *
83
+ * @example 基础调用
84
+ * ```tsx
85
+ * import { map } from '@ray-js/ray';
86
+ *
87
+ * const { isGeofenceReachLimit } = map;
88
+ *
89
+ * isGeofenceReachLimit({
90
+ * success: (result) => {
91
+ * console.log('isGeofenceReachLimit success', result);
92
+ * },
93
+ * fail: (error) => {
94
+ * console.log('isGeofenceReachLimit fail', error.errorMsg);
95
+ * },
96
+ * });
97
+ * ```
30
98
  */
31
99
  export const isGeofenceReachLimit = factory('isGeofenceReachLimit', {
32
100
  namespace: 'map'
@@ -34,6 +102,22 @@ export const isGeofenceReachLimit = factory('isGeofenceReachLimit', {
34
102
  /**
35
103
  * @public
36
104
  * @since @ray-js/ray 1.2.10
105
+ *
106
+ * @example 基础调用
107
+ * ```tsx
108
+ * import { map } from '@ray-js/ray';
109
+ *
110
+ * const { openGeofenceMap } = map;
111
+ *
112
+ * openGeofenceMap({
113
+ * success: () => {
114
+ * console.log('openGeofenceMap success');
115
+ * },
116
+ * fail: (error) => {
117
+ * console.log('openGeofenceMap fail', error.errorMsg);
118
+ * },
119
+ * });
120
+ * ```
37
121
  */
38
122
  export const openGeofenceMap = factory('openGeofenceMap', {
39
123
  namespace: 'map'
@@ -41,6 +125,27 @@ export const openGeofenceMap = factory('openGeofenceMap', {
41
125
  /**
42
126
  * @public
43
127
  * @since @ray-js/ray 1.2.10
128
+ *
129
+ * @example 基础调用
130
+ * ```tsx
131
+ * import { map } from '@ray-js/ray';
132
+ *
133
+ * const { openMapAppLocation } = map;
134
+ *
135
+ * openMapAppLocation({
136
+ * latitude: 30.27,
137
+ * longitude: 120.15,
138
+ * name: 'example location',
139
+ * address: 'example address',
140
+ * mapType: 'MA',
141
+ * success: () => {
142
+ * console.log('openMapAppLocation success');
143
+ * },
144
+ * fail: (error) => {
145
+ * console.log('openMapAppLocation fail', error.errorMsg);
146
+ * },
147
+ * });
148
+ * ```
44
149
  */
45
150
  export const openMapAppLocation = factory('openMapAppLocation', {
46
151
  namespace: 'map'
@@ -48,6 +153,28 @@ export const openMapAppLocation = factory('openMapAppLocation', {
48
153
  /**
49
154
  * @public
50
155
  * @since @ray-js/ray 1.2.10
156
+ *
157
+ * @example 基础调用
158
+ * ```tsx
159
+ * import { map } from '@ray-js/ray';
160
+ *
161
+ * const { registerGeofence } = map;
162
+ *
163
+ * registerGeofence({
164
+ * geoTitle: 'home',
165
+ * longitude: 120.15,
166
+ * latitude: 30.27,
167
+ * radius: 500,
168
+ * geofenceId: 'fence_001',
169
+ * type: 0,
170
+ * success: () => {
171
+ * console.log('registerGeofence success');
172
+ * },
173
+ * fail: (error) => {
174
+ * console.log('registerGeofence fail', error.errorMsg);
175
+ * },
176
+ * });
177
+ * ```
51
178
  */
52
179
  export const registerGeofence = factory('registerGeofence', {
53
180
  namespace: 'map'
@@ -55,6 +182,23 @@ export const registerGeofence = factory('registerGeofence', {
55
182
  /**
56
183
  * @public
57
184
  * @since @ray-js/ray 1.2.10
185
+ *
186
+ * @example 基础调用
187
+ * ```tsx
188
+ * import { map } from '@ray-js/ray';
189
+ *
190
+ * const { unregisterGeofence } = map;
191
+ *
192
+ * unregisterGeofence({
193
+ * geofenceId: 'fence_001',
194
+ * success: () => {
195
+ * console.log('unregisterGeofence success');
196
+ * },
197
+ * fail: (error) => {
198
+ * console.log('unregisterGeofence fail', error.errorMsg);
199
+ * },
200
+ * });
201
+ * ```
58
202
  */
59
203
  export const unregisterGeofence = factory('unregisterGeofence', {
60
204
  namespace: 'map'
@@ -62,6 +206,24 @@ export const unregisterGeofence = factory('unregisterGeofence', {
62
206
  /**
63
207
  * @public
64
208
  * @since @ray-js/ray 1.2.10
209
+ *
210
+ * @example 基础调用
211
+ * ```tsx
212
+ * import { map } from '@ray-js/ray';
213
+ *
214
+ * const { updateGeofence } = map;
215
+ *
216
+ * updateGeofence({
217
+ * registerGeoFence: [{ geofenceId: 'fence_001', longitude: 120.15, latitude: 30.27, radius: 500 }],
218
+ * unregisterGeoFence: [],
219
+ * success: (result) => {
220
+ * console.log('updateGeofence success', result);
221
+ * },
222
+ * fail: (error) => {
223
+ * console.log('updateGeofence fail', error.errorMsg);
224
+ * },
225
+ * });
226
+ * ```
65
227
  */
66
228
  export const updateGeofence = factory('updateGeofence', {
67
229
  namespace: 'map'
@@ -69,6 +231,25 @@ export const updateGeofence = factory('updateGeofence', {
69
231
  /**
70
232
  * @public
71
233
  * @since @ray-js/ray 1.4.38
234
+ *
235
+ * @example 基础调用
236
+ * ```tsx
237
+ * import { map } from '@ray-js/ray';
238
+ *
239
+ * const { transformLocation } = map;
240
+ *
241
+ * transformLocation({
242
+ * type: 'gcj02',
243
+ * latitude: 30.27,
244
+ * longitude: 120.15,
245
+ * success: (result) => {
246
+ * console.log('transformLocation success', result);
247
+ * },
248
+ * fail: (error) => {
249
+ * console.log('transformLocation fail', error.errorMsg);
250
+ * },
251
+ * });
252
+ * ```
72
253
  */
73
254
  export const transformLocation = factory('transformLocation', {
74
255
  namespace: 'map'
@@ -76,6 +257,24 @@ export const transformLocation = factory('transformLocation', {
76
257
  /**
77
258
  * @public
78
259
  * @since @ray-js/ray 1.4.41
260
+ *
261
+ * @example 基础调用
262
+ * ```tsx
263
+ * import { map } from '@ray-js/ray';
264
+ *
265
+ * const { reverseGeocodeLocation } = map;
266
+ *
267
+ * reverseGeocodeLocation({
268
+ * longitude: 120.15,
269
+ * latitude: 30.27,
270
+ * success: (result) => {
271
+ * console.log('reverseGeocodeLocation success', result);
272
+ * },
273
+ * fail: (error) => {
274
+ * console.log('reverseGeocodeLocation fail', error.errorMsg);
275
+ * },
276
+ * });
277
+ * ```
79
278
  */
80
279
  export const reverseGeocodeLocation = factory('reverseGeocodeLocation', {
81
280
  namespace: 'map'
@@ -83,6 +282,24 @@ export const reverseGeocodeLocation = factory('reverseGeocodeLocation', {
83
282
  /**
84
283
  * @public
85
284
  * @since @ray-js/ray 1.4.41
285
+ *
286
+ * @example 基础调用
287
+ * ```tsx
288
+ * import { map } from '@ray-js/ray';
289
+ *
290
+ * const { coordinateWGS84ToGCJ02 } = map;
291
+ *
292
+ * coordinateWGS84ToGCJ02({
293
+ * longitude: 120.15,
294
+ * latitude: 30.27,
295
+ * success: (result) => {
296
+ * console.log('coordinateWGS84ToGCJ02 success', result);
297
+ * },
298
+ * fail: (error) => {
299
+ * console.log('coordinateWGS84ToGCJ02 fail', error.errorMsg);
300
+ * },
301
+ * });
302
+ * ```
86
303
  */
87
304
  export const coordinateWGS84ToGCJ02 = factory('coordinateWGS84ToGCJ02', {
88
305
  namespace: 'map'
@@ -90,6 +307,24 @@ export const coordinateWGS84ToGCJ02 = factory('coordinateWGS84ToGCJ02', {
90
307
  /**
91
308
  * @public
92
309
  * @since @ray-js/ray 1.4.41
310
+ *
311
+ * @example 基础调用
312
+ * ```tsx
313
+ * import { map } from '@ray-js/ray';
314
+ *
315
+ * const { coordinateGCJ02ToWGS84 } = map;
316
+ *
317
+ * coordinateGCJ02ToWGS84({
318
+ * longitude: 120.15,
319
+ * latitude: 30.27,
320
+ * success: (result) => {
321
+ * console.log('coordinateGCJ02ToWGS84 success', result);
322
+ * },
323
+ * fail: (error) => {
324
+ * console.log('coordinateGCJ02ToWGS84 fail', error.errorMsg);
325
+ * },
326
+ * });
327
+ * ```
93
328
  */
94
329
  export const coordinateGCJ02ToWGS84 = factory('coordinateGCJ02ToWGS84', {
95
330
  namespace: 'map'
@@ -97,6 +332,22 @@ export const coordinateGCJ02ToWGS84 = factory('coordinateGCJ02ToWGS84', {
97
332
  /**
98
333
  * @public
99
334
  * @since @ray-js/ray 1.4.41
335
+ *
336
+ * @example 基础调用
337
+ * ```tsx
338
+ * import { map } from '@ray-js/ray';
339
+ *
340
+ * const { getMapType } = map;
341
+ *
342
+ * getMapType({
343
+ * success: (result) => {
344
+ * console.log('getMapType success', result);
345
+ * },
346
+ * fail: (error) => {
347
+ * console.log('getMapType fail', error.errorMsg);
348
+ * },
349
+ * });
350
+ * ```
100
351
  */
101
352
  export const getMapType = factory('getMapType', {
102
353
  namespace: 'map'
@@ -2,5 +2,21 @@
2
2
  /**
3
3
  * @public
4
4
  * @since @ray-js/ray 1.6.19
5
+ *
6
+ * @example 基础调用
7
+ * ```tsx
8
+ * import { media } from '@ray-js/ray';
9
+ *
10
+ * const { getRGBAudioManager } = media;
11
+ *
12
+ * getRGBAudioManager({
13
+ * success: () => {
14
+ * console.log('getRGBAudioManager success');
15
+ * },
16
+ * fail: (error) => {
17
+ * console.log('getRGBAudioManager fail', error.errorMsg);
18
+ * },
19
+ * });
20
+ * ```
5
21
  */
6
22
  export declare const getRGBAudioManager: typeof ty.media.getRGBAudioManager;
@@ -6,6 +6,22 @@ const factory = createFactory('MediaKit');
6
6
  /**
7
7
  * @public
8
8
  * @since @ray-js/ray 1.6.19
9
+ *
10
+ * @example 基础调用
11
+ * ```tsx
12
+ * import { media } from '@ray-js/ray';
13
+ *
14
+ * const { getRGBAudioManager } = media;
15
+ *
16
+ * getRGBAudioManager({
17
+ * success: () => {
18
+ * console.log('getRGBAudioManager success');
19
+ * },
20
+ * fail: (error) => {
21
+ * console.log('getRGBAudioManager fail', error.errorMsg);
22
+ * },
23
+ * });
24
+ * ```
9
25
  */
10
26
  export const getRGBAudioManager = factory('getRGBAudioManager', {
11
27
  namespace: 'media'