@d4l/collect-lib 1.3.0 → 1.4.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.
package/dist/index.mjs CHANGED
@@ -72,6 +72,38 @@ function toDeviceConfig(devices) {
72
72
  return deviceConfigs;
73
73
  }
74
74
 
75
+ // src/devices/types.ts
76
+ var DEVICE_KEY_TO_NAME = {
77
+ DOT: { shortName: "Movella DOT", fullName: "Movella DOT" },
78
+ OH1: { shortName: "Polar OH1", fullName: "Polar OH1" },
79
+ H10: { shortName: "Polar H10", fullName: "Polar H10" },
80
+ EstimoteUWB: { shortName: "Estimote", fullName: "Estimote UWB" },
81
+ TicWatchE2: { shortName: "TicWatch E2", fullName: "Mobvoi TicWatch E2" },
82
+ PixelWatch1: { shortName: "Pixel Watch", fullName: "Google Pixel Watch" },
83
+ GalaxyWatch6: { shortName: "Galaxy Watch", fullName: "Samsung Galaxy Watch 6" },
84
+ FITBIT: { shortName: "fitbit", fullName: "fitbit" },
85
+ DEXCOM: { shortName: "Dexcom", fullName: "Dexcom" },
86
+ dexcom_g4: { shortName: "Dexcom G4", fullName: "Dexcom G4" },
87
+ dexcom_g5: { shortName: "Dexcom G5", fullName: "Dexcom G5" },
88
+ dexcom_g6: { shortName: "Dexcom G6", fullName: "Dexcom G6" },
89
+ "dexcom_g6+": { shortName: "Dexcom G6+", fullName: "Dexcom G6+" },
90
+ dexcom_g7: { shortName: "Dexcom G7", fullName: "Dexcom G7" },
91
+ INTERNAL: { shortName: "Internal", fullName: "Internal Device" },
92
+ // Placeholder, there is no such device
93
+ internal_accelerometer: {
94
+ shortName: "Internal Accelerometer",
95
+ fullName: "Internal Accelerometer"
96
+ },
97
+ internal_gyroscope: { shortName: "Internal Gyroscope", fullName: "Internal Gyroscope" },
98
+ internal_magnetometer: { shortName: "Internal Magnetometer", fullName: "Internal Magnetometer" },
99
+ internal_beacon_sensing: {
100
+ shortName: "Internal Beacon Sensing",
101
+ fullName: "Internal Beacon Sensing"
102
+ },
103
+ // Placeholder, there is no such device
104
+ AppleHealth: { shortName: "Apple HealthKit", fullName: "Apple HealthKit" }
105
+ };
106
+
75
107
  // src/devices/annotations/base.ts
76
108
  var DEVICE_ANNOTATION_TIMESTAMP_SIZE = 6;
77
109
  var DEVICE_ANNOTATION_TIMESTAMP_UNIT = "ms";
@@ -256,7 +288,7 @@ var FITBIT_SIGNAL_TYPE_ANNOTATIONS = {
256
288
  calories: FITBIT_CALORIES_ANNOTATION,
257
289
  steps: FITBIT_STEPS_ANNOTATION,
258
290
  heartRate: FITBIT_HEART_RATE_ANNOTATION,
259
- heartRateVariability: FITBIT_HEART_RATE_VARIABILITY_ANNOTATION,
291
+ hrv: FITBIT_HEART_RATE_VARIABILITY_ANNOTATION,
260
292
  respiratoryRate: FITBIT_BREATHING_RATE_ANNOTATION,
261
293
  skinTemperature: FITBIT_SKIN_TEMPERATURE_ANNOTATION,
262
294
  sleep: FITBIT_SLEEP_ANNOTATION,
@@ -5238,6 +5270,7 @@ export {
5238
5270
  DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG,
5239
5271
  DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP,
5240
5272
  DEVICE_DISPLAY_LABEL_CODING,
5273
+ DEVICE_KEY_TO_NAME,
5241
5274
  DEVICE_LABEL_CODING,
5242
5275
  DEVICE_OUTPUT_RATE_CODING,
5243
5276
  DEVICE_SENSOR_DELAY_CODING,