@careevolution/mydatahelps-ui 1.4.1 → 1.5.1
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/cjs/index.js +7 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.d.ts +1 -9
- package/dist/cjs/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.previewdata.d.ts +3 -2
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-distance.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-flights-climbed.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-heart-rate-range.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-hrv.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-max-heart-rate.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-resting-heart-rate.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-sleep.d.ts +6 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-stand-time.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-steps.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-walking-heart-rate-average.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/combined-resting-heart-rate.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/combined-steps.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-activity-minutes.d.ts +12 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-breathing-rate.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-calories-burned.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-elevated-heart-rate.d.ts +12 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-floors.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-hrv.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-resting-heart-rate.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-sleep.d.ts +12 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-spo2.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/fitbit-steps.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/google-fit-steps.d.ts +3 -0
- package/dist/cjs/types/helpers/daily-data-providers/index.d.ts +32 -0
- package/dist/cjs/types/helpers/daily-data-providers/query-all-device-data.d.ts +2 -0
- package/dist/cjs/types/helpers/daily-data-providers/query-fitbit-single-daily-value.d.ts +3 -0
- package/dist/cjs/types/helpers/get-day-key.d.ts +1 -0
- package/dist/cjs/types/helpers/query-daily-data.d.ts +43 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.d.ts +1 -9
- package/dist/esm/types/components/container/DeviceDataMonthChart/DeviceDataMonthChart.previewdata.d.ts +3 -2
- package/dist/esm/types/helpers/daily-data-providers/apple-health-distance.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-flights-climbed.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-heart-rate-range.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-hrv.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-max-heart-rate.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-resting-heart-rate.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-sleep.d.ts +6 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-stand-time.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-steps.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-walking-heart-rate-average.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/combined-resting-heart-rate.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/combined-steps.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-activity-minutes.d.ts +12 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-breathing-rate.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-calories-burned.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-elevated-heart-rate.d.ts +12 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-floors.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-hrv.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-resting-heart-rate.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-sleep.d.ts +12 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-spo2.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/fitbit-steps.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/google-fit-steps.d.ts +3 -0
- package/dist/esm/types/helpers/daily-data-providers/index.d.ts +32 -0
- package/dist/esm/types/helpers/daily-data-providers/query-all-device-data.d.ts +2 -0
- package/dist/esm/types/helpers/daily-data-providers/query-fitbit-single-daily-value.d.ts +3 -0
- package/dist/esm/types/helpers/get-day-key.d.ts +1 -0
- package/dist/esm/types/helpers/query-daily-data.d.ts +43 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +46 -10
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
1
|
+
export declare function getPreviewData(dailyDataType: string, year: number, month: number): {
|
|
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,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,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,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 @@
|
|
|
1
|
+
export default function getDayKey(date: Date): string;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
Steps = "Steps",
|
|
42
|
+
RestingHeartRate = "RestingHeartRate"
|
|
43
|
+
}
|