@ray-js/api 1.4.53 → 1.4.56
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/cloud/device.d.ts +25 -1
- package/lib/cloud/device.js +15 -1
- package/package.json +5 -5
package/lib/cloud/device.d.ts
CHANGED
@@ -60,4 +60,28 @@ declare const getDevProperty: (params: IGetDevProperty) => Promise<string>;
|
|
60
60
|
* @param {string} devId 设备Id
|
61
61
|
*/
|
62
62
|
declare const saveDevProperty: (params: ISaveDevProperty) => Promise<boolean>;
|
63
|
-
export
|
63
|
+
export interface GetRemoteLocalRelationParams {
|
64
|
+
/**
|
65
|
+
* 遥控器设备id
|
66
|
+
*/
|
67
|
+
devId: string;
|
68
|
+
/**
|
69
|
+
* 设备类型
|
70
|
+
* @default 0 // 缺省为0表示Zigbee
|
71
|
+
*/
|
72
|
+
type: number;
|
73
|
+
}
|
74
|
+
export interface GetRemoteLocalRelationResponse {
|
75
|
+
locals: Array<{
|
76
|
+
categoryCode: string;
|
77
|
+
code: string;
|
78
|
+
localId: string;
|
79
|
+
}>;
|
80
|
+
}
|
81
|
+
/**
|
82
|
+
* 面板获取配网后分配的localIds
|
83
|
+
* @param params { devId: string, type: number }
|
84
|
+
* @returns
|
85
|
+
*/
|
86
|
+
declare const getRemoteLocalRelation: (params: GetRemoteLocalRelationParams) => Promise<GetRemoteLocalRelationResponse>;
|
87
|
+
export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation, };
|
package/lib/cloud/device.js
CHANGED
@@ -134,4 +134,18 @@ const saveDevProperty = params => {
|
|
134
134
|
data: _objectSpread({}, params)
|
135
135
|
});
|
136
136
|
};
|
137
|
-
|
137
|
+
/**
|
138
|
+
* 面板获取配网后分配的localIds
|
139
|
+
* @param params { devId: string, type: number }
|
140
|
+
* @returns
|
141
|
+
*/
|
142
|
+
const getRemoteLocalRelation = params => {
|
143
|
+
return requestCloud({
|
144
|
+
api: 'tuya.p.remote.local.relation.get',
|
145
|
+
data: _objectSpread({
|
146
|
+
type: 0
|
147
|
+
}, params),
|
148
|
+
version: '1.0'
|
149
|
+
});
|
150
|
+
};
|
151
|
+
export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.56",
|
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.4.
|
33
|
-
"@ray-js/router": "1.4.
|
32
|
+
"@ray-js/framework": "1.4.56",
|
33
|
+
"@ray-js/router": "1.4.56",
|
34
34
|
"@ray-js/wechat": "^0.2.8",
|
35
35
|
"base64-browser": "^1.0.1",
|
36
36
|
"query-string": "^7.1.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ray-js/cli": "1.4.
|
39
|
+
"@ray-js/cli": "1.4.56",
|
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": "2a104c2e420ad07aa99c0974bb493d2119e37202"
|
50
50
|
}
|