@ray-js/api 0.5.8-beta-1 → 0.5.10
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/BaseKit.d.ts +88 -1008
- package/@types/DeviceKit.d.ts +152 -1488
- package/@types/MiniKit.d.ts +26 -381
- package/@types/{BizKit.d.ts → TYKit.d.ts} +41 -104
- package/@types/all-kits.d.ts +1 -1
- package/lib/{BaseKit-3.0.0.d.ts → BaseKit-2.3.11.d.ts} +2 -18
- package/lib/{BaseKit-3.0.0.js → BaseKit-2.3.11.js} +2 -18
- package/lib/{DeviceKit-3.0.0.d.ts → DeviceKit-2.3.3.d.ts} +18 -58
- package/lib/{DeviceKit-3.0.0.js → DeviceKit-2.3.3.js} +20 -140
- package/lib/{MiniKit-3.0.0.d.ts → MiniKit-2.4.3.d.ts} +0 -14
- package/lib/{MiniKit-3.0.0.js → MiniKit-2.4.3.js} +0 -14
- package/lib/{BizKit-3.0.1.d.ts → TYKit-2.2.6.d.ts} +1 -2
- package/lib/{BizKit-3.0.1.js → TYKit-2.2.6.js} +1 -2
- package/lib/all-kits.d.ts +5 -5
- package/lib/all-kits.js +5 -5
- package/lib/getApp/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getApp/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getBoundingClientRect/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getBoundingClientRect/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getCurrentPages/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getCurrentPages/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getElementById/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getElementById/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getI18nInfo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getI18nInfo/{index.thing.js → index.tuya.js} +0 -0
- package/lib/hideTabBar/index.d.ts +7 -1
- package/lib/hideTabBar/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/hideTabBar/{index.thing.js → index.tuya.js} +0 -0
- package/lib/navigateBack/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/navigateBack/{index.thing.js → index.tuya.js} +0 -0
- package/lib/navigateTo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/navigateTo/{index.thing.js → index.tuya.js} +0 -0
- package/lib/reLaunch/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/reLaunch/{index.thing.js → index.tuya.js} +0 -0
- package/lib/readFileSync/{index.native.d.ts → index.tuya.d.ts} +0 -0
- package/lib/readFileSync/{index.native.js → index.tuya.js} +0 -0
- package/lib/redirectTo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/redirectTo/{index.thing.js → index.tuya.js} +0 -0
- package/lib/{readFileSync/index.thing.d.ts → requestCloud/index.tuya.d.ts} +0 -0
- package/lib/requestCloud/{index.native.js → index.tuya.js} +0 -0
- package/lib/{requestCloud/index.native.d.ts → setNavigationBarColor/index.tuya.d.ts} +0 -0
- package/lib/setNavigationBarColor/{index.thing.js → index.tuya.js} +0 -0
- package/lib/{requestCloud/index.thing.d.ts → setNavigationBarTitle/index.tuya.d.ts} +0 -0
- package/lib/setNavigationBarTitle/{index.thing.js → index.tuya.js} +0 -0
- package/lib/showTabBar/index.d.ts +7 -1
- package/lib/showTabBar/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/showTabBar/{index.thing.js → index.tuya.js} +0 -0
- package/lib/switchTab/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/switchTab/{index.thing.js → index.tuya.js} +0 -0
- package/package.json +9 -8
- package/lib/getApp/index.native.d.ts +0 -2
- package/lib/getApp/index.native.js +0 -4
- package/lib/getCurrentPages/index.native.d.ts +0 -1
- package/lib/getCurrentPages/index.native.js +0 -5
- package/lib/getElementById/index.native.d.ts +0 -1
- package/lib/getElementById/index.native.js +0 -13
- package/lib/getI18nInfo/index.native.js +0 -9
- package/lib/hideNotification/index.native.d.ts +0 -2
- package/lib/hideNotification/index.native.js +0 -7
- package/lib/hideTabBar/index.native.d.ts +0 -2
- package/lib/hideTabBar/index.native.js +0 -2
- package/lib/navigateBack/index.native.d.ts +0 -2
- package/lib/navigateBack/index.native.js +0 -2
- package/lib/navigateTo/index.native.d.ts +0 -2
- package/lib/navigateTo/index.native.js +0 -2
- package/lib/reLaunch/index.native.d.ts +0 -2
- package/lib/reLaunch/index.native.js +0 -2
- package/lib/readFileSync/index.thing.js +0 -8
- package/lib/redirectTo/index.native.d.ts +0 -2
- package/lib/redirectTo/index.native.js +0 -2
- package/lib/requestCloud/index.thing.js +0 -8
- package/lib/setNavigationBarColor/index.native.d.ts +0 -2
- package/lib/setNavigationBarColor/index.native.js +0 -2
- package/lib/setNavigationBarColor/index.thing.d.ts +0 -1
- package/lib/setNavigationBarTitle/index.native.d.ts +0 -2
- package/lib/setNavigationBarTitle/index.native.js +0 -2
- package/lib/setNavigationBarTitle/index.thing.d.ts +0 -1
- package/lib/showTabBar/index.native.d.ts +0 -2
- package/lib/showTabBar/index.native.js +0 -2
- package/lib/switchTab/index.native.d.ts +0 -2
- package/lib/switchTab/index.native.js +0 -2
package/@types/DeviceKit.d.ts
CHANGED
@@ -1,194 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* DeviceKit
|
3
3
|
*
|
4
|
-
* @version 3.
|
4
|
+
* @version 2.3.3
|
5
5
|
*/
|
6
6
|
declare namespace ty.device {
|
7
|
-
/**
|
8
|
-
* 注册监听远离beacon设备范围事件
|
9
|
-
*/
|
10
|
-
export function unregisterLeaveBeaconFenceEvent(params: {
|
11
|
-
/** 设备模型 设备id */
|
12
|
-
deviceId: string
|
13
|
-
complete?: () => void
|
14
|
-
success?: (params: null) => void
|
15
|
-
fail?: (params: {
|
16
|
-
errorMsg: string
|
17
|
-
errorCode: string | number
|
18
|
-
innerError: {
|
19
|
-
errorCode: string | number
|
20
|
-
errorMsg: string
|
21
|
-
}
|
22
|
-
}) => void
|
23
|
-
}): void
|
24
|
-
|
25
|
-
/**
|
26
|
-
* 注册监听远离beacon设备范围事件
|
27
|
-
*/
|
28
|
-
export function registerLeaveBeaconFenceEvent(params: {
|
29
|
-
/** 设备模型 设备id */
|
30
|
-
deviceId: string
|
31
|
-
complete?: () => void
|
32
|
-
success?: (params: null) => void
|
33
|
-
fail?: (params: {
|
34
|
-
errorMsg: string
|
35
|
-
errorCode: string | number
|
36
|
-
innerError: {
|
37
|
-
errorCode: string | number
|
38
|
-
errorMsg: string
|
39
|
-
}
|
40
|
-
}) => void
|
41
|
-
}): void
|
42
|
-
|
43
|
-
/**
|
44
|
-
* 写入BeaconFence配置
|
45
|
-
*/
|
46
|
-
export function writeBeaconFenceConfig(params: {
|
47
|
-
/** 设备模型 设备id */
|
48
|
-
deviceId: string
|
49
|
-
/** 最小信号强度 */
|
50
|
-
beaconFenceRssi: number
|
51
|
-
/** 设置是否打开进入范围强度区间发送dp功能 */
|
52
|
-
isOpenEventWhenApproachingBeaconFence: boolean
|
53
|
-
/** 设置是否打开离开范围强度区间发送dp功能 */
|
54
|
-
isOpenEventWhenLeaveBeaconFence: boolean
|
55
|
-
/** 设置是否打开离开范围强度区间发送本地通知 */
|
56
|
-
isOpenNotifyWhenLeaveBeaconFence: boolean
|
57
|
-
complete?: () => void
|
58
|
-
success?: (params: null) => void
|
59
|
-
fail?: (params: {
|
60
|
-
errorMsg: string
|
61
|
-
errorCode: string | number
|
62
|
-
innerError: {
|
63
|
-
errorCode: string | number
|
64
|
-
errorMsg: string
|
65
|
-
}
|
66
|
-
}) => void
|
67
|
-
}): void
|
68
|
-
|
69
|
-
/**
|
70
|
-
* 读取beaconFence配置
|
71
|
-
*/
|
72
|
-
export function readBeaconFenceConfig(params: {
|
73
|
-
/**
|
74
|
-
* 设备模型
|
75
|
-
* deviceId 设备Id
|
76
|
-
*/
|
77
|
-
deviceId: string
|
78
|
-
complete?: () => void
|
79
|
-
success?: (params: {
|
80
|
-
/** 设备模型 设备id */
|
81
|
-
deviceId: string
|
82
|
-
/** 最小信号强度 */
|
83
|
-
beaconFenceRssi: number
|
84
|
-
/** 设置是否打开进入范围强度区间发送dp功能 */
|
85
|
-
isOpenEventWhenApproachingBeaconFence: boolean
|
86
|
-
/** 设置是否打开离开范围强度区间发送dp功能 */
|
87
|
-
isOpenEventWhenLeaveBeaconFence: boolean
|
88
|
-
/** 设置是否打开离开范围强度区间发送本地通知 */
|
89
|
-
isOpenNotifyWhenLeaveBeaconFence: boolean
|
90
|
-
}) => void
|
91
|
-
fail?: (params: {
|
92
|
-
errorMsg: string
|
93
|
-
errorCode: string | number
|
94
|
-
innerError: {
|
95
|
-
errorCode: string | number
|
96
|
-
errorMsg: string
|
97
|
-
}
|
98
|
-
}) => void
|
99
|
-
}): void
|
100
|
-
|
101
|
-
/**
|
102
|
-
* 移除BT配对 (仅Android端实现)
|
103
|
-
*/
|
104
|
-
export function disconnectBTBond(params: {
|
105
|
-
/** 设备的mac地址 */
|
106
|
-
mac: string
|
107
|
-
complete?: () => void
|
108
|
-
success?: (params: null) => void
|
109
|
-
fail?: (params: {
|
110
|
-
errorMsg: string
|
111
|
-
errorCode: string | number
|
112
|
-
innerError: {
|
113
|
-
errorCode: string | number
|
114
|
-
errorMsg: string
|
115
|
-
}
|
116
|
-
}) => void
|
117
|
-
}): void
|
118
|
-
|
119
|
-
/**
|
120
|
-
* 打开BT配对窗口 (仅Android端实现)
|
121
|
-
*/
|
122
|
-
export function connectBTBond(params: {
|
123
|
-
/** 设备的mac地址 */
|
124
|
-
mac: string
|
125
|
-
complete?: () => void
|
126
|
-
success?: (params: null) => void
|
127
|
-
fail?: (params: {
|
128
|
-
errorMsg: string
|
129
|
-
errorCode: string | number
|
130
|
-
innerError: {
|
131
|
-
errorCode: string | number
|
132
|
-
errorMsg: string
|
133
|
-
}
|
134
|
-
}) => void
|
135
|
-
}): void
|
136
|
-
|
137
|
-
/**
|
138
|
-
* 取消文件传输到蓝牙设备 仅IOS支持
|
139
|
-
*/
|
140
|
-
export function cancelBLEFileTransfer(params: {
|
141
|
-
/** 设备模型 设备id */
|
142
|
-
deviceId: string
|
143
|
-
/** 文件id */
|
144
|
-
fileId: number
|
145
|
-
/** 文件标识符 */
|
146
|
-
fileIdentifier: string
|
147
|
-
/** 文件版本 */
|
148
|
-
fileVersion: number
|
149
|
-
/** 文件地址 */
|
150
|
-
filePath: string
|
151
|
-
complete?: () => void
|
152
|
-
success?: (params: null) => void
|
153
|
-
fail?: (params: {
|
154
|
-
errorMsg: string
|
155
|
-
errorCode: string | number
|
156
|
-
innerError: {
|
157
|
-
errorCode: string | number
|
158
|
-
errorMsg: string
|
159
|
-
}
|
160
|
-
}) => void
|
161
|
-
}): void
|
162
|
-
|
163
|
-
/**
|
164
|
-
* 传输文件到蓝牙设备
|
165
|
-
*/
|
166
|
-
export function postBLEFileTransfer(params: {
|
167
|
-
/** 设备模型 设备id */
|
168
|
-
deviceId: string
|
169
|
-
/** 文件id */
|
170
|
-
fileId: number
|
171
|
-
/** 文件标识符 */
|
172
|
-
fileIdentifier: string
|
173
|
-
/** 文件版本 */
|
174
|
-
fileVersion: number
|
175
|
-
/** 文件地址 */
|
176
|
-
filePath: string
|
177
|
-
complete?: () => void
|
178
|
-
success?: (params: {
|
179
|
-
/** true/false 传输成功/传输失败 */
|
180
|
-
result: boolean
|
181
|
-
}) => void
|
182
|
-
fail?: (params: {
|
183
|
-
errorMsg: string
|
184
|
-
errorCode: string | number
|
185
|
-
innerError: {
|
186
|
-
errorCode: string | number
|
187
|
-
errorMsg: string
|
188
|
-
}
|
189
|
-
}) => void
|
190
|
-
}): void
|
191
|
-
|
192
7
|
/**
|
193
8
|
* 获取BLE外设的信号
|
194
9
|
*/
|
@@ -217,9 +32,9 @@ declare namespace ty.device {
|
|
217
32
|
}): void
|
218
33
|
|
219
34
|
/**
|
220
|
-
* 开始监听BLE(
|
35
|
+
* 开始监听BLE(tuya)连接状态
|
221
36
|
*/
|
222
|
-
export function
|
37
|
+
export function subscribeTYBLEConnectStatus(params: {
|
223
38
|
/**
|
224
39
|
* 设备模型
|
225
40
|
* deviceId 设备Id
|
@@ -238,9 +53,9 @@ declare namespace ty.device {
|
|
238
53
|
}): void
|
239
54
|
|
240
55
|
/**
|
241
|
-
* 停止监听BLE(
|
56
|
+
* 停止监听BLE(tuya)连接状态
|
242
57
|
*/
|
243
|
-
export function
|
58
|
+
export function unsubscribeTYBLEConnectStatus(params: {
|
244
59
|
/**
|
245
60
|
* 设备模型
|
246
61
|
* deviceId 设备Id
|
@@ -259,9 +74,9 @@ declare namespace ty.device {
|
|
259
74
|
}): void
|
260
75
|
|
261
76
|
/**
|
262
|
-
* 连接BLE(
|
77
|
+
* 连接BLE(tuya)设备,【Android特有:与directConnectBLEDevice方法的区别在于,该方法会先进行扫描的动作,扫描到设备之后才会进行连接。】
|
263
78
|
*/
|
264
|
-
export function
|
79
|
+
export function connectTYBLEDevice(params: {
|
265
80
|
/**
|
266
81
|
* 设备模型
|
267
82
|
* deviceId 设备Id
|
@@ -280,7 +95,7 @@ declare namespace ty.device {
|
|
280
95
|
}): void
|
281
96
|
|
282
97
|
/**
|
283
|
-
* 直连BLE(
|
98
|
+
* 直连BLE(tuya)设备,【Android特有:与connectTYBLEDevice方法的区别在于,该方法在连接设备时并不会进行扫描的动作。换言之,需要先扫描到设备之后,方可调用该方法进行连接】
|
284
99
|
*/
|
285
100
|
export function directConnectBLEDevice(params: {
|
286
101
|
/**
|
@@ -301,9 +116,9 @@ declare namespace ty.device {
|
|
301
116
|
}): void
|
302
117
|
|
303
118
|
/**
|
304
|
-
* 断开BLE(
|
119
|
+
* 断开BLE(tuya)设备
|
305
120
|
*/
|
306
|
-
export function
|
121
|
+
export function disconnectTYBLEDevice(params: {
|
307
122
|
/**
|
308
123
|
* 设备模型
|
309
124
|
* deviceId 设备Id
|
@@ -322,9 +137,9 @@ declare namespace ty.device {
|
|
322
137
|
}): void
|
323
138
|
|
324
139
|
/**
|
325
|
-
* 查询BLE(
|
140
|
+
* 查询BLE(tuya)本地在线状态
|
326
141
|
*/
|
327
|
-
export function
|
142
|
+
export function getTYBLEOnlineState(params: {
|
328
143
|
/**
|
329
144
|
* 设备模型
|
330
145
|
* deviceId 设备Id
|
@@ -349,9 +164,9 @@ declare namespace ty.device {
|
|
349
164
|
}): void
|
350
165
|
|
351
166
|
/**
|
352
|
-
* 开始监听BLE(
|
167
|
+
* 开始监听BLE(tuya)设备数据透传通道上报
|
353
168
|
*/
|
354
|
-
export function
|
169
|
+
export function subscribeTYBLETransparentDataReport(params: {
|
355
170
|
/**
|
356
171
|
* 设备模型
|
357
172
|
* deviceId 设备Id
|
@@ -370,9 +185,9 @@ declare namespace ty.device {
|
|
370
185
|
}): void
|
371
186
|
|
372
187
|
/**
|
373
|
-
* 停止监听BLE(
|
188
|
+
* 停止监听BLE(tuya)设备数据透传通道上报
|
374
189
|
*/
|
375
|
-
export function
|
190
|
+
export function unsubscribeTYBLETransparentDataReport(params: {
|
376
191
|
/**
|
377
192
|
* 设备模型
|
378
193
|
* deviceId 设备Id
|
@@ -391,9 +206,9 @@ declare namespace ty.device {
|
|
391
206
|
}): void
|
392
207
|
|
393
208
|
/**
|
394
|
-
* BLE(
|
209
|
+
* BLE(tuya)下发透传数据
|
395
210
|
*/
|
396
|
-
export function
|
211
|
+
export function publishTYBLETransparentData(params: {
|
397
212
|
/**
|
398
213
|
* 蓝牙透传数据
|
399
214
|
* deviceId: 设备 id
|
@@ -415,7 +230,7 @@ declare namespace ty.device {
|
|
415
230
|
|
416
231
|
/**
|
417
232
|
* 获取加密过的设备 localKey
|
418
|
-
*BLE(
|
233
|
+
*BLE(tuya)蓝牙大数据通道传输过程中需要用到的特殊加密操作
|
419
234
|
*/
|
420
235
|
export function getEncryptLocalKeyWithData(params: {
|
421
236
|
/**
|
@@ -440,7 +255,7 @@ declare namespace ty.device {
|
|
440
255
|
/**
|
441
256
|
* 大数据通道操作,支持进度反馈
|
442
257
|
*/
|
443
|
-
export function
|
258
|
+
export function postTYBLEBigDataChannelWithProgress(params: {
|
444
259
|
/** deviceId 设备 id */
|
445
260
|
deviceId: string
|
446
261
|
/**
|
@@ -601,7 +416,7 @@ declare namespace ty.device {
|
|
601
416
|
* MESH -> "MESH"
|
602
417
|
* SIG_MESH -> "SIG_MESH"
|
603
418
|
* NORMAL -> "NORMAL"
|
604
|
-
*
|
419
|
+
* TY_BEACON -> "TY_BEACON"
|
605
420
|
*/
|
606
421
|
scanType: string
|
607
422
|
complete?: () => void
|
@@ -617,7 +432,7 @@ declare namespace ty.device {
|
|
617
432
|
}): void
|
618
433
|
|
619
434
|
/**
|
620
|
-
* iOS单端插件方法。调用
|
435
|
+
* iOS单端插件方法。调用 connectTYBLEDevice 连接蓝牙设备前需要先调用该方法开启扫描。
|
621
436
|
*开启扫描
|
622
437
|
*/
|
623
438
|
export function startBLEScan(params?: {
|
@@ -634,7 +449,7 @@ declare namespace ty.device {
|
|
634
449
|
}): void
|
635
450
|
|
636
451
|
/**
|
637
|
-
* iOS单端插件方法。调用
|
452
|
+
* iOS单端插件方法。调用 connectTYBLEDevice 连接蓝牙设备前需要先调用该方法开启扫描。
|
638
453
|
*开启扫描
|
639
454
|
*/
|
640
455
|
export function startBLEScanSync(): null
|
@@ -895,74 +710,6 @@ declare namespace ty.device {
|
|
895
710
|
}) => void
|
896
711
|
}): void
|
897
712
|
|
898
|
-
/**
|
899
|
-
* 连云激活-WiFi的激活状态
|
900
|
-
*/
|
901
|
-
export function getDeviceWifiActivatorStatus(params: {
|
902
|
-
/**
|
903
|
-
* 设备模型
|
904
|
-
* deviceId 设备Id
|
905
|
-
*/
|
906
|
-
deviceId: string
|
907
|
-
complete?: () => void
|
908
|
-
success?: (params: {
|
909
|
-
/** 设备是否WiFi激活 */
|
910
|
-
wifiActivator: boolean
|
911
|
-
}) => void
|
912
|
-
fail?: (params: {
|
913
|
-
errorMsg: string
|
914
|
-
errorCode: string | number
|
915
|
-
innerError: {
|
916
|
-
errorCode: string | number
|
917
|
-
errorMsg: string
|
918
|
-
}
|
919
|
-
}) => void
|
920
|
-
}): void
|
921
|
-
|
922
|
-
/**
|
923
|
-
* 连云激活-进行wifi激活
|
924
|
-
*/
|
925
|
-
export function startDeviceWifiActivator(params: {
|
926
|
-
/**
|
927
|
-
* 设备模型
|
928
|
-
* deviceId 设备Id
|
929
|
-
*/
|
930
|
-
deviceId: string
|
931
|
-
complete?: () => void
|
932
|
-
success?: (params: {
|
933
|
-
/** 设备是否WiFi激活 */
|
934
|
-
wifiActivator: boolean
|
935
|
-
}) => void
|
936
|
-
fail?: (params: {
|
937
|
-
errorMsg: string
|
938
|
-
errorCode: string | number
|
939
|
-
innerError: {
|
940
|
-
errorCode: string | number
|
941
|
-
errorMsg: string
|
942
|
-
}
|
943
|
-
}) => void
|
944
|
-
}): void
|
945
|
-
|
946
|
-
/**
|
947
|
-
* 修改设备名称
|
948
|
-
*/
|
949
|
-
export function renameDeviceName(params: {
|
950
|
-
/** deviceId 设备id */
|
951
|
-
deviceId: string
|
952
|
-
/** name 设备名称 */
|
953
|
-
name: string
|
954
|
-
complete?: () => void
|
955
|
-
success?: (params: null) => void
|
956
|
-
fail?: (params: {
|
957
|
-
errorMsg: string
|
958
|
-
errorCode: string | number
|
959
|
-
innerError: {
|
960
|
-
errorCode: string | number
|
961
|
-
errorMsg: string
|
962
|
-
}
|
963
|
-
}) => void
|
964
|
-
}): void
|
965
|
-
|
966
713
|
/**
|
967
714
|
* 重置设备并恢复出厂设置。
|
968
715
|
*设备数据会被清除并进入待配网状态。
|
@@ -1170,7 +917,7 @@ declare namespace ty.device {
|
|
1170
917
|
devAttribute: number
|
1171
918
|
/**
|
1172
919
|
* pcc
|
1173
|
-
*
|
920
|
+
* 涂鸦自研蓝牙 mesh 产品的分类标识
|
1174
921
|
*/
|
1175
922
|
pcc: string
|
1176
923
|
/**
|
@@ -1205,7 +952,7 @@ declare namespace ty.device {
|
|
1205
952
|
bizAttribute: number
|
1206
953
|
/**
|
1207
954
|
* meshId
|
1208
|
-
*
|
955
|
+
* 涂鸦自研的蓝牙 mesh id
|
1209
956
|
*/
|
1210
957
|
meshId: string
|
1211
958
|
/**
|
@@ -1223,8 +970,6 @@ declare namespace ty.device {
|
|
1223
970
|
* 本地局域网是否在线
|
1224
971
|
*/
|
1225
972
|
isLocalOnline: boolean
|
1226
|
-
/** 设备云端在线情况 */
|
1227
|
-
isCloudOnline: boolean
|
1228
973
|
/**
|
1229
974
|
* isOnline
|
1230
975
|
* 设备总的在线情况,只要一个情况在线,就是在线,复合在线情况
|
@@ -1242,20 +987,8 @@ declare namespace ty.device {
|
|
1242
987
|
* 标准功能集 code
|
1243
988
|
*/
|
1244
989
|
dpCodes: Record<string, {}>
|
1245
|
-
/**
|
1246
|
-
|
1247
|
-
/** 设备的功能点执行的时间 */
|
1248
|
-
dpsTime: Record<string, {}>
|
1249
|
-
/** 设备纬度 */
|
1250
|
-
latitude: string
|
1251
|
-
/** 设备经度 */
|
1252
|
-
longitude: string
|
1253
|
-
/** 设备ip地址 */
|
1254
|
-
ip: string
|
1255
|
-
/** 是否为虚拟设备 */
|
1256
|
-
isVirtualDevice: boolean
|
1257
|
-
/** zigbeeInstallCode to the cloud to mark the gateway with installation code ability */
|
1258
|
-
isZigbeeInstallCode: boolean
|
990
|
+
/** 原始 json,业务来不及拓展更新的时候,可以根据这个来获取处理 */
|
991
|
+
originJson: Record<string, {}>
|
1259
992
|
}) => void
|
1260
993
|
fail?: (params: {
|
1261
994
|
errorMsg: string
|
@@ -1275,6 +1008,8 @@ declare namespace ty.device {
|
|
1275
1008
|
productId: string
|
1276
1009
|
complete?: () => void
|
1277
1010
|
success?: (params: {
|
1011
|
+
/** 产品原始 json 信息 */
|
1012
|
+
originJson: Record<string, {}>
|
1278
1013
|
/** 面板配置项,可以在平台进行配置 */
|
1279
1014
|
panelConfig: Record<string, {}>
|
1280
1015
|
/** 产品功能定义集合 */
|
@@ -1314,12 +1049,12 @@ declare namespace ty.device {
|
|
1314
1049
|
standard: boolean
|
1315
1050
|
/**
|
1316
1051
|
* pcc
|
1317
|
-
*
|
1052
|
+
* 涂鸦自研蓝牙 mesh 产品的分类标识
|
1318
1053
|
*/
|
1319
1054
|
pcc: string
|
1320
1055
|
/**
|
1321
1056
|
* vendorInfo
|
1322
|
-
*
|
1057
|
+
* 涂鸦自研蓝牙 mesh 产品的分类标识,融合类使用
|
1323
1058
|
*/
|
1324
1059
|
vendorInfo: string
|
1325
1060
|
/**
|
@@ -1479,7 +1214,7 @@ declare namespace ty.device {
|
|
1479
1214
|
* HTTP = 2, // Http
|
1480
1215
|
* BLE = 3, // Single Point Bluetooth
|
1481
1216
|
* SIGMesh = 4, // Sig Mesh
|
1482
|
-
* BLEMesh = 5, //
|
1217
|
+
* BLEMesh = 5, // Tuya Private Mesh
|
1483
1218
|
* BLEBeacon = 6, // Beacon
|
1484
1219
|
*/
|
1485
1220
|
pipelines: number[]
|
@@ -1519,7 +1254,7 @@ declare namespace ty.device {
|
|
1519
1254
|
* HTTP = 2, // Http
|
1520
1255
|
* BLE = 3, // Single Point Bluetooth
|
1521
1256
|
* SIGMesh = 4, // Sig Mesh
|
1522
|
-
* BLEMesh = 5, //
|
1257
|
+
* BLEMesh = 5, // Tuya Private Mesh
|
1523
1258
|
* BLEBeacon = 6, // Beacon
|
1524
1259
|
*/
|
1525
1260
|
pipelines: number[]
|
@@ -1559,7 +1294,7 @@ declare namespace ty.device {
|
|
1559
1294
|
* HTTP = 2, // Http
|
1560
1295
|
* BLE = 3, // Single Point Bluetooth
|
1561
1296
|
* SIGMesh = 4, // Sig Mesh
|
1562
|
-
* BLEMesh = 5, //
|
1297
|
+
* BLEMesh = 5, // Tuya Private Mesh
|
1563
1298
|
* BLEBeacon = 6, // Beacon
|
1564
1299
|
*/
|
1565
1300
|
pipelines: number[]
|
@@ -1741,7 +1476,7 @@ declare namespace ty.device {
|
|
1741
1476
|
}): void
|
1742
1477
|
|
1743
1478
|
/**
|
1744
|
-
* 订阅设备移除事件
|
1479
|
+
* 订阅设备移除事件
|
1745
1480
|
*/
|
1746
1481
|
export function subscribeDeviceRemoved(params: {
|
1747
1482
|
/** 设备id */
|
@@ -1759,7 +1494,7 @@ declare namespace ty.device {
|
|
1759
1494
|
}): void
|
1760
1495
|
|
1761
1496
|
/**
|
1762
|
-
* 取消订阅设备移除事件
|
1497
|
+
* 取消订阅设备移除事件
|
1763
1498
|
*/
|
1764
1499
|
export function unSubscribeDeviceRemoved(params: {
|
1765
1500
|
/** 设备id */
|
@@ -1894,63 +1629,6 @@ declare namespace ty.device {
|
|
1894
1629
|
}) => void
|
1895
1630
|
}): void
|
1896
1631
|
|
1897
|
-
/**
|
1898
|
-
* 注册需要监听的topci列表 [仅m/m/i topic 订阅]
|
1899
|
-
*/
|
1900
|
-
export function registerTopicListListener(params: {
|
1901
|
-
/** 需监听的topic列表 */
|
1902
|
-
topicList: string[]
|
1903
|
-
complete?: () => void
|
1904
|
-
success?: (params: null) => void
|
1905
|
-
fail?: (params: {
|
1906
|
-
errorMsg: string
|
1907
|
-
errorCode: string | number
|
1908
|
-
innerError: {
|
1909
|
-
errorCode: string | number
|
1910
|
-
errorMsg: string
|
1911
|
-
}
|
1912
|
-
}) => void
|
1913
|
-
}): void
|
1914
|
-
|
1915
|
-
/**
|
1916
|
-
* 注销需要监听的topic列表
|
1917
|
-
*/
|
1918
|
-
export function unregisterTopicListListener(params?: {
|
1919
|
-
complete?: () => void
|
1920
|
-
success?: (params: null) => void
|
1921
|
-
fail?: (params: {
|
1922
|
-
errorMsg: string
|
1923
|
-
errorCode: string | number
|
1924
|
-
innerError: {
|
1925
|
-
errorCode: string | number
|
1926
|
-
errorMsg: string
|
1927
|
-
}
|
1928
|
-
}) => void
|
1929
|
-
}): void
|
1930
|
-
|
1931
|
-
/**
|
1932
|
-
* 获取mqtt连接状态 回调返回当前连接情况
|
1933
|
-
*/
|
1934
|
-
export function getMqttConnectState(params?: {
|
1935
|
-
complete?: () => void
|
1936
|
-
success?: (params: {
|
1937
|
-
/**
|
1938
|
-
* mqtt连接状态
|
1939
|
-
* 0 连接失败
|
1940
|
-
* 1 连接成功
|
1941
|
-
*/
|
1942
|
-
connectState: number
|
1943
|
-
}) => void
|
1944
|
-
fail?: (params: {
|
1945
|
-
errorMsg: string
|
1946
|
-
errorCode: string | number
|
1947
|
-
innerError: {
|
1948
|
-
errorCode: string | number
|
1949
|
-
errorMsg: string
|
1950
|
-
}
|
1951
|
-
}) => void
|
1952
|
-
}): void
|
1953
|
-
|
1954
1632
|
/**
|
1955
1633
|
* 检查固件升级信息
|
1956
1634
|
*/
|
@@ -2607,474 +2285,11 @@ declare namespace ty.device {
|
|
2607
2285
|
}): void
|
2608
2286
|
|
2609
2287
|
/**
|
2610
|
-
*
|
2611
|
-
*详细文档链接:https://wiki.tuya-inc.com:7799/page/1456192108871295013
|
2288
|
+
* 获取 group 信息
|
2612
2289
|
*/
|
2613
|
-
export function
|
2614
|
-
/**
|
2615
|
-
|
2616
|
-
/** 场景模型 */
|
2617
|
-
sceneModel: Record<string, {}>
|
2618
|
-
complete?: () => void
|
2619
|
-
success?: (params: {
|
2620
|
-
/** 返回状态,默认返回 true */
|
2621
|
-
status?: boolean
|
2622
|
-
/** 成功返回的类型。0-未操作,1-保存成功,2-点击不感兴趣 */
|
2623
|
-
type: number
|
2624
|
-
/** 返回的场景数据,可能为空 */
|
2625
|
-
data?: Record<string, {}>
|
2626
|
-
}) => void
|
2627
|
-
fail?: (params: {
|
2628
|
-
errorMsg: string
|
2629
|
-
errorCode: string | number
|
2630
|
-
innerError: {
|
2631
|
-
errorCode: string | number
|
2632
|
-
errorMsg: string
|
2633
|
-
}
|
2634
|
-
}) => void
|
2635
|
-
}): void
|
2636
|
-
|
2637
|
-
/**
|
2638
|
-
* 跳转一键执行和自动化页面
|
2639
|
-
*/
|
2640
|
-
export function openDeviceExecutionAndAnutomation(params: {
|
2641
|
-
/**
|
2642
|
-
* deviceId
|
2643
|
-
* 设备 id
|
2644
|
-
*/
|
2645
|
-
deviceId: string
|
2646
|
-
/** 页面标题,Android 需要 */
|
2647
|
-
title?: string
|
2648
|
-
complete?: () => void
|
2649
|
-
success?: (params: null) => void
|
2650
|
-
fail?: (params: {
|
2651
|
-
errorMsg: string
|
2652
|
-
errorCode: string | number
|
2653
|
-
innerError: {
|
2654
|
-
errorCode: string | number
|
2655
|
-
errorMsg: string
|
2656
|
-
}
|
2657
|
-
}) => void
|
2658
|
-
}): void
|
2659
|
-
|
2660
|
-
/**
|
2661
|
-
* 保存场景动作数据
|
2662
|
-
*/
|
2663
|
-
export function saveSceneAction(params: {
|
2664
|
-
/** 设备id */
|
2665
|
-
deviceId: string
|
2666
|
-
/** 动作的索引位置 */
|
2667
|
-
taskPosition: number
|
2668
|
-
/** 动作执行器 */
|
2669
|
-
actionExecutor?: string
|
2670
|
-
/** 动作执行信息 */
|
2671
|
-
executorProperty: Record<string, {}>
|
2672
|
-
/** 动作额外信息 */
|
2673
|
-
extraProperty: Record<string, {}>
|
2674
|
-
/** 动作展示信息 */
|
2675
|
-
actionDisplayNew: Record<string, {}>
|
2676
|
-
complete?: () => void
|
2677
|
-
success?: (params: null) => void
|
2678
|
-
fail?: (params: {
|
2679
|
-
errorMsg: string
|
2680
|
-
errorCode: string | number
|
2681
|
-
innerError: {
|
2682
|
-
errorCode: string | number
|
2683
|
-
errorMsg: string
|
2684
|
-
}
|
2685
|
-
}) => void
|
2686
|
-
}): void
|
2687
|
-
|
2688
|
-
/**
|
2689
|
-
* 创建自动化动作
|
2690
|
-
*/
|
2691
|
-
export function createAction(params: {
|
2692
|
-
/**
|
2693
|
-
* 动作类型:device,smart,remind,delay
|
2694
|
-
* device:设备
|
2695
|
-
* smart:操作某个智能(执行智能、开关自动化)
|
2696
|
-
* remind:提醒
|
2697
|
-
* delay:延时
|
2698
|
-
*/
|
2699
|
-
createType: string
|
2700
|
-
/**
|
2701
|
-
* 智能类型:scene,auto
|
2702
|
-
* scene:一键执行
|
2703
|
-
* auto:自动化
|
2704
|
-
*/
|
2705
|
-
smartType: string
|
2706
|
-
/** 当前场景动作列表 */
|
2707
|
-
actionArray: SceneAction[]
|
2708
|
-
complete?: () => void
|
2709
|
-
success?: (params: {
|
2710
|
-
/** 动作列表 */
|
2711
|
-
actionArray: SceneAction[]
|
2712
|
-
}) => void
|
2713
|
-
fail?: (params: {
|
2714
|
-
errorMsg: string
|
2715
|
-
errorCode: string | number
|
2716
|
-
innerError: {
|
2717
|
-
errorCode: string | number
|
2718
|
-
errorMsg: string
|
2719
|
-
}
|
2720
|
-
}) => void
|
2721
|
-
}): void
|
2722
|
-
|
2723
|
-
/**
|
2724
|
-
* 编辑场景动作
|
2725
|
-
*/
|
2726
|
-
export function editAction(params: {
|
2727
|
-
/** 当前编辑的actionIndex */
|
2728
|
-
editIndex: string
|
2729
|
-
/** 智能类型 */
|
2730
|
-
smartType: string
|
2731
|
-
/** 动作列表 */
|
2732
|
-
actionArray: SceneAction[]
|
2733
|
-
complete?: () => void
|
2734
|
-
success?: (params: {
|
2735
|
-
/** 动作列表 */
|
2736
|
-
actionArray: SceneAction[]
|
2737
|
-
}) => void
|
2738
|
-
fail?: (params: {
|
2739
|
-
errorMsg: string
|
2740
|
-
errorCode: string | number
|
2741
|
-
innerError: {
|
2742
|
-
errorCode: string | number
|
2743
|
-
errorMsg: string
|
2744
|
-
}
|
2745
|
-
}) => void
|
2746
|
-
}): void
|
2747
|
-
|
2748
|
-
/**
|
2749
|
-
* 展示场景的风格弹窗
|
2750
|
-
*/
|
2751
|
-
export function showSceneDialog(params?: {
|
2752
|
-
/**
|
2753
|
-
* 智能类型:scene,auto
|
2754
|
-
* scene:一键执行
|
2755
|
-
* auto:自动化
|
2756
|
-
*/
|
2757
|
-
smartType?: string
|
2758
|
-
/** 颜色 */
|
2759
|
-
color?: string
|
2760
|
-
/** 图标 */
|
2761
|
-
icon?: string
|
2762
|
-
/** 图片 */
|
2763
|
-
image?: string
|
2764
|
-
complete?: () => void
|
2765
|
-
success?: (params: {
|
2766
|
-
/** 颜色 */
|
2767
|
-
color?: string
|
2768
|
-
/** 图标 */
|
2769
|
-
icon?: string
|
2770
|
-
/** 图片 */
|
2771
|
-
image?: string
|
2772
|
-
}) => void
|
2773
|
-
fail?: (params: {
|
2774
|
-
errorMsg: string
|
2775
|
-
errorCode: string | number
|
2776
|
-
innerError: {
|
2777
|
-
errorCode: string | number
|
2778
|
-
errorMsg: string
|
2779
|
-
}
|
2780
|
-
}) => void
|
2781
|
-
}): void
|
2782
|
-
|
2783
|
-
/**
|
2784
|
-
* 打开生效时间段页面
|
2785
|
-
*/
|
2786
|
-
export function openPreConditionPage(params?: {
|
2787
|
-
/** id */
|
2788
|
-
id?: string
|
2789
|
-
/** 固定值 timeCheck */
|
2790
|
-
condType?: string
|
2791
|
-
/** 规则 */
|
2792
|
-
expr?: Expr
|
2793
|
-
complete?: () => void
|
2794
|
-
success?: (params: {
|
2795
|
-
/** id */
|
2796
|
-
id: string
|
2797
|
-
/** 固定值 timeCheck */
|
2798
|
-
condType: string
|
2799
|
-
/** 规则 */
|
2800
|
-
expr: Expr
|
2801
|
-
}) => void
|
2802
|
-
fail?: (params: {
|
2803
|
-
errorMsg: string
|
2804
|
-
errorCode: string | number
|
2805
|
-
innerError: {
|
2806
|
-
errorCode: string | number
|
2807
|
-
errorMsg: string
|
2808
|
-
}
|
2809
|
-
}) => void
|
2810
|
-
}): void
|
2811
|
-
|
2812
|
-
/**
|
2813
|
-
* 创建条件
|
2814
|
-
*/
|
2815
|
-
export function createCondition(params: {
|
2816
|
-
/** 条件类型 */
|
2817
|
-
type: string
|
2818
|
-
/** 条件内容 */
|
2819
|
-
condition?: string
|
2820
|
-
/** 索引 */
|
2821
|
-
index?: number
|
2822
|
-
complete?: () => void
|
2823
|
-
success?: (params: {
|
2824
|
-
/** 条件类型 */
|
2825
|
-
type?: string
|
2826
|
-
/** 条件内容 */
|
2827
|
-
condition?: string
|
2828
|
-
/** 索引 */
|
2829
|
-
index?: number
|
2830
|
-
}) => void
|
2831
|
-
fail?: (params: {
|
2832
|
-
errorMsg: string
|
2833
|
-
errorCode: string | number
|
2834
|
-
innerError: {
|
2835
|
-
errorCode: string | number
|
2836
|
-
errorMsg: string
|
2837
|
-
}
|
2838
|
-
}) => void
|
2839
|
-
}): void
|
2840
|
-
|
2841
|
-
/**
|
2842
|
-
* 编辑条件
|
2843
|
-
*/
|
2844
|
-
export function editCondition(params: {
|
2845
|
-
/** 条件类型 */
|
2846
|
-
type: string
|
2847
|
-
/** 条件内容 */
|
2848
|
-
condition?: string
|
2849
|
-
/** 索引 */
|
2850
|
-
index?: number
|
2851
|
-
complete?: () => void
|
2852
|
-
success?: (params: {
|
2853
|
-
/** 条件类型 */
|
2854
|
-
type?: string
|
2855
|
-
/** 条件内容 */
|
2856
|
-
condition?: string
|
2857
|
-
/** 索引 */
|
2858
|
-
index?: number
|
2859
|
-
}) => void
|
2860
|
-
fail?: (params: {
|
2861
|
-
errorMsg: string
|
2862
|
-
errorCode: string | number
|
2863
|
-
innerError: {
|
2864
|
-
errorCode: string | number
|
2865
|
-
errorMsg: string
|
2866
|
-
}
|
2867
|
-
}) => void
|
2868
|
-
}): void
|
2869
|
-
|
2870
|
-
/**
|
2871
|
-
* 获取群组下设备列表
|
2872
|
-
*/
|
2873
|
-
export function getGroupDeviceList(params: {
|
2874
|
-
/** 群组id */
|
2875
|
-
groupId: string
|
2876
|
-
complete?: () => void
|
2877
|
-
success?: (params: {
|
2878
|
-
/** groupId 群组id */
|
2879
|
-
groupId: string
|
2880
|
-
/** deviceList 设备列表 */
|
2881
|
-
deviceList: DeviceInfo_SLAb2e[]
|
2882
|
-
}) => void
|
2883
|
-
fail?: (params: {
|
2884
|
-
errorMsg: string
|
2885
|
-
errorCode: string | number
|
2886
|
-
innerError: {
|
2887
|
-
errorCode: string | number
|
2888
|
-
errorMsg: string
|
2889
|
-
}
|
2890
|
-
}) => void
|
2891
|
-
}): void
|
2892
|
-
|
2893
|
-
/**
|
2894
|
-
* 获取群组下设备数量
|
2895
|
-
*/
|
2896
|
-
export function getGroupDeviceNum(params: {
|
2897
|
-
/** 群组id */
|
2898
|
-
groupId: string
|
2899
|
-
complete?: () => void
|
2900
|
-
success?: (params: {
|
2901
|
-
/** groupId 群组id */
|
2902
|
-
groupId: string
|
2903
|
-
/** devieNum 设备数量 */
|
2904
|
-
devieNum: number
|
2905
|
-
}) => void
|
2906
|
-
fail?: (params: {
|
2907
|
-
errorMsg: string
|
2908
|
-
errorCode: string | number
|
2909
|
-
innerError: {
|
2910
|
-
errorCode: string | number
|
2911
|
-
errorMsg: string
|
2912
|
-
}
|
2913
|
-
}) => void
|
2914
|
-
}): void
|
2915
|
-
|
2916
|
-
/**
|
2917
|
-
* 根据dpCode获取群组下具备此dpCode的设备数量。如果是一个分享的群组,请通过接口获取。
|
2918
|
-
*/
|
2919
|
-
export function getDeviceNumWithDpCode(params: {
|
2920
|
-
/** groupId 群组id */
|
2921
|
-
groupId: string
|
2922
|
-
/** dpCode内容 */
|
2923
|
-
dpCode: string
|
2924
|
-
complete?: () => void
|
2925
|
-
success?: (params: {
|
2926
|
-
/** groupId 群组id */
|
2927
|
-
groupId: string
|
2928
|
-
/** devieNum 设备数量 */
|
2929
|
-
devieNum: number
|
2930
|
-
}) => void
|
2931
|
-
fail?: (params: {
|
2932
|
-
errorMsg: string
|
2933
|
-
errorCode: string | number
|
2934
|
-
innerError: {
|
2935
|
-
errorCode: string | number
|
2936
|
-
errorMsg: string
|
2937
|
-
}
|
2938
|
-
}) => void
|
2939
|
-
}): void
|
2940
|
-
|
2941
|
-
/**
|
2942
|
-
* 通过dpCode下发控制指令
|
2943
|
-
*/
|
2944
|
-
export function publishGroupDpCodes(params: {
|
2945
|
-
/** groupId 群组id */
|
2946
|
-
groupId: string
|
2947
|
-
/**
|
2948
|
-
* dp信息
|
2949
|
-
* 示例: dpCodes: {"switch" : true}
|
2950
|
-
*/
|
2951
|
-
dpCodes: Record<string, Object>
|
2952
|
-
complete?: () => void
|
2953
|
-
success?: (params: null) => void
|
2954
|
-
fail?: (params: {
|
2955
|
-
errorMsg: string
|
2956
|
-
errorCode: string | number
|
2957
|
-
innerError: {
|
2958
|
-
errorCode: string | number
|
2959
|
-
errorMsg: string
|
2960
|
-
}
|
2961
|
-
}) => void
|
2962
|
-
}): void
|
2963
|
-
|
2964
|
-
/**
|
2965
|
-
* mesh群组控制(仅用于单设备面板中的群控,如PIR传感器面板)
|
2966
|
-
*/
|
2967
|
-
export function publishSigMeshMultiDps(params: {
|
2968
|
-
/** groupId 群组id */
|
2969
|
-
groupId: string
|
2970
|
-
/** localId 群组本地标识 */
|
2971
|
-
localId: string
|
2972
|
-
/**
|
2973
|
-
* dp信息
|
2974
|
-
* 示例: dps: {"1" : true}
|
2975
|
-
*/
|
2976
|
-
dps: Record<string, {}>
|
2977
|
-
/** pcc mesh设备品类 */
|
2978
|
-
pcc: string
|
2979
|
-
complete?: () => void
|
2980
|
-
success?: (params: null) => void
|
2981
|
-
fail?: (params: {
|
2982
|
-
errorMsg: string
|
2983
|
-
errorCode: string | number
|
2984
|
-
innerError: {
|
2985
|
-
errorCode: string | number
|
2986
|
-
errorMsg: string
|
2987
|
-
}
|
2988
|
-
}) => void
|
2989
|
-
}): void
|
2990
|
-
|
2991
|
-
/**
|
2992
|
-
* 跳转本地mesh群组
|
2993
|
-
*/
|
2994
|
-
export function openMeshLocalGroup(params: {
|
2995
|
-
/**
|
2996
|
-
* 整体说明
|
2997
|
-
* 支持2个版本:
|
2998
|
-
* 1、本地版本仅支持根据vendorIds进行过滤,为本地逻辑,设备列表APP本地根据meshCategory进行比对过滤,群组结果保存在设备上,云端不参与群组的列表获取与保存。
|
2999
|
-
* 2、云端版本支持根据pccs或者codes进行过滤,为云端逻辑,设备列表获取及群组设备关系保存在云端。
|
3000
|
-
* 本地版本参数:
|
3001
|
-
* {
|
3002
|
-
* "localId": "203a",
|
3003
|
-
* "vendorIds": "1F10,2F10"
|
3004
|
-
* }
|
3005
|
-
* 云端版本参数:
|
3006
|
-
* 1、pcc过滤,相当于旧版本的vendorIds
|
3007
|
-
* {
|
3008
|
-
* "localId": "203a",
|
3009
|
-
* "type": "0",
|
3010
|
-
* "pccs": ["1210"],
|
3011
|
-
* "categoryCode": "7001"
|
3012
|
-
* }
|
3013
|
-
* 2、code过滤,根据二级品类进行过滤,目前云端只支持ykq和gykzq这两种遥控器
|
3014
|
-
* {
|
3015
|
-
* "localId": "203a",
|
3016
|
-
* "type": "1",
|
3017
|
-
* "codes": ["xxxx"],
|
3018
|
-
* "categoryCode": "7001"
|
3019
|
-
* }
|
3020
|
-
* 关于categoryCode:categoryCode 并非三级品类,与localId匹配范围为7001-7008;localId 为云端分配,步长为8,因此一个遥控器内部最多支持关联8个群组,localid为初始值依次+1,与之匹配的categoryCode从7001依次+1.
|
3021
|
-
* vendorIds 必传 可以为空字符串
|
3022
|
-
* devId 遥控器设备id
|
3023
|
-
*/
|
3024
|
-
deviceId: string
|
3025
|
-
/** localId 群组本地标识 */
|
3026
|
-
localId: string
|
3027
|
-
/**
|
3028
|
-
* 遥控器群组本地版本,使用功能此参数,云端版本传空字符串
|
3029
|
-
* vendorIds 使用meshCategory进行设备列表筛选
|
3030
|
-
* 示例:vendorIds: "1F10,2F10"
|
3031
|
-
*/
|
3032
|
-
vendorIds: string
|
3033
|
-
/**
|
3034
|
-
* 遥控器群组云端版本,使用此功能参数
|
3035
|
-
* type 筛选条件 0:pccs过滤,1:codes过滤
|
3036
|
-
*/
|
3037
|
-
type?: string
|
3038
|
-
/**
|
3039
|
-
* 遥控器群组云端版本,使用此功能参数
|
3040
|
-
* pccs 使用meshCategory进行设备列表筛选
|
3041
|
-
* 示例:pccs: ["1F10","2F10"]
|
3042
|
-
*/
|
3043
|
-
pccs?: string[]
|
3044
|
-
/**
|
3045
|
-
* 遥控器群组云端版本,使用此功能参数
|
3046
|
-
* codes 使用二级品类进行设备列表筛选
|
3047
|
-
* 示例:pccs: ["1F10","2F10"]
|
3048
|
-
*/
|
3049
|
-
codes?: string[]
|
3050
|
-
/**
|
3051
|
-
* categoryCode 并非三级品类,与localId匹配范围为7001-7008;
|
3052
|
-
* localId 为云端分配,步长为8,因此一个遥控器内部最多支持关联8个群组,localid为初始值依次+1,与之匹配的categoryCode从7001依次+1.
|
3053
|
-
*/
|
3054
|
-
categoryCode?: string
|
3055
|
-
/**
|
3056
|
-
* 是否支持低功耗,部分无线开关需要用到
|
3057
|
-
* 默认值:false
|
3058
|
-
*/
|
3059
|
-
isSupportLowPower?: boolean
|
3060
|
-
complete?: () => void
|
3061
|
-
success?: (params: null) => void
|
3062
|
-
fail?: (params: {
|
3063
|
-
errorMsg: string
|
3064
|
-
errorCode: string | number
|
3065
|
-
innerError: {
|
3066
|
-
errorCode: string | number
|
3067
|
-
errorMsg: string
|
3068
|
-
}
|
3069
|
-
}) => void
|
3070
|
-
}): void
|
3071
|
-
|
3072
|
-
/**
|
3073
|
-
* 获取 group 信息
|
3074
|
-
*/
|
3075
|
-
export function getGroupInfo(params: {
|
3076
|
-
/** 群组id */
|
3077
|
-
groupId: string
|
2290
|
+
export function getGroupInfo(params: {
|
2291
|
+
/** 群组id */
|
2292
|
+
groupId: string
|
3078
2293
|
complete?: () => void
|
3079
2294
|
success?: (params: {
|
3080
2295
|
/**
|
@@ -3131,7 +2346,7 @@ declare namespace ty.device {
|
|
3131
2346
|
/** The custom DP name. */
|
3132
2347
|
dpName: {}
|
3133
2348
|
/** The device list. */
|
3134
|
-
deviceList:
|
2349
|
+
deviceList: DeviceInfo_mScpag[]
|
3135
2350
|
/** The local short address of groups. */
|
3136
2351
|
localId: string
|
3137
2352
|
/** The subclass. */
|
@@ -3186,47 +2401,7 @@ declare namespace ty.device {
|
|
3186
2401
|
success?: (params: {
|
3187
2402
|
/** 群组属性信息 */
|
3188
2403
|
result: Record<string, {}>
|
3189
|
-
}) => void
|
3190
|
-
fail?: (params: {
|
3191
|
-
errorMsg: string
|
3192
|
-
errorCode: string | number
|
3193
|
-
innerError: {
|
3194
|
-
errorCode: string | number
|
3195
|
-
errorMsg: string
|
3196
|
-
}
|
3197
|
-
}) => void
|
3198
|
-
}): void
|
3199
|
-
|
3200
|
-
/**
|
3201
|
-
* 设置群组的属性
|
3202
|
-
*/
|
3203
|
-
export function setGroupProperty(params: {
|
3204
|
-
/** 群组id */
|
3205
|
-
groupId: string
|
3206
|
-
/** code 属性code */
|
3207
|
-
code: string
|
3208
|
-
/** value */
|
3209
|
-
value: string
|
3210
|
-
complete?: () => void
|
3211
|
-
success?: (params: null) => void
|
3212
|
-
fail?: (params: {
|
3213
|
-
errorMsg: string
|
3214
|
-
errorCode: string | number
|
3215
|
-
innerError: {
|
3216
|
-
errorCode: string | number
|
3217
|
-
errorMsg: string
|
3218
|
-
}
|
3219
|
-
}) => void
|
3220
|
-
}): void
|
3221
|
-
|
3222
|
-
/**
|
3223
|
-
* 开启对群组事件的监听
|
3224
|
-
*/
|
3225
|
-
export function registerGroupChange(params: {
|
3226
|
-
/** groupIdList 群组id 列表 */
|
3227
|
-
groupIdList: string[]
|
3228
|
-
complete?: () => void
|
3229
|
-
success?: (params: null) => void
|
2404
|
+
}) => void
|
3230
2405
|
fail?: (params: {
|
3231
2406
|
errorMsg: string
|
3232
2407
|
errorCode: string | number
|
@@ -3238,9 +2413,15 @@ declare namespace ty.device {
|
|
3238
2413
|
}): void
|
3239
2414
|
|
3240
2415
|
/**
|
3241
|
-
*
|
2416
|
+
* 设置群组的属性
|
3242
2417
|
*/
|
3243
|
-
export function
|
2418
|
+
export function setGroupProperty(params: {
|
2419
|
+
/** 群组id */
|
2420
|
+
groupId: string
|
2421
|
+
/** code 属性code */
|
2422
|
+
code: string
|
2423
|
+
/** value */
|
2424
|
+
value: string
|
3244
2425
|
complete?: () => void
|
3245
2426
|
success?: (params: null) => void
|
3246
2427
|
fail?: (params: {
|
@@ -3254,18 +2435,13 @@ declare namespace ty.device {
|
|
3254
2435
|
}): void
|
3255
2436
|
|
3256
2437
|
/**
|
3257
|
-
*
|
2438
|
+
* 开启对群组事件的监听
|
3258
2439
|
*/
|
3259
|
-
export function
|
3260
|
-
/**
|
3261
|
-
|
3262
|
-
/** deviceId 网关id */
|
3263
|
-
deviceId: string
|
2440
|
+
export function registerGroupChange(params: {
|
2441
|
+
/** groupIdList 群组id 列表 */
|
2442
|
+
groupIdList: string[]
|
3264
2443
|
complete?: () => void
|
3265
|
-
success?: (params:
|
3266
|
-
/** 设备id */
|
3267
|
-
deviceId: string
|
3268
|
-
}) => void
|
2444
|
+
success?: (params: null) => void
|
3269
2445
|
fail?: (params: {
|
3270
2446
|
errorMsg: string
|
3271
2447
|
errorCode: string | number
|
@@ -3277,13 +2453,9 @@ declare namespace ty.device {
|
|
3277
2453
|
}): void
|
3278
2454
|
|
3279
2455
|
/**
|
3280
|
-
*
|
2456
|
+
* 关闭对群组事件的监听
|
3281
2457
|
*/
|
3282
|
-
export function
|
3283
|
-
/** 设备模型 设备id */
|
3284
|
-
deviceId: string
|
3285
|
-
/** dpId */
|
3286
|
-
dpIds: Object[]
|
2458
|
+
export function unRegisterGroupChange(params?: {
|
3287
2459
|
complete?: () => void
|
3288
2460
|
success?: (params: null) => void
|
3289
2461
|
fail?: (params: {
|
@@ -3344,6 +2516,26 @@ declare namespace ty.device {
|
|
3344
2516
|
}) => void
|
3345
2517
|
}): void
|
3346
2518
|
|
2519
|
+
/**
|
2520
|
+
* 打开一个指定的RN面板
|
2521
|
+
*/
|
2522
|
+
export function pushRNPanel(params: {
|
2523
|
+
/**
|
2524
|
+
* RN设备面板属性
|
2525
|
+
* 设备模型
|
2526
|
+
* deviceId 设备Id
|
2527
|
+
*/
|
2528
|
+
deviceId: string
|
2529
|
+
/**
|
2530
|
+
* 面板初始化参数
|
2531
|
+
* initialProps 初始化参数
|
2532
|
+
*/
|
2533
|
+
initialProps?: Record<string, {}>
|
2534
|
+
complete?: () => void
|
2535
|
+
success?: (params: null) => void
|
2536
|
+
fail?: (params: {}) => void
|
2537
|
+
}): void
|
2538
|
+
|
3347
2539
|
/**
|
3348
2540
|
* 设备是否支持物模型
|
3349
2541
|
*/
|
@@ -3476,80 +2668,56 @@ declare namespace ty.device {
|
|
3476
2668
|
}): void
|
3477
2669
|
|
3478
2670
|
/**
|
3479
|
-
*
|
3480
|
-
*/
|
3481
|
-
export function onLeaveBeaconFence(listener: (params: LeaveBeaconFenceEvent) => void): void
|
3482
|
-
|
3483
|
-
/**
|
3484
|
-
* 取消监听:远离beacon设备的事件
|
3485
|
-
*/
|
3486
|
-
export function offLeaveBeaconFence(listener: (params: LeaveBeaconFenceEvent) => void): void
|
3487
|
-
|
3488
|
-
/**
|
3489
|
-
* 传输文件的到蓝牙设备的进度事件
|
3490
|
-
*/
|
3491
|
-
export function onFileTransferProgress(
|
3492
|
-
listener: (params: FileTransferProgressResult) => void
|
3493
|
-
): void
|
3494
|
-
|
3495
|
-
/**
|
3496
|
-
* 取消监听:传输文件的到蓝牙设备的进度事件
|
3497
|
-
*/
|
3498
|
-
export function offFileTransferProgress(
|
3499
|
-
listener: (params: FileTransferProgressResult) => void
|
3500
|
-
): void
|
3501
|
-
|
3502
|
-
/**
|
3503
|
-
* BLE(thing)连接状态变更通知事件
|
2671
|
+
* BLE(tuya)连接状态变更通知事件
|
3504
2672
|
*/
|
3505
|
-
export function
|
3506
|
-
listener: (params:
|
2673
|
+
export function onTYBLEConnectStatusChange(
|
2674
|
+
listener: (params: TYBLEConnectStatusEvent) => void
|
3507
2675
|
): void
|
3508
2676
|
|
3509
2677
|
/**
|
3510
|
-
*
|
2678
|
+
* BLE(tuya)连接状态变更通知事件
|
3511
2679
|
*/
|
3512
|
-
export function
|
3513
|
-
listener: (params:
|
2680
|
+
export function offTYBLEConnectStatusChange(
|
2681
|
+
listener: (params: TYBLEConnectStatusEvent) => void
|
3514
2682
|
): void
|
3515
2683
|
|
3516
2684
|
/**
|
3517
|
-
* BLE(
|
2685
|
+
* BLE(tuya)设备数据透传通道上报通知
|
3518
2686
|
*/
|
3519
|
-
export function
|
3520
|
-
listener: (params:
|
2687
|
+
export function onTYBLETransparentDataReport(
|
2688
|
+
listener: (params: TYBLETransparentDataBean) => void
|
3521
2689
|
): void
|
3522
2690
|
|
3523
2691
|
/**
|
3524
|
-
*
|
2692
|
+
* BLE(tuya)设备数据透传通道上报通知
|
3525
2693
|
*/
|
3526
|
-
export function
|
3527
|
-
listener: (params:
|
2694
|
+
export function offTYBLETransparentDataReport(
|
2695
|
+
listener: (params: TYBLETransparentDataBean) => void
|
3528
2696
|
): void
|
3529
2697
|
|
3530
2698
|
/**
|
3531
|
-
* BLE(
|
2699
|
+
* BLE(tuya)大数据通道传输进度
|
3532
2700
|
*/
|
3533
|
-
export function
|
3534
|
-
listener: (params:
|
2701
|
+
export function onTYBLEBigDataChannelProgressEvent(
|
2702
|
+
listener: (params: TYBLEBigDataProgressEvent) => void
|
3535
2703
|
): void
|
3536
2704
|
|
3537
2705
|
/**
|
3538
|
-
*
|
2706
|
+
* BLE(tuya)大数据通道传输进度
|
3539
2707
|
*/
|
3540
|
-
export function
|
3541
|
-
listener: (params:
|
2708
|
+
export function offTYBLEBigDataChannelProgressEvent(
|
2709
|
+
listener: (params: TYBLEBigDataProgressEvent) => void
|
3542
2710
|
): void
|
3543
2711
|
|
3544
2712
|
/**
|
3545
2713
|
* 扫描到设备后进行通知
|
3546
2714
|
*/
|
3547
|
-
export function
|
2715
|
+
export function onTYBLEScanBindDevice(listener: (params: TYBLEScanDeviceEvent) => void): void
|
3548
2716
|
|
3549
2717
|
/**
|
3550
|
-
*
|
2718
|
+
* 扫描到设备后进行通知
|
3551
2719
|
*/
|
3552
|
-
export function
|
2720
|
+
export function offTYBLEScanBindDevice(listener: (params: TYBLEScanDeviceEvent) => void): void
|
3553
2721
|
|
3554
2722
|
/**
|
3555
2723
|
* 大数据从设备传输到App成功的事件
|
@@ -3559,7 +2727,7 @@ declare namespace ty.device {
|
|
3559
2727
|
): void
|
3560
2728
|
|
3561
2729
|
/**
|
3562
|
-
*
|
2730
|
+
* 大数据从设备传输到App成功的事件
|
3563
2731
|
*/
|
3564
2732
|
export function offBLEBigDataChannelDeviceToAppSuccess(
|
3565
2733
|
listener: (params: BLEBigDataChannelDeviceToAppSuccessResponse) => void
|
@@ -3569,25 +2737,25 @@ declare namespace ty.device {
|
|
3569
2737
|
* 大数据上传到云端进度的事件
|
3570
2738
|
*/
|
3571
2739
|
export function onBLEBigDataChannelUploadCloudProgress(
|
3572
|
-
listener: (params:
|
2740
|
+
listener: (params: TYBLEBigDataProgressEvent) => void
|
3573
2741
|
): void
|
3574
2742
|
|
3575
2743
|
/**
|
3576
|
-
*
|
2744
|
+
* 大数据上传到云端进度的事件
|
3577
2745
|
*/
|
3578
2746
|
export function offBLEBigDataChannelUploadCloudProgress(
|
3579
|
-
listener: (params:
|
2747
|
+
listener: (params: TYBLEBigDataProgressEvent) => void
|
3580
2748
|
): void
|
3581
2749
|
|
3582
2750
|
/**
|
3583
2751
|
* 子设备配网结果事件
|
3584
2752
|
*/
|
3585
|
-
export function onSubDeviceInfoUpdateEvent(listener: (params:
|
2753
|
+
export function onSubDeviceInfoUpdateEvent(listener: (params: Device) => void): void
|
3586
2754
|
|
3587
2755
|
/**
|
3588
|
-
*
|
2756
|
+
* 子设备配网结果事件
|
3589
2757
|
*/
|
3590
|
-
export function offSubDeviceInfoUpdateEvent(listener: (params:
|
2758
|
+
export function offSubDeviceInfoUpdateEvent(listener: (params: Device) => void): void
|
3591
2759
|
|
3592
2760
|
/**
|
3593
2761
|
* 免配网-设备扫描结果事件
|
@@ -3597,7 +2765,7 @@ declare namespace ty.device {
|
|
3597
2765
|
): void
|
3598
2766
|
|
3599
2767
|
/**
|
3600
|
-
*
|
2768
|
+
* 免配网-设备扫描结果事件
|
3601
2769
|
*/
|
3602
2770
|
export function offDirectlyConnectedSearchDeviceEvent(
|
3603
2771
|
listener: (params: DirectlyConnectedSearchRespond) => void
|
@@ -3609,7 +2777,7 @@ declare namespace ty.device {
|
|
3609
2777
|
export function onDpDataChange(listener: (params: DpsChanged) => void): void
|
3610
2778
|
|
3611
2779
|
/**
|
3612
|
-
*
|
2780
|
+
* dp点变更
|
3613
2781
|
*/
|
3614
2782
|
export function offDpDataChange(listener: (params: DpsChanged) => void): void
|
3615
2783
|
|
@@ -3619,7 +2787,7 @@ declare namespace ty.device {
|
|
3619
2787
|
export function onMqttMessageReceived(listener: (params: MqttResponse) => void): void
|
3620
2788
|
|
3621
2789
|
/**
|
3622
|
-
*
|
2790
|
+
* MQTT消息通道消息上报
|
3623
2791
|
*/
|
3624
2792
|
export function offMqttMessageReceived(listener: (params: MqttResponse) => void): void
|
3625
2793
|
|
@@ -3629,7 +2797,7 @@ declare namespace ty.device {
|
|
3629
2797
|
export function onSocketMessageReceived(listener: (params: SocketResponse) => void): void
|
3630
2798
|
|
3631
2799
|
/**
|
3632
|
-
*
|
2800
|
+
* socket消息通道消息上报
|
3633
2801
|
*/
|
3634
2802
|
export function offSocketMessageReceived(listener: (params: SocketResponse) => void): void
|
3635
2803
|
|
@@ -3639,19 +2807,19 @@ declare namespace ty.device {
|
|
3639
2807
|
export function onDeviceOnlineStatusUpdate(listener: (params: Online) => void): void
|
3640
2808
|
|
3641
2809
|
/**
|
3642
|
-
*
|
2810
|
+
* 设备上下线状态变更
|
3643
2811
|
*/
|
3644
2812
|
export function offDeviceOnlineStatusUpdate(listener: (params: Online) => void): void
|
3645
2813
|
|
3646
2814
|
/**
|
3647
2815
|
* 设备 dp 名字和设备名字触发
|
3648
2816
|
*/
|
3649
|
-
export function onDeviceInfoUpdated(listener: (params:
|
2817
|
+
export function onDeviceInfoUpdated(listener: (params: Device_elDqwU) => void): void
|
3650
2818
|
|
3651
2819
|
/**
|
3652
|
-
*
|
2820
|
+
* 设备 dp 名字和设备名字触发
|
3653
2821
|
*/
|
3654
|
-
export function offDeviceInfoUpdated(listener: (params:
|
2822
|
+
export function offDeviceInfoUpdated(listener: (params: Device_elDqwU) => void): void
|
3655
2823
|
|
3656
2824
|
/**
|
3657
2825
|
* 设备移除事件
|
@@ -3659,57 +2827,27 @@ declare namespace ty.device {
|
|
3659
2827
|
export function onDeviceRemoved(listener: (params: OnDeviceRemovedBody) => void): void
|
3660
2828
|
|
3661
2829
|
/**
|
3662
|
-
*
|
2830
|
+
* 设备移除事件
|
3663
2831
|
*/
|
3664
2832
|
export function offDeviceRemoved(listener: (params: OnDeviceRemovedBody) => void): void
|
3665
2833
|
|
3666
|
-
/**
|
3667
|
-
* mqtt连接状态变化事件
|
3668
|
-
*/
|
3669
|
-
export function onMqttConnectState(listener: (params: MqttConnectStateResponse) => void): void
|
3670
|
-
|
3671
|
-
/**
|
3672
|
-
* 取消监听:mqtt连接状态变化事件
|
3673
|
-
*/
|
3674
|
-
export function offMqttConnectState(listener: (params: MqttConnectStateResponse) => void): void
|
3675
|
-
|
3676
2834
|
/**
|
3677
2835
|
* 定时变化事件
|
3678
2836
|
*/
|
3679
2837
|
export function onTimerUpdate(listener: (params: {}) => void): void
|
3680
2838
|
|
3681
2839
|
/**
|
3682
|
-
*
|
2840
|
+
* 定时变化事件
|
3683
2841
|
*/
|
3684
2842
|
export function offTimerUpdate(listener: (params: {}) => void): void
|
3685
2843
|
|
3686
|
-
/**
|
3687
|
-
* 群组内增加/移除设备事件
|
3688
|
-
*/
|
3689
|
-
export function onGroupInfoChange(listener: (params: GroupInfoResponse) => void): void
|
3690
|
-
|
3691
|
-
/**
|
3692
|
-
* 取消监听:群组内增加/移除设备事件
|
3693
|
-
*/
|
3694
|
-
export function offGroupInfoChange(listener: (params: GroupInfoResponse) => void): void
|
3695
|
-
|
3696
|
-
/**
|
3697
|
-
* 群组dpCode变化事件
|
3698
|
-
*/
|
3699
|
-
export function onGroupDpCodeChange(listener: (params: GroupDpCodeBean) => void): void
|
3700
|
-
|
3701
|
-
/**
|
3702
|
-
* 取消监听:群组dpCode变化事件
|
3703
|
-
*/
|
3704
|
-
export function offGroupDpCodeChange(listener: (params: GroupDpCodeBean) => void): void
|
3705
|
-
|
3706
2844
|
/**
|
3707
2845
|
* 群组移除事件
|
3708
2846
|
*/
|
3709
2847
|
export function onGroupRemovedEvent(listener: (params: GroupBean) => void): void
|
3710
2848
|
|
3711
2849
|
/**
|
3712
|
-
*
|
2850
|
+
* 群组移除事件
|
3713
2851
|
*/
|
3714
2852
|
export function offGroupRemovedEvent(listener: (params: GroupBean) => void): void
|
3715
2853
|
|
@@ -3719,7 +2857,7 @@ declare namespace ty.device {
|
|
3719
2857
|
export function onGroupDpDataChangeEvent(listener: (params: GroupDpDataBean) => void): void
|
3720
2858
|
|
3721
2859
|
/**
|
3722
|
-
*
|
2860
|
+
* 群组DP变更事件
|
3723
2861
|
*/
|
3724
2862
|
export function offGroupDpDataChangeEvent(listener: (params: GroupDpDataBean) => void): void
|
3725
2863
|
|
@@ -3731,7 +2869,7 @@ declare namespace ty.device {
|
|
3731
2869
|
): void
|
3732
2870
|
|
3733
2871
|
/**
|
3734
|
-
*
|
2872
|
+
* 接收物模型消息事件。只有subscribeReceivedThingModelMessage订阅了,才会收到该事件。
|
3735
2873
|
*/
|
3736
2874
|
export function offReceivedThingModelMessage(
|
3737
2875
|
listener: (params: OnReceivedThingModelMessageBody) => void
|
@@ -3829,7 +2967,7 @@ declare namespace ty.device {
|
|
3829
2967
|
devAttribute: number
|
3830
2968
|
/**
|
3831
2969
|
* pcc
|
3832
|
-
*
|
2970
|
+
* 涂鸦自研蓝牙 mesh 产品的分类标识
|
3833
2971
|
*/
|
3834
2972
|
pcc: string
|
3835
2973
|
/**
|
@@ -3864,7 +3002,7 @@ declare namespace ty.device {
|
|
3864
3002
|
bizAttribute: number
|
3865
3003
|
/**
|
3866
3004
|
* meshId
|
3867
|
-
*
|
3005
|
+
* 涂鸦自研的蓝牙 mesh id
|
3868
3006
|
*/
|
3869
3007
|
meshId: string
|
3870
3008
|
/**
|
@@ -3882,8 +3020,6 @@ declare namespace ty.device {
|
|
3882
3020
|
* 本地局域网是否在线
|
3883
3021
|
*/
|
3884
3022
|
isLocalOnline: boolean
|
3885
|
-
/** 设备云端在线情况 */
|
3886
|
-
isCloudOnline: boolean
|
3887
3023
|
/**
|
3888
3024
|
* isOnline
|
3889
3025
|
* 设备总的在线情况,只要一个情况在线,就是在线,复合在线情况
|
@@ -3901,20 +3037,8 @@ declare namespace ty.device {
|
|
3901
3037
|
* 标准功能集 code
|
3902
3038
|
*/
|
3903
3039
|
dpCodes: Record<string, {}>
|
3904
|
-
/**
|
3905
|
-
|
3906
|
-
/** 设备的功能点执行的时间 */
|
3907
|
-
dpsTime: Record<string, {}>
|
3908
|
-
/** 设备纬度 */
|
3909
|
-
latitude: string
|
3910
|
-
/** 设备经度 */
|
3911
|
-
longitude: string
|
3912
|
-
/** 设备ip地址 */
|
3913
|
-
ip: string
|
3914
|
-
/** 是否为虚拟设备 */
|
3915
|
-
isVirtualDevice: boolean
|
3916
|
-
/** zigbeeInstallCode to the cloud to mark the gateway with installation code ability */
|
3917
|
-
isZigbeeInstallCode: boolean
|
3040
|
+
/** 原始 json,业务来不及拓展更新的时候,可以根据这个来获取处理 */
|
3041
|
+
originJson: Record<string, {}>
|
3918
3042
|
}
|
3919
3043
|
|
3920
3044
|
export type Object = {}
|
@@ -4070,82 +3194,7 @@ declare namespace ty.device {
|
|
4070
3194
|
originJson: Record<string, {}>
|
4071
3195
|
}
|
4072
3196
|
|
4073
|
-
export type
|
4074
|
-
/** 条件 ID */
|
4075
|
-
id?: string
|
4076
|
-
/** 场景 ID */
|
4077
|
-
ruleId?: string
|
4078
|
-
/** 场景 ID */
|
4079
|
-
orderNum?: number
|
4080
|
-
/** 条件为设备类型时,表示设备 ID */
|
4081
|
-
entityId: string
|
4082
|
-
/** 设备名称 */
|
4083
|
-
entityName?: string
|
4084
|
-
/**
|
4085
|
-
* 动作类型。枚举:
|
4086
|
-
* ruleTrigger:触发场景
|
4087
|
-
* ruleEnable:启用场景
|
4088
|
-
* ruleDisable:禁用场景
|
4089
|
-
* appPushTrigger:推送消息
|
4090
|
-
* mobileVoiceSend:电话服务
|
4091
|
-
* smsSend:短信服务
|
4092
|
-
* deviceGroupDpIssue:执行群组
|
4093
|
-
* irIssue:执行红外设备
|
4094
|
-
* dpIssue:执行普通设备
|
4095
|
-
* delay:延时
|
4096
|
-
* irIssueVii:执行红外设备,执行参数为真实的红外控制码
|
4097
|
-
* toggle:执行切换开关动作
|
4098
|
-
* dpStep:执行步进动作
|
4099
|
-
*/
|
4100
|
-
actionExecutor: string
|
4101
|
-
/** 动作执行信息 */
|
4102
|
-
executorProperty: Record<string, {}>
|
4103
|
-
/** 动作额外信息 */
|
4104
|
-
extraProperty: Record<string, {}>
|
4105
|
-
/** 设备是否在线 */
|
4106
|
-
isDevOnline?: boolean
|
4107
|
-
/** 条件为设备类型时,表示设备是否被移除 */
|
4108
|
-
devDelMark?: boolean
|
4109
|
-
/** 条件为设备类型时,表示设备被删除时的图标 */
|
4110
|
-
deleteDevIcon?: string
|
4111
|
-
/** 条件为设备类型时,设备的图标 */
|
4112
|
-
devIcon?: string
|
4113
|
-
/** 动作的策略 */
|
4114
|
-
actionStrategy?: string
|
4115
|
-
/** 面板信息(小程序或者RN面板) */
|
4116
|
-
extraPanelInfo?: ExtraPanelInfo
|
4117
|
-
/** 设备产品 ID */
|
4118
|
-
pid?: string
|
4119
|
-
/** 设备产品 ID */
|
4120
|
-
productId?: string
|
4121
|
-
/** 条件为设备类型时,表示设备产品图片 */
|
4122
|
-
productPic?: string
|
4123
|
-
/** 条件默认图标 */
|
4124
|
-
defaultIconUrl?: string
|
4125
|
-
/** 动作展示信息 */
|
4126
|
-
actionDisplayNew?: Record<string, {}>
|
4127
|
-
/** 执行状态 */
|
4128
|
-
status?: boolean
|
4129
|
-
}
|
4130
|
-
|
4131
|
-
export type Expr = {
|
4132
|
-
/** 开始时间 imeInterval=custom时自定义,其余默认00:00 */
|
4133
|
-
start: string
|
4134
|
-
/** 结束时间,timeInterval=custom时自定义,其余默认23:59 */
|
4135
|
-
end: string
|
4136
|
-
/** 自定义:custom,全天:allDay,白天:daytime,夜间:night,默认allDay */
|
4137
|
-
timeInterval: string
|
4138
|
-
/** 按7123456顺序标记,例:0001100,每周三、四;0000000表示只执行一次 */
|
4139
|
-
loops: string
|
4140
|
-
/** 时区 */
|
4141
|
-
timeZoneId: string
|
4142
|
-
/** 城市Id */
|
4143
|
-
cityId: string
|
4144
|
-
/** 城市名称 */
|
4145
|
-
cityName: string
|
4146
|
-
}
|
4147
|
-
|
4148
|
-
export type DeviceInfo_SLAb2e = {
|
3197
|
+
export type DeviceInfo_mScpag = {
|
4149
3198
|
/** 产品信息,schema,功能定义都在里面 */
|
4150
3199
|
schema: {}[]
|
4151
3200
|
/**
|
@@ -4221,7 +3270,7 @@ declare namespace ty.device {
|
|
4221
3270
|
devAttribute: number
|
4222
3271
|
/**
|
4223
3272
|
* pcc
|
4224
|
-
*
|
3273
|
+
* 涂鸦自研蓝牙 mesh 产品的分类标识
|
4225
3274
|
*/
|
4226
3275
|
pcc: string
|
4227
3276
|
/**
|
@@ -4256,7 +3305,7 @@ declare namespace ty.device {
|
|
4256
3305
|
bizAttribute: number
|
4257
3306
|
/**
|
4258
3307
|
* meshId
|
4259
|
-
*
|
3308
|
+
* 涂鸦自研的蓝牙 mesh id
|
4260
3309
|
*/
|
4261
3310
|
meshId: string
|
4262
3311
|
/**
|
@@ -4309,31 +3358,9 @@ declare namespace ty.device {
|
|
4309
3358
|
events: ThingEvent[]
|
4310
3359
|
}
|
4311
3360
|
|
4312
|
-
export type
|
4313
|
-
/** 设备模型 设备id */
|
4314
|
-
deviceId: string
|
4315
|
-
/** 具体文案 */
|
4316
|
-
text: string
|
4317
|
-
}
|
4318
|
-
|
4319
|
-
export type FileTransferProgressResult = {
|
4320
|
-
/** 设备模型 设备id */
|
4321
|
-
deviceId: string
|
4322
|
-
/** 文件id */
|
4323
|
-
fileId: number
|
4324
|
-
/** 文件标识符 */
|
4325
|
-
fileIdentifier: string
|
4326
|
-
/** 文件版本 */
|
4327
|
-
fileVersion: number
|
4328
|
-
/** 文件地址 */
|
4329
|
-
filePath: string
|
4330
|
-
/** 传输进度 */
|
4331
|
-
progress: number
|
4332
|
-
}
|
4333
|
-
|
4334
|
-
export type ThingBLEConnectStatusEvent = {
|
3361
|
+
export type TYBLEConnectStatusEvent = {
|
4335
3362
|
/**
|
4336
|
-
* BLE(
|
3363
|
+
* BLE(tuya)连接状态
|
4337
3364
|
* deviceId: 设备 id
|
4338
3365
|
*/
|
4339
3366
|
deviceId: string
|
@@ -4346,7 +3373,7 @@ declare namespace ty.device {
|
|
4346
3373
|
status: string
|
4347
3374
|
}
|
4348
3375
|
|
4349
|
-
export type
|
3376
|
+
export type TYBLETransparentDataBean = {
|
4350
3377
|
/**
|
4351
3378
|
* 蓝牙透传数据
|
4352
3379
|
* deviceId: 设备 id
|
@@ -4356,7 +3383,7 @@ declare namespace ty.device {
|
|
4356
3383
|
data: string
|
4357
3384
|
}
|
4358
3385
|
|
4359
|
-
export type
|
3386
|
+
export type TYBLEBigDataProgressEvent = {
|
4360
3387
|
/**
|
4361
3388
|
* 大数据通道传输进度
|
4362
3389
|
* deviceId 设备 id
|
@@ -4366,7 +3393,7 @@ declare namespace ty.device {
|
|
4366
3393
|
progress: number
|
4367
3394
|
}
|
4368
3395
|
|
4369
|
-
export type
|
3396
|
+
export type TYBLEScanDeviceEvent = {
|
4370
3397
|
/** 扫描到的设备ID */
|
4371
3398
|
deviceId: string
|
4372
3399
|
}
|
@@ -4376,19 +3403,6 @@ declare namespace ty.device {
|
|
4376
3403
|
data: BLEBigDataChannelData[]
|
4377
3404
|
}
|
4378
3405
|
|
4379
|
-
export type GWActivationRespond = {
|
4380
|
-
/**
|
4381
|
-
* 设备模型
|
4382
|
-
* deviceId 设备Id
|
4383
|
-
*/
|
4384
|
-
deviceId: string
|
4385
|
-
/**
|
4386
|
-
* 网关模型
|
4387
|
-
* gwId 网关设备Id
|
4388
|
-
*/
|
4389
|
-
gwId: string
|
4390
|
-
}
|
4391
|
-
|
4392
3406
|
export type DirectlyConnectedSearchRespond = {
|
4393
3407
|
/**
|
4394
3408
|
* 设备是否激活
|
@@ -4425,8 +3439,6 @@ declare namespace ty.device {
|
|
4425
3439
|
type: string
|
4426
3440
|
/** 协议号 */
|
4427
3441
|
protocol: number
|
4428
|
-
/** topic */
|
4429
|
-
topic?: string
|
4430
3442
|
}
|
4431
3443
|
|
4432
3444
|
export type SocketResponse = {
|
@@ -4453,7 +3465,7 @@ declare namespace ty.device {
|
|
4453
3465
|
onlineType: number
|
4454
3466
|
}
|
4455
3467
|
|
4456
|
-
export type
|
3468
|
+
export type Device_elDqwU = {
|
4457
3469
|
/**
|
4458
3470
|
* deviceId 设备id
|
4459
3471
|
* 支持跨面板获取其他的设备信息,当前面板可以传当前设备的 id 来进行获取
|
@@ -4468,30 +3480,6 @@ declare namespace ty.device {
|
|
4468
3480
|
deviceId: string
|
4469
3481
|
}
|
4470
3482
|
|
4471
|
-
export type MqttConnectStateResponse = {
|
4472
|
-
/**
|
4473
|
-
* mqtt连接状态
|
4474
|
-
* 0 连接失败
|
4475
|
-
* 1 连接成功
|
4476
|
-
*/
|
4477
|
-
connectState: number
|
4478
|
-
}
|
4479
|
-
|
4480
|
-
export type GroupInfoResponse = {
|
4481
|
-
/** groupId 群组id */
|
4482
|
-
groupId: string
|
4483
|
-
}
|
4484
|
-
|
4485
|
-
export type GroupDpCodeBean = {
|
4486
|
-
/** groupId 群组id */
|
4487
|
-
groupId: string
|
4488
|
-
/**
|
4489
|
-
* dp信息
|
4490
|
-
* 示例: dpCodes: {"switch" : true}
|
4491
|
-
*/
|
4492
|
-
dpCodes: Record<string, Object>
|
4493
|
-
}
|
4494
|
-
|
4495
3483
|
export type GroupBean = {
|
4496
3484
|
/** 群组id */
|
4497
3485
|
groupId: string
|
@@ -4544,18 +3532,6 @@ declare namespace ty.device {
|
|
4544
3532
|
timeout: number
|
4545
3533
|
}
|
4546
3534
|
|
4547
|
-
export type DeviceWifiActivatorResponse = {
|
4548
|
-
/** 设备是否WiFi激活 */
|
4549
|
-
wifiActivator: boolean
|
4550
|
-
}
|
4551
|
-
|
4552
|
-
export type DeviceNameParams = {
|
4553
|
-
/** deviceId 设备id */
|
4554
|
-
deviceId: string
|
4555
|
-
/** name 设备名称 */
|
4556
|
-
name: string
|
4557
|
-
}
|
4558
|
-
|
4559
3535
|
export type DeviceOnlineTypeResponse = {
|
4560
3536
|
/** 设备网络在线类型 */
|
4561
3537
|
onlineType: number
|
@@ -4567,6 +3543,8 @@ declare namespace ty.device {
|
|
4567
3543
|
}
|
4568
3544
|
|
4569
3545
|
export type ProductInfo = {
|
3546
|
+
/** 产品原始 json 信息 */
|
3547
|
+
originJson: Record<string, {}>
|
4570
3548
|
/** 面板配置项,可以在平台进行配置 */
|
4571
3549
|
panelConfig: Record<string, {}>
|
4572
3550
|
/** 产品功能定义集合 */
|
@@ -4606,12 +3584,12 @@ declare namespace ty.device {
|
|
4606
3584
|
standard: boolean
|
4607
3585
|
/**
|
4608
3586
|
* pcc
|
4609
|
-
*
|
3587
|
+
* 涂鸦自研蓝牙 mesh 产品的分类标识
|
4610
3588
|
*/
|
4611
3589
|
pcc: string
|
4612
3590
|
/**
|
4613
3591
|
* vendorInfo
|
4614
|
-
*
|
3592
|
+
* 涂鸦自研蓝牙 mesh 产品的分类标识,融合类使用
|
4615
3593
|
*/
|
4616
3594
|
vendorInfo: string
|
4617
3595
|
/**
|
@@ -4733,7 +3711,7 @@ declare namespace ty.device {
|
|
4733
3711
|
* HTTP = 2, // Http
|
4734
3712
|
* BLE = 3, // Single Point Bluetooth
|
4735
3713
|
* SIGMesh = 4, // Sig Mesh
|
4736
|
-
* BLEMesh = 5, //
|
3714
|
+
* BLEMesh = 5, // Tuya Private Mesh
|
4737
3715
|
* BLEBeacon = 6, // Beacon
|
4738
3716
|
*/
|
4739
3717
|
pipelines: number[]
|
@@ -4838,11 +3816,6 @@ declare namespace ty.device {
|
|
4838
3816
|
deviceIdList: string[]
|
4839
3817
|
}
|
4840
3818
|
|
4841
|
-
export type TopicListListenerParams = {
|
4842
|
-
/** 需监听的topic列表 */
|
4843
|
-
topicList: string[]
|
4844
|
-
}
|
4845
|
-
|
4846
3819
|
export type OTAUpdateInfoParams = {
|
4847
3820
|
/**
|
4848
3821
|
* deviceId
|
@@ -5152,7 +4125,7 @@ declare namespace ty.device {
|
|
5152
4125
|
warningText: string
|
5153
4126
|
}
|
5154
4127
|
|
5155
|
-
export type
|
4128
|
+
export type Device_iLmqmD = {
|
5156
4129
|
/**
|
5157
4130
|
* deviceId
|
5158
4131
|
* 设备 id
|
@@ -5197,310 +4170,6 @@ declare namespace ty.device {
|
|
5197
4170
|
services: ThirdPartyService[]
|
5198
4171
|
}
|
5199
4172
|
|
5200
|
-
export type UiComponent = {
|
5201
|
-
/** 组件code */
|
5202
|
-
code: string
|
5203
|
-
/** 组件版本 */
|
5204
|
-
version: string
|
5205
|
-
/** 排序 */
|
5206
|
-
sort: number
|
5207
|
-
/** 版本路径 */
|
5208
|
-
content?: string
|
5209
|
-
/** 文件大小 */
|
5210
|
-
fileSize?: string
|
5211
|
-
/** 文件md5 */
|
5212
|
-
fileMd5?: string
|
5213
|
-
}
|
5214
|
-
|
5215
|
-
export type UiInfo = {
|
5216
|
-
/** 发布状态 */
|
5217
|
-
phase?: string
|
5218
|
-
/** 类型:H5 RN */
|
5219
|
-
type?: string
|
5220
|
-
/** uiId版本 */
|
5221
|
-
ui?: string
|
5222
|
-
/** rn版本 */
|
5223
|
-
appRnVersion?: string
|
5224
|
-
/** 名称 */
|
5225
|
-
name?: string
|
5226
|
-
/** 是否找到面板 */
|
5227
|
-
rnFind?: boolean
|
5228
|
-
/** 面板配置 */
|
5229
|
-
uiConfig?: Record<string, {}>
|
5230
|
-
/** 包下载地址相对路径 */
|
5231
|
-
content?: string
|
5232
|
-
/** 文件大小 */
|
5233
|
-
fileSize?: string
|
5234
|
-
/** 文件md5 */
|
5235
|
-
fileMd5?: string
|
5236
|
-
/** 包类型:0.全量包,1.拆分包 */
|
5237
|
-
rnBizPack?: number
|
5238
|
-
/** 包ID */
|
5239
|
-
bizClientId?: string
|
5240
|
-
/** 拆分包依赖组件列表 */
|
5241
|
-
uiComponentList?: UiComponent[]
|
5242
|
-
}
|
5243
|
-
|
5244
|
-
export type RNPanelInfo = {
|
5245
|
-
/** 面板id */
|
5246
|
-
uiid?: string
|
5247
|
-
/** 面板信息 */
|
5248
|
-
uiInfo?: UiInfo
|
5249
|
-
/** Android 面板信息 */
|
5250
|
-
androidUiInfo?: UiInfo
|
5251
|
-
/** 多语言 */
|
5252
|
-
i18nTime?: number
|
5253
|
-
}
|
5254
|
-
|
5255
|
-
export type MiniInfo = {
|
5256
|
-
/** 小程序额外信息 */
|
5257
|
-
extraMiniInfo?: Record<string, {}>
|
5258
|
-
}
|
5259
|
-
|
5260
|
-
export type ExtraPanelInfo = {
|
5261
|
-
/** RN面板信息 */
|
5262
|
-
rnPanelInfo?: RNPanelInfo
|
5263
|
-
/** 小程序信息 */
|
5264
|
-
miniInfo?: MiniInfo
|
5265
|
-
}
|
5266
|
-
|
5267
|
-
export type RecommendSceneParams = {
|
5268
|
-
/** 来源 */
|
5269
|
-
source: string
|
5270
|
-
/** 场景模型 */
|
5271
|
-
sceneModel: Record<string, {}>
|
5272
|
-
}
|
5273
|
-
|
5274
|
-
export type RecommendSceneCallBack = {
|
5275
|
-
/** 返回状态,默认返回 true */
|
5276
|
-
status?: boolean
|
5277
|
-
/** 成功返回的类型。0-未操作,1-保存成功,2-点击不感兴趣 */
|
5278
|
-
type: number
|
5279
|
-
/** 返回的场景数据,可能为空 */
|
5280
|
-
data?: Record<string, {}>
|
5281
|
-
}
|
5282
|
-
|
5283
|
-
export type OpenDeviceExecutionAndAnutomationParams = {
|
5284
|
-
/**
|
5285
|
-
* deviceId
|
5286
|
-
* 设备 id
|
5287
|
-
*/
|
5288
|
-
deviceId: string
|
5289
|
-
/** 页面标题,Android 需要 */
|
5290
|
-
title?: string
|
5291
|
-
}
|
5292
|
-
|
5293
|
-
export type SaveSceneActionParams = {
|
5294
|
-
/** 设备id */
|
5295
|
-
deviceId: string
|
5296
|
-
/** 动作的索引位置 */
|
5297
|
-
taskPosition: number
|
5298
|
-
/** 动作执行器 */
|
5299
|
-
actionExecutor?: string
|
5300
|
-
/** 动作执行信息 */
|
5301
|
-
executorProperty: Record<string, {}>
|
5302
|
-
/** 动作额外信息 */
|
5303
|
-
extraProperty: Record<string, {}>
|
5304
|
-
/** 动作展示信息 */
|
5305
|
-
actionDisplayNew: Record<string, {}>
|
5306
|
-
}
|
5307
|
-
|
5308
|
-
export type ActionParams = {
|
5309
|
-
/**
|
5310
|
-
* 动作类型:device,smart,remind,delay
|
5311
|
-
* device:设备
|
5312
|
-
* smart:操作某个智能(执行智能、开关自动化)
|
5313
|
-
* remind:提醒
|
5314
|
-
* delay:延时
|
5315
|
-
*/
|
5316
|
-
createType: string
|
5317
|
-
/**
|
5318
|
-
* 智能类型:scene,auto
|
5319
|
-
* scene:一键执行
|
5320
|
-
* auto:自动化
|
5321
|
-
*/
|
5322
|
-
smartType: string
|
5323
|
-
/** 当前场景动作列表 */
|
5324
|
-
actionArray: SceneAction[]
|
5325
|
-
}
|
5326
|
-
|
5327
|
-
export type ActionResponse = {
|
5328
|
-
/** 动作列表 */
|
5329
|
-
actionArray: SceneAction[]
|
5330
|
-
}
|
5331
|
-
|
5332
|
-
export type EditActionParams = {
|
5333
|
-
/** 当前编辑的actionIndex */
|
5334
|
-
editIndex: string
|
5335
|
-
/** 智能类型 */
|
5336
|
-
smartType: string
|
5337
|
-
/** 动作列表 */
|
5338
|
-
actionArray: SceneAction[]
|
5339
|
-
}
|
5340
|
-
|
5341
|
-
export type SceneDialogParams = {
|
5342
|
-
/**
|
5343
|
-
* 智能类型:scene,auto
|
5344
|
-
* scene:一键执行
|
5345
|
-
* auto:自动化
|
5346
|
-
*/
|
5347
|
-
smartType?: string
|
5348
|
-
/** 颜色 */
|
5349
|
-
color?: string
|
5350
|
-
/** 图标 */
|
5351
|
-
icon?: string
|
5352
|
-
/** 图片 */
|
5353
|
-
image?: string
|
5354
|
-
}
|
5355
|
-
|
5356
|
-
export type SceneDialogResponse = {
|
5357
|
-
/** 颜色 */
|
5358
|
-
color?: string
|
5359
|
-
/** 图标 */
|
5360
|
-
icon?: string
|
5361
|
-
/** 图片 */
|
5362
|
-
image?: string
|
5363
|
-
}
|
5364
|
-
|
5365
|
-
export type PreConditionPageParams = {
|
5366
|
-
/** id */
|
5367
|
-
id?: string
|
5368
|
-
/** 固定值 timeCheck */
|
5369
|
-
condType?: string
|
5370
|
-
/** 规则 */
|
5371
|
-
expr?: Expr
|
5372
|
-
}
|
5373
|
-
|
5374
|
-
export type PreConditionPageResponse = {
|
5375
|
-
/** id */
|
5376
|
-
id: string
|
5377
|
-
/** 固定值 timeCheck */
|
5378
|
-
condType: string
|
5379
|
-
/** 规则 */
|
5380
|
-
expr: Expr
|
5381
|
-
}
|
5382
|
-
|
5383
|
-
export type ConditionParams = {
|
5384
|
-
/** 条件类型 */
|
5385
|
-
type: string
|
5386
|
-
/** 条件内容 */
|
5387
|
-
condition?: string
|
5388
|
-
/** 索引 */
|
5389
|
-
index?: number
|
5390
|
-
}
|
5391
|
-
|
5392
|
-
export type ConditionResponse = {
|
5393
|
-
/** 条件类型 */
|
5394
|
-
type?: string
|
5395
|
-
/** 条件内容 */
|
5396
|
-
condition?: string
|
5397
|
-
/** 索引 */
|
5398
|
-
index?: number
|
5399
|
-
}
|
5400
|
-
|
5401
|
-
export type DeviceListResponse = {
|
5402
|
-
/** groupId 群组id */
|
5403
|
-
groupId: string
|
5404
|
-
/** deviceList 设备列表 */
|
5405
|
-
deviceList: DeviceInfo_SLAb2e[]
|
5406
|
-
}
|
5407
|
-
|
5408
|
-
export type DeviceNumResponse = {
|
5409
|
-
/** groupId 群组id */
|
5410
|
-
groupId: string
|
5411
|
-
/** devieNum 设备数量 */
|
5412
|
-
devieNum: number
|
5413
|
-
}
|
5414
|
-
|
5415
|
-
export type DpCodeParams = {
|
5416
|
-
/** groupId 群组id */
|
5417
|
-
groupId: string
|
5418
|
-
/** dpCode内容 */
|
5419
|
-
dpCode: string
|
5420
|
-
}
|
5421
|
-
|
5422
|
-
export type SigMeshMultiDpDataParams = {
|
5423
|
-
/** groupId 群组id */
|
5424
|
-
groupId: string
|
5425
|
-
/** localId 群组本地标识 */
|
5426
|
-
localId: string
|
5427
|
-
/**
|
5428
|
-
* dp信息
|
5429
|
-
* 示例: dps: {"1" : true}
|
5430
|
-
*/
|
5431
|
-
dps: Record<string, {}>
|
5432
|
-
/** pcc mesh设备品类 */
|
5433
|
-
pcc: string
|
5434
|
-
}
|
5435
|
-
|
5436
|
-
export type MeshLocalGroupParams = {
|
5437
|
-
/**
|
5438
|
-
* 整体说明
|
5439
|
-
* 支持2个版本:
|
5440
|
-
* 1、本地版本仅支持根据vendorIds进行过滤,为本地逻辑,设备列表APP本地根据meshCategory进行比对过滤,群组结果保存在设备上,云端不参与群组的列表获取与保存。
|
5441
|
-
* 2、云端版本支持根据pccs或者codes进行过滤,为云端逻辑,设备列表获取及群组设备关系保存在云端。
|
5442
|
-
* 本地版本参数:
|
5443
|
-
* {
|
5444
|
-
* "localId": "203a",
|
5445
|
-
* "vendorIds": "1F10,2F10"
|
5446
|
-
* }
|
5447
|
-
* 云端版本参数:
|
5448
|
-
* 1、pcc过滤,相当于旧版本的vendorIds
|
5449
|
-
* {
|
5450
|
-
* "localId": "203a",
|
5451
|
-
* "type": "0",
|
5452
|
-
* "pccs": ["1210"],
|
5453
|
-
* "categoryCode": "7001"
|
5454
|
-
* }
|
5455
|
-
* 2、code过滤,根据二级品类进行过滤,目前云端只支持ykq和gykzq这两种遥控器
|
5456
|
-
* {
|
5457
|
-
* "localId": "203a",
|
5458
|
-
* "type": "1",
|
5459
|
-
* "codes": ["xxxx"],
|
5460
|
-
* "categoryCode": "7001"
|
5461
|
-
* }
|
5462
|
-
* 关于categoryCode:categoryCode 并非三级品类,与localId匹配范围为7001-7008;localId 为云端分配,步长为8,因此一个遥控器内部最多支持关联8个群组,localid为初始值依次+1,与之匹配的categoryCode从7001依次+1.
|
5463
|
-
* vendorIds 必传 可以为空字符串
|
5464
|
-
* devId 遥控器设备id
|
5465
|
-
*/
|
5466
|
-
deviceId: string
|
5467
|
-
/** localId 群组本地标识 */
|
5468
|
-
localId: string
|
5469
|
-
/**
|
5470
|
-
* 遥控器群组本地版本,使用功能此参数,云端版本传空字符串
|
5471
|
-
* vendorIds 使用meshCategory进行设备列表筛选
|
5472
|
-
* 示例:vendorIds: "1F10,2F10"
|
5473
|
-
*/
|
5474
|
-
vendorIds: string
|
5475
|
-
/**
|
5476
|
-
* 遥控器群组云端版本,使用此功能参数
|
5477
|
-
* type 筛选条件 0:pccs过滤,1:codes过滤
|
5478
|
-
*/
|
5479
|
-
type?: string
|
5480
|
-
/**
|
5481
|
-
* 遥控器群组云端版本,使用此功能参数
|
5482
|
-
* pccs 使用meshCategory进行设备列表筛选
|
5483
|
-
* 示例:pccs: ["1F10","2F10"]
|
5484
|
-
*/
|
5485
|
-
pccs?: string[]
|
5486
|
-
/**
|
5487
|
-
* 遥控器群组云端版本,使用此功能参数
|
5488
|
-
* codes 使用二级品类进行设备列表筛选
|
5489
|
-
* 示例:pccs: ["1F10","2F10"]
|
5490
|
-
*/
|
5491
|
-
codes?: string[]
|
5492
|
-
/**
|
5493
|
-
* categoryCode 并非三级品类,与localId匹配范围为7001-7008;
|
5494
|
-
* localId 为云端分配,步长为8,因此一个遥控器内部最多支持关联8个群组,localid为初始值依次+1,与之匹配的categoryCode从7001依次+1.
|
5495
|
-
*/
|
5496
|
-
categoryCode?: string
|
5497
|
-
/**
|
5498
|
-
* 是否支持低功耗,部分无线开关需要用到
|
5499
|
-
* 默认值:false
|
5500
|
-
*/
|
5501
|
-
isSupportLowPower?: boolean
|
5502
|
-
}
|
5503
|
-
|
5504
4173
|
export type GroupInfo = {
|
5505
4174
|
/**
|
5506
4175
|
* groupId
|
@@ -5556,7 +4225,7 @@ declare namespace ty.device {
|
|
5556
4225
|
/** The custom DP name. */
|
5557
4226
|
dpName: {}
|
5558
4227
|
/** The device list. */
|
5559
|
-
deviceList:
|
4228
|
+
deviceList: DeviceInfo_mScpag[]
|
5560
4229
|
/** The local short address of groups. */
|
5561
4230
|
localId: string
|
5562
4231
|
/** The subclass. */
|
@@ -5588,25 +4257,6 @@ declare namespace ty.device {
|
|
5588
4257
|
groupIdList: string[]
|
5589
4258
|
}
|
5590
4259
|
|
5591
|
-
export type NodeParams = {
|
5592
|
-
/** nodeId */
|
5593
|
-
nodeId: string
|
5594
|
-
/** deviceId 网关id */
|
5595
|
-
deviceId: string
|
5596
|
-
}
|
5597
|
-
|
5598
|
-
export type DeviceResult = {
|
5599
|
-
/** 设备id */
|
5600
|
-
deviceId: string
|
5601
|
-
}
|
5602
|
-
|
5603
|
-
export type DpDataParams = {
|
5604
|
-
/** 设备模型 设备id */
|
5605
|
-
deviceId: string
|
5606
|
-
/** dpId */
|
5607
|
-
dpIds: Object[]
|
5608
|
-
}
|
5609
|
-
|
5610
4260
|
export type CheckOTAUpgradeStatusParams = {
|
5611
4261
|
/**
|
5612
4262
|
* deviceId
|
@@ -5631,6 +4281,20 @@ declare namespace ty.device {
|
|
5631
4281
|
deviceId: string
|
5632
4282
|
}
|
5633
4283
|
|
4284
|
+
export type RNPanelInfoBean = {
|
4285
|
+
/**
|
4286
|
+
* RN设备面板属性
|
4287
|
+
* 设备模型
|
4288
|
+
* deviceId 设备Id
|
4289
|
+
*/
|
4290
|
+
deviceId: string
|
4291
|
+
/**
|
4292
|
+
* 面板初始化参数
|
4293
|
+
* initialProps 初始化参数
|
4294
|
+
*/
|
4295
|
+
initialProps?: Record<string, {}>
|
4296
|
+
}
|
4297
|
+
|
5634
4298
|
export type ThingProperty = {
|
5635
4299
|
/** 属性id */
|
5636
4300
|
abilityId: number
|