@careevolution/mydatahelps-ui 2.24.3-MdhAssistantComponent.46 → 2.24.3-MdhAssistantComponent.48
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 +18 -15
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/components/container/{MyDataHelpsAssistant/MyDataHelpsAssistant.d.ts → AIAssistant/AIAssistant.d.ts} +5 -5
- package/dist/cjs/types/components/container/AIAssistant/AIAssistant.stories.d.ts +64 -0
- package/dist/cjs/types/components/container/AIAssistant/index.d.ts +1 -0
- package/dist/cjs/types/components/container/index.d.ts +1 -1
- package/dist/cjs/types/components/presentational/Chat/Chat.d.ts +14 -0
- package/dist/cjs/types/components/presentational/Chat/Chat.stories.d.ts +47 -0
- package/dist/cjs/types/components/presentational/Chat/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/Popup/Popup.d.ts +9 -0
- package/dist/cjs/types/components/presentational/Popup/Popup.stories.d.ts +28 -0
- package/dist/cjs/types/components/presentational/Popup/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/index.d.ts +2 -0
- package/dist/cjs/types/helpers/assistant/index.d.ts +1 -1
- package/dist/cjs/types/helpers/assistant/tools.d.ts +62 -17
- package/dist/esm/index.js +18 -15
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/components/container/{MyDataHelpsAssistant/MyDataHelpsAssistant.d.ts → AIAssistant/AIAssistant.d.ts} +5 -5
- package/dist/esm/types/components/container/AIAssistant/AIAssistant.stories.d.ts +64 -0
- package/dist/esm/types/components/container/AIAssistant/index.d.ts +1 -0
- package/dist/esm/types/components/container/index.d.ts +1 -1
- package/dist/esm/types/components/presentational/Chat/Chat.d.ts +14 -0
- package/dist/esm/types/components/presentational/Chat/Chat.stories.d.ts +47 -0
- package/dist/esm/types/components/presentational/Chat/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/Popup/Popup.d.ts +9 -0
- package/dist/esm/types/components/presentational/Popup/Popup.stories.d.ts +28 -0
- package/dist/esm/types/components/presentational/Popup/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/index.d.ts +2 -0
- package/dist/esm/types/helpers/assistant/index.d.ts +1 -1
- package/dist/esm/types/helpers/assistant/tools.d.ts +62 -17
- package/dist/index.d.ts +120 -48
- package/package.json +2 -3
- package/dist/cjs/types/components/container/MyDataHelpsAssistant/index.d.ts +0 -1
- package/dist/esm/types/components/container/MyDataHelpsAssistant/index.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface AsthmaActionPlanManagerProps {
|
|
|
13
13
|
editActionPlanSurveyName: string;
|
|
14
14
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
15
15
|
}
|
|
16
|
-
declare function export_default$
|
|
16
|
+
declare function export_default$2y(props: AsthmaActionPlanManagerProps): React$1.JSX.Element;
|
|
17
17
|
|
|
18
18
|
declare class AsthmaParticipant {
|
|
19
19
|
participantInfo: ParticipantInfo;
|
|
@@ -85,7 +85,7 @@ interface AsthmaAirQualitiesProps {
|
|
|
85
85
|
date?: Date;
|
|
86
86
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
87
87
|
}
|
|
88
|
-
declare function export_default$
|
|
88
|
+
declare function export_default$2x(props: AsthmaAirQualitiesProps): React$1.JSX.Element;
|
|
89
89
|
|
|
90
90
|
interface AsthmaAlertTakeoverNoticeProps {
|
|
91
91
|
previewState?: 'loading' | 'loaded';
|
|
@@ -93,7 +93,7 @@ interface AsthmaAlertTakeoverNoticeProps {
|
|
|
93
93
|
logEntrySurveyName: string;
|
|
94
94
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
95
95
|
}
|
|
96
|
-
declare function export_default$
|
|
96
|
+
declare function export_default$2w(props: AsthmaAlertTakeoverNoticeProps): React$1.JSX.Element;
|
|
97
97
|
|
|
98
98
|
interface AsthmaAlertTakeoverTriggerProps {
|
|
99
99
|
previewState?: boolean;
|
|
@@ -104,7 +104,7 @@ interface AsthmaAlertTakeoverTriggerProps {
|
|
|
104
104
|
alertTakeoverUrl: string;
|
|
105
105
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
106
106
|
}
|
|
107
|
-
declare function export_default$
|
|
107
|
+
declare function export_default$2v(props: AsthmaAlertTakeoverTriggerProps): null;
|
|
108
108
|
|
|
109
109
|
type AsthmaBiometricsPreviewState = 'no data' | 'some data' | 'all data';
|
|
110
110
|
|
|
@@ -116,7 +116,7 @@ interface AsthmaBiometricsProps {
|
|
|
116
116
|
date?: Date;
|
|
117
117
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
118
118
|
}
|
|
119
|
-
declare function export_default$
|
|
119
|
+
declare function export_default$2u(props: AsthmaBiometricsProps): React$1.JSX.Element;
|
|
120
120
|
|
|
121
121
|
type AsthmaControlCalendarPreviewState = 'no logs' | 'some logs';
|
|
122
122
|
|
|
@@ -128,7 +128,7 @@ interface AsthmaControlCalendarProps {
|
|
|
128
128
|
variant?: AsthmaControlCalendarVariant;
|
|
129
129
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
130
130
|
}
|
|
131
|
-
declare function export_default$
|
|
131
|
+
declare function export_default$2t(props: AsthmaControlCalendarProps): React$1.JSX.Element;
|
|
132
132
|
|
|
133
133
|
type AsthmaControlStatusHeaderPreviewState = 'no data' | 'abnormal dhr' | 'abnormal nhr' | 'abnormal rr' | 'abnormal activity' | 'abnormal sleep' | 'abnormal dbol' | 'abnormal nbol' | 'abnormal home aqi' | 'abnormal work aqi' | 'abnormal multiple' | 'not determined' | 'not controlled' | 'controlled';
|
|
134
134
|
|
|
@@ -137,7 +137,7 @@ interface AsthmaControlStatusHeaderProps {
|
|
|
137
137
|
participant: AsthmaParticipant;
|
|
138
138
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
139
139
|
}
|
|
140
|
-
declare function export_default$
|
|
140
|
+
declare function export_default$2s(props: AsthmaControlStatusHeaderProps): React$1.JSX.Element | null;
|
|
141
141
|
|
|
142
142
|
type AsthmaLogEntryDetailsPreviewState = 'not logged' | 'logged with no symptoms' | 'logged with mild symptoms' | 'logged with moderate symptoms' | 'logged with severe symptoms';
|
|
143
143
|
|
|
@@ -150,7 +150,7 @@ interface AsthmaLogEntryDetailsProps {
|
|
|
150
150
|
infoUrl: string;
|
|
151
151
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
152
152
|
}
|
|
153
|
-
declare function export_default$
|
|
153
|
+
declare function export_default$2r(props: AsthmaLogEntryDetailsProps): React$1.JSX.Element;
|
|
154
154
|
|
|
155
155
|
type AsthmaLogEntryHeaderPreviewState = 'no logs' | 'today log only' | 'yesterday log only' | 'both logs';
|
|
156
156
|
|
|
@@ -161,7 +161,7 @@ interface AsthmaLogEntryHeaderProps {
|
|
|
161
161
|
dayViewUrl: string;
|
|
162
162
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
163
163
|
}
|
|
164
|
-
declare function export_default$
|
|
164
|
+
declare function export_default$2q(props: AsthmaLogEntryHeaderProps): React$1.JSX.Element | null;
|
|
165
165
|
|
|
166
166
|
interface AsthmaPostEnrollmentSurveyTriggerProps {
|
|
167
167
|
previewState?: boolean;
|
|
@@ -170,7 +170,7 @@ interface AsthmaPostEnrollmentSurveyTriggerProps {
|
|
|
170
170
|
logTodayEntrySurveyName: string;
|
|
171
171
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
172
172
|
}
|
|
173
|
-
declare function export_default$
|
|
173
|
+
declare function export_default$2p(props: AsthmaPostEnrollmentSurveyTriggerProps): null;
|
|
174
174
|
|
|
175
175
|
type AsthmaProviderReportPreviewState = 'default';
|
|
176
176
|
|
|
@@ -179,7 +179,7 @@ interface AsthmaProviderReportProps {
|
|
|
179
179
|
logEntrySurveyName: string;
|
|
180
180
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
181
181
|
}
|
|
182
|
-
declare function export_default$
|
|
182
|
+
declare function export_default$2o(props: AsthmaProviderReportProps): React$1.JSX.Element;
|
|
183
183
|
|
|
184
184
|
type ColorDefinition = string | {
|
|
185
185
|
lightMode?: string;
|
|
@@ -205,7 +205,7 @@ interface ActionProps {
|
|
|
205
205
|
subtitleColor?: ColorDefinition;
|
|
206
206
|
renderAs?: "div" | "button";
|
|
207
207
|
}
|
|
208
|
-
declare function export_default$
|
|
208
|
+
declare function export_default$2n(props: ActionProps): React$1.JSX.Element;
|
|
209
209
|
|
|
210
210
|
interface ActivityMeterProps {
|
|
211
211
|
label: string;
|
|
@@ -219,7 +219,7 @@ interface ActivityMeterProps {
|
|
|
219
219
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
220
220
|
thresholdLabel?: string;
|
|
221
221
|
}
|
|
222
|
-
declare function export_default$
|
|
222
|
+
declare function export_default$2m(props: ActivityMeterProps): React$1.JSX.Element;
|
|
223
223
|
|
|
224
224
|
type ButtonVariant = "default" | "subtle" | "light";
|
|
225
225
|
interface ButtonProps {
|
|
@@ -234,7 +234,7 @@ interface ButtonProps {
|
|
|
234
234
|
defaultMargin?: boolean;
|
|
235
235
|
fullWidth?: boolean;
|
|
236
236
|
}
|
|
237
|
-
declare function export_default$
|
|
237
|
+
declare function export_default$2l(props: ButtonProps): React$1.JSX.Element;
|
|
238
238
|
|
|
239
239
|
interface CalendarProps {
|
|
240
240
|
month: number;
|
|
@@ -244,7 +244,7 @@ interface CalendarProps {
|
|
|
244
244
|
className?: string;
|
|
245
245
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
246
246
|
}
|
|
247
|
-
declare function export_default$
|
|
247
|
+
declare function export_default$2k(props: CalendarProps): React$1.JSX.Element;
|
|
248
248
|
|
|
249
249
|
type CalendarDayStateConfiguration = Record<string, {
|
|
250
250
|
style?: CSSProperties;
|
|
@@ -260,7 +260,7 @@ interface CalendarDayProps {
|
|
|
260
260
|
onClick?: (date: Date) => void;
|
|
261
261
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
262
262
|
}
|
|
263
|
-
declare function export_default$
|
|
263
|
+
declare function export_default$2j(props: CalendarDayProps): React$1.JSX.Element;
|
|
264
264
|
|
|
265
265
|
interface CardProps {
|
|
266
266
|
className?: string;
|
|
@@ -271,7 +271,7 @@ interface CardProps {
|
|
|
271
271
|
backgroundColor?: ColorDefinition;
|
|
272
272
|
style?: React$1.CSSProperties;
|
|
273
273
|
}
|
|
274
|
-
declare function export_default$
|
|
274
|
+
declare function export_default$2i(props: CardProps): React$1.JSX.Element | null;
|
|
275
275
|
|
|
276
276
|
interface CardTitleProps {
|
|
277
277
|
title: string;
|
|
@@ -280,7 +280,20 @@ interface CardTitleProps {
|
|
|
280
280
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
281
281
|
color?: ColorDefinition;
|
|
282
282
|
}
|
|
283
|
-
declare function export_default$
|
|
283
|
+
declare function export_default$2h(props: CardTitleProps): React$1.JSX.Element;
|
|
284
|
+
|
|
285
|
+
type ChatMessageType = "sent" | "received";
|
|
286
|
+
interface ChatProps {
|
|
287
|
+
messages: ChatMessage[];
|
|
288
|
+
onSendMessage: (newMessage: string) => void;
|
|
289
|
+
loading?: string;
|
|
290
|
+
}
|
|
291
|
+
interface ChatMessage {
|
|
292
|
+
icon?: React$1.JSX.Element;
|
|
293
|
+
content: string;
|
|
294
|
+
type: ChatMessageType;
|
|
295
|
+
}
|
|
296
|
+
declare function export_default$2g(props: ChatProps): React$1.JSX.Element;
|
|
284
297
|
|
|
285
298
|
interface LineChartOptions {
|
|
286
299
|
lineColor?: string;
|
|
@@ -365,7 +378,7 @@ interface DateRangeNavigatorProps {
|
|
|
365
378
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
366
379
|
sticky?: boolean;
|
|
367
380
|
}
|
|
368
|
-
declare function export_default$
|
|
381
|
+
declare function export_default$2f(props: DateRangeNavigatorProps): React$1.JSX.Element;
|
|
369
382
|
|
|
370
383
|
interface TitleProps {
|
|
371
384
|
color?: ColorDefinition;
|
|
@@ -379,7 +392,7 @@ interface TitleProps {
|
|
|
379
392
|
defaultMargin?: boolean;
|
|
380
393
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
381
394
|
}
|
|
382
|
-
declare function export_default$
|
|
395
|
+
declare function export_default$2e(props: TitleProps): React$1.JSX.Element;
|
|
383
396
|
|
|
384
397
|
interface DateRangeTitleProps extends TitleProps {
|
|
385
398
|
color?: ColorDefinition;
|
|
@@ -397,7 +410,7 @@ interface DayTrackerSymbolProps {
|
|
|
397
410
|
size?: "small" | "large";
|
|
398
411
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
399
412
|
}
|
|
400
|
-
declare function export_default$
|
|
413
|
+
declare function export_default$2d(props: DayTrackerSymbolProps): React$1.JSX.Element;
|
|
401
414
|
|
|
402
415
|
interface ClosedInterval {
|
|
403
416
|
values: number[];
|
|
@@ -424,7 +437,7 @@ declare enum DumbbellClass {
|
|
|
424
437
|
"mdhui-dumbbell-in-range" = 0,
|
|
425
438
|
"mdhui-dumbbell-out-of-range" = 1
|
|
426
439
|
}
|
|
427
|
-
declare function export_default$
|
|
440
|
+
declare function export_default$2c(props: DumbBellChartProps): React$1.JSX.Element;
|
|
428
441
|
|
|
429
442
|
interface FaceProps {
|
|
430
443
|
faceValue?: number;
|
|
@@ -433,7 +446,7 @@ interface FaceProps {
|
|
|
433
446
|
className?: string;
|
|
434
447
|
innerRef?: React$1.Ref<HTMLButtonElement>;
|
|
435
448
|
}
|
|
436
|
-
declare function export_default$
|
|
449
|
+
declare function export_default$2b(props: FaceProps): React$1.JSX.Element;
|
|
437
450
|
|
|
438
451
|
interface HistogramProps {
|
|
439
452
|
entries: {
|
|
@@ -445,7 +458,7 @@ interface HistogramProps {
|
|
|
445
458
|
className?: string;
|
|
446
459
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
447
460
|
}
|
|
448
|
-
declare function export_default$
|
|
461
|
+
declare function export_default$2a(props: HistogramProps): React$1.JSX.Element;
|
|
449
462
|
|
|
450
463
|
interface LayoutProps {
|
|
451
464
|
children?: React$1.ReactNode;
|
|
@@ -466,7 +479,7 @@ interface LayoutContext {
|
|
|
466
479
|
bodyBackgroundColor: string;
|
|
467
480
|
}
|
|
468
481
|
declare const LayoutContext: React$1.Context<LayoutContext>;
|
|
469
|
-
declare function export_default$
|
|
482
|
+
declare function export_default$29(props: LayoutProps): React$1.JSX.Element;
|
|
470
483
|
|
|
471
484
|
interface LoadingIndicatorProps {
|
|
472
485
|
variant?: "default" | "inline";
|
|
@@ -487,7 +500,7 @@ interface MonthlyEventMatrixProps {
|
|
|
487
500
|
innerRef?: React$1.Ref<HTMLTableElement>;
|
|
488
501
|
intervalStart: Date;
|
|
489
502
|
}
|
|
490
|
-
declare function export_default$
|
|
503
|
+
declare function export_default$28(props: MonthlyEventMatrixProps): React$1.JSX.Element;
|
|
491
504
|
|
|
492
505
|
interface NavigationBarProps {
|
|
493
506
|
title?: string;
|
|
@@ -506,7 +519,7 @@ interface NavigationBarProps {
|
|
|
506
519
|
navigationBarRight?: React$1.ReactNode;
|
|
507
520
|
backgroundColor?: ColorDefinition;
|
|
508
521
|
}
|
|
509
|
-
declare function export_default$
|
|
522
|
+
declare function export_default$27(props: NavigationBarProps): React$1.JSX.Element;
|
|
510
523
|
|
|
511
524
|
interface NotesInputProps {
|
|
512
525
|
autoTimestamp?: boolean;
|
|
@@ -514,7 +527,15 @@ interface NotesInputProps {
|
|
|
514
527
|
onChange(value: string): void;
|
|
515
528
|
value: string;
|
|
516
529
|
}
|
|
517
|
-
declare function export_default$
|
|
530
|
+
declare function export_default$26(props: NotesInputProps): React$1.JSX.Element;
|
|
531
|
+
|
|
532
|
+
interface PopupProps {
|
|
533
|
+
children?: React$1.ReactNode;
|
|
534
|
+
onCollapse: () => void;
|
|
535
|
+
title?: string;
|
|
536
|
+
titleIcon?: React$1.JSX.Element;
|
|
537
|
+
}
|
|
538
|
+
declare function export_default$25(props: PopupProps): React$1.JSX.Element;
|
|
518
539
|
|
|
519
540
|
interface ProgressBarProps {
|
|
520
541
|
backgroundColor?: ColorDefinition;
|
|
@@ -1419,8 +1440,8 @@ declare class PersistParticipantInfoTool extends StructuredTool {
|
|
|
1419
1440
|
unsubscribedFromEmails: z.ZodOptional<z.ZodString>;
|
|
1420
1441
|
unsubscribedFromSms: z.ZodOptional<z.ZodString>;
|
|
1421
1442
|
}, "strip", z.ZodTypeAny, {
|
|
1422
|
-
city?: string | undefined;
|
|
1423
1443
|
email?: string | undefined;
|
|
1444
|
+
city?: string | undefined;
|
|
1424
1445
|
mobilePhone?: string | undefined;
|
|
1425
1446
|
firstName?: string | undefined;
|
|
1426
1447
|
middleName?: string | undefined;
|
|
@@ -1435,8 +1456,8 @@ declare class PersistParticipantInfoTool extends StructuredTool {
|
|
|
1435
1456
|
unsubscribedFromEmails?: string | undefined;
|
|
1436
1457
|
unsubscribedFromSms?: string | undefined;
|
|
1437
1458
|
}, {
|
|
1438
|
-
city?: string | undefined;
|
|
1439
1459
|
email?: string | undefined;
|
|
1460
|
+
city?: string | undefined;
|
|
1440
1461
|
mobilePhone?: string | undefined;
|
|
1441
1462
|
firstName?: string | undefined;
|
|
1442
1463
|
middleName?: string | undefined;
|
|
@@ -1454,8 +1475,8 @@ declare class PersistParticipantInfoTool extends StructuredTool {
|
|
|
1454
1475
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1455
1476
|
}, "strip", z.ZodTypeAny, {
|
|
1456
1477
|
demographics?: {
|
|
1457
|
-
city?: string | undefined;
|
|
1458
1478
|
email?: string | undefined;
|
|
1479
|
+
city?: string | undefined;
|
|
1459
1480
|
mobilePhone?: string | undefined;
|
|
1460
1481
|
firstName?: string | undefined;
|
|
1461
1482
|
middleName?: string | undefined;
|
|
@@ -1473,8 +1494,8 @@ declare class PersistParticipantInfoTool extends StructuredTool {
|
|
|
1473
1494
|
customFields?: Record<string, string> | undefined;
|
|
1474
1495
|
}, {
|
|
1475
1496
|
demographics?: {
|
|
1476
|
-
city?: string | undefined;
|
|
1477
1497
|
email?: string | undefined;
|
|
1498
|
+
city?: string | undefined;
|
|
1478
1499
|
mobilePhone?: string | undefined;
|
|
1479
1500
|
firstName?: string | undefined;
|
|
1480
1501
|
middleName?: string | undefined;
|
|
@@ -1599,71 +1620,92 @@ declare class QuerySurveyAnswersTool extends StructuredTool {
|
|
|
1599
1620
|
}
|
|
1600
1621
|
declare class QueryDeviceDataV2Tool extends StructuredTool {
|
|
1601
1622
|
schema: z.ZodObject<{
|
|
1602
|
-
namespace: z.ZodEnum<["Fitbit", "AppleHealth"]>;
|
|
1623
|
+
namespace: z.ZodEnum<["Fitbit", "AppleHealth", "Garmin", "Dexcom", "HealthConnect"]>;
|
|
1603
1624
|
type: z.ZodString;
|
|
1604
1625
|
observedAfter: z.ZodOptional<z.ZodString>;
|
|
1605
1626
|
observedBefore: z.ZodOptional<z.ZodString>;
|
|
1627
|
+
dataSource: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1628
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1606
1629
|
}, "strip", z.ZodTypeAny, {
|
|
1607
1630
|
type: string;
|
|
1608
|
-
namespace: "AppleHealth" | "Fitbit";
|
|
1631
|
+
namespace: "AppleHealth" | "Garmin" | "Fitbit" | "Dexcom" | "HealthConnect";
|
|
1609
1632
|
observedAfter?: string | undefined;
|
|
1610
1633
|
observedBefore?: string | undefined;
|
|
1634
|
+
dataSource?: Record<string, string> | undefined;
|
|
1635
|
+
properties?: Record<string, string> | undefined;
|
|
1611
1636
|
}, {
|
|
1612
1637
|
type: string;
|
|
1613
|
-
namespace: "AppleHealth" | "Fitbit";
|
|
1638
|
+
namespace: "AppleHealth" | "Garmin" | "Fitbit" | "Dexcom" | "HealthConnect";
|
|
1614
1639
|
observedAfter?: string | undefined;
|
|
1615
1640
|
observedBefore?: string | undefined;
|
|
1641
|
+
dataSource?: Record<string, string> | undefined;
|
|
1642
|
+
properties?: Record<string, string> | undefined;
|
|
1616
1643
|
}>;
|
|
1617
1644
|
name: string;
|
|
1618
1645
|
description: string;
|
|
1619
1646
|
_call(input: z.infer<typeof this$1.schema>): Promise<string>;
|
|
1620
1647
|
}
|
|
1621
1648
|
declare class QueryDeviceDataV2AggregateTool extends StructuredTool {
|
|
1622
|
-
schema: z.ZodObject<{
|
|
1623
|
-
namespace: z.ZodEnum<["Fitbit", "AppleHealth"]>;
|
|
1649
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1650
|
+
namespace: z.ZodEnum<["Fitbit", "AppleHealth", "Garmin", "Dexcom", "HealthConnect"]>;
|
|
1624
1651
|
type: z.ZodString;
|
|
1625
1652
|
observedAfter: z.ZodOptional<z.ZodString>;
|
|
1626
1653
|
observedBefore: z.ZodOptional<z.ZodString>;
|
|
1654
|
+
dataSource: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1655
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1656
|
+
}, {
|
|
1627
1657
|
intervalAmount: z.ZodNumber;
|
|
1628
1658
|
intervalType: z.ZodEnum<["Minutes", "Hours", "Days", "Weeks", "Months"]>;
|
|
1629
1659
|
aggregateFunctions: z.ZodArray<z.ZodEnum<["sum", "avg", "count", "min", "max"]>, "many">;
|
|
1630
|
-
}
|
|
1660
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1631
1661
|
type: string;
|
|
1632
1662
|
intervalType: "Minutes" | "Hours" | "Days" | "Weeks" | "Months";
|
|
1633
|
-
namespace: "AppleHealth" | "Fitbit";
|
|
1663
|
+
namespace: "AppleHealth" | "Garmin" | "Fitbit" | "Dexcom" | "HealthConnect";
|
|
1634
1664
|
intervalAmount: number;
|
|
1635
1665
|
aggregateFunctions: ("max" | "min" | "sum" | "avg" | "count")[];
|
|
1636
1666
|
observedAfter?: string | undefined;
|
|
1637
1667
|
observedBefore?: string | undefined;
|
|
1668
|
+
dataSource?: Record<string, string> | undefined;
|
|
1669
|
+
properties?: Record<string, string> | undefined;
|
|
1638
1670
|
}, {
|
|
1639
1671
|
type: string;
|
|
1640
1672
|
intervalType: "Minutes" | "Hours" | "Days" | "Weeks" | "Months";
|
|
1641
|
-
namespace: "AppleHealth" | "Fitbit";
|
|
1673
|
+
namespace: "AppleHealth" | "Garmin" | "Fitbit" | "Dexcom" | "HealthConnect";
|
|
1642
1674
|
intervalAmount: number;
|
|
1643
1675
|
aggregateFunctions: ("max" | "min" | "sum" | "avg" | "count")[];
|
|
1644
1676
|
observedAfter?: string | undefined;
|
|
1645
1677
|
observedBefore?: string | undefined;
|
|
1678
|
+
dataSource?: Record<string, string> | undefined;
|
|
1679
|
+
properties?: Record<string, string> | undefined;
|
|
1646
1680
|
}>;
|
|
1647
1681
|
name: string;
|
|
1648
1682
|
description: string;
|
|
1649
1683
|
_call(input: z.infer<typeof this$1.schema>): Promise<string>;
|
|
1650
1684
|
}
|
|
1651
1685
|
declare class QueryDailySleepTool extends StructuredTool {
|
|
1652
|
-
schema: z.ZodObject<{
|
|
1653
|
-
namespace: z.ZodEnum<["Fitbit", "AppleHealth"]>;
|
|
1686
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1687
|
+
namespace: z.ZodEnum<["Fitbit", "AppleHealth", "Garmin", "Dexcom", "HealthConnect"]>;
|
|
1654
1688
|
type: z.ZodString;
|
|
1655
1689
|
observedAfter: z.ZodOptional<z.ZodString>;
|
|
1656
1690
|
observedBefore: z.ZodOptional<z.ZodString>;
|
|
1657
|
-
|
|
1691
|
+
dataSource: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1692
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1693
|
+
}, {
|
|
1694
|
+
type: z.ZodString;
|
|
1695
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1658
1696
|
type: string;
|
|
1659
|
-
namespace: "AppleHealth" | "Fitbit";
|
|
1697
|
+
namespace: "AppleHealth" | "Garmin" | "Fitbit" | "Dexcom" | "HealthConnect";
|
|
1660
1698
|
observedAfter?: string | undefined;
|
|
1661
1699
|
observedBefore?: string | undefined;
|
|
1700
|
+
dataSource?: Record<string, string> | undefined;
|
|
1701
|
+
properties?: Record<string, string> | undefined;
|
|
1662
1702
|
}, {
|
|
1663
1703
|
type: string;
|
|
1664
|
-
namespace: "AppleHealth" | "Fitbit";
|
|
1704
|
+
namespace: "AppleHealth" | "Garmin" | "Fitbit" | "Dexcom" | "HealthConnect";
|
|
1665
1705
|
observedAfter?: string | undefined;
|
|
1666
1706
|
observedBefore?: string | undefined;
|
|
1707
|
+
dataSource?: Record<string, string> | undefined;
|
|
1708
|
+
properties?: Record<string, string> | undefined;
|
|
1667
1709
|
}>;
|
|
1668
1710
|
name: string;
|
|
1669
1711
|
description: string;
|
|
@@ -1687,12 +1729,36 @@ declare class QueryDailyDataTool extends StructuredTool {
|
|
|
1687
1729
|
description: string;
|
|
1688
1730
|
_call(input: z.infer<typeof this$1.schema>): Promise<string>;
|
|
1689
1731
|
}
|
|
1732
|
+
declare class GetDeviceDataV2AllDataTypesTool extends StructuredTool {
|
|
1733
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1734
|
+
name: string;
|
|
1735
|
+
description: string;
|
|
1736
|
+
_call(): Promise<string>;
|
|
1737
|
+
}
|
|
1690
1738
|
declare class GetAllDailyDataTypesTool extends StructuredTool {
|
|
1691
1739
|
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1692
1740
|
name: string;
|
|
1693
1741
|
description: string;
|
|
1694
1742
|
_call(): Promise<string>;
|
|
1695
1743
|
}
|
|
1744
|
+
declare class GetEhrNewsFeedPageTool extends StructuredTool {
|
|
1745
|
+
schema: z.ZodObject<{
|
|
1746
|
+
feed: z.ZodEnum<["Immunizations", "LabReports", "Procedures", "Reports"]>;
|
|
1747
|
+
pageID: z.ZodOptional<z.ZodString>;
|
|
1748
|
+
pageDate: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
}, "strip", z.ZodTypeAny, {
|
|
1750
|
+
feed: "Immunizations" | "Reports" | "Procedures" | "LabReports";
|
|
1751
|
+
pageID?: string | undefined;
|
|
1752
|
+
pageDate?: string | undefined;
|
|
1753
|
+
}, {
|
|
1754
|
+
feed: "Immunizations" | "Reports" | "Procedures" | "LabReports";
|
|
1755
|
+
pageID?: string | undefined;
|
|
1756
|
+
pageDate?: string | undefined;
|
|
1757
|
+
}>;
|
|
1758
|
+
name: string;
|
|
1759
|
+
description: string;
|
|
1760
|
+
_call(input: z.infer<typeof this$1.schema>): Promise<string>;
|
|
1761
|
+
}
|
|
1696
1762
|
|
|
1697
1763
|
type tools_d_PersistParticipantInfoTool = PersistParticipantInfoTool;
|
|
1698
1764
|
declare const tools_d_PersistParticipantInfoTool: typeof PersistParticipantInfoTool;
|
|
@@ -1712,8 +1778,12 @@ type tools_d_QueryDailySleepTool = QueryDailySleepTool;
|
|
|
1712
1778
|
declare const tools_d_QueryDailySleepTool: typeof QueryDailySleepTool;
|
|
1713
1779
|
type tools_d_QueryDailyDataTool = QueryDailyDataTool;
|
|
1714
1780
|
declare const tools_d_QueryDailyDataTool: typeof QueryDailyDataTool;
|
|
1781
|
+
type tools_d_GetDeviceDataV2AllDataTypesTool = GetDeviceDataV2AllDataTypesTool;
|
|
1782
|
+
declare const tools_d_GetDeviceDataV2AllDataTypesTool: typeof GetDeviceDataV2AllDataTypesTool;
|
|
1715
1783
|
type tools_d_GetAllDailyDataTypesTool = GetAllDailyDataTypesTool;
|
|
1716
1784
|
declare const tools_d_GetAllDailyDataTypesTool: typeof GetAllDailyDataTypesTool;
|
|
1785
|
+
type tools_d_GetEhrNewsFeedPageTool = GetEhrNewsFeedPageTool;
|
|
1786
|
+
declare const tools_d_GetEhrNewsFeedPageTool: typeof GetEhrNewsFeedPageTool;
|
|
1717
1787
|
declare namespace tools_d {
|
|
1718
1788
|
export {
|
|
1719
1789
|
tools_d_PersistParticipantInfoTool as PersistParticipantInfoTool,
|
|
@@ -1725,7 +1795,9 @@ declare namespace tools_d {
|
|
|
1725
1795
|
tools_d_QueryDeviceDataV2AggregateTool as QueryDeviceDataV2AggregateTool,
|
|
1726
1796
|
tools_d_QueryDailySleepTool as QueryDailySleepTool,
|
|
1727
1797
|
tools_d_QueryDailyDataTool as QueryDailyDataTool,
|
|
1798
|
+
tools_d_GetDeviceDataV2AllDataTypesTool as GetDeviceDataV2AllDataTypesTool,
|
|
1728
1799
|
tools_d_GetAllDailyDataTypesTool as GetAllDailyDataTypesTool,
|
|
1800
|
+
tools_d_GetEhrNewsFeedPageTool as GetEhrNewsFeedPageTool,
|
|
1729
1801
|
};
|
|
1730
1802
|
}
|
|
1731
1803
|
|
|
@@ -1876,7 +1948,7 @@ interface InboxItemListCoordinatorProps {
|
|
|
1876
1948
|
}
|
|
1877
1949
|
declare function export_default$W(props: InboxItemListCoordinatorProps): React$1.JSX.Element;
|
|
1878
1950
|
|
|
1879
|
-
interface
|
|
1951
|
+
interface AIAssistantProps {
|
|
1880
1952
|
innerRef?: React$1.Ref<HTMLDivElement>;
|
|
1881
1953
|
previewState?: "default";
|
|
1882
1954
|
debug: boolean;
|
|
@@ -1884,7 +1956,7 @@ interface MyDataHelpsAssistantProps {
|
|
|
1884
1956
|
tools?: StructuredTool[];
|
|
1885
1957
|
appendTools?: boolean;
|
|
1886
1958
|
}
|
|
1887
|
-
declare function export_default$V(props:
|
|
1959
|
+
declare function export_default$V(props: AIAssistantProps): React$1.JSX.Element;
|
|
1888
1960
|
|
|
1889
1961
|
interface CelebrationStepProps {
|
|
1890
1962
|
title?: string;
|
|
@@ -2423,4 +2495,4 @@ declare function export_default$1(props: TermInformationViewProps): React$1.JSX.
|
|
|
2423
2495
|
|
|
2424
2496
|
declare function export_default(callback: Function, delay: number | null): void;
|
|
2425
2497
|
|
|
2426
|
-
export { export_default$
|
|
2498
|
+
export { export_default$V as AIAssistant, export_default$2n as Action, export_default$2m as ActivityMeter, export_default$1y as AllergiesList, export_default$m as AllergiesView, export_default$1x as AppDownload, AreaChartOptions, AreaChartSeries, AsthmaActionPlan, export_default$2y as AsthmaActionPlanManager, export_default$1I as AsthmaActionPlanView, export_default$1H as AsthmaActivityView, export_default$2x as AsthmaAirQualities, AsthmaAirQualitiesPreviewState, AsthmaAirQuality, AsthmaAirQualityDescription, AsthmaAirQualityType, export_default$1G as AsthmaAirQualityView, export_default$2w as AsthmaAlertTakeoverNotice, export_default$2v as AsthmaAlertTakeoverTrigger, export_default$1F as AsthmaAlertTakeoverView, AsthmaBiometric, AsthmaBiometricType, export_default$2u as AsthmaBiometrics, AsthmaBiometricsPreviewState, export_default$2t as AsthmaControlCalendar, AsthmaControlCalendarPreviewState, AsthmaControlCalendarVariant, AsthmaControlState, AsthmaControlStatus, export_default$2s as AsthmaControlStatusHeader, AsthmaDailyDataType, AsthmaDataStatus, export_default$1E as AsthmaDayView, export_default$1D as AsthmaHeartAndLungsView, AsthmaImpact, AsthmaLogEntry, export_default$2r as AsthmaLogEntryDetails, AsthmaLogEntryDetailsPreviewState, export_default$1C as AsthmaLogEntryEditorView, AsthmaLogEntryEditorViewPreviewState, export_default$2q as AsthmaLogEntryHeader, AsthmaParticipant, export_default$2p as AsthmaPostEnrollmentSurveyTrigger, export_default$2o as AsthmaProviderReport, AsthmaProviderReportPreviewState, export_default$1B as AsthmaProviderReportView, export_default$1J as AsthmaRecommendedArticle, export_default$1A as AsthmaSleepView, AsthmaSymptom, AsthmaSymptomLevel, AsthmaTrigger, BarChartOptions, BarChartThreshold, export_default$l as BlankView, BloodPressureDataPoint, BloodPressureDeviceDataSource, export_default$1v as BloodPressureVisualization, export_default$2l as Button, export_default$2k as Calendar, export_default$2j as CalendarDay, CalendarDayStateConfiguration, export_default$2i as Card, export_default$2h as CardTitle, export_default$U as CelebrationStep, export_default$T as CelebrationStepContainer, ChartSeries, ChartThreshold, export_default$2g as Chat, ColorDefinition, export_default$1u as ConditionsList, export_default$k as ConditionsView, export_default$S as ConnectDeviceAccountStep, export_default$R as ConnectDeviceAccountStepContainer, export_default$1t as ConnectDevicesMenu, export_default$1s as ConnectEhr, export_default$Q as ConnectEhrStep, export_default$P as ConnectEhrStepContainer, export_default$j as ConnectEhrView, export_default$1r as ConnectFitbit, export_default$1q as ConnectGarmin, DailyDataAvailabilityCheck, DailyDataChart, DailyDataProvider, DailyDataQueryResult, DailyDataType, DailyDataTypeDefinition, DailyLogEntry, TimeSeriesChart as DataChart, DateRangeContext, DateRangeNavigatorContext as DateRangeCoordinator, export_default$2f as DateRangeNavigator, DateRangeTitle, export_default$2d as DayTrackerSymbol, DeviceDataChartLine, export_default$1p as DeviceDataMonthChart, export_default$1o as DeviceDataMonthCharts, export_default$i as DeviceDataView, export_default$2c as DumbbellChart, export_default$1n as EhrNewsFeed, export_default$1m as EhrNewsFeedEventDetail, export_default$g as EhrNewsFeedEventDetailView, export_default$h as EhrNewsFeedView, export_default$1l as ExternalAccountConnectionAlert, export_default$1k as ExternalAccountList, export_default$1j as ExternalAccountsLoadingIndicator, export_default$1i as ExternalAccountsPreview, export_default$f as ExternalAccountsView, export_default$2b as Face, export_default$1h as FitbitDevices, export_default$1g as FitbitMonthCharts, export_default$e as FitbitView, export_default$1f as GarminDevices, export_default$1e as GarminMonthCharts, export_default$d as GarminView, export_default$b as HealthAndWellnessView, export_default$1d as HealthPreviewSection, export_default$2a as Histogram, export_default$c as HomeView, export_default$1N as InboxCompletedListItem, export_default$5 as InboxHistoryView, export_default$X as InboxItemList, export_default$W as InboxItemListCoordinator, export_default$1M as InboxMessageListItem, export_default$4 as InboxMessageView, export_default$1L as InboxResourceListItem, export_default$1K as InboxSurveyListItem, InboxSurveyVariant, export_default$6 as InboxView, export_default$1c as LabResultsBloodType, export_default$1b as LabResultsSummary, Language, export_default$29 as Layout, LayoutContext, LineChartOptions, LoadingIndicator, export_default$1a as MedicationsList, export_default$a as MedicationsView, export_default$28 as MonthlyEventMatrix, MonthlyEventMatrixRow, export_default$19 as MostRecentNotification, MultiSeriesBarChartOptions, MultiSeriesLineChartOptions, tools_d as MyDataHelpsTools, export_default$27 as NavigationBar, NewPointsEntry, export_default$7 as NewPointsView, NewPointsViewProps, export_default$26 as NotesInput, export_default$18 as NotificationList, export_default$9 as NotificationsView, export_default$17 as PlatformSpecificContent, export_default$25 as Popup, ProgressBar, ProgressBarStep, export_default$24 as ProgressRing, export_default$16 as ProjectHeader, export_default$15 as ProjectSupport, export_default$14 as ProviderSearch, export_default$13 as RecentDailyDataBarChart, export_default$11 as RelativeActivity, RelativeActivityDataType, RelativeActivityDateRangeCoordinator as RelativeActivityDayCoordinator, export_default$12 as RelativeActivityDayNavigator, RelativeActivityQueryResult, export_default$10 as RelativeActivityToday, export_default$23 as Resource, ResourceButtonVariant, ResourceDefinition, ResourceImageAlignment, export_default$22 as ResourceList, ResourceListPreviewState, export_default$3 as ResourceListView, export_default$$ as RestingHeartRateCalendar, export_default$21 as RotatingComponentCoordinator, RotatingComponentInterval, export_default$20 as Section, export_default$1$ as SegmentedControl, export_default$Z as SeverityCalendar, export_default$1_ as ShinyOverlay, export_default$1Z as SingleDataPoint, export_default$1Y as SingleExternalAccount, export_default$1X as SingleNotification, export_default$1W as SingleSurveyTask, export_default$1V as SparkBarChart, SparkBarChartBar, export_default$2 as StandaloneHealthAndWellnessView, StatusBarBackgroundProps as StatusBarBackground, export_default$O as StepDetailText, export_default$M as StepImage, export_default$N as StepImageIcon, export_default$L as StepLayout, export_default$K as StepMarkdown, export_default$J as StepNextButton, export_default$I as StepText, export_default$H as StepTitle, SurveyAnswerChart, SurveyBloodPressureDataParameters, export_default$_ as SurveyTaskList, export_default$8 as SurveyTasksView, export_default$1U as Switch, SymptomConfiguration, SymptomReference, export_default$D as SymptomSharkCalendar, export_default$q as SymptomSharkCalendarView, SymptomSharkConfiguration, SymptomSharkDataService, export_default$B as SymptomSharkLogEntry, export_default$s as SymptomSharkLogEntryEdit, export_default$p as SymptomSharkLogEntryEditView, export_default$u as SymptomSharkLogEntryList, export_default$t as SymptomSharkLogToday, export_default$A as SymptomSharkMonthReport, export_default$z as SymptomSharkNotesTimeline, export_default$C as SymptomSharkOverallExperienceChart, ReportBuilder as SymptomSharkReportBuilder, export_default$o as SymptomSharkReportBuilderView, export_default$n as SymptomSharkSymptomDetailView, export_default$E as SymptomSharkSymptomMatrix, export_default$w as SymptomSharkSymptomSeverityChart, export_default$x as SymptomSharkSymptomSeveritySummary, export_default$v as SymptomSharkSymptomTreatmentFilters, export_default$y as SymptomSharkSymptomTreatmentHistograms, export_default$r as SymptomSharkVisualizationCoordinator, export_default$1z as TermInformation, TermInformationReference, export_default$1 as TermInformationView, export_default$1T as TextBlock, export_default$2e as Title, export_default$1S as TrackerItem, TreatmentConfiguration, TreatmentReference, export_default$1R as UnstyledButton, export_default$1Q as ValueSelector, export_default$Y as ViewEhr, export_default$1P as ViewHeader, export_default$1O as WeekCalendar, WeekStartsOn, export_default$G as YouTubeStep, export_default$F as YouTubeStepContainer, service as asthmaDataService, export_default$1w as bloodPressureDataProvider, checkDailyDataAvailability, computeAsthmaControlState, convertToSymptomSharkConfiguration, allTypeDefinitions as dailyDataTypeDefinitions, dateToAsthmaLogEntryIdentifier, get6MonthStart, getAllDailyDataTypes, getAsthmaAirQualityDescriptionText, getAsthmaDataStatusColor, getAsthmaDataStatusText, getAsthmaImpactTexts, getAsthmaImpacts, getAsthmaSymptomLevel, getAsthmaSymptomLevelText, getAsthmaSymptomTexts, getAsthmaSymptoms, getAsthmaTriggerTexts, getAsthmaTriggers, getDailyDataTypeDefinition, getDayKey, getDefaultIntervalStart, getLanguageFromIso, getLocaleFromIso, getMonthStart, getWeekStart, isBloodOxygenLevelWithinRange, isDaytimeRestingHeartRateWithinRange, isNighttimeRestingHeartRateWithinRange, isRespiratoryRateWithinRange, isSleepDisturbancesWithinRange, isStepsWithinRange, language, queryDailyData, queryPreviewDailyData, queryRelativeActivity, registerDailyDataProvider, registerDailyDataTypeDefinition, resolveColor, showNewPoints, simpleAvailabilityCheck, useInitializeView, export_default as useInterval };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@careevolution/mydatahelps-ui",
|
|
3
|
-
"version": "2.24.3-MdhAssistantComponent.
|
|
3
|
+
"version": "2.24.3-MdhAssistantComponent.48",
|
|
4
4
|
"description": "MyDataHelps UI Library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@babel/preset-env": "^7.21.5",
|
|
31
31
|
"@babel/preset-react": "^7.18.6",
|
|
32
32
|
"@babel/preset-typescript": "^7.21.5",
|
|
33
|
-
"@careevolution/mydatahelps-js": "^3.
|
|
33
|
+
"@careevolution/mydatahelps-js": "^3.22.0",
|
|
34
34
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
35
35
|
"@rollup/plugin-image": "^3.0.2",
|
|
36
36
|
"@rollup/plugin-json": "^6.0.0",
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"markdown-it": "^13.0.1",
|
|
74
74
|
"react-feather": "^2.0.9",
|
|
75
75
|
"react-fontawesome-svg-icon": "^1.1.2",
|
|
76
|
-
"react-markdown": "^9.0.1",
|
|
77
76
|
"recharts": "^2.9.0",
|
|
78
77
|
"zod": "^3.23.8"
|
|
79
78
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./MyDataHelpsAssistant";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./MyDataHelpsAssistant";
|