@moshenguo/ms-data-sdk 0.1.6 → 0.1.8

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.
@@ -75,421 +75,421 @@ export declare const DeviceConst: {
75
75
  CMD_Get_ActivityAlarm: number;
76
76
  };
77
77
  /**
78
- * 蓝牙功能常量
78
+ * Bluetooth Feature Constants
79
79
  *
80
- * 用于定义 SDK 支持的蓝牙指令和功能标识。
80
+ * Defines supported Bluetooth commands and feature identifiers for the SDK.
81
81
  */
82
82
  export declare const BleConst: {
83
- /** 获取设备时间 */
83
+ /** Get device time */
84
84
  GetDeviceTime: string;
85
- /** 获取用户个人信息 */
85
+ /** Get user personal information */
86
86
  GetPersonalInfo: string;
87
- /** 获取设备信息 */
87
+ /** Get device information */
88
88
  GetDeviceInfo: string;
89
- /** 实时步数 */
89
+ /** Real-time steps */
90
90
  RealTimeStep: string;
91
- /** 获取步数目标 */
91
+ /** Get step goal */
92
92
  GetStepGoal: string;
93
- /** 获取设备电池电量 */
93
+ /** Get device battery level */
94
94
  GetDeviceBatteryLevel: string;
95
- /** 获取设备 MAC 地址 */
95
+ /** Get device MAC address */
96
96
  GetDeviceMacAddress: string;
97
- /** 获取设备固件版本 */
97
+ /** Get device firmware version */
98
98
  GetDeviceVersion: string;
99
- /** 设备重置指令 */
99
+ /** Device reset command */
100
100
  CMD_Reset: string;
101
- /** MCU 重启指令 */
101
+ /** MCU restart command */
102
102
  CMD_MCUReset: string;
103
- /** 通知事件 */
103
+ /** Notification event */
104
104
  Notify: string;
105
- /** 获取设备名称 */
105
+ /** Get device name */
106
106
  GetDeviceName: string;
107
- /** 设置闹钟(全部闹钟) */
107
+ /** Set alarm clocks (all clocks) */
108
108
  SetAlarmClockWithAllClock: string;
109
- /** GPS 数据 */
109
+ /** GPS data */
110
110
  Gps: string;
111
- /** 获取 PPI 数据 */
111
+ /** Get PPI data */
112
112
  GetPPIData: string;
113
- /** 获取 HRV 时间值 */
113
+ /** Get HRV time values */
114
114
  GetHrvTimeValue: string;
115
- /** 关闭设备 */
115
+ /** Turn off device */
116
116
  CloseDevices: string;
117
- /** 获取脱落检测状态 */
117
+ /** Get off-wrist detection status */
118
118
  GetOffCheckStatus: string;
119
- /** 获取自动心率监测状态 */
119
+ /** Get automatic heart rate monitoring status */
120
120
  GetAutomaticHRMonitoring: string;
121
- /** 获取久坐提醒设置 */
121
+ /** Get sedentary reminder settings */
122
122
  GetSedentaryReminder: string;
123
- /** 获取总活动数据 */
123
+ /** Get total activity data */
124
124
  GetTotalActivityData: string;
125
- /** 获取详细活动数据 */
125
+ /** Get detailed activity data */
126
126
  GetDetailActivityData: string;
127
- /** 获取详细睡眠数据 */
127
+ /** Get detailed sleep data */
128
128
  GetDetailSleepData: string;
129
- /** 自动血氧测量 */
129
+ /** Automatic blood oxygen measurement */
130
130
  AutoBloodOxygen: string;
131
- /** 获取动态心率 */
131
+ /** Get dynamic heart rate */
132
132
  GetDynamicHR: string;
133
- /** ECG 数据 */
133
+ /** ECG data */
134
134
  ECGdata: string;
135
- /** 获取女性健康数据 */
135
+ /** Get women’s health data */
136
136
  GetWomenHealth: string;
137
- /** 温度校正指令 */
137
+ /** Temperature calibration command */
138
138
  CMD_Set_TemperatureCorrection: string;
139
- /** 获取静态心率 */
139
+ /** Get static heart rate */
140
140
  GetStaticHR: string;
141
- /** 血氧 */
141
+ /** Blood oxygen */
142
142
  Blood_oxygen: string;
143
- /** 获取 HRV 数据 */
143
+ /** Get HRV data */
144
144
  GetHRVData: string;
145
- /** 获取腋温数据(带模式) */
145
+ /** Get axillary temperature with mode */
146
146
  GetAxillaryTemperatureDataWithMode: string;
147
- /** 进入二维码扫描模式 */
147
+ /** Enter QR code scan mode */
148
148
  EnterQrCode: string;
149
- /** 返回二维码带 */
149
+ /** Return QR code band */
150
150
  QrCodeBandBack: string;
151
- /** 退出二维码模式 */
151
+ /** Exit QR code mode */
152
152
  ExitQrCode: string;
153
- /** 温度历史数据 */
153
+ /** Temperature history data */
154
154
  Temperature_history: string;
155
- /** 获取活动模式数据 */
155
+ /** Get activity mode data */
156
156
  GetActivityModeData: string;
157
- /** 进入活动模式 */
157
+ /** Enter activity mode */
158
158
  EnterActivityMode: string;
159
- /** 设置设备时间 */
159
+ /** Set device time */
160
160
  SetDeviceTime: string;
161
- /** 获取闹钟 */
161
+ /** Get alarm clock */
162
162
  GetAlarmClock: string;
163
- /** ECG PPG 状态 */
163
+ /** ECG PPG status */
164
164
  EcgppGstatus: string;
165
- /** 获取 ECG PPG 状态 */
165
+ /** Get ECG PPG status */
166
166
  GetEcgPpgStatus: string;
167
- /** 开始 ECG 测量 */
167
+ /** Start ECG measurement */
168
168
  ENTERECG: string;
169
- /** HRV 测量回调 */
169
+ /** HRV measurement callback */
170
170
  MeasurementHrvCallback: string;
171
- /** 心率测量回调 */
171
+ /** Heart rate measurement callback */
172
172
  MeasurementHeartCallback: string;
173
- /** 血氧测量回调 */
173
+ /** Oxygen measurement callback */
174
174
  MeasurementOxygenCallback: string;
175
- /** 温度测量回调 */
175
+ /** Temperature measurement callback */
176
176
  MeasurementTempCallback: string;
177
- /** 停止 HRV 测量回调 */
177
+ /** Stop HRV measurement callback */
178
178
  StopMeasurementHrvCallback: string;
179
- /** 停止心率测量回调 */
179
+ /** Stop heart rate measurement callback */
180
180
  StopMeasurementHeartCallback: string;
181
- /** 停止血氧测量回调 */
181
+ /** Stop oxygen measurement callback */
182
182
  StopMeasurementOxygenCallback: string;
183
- /** 停止温度测量回调 */
183
+ /** Stop temperature measurement callback */
184
184
  StopMeasurementTempCallback: string;
185
- /** 表盘设置 */
185
+ /** Watch face setting */
186
186
  Braceletdial: string;
187
- /** 表盘设置完成 */
187
+ /** Watch face set successfully */
188
188
  Braceletdialok: string;
189
- /** 获取运动模式 */
189
+ /** Get sport mode */
190
190
  GetSportMode: string;
191
- /** GPS 控制指令 */
191
+ /** GPS control command */
192
192
  GPSControlCommand: string;
193
- /** 社交距离获取 */
193
+ /** Get social distance */
194
194
  SocialdistanceGetting: string;
195
195
  /** ECG PPG */
196
196
  EcgppG: string;
197
- /** 设备发送数据给 APP */
197
+ /** Device sends data to app */
198
198
  DeviceSendDataToAPP: string;
199
- /** 设置新设备信息 */
199
+ /** Set new device info */
200
200
  SetNewDeviceInfo: string;
201
- /** 获取新设备信息 */
201
+ /** Get new device info */
202
202
  GetNewDeviceInfo: string;
203
- /** 血糖状态 */
203
+ /** Blood sugar status */
204
204
  BoolsugarStatus: string;
205
- /** 血糖值 */
205
+ /** Blood sugar value */
206
206
  BoolsugarValue: string;
207
- /** 获取孕期周期 */
207
+ /** Get pregnancy cycle */
208
208
  GetPregnancyCycle: string;
209
- /** 设置步数目标 */
209
+ /** Set step goal */
210
210
  SetStepGoal: string;
211
- /** 设置个人信息 */
211
+ /** Set personal info */
212
212
  SetPersonalInfo: string;
213
- /** 设置震动次数 */
213
+ /** Set vibration times */
214
214
  SetMotorVibrationWithTimes: string;
215
- /** 设置设备信息 */
215
+ /** Set device info */
216
216
  SetDeviceInfo: string;
217
- /** 设置自动心率监测 */
217
+ /** Set automatic heart rate monitoring */
218
218
  SetAutomaticHRMonitoring: string;
219
- /** 设置久坐提醒 */
219
+ /** Set sedentary reminder */
220
220
  SetSedentaryReminder: string;
221
- /** 进入拍照模式 */
221
+ /** Enter photo mode */
222
222
  EnterPhotoMode: string;
223
- /** 返回主界面 */
223
+ /** Return to home screen */
224
224
  BackHomeView: string;
225
- /** 天气数据 */
225
+ /** Weather data */
226
226
  Weather: string;
227
- /** 运动模式 */
227
+ /** Sport mode */
228
228
  SportMode: string;
229
- /** 清除手环数据 */
229
+ /** Clear bracelet data */
230
230
  Clear_Bracelet_data: string;
231
- /** 设置社交距离 */
231
+ /** Set social distance */
232
232
  SocialdistanceSetting: string;
233
- /** SOS 紧急呼叫 */
233
+ /** SOS emergency call */
234
234
  Sos: string;
235
- /** 设置孕期周期 */
235
+ /** Set pregnancy cycle */
236
236
  SetPregnancyCycle: string;
237
- /** 删除 ECG 数据 */
237
+ /** Delete ECG data */
238
238
  DeleteECGdata: string;
239
239
  /** ECG */
240
240
  ECG: string;
241
- /** 设置女性健康 */
241
+ /** Set women health data */
242
242
  SetWomenHealth: string;
243
- /** PPG 测量开始成功 */
243
+ /** PPG measurement start successful */
244
244
  ppgStartSucessed: string;
245
- /** PPG 测量结果 */
245
+ /** PPG measurement result */
246
246
  ppgResult: string;
247
- /** PPG 测量停止 */
247
+ /** PPG measurement stop */
248
248
  ppgStop: string;
249
- /** PPG 测量进度 */
249
+ /** PPG measurement progress */
250
250
  ppgMeasurementProgress: string;
251
- /** PPG 测量退出 */
251
+ /** PPG measurement exit */
252
252
  ppgQuit: string;
253
- /** PPG 测量开始失败 */
253
+ /** PPG measurement start failed */
254
254
  ppgStartFailed: string;
255
- /** 设置 MAC 地址 */
255
+ /** Set MAC address */
256
256
  CMD_Set_Mac: string;
257
- /** 关闭 ECG */
257
+ /** Close ECG */
258
258
  CloseECG: string;
259
- /** 获取闹钟 V4 */
259
+ /** Get alarm clock V4 */
260
260
  GetAlarmClock_V4: string;
261
- /** 删除所有闹钟 V4 */
261
+ /** Delete all alarm clocks V4 */
262
262
  DeleteAllAlarmClock_V4: string;
263
- /** 设置闹钟 V4 */
263
+ /** Set alarm clock V4 */
264
264
  SetAlarmClock_V4: string;
265
- /** 获取久坐提醒 V4 */
265
+ /** Get sedentary reminder V4 */
266
266
  GetSedentaryReminder_V4: string;
267
- /** 设置久坐提醒 V4 */
267
+ /** Set sedentary reminder V4 */
268
268
  SetSedentaryReminder_V4: string;
269
269
  };
270
270
  /**
271
- * 设备键名常量,用于读取或写入设备数据的键值。
272
- * 外部调用时使用这些常量来避免硬编码字符串。
271
+ * Device key constants, used for reading/writing device data.
272
+ * External calls should use these constants to avoid hardcoded strings.
273
273
  */
274
274
  export declare const DeviceKey: {
275
- /** 设备时间 */
275
+ /** Device time */
276
276
  DeviceTime: string;
277
- /** GPS 时间 */
277
+ /** GPS time */
278
278
  GPSTime: string;
279
- /** 数据类型 */
279
+ /** Data type */
280
280
  DataType: string;
281
- /** 数据结束标识 */
281
+ /** End of data */
282
282
  End: string;
283
- /** 数据内容 */
283
+ /** Data content */
284
284
  Data: string;
285
- /** 性别 */
285
+ /** Gender */
286
286
  Gender: string;
287
- /** 年龄 */
287
+ /** Age */
288
288
  Age: string;
289
- /** 身高,单位 cm */
289
+ /** Height in cm */
290
290
  Height: string;
291
- /** 体重,单位 kg */
291
+ /** Weight in kg */
292
292
  Weight: string;
293
- /** 步幅,单位 cm */
293
+ /** Stride in cm */
294
294
  Stride: string;
295
- /** 用户设备唯一 ID */
295
+ /** Unique user device ID */
296
296
  KUserDeviceId: string;
297
- /** 上一次闹钟时间 */
297
+ /** Last alarm time */
298
298
  KClockLast: string;
299
- /** 步数 */
299
+ /** Steps */
300
300
  Step: string;
301
- /** 卡路里 */
301
+ /** Calories */
302
302
  Calories: string;
303
- /** 距离,单位米 */
303
+ /** Distance in meters */
304
304
  Distance: string;
305
- /** 运动分钟数 */
305
+ /** Exercise minutes */
306
306
  ExerciseMinutes: string;
307
- /** 心率 */
307
+ /** Heart rate */
308
308
  HeartRate: string;
309
- /** 活跃分钟数 */
309
+ /** Active minutes */
310
310
  ActiveMinutes: string;
311
- /** 体温数据 */
311
+ /** Temperature data */
312
312
  TempData: string;
313
- /** 血氧 */
313
+ /** Blood oxygen */
314
314
  Blood_oxygen: string;
315
- /** 目标步数 */
315
+ /** Step goal */
316
316
  StepGoal: string;
317
- /** 目标距离 */
317
+ /** Distance goal */
318
318
  DistanceGoal: string;
319
- /** 目标卡路里 */
319
+ /** Calorie goal */
320
320
  CalorieGoal: string;
321
- /** 睡眠时间目标 */
321
+ /** Sleep time goal */
322
322
  SleepTimeGoal: string;
323
- /** 电量 */
323
+ /** Battery level */
324
324
  BatteryLevel: string;
325
- /** 设备 MAC 地址 */
325
+ /** Device MAC address */
326
326
  MacAddress: string;
327
- /** 设备版本 */
327
+ /** Device version */
328
328
  DeviceVersion: string;
329
- /** 设备名称 */
329
+ /** Device name */
330
330
  DeviceName: string;
331
- /** 日期 */
331
+ /** Date */
332
332
  Date: string;
333
- /** 纬度 */
333
+ /** Latitude */
334
334
  Latitude: string;
335
- /** 经度 */
335
+ /** Longitude */
336
336
  Longitude: string;
337
- /** 总数据 ID */
337
+ /** Total data ID */
338
338
  TOTAL_ID: string;
339
- /** PPI 数据 ID */
339
+ /** PPI data ID */
340
340
  PPI_ID: string;
341
- /** PPI 数据列表 */
341
+ /** PPI data list */
342
342
  PPI_LIST: string;
343
- /** PPI 数据数量 */
343
+ /** PPI data count */
344
344
  PPI_NUM: string;
345
- /** HRV 时间模式 */
345
+ /** HRV time mode */
346
346
  HRV_TIME_MODE: string;
347
- /** HRV 时间值 */
347
+ /** HRV time value */
348
348
  HRV_TIME_Value: string;
349
- /** 操作结果 */
349
+ /** Result */
350
350
  RESULT: string;
351
- /** 起身检测标识 */
351
+ /** Get off-wrist flag */
352
352
  GET_OFF_TAG: string;
353
- /** 起身检测状态 */
353
+ /** Get off-wrist state */
354
354
  GET_OFF_STATE: string;
355
- /** 距离单位,true = 公里,false = 英里 */
355
+ /** Distance unit, true = km, false = miles */
356
356
  DistanceUnit: string;
357
- /** 时间单位,true = 12小时制,false = 24小时制 */
357
+ /** Time unit, true = 12h, false = 24h */
358
358
  TimeUnit: string;
359
- /** 举手亮屏状态 */
359
+ /** Raise hand screen-on status */
360
360
  StatusOfTheRaisedHandOnscreen: string;
361
- /** 温度单位,true = 华氏度,false = 摄氏度 */
361
+ /** Temperature unit, true = Fahrenheit, false = Celsius */
362
362
  TempUnit: string;
363
- /** 夜间模式开关 */
363
+ /** Night mode switch */
364
364
  NightMode: string;
365
- /** 基础心率 */
365
+ /** Base heart rate */
366
366
  KBaseHeart: string;
367
- /** 屏幕亮度 (0-100) */
367
+ /** Screen brightness (0-100) */
368
368
  ScreenBrightness: string;
369
- /** 表盘界面索引 */
369
+ /** Watch face index */
370
370
  Dialinterface: string;
371
- /** 社交距离开关 */
371
+ /** Social distance switch */
372
372
  SocialDistancedwitch: string;
373
- /** 中文或英文显示,0 = 中文,1 = 英文 */
373
+ /** Language display, 0 = Chinese, 1 = English */
374
374
  ChineseOrEnglish: string;
375
- /** 工作模式 */
375
+ /** Work mode */
376
376
  WorkMode: string;
377
- /** 开始时间戳 */
377
+ /** Start timestamp */
378
378
  StartTime: string;
379
- /** 心率开始分钟 */
379
+ /** Heart rate start minute */
380
380
  KHeartStartMinter: string;
381
- /** 结束时间戳 */
381
+ /** End timestamp */
382
382
  EndTime: string;
383
- /** 心率结束分钟 */
383
+ /** Heart rate end minute */
384
384
  KHeartEndMinter: string;
385
- /** 周数 */
385
+ /** Week number */
386
386
  Weeks: string;
387
- /** 间隔时间 */
387
+ /** Interval time */
388
388
  IntervalTime: string;
389
- /** 开始小时 */
389
+ /** Start hour */
390
390
  StartTimeHour: string;
391
- /** 开始分钟 */
391
+ /** Start minute */
392
392
  StartTimeMin: string;
393
- /** 结束小时 */
393
+ /** End hour */
394
394
  EndTimeHour: string;
395
- /** 结束分钟 */
395
+ /** End minute */
396
396
  EndTimeMin: string;
397
- /** 最少步数 */
397
+ /** Minimum steps */
398
398
  LeastSteps: string;
399
- /** 周几 */
399
+ /** Day of week */
400
400
  Week: string;
401
- /** 目标值 */
401
+ /** Target value */
402
402
  Goal: string;
403
- /** 详细步数分钟 */
403
+ /** Detailed step minutes */
404
404
  KDetailMinterStep: string;
405
- /** 步数数组 */
405
+ /** Steps array */
406
406
  ArraySteps: string;
407
- /** 睡眠数组 */
407
+ /** Sleep array */
408
408
  ArraySleep: string;
409
- /** 睡眠单位长度 */
409
+ /** Sleep unit length */
410
410
  sleepUnitLength: string;
411
- /** 静态心率 */
411
+ /** Static heart rate */
412
412
  StaticHR: string;
413
- /** 女性健康周期 */
413
+ /** Women health period */
414
414
  WomenHealthPeriod: string;
415
- /** 女性健康时长 */
415
+ /** Women health duration */
416
416
  WomenHealthLength: string;
417
- /** 温度修正值 */
417
+ /** Temperature correction value */
418
418
  TemperatureCorrectionValue: string;
419
- /** HRV 数据 */
419
+ /** HRV data */
420
420
  HRV: string;
421
- /** ECG 心情值 */
421
+ /** ECG mood value */
422
422
  ECGMoodValue: string;
423
- /** ECG */
423
+ /** ECG value */
424
424
  ECGValue: string;
425
- /** 动态心率数组 */
425
+ /** Dynamic heart rate array */
426
426
  ArrayDynamicHR: string;
427
- /** 闹钟 ID */
427
+ /** Alarm ID */
428
428
  KAlarmId: string;
429
- /** 闹钟开关 */
429
+ /** Alarm switch */
430
430
  OpenOrClose: string;
431
- /** 闹钟类型 */
431
+ /** Alarm type */
432
432
  ClockType: string;
433
- /** 闹钟时间 */
433
+ /** Alarm time */
434
434
  ClockTime: string;
435
- /** 闹钟分钟 */
435
+ /** Alarm minute */
436
436
  KAlarmMinter: string;
437
- /** 闹钟内容 */
437
+ /** Alarm content */
438
438
  KAlarmContent: string;
439
- /** 闹钟长度 */
439
+ /** Alarm length */
440
440
  KAlarmLength: string;
441
- /** 腋温 */
441
+ /** Axillary temperature */
442
442
  axillaryTemperature: string;
443
- /** 手环编号 */
443
+ /** Band number */
444
444
  Band: string;
445
- /** 温度 */
445
+ /** Temperature */
446
446
  temperature: string;
447
- /** 活动模式 */
447
+ /** Activity mode */
448
448
  ActivityMode: string;
449
- /** 步速 */
449
+ /** Pace */
450
450
  Pace: string;
451
- /** 手机数据长度 */
451
+ /** Phone data length */
452
452
  KPhoneDataLength: string;
453
- /** 血管衰老值 */
453
+ /** Vascular aging value */
454
454
  VascularAging: string;
455
- /** 压力值 */
455
+ /** Stress value */
456
456
  Stress: string;
457
- /** 高血压 */
457
+ /** High blood pressure */
458
458
  highBP: string;
459
- /** 低血压 */
459
+ /** Low blood pressure */
460
460
  lowBP: string;
461
- /** ECG 状态 */
461
+ /** ECG status */
462
462
  EcgStatus: string;
463
- /** PPG */
463
+ /** PPG value */
464
464
  PPGValue: string;
465
- /** ECG HRV */
465
+ /** ECG HRV value */
466
466
  ECGHrvValue: string;
467
- /** ECG AV Block */
467
+ /** ECG AV Block value */
468
468
  ECGAvBlockValue: string;
469
- /** ECG 心率值 */
469
+ /** ECG heart rate */
470
470
  ECGHrValue: string;
471
- /** ECG 压力值 */
471
+ /** ECG stress value */
472
472
  ECGStreesValue: string;
473
- /** ECG 高血压值 */
473
+ /** ECG high blood pressure */
474
474
  ECGhighBpValue: string;
475
- /** ECG 低血压值 */
475
+ /** ECG low blood pressure */
476
476
  ECGLowBpValue: string;
477
- /** ECG 呼吸值 */
477
+ /** ECG breath value */
478
478
  ECGBreathValue: string;
479
- /** 活动位置时间 */
479
+ /** Activity location time */
480
480
  KActivityLocationTime: string;
481
- /** 活动位置纬度 */
481
+ /** Activity location latitude */
482
482
  KActivityLocationLatitude: string;
483
- /** 活动位置经度 */
483
+ /** Activity location longitude */
484
484
  KActivityLocationLongitude: string;
485
- /** 活动位置计数 */
485
+ /** Activity location count */
486
486
  KActivityLocationCount: string;
487
- /** 星期几 */
487
+ /** Day of week */
488
488
  DayOfWeek: string;
489
- /** 文本 */
489
+ /** Text */
490
490
  Text: string;
491
- /** 文本长度 */
491
+ /** Text length */
492
492
  TextLength: string;
493
- /** 是否删除数据 */
493
+ /** Whether to delete data */
494
494
  IsDeleteData: string;
495
495
  };