@ray-js/api 1.5.6 → 1.5.7

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.
@@ -84,4 +84,24 @@ export interface GetRemoteLocalRelationResponse {
84
84
  * @returns
85
85
  */
86
86
  declare const getRemoteLocalRelation: (params: GetRemoteLocalRelationParams) => Promise<GetRemoteLocalRelationResponse>;
87
- export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation, };
87
+ declare enum BizType {
88
+ Device = 0,
89
+ Group = 1
90
+ }
91
+ type GetLightHighPowerParams = {
92
+ bizId: string;
93
+ bizType: BizType;
94
+ abilityCodes: string;
95
+ };
96
+ type GetLightHighPowerResponse = {
97
+ abilityCode: string;
98
+ buyableForCustomer?: boolean;
99
+ vasEnabled: boolean;
100
+ }[] | [];
101
+ /**
102
+ * 判断当前设备是否支持高级能力 @ray-js/ray^1.5.7 新增
103
+ * @param params { devId: string, type: number }
104
+ * @returns
105
+ */
106
+ declare const getLightHighPower: (params: GetLightHighPowerParams) => Promise<GetLightHighPowerResponse>;
107
+ export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation, getLightHighPower, };
@@ -148,4 +148,21 @@ const getRemoteLocalRelation = params => {
148
148
  version: '1.0'
149
149
  });
150
150
  };
151
- export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation };
151
+ var BizType = /*#__PURE__*/function (BizType) {
152
+ BizType[BizType["Device"] = 0] = "Device";
153
+ BizType[BizType["Group"] = 1] = "Group";
154
+ return BizType;
155
+ }(BizType || {});
156
+ /**
157
+ * 判断当前设备是否支持高级能力 @ray-js/ray^1.5.7 新增
158
+ * @param params { devId: string, type: number }
159
+ * @returns
160
+ */
161
+ const getLightHighPower = params => {
162
+ return requestCloud({
163
+ api: "".concat(THING, ".m.light.high.power.get"),
164
+ data: params,
165
+ version: '1.2'
166
+ });
167
+ };
168
+ export { getDpsInfos, updateDpName, getGroupDpsInfos, updateGroupDpName, getWeatherQuality, getWeathers, saveCustomizePosition, getCustomizePosition, getDevProperty, saveDevProperty, getRemoteLocalRelation, getLightHighPower };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
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.6",
33
- "@ray-js/router": "1.5.6",
32
+ "@ray-js/framework": "1.5.7",
33
+ "@ray-js/router": "1.5.7",
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.6",
39
+ "@ray-js/cli": "1.5.7",
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": "7b31d04a85a4ac4d5ff3a3714e4e9698fddf87c8"
49
+ "gitHead": "47c88e9aab161b13d41234f6bfc65bb0e627426a"
50
50
  }