@careevolution/mydatahelps-ui 2.10.1-InboxAndAsthmaUI.13 → 2.10.1-InboxAndAsthmaUI.15
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 +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +1 -3
- package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +1 -1
- package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +7 -12
- package/dist/cjs/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.d.ts +0 -1
- package/dist/cjs/types/components/asthma/helpers/asthma-data.d.ts +1 -1
- package/dist/cjs/types/components/asthma/model/types.d.ts +1 -1
- package/dist/cjs/types/components/asthma/views/AsthmaDayView/AsthmaDayView.d.ts +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +1 -3
- package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +1 -1
- package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +7 -12
- package/dist/esm/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.d.ts +0 -1
- package/dist/esm/types/components/asthma/helpers/asthma-data.d.ts +1 -1
- package/dist/esm/types/components/asthma/model/types.d.ts +1 -1
- package/dist/esm/types/components/asthma/views/AsthmaDayView/AsthmaDayView.d.ts +1 -0
- package/dist/index.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { AsthmaAirQuality } from '../../model';
|
|
2
|
-
export type AsthmaAirQualitiesPreviewState = '
|
|
2
|
+
export type AsthmaAirQualitiesPreviewState = 'neither configured' | 'one configured' | 'no data (control)' | 'no data (date)' | 'some data (control)' | 'some data (date)' | 'all data';
|
|
3
3
|
export interface AsthmaAirQualitiesPreviewData {
|
|
4
|
-
homeAirQualityZipCode?: string;
|
|
5
4
|
homeAirQuality: AsthmaAirQuality;
|
|
6
|
-
workAirQualityZipCode?: string;
|
|
7
5
|
workAirQuality: AsthmaAirQuality;
|
|
8
6
|
}
|
|
9
7
|
export declare const previewData: Record<AsthmaAirQualitiesPreviewState, AsthmaAirQualitiesPreviewData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsthmaBiometric } from '../../model';
|
|
2
|
-
export type AsthmaBiometricsPreviewState = 'no
|
|
2
|
+
export type AsthmaBiometricsPreviewState = 'no data' | 'some data' | 'all data';
|
|
3
3
|
export interface AsthmaBiometricsPreviewData {
|
|
4
4
|
daytimeRestingHeartRate: AsthmaBiometric;
|
|
5
5
|
nighttimeRestingHeartRate: AsthmaBiometric;
|
package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts
CHANGED
|
@@ -8,21 +8,16 @@ declare const _default: {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const Default: {
|
|
12
12
|
args: {
|
|
13
13
|
previewState: string;
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
render: (args: AsthmaBiometricsProps) => React.JSX.Element;
|
|
22
|
-
};
|
|
23
|
-
export declare const AllData: {
|
|
24
|
-
args: {
|
|
25
|
-
previewState: string;
|
|
15
|
+
argTypes: {
|
|
16
|
+
previewState: {
|
|
17
|
+
name: string;
|
|
18
|
+
control: string;
|
|
19
|
+
options: string[];
|
|
20
|
+
};
|
|
26
21
|
};
|
|
27
22
|
render: (args: AsthmaBiometricsProps) => React.JSX.Element;
|
|
28
23
|
};
|
|
@@ -5,7 +5,7 @@ export interface AsthmaDataService {
|
|
|
5
5
|
loadLogEntries(fromDate?: Date, toDate?: Date): Promise<AsthmaLogEntry[]>;
|
|
6
6
|
loadBiometricsForControlStatus(): Promise<AsthmaBiometric[]>;
|
|
7
7
|
loadBiometricsForDate(date: Date): Promise<AsthmaBiometric[]>;
|
|
8
|
-
loadAirQualitiesForControlStatus(): Promise<AsthmaAirQuality[]>;
|
|
8
|
+
loadAirQualitiesForControlStatus(homeAirQualityZipCode: string, workAirQualityZipCode: string): Promise<AsthmaAirQuality[]>;
|
|
9
9
|
loadAirQualitiesForDate(date: Date): Promise<AsthmaAirQuality[]>;
|
|
10
10
|
saveLogEntry(logEntry: AsthmaLogEntry): Promise<void>;
|
|
11
11
|
loadAndClearAlertTakeover(): Promise<string | undefined>;
|
|
@@ -27,7 +27,7 @@ export interface AsthmaControlState {
|
|
|
27
27
|
limitedActivityDaysPast7?: number;
|
|
28
28
|
inhalerUseDaysPast7?: number;
|
|
29
29
|
}
|
|
30
|
-
export type AsthmaDataStatus = 'establishing' | 'offline' | 'in-range' | 'out-of-range';
|
|
30
|
+
export type AsthmaDataStatus = 'not-configured' | 'not-found' | 'establishing' | 'offline' | 'in-range' | 'out-of-range';
|
|
31
31
|
export type AsthmaBiometricType = 'daytime-resting-heart-rate' | 'nighttime-resting-heart-rate' | 'respiratory-rate' | 'steps' | 'sleep-disturbances' | 'daytime-blood-oxygen-level' | 'nighttime-blood-oxygen-level';
|
|
32
32
|
export interface AsthmaBiometric {
|
|
33
33
|
type: AsthmaBiometricType;
|