@ray-js/api 1.7.70 → 1.7.71
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/AIKit.d.ts +5509 -610
- package/@types/AIStreamKit.d.ts +2641 -0
- package/@types/AVideoKit.d.ts +1827 -0
- package/@types/BaseKit.d.ts +8682 -1893
- package/@types/BizKit.d.ts +6639 -1038
- package/@types/CategoryCommonBizKit.d.ts +1459 -0
- package/@types/CommunityKit.d.ts +154 -0
- package/@types/DeviceKit.d.ts +18475 -5662
- package/@types/GroupCITestKit.d.ts +651 -0
- package/@types/HealthKit.d.ts +2290 -357
- package/@types/HomeKit.d.ts +4068 -182
- package/@types/IPCKit.d.ts +4327 -1227
- package/@types/LightKit.d.ts +125 -0
- package/@types/MapKit.d.ts +1560 -204
- package/@types/MediaKit.d.ts +136 -16
- package/@types/MediaPlayerKit.d.ts +47 -0
- package/@types/MiniKit.d.ts +2976 -628
- package/@types/OutdoorKit.d.ts +1337 -24
- package/@types/P2PKit.d.ts +622 -103
- package/@types/PayKit.d.ts +115 -0
- package/@types/PlayNetKit.d.ts +3454 -1309
- package/@types/SweeperKit.d.ts +154 -0
- package/@types/ThirdAuthKit.d.ts +324 -0
- package/@types/ThirdPartyDeviceKit.d.ts +410 -0
- package/@types/WearKit.d.ts +10177 -375
- package/@types/gateway.d.ts +349 -61
- package/@types/health.d.ts +486 -304
- package/lib/AIKit-1.6.0.d.ts +265 -41
- package/lib/AIKit-1.6.0.js +374 -120
- package/lib/BaseKit-3.17.7.d.ts +704 -0
- package/lib/BaseKit-3.17.7.js +720 -1
- package/lib/BizKit-4.10.4.d.ts +336 -0
- package/lib/BizKit-4.10.4.js +342 -5
- package/lib/DeviceKit-4.13.1.d.ts +996 -0
- package/lib/DeviceKit-4.13.1.js +1247 -249
- package/lib/HealthKit-6.5.0.d.ts +210 -44
- package/lib/HealthKit-6.5.0.js +295 -128
- package/lib/HomeKit-3.1.4.d.ts +20 -6
- package/lib/HomeKit-3.1.4.js +29 -14
- package/lib/IPCKit-6.4.5.d.ts +375 -77
- package/lib/IPCKit-6.4.5.js +525 -228
- package/lib/MapKit-3.4.13.d.ts +70 -16
- package/lib/MapKit-3.4.13.js +98 -47
- package/lib/MediaKit-3.4.1.d.ts +5 -3
- package/lib/MediaKit-3.4.1.js +7 -6
- package/lib/MiniKit-3.14.1.d.ts +300 -0
- package/lib/MiniKit-3.14.1.js +302 -0
- package/lib/OutdoorKit-1.0.4.d.ts +55 -13
- package/lib/OutdoorKit-1.0.4.js +78 -35
- package/lib/P2PKit-2.0.3.d.ts +125 -27
- package/lib/P2PKit-2.0.3.js +175 -78
- package/lib/PlayNetKit-1.3.30.d.ts +290 -60
- package/lib/PlayNetKit-1.3.30.js +407 -176
- package/lib/WearKit-1.1.6.d.ts +125 -27
- package/lib/WearKit-1.1.6.js +176 -77
- package/lib/all-kits.d.ts +10 -10
- package/lib/all-kits.js +10 -10
- package/lib/cloud/core.d.ts +31 -1
- package/lib/cloud/core.js +31 -1
- package/lib/cloud/device.d.ts +155 -24
- package/lib/cloud/device.js +153 -22
- package/lib/cloud/gateway.d.ts +254 -0
- package/lib/cloud/gateway.js +269 -9
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +121 -0
- package/lib/cloud/interface.d.ts +222 -44
- package/lib/cloud/interface.js +15 -2
- package/lib/cloud/laser-clean/deleteCleaningRecord/index.d.ts +27 -0
- package/lib/cloud/laser-clean/deleteCleaningRecord/index.js +28 -0
- package/lib/cloud/laser-clean/deleteCleaningRecord/type.d.ts +7 -0
- package/lib/cloud/laser-clean/deleteCleaningRecord/type.js +1 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.d.ts +27 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.js +28 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.d.ts +7 -0
- package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.js +1 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.d.ts +27 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.js +28 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.d.ts +7 -0
- package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.js +1 -0
- package/lib/cloud/laser-clean/getCleaningRecords/index.d.ts +30 -0
- package/lib/cloud/laser-clean/getCleaningRecords/index.js +31 -0
- package/lib/cloud/laser-clean/getCleaningRecords/type.d.ts +39 -0
- package/lib/cloud/laser-clean/getCleaningRecords/type.js +1 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.d.ts +29 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.js +30 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.d.ts +30 -0
- package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.js +1 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/index.d.ts +29 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/index.js +30 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/type.d.ts +35 -0
- package/lib/cloud/laser-clean/getGyroCleanRecords/type.js +1 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.d.ts +28 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.js +29 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.d.ts +28 -0
- package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.js +1 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/index.d.ts +24 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/index.js +25 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/type.d.ts +29 -0
- package/lib/cloud/laser-clean/getMultipleMapFiles/type.js +1 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/index.d.ts +24 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/index.js +25 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/type.d.ts +26 -0
- package/lib/cloud/laser-clean/getSweeperStorageConfig/type.js +1 -0
- package/lib/cloud/laser-clean/getVoiceList/index.d.ts +28 -0
- package/lib/cloud/laser-clean/getVoiceList/index.js +29 -0
- package/lib/cloud/laser-clean/getVoiceList/type.d.ts +48 -0
- package/lib/cloud/laser-clean/getVoiceList/type.js +1 -0
- package/lib/cloud/laser-clean/index.d.ts +1 -1
- package/lib/cloud/laser-clean/index.js +1 -1
- package/lib/cloud/laser-clean/map.d.ts +5 -7
- package/lib/cloud/laser-clean/map.js +5 -9
- package/lib/cloud/laser-clean/record.d.ts +5 -6
- package/lib/cloud/laser-clean/record.js +5 -7
- package/lib/cloud/laser-clean/renameHistoryMap/index.d.ts +28 -0
- package/lib/cloud/laser-clean/renameHistoryMap/index.js +29 -0
- package/lib/cloud/laser-clean/renameHistoryMap/type.d.ts +9 -0
- package/lib/cloud/laser-clean/renameHistoryMap/type.js +1 -0
- package/lib/cloud/laser-clean/voice.d.ts +1 -3
- package/lib/cloud/laser-clean/voice.js +1 -4
- package/lib/cloud/linkage.d.ts +271 -53
- package/lib/cloud/linkage.js +256 -51
- package/lib/cloud/remoteGroup.d.ts +37 -0
- package/lib/cloud/remoteGroup.js +37 -0
- package/lib/cloud/timer.d.ts +104 -26
- package/lib/cloud/timer.js +104 -26
- package/lib/getApp/index.thing.d.ts +47 -1
- package/lib/getApp/index.thing.js +40 -2
- package/lib/getBoundingClientRect/index.thing.d.ts +101 -1
- package/lib/getBoundingClientRect/index.thing.js +59 -0
- package/lib/getCurrentPages/index.thing.d.ts +40 -15
- package/lib/getCurrentPages/index.thing.js +36 -15
- package/lib/getCustomConfig/index.d.ts +5 -2
- package/lib/getCustomConfig/index.thing.d.ts +68 -2
- package/lib/getCustomConfig/index.thing.js +62 -0
- package/lib/getCustomConfig/index.wechat.d.ts +5 -2
- package/lib/getCustomConfig/type.d.ts +26 -15
- package/lib/getElementById/index.thing.d.ts +42 -1
- package/lib/getElementById/index.thing.js +40 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +4 -2
- package/lib/nativeRouters/common.d.ts +8 -0
- package/lib/nativeRouters/device.d.ts +137 -5
- package/lib/nativeRouters/device.js +138 -6
- package/lib/nativeRouters/gw.d.ts +58 -8
- package/lib/nativeRouters/gw.js +57 -8
- package/lib/nativeRouters/outdoors.d.ts +16 -3
- package/lib/nativeRouters/outdoors.js +16 -3
- package/lib/nativeRouters/remoteGroup.d.ts +23 -0
- package/lib/nativeRouters/remoteGroup.js +23 -0
- package/lib/nativeRouters/root.d.ts +19 -0
- package/lib/nativeRouters/root.js +17 -0
- package/lib/openGroupCreate/index.d.ts +45 -0
- package/lib/openGroupCreate/index.js +32 -0
- package/package.json +5 -5
package/lib/cloud/interface.d.ts
CHANGED
|
@@ -327,6 +327,9 @@ export interface IGetLastTimerPeriodResponse {
|
|
|
327
327
|
timers: Timers[];
|
|
328
328
|
}
|
|
329
329
|
export interface IGetAstronomicalList {
|
|
330
|
+
/**
|
|
331
|
+
* 设备 ID 或群组 ID
|
|
332
|
+
*/
|
|
330
333
|
bizId: string;
|
|
331
334
|
}
|
|
332
335
|
export interface IGetAstronomicalListResponse {
|
|
@@ -454,7 +457,13 @@ export interface IUpdateBillConfigure {
|
|
|
454
457
|
billType: number;
|
|
455
458
|
}
|
|
456
459
|
export interface IGetDpsInfos {
|
|
460
|
+
/**
|
|
461
|
+
* 网关 ID,直连设备值同 devId,子设备则传网关的设备 ID
|
|
462
|
+
*/
|
|
457
463
|
gwId: string;
|
|
464
|
+
/**
|
|
465
|
+
* 设备 ID
|
|
466
|
+
*/
|
|
458
467
|
devId: string;
|
|
459
468
|
}
|
|
460
469
|
export interface IGetDpsInfosResponse {
|
|
@@ -484,9 +493,21 @@ export interface IGetDpsInfosResponse {
|
|
|
484
493
|
type: string;
|
|
485
494
|
}
|
|
486
495
|
export interface IUpdateDpName {
|
|
496
|
+
/**
|
|
497
|
+
* 设备 ID
|
|
498
|
+
*/
|
|
487
499
|
devId: string;
|
|
500
|
+
/**
|
|
501
|
+
* DP ID
|
|
502
|
+
*/
|
|
488
503
|
dpId: string;
|
|
504
|
+
/**
|
|
505
|
+
* DP 自定义名称
|
|
506
|
+
*/
|
|
489
507
|
name: string;
|
|
508
|
+
/**
|
|
509
|
+
* 网关 ID,可不传
|
|
510
|
+
*/
|
|
490
511
|
gwId?: string;
|
|
491
512
|
}
|
|
492
513
|
export interface IGetGroupDpsInfosResponse {
|
|
@@ -516,8 +537,17 @@ export interface IGetGroupDpsInfosResponse {
|
|
|
516
537
|
type: string;
|
|
517
538
|
}
|
|
518
539
|
export interface IUpdateGroupDpName {
|
|
540
|
+
/**
|
|
541
|
+
* 群组 ID
|
|
542
|
+
*/
|
|
519
543
|
group: string;
|
|
544
|
+
/**
|
|
545
|
+
* DP ID
|
|
546
|
+
*/
|
|
520
547
|
dpId: string;
|
|
548
|
+
/**
|
|
549
|
+
* DP 自定义名称
|
|
550
|
+
*/
|
|
521
551
|
name: string;
|
|
522
552
|
}
|
|
523
553
|
export interface IGetWeatherQuality {
|
|
@@ -725,12 +755,27 @@ export interface IGetWeathersResponse {
|
|
|
725
755
|
}>;
|
|
726
756
|
}
|
|
727
757
|
export interface ISaveCustomizePosition {
|
|
758
|
+
/**
|
|
759
|
+
* 设备 ID
|
|
760
|
+
*/
|
|
728
761
|
devId: string;
|
|
762
|
+
/**
|
|
763
|
+
* 经度
|
|
764
|
+
*/
|
|
729
765
|
lon: string;
|
|
766
|
+
/**
|
|
767
|
+
* 纬度
|
|
768
|
+
*/
|
|
730
769
|
lat: string;
|
|
770
|
+
/**
|
|
771
|
+
* 位置名称(目前没用,不影响天气返回结果)
|
|
772
|
+
*/
|
|
731
773
|
locationName?: string;
|
|
732
774
|
}
|
|
733
775
|
export interface IGetCustomizePosition {
|
|
776
|
+
/**
|
|
777
|
+
* 设备 ID
|
|
778
|
+
*/
|
|
734
779
|
devId: string;
|
|
735
780
|
}
|
|
736
781
|
export interface IGetCustomizePositionResponse {
|
|
@@ -928,34 +973,57 @@ export interface IAlarmSdk {
|
|
|
928
973
|
setAlarmSwitch: any;
|
|
929
974
|
}
|
|
930
975
|
export interface IGetLinkageDeviceList {
|
|
976
|
+
/** 家庭 ID */
|
|
931
977
|
gid: number;
|
|
978
|
+
/** 请求类型 */
|
|
932
979
|
sourceType: string;
|
|
933
980
|
}
|
|
934
|
-
export
|
|
981
|
+
export interface ILinkageDevice {
|
|
982
|
+
/** 设备品类 */
|
|
935
983
|
category: string;
|
|
984
|
+
/** 设备 DP 点列表 */
|
|
936
985
|
datapoints: any[];
|
|
986
|
+
/** 设备 ID */
|
|
937
987
|
devId: string;
|
|
988
|
+
/** 设备图标地址 */
|
|
938
989
|
iconUrl: string;
|
|
990
|
+
/** 设备名称 */
|
|
939
991
|
name: string;
|
|
992
|
+
/** 产品 ID */
|
|
940
993
|
productId: string;
|
|
941
|
-
}
|
|
942
|
-
export
|
|
994
|
+
}
|
|
995
|
+
export interface ISceneListItem {
|
|
996
|
+
/** 执行动作 */
|
|
943
997
|
actions: any[];
|
|
998
|
+
/** 属性 */
|
|
944
999
|
attribute: number;
|
|
1000
|
+
/** 审核状态 */
|
|
945
1001
|
auditStatus: number;
|
|
1002
|
+
/** 背景图地址 */
|
|
946
1003
|
background: string;
|
|
1004
|
+
/** 面板绑定 */
|
|
947
1005
|
boundForPanel: boolean;
|
|
1006
|
+
/** WiFi 面板绑定 */
|
|
948
1007
|
boundForWiFiPanel: boolean;
|
|
1008
|
+
/** 规则 code */
|
|
949
1009
|
code: string;
|
|
1010
|
+
/** 通用字段 */
|
|
950
1011
|
commonField: string;
|
|
1012
|
+
/** 图标 */
|
|
951
1013
|
coverIcon: string;
|
|
1014
|
+
/** 禁用时间 */
|
|
952
1015
|
disableTime: number;
|
|
1016
|
+
/** 背景颜色 */
|
|
953
1017
|
displayColor: string;
|
|
1018
|
+
/** 规则是否启用 */
|
|
954
1019
|
enabled: true;
|
|
1020
|
+
/** 设备 ID */
|
|
955
1021
|
devId: string;
|
|
1022
|
+
/** 联动名称 */
|
|
956
1023
|
name: string;
|
|
1024
|
+
/** 执行规则 ID */
|
|
957
1025
|
id: string;
|
|
958
|
-
}
|
|
1026
|
+
}
|
|
959
1027
|
export interface ISceneAction {
|
|
960
1028
|
/**
|
|
961
1029
|
* 执行动作的显示名称
|
|
@@ -1017,11 +1085,14 @@ export interface ISceneAction {
|
|
|
1017
1085
|
/**
|
|
1018
1086
|
* 一键执行类型的联动规则数据
|
|
1019
1087
|
*/
|
|
1020
|
-
export
|
|
1088
|
+
export interface ISceneListItemV2 {
|
|
1021
1089
|
/**
|
|
1022
1090
|
* 执行动作
|
|
1023
1091
|
*/
|
|
1024
1092
|
actions: ISceneAction[];
|
|
1093
|
+
/**
|
|
1094
|
+
* 是否为告警问题
|
|
1095
|
+
*/
|
|
1025
1096
|
alarmIssue: boolean;
|
|
1026
1097
|
/**
|
|
1027
1098
|
* 属性
|
|
@@ -1043,6 +1114,9 @@ export type IGetSceneListResponseV2 = Array<{
|
|
|
1043
1114
|
* 面板绑定
|
|
1044
1115
|
*/
|
|
1045
1116
|
boundForPanel: boolean;
|
|
1117
|
+
/**
|
|
1118
|
+
* WiFi 面板绑定
|
|
1119
|
+
*/
|
|
1046
1120
|
boundForWiFiPanel: boolean;
|
|
1047
1121
|
/**
|
|
1048
1122
|
* 规则 code
|
|
@@ -1052,12 +1126,21 @@ export type IGetSceneListResponseV2 = Array<{
|
|
|
1052
1126
|
* 通用json字段,比如本地联动会存网关id,gwId
|
|
1053
1127
|
*/
|
|
1054
1128
|
commonField: string;
|
|
1129
|
+
/**
|
|
1130
|
+
* 是否包含已删除的设备
|
|
1131
|
+
*/
|
|
1055
1132
|
containDeviceDelete: boolean;
|
|
1056
1133
|
/**
|
|
1057
1134
|
* 图标
|
|
1058
1135
|
*/
|
|
1059
1136
|
coverIcon: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* 规则描述
|
|
1139
|
+
*/
|
|
1060
1140
|
description?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* 禁用时间戳
|
|
1143
|
+
*/
|
|
1061
1144
|
disableTime?: number;
|
|
1062
1145
|
/**
|
|
1063
1146
|
* 背景颜色
|
|
@@ -1067,13 +1150,25 @@ export type IGetSceneListResponseV2 = Array<{
|
|
|
1067
1150
|
* 规则是否启用
|
|
1068
1151
|
*/
|
|
1069
1152
|
enabled: boolean;
|
|
1153
|
+
/**
|
|
1154
|
+
* 是否强制云端触发
|
|
1155
|
+
*/
|
|
1070
1156
|
forceCloudTrigger: boolean;
|
|
1071
1157
|
/**
|
|
1072
1158
|
* 执行规则 id
|
|
1073
1159
|
*/
|
|
1074
1160
|
id: string;
|
|
1161
|
+
/**
|
|
1162
|
+
* 是否为 IoT 自动告警
|
|
1163
|
+
*/
|
|
1075
1164
|
iotAutoAlarm: boolean;
|
|
1165
|
+
/**
|
|
1166
|
+
* 是否为告警问题
|
|
1167
|
+
*/
|
|
1076
1168
|
isAlarmIssue: boolean;
|
|
1169
|
+
/**
|
|
1170
|
+
* 是否为逻辑规则
|
|
1171
|
+
*/
|
|
1077
1172
|
isLogicRule: boolean;
|
|
1078
1173
|
/**
|
|
1079
1174
|
* 联动类型
|
|
@@ -1083,6 +1178,9 @@ export type IGetSceneListResponseV2 = Array<{
|
|
|
1083
1178
|
* 是否本地联动
|
|
1084
1179
|
*/
|
|
1085
1180
|
localLinkage: boolean;
|
|
1181
|
+
/**
|
|
1182
|
+
* 是否逻辑规则
|
|
1183
|
+
*/
|
|
1086
1184
|
logicRule: boolean;
|
|
1087
1185
|
/**
|
|
1088
1186
|
* 匹配类型
|
|
@@ -1095,20 +1193,53 @@ export type IGetSceneListResponseV2 = Array<{
|
|
|
1095
1193
|
* 联动名称或备注
|
|
1096
1194
|
*/
|
|
1097
1195
|
name: string;
|
|
1196
|
+
/**
|
|
1197
|
+
* 是否需要清理 gidSid
|
|
1198
|
+
*/
|
|
1098
1199
|
needCleanGidSid: boolean;
|
|
1200
|
+
/**
|
|
1201
|
+
* 是否需要校验不在工作时间段
|
|
1202
|
+
*/
|
|
1099
1203
|
needValidOutOfWork: boolean;
|
|
1204
|
+
/**
|
|
1205
|
+
* 是否为新本地场景
|
|
1206
|
+
*/
|
|
1100
1207
|
newLocalScene: boolean;
|
|
1208
|
+
/**
|
|
1209
|
+
* 是否离网关同步
|
|
1210
|
+
*/
|
|
1101
1211
|
offGwSync: boolean;
|
|
1212
|
+
/**
|
|
1213
|
+
* 离网关同步是否成功
|
|
1214
|
+
*/
|
|
1102
1215
|
offGwSyncSuccess: boolean;
|
|
1216
|
+
/**
|
|
1217
|
+
* 排序权重
|
|
1218
|
+
*/
|
|
1103
1219
|
orderWeight: number;
|
|
1220
|
+
/**
|
|
1221
|
+
* 不在工作时间段标记
|
|
1222
|
+
*/
|
|
1104
1223
|
outOfWork: number;
|
|
1105
1224
|
/**
|
|
1106
|
-
* 家庭id
|
|
1225
|
+
* 家庭 id
|
|
1107
1226
|
*/
|
|
1108
1227
|
ownerId: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* 面板类型
|
|
1230
|
+
*/
|
|
1109
1231
|
panelType: number;
|
|
1232
|
+
/**
|
|
1233
|
+
* 权限 code
|
|
1234
|
+
*/
|
|
1110
1235
|
permissionCode: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* 规则体裁
|
|
1238
|
+
*/
|
|
1111
1239
|
ruleGenre: number;
|
|
1240
|
+
/**
|
|
1241
|
+
* 规则来源
|
|
1242
|
+
*/
|
|
1112
1243
|
ruleSource: number;
|
|
1113
1244
|
/**
|
|
1114
1245
|
* 规则类型
|
|
@@ -1123,20 +1254,33 @@ export type IGetSceneListResponseV2 = Array<{
|
|
|
1123
1254
|
* 运行环境
|
|
1124
1255
|
*/
|
|
1125
1256
|
runtimeEnv: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* 是否为场景规则
|
|
1259
|
+
*/
|
|
1126
1260
|
scenarioRule: boolean;
|
|
1261
|
+
/**
|
|
1262
|
+
* 规则状态
|
|
1263
|
+
*/
|
|
1127
1264
|
status: boolean;
|
|
1265
|
+
/**
|
|
1266
|
+
* 状态条件列表
|
|
1267
|
+
*/
|
|
1128
1268
|
statusConditions: any[];
|
|
1129
1269
|
/**
|
|
1130
1270
|
* 是否显示在首页顶部
|
|
1131
1271
|
*/
|
|
1132
1272
|
stickyOnTop: boolean;
|
|
1273
|
+
/**
|
|
1274
|
+
* 子匹配类型
|
|
1275
|
+
*/
|
|
1133
1276
|
subMatchType: number;
|
|
1134
1277
|
/**
|
|
1135
1278
|
* 用户 id
|
|
1136
1279
|
*/
|
|
1137
1280
|
uid: string;
|
|
1138
|
-
}
|
|
1281
|
+
}
|
|
1139
1282
|
export interface IBindRule {
|
|
1283
|
+
/** 设备 ID */
|
|
1140
1284
|
devId: string;
|
|
1141
1285
|
/**
|
|
1142
1286
|
* 与面板/设备建立绑定关系,通常为设备ID、DP点、群组、规则,dpId#value等
|
|
@@ -1146,10 +1290,15 @@ export interface IBindRule {
|
|
|
1146
1290
|
* 当associativeEntityId不足以区分情况下使用,通常可关联设备、DP值、群组、规则等
|
|
1147
1291
|
*/
|
|
1148
1292
|
associativeEntityId: AssociativeEntityId;
|
|
1293
|
+
/** 关联场景 ID */
|
|
1149
1294
|
ruleId: string;
|
|
1295
|
+
/** 关联 DP 点 */
|
|
1150
1296
|
entitySubIds: string;
|
|
1297
|
+
/** 关联 DP 点、动作组合 */
|
|
1151
1298
|
expr: [string[]];
|
|
1299
|
+
/** 业务域 */
|
|
1152
1300
|
bizDomain: string;
|
|
1301
|
+
/** 家庭 ID */
|
|
1153
1302
|
gid: string;
|
|
1154
1303
|
/**
|
|
1155
1304
|
* 拓展字段,非必传
|
|
@@ -1190,18 +1339,41 @@ export interface IBindRuleResponse {
|
|
|
1190
1339
|
*/
|
|
1191
1340
|
triggerRuleVO: any;
|
|
1192
1341
|
}
|
|
1342
|
+
/**
|
|
1343
|
+
* 实体类型枚举
|
|
1344
|
+
*/
|
|
1193
1345
|
declare enum EntityType {
|
|
1194
|
-
|
|
1346
|
+
/** 关联实体为设备 */
|
|
1347
|
+
DEVICE = 1,
|
|
1348
|
+
/** 关联实体为联动规则 */
|
|
1195
1349
|
RULE = 2
|
|
1196
1350
|
}
|
|
1197
1351
|
export interface IGetBindRuleList {
|
|
1352
|
+
/** 业务域 */
|
|
1198
1353
|
bizDomain: string;
|
|
1354
|
+
/** 设备 ID */
|
|
1199
1355
|
devId: string;
|
|
1356
|
+
/** 与面板/设备建立绑定关系标识 */
|
|
1200
1357
|
sourceEntityId?: string;
|
|
1358
|
+
/** 实体类型,1 为设备,2 为联动规则 */
|
|
1201
1359
|
entityType: EntityType;
|
|
1360
|
+
/** 家庭 ID */
|
|
1202
1361
|
gid: string;
|
|
1203
1362
|
}
|
|
1204
|
-
|
|
1363
|
+
/**
|
|
1364
|
+
* 绑定规则关联的场景项
|
|
1365
|
+
*/
|
|
1366
|
+
export interface IBindRuleSceneItem extends ISceneListItemV2 {
|
|
1367
|
+
/**
|
|
1368
|
+
* 无线开关规则是否启用
|
|
1369
|
+
*/
|
|
1370
|
+
triggerRuleEnable: boolean;
|
|
1371
|
+
/**
|
|
1372
|
+
* 无线开关执行规则 id
|
|
1373
|
+
*/
|
|
1374
|
+
triggerRuleId: string;
|
|
1375
|
+
}
|
|
1376
|
+
export interface IBindRuleListItem {
|
|
1205
1377
|
/**
|
|
1206
1378
|
* 与面板/设备建立绑定关系,通常为设备ID、DP点、群组、规则,dpId#value等
|
|
1207
1379
|
*/
|
|
@@ -1209,16 +1381,7 @@ export type IGetBindRuleListResponse = Array<{
|
|
|
1209
1381
|
/**
|
|
1210
1382
|
* 关联实体的值列表
|
|
1211
1383
|
*/
|
|
1212
|
-
associativeEntityValueList:
|
|
1213
|
-
/**
|
|
1214
|
-
* 无线开关规则是否启用
|
|
1215
|
-
*/
|
|
1216
|
-
triggerRuleEnable: boolean;
|
|
1217
|
-
/**
|
|
1218
|
-
* 无线开关执行规则 id
|
|
1219
|
-
*/
|
|
1220
|
-
triggerRuleId: string;
|
|
1221
|
-
}>;
|
|
1384
|
+
associativeEntityValueList: IBindRuleSceneItem[];
|
|
1222
1385
|
/**
|
|
1223
1386
|
* 绑定 id,一般用来解绑
|
|
1224
1387
|
*/
|
|
@@ -1235,23 +1398,29 @@ export type IGetBindRuleListResponse = Array<{
|
|
|
1235
1398
|
* 设备 ID
|
|
1236
1399
|
*/
|
|
1237
1400
|
sourceEntityId: string;
|
|
1238
|
-
}
|
|
1401
|
+
}
|
|
1239
1402
|
export interface IUnbindRule {
|
|
1240
1403
|
/**
|
|
1241
|
-
*
|
|
1404
|
+
* 绑定 ID
|
|
1242
1405
|
*/
|
|
1243
1406
|
bindId: string;
|
|
1244
1407
|
/**
|
|
1245
|
-
* 家庭
|
|
1408
|
+
* 家庭 ID
|
|
1246
1409
|
*/
|
|
1247
1410
|
gid: string;
|
|
1248
1411
|
}
|
|
1249
1412
|
export interface IRemoveRule {
|
|
1413
|
+
/** 业务域 */
|
|
1250
1414
|
bizDomain: string;
|
|
1415
|
+
/** 与面板/设备建立绑定关系标识 */
|
|
1251
1416
|
sourceEntityId?: string;
|
|
1417
|
+
/** 设备 ID */
|
|
1252
1418
|
devId: string;
|
|
1419
|
+
/** 绑定关系标识 */
|
|
1253
1420
|
associativeEntityId: AssociativeEntityId;
|
|
1421
|
+
/** 规则 ID */
|
|
1254
1422
|
associativeEntityValue: AssociativeEntityValue;
|
|
1423
|
+
/** 家庭 ID */
|
|
1255
1424
|
gid: string;
|
|
1256
1425
|
}
|
|
1257
1426
|
export interface IGetDevProperty {
|
|
@@ -1268,7 +1437,7 @@ export interface IGetDevProperty {
|
|
|
1268
1437
|
*/
|
|
1269
1438
|
code: string;
|
|
1270
1439
|
}
|
|
1271
|
-
export
|
|
1440
|
+
export interface IDevPropertyItem {
|
|
1272
1441
|
/**
|
|
1273
1442
|
* 业务类型
|
|
1274
1443
|
*/
|
|
@@ -1301,7 +1470,8 @@ export type IGetDevPropertyResponse = Array<{
|
|
|
1301
1470
|
* 属性值
|
|
1302
1471
|
*/
|
|
1303
1472
|
value: string;
|
|
1304
|
-
}
|
|
1473
|
+
}
|
|
1474
|
+
export type IGetDevPropertyResponse = IDevPropertyItem[];
|
|
1305
1475
|
export interface ISaveDevProperty {
|
|
1306
1476
|
/**
|
|
1307
1477
|
* 设备 ID
|
|
@@ -1339,25 +1509,29 @@ export interface IGetZigbeeLocalGroupRelation {
|
|
|
1339
1509
|
*/
|
|
1340
1510
|
devId: string;
|
|
1341
1511
|
}
|
|
1512
|
+
/**
|
|
1513
|
+
* Zigbee 本地群组关系项
|
|
1514
|
+
*/
|
|
1515
|
+
export interface IZigbeeLocalGroupRelationItem {
|
|
1516
|
+
/**
|
|
1517
|
+
* 功能点 code
|
|
1518
|
+
*/
|
|
1519
|
+
code: string;
|
|
1520
|
+
/**
|
|
1521
|
+
* 排序
|
|
1522
|
+
*/
|
|
1523
|
+
order: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* 设备端用到的群组 localId
|
|
1526
|
+
*/
|
|
1527
|
+
localId: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* 面板使用的 code,用来做映射,值以 300 为前缀,例如 3001
|
|
1530
|
+
*/
|
|
1531
|
+
categoryCode: string;
|
|
1532
|
+
}
|
|
1342
1533
|
export type IGetZigbeeLocalGroupRelationResponse = {
|
|
1343
|
-
locals:
|
|
1344
|
-
/**
|
|
1345
|
-
* 功能点 code
|
|
1346
|
-
*/
|
|
1347
|
-
code: string;
|
|
1348
|
-
/**
|
|
1349
|
-
* 排序
|
|
1350
|
-
*/
|
|
1351
|
-
order: number;
|
|
1352
|
-
/**
|
|
1353
|
-
* 设备端用到的群组 localId
|
|
1354
|
-
*/
|
|
1355
|
-
localId: string;
|
|
1356
|
-
/**
|
|
1357
|
-
* 面板使用的 code,用来做映射,值以 300 为前缀,例如 3001
|
|
1358
|
-
*/
|
|
1359
|
-
categoryCode: string;
|
|
1360
|
-
}>;
|
|
1534
|
+
locals: IZigbeeLocalGroupRelationItem[];
|
|
1361
1535
|
};
|
|
1362
1536
|
export interface IGetZigbeeLocalGroupDeviceList {
|
|
1363
1537
|
/**
|
|
@@ -1379,7 +1553,10 @@ export interface IGetZigbeeLocalGroupDeviceList {
|
|
|
1379
1553
|
*/
|
|
1380
1554
|
homeId: string;
|
|
1381
1555
|
}
|
|
1382
|
-
|
|
1556
|
+
/**
|
|
1557
|
+
* Zigbee 本地群组设备信息
|
|
1558
|
+
*/
|
|
1559
|
+
export interface IZigbeeLocalGroupDevice {
|
|
1383
1560
|
/**
|
|
1384
1561
|
* 设备产品 id
|
|
1385
1562
|
*/
|
|
@@ -1420,7 +1597,8 @@ export type IGetZigbeeLocalGroupDeviceListResponse = Array<{
|
|
|
1420
1597
|
* 网关是否在线
|
|
1421
1598
|
*/
|
|
1422
1599
|
gwOnline: boolean;
|
|
1423
|
-
}
|
|
1600
|
+
}
|
|
1601
|
+
export type IGetZigbeeLocalGroupDeviceListResponse = IZigbeeLocalGroupDevice[];
|
|
1424
1602
|
export type QueryGetMessageList = {
|
|
1425
1603
|
sourceIds: string[];
|
|
1426
1604
|
limit: number;
|
package/lib/cloud/interface.js
CHANGED
|
@@ -14,12 +14,25 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* 一键执行类型的联动规则数据
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* 实体类型枚举
|
|
19
|
+
*/
|
|
17
20
|
var EntityType = /*#__PURE__*/function (EntityType) {
|
|
21
|
+
/** 关联实体为设备 */
|
|
18
22
|
EntityType[EntityType["DEVICE"] = 1] = "DEVICE";
|
|
19
|
-
|
|
20
|
-
EntityType[EntityType["RULE"] = 2] = "RULE";
|
|
23
|
+
/** 关联实体为联动规则 */
|
|
24
|
+
EntityType[EntityType["RULE"] = 2] = "RULE";
|
|
21
25
|
return EntityType;
|
|
22
26
|
}(EntityType || {});
|
|
27
|
+
/**
|
|
28
|
+
* 绑定规则关联的场景项
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Zigbee 本地群组关系项
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Zigbee 本地群组设备信息
|
|
35
|
+
*/
|
|
23
36
|
export let ReportType = /*#__PURE__*/function (ReportType) {
|
|
24
37
|
ReportType[ReportType["DAILY"] = 1] = "DAILY";
|
|
25
38
|
ReportType[ReportType["WEEKLY"] = 2] = "WEEKLY";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DeleteCleaningRecordParams } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 删除清扫记录
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.5.36
|
|
6
|
+
* @since 基础库 2.21.0
|
|
7
|
+
* @param params - 包含设备 ID 和要删除的记录 ID 数组
|
|
8
|
+
* @returns Promise,resolve 值为 boolean,表示删除是否成功
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, deleteCleaningRecord } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleDelete = async () => {
|
|
16
|
+
* const success = await deleteCleaningRecord({
|
|
17
|
+
* devId: 'your-device-id',
|
|
18
|
+
* fileIds: [1001, 1002],
|
|
19
|
+
* });
|
|
20
|
+
* console.log('删除结果:', success);
|
|
21
|
+
* };
|
|
22
|
+
* return <Button onClick={handleDelete}>删除记录</Button>;
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const deleteCleaningRecord: (params: DeleteCleaningRecordParams) => Promise<boolean>;
|
|
27
|
+
export default deleteCleaningRecord;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 删除清扫记录
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.5.36
|
|
5
|
+
* @since 基础库 2.21.0
|
|
6
|
+
* @param params - 包含设备 ID 和要删除的记录 ID 数组
|
|
7
|
+
* @returns Promise,resolve 值为 boolean,表示删除是否成功
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import React from 'react';
|
|
11
|
+
* import { Button, deleteCleaningRecord } from '@ray-js/ray';
|
|
12
|
+
*
|
|
13
|
+
* export default function Demo() {
|
|
14
|
+
* const handleDelete = async () => {
|
|
15
|
+
* const success = await deleteCleaningRecord({
|
|
16
|
+
* devId: 'your-device-id',
|
|
17
|
+
* fileIds: [1001, 1002],
|
|
18
|
+
* });
|
|
19
|
+
* console.log('删除结果:', success);
|
|
20
|
+
* };
|
|
21
|
+
* return <Button onClick={handleDelete}>删除记录</Button>;
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
const deleteCleaningRecord = function (params) {
|
|
26
|
+
return ty.deleteCleaningRecord(params);
|
|
27
|
+
};
|
|
28
|
+
export default deleteCleaningRecord;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DeleteGyroCleanRecordParams } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* 删除惯导扫地机的清扫记录
|
|
4
|
+
* @public
|
|
5
|
+
* @since @ray-js/ray 1.7.14
|
|
6
|
+
* @since 基础库 2.29.0
|
|
7
|
+
* @param params - 包含设备 ID 和要删除的记录 ID
|
|
8
|
+
* @returns Promise,resolve 值为 boolean,表示删除是否成功
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import React from 'react';
|
|
12
|
+
* import { Button, deleteGyroCleanRecord } from '@ray-js/ray';
|
|
13
|
+
*
|
|
14
|
+
* export default function Demo() {
|
|
15
|
+
* const handleDelete = async () => {
|
|
16
|
+
* const success = await deleteGyroCleanRecord({
|
|
17
|
+
* devId: 'your-device-id',
|
|
18
|
+
* uuid: 'record-id-1',
|
|
19
|
+
* });
|
|
20
|
+
* console.log('删除结果:', success);
|
|
21
|
+
* };
|
|
22
|
+
* return <Button onClick={handleDelete}>删除记录</Button>;
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const deleteGyroCleanRecord: (params: DeleteGyroCleanRecordParams) => Promise<boolean>;
|
|
27
|
+
export default deleteGyroCleanRecord;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 删除惯导扫地机的清扫记录
|
|
3
|
+
* @public
|
|
4
|
+
* @since @ray-js/ray 1.7.14
|
|
5
|
+
* @since 基础库 2.29.0
|
|
6
|
+
* @param params - 包含设备 ID 和要删除的记录 ID
|
|
7
|
+
* @returns Promise,resolve 值为 boolean,表示删除是否成功
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import React from 'react';
|
|
11
|
+
* import { Button, deleteGyroCleanRecord } from '@ray-js/ray';
|
|
12
|
+
*
|
|
13
|
+
* export default function Demo() {
|
|
14
|
+
* const handleDelete = async () => {
|
|
15
|
+
* const success = await deleteGyroCleanRecord({
|
|
16
|
+
* devId: 'your-device-id',
|
|
17
|
+
* uuid: 'record-id-1',
|
|
18
|
+
* });
|
|
19
|
+
* console.log('删除结果:', success);
|
|
20
|
+
* };
|
|
21
|
+
* return <Button onClick={handleDelete}>删除记录</Button>;
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
const deleteGyroCleanRecord = function (params) {
|
|
26
|
+
return ty.deleteGyroCleanRecord(params);
|
|
27
|
+
};
|
|
28
|
+
export default deleteGyroCleanRecord;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|