@d4l/collect-lib 1.36.0 → 1.37.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
@@ -38,6 +38,7 @@ function toDeviceConfig(devices) {
38
38
  }));
39
39
  case "DEXCOM":
40
40
  case "FITBIT":
41
+ case "GOOGLE_HEALTH":
41
42
  return {
42
43
  type: "api",
43
44
  device: device.type,
@@ -83,6 +84,7 @@ var DEVICE_KEY_TO_NAME = {
83
84
  PixelWatch1: { shortName: "Pixel Watch", fullName: "Google Pixel Watch" },
84
85
  GalaxyWatch6: { shortName: "Galaxy Watch", fullName: "Samsung Galaxy Watch 6" },
85
86
  FITBIT: { shortName: "fitbit", fullName: "fitbit" },
87
+ GOOGLE_HEALTH: { shortName: "Google Health", fullName: "Google Health" },
86
88
  DEXCOM: { shortName: "Dexcom", fullName: "Dexcom" },
87
89
  dexcom_g4: { shortName: "Dexcom G4", fullName: "Dexcom G4" },
88
90
  dexcom_g5: { shortName: "Dexcom G5", fullName: "Dexcom G5" },
@@ -319,6 +321,18 @@ var FITBIT_SIGNAL_TYPE_ANNOTATIONS = {
319
321
  spo2: FITBIT_SPO2_ANNOTATION
320
322
  };
321
323
 
324
+ // src/devices/annotations/google-health.ts
325
+ var GOOGLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS = {
326
+ calories: FITBIT_CALORIES_ANNOTATION,
327
+ steps: FITBIT_STEPS_ANNOTATION,
328
+ heartRate: FITBIT_HEART_RATE_ANNOTATION,
329
+ hrv: FITBIT_HEART_RATE_VARIABILITY_ANNOTATION,
330
+ respiratoryRate: FITBIT_BREATHING_RATE_ANNOTATION,
331
+ skinTemperature: FITBIT_SKIN_TEMPERATURE_ANNOTATION,
332
+ sleep: FITBIT_SLEEP_ANNOTATION,
333
+ spo2: FITBIT_SPO2_ANNOTATION
334
+ };
335
+
322
336
  // src/devices/annotations/movella.ts
323
337
  var DEVICE_MOVELLA_ANNOTATION_ITEM_TIMESTAMP = {
324
338
  type: "timestamp",
@@ -5692,6 +5706,19 @@ var API_TARGET_MAP = {
5692
5706
  tokenEndpoint: "https://api.fitbit.com/oauth2/token",
5693
5707
  dataEndpoint: "https://api.fitbit.com"
5694
5708
  }
5709
+ },
5710
+ GOOGLE_HEALTH: {
5711
+ prod: {
5712
+ loginEndpoint: "https://accounts.google.com/o/oauth2/v2/auth",
5713
+ tokenEndpoint: "https://oauth2.googleapis.com/token",
5714
+ dataEndpoint: "https://health.googleapis.com/v4"
5715
+ },
5716
+ sandbox: {
5717
+ // No sandbox for Google Health
5718
+ loginEndpoint: "https://accounts.google.com/o/oauth2/v2/auth",
5719
+ tokenEndpoint: "https://oauth2.googleapis.com/token",
5720
+ dataEndpoint: "https://health.googleapis.com/v4"
5721
+ }
5695
5722
  }
5696
5723
  };
5697
5724
  export {
@@ -5815,6 +5842,7 @@ export {
5815
5842
  FITBIT_SLEEP_LEVEL_MAP,
5816
5843
  FITBIT_SPO2_ANNOTATION,
5817
5844
  FITBIT_STEPS_ANNOTATION,
5845
+ GOOGLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS,
5818
5846
  HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION,
5819
5847
  HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE,
5820
5848
  HEALTH_CONNECT_ANNOTATION_ITEM_STEPS,