@ray-js/api 1.5.7 → 1.5.8

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.
@@ -874,6 +874,7 @@ export interface IBindRule {
874
874
  entitySubIds: string;
875
875
  expr: [string[]];
876
876
  bizDomain: string;
877
+ gid: string;
877
878
  }
878
879
  export interface IBindRuleResponse {
879
880
  /**
@@ -928,6 +929,7 @@ export interface IRemoveRule {
928
929
  devId: string;
929
930
  associativeEntityId: string;
930
931
  associativeEntityValue: string;
932
+ gid: string;
931
933
  }
932
934
  export interface IGetDevProperty {
933
935
  /**
@@ -19,7 +19,6 @@ declare const getSceneList: ({ devId, gid }: {
19
19
  * @param {string} bizDomain 业务范围
20
20
  * @param {string} devId 设备id
21
21
  * @param {number} entityType 实体类型
22
- * @param {string} gid 家庭Id
23
22
  */
24
23
  declare const getBindRuleList: (params: IGetBindRuleList) => Promise<IGetBindRuleListResponse>;
25
24
  /**
@@ -30,14 +29,16 @@ declare const getBindRuleList: (params: IGetBindRuleList) => Promise<IGetBindRul
30
29
  * @param {string} entitySubIds 关联 DP 点
31
30
  * @param {Array} expr 关联DP点、动作组合
32
31
  * @param {string} bizDomain 业务域
32
+ * @param {string} bizDomain 业务域
33
33
  */
34
- declare const bindRule: ({ devId, associativeEntityId, ruleId, entitySubIds, expr, bizDomain, }: IBindRule) => Promise<IBindRuleResponse>;
34
+ declare const bindRule: ({ devId, associativeEntityId, ruleId, entitySubIds, expr, bizDomain, gid }: IBindRule) => Promise<IBindRuleResponse>;
35
35
  /**
36
36
  * 解除联动
37
37
  * @param {string} bizDomain 业务范围
38
38
  * @param {string} devId 设备id
39
39
  * @param {string} associativeEntityId 关联dp组合
40
40
  * @param {string} associativeEntityValue 规则id
41
+ * @param {string} gid 家庭id
41
42
  */
42
43
  declare const removeRule: (params: IRemoveRule) => Promise<boolean>;
43
44
  /**
@@ -14,7 +14,7 @@ const getLinkageDeviceList = params => {
14
14
  version: '3.0',
15
15
  data: _objectSpread({}, params),
16
16
  extData: {
17
- gid: params.gid
17
+ gid: "".concat(params.gid)
18
18
  }
19
19
  });
20
20
  };
@@ -36,7 +36,7 @@ const getSceneList = _ref => {
36
36
  devId
37
37
  },
38
38
  extData: {
39
- gid
39
+ gid: "".concat(gid)
40
40
  }
41
41
  });
42
42
  };
@@ -46,7 +46,6 @@ const getSceneList = _ref => {
46
46
  * @param {string} bizDomain 业务范围
47
47
  * @param {string} devId 设备id
48
48
  * @param {number} entityType 实体类型
49
- * @param {string} gid 家庭Id
50
49
  */
51
50
  const getBindRuleList = async params => {
52
51
  const {
@@ -62,7 +61,7 @@ const getBindRuleList = async params => {
62
61
  sourceEntityId: sourceEntityId || devId
63
62
  }),
64
63
  extData: {
65
- gid
64
+ gid: "".concat(gid)
66
65
  }
67
66
  });
68
67
  };
@@ -75,6 +74,7 @@ const getBindRuleList = async params => {
75
74
  * @param {string} entitySubIds 关联 DP 点
76
75
  * @param {Array} expr 关联DP点、动作组合
77
76
  * @param {string} bizDomain 业务域
77
+ * @param {string} bizDomain 业务域
78
78
  */
79
79
  const bindRule = _ref2 => {
80
80
  let {
@@ -83,7 +83,8 @@ const bindRule = _ref2 => {
83
83
  ruleId,
84
84
  entitySubIds,
85
85
  expr,
86
- bizDomain
86
+ bizDomain,
87
+ gid
87
88
  } = _ref2;
88
89
  return requestCloud({
89
90
  api: "".concat(THING, ".m.linkage.associative.entity.bind"),
@@ -110,6 +111,9 @@ const bindRule = _ref2 => {
110
111
  bizDomain,
111
112
  uniqueType: 3
112
113
  }
114
+ },
115
+ extData: {
116
+ gid: "".concat(gid)
113
117
  }
114
118
  });
115
119
  };
@@ -120,12 +124,16 @@ const bindRule = _ref2 => {
120
124
  * @param {string} devId 设备id
121
125
  * @param {string} associativeEntityId 关联dp组合
122
126
  * @param {string} associativeEntityValue 规则id
127
+ * @param {string} gid 家庭id
123
128
  */
124
129
  const removeRule = params => {
125
130
  return requestCloud({
126
131
  api: "".concat(THING, ".m.linkage.associative.entity.remove"),
127
132
  version: '1.0',
128
- data: _objectSpread({}, params)
133
+ data: _objectSpread({}, params),
134
+ extData: {
135
+ gid: "".concat(params.gid)
136
+ }
129
137
  });
130
138
  };
131
139
 
@@ -21,7 +21,10 @@ type OpenMoreService = {} & ICommon;
21
21
  * 跳转到更多服务
22
22
  */
23
23
  export declare function openMoreService(params?: OpenMoreService): Promise<void>;
24
- type OpenAppHelpCenter = {} & ICommon;
24
+ type OpenAppHelpCenter = {
25
+ bizCode?: string;
26
+ key?: string;
27
+ } & ICommon;
25
28
  /**
26
29
  * 跳转到App帮助与反馈页
27
30
  */
@@ -1,3 +1,6 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ const _excluded = ["bizCode", "key"];
1
4
  import { nativeRouter } from './common';
2
5
  /**
3
6
  * 打开APP扫码
@@ -31,7 +34,17 @@ export function openMoreService(params) {
31
34
  * 跳转到App帮助与反馈页
32
35
  */
33
36
  export function openAppHelpCenter(params) {
34
- return nativeRouter('helpCenter', params);
37
+ const _ref = params || {},
38
+ {
39
+ bizCode = 'help_center',
40
+ key = 'main_page'
41
+ } = _ref,
42
+ rest = _objectWithoutProperties(_ref, _excluded);
43
+ const p = _objectSpread({
44
+ bizCode,
45
+ key
46
+ }, rest);
47
+ return nativeRouter('helpCenter', p);
35
48
  }
36
49
 
37
50
  // messageCenter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
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.7",
33
- "@ray-js/router": "1.5.7",
32
+ "@ray-js/framework": "1.5.8",
33
+ "@ray-js/router": "1.5.8",
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.7",
39
+ "@ray-js/cli": "1.5.8",
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": "47c88e9aab161b13d41234f6bfc65bb0e627426a"
49
+ "gitHead": "5e676b1fb2f9d04c5bcec74f0988dcb9c7e658b8"
50
50
  }