@ray-js/api 1.6.4 → 1.6.6
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/doorlock/auth.d.ts +9 -9
- package/lib/cloud/doorlock/auth.js +13 -9
- package/lib/cloud/doorlock/device.d.ts +222 -45
- package/lib/cloud/doorlock/device.js +199 -43
- package/lib/cloud/doorlock/fittings.d.ts +92 -0
- package/lib/cloud/doorlock/fittings.js +103 -0
- package/lib/cloud/doorlock/index.d.ts +4 -1
- package/lib/cloud/doorlock/index.js +10 -2
- package/lib/cloud/doorlock/log.d.ts +117 -5
- package/lib/cloud/doorlock/log.js +100 -6
- package/lib/cloud/doorlock/member-opmode.d.ts +7 -18
- package/lib/cloud/doorlock/member-opmode.js +7 -21
- package/lib/cloud/doorlock/member.d.ts +224 -18
- package/lib/cloud/doorlock/member.js +212 -17
- package/lib/cloud/doorlock/offline-pwd.d.ts +5 -5
- package/lib/cloud/doorlock/offline-pwd.js +7 -5
- package/lib/cloud/doorlock/sence.d.ts +46 -0
- package/lib/cloud/doorlock/sence.js +73 -0
- package/lib/cloud/doorlock/service.d.ts +17 -0
- package/lib/cloud/doorlock/service.js +27 -0
- package/lib/cloud/doorlock/setting.d.ts +257 -0
- package/lib/cloud/doorlock/setting.js +283 -0
- package/lib/cloud/doorlock/temp-pwd.d.ts +17 -44
- package/lib/cloud/doorlock/temp-pwd.js +16 -37
- package/lib/cloud/doorlock/unlock-method.d.ts +4 -4
- package/lib/cloud/doorlock/unlock-method.js +6 -4
- package/lib/cloud/doorlock/unlock.d.ts +5 -40
- package/lib/cloud/doorlock/unlock.js +8 -34
- package/package.json +5 -5
- package/lib/cloud/doorlock/old.d.ts +0 -36
- package/lib/cloud/doorlock/old.js +0 -102
@@ -1,3 +1,4 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
1
2
|
import { THING } from '../../constants';
|
2
3
|
import requestCloud from '../../requestCloud';
|
3
4
|
|
@@ -16,7 +17,7 @@ import requestCloud from '../../requestCloud';
|
|
16
17
|
* @param {SetDevicePropertiesParams} params - 设置设备属性参数
|
17
18
|
* @returns {Promise<SetDevicePropertiesResponse>} - 设置结果的 Promise
|
18
19
|
*/
|
19
|
-
|
20
|
+
const setDeviceProperties = params => {
|
20
21
|
return requestCloud({
|
21
22
|
api: "".concat(THING, ".m.device.props.save"),
|
22
23
|
version: '1.0',
|
@@ -43,7 +44,7 @@ export const setDeviceProperties = params => {
|
|
43
44
|
* @param {GetDevicePropertiesParams} params - 查看设备属性参数
|
44
45
|
* @returns {Promise<GetDevicePropertiesResponse>} - 查看结果的 Promise
|
45
46
|
*/
|
46
|
-
|
47
|
+
const getDeviceProperties = params => {
|
47
48
|
return requestCloud({
|
48
49
|
api: "".concat(THING, ".m.device.props.fetch"),
|
49
50
|
version: '1.0',
|
@@ -53,35 +54,6 @@ export const getDeviceProperties = params => {
|
|
53
54
|
|
54
55
|
//#endregion
|
55
56
|
|
56
|
-
//#region 获取家庭成员基础信息列表
|
57
|
-
|
58
|
-
/**
|
59
|
-
* MemberListParams - 获取家庭成员基础信息列表参数
|
60
|
-
*/
|
61
|
-
|
62
|
-
/**
|
63
|
-
* MemberListResponseItem - 家庭成员基础信息列表项
|
64
|
-
*/
|
65
|
-
|
66
|
-
/**
|
67
|
-
* MemberListResponse - 获取家庭成员基础信息列表响应
|
68
|
-
*/
|
69
|
-
|
70
|
-
/**
|
71
|
-
* 获取家庭成员基础信息列表
|
72
|
-
* @param {MemberListParams} params - 获取成员列表参数
|
73
|
-
* @returns {Promise<MemberListResponse>} - 成员列表的 Promise
|
74
|
-
*/
|
75
|
-
export const getMemberList = params => {
|
76
|
-
return requestCloud({
|
77
|
-
api: "".concat(THING, ".m.device.member.list"),
|
78
|
-
version: '5.0',
|
79
|
-
data: params
|
80
|
-
});
|
81
|
-
};
|
82
|
-
|
83
|
-
//#endregion
|
84
|
-
|
85
57
|
//#region 解锁方式同步
|
86
58
|
|
87
59
|
/**
|
@@ -97,7 +69,7 @@ export const getMemberList = params => {
|
|
97
69
|
* @param {UnlockSyncParams} params - 解锁方式同步参数
|
98
70
|
* @returns {Promise<UnlockSyncResponse>} - 同步结果的 Promise
|
99
71
|
*/
|
100
|
-
|
72
|
+
const syncUnlockMode = params => {
|
101
73
|
return requestCloud({
|
102
74
|
api: "".concat(THING, ".m.device.opmode.sync.rise"),
|
103
75
|
version: '2.0',
|
@@ -124,7 +96,7 @@ export const syncUnlockMode = params => {
|
|
124
96
|
* @param {QueryDateFormatParams} params - 查询时间对应的格式参数
|
125
97
|
* @returns {Promise<QueryDateFormatResponse>} - 查询结果的 Promise
|
126
98
|
*/
|
127
|
-
|
99
|
+
const queryDateFormat = params => {
|
128
100
|
return requestCloud({
|
129
101
|
api: "".concat(THING, ".m.i18n.date.template.get"),
|
130
102
|
version: '1.0',
|
@@ -151,7 +123,7 @@ export const queryDateFormat = params => {
|
|
151
123
|
* @param {QueryActiveDateParams} params - 查询激活时间参数
|
152
124
|
* @returns {Promise<QueryActiveDateResponse>} - 查询结果的 Promise
|
153
125
|
*/
|
154
|
-
|
126
|
+
const queryDeviceActiveDate = params => {
|
155
127
|
return requestCloud({
|
156
128
|
api: "".concat(THING, ".m.device.active.date"),
|
157
129
|
version: '1.0',
|
@@ -161,27 +133,211 @@ export const queryDeviceActiveDate = params => {
|
|
161
133
|
|
162
134
|
//#endregion
|
163
135
|
|
164
|
-
//#region
|
136
|
+
//#region app面板拉取JSON配置信
|
137
|
+
|
138
|
+
/**
|
139
|
+
* GetUiConfigParams - app面板拉取JSON配置信息
|
140
|
+
*/
|
141
|
+
|
142
|
+
/**
|
143
|
+
* GetUiConfigResponse - app面板拉取JSON配置信息
|
144
|
+
*/
|
145
|
+
|
146
|
+
/**
|
147
|
+
* app面板拉取JSON配置信息
|
148
|
+
* @param {GetUiConfigParams} params - app面板拉取JSON配置信息参数
|
149
|
+
* @returns {Promise<GetUiConfigResponse>} - 查询结果的 Promise
|
150
|
+
*/
|
151
|
+
const getUiConfig = params => {
|
152
|
+
return requestCloud({
|
153
|
+
api: "".concat(THING, ".m.app.panel.info.get"),
|
154
|
+
version: '2.0',
|
155
|
+
data: _objectSpread(_objectSpread({}, params), {}, {
|
156
|
+
productConfigTimestamp: '0',
|
157
|
+
productPanelPowerTimestamp: '0',
|
158
|
+
options: 'uiContent,cloudDp,powerCode'
|
159
|
+
})
|
160
|
+
});
|
161
|
+
};
|
162
|
+
|
163
|
+
//#endregion
|
164
|
+
|
165
|
+
//#region 获取产品纬度蓝牙通信协议高级能力配置
|
166
|
+
|
167
|
+
/**
|
168
|
+
* GetHighPowerListParams - 获取蓝牙通信协议高级能力配置
|
169
|
+
*/
|
170
|
+
|
171
|
+
/**
|
172
|
+
* GetHighPowerListResponse - 获取蓝牙通信协议高级能力配置
|
173
|
+
*/
|
174
|
+
|
175
|
+
/**
|
176
|
+
* 获取蓝牙通信协议高级能力配置
|
177
|
+
* @param {GetHighPowerListParams} params - 获取蓝牙通信协议高级能力配置参数
|
178
|
+
* @returns {Promise<GetHighPowerListResponse>} - 查询结果的 Promise
|
179
|
+
*/
|
180
|
+
const getHighPowerList = params => {
|
181
|
+
return requestCloud({
|
182
|
+
api: "".concat(THING, ".app.buyer.high.power.get"),
|
183
|
+
version: '1.0',
|
184
|
+
data: {
|
185
|
+
input: {
|
186
|
+
deviceId: params.devId,
|
187
|
+
code: 'tyabi8va5m'
|
188
|
+
}
|
189
|
+
}
|
190
|
+
});
|
191
|
+
};
|
192
|
+
|
193
|
+
//#endregion
|
194
|
+
|
195
|
+
//#region 获取门锁安全天数
|
196
|
+
|
197
|
+
/**
|
198
|
+
* GetLockActivePeriodParams - 获取门锁安全天数
|
199
|
+
*/
|
200
|
+
|
201
|
+
/**
|
202
|
+
* GetLockActivePeriodResponse - 获取门锁安全天数
|
203
|
+
*/
|
204
|
+
|
205
|
+
/**
|
206
|
+
* 获取门锁安全天数
|
207
|
+
* @param {GetLockActivePeriodParams} params - 获取门锁安全天数参数
|
208
|
+
* @returns {Promise<GetLockActivePeriodResponse>} - 查询结果的 Promise
|
209
|
+
*/
|
210
|
+
const getLockActivePeriod = params => {
|
211
|
+
return requestCloud({
|
212
|
+
api: "".concat(THING, ".m.device.lock.active.period"),
|
213
|
+
version: '1.0',
|
214
|
+
data: _objectSpread({}, params)
|
215
|
+
});
|
216
|
+
};
|
217
|
+
|
218
|
+
//#endregion
|
219
|
+
|
220
|
+
//#region 获取当前设备的封面图旋转角度
|
221
|
+
|
222
|
+
/**
|
223
|
+
* GetDeviceRotateParams - 获取当前设备的封面图旋转角度
|
224
|
+
*/
|
225
|
+
|
226
|
+
/**
|
227
|
+
* GetDeviceRotateResponse - 获取当前设备的封面图旋转角度
|
228
|
+
*/
|
229
|
+
|
230
|
+
/**
|
231
|
+
* 获取当前设备的封面图旋转角度
|
232
|
+
* @param {GetDeviceRotateParams} params - 获取当前设备的封面图旋转角度参数
|
233
|
+
* @returns {Promise<GetDeviceRotateResponse>} - 查询结果的 Promise
|
234
|
+
*/
|
235
|
+
const getDeviceRotate = params => {
|
236
|
+
return requestCloud({
|
237
|
+
api: "".concat(THING, ".m.device.lock.media.rotate.get"),
|
238
|
+
version: '1.0',
|
239
|
+
data: _objectSpread({}, params)
|
240
|
+
});
|
241
|
+
};
|
242
|
+
|
243
|
+
//#endregion
|
244
|
+
|
245
|
+
//#region 查看产品是否有安装视频、电子说明书
|
246
|
+
|
247
|
+
/**
|
248
|
+
* GetSpecificationListParams - 查看产品是否有安装视频、电子说明书参数
|
249
|
+
*/
|
250
|
+
|
251
|
+
/**
|
252
|
+
* GetSpecificationListResult - 查看产品是否有安装视频、电子说明书结果
|
253
|
+
*/
|
254
|
+
|
255
|
+
/**
|
256
|
+
* 查看产品是否有安装视频、电子说明书
|
257
|
+
* @param {GetSpecificationListParams} params - 查看产品是否有安装视频、电子说明书的参数
|
258
|
+
* @returns {Promise<GetSpecificationListResult>} - 带有查看产品是否有安装视频、电子说明书结果的 Promise。
|
259
|
+
*/
|
260
|
+
const getSpecificationList = params => {
|
261
|
+
return requestCloud({
|
262
|
+
api: "".concat(THING, ".m.product.config.check"),
|
263
|
+
version: '1.0',
|
264
|
+
data: params
|
265
|
+
});
|
266
|
+
};
|
267
|
+
//#endregion
|
268
|
+
|
269
|
+
//#region 查看产品附件信息详情
|
165
270
|
|
166
271
|
/**
|
167
|
-
*
|
272
|
+
* GetSpecificationParams - 查看产品附件信息详情参数
|
168
273
|
*/
|
169
274
|
|
170
275
|
/**
|
171
|
-
*
|
276
|
+
* GetSpecificationResult - 查看产品附件信息详情结果
|
172
277
|
*/
|
173
278
|
|
174
279
|
/**
|
175
|
-
*
|
176
|
-
* @param {
|
177
|
-
* @returns {Promise<
|
280
|
+
* 查看产品附件信息详情
|
281
|
+
* @param {GetSpecificationParams} params - 查看产品附件信息详情的参数
|
282
|
+
* @returns {Promise<GetSpecificationResult>} - 查看产品附件信息详情的 Promise。
|
178
283
|
*/
|
179
|
-
|
284
|
+
const getSpecification = params => {
|
180
285
|
return requestCloud({
|
181
|
-
api: "".concat(THING, ".m.
|
286
|
+
api: "".concat(THING, ".m.product.attachment.get"),
|
182
287
|
version: '1.0',
|
183
288
|
data: params
|
184
289
|
});
|
185
290
|
};
|
291
|
+
//#endregion
|
292
|
+
|
293
|
+
//#region 查询设备是否有云能力(视频)
|
294
|
+
|
295
|
+
/**
|
296
|
+
* CheckHadVideoCloudParams - 查询设备是否有云能力(视频)
|
297
|
+
*/
|
298
|
+
|
299
|
+
/**
|
300
|
+
* GetHighPowerListResponse - 查询设备是否有云能力(视频)
|
301
|
+
*/
|
302
|
+
|
303
|
+
/**
|
304
|
+
* 查询设备是否有云能力(视频)
|
305
|
+
* @param {CheckHadVideoCloudParams} params - 查询设备是否有云能力(视频)参数
|
306
|
+
* @returns {Promise<CheckHadVideoCloudResponse>} - 查询结果的 Promise
|
307
|
+
*/
|
308
|
+
const checkHadVideoCloud = params => {
|
309
|
+
return requestCloud({
|
310
|
+
api: "".concat(THING, ".m.device.lock.capability.cloud.get"),
|
311
|
+
version: '1.0',
|
312
|
+
data: _objectSpread({}, params)
|
313
|
+
});
|
314
|
+
};
|
315
|
+
|
316
|
+
//#endregion
|
317
|
+
|
318
|
+
//#region 查询设备有的高级能力(关联AppMall白名单)
|
319
|
+
|
320
|
+
/**
|
321
|
+
* GetDeviceAddValueTypeParams - 查询设备有的高级能力(关联AppMall白名单)
|
322
|
+
*/
|
323
|
+
|
324
|
+
/**
|
325
|
+
* GetDeviceAddValueTypeResponse - 查询设备有的高级能力(关联AppMall白名单)
|
326
|
+
*/
|
327
|
+
|
328
|
+
/**
|
329
|
+
* 查询设备有的高级能力(关联AppMall白名单)
|
330
|
+
* @param {GetDeviceAddValueTypeParams} params - 查询设备有的高级能力(关联AppMall白名单)参数
|
331
|
+
* @returns {Promise<GetDeviceAddValueTypeResponse>} - 查询结果的 Promise
|
332
|
+
*/
|
333
|
+
const getDeviceAddValueType = params => {
|
334
|
+
return requestCloud({
|
335
|
+
api: "m.lock.add.value.device.info",
|
336
|
+
version: '1.0',
|
337
|
+
data: _objectSpread({}, params)
|
338
|
+
});
|
339
|
+
};
|
340
|
+
|
341
|
+
//#endregion
|
186
342
|
|
187
|
-
|
343
|
+
export { setDeviceProperties, getDeviceProperties, syncUnlockMode, queryDateFormat, queryDeviceActiveDate, getUiConfig, getHighPowerList, getLockActivePeriod, getDeviceRotate, getSpecificationList, getSpecification, checkHadVideoCloud, getDeviceAddValueType };
|
@@ -0,0 +1,92 @@
|
|
1
|
+
/**
|
2
|
+
* GetHasBindLockListParams - 查询门锁已绑定的配件列表
|
3
|
+
*/
|
4
|
+
type GetHasBindLockListParams = {
|
5
|
+
devId: string;
|
6
|
+
};
|
7
|
+
/**
|
8
|
+
* GetHasBindLockListResponse - 查询门锁已绑定的配件列表
|
9
|
+
*/
|
10
|
+
type GetHasBindLockListResponse = {
|
11
|
+
devId: string;
|
12
|
+
fittingName: string;
|
13
|
+
bindingId: string;
|
14
|
+
fittingUnlockId: string;
|
15
|
+
randomStr: string;
|
16
|
+
fittingId: string;
|
17
|
+
devUnlockId: string;
|
18
|
+
icon: string;
|
19
|
+
online: boolean;
|
20
|
+
devName: string;
|
21
|
+
devUuid: string;
|
22
|
+
};
|
23
|
+
/**
|
24
|
+
* 查询门锁已绑定的配件列表
|
25
|
+
* @param {GetHasBindLockListParams} params - 查询门锁已绑定的配件列表参数
|
26
|
+
* @returns {Promise<GetHasBindLockListResponse>} - 查询结果的 Promise
|
27
|
+
*/
|
28
|
+
export declare const getHasBindLockList: (params: GetHasBindLockListParams) => Promise<GetHasBindLockListResponse>;
|
29
|
+
/**
|
30
|
+
* GetCanBindLockListParams - 查询门锁可绑定的配件列表
|
31
|
+
*/
|
32
|
+
type GetCanBindLockListParams = {
|
33
|
+
devId: string;
|
34
|
+
};
|
35
|
+
/**
|
36
|
+
* GetCanBindLockListResponse - 查询门锁可绑定的配件列表
|
37
|
+
*/
|
38
|
+
type GetCanBindLockListResponse = {
|
39
|
+
devId: string;
|
40
|
+
fittingUnlockId: string;
|
41
|
+
randomStr: string;
|
42
|
+
fittingId: string;
|
43
|
+
devUnlockId: string;
|
44
|
+
icon: string;
|
45
|
+
online: boolean;
|
46
|
+
devName: string;
|
47
|
+
devUuid: string;
|
48
|
+
};
|
49
|
+
/**
|
50
|
+
* 查询门锁可绑定的配件列表
|
51
|
+
* @param {GetCanBindLockListParams} params - 查询门锁可绑定的配件列表参数
|
52
|
+
* @returns {Promise<GetCanBindLockListResponse>} - 查询结果的 Promise
|
53
|
+
*/
|
54
|
+
export declare const getCanBindLockList: (params: GetCanBindLockListParams) => Promise<GetCanBindLockListResponse>;
|
55
|
+
/**
|
56
|
+
* BindLockToFitParams - 配件绑定门锁/门锁绑定配件
|
57
|
+
*/
|
58
|
+
type BindLockToFitParams = {
|
59
|
+
devId: string;
|
60
|
+
fittingId: string;
|
61
|
+
stage: number;
|
62
|
+
};
|
63
|
+
/**
|
64
|
+
* BindLockToFitResponse - 配件绑定门锁/门锁绑定配件
|
65
|
+
*/
|
66
|
+
type BindLockToFitResponse = {
|
67
|
+
bindingId: string;
|
68
|
+
};
|
69
|
+
/**
|
70
|
+
* 配件绑定门锁/门锁绑定配件
|
71
|
+
* @param {BindLockToFitParams} params - 配件绑定门锁/门锁绑定配件参数
|
72
|
+
* @returns {Promise<BindLockToFitResponse>} - 查询结果的 Promise
|
73
|
+
*/
|
74
|
+
export declare const bindLockToFit: (params: BindLockToFitParams) => Promise<BindLockToFitResponse>;
|
75
|
+
/**
|
76
|
+
* RemoveLockToFitParams - 解除配件与门锁的绑定
|
77
|
+
*/
|
78
|
+
type RemoveLockToFitParams = {
|
79
|
+
devId: string;
|
80
|
+
bindingId: string;
|
81
|
+
};
|
82
|
+
/**
|
83
|
+
* RemoveLockToFitResponse - 解除配件与门锁的绑定
|
84
|
+
*/
|
85
|
+
type RemoveLockToFitResponse = boolean;
|
86
|
+
/**
|
87
|
+
* 解除配件与门锁的绑定
|
88
|
+
* @param {RemoveLockToFitParams} params - 解除配件与门锁的绑定参数
|
89
|
+
* @returns {Promise<RemoveLockToFitResponse>} - 查询结果的 Promise
|
90
|
+
*/
|
91
|
+
export declare const removeLockToFit: (params: RemoveLockToFitParams) => Promise<RemoveLockToFitResponse>;
|
92
|
+
export {};
|
@@ -0,0 +1,103 @@
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import { THING } from '../../constants';
|
3
|
+
import requestCloud from '../../requestCloud';
|
4
|
+
|
5
|
+
//#region 查询门锁已绑定的配件列表
|
6
|
+
|
7
|
+
/**
|
8
|
+
* GetHasBindLockListParams - 查询门锁已绑定的配件列表
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* GetHasBindLockListResponse - 查询门锁已绑定的配件列表
|
13
|
+
*/
|
14
|
+
|
15
|
+
/**
|
16
|
+
* 查询门锁已绑定的配件列表
|
17
|
+
* @param {GetHasBindLockListParams} params - 查询门锁已绑定的配件列表参数
|
18
|
+
* @returns {Promise<GetHasBindLockListResponse>} - 查询结果的 Promise
|
19
|
+
*/
|
20
|
+
export const getHasBindLockList = params => {
|
21
|
+
return requestCloud({
|
22
|
+
api: "".concat(THING, ".m.device.lock.fittings.list"),
|
23
|
+
version: '1.0',
|
24
|
+
data: _objectSpread({}, params)
|
25
|
+
});
|
26
|
+
};
|
27
|
+
|
28
|
+
//#endregion
|
29
|
+
|
30
|
+
//#region 查询门锁可绑定的配件列表
|
31
|
+
|
32
|
+
/**
|
33
|
+
* GetCanBindLockListParams - 查询门锁可绑定的配件列表
|
34
|
+
*/
|
35
|
+
|
36
|
+
/**
|
37
|
+
* GetCanBindLockListResponse - 查询门锁可绑定的配件列表
|
38
|
+
*/
|
39
|
+
|
40
|
+
/**
|
41
|
+
* 查询门锁可绑定的配件列表
|
42
|
+
* @param {GetCanBindLockListParams} params - 查询门锁可绑定的配件列表参数
|
43
|
+
* @returns {Promise<GetCanBindLockListResponse>} - 查询结果的 Promise
|
44
|
+
*/
|
45
|
+
export const getCanBindLockList = params => {
|
46
|
+
return requestCloud({
|
47
|
+
api: "".concat(THING, ".m.device.lock.bindings.available"),
|
48
|
+
version: '1.0',
|
49
|
+
data: _objectSpread({}, params)
|
50
|
+
});
|
51
|
+
};
|
52
|
+
|
53
|
+
//#endregion
|
54
|
+
|
55
|
+
//#region 配件绑定门锁/门锁绑定配件
|
56
|
+
|
57
|
+
/**
|
58
|
+
* BindLockToFitParams - 配件绑定门锁/门锁绑定配件
|
59
|
+
*/
|
60
|
+
|
61
|
+
/**
|
62
|
+
* BindLockToFitResponse - 配件绑定门锁/门锁绑定配件
|
63
|
+
*/
|
64
|
+
|
65
|
+
/**
|
66
|
+
* 配件绑定门锁/门锁绑定配件
|
67
|
+
* @param {BindLockToFitParams} params - 配件绑定门锁/门锁绑定配件参数
|
68
|
+
* @returns {Promise<BindLockToFitResponse>} - 查询结果的 Promise
|
69
|
+
*/
|
70
|
+
export const bindLockToFit = params => {
|
71
|
+
return requestCloud({
|
72
|
+
api: "".concat(THING, ".m.device.lock.fittings.bind"),
|
73
|
+
version: '1.0',
|
74
|
+
data: _objectSpread({}, params)
|
75
|
+
});
|
76
|
+
};
|
77
|
+
|
78
|
+
//#endregion
|
79
|
+
|
80
|
+
//#region 解除配件与门锁的绑定
|
81
|
+
|
82
|
+
/**
|
83
|
+
* RemoveLockToFitParams - 解除配件与门锁的绑定
|
84
|
+
*/
|
85
|
+
|
86
|
+
/**
|
87
|
+
* RemoveLockToFitResponse - 解除配件与门锁的绑定
|
88
|
+
*/
|
89
|
+
|
90
|
+
/**
|
91
|
+
* 解除配件与门锁的绑定
|
92
|
+
* @param {RemoveLockToFitParams} params - 解除配件与门锁的绑定参数
|
93
|
+
* @returns {Promise<RemoveLockToFitResponse>} - 查询结果的 Promise
|
94
|
+
*/
|
95
|
+
export const removeLockToFit = params => {
|
96
|
+
return requestCloud({
|
97
|
+
api: "".concat(THING, ".m.device.lock.bindings.remove"),
|
98
|
+
version: '1.0',
|
99
|
+
data: _objectSpread({}, params)
|
100
|
+
});
|
101
|
+
};
|
102
|
+
|
103
|
+
//#endregion
|
@@ -1,4 +1,3 @@
|
|
1
|
-
export * from './old';
|
2
1
|
export * from './auth';
|
3
2
|
export * from './device';
|
4
3
|
export * from './log';
|
@@ -8,3 +7,7 @@ export * from './offline-pwd';
|
|
8
7
|
export * from './temp-pwd';
|
9
8
|
export * from './unlock';
|
10
9
|
export * from './unlock-method';
|
10
|
+
export * from './setting';
|
11
|
+
export * from './fittings';
|
12
|
+
export * from './sence';
|
13
|
+
export * from './service';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from './old'
|
1
|
+
// export * from './old'
|
2
2
|
|
3
3
|
// 授权相关
|
4
4
|
export * from './auth';
|
@@ -17,4 +17,12 @@ export * from './temp-pwd';
|
|
17
17
|
// 解锁相关
|
18
18
|
export * from './unlock';
|
19
19
|
// 解锁方式分配相关
|
20
|
-
export * from './unlock-method';
|
20
|
+
export * from './unlock-method';
|
21
|
+
// 设置相关
|
22
|
+
export * from './setting';
|
23
|
+
// 配件相关
|
24
|
+
export * from './fittings';
|
25
|
+
// 场景相关
|
26
|
+
export * from './sence';
|
27
|
+
// 增值服务相关
|
28
|
+
export * from './service';
|
@@ -31,7 +31,7 @@ type LatestLogResponse = {
|
|
31
31
|
* @param {LatestLogParams} params - 包含设备Id的参数
|
32
32
|
* @returns {Promise<LatestLogResponse>} - 包含请求结果和状态的响应
|
33
33
|
*/
|
34
|
-
|
34
|
+
declare const getLatestLog: (params: LatestLogParams) => Promise<LatestLogResponse>;
|
35
35
|
type UserAction = {
|
36
36
|
userType: number;
|
37
37
|
userId: number;
|
@@ -82,7 +82,7 @@ type QueryLogRecordResponse = LogRecord[];
|
|
82
82
|
* @param {QueryLogRecordParams} params
|
83
83
|
* @returns {Promise<QueryLogRecordResponse>} - 包含请求结果和状态的响应
|
84
84
|
*/
|
85
|
-
|
85
|
+
declare const queryLogRecord: (params: QueryLogRecordParams) => Promise<QueryLogRecordResponse>;
|
86
86
|
type UploadLogRecordResult = boolean;
|
87
87
|
type UploadLogRecordParams = {
|
88
88
|
devId: string;
|
@@ -94,7 +94,7 @@ type UploadLogRecordParams = {
|
|
94
94
|
* @param {UploadLogRecordParams} params
|
95
95
|
* @returns {Promise<UploadLogRecordResult>}
|
96
96
|
*/
|
97
|
-
|
97
|
+
declare const uploadLogRecord: (params: UploadLogRecordParams) => Promise<UploadLogRecordResult>;
|
98
98
|
type QueryAlbumRecordParams = {
|
99
99
|
devId: string;
|
100
100
|
offset: number;
|
@@ -109,5 +109,117 @@ type QueryAlbumRecordResponse = {
|
|
109
109
|
* @param {QueryAlbumRecordParams} params
|
110
110
|
* @returns {Promise<QueryAlbumRecordResponse>}
|
111
111
|
*/
|
112
|
-
|
113
|
-
|
112
|
+
declare const queryAlbumRecord: (params: QueryAlbumRecordParams) => Promise<QueryAlbumRecordResponse>;
|
113
|
+
/**
|
114
|
+
* GetPictureUrlParams - 获取实时图片路径地址
|
115
|
+
*/
|
116
|
+
type GetPictureUrlParams = {
|
117
|
+
devId: string;
|
118
|
+
mediaBucket: string;
|
119
|
+
mediaPath: string;
|
120
|
+
};
|
121
|
+
/**
|
122
|
+
* GetPictureUrlResponse - 获取实时图片路径地址
|
123
|
+
*/
|
124
|
+
type GetPictureUrlResponse = {
|
125
|
+
mediaUrl: string;
|
126
|
+
};
|
127
|
+
/**
|
128
|
+
* 获取实时图片路径地址
|
129
|
+
* @param {GetPictureUrlParams} params - 获取实时图片路径地址参数
|
130
|
+
* @returns {Promise<GetPictureUrlResponse>} - 查询结果的 Promise
|
131
|
+
*/
|
132
|
+
declare const getPictureUrl: (params: GetPictureUrlParams) => Promise<GetPictureUrlResponse>;
|
133
|
+
/**
|
134
|
+
* GetAlarmHistoryParams - 告警记录
|
135
|
+
*/
|
136
|
+
type GetAlarmHistoryParams = {
|
137
|
+
devId: string;
|
138
|
+
dpIds: string[];
|
139
|
+
offset?: number;
|
140
|
+
limit?: number;
|
141
|
+
};
|
142
|
+
/**
|
143
|
+
* MediaInfo - 本次记录对应的图片和视频信息
|
144
|
+
*/
|
145
|
+
type MediaInfoItem = {
|
146
|
+
fileUrl?: string;
|
147
|
+
fileKey?: string;
|
148
|
+
filePath?: string;
|
149
|
+
mediaUrl?: string;
|
150
|
+
mediaKey?: string;
|
151
|
+
};
|
152
|
+
/**
|
153
|
+
* Dp - 数据点
|
154
|
+
*/
|
155
|
+
type Dp = Record<string, string>;
|
156
|
+
/**
|
157
|
+
* DataItem - 数据项
|
158
|
+
*/
|
159
|
+
type DataItem = {
|
160
|
+
devId: string;
|
161
|
+
dps: Dp[];
|
162
|
+
avatar: string;
|
163
|
+
userName: string;
|
164
|
+
gmtCreate: number;
|
165
|
+
uuid: string;
|
166
|
+
userId?: string;
|
167
|
+
tags?: number;
|
168
|
+
status?: number;
|
169
|
+
mediaInfoList?: MediaInfoItem[];
|
170
|
+
};
|
171
|
+
/**
|
172
|
+
* GetAlarmHistoryResponse - 告警记录
|
173
|
+
*/
|
174
|
+
type GetAlarmHistoryResponse = {
|
175
|
+
datas: DataItem[];
|
176
|
+
hasNext: boolean;
|
177
|
+
totalCount: number;
|
178
|
+
};
|
179
|
+
/**
|
180
|
+
* 告警记录
|
181
|
+
* @param {GetAlarmHistoryParams} params - 告警记录参数
|
182
|
+
* @returns {Promise<GetAlarmHistoryResponse>} - 查询结果的 Promise
|
183
|
+
*/
|
184
|
+
declare const getAlarmHistory: (params: GetAlarmHistoryParams) => Promise<GetAlarmHistoryResponse>;
|
185
|
+
/**
|
186
|
+
* getTwoLatestLogParams - 获取最近两条记录的信息
|
187
|
+
*/
|
188
|
+
type getTwoLatestLogParams = {
|
189
|
+
devId: string;
|
190
|
+
};
|
191
|
+
/**
|
192
|
+
* OperateRecord - 操作记录
|
193
|
+
*/
|
194
|
+
type OperateRecord = {
|
195
|
+
currentUser?: boolean;
|
196
|
+
logCategory: string;
|
197
|
+
logId: string;
|
198
|
+
recordType?: string;
|
199
|
+
unlockNameRosettaKey?: string;
|
200
|
+
unlockName?: string;
|
201
|
+
logType: string;
|
202
|
+
memberBindableFlag: boolean;
|
203
|
+
time: number;
|
204
|
+
userId?: string;
|
205
|
+
userName?: string;
|
206
|
+
relateDevName?: string;
|
207
|
+
relateOpMode?: string;
|
208
|
+
unionUnlockInfo?: UnionUnlockInfo;
|
209
|
+
data?: string;
|
210
|
+
mediaInfoList?: MediaInfo[];
|
211
|
+
};
|
212
|
+
/**
|
213
|
+
* getTwoLatestLogResponse - 获取最近两条记录的信息
|
214
|
+
*/
|
215
|
+
type getTwoLatestLogResponse = {
|
216
|
+
operateRecordVOList: OperateRecord[];
|
217
|
+
unReadCount: number;
|
218
|
+
};
|
219
|
+
/**
|
220
|
+
* 获取最近两条记录的信息
|
221
|
+
* @param {getTwoLatestLogParams} params - 获取最近两条记录的信息参数
|
222
|
+
* @returns {Promise<getTwoLatestLogResponse>} - 查询结果的 Promise
|
223
|
+
*/
|
224
|
+
declare const getTwoLatestLog: (params: getTwoLatestLogParams) => Promise<getTwoLatestLogResponse>;
|
225
|
+
export { getLatestLog, queryLogRecord, uploadLogRecord, queryAlbumRecord, getPictureUrl, getAlarmHistory, getTwoLatestLog, };
|