@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.
- package/@types/energy.d.ts +18 -0
- package/lib/cloud/doorlock/auth.d.ts +9 -9
- package/lib/cloud/doorlock/auth.js +13 -9
- package/lib/cloud/doorlock/device.d.ts +223 -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 +2 -1
- package/lib/cloud/doorlock/index.js +6 -2
- package/lib/cloud/doorlock/log.d.ts +117 -5
- package/lib/cloud/doorlock/log.js +99 -5
- 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/lib/cloud/energy.d.ts +1 -0
- package/lib/cloud/energy.js +5 -1
- 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
|
/**
|
@@ -5,7 +6,7 @@ import requestCloud from '../../requestCloud';
|
|
5
6
|
* @param {LatestLogParams} params - 包含设备Id的参数
|
6
7
|
* @returns {Promise<LatestLogResponse>} - 包含请求结果和状态的响应
|
7
8
|
*/
|
8
|
-
|
9
|
+
const getLatestLog = params => {
|
9
10
|
return requestCloud({
|
10
11
|
api: "".concat(THING, ".m.device.lock.log.latest"),
|
11
12
|
version: '1.0',
|
@@ -17,7 +18,7 @@ export const getLatestLog = params => {
|
|
17
18
|
* @param {QueryLogRecordParams} params
|
18
19
|
* @returns {Promise<QueryLogRecordResponse>} - 包含请求结果和状态的响应
|
19
20
|
*/
|
20
|
-
|
21
|
+
const queryLogRecord = params => {
|
21
22
|
return requestCloud({
|
22
23
|
api: "".concat(THING, ".m.device.lock.log.list"),
|
23
24
|
version: '1.0',
|
@@ -29,7 +30,7 @@ export const queryLogRecord = params => {
|
|
29
30
|
* @param {UploadLogRecordParams} params
|
30
31
|
* @returns {Promise<UploadLogRecordResult>}
|
31
32
|
*/
|
32
|
-
|
33
|
+
const uploadLogRecord = params => {
|
33
34
|
return requestCloud({
|
34
35
|
api: "".concat(THING, ".m.device.lock.log.upload"),
|
35
36
|
version: '1.0',
|
@@ -44,10 +45,103 @@ export const uploadLogRecord = params => {
|
|
44
45
|
* @param {QueryAlbumRecordParams} params
|
45
46
|
* @returns {Promise<QueryAlbumRecordResponse>}
|
46
47
|
*/
|
47
|
-
|
48
|
+
const queryAlbumRecord = params => {
|
48
49
|
return requestCloud({
|
49
50
|
api: "".concat(THING, ".m.lock.album.media.list"),
|
50
51
|
version: '2.0',
|
51
52
|
data: params
|
52
53
|
});
|
53
|
-
};
|
54
|
+
};
|
55
|
+
|
56
|
+
//#region 获取实时图片路径地址
|
57
|
+
|
58
|
+
/**
|
59
|
+
* GetPictureUrlParams - 获取实时图片路径地址
|
60
|
+
*/
|
61
|
+
|
62
|
+
/**
|
63
|
+
* GetPictureUrlResponse - 获取实时图片路径地址
|
64
|
+
*/
|
65
|
+
|
66
|
+
/**
|
67
|
+
* 获取实时图片路径地址
|
68
|
+
* @param {GetPictureUrlParams} params - 获取实时图片路径地址参数
|
69
|
+
* @returns {Promise<GetPictureUrlResponse>} - 查询结果的 Promise
|
70
|
+
*/
|
71
|
+
const getPictureUrl = params => {
|
72
|
+
return requestCloud({
|
73
|
+
api: "".concat(THING, ".m.device.lock.media.path"),
|
74
|
+
version: '2.0',
|
75
|
+
data: _objectSpread({}, params)
|
76
|
+
});
|
77
|
+
};
|
78
|
+
|
79
|
+
//#endregion
|
80
|
+
|
81
|
+
//#region 告警记录
|
82
|
+
|
83
|
+
/**
|
84
|
+
* GetAlarmHistoryParams - 告警记录
|
85
|
+
*/
|
86
|
+
|
87
|
+
/**
|
88
|
+
* MediaInfo - 本次记录对应的图片和视频信息
|
89
|
+
*/
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Dp - 数据点
|
93
|
+
*/
|
94
|
+
|
95
|
+
/**
|
96
|
+
* DataItem - 数据项
|
97
|
+
*/
|
98
|
+
|
99
|
+
/**
|
100
|
+
* GetAlarmHistoryResponse - 告警记录
|
101
|
+
*/
|
102
|
+
|
103
|
+
/**
|
104
|
+
* 告警记录
|
105
|
+
* @param {GetAlarmHistoryParams} params - 告警记录参数
|
106
|
+
* @returns {Promise<GetAlarmHistoryResponse>} - 查询结果的 Promise
|
107
|
+
*/
|
108
|
+
const getAlarmHistory = params => {
|
109
|
+
return requestCloud({
|
110
|
+
api: "".concat(THING, ".m.device.lock.alarm.list"),
|
111
|
+
version: '1.0',
|
112
|
+
data: _objectSpread({}, params)
|
113
|
+
});
|
114
|
+
};
|
115
|
+
|
116
|
+
//#endregion
|
117
|
+
|
118
|
+
//#region 获取最近两条记录的信息
|
119
|
+
|
120
|
+
/**
|
121
|
+
* getTwoLatestLogParams - 获取最近两条记录的信息
|
122
|
+
*/
|
123
|
+
|
124
|
+
/**
|
125
|
+
* OperateRecord - 操作记录
|
126
|
+
*/
|
127
|
+
|
128
|
+
/**
|
129
|
+
* getTwoLatestLogResponse - 获取最近两条记录的信息
|
130
|
+
*/
|
131
|
+
|
132
|
+
/**
|
133
|
+
* 获取最近两条记录的信息
|
134
|
+
* @param {getTwoLatestLogParams} params - 获取最近两条记录的信息参数
|
135
|
+
* @returns {Promise<getTwoLatestLogResponse>} - 查询结果的 Promise
|
136
|
+
*/
|
137
|
+
const getTwoLatestLog = params => {
|
138
|
+
return requestCloud({
|
139
|
+
api: "m.lock.log.latest2",
|
140
|
+
version: '1.0',
|
141
|
+
data: _objectSpread({}, params)
|
142
|
+
});
|
143
|
+
};
|
144
|
+
|
145
|
+
//#endregion
|
146
|
+
|
147
|
+
export { getLatestLog, queryLogRecord, uploadLogRecord, queryAlbumRecord, getPictureUrl, getAlarmHistory, getTwoLatestLog };
|
@@ -13,7 +13,7 @@ type ValidatePwdMemberParams = {
|
|
13
13
|
* @param {ValidatePwdMemberParams} params
|
14
14
|
* @returns {Promise<ValidatePwdMemberResult>}
|
15
15
|
*/
|
16
|
-
|
16
|
+
declare const validatePasswordForMember: (params: ValidatePwdMemberParams) => Promise<ValidatePwdMemberResult>;
|
17
17
|
type AddMemberUnlockMethodResult = {
|
18
18
|
opModeId: string;
|
19
19
|
unlockName: string;
|
@@ -38,7 +38,7 @@ type AddMemberUnlockMethodParams = {
|
|
38
38
|
* @param {AddMemberUnlockMethodParams} params
|
39
39
|
* @returns {Promise<AddMemberUnlockMethodResult>}
|
40
40
|
*/
|
41
|
-
|
41
|
+
declare const addMemberUnlockMethod: (params: AddMemberUnlockMethodParams) => Promise<AddMemberUnlockMethodResult>;
|
42
42
|
type RemoveMemberUnlockMethodResult = boolean;
|
43
43
|
type RemoveMemberUnlockMethodParams = {
|
44
44
|
devId: string;
|
@@ -49,7 +49,7 @@ type RemoveMemberUnlockMethodParams = {
|
|
49
49
|
* @param {RemoveMemberUnlockMethodParams} params
|
50
50
|
* @returns {Promise<RemoveMemberUnlockMethodResult>}
|
51
51
|
*/
|
52
|
-
|
52
|
+
declare const removeMemberUnlockMethod: (params: RemoveMemberUnlockMethodParams) => Promise<RemoveMemberUnlockMethodResult>;
|
53
53
|
type SendSpecialUnlockVerifyCodeResult = boolean;
|
54
54
|
type SendSpecialUnlockVerifyCodeParams = {
|
55
55
|
account: string;
|
@@ -59,7 +59,7 @@ type SendSpecialUnlockVerifyCodeParams = {
|
|
59
59
|
* @param {SendSpecialUnlockVerifyCodeParams} params
|
60
60
|
* @returns {Promise<SendSpecialUnlockVerifyCodeResult>}
|
61
61
|
*/
|
62
|
-
|
62
|
+
declare const sendSpecialUnlockVerifyCode: (params: SendSpecialUnlockVerifyCodeParams) => Promise<SendSpecialUnlockVerifyCodeResult>;
|
63
63
|
type UpdateMemberUnlockModeResult = boolean;
|
64
64
|
type UpdateMemberUnlockModeParams = {
|
65
65
|
devId: string;
|
@@ -74,7 +74,7 @@ type UpdateMemberUnlockModeParams = {
|
|
74
74
|
* @param {UpdateMemberUnlockModeParams} params
|
75
75
|
* @returns {Promise<UpdateMemberUnlockModeResult>}
|
76
76
|
*/
|
77
|
-
|
77
|
+
declare const updateMemberUnlockMode: (params: UpdateMemberUnlockModeParams) => Promise<UpdateMemberUnlockModeResult>;
|
78
78
|
type UnlockMethodDetailResult = {
|
79
79
|
phase: number;
|
80
80
|
opmode: string;
|
@@ -106,16 +106,5 @@ type UnlockMethodDetailParams = {
|
|
106
106
|
* @param {UnlockMethodDetailParams} params
|
107
107
|
* @returns {Promise<UnlockMethodDetailResult>}
|
108
108
|
*/
|
109
|
-
|
110
|
-
|
111
|
-
type GetPasswordSNParams = {
|
112
|
-
devId: string;
|
113
|
-
dpId: number;
|
114
|
-
};
|
115
|
-
/**
|
116
|
-
* 获取创建密码时的序号
|
117
|
-
* @param {GetPasswordSNParams} params
|
118
|
-
* @returns {Promise<GetPasswordSNResult>}
|
119
|
-
*/
|
120
|
-
export declare const getCreatePasswordSN: (params: GetPasswordSNParams) => Promise<GetPasswordSNResult>;
|
121
|
-
export {};
|
109
|
+
declare const getUnlockMethodDetail: (params: UnlockMethodDetailParams) => Promise<UnlockMethodDetailResult>;
|
110
|
+
export { validatePasswordForMember, addMemberUnlockMethod, removeMemberUnlockMethod, sendSpecialUnlockVerifyCode, updateMemberUnlockMode, getUnlockMethodDetail, };
|
@@ -8,7 +8,7 @@ import requestCloud from '../../requestCloud';
|
|
8
8
|
* @param {ValidatePwdMemberParams} params
|
9
9
|
* @returns {Promise<ValidatePwdMemberResult>}
|
10
10
|
*/
|
11
|
-
|
11
|
+
const validatePasswordForMember = params => {
|
12
12
|
return requestCloud({
|
13
13
|
api: "".concat(THING, ".m.device.member.opmode.pwd.validate"),
|
14
14
|
version: '1.0',
|
@@ -23,7 +23,7 @@ export const validatePasswordForMember = params => {
|
|
23
23
|
* @param {AddMemberUnlockMethodParams} params
|
24
24
|
* @returns {Promise<AddMemberUnlockMethodResult>}
|
25
25
|
*/
|
26
|
-
|
26
|
+
const addMemberUnlockMethod = params => {
|
27
27
|
return requestCloud({
|
28
28
|
api: "".concat(THING, ".m.device.member.opmode.add"),
|
29
29
|
version: '5.0',
|
@@ -38,7 +38,7 @@ export const addMemberUnlockMethod = params => {
|
|
38
38
|
* @param {RemoveMemberUnlockMethodParams} params
|
39
39
|
* @returns {Promise<RemoveMemberUnlockMethodResult>}
|
40
40
|
*/
|
41
|
-
|
41
|
+
const removeMemberUnlockMethod = params => {
|
42
42
|
return requestCloud({
|
43
43
|
api: "".concat(THING, ".m.device.member.opmode.remove"),
|
44
44
|
version: '2.0',
|
@@ -50,7 +50,7 @@ export const removeMemberUnlockMethod = params => {
|
|
50
50
|
* @param {SendSpecialUnlockVerifyCodeParams} params
|
51
51
|
* @returns {Promise<SendSpecialUnlockVerifyCodeResult>}
|
52
52
|
*/
|
53
|
-
|
53
|
+
const sendSpecialUnlockVerifyCode = params => {
|
54
54
|
return requestCloud({
|
55
55
|
api: "".concat(THING, ".m.device.user.verifycode.send"),
|
56
56
|
version: '1.0',
|
@@ -65,7 +65,7 @@ export const sendSpecialUnlockVerifyCode = params => {
|
|
65
65
|
* @param {UpdateMemberUnlockModeParams} params
|
66
66
|
* @returns {Promise<UpdateMemberUnlockModeResult>}
|
67
67
|
*/
|
68
|
-
|
68
|
+
const updateMemberUnlockMode = params => {
|
69
69
|
return requestCloud({
|
70
70
|
api: "".concat(THING, ".m.device.member.opmode.update"),
|
71
71
|
version: '5.0',
|
@@ -80,25 +80,11 @@ export const updateMemberUnlockMode = params => {
|
|
80
80
|
* @param {UnlockMethodDetailParams} params
|
81
81
|
* @returns {Promise<UnlockMethodDetailResult>}
|
82
82
|
*/
|
83
|
-
|
83
|
+
const getUnlockMethodDetail = params => {
|
84
84
|
return requestCloud({
|
85
85
|
api: "".concat(THING, ".m.device.member.opmode.detail"),
|
86
86
|
version: '1.0',
|
87
87
|
data: params
|
88
88
|
});
|
89
89
|
};
|
90
|
-
|
91
|
-
// 4.7. 获取创建密码时的序号
|
92
|
-
|
93
|
-
/**
|
94
|
-
* 获取创建密码时的序号
|
95
|
-
* @param {GetPasswordSNParams} params
|
96
|
-
* @returns {Promise<GetPasswordSNResult>}
|
97
|
-
*/
|
98
|
-
export const getCreatePasswordSN = params => {
|
99
|
-
return requestCloud({
|
100
|
-
api: "".concat(THING, ".m.device.dp.sn.get"),
|
101
|
-
version: '1.0',
|
102
|
-
data: params
|
103
|
-
});
|
104
|
-
};
|
90
|
+
export { validatePasswordForMember, addMemberUnlockMethod, removeMemberUnlockMethod, sendSpecialUnlockVerifyCode, updateMemberUnlockMode, getUnlockMethodDetail };
|
@@ -13,7 +13,7 @@ type CurrentMemberInfoParams = {
|
|
13
13
|
devId: string;
|
14
14
|
dpIds: string;
|
15
15
|
};
|
16
|
-
|
16
|
+
declare const getCurrentMemberInfo: (params: CurrentMemberInfoParams) => Promise<CurrentMemberInfoResult>;
|
17
17
|
type UnlockDetail = {
|
18
18
|
dpId: number;
|
19
19
|
count: number;
|
@@ -57,21 +57,13 @@ type FamilyMemberListWithUnlockCountParams = {
|
|
57
57
|
devId: string;
|
58
58
|
dpIds: Array<number>;
|
59
59
|
};
|
60
|
-
|
60
|
+
declare const getFamilyMemberListWithUnlockCount: (params: FamilyMemberListWithUnlockCountParams) => Promise<FamilyMemberListWithUnlockCountResult>;
|
61
61
|
type FamilyMemberRemovalResult = boolean;
|
62
62
|
type FamilyMemberRemovalParams = {
|
63
63
|
devId: string;
|
64
64
|
userId: string;
|
65
65
|
};
|
66
|
-
|
67
|
-
type UserDeletionQueryResult = Array<{
|
68
|
-
userId: number;
|
69
|
-
lockUserId: number;
|
70
|
-
}>;
|
71
|
-
type UserDeletionQueryParams = {
|
72
|
-
devId: string;
|
73
|
-
};
|
74
|
-
export declare const queryUserDeletion: (params: UserDeletionQueryParams) => Promise<UserDeletionQueryResult>;
|
66
|
+
declare const removeFamilyMember: (params: FamilyMemberRemovalParams) => Promise<FamilyMemberRemovalResult>;
|
75
67
|
type LockSyncBatchResult = {
|
76
68
|
lockRandom: {
|
77
69
|
devUnlockId: string;
|
@@ -92,19 +84,233 @@ type LockSyncBatchResult = {
|
|
92
84
|
type LockSyncBatchParams = {
|
93
85
|
devId: string;
|
94
86
|
};
|
95
|
-
|
87
|
+
declare const syncLockBatch: (params: LockSyncBatchParams) => Promise<LockSyncBatchResult>;
|
96
88
|
type UpdateUserTimeScheduleResult = boolean;
|
97
89
|
type UpdateUserTimeScheduleParams = {
|
98
90
|
devId: string;
|
99
91
|
userId: string;
|
100
92
|
timeScheduleInfo: TimeScheduleInfo;
|
101
93
|
};
|
102
|
-
|
103
|
-
|
104
|
-
|
94
|
+
declare const updateUserTimeSchedule: (params: UpdateUserTimeScheduleParams) => Promise<UpdateUserTimeScheduleResult>;
|
95
|
+
/**
|
96
|
+
* BindRecordUnlockIdParams - 开门记录分配到成员
|
97
|
+
*/
|
98
|
+
type BindRecordUnlockIdParams = {
|
105
99
|
devId: string;
|
106
100
|
userId: string;
|
107
|
-
|
101
|
+
unlockIds: string[];
|
102
|
+
};
|
103
|
+
/**
|
104
|
+
* BindRecordUnlockIdResponse - 开门记录分配到成员
|
105
|
+
*/
|
106
|
+
type BindRecordUnlockIdResponse = boolean;
|
107
|
+
/**
|
108
|
+
* 开门记录分配到成员
|
109
|
+
* @param {BindRecordUnlockIdParams} params - 开门记录分配到成员参数
|
110
|
+
* @returns {Promise<BindRecordUnlockIdResponse>} - 查询结果的 Promise
|
111
|
+
*/
|
112
|
+
declare const bindRecordUnlockId: (params: BindRecordUnlockIdParams) => Promise<BindRecordUnlockIdResponse>;
|
113
|
+
/**
|
114
|
+
* GetAppShareInfoParams - 小程序分享参数
|
115
|
+
*/
|
116
|
+
type GetAppShareInfoParams = {
|
117
|
+
pid?: string;
|
118
|
+
appAppId?: string;
|
119
|
+
};
|
120
|
+
/**
|
121
|
+
* GetAppShareInfoResponse - 小程序分享响应
|
122
|
+
*/
|
123
|
+
type GetAppShareInfoResponse = {
|
124
|
+
pid: string;
|
125
|
+
smallProgramAppId: string;
|
126
|
+
appAppId: string;
|
127
|
+
};
|
128
|
+
/**
|
129
|
+
* 小程序分享
|
130
|
+
* @param {GetAppShareInfoParams} params - 小程序分享参数
|
131
|
+
* @returns {Promise<GetAppShareInfoResponse>} - 设置结果的 Promise
|
132
|
+
*/
|
133
|
+
declare const getAppShareInfo: (params: GetAppShareInfoParams) => Promise<GetAppShareInfoResponse>;
|
134
|
+
/**
|
135
|
+
* UnbindUnlockToUserParams - 解除解锁方式与人的绑定关系
|
136
|
+
*/
|
137
|
+
type UnbindUnlockToUserParams = {
|
138
|
+
devId: string;
|
139
|
+
userId: string;
|
140
|
+
unlockIds: string[];
|
141
|
+
};
|
142
|
+
/**
|
143
|
+
* GetHighPowerListResponse - 解除解锁方式与人的绑定关系
|
144
|
+
*/
|
145
|
+
type UnbindUnlockToUserResponse = boolean;
|
146
|
+
/**
|
147
|
+
* 解除解锁方式与人的绑定关系
|
148
|
+
* @param {UnbindUnlockToUserParams} params - 解除解锁方式与人的绑定关系参数
|
149
|
+
* @returns {Promise<UnbindUnlockToUserResponse>} - 查询结果的 Promise
|
150
|
+
*/
|
151
|
+
declare const unbindUnlockToUser: (params: UnbindUnlockToUserParams) => Promise<UnbindUnlockToUserResponse>;
|
152
|
+
/**
|
153
|
+
* GetAllFamilyMemberParams - 获取所有的成员列表(新)
|
154
|
+
*/
|
155
|
+
type GetAllFamilyMemberParams = {
|
156
|
+
devId: string;
|
157
|
+
dpCodes: string;
|
158
|
+
keyword?: string;
|
159
|
+
offset: number;
|
160
|
+
limit: number;
|
161
|
+
};
|
162
|
+
/**
|
163
|
+
* TimeScheduleInfo - 时间计划信息
|
164
|
+
*/
|
165
|
+
type TimeScheduleInfoNew = {
|
166
|
+
permanent: boolean;
|
167
|
+
timeSetShifted?: boolean;
|
168
|
+
userTimeSet: string;
|
169
|
+
effectiveTime: number;
|
170
|
+
expiredTime: number;
|
171
|
+
scheduleDetails?: ScheduleDetailsNew[];
|
172
|
+
};
|
173
|
+
/**
|
174
|
+
* UnlockDetail - 解锁详情
|
175
|
+
*/
|
176
|
+
type UnlockDetailNew = {
|
177
|
+
dpId?: number;
|
178
|
+
count?: number;
|
179
|
+
unlockList?: Array<{
|
180
|
+
unlockId?: string;
|
181
|
+
opModeId?: number;
|
182
|
+
unlockName?: string;
|
183
|
+
unlockAttr?: number;
|
184
|
+
adminFlag?: boolean;
|
185
|
+
}>;
|
186
|
+
};
|
187
|
+
type ScheduleDetailsNew = {
|
188
|
+
effectiveTime: number;
|
189
|
+
invalidTime: number;
|
190
|
+
workingDay: number;
|
191
|
+
timeZoneId: string;
|
192
|
+
allDay: boolean;
|
193
|
+
};
|
194
|
+
/**
|
195
|
+
* User - 用户信息
|
196
|
+
*/
|
197
|
+
type User = {
|
198
|
+
avatarUrl: string;
|
199
|
+
backHomeNotifyAttr: number;
|
200
|
+
effectiveFlag: number;
|
201
|
+
lockUserId: number;
|
202
|
+
nickName: string;
|
203
|
+
offlineUnlock: boolean;
|
204
|
+
timeScheduleInfo: TimeScheduleInfoNew;
|
205
|
+
uid?: string;
|
206
|
+
unlockDetail: UnlockDetailNew[];
|
207
|
+
userContact: string;
|
208
|
+
userDesensitizedContact?: string;
|
209
|
+
userId: string;
|
210
|
+
userListType: string;
|
211
|
+
userType: number;
|
212
|
+
};
|
213
|
+
/**
|
214
|
+
* GetHighPowerListResponse - 获取所有的成员列表(新)
|
215
|
+
*/
|
216
|
+
type GetAllFamilyMemberResponse = {
|
217
|
+
admin?: User[];
|
218
|
+
hasNext: boolean;
|
219
|
+
user?: User[];
|
220
|
+
};
|
221
|
+
/**
|
222
|
+
* 获取所有的成员列表(新)
|
223
|
+
* @param {GetAllFamilyMemberParams} params - 获取所有的成员列表(新)参数
|
224
|
+
* @returns {Promise<GetAllFamilyMemberResponse>} - 查询结果的 Promise
|
225
|
+
*/
|
226
|
+
declare const getAllFamilyMember: (params: GetAllFamilyMemberParams) => Promise<GetAllFamilyMemberResponse>;
|
227
|
+
/**
|
228
|
+
* AddNormalUserParams - 添加面板成员
|
229
|
+
*/
|
230
|
+
type AddNormalUserParams = {
|
231
|
+
devId: string;
|
232
|
+
name: string;
|
233
|
+
avatar: string;
|
234
|
+
sex?: string;
|
235
|
+
birthday?: number;
|
236
|
+
height?: number;
|
237
|
+
weight?: number;
|
238
|
+
locakHeighUnit?: string;
|
239
|
+
};
|
240
|
+
/**
|
241
|
+
* GetHighPowerListResponse - 添加面板成员
|
242
|
+
*/
|
243
|
+
type AddNormalUserResponse = {
|
244
|
+
userId: String;
|
245
|
+
};
|
246
|
+
/**
|
247
|
+
* 添加面板成员
|
248
|
+
* @param {AddNormalUserParams} params - 添加面板成员参数
|
249
|
+
* @returns {Promise<AddNormalUserResponse>} - 查询结果的 Promise
|
250
|
+
*/
|
251
|
+
declare const addNormalUser: (params: AddNormalUserParams) => Promise<AddNormalUserResponse>;
|
252
|
+
/**
|
253
|
+
* RemoveNormalUserParams - 删除面板成员
|
254
|
+
*/
|
255
|
+
type RemoveNormalUserParams = {
|
256
|
+
devId: string;
|
257
|
+
userId: string;
|
258
|
+
shouldDeleteUnlockInfo: boolean;
|
259
|
+
issueDp?: boolean;
|
260
|
+
};
|
261
|
+
/**
|
262
|
+
* GetHighPowerListResponse - 删除面板成员
|
263
|
+
*/
|
264
|
+
type RemoveNormalUserResponse = boolean;
|
265
|
+
/**
|
266
|
+
* 删除面板成员
|
267
|
+
* @param {RemoveNormalUserParams} params - 删除面板成员参数
|
268
|
+
* @returns {Promise<RemoveNormalUserResponse>} - 查询结果的 Promise
|
269
|
+
*/
|
270
|
+
declare const removeNormalUser: (params: RemoveNormalUserParams) => Promise<RemoveNormalUserResponse>;
|
271
|
+
/**
|
272
|
+
* GetNormalUserListParams - 获取面板普通成员列表
|
273
|
+
*/
|
274
|
+
type GetNormalUserListParams = {
|
275
|
+
devId: string;
|
276
|
+
dpIds: string;
|
277
|
+
keyword: string;
|
278
|
+
offset: number;
|
279
|
+
limit: number;
|
280
|
+
targetUserType: string;
|
281
|
+
};
|
282
|
+
/**
|
283
|
+
* GetHighPowerListResponse - 获取面板普通成员列表
|
284
|
+
*/
|
285
|
+
type GetNormalUserListResponse = User[];
|
286
|
+
/**
|
287
|
+
* 获取面板普通成员列表
|
288
|
+
* @param {GetNormalUserListParams} params - 获取面板普通成员列表参数
|
289
|
+
* @returns {Promise<GetNormalUserListResponse>} - 查询结果的 Promise
|
290
|
+
*/
|
291
|
+
declare const getNormalUserList: (params: GetNormalUserListParams) => Promise<GetNormalUserListResponse>;
|
292
|
+
/**
|
293
|
+
* GetLockMemberInfoParams - 获取门锁成员信息
|
294
|
+
*/
|
295
|
+
type GetLockMemberInfoParams = {
|
296
|
+
devId: string;
|
297
|
+
userId?: string;
|
298
|
+
};
|
299
|
+
/**
|
300
|
+
* GetLockMemberInfoResponse - 获取门锁成员信息
|
301
|
+
*/
|
302
|
+
type GetLockMemberInfoResponse = {
|
303
|
+
userId: string;
|
304
|
+
lockUserId: number;
|
305
|
+
nickName: string;
|
306
|
+
avatarUrl: string;
|
307
|
+
userType: number;
|
308
|
+
unlockList: string[];
|
108
309
|
};
|
109
|
-
|
110
|
-
|
310
|
+
/**
|
311
|
+
* 获取门锁成员信息
|
312
|
+
* @param {GetLockMemberInfoParams} params - 获取门锁成员信息参数
|
313
|
+
* @returns {Promise<GetLockMemberInfoResponse>} - 查询结果的 Promise
|
314
|
+
*/
|
315
|
+
declare const getLockMemberInfo: (params: GetLockMemberInfoParams) => Promise<GetLockMemberInfoResponse>;
|
316
|
+
export { getCurrentMemberInfo, getFamilyMemberListWithUnlockCount, removeFamilyMember, syncLockBatch, updateUserTimeSchedule, bindRecordUnlockId, getAppShareInfo, unbindUnlockToUser, getNormalUserList, getAllFamilyMember, addNormalUser, removeNormalUser, getLockMemberInfo, };
|