@demind-inc/core 1.10.32 → 1.11.2

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.
@@ -26,6 +26,7 @@ export interface FeatureFlags {
26
26
  FF_ai_scheduler_adjust_v2?: boolean;
27
27
  FF_paywall_202602_ab_test?: boolean;
28
28
  FF_lifestack_v3?: boolean;
29
+ FF_native_health_sdk?: boolean;
29
30
  team_plan_beta_users?: {
30
31
  emails: string[];
31
32
  };
@@ -16,5 +16,7 @@ export interface Device {
16
16
  from: DeviceConnectedFrom;
17
17
  detailedSources?: string[];
18
18
  permissions?: string[];
19
+ connectVia?: DeviceConnectVia;
19
20
  }
20
21
  export type DeviceConnectedFrom = "APPLE_HEALTH" | "TERRA" | "LIFESTACK";
22
+ export type DeviceConnectVia = "TERRA_SDK" | "NATIVE";
@@ -86,6 +86,7 @@ export interface MetricExerciseDayMetadata {
86
86
  steps?: number;
87
87
  distanceMeters?: number;
88
88
  floorsClimbed?: number;
89
+ calories?: number;
89
90
  }
90
91
  export interface MetricExercise {
91
92
  metricExerciseId: string;
@@ -26,6 +26,7 @@ export interface FeatureFlags {
26
26
  FF_ai_scheduler_adjust_v2?: boolean;
27
27
  FF_paywall_202602_ab_test?: boolean;
28
28
  FF_lifestack_v3?: boolean;
29
+ FF_native_health_sdk?: boolean;
29
30
  team_plan_beta_users?: {
30
31
  emails: string[];
31
32
  }
@@ -18,6 +18,12 @@ export interface Device {
18
18
  from: DeviceConnectedFrom;
19
19
  detailedSources?: string[];
20
20
  permissions?: string[];
21
+ connectVia?: DeviceConnectVia;
21
22
  }
22
23
 
23
24
  export type DeviceConnectedFrom = "APPLE_HEALTH" | "TERRA" | "LIFESTACK";
25
+
26
+ // How the on-device data was read: through Terra's SDK (terra-react), or read
27
+ // directly by our own native HealthKit/Health Connect integration. Absent means
28
+ // 'TERRA_SDK' for backward compatibility with devices written before this field existed.
29
+ export type DeviceConnectVia = "TERRA_SDK" | "NATIVE";
@@ -96,6 +96,7 @@ export interface MetricExerciseDayMetadata {
96
96
  steps?: number;
97
97
  distanceMeters?: number;
98
98
  floorsClimbed?: number;
99
+ calories?: number;
99
100
  }
100
101
 
101
102
  export interface MetricExercise {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.10.32",
3
+ "version": "1.11.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {