@ray-js/api 1.5.1 → 1.5.3
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
@@ -975,6 +975,26 @@ export interface IGetZigbeeLocalGroupRelation {
|
|
975
975
|
*/
|
976
976
|
devId: string;
|
977
977
|
}
|
978
|
+
export type IGetZigbeeLocalGroupRelationResponse = {
|
979
|
+
locals: Array<{
|
980
|
+
/**
|
981
|
+
* 功能点 code
|
982
|
+
*/
|
983
|
+
code: string;
|
984
|
+
/**
|
985
|
+
* 排序
|
986
|
+
*/
|
987
|
+
order: number;
|
988
|
+
/**
|
989
|
+
* 设备端用到的群组 localId
|
990
|
+
*/
|
991
|
+
localId: string;
|
992
|
+
/**
|
993
|
+
* 面板使用的 code,用来做映射,值以 300 为前缀,例如 3001
|
994
|
+
*/
|
995
|
+
categoryCode: string;
|
996
|
+
}>;
|
997
|
+
};
|
978
998
|
export interface IGetZigbeeLocalGroupDeviceList {
|
979
999
|
/**
|
980
1000
|
* 遥控器的设备 ID
|
@@ -995,3 +1015,45 @@ export interface IGetZigbeeLocalGroupDeviceList {
|
|
995
1015
|
*/
|
996
1016
|
homeId: string;
|
997
1017
|
}
|
1018
|
+
export type IGetZigbeeLocalGroupDeviceListResponse = Array<{
|
1019
|
+
/**
|
1020
|
+
* 设备产品 id
|
1021
|
+
*/
|
1022
|
+
productId: string;
|
1023
|
+
/**
|
1024
|
+
* 设备 id
|
1025
|
+
*/
|
1026
|
+
devId: string;
|
1027
|
+
/**
|
1028
|
+
* 设备在线状态
|
1029
|
+
*/
|
1030
|
+
devOnline: boolean;
|
1031
|
+
/**
|
1032
|
+
* 设备名称
|
1033
|
+
*/
|
1034
|
+
devName: string;
|
1035
|
+
/**
|
1036
|
+
* 设备背景图片
|
1037
|
+
*/
|
1038
|
+
iconUrl: string;
|
1039
|
+
/**
|
1040
|
+
* 是否选中
|
1041
|
+
*/
|
1042
|
+
checked: boolean;
|
1043
|
+
/**
|
1044
|
+
* 如果是子设备,会返回子设备对应的 nodeId
|
1045
|
+
*/
|
1046
|
+
nodeId: string;
|
1047
|
+
/**
|
1048
|
+
* 网关 id
|
1049
|
+
*/
|
1050
|
+
gwId: string;
|
1051
|
+
/**
|
1052
|
+
* 网关名称
|
1053
|
+
*/
|
1054
|
+
gwName: string;
|
1055
|
+
/**
|
1056
|
+
* 网关是否在线
|
1057
|
+
*/
|
1058
|
+
gwOnline: boolean;
|
1059
|
+
}>;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { IGetZigbeeLocalGroupDeviceList, IGetZigbeeLocalGroupRelation } from './interface';
|
1
|
+
import { IGetZigbeeLocalGroupDeviceList, IGetZigbeeLocalGroupDeviceListResponse, IGetZigbeeLocalGroupRelation, IGetZigbeeLocalGroupRelationResponse } from './interface';
|
2
2
|
/**
|
3
3
|
* 获取 Zigbee 遥控器群组 localId 列表
|
4
4
|
*/
|
5
|
-
declare const getZigbeeLocalGroupRelation: (params: IGetZigbeeLocalGroupRelation) => Promise<
|
5
|
+
declare const getZigbeeLocalGroupRelation: (params: IGetZigbeeLocalGroupRelation) => Promise<IGetZigbeeLocalGroupRelationResponse>;
|
6
6
|
/**
|
7
7
|
* 获取可以加入 Zigbee 遥控器群组的设备列表
|
8
8
|
*/
|
9
|
-
declare const getZigbeeLocalGroupDeviceList: (params: IGetZigbeeLocalGroupDeviceList) => Promise<
|
9
|
+
declare const getZigbeeLocalGroupDeviceList: (params: IGetZigbeeLocalGroupDeviceList) => Promise<IGetZigbeeLocalGroupDeviceListResponse>;
|
10
10
|
export { getZigbeeLocalGroupRelation, getZigbeeLocalGroupDeviceList };
|
package/lib/utils.wechat.d.ts
CHANGED
package/lib/utils.wechat.js
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
// @ts-ignore
|
2
2
|
import * as tyWx from '@ray-js/wechat';
|
3
3
|
import { stringifyUrl as _stringifyUrl, parseUrl as _parseUrl } from 'query-string';
|
4
|
+
export function createFactory() {
|
5
|
+
var _this = this;
|
6
|
+
return function (name) {
|
7
|
+
let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
8
|
+
return factory.call(_this, name, opts);
|
9
|
+
};
|
10
|
+
}
|
4
11
|
export function factory(name) {
|
5
12
|
let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
6
13
|
if (/(set|get|remove|clear)+Storage(Sync)?$/.test(name)) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.3",
|
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.3",
|
33
|
+
"@ray-js/router": "1.5.3",
|
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.3",
|
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": "37d41dd13e4161b62dc68a644720ca32b33a2bcd"
|
50
50
|
}
|