@ray-js/api 0.5.7-beta-2 → 0.5.9

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.
Files changed (81) hide show
  1. package/@types/BaseKit.d.ts +88 -1008
  2. package/@types/DeviceKit.d.ts +152 -1488
  3. package/@types/MiniKit.d.ts +26 -381
  4. package/@types/{BizKit.d.ts → TYKit.d.ts} +41 -104
  5. package/@types/all-kits.d.ts +1 -1
  6. package/lib/{BaseKit-3.0.0.d.ts → BaseKit-2.3.11.d.ts} +2 -18
  7. package/lib/{BaseKit-3.0.0.js → BaseKit-2.3.11.js} +2 -18
  8. package/lib/{DeviceKit-3.0.0.d.ts → DeviceKit-2.3.3.d.ts} +18 -58
  9. package/lib/{DeviceKit-3.0.0.js → DeviceKit-2.3.3.js} +20 -140
  10. package/lib/{MiniKit-3.0.0.d.ts → MiniKit-2.4.3.d.ts} +0 -14
  11. package/lib/{MiniKit-3.0.0.js → MiniKit-2.4.3.js} +0 -14
  12. package/lib/{BizKit-3.0.1.d.ts → TYKit-2.2.6.d.ts} +1 -2
  13. package/lib/{BizKit-3.0.1.js → TYKit-2.2.6.js} +1 -2
  14. package/lib/all-kits.d.ts +5 -5
  15. package/lib/all-kits.js +5 -5
  16. package/lib/getApp/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  17. package/lib/getApp/{index.thing.js → index.tuya.js} +0 -0
  18. package/lib/getBoundingClientRect/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  19. package/lib/getBoundingClientRect/{index.thing.js → index.tuya.js} +0 -0
  20. package/lib/getCurrentPages/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  21. package/lib/getCurrentPages/{index.thing.js → index.tuya.js} +0 -0
  22. package/lib/getElementById/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  23. package/lib/getElementById/{index.thing.js → index.tuya.js} +0 -0
  24. package/lib/getI18nInfo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  25. package/lib/getI18nInfo/{index.thing.js → index.tuya.js} +0 -0
  26. package/lib/hideTabBar/index.d.ts +7 -1
  27. package/lib/hideTabBar/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  28. package/lib/hideTabBar/{index.thing.js → index.tuya.js} +0 -0
  29. package/lib/navigateBack/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  30. package/lib/navigateBack/{index.thing.js → index.tuya.js} +0 -0
  31. package/lib/navigateTo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  32. package/lib/navigateTo/{index.thing.js → index.tuya.js} +0 -0
  33. package/lib/reLaunch/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  34. package/lib/reLaunch/{index.thing.js → index.tuya.js} +0 -0
  35. package/lib/readFileSync/{index.native.d.ts → index.tuya.d.ts} +0 -0
  36. package/lib/readFileSync/{index.native.js → index.tuya.js} +0 -0
  37. package/lib/redirectTo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  38. package/lib/redirectTo/{index.thing.js → index.tuya.js} +0 -0
  39. package/lib/{readFileSync/index.thing.d.ts → requestCloud/index.tuya.d.ts} +0 -0
  40. package/lib/requestCloud/{index.native.js → index.tuya.js} +0 -0
  41. package/lib/{requestCloud/index.native.d.ts → setNavigationBarColor/index.tuya.d.ts} +0 -0
  42. package/lib/setNavigationBarColor/{index.thing.js → index.tuya.js} +0 -0
  43. package/lib/{requestCloud/index.thing.d.ts → setNavigationBarTitle/index.tuya.d.ts} +0 -0
  44. package/lib/setNavigationBarTitle/{index.thing.js → index.tuya.js} +0 -0
  45. package/lib/showTabBar/index.d.ts +7 -1
  46. package/lib/showTabBar/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  47. package/lib/showTabBar/{index.thing.js → index.tuya.js} +0 -0
  48. package/lib/switchTab/{index.thing.d.ts → index.tuya.d.ts} +0 -0
  49. package/lib/switchTab/{index.thing.js → index.tuya.js} +0 -0
  50. package/package.json +9 -8
  51. package/lib/getApp/index.native.d.ts +0 -2
  52. package/lib/getApp/index.native.js +0 -4
  53. package/lib/getCurrentPages/index.native.d.ts +0 -1
  54. package/lib/getCurrentPages/index.native.js +0 -5
  55. package/lib/getElementById/index.native.d.ts +0 -1
  56. package/lib/getElementById/index.native.js +0 -13
  57. package/lib/getI18nInfo/index.native.js +0 -9
  58. package/lib/hideNotification/index.native.d.ts +0 -2
  59. package/lib/hideNotification/index.native.js +0 -7
  60. package/lib/hideTabBar/index.native.d.ts +0 -2
  61. package/lib/hideTabBar/index.native.js +0 -2
  62. package/lib/navigateBack/index.native.d.ts +0 -2
  63. package/lib/navigateBack/index.native.js +0 -2
  64. package/lib/navigateTo/index.native.d.ts +0 -2
  65. package/lib/navigateTo/index.native.js +0 -2
  66. package/lib/reLaunch/index.native.d.ts +0 -2
  67. package/lib/reLaunch/index.native.js +0 -2
  68. package/lib/readFileSync/index.thing.js +0 -8
  69. package/lib/redirectTo/index.native.d.ts +0 -2
  70. package/lib/redirectTo/index.native.js +0 -2
  71. package/lib/requestCloud/index.thing.js +0 -8
  72. package/lib/setNavigationBarColor/index.native.d.ts +0 -2
  73. package/lib/setNavigationBarColor/index.native.js +0 -2
  74. package/lib/setNavigationBarColor/index.thing.d.ts +0 -1
  75. package/lib/setNavigationBarTitle/index.native.d.ts +0 -2
  76. package/lib/setNavigationBarTitle/index.native.js +0 -2
  77. package/lib/setNavigationBarTitle/index.thing.d.ts +0 -1
  78. package/lib/showTabBar/index.native.d.ts +0 -2
  79. package/lib/showTabBar/index.native.js +0 -2
  80. package/lib/switchTab/index.native.d.ts +0 -2
  81. package/lib/switchTab/index.native.js +0 -2
@@ -1,7 +1,7 @@
1
1
  /**
2
- * BizKit
2
+ * TYKit
3
3
  *
4
- * @version 3.0.1
4
+ * @version 2.2.6
5
5
  */
6
6
  declare namespace ty {
7
7
  /**
@@ -20,15 +20,7 @@ declare namespace ty {
20
20
  /** extData 额外参数:{"GID":"xxxx"} */
21
21
  extData?: Record<string, any>
22
22
  complete?: () => void
23
- success?: (params: {
24
- /**
25
- * 请求结果
26
- * thing_data_ 出参结构体, JSON序列化
27
- */
28
- thing_json_?: {}
29
- /** 元数据 */
30
- data: string
31
- }) => void
23
+ success?: (success?: Record<string, any>) => void
32
24
  fail?: (params: {
33
25
  errorMsg: string
34
26
  errorCode: string | number
@@ -164,10 +156,6 @@ declare namespace ty {
164
156
  * 2: 线上
165
157
  */
166
158
  appEnv?: number
167
- /** app包名 */
168
- appBundleId: string
169
- /** app scheme */
170
- appScheme: string
171
159
  }) => void
172
160
  fail?: (params: {
173
161
  errorMsg: string
@@ -304,7 +292,7 @@ declare namespace ty {
304
292
  }): void
305
293
 
306
294
  /**
307
- * 打开RN面板 (该方法已被废弃, 请使用openPanel替代)
295
+ * 打开RN面板(该方法已被废弃)
308
296
  */
309
297
  export function openRNPanel(params: {
310
298
  /**
@@ -406,23 +394,19 @@ declare namespace ty {
406
394
  }): void
407
395
 
408
396
  /**
409
- * 根据不同scope值,打开当前应用对应的设置界面
410
- *"App-Settings" -> App应用设置界面
411
- *"App-Settings-Permission" -> App应用权限设置界面 (Android 独有)
412
- *"App-Settings-Notification" -> App应用通知设置界面 (Android 独有)
397
+ * 打开系统设置中当前应用信息界面
413
398
  */
414
399
  export function openAppSystemSettingPage(params: {
415
400
  /**
416
- * 跳转系统-设置项名称
417
- * "Settings"-> 手机设置主界面
418
- * "Settings-Bluetooth" -> 手机蓝牙设置界面
419
- * "Settings-WiFi" -> 手机WiFi设置界面
420
- * "Settings-Location" -> 手机定位设置界面
421
- * "Settings-Notification" -> 手机通知设置界面
422
- * 跳转系统-应用-设置项名称
423
- * "App-Settings" -> App应用设置界面
424
- * "App-Settings-Permission" -> App应用权限设置界面 (Android 独有)
425
- * "App-Settings-Notification" -> App应用通知设置界面 (Android 独有)
401
+ * 设置项名称
402
+ * Settings-> 手机设置主界面
403
+ * Settings-Bluetooth -> 手机蓝牙设置界面
404
+ * Settings-Notification” -> 手机通知设置界面
405
+ * Settings-WiFi” -> 手机设置WiFi界面
406
+ * “App-Settings -> App设置界面
407
+ * “App-Settings-Permission” -> App权限设置界面
408
+ * App-Settings-Permission” -> App权限设置界面
409
+ * App-Settings-Notification” -> App通知设置界面
426
410
  */
427
411
  scope: string
428
412
  /** 请求code,Android特有 */
@@ -440,25 +424,19 @@ declare namespace ty {
440
424
  }): void
441
425
 
442
426
  /**
443
- * 根据不同scope值,打开对应的手机系统设置界面
444
- *"Settings"-> 手机设置主界面
445
- *"Settings-Bluetooth" -> 手机蓝牙设置界面
446
- *"Settings-WiFi" -> 手机Wifi设置界面
447
- *"Settings-Location" -> 手机定位设置界面
448
- *"Settings-Notification" -> 手机通知设置界面
427
+ * 打开手机系统设置界面
449
428
  */
450
429
  export function openSystemSettingPage(params: {
451
430
  /**
452
- * 跳转系统-设置项名称
453
- * "Settings"-> 手机设置主界面
454
- * "Settings-Bluetooth" -> 手机蓝牙设置界面
455
- * "Settings-WiFi" -> 手机WiFi设置界面
456
- * "Settings-Location" -> 手机定位设置界面
457
- * "Settings-Notification" -> 手机通知设置界面
458
- * 跳转系统-应用-设置项名称
459
- * "App-Settings" -> App应用设置界面
460
- * "App-Settings-Permission" -> App应用权限设置界面 (Android 独有)
461
- * "App-Settings-Notification" -> App应用通知设置界面 (Android 独有)
431
+ * 设置项名称
432
+ * Settings-> 手机设置主界面
433
+ * Settings-Bluetooth -> 手机蓝牙设置界面
434
+ * Settings-Notification” -> 手机通知设置界面
435
+ * Settings-WiFi” -> 手机设置WiFi界面
436
+ * “App-Settings -> App设置界面
437
+ * “App-Settings-Permission” -> App权限设置界面
438
+ * App-Settings-Permission” -> App权限设置界面
439
+ * App-Settings-Notification” -> App通知设置界面
462
440
  */
463
441
  scope: string
464
442
  /** 请求code,Android特有 */
@@ -499,7 +477,7 @@ declare namespace ty {
499
477
  * 路由跳转原生页面
500
478
  *当传递的路由url带协议头, 则直接跳转; 若不带协议头, 则补充对应APP协议头进行跳转
501
479
  *1. 在使用万能路由跳转前, 需要在app.json中声明使用到的路由, 如果没有声明相关路由, 则该路由无法执行该方法
502
- *e.g. "routers":['deviceDetail', 'thingsmart://device']
480
+ *e.g. "routers":['deviceDetail', 'tuyasmart://device']
503
481
  *2. 在使用router方法前, 建议使用canIUseRouter来做兼容, 处理当APP没有对应路由时执行业务兜底
504
482
  *errorCode 10014 当前路由不存在当前APP中, 不可用
505
483
  */
@@ -540,7 +518,7 @@ declare namespace ty {
540
518
  }): void
541
519
 
542
520
  /**
543
- * 跳转设备详情页面, 已废弃, 推荐使用thing.device
521
+ * 跳转设备详情页面, 已废弃, 推荐使用ty.device
544
522
  */
545
523
  export function goDeviceDetail(params: {
546
524
  /** 设备Id */
@@ -560,7 +538,7 @@ declare namespace ty {
560
538
  }): void
561
539
 
562
540
  /**
563
- * 跳转设备定时页面, 已废弃, 推荐使用thing.device
541
+ * 跳转设备定时页面, 已废弃, 推荐使用ty.device
564
542
  */
565
543
  export function goDeviceAlarm(params: {
566
544
  /** 设备Id */
@@ -657,31 +635,6 @@ declare namespace ty {
657
635
  }) => void
658
636
  }): void
659
637
 
660
- /**
661
- * 获取用户信息
662
- */
663
- export function getUserInfo(params?: {
664
- complete?: () => void
665
- success?: (params: {
666
- /** nickName 用户昵称 */
667
- nickName: string
668
- /** 用户头像 */
669
- avatarUrl: string
670
- /** 国家代码 */
671
- phoneCode: string
672
- /** 是否是临时用户 */
673
- isTemporaryUser: boolean
674
- }) => void
675
- failure?: (params: {
676
- errorMsg: string
677
- errorCode: string | number
678
- innerError: {
679
- errorCode: string | number
680
- errorMsg: string
681
- }
682
- }) => void
683
- }): void
684
-
685
638
  /**
686
639
  * 压缩图片, 在保持原图长宽比基础上先裁剪至目标尺寸, 然后根据文件大小限制去执行质量压缩
687
640
  */
@@ -776,7 +729,7 @@ declare namespace ty {
776
729
  ): void
777
730
 
778
731
  /**
779
- * 取消监听:国家列表界面选择的国家信息
732
+ * 国家列表界面选择的国家信息
780
733
  */
781
734
  export function offCountrySelectResult(
782
735
  listener: (params: CountrySelectResultResponse) => void
@@ -788,7 +741,7 @@ declare namespace ty {
788
741
  export function onUploadProgressUpdate(listener: (params: ProgressEvent) => void): void
789
742
 
790
743
  /**
791
- * 取消监听:上传进度回调
744
+ * 上传进度回调
792
745
  */
793
746
  export function offUploadProgressUpdate(listener: (params: ProgressEvent) => void): void
794
747
 
@@ -798,7 +751,7 @@ declare namespace ty {
798
751
  export function onReceiveMessage(listener: (params: EventChannelMessageParams) => void): void
799
752
 
800
753
  /**
801
- * 取消监听:事件通道响应
754
+ * 事件通道响应
802
755
  */
803
756
  export function offReceiveMessage(listener: (params: EventChannelMessageParams) => void): void
804
757
 
@@ -808,7 +761,7 @@ declare namespace ty {
808
761
  export function onRouterEvent(listener: (params: RouterEvent) => void): void
809
762
 
810
763
  /**
811
- * 取消监听:统一路由事件通知
764
+ * 统一路由事件通知
812
765
  */
813
766
  export function offRouterEvent(listener: (params: RouterEvent) => void): void
814
767
 
@@ -818,7 +771,7 @@ declare namespace ty {
818
771
  export function onRouterResult(listener: (params: RouterResultResponse) => void): void
819
772
 
820
773
  /**
821
- * 取消监听:万能路由界面返回的数据
774
+ * 万能路由界面返回的数据
822
775
  */
823
776
  export function offRouterResult(listener: (params: RouterResultResponse) => void): void
824
777
 
@@ -967,10 +920,6 @@ declare namespace ty {
967
920
  * 2: 线上
968
921
  */
969
922
  appEnv?: number
970
- /** app包名 */
971
- appBundleId: string
972
- /** app scheme */
973
- appScheme: string
974
923
  }
975
924
 
976
925
  export type SystemWirelessInfoBean = {
@@ -1072,16 +1021,15 @@ declare namespace ty {
1072
1021
 
1073
1022
  export type SettingPageBean = {
1074
1023
  /**
1075
- * 跳转系统-设置项名称
1076
- * "Settings"-> 手机设置主界面
1077
- * "Settings-Bluetooth" -> 手机蓝牙设置界面
1078
- * "Settings-WiFi" -> 手机WiFi设置界面
1079
- * "Settings-Location" -> 手机定位设置界面
1080
- * "Settings-Notification" -> 手机通知设置界面
1081
- * 跳转系统-应用-设置项名称
1082
- * "App-Settings" -> App应用设置界面
1083
- * "App-Settings-Permission" -> App应用权限设置界面 (Android 独有)
1084
- * "App-Settings-Notification" -> App应用通知设置界面 (Android 独有)
1024
+ * 设置项名称
1025
+ * Settings-> 手机设置主界面
1026
+ * Settings-Bluetooth -> 手机蓝牙设置界面
1027
+ * Settings-Notification” -> 手机通知设置界面
1028
+ * Settings-WiFi” -> 手机设置WiFi界面
1029
+ * “App-Settings -> App设置界面
1030
+ * “App-Settings-Permission” -> App权限设置界面
1031
+ * App-Settings-Permission” -> App权限设置界面
1032
+ * App-Settings-Notification” -> App通知设置界面
1085
1033
  */
1086
1034
  scope: string
1087
1035
  /** 请求code,Android特有 */
@@ -1184,17 +1132,6 @@ declare namespace ty {
1184
1132
  shareChannelList: string[]
1185
1133
  }
1186
1134
 
1187
- export type UserInfoResult = {
1188
- /** nickName 用户昵称 */
1189
- nickName: string
1190
- /** 用户头像 */
1191
- avatarUrl: string
1192
- /** 国家代码 */
1193
- phoneCode: string
1194
- /** 是否是临时用户 */
1195
- isTemporaryUser: boolean
1196
- }
1197
-
1198
1135
  export type ImageResizeBean = {
1199
1136
  /**
1200
1137
  * 压缩参数
@@ -1,4 +1,4 @@
1
1
  /// <reference path="./BaseKit.d.ts" />
2
- /// <reference path="./BizKit.d.ts" />
3
2
  /// <reference path="./DeviceKit.d.ts" />
4
3
  /// <reference path="./MiniKit.d.ts" />
4
+ /// <reference path="./TYKit.d.ts" />
@@ -1,7 +1,6 @@
1
1
  /// <reference path="../@types/BaseKit.d.ts" />
2
2
  export declare const stopAccelerometer: typeof ty.stopAccelerometer;
3
3
  export declare const startAccelerometer: typeof ty.startAccelerometer;
4
- export declare const getAudioFileDuration: typeof ty.getAudioFileDuration;
5
4
  export declare const authorize: typeof ty.authorize;
6
5
  export declare const authorizeStatus: typeof ty.authorizeStatus;
7
6
  export declare const navigateToMiniProgram: typeof ty.navigateToMiniProgram;
@@ -9,15 +8,13 @@ export declare const startCompass: typeof ty.startCompass;
9
8
  export declare const stopCompass: typeof ty.stopCompass;
10
9
  export declare const startDeviceMotionListening: typeof ty.startDeviceMotionListening;
11
10
  export declare const stopDeviceMotionListening: typeof ty.stopDeviceMotionListening;
11
+ export declare const readFile: typeof ty.readFile;
12
+ export declare const getTempDirectory: typeof ty.getTempDirectory;
12
13
  export declare const startGyroscope: typeof ty.startGyroscope;
13
14
  export declare const stopGyroscope: typeof ty.stopGyroscope;
14
15
  export declare const chooseImage: typeof ty.chooseImage;
15
- export declare const chooseMedia: typeof ty.chooseMedia;
16
16
  export declare const chooseCropImage: typeof ty.chooseCropImage;
17
17
  export declare const previewImage: typeof ty.previewImage;
18
- export declare const getImageInfo: typeof ty.getImageInfo;
19
- export declare const getVideoInfo: typeof ty.getVideoInfo;
20
- export declare const saveVideoToPhotosAlbum: typeof ty.saveVideoToPhotosAlbum;
21
18
  export declare const showToast: typeof ty.showToast;
22
19
  export declare const showModal: typeof ty.showModal;
23
20
  export declare const showLoading: typeof ty.showLoading;
@@ -27,17 +24,8 @@ export declare const hideLoading: typeof ty.hideLoading;
27
24
  export declare const makePhoneCall: typeof ty.makePhoneCall;
28
25
  export declare const setClipboardData: typeof ty.setClipboardData;
29
26
  export declare const getClipboardData: typeof ty.getClipboardData;
30
- export declare const updateVolume: typeof ty.updateVolume;
31
- export declare const getCurrentVolume: typeof ty.getCurrentVolume;
32
- export declare const registerSystemVolumeChange: typeof ty.registerSystemVolumeChange;
33
- export declare const unRegisterSystemVolumeChange: typeof ty.unRegisterSystemVolumeChange;
34
- export declare const getSystemSetting: typeof ty.getSystemSetting;
35
- export declare const getDeviceInfo: typeof ty.getDeviceInfo;
36
27
  export declare const getSystemInfo: typeof ty.getSystemInfo;
37
28
  export declare const getSystemInfoSync: typeof ty.getSystemInfoSync;
38
- export declare const getWifiList: typeof ty.getWifiList;
39
- export declare const getConnectedWifi: typeof ty.getConnectedWifi;
40
- export declare const openSystemBluetoothSetting: typeof ty.openSystemBluetoothSetting;
41
29
  export declare const getNetworkType: typeof ty.getNetworkType;
42
30
  export declare const setScreenBrightness: typeof ty.setScreenBrightness;
43
31
  export declare const getScreenBrightness: typeof ty.getScreenBrightness;
@@ -53,10 +41,6 @@ export declare const removeStorage: typeof ty.removeStorage;
53
41
  export declare const removeStorageSync: typeof ty.removeStorageSync;
54
42
  export declare const clearStorage: typeof ty.clearStorage;
55
43
  export declare const clearStorageSync: typeof ty.clearStorageSync;
56
- export declare const onSystemVolumeChangeEvent: typeof ty.onSystemVolumeChangeEvent;
57
- export declare const offSystemVolumeChangeEvent: typeof ty.offSystemVolumeChangeEvent;
58
- export declare const onGetWifiList: typeof ty.onGetWifiList;
59
- export declare const offGetWifiList: typeof ty.offGetWifiList;
60
44
  export declare const onRecordingEvent: typeof ty.onRecordingEvent;
61
45
  export declare const offRecordingEvent: typeof ty.offRecordingEvent;
62
46
  export declare const onAccelerometerChange: typeof ty.onAccelerometerChange;
@@ -2,7 +2,6 @@
2
2
  import { factory } from './utils';
3
3
  export var stopAccelerometer = factory('stopAccelerometer');
4
4
  export var startAccelerometer = factory('startAccelerometer');
5
- export var getAudioFileDuration = factory('getAudioFileDuration');
6
5
  export var authorize = factory('authorize');
7
6
  export var authorizeStatus = factory('authorizeStatus');
8
7
  export var navigateToMiniProgram = factory('navigateToMiniProgram');
@@ -10,15 +9,13 @@ export var startCompass = factory('startCompass');
10
9
  export var stopCompass = factory('stopCompass');
11
10
  export var startDeviceMotionListening = factory('startDeviceMotionListening');
12
11
  export var stopDeviceMotionListening = factory('stopDeviceMotionListening');
12
+ export var readFile = factory('readFile');
13
+ export var getTempDirectory = factory('getTempDirectory');
13
14
  export var startGyroscope = factory('startGyroscope');
14
15
  export var stopGyroscope = factory('stopGyroscope');
15
16
  export var chooseImage = factory('chooseImage');
16
- export var chooseMedia = factory('chooseMedia');
17
17
  export var chooseCropImage = factory('chooseCropImage');
18
18
  export var previewImage = factory('previewImage');
19
- export var getImageInfo = factory('getImageInfo');
20
- export var getVideoInfo = factory('getVideoInfo');
21
- export var saveVideoToPhotosAlbum = factory('saveVideoToPhotosAlbum');
22
19
  export var showToast = factory('showToast');
23
20
  export var showModal = factory('showModal');
24
21
  export var showLoading = factory('showLoading');
@@ -28,17 +25,8 @@ export var hideLoading = factory('hideLoading');
28
25
  export var makePhoneCall = factory('makePhoneCall');
29
26
  export var setClipboardData = factory('setClipboardData');
30
27
  export var getClipboardData = factory('getClipboardData');
31
- export var updateVolume = factory('updateVolume');
32
- export var getCurrentVolume = factory('getCurrentVolume');
33
- export var registerSystemVolumeChange = factory('registerSystemVolumeChange');
34
- export var unRegisterSystemVolumeChange = factory('unRegisterSystemVolumeChange');
35
- export var getSystemSetting = factory('getSystemSetting');
36
- export var getDeviceInfo = factory('getDeviceInfo');
37
28
  export var getSystemInfo = factory('getSystemInfo');
38
29
  export var getSystemInfoSync = factory('getSystemInfoSync');
39
- export var getWifiList = factory('getWifiList');
40
- export var getConnectedWifi = factory('getConnectedWifi');
41
- export var openSystemBluetoothSetting = factory('openSystemBluetoothSetting');
42
30
  export var getNetworkType = factory('getNetworkType');
43
31
  export var setScreenBrightness = factory('setScreenBrightness');
44
32
  export var getScreenBrightness = factory('getScreenBrightness');
@@ -54,10 +42,6 @@ export var removeStorage = factory('removeStorage');
54
42
  export var removeStorageSync = factory('removeStorageSync');
55
43
  export var clearStorage = factory('clearStorage');
56
44
  export var clearStorageSync = factory('clearStorageSync');
57
- export var onSystemVolumeChangeEvent = factory('onSystemVolumeChangeEvent');
58
- export var offSystemVolumeChangeEvent = factory('offSystemVolumeChangeEvent');
59
- export var onGetWifiList = factory('onGetWifiList');
60
- export var offGetWifiList = factory('offGetWifiList');
61
45
  export var onRecordingEvent = factory('onRecordingEvent');
62
46
  export var offRecordingEvent = factory('offRecordingEvent');
63
47
  export var onAccelerometerChange = factory('onAccelerometerChange');
@@ -1,24 +1,16 @@
1
1
  /// <reference path="../@types/DeviceKit.d.ts" />
2
- export declare const unregisterLeaveBeaconFenceEvent: typeof ty.device.unregisterLeaveBeaconFenceEvent;
3
- export declare const registerLeaveBeaconFenceEvent: typeof ty.device.registerLeaveBeaconFenceEvent;
4
- export declare const writeBeaconFenceConfig: typeof ty.device.writeBeaconFenceConfig;
5
- export declare const readBeaconFenceConfig: typeof ty.device.readBeaconFenceConfig;
6
- export declare const disconnectBTBond: typeof ty.device.disconnectBTBond;
7
- export declare const connectBTBond: typeof ty.device.connectBTBond;
8
- export declare const cancelBLEFileTransfer: typeof ty.device.cancelBLEFileTransfer;
9
- export declare const postBLEFileTransfer: typeof ty.device.postBLEFileTransfer;
10
2
  export declare const getBLEDeviceRSSI: typeof ty.device.getBLEDeviceRSSI;
11
- export declare const subscribeBLEConnectStatus: typeof ty.device.subscribeBLEConnectStatus;
12
- export declare const unsubscribeBLEConnectStatus: typeof ty.device.unsubscribeBLEConnectStatus;
13
- export declare const connectBLEDevice: typeof ty.device.connectBLEDevice;
3
+ export declare const subscribeTYBLEConnectStatus: typeof ty.device.subscribeTYBLEConnectStatus;
4
+ export declare const unsubscribeTYBLEConnectStatus: typeof ty.device.unsubscribeTYBLEConnectStatus;
5
+ export declare const connectTYBLEDevice: typeof ty.device.connectTYBLEDevice;
14
6
  export declare const directConnectBLEDevice: typeof ty.device.directConnectBLEDevice;
15
- export declare const disconnectBLEDevice: typeof ty.device.disconnectBLEDevice;
16
- export declare const getBLEOnlineState: typeof ty.device.getBLEOnlineState;
17
- export declare const subscribeBLETransparentDataReport: typeof ty.device.subscribeBLETransparentDataReport;
18
- export declare const unsubscribeBLETransparentDataReport: typeof ty.device.unsubscribeBLETransparentDataReport;
19
- export declare const publishBLETransparentData: typeof ty.device.publishBLETransparentData;
7
+ export declare const disconnectTYBLEDevice: typeof ty.device.disconnectTYBLEDevice;
8
+ export declare const getTYBLEOnlineState: typeof ty.device.getTYBLEOnlineState;
9
+ export declare const subscribeTYBLETransparentDataReport: typeof ty.device.subscribeTYBLETransparentDataReport;
10
+ export declare const unsubscribeTYBLETransparentDataReport: typeof ty.device.unsubscribeTYBLETransparentDataReport;
11
+ export declare const publishTYBLETransparentData: typeof ty.device.publishTYBLETransparentData;
20
12
  export declare const getEncryptLocalKeyWithData: typeof ty.device.getEncryptLocalKeyWithData;
21
- export declare const postBLEBigDataChannelWithProgress: typeof ty.device.postBLEBigDataChannelWithProgress;
13
+ export declare const postTYBLEBigDataChannelWithProgress: typeof ty.device.postTYBLEBigDataChannelWithProgress;
22
14
  export declare const startBLEMeshLowPowerConnection: typeof ty.device.startBLEMeshLowPowerConnection;
23
15
  export declare const stopBLEMeshLowPowerConnection: typeof ty.device.stopBLEMeshLowPowerConnection;
24
16
  export declare const startBLEScanBeacon: typeof ty.device.startBLEScanBeacon;
@@ -40,9 +32,6 @@ export declare const stopDirectlyConnectedDeviceActivator: typeof ty.device.stop
40
32
  export declare const openCategoryActivatorPage: typeof ty.device.openCategoryActivatorPage;
41
33
  export declare const startDirectlyConnectedSearchDevice: typeof ty.device.startDirectlyConnectedSearchDevice;
42
34
  export declare const stopDirectlyConnectedSearchDevice: typeof ty.device.stopDirectlyConnectedSearchDevice;
43
- export declare const getDeviceWifiActivatorStatus: typeof ty.device.getDeviceWifiActivatorStatus;
44
- export declare const startDeviceWifiActivator: typeof ty.device.startDeviceWifiActivator;
45
- export declare const renameDeviceName: typeof ty.device.renameDeviceName;
46
35
  export declare const resetFactory: typeof ty.device.resetFactory;
47
36
  export declare const removeDevice: typeof ty.device.removeDevice;
48
37
  export declare const registerZigbeeGateWaySubDeviceListener: typeof ty.device.registerZigbeeGateWaySubDeviceListener;
@@ -70,9 +59,6 @@ export declare const registerMQTTProtocolListener: typeof ty.device.registerMQTT
70
59
  export declare const unregisterMQTTProtocolListener: typeof ty.device.unregisterMQTTProtocolListener;
71
60
  export declare const registerDeviceListListener: typeof ty.device.registerDeviceListListener;
72
61
  export declare const unregisterDeviceListListener: typeof ty.device.unregisterDeviceListListener;
73
- export declare const registerTopicListListener: typeof ty.device.registerTopicListListener;
74
- export declare const unregisterTopicListListener: typeof ty.device.unregisterTopicListListener;
75
- export declare const getMqttConnectState: typeof ty.device.getMqttConnectState;
76
62
  export declare const checkOTAUpdateInfo: typeof ty.device.checkOTAUpdateInfo;
77
63
  export declare const openDeviceDetailPage: typeof ty.device.openDeviceDetailPage;
78
64
  export declare const openGroupDetailPage: typeof ty.device.openGroupDetailPage;
@@ -97,49 +83,29 @@ export declare const openShareDevice: typeof ty.device.openShareDevice;
97
83
  export declare const addDeviceToDesk: typeof ty.device.addDeviceToDesk;
98
84
  export declare const removeShareDevice: typeof ty.device.removeShareDevice;
99
85
  export declare const getSupportedThirdPartyServices: typeof ty.device.getSupportedThirdPartyServices;
100
- export declare const openRecommendSceneDetail: typeof ty.device.openRecommendSceneDetail;
101
- export declare const openDeviceExecutionAndAnutomation: typeof ty.device.openDeviceExecutionAndAnutomation;
102
- export declare const saveSceneAction: typeof ty.device.saveSceneAction;
103
- export declare const createAction: typeof ty.device.createAction;
104
- export declare const editAction: typeof ty.device.editAction;
105
- export declare const showSceneDialog: typeof ty.device.showSceneDialog;
106
- export declare const openPreConditionPage: typeof ty.device.openPreConditionPage;
107
- export declare const createCondition: typeof ty.device.createCondition;
108
- export declare const editCondition: typeof ty.device.editCondition;
109
- export declare const getGroupDeviceList: typeof ty.device.getGroupDeviceList;
110
- export declare const getGroupDeviceNum: typeof ty.device.getGroupDeviceNum;
111
- export declare const getDeviceNumWithDpCode: typeof ty.device.getDeviceNumWithDpCode;
112
- export declare const publishGroupDpCodes: typeof ty.device.publishGroupDpCodes;
113
- export declare const publishSigMeshMultiDps: typeof ty.device.publishSigMeshMultiDps;
114
- export declare const openMeshLocalGroup: typeof ty.device.openMeshLocalGroup;
115
86
  export declare const getGroupInfo: typeof ty.device.getGroupInfo;
116
87
  export declare const publishGroupDps: typeof ty.device.publishGroupDps;
117
88
  export declare const getGroupProperty: typeof ty.device.getGroupProperty;
118
89
  export declare const setGroupProperty: typeof ty.device.setGroupProperty;
119
90
  export declare const registerGroupChange: typeof ty.device.registerGroupChange;
120
91
  export declare const unRegisterGroupChange: typeof ty.device.unRegisterGroupChange;
121
- export declare const getMeshDeviceId: typeof ty.device.getMeshDeviceId;
122
- export declare const getDpDataByMesh: typeof ty.device.getDpDataByMesh;
123
92
  export declare const checkOTAUpgradeStatus: typeof ty.device.checkOTAUpgradeStatus;
124
93
  export declare const openOTAUpgrade: typeof ty.device.openOTAUpgrade;
94
+ export declare const pushRNPanel: typeof ty.device.pushRNPanel;
125
95
  export declare const deviceIsSupportThingModel: typeof ty.device.deviceIsSupportThingModel;
126
96
  export declare const updateDeviceThingModelInfo: typeof ty.device.updateDeviceThingModelInfo;
127
97
  export declare const getDeviceThingModelInfo: typeof ty.device.getDeviceThingModelInfo;
128
98
  export declare const publishThingModelMessage: typeof ty.device.publishThingModelMessage;
129
99
  export declare const subscribeReceivedThingModelMessage: typeof ty.device.subscribeReceivedThingModelMessage;
130
100
  export declare const unSubscribeReceivedThingModelMessage: typeof ty.device.unSubscribeReceivedThingModelMessage;
131
- export declare const onLeaveBeaconFence: typeof ty.device.onLeaveBeaconFence;
132
- export declare const offLeaveBeaconFence: typeof ty.device.offLeaveBeaconFence;
133
- export declare const onFileTransferProgress: typeof ty.device.onFileTransferProgress;
134
- export declare const offFileTransferProgress: typeof ty.device.offFileTransferProgress;
135
- export declare const onBLEConnectStatusChange: typeof ty.device.onBLEConnectStatusChange;
136
- export declare const offBLEConnectStatusChange: typeof ty.device.offBLEConnectStatusChange;
137
- export declare const onBLETransparentDataReport: typeof ty.device.onBLETransparentDataReport;
138
- export declare const offBLETransparentDataReport: typeof ty.device.offBLETransparentDataReport;
139
- export declare const onBLEBigDataChannelProgressEvent: typeof ty.device.onBLEBigDataChannelProgressEvent;
140
- export declare const offBLEBigDataChannelProgressEvent: typeof ty.device.offBLEBigDataChannelProgressEvent;
141
- export declare const onBLEScanBindDevice: typeof ty.device.onBLEScanBindDevice;
142
- export declare const offBLEScanBindDevice: typeof ty.device.offBLEScanBindDevice;
101
+ export declare const onTYBLEConnectStatusChange: typeof ty.device.onTYBLEConnectStatusChange;
102
+ export declare const offTYBLEConnectStatusChange: typeof ty.device.offTYBLEConnectStatusChange;
103
+ export declare const onTYBLETransparentDataReport: typeof ty.device.onTYBLETransparentDataReport;
104
+ export declare const offTYBLETransparentDataReport: typeof ty.device.offTYBLETransparentDataReport;
105
+ export declare const onTYBLEBigDataChannelProgressEvent: typeof ty.device.onTYBLEBigDataChannelProgressEvent;
106
+ export declare const offTYBLEBigDataChannelProgressEvent: typeof ty.device.offTYBLEBigDataChannelProgressEvent;
107
+ export declare const onTYBLEScanBindDevice: typeof ty.device.onTYBLEScanBindDevice;
108
+ export declare const offTYBLEScanBindDevice: typeof ty.device.offTYBLEScanBindDevice;
143
109
  export declare const onBLEBigDataChannelDeviceToAppSuccess: typeof ty.device.onBLEBigDataChannelDeviceToAppSuccess;
144
110
  export declare const offBLEBigDataChannelDeviceToAppSuccess: typeof ty.device.offBLEBigDataChannelDeviceToAppSuccess;
145
111
  export declare const onBLEBigDataChannelUploadCloudProgress: typeof ty.device.onBLEBigDataChannelUploadCloudProgress;
@@ -160,14 +126,8 @@ export declare const onDeviceInfoUpdated: typeof ty.device.onDeviceInfoUpdated;
160
126
  export declare const offDeviceInfoUpdated: typeof ty.device.offDeviceInfoUpdated;
161
127
  export declare const onDeviceRemoved: typeof ty.device.onDeviceRemoved;
162
128
  export declare const offDeviceRemoved: typeof ty.device.offDeviceRemoved;
163
- export declare const onMqttConnectState: typeof ty.device.onMqttConnectState;
164
- export declare const offMqttConnectState: typeof ty.device.offMqttConnectState;
165
129
  export declare const onTimerUpdate: typeof ty.device.onTimerUpdate;
166
130
  export declare const offTimerUpdate: typeof ty.device.offTimerUpdate;
167
- export declare const onGroupInfoChange: typeof ty.device.onGroupInfoChange;
168
- export declare const offGroupInfoChange: typeof ty.device.offGroupInfoChange;
169
- export declare const onGroupDpCodeChange: typeof ty.device.onGroupDpCodeChange;
170
- export declare const offGroupDpCodeChange: typeof ty.device.offGroupDpCodeChange;
171
131
  export declare const onGroupRemovedEvent: typeof ty.device.onGroupRemovedEvent;
172
132
  export declare const offGroupRemovedEvent: typeof ty.device.offGroupRemovedEvent;
173
133
  export declare const onGroupDpDataChangeEvent: typeof ty.device.onGroupDpDataChangeEvent;