@ray-js/api 1.6.0-beta.9 → 1.6.0

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 (81) hide show
  1. package/@types/BaseKit.d.ts +837 -37
  2. package/@types/BizKit.d.ts +1831 -85
  3. package/@types/DeviceKit.d.ts +581 -58
  4. package/@types/HomeKit.d.ts +0 -74
  5. package/@types/MiniKit.d.ts +411 -8
  6. package/@types/api-cloud.d.ts +145 -0
  7. package/@types/api-extend.d.ts +42 -10
  8. package/@types/api.d.ts +3 -0
  9. package/@types/gateway.d.ts +146 -0
  10. package/@types/health.d.ts +309 -0
  11. package/lib/{BaseKit-3.11.0.d.ts → BaseKit-3.14.3.d.ts} +29 -1
  12. package/lib/{BaseKit-3.11.0.js → BaseKit-3.14.3.js} +32 -1
  13. package/lib/BizKit-4.10.4.d.ts +84 -0
  14. package/lib/{BizKit-3.2.7.js → BizKit-4.10.4.js} +46 -5
  15. package/lib/{DeviceKit-3.3.1.d.ts → DeviceKit-4.9.0.d.ts} +22 -1
  16. package/lib/{DeviceKit-3.3.1.js → DeviceKit-4.9.0.js} +66 -0
  17. package/lib/HomeKit-3.1.4.d.ts +0 -1
  18. package/lib/MapKit-3.4.13.d.ts +0 -1
  19. package/lib/{MiniKit-3.1.0.d.ts → MiniKit-3.12.1.d.ts} +11 -1
  20. package/lib/{MiniKit-3.1.0.js → MiniKit-3.12.1.js} +12 -1
  21. package/lib/OutdoorKit-1.0.4.d.ts +0 -1
  22. package/lib/P2PKit-2.0.3.d.ts +0 -1
  23. package/lib/PlayNetKit-1.1.3.d.ts +24 -24
  24. package/lib/all-kits.d.ts +5 -5
  25. package/lib/all-kits.js +5 -5
  26. package/lib/cloud/device.d.ts +3 -3
  27. package/lib/cloud/gateway.d.ts +11 -0
  28. package/lib/cloud/gateway.js +39 -0
  29. package/lib/cloud/health.d.ts +19 -0
  30. package/lib/cloud/health.js +71 -0
  31. package/lib/cloud/index.d.ts +3 -0
  32. package/lib/cloud/index.js +6 -1
  33. package/lib/cloud/interface.d.ts +40 -1
  34. package/lib/cloud/laser-clean/index.d.ts +3 -0
  35. package/lib/cloud/laser-clean/index.js +3 -0
  36. package/lib/cloud/laser-clean/map.d.ts +3 -0
  37. package/lib/cloud/laser-clean/map.js +4 -0
  38. package/lib/cloud/laser-clean/record.d.ts +3 -0
  39. package/lib/cloud/laser-clean/record.js +4 -0
  40. package/lib/cloud/laser-clean/voice.d.ts +2 -0
  41. package/lib/cloud/laser-clean/voice.js +3 -0
  42. package/lib/cloud/recipe/basket.js +1 -0
  43. package/lib/cloud/recipe/custom.js +1 -0
  44. package/lib/cloud/recipe/menu.js +1 -0
  45. package/lib/cloud/recipe/query.js +1 -0
  46. package/lib/cloud/recipe/score.js +1 -0
  47. package/lib/cloud/recipe/star.js +1 -0
  48. package/lib/getBoundingClientRect/index.thing.js +1 -0
  49. package/lib/getBoundingClientRect/index.wechat.js +1 -0
  50. package/lib/getCdnUrl/index.thing.js +13 -8
  51. package/lib/hideTabBar/index.d.ts +4 -5
  52. package/lib/index.d.ts +0 -1
  53. package/lib/navigateBack/index.d.ts +0 -1
  54. package/lib/navigateTo/index.d.ts +0 -1
  55. package/lib/panel/devInfo/index.js +7 -1
  56. package/lib/panel/i18n/index.js +4 -0
  57. package/lib/panel/i18n/index.wechat.js +4 -0
  58. package/lib/panel/publishDps.js +2 -0
  59. package/lib/reLaunch/index.d.ts +0 -1
  60. package/lib/redirectTo/index.d.ts +0 -1
  61. package/lib/redirectTo/index.js +1 -0
  62. package/lib/requestCloud/index.d.ts +0 -1
  63. package/lib/setNavigationBarColor/index.d.ts +0 -1
  64. package/lib/setNavigationBarTitle/index.d.ts +0 -1
  65. package/lib/showTabBar/index.d.ts +4 -5
  66. package/lib/switchTab/index.d.ts +0 -1
  67. package/lib/utils.wechat.js +1 -0
  68. package/lib/viewAPI.d.ts +1 -1
  69. package/lib/viewAPI.js +2 -1
  70. package/package.json +8 -8
  71. package/lib/BizKit-3.2.7.d.ts +0 -46
  72. package/lib/cloud/doorlock/README.md +0 -62
  73. package/lib/cloud/doorlock/auth.md +0 -323
  74. package/lib/cloud/doorlock/device.md +0 -265
  75. package/lib/cloud/doorlock/log.md +0 -153
  76. package/lib/cloud/doorlock/member-opmode.md +0 -279
  77. package/lib/cloud/doorlock/member.md +0 -276
  78. package/lib/cloud/doorlock/offline-pwd.md +0 -155
  79. package/lib/cloud/doorlock/temp-pwd.md +0 -362
  80. package/lib/cloud/doorlock/unlock-method.md +0 -121
  81. package/lib/cloud/doorlock/unlock.md +0 -222
@@ -1,222 +0,0 @@
1
- ## remoteOpenDoor
2
-
3
- 远程免密开门功能。
4
-
5
- ### 引入
6
-
7
- > @ray-js/ray^1.5.0 以上版本可使用
8
-
9
- ```js
10
- import { remoteOpenDoor } from '@ray-js/ray'
11
- ```
12
-
13
- ### 参数
14
-
15
- **RemoteOpenParams**
16
-
17
- | 属性 | 类型 | 必填 | 说明 |
18
- | ----- | --------- | ---- | -------- |
19
- | devId | `string` | 是 | 设备 Id |
20
- | open | `boolean` | 是 | 是否开门 |
21
-
22
- ### 返回
23
-
24
- **RemoteOpenResponse**
25
-
26
- `boolean`,远程免密开门的响应结果。
27
-
28
- ### 函数定义示例
29
-
30
- ```typescript
31
- /**
32
- * 远程免密开门
33
- */
34
- export function remoteOpenDoor(params: RemoteOpenParams): Promise<RemoteOpenResponse>
35
- ```
36
-
37
- ## remoteUnlockDoor
38
-
39
- 远程免密解锁功能。
40
-
41
- ### 引入
42
-
43
- > @ray-js/ray^1.5.0 以上版本可使用
44
-
45
- ```js
46
- import { remoteUnlockDoor } from '@ray-js/ray'
47
- ```
48
-
49
- ### 参数
50
-
51
- **UnlockParams**
52
-
53
- | 属性 | 类型 | 必填 | 说明 |
54
- | ------- | --------- | ---- | ------------------------------ |
55
- | devId | `string` | 是 | 设备 Id |
56
- | open | `boolean` | 是 | 是否开门 |
57
- | confirm | `boolean` | 是 | 是否确认,蓝牙门锁固定传 false |
58
-
59
- ### 返回
60
-
61
- **UnlockResponse**
62
-
63
- `boolean`,远程免密解锁的响应结果。
64
-
65
- ### 函数定义示例
66
-
67
- ```typescript
68
- /**
69
- * 远程免密解锁
70
- */
71
- export function remoteUnlockDoor(params: UnlockParams): Promise<UnlockResponse>
72
- ```
73
-
74
- ## checkCanRemoteUnlock
75
-
76
- 判断用户是否可以远程开门功能。
77
-
78
- ### 引入
79
-
80
- > @ray-js/ray^1.5.0 以上版本可使用
81
-
82
- ```js
83
- import { checkCanRemoteUnlock } from '@ray-js/ray'
84
- ```
85
-
86
- ### 参数
87
-
88
- **CanUnlockRemoteParams**
89
-
90
- | 属性 | 类型 | 必填 | 说明 |
91
- | ----- | -------- | ---- | ------- |
92
- | devId | `string` | 是 | 设备 Id |
93
-
94
- ### 返回
95
-
96
- **CanUnlockRemoteResponse**
97
-
98
- `boolean`,判断用户是否可以远程开门的响应结果。
99
-
100
- ### 函数定义示例
101
-
102
- ```typescript
103
- /**
104
- * 判断用户是否可以远程开门
105
- */
106
- export function checkCanRemoteUnlock(
107
- params: CanUnlockRemoteParams
108
- ): Promise<CanUnlockRemoteResponse>
109
- ```
110
-
111
- ## getLatestUnlockRecord
112
-
113
- 获取最近一条记录的信息。
114
-
115
- ### 引入
116
-
117
- > @ray-js/ray^1.5.0 以上版本可使用
118
-
119
- ```js
120
- import { getLatestUnlockRecord } from '@ray-js/ray'
121
- ```
122
-
123
- ### 参数
124
-
125
- **GetLatestRecordInfoParams**
126
-
127
- | 属性 | 类型 | 必填 | 说明 |
128
- | ----- | -------- | ---- | ------- |
129
- | devId | `string` | 是 | 设备 Id |
130
-
131
- ### 返回
132
-
133
- **GetLatestRecordInfoResponse**
134
-
135
- | 属性 | 类型 | 说明 |
136
- | --------------- | ---------------- | ----------------- |
137
- | dpId | `number` | 类型(门锁端 dpId) |
138
- | dpValue | `string` | dp 值 |
139
- | recordType | `number` | 记录类型 |
140
- | userName | `string` | 用户名称 |
141
- | time | `number` | 时间 |
142
- | unionUnlockInfo | `UnlockRecord[]` | 组合开锁信息 |
143
- | unReadCount | `number` | 未读记录数 |
144
-
145
- **UnlockRecord**
146
-
147
- | 属性 | 类型 | 说明 |
148
- | ---------- | -------- | ---------------------- |
149
- | userName | `string` | 组合开锁的用户名称 |
150
- | opMode | `string` | 组合开锁的解锁方式 |
151
- | unlockName | `string` | 组合开锁的解锁方式名称 |
152
-
153
- ### 函数定义示例
154
-
155
- ```typescript
156
- /**
157
- * 获取最近一条记录的信息
158
- */
159
- export function getLatestUnlockRecord(
160
- params: GetLatestRecordInfoParams
161
- ): Promise<GetLatestRecordInfoResponse>
162
- ```
163
-
164
- ## queryUnlockRecord
165
-
166
- 查询开门记录功能。
167
-
168
- ### 引入
169
-
170
- > @ray-js/ray^1.5.0 以上版本可使用
171
-
172
- ```js
173
- import { queryUnlockRecord } from '@ray-js/ray'
174
- ```
175
-
176
- ### 参数
177
-
178
- **QueryRecordInfoParams**
179
-
180
- | 属性 | 类型 | 必填 | 说明 |
181
- | --------- | ---------- | ---- | -------------------- |
182
- | devId | `string` | 是 | 门锁编号 |
183
- | dpIds | `string[]` | 是 | dpId 列表 |
184
- | offset | `number` | 否 | 起始页 |
185
- | limit | `number` | 否 | 每页数据大小 |
186
- | startTime | `number` | 否 | 开始时间 |
187
- | endTime | `number` | 否 | 结束时间 |
188
- | nameless | `boolean` | 否 | 是否仅查询匿名的记录 |
189
-
190
- ### 返回
191
-
192
- **QueryRecordInfoResponse**
193
-
194
- | 属性 | 类型 | 说明 |
195
- | --------------- | --------------------- | -------------------- |
196
- | id | `number` | 绑定的编号 |
197
- | dpId | `number` | 类型(门锁端 dpId) |
198
- | userId | `string` | 开门的用户编号 |
199
- | unlockName | `string` | 解锁方式名称(如果有) |
200
- | userName | `string` | 用户名称 |
201
- | avatarUrl | `string` | 用户头像 |
202
- | time | `number` | 时间 |
203
- | relateDevName | `string` | 关联设备的名称 |
204
- | relateOpMode | `number` | 关联设备的解锁方式 |
205
- | unionUnlockInfo | `QueryUnlockRecord[]` | 组合开锁信息 |
206
-
207
- **QueryUnlockRecord**
208
-
209
- | 属性 | 类型 | 说明 |
210
- | ---------- | -------- | ---------------------- |
211
- | userName | `string` | 组合开锁的用户名称 |
212
- | opMode | `string` | 组合开锁的解锁方式 |
213
- | unlockName | `string` | 组合开锁的解锁方式名称 |
214
-
215
- ### 函数定义示例
216
-
217
- ```typescript
218
- /**
219
- * 查询开门记录
220
- */
221
- export function queryUnlockRecord(params: QueryRecordInfoParams): Promise<QueryRecordInfoResponse[]>
222
- ```