@careevolution/mydatahelps-ui 2.18.0 → 2.18.1-additional-languages.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/cjs/index.js +11 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/asthma/helpers/asthma-functions.d.ts +2 -1
- package/dist/cjs/types/components/asthma/model/types.d.ts +2 -1
- package/dist/cjs/types/components/container/DailyDataChart/DailyDataChart.stories.d.ts +61 -0
- package/dist/cjs/types/helpers/daily-data-providers/apple-health-sleep.d.ts +11 -2
- package/dist/cjs/types/helpers/daily-data-providers/index.d.ts +3 -0
- package/dist/cjs/types/helpers/date-helpers.d.ts +0 -1
- package/dist/cjs/types/helpers/language.d.ts +2 -0
- package/dist/cjs/types/helpers/locale.d.ts +1 -0
- package/dist/cjs/types/helpers/query-daily-data.d.ts +3 -0
- package/dist/cjs/types/helpers/strings-de.d.ts +4 -0
- package/dist/cjs/types/helpers/strings-fr.d.ts +4 -0
- package/dist/cjs/types/helpers/strings-it.d.ts +4 -0
- package/dist/cjs/types/helpers/strings-nl.d.ts +4 -0
- package/dist/cjs/types/helpers/strings-pl.d.ts +4 -0
- package/dist/cjs/types/helpers/strings-pt.d.ts +4 -0
- package/dist/esm/index.js +11 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/asthma/helpers/asthma-functions.d.ts +2 -1
- package/dist/esm/types/components/asthma/model/types.d.ts +2 -1
- package/dist/esm/types/components/container/DailyDataChart/DailyDataChart.stories.d.ts +61 -0
- package/dist/esm/types/helpers/daily-data-providers/apple-health-sleep.d.ts +11 -2
- package/dist/esm/types/helpers/daily-data-providers/index.d.ts +3 -0
- package/dist/esm/types/helpers/date-helpers.d.ts +0 -1
- package/dist/esm/types/helpers/language.d.ts +2 -0
- package/dist/esm/types/helpers/locale.d.ts +1 -0
- package/dist/esm/types/helpers/query-daily-data.d.ts +3 -0
- package/dist/esm/types/helpers/strings-de.d.ts +4 -0
- package/dist/esm/types/helpers/strings-fr.d.ts +4 -0
- package/dist/esm/types/helpers/strings-it.d.ts +4 -0
- package/dist/esm/types/helpers/strings-nl.d.ts +4 -0
- package/dist/esm/types/helpers/strings-pl.d.ts +4 -0
- package/dist/esm/types/helpers/strings-pt.d.ts +4 -0
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AsthmaControlState, AsthmaDataStatus, AsthmaImpact, AsthmaLogEntry, AsthmaSymptom, AsthmaSymptomLevel, AsthmaTrigger } from '../model';
|
|
1
|
+
import { AsthmaAirQualityDescription, AsthmaControlState, AsthmaDataStatus, AsthmaImpact, AsthmaLogEntry, AsthmaSymptom, AsthmaSymptomLevel, AsthmaTrigger } from '../model';
|
|
2
2
|
import { ColorDefinition } from '../../../helpers/colors';
|
|
3
3
|
export declare const dateToAsthmaLogEntryIdentifier: (date: Date) => string;
|
|
4
4
|
export declare const computeAsthmaControlState: (logEntries: AsthmaLogEntry[], date: Date) => AsthmaControlState;
|
|
@@ -12,6 +12,7 @@ export declare const getAsthmaImpactTexts: (impacts: AsthmaImpact[] | undefined)
|
|
|
12
12
|
export declare const getAsthmaImpacts: (impactTexts: string[]) => AsthmaImpact[];
|
|
13
13
|
export declare const getAsthmaTriggerTexts: (triggers: AsthmaTrigger[] | undefined) => string[];
|
|
14
14
|
export declare const getAsthmaTriggers: (triggerTexts: string[]) => AsthmaTrigger[];
|
|
15
|
+
export declare const getAsthmaAirQualityDescriptionText: (description: AsthmaAirQualityDescription | undefined) => string | undefined;
|
|
15
16
|
export declare const isDaytimeRestingHeartRateWithinRange: (baseline: number, rawValue: number) => boolean;
|
|
16
17
|
export declare const isNighttimeRestingHeartRateWithinRange: (baseline: number, rawValue: number) => boolean;
|
|
17
18
|
export declare const isRespiratoryRateWithinRange: (baseline: number, rawValue: number) => boolean;
|
|
@@ -37,11 +37,12 @@ export interface AsthmaBiometric {
|
|
|
37
37
|
value?: number;
|
|
38
38
|
}
|
|
39
39
|
export type AsthmaAirQualityType = 'work' | 'home';
|
|
40
|
+
export type AsthmaAirQualityDescription = 'unhealthy' | 'very unhealthy' | 'hazardous';
|
|
40
41
|
export interface AsthmaAirQuality {
|
|
41
42
|
type: AsthmaAirQualityType;
|
|
42
43
|
status: AsthmaDataStatus;
|
|
43
44
|
value?: number;
|
|
44
|
-
description?:
|
|
45
|
+
description?: AsthmaAirQualityDescription;
|
|
45
46
|
}
|
|
46
47
|
export type AsthmaSymptomLevel = 'none' | 'mild' | 'moderate' | 'severe';
|
|
47
48
|
export type AsthmaSymptom = 'Difficulty breathing' | 'Wheezing' | 'Coughing' | 'Chest tightness or pressure';
|
|
@@ -99,6 +99,67 @@ export declare const sleepBarChart: {
|
|
|
99
99
|
};
|
|
100
100
|
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
101
101
|
};
|
|
102
|
+
export declare const sleepAppleHealthBarChart: {
|
|
103
|
+
args: {
|
|
104
|
+
title: string;
|
|
105
|
+
intervalType: string;
|
|
106
|
+
weekStartsOn: string;
|
|
107
|
+
dailyDataType: DailyDataType;
|
|
108
|
+
valueFormatter: (value: number) => string;
|
|
109
|
+
valueConverter: (value: number) => number;
|
|
110
|
+
chartType: string;
|
|
111
|
+
previewDataProvider: (start: Date, end: Date) => Promise<DailyDataQueryResult>;
|
|
112
|
+
};
|
|
113
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
114
|
+
};
|
|
115
|
+
export declare const liveSleepAppleHealthBarChart: {
|
|
116
|
+
args: {
|
|
117
|
+
title: string;
|
|
118
|
+
intervalType: string;
|
|
119
|
+
weekStartsOn: string;
|
|
120
|
+
dailyDataType: DailyDataType;
|
|
121
|
+
valueFormatter: (value: number) => string;
|
|
122
|
+
valueConverter: (value: number) => number;
|
|
123
|
+
chartType: string;
|
|
124
|
+
};
|
|
125
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
126
|
+
};
|
|
127
|
+
export declare const liveSleepCoreAppleHealthBarChart: {
|
|
128
|
+
args: {
|
|
129
|
+
title: string;
|
|
130
|
+
intervalType: string;
|
|
131
|
+
weekStartsOn: string;
|
|
132
|
+
dailyDataType: DailyDataType;
|
|
133
|
+
valueFormatter: (value: number) => string;
|
|
134
|
+
valueConverter: (value: number) => number;
|
|
135
|
+
chartType: string;
|
|
136
|
+
};
|
|
137
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
138
|
+
};
|
|
139
|
+
export declare const liveSleepRemAppleHealthBarChart: {
|
|
140
|
+
args: {
|
|
141
|
+
title: string;
|
|
142
|
+
intervalType: string;
|
|
143
|
+
weekStartsOn: string;
|
|
144
|
+
dailyDataType: DailyDataType;
|
|
145
|
+
valueFormatter: (value: number) => string;
|
|
146
|
+
valueConverter: (value: number) => number;
|
|
147
|
+
chartType: string;
|
|
148
|
+
};
|
|
149
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
150
|
+
};
|
|
151
|
+
export declare const liveSleepDeepAppleHealthBarChart: {
|
|
152
|
+
args: {
|
|
153
|
+
title: string;
|
|
154
|
+
intervalType: string;
|
|
155
|
+
weekStartsOn: string;
|
|
156
|
+
dailyDataType: DailyDataType;
|
|
157
|
+
valueFormatter: (value: number) => string;
|
|
158
|
+
valueConverter: (value: number) => number;
|
|
159
|
+
chartType: string;
|
|
160
|
+
};
|
|
161
|
+
render: (args: DailyDataChartProps) => React.JSX.Element;
|
|
162
|
+
};
|
|
102
163
|
export declare const noData: {
|
|
103
164
|
args: {
|
|
104
165
|
title: string;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function inBedTime(startDate: Date, endDate: Date): Promise<{
|
|
2
2
|
[key: string]: number;
|
|
3
3
|
}>;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function asleepCoreTime(startDate: Date, endDate: Date): Promise<{
|
|
5
|
+
[key: string]: number;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function asleepRemTime(startDate: Date, endDate: Date): Promise<{
|
|
8
|
+
[key: string]: number;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function asleepDeepTime(startDate: Date, endDate: Date): Promise<{
|
|
11
|
+
[key: string]: number;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function asleepTime(startDate: Date, endDate: Date): Promise<{
|
|
5
14
|
[key: string]: number;
|
|
6
15
|
}>;
|
|
@@ -4,6 +4,9 @@ export { default as appleHealthHeartRateRangeDataProvider } from "./apple-health
|
|
|
4
4
|
export { default as appleHealthMaxHeartRateDataProvider } from "./apple-health-max-heart-rate";
|
|
5
5
|
export { default as appleHealthRestingHeartRateDataProvider } from "./apple-health-resting-heart-rate";
|
|
6
6
|
export { asleepTime as appleHealthSleepDataProvider } from "./apple-health-sleep";
|
|
7
|
+
export { asleepRemTime as appleHealthSleepRemDataProvider } from "./apple-health-sleep";
|
|
8
|
+
export { asleepCoreTime as appleHealthSleepCoreDataProvider } from "./apple-health-sleep";
|
|
9
|
+
export { asleepDeepTime as appleHealthSleepDeepDataProvider } from "./apple-health-sleep";
|
|
7
10
|
export { inBedTime as appleHealthInBedDataProvider } from "./apple-health-sleep";
|
|
8
11
|
export { default as appleHealthStandTimeDataProvider } from "./apple-health-stand-time";
|
|
9
12
|
export { default as appleHealthStepsDataProvider } from "./apple-health-steps";
|
|
@@ -4,4 +4,3 @@ export declare function getDayOfWeek(date: Date): string;
|
|
|
4
4
|
export declare function getFullDateString(date: Date): string;
|
|
5
5
|
export declare function getShorterDateString(date: Date): string;
|
|
6
6
|
export declare function getMonthName(month: number): string;
|
|
7
|
-
export declare function getLocale(): Locale;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getLocaleFromIso(language: string): Locale;
|
|
@@ -16,6 +16,9 @@ export declare enum DailyDataType {
|
|
|
16
16
|
AppleHealthMaxHeartRate = "AppleHealthMaxHeartRate",
|
|
17
17
|
AppleHealthRestingHeartRate = "AppleHealthRestingHeartRate",
|
|
18
18
|
AppleHealthSleepMinutes = "AppleHealthSleepMinutes",
|
|
19
|
+
AppleHealthSleepRemMinutes = "AppleHealthSleepRemMinutes",
|
|
20
|
+
AppleHealthSleepDeepMinutes = "AppleHealthSleepDeepMinutes",
|
|
21
|
+
AppleHealthSleepCoreMinutes = "AppleHealthSleepCoreMinutes",
|
|
19
22
|
AppleHealthInBedMinutes = "AppleHealthInBedMinutes",
|
|
20
23
|
AppleHealthStandMinutes = "AppleHealthStandMinutes",
|
|
21
24
|
AppleHealthSteps = "AppleHealthSteps",
|