@ray-js/api 1.5.0-beta.12 → 1.5.1
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/BaseKit.d.ts +246 -126
- package/@types/BizKit.d.ts +1 -1
- package/@types/MapKit.d.ts +237 -1
- package/@types/MiniKit.d.ts +1 -1
- package/@types/OutdoorKit.d.ts +232 -0
- package/@types/P2PKit.d.ts +24 -2
- package/@types/all-kits.d.ts +1 -0
- package/@types/api-extend.d.ts +8 -2
- package/@types/index.d.ts +87 -0
- package/lib/{BaseKit-3.3.10.d.ts → BaseKit-3.11.0.d.ts} +1 -0
- package/lib/{BaseKit-3.3.10.js → BaseKit-3.11.0.js} +6 -2
- package/lib/BizKit-3.2.7.js +2 -1
- package/lib/DeviceKit-3.3.1.js +2 -1
- package/lib/HomeKit-3.1.4.js +2 -1
- package/lib/{MapKit-3.0.7.d.ts → MapKit-3.4.13.d.ts} +5 -0
- package/lib/{MapKit-3.0.7.js → MapKit-3.4.13.js} +19 -1
- package/lib/MiniKit-3.1.0.js +3 -2
- package/lib/OutdoorKit-1.0.4.d.ts +14 -0
- package/lib/OutdoorKit-1.0.4.js +39 -0
- package/lib/P2PKit-2.0.3.d.ts +1 -0
- package/lib/P2PKit-2.0.3.js +5 -1
- package/lib/PlayNetKit-1.1.3.d.ts +24 -25
- package/lib/PlayNetKit-1.1.3.js +2 -1
- package/lib/all-kits.d.ts +3 -2
- package/lib/all-kits.js +3 -2
- package/lib/cloud/alarm.js +2 -2
- package/lib/cloud/core.js +1 -1
- package/lib/cloud/device.d.ts +25 -1
- package/lib/cloud/device.js +20 -6
- package/lib/cloud/doorlock/README.md +62 -0
- package/lib/cloud/doorlock/auth.d.ts +235 -0
- package/lib/cloud/doorlock/auth.js +223 -0
- package/lib/cloud/doorlock/auth.md +323 -0
- package/lib/cloud/doorlock/device.d.ts +137 -0
- package/lib/cloud/doorlock/device.js +187 -0
- package/lib/cloud/doorlock/device.md +265 -0
- package/lib/cloud/doorlock/index.d.ts +10 -0
- package/lib/cloud/doorlock/index.js +20 -0
- package/lib/cloud/doorlock/log.d.ts +113 -0
- package/lib/cloud/doorlock/log.js +53 -0
- package/lib/cloud/doorlock/log.md +153 -0
- package/lib/cloud/doorlock/member-opmode.d.ts +121 -0
- package/lib/cloud/doorlock/member-opmode.js +104 -0
- package/lib/cloud/doorlock/member-opmode.md +279 -0
- package/lib/cloud/doorlock/member.d.ts +110 -0
- package/lib/cloud/doorlock/member.js +72 -0
- package/lib/cloud/doorlock/member.md +276 -0
- package/lib/cloud/doorlock/offline-pwd.d.ts +61 -0
- package/lib/cloud/doorlock/offline-pwd.js +67 -0
- package/lib/cloud/doorlock/offline-pwd.md +155 -0
- package/lib/cloud/doorlock/old.d.ts +36 -0
- package/lib/cloud/doorlock/old.js +102 -0
- package/lib/cloud/doorlock/temp-pwd.d.ts +194 -0
- package/lib/cloud/doorlock/temp-pwd.js +193 -0
- package/lib/cloud/doorlock/temp-pwd.md +362 -0
- package/lib/cloud/doorlock/unlock-method.d.ts +62 -0
- package/lib/cloud/doorlock/unlock-method.js +85 -0
- package/lib/cloud/doorlock/unlock-method.md +121 -0
- package/lib/cloud/doorlock/unlock.d.ts +89 -0
- package/lib/cloud/doorlock/unlock.js +76 -0
- package/lib/cloud/doorlock/unlock.md +222 -0
- package/lib/cloud/index.d.ts +4 -0
- package/lib/cloud/index.js +10 -1
- package/lib/cloud/interface.d.ts +39 -2
- package/lib/cloud/linkage.d.ts +8 -5
- package/lib/cloud/linkage.js +38 -17
- package/lib/cloud/outdoor.d.ts +15 -0
- package/lib/cloud/outdoor.js +25 -0
- package/lib/cloud/recipe/README.md +36 -0
- package/lib/cloud/recipe/basket.d.ts +220 -0
- package/lib/cloud/recipe/basket.js +328 -0
- package/lib/cloud/recipe/basket.md +431 -0
- package/lib/cloud/recipe/category-list.d.ts +71 -0
- package/lib/cloud/recipe/category-list.js +65 -0
- package/lib/cloud/recipe/category-list.md +132 -0
- package/lib/cloud/recipe/custom.d.ts +177 -0
- package/lib/cloud/recipe/custom.js +171 -0
- package/lib/cloud/recipe/custom.md +265 -0
- package/lib/cloud/recipe/index.d.ts +8 -0
- package/lib/cloud/recipe/index.js +8 -0
- package/lib/cloud/recipe/menu.d.ts +170 -0
- package/lib/cloud/recipe/menu.js +76 -0
- package/lib/cloud/recipe/menu.md +276 -0
- package/lib/cloud/recipe/query.d.ts +87 -0
- package/lib/cloud/recipe/query.js +101 -0
- package/lib/cloud/recipe/query.md +112 -0
- package/lib/cloud/recipe/record.d.ts +54 -0
- package/lib/cloud/recipe/record.js +87 -0
- package/lib/cloud/recipe/record.md +115 -0
- package/lib/cloud/recipe/score.d.ts +69 -0
- package/lib/cloud/recipe/score.js +106 -0
- package/lib/cloud/recipe/score.md +112 -0
- package/lib/cloud/recipe/star.d.ts +131 -0
- package/lib/cloud/recipe/star.js +151 -0
- package/lib/cloud/recipe/star.md +196 -0
- package/lib/cloud/recipe/types.d.ts +7 -0
- package/lib/cloud/recipe/types.js +0 -0
- package/lib/cloud/remoteGroup.d.ts +10 -0
- package/lib/cloud/remoteGroup.js +31 -0
- package/lib/cloud/statistic.js +9 -9
- package/lib/cloud/timer.js +14 -14
- package/lib/constants.js +1 -1
- package/lib/errorCode.d.ts +4 -0
- package/lib/errorCode.js +3 -0
- package/lib/getCdnUrl/index.d.ts +2 -2
- package/lib/getCdnUrl/index.js +1 -2
- package/lib/getCdnUrl/index.wechat.d.ts +2 -2
- package/lib/getCdnUrl/index.wechat.js +1 -2
- package/lib/getElementById/index.thing.js +1 -1
- package/lib/getElementById/index.wechat.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/nativeRouters/common.d.ts +15 -0
- package/lib/nativeRouters/common.js +38 -0
- package/lib/nativeRouters/device.d.ts +59 -0
- package/lib/nativeRouters/device.js +69 -0
- package/lib/nativeRouters/gw.d.ts +23 -0
- package/lib/nativeRouters/gw.js +27 -0
- package/lib/nativeRouters/index.d.ts +6 -1
- package/lib/nativeRouters/index.js +6 -1
- package/lib/nativeRouters/ipc.d.ts +30 -0
- package/lib/nativeRouters/ipc.js +44 -0
- package/lib/nativeRouters/outdoors.d.ts +47 -0
- package/lib/nativeRouters/outdoors.js +41 -0
- package/lib/nativeRouters/remoteGroup.d.ts +22 -0
- package/lib/nativeRouters/remoteGroup.js +11 -0
- package/lib/nativeRouters/root.d.ts +41 -0
- package/lib/nativeRouters/root.js +53 -0
- package/lib/openGroupCreate/index.js +3 -3
- package/lib/panel/i18n/index.d.ts +7 -6
- package/lib/panel/i18n/index.js +39 -23
- package/lib/panel/i18n/index.wechat.js +13 -12
- package/lib/panel/normalizeNetwork.js +1 -1
- package/lib/panel/publishDps.js +1 -1
- package/lib/redirectTo/index.js +1 -0
- package/lib/utils.d.ts +5 -2
- package/lib/utils.js +46 -20
- package/lib/utils.wechat.d.ts +3 -0
- package/lib/utils.wechat.js +22 -6
- package/lib/viewAPI.d.ts +1 -0
- package/lib/viewAPI.js +4 -3
- package/package.json +8 -7
- package/@types/PlayNetKit.d.ts +0 -444
- package/lib/nativeRouters/scene.d.ts +0 -34
- package/lib/nativeRouters/scene.js +0 -60
@@ -0,0 +1,235 @@
|
|
1
|
+
/**
|
2
|
+
* AuthListParams - 获取授权记录列表参数
|
3
|
+
*/
|
4
|
+
type AuthListParams = {
|
5
|
+
devId: string;
|
6
|
+
authTypes: string[];
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* ScheduleDetailsEntry - 授权记录详情条目
|
10
|
+
*/
|
11
|
+
type ScheduleDetailsEntry = {
|
12
|
+
allDay: boolean;
|
13
|
+
effectiveTime: number;
|
14
|
+
invalidTime: number;
|
15
|
+
workingDay: number;
|
16
|
+
};
|
17
|
+
/**
|
18
|
+
* OpModeInfo - 操作模式信息
|
19
|
+
*/
|
20
|
+
type OpModeInfo = {
|
21
|
+
hasClearPwd?: string;
|
22
|
+
revokedPwdName?: string;
|
23
|
+
revokedPwdEffectiveTime?: string;
|
24
|
+
revokedPwdInvalidTime?: string;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* AuthListResultEntry - 获取授权记录列表结果条目
|
28
|
+
*/
|
29
|
+
type AuthListResultEntry = {
|
30
|
+
unlockBindingId: string;
|
31
|
+
effectiveTime: number;
|
32
|
+
invalidTime: number;
|
33
|
+
name: string;
|
34
|
+
userName: string;
|
35
|
+
scheduleDetails: ScheduleDetailsEntry[];
|
36
|
+
opModeType: number;
|
37
|
+
opModeSubType: number;
|
38
|
+
sn: number;
|
39
|
+
lockUserId: number;
|
40
|
+
account: string;
|
41
|
+
countryCode: string;
|
42
|
+
opModeInfo?: OpModeInfo;
|
43
|
+
};
|
44
|
+
/**
|
45
|
+
* AuthListResult - 获取授权记录列表结果
|
46
|
+
*/
|
47
|
+
type AuthListResult = {
|
48
|
+
hasNext: boolean;
|
49
|
+
totalCount: number;
|
50
|
+
datas: AuthListResultEntry[];
|
51
|
+
};
|
52
|
+
/**
|
53
|
+
* getAuthList - 获取授权记录列表函数
|
54
|
+
* @param {AuthListParams} params - 获取授权记录列表参数
|
55
|
+
* @returns {Promise<AuthListResult>} - 获取授权记录列表结果的 Promise
|
56
|
+
*/
|
57
|
+
export declare const getLockAuthList: (params: AuthListParams) => Promise<AuthListResult>;
|
58
|
+
/**
|
59
|
+
* InvalidAuthListParams - 获取已失效的授权记录列表参数
|
60
|
+
*/
|
61
|
+
type InvalidAuthListParams = {
|
62
|
+
devId: string;
|
63
|
+
offSet: number;
|
64
|
+
limit: number;
|
65
|
+
};
|
66
|
+
/**
|
67
|
+
* InvalidAuthListResultEntry - 获取已失效的授权记录列表结果条目
|
68
|
+
*/
|
69
|
+
type InvalidAuthListResultEntry = {
|
70
|
+
unlockBindingId: string;
|
71
|
+
effectiveTime: number;
|
72
|
+
invalidTime: number;
|
73
|
+
name: string;
|
74
|
+
userName: string;
|
75
|
+
scheduleDetails: ScheduleDetailsEntry[];
|
76
|
+
opModeType: number;
|
77
|
+
opModeSubType: number;
|
78
|
+
sn: number;
|
79
|
+
lockUserId: number;
|
80
|
+
account: string;
|
81
|
+
countryCode: string;
|
82
|
+
opModeInfo?: OpModeInfo;
|
83
|
+
};
|
84
|
+
/**
|
85
|
+
* InvalidAuthListResult - 获取已失效的授权记录列表结果
|
86
|
+
*/
|
87
|
+
type InvalidAuthListResult = InvalidAuthListResultEntry[];
|
88
|
+
/**
|
89
|
+
* 获取已失效的授权记录列表
|
90
|
+
* @param {InvalidAuthListParams} params - 获取已失效的授权记录列表参数
|
91
|
+
* @returns {Promise<InvalidAuthListResult>} - 获取已失效的授权记录列表结果的 Promise
|
92
|
+
*/
|
93
|
+
export declare const getInvalidAuthList: (params: InvalidAuthListParams) => Promise<InvalidAuthListResult>;
|
94
|
+
/**
|
95
|
+
* ClearInvalidAuthListParams - 清空已失效的授权记录列表参数
|
96
|
+
*/
|
97
|
+
type ClearInvalidAuthListParams = {
|
98
|
+
devId: string;
|
99
|
+
};
|
100
|
+
/**
|
101
|
+
* ClearInvalidAuthListResult - 清空已失效的授权记录列表结果
|
102
|
+
*/
|
103
|
+
type ClearInvalidAuthListResult = boolean;
|
104
|
+
/**
|
105
|
+
* 清空已失效的授权记录列表
|
106
|
+
* @param {ClearInvalidAuthListParams} params - 清空已失效的授权记录列表参数
|
107
|
+
* @returns {Promise<ClearInvalidAuthListResult>} - 清空已失效的授权记录列表结果的 Promise
|
108
|
+
*/
|
109
|
+
export declare const clearInvalidAuthList: (params: ClearInvalidAuthListParams) => Promise<ClearInvalidAuthListResult>;
|
110
|
+
/**
|
111
|
+
* Schedule - 日程设置
|
112
|
+
*/
|
113
|
+
type Schedule = {
|
114
|
+
allDay: boolean;
|
115
|
+
effectiveTime?: number;
|
116
|
+
invalidTime?: number;
|
117
|
+
workingDay?: number;
|
118
|
+
};
|
119
|
+
/**
|
120
|
+
* AddBluetoothAuthParams - 添加蓝牙授权参数
|
121
|
+
*/
|
122
|
+
type AddBluetoothAuthParams = {
|
123
|
+
devId: string;
|
124
|
+
timeSetType: number;
|
125
|
+
effectiveTime: number;
|
126
|
+
invalidTime: number;
|
127
|
+
availTime?: number;
|
128
|
+
name: string;
|
129
|
+
schedule?: Schedule;
|
130
|
+
countryCode: string;
|
131
|
+
account: string;
|
132
|
+
offlineUnlock: boolean;
|
133
|
+
};
|
134
|
+
/**
|
135
|
+
* AddBluetoothAuthResult - 添加蓝牙授权结果
|
136
|
+
*/
|
137
|
+
type AddBluetoothAuthResult = {
|
138
|
+
unlockBindingId: string;
|
139
|
+
name: string;
|
140
|
+
userExist: boolean;
|
141
|
+
};
|
142
|
+
/**
|
143
|
+
* 添加蓝牙授权
|
144
|
+
* @param {AddBluetoothAuthParams} params - 添加蓝牙授权参数
|
145
|
+
* @returns {Promise<AddBluetoothAuthResult>} - 添加蓝牙授权结果的 Promise
|
146
|
+
*/
|
147
|
+
export declare const addBluetoothAuth: (params: AddBluetoothAuthParams) => Promise<AddBluetoothAuthResult>;
|
148
|
+
/**
|
149
|
+
* UpdateSchedule - 更新日程设置
|
150
|
+
*/
|
151
|
+
type UpdateSchedule = {
|
152
|
+
allDay: boolean;
|
153
|
+
effectiveTime?: number;
|
154
|
+
invalidTime?: number;
|
155
|
+
workingDay?: number;
|
156
|
+
};
|
157
|
+
/**
|
158
|
+
* UpdateBluetoothKeyParams - 修改蓝牙钥匙信息参数
|
159
|
+
*/
|
160
|
+
type UpdateBluetoothKeyParams = {
|
161
|
+
devId: string;
|
162
|
+
unlockBindingId: string;
|
163
|
+
offlineUnlock: boolean;
|
164
|
+
timeSetType: number;
|
165
|
+
effectiveTime: number;
|
166
|
+
invalidTime: number;
|
167
|
+
availTime?: number;
|
168
|
+
name?: string;
|
169
|
+
phase?: number;
|
170
|
+
schedule?: UpdateSchedule;
|
171
|
+
};
|
172
|
+
/**
|
173
|
+
* UpdateBluetoothKeyResult - 修改蓝牙钥匙信息结果
|
174
|
+
*/
|
175
|
+
type UpdateBluetoothKeyResult = boolean;
|
176
|
+
/**
|
177
|
+
* 修改蓝牙钥匙信息
|
178
|
+
* @param {UpdateBluetoothKeyParams} params - 修改蓝牙钥匙信息参数
|
179
|
+
* @returns {Promise<UpdateBluetoothKeyResult>} - 修改蓝牙钥匙信息结果的 Promise
|
180
|
+
*/
|
181
|
+
export declare const updateBluetoothKey: (params: UpdateBluetoothKeyParams) => Promise<UpdateBluetoothKeyResult>;
|
182
|
+
/**
|
183
|
+
* FreezeUnfreezeBluetoothKeyParams - 冻结/解冻蓝牙钥匙参数
|
184
|
+
*/
|
185
|
+
type FreezeUnfreezeBluetoothKeyParams = {
|
186
|
+
devId: string;
|
187
|
+
unlockBindingId: string;
|
188
|
+
phase?: number;
|
189
|
+
};
|
190
|
+
/**
|
191
|
+
* FreezeUnfreezeBluetoothKeyResult - 冻结/解冻蓝牙钥匙结果
|
192
|
+
*/
|
193
|
+
type FreezeUnfreezeBluetoothKeyResult = boolean;
|
194
|
+
/**
|
195
|
+
* 冻结或解冻蓝牙钥匙。
|
196
|
+
* @param {FreezeUnfreezeBluetoothKeyParams} params - 冻结或解冻蓝牙钥匙的参数。
|
197
|
+
* @returns {Promise<FreezeUnfreezeBluetoothKeyResult>} - 带有冻结或解冻蓝牙钥匙结果的 Promise。
|
198
|
+
*/
|
199
|
+
export declare const freezeUnfreezeBluetoothKey: (params: FreezeUnfreezeBluetoothKeyParams) => Promise<FreezeUnfreezeBluetoothKeyResult>;
|
200
|
+
/**
|
201
|
+
* ChangeBluetoothKeyNameParams - 修改蓝牙钥匙名称参数
|
202
|
+
*/
|
203
|
+
type ChangeBluetoothKeyNameParams = {
|
204
|
+
devId: string;
|
205
|
+
unlockBindingId: string;
|
206
|
+
name: string;
|
207
|
+
};
|
208
|
+
/**
|
209
|
+
* ChangeBluetoothKeyNameResult - 修改蓝牙钥匙名称结果
|
210
|
+
*/
|
211
|
+
type ChangeBluetoothKeyNameResult = boolean;
|
212
|
+
/**
|
213
|
+
* 修改蓝牙钥匙名称。
|
214
|
+
* @param {ChangeBluetoothKeyNameParams} params - 修改蓝牙钥匙名称的参数。
|
215
|
+
* @returns {Promise<ChangeBluetoothKeyNameResult>} - 带有修改蓝牙钥匙名称结果的 Promise。
|
216
|
+
*/
|
217
|
+
export declare const changeBluetoothKeyName: (params: ChangeBluetoothKeyNameParams) => Promise<ChangeBluetoothKeyNameResult>;
|
218
|
+
/**
|
219
|
+
* RemoveBluetoothKeyParams - 删除蓝牙钥匙授权参数
|
220
|
+
*/
|
221
|
+
type RemoveBluetoothKeyParams = {
|
222
|
+
devId: string;
|
223
|
+
unlockBindingId: string;
|
224
|
+
};
|
225
|
+
/**
|
226
|
+
* RemoveBluetoothKeyResult - 删除蓝牙钥匙授权结果
|
227
|
+
*/
|
228
|
+
type RemoveBluetoothKeyResult = boolean;
|
229
|
+
/**
|
230
|
+
* 删除蓝牙钥匙授权。
|
231
|
+
* @param {RemoveBluetoothKeyParams} params - 删除蓝牙钥匙授权的参数。
|
232
|
+
* @returns {Promise<RemoveBluetoothKeyResult>} - 带有删除蓝牙钥匙授权结果的 Promise。
|
233
|
+
*/
|
234
|
+
export declare const removeBluetoothKeyAuthorization: (params: RemoveBluetoothKeyParams) => Promise<RemoveBluetoothKeyResult>;
|
235
|
+
export {};
|
@@ -0,0 +1,223 @@
|
|
1
|
+
import { THING } from '../../constants';
|
2
|
+
import requestCloud from '../../requestCloud';
|
3
|
+
|
4
|
+
//#region 获取授权记录列表
|
5
|
+
|
6
|
+
/**
|
7
|
+
* AuthListParams - 获取授权记录列表参数
|
8
|
+
*/
|
9
|
+
|
10
|
+
/**
|
11
|
+
* ScheduleDetailsEntry - 授权记录详情条目
|
12
|
+
*/
|
13
|
+
|
14
|
+
/**
|
15
|
+
* OpModeInfo - 操作模式信息
|
16
|
+
*/
|
17
|
+
|
18
|
+
/**
|
19
|
+
* AuthListResultEntry - 获取授权记录列表结果条目
|
20
|
+
*/
|
21
|
+
|
22
|
+
/**
|
23
|
+
* AuthListResult - 获取授权记录列表结果
|
24
|
+
*/
|
25
|
+
|
26
|
+
/**
|
27
|
+
* getAuthList - 获取授权记录列表函数
|
28
|
+
* @param {AuthListParams} params - 获取授权记录列表参数
|
29
|
+
* @returns {Promise<AuthListResult>} - 获取授权记录列表结果的 Promise
|
30
|
+
*/
|
31
|
+
export const getLockAuthList = params => {
|
32
|
+
return requestCloud({
|
33
|
+
api: "".concat(THING, ".m.device.lock.auth.list"),
|
34
|
+
version: '1.0',
|
35
|
+
data: params
|
36
|
+
});
|
37
|
+
};
|
38
|
+
|
39
|
+
//#endregion
|
40
|
+
|
41
|
+
//#region 获取已失效的授权记录列表
|
42
|
+
|
43
|
+
/**
|
44
|
+
* InvalidAuthListParams - 获取已失效的授权记录列表参数
|
45
|
+
*/
|
46
|
+
|
47
|
+
/**
|
48
|
+
* InvalidAuthListResultEntry - 获取已失效的授权记录列表结果条目
|
49
|
+
*/
|
50
|
+
|
51
|
+
/**
|
52
|
+
* InvalidAuthListResult - 获取已失效的授权记录列表结果
|
53
|
+
*/
|
54
|
+
|
55
|
+
/**
|
56
|
+
* 获取已失效的授权记录列表
|
57
|
+
* @param {InvalidAuthListParams} params - 获取已失效的授权记录列表参数
|
58
|
+
* @returns {Promise<InvalidAuthListResult>} - 获取已失效的授权记录列表结果的 Promise
|
59
|
+
*/
|
60
|
+
export const getInvalidAuthList = params => {
|
61
|
+
return requestCloud({
|
62
|
+
api: "".concat(THING, ".m.device.lock.auth.list.invalid"),
|
63
|
+
version: '1.0',
|
64
|
+
data: params
|
65
|
+
});
|
66
|
+
};
|
67
|
+
|
68
|
+
//#endregion
|
69
|
+
|
70
|
+
//#region 清空已失效的授权记录列表
|
71
|
+
|
72
|
+
/**
|
73
|
+
* ClearInvalidAuthListParams - 清空已失效的授权记录列表参数
|
74
|
+
*/
|
75
|
+
|
76
|
+
/**
|
77
|
+
* ClearInvalidAuthListResult - 清空已失效的授权记录列表结果
|
78
|
+
*/
|
79
|
+
|
80
|
+
/**
|
81
|
+
* 清空已失效的授权记录列表
|
82
|
+
* @param {ClearInvalidAuthListParams} params - 清空已失效的授权记录列表参数
|
83
|
+
* @returns {Promise<ClearInvalidAuthListResult>} - 清空已失效的授权记录列表结果的 Promise
|
84
|
+
*/
|
85
|
+
export const clearInvalidAuthList = params => {
|
86
|
+
return requestCloud({
|
87
|
+
api: "".concat(THING, ".m.device.lock.auth.list.clear"),
|
88
|
+
version: '1.0',
|
89
|
+
data: params
|
90
|
+
});
|
91
|
+
};
|
92
|
+
|
93
|
+
//#endregion
|
94
|
+
//#region 添加蓝牙授权
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Schedule - 日程设置
|
98
|
+
*/
|
99
|
+
|
100
|
+
/**
|
101
|
+
* AddBluetoothAuthParams - 添加蓝牙授权参数
|
102
|
+
*/
|
103
|
+
|
104
|
+
/**
|
105
|
+
* AddBluetoothAuthResult - 添加蓝牙授权结果
|
106
|
+
*/
|
107
|
+
|
108
|
+
/**
|
109
|
+
* 添加蓝牙授权
|
110
|
+
* @param {AddBluetoothAuthParams} params - 添加蓝牙授权参数
|
111
|
+
* @returns {Promise<AddBluetoothAuthResult>} - 添加蓝牙授权结果的 Promise
|
112
|
+
*/
|
113
|
+
export const addBluetoothAuth = params => {
|
114
|
+
return requestCloud({
|
115
|
+
api: "".concat(THING, ".m.device.lock.key.virtual.add"),
|
116
|
+
version: '1.0',
|
117
|
+
data: params
|
118
|
+
});
|
119
|
+
};
|
120
|
+
|
121
|
+
//#endregion
|
122
|
+
|
123
|
+
//#region 修改蓝牙钥匙信息
|
124
|
+
|
125
|
+
/**
|
126
|
+
* UpdateSchedule - 更新日程设置
|
127
|
+
*/
|
128
|
+
|
129
|
+
/**
|
130
|
+
* UpdateBluetoothKeyParams - 修改蓝牙钥匙信息参数
|
131
|
+
*/
|
132
|
+
|
133
|
+
/**
|
134
|
+
* UpdateBluetoothKeyResult - 修改蓝牙钥匙信息结果
|
135
|
+
*/
|
136
|
+
|
137
|
+
/**
|
138
|
+
* 修改蓝牙钥匙信息
|
139
|
+
* @param {UpdateBluetoothKeyParams} params - 修改蓝牙钥匙信息参数
|
140
|
+
* @returns {Promise<UpdateBluetoothKeyResult>} - 修改蓝牙钥匙信息结果的 Promise
|
141
|
+
*/
|
142
|
+
export const updateBluetoothKey = params => {
|
143
|
+
return requestCloud({
|
144
|
+
api: "".concat(THING, ".m.device.lock.key.virtual.update"),
|
145
|
+
version: '1.0',
|
146
|
+
data: params
|
147
|
+
});
|
148
|
+
};
|
149
|
+
//#endregion
|
150
|
+
//#region 冻结/解冻蓝牙钥匙
|
151
|
+
|
152
|
+
/**
|
153
|
+
* FreezeUnfreezeBluetoothKeyParams - 冻结/解冻蓝牙钥匙参数
|
154
|
+
*/
|
155
|
+
|
156
|
+
/**
|
157
|
+
* FreezeUnfreezeBluetoothKeyResult - 冻结/解冻蓝牙钥匙结果
|
158
|
+
*/
|
159
|
+
|
160
|
+
/**
|
161
|
+
* 冻结或解冻蓝牙钥匙。
|
162
|
+
* @param {FreezeUnfreezeBluetoothKeyParams} params - 冻结或解冻蓝牙钥匙的参数。
|
163
|
+
* @returns {Promise<FreezeUnfreezeBluetoothKeyResult>} - 带有冻结或解冻蓝牙钥匙结果的 Promise。
|
164
|
+
*/
|
165
|
+
export const freezeUnfreezeBluetoothKey = params => {
|
166
|
+
return requestCloud({
|
167
|
+
api: "".concat(THING, ".m.device.lock.key.virtual.phase"),
|
168
|
+
version: '1.0',
|
169
|
+
data: params
|
170
|
+
});
|
171
|
+
};
|
172
|
+
|
173
|
+
//#endregion
|
174
|
+
|
175
|
+
//#region 修改蓝牙钥匙名称
|
176
|
+
|
177
|
+
/**
|
178
|
+
* ChangeBluetoothKeyNameParams - 修改蓝牙钥匙名称参数
|
179
|
+
*/
|
180
|
+
|
181
|
+
/**
|
182
|
+
* ChangeBluetoothKeyNameResult - 修改蓝牙钥匙名称结果
|
183
|
+
*/
|
184
|
+
|
185
|
+
/**
|
186
|
+
* 修改蓝牙钥匙名称。
|
187
|
+
* @param {ChangeBluetoothKeyNameParams} params - 修改蓝牙钥匙名称的参数。
|
188
|
+
* @returns {Promise<ChangeBluetoothKeyNameResult>} - 带有修改蓝牙钥匙名称结果的 Promise。
|
189
|
+
*/
|
190
|
+
export const changeBluetoothKeyName = params => {
|
191
|
+
return requestCloud({
|
192
|
+
api: "".concat(THING, ".m.device.lock.key.virtual.name"),
|
193
|
+
version: '1.0',
|
194
|
+
data: params
|
195
|
+
});
|
196
|
+
};
|
197
|
+
|
198
|
+
//#endregion
|
199
|
+
|
200
|
+
//#region 删除蓝牙钥匙授权
|
201
|
+
|
202
|
+
/**
|
203
|
+
* RemoveBluetoothKeyParams - 删除蓝牙钥匙授权参数
|
204
|
+
*/
|
205
|
+
|
206
|
+
/**
|
207
|
+
* RemoveBluetoothKeyResult - 删除蓝牙钥匙授权结果
|
208
|
+
*/
|
209
|
+
|
210
|
+
/**
|
211
|
+
* 删除蓝牙钥匙授权。
|
212
|
+
* @param {RemoveBluetoothKeyParams} params - 删除蓝牙钥匙授权的参数。
|
213
|
+
* @returns {Promise<RemoveBluetoothKeyResult>} - 带有删除蓝牙钥匙授权结果的 Promise。
|
214
|
+
*/
|
215
|
+
export const removeBluetoothKeyAuthorization = params => {
|
216
|
+
return requestCloud({
|
217
|
+
api: "".concat(THING, ".m.device.lock.key.virtual.remove"),
|
218
|
+
version: '1.0',
|
219
|
+
data: params
|
220
|
+
});
|
221
|
+
};
|
222
|
+
|
223
|
+
//#endregion
|