@ray-js/api 1.5.13 → 1.5.15
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/lib/cloud/interface.d.ts
CHANGED
@@ -330,36 +330,117 @@ export interface IGetAstronomicalList {
|
|
330
330
|
bizId: string;
|
331
331
|
}
|
332
332
|
export interface IGetAstronomicalListResponse {
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
333
|
+
/**
|
334
|
+
* 日出日落类型
|
335
|
+
*/
|
336
|
+
astronomicalType: number;
|
337
|
+
/**
|
338
|
+
* 设备或群组 ID
|
339
|
+
*/
|
340
|
+
bizId: string;
|
341
|
+
/**
|
342
|
+
* 资源类型。0:单设备。1:群组设备。
|
343
|
+
*/
|
344
|
+
bizType: number;
|
345
|
+
/**
|
346
|
+
* DP 值
|
347
|
+
*/
|
348
|
+
dps: string;
|
349
|
+
/**
|
350
|
+
* 定时任务 ID
|
351
|
+
*/
|
352
|
+
id: number;
|
353
|
+
/**
|
354
|
+
* 经度
|
355
|
+
*/
|
356
|
+
lat: number;
|
357
|
+
/**
|
358
|
+
* 纬度
|
359
|
+
*/
|
360
|
+
lon: number;
|
361
|
+
/**
|
362
|
+
* 周循环
|
363
|
+
*/
|
364
|
+
loops: string;
|
365
|
+
/**
|
366
|
+
* 下一个日出时间
|
367
|
+
*/
|
368
|
+
nextSunSet: string;
|
369
|
+
/**
|
370
|
+
* 定时偏移执行类型
|
371
|
+
*/
|
372
|
+
offsetType: number;
|
373
|
+
/**
|
374
|
+
* 定时任务状态,0 关闭,1 开启,2 无效/已删除
|
375
|
+
*/
|
376
|
+
status: number;
|
377
|
+
/**
|
378
|
+
* 定时时间
|
379
|
+
*/
|
380
|
+
time: string;
|
381
|
+
/**
|
382
|
+
* 时区
|
383
|
+
*/
|
384
|
+
timezone: string;
|
347
385
|
}
|
348
386
|
export interface IAstronomical {
|
387
|
+
/**
|
388
|
+
* 定时任务 ID
|
389
|
+
*/
|
390
|
+
id: number;
|
391
|
+
/**
|
392
|
+
* 设备或群组 ID
|
393
|
+
*/
|
349
394
|
bizId: string;
|
395
|
+
/**
|
396
|
+
* 资源类型。0:单设备。1:群组设备。
|
397
|
+
*/
|
350
398
|
bizType: number;
|
399
|
+
/**
|
400
|
+
* 周循环
|
401
|
+
*/
|
351
402
|
loops: string;
|
352
|
-
|
403
|
+
/**
|
404
|
+
* DP 值
|
405
|
+
*/
|
406
|
+
dps: string;
|
407
|
+
/**
|
408
|
+
* 日出日落类型
|
409
|
+
*/
|
353
410
|
astronomicalType: number;
|
411
|
+
/**
|
412
|
+
* 时区
|
413
|
+
*/
|
354
414
|
timezone: string;
|
415
|
+
/**
|
416
|
+
* 定时日期 yyyyMMdd
|
417
|
+
*/
|
355
418
|
date: string;
|
419
|
+
/**
|
420
|
+
* 定时时间
|
421
|
+
*/
|
356
422
|
time: string;
|
423
|
+
/**
|
424
|
+
* 定时偏移执行类型
|
425
|
+
*/
|
357
426
|
offsetType: number;
|
427
|
+
/**
|
428
|
+
* 经度
|
429
|
+
*/
|
358
430
|
lat: number;
|
431
|
+
/**
|
432
|
+
* 纬度
|
433
|
+
*/
|
359
434
|
lon: number;
|
360
435
|
}
|
361
436
|
export interface IUpdateAstronomicalStatus {
|
437
|
+
/**
|
438
|
+
* 定时任务 ID
|
439
|
+
*/
|
362
440
|
id: string;
|
441
|
+
/**
|
442
|
+
* 0:关闭。1:开启
|
443
|
+
*/
|
363
444
|
status: number;
|
364
445
|
}
|
365
446
|
export interface IUpdateBillConfigure {
|
@@ -875,15 +956,205 @@ export type IGetSceneListResponse = Array<{
|
|
875
956
|
name: string;
|
876
957
|
id: string;
|
877
958
|
}>;
|
959
|
+
export interface ISceneAction {
|
960
|
+
/**
|
961
|
+
* 执行动作的显示名称
|
962
|
+
*/
|
963
|
+
actionDisplay: string;
|
964
|
+
/**
|
965
|
+
* 执行动作的执行者
|
966
|
+
*/
|
967
|
+
actionExecutor: string;
|
968
|
+
/**
|
969
|
+
* 执行动作的策略
|
970
|
+
*/
|
971
|
+
actionStrategy: string;
|
972
|
+
/**
|
973
|
+
* 属性值
|
974
|
+
*/
|
975
|
+
attribute: number;
|
976
|
+
/**
|
977
|
+
* 设备删除标记,表示设备是否被删除
|
978
|
+
*/
|
979
|
+
devDelMark: boolean;
|
980
|
+
/**
|
981
|
+
* 动作是否启用
|
982
|
+
*/
|
983
|
+
enabled: boolean;
|
984
|
+
/**
|
985
|
+
* 实体ID,表示动作所属的实体的ID
|
986
|
+
*/
|
987
|
+
entityId: string;
|
988
|
+
/**
|
989
|
+
* 修改时间戳
|
990
|
+
*/
|
991
|
+
gmtModified: number;
|
992
|
+
/**
|
993
|
+
* 动作的唯一ID
|
994
|
+
*/
|
995
|
+
id: string;
|
996
|
+
/**
|
997
|
+
* 网关同步标记,表示是否网关同步
|
998
|
+
*/
|
999
|
+
offGwSync: boolean;
|
1000
|
+
/**
|
1001
|
+
* 动作的顺序号
|
1002
|
+
*/
|
1003
|
+
orderNum: number;
|
1004
|
+
/**
|
1005
|
+
* 规则ID,表示动作所属的规则的ID
|
1006
|
+
*/
|
1007
|
+
ruleId: string;
|
1008
|
+
/**
|
1009
|
+
* 动作状态
|
1010
|
+
*/
|
1011
|
+
status: boolean;
|
1012
|
+
/**
|
1013
|
+
* 用户ID,表示动作所属的用户的ID
|
1014
|
+
*/
|
1015
|
+
uid: string;
|
1016
|
+
}
|
1017
|
+
/**
|
1018
|
+
* 一键执行类型的联动规则数据
|
1019
|
+
*/
|
1020
|
+
export type IGetSceneListResponseV2 = Array<{
|
1021
|
+
/**
|
1022
|
+
* 执行动作
|
1023
|
+
*/
|
1024
|
+
actions: ISceneAction[];
|
1025
|
+
alarmIssue: boolean;
|
1026
|
+
/**
|
1027
|
+
* 属性
|
1028
|
+
* 根据枚举值的2次幂进行位运算
|
1029
|
+
*/
|
1030
|
+
attribute: number;
|
1031
|
+
/**
|
1032
|
+
* 审核状态
|
1033
|
+
* 0. 未审核
|
1034
|
+
* 1. 审核通过
|
1035
|
+
* 2. 审核不通过
|
1036
|
+
*/
|
1037
|
+
auditStatus: number;
|
1038
|
+
/**
|
1039
|
+
* 背景图地址
|
1040
|
+
*/
|
1041
|
+
background?: string;
|
1042
|
+
/**
|
1043
|
+
* 面板绑定
|
1044
|
+
*/
|
1045
|
+
boundForPanel: boolean;
|
1046
|
+
boundForWiFiPanel: boolean;
|
1047
|
+
/**
|
1048
|
+
* 规则 code
|
1049
|
+
*/
|
1050
|
+
code: string;
|
1051
|
+
/**
|
1052
|
+
* 通用json字段,比如本地联动会存网关id,gwId
|
1053
|
+
*/
|
1054
|
+
commonField: string;
|
1055
|
+
containDeviceDelete: boolean;
|
1056
|
+
/**
|
1057
|
+
* 图标
|
1058
|
+
*/
|
1059
|
+
coverIcon: string;
|
1060
|
+
description?: string;
|
1061
|
+
disableTime?: number;
|
1062
|
+
/**
|
1063
|
+
* 背景颜色
|
1064
|
+
*/
|
1065
|
+
displayColor: string;
|
1066
|
+
/**
|
1067
|
+
* 规则是否启用
|
1068
|
+
*/
|
1069
|
+
enabled: boolean;
|
1070
|
+
forceCloudTrigger: boolean;
|
1071
|
+
/**
|
1072
|
+
* 执行规则 id
|
1073
|
+
*/
|
1074
|
+
id: string;
|
1075
|
+
iotAutoAlarm: boolean;
|
1076
|
+
isAlarmIssue: boolean;
|
1077
|
+
isLogicRule: boolean;
|
1078
|
+
/**
|
1079
|
+
* 联动类型
|
1080
|
+
*/
|
1081
|
+
linkageType: number;
|
1082
|
+
/**
|
1083
|
+
* 是否本地联动
|
1084
|
+
*/
|
1085
|
+
localLinkage: boolean;
|
1086
|
+
logicRule: boolean;
|
1087
|
+
/**
|
1088
|
+
* 匹配类型
|
1089
|
+
* 1. 任意条件,多个条件里只要有一个即触发(即 或关系)。
|
1090
|
+
* 2. 全部满足,多个条件全部满足才触发。
|
1091
|
+
* 3. 表态式匹配, 根据 rule 字段的 expr 确定是否满足,条件满足时触发。
|
1092
|
+
*/
|
1093
|
+
matchType: number;
|
1094
|
+
/**
|
1095
|
+
* 联动名称或备注
|
1096
|
+
*/
|
1097
|
+
name: string;
|
1098
|
+
needCleanGidSid: boolean;
|
1099
|
+
needValidOutOfWork: boolean;
|
1100
|
+
newLocalScene: boolean;
|
1101
|
+
offGwSync: boolean;
|
1102
|
+
offGwSyncSuccess: boolean;
|
1103
|
+
orderWeight: number;
|
1104
|
+
outOfWork: number;
|
1105
|
+
/**
|
1106
|
+
* 家庭id
|
1107
|
+
*/
|
1108
|
+
ownerId: string;
|
1109
|
+
panelType: number;
|
1110
|
+
permissionCode: string;
|
1111
|
+
ruleGenre: number;
|
1112
|
+
ruleSource: number;
|
1113
|
+
/**
|
1114
|
+
* 规则类型
|
1115
|
+
* 1. 系统定义
|
1116
|
+
* 2. 商家定义
|
1117
|
+
* 3. 用户定义
|
1118
|
+
* 4. 安防规则
|
1119
|
+
* 5. 服务定义(如 dp 点转发)
|
1120
|
+
*/
|
1121
|
+
ruleType: number;
|
1122
|
+
/**
|
1123
|
+
* 运行环境
|
1124
|
+
*/
|
1125
|
+
runtimeEnv: string;
|
1126
|
+
scenarioRule: boolean;
|
1127
|
+
status: boolean;
|
1128
|
+
statusConditions: any[];
|
1129
|
+
/**
|
1130
|
+
* 是否显示在首页顶部
|
1131
|
+
*/
|
1132
|
+
stickyOnTop: boolean;
|
1133
|
+
subMatchType: number;
|
1134
|
+
/**
|
1135
|
+
* 用户 id
|
1136
|
+
*/
|
1137
|
+
uid: string;
|
1138
|
+
}>;
|
878
1139
|
export interface IBindRule {
|
879
1140
|
devId: string;
|
1141
|
+
/**
|
1142
|
+
* 与面板/设备建立绑定关系,通常为设备ID、DP点、群组、规则,dpId#value等
|
1143
|
+
*/
|
880
1144
|
sourceEntityId?: string;
|
1145
|
+
/**
|
1146
|
+
* 当associativeEntityId不足以区分情况下使用,通常可关联设备、DP值、群组、规则等
|
1147
|
+
*/
|
881
1148
|
associativeEntityId: AssociativeEntityId;
|
882
1149
|
ruleId: string;
|
883
1150
|
entitySubIds: string;
|
884
1151
|
expr: [string[]];
|
885
1152
|
bizDomain: string;
|
886
1153
|
gid: string;
|
1154
|
+
/**
|
1155
|
+
* 拓展字段,非必传
|
1156
|
+
*/
|
1157
|
+
property?: Record<string, any>;
|
887
1158
|
}
|
888
1159
|
export interface IBindRuleResponse {
|
889
1160
|
/**
|
@@ -931,11 +1202,41 @@ export interface IGetBindRuleList {
|
|
931
1202
|
gid: string;
|
932
1203
|
}
|
933
1204
|
export type IGetBindRuleListResponse = Array<{
|
1205
|
+
/**
|
1206
|
+
* 与面板/设备建立绑定关系,通常为设备ID、DP点、群组、规则,dpId#value等
|
1207
|
+
*/
|
934
1208
|
associativeEntityId: AssociativeEntityId;
|
935
|
-
|
1209
|
+
/**
|
1210
|
+
* 关联实体的值列表
|
1211
|
+
*/
|
1212
|
+
associativeEntityValueList: IGetSceneListResponseV2;
|
1213
|
+
/**
|
1214
|
+
* 绑定 id,一般用来解绑
|
1215
|
+
*/
|
1216
|
+
bindId: number;
|
1217
|
+
/**
|
1218
|
+
* 业务域
|
1219
|
+
*/
|
936
1220
|
bizDomain: string;
|
1221
|
+
/**
|
1222
|
+
* 是否启用
|
1223
|
+
*/
|
1224
|
+
enable: boolean;
|
1225
|
+
/**
|
1226
|
+
* 设备 ID
|
1227
|
+
*/
|
937
1228
|
sourceEntityId: string;
|
938
1229
|
}>;
|
1230
|
+
export interface IUnbindRule {
|
1231
|
+
/**
|
1232
|
+
* 解绑 id
|
1233
|
+
*/
|
1234
|
+
bindId: string;
|
1235
|
+
/**
|
1236
|
+
* 家庭 id
|
1237
|
+
*/
|
1238
|
+
gid: string;
|
1239
|
+
}
|
939
1240
|
export interface IRemoveRule {
|
940
1241
|
bizDomain: string;
|
941
1242
|
sourceEntityId?: string;
|
package/lib/cloud/interface.js
CHANGED
package/lib/cloud/linkage.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IGetLinkageDeviceList, IBindRule, IGetBindRuleList, IRemoveRule, IGetLinkageDeviceListResponse, IGetSceneListResponse, IGetBindRuleListResponse, IBindRuleResponse } from './interface';
|
1
|
+
import { IGetLinkageDeviceList, IBindRule, IGetBindRuleList, IRemoveRule, IGetLinkageDeviceListResponse, IGetSceneListResponse, IGetBindRuleListResponse, IBindRuleResponse, IUnbindRule, IGetSceneListResponseV2 } from './interface';
|
2
2
|
/**
|
3
3
|
* 获取家庭下支持联动的设备列表
|
4
4
|
* @param {number} gid 家庭id
|
@@ -6,7 +6,7 @@ import { IGetLinkageDeviceList, IBindRule, IGetBindRuleList, IRemoveRule, IGetLi
|
|
6
6
|
*/
|
7
7
|
declare const getLinkageDeviceList: (params: IGetLinkageDeviceList) => Promise<IGetLinkageDeviceListResponse>;
|
8
8
|
/**
|
9
|
-
*
|
9
|
+
* 查询家庭下联动规则列表,包含失效及自动化规则
|
10
10
|
* @param {number} devId 设备id
|
11
11
|
* @param {number} gid 家庭Id
|
12
12
|
*/
|
@@ -14,6 +14,17 @@ declare const getSceneList: ({ devId, gid, }: {
|
|
14
14
|
devId: string;
|
15
15
|
gid: string;
|
16
16
|
}) => Promise<IGetSceneListResponse>;
|
17
|
+
/**
|
18
|
+
* 查询家庭下一键执行列表,会去掉失效或自动化规则
|
19
|
+
* @param {number} devId 设备id
|
20
|
+
* @param {boolean} containStandardZigBee 是否包含标准场景,默认不包含
|
21
|
+
* @param {number} gid 家庭Id
|
22
|
+
*/
|
23
|
+
declare const getSceneListV2: ({ devId, gid, containStandardZigBee, }: {
|
24
|
+
devId: string;
|
25
|
+
gid: string;
|
26
|
+
containStandardZigBee?: boolean;
|
27
|
+
}) => Promise<IGetSceneListResponseV2>;
|
17
28
|
/**
|
18
29
|
* 查询家庭下已绑定的列表
|
19
30
|
* @param {string} bizDomain 业务范围
|
@@ -32,6 +43,12 @@ declare const getBindRuleList: (params: IGetBindRuleList) => Promise<IGetBindRul
|
|
32
43
|
* @param {string} bizDomain 业务域
|
33
44
|
*/
|
34
45
|
declare const bindRule: (params: IBindRule) => Promise<IBindRuleResponse>;
|
46
|
+
/**
|
47
|
+
* 解绑联动
|
48
|
+
* @param {string} bindId 绑定 id
|
49
|
+
* @param {string} gid 家庭id
|
50
|
+
*/
|
51
|
+
declare const unbindRule: (params: IUnbindRule) => Promise<boolean>;
|
35
52
|
/**
|
36
53
|
* 解除联动
|
37
54
|
* @param {string} bizDomain 业务范围
|
@@ -62,4 +79,4 @@ declare const enableRule: ({ ruleId }: {
|
|
62
79
|
declare const disableRule: ({ ruleId }: {
|
63
80
|
ruleId: string;
|
64
81
|
}) => Promise<boolean>;
|
65
|
-
export { getLinkageDeviceList, getSceneList, getBindRuleList, bindRule, removeRule, triggerRule, enableRule, disableRule, };
|
82
|
+
export { getLinkageDeviceList, getSceneList, getSceneListV2, getBindRuleList, bindRule, unbindRule, removeRule, triggerRule, enableRule, disableRule, };
|
package/lib/cloud/linkage.js
CHANGED
@@ -21,7 +21,7 @@ const getLinkageDeviceList = params => {
|
|
21
21
|
};
|
22
22
|
|
23
23
|
/**
|
24
|
-
*
|
24
|
+
* 查询家庭下联动规则列表,包含失效及自动化规则
|
25
25
|
* @param {number} devId 设备id
|
26
26
|
* @param {number} gid 家庭Id
|
27
27
|
*/
|
@@ -42,6 +42,31 @@ const getSceneList = _ref => {
|
|
42
42
|
});
|
43
43
|
};
|
44
44
|
|
45
|
+
/**
|
46
|
+
* 查询家庭下一键执行列表,会去掉失效或自动化规则
|
47
|
+
* @param {number} devId 设备id
|
48
|
+
* @param {boolean} containStandardZigBee 是否包含标准场景,默认不包含
|
49
|
+
* @param {number} gid 家庭Id
|
50
|
+
*/
|
51
|
+
const getSceneListV2 = _ref2 => {
|
52
|
+
let {
|
53
|
+
devId,
|
54
|
+
gid,
|
55
|
+
containStandardZigBee = false
|
56
|
+
} = _ref2;
|
57
|
+
return requestCloud({
|
58
|
+
api: "".concat(THING, ".m.linkage.rule.brief.query"),
|
59
|
+
version: '2.0',
|
60
|
+
data: {
|
61
|
+
devId,
|
62
|
+
containStandardZigBee
|
63
|
+
},
|
64
|
+
extData: {
|
65
|
+
gid: "".concat(gid)
|
66
|
+
}
|
67
|
+
});
|
68
|
+
};
|
69
|
+
|
45
70
|
/**
|
46
71
|
* 查询家庭下已绑定的列表
|
47
72
|
* @param {string} bizDomain 业务范围
|
@@ -86,7 +111,8 @@ const bindRule = params => {
|
|
86
111
|
entitySubIds,
|
87
112
|
expr,
|
88
113
|
bizDomain,
|
89
|
-
gid
|
114
|
+
gid,
|
115
|
+
property
|
90
116
|
} = params;
|
91
117
|
return requestCloud({
|
92
118
|
api: "".concat(THING, ".m.linkage.associative.entity.bind"),
|
@@ -110,6 +136,8 @@ const bindRule = params => {
|
|
110
136
|
actionExecutor: 'ruleTrigger'
|
111
137
|
}]
|
112
138
|
},
|
139
|
+
ruleIds: [ruleId],
|
140
|
+
property,
|
113
141
|
bizDomain,
|
114
142
|
uniqueType: 3
|
115
143
|
}
|
@@ -120,6 +148,24 @@ const bindRule = params => {
|
|
120
148
|
});
|
121
149
|
};
|
122
150
|
|
151
|
+
/**
|
152
|
+
* 解绑联动
|
153
|
+
* @param {string} bindId 绑定 id
|
154
|
+
* @param {string} gid 家庭id
|
155
|
+
*/
|
156
|
+
const unbindRule = params => {
|
157
|
+
return requestCloud({
|
158
|
+
api: "".concat(THING, ".m.linkage.bind.delete"),
|
159
|
+
version: '1.0',
|
160
|
+
data: {
|
161
|
+
bindId: params.bindId
|
162
|
+
},
|
163
|
+
extData: {
|
164
|
+
gid: "".concat(params.gid)
|
165
|
+
}
|
166
|
+
});
|
167
|
+
};
|
168
|
+
|
123
169
|
/**
|
124
170
|
* 解除联动
|
125
171
|
* @param {string} bizDomain 业务范围
|
@@ -151,10 +197,10 @@ const removeRule = params => {
|
|
151
197
|
* 触发联动
|
152
198
|
* @param {string} ruleId 规则id
|
153
199
|
*/
|
154
|
-
const triggerRule =
|
200
|
+
const triggerRule = _ref3 => {
|
155
201
|
let {
|
156
202
|
ruleId
|
157
|
-
} =
|
203
|
+
} = _ref3;
|
158
204
|
return requestCloud({
|
159
205
|
api: "".concat(THING, ".m.linkage.rule.trigger"),
|
160
206
|
version: '1.0',
|
@@ -168,10 +214,10 @@ const triggerRule = _ref2 => {
|
|
168
214
|
* 启用联动
|
169
215
|
* @param {string} ruleId 规则id
|
170
216
|
*/
|
171
|
-
const enableRule =
|
217
|
+
const enableRule = _ref4 => {
|
172
218
|
let {
|
173
219
|
ruleId
|
174
|
-
} =
|
220
|
+
} = _ref4;
|
175
221
|
return requestCloud({
|
176
222
|
api: "".concat(THING, ".m.linkage.rule.enable"),
|
177
223
|
version: '1.0',
|
@@ -185,10 +231,10 @@ const enableRule = _ref3 => {
|
|
185
231
|
* 停用联动
|
186
232
|
* @param {string} ruleId 规则id
|
187
233
|
*/
|
188
|
-
const disableRule =
|
234
|
+
const disableRule = _ref5 => {
|
189
235
|
let {
|
190
236
|
ruleId
|
191
|
-
} =
|
237
|
+
} = _ref5;
|
192
238
|
return requestCloud({
|
193
239
|
api: "".concat(THING, ".m.linkage.rule.disable"),
|
194
240
|
version: '1.0',
|
@@ -197,4 +243,4 @@ const disableRule = _ref4 => {
|
|
197
243
|
}
|
198
244
|
});
|
199
245
|
};
|
200
|
-
export { getLinkageDeviceList, getSceneList, getBindRuleList, bindRule, removeRule, triggerRule, enableRule, disableRule };
|
246
|
+
export { getLinkageDeviceList, getSceneList, getSceneListV2, getBindRuleList, bindRule, unbindRule, removeRule, triggerRule, enableRule, disableRule };
|
@@ -1,15 +1,17 @@
|
|
1
|
+
export type ErrorMsg = {
|
2
|
+
errorMsg: string;
|
3
|
+
errorCode: string | number;
|
4
|
+
innerError: {
|
5
|
+
errorCode: string | number;
|
6
|
+
errorMsg: string;
|
7
|
+
};
|
8
|
+
};
|
1
9
|
export type ICommon = {
|
2
10
|
success?: () => void;
|
3
|
-
fail?: (err?:
|
4
|
-
errorMsg: string;
|
5
|
-
errorCode: string | number;
|
6
|
-
innerError: {
|
7
|
-
errorCode: string | number;
|
8
|
-
errorMsg: string;
|
9
|
-
};
|
10
|
-
}) => void;
|
11
|
+
fail?: (err?: ErrorMsg) => void;
|
11
12
|
complete?: () => void;
|
12
|
-
}
|
13
|
+
};
|
14
|
+
export type RecordRest = {
|
13
15
|
[key: string]: string | boolean | number;
|
14
16
|
};
|
15
17
|
export declare function nativeRouter<T extends ICommon>(uri: string, params?: T): Promise<void>;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
```
|
2
|
+
createScene
|
3
|
+
tysh_family_add_member_rn
|
4
|
+
presentGatewayCategroy
|
5
|
+
device_detail
|
6
|
+
helpAndFeedBack
|
7
|
+
sceneUiUpdate
|
8
|
+
createAuto
|
9
|
+
member_info
|
10
|
+
more_service
|
11
|
+
createScene_allDevices
|
12
|
+
editScene
|
13
|
+
ty_home_security_page
|
14
|
+
createAutoWithCondition
|
15
|
+
config_device
|
16
|
+
device_only_search_config_gw_sub
|
17
|
+
grid_update_firmware
|
18
|
+
dev_network_check
|
19
|
+
helpCenter
|
20
|
+
camera_base_setting
|
21
|
+
device_gw_sub_device_help_list
|
22
|
+
zigbee_pair
|
23
|
+
devManualAndSmart
|
24
|
+
device_offline_reconnect
|
25
|
+
ihcImportDevice
|
26
|
+
complete_user_information
|
27
|
+
ty_user_setting
|
28
|
+
addRelationDeviceWithoutMesh
|
29
|
+
editLocalSceneWithoutMesh
|
30
|
+
philipsImportDevice
|
31
|
+
msg_media_play
|
32
|
+
gotoGeekLock
|
33
|
+
devMultiLink
|
34
|
+
scene/createScene
|
35
|
+
camera_video_view
|
36
|
+
config_device_home
|
37
|
+
messageCenter
|
38
|
+
smartScene
|
39
|
+
jumpHome
|
40
|
+
tysh_family_setting
|
41
|
+
camera_motion_monitor
|
42
|
+
tutorial_tips
|
43
|
+
sleep_stages_guide
|
44
|
+
editZigbeeGroupScene
|
45
|
+
ty_scene_device_related_scenes
|
46
|
+
range-finder-canvas
|
47
|
+
settingVoiceServiceConfigListRouter
|
48
|
+
createAutoWithCondition
|
49
|
+
scan
|
50
|
+
upgrade_detail
|
51
|
+
tsod_cycling_navigation
|
52
|
+
tsod_additional_unlock_methods
|
53
|
+
tsod_ambient_lighting
|
54
|
+
tsod_shortcut_siri
|
55
|
+
config_device_home
|
56
|
+
thing_add_scene
|
57
|
+
// 6.13新增
|
58
|
+
createSmartScene
|
59
|
+
addScene
|
60
|
+
camera_playback_panel
|
61
|
+
ipc_album_panel
|
62
|
+
camera_cloud_panel
|
63
|
+
modeSetting
|
64
|
+
```
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.15",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -29,14 +29,14 @@
|
|
29
29
|
"watch": "ray start --type=component"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@ray-js/framework": "1.5.
|
33
|
-
"@ray-js/router": "1.5.
|
32
|
+
"@ray-js/framework": "1.5.15",
|
33
|
+
"@ray-js/router": "1.5.15",
|
34
34
|
"@ray-js/wechat": "^0.2.9",
|
35
35
|
"base64-browser": "^1.0.1",
|
36
36
|
"query-string": "^7.1.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ray-js/cli": "1.5.
|
39
|
+
"@ray-js/cli": "1.5.15",
|
40
40
|
"art-template": "^4.13.2",
|
41
41
|
"fs-extra": "^10.1.0",
|
42
42
|
"miniprogram-api-typings": "^3.12.2",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.org"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "c6ad2520befad858e6a353cdedfe1d99f4f1ffb1"
|
50
50
|
}
|