@ledvance/base 1.1.50 → 1.1.52
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/package.json +1 -1
- package/src/api/native.d.ts +1 -1
- package/src/api/native.ts +12 -2
- package/.temp/uaDevInfo.txt +0 -51
package/package.json
CHANGED
package/src/api/native.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare class NativeApi {
|
|
|
51
51
|
static setDps<T>(deviceId: string, dps: any): Promise<NativeResult<T>>;
|
|
52
52
|
static deleteDevice(deviceId: string, isReset: boolean): Promise<NativeResult<any>>;
|
|
53
53
|
static renameDevice(deviceId: string, name: string): Promise<NativeResult<any>>;
|
|
54
|
-
static toDeviceSettingsPage(deviceId: string): void;
|
|
54
|
+
static toDeviceSettingsPage(deviceId: string, isGroup?: boolean): void;
|
|
55
55
|
static putJson(deviceId: string, featureType: string, json: string): Promise<Result<any>>;
|
|
56
56
|
static getJson(deviceId: string, featureType: string): Promise<Result<any>>;
|
|
57
57
|
static groupControl(tyGroupId: number, dps: string, config: string): Promise<Result<any>>;
|
package/src/api/native.ts
CHANGED
|
@@ -9,6 +9,7 @@ interface LDVDevicePanelManager {
|
|
|
9
9
|
deleteDevice: (deviceId: string, isReset: boolean, callback: (result: any) => void) => void
|
|
10
10
|
rename: (deviceId: string, name: string, callback: (result: any) => void) => void
|
|
11
11
|
toDeviceSettingsPage: (deviceId: string, isGroup: boolean) => void
|
|
12
|
+
toRoutinesPage: (backTitle: string) => void
|
|
12
13
|
putJson: (deviceId: string, featureType: string, json: string, callback: (res: NativeResult<any>) => void) => void
|
|
13
14
|
getJson: (deviceId: string, featureType: string, callback: (res: NativeResult<string>) => void) => void
|
|
14
15
|
getInitiativeQueryDpsInfoWithDpsArray: (dpIds: string, deviceId: string, callback: (res: NativeResult<string>) => void) => void
|
|
@@ -196,6 +197,10 @@ function toDeviceSettingsPage(tuyaDeviceId: string, isGroup: boolean = false) {
|
|
|
196
197
|
devicePanel.toDeviceSettingsPage(tuyaDeviceId, isGroup)
|
|
197
198
|
}
|
|
198
199
|
|
|
200
|
+
function toRoutinesPage(backTitle: string) {
|
|
201
|
+
devicePanel.toRoutinesPage(backTitle)
|
|
202
|
+
}
|
|
203
|
+
|
|
199
204
|
export class NativeApi {
|
|
200
205
|
static back(): void {
|
|
201
206
|
back()
|
|
@@ -257,8 +262,12 @@ export class NativeApi {
|
|
|
257
262
|
return rename(deviceId, name)
|
|
258
263
|
}
|
|
259
264
|
|
|
260
|
-
static toDeviceSettingsPage(deviceId: string): void {
|
|
261
|
-
toDeviceSettingsPage(deviceId)
|
|
265
|
+
static toDeviceSettingsPage(deviceId: string, isGroup: boolean = false): void {
|
|
266
|
+
toDeviceSettingsPage(deviceId, isGroup)
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
static toRoutinesPage(backTitle: string): void{
|
|
270
|
+
toRoutinesPage(backTitle)
|
|
262
271
|
}
|
|
263
272
|
|
|
264
273
|
static putJson(deviceId: string, featureType: string, json: string): Promise<Result<any>> {
|
|
@@ -302,6 +311,7 @@ export class NativeApi {
|
|
|
302
311
|
data: nativeResult.data && JSON.parse(nativeResult.data),
|
|
303
312
|
}
|
|
304
313
|
}
|
|
314
|
+
|
|
305
315
|
}
|
|
306
316
|
|
|
307
317
|
// 打开下载文件
|
package/.temp/uaDevInfo.txt
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
@ColumnInfo(name = "device_id")
|
|
2
|
-
val deviceId: String,
|
|
3
|
-
@ColumnInfo(name = "device_name")
|
|
4
|
-
val deviceName: String,
|
|
5
|
-
@ColumnInfo(name = "cat_id")
|
|
6
|
-
val catId: String,
|
|
7
|
-
@ColumnInfo(name = "channel_no")
|
|
8
|
-
val channelNo: Int,
|
|
9
|
-
@ColumnInfo(name = "device_category")
|
|
10
|
-
val deviceCategory: String,
|
|
11
|
-
@ColumnInfo(name = "device_image")
|
|
12
|
-
val deviceImage: String,
|
|
13
|
-
@ColumnInfo(name = "tuya_device_id")
|
|
14
|
-
val tuyaDeviceId: String,
|
|
15
|
-
// deviceType 对应 ProductInfo 的 productId
|
|
16
|
-
@ColumnInfo(name = "device_type")
|
|
17
|
-
val deviceType: String,
|
|
18
|
-
@ColumnInfo(name = "offline_time")
|
|
19
|
-
val offlineTime: String,
|
|
20
|
-
@ColumnInfo(name = "rn_package")
|
|
21
|
-
val rnPackage: String?,
|
|
22
|
-
@ColumnInfo(name = "status")
|
|
23
|
-
val status: Int,
|
|
24
|
-
@ColumnInfo(name = "create_time")
|
|
25
|
-
val createTime: String,
|
|
26
|
-
@ColumnInfo(name = "version")
|
|
27
|
-
val version: String,
|
|
28
|
-
@ColumnInfo(name = "user_id")
|
|
29
|
-
val userId: String,
|
|
30
|
-
@ColumnInfo(name = "family_id")
|
|
31
|
-
val familyId: Long,
|
|
32
|
-
@ColumnInfo(name = "room_id")
|
|
33
|
-
val roomId: Long,
|
|
34
|
-
@ColumnInfo(name = "room_name")
|
|
35
|
-
val roomName: String,
|
|
36
|
-
@ColumnInfo(name = "is_shared")
|
|
37
|
-
val isShared: Int,
|
|
38
|
-
@ColumnInfo(name = "local_index")
|
|
39
|
-
val localIndex: String,
|
|
40
|
-
@ColumnInfo(name = "resource_category")
|
|
41
|
-
val resourceCategory: String,
|
|
42
|
-
@ColumnInfo(name = "resource_id")
|
|
43
|
-
val resourceId: String,
|
|
44
|
-
@ColumnInfo(name = "resource_identifier")
|
|
45
|
-
val resourceIdentifier: String,
|
|
46
|
-
@ColumnInfo(name = "resource_type")
|
|
47
|
-
val resourceType: Int,
|
|
48
|
-
@ColumnInfo(name = "index")
|
|
49
|
-
val index: Int = 0,
|
|
50
|
-
@ColumnInfo(name = "switch_state")
|
|
51
|
-
val switchState: Boolean = true
|