@ray-js/api 1.6.31 → 2.0.0-alpha.0
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/all-kits.d.ts +0 -2
- package/@types/api-cloud.d.ts +111 -128
- package/lib/P2PKit-2.0.3.js +1 -1
- package/lib/PlayNetKit-1.1.3.d.ts +26 -0
- package/lib/PlayNetKit-1.1.3.js +78 -0
- package/lib/all-kits.d.ts +1 -2
- package/lib/all-kits.js +2 -3
- package/lib/cloud/device.d.ts +1 -12
- package/lib/cloud/device.js +1 -32
- 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 +1 -2
- package/lib/cloud/laser-clean/map.js +1 -2
- package/package.json +5 -5
- package/@types/IPCKit.d.ts +0 -1550
- package/@types/PlayNetKit.d.ts +0 -1731
- package/LICENSE.md +0 -9
- package/lib/IPCKit-6.2.3.d.ts +0 -74
- package/lib/IPCKit-6.2.3.js +0 -224
- package/lib/PlayNetKit-1.3.30.d.ts +0 -60
- package/lib/PlayNetKit-1.3.30.js +0 -180
package/@types/all-kits.d.ts
CHANGED
package/@types/api-cloud.d.ts
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
declare namespace ty {
|
3
3
|
// #region 删除历史地图
|
4
4
|
type DeleteMultipleMapFilesParams = {
|
5
|
-
devId: string
|
6
|
-
fileIds: number[]
|
7
|
-
}
|
5
|
+
devId: string // 设备id
|
6
|
+
fileIds: number[] // 要删除的历史地图文件id
|
7
|
+
}
|
8
8
|
|
9
|
-
type DeleteMultipleMapFilesResponse = boolean
|
9
|
+
type DeleteMultipleMapFilesResponse = boolean
|
10
10
|
|
11
11
|
/**
|
12
12
|
* 删除历史地图
|
@@ -14,35 +14,35 @@ declare namespace ty {
|
|
14
14
|
*/
|
15
15
|
function deleteMultipleMapFiles(
|
16
16
|
params: DeleteMultipleMapFilesParams
|
17
|
-
): Promise<DeleteMultipleMapFilesResponse
|
17
|
+
): Promise<DeleteMultipleMapFilesResponse>
|
18
18
|
|
19
19
|
// #region 获取云存储配置
|
20
20
|
type GetSweeperStorageConfigParams = {
|
21
21
|
// 设备id
|
22
|
-
devId: string
|
22
|
+
devId: string
|
23
23
|
// 类型
|
24
|
-
type?: string
|
25
|
-
}
|
24
|
+
type?: string
|
25
|
+
}
|
26
26
|
|
27
27
|
// 获取云存储配置返回值
|
28
28
|
type GetSweeperStorageConfigResponse = {
|
29
29
|
// ak
|
30
|
-
ak: string
|
30
|
+
ak: string
|
31
31
|
// bucket
|
32
|
-
bucket: string
|
32
|
+
bucket: string
|
33
33
|
// sk
|
34
|
-
sk: string
|
34
|
+
sk: string
|
35
35
|
// token
|
36
|
-
token: string
|
36
|
+
token: string
|
37
37
|
// endpoint
|
38
|
-
endpoint: string
|
38
|
+
endpoint: string
|
39
39
|
// 过期时间
|
40
|
-
expiration: string
|
40
|
+
expiration: string
|
41
41
|
// 生命周期
|
42
|
-
lifeCycle: number
|
42
|
+
lifeCycle: number
|
43
43
|
// 区域
|
44
|
-
region: string
|
45
|
-
}
|
44
|
+
region: string
|
45
|
+
}
|
46
46
|
|
47
47
|
/**
|
48
48
|
* 获取云存储配置
|
@@ -50,26 +50,26 @@ declare namespace ty {
|
|
50
50
|
*/
|
51
51
|
function getSweeperStorageConfig(
|
52
52
|
params: GetSweeperStorageConfigParams
|
53
|
-
): Promise<GetSweeperStorageConfigResponse
|
53
|
+
): Promise<GetSweeperStorageConfigResponse>
|
54
54
|
|
55
55
|
// #region 获取扫地机的历史地图
|
56
56
|
type GetMultipleMapFilesParams = {
|
57
57
|
//设备id
|
58
|
-
devId: string
|
59
|
-
}
|
58
|
+
devId: string
|
59
|
+
}
|
60
60
|
|
61
61
|
type GetMultipleMapFilesResponse = {
|
62
62
|
datas: {
|
63
|
-
bucket: string
|
64
|
-
extend: string
|
65
|
-
time: number
|
66
|
-
id: number
|
67
|
-
file: string
|
68
|
-
devId: string
|
69
|
-
fileType: string
|
70
|
-
}[]
|
71
|
-
totalCount: number
|
72
|
-
}
|
63
|
+
bucket: string // 存储文件的存储桶
|
64
|
+
extend: string // 文件的附加信息
|
65
|
+
time: number // 文件的时间戳
|
66
|
+
id: number // 文件的唯一标识符
|
67
|
+
file: string // 文件路径或路径
|
68
|
+
devId: string // 与文件关联的设备ID
|
69
|
+
fileType: string // 文件类型
|
70
|
+
}[] // 历史地图列表
|
71
|
+
totalCount: number // 数据总数
|
72
|
+
}
|
73
73
|
|
74
74
|
/**
|
75
75
|
* 获取扫地机的历史地图
|
@@ -77,42 +77,42 @@ declare namespace ty {
|
|
77
77
|
*/
|
78
78
|
export function getMultipleMapFiles(
|
79
79
|
params: GetMultipleMapFilesParams
|
80
|
-
): Promise<GetMultipleMapFilesResponse
|
80
|
+
): Promise<GetMultipleMapFilesResponse>
|
81
81
|
|
82
82
|
// #region 获取清扫记录列表
|
83
83
|
type GetCleaningRecordsParams = {
|
84
|
-
startTime: string
|
85
|
-
endTime: string
|
86
|
-
limit: number
|
87
|
-
offset: number
|
88
|
-
devId: string
|
89
|
-
fileType?: string
|
90
|
-
}
|
84
|
+
startTime: string // 开始时间
|
85
|
+
endTime: string // 结束时间
|
86
|
+
limit: number // 返回的数据长度限制
|
87
|
+
offset: number // 偏移量
|
88
|
+
devId: string // 设备Id
|
89
|
+
fileType?: string // 可选参数,默认'pic'
|
90
|
+
}
|
91
91
|
|
92
92
|
type GetCleaningRecordsResponse = {
|
93
93
|
datas: {
|
94
|
-
bucket: string
|
95
|
-
extend: string
|
96
|
-
devId: string
|
97
|
-
file: string
|
98
|
-
time: number
|
99
|
-
id: number
|
100
|
-
fileType: string
|
101
|
-
}[]
|
102
|
-
totalCount: number
|
103
|
-
}
|
94
|
+
bucket: string
|
95
|
+
extend: string // 清扫信息
|
96
|
+
devId: string
|
97
|
+
file: string
|
98
|
+
time: number
|
99
|
+
id: number // 清扫记录的唯一ID
|
100
|
+
fileType: string
|
101
|
+
}[]
|
102
|
+
totalCount: number // 清扫记录总长度
|
103
|
+
}
|
104
104
|
|
105
105
|
export function getCleaningRecords(
|
106
106
|
params: GetCleaningRecordsParams
|
107
|
-
): Promise<GetCleaningRecordsResponse
|
107
|
+
): Promise<GetCleaningRecordsResponse>
|
108
108
|
|
109
109
|
// #region 删除清扫记录
|
110
110
|
type DeleteCleaningRecordParams = {
|
111
|
-
devId: string
|
112
|
-
fileIds: number[]
|
113
|
-
}
|
111
|
+
devId: string // 设备id
|
112
|
+
fileIds: number[] // 要删除的记录id
|
113
|
+
}
|
114
114
|
|
115
|
-
type DeleteCleaningRecordResponse = boolean
|
115
|
+
type DeleteCleaningRecordResponse = boolean
|
116
116
|
|
117
117
|
/**
|
118
118
|
* 删除清扫记录
|
@@ -120,60 +120,60 @@ declare namespace ty {
|
|
120
120
|
*/
|
121
121
|
function deleteCleaningRecord(
|
122
122
|
params: DeleteCleaningRecordParams
|
123
|
-
): Promise<DeleteCleaningRecordResponse
|
123
|
+
): Promise<DeleteCleaningRecordResponse>
|
124
124
|
|
125
125
|
// #region 获取扫地机的语音包列表
|
126
126
|
type GetVoiceListParams = {
|
127
127
|
//设备id
|
128
|
-
devId: string
|
128
|
+
devId: string
|
129
129
|
//设备id - 兼容
|
130
|
-
deviceId?: string
|
130
|
+
deviceId?: string
|
131
131
|
// 分页参数,一般配置的语言包不多,可以不是用分页查询,直接使用0
|
132
|
-
offset: number
|
132
|
+
offset: number
|
133
133
|
// 每页大小,可以传入100
|
134
|
-
limit: number
|
135
|
-
}
|
134
|
+
limit: number
|
135
|
+
}
|
136
136
|
|
137
137
|
type GetVoiceListResponse = {
|
138
138
|
datas: {
|
139
|
-
auditionUrl: string
|
140
|
-
desc?: string
|
139
|
+
auditionUrl: string // 试听链接
|
140
|
+
desc?: string // 描述
|
141
141
|
extendData: {
|
142
|
-
extendId: number
|
143
|
-
version: string
|
144
|
-
}
|
145
|
-
id: number
|
146
|
-
imgUrl: string
|
147
|
-
name: string
|
148
|
-
officialUrl: string
|
149
|
-
productId: string
|
150
|
-
region: string[]
|
151
|
-
}[]
|
152
|
-
pageNo: number
|
153
|
-
totalCount: number
|
154
|
-
}
|
142
|
+
extendId: number // 扩展ID,通过这个id与设备上报的语言包id进行对比,判断语音包是否使用中
|
143
|
+
version: string // 版本
|
144
|
+
}
|
145
|
+
id: number // ID
|
146
|
+
imgUrl: string // 图片链接
|
147
|
+
name: string // 名称
|
148
|
+
officialUrl: string // 官方链接
|
149
|
+
productId: string // 产品ID
|
150
|
+
region: string[] // 区域代码
|
151
|
+
}[] // 语音数据数组
|
152
|
+
pageNo: number // 页码
|
153
|
+
totalCount: number // 数据总数
|
154
|
+
}
|
155
155
|
|
156
156
|
/**
|
157
157
|
* 获取扫地机的语音包列表
|
158
158
|
* @returns 获取扫地机的语音包列表结果的 Promise
|
159
159
|
*/
|
160
|
-
function getVoiceList(params: GetVoiceListParams): Promise<GetVoiceListResponse
|
160
|
+
function getVoiceList(params: GetVoiceListParams): Promise<GetVoiceListResponse>
|
161
161
|
|
162
162
|
// #region 获取陀螺仪扫地机的清扫记录
|
163
163
|
type GetGyroCleanRecordsParams = {
|
164
|
-
userId?: string | '0'
|
165
|
-
dpIds: number[]
|
166
|
-
offset: number
|
167
|
-
limit: number
|
168
|
-
devId: string
|
169
|
-
}
|
164
|
+
userId?: string | '0'
|
165
|
+
dpIds: number[] // dp点集合
|
166
|
+
offset: number // 偏移量
|
167
|
+
limit: number // 分页
|
168
|
+
devId: string // 设备id
|
169
|
+
}
|
170
170
|
|
171
171
|
type GetGyroCleanRecordsResponse = {
|
172
172
|
datas: {
|
173
|
-
uuid: string
|
174
|
-
dps: any[]
|
175
|
-
}[]
|
176
|
-
}
|
173
|
+
uuid: string
|
174
|
+
dps: any[]
|
175
|
+
}[]
|
176
|
+
}
|
177
177
|
|
178
178
|
/**
|
179
179
|
* 获取陀螺仪扫地机的清扫记录
|
@@ -181,27 +181,27 @@ declare namespace ty {
|
|
181
181
|
*/
|
182
182
|
function getGyroCleanRecords(
|
183
183
|
params: GetGyroCleanRecordsParams
|
184
|
-
): Promise<GetGyroCleanRecordsResponse
|
184
|
+
): Promise<GetGyroCleanRecordsResponse>
|
185
185
|
|
186
186
|
// #endregion
|
187
187
|
|
188
188
|
// #region 获取陀螺仪扫地机的清扫记录详情
|
189
189
|
type GetGyroCleanRecordDetailParams = {
|
190
|
-
start: number
|
191
|
-
size: number
|
192
|
-
devId: string
|
193
|
-
subRecordId: number
|
194
|
-
}
|
190
|
+
start: number // startRow
|
191
|
+
size: number // 分页
|
192
|
+
devId: string // 设备id
|
193
|
+
subRecordId: number // 记录id
|
194
|
+
}
|
195
195
|
|
196
196
|
type GetGyroCleanRecordDetailResponse = {
|
197
197
|
datas: {
|
198
|
-
dataList: string[]
|
199
|
-
startRow: string
|
200
|
-
devId: string
|
201
|
-
subRecordId: number
|
202
|
-
hasNext: boolean
|
203
|
-
}
|
204
|
-
}
|
198
|
+
dataList: string[]
|
199
|
+
startRow: string
|
200
|
+
devId: string
|
201
|
+
subRecordId: number // 记录id;
|
202
|
+
hasNext: boolean // 是否有下一页
|
203
|
+
}
|
204
|
+
}
|
205
205
|
|
206
206
|
/**
|
207
207
|
* 获取陀螺仪扫地机的清扫记录详情
|
@@ -209,24 +209,24 @@ declare namespace ty {
|
|
209
209
|
*/
|
210
210
|
function getGyroCleanRecordDetail(
|
211
211
|
params: GetGyroCleanRecordDetailParams
|
212
|
-
): Promise<GetGyroCleanRecordDetailResponse
|
212
|
+
): Promise<GetGyroCleanRecordDetailResponse>
|
213
213
|
|
214
214
|
// #region 获取扫地机的历史地图
|
215
215
|
type GetGyroLatestCleanMapParams = {
|
216
|
-
start: number
|
217
|
-
size: number
|
218
|
-
devId: string
|
219
|
-
}
|
216
|
+
start: number // startRow
|
217
|
+
size: number // 分页
|
218
|
+
devId: string // 设备id
|
219
|
+
}
|
220
220
|
|
221
221
|
type GetGyroLatestCleanMapResponse = {
|
222
222
|
datas: {
|
223
|
-
dataList: string[]
|
224
|
-
startRow: string
|
225
|
-
devId: string
|
226
|
-
subRecordId: number
|
227
|
-
hasNext: boolean
|
228
|
-
}
|
229
|
-
}
|
223
|
+
dataList: string[]
|
224
|
+
startRow: string
|
225
|
+
devId: string
|
226
|
+
subRecordId: number // 记录id;
|
227
|
+
hasNext: boolean // 是否有下一页
|
228
|
+
}
|
229
|
+
}
|
230
230
|
|
231
231
|
/**
|
232
232
|
* @note扫地机新增接口
|
@@ -235,24 +235,7 @@ declare namespace ty {
|
|
235
235
|
*/
|
236
236
|
function getGyroLatestCleanMap(
|
237
237
|
params: GetGyroLatestCleanMapParams
|
238
|
-
): Promise<GetGyroLatestCleanMapResponse
|
239
|
-
|
240
|
-
// #endregion
|
241
|
-
|
242
|
-
// #region 重命名扫地机的历史地图
|
243
|
-
type RenameHistoryMapParams = {
|
244
|
-
devId: string; // 设备id
|
245
|
-
id: number; // 地图文件id
|
246
|
-
fileName: string; // 新的文件名称
|
247
|
-
};
|
248
|
-
|
249
|
-
type RenameHistoryMapResponse = boolean;
|
250
|
-
|
251
|
-
/**
|
252
|
-
* 修改扫地机历史地图名称
|
253
|
-
* @returns 修改扫地机历史地图名称结果的 Promise
|
254
|
-
*/
|
255
|
-
function renameHistoryMap(params: RenameHistoryMapParams): Promise<RenameHistoryMapResponse>;
|
238
|
+
): Promise<GetGyroLatestCleanMapResponse>
|
256
239
|
|
257
240
|
// #endregion
|
258
241
|
}
|
package/lib/P2PKit-2.0.3.js
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
export declare const playnet: {
|
2
|
+
autoConnectToAp: typeof ty.playnet.autoConnectToAp;
|
3
|
+
getDeviceSecurityConfigs: typeof ty.playnet.getDeviceSecurityConfigs;
|
4
|
+
getPairConfigToken: typeof ty.playnet.getPairConfigToken;
|
5
|
+
hasBlePermission: typeof ty.playnet.hasBlePermission;
|
6
|
+
hasLocalNetworkPermission: typeof ty.playnet.hasLocalNetworkPermission;
|
7
|
+
hasPermission: typeof ty.playnet.hasPermission;
|
8
|
+
isSystemPopupInAutoConnectAp: typeof ty.playnet.isSystemPopupInAutoConnectAp;
|
9
|
+
offBLEScanDevice: typeof ty.playnet.offBLEScanDevice;
|
10
|
+
offBLEStateChange: typeof ty.playnet.offBLEStateChange;
|
11
|
+
offBlePermissionChange: typeof ty.playnet.offBlePermissionChange;
|
12
|
+
offWifiStateChange: typeof ty.playnet.offWifiStateChange;
|
13
|
+
offlocalNetWorkPermissionChange: typeof ty.playnet.offlocalNetWorkPermissionChange;
|
14
|
+
onBLEScanDevice: typeof ty.playnet.onBLEScanDevice;
|
15
|
+
onBLEStateChange: typeof ty.playnet.onBLEStateChange;
|
16
|
+
onBlePermissionChange: typeof ty.playnet.onBlePermissionChange;
|
17
|
+
onWifiStateChange: typeof ty.playnet.onWifiStateChange;
|
18
|
+
onlocalNetWorkPermissionChange: typeof ty.playnet.onlocalNetWorkPermissionChange;
|
19
|
+
queryDeviceConfigState: typeof ty.playnet.queryDeviceConfigState;
|
20
|
+
requestPermission: typeof ty.playnet.requestPermission;
|
21
|
+
resetDevice: typeof ty.playnet.resetDevice;
|
22
|
+
startActivator: typeof ty.playnet.startActivator;
|
23
|
+
startBLEScanDevice: typeof ty.playnet.startBLEScanDevice;
|
24
|
+
stopActivator: typeof ty.playnet.stopActivator;
|
25
|
+
stopBLEScan: typeof ty.playnet.stopBLEScan;
|
26
|
+
};
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/// <reference path="../@types/PlayNetKit.d.ts" />
|
2
|
+
|
3
|
+
import { createFactory } from './utils';
|
4
|
+
const factory = createFactory('PlayNetKit');
|
5
|
+
export const playnet = {
|
6
|
+
autoConnectToAp: factory('autoConnectToAp', {
|
7
|
+
"namespace": "playnet"
|
8
|
+
}),
|
9
|
+
getDeviceSecurityConfigs: factory('getDeviceSecurityConfigs', {
|
10
|
+
"namespace": "playnet"
|
11
|
+
}),
|
12
|
+
getPairConfigToken: factory('getPairConfigToken', {
|
13
|
+
"namespace": "playnet"
|
14
|
+
}),
|
15
|
+
hasBlePermission: factory('hasBlePermission', {
|
16
|
+
"namespace": "playnet"
|
17
|
+
}),
|
18
|
+
hasLocalNetworkPermission: factory('hasLocalNetworkPermission', {
|
19
|
+
"namespace": "playnet"
|
20
|
+
}),
|
21
|
+
hasPermission: factory('hasPermission', {
|
22
|
+
"namespace": "playnet"
|
23
|
+
}),
|
24
|
+
isSystemPopupInAutoConnectAp: factory('isSystemPopupInAutoConnectAp', {
|
25
|
+
"namespace": "playnet"
|
26
|
+
}),
|
27
|
+
offBLEScanDevice: factory('offBLEScanDevice', {
|
28
|
+
"namespace": "playnet"
|
29
|
+
}),
|
30
|
+
offBLEStateChange: factory('offBLEStateChange', {
|
31
|
+
"namespace": "playnet"
|
32
|
+
}),
|
33
|
+
offBlePermissionChange: factory('offBlePermissionChange', {
|
34
|
+
"namespace": "playnet"
|
35
|
+
}),
|
36
|
+
offWifiStateChange: factory('offWifiStateChange', {
|
37
|
+
"namespace": "playnet"
|
38
|
+
}),
|
39
|
+
offlocalNetWorkPermissionChange: factory('offlocalNetWorkPermissionChange', {
|
40
|
+
"namespace": "playnet"
|
41
|
+
}),
|
42
|
+
onBLEScanDevice: factory('onBLEScanDevice', {
|
43
|
+
"namespace": "playnet"
|
44
|
+
}),
|
45
|
+
onBLEStateChange: factory('onBLEStateChange', {
|
46
|
+
"namespace": "playnet"
|
47
|
+
}),
|
48
|
+
onBlePermissionChange: factory('onBlePermissionChange', {
|
49
|
+
"namespace": "playnet"
|
50
|
+
}),
|
51
|
+
onWifiStateChange: factory('onWifiStateChange', {
|
52
|
+
"namespace": "playnet"
|
53
|
+
}),
|
54
|
+
onlocalNetWorkPermissionChange: factory('onlocalNetWorkPermissionChange', {
|
55
|
+
"namespace": "playnet"
|
56
|
+
}),
|
57
|
+
queryDeviceConfigState: factory('queryDeviceConfigState', {
|
58
|
+
"namespace": "playnet"
|
59
|
+
}),
|
60
|
+
requestPermission: factory('requestPermission', {
|
61
|
+
"namespace": "playnet"
|
62
|
+
}),
|
63
|
+
resetDevice: factory('resetDevice', {
|
64
|
+
"namespace": "playnet"
|
65
|
+
}),
|
66
|
+
startActivator: factory('startActivator', {
|
67
|
+
"namespace": "playnet"
|
68
|
+
}),
|
69
|
+
startBLEScanDevice: factory('startBLEScanDevice', {
|
70
|
+
"namespace": "playnet"
|
71
|
+
}),
|
72
|
+
stopActivator: factory('stopActivator', {
|
73
|
+
"namespace": "playnet"
|
74
|
+
}),
|
75
|
+
stopBLEScan: factory('stopBLEScan', {
|
76
|
+
"namespace": "playnet"
|
77
|
+
})
|
78
|
+
};
|
package/lib/all-kits.d.ts
CHANGED
@@ -2,7 +2,7 @@ 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
|
5
|
+
export * from './PlayNetKit-1.1.3';
|
6
6
|
export * from './MapKit-3.4.13';
|
7
7
|
export * from './HomeKit-3.1.4';
|
8
8
|
export * from './P2PKit-2.0.3';
|
@@ -11,4 +11,3 @@ export * from './MediaKit-3.4.1';
|
|
11
11
|
import * as device from './DeviceKit-4.13.1';
|
12
12
|
export { device };
|
13
13
|
export * from './AIKit-1.0.0';
|
14
|
-
export * from './IPCKit-6.2.3';
|
package/lib/all-kits.js
CHANGED
@@ -2,7 +2,7 @@ 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
|
5
|
+
export * from './PlayNetKit-1.1.3';
|
6
6
|
export * from './MapKit-3.4.13';
|
7
7
|
export * from './HomeKit-3.1.4';
|
8
8
|
export * from './P2PKit-2.0.3';
|
@@ -10,5 +10,4 @@ export * from './OutdoorKit-1.0.4';
|
|
10
10
|
export * from './MediaKit-3.4.1';
|
11
11
|
import * as device from './DeviceKit-4.13.1';
|
12
12
|
export { device };
|
13
|
-
export * from './AIKit-1.0.0';
|
14
|
-
export * from './IPCKit-6.2.3';
|
13
|
+
export * from './AIKit-1.0.0';
|
package/lib/cloud/device.d.ts
CHANGED
@@ -104,15 +104,4 @@ type GetLightHighPowerResponse = {
|
|
104
104
|
* @returns
|
105
105
|
*/
|
106
106
|
declare const getLightHighPower: (params: GetLightHighPowerParams) => Promise<GetLightHighPowerResponse>;
|
107
|
-
|
108
|
-
* 设置设备地址
|
109
|
-
* @param devId 设备id
|
110
|
-
* @param address 设备地址
|
111
|
-
*/
|
112
|
-
declare const setDeviceAddress: (devId: string, address: string) => void;
|
113
|
-
/**
|
114
|
-
* 获取设备地址
|
115
|
-
* @param devId 设备id
|
116
|
-
*/
|
117
|
-
declare const getDeviceAddress: (devId: string, propertyKey: string) => void;
|
118
|
-
export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation, getLightHighPower, setDeviceAddress, getDeviceAddress, };
|
107
|
+
export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation, getLightHighPower, };
|
package/lib/cloud/device.js
CHANGED
@@ -165,35 +165,4 @@ const getLightHighPower = params => {
|
|
165
165
|
version: '1.2'
|
166
166
|
});
|
167
167
|
};
|
168
|
-
|
169
|
-
/**
|
170
|
-
* 设置设备地址
|
171
|
-
* @param devId 设备id
|
172
|
-
* @param address 设备地址
|
173
|
-
*/
|
174
|
-
const setDeviceAddress = (devId, address) => requestCloud({
|
175
|
-
api: 'm.energy.device.properties.extend.add',
|
176
|
-
data: {
|
177
|
-
device_id: devId,
|
178
|
-
properties: JSON.stringify({
|
179
|
-
address
|
180
|
-
})
|
181
|
-
},
|
182
|
-
version: '1.0'
|
183
|
-
});
|
184
|
-
|
185
|
-
/**
|
186
|
-
* 获取设备地址
|
187
|
-
* @param devId 设备id
|
188
|
-
*/
|
189
|
-
const getDeviceAddress = (devId, propertyKey) => {
|
190
|
-
return requestCloud({
|
191
|
-
api: 'm.energy.device.properties.extend.get',
|
192
|
-
data: {
|
193
|
-
device_id: devId,
|
194
|
-
property_key: propertyKey
|
195
|
-
},
|
196
|
-
version: '1.0'
|
197
|
-
});
|
198
|
-
};
|
199
|
-
export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation, getLightHighPower, setDeviceAddress, getDeviceAddress };
|
168
|
+
export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation, getLightHighPower };
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { getCleaningRecords, deleteCleaningRecord, getGyroCleanRecords, getGyroCleanRecordDetail, } from './record';
|
2
2
|
export { getVoiceList } from './voice';
|
3
|
-
export { getMultipleMapFiles, getSweeperStorageConfig, deleteMultipleMapFiles, getGyroLatestCleanMap,
|
3
|
+
export { getMultipleMapFiles, getSweeperStorageConfig, deleteMultipleMapFiles, getGyroLatestCleanMap, } from './map';
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { getCleaningRecords, deleteCleaningRecord, getGyroCleanRecords, getGyroCleanRecordDetail } from './record';
|
2
2
|
export { getVoiceList } from './voice';
|
3
|
-
export { getMultipleMapFiles, getSweeperStorageConfig, deleteMultipleMapFiles, getGyroLatestCleanMap
|
3
|
+
export { getMultipleMapFiles, getSweeperStorageConfig, deleteMultipleMapFiles, getGyroLatestCleanMap } from './map';
|
@@ -2,5 +2,4 @@ declare const getMultipleMapFiles: typeof ty.getMultipleMapFiles;
|
|
2
2
|
declare const getSweeperStorageConfig: typeof ty.getSweeperStorageConfig;
|
3
3
|
declare const deleteMultipleMapFiles: typeof ty.deleteMultipleMapFiles;
|
4
4
|
declare const getGyroLatestCleanMap: typeof ty.getGyroLatestCleanMap;
|
5
|
-
|
6
|
-
export { getMultipleMapFiles, getSweeperStorageConfig, deleteMultipleMapFiles, getGyroLatestCleanMap, renameHistoryMap, };
|
5
|
+
export { getMultipleMapFiles, getSweeperStorageConfig, deleteMultipleMapFiles, getGyroLatestCleanMap, };
|
@@ -5,5 +5,4 @@ const getMultipleMapFiles = factory('getMultipleMapFiles');
|
|
5
5
|
const getSweeperStorageConfig = factory('getSweeperStorageConfig');
|
6
6
|
const deleteMultipleMapFiles = factory('deleteMultipleMapFiles');
|
7
7
|
const getGyroLatestCleanMap = factory('getGyroLatestCleanMap');
|
8
|
-
|
9
|
-
export { getMultipleMapFiles, getSweeperStorageConfig, deleteMultipleMapFiles, getGyroLatestCleanMap, renameHistoryMap };
|
8
|
+
export { getMultipleMapFiles, getSweeperStorageConfig, deleteMultipleMapFiles, getGyroLatestCleanMap };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "
|
3
|
+
"version": "2.0.0-alpha.0",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -29,14 +29,14 @@
|
|
29
29
|
"watch": "ray start --type=component"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@ray-js/framework": "
|
33
|
-
"@ray-js/router": "
|
32
|
+
"@ray-js/framework": "2.0.0-alpha.0",
|
33
|
+
"@ray-js/router": "2.0.0-alpha.0",
|
34
34
|
"@ray-js/wechat": "^0.3.8",
|
35
35
|
"base64-browser": "^1.0.1",
|
36
36
|
"query-string": "^7.1.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ray-js/cli": "
|
39
|
+
"@ray-js/cli": "2.0.0-alpha.0",
|
40
40
|
"art-template": "^4.13.4",
|
41
41
|
"fs-extra": "^10.1.0",
|
42
42
|
"miniprogram-api-typings": "^3.12.3",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.com"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "511cd3f8d57c2888411700526781e65959037c5b"
|
50
50
|
}
|