@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
package/@types/energy.d.ts
CHANGED
@@ -247,4 +247,22 @@ declare namespace ty.energy {
|
|
247
247
|
function setDevicePropertySetting(
|
248
248
|
params: SetDevicePropertySettingParams
|
249
249
|
): Promise<SetDevicePropertySettingResponse>
|
250
|
+
|
251
|
+
// 14. 单设备多指标趋势查询
|
252
|
+
type GetDpHistoryDataListParams = {
|
253
|
+
devId: string // 设备id
|
254
|
+
dateType: 'day' | 'week' | 'month' | 'year' // 日期类型
|
255
|
+
beginDate: string // 开始日期
|
256
|
+
endDate: string // 结束日期
|
257
|
+
aggregationType: 'SUM' | 'AVG' | 'MAX' | 'MIN' | 'NUM'
|
258
|
+
indicatorCodes: string // 指标code
|
259
|
+
}
|
260
|
+
|
261
|
+
type GetDpHistoryDataListResponse = {
|
262
|
+
total: number // 总量
|
263
|
+
}[]
|
264
|
+
|
265
|
+
function getDpHistoryDataList(
|
266
|
+
params: GetDpHistoryDataListParams
|
267
|
+
): Promise<GetDpHistoryDataListResponse>
|
250
268
|
}
|
@@ -54,7 +54,7 @@ type AuthListResult = {
|
|
54
54
|
* @param {AuthListParams} params - 获取授权记录列表参数
|
55
55
|
* @returns {Promise<AuthListResult>} - 获取授权记录列表结果的 Promise
|
56
56
|
*/
|
57
|
-
|
57
|
+
declare const getLockAuthList: (params: AuthListParams) => Promise<AuthListResult>;
|
58
58
|
/**
|
59
59
|
* InvalidAuthListParams - 获取已失效的授权记录列表参数
|
60
60
|
*/
|
@@ -90,7 +90,7 @@ type InvalidAuthListResult = InvalidAuthListResultEntry[];
|
|
90
90
|
* @param {InvalidAuthListParams} params - 获取已失效的授权记录列表参数
|
91
91
|
* @returns {Promise<InvalidAuthListResult>} - 获取已失效的授权记录列表结果的 Promise
|
92
92
|
*/
|
93
|
-
|
93
|
+
declare const getInvalidAuthList: (params: InvalidAuthListParams) => Promise<InvalidAuthListResult>;
|
94
94
|
/**
|
95
95
|
* ClearInvalidAuthListParams - 清空已失效的授权记录列表参数
|
96
96
|
*/
|
@@ -106,7 +106,7 @@ type ClearInvalidAuthListResult = boolean;
|
|
106
106
|
* @param {ClearInvalidAuthListParams} params - 清空已失效的授权记录列表参数
|
107
107
|
* @returns {Promise<ClearInvalidAuthListResult>} - 清空已失效的授权记录列表结果的 Promise
|
108
108
|
*/
|
109
|
-
|
109
|
+
declare const clearInvalidAuthList: (params: ClearInvalidAuthListParams) => Promise<ClearInvalidAuthListResult>;
|
110
110
|
/**
|
111
111
|
* Schedule - 日程设置
|
112
112
|
*/
|
@@ -144,7 +144,7 @@ type AddBluetoothAuthResult = {
|
|
144
144
|
* @param {AddBluetoothAuthParams} params - 添加蓝牙授权参数
|
145
145
|
* @returns {Promise<AddBluetoothAuthResult>} - 添加蓝牙授权结果的 Promise
|
146
146
|
*/
|
147
|
-
|
147
|
+
declare const addBluetoothAuth: (params: AddBluetoothAuthParams) => Promise<AddBluetoothAuthResult>;
|
148
148
|
/**
|
149
149
|
* UpdateSchedule - 更新日程设置
|
150
150
|
*/
|
@@ -178,7 +178,7 @@ type UpdateBluetoothKeyResult = boolean;
|
|
178
178
|
* @param {UpdateBluetoothKeyParams} params - 修改蓝牙钥匙信息参数
|
179
179
|
* @returns {Promise<UpdateBluetoothKeyResult>} - 修改蓝牙钥匙信息结果的 Promise
|
180
180
|
*/
|
181
|
-
|
181
|
+
declare const updateBluetoothKey: (params: UpdateBluetoothKeyParams) => Promise<UpdateBluetoothKeyResult>;
|
182
182
|
/**
|
183
183
|
* FreezeUnfreezeBluetoothKeyParams - 冻结/解冻蓝牙钥匙参数
|
184
184
|
*/
|
@@ -196,7 +196,7 @@ type FreezeUnfreezeBluetoothKeyResult = boolean;
|
|
196
196
|
* @param {FreezeUnfreezeBluetoothKeyParams} params - 冻结或解冻蓝牙钥匙的参数。
|
197
197
|
* @returns {Promise<FreezeUnfreezeBluetoothKeyResult>} - 带有冻结或解冻蓝牙钥匙结果的 Promise。
|
198
198
|
*/
|
199
|
-
|
199
|
+
declare const freezeUnfreezeBluetoothKey: (params: FreezeUnfreezeBluetoothKeyParams) => Promise<FreezeUnfreezeBluetoothKeyResult>;
|
200
200
|
/**
|
201
201
|
* ChangeBluetoothKeyNameParams - 修改蓝牙钥匙名称参数
|
202
202
|
*/
|
@@ -214,7 +214,7 @@ type ChangeBluetoothKeyNameResult = boolean;
|
|
214
214
|
* @param {ChangeBluetoothKeyNameParams} params - 修改蓝牙钥匙名称的参数。
|
215
215
|
* @returns {Promise<ChangeBluetoothKeyNameResult>} - 带有修改蓝牙钥匙名称结果的 Promise。
|
216
216
|
*/
|
217
|
-
|
217
|
+
declare const changeBluetoothKeyName: (params: ChangeBluetoothKeyNameParams) => Promise<ChangeBluetoothKeyNameResult>;
|
218
218
|
/**
|
219
219
|
* RemoveBluetoothKeyParams - 删除蓝牙钥匙授权参数
|
220
220
|
*/
|
@@ -231,5 +231,5 @@ type RemoveBluetoothKeyResult = boolean;
|
|
231
231
|
* @param {RemoveBluetoothKeyParams} params - 删除蓝牙钥匙授权的参数。
|
232
232
|
* @returns {Promise<RemoveBluetoothKeyResult>} - 带有删除蓝牙钥匙授权结果的 Promise。
|
233
233
|
*/
|
234
|
-
|
235
|
-
export {};
|
234
|
+
declare const removeBluetoothKeyAuthorization: (params: RemoveBluetoothKeyParams) => Promise<RemoveBluetoothKeyResult>;
|
235
|
+
export { getLockAuthList, getInvalidAuthList, clearInvalidAuthList, addBluetoothAuth, updateBluetoothKey, freezeUnfreezeBluetoothKey, changeBluetoothKeyName, removeBluetoothKeyAuthorization, };
|
@@ -28,7 +28,7 @@ import requestCloud from '../../requestCloud';
|
|
28
28
|
* @param {AuthListParams} params - 获取授权记录列表参数
|
29
29
|
* @returns {Promise<AuthListResult>} - 获取授权记录列表结果的 Promise
|
30
30
|
*/
|
31
|
-
|
31
|
+
const getLockAuthList = params => {
|
32
32
|
return requestCloud({
|
33
33
|
api: "".concat(THING, ".m.device.lock.auth.list"),
|
34
34
|
version: '1.0',
|
@@ -57,7 +57,7 @@ export const getLockAuthList = params => {
|
|
57
57
|
* @param {InvalidAuthListParams} params - 获取已失效的授权记录列表参数
|
58
58
|
* @returns {Promise<InvalidAuthListResult>} - 获取已失效的授权记录列表结果的 Promise
|
59
59
|
*/
|
60
|
-
|
60
|
+
const getInvalidAuthList = params => {
|
61
61
|
return requestCloud({
|
62
62
|
api: "".concat(THING, ".m.device.lock.auth.list.invalid"),
|
63
63
|
version: '1.0',
|
@@ -82,7 +82,7 @@ export const getInvalidAuthList = params => {
|
|
82
82
|
* @param {ClearInvalidAuthListParams} params - 清空已失效的授权记录列表参数
|
83
83
|
* @returns {Promise<ClearInvalidAuthListResult>} - 清空已失效的授权记录列表结果的 Promise
|
84
84
|
*/
|
85
|
-
|
85
|
+
const clearInvalidAuthList = params => {
|
86
86
|
return requestCloud({
|
87
87
|
api: "".concat(THING, ".m.device.lock.auth.list.clear"),
|
88
88
|
version: '1.0',
|
@@ -91,6 +91,7 @@ export const clearInvalidAuthList = params => {
|
|
91
91
|
};
|
92
92
|
|
93
93
|
//#endregion
|
94
|
+
|
94
95
|
//#region 添加蓝牙授权
|
95
96
|
|
96
97
|
/**
|
@@ -110,7 +111,7 @@ export const clearInvalidAuthList = params => {
|
|
110
111
|
* @param {AddBluetoothAuthParams} params - 添加蓝牙授权参数
|
111
112
|
* @returns {Promise<AddBluetoothAuthResult>} - 添加蓝牙授权结果的 Promise
|
112
113
|
*/
|
113
|
-
|
114
|
+
const addBluetoothAuth = params => {
|
114
115
|
return requestCloud({
|
115
116
|
api: "".concat(THING, ".m.device.lock.key.virtual.add"),
|
116
117
|
version: '1.0',
|
@@ -139,7 +140,7 @@ export const addBluetoothAuth = params => {
|
|
139
140
|
* @param {UpdateBluetoothKeyParams} params - 修改蓝牙钥匙信息参数
|
140
141
|
* @returns {Promise<UpdateBluetoothKeyResult>} - 修改蓝牙钥匙信息结果的 Promise
|
141
142
|
*/
|
142
|
-
|
143
|
+
const updateBluetoothKey = params => {
|
143
144
|
return requestCloud({
|
144
145
|
api: "".concat(THING, ".m.device.lock.key.virtual.update"),
|
145
146
|
version: '1.0',
|
@@ -147,6 +148,7 @@ export const updateBluetoothKey = params => {
|
|
147
148
|
});
|
148
149
|
};
|
149
150
|
//#endregion
|
151
|
+
|
150
152
|
//#region 冻结/解冻蓝牙钥匙
|
151
153
|
|
152
154
|
/**
|
@@ -162,7 +164,7 @@ export const updateBluetoothKey = params => {
|
|
162
164
|
* @param {FreezeUnfreezeBluetoothKeyParams} params - 冻结或解冻蓝牙钥匙的参数。
|
163
165
|
* @returns {Promise<FreezeUnfreezeBluetoothKeyResult>} - 带有冻结或解冻蓝牙钥匙结果的 Promise。
|
164
166
|
*/
|
165
|
-
|
167
|
+
const freezeUnfreezeBluetoothKey = params => {
|
166
168
|
return requestCloud({
|
167
169
|
api: "".concat(THING, ".m.device.lock.key.virtual.phase"),
|
168
170
|
version: '1.0',
|
@@ -187,7 +189,7 @@ export const freezeUnfreezeBluetoothKey = params => {
|
|
187
189
|
* @param {ChangeBluetoothKeyNameParams} params - 修改蓝牙钥匙名称的参数。
|
188
190
|
* @returns {Promise<ChangeBluetoothKeyNameResult>} - 带有修改蓝牙钥匙名称结果的 Promise。
|
189
191
|
*/
|
190
|
-
|
192
|
+
const changeBluetoothKeyName = params => {
|
191
193
|
return requestCloud({
|
192
194
|
api: "".concat(THING, ".m.device.lock.key.virtual.name"),
|
193
195
|
version: '1.0',
|
@@ -212,7 +214,7 @@ export const changeBluetoothKeyName = params => {
|
|
212
214
|
* @param {RemoveBluetoothKeyParams} params - 删除蓝牙钥匙授权的参数。
|
213
215
|
* @returns {Promise<RemoveBluetoothKeyResult>} - 带有删除蓝牙钥匙授权结果的 Promise。
|
214
216
|
*/
|
215
|
-
|
217
|
+
const removeBluetoothKeyAuthorization = params => {
|
216
218
|
return requestCloud({
|
217
219
|
api: "".concat(THING, ".m.device.lock.key.virtual.remove"),
|
218
220
|
version: '1.0',
|
@@ -220,4 +222,6 @@ export const removeBluetoothKeyAuthorization = params => {
|
|
220
222
|
});
|
221
223
|
};
|
222
224
|
|
223
|
-
//#endregion
|
225
|
+
//#endregion
|
226
|
+
|
227
|
+
export { getLockAuthList, getInvalidAuthList, clearInvalidAuthList, addBluetoothAuth, updateBluetoothKey, freezeUnfreezeBluetoothKey, changeBluetoothKeyName, removeBluetoothKeyAuthorization };
|
@@ -14,7 +14,7 @@ type SetDevicePropertiesResponse = boolean;
|
|
14
14
|
* @param {SetDevicePropertiesParams} params - 设置设备属性参数
|
15
15
|
* @returns {Promise<SetDevicePropertiesResponse>} - 设置结果的 Promise
|
16
16
|
*/
|
17
|
-
|
17
|
+
declare const setDeviceProperties: (params: SetDevicePropertiesParams) => Promise<SetDevicePropertiesResponse>;
|
18
18
|
/**
|
19
19
|
* GetDevicePropertiesParams - 查看设置的设备属性参数
|
20
20
|
*/
|
@@ -31,34 +31,7 @@ type GetDevicePropertiesResponse = Record<string, string>;
|
|
31
31
|
* @param {GetDevicePropertiesParams} params - 查看设备属性参数
|
32
32
|
* @returns {Promise<GetDevicePropertiesResponse>} - 查看结果的 Promise
|
33
33
|
*/
|
34
|
-
|
35
|
-
/**
|
36
|
-
* MemberListParams - 获取家庭成员基础信息列表参数
|
37
|
-
*/
|
38
|
-
type MemberListParams = {
|
39
|
-
devId: string;
|
40
|
-
};
|
41
|
-
/**
|
42
|
-
* MemberListResponseItem - 家庭成员基础信息列表项
|
43
|
-
*/
|
44
|
-
type MemberListResponseItem = {
|
45
|
-
avatarUrl: string;
|
46
|
-
lockUserId: number;
|
47
|
-
nickName: string;
|
48
|
-
userType: number;
|
49
|
-
userContact: string;
|
50
|
-
userId: string;
|
51
|
-
};
|
52
|
-
/**
|
53
|
-
* MemberListResponse - 获取家庭成员基础信息列表响应
|
54
|
-
*/
|
55
|
-
type MemberListResponse = MemberListResponseItem[];
|
56
|
-
/**
|
57
|
-
* 获取家庭成员基础信息列表
|
58
|
-
* @param {MemberListParams} params - 获取成员列表参数
|
59
|
-
* @returns {Promise<MemberListResponse>} - 成员列表的 Promise
|
60
|
-
*/
|
61
|
-
export declare const getMemberList: (params: MemberListParams) => Promise<MemberListResponse>;
|
34
|
+
declare const getDeviceProperties: (params: GetDevicePropertiesParams) => Promise<GetDevicePropertiesResponse>;
|
62
35
|
/**
|
63
36
|
* UnlockSyncParams - 解锁方式同步参数
|
64
37
|
*/
|
@@ -79,7 +52,7 @@ type UnlockSyncResponse = {
|
|
79
52
|
* @param {UnlockSyncParams} params - 解锁方式同步参数
|
80
53
|
* @returns {Promise<UnlockSyncResponse>} - 同步结果的 Promise
|
81
54
|
*/
|
82
|
-
|
55
|
+
declare const syncUnlockMode: (params: UnlockSyncParams) => Promise<UnlockSyncResponse>;
|
83
56
|
/**
|
84
57
|
* QueryDateFormatParams - 查询时间对应的格式参数
|
85
58
|
*/
|
@@ -96,7 +69,7 @@ type QueryDateFormatResponse = string;
|
|
96
69
|
* @param {QueryDateFormatParams} params - 查询时间对应的格式参数
|
97
70
|
* @returns {Promise<QueryDateFormatResponse>} - 查询结果的 Promise
|
98
71
|
*/
|
99
|
-
|
72
|
+
declare const queryDateFormat: (params: QueryDateFormatParams) => Promise<QueryDateFormatResponse>;
|
100
73
|
/**
|
101
74
|
* QueryActiveDateParams - 用户获取设备自身的激活时间参数
|
102
75
|
*/
|
@@ -112,26 +85,231 @@ type QueryActiveDateResponse = string;
|
|
112
85
|
* @param {QueryActiveDateParams} params - 查询激活时间参数
|
113
86
|
* @returns {Promise<QueryActiveDateResponse>} - 查询结果的 Promise
|
114
87
|
*/
|
115
|
-
|
88
|
+
declare const queryDeviceActiveDate: (params: QueryActiveDateParams) => Promise<QueryActiveDateResponse>;
|
89
|
+
/**
|
90
|
+
* GetUiConfigParams - app面板拉取JSON配置信息
|
91
|
+
*/
|
92
|
+
type GetUiConfigParams = {
|
93
|
+
productId: string;
|
94
|
+
};
|
95
|
+
type CloudDP = {
|
96
|
+
subUiId: string;
|
97
|
+
cloud: {
|
98
|
+
jump_url: {
|
99
|
+
code: string;
|
100
|
+
name: string;
|
101
|
+
selected: boolean;
|
102
|
+
description: string;
|
103
|
+
};
|
104
|
+
timer: {
|
105
|
+
code: string;
|
106
|
+
name: string;
|
107
|
+
selected: boolean;
|
108
|
+
description: string;
|
109
|
+
};
|
110
|
+
};
|
111
|
+
};
|
112
|
+
type PowerCode = {
|
113
|
+
themeImage: {
|
114
|
+
type: string;
|
115
|
+
rangeType: string;
|
116
|
+
value: {
|
117
|
+
initialize: string;
|
118
|
+
};
|
119
|
+
};
|
120
|
+
cloud: Record<string, unknown>;
|
121
|
+
timestamp: string;
|
122
|
+
dps: Record<string, unknown>;
|
123
|
+
themeColor: {
|
124
|
+
type: string;
|
125
|
+
rangeType: string;
|
126
|
+
value: {
|
127
|
+
initialize: {
|
128
|
+
[key: string]: string;
|
129
|
+
};
|
130
|
+
};
|
131
|
+
};
|
132
|
+
theme: string;
|
133
|
+
};
|
134
|
+
/**
|
135
|
+
* GetUiConfigResponse - app面板拉取JSON配置信息
|
136
|
+
*/
|
137
|
+
type GetUiConfigResponse = {
|
138
|
+
cloudDp: Partial<CloudDP>;
|
139
|
+
uiContent: Partial<PowerCode>;
|
140
|
+
powerCode: {
|
141
|
+
[key: string]: string;
|
142
|
+
};
|
143
|
+
};
|
144
|
+
/**
|
145
|
+
* app面板拉取JSON配置信息
|
146
|
+
* @param {GetUiConfigParams} params - app面板拉取JSON配置信息参数
|
147
|
+
* @returns {Promise<GetUiConfigResponse>} - 查询结果的 Promise
|
148
|
+
*/
|
149
|
+
declare const getUiConfig: (params: GetUiConfigParams) => Promise<GetUiConfigResponse>;
|
150
|
+
/**
|
151
|
+
* GetHighPowerListParams - 获取蓝牙通信协议高级能力配置
|
152
|
+
*/
|
153
|
+
type GetHighPowerListParams = {
|
154
|
+
devId: string;
|
155
|
+
};
|
156
|
+
type ServiceOrder = {
|
157
|
+
categoryCode: string;
|
158
|
+
categoryId: number;
|
159
|
+
cid: string;
|
160
|
+
commodityCode: string;
|
161
|
+
customCommodityCode: string;
|
162
|
+
duration: number;
|
163
|
+
ext: string;
|
164
|
+
groupId: number;
|
165
|
+
ownerId: string;
|
166
|
+
ownerType: number;
|
167
|
+
serviceBeginTime: number;
|
168
|
+
serviceEndTime: number;
|
169
|
+
serviceOrderStatus: number;
|
170
|
+
serviceOrderType: number;
|
171
|
+
serviceTypeCode: string;
|
172
|
+
};
|
173
|
+
/**
|
174
|
+
* GetHighPowerListResponse - 获取蓝牙通信协议高级能力配置
|
175
|
+
*/
|
176
|
+
type GetHighPowerListResponse = {
|
177
|
+
code: string;
|
178
|
+
extConfig: string;
|
179
|
+
isBuy: boolean;
|
180
|
+
isEnable: boolean;
|
181
|
+
serviceOrder: ServiceOrder;
|
182
|
+
status: number;
|
183
|
+
tagValue: string;
|
184
|
+
uuid: string;
|
185
|
+
};
|
186
|
+
/**
|
187
|
+
* 获取蓝牙通信协议高级能力配置
|
188
|
+
* @param {GetHighPowerListParams} params - 获取蓝牙通信协议高级能力配置参数
|
189
|
+
* @returns {Promise<GetHighPowerListResponse>} - 查询结果的 Promise
|
190
|
+
*/
|
191
|
+
declare const getHighPowerList: (params: GetHighPowerListParams) => Promise<GetHighPowerListResponse>;
|
192
|
+
/**
|
193
|
+
* GetLockActivePeriodParams - 获取门锁安全天数
|
194
|
+
*/
|
195
|
+
type GetLockActivePeriodParams = {
|
196
|
+
devId: string;
|
197
|
+
};
|
198
|
+
/**
|
199
|
+
* GetLockActivePeriodResponse - 获取门锁安全天数
|
200
|
+
*/
|
201
|
+
type GetLockActivePeriodResponse = number;
|
202
|
+
/**
|
203
|
+
* 获取门锁安全天数
|
204
|
+
* @param {GetLockActivePeriodParams} params - 获取门锁安全天数参数
|
205
|
+
* @returns {Promise<GetLockActivePeriodResponse>} - 查询结果的 Promise
|
206
|
+
*/
|
207
|
+
declare const getLockActivePeriod: (params: GetLockActivePeriodParams) => Promise<GetLockActivePeriodResponse>;
|
208
|
+
/**
|
209
|
+
* GetDeviceRotateParams - 获取当前设备的封面图旋转角度
|
210
|
+
*/
|
211
|
+
type GetDeviceRotateParams = {
|
212
|
+
devId: string;
|
213
|
+
bindingId: string;
|
214
|
+
};
|
215
|
+
/**
|
216
|
+
* GetDeviceRotateResponse - 获取当前设备的封面图旋转角度
|
217
|
+
*/
|
218
|
+
type GetDeviceRotateResponse = {
|
219
|
+
angle: number;
|
220
|
+
actualAngle: number;
|
221
|
+
source: string;
|
222
|
+
};
|
223
|
+
/**
|
224
|
+
* 获取当前设备的封面图旋转角度
|
225
|
+
* @param {GetDeviceRotateParams} params - 获取当前设备的封面图旋转角度参数
|
226
|
+
* @returns {Promise<GetDeviceRotateResponse>} - 查询结果的 Promise
|
227
|
+
*/
|
228
|
+
declare const getDeviceRotate: (params: GetDeviceRotateParams) => Promise<GetDeviceRotateResponse>;
|
229
|
+
/**
|
230
|
+
* GetSpecificationListParams - 查看产品是否有安装视频、电子说明书参数
|
231
|
+
*/
|
232
|
+
type GetSpecificationListParams = {
|
233
|
+
productId: string;
|
234
|
+
configItem: string;
|
235
|
+
};
|
236
|
+
/**
|
237
|
+
* GetSpecificationListResult - 查看产品是否有安装视频、电子说明书结果
|
238
|
+
*/
|
239
|
+
type GetSpecificationListResult = {
|
240
|
+
product_install_video?: boolean;
|
241
|
+
product_manual?: boolean;
|
242
|
+
};
|
243
|
+
/**
|
244
|
+
* 查看产品是否有安装视频、电子说明书
|
245
|
+
* @param {GetSpecificationListParams} params - 查看产品是否有安装视频、电子说明书的参数
|
246
|
+
* @returns {Promise<GetSpecificationListResult>} - 带有查看产品是否有安装视频、电子说明书结果的 Promise。
|
247
|
+
*/
|
248
|
+
declare const getSpecificationList: (params: GetSpecificationListParams) => Promise<GetSpecificationListResult>;
|
249
|
+
/**
|
250
|
+
* GetSpecificationParams - 查看产品附件信息详情参数
|
251
|
+
*/
|
252
|
+
type GetSpecificationParams = {
|
253
|
+
productId: string;
|
254
|
+
fileType: string;
|
255
|
+
};
|
256
|
+
/**
|
257
|
+
* GetSpecificationResult - 查看产品附件信息详情结果
|
258
|
+
*/
|
259
|
+
type GetSpecificationResult = {
|
260
|
+
productId: string;
|
261
|
+
fileType: string;
|
262
|
+
urlType: string;
|
263
|
+
url: string;
|
264
|
+
supportLang: string;
|
265
|
+
remark: string;
|
266
|
+
status: string;
|
267
|
+
id: string;
|
268
|
+
gmtCreate: string;
|
269
|
+
gmtModified: string;
|
270
|
+
};
|
271
|
+
/**
|
272
|
+
* 查看产品附件信息详情
|
273
|
+
* @param {GetSpecificationParams} params - 查看产品附件信息详情的参数
|
274
|
+
* @returns {Promise<GetSpecificationResult>} - 查看产品附件信息详情的 Promise。
|
275
|
+
*/
|
276
|
+
declare const getSpecification: (params: GetSpecificationParams) => Promise<GetSpecificationResult>;
|
277
|
+
/**
|
278
|
+
* CheckHadVideoCloudParams - 查询设备是否有云能力(视频)
|
279
|
+
*/
|
280
|
+
type CheckHadVideoCloudParams = {
|
281
|
+
devId: string;
|
282
|
+
};
|
283
|
+
/**
|
284
|
+
* GetHighPowerListResponse - 查询设备是否有云能力(视频)
|
285
|
+
*/
|
286
|
+
type CheckHadVideoCloudResponse = {
|
287
|
+
capability: number[];
|
288
|
+
};
|
289
|
+
/**
|
290
|
+
* 查询设备是否有云能力(视频)
|
291
|
+
* @param {CheckHadVideoCloudParams} params - 查询设备是否有云能力(视频)参数
|
292
|
+
* @returns {Promise<CheckHadVideoCloudResponse>} - 查询结果的 Promise
|
293
|
+
*/
|
294
|
+
declare const checkHadVideoCloud: (params: CheckHadVideoCloudParams) => Promise<CheckHadVideoCloudResponse>;
|
116
295
|
/**
|
117
|
-
*
|
296
|
+
* GetDeviceAddValueTypeParams - 查询设备有的高级能力(关联AppMall白名单)
|
118
297
|
*/
|
119
|
-
type
|
298
|
+
type GetDeviceAddValueTypeParams = {
|
120
299
|
devId: string;
|
121
|
-
startTime: number;
|
122
|
-
stopTime: number;
|
123
300
|
};
|
124
301
|
/**
|
125
|
-
*
|
302
|
+
* GetDeviceAddValueTypeResponse - 查询设备有的高级能力(关联AppMall白名单)
|
126
303
|
*/
|
127
|
-
type
|
128
|
-
|
129
|
-
|
304
|
+
type GetDeviceAddValueTypeResponse = {
|
305
|
+
id: string;
|
306
|
+
name: string;
|
307
|
+
types: number[];
|
130
308
|
};
|
131
309
|
/**
|
132
|
-
*
|
133
|
-
* @param {
|
134
|
-
* @returns {Promise<
|
310
|
+
* 查询设备有的高级能力(关联AppMall白名单)
|
311
|
+
* @param {GetDeviceAddValueTypeParams} params - 查询设备有的高级能力(关联AppMall白名单)参数
|
312
|
+
* @returns {Promise<GetDeviceAddValueTypeResponse>} - 查询结果的 Promise
|
135
313
|
*/
|
136
|
-
|
137
|
-
export {};
|
314
|
+
declare const getDeviceAddValueType: (params: GetDeviceAddValueTypeParams) => Promise<GetDeviceAddValueTypeResponse>;
|
315
|
+
export { setDeviceProperties, getDeviceProperties, syncUnlockMode, queryDateFormat, queryDeviceActiveDate, getUiConfig, getHighPowerList, getLockActivePeriod, getDeviceRotate, getSpecificationList, getSpecification, checkHadVideoCloud, getDeviceAddValueType, };
|