@careevolution/mydatahelps-ui 2.9.1-AsthmaUI.36 → 2.9.1-AsthmaUI.37

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.
Files changed (76) hide show
  1. package/dist/cjs/index.js +9 -9
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.d.ts +1 -1
  4. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +4 -4
  5. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/air-quality-home.d.ts +2 -0
  6. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/air-quality-work.d.ts +2 -0
  7. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/blood-oxygen-level-daytime.d.ts +2 -0
  8. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/blood-oxygen-level-nighttime.d.ts +2 -0
  9. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/index.d.ts +10 -0
  10. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/respiratory-rate.d.ts +2 -0
  11. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/resting-heart-rate-daytime.d.ts +2 -0
  12. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/resting-heart-rate-nighttime.d.ts +2 -0
  13. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/shared.d.ts +6 -0
  14. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/sleep.d.ts +2 -0
  15. package/dist/cjs/types/components/asthma/helpers/daily-data-providers/steps.d.ts +2 -0
  16. package/dist/cjs/types/components/asthma/model/types.d.ts +1 -1
  17. package/dist/cjs/types/components/asthma/views/AsthmaActivityView/AsthmaActivityView.d.ts +6 -0
  18. package/dist/cjs/types/components/asthma/views/AsthmaActivityView/AsthmaActivityView.stories.d.ts +16 -0
  19. package/dist/cjs/types/components/asthma/views/AsthmaActivityView/index.d.ts +1 -0
  20. package/dist/cjs/types/components/asthma/views/AsthmaHeartAndLungsView/AsthmaHeartAndLungsView.d.ts +6 -0
  21. package/dist/cjs/types/components/asthma/views/AsthmaHeartAndLungsView/AsthmaHeartAndLungsView.stories.d.ts +16 -0
  22. package/dist/cjs/types/components/asthma/views/AsthmaHeartAndLungsView/index.d.ts +1 -0
  23. package/dist/cjs/types/components/asthma/views/AsthmaSleepView/AsthmaSleepView.d.ts +6 -0
  24. package/dist/cjs/types/components/asthma/views/AsthmaSleepView/AsthmaSleepView.stories.d.ts +16 -0
  25. package/dist/cjs/types/components/asthma/views/AsthmaSleepView/index.d.ts +1 -0
  26. package/dist/cjs/types/components/asthma/views/index.d.ts +3 -0
  27. package/dist/cjs/types/components/container/DailyDataChart/DailyDataChart.d.ts +1 -0
  28. package/dist/cjs/types/components/presentational/ValueSelector/ValueSelector.d.ts +9 -0
  29. package/dist/cjs/types/components/presentational/ValueSelector/ValueSelector.stories.d.ts +33 -14
  30. package/dist/cjs/types/helpers/daily-data-providers/garmin-active-calories.d.ts +3 -0
  31. package/dist/cjs/types/helpers/daily-data-providers/garmin-resting-calories.d.ts +3 -0
  32. package/dist/cjs/types/helpers/daily-data-providers/garmin-total-calories.d.ts +3 -0
  33. package/dist/cjs/types/helpers/daily-data-providers/index.d.ts +4 -2
  34. package/dist/cjs/types/helpers/daily-data-providers/query-garmin-total-daily-values.d.ts +3 -0
  35. package/dist/cjs/types/helpers/query-daily-data.d.ts +6 -2
  36. package/dist/esm/index.js +9 -9
  37. package/dist/esm/index.js.map +1 -1
  38. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.d.ts +1 -1
  39. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +4 -4
  40. package/dist/esm/types/components/asthma/helpers/daily-data-providers/air-quality-home.d.ts +2 -0
  41. package/dist/esm/types/components/asthma/helpers/daily-data-providers/air-quality-work.d.ts +2 -0
  42. package/dist/esm/types/components/asthma/helpers/daily-data-providers/blood-oxygen-level-daytime.d.ts +2 -0
  43. package/dist/esm/types/components/asthma/helpers/daily-data-providers/blood-oxygen-level-nighttime.d.ts +2 -0
  44. package/dist/esm/types/components/asthma/helpers/daily-data-providers/index.d.ts +10 -0
  45. package/dist/esm/types/components/asthma/helpers/daily-data-providers/respiratory-rate.d.ts +2 -0
  46. package/dist/esm/types/components/asthma/helpers/daily-data-providers/resting-heart-rate-daytime.d.ts +2 -0
  47. package/dist/esm/types/components/asthma/helpers/daily-data-providers/resting-heart-rate-nighttime.d.ts +2 -0
  48. package/dist/esm/types/components/asthma/helpers/daily-data-providers/shared.d.ts +6 -0
  49. package/dist/esm/types/components/asthma/helpers/daily-data-providers/sleep.d.ts +2 -0
  50. package/dist/esm/types/components/asthma/helpers/daily-data-providers/steps.d.ts +2 -0
  51. package/dist/esm/types/components/asthma/model/types.d.ts +1 -1
  52. package/dist/esm/types/components/asthma/views/AsthmaActivityView/AsthmaActivityView.d.ts +6 -0
  53. package/dist/esm/types/components/asthma/views/AsthmaActivityView/AsthmaActivityView.stories.d.ts +16 -0
  54. package/dist/esm/types/components/asthma/views/AsthmaActivityView/index.d.ts +1 -0
  55. package/dist/esm/types/components/asthma/views/AsthmaHeartAndLungsView/AsthmaHeartAndLungsView.d.ts +6 -0
  56. package/dist/esm/types/components/asthma/views/AsthmaHeartAndLungsView/AsthmaHeartAndLungsView.stories.d.ts +16 -0
  57. package/dist/esm/types/components/asthma/views/AsthmaHeartAndLungsView/index.d.ts +1 -0
  58. package/dist/esm/types/components/asthma/views/AsthmaSleepView/AsthmaSleepView.d.ts +6 -0
  59. package/dist/esm/types/components/asthma/views/AsthmaSleepView/AsthmaSleepView.stories.d.ts +16 -0
  60. package/dist/esm/types/components/asthma/views/AsthmaSleepView/index.d.ts +1 -0
  61. package/dist/esm/types/components/asthma/views/index.d.ts +3 -0
  62. package/dist/esm/types/components/container/DailyDataChart/DailyDataChart.d.ts +1 -0
  63. package/dist/esm/types/components/presentational/ValueSelector/ValueSelector.d.ts +9 -0
  64. package/dist/esm/types/components/presentational/ValueSelector/ValueSelector.stories.d.ts +33 -14
  65. package/dist/esm/types/helpers/daily-data-providers/garmin-active-calories.d.ts +3 -0
  66. package/dist/esm/types/helpers/daily-data-providers/garmin-resting-calories.d.ts +3 -0
  67. package/dist/esm/types/helpers/daily-data-providers/garmin-total-calories.d.ts +3 -0
  68. package/dist/esm/types/helpers/daily-data-providers/index.d.ts +4 -2
  69. package/dist/esm/types/helpers/daily-data-providers/query-garmin-total-daily-values.d.ts +3 -0
  70. package/dist/esm/types/helpers/query-daily-data.d.ts +6 -2
  71. package/dist/index.d.ts +48 -18
  72. package/package.json +3 -3
  73. package/dist/esm/types/helpers/daily-data-providers/air-quality-home.d.ts +0 -3
  74. package/dist/esm/types/helpers/daily-data-providers/air-quality-work.d.ts +0 -3
  75. /package/dist/cjs/types/helpers/daily-data-providers/{air-quality-home.d.ts → apple-health-active-energy-burned.d.ts} +0 -0
  76. /package/dist/{cjs/types/helpers/daily-data-providers/air-quality-work.d.ts → esm/types/helpers/daily-data-providers/apple-health-active-energy-burned.d.ts} +0 -0
@@ -4,7 +4,7 @@ import { AsthmaBiometricsPreviewState } from './AsthmaBiometrics.previewData';
4
4
  export interface AsthmaBiometricsProps {
5
5
  previewState?: AsthmaBiometricsPreviewState;
6
6
  heartAndLungsUrl: string;
7
- stepsUrl: string;
7
+ activityUrl: string;
8
8
  sleepUrl: string;
9
9
  innerRef?: React.Ref<HTMLDivElement>;
10
10
  }
@@ -4,9 +4,9 @@ export interface AsthmaBiometricsPreviewData {
4
4
  daytimeRestingHeartRate: AsthmaBiometric;
5
5
  nighttimeRestingHeartRate: AsthmaBiometric;
6
6
  respiratoryRate: AsthmaBiometric;
7
- activity: AsthmaBiometric;
8
- sleep: AsthmaBiometric;
9
- daytimeOxygenSaturation: AsthmaBiometric;
10
- nighttimeOxygenSaturation: AsthmaBiometric;
7
+ steps: AsthmaBiometric;
8
+ sleepDisturbances: AsthmaBiometric;
9
+ daytimeBloodOxygenLevel: AsthmaBiometric;
10
+ nighttimeBloodOxygenLevel: AsthmaBiometric;
11
11
  }
12
12
  export declare const previewData: Record<AsthmaBiometricsPreviewState, AsthmaBiometricsPreviewData>;
@@ -0,0 +1,2 @@
1
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
2
+ export default function (startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
@@ -0,0 +1,2 @@
1
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
2
+ export default function (startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
@@ -0,0 +1,2 @@
1
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
2
+ export default function (startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
@@ -0,0 +1,2 @@
1
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
2
+ export default function (startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
@@ -0,0 +1,10 @@
1
+ export { default as daytimeRestingHeartRateDataProvider } from './resting-heart-rate-daytime';
2
+ export { default as nighttimeRestingHeartRateDataProvider } from './resting-heart-rate-nighttime';
3
+ export { default as respiratoryRateDataProvider } from './respiratory-rate';
4
+ export { default as stepsDataProvider } from './steps';
5
+ export { default as sleepDisturbancesDataProvider } from './sleep';
6
+ export { default as daytimeBloodOxygenLevelDataProvider } from './blood-oxygen-level-daytime';
7
+ export { default as nighttimeBloodOxygenLevelDataProvider } from './blood-oxygen-level-nighttime';
8
+ export { default as homeAirQualityDataProvider } from './air-quality-home';
9
+ export { default as workAirQualityDataProvider } from './air-quality-work';
10
+ export * from './shared';
@@ -0,0 +1,2 @@
1
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
2
+ export default function (startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
@@ -0,0 +1,2 @@
1
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
2
+ export default function (startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
@@ -0,0 +1,2 @@
1
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
2
+ export default function (startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
@@ -0,0 +1,6 @@
1
+ import { DeviceDataNamespace, DeviceDataPoint } from '@careevolution/mydatahelps-js';
2
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
3
+ export declare const collateLatestDataPoints: (dataPoints: DeviceDataPoint[]) => DailyDataQueryResult;
4
+ export declare const collateMaxValueDataPoints: (dataPoints: DeviceDataPoint[]) => DailyDataQueryResult;
5
+ export declare const queryAsthmaDeviceData: (namespace: DeviceDataNamespace, type: string, startDate: Date, endDate: Date, collateFunction: (dataPoints: DeviceDataPoint[]) => DailyDataQueryResult) => Promise<DailyDataQueryResult>;
6
+ export declare const randomDataProvider: (start: Date, end: Date, min: number, max: number) => Promise<DailyDataQueryResult>;
@@ -0,0 +1,2 @@
1
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
2
+ export default function (startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
@@ -0,0 +1,2 @@
1
+ import { DailyDataQueryResult } from '../../../../helpers/query-daily-data';
2
+ export default function (startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
@@ -26,7 +26,7 @@ export interface AsthmaControlState {
26
26
  inhalerUseDaysPast7?: number;
27
27
  }
28
28
  export type AsthmaDataStatus = 'establishing' | 'offline' | 'in-range' | 'out-of-range';
29
- export type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'activity' | 'sleep' | 'daytime-oxygen-saturation' | 'nighttime-oxygen-saturation';
29
+ export type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'steps' | 'sleep-disturbances' | 'daytime-blood-oxygen-level' | 'nighttime-blood-oxygen-level';
30
30
  export interface AsthmaBiometric {
31
31
  type: AsthmaBiometricType;
32
32
  status: AsthmaDataStatus;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface AsthmaActivityViewProps {
3
+ previewState?: 'default';
4
+ colorScheme?: 'light' | 'dark' | 'auto';
5
+ }
6
+ export default function (props: AsthmaActivityViewProps): React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import AsthmaActivityView, { AsthmaActivityViewProps } from './AsthmaActivityView';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof AsthmaActivityView;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ args: {
13
+ previewState: string;
14
+ };
15
+ render: (args: AsthmaActivityViewProps) => React.JSX.Element;
16
+ };
@@ -0,0 +1 @@
1
+ export { default } from './AsthmaActivityView';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface AsthmaHeartAndLungsViewProps {
3
+ previewState?: 'default';
4
+ colorScheme?: 'light' | 'dark' | 'auto';
5
+ }
6
+ export default function (props: AsthmaHeartAndLungsViewProps): React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import AsthmaHeartAndLungsView, { AsthmaHeartAndLungsViewProps } from './AsthmaHeartAndLungsView';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof AsthmaHeartAndLungsView;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ args: {
13
+ previewState: string;
14
+ };
15
+ render: (args: AsthmaHeartAndLungsViewProps) => React.JSX.Element;
16
+ };
@@ -0,0 +1 @@
1
+ export { default } from './AsthmaHeartAndLungsView';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface AsthmaSleepViewProps {
3
+ previewState?: 'default';
4
+ colorScheme?: 'light' | 'dark' | 'auto';
5
+ }
6
+ export default function (props: AsthmaSleepViewProps): React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import AsthmaSleepView, { AsthmaSleepViewProps } from './AsthmaSleepView';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof AsthmaSleepView;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ args: {
13
+ previewState: string;
14
+ };
15
+ render: (args: AsthmaSleepViewProps) => React.JSX.Element;
16
+ };
@@ -0,0 +1 @@
1
+ export { default } from './AsthmaSleepView';
@@ -1,3 +1,6 @@
1
+ export { default as AsthmaActivityView } from './AsthmaActivityView';
1
2
  export { default as AsthmaAirQualityView } from './AsthmaAirQualityView';
2
3
  export { default as AsthmaDayView, AsthmaDayViewPreviewState } from './AsthmaDayView';
4
+ export { default as AsthmaHeartAndLungsView } from './AsthmaHeartAndLungsView';
3
5
  export { default as AsthmaLogEntryEditorView, AsthmaLogEntryEditorViewPreviewState } from './AsthmaLogEntryEditorView';
6
+ export { default as AsthmaSleepView } from './AsthmaSleepView';
@@ -4,6 +4,7 @@ import "./DailyDataChart.css";
4
4
  import { WeekStartsOn } from '../../../helpers/get-interval-start';
5
5
  export interface DailyDataChartProps {
6
6
  title?: string;
7
+ subtitle?: string;
7
8
  intervalType?: "Week" | "Month";
8
9
  weekStartsOn?: WeekStartsOn;
9
10
  dailyDataType: string;
@@ -1,10 +1,19 @@
1
1
  import React from 'react';
2
2
  import './ValueSelector.css';
3
+ import { ColorDefinition } from '../../../helpers/colors';
3
4
  export interface ValueSelectorProps {
4
5
  title?: string;
6
+ titleColor?: ColorDefinition;
5
7
  subtitle?: string;
8
+ subtitleColor?: ColorDefinition;
6
9
  values: string[];
10
+ valueBackgroundColor?: ColorDefinition;
11
+ valueTextColor?: ColorDefinition;
12
+ checkboxColor?: ColorDefinition;
7
13
  selectedValues?: string[];
14
+ selectedButtonBackgroundColor?: ColorDefinition;
15
+ selectedButtonTextColor?: ColorDefinition;
16
+ selectedCheckboxColor?: ColorDefinition;
8
17
  onChange?: (selectedValues: string[]) => void;
9
18
  variant?: 'default' | 'checkboxes';
10
19
  multiSelect?: boolean;
@@ -8,18 +8,11 @@ declare const _default: {
8
8
  };
9
9
  };
10
10
  export default _default;
11
- export declare const Default: {
12
- args: {
13
- values: string[];
14
- };
15
- render: (args: ValueSelectorProps) => React.JSX.Element;
16
- };
17
11
  export declare const Buttons: {
18
12
  args: {
19
13
  title: string;
20
14
  subtitle: string;
21
15
  values: string[];
22
- selectedValues: string[];
23
16
  };
24
17
  render: (args: ValueSelectorProps) => React.JSX.Element;
25
18
  };
@@ -28,7 +21,6 @@ export declare const ButtonsPreventEmptySelections: {
28
21
  title: string;
29
22
  subtitle: string;
30
23
  values: string[];
31
- selectedValues: string[];
32
24
  preventEmptySelections: boolean;
33
25
  };
34
26
  render: (args: ValueSelectorProps) => React.JSX.Element;
@@ -38,7 +30,6 @@ export declare const ButtonsMultiSelect: {
38
30
  title: string;
39
31
  subtitle: string;
40
32
  values: string[];
41
- selectedValues: string[];
42
33
  multiSelect: boolean;
43
34
  };
44
35
  render: (args: ValueSelectorProps) => React.JSX.Element;
@@ -48,18 +39,33 @@ export declare const ButtonsMultiSelectPreventEmptySelections: {
48
39
  title: string;
49
40
  subtitle: string;
50
41
  values: string[];
51
- selectedValues: string[];
52
42
  multiSelect: boolean;
53
43
  preventEmptySelections: boolean;
54
44
  };
55
45
  render: (args: ValueSelectorProps) => React.JSX.Element;
56
46
  };
47
+ export declare const ButtonsCustomColors: {
48
+ args: {
49
+ title: string;
50
+ titleColor: string;
51
+ subtitle: string;
52
+ subtitleColor: string;
53
+ values: string[];
54
+ valueBackgroundColor: string;
55
+ valueTextColor: string;
56
+ selectedButtonBackgroundColor: string;
57
+ selectedButtonTextColor: {
58
+ lightMode: string;
59
+ darkMode: string;
60
+ };
61
+ };
62
+ render: (args: ValueSelectorProps) => React.JSX.Element;
63
+ };
57
64
  export declare const Checkboxes: {
58
65
  args: {
59
66
  title: string;
60
67
  subtitle: string;
61
68
  values: string[];
62
- selectedValues: string[];
63
69
  variant: string;
64
70
  };
65
71
  render: (args: ValueSelectorProps) => React.JSX.Element;
@@ -69,7 +75,6 @@ export declare const CheckboxesPreventEmptySelections: {
69
75
  title: string;
70
76
  subtitle: string;
71
77
  values: string[];
72
- selectedValues: string[];
73
78
  variant: string;
74
79
  preventEmptySelections: boolean;
75
80
  };
@@ -80,7 +85,6 @@ export declare const CheckboxesMultiSelect: {
80
85
  title: string;
81
86
  subtitle: string;
82
87
  values: string[];
83
- selectedValues: string[];
84
88
  variant: string;
85
89
  multiSelect: boolean;
86
90
  };
@@ -91,10 +95,25 @@ export declare const CheckboxesMultiSelectPreventEmptySelections: {
91
95
  title: string;
92
96
  subtitle: string;
93
97
  values: string[];
94
- selectedValues: string[];
95
98
  variant: string;
96
99
  multiSelect: boolean;
97
100
  preventEmptySelections: boolean;
98
101
  };
99
102
  render: (args: ValueSelectorProps) => React.JSX.Element;
100
103
  };
104
+ export declare const CheckboxesCustomColors: {
105
+ args: {
106
+ title: string;
107
+ titleColor: string;
108
+ subtitle: string;
109
+ subtitleColor: string;
110
+ values: string[];
111
+ valueBackgroundColor: string;
112
+ valueTextColor: string;
113
+ checkboxColor: string;
114
+ selectedCheckboxColor: string;
115
+ variant: string;
116
+ multiSelect: boolean;
117
+ };
118
+ render: (args: ValueSelectorProps) => React.JSX.Element;
119
+ };
@@ -0,0 +1,3 @@
1
+ export declare function activeCalories(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare function restingCalories(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare function totalCalories(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -1,5 +1,3 @@
1
- export { default as airQualityAtHomeDataProvider } from "./air-quality-home";
2
- export { default as airQualityAtWorkDataProvider } from "./air-quality-work";
3
1
  export { default as appleHealthFlightsClimbedDataProvider } from "./apple-health-flights-climbed";
4
2
  export { default as appleHealthHrvDataProvider } from "./apple-health-hrv";
5
3
  export { default as appleHealthHeartRateRangeDataProvider } from "./apple-health-heart-rate-range";
@@ -10,6 +8,7 @@ export { inBedTime as appleHealthInBedDataProvider } from "./apple-health-sleep"
10
8
  export { default as appleHealthStandTimeDataProvider } from "./apple-health-stand-time";
11
9
  export { default as appleHealthStepsDataProvider } from "./apple-health-steps";
12
10
  export { default as appleHealthWalkingHeartRateAverageDataProvider } from "./apple-health-walking-heart-rate-average";
11
+ export { default as appleHealthActiveEnergyBurned } from "./apple-health-active-energy-burned";
13
12
  export { sedentaryMinutes as fitbitSedentaryMinutesDataProvider } from "./fitbit-activity-minutes";
14
13
  export { totalActiveMinutes as fitbitTotalActiveMinutesDataProvider } from "./fitbit-activity-minutes";
15
14
  export { lightlyActiveMinutes as fitbitLightlyActiveMinutesDataProvider } from "./fitbit-activity-minutes";
@@ -37,6 +36,9 @@ export { default as garminStepsDataProvider } from "./garmin-steps";
37
36
  export { default as garminDistanceDataProvider } from "./garmin-distance";
38
37
  export { default as garminFloorsDataProvider } from "./garmin-floors";
39
38
  export { activeMinutes as garminActiveMinutesDataProvider } from "./garmin-activity";
39
+ export { activeCalories as garminActiveCaloriesDataProvider } from "./garmin-active-calories";
40
+ export { restingCalories as garminRestingCaloriesDataProvider } from "./garmin-resting-calories";
41
+ export { totalCalories as garminTotalCaloriesDataProvider } from "./garmin-total-calories";
40
42
  export { restingHeartRate as garminRestingHeartRateDataProvider } from "./garmin-heart-rate";
41
43
  export { minHeartRate as garminMinHeartRateDataProvider } from "./garmin-heart-rate";
42
44
  export { maxHeartRate as garminMaxHeartRateDataProvider } from "./garmin-heart-rate";
@@ -0,0 +1,3 @@
1
+ export default function (types: string[], startDate: Date, endDate: Date, divideBy?: number): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -1,3 +1,4 @@
1
+ import { DeviceDataNamespace } from "@careevolution/mydatahelps-js";
1
2
  export type DailyDataQueryResult = {
2
3
  [key: string]: number;
3
4
  };
@@ -6,9 +7,8 @@ export type DailyDataAvailabilityCheck = (modifiedAfter?: Date) => Promise<boole
6
7
  export declare function registerDailyDataProvider(type: string, provider: DailyDataProvider, availabilityCheck: DailyDataAvailabilityCheck): void;
7
8
  export declare function checkDailyDataAvailability(type: string, modifiedAfter?: Date): Promise<boolean>;
8
9
  export declare function queryDailyData(type: string, startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
10
+ export declare function simpleAvailabilityCheck(namespace: DeviceDataNamespace, type: string | string[]): (modifiedAfter?: Date) => Promise<boolean>;
9
11
  export declare enum DailyDataType {
10
- AirQualityAtHome = "AirQualityAtHome",
11
- AirQualityAtWork = "AirQualityAtWork",
12
12
  AppleHealthDistanceWalkingRunning = "AppleHealthDistanceWalkingRunning",
13
13
  AppleHealthFlightsClimbed = "AppleHealthFlightsClimbed",
14
14
  AppleHealthHeartRateRange = "AppleHealthHeartRateRange",
@@ -20,6 +20,7 @@ export declare enum DailyDataType {
20
20
  AppleHealthStandMinutes = "AppleHealthStandMinutes",
21
21
  AppleHealthSteps = "AppleHealthSteps",
22
22
  AppleHealthWalkingHeartRateAverage = "AppleHealthWalkingHeartRateAverage",
23
+ AppleHealthActiveEnergyBurned = "AppleHealthActiveEnergyBurned",
23
24
  FitbitSedentaryMinutes = "FitbitSedentaryMinutes",
24
25
  FitbitActiveMinutes = "FitbitActiveMinutes",
25
26
  FitbitLightlyActiveMinutes = "FitbitLightlyActiveMinutes",
@@ -44,6 +45,9 @@ export declare enum DailyDataType {
44
45
  GarminDistance = "GarminDistance",
45
46
  GarminFloors = "GarminFloors",
46
47
  GarminActiveMinutes = "GarminActiveMinutes",
48
+ GarminActiveCalories = "GarminActiveCalories",
49
+ GarminRestingCalories = "GarminRestingCalories",
50
+ GarminTotalCalories = "GarminTotalCalories",
47
51
  GarminRestingHeartRate = "GarminRestingHeartRate",
48
52
  GarminMinHeartRate = "GarminMinHeartRate",
49
53
  GarminMaxHeartRate = "GarminMaxHeartRate",