@ray-js/api 1.7.70 → 1.7.72
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 +5509 -610
- package/@types/AIStreamKit.d.ts +2641 -0
- package/@types/AVideoKit.d.ts +1827 -0
- package/@types/BaseKit.d.ts +8682 -1893
- package/@types/BizKit.d.ts +6639 -1038
- package/@types/CategoryCommonBizKit.d.ts +1459 -0
- package/@types/CommunityKit.d.ts +154 -0
- package/@types/DeviceKit.d.ts +18475 -5662
- package/@types/GroupCITestKit.d.ts +651 -0
- package/@types/HealthKit.d.ts +2290 -357
- package/@types/HomeKit.d.ts +4068 -182
- package/@types/IPCKit.d.ts +4327 -1227
- package/@types/LightKit.d.ts +125 -0
- package/@types/MapKit.d.ts +1560 -204
- package/@types/MediaKit.d.ts +136 -16
- package/@types/MediaPlayerKit.d.ts +47 -0
- package/@types/MiniKit.d.ts +2976 -628
- package/@types/OutdoorKit.d.ts +1337 -24
- package/@types/P2PKit.d.ts +622 -103
- package/@types/PayKit.d.ts +115 -0
- package/@types/PlayNetKit.d.ts +3454 -1309
- package/@types/SweeperKit.d.ts +154 -0
- package/@types/ThirdAuthKit.d.ts +324 -0
- package/@types/ThirdPartyDeviceKit.d.ts +410 -0
- package/@types/WearKit.d.ts +10177 -375
- package/@types/gateway.d.ts +349 -61
- package/@types/health.d.ts +486 -304
- package/lib/AIKit-1.6.0.d.ts +265 -41
- package/lib/AIKit-1.6.0.js +374 -120
- package/lib/BaseKit-3.17.7.d.ts +704 -0
- package/lib/BaseKit-3.17.7.js +720 -1
- package/lib/BizKit-4.10.4.d.ts +336 -0
- package/lib/BizKit-4.10.4.js +342 -5
- package/lib/DeviceKit-4.13.1.d.ts +996 -0
- package/lib/DeviceKit-4.13.1.js +1247 -249
- package/lib/HealthKit-6.5.0.d.ts +210 -44
- package/lib/HealthKit-6.5.0.js +295 -128
- package/lib/HomeKit-3.1.4.d.ts +20 -6
- package/lib/HomeKit-3.1.4.js +29 -14
- package/lib/IPCKit-6.4.5.d.ts +375 -77
- package/lib/IPCKit-6.4.5.js +525 -228
- package/lib/MapKit-3.4.13.d.ts +70 -16
- package/lib/MapKit-3.4.13.js +98 -47
- package/lib/MediaKit-3.4.1.d.ts +5 -3
- package/lib/MediaKit-3.4.1.js +7 -6
- package/lib/MiniKit-3.14.1.d.ts +300 -0
- package/lib/MiniKit-3.14.1.js +302 -0
- package/lib/OutdoorKit-1.0.4.d.ts +55 -13
- package/lib/OutdoorKit-1.0.4.js +78 -35
- package/lib/P2PKit-2.0.3.d.ts +125 -27
- package/lib/P2PKit-2.0.3.js +175 -78
- package/lib/PlayNetKit-1.3.30.d.ts +290 -60
- package/lib/PlayNetKit-1.3.30.js +407 -176
- package/lib/WearKit-1.1.6.d.ts +125 -27
- package/lib/WearKit-1.1.6.js +176 -77
- package/lib/all-kits.d.ts +10 -10
- package/lib/all-kits.js +10 -10
- package/lib/cloud/core.d.ts +31 -1
- package/lib/cloud/core.js +31 -1
- package/lib/cloud/device.d.ts +155 -24
- package/lib/cloud/device.js +153 -22
- package/lib/cloud/gateway.d.ts +254 -0
- package/lib/cloud/gateway.js +269 -9
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +121 -0
- package/lib/cloud/interface.d.ts +222 -44
- package/lib/cloud/interface.js +15 -2
- package/lib/cloud/laser-clean/deleteCleaningRecord/index.d.ts +27 -0
- package/lib/cloud/laser-clean/deleteCleaningRecord/index.js +28 -0
- package/lib/cloud/laser-clean/deleteCleaningRecord/type.d.ts +7 -0
- package/lib/cloud/laser-clean/deleteCleaningRecord/type.js +1 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.d.ts +27 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.js +28 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.d.ts +7 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.js +1 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.d.ts +27 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.js +28 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.d.ts +7 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.js +1 -0
- package/lib/cloud/laser-clean/getCleaningRecords/index.d.ts +30 -0
- package/lib/cloud/laser-clean/getCleaningRecords/index.js +31 -0
- package/lib/cloud/laser-clean/getCleaningRecords/type.d.ts +39 -0
- package/lib/cloud/laser-clean/getCleaningRecords/type.js +1 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.d.ts +29 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.js +30 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.d.ts +30 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.js +1 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/index.d.ts +29 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/index.js +30 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/type.d.ts +35 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/type.js +1 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.d.ts +28 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.js +29 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.d.ts +28 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.js +1 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/index.d.ts +24 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/index.js +25 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/type.d.ts +29 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/type.js +1 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/index.d.ts +24 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/index.js +25 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/type.d.ts +26 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/type.js +1 -0
- package/lib/cloud/laser-clean/getVoiceList/index.d.ts +28 -0
- package/lib/cloud/laser-clean/getVoiceList/index.js +29 -0
- package/lib/cloud/laser-clean/getVoiceList/type.d.ts +48 -0
- package/lib/cloud/laser-clean/getVoiceList/type.js +1 -0
- package/lib/cloud/laser-clean/index.d.ts +1 -1
- package/lib/cloud/laser-clean/index.js +1 -1
- package/lib/cloud/laser-clean/map.d.ts +5 -7
- package/lib/cloud/laser-clean/map.js +5 -9
- package/lib/cloud/laser-clean/record.d.ts +5 -6
- package/lib/cloud/laser-clean/record.js +5 -7
- package/lib/cloud/laser-clean/renameHistoryMap/index.d.ts +28 -0
- package/lib/cloud/laser-clean/renameHistoryMap/index.js +29 -0
- package/lib/cloud/laser-clean/renameHistoryMap/type.d.ts +9 -0
- package/lib/cloud/laser-clean/renameHistoryMap/type.js +1 -0
- package/lib/cloud/laser-clean/voice.d.ts +1 -3
- package/lib/cloud/laser-clean/voice.js +1 -4
- package/lib/cloud/linkage.d.ts +271 -53
- package/lib/cloud/linkage.js +256 -51
- package/lib/cloud/remoteGroup.d.ts +37 -0
- package/lib/cloud/remoteGroup.js +37 -0
- package/lib/cloud/timer.d.ts +104 -26
- package/lib/cloud/timer.js +104 -26
- package/lib/getApp/index.thing.d.ts +47 -1
- package/lib/getApp/index.thing.js +40 -2
- package/lib/getBoundingClientRect/index.thing.d.ts +101 -1
- package/lib/getBoundingClientRect/index.thing.js +59 -0
- package/lib/getCurrentPages/index.thing.d.ts +40 -15
- package/lib/getCurrentPages/index.thing.js +36 -15
- package/lib/getCustomConfig/index.d.ts +5 -2
- package/lib/getCustomConfig/index.thing.d.ts +68 -2
- package/lib/getCustomConfig/index.thing.js +62 -0
- package/lib/getCustomConfig/index.wechat.d.ts +5 -2
- package/lib/getCustomConfig/type.d.ts +26 -15
- package/lib/getElementById/index.thing.d.ts +42 -1
- package/lib/getElementById/index.thing.js +40 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +4 -2
- package/lib/nativeRouters/common.d.ts +8 -0
- package/lib/nativeRouters/device.d.ts +137 -5
- package/lib/nativeRouters/device.js +138 -6
- package/lib/nativeRouters/gw.d.ts +58 -8
- package/lib/nativeRouters/gw.js +57 -8
- package/lib/nativeRouters/outdoors.d.ts +16 -3
- package/lib/nativeRouters/outdoors.js +16 -3
- package/lib/nativeRouters/remoteGroup.d.ts +23 -0
- package/lib/nativeRouters/remoteGroup.js +23 -0
- package/lib/nativeRouters/root.d.ts +19 -0
- package/lib/nativeRouters/root.js +17 -0
- package/lib/openGroupCreate/index.d.ts +45 -0
- package/lib/openGroupCreate/index.js +32 -0
- package/package.json +5 -5
package/lib/WearKit-1.1.6.d.ts
CHANGED
|
@@ -1,28 +1,126 @@
|
|
|
1
1
|
/// <reference path="../@types/WearKit.d.ts" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.7.14
|
|
5
|
+
*/
|
|
6
|
+
export declare const startRecordTransfer: typeof ty.wear.startRecordTransfer;
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
* @since @ray-js/ray 1.7.14
|
|
10
|
+
*/
|
|
11
|
+
export declare const pauseRecordTransfer: typeof ty.wear.pauseRecordTransfer;
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
* @since @ray-js/ray 1.7.14
|
|
15
|
+
*/
|
|
16
|
+
export declare const resumeRecordTransfer: typeof ty.wear.resumeRecordTransfer;
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
* @since @ray-js/ray 1.7.14
|
|
20
|
+
*/
|
|
21
|
+
export declare const stopRecordTransfer: typeof ty.wear.stopRecordTransfer;
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
* @since @ray-js/ray 1.7.14
|
|
25
|
+
*/
|
|
26
|
+
export declare const recordTransferTask: typeof ty.wear.recordTransferTask;
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* @since @ray-js/ray 1.7.14
|
|
30
|
+
*/
|
|
31
|
+
export declare const getRecordTransferRealTimeResult: typeof ty.wear.getRecordTransferRealTimeResult;
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
* @since @ray-js/ray 1.7.14
|
|
35
|
+
*/
|
|
36
|
+
export declare const getRecordTransferResultList: typeof ty.wear.getRecordTransferResultList;
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
* @since @ray-js/ray 1.7.14
|
|
40
|
+
*/
|
|
41
|
+
export declare const getRecordTransferResultDetail: typeof ty.wear.getRecordTransferResultDetail;
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
* @since @ray-js/ray 1.7.14
|
|
45
|
+
*/
|
|
46
|
+
export declare const updateRecordTransferResult: typeof ty.wear.updateRecordTransferResult;
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* @since @ray-js/ray 1.7.14
|
|
50
|
+
*/
|
|
51
|
+
export declare const removeFileList: typeof ty.wear.removeFileList;
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
* @since @ray-js/ray 1.7.14
|
|
55
|
+
*/
|
|
56
|
+
export declare const saveRecordTransferRecognizeResult: typeof ty.wear.saveRecordTransferRecognizeResult;
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* @since @ray-js/ray 1.7.14
|
|
60
|
+
*/
|
|
61
|
+
export declare const saveRecordTransferSummaryResult: typeof ty.wear.saveRecordTransferSummaryResult;
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* @since @ray-js/ray 1.7.14
|
|
65
|
+
*/
|
|
66
|
+
export declare const saveRecordTransferRealTimeRecognizeResult: typeof ty.wear.saveRecordTransferRealTimeRecognizeResult;
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
* @since @ray-js/ray 1.7.14
|
|
70
|
+
*/
|
|
71
|
+
export declare const getRecordTransferProcessStatus: typeof ty.wear.getRecordTransferProcessStatus;
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
* @since @ray-js/ray 1.7.14
|
|
75
|
+
*/
|
|
76
|
+
export declare const getRecordTransferRecognizeResult: typeof ty.wear.getRecordTransferRecognizeResult;
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
* @since @ray-js/ray 1.7.14
|
|
80
|
+
*/
|
|
81
|
+
export declare const processRecordTransferResult: typeof ty.wear.processRecordTransferResult;
|
|
82
|
+
/**
|
|
83
|
+
* @public
|
|
84
|
+
* @since @ray-js/ray 1.7.14
|
|
85
|
+
*/
|
|
86
|
+
export declare const getRecordTransferSummaryResult: typeof ty.wear.getRecordTransferSummaryResult;
|
|
87
|
+
/**
|
|
88
|
+
* @public
|
|
89
|
+
* @since @ray-js/ray 1.7.14
|
|
90
|
+
*/
|
|
91
|
+
export declare const onRecordTransferRealTimeRecognizeStatusUpdateEvent: typeof ty.wear.onRecordTransferRealTimeRecognizeStatusUpdateEvent;
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
* @since @ray-js/ray 1.7.14
|
|
95
|
+
*/
|
|
96
|
+
export declare const onRecordTransferAmplitudeUpdateEvent: typeof ty.wear.onRecordTransferAmplitudeUpdateEvent;
|
|
97
|
+
/**
|
|
98
|
+
* @public
|
|
99
|
+
* @since @ray-js/ray 1.7.14
|
|
100
|
+
*/
|
|
101
|
+
export declare const onRecordTransferStatusUpdateEvent: typeof ty.wear.onRecordTransferStatusUpdateEvent;
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
* @since @ray-js/ray 1.7.14
|
|
105
|
+
*/
|
|
106
|
+
export declare const onRecordTransferFinishEvent: typeof ty.wear.onRecordTransferFinishEvent;
|
|
107
|
+
/**
|
|
108
|
+
* @public
|
|
109
|
+
* @since @ray-js/ray 1.7.14
|
|
110
|
+
*/
|
|
111
|
+
export declare const offRecordTransferRealTimeRecognizeStatusUpdateEvent: typeof ty.wear.offRecordTransferRealTimeRecognizeStatusUpdateEvent;
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
* @since @ray-js/ray 1.7.14
|
|
115
|
+
*/
|
|
116
|
+
export declare const offRecordTransferAmplitudeUpdateEvent: typeof ty.wear.offRecordTransferAmplitudeUpdateEvent;
|
|
117
|
+
/**
|
|
118
|
+
* @public
|
|
119
|
+
* @since @ray-js/ray 1.7.14
|
|
120
|
+
*/
|
|
121
|
+
export declare const offRecordTransferStatusUpdateEvent: typeof ty.wear.offRecordTransferStatusUpdateEvent;
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
* @since @ray-js/ray 1.7.14
|
|
125
|
+
*/
|
|
126
|
+
export declare const offRecordTransferFinishEvent: typeof ty.wear.offRecordTransferFinishEvent;
|
package/lib/WearKit-1.1.6.js
CHANGED
|
@@ -2,80 +2,179 @@
|
|
|
2
2
|
|
|
3
3
|
import { createFactory } from './utils';
|
|
4
4
|
const factory = createFactory('WearKit');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
* @since @ray-js/ray 1.7.14
|
|
9
|
+
*/
|
|
10
|
+
export const startRecordTransfer = factory('startRecordTransfer', {
|
|
11
|
+
namespace: 'wear'
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @since @ray-js/ray 1.7.14
|
|
16
|
+
*/
|
|
17
|
+
export const pauseRecordTransfer = factory('pauseRecordTransfer', {
|
|
18
|
+
namespace: 'wear'
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* @since @ray-js/ray 1.7.14
|
|
23
|
+
*/
|
|
24
|
+
export const resumeRecordTransfer = factory('resumeRecordTransfer', {
|
|
25
|
+
namespace: 'wear'
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* @since @ray-js/ray 1.7.14
|
|
30
|
+
*/
|
|
31
|
+
export const stopRecordTransfer = factory('stopRecordTransfer', {
|
|
32
|
+
namespace: 'wear'
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
* @since @ray-js/ray 1.7.14
|
|
37
|
+
*/
|
|
38
|
+
export const recordTransferTask = factory('recordTransferTask', {
|
|
39
|
+
namespace: 'wear'
|
|
40
|
+
});
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
* @since @ray-js/ray 1.7.14
|
|
44
|
+
*/
|
|
45
|
+
export const getRecordTransferRealTimeResult = factory('getRecordTransferRealTimeResult', {
|
|
46
|
+
namespace: 'wear'
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
* @since @ray-js/ray 1.7.14
|
|
51
|
+
*/
|
|
52
|
+
export const getRecordTransferResultList = factory('getRecordTransferResultList', {
|
|
53
|
+
namespace: 'wear'
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
* @since @ray-js/ray 1.7.14
|
|
58
|
+
*/
|
|
59
|
+
export const getRecordTransferResultDetail = factory('getRecordTransferResultDetail', {
|
|
60
|
+
namespace: 'wear'
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* @since @ray-js/ray 1.7.14
|
|
65
|
+
*/
|
|
66
|
+
export const updateRecordTransferResult = factory('updateRecordTransferResult', {
|
|
67
|
+
namespace: 'wear'
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
* @since @ray-js/ray 1.7.14
|
|
72
|
+
*/
|
|
73
|
+
export const removeFileList = factory('removeFileList', {
|
|
74
|
+
namespace: 'wear'
|
|
75
|
+
});
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
* @since @ray-js/ray 1.7.14
|
|
79
|
+
*/
|
|
80
|
+
export const saveRecordTransferRecognizeResult = factory('saveRecordTransferRecognizeResult', {
|
|
81
|
+
namespace: 'wear'
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* @since @ray-js/ray 1.7.14
|
|
86
|
+
*/
|
|
87
|
+
export const saveRecordTransferSummaryResult = factory('saveRecordTransferSummaryResult', {
|
|
88
|
+
namespace: 'wear'
|
|
89
|
+
});
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
* @since @ray-js/ray 1.7.14
|
|
93
|
+
*/
|
|
94
|
+
export const saveRecordTransferRealTimeRecognizeResult = factory('saveRecordTransferRealTimeRecognizeResult', {
|
|
95
|
+
namespace: 'wear'
|
|
96
|
+
});
|
|
97
|
+
/**
|
|
98
|
+
* @public
|
|
99
|
+
* @since @ray-js/ray 1.7.14
|
|
100
|
+
*/
|
|
101
|
+
export const getRecordTransferProcessStatus = factory('getRecordTransferProcessStatus', {
|
|
102
|
+
namespace: 'wear'
|
|
103
|
+
});
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
* @since @ray-js/ray 1.7.14
|
|
107
|
+
*/
|
|
108
|
+
export const getRecordTransferRecognizeResult = factory('getRecordTransferRecognizeResult', {
|
|
109
|
+
namespace: 'wear'
|
|
110
|
+
});
|
|
111
|
+
/**
|
|
112
|
+
* @public
|
|
113
|
+
* @since @ray-js/ray 1.7.14
|
|
114
|
+
*/
|
|
115
|
+
export const processRecordTransferResult = factory('processRecordTransferResult', {
|
|
116
|
+
namespace: 'wear'
|
|
117
|
+
});
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
* @since @ray-js/ray 1.7.14
|
|
121
|
+
*/
|
|
122
|
+
export const getRecordTransferSummaryResult = factory('getRecordTransferSummaryResult', {
|
|
123
|
+
namespace: 'wear'
|
|
124
|
+
});
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
* @since @ray-js/ray 1.7.14
|
|
128
|
+
*/
|
|
129
|
+
export const onRecordTransferRealTimeRecognizeStatusUpdateEvent = factory('onRecordTransferRealTimeRecognizeStatusUpdateEvent', {
|
|
130
|
+
namespace: 'wear'
|
|
131
|
+
});
|
|
132
|
+
/**
|
|
133
|
+
* @public
|
|
134
|
+
* @since @ray-js/ray 1.7.14
|
|
135
|
+
*/
|
|
136
|
+
export const onRecordTransferAmplitudeUpdateEvent = factory('onRecordTransferAmplitudeUpdateEvent', {
|
|
137
|
+
namespace: 'wear'
|
|
138
|
+
});
|
|
139
|
+
/**
|
|
140
|
+
* @public
|
|
141
|
+
* @since @ray-js/ray 1.7.14
|
|
142
|
+
*/
|
|
143
|
+
export const onRecordTransferStatusUpdateEvent = factory('onRecordTransferStatusUpdateEvent', {
|
|
144
|
+
namespace: 'wear'
|
|
145
|
+
});
|
|
146
|
+
/**
|
|
147
|
+
* @public
|
|
148
|
+
* @since @ray-js/ray 1.7.14
|
|
149
|
+
*/
|
|
150
|
+
export const onRecordTransferFinishEvent = factory('onRecordTransferFinishEvent', {
|
|
151
|
+
namespace: 'wear'
|
|
152
|
+
});
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
* @since @ray-js/ray 1.7.14
|
|
156
|
+
*/
|
|
157
|
+
export const offRecordTransferRealTimeRecognizeStatusUpdateEvent = factory('offRecordTransferRealTimeRecognizeStatusUpdateEvent', {
|
|
158
|
+
namespace: 'wear'
|
|
159
|
+
});
|
|
160
|
+
/**
|
|
161
|
+
* @public
|
|
162
|
+
* @since @ray-js/ray 1.7.14
|
|
163
|
+
*/
|
|
164
|
+
export const offRecordTransferAmplitudeUpdateEvent = factory('offRecordTransferAmplitudeUpdateEvent', {
|
|
165
|
+
namespace: 'wear'
|
|
166
|
+
});
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
* @since @ray-js/ray 1.7.14
|
|
170
|
+
*/
|
|
171
|
+
export const offRecordTransferStatusUpdateEvent = factory('offRecordTransferStatusUpdateEvent', {
|
|
172
|
+
namespace: 'wear'
|
|
173
|
+
});
|
|
174
|
+
/**
|
|
175
|
+
* @public
|
|
176
|
+
* @since @ray-js/ray 1.7.14
|
|
177
|
+
*/
|
|
178
|
+
export const offRecordTransferFinishEvent = factory('offRecordTransferFinishEvent', {
|
|
179
|
+
namespace: 'wear'
|
|
180
|
+
});
|
package/lib/all-kits.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ export * from './BaseKit-3.17.7';
|
|
|
2
2
|
export * from './BizKit-4.10.4';
|
|
3
3
|
export * from './DeviceKit-4.13.1';
|
|
4
4
|
export * from './MiniKit-3.14.1';
|
|
5
|
-
export * from './PlayNetKit-1.3.30';
|
|
6
|
-
export * from './MapKit-3.4.13';
|
|
7
|
-
export * from './HomeKit-3.1.4';
|
|
8
|
-
export * from './P2PKit-2.0.3';
|
|
9
|
-
export * from './OutdoorKit-1.0.4';
|
|
10
|
-
export * from './MediaKit-3.4.1';
|
|
11
5
|
import * as device from './DeviceKit-4.13.1';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
import * as playnet from './PlayNetKit-1.3.30';
|
|
7
|
+
import * as map from './MapKit-3.4.13';
|
|
8
|
+
import * as home from './HomeKit-3.1.4';
|
|
9
|
+
import * as p2p from './P2PKit-2.0.3';
|
|
10
|
+
import * as outdoor from './OutdoorKit-1.0.4';
|
|
11
|
+
import * as media from './MediaKit-3.4.1';
|
|
12
|
+
import * as ai from './AIKit-1.6.0';
|
|
13
|
+
import * as ipc from './IPCKit-6.4.5';
|
|
14
|
+
import * as wear from './WearKit-1.1.6';
|
|
15
|
+
export { device, playnet, map, home, p2p, outdoor, media, ai, ipc, wear };
|
package/lib/all-kits.js
CHANGED
|
@@ -2,14 +2,14 @@ export * from './BaseKit-3.17.7';
|
|
|
2
2
|
export * from './BizKit-4.10.4';
|
|
3
3
|
export * from './DeviceKit-4.13.1';
|
|
4
4
|
export * from './MiniKit-3.14.1';
|
|
5
|
-
export * from './PlayNetKit-1.3.30';
|
|
6
|
-
export * from './MapKit-3.4.13';
|
|
7
|
-
export * from './HomeKit-3.1.4';
|
|
8
|
-
export * from './P2PKit-2.0.3';
|
|
9
|
-
export * from './OutdoorKit-1.0.4';
|
|
10
|
-
export * from './MediaKit-3.4.1';
|
|
11
5
|
import * as device from './DeviceKit-4.13.1';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
import * as playnet from './PlayNetKit-1.3.30';
|
|
7
|
+
import * as map from './MapKit-3.4.13';
|
|
8
|
+
import * as home from './HomeKit-3.1.4';
|
|
9
|
+
import * as p2p from './P2PKit-2.0.3';
|
|
10
|
+
import * as outdoor from './OutdoorKit-1.0.4';
|
|
11
|
+
import * as media from './MediaKit-3.4.1';
|
|
12
|
+
import * as ai from './AIKit-1.6.0';
|
|
13
|
+
import * as ipc from './IPCKit-6.4.5';
|
|
14
|
+
import * as wear from './WearKit-1.1.6';
|
|
15
|
+
export { device, playnet, map, home, p2p, outdoor, media, ai, ipc, wear };
|
package/lib/cloud/core.d.ts
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 自动根据当前面板所处的 App 环境获取对应的静态资源地址。
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 0.5.10
|
|
6
|
+
* @returns 静态资源地址字符串,如 `https://images.tuyacn.com`
|
|
7
|
+
* @example 基础用法
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import React, { useState } from 'react';
|
|
10
|
+
* import { View, Button, Text, getAssetHostname } from '@ray-js/ray';
|
|
11
|
+
*
|
|
12
|
+
* export default function Demo() {
|
|
13
|
+
* const [hostname, setHostname] = useState('');
|
|
14
|
+
*
|
|
15
|
+
* const handleGetHostname = async () => {
|
|
16
|
+
* try {
|
|
17
|
+
* const result = await getAssetHostname();
|
|
18
|
+
* setHostname(result);
|
|
19
|
+
* console.log('静态资源地址:', result);
|
|
20
|
+
* } catch (err) {
|
|
21
|
+
* console.error('获取失败:', err);
|
|
22
|
+
* }
|
|
23
|
+
* };
|
|
24
|
+
*
|
|
25
|
+
* return (
|
|
26
|
+
* <View style={{ padding: 20 }}>
|
|
27
|
+
* <Button onClick={handleGetHostname}>获取静态资源地址</Button>
|
|
28
|
+
* {hostname && <Text style={{ marginTop: 10 }}>{hostname}</Text>}
|
|
29
|
+
* </View>
|
|
30
|
+
* );
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
3
33
|
*/
|
|
4
34
|
declare const getAssetHostname: () => Promise<string>;
|
|
5
35
|
export { getAssetHostname };
|
package/lib/cloud/core.js
CHANGED
|
@@ -3,7 +3,37 @@ import { requestCloud } from '../';
|
|
|
3
3
|
import { THING } from '../constants';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* 自动根据当前面板所处的 App 环境获取对应的静态资源地址。
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
* @since @ray-js/ray 0.5.10
|
|
10
|
+
* @returns 静态资源地址字符串,如 `https://images.tuyacn.com`
|
|
11
|
+
* @example 基础用法
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import React, { useState } from 'react';
|
|
14
|
+
* import { View, Button, Text, getAssetHostname } from '@ray-js/ray';
|
|
15
|
+
*
|
|
16
|
+
* export default function Demo() {
|
|
17
|
+
* const [hostname, setHostname] = useState('');
|
|
18
|
+
*
|
|
19
|
+
* const handleGetHostname = async () => {
|
|
20
|
+
* try {
|
|
21
|
+
* const result = await getAssetHostname();
|
|
22
|
+
* setHostname(result);
|
|
23
|
+
* console.log('静态资源地址:', result);
|
|
24
|
+
* } catch (err) {
|
|
25
|
+
* console.error('获取失败:', err);
|
|
26
|
+
* }
|
|
27
|
+
* };
|
|
28
|
+
*
|
|
29
|
+
* return (
|
|
30
|
+
* <View style={{ padding: 20 }}>
|
|
31
|
+
* <Button onClick={handleGetHostname}>获取静态资源地址</Button>
|
|
32
|
+
* {hostname && <Text style={{ marginTop: 10 }}>{hostname}</Text>}
|
|
33
|
+
* </View>
|
|
34
|
+
* );
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
7
37
|
*/
|
|
8
38
|
const getAssetHostname = () => {
|
|
9
39
|
return requestCloud({
|