@ledvance/base 1.1.51 → 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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.51",
7
+ "version": "1.1.52",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@reduxjs/toolkit": "^1.8.6",
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()
@@ -261,6 +266,10 @@ export class NativeApi {
261
266
  toDeviceSettingsPage(deviceId, isGroup)
262
267
  }
263
268
 
269
+ static toRoutinesPage(backTitle: string): void{
270
+ toRoutinesPage(backTitle)
271
+ }
272
+
264
273
  static putJson(deviceId: string, featureType: string, json: string): Promise<Result<any>> {
265
274
  return new Promise<Result<any>>(resolve => {
266
275
  devicePanel.putJson(deviceId, featureType, json, nativeRes => {
@@ -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
  // 打开下载文件
@@ -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