@moshenguo/ms-data-sdk 0.1.5 → 0.1.7
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/build/sdk/bleConst.d.ts +212 -0
- package/build/sdk/bleSDK.d.ts +268 -225
- package/build/sdk/models.d.ts +78 -85
- package/build/sdk/resolveUtil.d.ts +311 -20
- package/dist/index.esm.js +1 -1
- package/dist/index.min.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/BleSDK.html +181 -190
- package/docs/classes/ResolveUtil.html +85 -15
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/MyAutomaticHRMonitoring.html +22 -22
- package/docs/interfaces/MyDeviceInfo.html +16 -6
- package/docs/interfaces/MyPersonalInfo.html +8 -2
- package/docs/interfaces/MySedentaryReminderV4.html +16 -16
- package/docs/interfaces/MyWeeksV4.html +14 -6
- package/docs/modules.html +1 -1
- package/docs/variables/BleConst.html +96 -1
- package/docs/variables/DeviceKey.html +113 -1
- package/package.json +1 -1
- package/build/sdk/constants.d.ts +0 -9
- package/docs/interfaces/MyAlarmClockV4.html +0 -9
package/build/sdk/bleConst.d.ts
CHANGED
|
@@ -74,210 +74,422 @@ export declare const DeviceConst: {
|
|
|
74
74
|
CMD_Set_ActivityAlarm: number;
|
|
75
75
|
CMD_Get_ActivityAlarm: number;
|
|
76
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* Bluetooth Feature Constants
|
|
79
|
+
*
|
|
80
|
+
* Defines supported Bluetooth commands and feature identifiers for the SDK.
|
|
81
|
+
*/
|
|
77
82
|
export declare const BleConst: {
|
|
83
|
+
/** Get device time */
|
|
78
84
|
GetDeviceTime: string;
|
|
85
|
+
/** Get user personal information */
|
|
79
86
|
GetPersonalInfo: string;
|
|
87
|
+
/** Get device information */
|
|
80
88
|
GetDeviceInfo: string;
|
|
89
|
+
/** Real-time steps */
|
|
81
90
|
RealTimeStep: string;
|
|
91
|
+
/** Get step goal */
|
|
82
92
|
GetStepGoal: string;
|
|
93
|
+
/** Get device battery level */
|
|
83
94
|
GetDeviceBatteryLevel: string;
|
|
95
|
+
/** Get device MAC address */
|
|
84
96
|
GetDeviceMacAddress: string;
|
|
97
|
+
/** Get device firmware version */
|
|
85
98
|
GetDeviceVersion: string;
|
|
99
|
+
/** Device reset command */
|
|
86
100
|
CMD_Reset: string;
|
|
101
|
+
/** MCU restart command */
|
|
87
102
|
CMD_MCUReset: string;
|
|
103
|
+
/** Notification event */
|
|
88
104
|
Notify: string;
|
|
105
|
+
/** Get device name */
|
|
89
106
|
GetDeviceName: string;
|
|
107
|
+
/** Set alarm clocks (all clocks) */
|
|
90
108
|
SetAlarmClockWithAllClock: string;
|
|
109
|
+
/** GPS data */
|
|
91
110
|
Gps: string;
|
|
111
|
+
/** Get PPI data */
|
|
92
112
|
GetPPIData: string;
|
|
113
|
+
/** Get HRV time values */
|
|
93
114
|
GetHrvTimeValue: string;
|
|
115
|
+
/** Turn off device */
|
|
94
116
|
CloseDevices: string;
|
|
117
|
+
/** Get off-wrist detection status */
|
|
95
118
|
GetOffCheckStatus: string;
|
|
119
|
+
/** Get automatic heart rate monitoring status */
|
|
96
120
|
GetAutomaticHRMonitoring: string;
|
|
121
|
+
/** Get sedentary reminder settings */
|
|
97
122
|
GetSedentaryReminder: string;
|
|
123
|
+
/** Get total activity data */
|
|
98
124
|
GetTotalActivityData: string;
|
|
125
|
+
/** Get detailed activity data */
|
|
99
126
|
GetDetailActivityData: string;
|
|
127
|
+
/** Get detailed sleep data */
|
|
100
128
|
GetDetailSleepData: string;
|
|
129
|
+
/** Automatic blood oxygen measurement */
|
|
101
130
|
AutoBloodOxygen: string;
|
|
131
|
+
/** Get dynamic heart rate */
|
|
102
132
|
GetDynamicHR: string;
|
|
133
|
+
/** ECG data */
|
|
103
134
|
ECGdata: string;
|
|
135
|
+
/** Get women’s health data */
|
|
104
136
|
GetWomenHealth: string;
|
|
137
|
+
/** Temperature calibration command */
|
|
105
138
|
CMD_Set_TemperatureCorrection: string;
|
|
139
|
+
/** Get static heart rate */
|
|
106
140
|
GetStaticHR: string;
|
|
141
|
+
/** Blood oxygen */
|
|
107
142
|
Blood_oxygen: string;
|
|
143
|
+
/** Get HRV data */
|
|
108
144
|
GetHRVData: string;
|
|
145
|
+
/** Get axillary temperature with mode */
|
|
109
146
|
GetAxillaryTemperatureDataWithMode: string;
|
|
147
|
+
/** Enter QR code scan mode */
|
|
110
148
|
EnterQrCode: string;
|
|
149
|
+
/** Return QR code band */
|
|
111
150
|
QrCodeBandBack: string;
|
|
151
|
+
/** Exit QR code mode */
|
|
112
152
|
ExitQrCode: string;
|
|
153
|
+
/** Temperature history data */
|
|
113
154
|
Temperature_history: string;
|
|
155
|
+
/** Get activity mode data */
|
|
114
156
|
GetActivityModeData: string;
|
|
157
|
+
/** Enter activity mode */
|
|
115
158
|
EnterActivityMode: string;
|
|
159
|
+
/** Set device time */
|
|
116
160
|
SetDeviceTime: string;
|
|
161
|
+
/** Get alarm clock */
|
|
117
162
|
GetAlarmClock: string;
|
|
163
|
+
/** ECG PPG status */
|
|
118
164
|
EcgppGstatus: string;
|
|
165
|
+
/** Get ECG PPG status */
|
|
119
166
|
GetEcgPpgStatus: string;
|
|
167
|
+
/** Start ECG measurement */
|
|
120
168
|
ENTERECG: string;
|
|
169
|
+
/** HRV measurement callback */
|
|
121
170
|
MeasurementHrvCallback: string;
|
|
171
|
+
/** Heart rate measurement callback */
|
|
122
172
|
MeasurementHeartCallback: string;
|
|
173
|
+
/** Oxygen measurement callback */
|
|
123
174
|
MeasurementOxygenCallback: string;
|
|
175
|
+
/** Temperature measurement callback */
|
|
124
176
|
MeasurementTempCallback: string;
|
|
177
|
+
/** Stop HRV measurement callback */
|
|
125
178
|
StopMeasurementHrvCallback: string;
|
|
179
|
+
/** Stop heart rate measurement callback */
|
|
126
180
|
StopMeasurementHeartCallback: string;
|
|
181
|
+
/** Stop oxygen measurement callback */
|
|
127
182
|
StopMeasurementOxygenCallback: string;
|
|
183
|
+
/** Stop temperature measurement callback */
|
|
128
184
|
StopMeasurementTempCallback: string;
|
|
185
|
+
/** Watch face setting */
|
|
129
186
|
Braceletdial: string;
|
|
187
|
+
/** Watch face set successfully */
|
|
130
188
|
Braceletdialok: string;
|
|
189
|
+
/** Get sport mode */
|
|
131
190
|
GetSportMode: string;
|
|
191
|
+
/** GPS control command */
|
|
132
192
|
GPSControlCommand: string;
|
|
193
|
+
/** Get social distance */
|
|
133
194
|
SocialdistanceGetting: string;
|
|
195
|
+
/** ECG PPG */
|
|
134
196
|
EcgppG: string;
|
|
197
|
+
/** Device sends data to app */
|
|
135
198
|
DeviceSendDataToAPP: string;
|
|
199
|
+
/** Set new device info */
|
|
136
200
|
SetNewDeviceInfo: string;
|
|
201
|
+
/** Get new device info */
|
|
137
202
|
GetNewDeviceInfo: string;
|
|
203
|
+
/** Blood sugar status */
|
|
138
204
|
BoolsugarStatus: string;
|
|
205
|
+
/** Blood sugar value */
|
|
139
206
|
BoolsugarValue: string;
|
|
207
|
+
/** Get pregnancy cycle */
|
|
140
208
|
GetPregnancyCycle: string;
|
|
209
|
+
/** Set step goal */
|
|
141
210
|
SetStepGoal: string;
|
|
211
|
+
/** Set personal info */
|
|
142
212
|
SetPersonalInfo: string;
|
|
213
|
+
/** Set vibration times */
|
|
143
214
|
SetMotorVibrationWithTimes: string;
|
|
215
|
+
/** Set device info */
|
|
144
216
|
SetDeviceInfo: string;
|
|
217
|
+
/** Set automatic heart rate monitoring */
|
|
145
218
|
SetAutomaticHRMonitoring: string;
|
|
219
|
+
/** Set sedentary reminder */
|
|
146
220
|
SetSedentaryReminder: string;
|
|
221
|
+
/** Enter photo mode */
|
|
147
222
|
EnterPhotoMode: string;
|
|
223
|
+
/** Return to home screen */
|
|
148
224
|
BackHomeView: string;
|
|
225
|
+
/** Weather data */
|
|
149
226
|
Weather: string;
|
|
227
|
+
/** Sport mode */
|
|
150
228
|
SportMode: string;
|
|
229
|
+
/** Clear bracelet data */
|
|
151
230
|
Clear_Bracelet_data: string;
|
|
231
|
+
/** Set social distance */
|
|
152
232
|
SocialdistanceSetting: string;
|
|
233
|
+
/** SOS emergency call */
|
|
153
234
|
Sos: string;
|
|
235
|
+
/** Set pregnancy cycle */
|
|
154
236
|
SetPregnancyCycle: string;
|
|
237
|
+
/** Delete ECG data */
|
|
155
238
|
DeleteECGdata: string;
|
|
239
|
+
/** ECG */
|
|
156
240
|
ECG: string;
|
|
241
|
+
/** Set women health data */
|
|
157
242
|
SetWomenHealth: string;
|
|
243
|
+
/** PPG measurement start successful */
|
|
158
244
|
ppgStartSucessed: string;
|
|
245
|
+
/** PPG measurement result */
|
|
159
246
|
ppgResult: string;
|
|
247
|
+
/** PPG measurement stop */
|
|
160
248
|
ppgStop: string;
|
|
249
|
+
/** PPG measurement progress */
|
|
161
250
|
ppgMeasurementProgress: string;
|
|
251
|
+
/** PPG measurement exit */
|
|
162
252
|
ppgQuit: string;
|
|
253
|
+
/** PPG measurement start failed */
|
|
163
254
|
ppgStartFailed: string;
|
|
255
|
+
/** Set MAC address */
|
|
164
256
|
CMD_Set_Mac: string;
|
|
257
|
+
/** Close ECG */
|
|
165
258
|
CloseECG: string;
|
|
259
|
+
/** Get alarm clock V4 */
|
|
166
260
|
GetAlarmClock_V4: string;
|
|
261
|
+
/** Delete all alarm clocks V4 */
|
|
167
262
|
DeleteAllAlarmClock_V4: string;
|
|
263
|
+
/** Set alarm clock V4 */
|
|
168
264
|
SetAlarmClock_V4: string;
|
|
265
|
+
/** Get sedentary reminder V4 */
|
|
169
266
|
GetSedentaryReminder_V4: string;
|
|
267
|
+
/** Set sedentary reminder V4 */
|
|
170
268
|
SetSedentaryReminder_V4: string;
|
|
171
269
|
};
|
|
270
|
+
/**
|
|
271
|
+
* Device key constants, used for reading/writing device data.
|
|
272
|
+
* External calls should use these constants to avoid hardcoded strings.
|
|
273
|
+
*/
|
|
172
274
|
export declare const DeviceKey: {
|
|
275
|
+
/** Device time */
|
|
173
276
|
DeviceTime: string;
|
|
277
|
+
/** GPS time */
|
|
174
278
|
GPSTime: string;
|
|
279
|
+
/** Data type */
|
|
175
280
|
DataType: string;
|
|
281
|
+
/** End of data */
|
|
176
282
|
End: string;
|
|
283
|
+
/** Data content */
|
|
177
284
|
Data: string;
|
|
285
|
+
/** Gender */
|
|
178
286
|
Gender: string;
|
|
287
|
+
/** Age */
|
|
179
288
|
Age: string;
|
|
289
|
+
/** Height in cm */
|
|
180
290
|
Height: string;
|
|
291
|
+
/** Weight in kg */
|
|
181
292
|
Weight: string;
|
|
293
|
+
/** Stride in cm */
|
|
182
294
|
Stride: string;
|
|
295
|
+
/** Unique user device ID */
|
|
183
296
|
KUserDeviceId: string;
|
|
297
|
+
/** Last alarm time */
|
|
184
298
|
KClockLast: string;
|
|
299
|
+
/** Steps */
|
|
185
300
|
Step: string;
|
|
301
|
+
/** Calories */
|
|
186
302
|
Calories: string;
|
|
303
|
+
/** Distance in meters */
|
|
187
304
|
Distance: string;
|
|
305
|
+
/** Exercise minutes */
|
|
188
306
|
ExerciseMinutes: string;
|
|
307
|
+
/** Heart rate */
|
|
189
308
|
HeartRate: string;
|
|
309
|
+
/** Active minutes */
|
|
190
310
|
ActiveMinutes: string;
|
|
311
|
+
/** Temperature data */
|
|
191
312
|
TempData: string;
|
|
313
|
+
/** Blood oxygen */
|
|
192
314
|
Blood_oxygen: string;
|
|
315
|
+
/** Step goal */
|
|
193
316
|
StepGoal: string;
|
|
317
|
+
/** Distance goal */
|
|
194
318
|
DistanceGoal: string;
|
|
319
|
+
/** Calorie goal */
|
|
195
320
|
CalorieGoal: string;
|
|
321
|
+
/** Sleep time goal */
|
|
196
322
|
SleepTimeGoal: string;
|
|
323
|
+
/** Battery level */
|
|
197
324
|
BatteryLevel: string;
|
|
325
|
+
/** Device MAC address */
|
|
198
326
|
MacAddress: string;
|
|
327
|
+
/** Device version */
|
|
199
328
|
DeviceVersion: string;
|
|
329
|
+
/** Device name */
|
|
200
330
|
DeviceName: string;
|
|
331
|
+
/** Date */
|
|
201
332
|
Date: string;
|
|
333
|
+
/** Latitude */
|
|
202
334
|
Latitude: string;
|
|
335
|
+
/** Longitude */
|
|
203
336
|
Longitude: string;
|
|
337
|
+
/** Total data ID */
|
|
204
338
|
TOTAL_ID: string;
|
|
339
|
+
/** PPI data ID */
|
|
205
340
|
PPI_ID: string;
|
|
341
|
+
/** PPI data list */
|
|
206
342
|
PPI_LIST: string;
|
|
343
|
+
/** PPI data count */
|
|
207
344
|
PPI_NUM: string;
|
|
345
|
+
/** HRV time mode */
|
|
208
346
|
HRV_TIME_MODE: string;
|
|
347
|
+
/** HRV time value */
|
|
209
348
|
HRV_TIME_Value: string;
|
|
349
|
+
/** Result */
|
|
210
350
|
RESULT: string;
|
|
351
|
+
/** Get off-wrist flag */
|
|
211
352
|
GET_OFF_TAG: string;
|
|
353
|
+
/** Get off-wrist state */
|
|
212
354
|
GET_OFF_STATE: string;
|
|
355
|
+
/** Distance unit, true = km, false = miles */
|
|
213
356
|
DistanceUnit: string;
|
|
357
|
+
/** Time unit, true = 12h, false = 24h */
|
|
214
358
|
TimeUnit: string;
|
|
359
|
+
/** Raise hand screen-on status */
|
|
215
360
|
StatusOfTheRaisedHandOnscreen: string;
|
|
361
|
+
/** Temperature unit, true = Fahrenheit, false = Celsius */
|
|
216
362
|
TempUnit: string;
|
|
363
|
+
/** Night mode switch */
|
|
217
364
|
NightMode: string;
|
|
365
|
+
/** Base heart rate */
|
|
218
366
|
KBaseHeart: string;
|
|
367
|
+
/** Screen brightness (0-100) */
|
|
219
368
|
ScreenBrightness: string;
|
|
369
|
+
/** Watch face index */
|
|
220
370
|
Dialinterface: string;
|
|
371
|
+
/** Social distance switch */
|
|
221
372
|
SocialDistancedwitch: string;
|
|
373
|
+
/** Language display, 0 = Chinese, 1 = English */
|
|
222
374
|
ChineseOrEnglish: string;
|
|
375
|
+
/** Work mode */
|
|
223
376
|
WorkMode: string;
|
|
377
|
+
/** Start timestamp */
|
|
224
378
|
StartTime: string;
|
|
379
|
+
/** Heart rate start minute */
|
|
225
380
|
KHeartStartMinter: string;
|
|
381
|
+
/** End timestamp */
|
|
226
382
|
EndTime: string;
|
|
383
|
+
/** Heart rate end minute */
|
|
227
384
|
KHeartEndMinter: string;
|
|
385
|
+
/** Week number */
|
|
228
386
|
Weeks: string;
|
|
387
|
+
/** Interval time */
|
|
229
388
|
IntervalTime: string;
|
|
389
|
+
/** Start hour */
|
|
230
390
|
StartTimeHour: string;
|
|
391
|
+
/** Start minute */
|
|
231
392
|
StartTimeMin: string;
|
|
393
|
+
/** End hour */
|
|
232
394
|
EndTimeHour: string;
|
|
395
|
+
/** End minute */
|
|
233
396
|
EndTimeMin: string;
|
|
397
|
+
/** Minimum steps */
|
|
234
398
|
LeastSteps: string;
|
|
399
|
+
/** Day of week */
|
|
235
400
|
Week: string;
|
|
401
|
+
/** Target value */
|
|
236
402
|
Goal: string;
|
|
403
|
+
/** Detailed step minutes */
|
|
237
404
|
KDetailMinterStep: string;
|
|
405
|
+
/** Steps array */
|
|
238
406
|
ArraySteps: string;
|
|
407
|
+
/** Sleep array */
|
|
239
408
|
ArraySleep: string;
|
|
409
|
+
/** Sleep unit length */
|
|
240
410
|
sleepUnitLength: string;
|
|
411
|
+
/** Static heart rate */
|
|
241
412
|
StaticHR: string;
|
|
413
|
+
/** Women health period */
|
|
242
414
|
WomenHealthPeriod: string;
|
|
415
|
+
/** Women health duration */
|
|
243
416
|
WomenHealthLength: string;
|
|
417
|
+
/** Temperature correction value */
|
|
244
418
|
TemperatureCorrectionValue: string;
|
|
419
|
+
/** HRV data */
|
|
245
420
|
HRV: string;
|
|
421
|
+
/** ECG mood value */
|
|
246
422
|
ECGMoodValue: string;
|
|
423
|
+
/** ECG value */
|
|
247
424
|
ECGValue: string;
|
|
425
|
+
/** Dynamic heart rate array */
|
|
248
426
|
ArrayDynamicHR: string;
|
|
427
|
+
/** Alarm ID */
|
|
249
428
|
KAlarmId: string;
|
|
429
|
+
/** Alarm switch */
|
|
250
430
|
OpenOrClose: string;
|
|
431
|
+
/** Alarm type */
|
|
251
432
|
ClockType: string;
|
|
433
|
+
/** Alarm time */
|
|
252
434
|
ClockTime: string;
|
|
435
|
+
/** Alarm minute */
|
|
253
436
|
KAlarmMinter: string;
|
|
437
|
+
/** Alarm content */
|
|
254
438
|
KAlarmContent: string;
|
|
439
|
+
/** Alarm length */
|
|
255
440
|
KAlarmLength: string;
|
|
441
|
+
/** Axillary temperature */
|
|
256
442
|
axillaryTemperature: string;
|
|
443
|
+
/** Band number */
|
|
257
444
|
Band: string;
|
|
445
|
+
/** Temperature */
|
|
258
446
|
temperature: string;
|
|
447
|
+
/** Activity mode */
|
|
259
448
|
ActivityMode: string;
|
|
449
|
+
/** Pace */
|
|
260
450
|
Pace: string;
|
|
451
|
+
/** Phone data length */
|
|
261
452
|
KPhoneDataLength: string;
|
|
453
|
+
/** Vascular aging value */
|
|
262
454
|
VascularAging: string;
|
|
455
|
+
/** Stress value */
|
|
263
456
|
Stress: string;
|
|
457
|
+
/** High blood pressure */
|
|
264
458
|
highBP: string;
|
|
459
|
+
/** Low blood pressure */
|
|
265
460
|
lowBP: string;
|
|
461
|
+
/** ECG status */
|
|
266
462
|
EcgStatus: string;
|
|
463
|
+
/** PPG value */
|
|
267
464
|
PPGValue: string;
|
|
465
|
+
/** ECG HRV value */
|
|
268
466
|
ECGHrvValue: string;
|
|
467
|
+
/** ECG AV Block value */
|
|
269
468
|
ECGAvBlockValue: string;
|
|
469
|
+
/** ECG heart rate */
|
|
270
470
|
ECGHrValue: string;
|
|
471
|
+
/** ECG stress value */
|
|
271
472
|
ECGStreesValue: string;
|
|
473
|
+
/** ECG high blood pressure */
|
|
272
474
|
ECGhighBpValue: string;
|
|
475
|
+
/** ECG low blood pressure */
|
|
273
476
|
ECGLowBpValue: string;
|
|
477
|
+
/** ECG breath value */
|
|
274
478
|
ECGBreathValue: string;
|
|
479
|
+
/** Activity location time */
|
|
275
480
|
KActivityLocationTime: string;
|
|
481
|
+
/** Activity location latitude */
|
|
276
482
|
KActivityLocationLatitude: string;
|
|
483
|
+
/** Activity location longitude */
|
|
277
484
|
KActivityLocationLongitude: string;
|
|
485
|
+
/** Activity location count */
|
|
278
486
|
KActivityLocationCount: string;
|
|
487
|
+
/** Day of week */
|
|
279
488
|
DayOfWeek: string;
|
|
489
|
+
/** Text */
|
|
280
490
|
Text: string;
|
|
491
|
+
/** Text length */
|
|
281
492
|
TextLength: string;
|
|
493
|
+
/** Whether to delete data */
|
|
282
494
|
IsDeleteData: string;
|
|
283
495
|
};
|