@ray-js/api 0.10.2 → 0.20.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/BaseKit.d.ts +1 -82
- package/@types/BizKit.d.ts +1 -1
- package/@types/DeviceKit.d.ts +18 -18
- package/lib/all-kits.d.ts +0 -1
- package/lib/all-kits.js +0 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/panel/README.md +3 -0
- package/lib/panel/index.d.ts +4 -0
- package/lib/panel/index.js +13 -0
- package/lib/panel/index.thing.d.ts +4 -0
- package/lib/panel/index.thing.js +6 -0
- package/package.json +10 -7
- package/@types/PlayNetKit.d.ts +0 -444
- package/lib/PlayNetKit-1.1.3.d.ts +0 -27
- package/lib/PlayNetKit-1.1.3.js +0 -28
- package/lib/cloud/alarm.d.ts +0 -14
- package/lib/cloud/alarm.js +0 -35
- package/lib/cloud/core.d.ts +0 -5
- package/lib/cloud/core.js +0 -16
- package/lib/cloud/device.d.ts +0 -63
- package/lib/cloud/device.js +0 -148
- package/lib/cloud/index.d.ts +0 -6
- package/lib/cloud/index.js +0 -6
- package/lib/cloud/interface.d.ts +0 -960
- package/lib/cloud/interface.js +0 -1
- package/lib/cloud/linkage.d.ts +0 -61
- package/lib/cloud/linkage.js +0 -159
- package/lib/cloud/statistic.d.ts +0 -111
- package/lib/cloud/statistic.js +0 -199
- package/lib/cloud/timer.d.ts +0 -146
- package/lib/cloud/timer.js +0 -275
- package/lib/constants.d.ts +0 -2
- package/lib/constants.js +0 -3
package/@types/BaseKit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* BaseKit
|
3
3
|
*
|
4
|
-
* @version 3.
|
4
|
+
* @version 3.2.1
|
5
5
|
*/
|
6
6
|
declare namespace ty {
|
7
7
|
/**
|
@@ -73,7 +73,6 @@ declare namespace ty {
|
|
73
73
|
* scope.camera 摄像头权限
|
74
74
|
* scope.userLocation 低精度定位权限
|
75
75
|
* scope.userPreciseLocation 高精度定位权限
|
76
|
-
* scope.userInfo 用户信息
|
77
76
|
*/
|
78
77
|
scope: string
|
79
78
|
complete?: () => void
|
@@ -102,7 +101,6 @@ declare namespace ty {
|
|
102
101
|
* scope.camera 摄像头权限
|
103
102
|
* scope.userLocation 低精度定位权限
|
104
103
|
* scope.userPreciseLocation 高精度定位权限
|
105
|
-
* scope.userInfo 用户信息
|
106
104
|
*/
|
107
105
|
scope: string
|
108
106
|
complete?: () => void
|
@@ -700,15 +698,6 @@ declare namespace ty {
|
|
700
698
|
export function updateVolume(params: {
|
701
699
|
/** 音量,阈值【0 - 1】 */
|
702
700
|
value: number
|
703
|
-
/**
|
704
|
-
* 音量类型(仅Android生效)
|
705
|
-
* 0:语音电话的声音
|
706
|
-
* 2:响铃,通知,系统默认音等
|
707
|
-
* 3:手机音乐的声音
|
708
|
-
* 4:手机闹铃的声音
|
709
|
-
* 6:蓝牙音量
|
710
|
-
*/
|
711
|
-
volumeMode?: number[]
|
712
701
|
complete?: () => void
|
713
702
|
success?: (params: null) => void
|
714
703
|
fail?: (params: {
|
@@ -729,15 +718,6 @@ declare namespace ty {
|
|
729
718
|
success?: (params: {
|
730
719
|
/** 音量,阈值【0 - 1】 */
|
731
720
|
value: number
|
732
|
-
/**
|
733
|
-
* 音量类型(仅Android生效)
|
734
|
-
* 0:语音电话的声音
|
735
|
-
* 2:响铃,通知,系统默认音等
|
736
|
-
* 3:手机音乐的声音
|
737
|
-
* 4:手机闹铃的声音
|
738
|
-
* 6:蓝牙音量
|
739
|
-
*/
|
740
|
-
volumeMode: number
|
741
721
|
}) => void
|
742
722
|
fail?: (params: {
|
743
723
|
errorMsg: string
|
@@ -894,10 +874,6 @@ declare namespace ty {
|
|
894
874
|
screenHeight: number
|
895
875
|
windowWidth: number
|
896
876
|
windowHeight: number
|
897
|
-
/** 可使用窗口宽度 */
|
898
|
-
useableWindowWidth: number
|
899
|
-
/** 可使用窗口高度 */
|
900
|
-
useableWindowHeight: number
|
901
877
|
statusBarHeight: number
|
902
878
|
language: string
|
903
879
|
safeArea: SafeArea
|
@@ -914,8 +890,6 @@ declare namespace ty {
|
|
914
890
|
wifiEnabled: boolean
|
915
891
|
theme?: Themes
|
916
892
|
deviceOrientation?: Orientation
|
917
|
-
/** 设备等级(低:low-中:middle-高:high) */
|
918
|
-
deviceLevel: string
|
919
893
|
}) => void
|
920
894
|
fail?: (params: {
|
921
895
|
errorMsg: string
|
@@ -942,10 +916,6 @@ declare namespace ty {
|
|
942
916
|
screenHeight: number
|
943
917
|
windowWidth: number
|
944
918
|
windowHeight: number
|
945
|
-
/** 可使用窗口宽度 */
|
946
|
-
useableWindowWidth: number
|
947
|
-
/** 可使用窗口高度 */
|
948
|
-
useableWindowHeight: number
|
949
919
|
statusBarHeight: number
|
950
920
|
language: string
|
951
921
|
safeArea: SafeArea
|
@@ -962,8 +932,6 @@ declare namespace ty {
|
|
962
932
|
wifiEnabled: boolean
|
963
933
|
theme?: Themes
|
964
934
|
deviceOrientation?: Orientation
|
965
|
-
/** 设备等级(低:low-中:middle-高:high) */
|
966
|
-
deviceLevel: string
|
967
935
|
}
|
968
936
|
|
969
937
|
/**
|
@@ -1152,12 +1120,6 @@ declare namespace ty {
|
|
1152
1120
|
export function scanCode(params?: {
|
1153
1121
|
/** 是否只能从相机扫码,不允许从相册选择图片 */
|
1154
1122
|
onlyFromCamera?: boolean
|
1155
|
-
/** 是否显示动作标题(仅Android生效) */
|
1156
|
-
isShowActionTitle?: boolean
|
1157
|
-
/** 是否显示闪关灯(仅Android生效) */
|
1158
|
-
isShowTorch?: boolean
|
1159
|
-
/** 自定义提示标语(仅Android生效) */
|
1160
|
-
customTips?: string
|
1161
1123
|
/** 扫码类型 */
|
1162
1124
|
scanType?: string[]
|
1163
1125
|
complete?: () => void
|
@@ -1783,15 +1745,6 @@ declare namespace ty {
|
|
1783
1745
|
export type CurrentVolumeResponse = {
|
1784
1746
|
/** 音量,阈值【0 - 1】 */
|
1785
1747
|
value: number
|
1786
|
-
/**
|
1787
|
-
* 音量类型(仅Android生效)
|
1788
|
-
* 0:语音电话的声音
|
1789
|
-
* 2:响铃,通知,系统默认音等
|
1790
|
-
* 3:手机音乐的声音
|
1791
|
-
* 4:手机闹铃的声音
|
1792
|
-
* 6:蓝牙音量
|
1793
|
-
*/
|
1794
|
-
volumeMode: number
|
1795
1748
|
}
|
1796
1749
|
|
1797
1750
|
export type WifiListResponse = {
|
@@ -1857,7 +1810,6 @@ declare namespace ty {
|
|
1857
1810
|
* scope.camera 摄像头权限
|
1858
1811
|
* scope.userLocation 低精度定位权限
|
1859
1812
|
* scope.userPreciseLocation 高精度定位权限
|
1860
|
-
* scope.userInfo 用户信息
|
1861
1813
|
*/
|
1862
1814
|
scope: string
|
1863
1815
|
}
|
@@ -2268,27 +2220,6 @@ declare namespace ty {
|
|
2268
2220
|
export type UpdateVolumeParams = {
|
2269
2221
|
/** 音量,阈值【0 - 1】 */
|
2270
2222
|
value: number
|
2271
|
-
/**
|
2272
|
-
* 音量类型(仅Android生效)
|
2273
|
-
* 0:语音电话的声音
|
2274
|
-
* 2:响铃,通知,系统默认音等
|
2275
|
-
* 3:手机音乐的声音
|
2276
|
-
* 4:手机闹铃的声音
|
2277
|
-
* 6:蓝牙音量
|
2278
|
-
*/
|
2279
|
-
volumeMode?: number[]
|
2280
|
-
}
|
2281
|
-
|
2282
|
-
export type CurrentVolumeParams = {
|
2283
|
-
/**
|
2284
|
-
* 音量类型(仅Android生效)
|
2285
|
-
* 0:语音电话的声音
|
2286
|
-
* 2:响铃,通知,系统默认音等
|
2287
|
-
* 3:手机音乐的声音
|
2288
|
-
* 4:手机闹铃的声音
|
2289
|
-
* 6:蓝牙音量
|
2290
|
-
*/
|
2291
|
-
volumeMode?: number
|
2292
2223
|
}
|
2293
2224
|
|
2294
2225
|
export type SystemSetting = {
|
@@ -2330,10 +2261,6 @@ declare namespace ty {
|
|
2330
2261
|
screenHeight: number
|
2331
2262
|
windowWidth: number
|
2332
2263
|
windowHeight: number
|
2333
|
-
/** 可使用窗口宽度 */
|
2334
|
-
useableWindowWidth: number
|
2335
|
-
/** 可使用窗口高度 */
|
2336
|
-
useableWindowHeight: number
|
2337
2264
|
statusBarHeight: number
|
2338
2265
|
language: string
|
2339
2266
|
safeArea: SafeArea
|
@@ -2350,8 +2277,6 @@ declare namespace ty {
|
|
2350
2277
|
wifiEnabled: boolean
|
2351
2278
|
theme?: Themes
|
2352
2279
|
deviceOrientation?: Orientation
|
2353
|
-
/** 设备等级(低:low-中:middle-高:high) */
|
2354
|
-
deviceLevel: string
|
2355
2280
|
}
|
2356
2281
|
|
2357
2282
|
export type GetConnectedWifiParams = {
|
@@ -2425,12 +2350,6 @@ declare namespace ty {
|
|
2425
2350
|
export type ScanCodeBean = {
|
2426
2351
|
/** 是否只能从相机扫码,不允许从相册选择图片 */
|
2427
2352
|
onlyFromCamera?: boolean
|
2428
|
-
/** 是否显示动作标题(仅Android生效) */
|
2429
|
-
isShowActionTitle?: boolean
|
2430
|
-
/** 是否显示闪关灯(仅Android生效) */
|
2431
|
-
isShowTorch?: boolean
|
2432
|
-
/** 自定义提示标语(仅Android生效) */
|
2433
|
-
customTips?: string
|
2434
2353
|
/** 扫码类型 */
|
2435
2354
|
scanType?: string[]
|
2436
2355
|
}
|
package/@types/BizKit.d.ts
CHANGED
package/@types/DeviceKit.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* DeviceKit
|
3
3
|
*
|
4
|
-
* @version 3.
|
4
|
+
* @version 3.3.1
|
5
5
|
*/
|
6
6
|
declare namespace ty.device {
|
7
7
|
/**
|
@@ -3050,7 +3050,7 @@ declare namespace ty.device {
|
|
3050
3050
|
/** groupId 群组id */
|
3051
3051
|
groupId: string
|
3052
3052
|
/** deviceList 设备列表 */
|
3053
|
-
deviceList:
|
3053
|
+
deviceList: DeviceInfo_cqUUrc[]
|
3054
3054
|
}) => void
|
3055
3055
|
fail?: (params: {
|
3056
3056
|
errorMsg: string
|
@@ -3303,7 +3303,7 @@ declare namespace ty.device {
|
|
3303
3303
|
/** The custom DP name. */
|
3304
3304
|
dpName: {}
|
3305
3305
|
/** The device list. */
|
3306
|
-
deviceList:
|
3306
|
+
deviceList: DeviceInfo_cqUUrc[]
|
3307
3307
|
/** The local short address of groups. */
|
3308
3308
|
localId: string
|
3309
3309
|
/** The subclass. */
|
@@ -3818,12 +3818,12 @@ declare namespace ty.device {
|
|
3818
3818
|
/**
|
3819
3819
|
* 设备信息变化
|
3820
3820
|
*/
|
3821
|
-
export function onDeviceInfoUpdated(listener: (params:
|
3821
|
+
export function onDeviceInfoUpdated(listener: (params: Device_aLgkPi) => void): void
|
3822
3822
|
|
3823
3823
|
/**
|
3824
3824
|
* 取消监听:设备信息变化
|
3825
3825
|
*/
|
3826
|
-
export function offDeviceInfoUpdated(listener: (params:
|
3826
|
+
export function offDeviceInfoUpdated(listener: (params: Device_aLgkPi) => void): void
|
3827
3827
|
|
3828
3828
|
/**
|
3829
3829
|
* 设备移除事件
|
@@ -3848,42 +3848,42 @@ declare namespace ty.device {
|
|
3848
3848
|
/**
|
3849
3849
|
* 网关子设备dp信息变化事件
|
3850
3850
|
*/
|
3851
|
-
export function onSubDeviceDpUpdate(listener: (params:
|
3851
|
+
export function onSubDeviceDpUpdate(listener: (params: Device_aLgkPi) => void): void
|
3852
3852
|
|
3853
3853
|
/**
|
3854
3854
|
* 取消监听:网关子设备dp信息变化事件
|
3855
3855
|
*/
|
3856
|
-
export function offSubDeviceDpUpdate(listener: (params:
|
3856
|
+
export function offSubDeviceDpUpdate(listener: (params: Device_aLgkPi) => void): void
|
3857
3857
|
|
3858
3858
|
/**
|
3859
3859
|
* 网关子设备被移除事件
|
3860
3860
|
*/
|
3861
|
-
export function onSubDeviceRemoved(listener: (params:
|
3861
|
+
export function onSubDeviceRemoved(listener: (params: Device_aLgkPi) => void): void
|
3862
3862
|
|
3863
3863
|
/**
|
3864
3864
|
* 取消监听:网关子设备被移除事件
|
3865
3865
|
*/
|
3866
|
-
export function offSubDeviceRemoved(listener: (params:
|
3866
|
+
export function offSubDeviceRemoved(listener: (params: Device_aLgkPi) => void): void
|
3867
3867
|
|
3868
3868
|
/**
|
3869
3869
|
* 网关添加子设备的事件
|
3870
3870
|
*/
|
3871
|
-
export function onSubDeviceAdded(listener: (params:
|
3871
|
+
export function onSubDeviceAdded(listener: (params: Device_aLgkPi) => void): void
|
3872
3872
|
|
3873
3873
|
/**
|
3874
3874
|
* 取消监听:网关添加子设备的事件
|
3875
3875
|
*/
|
3876
|
-
export function offSubDeviceAdded(listener: (params:
|
3876
|
+
export function offSubDeviceAdded(listener: (params: Device_aLgkPi) => void): void
|
3877
3877
|
|
3878
3878
|
/**
|
3879
3879
|
* 网关子设备信息变化的事件
|
3880
3880
|
*/
|
3881
|
-
export function onSubDeviceInfoUpdate(listener: (params:
|
3881
|
+
export function onSubDeviceInfoUpdate(listener: (params: Device_aLgkPi) => void): void
|
3882
3882
|
|
3883
3883
|
/**
|
3884
3884
|
* 取消监听:网关子设备信息变化的事件
|
3885
3885
|
*/
|
3886
|
-
export function offSubDeviceInfoUpdate(listener: (params:
|
3886
|
+
export function offSubDeviceInfoUpdate(listener: (params: Device_aLgkPi) => void): void
|
3887
3887
|
|
3888
3888
|
/**
|
3889
3889
|
* 定时变化事件
|
@@ -4365,7 +4365,7 @@ declare namespace ty.device {
|
|
4365
4365
|
cityName: string
|
4366
4366
|
}
|
4367
4367
|
|
4368
|
-
export type
|
4368
|
+
export type DeviceInfo_cqUUrc = {
|
4369
4369
|
/** 产品信息,schema,功能定义都在里面 */
|
4370
4370
|
schema: {}[]
|
4371
4371
|
/**
|
@@ -4673,7 +4673,7 @@ declare namespace ty.device {
|
|
4673
4673
|
onlineType: number
|
4674
4674
|
}
|
4675
4675
|
|
4676
|
-
export type
|
4676
|
+
export type Device_aLgkPi = {
|
4677
4677
|
/**
|
4678
4678
|
* deviceId 设备id
|
4679
4679
|
* 支持跨面板获取其他的设备信息,当前面板可以传当前设备的 id 来进行获取
|
@@ -5382,7 +5382,7 @@ declare namespace ty.device {
|
|
5382
5382
|
warningText: string
|
5383
5383
|
}
|
5384
5384
|
|
5385
|
-
export type
|
5385
|
+
export type Device_kpD9Sx = {
|
5386
5386
|
/**
|
5387
5387
|
* deviceId
|
5388
5388
|
* 设备 id
|
@@ -5632,7 +5632,7 @@ declare namespace ty.device {
|
|
5632
5632
|
/** groupId 群组id */
|
5633
5633
|
groupId: string
|
5634
5634
|
/** deviceList 设备列表 */
|
5635
|
-
deviceList:
|
5635
|
+
deviceList: DeviceInfo_cqUUrc[]
|
5636
5636
|
}
|
5637
5637
|
|
5638
5638
|
export type DeviceNumResponse = {
|
@@ -5786,7 +5786,7 @@ declare namespace ty.device {
|
|
5786
5786
|
/** The custom DP name. */
|
5787
5787
|
dpName: {}
|
5788
5788
|
/** The device list. */
|
5789
|
-
deviceList:
|
5789
|
+
deviceList: DeviceInfo_cqUUrc[]
|
5790
5790
|
/** The local short address of groups. */
|
5791
5791
|
localId: string
|
5792
5792
|
/** The subclass. */
|
package/lib/all-kits.d.ts
CHANGED
package/lib/all-kits.js
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.20.0-beta.0",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -26,24 +26,27 @@
|
|
26
26
|
"build:kit:api": "node scripts/api-creator.mjs"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@ray-js/framework": "^0.
|
30
|
-
"@ray-js/
|
31
|
-
"@ray-js/
|
32
|
-
"
|
29
|
+
"@ray-js/framework": "^0.20.0-beta.0",
|
30
|
+
"@ray-js/panel-sdk": "^1.3.2",
|
31
|
+
"@ray-js/router": "^0.20.0-beta.0",
|
32
|
+
"@ray-js/wechat": "^0.0.8"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
|
-
"@ray-js/cli": "^0.
|
35
|
+
"@ray-js/cli": "^0.20.0-beta.0",
|
36
36
|
"art-template": "^4.13.2",
|
37
37
|
"fs-extra": "^10.1.0",
|
38
38
|
"miniprogram-api-typings": "^3.4.3",
|
39
39
|
"react": "^17.0.2"
|
40
40
|
},
|
41
|
+
"peerDependencies": {
|
42
|
+
"@ray-js/panel-cloud": "^1.3.2"
|
43
|
+
},
|
41
44
|
"maintainers": [
|
42
45
|
{
|
43
46
|
"name": "tuyafe",
|
44
47
|
"email": "tuyafe@tuya.com"
|
45
48
|
}
|
46
49
|
],
|
47
|
-
"gitHead": "
|
50
|
+
"gitHead": "5f36d50a16fb4a25a16b04d35b211af44b677dce",
|
48
51
|
"repository": {}
|
49
52
|
}
|