@ray-js/api 1.5.37 → 1.5.38
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/api-extend.d.ts +7 -0
- package/@types/api.d.ts +2 -0
- package/@types/gateway.d.ts +146 -0
- package/@types/health.d.ts +309 -0
- package/lib/cloud/gateway.d.ts +10 -0
- package/lib/cloud/gateway.js +29 -0
- package/lib/cloud/health.d.ts +18 -0
- package/lib/cloud/health.js +53 -0
- package/lib/cloud/index.d.ts +2 -0
- package/lib/cloud/index.js +3 -1
- package/lib/cloud/laser-clean/map.d.ts +1 -1
- package/package.json +5 -5
package/@types/api-extend.d.ts
CHANGED
@@ -308,6 +308,13 @@ declare namespace ty {
|
|
308
308
|
USER_DATA_PATH: string
|
309
309
|
}
|
310
310
|
export function connectSocket(param: ConnectSocketProps): SocketTask
|
311
|
+
|
312
|
+
/**
|
313
|
+
* 判断小程序的API,回调,组件等是否可用 (BaseKit 需要 3.15.1 及以上版本)
|
314
|
+
* @param schema 使用 ${API}.${method}.${param}.${option} 或者 ${component}.${attribute}.${option} 方式来调用
|
315
|
+
* @returns 是否可用
|
316
|
+
*/
|
317
|
+
export function canIUse(schema: string): boolean
|
311
318
|
}
|
312
319
|
|
313
320
|
declare namespace WechatMiniprogram {
|
package/@types/api.d.ts
CHANGED
@@ -0,0 +1,146 @@
|
|
1
|
+
declare namespace ty.gateway {
|
2
|
+
// 1. 下发更新LQI指令
|
3
|
+
type SendCmdForRefreshDeviceLQIParams = {
|
4
|
+
devId: string; // 子设备id
|
5
|
+
};
|
6
|
+
|
7
|
+
type SendCmdForRefreshDeviceLQIResponse = boolean; // 是否下发成功
|
8
|
+
|
9
|
+
function sendCmdForRefreshDeviceLQI(params: SendCmdForRefreshDeviceLQIParams): Promise<SendCmdForRefreshDeviceLQIResponse>;
|
10
|
+
|
11
|
+
// 2. 获取设备最新LQI
|
12
|
+
type GetLastDeviceLQIParams = {
|
13
|
+
devId: string; //子设备id
|
14
|
+
offsetTime: number; //时间偏移量,单位为毫秒
|
15
|
+
};
|
16
|
+
|
17
|
+
type DeviceLQI = {
|
18
|
+
deviceId: string; //设备id
|
19
|
+
deviceName: string; //设备名称
|
20
|
+
isGateway: boolean; //是否是网关
|
21
|
+
lqi: number; // 子设备lqi值
|
22
|
+
}
|
23
|
+
|
24
|
+
type GetLastDeviceLQIResponse = DeviceLQI[];
|
25
|
+
|
26
|
+
function getLastDeviceLQI(params: GetLastDeviceLQIParams): Promise<GetLastDeviceLQIResponse>;
|
27
|
+
|
28
|
+
// 3. 查询设备高级能力
|
29
|
+
type GetSeniorAbilityParams = {
|
30
|
+
devId: string; // 设备id
|
31
|
+
};
|
32
|
+
|
33
|
+
type GetSeniorAbilityResponse = {
|
34
|
+
[key: string]: string;
|
35
|
+
};
|
36
|
+
|
37
|
+
function getSeniorAbility(params: GetSeniorAbilityParams): Promise<GetSeniorAbilityResponse>;
|
38
|
+
|
39
|
+
// 4. 获取网关子设备数量限制
|
40
|
+
type GetGatewaySubDevLimitParams = {
|
41
|
+
devId: string; // 设备id
|
42
|
+
};
|
43
|
+
|
44
|
+
type GetGatewaySubDevLimitResponse = {
|
45
|
+
max?: number; // 子设备数量上限
|
46
|
+
blu?: number; // 蓝牙子设备数量上限
|
47
|
+
zig?: number; // zigbee子设备数量上限
|
48
|
+
ver?: number; // 版本,嵌入式端上报
|
49
|
+
};
|
50
|
+
|
51
|
+
function getGatewaySubDevLimit(params: GetGatewaySubDevLimitParams): Promise<GetGatewaySubDevLimitResponse>;
|
52
|
+
|
53
|
+
// 5. mesh类设备拖拽
|
54
|
+
type UpdateRelationMeshParams = {
|
55
|
+
nodeIds: string[]; // 需要拖拽的子设备id列表
|
56
|
+
sourceMeshId?: string; // 原meshId或者网关Id
|
57
|
+
targetMeshId?: string; // 目标meshId或者网关Id
|
58
|
+
};
|
59
|
+
|
60
|
+
type UpdateRelationMeshResponse = {
|
61
|
+
repeatNodeIds: string[]; //已在网关下的设备列表
|
62
|
+
};
|
63
|
+
|
64
|
+
function updateRelationMesh(params: UpdateRelationMeshParams): Promise<UpdateRelationMeshResponse>;
|
65
|
+
|
66
|
+
// 6. 蓝牙单点类设备拖拽
|
67
|
+
type UpdateRelationBlueParams = {
|
68
|
+
nodes: {
|
69
|
+
devId: string;
|
70
|
+
uuid: string;
|
71
|
+
}[]; // 需要拖拽的子设备id与uuid列表
|
72
|
+
sourceMeshId?: string; // 原网关Id
|
73
|
+
targetMeshId?: string; // 目标网关Id
|
74
|
+
};
|
75
|
+
|
76
|
+
type UpdateRelationBlueResponse = {
|
77
|
+
repeatNodeIds: string[]; //已在网关下的设备列表
|
78
|
+
};
|
79
|
+
|
80
|
+
function updateRelationBlue(params: UpdateRelationBlueParams): Promise<UpdateRelationBlueResponse>;
|
81
|
+
|
82
|
+
// 7. beacon类设备拖拽
|
83
|
+
type UpdateRelationBeaconParams = {
|
84
|
+
nodes: {
|
85
|
+
devId: string;
|
86
|
+
mac: string;
|
87
|
+
}[]; // 需要拖拽的子设备id与mac列表
|
88
|
+
sourceMeshId?: string; // 原网关Id
|
89
|
+
targetMeshId?: string; // 目标网关Id
|
90
|
+
};
|
91
|
+
|
92
|
+
type UpdateRelationBeaconResponse = {
|
93
|
+
repeatNodeIds: string[]; //已在网关下的设备列表
|
94
|
+
};
|
95
|
+
|
96
|
+
function updateRelationBeacon(params: UpdateRelationBeaconParams): Promise<UpdateRelationBeaconResponse>;
|
97
|
+
|
98
|
+
// 8. 获取网关的能力
|
99
|
+
type GetGatewayAbilityParams = {
|
100
|
+
devIds: string; // 设备id拼成的字符串,以逗号分隔
|
101
|
+
};
|
102
|
+
|
103
|
+
type GatewayAbility = {
|
104
|
+
capability: number; // 能力值
|
105
|
+
devId: string; // 设备id
|
106
|
+
lqi: number; // 设备信号质量
|
107
|
+
performance?: number; // 网关性能指标
|
108
|
+
subMaximum?: { // 子设备数量上线
|
109
|
+
data?: { // 各类型子设备数量上线
|
110
|
+
[key: string]: number;
|
111
|
+
},
|
112
|
+
version?: number; // 版本
|
113
|
+
};
|
114
|
+
}
|
115
|
+
|
116
|
+
type GetGatewayAbilityResponse = GatewayAbility[];
|
117
|
+
|
118
|
+
function getGatewayAbility(params: GetGatewayAbilityParams): Promise<GetGatewayAbilityResponse>;
|
119
|
+
|
120
|
+
// 9. 获取设备日志
|
121
|
+
type GetSecurityDeviceLogParams = {
|
122
|
+
queryStr: string;
|
123
|
+
};
|
124
|
+
|
125
|
+
type DeviceLogData = {
|
126
|
+
rowkey: string; // key
|
127
|
+
dpName: string; // dp名称
|
128
|
+
createTime: number; // 创建时间
|
129
|
+
eventTime: number; // 上报时间
|
130
|
+
dpId: string; // dpId
|
131
|
+
eventType: string; // 事件类型
|
132
|
+
value: string; // dp值
|
133
|
+
deviceId: string; // 设备id
|
134
|
+
}
|
135
|
+
|
136
|
+
type GetSecurityDeviceLogResponse = {
|
137
|
+
devId: string; // 设备id
|
138
|
+
datas: DeviceLogData[];
|
139
|
+
hasNext: boolean; // 是否还有下一页
|
140
|
+
totalCount: number; // 总数
|
141
|
+
currentPageStartRowKey?: string; // 当前页起始key
|
142
|
+
};
|
143
|
+
|
144
|
+
function getSecurityDeviceLog(params: GetSecurityDeviceLogParams): Promise<GetSecurityDeviceLogResponse>;
|
145
|
+
}
|
146
|
+
|
@@ -0,0 +1,309 @@
|
|
1
|
+
declare namespace ty.health {
|
2
|
+
// 新增用户
|
3
|
+
type AddPanelUserParams = {
|
4
|
+
userInfo: {
|
5
|
+
devId: string; // 设备id
|
6
|
+
type: 1 | 2 | 3 | 6; // 业务类型:1-血压计;2-厨房秤;3-体脂称;6-血氧仪
|
7
|
+
userName: string; // 用户名
|
8
|
+
sex: 0 | 1; // 性别 0-男 1-女
|
9
|
+
birthday: number; // 生日 时间戳
|
10
|
+
height: number; // 身高
|
11
|
+
heightUnit: 'cm' | 'inch'; // 身高单位
|
12
|
+
weight: number; // 体重
|
13
|
+
weightUnit: 'kg' | 'lb' | 'st' | 'jin'; // 体重单位
|
14
|
+
userType: number; // 用户类型, 1-主用户,2-临时用户,其他-dp配置用户
|
15
|
+
avatar?: string; // 头像
|
16
|
+
extInfo?: string | { weightScale: number }; // 扩大10倍保存体重,因为云端不支持小数存储
|
17
|
+
},
|
18
|
+
};
|
19
|
+
|
20
|
+
type AddPanelUserResponse = string; // 新增用户 id
|
21
|
+
|
22
|
+
function addPanelUser(params: AddPanelUserParams): Promise<AddPanelUserResponse>;
|
23
|
+
|
24
|
+
// 更新用户
|
25
|
+
type UpdatePanelUserParams = {
|
26
|
+
userInfo: {
|
27
|
+
userId: string; // 用户id
|
28
|
+
devId: string; // 设备id
|
29
|
+
type: 1 | 2 | 3 | 6; // 业务类型:1-血压计;2-厨房秤;3-体脂称;6-血氧仪
|
30
|
+
userName: string; // 用户名
|
31
|
+
sex: 0 | 1; // 性别 0-男 1-女
|
32
|
+
birthday: number; // 生日 时间戳
|
33
|
+
height: number; // 身高
|
34
|
+
heightUnit: 'cm' | 'inch'; // 身高单位
|
35
|
+
weight: number; // 体重
|
36
|
+
weightUnit: 'kg' | 'lb' | 'st' | 'jin'; // 体重单位
|
37
|
+
userType: number; // 用户类型, 1-主用户,2-临时用户,其他-dp配置用户
|
38
|
+
avatar?: string; // 头像
|
39
|
+
extInfo?: string | { weightScale: number }; // 扩大10倍保存体重,因为云端不支持小数存储
|
40
|
+
},
|
41
|
+
};
|
42
|
+
|
43
|
+
type UpdatePanelUserResponse = boolean; // 是否调用成功
|
44
|
+
|
45
|
+
function updatePanelUser(params: UpdatePanelUserParams): Promise<UpdatePanelUserResponse>;
|
46
|
+
|
47
|
+
// 删除用户
|
48
|
+
type DeletePanelUserParams = {
|
49
|
+
userId: string; // 用户id
|
50
|
+
};
|
51
|
+
|
52
|
+
type DeletePanelUserResponse = boolean; // 是否调用成功
|
53
|
+
|
54
|
+
function deletePanelUser(params: DeletePanelUserParams): Promise<DeletePanelUserResponse>;
|
55
|
+
|
56
|
+
// 获取用户列表
|
57
|
+
type GetPanelUserListParams = {
|
58
|
+
devId: string; // 设备id
|
59
|
+
};
|
60
|
+
|
61
|
+
type User = {
|
62
|
+
userId: string; // 用户id
|
63
|
+
devId: string; // 设备id
|
64
|
+
type: 1 | 2 | 3 | 6; // 业务类型:1-血压计;2-厨房秤;3-体脂称;6-血氧仪
|
65
|
+
userName: string; // 用户名
|
66
|
+
sex: 0 | 1; // 性别 0-男 1-女
|
67
|
+
birthday: number; // 生日 时间戳
|
68
|
+
height: number; // 身高
|
69
|
+
heightUnit: 'cm' | 'inch'; // 身高单位
|
70
|
+
weight: number; // 体重
|
71
|
+
weightUnit: 'kg' | 'lb' | 'st' | 'jin'; // 体重单位
|
72
|
+
userType: number; // 用户类型, 1-主用户,2-临时用户,其他-dp配置用户
|
73
|
+
avatar?: string; // 头像
|
74
|
+
extInfo?: string | { weightScale: number }; // 扩大10倍保存体重,因为云端不支持小数存储
|
75
|
+
}
|
76
|
+
|
77
|
+
type GetPanelUserListResponse = User[]; // 用户列表
|
78
|
+
|
79
|
+
function getPanelUserList(params: GetPanelUserListParams): Promise<GetPanelUserListResponse>;
|
80
|
+
|
81
|
+
// 获取默认头像列表
|
82
|
+
type GetDefaultAvatarListParams = {
|
83
|
+
bizCode: 'default_avatar'
|
84
|
+
};
|
85
|
+
|
86
|
+
type Avatar = {
|
87
|
+
key: string; // 头像名
|
88
|
+
path: string; // 头像地址
|
89
|
+
}
|
90
|
+
|
91
|
+
type GetDefaultAvatarListResponse = Avatar[]; // 头像列表
|
92
|
+
|
93
|
+
function getDefaultAvatarList(params: GetDefaultAvatarListParams): Promise<GetDefaultAvatarListResponse>;
|
94
|
+
|
95
|
+
// 血压数据相关API定义
|
96
|
+
|
97
|
+
// 1. 面板上传血压数据
|
98
|
+
type BpgData = {
|
99
|
+
dps: {
|
100
|
+
1: number, // 收缩压
|
101
|
+
2: number, // 舒张压
|
102
|
+
3: number, // 脉搏
|
103
|
+
4: boolean, // 是否心率不齐
|
104
|
+
9: string, // 用户标识
|
105
|
+
},
|
106
|
+
dpsTime: number // dp 上报时间戳
|
107
|
+
}
|
108
|
+
|
109
|
+
type ReportPanelBpgDataParams = {
|
110
|
+
devId: string; // 设备id
|
111
|
+
userId: string; // 用户id
|
112
|
+
dataJson: BpgData[]
|
113
|
+
};
|
114
|
+
|
115
|
+
type ReportPanelBpgDataResponse = {
|
116
|
+
allocate: boolean, // 是否已成功上传
|
117
|
+
uuid: number, // 血压数据id
|
118
|
+
};
|
119
|
+
|
120
|
+
function reportPanelBpgData(params: ReportPanelBpgDataParams): Promise<ReportPanelBpgDataResponse>;
|
121
|
+
|
122
|
+
// 2. 手动上传血压数据
|
123
|
+
type ReportSingleBpgDataParams = {
|
124
|
+
dataInfo: {
|
125
|
+
devId: string, // 设备id
|
126
|
+
userId: string, // 用户id
|
127
|
+
sys: number, // 收缩压
|
128
|
+
dia: number, // 舒张压
|
129
|
+
pulse: number, // 脉搏
|
130
|
+
time: number, // 时间戳
|
131
|
+
remark: string, // 备注
|
132
|
+
}
|
133
|
+
};
|
134
|
+
|
135
|
+
type ReportSingleBpgDataResponse = {
|
136
|
+
allocate: boolean, // 是否已成功上传
|
137
|
+
uuid: number, // 血压数据id
|
138
|
+
};
|
139
|
+
|
140
|
+
function reportSingleBpgData(params: ReportSingleBpgDataParams): Promise<ReportSingleBpgDataResponse>;
|
141
|
+
|
142
|
+
// 3. 更新血压数据备注
|
143
|
+
type UpdateBpgDataRemarkParams = {
|
144
|
+
remark: string; // 备注
|
145
|
+
uuid: string; // 血压数据id
|
146
|
+
};
|
147
|
+
|
148
|
+
type UpdateBpgDataRemarkResponse = boolean; // 是否调用成功
|
149
|
+
|
150
|
+
function updateBpgDataRemark(params: UpdateBpgDataRemarkParams): Promise<UpdateBpgDataRemarkResponse>;
|
151
|
+
|
152
|
+
// 4. 删除血压数据
|
153
|
+
type DeleteBpgDataParams = {
|
154
|
+
userId: string; // 用户id
|
155
|
+
uuids: string; // 血压数据id
|
156
|
+
};
|
157
|
+
|
158
|
+
type DeleteBpgDataResponse = boolean; // 是否调用成功
|
159
|
+
|
160
|
+
function deleteBpgData(params: DeleteBpgDataParams): Promise<DeleteBpgDataResponse>;
|
161
|
+
|
162
|
+
// 5. 获取历史血压数据
|
163
|
+
type GetBpgDataHistoryParams = {
|
164
|
+
devId: string; // 设备id
|
165
|
+
userId: string; // 用户id
|
166
|
+
startTime: number; // 开始时间
|
167
|
+
endTime: number; // 结束时间
|
168
|
+
bpLevels: string; // 血压等级
|
169
|
+
existRemark: string; // 备注
|
170
|
+
offset: number; // 页数
|
171
|
+
limit: number; // 每页几条数据
|
172
|
+
};
|
173
|
+
|
174
|
+
type BpgHistoryData = {
|
175
|
+
arr: boolean; // 是否心率不齐
|
176
|
+
bpLevel: 'WHO_LV0' | 'WHO_LV1' | 'WHO_LV2' | 'WHO_LV3' | 'WHO_LV4' | 'WHO_LV5'; // 血压等级
|
177
|
+
devId: string; // 设备id
|
178
|
+
dia: string; // 舒张压
|
179
|
+
pulse: string; // 脉搏
|
180
|
+
remark: string; // 备注
|
181
|
+
reportType: 1 | 2; // 数据类型 1-面板上报 2-手动添加
|
182
|
+
sys: string; // 收缩压
|
183
|
+
time: number; // 时间戳
|
184
|
+
userId: string; // 用户id
|
185
|
+
uuid: string; // 血压id
|
186
|
+
}
|
187
|
+
|
188
|
+
type GetBpgDataHistoryResponse = {
|
189
|
+
datas: BpgHistoryData[]; // 血压数据列表
|
190
|
+
hasNext: boolean; // 是否有下一页
|
191
|
+
totalCount: number; // 血压数据总数
|
192
|
+
}
|
193
|
+
|
194
|
+
function getBpgDataHistory(params: GetBpgDataHistoryParams): Promise<GetBpgDataHistoryResponse>;
|
195
|
+
|
196
|
+
// 6. 获取最新一天血压统计数据
|
197
|
+
type GetBpgDataTrendLatestParams = {
|
198
|
+
devId: string; // 设备id
|
199
|
+
userId: string; // 用户id
|
200
|
+
};
|
201
|
+
|
202
|
+
type BpgTrendData = {
|
203
|
+
avgDia: string; // 舒张压
|
204
|
+
avgPulse: string; // 脉搏
|
205
|
+
avgSys: string; // 收缩压
|
206
|
+
time: number; // 时间戳
|
207
|
+
}
|
208
|
+
|
209
|
+
type GetBpgDataTrendLatestResponse = {
|
210
|
+
avgTotalDia: string; // 平均舒张压
|
211
|
+
avgTotalPulse: string; // 平均脉搏
|
212
|
+
avgTotalSys: string; // 平均收缩压
|
213
|
+
list: BpgTrendData[]
|
214
|
+
}
|
215
|
+
|
216
|
+
function getBpgDataTrendLatest(params: GetBpgDataTrendLatestParams): Promise<GetBpgDataTrendLatestResponse>;
|
217
|
+
|
218
|
+
// 7. 获取血压等级统计数据
|
219
|
+
type GetBpgDataLevnumParams = {
|
220
|
+
devId: string; // 设备id
|
221
|
+
userId: string; // 用户id
|
222
|
+
startTime: number; // 开始时间戳
|
223
|
+
endTime: number; // 结束时间戳
|
224
|
+
};
|
225
|
+
|
226
|
+
type GetBpgDataLevnumResponse = {
|
227
|
+
lv0Num: number; // 理想血压数量
|
228
|
+
lv0Ratio: number; // 理想血压占比
|
229
|
+
lv1Num: number; // 正常血压数量
|
230
|
+
lv1Ratio: number; // 正常血压占比
|
231
|
+
lv2Num: number; // 正常高压数量
|
232
|
+
lv2Ratio: number; // 正常高压占比
|
233
|
+
lv3Num: number; // 轻度高血压数量
|
234
|
+
lv3Ratio: number; // 轻度高血压占比
|
235
|
+
lv4Num: number; // 中度高血压数量
|
236
|
+
lv4Ratio: number; // 中度高血压占比
|
237
|
+
lv5Num: number; // 高度高血压数量
|
238
|
+
lv5Ratio: number; // 高度高血压占比
|
239
|
+
totalNum: number; // 数据总条数
|
240
|
+
userId: string; // 用户id
|
241
|
+
}
|
242
|
+
|
243
|
+
function getBpgDataLevnum(params: GetBpgDataLevnumParams): Promise<GetBpgDataLevnumResponse>;
|
244
|
+
|
245
|
+
// 8. 获取血压数据统计信息
|
246
|
+
type GetBpgDataTrendParams = {
|
247
|
+
dataType: 'year' | 'month' | 'week' // 数据类型
|
248
|
+
devId: string; // 设备id
|
249
|
+
userId: string; // 用户id
|
250
|
+
startTime: number; // 开始时间戳
|
251
|
+
endTime: number; // 结束时间戳
|
252
|
+
};
|
253
|
+
|
254
|
+
type GetBpgDataTrendResponse = {
|
255
|
+
avgTotalDia: string; // 平均舒张压
|
256
|
+
avgTotalPulse: string; // 平均脉搏
|
257
|
+
avgTotalSys: string; // 平均收缩压
|
258
|
+
list: BpgTrendData[]
|
259
|
+
}
|
260
|
+
|
261
|
+
function getBpgDataTrend(params: GetBpgDataTrendParams): Promise<GetBpgDataTrendResponse>;
|
262
|
+
|
263
|
+
// 9. 获取有血压数据的日期
|
264
|
+
type GetBpgDataDaysParams = {
|
265
|
+
devId: string; // 设备id
|
266
|
+
userId: string; // 用户id
|
267
|
+
startTime: number; // 开始时间戳
|
268
|
+
endTime: number; // 结束时间戳
|
269
|
+
};
|
270
|
+
|
271
|
+
type GetBpgDataDaysResponse = number[]; // 日期时间戳
|
272
|
+
|
273
|
+
function getBpgDataDays(params: GetBpgDataDaysParams): Promise<GetBpgDataDaysResponse>;
|
274
|
+
|
275
|
+
// 10. 获取未分配血压数据
|
276
|
+
type GetBpgDataUnallocatedParams = {
|
277
|
+
devId: string; // 设备id
|
278
|
+
limit: number; // 每页数量
|
279
|
+
offset: number; // 页码
|
280
|
+
};
|
281
|
+
|
282
|
+
type GetBpgDataUnallocatedResponse = {
|
283
|
+
datas: BpgHistoryData[]; // 血压数据列表
|
284
|
+
hasNext: boolean; // 是否有下一页
|
285
|
+
totalCount: number; // 血压数据总数
|
286
|
+
}
|
287
|
+
|
288
|
+
function getBpgDataUnallocated(params: GetBpgDataUnallocatedParams): Promise<GetBpgDataUnallocatedResponse>;
|
289
|
+
|
290
|
+
// 11. 分配未分配血压数据
|
291
|
+
type UpdateBpgDataUnallocatedParams = {
|
292
|
+
userId: string; // 用户id
|
293
|
+
uuids: string; // 血压数据id,用,分隔多个uuid
|
294
|
+
devId: string; // 设备id
|
295
|
+
};
|
296
|
+
|
297
|
+
type UpdateBpgDataUnallocatedResponse = boolean; // 是否调用成功
|
298
|
+
|
299
|
+
function updateBpgDataUnallocated(params: UpdateBpgDataUnallocatedParams): Promise<UpdateBpgDataUnallocatedResponse>;
|
300
|
+
|
301
|
+
// 12. 删除未分配血压数据
|
302
|
+
type DeleteBpgDataUnallocatedParams = {
|
303
|
+
uuids: string; // 血压数据id,用,分隔多个uuid
|
304
|
+
};
|
305
|
+
|
306
|
+
type DeleteBpgDataUnallocatedResponse = boolean; // 是否调用成功
|
307
|
+
|
308
|
+
function deleteBpgDataUnallocated(params: DeleteBpgDataUnallocatedParams): Promise<DeleteBpgDataUnallocatedResponse>;
|
309
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare const sendCmdForRefreshDeviceLQI: typeof ty.gateway.sendCmdForRefreshDeviceLQI;
|
2
|
+
declare const getLastDeviceLQI: typeof ty.gateway.getLastDeviceLQI;
|
3
|
+
declare const getSeniorAbility: typeof ty.gateway.getSeniorAbility;
|
4
|
+
declare const getGatewaySubDevLimit: typeof ty.gateway.getGatewaySubDevLimit;
|
5
|
+
declare const updateRelationMesh: typeof ty.gateway.updateRelationMesh;
|
6
|
+
declare const updateRelationBlue: typeof ty.gateway.updateRelationBlue;
|
7
|
+
declare const updateRelationBeacon: typeof ty.gateway.updateRelationBeacon;
|
8
|
+
declare const getGatewayAbility: typeof ty.gateway.getGatewayAbility;
|
9
|
+
declare const getSecurityDeviceLog: typeof ty.gateway.getSecurityDeviceLog;
|
10
|
+
export { sendCmdForRefreshDeviceLQI, getLastDeviceLQI, getSeniorAbility, getGatewaySubDevLimit, updateRelationMesh, updateRelationBlue, updateRelationBeacon, getGatewayAbility, getSecurityDeviceLog, };
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { factory } from '../utils';
|
2
|
+
const sendCmdForRefreshDeviceLQI = factory('sendCmdForRefreshDeviceLQI', {
|
3
|
+
namespace: 'gateway'
|
4
|
+
});
|
5
|
+
const getLastDeviceLQI = factory('getLastDeviceLQI', {
|
6
|
+
namespace: 'gateway'
|
7
|
+
});
|
8
|
+
const getSeniorAbility = factory('getSeniorAbility', {
|
9
|
+
namespace: 'gateway'
|
10
|
+
});
|
11
|
+
const getGatewaySubDevLimit = factory('getGatewaySubDevLimit', {
|
12
|
+
namespace: 'gateway'
|
13
|
+
});
|
14
|
+
const updateRelationMesh = factory('updateRelationMesh', {
|
15
|
+
namespace: 'gateway'
|
16
|
+
});
|
17
|
+
const updateRelationBlue = factory('updateRelationBlue', {
|
18
|
+
namespace: 'gateway'
|
19
|
+
});
|
20
|
+
const updateRelationBeacon = factory('updateRelationBeacon', {
|
21
|
+
namespace: 'gateway'
|
22
|
+
});
|
23
|
+
const getGatewayAbility = factory('getGatewayAbility', {
|
24
|
+
namespace: 'gateway'
|
25
|
+
});
|
26
|
+
const getSecurityDeviceLog = factory('getSecurityDeviceLog', {
|
27
|
+
namespace: 'gateway'
|
28
|
+
});
|
29
|
+
export { sendCmdForRefreshDeviceLQI, getLastDeviceLQI, getSeniorAbility, getGatewaySubDevLimit, updateRelationMesh, updateRelationBlue, updateRelationBeacon, getGatewayAbility, getSecurityDeviceLog };
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare const addPanelUser: typeof ty.health.addPanelUser;
|
2
|
+
declare const updatePanelUser: typeof ty.health.updatePanelUser;
|
3
|
+
declare const deletePanelUser: typeof ty.health.deletePanelUser;
|
4
|
+
declare const getPanelUserList: typeof ty.health.getPanelUserList;
|
5
|
+
declare const getDefaultAvatarList: typeof ty.health.getDefaultAvatarList;
|
6
|
+
declare const reportPanelBpgData: typeof ty.health.reportPanelBpgData;
|
7
|
+
declare const reportSingleBpgData: typeof ty.health.reportSingleBpgData;
|
8
|
+
declare const updateBpgDataRemark: typeof ty.health.updateBpgDataRemark;
|
9
|
+
declare const deleteBpgData: typeof ty.health.deleteBpgData;
|
10
|
+
declare const getBpgDataHistory: typeof ty.health.getBpgDataHistory;
|
11
|
+
declare const getBpgDataTrendLatest: typeof ty.health.getBpgDataTrendLatest;
|
12
|
+
declare const getBpgDataLevnum: typeof ty.health.getBpgDataLevnum;
|
13
|
+
declare const getBpgDataTrend: typeof ty.health.getBpgDataTrend;
|
14
|
+
declare const getBpgDataDays: typeof ty.health.getBpgDataDays;
|
15
|
+
declare const getBpgDataUnallocated: typeof ty.health.getBpgDataUnallocated;
|
16
|
+
declare const updateBpgDataUnallocated: typeof ty.health.updateBpgDataUnallocated;
|
17
|
+
declare const deleteBpgDataUnallocated: typeof ty.health.deleteBpgDataUnallocated;
|
18
|
+
export { addPanelUser, updatePanelUser, deletePanelUser, getPanelUserList, getDefaultAvatarList, reportPanelBpgData, reportSingleBpgData, updateBpgDataRemark, deleteBpgData, getBpgDataHistory, getBpgDataTrendLatest, getBpgDataLevnum, getBpgDataTrend, getBpgDataDays, getBpgDataUnallocated, updateBpgDataUnallocated, deleteBpgDataUnallocated, };
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { factory } from '../utils';
|
2
|
+
const addPanelUser = factory('addPanelUser', {
|
3
|
+
namespace: 'health'
|
4
|
+
});
|
5
|
+
const updatePanelUser = factory('updatePanelUser', {
|
6
|
+
namespace: 'health'
|
7
|
+
});
|
8
|
+
const deletePanelUser = factory('deletePanelUser', {
|
9
|
+
namespace: 'health'
|
10
|
+
});
|
11
|
+
const getPanelUserList = factory('getPanelUserList', {
|
12
|
+
namespace: 'health'
|
13
|
+
});
|
14
|
+
const getDefaultAvatarList = factory('getDefaultAvatarList', {
|
15
|
+
namespace: 'health'
|
16
|
+
});
|
17
|
+
const reportPanelBpgData = factory('reportPanelBpgData', {
|
18
|
+
namespace: 'health'
|
19
|
+
});
|
20
|
+
const reportSingleBpgData = factory('reportSingleBpgData', {
|
21
|
+
namespace: 'health'
|
22
|
+
});
|
23
|
+
const updateBpgDataRemark = factory('updateBpgDataRemark', {
|
24
|
+
namespace: 'health'
|
25
|
+
});
|
26
|
+
const deleteBpgData = factory('deleteBpgData', {
|
27
|
+
namespace: 'health'
|
28
|
+
});
|
29
|
+
const getBpgDataHistory = factory('getBpgDataHistory', {
|
30
|
+
namespace: 'health'
|
31
|
+
});
|
32
|
+
const getBpgDataTrendLatest = factory('getBpgDataTrendLatest', {
|
33
|
+
namespace: 'health'
|
34
|
+
});
|
35
|
+
const getBpgDataLevnum = factory('getBpgDataLevnum', {
|
36
|
+
namespace: 'health'
|
37
|
+
});
|
38
|
+
const getBpgDataTrend = factory('getBpgDataTrend', {
|
39
|
+
namespace: 'health'
|
40
|
+
});
|
41
|
+
const getBpgDataDays = factory('getBpgDataDays', {
|
42
|
+
namespace: 'health'
|
43
|
+
});
|
44
|
+
const getBpgDataUnallocated = factory('getBpgDataUnallocated', {
|
45
|
+
namespace: 'health'
|
46
|
+
});
|
47
|
+
const updateBpgDataUnallocated = factory('updateBpgDataUnallocated', {
|
48
|
+
namespace: 'health'
|
49
|
+
});
|
50
|
+
const deleteBpgDataUnallocated = factory('deleteBpgDataUnallocated', {
|
51
|
+
namespace: 'health'
|
52
|
+
});
|
53
|
+
export { addPanelUser, updatePanelUser, deletePanelUser, getPanelUserList, getDefaultAvatarList, reportPanelBpgData, reportSingleBpgData, updateBpgDataRemark, deleteBpgData, getBpgDataHistory, getBpgDataTrendLatest, getBpgDataLevnum, getBpgDataTrend, getBpgDataDays, getBpgDataUnallocated, updateBpgDataUnallocated, deleteBpgDataUnallocated };
|
package/lib/cloud/index.d.ts
CHANGED
package/lib/cloud/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.38",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -29,14 +29,14 @@
|
|
29
29
|
"watch": "ray start --type=component"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@ray-js/framework": "1.5.
|
33
|
-
"@ray-js/router": "1.5.
|
32
|
+
"@ray-js/framework": "1.5.38",
|
33
|
+
"@ray-js/router": "1.5.38",
|
34
34
|
"@ray-js/wechat": "^0.2.9",
|
35
35
|
"base64-browser": "^1.0.1",
|
36
36
|
"query-string": "^7.1.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@ray-js/cli": "1.5.
|
39
|
+
"@ray-js/cli": "1.5.38",
|
40
40
|
"art-template": "^4.13.2",
|
41
41
|
"fs-extra": "^10.1.0",
|
42
42
|
"miniprogram-api-typings": "^3.12.2",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.com"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "e0ac604ffd0c1758c74a05f3fb09d1cc5a8c9a05"
|
50
50
|
}
|