@ray-js/api 1.6.3 → 1.6.5

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.
Files changed (34) hide show
  1. package/@types/energy.d.ts +18 -0
  2. package/lib/cloud/doorlock/auth.d.ts +9 -9
  3. package/lib/cloud/doorlock/auth.js +13 -9
  4. package/lib/cloud/doorlock/device.d.ts +223 -45
  5. package/lib/cloud/doorlock/device.js +199 -43
  6. package/lib/cloud/doorlock/fittings.d.ts +92 -0
  7. package/lib/cloud/doorlock/fittings.js +103 -0
  8. package/lib/cloud/doorlock/index.d.ts +2 -1
  9. package/lib/cloud/doorlock/index.js +6 -2
  10. package/lib/cloud/doorlock/log.d.ts +117 -5
  11. package/lib/cloud/doorlock/log.js +99 -5
  12. package/lib/cloud/doorlock/member-opmode.d.ts +7 -18
  13. package/lib/cloud/doorlock/member-opmode.js +7 -21
  14. package/lib/cloud/doorlock/member.d.ts +224 -18
  15. package/lib/cloud/doorlock/member.js +212 -17
  16. package/lib/cloud/doorlock/offline-pwd.d.ts +5 -5
  17. package/lib/cloud/doorlock/offline-pwd.js +7 -5
  18. package/lib/cloud/doorlock/sence.d.ts +46 -0
  19. package/lib/cloud/doorlock/sence.js +73 -0
  20. package/lib/cloud/doorlock/service.d.ts +17 -0
  21. package/lib/cloud/doorlock/service.js +27 -0
  22. package/lib/cloud/doorlock/setting.d.ts +257 -0
  23. package/lib/cloud/doorlock/setting.js +283 -0
  24. package/lib/cloud/doorlock/temp-pwd.d.ts +17 -44
  25. package/lib/cloud/doorlock/temp-pwd.js +16 -37
  26. package/lib/cloud/doorlock/unlock-method.d.ts +4 -4
  27. package/lib/cloud/doorlock/unlock-method.js +6 -4
  28. package/lib/cloud/doorlock/unlock.d.ts +5 -40
  29. package/lib/cloud/doorlock/unlock.js +8 -34
  30. package/lib/cloud/energy.d.ts +1 -0
  31. package/lib/cloud/energy.js +5 -1
  32. package/package.json +5 -5
  33. package/lib/cloud/doorlock/old.d.ts +0 -36
  34. package/lib/cloud/doorlock/old.js +0 -102
@@ -1,5 +1,10 @@
1
1
  import { THING } from '../../constants';
2
2
  import requestCloud from '../../requestCloud';
3
+
4
+ /**
5
+ * Schedule_Ver2 - 版本2的周期设置
6
+ */
7
+
3
8
  // 5.1. 获取动态密码参数类型定义
4
9
 
5
10
  // 5.1. 获取动态密码响应类型定义
@@ -9,7 +14,7 @@ import requestCloud from '../../requestCloud';
9
14
  * @param {GetDynapwdParams} params - 包含设备Id和管理员密码的参数对象
10
15
  * @returns {Promise<GetDynapwdResponse>} - 包含动态密码数据的响应对象的 Promise
11
16
  */
12
- export const getDynamicPassword = params => {
17
+ const getDynamicPassword = params => {
13
18
  return requestCloud({
14
19
  api: "".concat(THING, ".m.device.lock.dynapwd.get"),
15
20
  version: '3.0',
@@ -26,7 +31,7 @@ export const getDynamicPassword = params => {
26
31
  * @param {ValidateTempPasswordParams} params - 临时密码参数
27
32
  * @returns {Promise<ValidateTempPasswordResult>} - 校验结果的 Promise
28
33
  */
29
- export const validateTemporaryPassword = params => {
34
+ const validateTemporaryPassword = params => {
30
35
  return requestCloud({
31
36
  api: "".concat(THING, ".m.device.lock.temppwd.validate"),
32
37
  version: '3.0',
@@ -34,35 +39,6 @@ export const validateTemporaryPassword = params => {
34
39
  });
35
40
  };
36
41
 
37
- //#region 5.3. 校验临时密码参数
38
-
39
- /**
40
- * Schedule_Ver2 - 版本2的周期设置
41
- */
42
-
43
- /**
44
- * ValidateUpdateTempPasswordParams - 校验临时密码参数
45
- */
46
-
47
- /**
48
- * ValidateUpdateTempPasswordResult - 校验临时密码结果
49
- */
50
-
51
- /**
52
- * 校验临时密码是否可以添加或更新
53
- * @param {ValidateUpdateTempPasswordParams} params - 临时密码参数
54
- * @returns {Promise<ValidateUpdateTempPasswordResult>} - 校验结果的 Promise
55
- */
56
- export const validateAndUpdateTemporaryPassword = params => {
57
- return requestCloud({
58
- api: "".concat(THING, ".m.device.lock.temppwd.validate"),
59
- version: '2.0',
60
- data: params
61
- });
62
- };
63
-
64
- //#endregion
65
-
66
42
  //#region 5.4. 临时密码页创建临时密码
67
43
 
68
44
  /**
@@ -78,7 +54,7 @@ export const validateAndUpdateTemporaryPassword = params => {
78
54
  * @param {CreateTempPasswordParams} params - 创建临时密码参数
79
55
  * @returns {Promise<CreateTempPasswordResult>} - 创建结果的 Promise
80
56
  */
81
- export const createTemporaryPassword = params => {
57
+ const createTemporaryPassword = params => {
82
58
  return requestCloud({
83
59
  api: "".concat(THING, ".m.device.lock.temppwd.create"),
84
60
  version: '8.0',
@@ -105,7 +81,7 @@ export const createTemporaryPassword = params => {
105
81
  * @param {UpdateTempPasswordParams} params - 更新临时密码参数
106
82
  * @returns {Promise<UpdateTempPasswordResult>} - 更新结果的 Promise
107
83
  */
108
- export const updateTempPassword = params => {
84
+ const updateTempPassword = params => {
109
85
  return requestCloud({
110
86
  api: "".concat(THING, ".m.device.lock.temppwd.update"),
111
87
  version: '4.0',
@@ -132,7 +108,7 @@ export const updateTempPassword = params => {
132
108
  * @param {UpdateTempPasswordNameParams} params - 更新临时密码名称参数
133
109
  * @returns {Promise<UpdateTempPasswordNameResult>} - 更新结果的 Promise
134
110
  */
135
- export const updateTempPasswordName = params => {
111
+ const updateTempPasswordName = params => {
136
112
  return requestCloud({
137
113
  api: "".concat(THING, ".m.device.lock.temppwd.name"),
138
114
  version: '1.0',
@@ -159,7 +135,7 @@ export const updateTempPasswordName = params => {
159
135
  * @param {DeleteTempPasswordParams} params - 删除临时密码参数
160
136
  * @returns {Promise<DeleteTempPasswordResult>} - 删除结果的 Promise
161
137
  */
162
- export const deleteTemporaryPassword = params => {
138
+ const deleteTemporaryPassword = params => {
163
139
  return requestCloud({
164
140
  api: "".concat(THING, ".m.device.lock.temppwd.remove"),
165
141
  version: '5.0',
@@ -184,10 +160,13 @@ export const deleteTemporaryPassword = params => {
184
160
  * @param {ShareAvailabilityParams} params - 检查分享可用性参数
185
161
  * @returns {Promise<ShareAvailabilityResult>} - 检查结果的 Promise
186
162
  */
187
- export const checkShareAvailability = params => {
163
+ const checkShareAvailability = params => {
188
164
  return requestCloud({
189
165
  api: "".concat(THING, ".m.device.lock.share.available"),
190
166
  version: '1.0',
191
167
  data: params
192
168
  });
193
- };
169
+ };
170
+ //#endregion
171
+
172
+ export { getDynamicPassword, validateTemporaryPassword, createTemporaryPassword, updateTempPassword, updateTempPasswordName, deleteTemporaryPassword, checkShareAvailability };
@@ -13,7 +13,7 @@ type CheckUnlockMethodResult = boolean;
13
13
  * @param {CheckUnlockMethodParams} params - 查询解锁方式参数
14
14
  * @returns {Promise<CheckUnlockMethodResult>} - 查询结果的 Promise
15
15
  */
16
- export declare const checkUnlockMethod: (params: CheckUnlockMethodParams) => Promise<CheckUnlockMethodResult>;
16
+ declare const checkUnlockMethod: (params: CheckUnlockMethodParams) => Promise<CheckUnlockMethodResult>;
17
17
  /**
18
18
  * GetUnlockMethodListParams - 查询开锁方式列表参数
19
19
  */
@@ -40,7 +40,7 @@ type GetUnlockMethodListResult = {
40
40
  * @param {GetUnlockMethodListParams} params - 查询开锁方式列表参数
41
41
  * @returns {Promise<GetUnlockMethodListResult[]>} - 查询结果的 Promise
42
42
  */
43
- export declare const getUnlockMethodList: (params: GetUnlockMethodListParams) => Promise<GetUnlockMethodListResult[]>;
43
+ declare const getUnlockMethodList: (params: GetUnlockMethodListParams) => Promise<GetUnlockMethodListResult[]>;
44
44
  /**
45
45
  * BindUnlockMethodToUserParams - 绑定解锁方式参数
46
46
  */
@@ -58,5 +58,5 @@ type BindUnlockMethodToUserResponse = boolean;
58
58
  * @param {BindUnlockMethodToUserParams} params - 绑定解锁方式参数
59
59
  * @returns {Promise<BindUnlockMethodToUserResponse>} - 绑定结果的 Promise
60
60
  */
61
- export declare const bindUnlockMethodToUser: (params: BindUnlockMethodToUserParams) => Promise<BindUnlockMethodToUserResponse>;
62
- export {};
61
+ declare const bindUnlockMethodToUser: (params: BindUnlockMethodToUserParams) => Promise<BindUnlockMethodToUserResponse>;
62
+ export { checkUnlockMethod, getUnlockMethodList, bindUnlockMethodToUser };
@@ -18,7 +18,7 @@ import requestCloud from '../../requestCloud';
18
18
  * @param {CheckUnlockMethodParams} params - 查询解锁方式参数
19
19
  * @returns {Promise<CheckUnlockMethodResult>} - 查询结果的 Promise
20
20
  */
21
- export const checkUnlockMethod = params => {
21
+ const checkUnlockMethod = params => {
22
22
  return requestCloud({
23
23
  api: "".concat(THING, ".m.device.unlock.waitassign"),
24
24
  version: '1.0',
@@ -47,7 +47,7 @@ export const checkUnlockMethod = params => {
47
47
  * @param {GetUnlockMethodListParams} params - 查询开锁方式列表参数
48
48
  * @returns {Promise<GetUnlockMethodListResult[]>} - 查询结果的 Promise
49
49
  */
50
- export const getUnlockMethodList = params => {
50
+ const getUnlockMethodList = params => {
51
51
  return requestCloud({
52
52
  api: "".concat(THING, ".m.device.unlock.assignlist"),
53
53
  version: '1.0',
@@ -74,7 +74,7 @@ export const getUnlockMethodList = params => {
74
74
  * @param {BindUnlockMethodToUserParams} params - 绑定解锁方式参数
75
75
  * @returns {Promise<BindUnlockMethodToUserResponse>} - 绑定结果的 Promise
76
76
  */
77
- export const bindUnlockMethodToUser = params => {
77
+ const bindUnlockMethodToUser = params => {
78
78
  return requestCloud({
79
79
  api: "".concat(THING, ".m.device.user.unlock.allocate"),
80
80
  version: '1.0',
@@ -82,4 +82,6 @@ export const bindUnlockMethodToUser = params => {
82
82
  });
83
83
  };
84
84
 
85
- //#endregion
85
+ //#endregion
86
+
87
+ export { checkUnlockMethod, getUnlockMethodList, bindUnlockMethodToUser };
@@ -8,52 +8,17 @@ type RemoteOpenResponse = boolean;
8
8
  * @param {RemoteOpenParams} params - 包含设备Id和开门状态的参数
9
9
  * @returns {Promise<RemoteOpenResponse>} - 包含执行结果和状态的响应
10
10
  */
11
- export declare const remoteOpenDoor: (params: RemoteOpenParams) => Promise<RemoteOpenResponse>;
12
- type UnlockParams = {
13
- devId: string;
14
- open: boolean;
15
- confirm: boolean;
16
- };
17
- type UnlockResponse = boolean;
18
- /**
19
- * 远程免密解锁
20
- * @param {UnlockParams} params - 包含设备Id、开门状态和确认状态的参数
21
- * @returns {Promise<UnlockResponse>} - 包含请求结果和状态的响应
22
- */
23
- export declare const remoteUnlockDoor: (params: UnlockParams) => Promise<UnlockResponse>;
11
+ declare const remoteOpenDoor: (params: RemoteOpenParams) => Promise<RemoteOpenResponse>;
24
12
  type CanUnlockRemoteParams = {
25
13
  devId: string;
26
14
  };
27
15
  type CanUnlockRemoteResponse = boolean;
28
16
  /**
29
- * 判断用户是否可以远程开门
17
+ * 获取分享用户在时间段内是否可以开门
30
18
  * @param {CanUnlockRemoteResponse} params - 包含设备Id的参数
31
19
  * @returns {Promise<CanUnlockRemoteResponse>} - 包含请求结果和状态的响应
32
20
  */
33
- export declare const checkCanRemoteUnlock: (params: CanUnlockRemoteParams) => Promise<CanUnlockRemoteResponse>;
34
- type UnlockRecord = {
35
- userName: string;
36
- opMode: string;
37
- unlockName: string;
38
- };
39
- type GetLatestRecordInfoParams = {
40
- devId: string;
41
- };
42
- type GetLatestRecordInfoResponse = {
43
- dpId: number;
44
- dpValue: string;
45
- recordType: number;
46
- userName: string;
47
- time: number;
48
- unionUnlockInfo: UnlockRecord[];
49
- unReadCount: number;
50
- };
51
- /**
52
- * 获取最近一条记录的信息
53
- * @param {GetLatestRecordInfoParams} params - 包含设备Id的参数
54
- * @returns {Promise<GetLatestRecordInfoResponse>} - 包含请求结果和状态的响应
55
- */
56
- export declare const getLatestUnlockRecord: (params: GetLatestRecordInfoParams) => Promise<GetLatestRecordInfoResponse>;
21
+ declare const checkCanRemoteUnlock: (params: CanUnlockRemoteParams) => Promise<CanUnlockRemoteResponse>;
57
22
  type QueryUnlockRecord = {
58
23
  userName: string;
59
24
  opMode: string;
@@ -85,5 +50,5 @@ type QueryRecordInfoResponse = {
85
50
  * @param { QueryRecordInfoParams} params - 包含设备Id的参数
86
51
  * @returns {Promise<QueryRecordInfoResponse[]>} - 包含请求结果和状态的响应
87
52
  */
88
- export declare const queryUnlockRecord: (params: QueryRecordInfoParams) => Promise<QueryRecordInfoResponse[]>;
89
- export {};
53
+ declare const queryUnlockRecord: (params: QueryRecordInfoParams) => Promise<QueryRecordInfoResponse[]>;
54
+ export { remoteOpenDoor, checkCanRemoteUnlock, queryUnlockRecord };
@@ -10,7 +10,7 @@ import requestCloud from '../../requestCloud';
10
10
  * @param {RemoteOpenParams} params - 包含设备Id和开门状态的参数
11
11
  * @returns {Promise<RemoteOpenResponse>} - 包含执行结果和状态的响应
12
12
  */
13
- export const remoteOpenDoor = params => {
13
+ const remoteOpenDoor = params => {
14
14
  return requestCloud({
15
15
  api: "".concat(THING, ".m.zigbee.lock.remotepwd.execute"),
16
16
  version: '1.0',
@@ -18,47 +18,20 @@ export const remoteOpenDoor = params => {
18
18
  });
19
19
  };
20
20
 
21
- // 1.2. Unlock - 远程免密开门的参数和响应类型
21
+ // 1.3. 获取分享用户在时间段内是否可以开门
22
22
 
23
23
  /**
24
- * 远程免密解锁
25
- * @param {UnlockParams} params - 包含设备Id、开门状态和确认状态的参数
26
- * @returns {Promise<UnlockResponse>} - 包含请求结果和状态的响应
27
- */
28
- export const remoteUnlockDoor = params => {
29
- return requestCloud({
30
- api: "".concat(THING, ".m.device.lock.remote.unlock"),
31
- version: '2.0',
32
- data: params
33
- });
34
- };
35
-
36
- // 1.3. 判断用户是否可以远程开门
37
-
38
- /**
39
- * 判断用户是否可以远程开门
24
+ * 获取分享用户在时间段内是否可以开门
40
25
  * @param {CanUnlockRemoteResponse} params - 包含设备Id的参数
41
26
  * @returns {Promise<CanUnlockRemoteResponse>} - 包含请求结果和状态的响应
42
27
  */
43
- export const checkCanRemoteUnlock = params => {
28
+ const checkCanRemoteUnlock = params => {
44
29
  return requestCloud({
45
30
  api: "".concat(THING, ".m.device.lock.remote.unlock.available"),
46
31
  version: '1.0',
47
32
  data: params
48
33
  });
49
34
  };
50
- /**
51
- * 获取最近一条记录的信息
52
- * @param {GetLatestRecordInfoParams} params - 包含设备Id的参数
53
- * @returns {Promise<GetLatestRecordInfoResponse>} - 包含请求结果和状态的响应
54
- */
55
- export const getLatestUnlockRecord = params => {
56
- return requestCloud({
57
- api: "".concat(THING, ".m.device.lock.history.latest"),
58
- version: '1.0',
59
- data: params
60
- });
61
- };
62
35
 
63
36
  // 1.5. 查询开门记录
64
37
 
@@ -67,10 +40,11 @@ export const getLatestUnlockRecord = params => {
67
40
  * @param { QueryRecordInfoParams} params - 包含设备Id的参数
68
41
  * @returns {Promise<QueryRecordInfoResponse[]>} - 包含请求结果和状态的响应
69
42
  */
70
- export const queryUnlockRecord = params => {
43
+ const queryUnlockRecord = params => {
71
44
  return requestCloud({
72
45
  api: "".concat(THING, ".m.device.lock.history.list"),
73
- version: '2.0',
46
+ version: '1.0',
74
47
  data: params
75
48
  });
76
- };
49
+ };
50
+ export { remoteOpenDoor, checkCanRemoteUnlock, queryUnlockRecord };
@@ -12,4 +12,5 @@ export declare const energy: {
12
12
  getInverterDeviceModel: typeof ty.energy.getInverterDeviceModel;
13
13
  getDevicePropertySettingTranslate: typeof ty.energy.getDevicePropertySettingTranslate;
14
14
  setDevicePropertySetting: typeof ty.energy.setDevicePropertySetting;
15
+ getDpHistoryDataList: typeof ty.energy.getDpHistoryDataList;
15
16
  };
@@ -39,6 +39,9 @@ const getDevicePropertySettingTranslate = factory('getDevicePropertySettingTrans
39
39
  const setDevicePropertySetting = factory('setDevicePropertySetting', {
40
40
  namespace: 'energy'
41
41
  });
42
+ const getDpHistoryDataList = factory('getDpHistoryDataList', {
43
+ namespace: 'energy'
44
+ });
42
45
  export const energy = {
43
46
  getDeviceDataMultipleSum,
44
47
  getInverterDeviceInfo,
@@ -52,5 +55,6 @@ export const energy = {
52
55
  getPropertySettingTranslate,
53
56
  getInverterDeviceModel,
54
57
  getDevicePropertySettingTranslate,
55
- setDevicePropertySetting
58
+ setDevicePropertySetting,
59
+ getDpHistoryDataList
56
60
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
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.6.3",
33
- "@ray-js/router": "1.6.3",
32
+ "@ray-js/framework": "1.6.5",
33
+ "@ray-js/router": "1.6.5",
34
34
  "@ray-js/wechat": "^0.2.19",
35
35
  "base64-browser": "^1.0.1",
36
36
  "query-string": "^7.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/cli": "1.6.3",
39
+ "@ray-js/cli": "1.6.5",
40
40
  "art-template": "^4.13.2",
41
41
  "fs-extra": "^10.1.0",
42
42
  "miniprogram-api-typings": "^3.12.3",
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.com"
48
48
  },
49
- "gitHead": "f0390bf5a5c5867f2157214b900ca656877853fd"
49
+ "gitHead": "228f27012c3130d2930cd25413a8c80647787fc2"
50
50
  }
@@ -1,36 +0,0 @@
1
- export declare const getUiConfig: (productId: any, productConfigTimestamp?: string, productPanelPowerTimestamp?: string) => void;
2
- export declare const getUserRegion: () => void;
3
- /**
4
- * 获取门锁最新日志
5
- * @param params {devId: string}
6
- * @returns
7
- */
8
- export declare const getLockLatestLog: (params: {
9
- devId: string;
10
- }) => void;
11
- /**
12
- * 获取门锁安全天数
13
- * @param param {devId: string}
14
- * @returns
15
- */
16
- export declare const getLockActivePeriod: ({ devId }: {
17
- devId: string;
18
- }) => void;
19
- /**
20
- * 获取门锁成员信息
21
- * @param param {devId: string, userId?: string}
22
- * @returns
23
- */
24
- export declare const getLockMemberInfo: ({ devId, userId }: {
25
- devId: string;
26
- userId?: string;
27
- }) => void;
28
- /**
29
- * 远程开门
30
- * @param param { devId: string, open: boolean }
31
- * @returns
32
- */
33
- export declare const remoteLockExecute: ({ devId, open }: {
34
- devId: string;
35
- open: boolean;
36
- }) => void;
@@ -1,102 +0,0 @@
1
- // 仅用于门锁模版
2
- // 门锁模版中涉及到的atop接口,暂时封装,后续会根据实际情况进行封装。
3
- import { THING } from '../../constants';
4
- import requestCloud from '../../requestCloud';
5
-
6
- // 获取云能力
7
- export const getUiConfig = function (productId) {
8
- let productConfigTimestamp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
9
- let productPanelPowerTimestamp = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '0';
10
- return requestCloud({
11
- api: "".concat(THING, ".m.app.panel.info.get"),
12
- version: '2.0',
13
- data: {
14
- productId,
15
- productConfigTimestamp,
16
- productPanelPowerTimestamp,
17
- options: 'uiContent,cloudDp,powerCode'
18
- }
19
- });
20
- };
21
-
22
- // 获取当前帐号所属地区
23
- export const getUserRegion = () => {
24
- return requestCloud({
25
- api: "".concat(THING, ".m.user.region.get"),
26
- version: '1.0',
27
- data: {}
28
- });
29
- };
30
-
31
- /**
32
- * 获取门锁最新日志
33
- * @param params {devId: string}
34
- * @returns
35
- */
36
- export const getLockLatestLog = params => {
37
- return requestCloud({
38
- api: "".concat(THING, ".m.device.lock.log.latest"),
39
- version: '1.0',
40
- data: {
41
- devId: params.devId
42
- }
43
- });
44
- };
45
-
46
- /**
47
- * 获取门锁安全天数
48
- * @param param {devId: string}
49
- * @returns
50
- */
51
- export const getLockActivePeriod = _ref => {
52
- let {
53
- devId
54
- } = _ref;
55
- return requestCloud({
56
- api: "".concat(THING, ".m.device.lock.active.period"),
57
- version: '1.0',
58
- data: {
59
- devId
60
- }
61
- });
62
- };
63
-
64
- /**
65
- * 获取门锁成员信息
66
- * @param param {devId: string, userId?: string}
67
- * @returns
68
- */
69
- export const getLockMemberInfo = _ref2 => {
70
- let {
71
- devId,
72
- userId
73
- } = _ref2;
74
- return requestCloud({
75
- api: "".concat(THING, ".m.device.member.panel.get"),
76
- version: '1.0',
77
- data: {
78
- devId: devId,
79
- userId: userId || ''
80
- }
81
- });
82
- };
83
-
84
- /**
85
- * 远程开门
86
- * @param param { devId: string, open: boolean }
87
- * @returns
88
- */
89
- export const remoteLockExecute = _ref3 => {
90
- let {
91
- devId,
92
- open
93
- } = _ref3;
94
- return requestCloud({
95
- api: "".concat(THING, ".m.zigbee.lock.remotepwd.execute"),
96
- version: '1.0',
97
- data: {
98
- devId: devId,
99
- open
100
- }
101
- });
102
- };