@careevolution/mydatahelps-ui 1.3.7 → 1.5.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.
Files changed (91) hide show
  1. package/README.md +12 -11
  2. package/dist/cjs/index.js +10 -27
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.d.ts +1 -9
  5. package/dist/cjs/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.previewdata.d.ts +3 -2
  6. package/dist/cjs/types/components/presentational/ActivityMeter/ActivityMeter.d.ts +12 -0
  7. package/dist/cjs/types/components/presentational/ActivityMeter/ActivityMeter.stories.d.ts +6 -0
  8. package/dist/cjs/types/components/presentational/ActivityMeter/index.d.ts +1 -0
  9. package/dist/cjs/types/components/presentational/OnVisibleTrigger/OnVisibleTrigger.d.ts +6 -0
  10. package/dist/cjs/types/components/presentational/OnVisibleTrigger/index.d.ts +1 -0
  11. package/dist/cjs/types/components/presentational/SparkBarChart/SparkBarChart.d.ts +11 -0
  12. package/dist/cjs/types/components/presentational/SparkBarChart/SparkBarChart.stories.d.ts +5 -0
  13. package/dist/cjs/types/components/presentational/SparkBarChart/index.d.ts +1 -0
  14. package/dist/cjs/types/components/presentational/WeekCalendar/WeekCalendar.d.ts +12 -0
  15. package/dist/cjs/types/components/presentational/WeekCalendar/WeekCalendar.stories.d.ts +7 -0
  16. package/dist/cjs/types/components/presentational/WeekCalendar/index.d.ts +1 -0
  17. package/dist/cjs/types/components/presentational/index.d.ts +3 -0
  18. package/dist/cjs/types/helpers/daily-data-providers/apple-health-distance.d.ts +3 -0
  19. package/dist/cjs/types/helpers/daily-data-providers/apple-health-flights-climbed.d.ts +3 -0
  20. package/dist/cjs/types/helpers/daily-data-providers/apple-health-heart-rate-range.d.ts +3 -0
  21. package/dist/cjs/types/helpers/daily-data-providers/apple-health-hrv.d.ts +3 -0
  22. package/dist/cjs/types/helpers/daily-data-providers/apple-health-max-heart-rate.d.ts +3 -0
  23. package/dist/cjs/types/helpers/daily-data-providers/apple-health-resting-heart-rate.d.ts +3 -0
  24. package/dist/cjs/types/helpers/daily-data-providers/apple-health-sleep.d.ts +6 -0
  25. package/dist/cjs/types/helpers/daily-data-providers/apple-health-stand-time.d.ts +3 -0
  26. package/dist/cjs/types/helpers/daily-data-providers/apple-health-steps.d.ts +3 -0
  27. package/dist/cjs/types/helpers/daily-data-providers/apple-health-walking-heart-rate-average.d.ts +3 -0
  28. package/dist/cjs/types/helpers/daily-data-providers/combined-steps.d.ts +3 -0
  29. package/dist/cjs/types/helpers/daily-data-providers/fitbit-activity-minutes.d.ts +12 -0
  30. package/dist/cjs/types/helpers/daily-data-providers/fitbit-breathing-rate.d.ts +3 -0
  31. package/dist/cjs/types/helpers/daily-data-providers/fitbit-calories-burned.d.ts +3 -0
  32. package/dist/cjs/types/helpers/daily-data-providers/fitbit-elevated-heart-rate.d.ts +12 -0
  33. package/dist/cjs/types/helpers/daily-data-providers/fitbit-floors.d.ts +3 -0
  34. package/dist/cjs/types/helpers/daily-data-providers/fitbit-hrv.d.ts +3 -0
  35. package/dist/cjs/types/helpers/daily-data-providers/fitbit-resting-heart-rate.d.ts +3 -0
  36. package/dist/cjs/types/helpers/daily-data-providers/fitbit-sleep.d.ts +12 -0
  37. package/dist/cjs/types/helpers/daily-data-providers/fitbit-spo2.d.ts +3 -0
  38. package/dist/cjs/types/helpers/daily-data-providers/fitbit-steps.d.ts +3 -0
  39. package/dist/cjs/types/helpers/daily-data-providers/google-fit-steps.d.ts +3 -0
  40. package/dist/cjs/types/helpers/daily-data-providers/index.d.ts +32 -0
  41. package/dist/cjs/types/helpers/daily-data-providers/query-all-device-data.d.ts +2 -0
  42. package/dist/cjs/types/helpers/daily-data-providers/query-fitbit-single-daily-value.d.ts +3 -0
  43. package/dist/cjs/types/helpers/get-day-key.d.ts +1 -0
  44. package/dist/cjs/types/helpers/query-daily-data.d.ts +41 -0
  45. package/dist/cjs/types/index.d.ts +1 -0
  46. package/dist/esm/index.js +10 -26
  47. package/dist/esm/index.js.map +1 -1
  48. package/dist/esm/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.d.ts +1 -9
  49. package/dist/esm/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.previewdata.d.ts +3 -2
  50. package/dist/esm/types/components/presentational/ActivityMeter/ActivityMeter.d.ts +12 -0
  51. package/dist/esm/types/components/presentational/ActivityMeter/ActivityMeter.stories.d.ts +6 -0
  52. package/dist/esm/types/components/presentational/ActivityMeter/index.d.ts +1 -0
  53. package/dist/esm/types/components/presentational/OnVisibleTrigger/OnVisibleTrigger.d.ts +6 -0
  54. package/dist/esm/types/components/presentational/OnVisibleTrigger/index.d.ts +1 -0
  55. package/dist/esm/types/components/presentational/SparkBarChart/SparkBarChart.d.ts +11 -0
  56. package/dist/esm/types/components/presentational/SparkBarChart/SparkBarChart.stories.d.ts +5 -0
  57. package/dist/esm/types/components/presentational/SparkBarChart/index.d.ts +1 -0
  58. package/dist/esm/types/components/presentational/WeekCalendar/WeekCalendar.d.ts +12 -0
  59. package/dist/esm/types/components/presentational/WeekCalendar/WeekCalendar.stories.d.ts +7 -0
  60. package/dist/esm/types/components/presentational/WeekCalendar/index.d.ts +1 -0
  61. package/dist/esm/types/components/presentational/index.d.ts +3 -0
  62. package/dist/esm/types/helpers/daily-data-providers/apple-health-distance.d.ts +3 -0
  63. package/dist/esm/types/helpers/daily-data-providers/apple-health-flights-climbed.d.ts +3 -0
  64. package/dist/esm/types/helpers/daily-data-providers/apple-health-heart-rate-range.d.ts +3 -0
  65. package/dist/esm/types/helpers/daily-data-providers/apple-health-hrv.d.ts +3 -0
  66. package/dist/esm/types/helpers/daily-data-providers/apple-health-max-heart-rate.d.ts +3 -0
  67. package/dist/esm/types/helpers/daily-data-providers/apple-health-resting-heart-rate.d.ts +3 -0
  68. package/dist/esm/types/helpers/daily-data-providers/apple-health-sleep.d.ts +6 -0
  69. package/dist/esm/types/helpers/daily-data-providers/apple-health-stand-time.d.ts +3 -0
  70. package/dist/esm/types/helpers/daily-data-providers/apple-health-steps.d.ts +3 -0
  71. package/dist/esm/types/helpers/daily-data-providers/apple-health-walking-heart-rate-average.d.ts +3 -0
  72. package/dist/esm/types/helpers/daily-data-providers/combined-steps.d.ts +3 -0
  73. package/dist/esm/types/helpers/daily-data-providers/fitbit-activity-minutes.d.ts +12 -0
  74. package/dist/esm/types/helpers/daily-data-providers/fitbit-breathing-rate.d.ts +3 -0
  75. package/dist/esm/types/helpers/daily-data-providers/fitbit-calories-burned.d.ts +3 -0
  76. package/dist/esm/types/helpers/daily-data-providers/fitbit-elevated-heart-rate.d.ts +12 -0
  77. package/dist/esm/types/helpers/daily-data-providers/fitbit-floors.d.ts +3 -0
  78. package/dist/esm/types/helpers/daily-data-providers/fitbit-hrv.d.ts +3 -0
  79. package/dist/esm/types/helpers/daily-data-providers/fitbit-resting-heart-rate.d.ts +3 -0
  80. package/dist/esm/types/helpers/daily-data-providers/fitbit-sleep.d.ts +12 -0
  81. package/dist/esm/types/helpers/daily-data-providers/fitbit-spo2.d.ts +3 -0
  82. package/dist/esm/types/helpers/daily-data-providers/fitbit-steps.d.ts +3 -0
  83. package/dist/esm/types/helpers/daily-data-providers/google-fit-steps.d.ts +3 -0
  84. package/dist/esm/types/helpers/daily-data-providers/index.d.ts +32 -0
  85. package/dist/esm/types/helpers/daily-data-providers/query-all-device-data.d.ts +2 -0
  86. package/dist/esm/types/helpers/daily-data-providers/query-fitbit-single-daily-value.d.ts +3 -0
  87. package/dist/esm/types/helpers/get-day-key.d.ts +1 -0
  88. package/dist/esm/types/helpers/query-daily-data.d.ts +41 -0
  89. package/dist/esm/types/index.d.ts +1 -0
  90. package/dist/index.d.ts +97 -31
  91. package/package.json +2 -2
@@ -1,8 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import "./DeviceDataMonthChart.css";
3
- import { DeviceDataNamespace } from "@careevolution/mydatahelps-js";
4
3
  export interface DeviceDataMonthChartProps {
5
- namespace: DeviceDataNamespace;
6
4
  lines: DeviceDataChartLine[];
7
5
  month: number;
8
6
  year: number;
@@ -13,15 +11,9 @@ export interface DeviceDataMonthChartProps {
13
11
  }
14
12
  export interface DeviceDataChartLine {
15
13
  label: string;
16
- deviceDataPointType: string;
14
+ dailyDataType: string;
17
15
  valueConverter?: Function;
18
- displayByDate?: DateAnchor;
19
- aggregation: AggregationType;
20
- ignoreDateOffsets?: boolean;
21
- ignoreZeros?: boolean;
22
16
  showAverage?: boolean;
23
17
  }
24
18
  export declare type DeviceDataMonthChartPreviewState = "WithData" | "NoData" | "Loading";
25
- export declare type AggregationType = "Sum" | "Average" | "Count";
26
- export declare type DateAnchor = "observation" | "start";
27
19
  export default function (props: DeviceDataMonthChartProps): JSX.Element | null;
@@ -1,2 +1,3 @@
1
- import { DeviceDataNamespace, DeviceDataPoint } from "@careevolution/mydatahelps-js";
2
- export declare function getPreviewData(deviceDataType: string, deviceDataNamespace: DeviceDataNamespace, year: number, month: number): DeviceDataPoint[] | undefined;
1
+ export declare function getPreviewData(dailyDataType: string, year: number, month: number): {
2
+ [key: string]: number;
3
+ };
@@ -0,0 +1,12 @@
1
+ import { ReactElement } from 'react';
2
+ import "./ActivityMeter.css";
3
+ export interface ActivityMeterProps {
4
+ label: string;
5
+ value: string;
6
+ icon: ReactElement;
7
+ fillPercent: number;
8
+ averageFillPercent: number;
9
+ color: string;
10
+ message?: string;
11
+ }
12
+ export default function (props: ActivityMeterProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
2
+ import ActivityMeter from "./ActivityMeter";
3
+ declare const _default: ComponentMeta<typeof ActivityMeter>;
4
+ export default _default;
5
+ export declare const Sleep: ComponentStory<typeof ActivityMeter>;
6
+ export declare const Steps: ComponentStory<typeof ActivityMeter>;
@@ -0,0 +1 @@
1
+ export { default } from "./ActivityMeter";
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface OnVisibleTriggerProps {
3
+ onTrigger: Function;
4
+ enabled: boolean;
5
+ }
6
+ export default function (props: OnVisibleTriggerProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from "./OnVisibleTrigger";
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import "./SparkBarChart.css";
3
+ export interface SparkBarChartProps {
4
+ averageFillPercent: number;
5
+ bars: SparkBarChartBar[];
6
+ }
7
+ export interface SparkBarChartBar {
8
+ color: string;
9
+ barFillPercent: number;
10
+ }
11
+ export default function (props: SparkBarChartProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
2
+ import SparkBarChart from "./SparkBarChart";
3
+ declare const _default: ComponentMeta<typeof SparkBarChart>;
4
+ export default _default;
5
+ export declare const Default: ComponentStory<typeof SparkBarChart>;
@@ -0,0 +1 @@
1
+ export { default } from "./SparkBarChart";
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import "./WeekCalendar.css";
3
+ export interface WeekCalendarProps {
4
+ selectedDate?: Date;
5
+ hideDateLabel?: boolean;
6
+ startDate: Date;
7
+ onDateSelected?(date: Date): void;
8
+ loading: boolean;
9
+ onStartDateChange?(startDate: Date): void;
10
+ dayRenderer(year: number, month: number, day: number, selectedWeek: boolean): JSX.Element | null;
11
+ }
12
+ export default function (props: WeekCalendarProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta } from "@storybook/react";
3
+ import WeekCalendar from "./WeekCalendar";
4
+ declare const _default: ComponentMeta<typeof WeekCalendar>;
5
+ export default _default;
6
+ export declare function Empty(): JSX.Element;
7
+ export declare function WithNavigator(): JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from "./WeekCalendar";
@@ -1,4 +1,5 @@
1
1
  export { default as Action } from "./Action";
2
+ export { default as ActivityMeter } from "./ActivityMeter";
2
3
  export { default as Button } from "./Button";
3
4
  export { default as Calendar } from "./Calendar";
4
5
  export { default as Card } from "./Card";
@@ -16,7 +17,9 @@ export { default as ShinyOverlay } from "./ShinyOverlay";
16
17
  export { default as SingleExternalAccount } from "./SingleExternalAccount";
17
18
  export { default as SingleNotification } from "./SingleNotification";
18
19
  export { default as SingleSurveyTask } from "./SingleSurveyTask";
20
+ export { default as SparkBarChart } from "./SparkBarChart";
19
21
  export { default as Switch } from "./Switch";
20
22
  export { default as StatusBarBackground } from "./StatusBarBackground";
21
23
  export { default as TextBlock } from "./TextBlock";
22
24
  export { default as TrackerItem } from "./TrackerItem";
25
+ export { default as WeekCalendar } from "./WeekCalendar";
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare function asleepTime(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
4
+ export declare function inBedTime(startDate: Date, endDate: Date): Promise<{
5
+ [key: string]: number;
6
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,12 @@
1
+ export declare function totalActiveMinutes(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
4
+ export declare function lightlyActiveMinutes(startDate: Date, endDate: Date): Promise<{
5
+ [key: string]: number;
6
+ }>;
7
+ export declare function fairlyActiveMinutes(startDate: Date, endDate: Date): Promise<{
8
+ [key: string]: number;
9
+ }>;
10
+ export declare function veryActiveMinutes(startDate: Date, endDate: Date): Promise<{
11
+ [key: string]: number;
12
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,12 @@
1
+ export declare function totalElevatedHeartRateMinutes(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
4
+ export declare function peakMinutes(startDate: Date, endDate: Date): Promise<{
5
+ [key: string]: number;
6
+ }>;
7
+ export declare function cardioMinutes(startDate: Date, endDate: Date): Promise<{
8
+ [key: string]: number;
9
+ }>;
10
+ export declare function fatBurnMinutes(startDate: Date, endDate: Date): Promise<{
11
+ [key: string]: number;
12
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,12 @@
1
+ export declare function totalSleepMinutes(startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
4
+ export declare function remSleepMinutes(startDate: Date, endDate: Date): Promise<{
5
+ [key: string]: number;
6
+ }>;
7
+ export declare function lightSleepMinutes(startDate: Date, endDate: Date): Promise<{
8
+ [key: string]: number;
9
+ }>;
10
+ export declare function deepSleepMinutes(startDate: Date, endDate: Date): Promise<{
11
+ [key: string]: number;
12
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,3 @@
1
+ export default function (startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1,32 @@
1
+ export { default as appleHealthFlightsClimbedDataProvider } from "./apple-health-flights-climbed";
2
+ export { default as appleHealthHrvDataProvider } from "./apple-health-hrv";
3
+ export { default as appleHealthHeartRateRangeDataProvider } from "./apple-health-heart-rate-range";
4
+ export { default as appleHealthMaxHeartRateDataProvider } from "./apple-health-max-heart-rate";
5
+ export { default as appleHealthRestingHeartRateDataProvider } from "./apple-health-resting-heart-rate";
6
+ export { asleepTime as appleHealthSleepDataProvider } from "./apple-health-sleep";
7
+ export { inBedTime as appleHealthInBedDataProvider } from "./apple-health-sleep";
8
+ export { default as appleHealthStandTimeDataProvider } from "./apple-health-stand-time";
9
+ export { default as appleHealthStepsDataProvider } from "./apple-health-steps";
10
+ export { default as appleHealthWalkingHeartRateAverageDataProvider } from "./apple-health-walking-heart-rate-average";
11
+ export { totalActiveMinutes as fitbitTotalActiveMinutesDataProvider } from "./fitbit-activity-minutes";
12
+ export { lightlyActiveMinutes as fitbitLightlyActiveMinutesDataProvider } from "./fitbit-activity-minutes";
13
+ export { fairlyActiveMinutes as fitbitFairlyActiveMinutesDataProvider } from "./fitbit-activity-minutes";
14
+ export { veryActiveMinutes as fitbitVeryActiveMinutesDataProvider } from "./fitbit-activity-minutes";
15
+ export { totalElevatedHeartRateMinutes as fitbitElevatedHeartRateMinutesDataProvider } from "./fitbit-elevated-heart-rate";
16
+ export { fatBurnMinutes as fitbitFatBurnMinutesDataProvider } from "./fitbit-elevated-heart-rate";
17
+ export { cardioMinutes as fitbitCardioMinutesDataProvider } from "./fitbit-elevated-heart-rate";
18
+ export { peakMinutes as fitbitPeakMinutesDataProvider } from "./fitbit-elevated-heart-rate";
19
+ export { default as fitbitRestingHeartRateDataProvider } from "./fitbit-resting-heart-rate";
20
+ export { default as fitbitCaloriesBurnedDataProvider } from "./fitbit-calories-burned";
21
+ export { totalSleepMinutes as fitbitTotalSleepMinutesDataProvider } from "./fitbit-sleep";
22
+ export { lightSleepMinutes as fitbitLightSleepMinutesDataProvider } from "./fitbit-sleep";
23
+ export { deepSleepMinutes as fitbitDeepSleepMinutesDataProvider } from "./fitbit-sleep";
24
+ export { remSleepMinutes as fitbitRemSleepMinutesDataProvider } from "./fitbit-sleep";
25
+ export { default as fitbitStepsDataProvider } from "./fitbit-steps";
26
+ export { default as fitbitFloorsDataProvider } from "./fitbit-floors";
27
+ export { default as fitbitBreathingRateDataProvider } from "./fitbit-breathing-rate";
28
+ export { default as fitbitHrvDataProvider } from "./fitbit-hrv";
29
+ export { default as fitbitSpO2DataProvider } from "./fitbit-spo2";
30
+ export { default as combinedStepsDataProvider } from "./combined-steps";
31
+ export { default as googleFitStepsDataProvider } from "./google-fit-steps";
32
+ export { default as appleHealthDistanceDataProvider } from "./apple-health-distance";
@@ -0,0 +1,2 @@
1
+ import { DeviceDataPoint, DeviceDataPointQuery } from '@careevolution/mydatahelps-js';
2
+ export default function queryAllDeviceData(parameters: DeviceDataPointQuery): Promise<DeviceDataPoint[]>;
@@ -0,0 +1,3 @@
1
+ export default function (type: string, startDate: Date, endDate: Date): Promise<{
2
+ [key: string]: number;
3
+ }>;
@@ -0,0 +1 @@
1
+ export default function getDayKey(date: Date): string;
@@ -0,0 +1,41 @@
1
+ export declare type DailyDataQueryResult = {
2
+ [key: string]: number;
3
+ };
4
+ export declare type DailyDataProvider = (startDate: Date, endDate: Date) => Promise<DailyDataQueryResult>;
5
+ export declare type DailyDataAvailabilityCheck = (modifiedAfter?: Date) => Promise<boolean>;
6
+ export declare function registerDailyDataProvider(type: string, provider: DailyDataProvider, availabilityCheck: DailyDataAvailabilityCheck): void;
7
+ export declare function checkDailyDataAvailability(type: string, modifiedAfter?: Date): Promise<boolean>;
8
+ export default function (type: string, startDate: Date, endDate: Date): Promise<DailyDataQueryResult>;
9
+ export declare enum DailyDataType {
10
+ AppleHealthDistanceWalkingRunning = "AppleHealthDistanceWalkingRunning",
11
+ AppleHealthFlightsClimbed = "AppleHealthFlightsClimbed",
12
+ AppleHealthHeartRateRange = "AppleHealthHeartRateRange",
13
+ AppleHealthHrv = "AppleHealthHrv",
14
+ AppleHealthMaxHeartRate = "AppleHealthMaxHeartRate",
15
+ AppleHealthRestingHeartRate = "AppleHealthRestingHeartRate",
16
+ AppleHealthSleepMinutes = "AppleHealthSleepMinutes",
17
+ AppleHealthInBedMinutes = "AppleHealthInBedMinutes",
18
+ AppleHealthStandMinutes = "AppleHealthStandMinutes",
19
+ AppleHealthSteps = "AppleHealthSteps",
20
+ AppleHealthWalkingHeartRateAverage = "AppleHealthWalkingHeartRateAverage",
21
+ FitbitActiveMinutes = "FitbitActiveMinutes",
22
+ FitbitLightlyActiveMinutes = "FitbitLightlyActiveMinutes",
23
+ FitbitFairlyActiveMinutes = "FitbitFairlyActiveMinutes",
24
+ FitbitVeryActiveMinutes = "FitbitVeryActiveMinutes",
25
+ FitbitBreathingRate = "FitbitBreathingRate",
26
+ FitbitCaloriesBurned = "FitbitCaloriesBurned",
27
+ FitbitElevatedHeartRateMinutes = "FitbitElevatedHeartRateMinutes",
28
+ FitbitFatBurnHeartRateMinutes = "FitbitFatBurnHeartRateMinutes",
29
+ FitbitCardioHeartRateMinutes = "FitbitCardioHeartRateMinutes",
30
+ FitbitPeakHeartRateMinutes = "FitbitPeakHeartRateMinutes",
31
+ FitbitFloors = "FitbitFloors",
32
+ FitbitHrv = "FitbitHrv",
33
+ FitbitRestingHeartRate = "FitbitRestingHeartRate",
34
+ FitbitSleepMinutes = "FitbitSleepMinutes",
35
+ FitbitLightSleepMinutes = "FitbitLightSleepMinutes",
36
+ FitbitRemSleepMinutes = "FitbitRemSleepMinutes",
37
+ FitbitDeepSleepMinutes = "FitbitDeepSleepMinutes",
38
+ FitbitSpO2 = "FitbitSpO2",
39
+ FitbitSteps = "FitbitSteps",
40
+ GoogleFitSteps = "GoogleFitSteps"
41
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './components';
2
2
  export * from './hooks';
3
+ export * from './helpers/query-daily-data';