@everfur/sdk 0.5.1 → 0.5.3
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/CHANGELOG.md +351 -0
- package/dist/BookedScreen-BJPbXLCG.d.ts +54 -0
- package/dist/BookedScreen-Cnld-jB_.d.cts +54 -0
- package/dist/{Chat-Rzplrf5M.d.ts → Chat-CNRZEu92.d.ts} +3 -3
- package/dist/{Chat-ypo6miKm.d.cts → Chat-a6If51cF.d.cts} +3 -3
- package/dist/{DepthViews-CeTfPUBX.d.ts → DepthViews-Bfv2DTUl.d.ts} +1 -1
- package/dist/{DepthViews-Cui3oonj.d.cts → DepthViews-Cl4AoL3X.d.cts} +1 -1
- package/dist/{DepthViews-ClykXOJj.d.cts → DepthViews-kURiusNd.d.cts} +1 -1
- package/dist/{DepthViews-baYLMNQ-.d.ts → DepthViews-zhn3Rk5Z.d.ts} +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/{attachments-D3HCBmOE.d.ts → attachments-5_p7kE38.d.ts} +2 -2
- package/dist/{attachments-CwsR-bPN.d.cts → attachments-CHgc11hT.d.cts} +5 -5
- package/dist/{attachments-CzZ7in24.d.ts → attachments-TXOhN36S.d.ts} +5 -5
- package/dist/{attachments-Nk73Lll8.d.cts → attachments-affGN_Uv.d.cts} +2 -2
- package/dist/{bookingCopy-SDkXaxDf.d.ts → bookingCopy-BQ7Pg7qg.d.ts} +38 -200
- package/dist/{bookingCopy-Dv8rKqyV.d.cts → bookingCopy-BpZvZO1S.d.cts} +38 -200
- package/dist/bookingTypes-DCs8mmBb.d.cts +188 -0
- package/dist/bookingTypes-DCs8mmBb.d.ts +188 -0
- package/dist/{callCopy-rDH9JTFo.d.cts → callCopy-CPe9mbwG.d.cts} +7 -2
- package/dist/{callCopy-rDH9JTFo.d.ts → callCopy-CPe9mbwG.d.ts} +7 -2
- package/dist/{casesRepository-BTAecTnF.d.ts → casesRepository-YCI0OVwl.d.ts} +1 -1
- package/dist/{casesRepository-aryld7fJ.d.cts → casesRepository-z2JAFlKA.d.cts} +1 -1
- package/dist/chat/index.cjs +1 -1
- package/dist/chat/index.d.cts +14 -10
- package/dist/chat/index.d.ts +14 -10
- package/dist/chat/index.js +1 -1
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +6 -6
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +1 -1
- package/dist/{config-X6BtwDwQ.d.ts → config-BXVgTLCh.d.ts} +1 -1
- package/dist/{config-6qS7Sohy.d.cts → config-Bkbqkjb0.d.cts} +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context-7f3Nb_xE.d.ts → context-BVpOBDMe.d.ts} +5 -5
- package/dist/{context-CkqPM4Ml.d.cts → context-ChPrlKhy.d.cts} +5 -5
- package/dist/{copy-Bd__Pw5s.d.cts → copy-Be2H2i-D.d.cts} +2 -2
- package/dist/{copy-NgKgOOET.d.ts → copy-SxmZ-Eps.d.ts} +2 -2
- package/dist/core/index.cjs +5 -5
- package/dist/core/index.d.cts +12 -12
- package/dist/core/index.d.ts +12 -12
- package/dist/core/index.js +5 -5
- package/dist/{depth-CYPH92jE.d.ts → depth-By8dFpLA.d.ts} +2 -2
- package/dist/{depth-CyjaJJ6V.d.cts → depth-Dne8Qoss.d.cts} +2 -2
- package/dist/{entitlementRepository-DdeFuEKp.d.ts → entitlementRepository-Big-K_In.d.ts} +2 -2
- package/dist/{entitlementRepository-Dl1qRLcJ.d.cts → entitlementRepository-BmghvtGT.d.cts} +2 -2
- package/dist/{identity-Dy_L7Yq4.d.ts → identity-AuoeDRTh.d.ts} +1 -1
- package/dist/{identity-DjqhDm5Z.d.cts → identity-Z0yj-fC_.d.cts} +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +6 -6
- package/dist/notifications/index.d.cts +2 -2
- package/dist/notifications/index.d.ts +2 -2
- package/dist/{pets-BSG2qbr_.d.cts → pets-DfXGYmMk.d.cts} +1 -1
- package/dist/{pets-D7cZutrX.d.ts → pets-FD-5nMXr.d.ts} +1 -1
- package/dist/{petsRepository-DhsX3GLw.d.ts → petsRepository-BaTOwJ5L.d.ts} +1 -1
- package/dist/{petsRepository-D1bnxDZg.d.cts → petsRepository-CsvreWlY.d.cts} +1 -1
- package/dist/{ports-C0m1G1fS.d.ts → ports-DNIvfzBP.d.ts} +16 -5
- package/dist/{ports-DNXyyzZF.d.cts → ports-Dof7AQjk.d.cts} +16 -5
- package/dist/records/depth/index.d.cts +7 -7
- package/dist/records/depth/index.d.ts +7 -7
- package/dist/records/index.cjs +3 -3
- package/dist/records/index.d.cts +10 -10
- package/dist/records/index.d.ts +10 -10
- package/dist/records/index.js +3 -3
- package/dist/{requestFunnel-FvE5yLDD.d.ts → requestFunnel-CJC_q4BZ.d.ts} +2 -2
- package/dist/{requestFunnel-Bqc1inM9.d.cts → requestFunnel-DrigK6q_.d.cts} +2 -2
- package/dist/{runtimeTypes-C0yPBz89.d.ts → runtimeTypes-BiqMY6pC.d.ts} +4 -4
- package/dist/{runtimeTypes-RN-VXTFV.d.cts → runtimeTypes-Doj95Gll.d.cts} +4 -4
- package/dist/server/events/index.cjs +1 -1
- package/dist/server/events/index.d.cts +2 -2
- package/dist/server/events/index.d.ts +2 -2
- package/dist/server/events/index.js +1 -1
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +2 -2
- package/dist/televet/booking/index.cjs +1 -1
- package/dist/televet/booking/index.d.cts +17 -9
- package/dist/televet/booking/index.d.ts +17 -9
- package/dist/televet/booking/index.js +1 -1
- package/dist/televet/call/index.cjs +1 -1
- package/dist/televet/call/index.d.cts +13 -1
- package/dist/televet/call/index.d.ts +13 -1
- package/dist/televet/call/index.js +1 -1
- package/dist/televet/index.cjs +1 -1
- package/dist/televet/index.js +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/rn/index.d.cts +7 -7
- package/dist/testing/rn/index.d.ts +7 -7
- package/dist/testing/web/index.d.cts +7 -7
- package/dist/testing/web/index.d.ts +7 -7
- package/dist/{timelineRows-D4U6A8zE.d.ts → timelineRows-BHA0gIKH.d.ts} +1 -1
- package/dist/{timelineRows-DAB5dpjF.d.cts → timelineRows-CHeqZRpM.d.cts} +1 -1
- package/dist/{uploadTransport-DKJHs3Yj.d.cts → uploadTransport-C1p8FuG8.d.cts} +5 -1
- package/dist/{uploadTransport-D0M0T4hN.d.ts → uploadTransport-bZIKBTyK.d.ts} +5 -1
- package/dist/{useRecordsDepth--ObtMyjH.d.ts → useRecordsDepth-CG63cXFZ.d.ts} +1 -1
- package/dist/{useRecordsDepth-B35y8bV-.d.cts → useRecordsDepth-ChhS4c6r.d.cts} +1 -1
- package/dist/{view-B-Toym_j.d.cts → view-2pXv8ex7.d.cts} +7 -4
- package/dist/{view-D9JqNQai.d.ts → view-BKy44Q-3.d.ts} +7 -4
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/index.cjs +10 -10
- package/dist/web/index.d.cts +14 -14
- package/dist/web/index.d.ts +14 -14
- package/dist/web/index.js +10 -10
- package/dist/web/notifications/index.d.cts +3 -3
- package/dist/web/notifications/index.d.ts +3 -3
- package/dist/web/records/depth/index.d.cts +7 -7
- package/dist/web/records/depth/index.d.ts +7 -7
- package/dist/web/records/index.cjs +3 -3
- package/dist/web/records/index.d.cts +9 -9
- package/dist/web/records/index.d.ts +9 -9
- package/dist/web/records/index.js +3 -3
- package/dist/web/televet/booking/index.cjs +2 -2
- package/dist/web/televet/booking/index.d.cts +35 -50
- package/dist/web/televet/booking/index.d.ts +35 -50
- package/dist/web/televet/booking/index.js +2 -2
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.d.cts +12 -5
- package/dist/web/televet/call/index.d.ts +12 -5
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/televet/index.cjs +4 -1
- package/dist/web/televet/index.d.cts +31 -2
- package/dist/web/televet/index.d.ts +31 -2
- package/dist/web/televet/index.js +4 -1
- package/package.json +4 -3
|
@@ -1,58 +1,26 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { P as PetRef } from '../../../ids-B2GAAifq.cjs';
|
|
3
3
|
export { B as Brand, _ as __brand } from '../../../ids-B2GAAifq.cjs';
|
|
4
|
-
import { c as
|
|
5
|
-
export { C as
|
|
4
|
+
import { c as TelevetBookingStep, d as TelevetBookingController, e as TelevetTriageRead, f as TelevetStateInterestWrite, T as TelevetEmptyRosterCause, a as TelevetStateInterestAction$1, b as TelevetMediaShortfall } from '../../../bookingCopy-BpZvZO1S.cjs';
|
|
5
|
+
export { C as CONSULT_MINUTES, N as NO_MEDIA_SHORTFALL, g as TELEVET_BOOKING_BASE, h as TELEVET_BOOKING_COPY, i as TELEVET_BOOKING_STEPS, j as TELEVET_CONSULT_PAGE_LIMIT, k as TELEVET_JOIN_CLOSES_MINUTES_AFTER, l as TELEVET_JOIN_OPENS_MINUTES_BEFORE, m as TelevetBookingAction, n as TelevetBookingContext, o as TelevetBookingControllerDeps, p as TelevetBookingCopy, q as TelevetBookingDraft, r as TelevetBookingFailure, s as TelevetBookingRefusal, t as TelevetBookingState, u as TelevetEarlyTriage, v as TelevetEmptyRosterView, ao as TelevetJoinBlock, ap as TelevetJoinDecision, x as TelevetJoinState, y as TelevetMediaRefusal, z as TelevetRead, A as TelevetStateInterestReason, B as TelevetTriageVerdict, D as TelevetWrite, E as attestation, F as canConfirm, G as canManageTelevetVisit, H as createTelevetBookingController, I as currentStep, J as emptyTelevetDraft, K as formatVisitRange, L as formatWhen, M as formatWhenWithDay, O as hasPreviousStep, P as initialTelevetBookingState, Q as isHoldExpired, R as isMediaShortfallEmpty, S as isSkipped, U as isTelevetBookingCopyReady, V as mediaShortfallFromUnsentPicks, W as splitTelevetVisits, X as televetBookingKey, Y as televetBookingReducer, Z as televetBookingRefusal, _ as televetCancelCall, $ as televetConsultCall, a0 as televetEmptyRosterCause, a1 as televetEmptyRosterView, a2 as televetHoldCall, a3 as televetJoinCall, aq as televetJoinDecision, a4 as televetJoinOpensAtMs, a6 as televetMediaShortfallLines, a7 as televetRescheduleCall, a8 as useEarlyTriage, a9 as useStateInterest, aa as useTelevetBookConsult, ab as useTelevetBookingAvailable, ac as useTelevetBookingController, ad as useTelevetBookingEntitlement, ae as useTelevetCancellationPolicy, af as useTelevetClinicians, ag as useTelevetHoldSlot, ah as useTelevetJoin, ai as useTelevetNextSlot, aj as useTelevetRescheduleConsult, ak as useTelevetSlots, al as useTelevetStatePolicy, am as validateBookingBody, an as withUnsentPicks } from '../../../bookingCopy-BpZvZO1S.cjs';
|
|
6
|
+
import { T as TelevetConsult, e as TelevetSlot } from '../../../bookingTypes-DCs8mmBb.cjs';
|
|
7
|
+
export { i as CANCELLATION_POLICY_VERSION_MAX, j as CANCEL_REASON_MAX, k as CONSULT_KINDS, l as CONSULT_STATUSES, m as ConsultKind, C as ConsultStatus, M as MEDIA_REFS_MAX, R as REASON_TEXT_MAX, n as TERMINAL_CONSULT_STATUSES, g as TelevetBookingBody, b as TelevetBookingEntitlement, h as TelevetCancelReceipt, c as TelevetCancellationPolicy, d as TelevetClinician, f as TelevetSlotHold, a as TelevetStatePolicy, o as isWellFormedStateCode } from '../../../bookingTypes-DCs8mmBb.cjs';
|
|
6
8
|
import { V as VetVisitIntent } from '../../../visitIntent-D7_yVp1I.cjs';
|
|
7
9
|
import { E as EverfurTelevetFlowRequest } from '../../../televetGlobal-CEk0_cW9.cjs';
|
|
10
|
+
import { T as TelevetCalendarWriter } from '../../../BookedScreen-Cnld-jB_.cjs';
|
|
11
|
+
export { b as TelevetBookedScreen, c as TelevetBookedScreenProps, a as TelevetCalendarEvent, t as televetConsultCalendarKey } from '../../../BookedScreen-Cnld-jB_.cjs';
|
|
8
12
|
import { E as EverfurTheme } from '../../../tokens-CIngRkvt.cjs';
|
|
9
13
|
export { b as VetCallCredential, c as VetCallJoinRefusal, d as VetCallLimits, p as parseVetCallCredential, v as vetCallJoinReason, e as vetCallJoinRefusal } from '../../../callRoom-B_EqaUzx.cjs';
|
|
10
14
|
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode } from '../../../EverfurError-DmELDpXp.cjs';
|
|
11
15
|
export { E as EverfurResult } from '../../../EverfurResult-ZtH-YV1h.cjs';
|
|
12
|
-
export { W as WidgetPet } from '../../../petsRepository-
|
|
13
|
-
import '../../../requestFunnel-
|
|
16
|
+
export { W as WidgetPet } from '../../../petsRepository-CsvreWlY.cjs';
|
|
17
|
+
import '../../../requestFunnel-DrigK6q_.cjs';
|
|
14
18
|
import '../../../ErrorPolicyPort-D6CybiqJ.cjs';
|
|
15
|
-
import '../../../config-
|
|
16
|
-
import '../../../identity-
|
|
19
|
+
import '../../../config-Bkbqkjb0.cjs';
|
|
20
|
+
import '../../../identity-Z0yj-fC_.cjs';
|
|
17
21
|
import '../../../TelemetryPort-BDNr00hu.cjs';
|
|
18
22
|
import '../../../profile-CSs1wlXT.cjs';
|
|
19
23
|
|
|
20
|
-
/** The calendar entry a booked visit asks the host to write. */
|
|
21
|
-
interface TelevetCalendarEvent {
|
|
22
|
-
/**
|
|
23
|
-
* A stable key for THIS consult's entry.
|
|
24
|
-
*
|
|
25
|
-
* Keyed on the CONSULT so a re-press updates the same entry rather than writing a second event for one
|
|
26
|
-
* visit, and so a later cancel or reschedule can address the SAME row. A host that ignores the key writes
|
|
27
|
-
* duplicates the owner has to clean up by hand.
|
|
28
|
-
*/
|
|
29
|
-
readonly key: string;
|
|
30
|
-
readonly title: string;
|
|
31
|
-
readonly startDate: Date;
|
|
32
|
-
readonly endDate: Date;
|
|
33
|
-
/** The reminder offset in minutes, negative for "before". The platform queues its own at the same offset. */
|
|
34
|
-
readonly alarmOffsetMinutes: number;
|
|
35
|
-
}
|
|
36
|
-
/** Writes the entry. Resolves true when it landed; false when the host has no calendar to write to. */
|
|
37
|
-
type TelevetCalendarWriter = (event: TelevetCalendarEvent) => Promise<boolean>;
|
|
38
|
-
/** The calendar key for a consult. One definition, so a cancel and a reschedule address the booked row. */
|
|
39
|
-
declare function televetConsultCalendarKey(consultId: string): string;
|
|
40
|
-
interface TelevetBookedScreenProps {
|
|
41
|
-
readonly consult: TelevetConsult;
|
|
42
|
-
readonly petName: string | null;
|
|
43
|
-
readonly onDone: () => void;
|
|
44
|
-
/** Absent, there is no Add to calendar control. */
|
|
45
|
-
readonly onAddToCalendar?: TelevetCalendarWriter | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Has the host PROVEN it can host the call in place? Defaults to false.
|
|
48
|
-
*
|
|
49
|
-
* Fail closed: a host that has not said so is assumed not to have mounted the call surface, and the in-place
|
|
50
|
-
* join promise is withheld rather than printed on a hope.
|
|
51
|
-
*/
|
|
52
|
-
readonly canJoinInApp?: boolean;
|
|
53
|
-
}
|
|
54
|
-
declare function TelevetBookedScreen({ consult, petName, onDone, onAddToCalendar, canJoinInApp, }: TelevetBookedScreenProps): ReactNode;
|
|
55
|
-
|
|
56
24
|
/** The heading levels the DOM has elements for. */
|
|
57
25
|
type EverfurHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
58
26
|
|
|
@@ -435,25 +403,30 @@ interface EverfurTelevetDialogProps {
|
|
|
435
403
|
readonly request: EverfurTelevetFlowRequest;
|
|
436
404
|
/** Close the dialog. Called by the flow's own exits and by an Escape no screen handled. */
|
|
437
405
|
readonly onClose: () => void;
|
|
406
|
+
/**
|
|
407
|
+
* Writes a booked visit into the member's calendar: `EverfurTelevetHost`'s `onAddToCalendar`, passed through.
|
|
408
|
+
* Given, the confirmation offers Add to Calendar; absent, it has no calendar control.
|
|
409
|
+
*/
|
|
410
|
+
readonly onAddToCalendar?: TelevetCalendarWriter | undefined;
|
|
438
411
|
}
|
|
439
412
|
/** The in-page vet visit in a modal dialog. */
|
|
440
|
-
declare function EverfurTelevetDialog({ request, onClose }: EverfurTelevetDialogProps): ReactNode;
|
|
413
|
+
declare function EverfurTelevetDialog({ request, onClose, onAddToCalendar }: EverfurTelevetDialogProps): ReactNode;
|
|
441
414
|
|
|
442
415
|
interface TelevetJoinScreenProps {
|
|
443
416
|
/** The consult to join. */
|
|
444
417
|
readonly consultId: string;
|
|
445
418
|
/** Host/test seam: inject a booking controller instead of building one from the provider's session. */
|
|
446
419
|
readonly controller?: TelevetBookingController | undefined;
|
|
447
|
-
/**
|
|
420
|
+
/** Accepted for parity with the native join screen; the web call draws Daily's frame only. */
|
|
448
421
|
readonly clinicianName?: string | null | undefined;
|
|
449
|
-
/**
|
|
422
|
+
/** Accepted for parity with the native join screen; the web call draws Daily's frame only. */
|
|
450
423
|
readonly petName?: string | null | undefined;
|
|
451
424
|
/** The way out: the member left the call, declined the notice, or pressed Leave on a refusal. */
|
|
452
425
|
readonly onLeave: () => void;
|
|
453
426
|
readonly style?: CSSProperties | undefined;
|
|
454
427
|
}
|
|
455
|
-
/**
|
|
456
|
-
declare function TelevetJoinScreen({ consultId, controller
|
|
428
|
+
/** Ask for the recording notice, then mint the room credential for one consult and join it in the page. */
|
|
429
|
+
declare function TelevetJoinScreen({ consultId, controller, onLeave, style }: TelevetJoinScreenProps): ReactNode;
|
|
457
430
|
|
|
458
431
|
interface TelevetVisitsScreenProps {
|
|
459
432
|
/** Host/test seam: inject a booking controller instead of building one from the provider's session. */
|
|
@@ -470,11 +443,17 @@ interface TelevetVisitsScreenProps {
|
|
|
470
443
|
readonly isRoot?: boolean | undefined;
|
|
471
444
|
/** Bumped by the flow after a booking, a move or a call, so the list is read again. */
|
|
472
445
|
readonly revision?: number | undefined;
|
|
446
|
+
/**
|
|
447
|
+
* True when the member came BACK to the visits from a screen the flow pushed over them. The control they
|
|
448
|
+
* pressed went with that screen, so the list's first heading (or its error notice) takes focus once the list
|
|
449
|
+
* has loaded. Read once, when the screen mounts; false on the flow's first screen, which takes no focus.
|
|
450
|
+
*/
|
|
451
|
+
readonly returnedTo?: boolean | undefined;
|
|
473
452
|
/** Injected by tests, so the split and the window can sit on either side of a boundary. */
|
|
474
453
|
readonly nowMs?: number | undefined;
|
|
475
454
|
readonly style?: CSSProperties | undefined;
|
|
476
455
|
}
|
|
477
|
-
declare function TelevetVisitsScreen({ controller: injected, onJoin, onReschedule, onBook, onBack, isRoot, revision, nowMs, style, }: TelevetVisitsScreenProps): ReactNode;
|
|
456
|
+
declare function TelevetVisitsScreen({ controller: injected, onJoin, onReschedule, onBook, onBack, isRoot, revision, returnedTo, nowMs, style, }: TelevetVisitsScreenProps): ReactNode;
|
|
478
457
|
|
|
479
458
|
type Css = CSSProperties;
|
|
480
459
|
declare function makeVisitStyles(theme: EverfurTheme): {
|
|
@@ -729,6 +708,12 @@ interface TelevetSlotPickerProps {
|
|
|
729
708
|
/** The slot whose hold is in flight, or null. Disables the whole grid. */
|
|
730
709
|
readonly busySlotId: string | null;
|
|
731
710
|
readonly onPick: (slot: TelevetSlot) => void;
|
|
711
|
+
/**
|
|
712
|
+
* The slot already chosen, if any. The strip opens on ITS day rather than on the first offered day, so a
|
|
713
|
+
* member who goes Back from a later step sees the day they picked and not the start of the window. Ignored
|
|
714
|
+
* when that day is not in `slots`.
|
|
715
|
+
*/
|
|
716
|
+
readonly selectedSlot?: TelevetSlot | null;
|
|
732
717
|
/** Rendered above the strip, for example a failure line from the container. */
|
|
733
718
|
readonly header?: ReactNode;
|
|
734
719
|
/**
|
|
@@ -742,7 +727,7 @@ interface TelevetSlotPickerProps {
|
|
|
742
727
|
readonly rowTestIdPrefix?: string;
|
|
743
728
|
readonly testID?: string;
|
|
744
729
|
}
|
|
745
|
-
declare function TelevetSlotPicker({ slots, busySlotId, onPick, header, dayGroupLabel, timeGroupLabel, rowTestIdPrefix, testID, }: TelevetSlotPickerProps): ReactNode;
|
|
730
|
+
declare function TelevetSlotPicker({ slots, busySlotId, onPick, selectedSlot, header, dayGroupLabel, timeGroupLabel, rowTestIdPrefix, testID, }: TelevetSlotPickerProps): ReactNode;
|
|
746
731
|
|
|
747
732
|
/** One "label ... value" row in the summary card, as a bound `<dt>` / `<dd>` pair. */
|
|
748
733
|
declare function TelevetSummaryRow({ label, value, last, testID, }: {
|
|
@@ -771,4 +756,4 @@ declare function TelevetSummaryCard({ children, testID }: {
|
|
|
771
756
|
readonly testID?: string;
|
|
772
757
|
}): ReactNode;
|
|
773
758
|
|
|
774
|
-
export { BACK_LABEL, type EverfurHeadingLevel, EverfurTelevet, EverfurTelevetBooking, type EverfurTelevetBookingProps, EverfurTelevetDialog, type EverfurTelevetDialogProps, EverfurTelevetFlow, EverfurTelevetFlowRequest, type EverfurTelevetProps, EverfurTelevetReschedule, type EverfurTelevetRescheduleProps, PetRef, TELEVET_BOOKING_COPY_WEB, TELEVET_EMERGENCY_EXITS_WEB,
|
|
759
|
+
export { BACK_LABEL, type EverfurHeadingLevel, EverfurTelevet, EverfurTelevetBooking, type EverfurTelevetBookingProps, EverfurTelevetDialog, type EverfurTelevetDialogProps, EverfurTelevetFlow, EverfurTelevetFlowRequest, type EverfurTelevetProps, EverfurTelevetReschedule, type EverfurTelevetRescheduleProps, PetRef, TELEVET_BOOKING_COPY_WEB, TELEVET_EMERGENCY_EXITS_WEB, TelevetBookingChrome, type TelevetBookingChromeProps, TelevetBookingController, TelevetBookingStep, TelevetCalendarWriter, type TelevetCancelTerms, TelevetCancelVisitForm, type TelevetCancelVisitFormProps, TelevetClinicianEmptyState, type TelevetClinicianEmptyStateProps, TelevetConsentCheckbox, TelevetConsult, type TelevetDay, TelevetDayStrip, type TelevetDayStripProps, type TelevetDiscardConfirm, TelevetEarlyEmergency, type TelevetEarlyEmergencyProps, TelevetEmergencyExits, type TelevetEmergencyExitsProps, TelevetEmptyRosterCause, TelevetEntitlementInterestState, type TelevetEntitlementInterestStateProps, type TelevetHistoryMode, TelevetIntakeMedia, type TelevetIntakeMediaItem, type TelevetIntakeMediaProps, TelevetJoinScreen, type TelevetJoinScreenProps, type TelevetLocationStatus, TelevetMediaDropNotice, type TelevetMediaDropNoticeProps, type TelevetMediaPicker, TelevetMediaShortfall, type TelevetPrimaryVet, type TelevetScreen, TelevetSlot, TelevetSlotPicker, type TelevetSlotPickerProps, TelevetStateInterestAction, type TelevetStateInterestActionProps, TelevetStateInterestAction$1 as TelevetStateInterestLifecycle, TelevetStateInterestWrite, TelevetSummaryCard, TelevetSummaryRow, TelevetTriageRead, TelevetVisitsScreen, type TelevetVisitsScreenProps, VetVisitIntent, televetDaysFromSlots, televetScreenForRequest };
|
|
@@ -1,58 +1,26 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { P as PetRef } from '../../../ids-B2GAAifq.js';
|
|
3
3
|
export { B as Brand, _ as __brand } from '../../../ids-B2GAAifq.js';
|
|
4
|
-
import { c as
|
|
5
|
-
export { C as
|
|
4
|
+
import { c as TelevetBookingStep, d as TelevetBookingController, e as TelevetTriageRead, f as TelevetStateInterestWrite, T as TelevetEmptyRosterCause, a as TelevetStateInterestAction$1, b as TelevetMediaShortfall } from '../../../bookingCopy-BQ7Pg7qg.js';
|
|
5
|
+
export { C as CONSULT_MINUTES, N as NO_MEDIA_SHORTFALL, g as TELEVET_BOOKING_BASE, h as TELEVET_BOOKING_COPY, i as TELEVET_BOOKING_STEPS, j as TELEVET_CONSULT_PAGE_LIMIT, k as TELEVET_JOIN_CLOSES_MINUTES_AFTER, l as TELEVET_JOIN_OPENS_MINUTES_BEFORE, m as TelevetBookingAction, n as TelevetBookingContext, o as TelevetBookingControllerDeps, p as TelevetBookingCopy, q as TelevetBookingDraft, r as TelevetBookingFailure, s as TelevetBookingRefusal, t as TelevetBookingState, u as TelevetEarlyTriage, v as TelevetEmptyRosterView, ao as TelevetJoinBlock, ap as TelevetJoinDecision, x as TelevetJoinState, y as TelevetMediaRefusal, z as TelevetRead, A as TelevetStateInterestReason, B as TelevetTriageVerdict, D as TelevetWrite, E as attestation, F as canConfirm, G as canManageTelevetVisit, H as createTelevetBookingController, I as currentStep, J as emptyTelevetDraft, K as formatVisitRange, L as formatWhen, M as formatWhenWithDay, O as hasPreviousStep, P as initialTelevetBookingState, Q as isHoldExpired, R as isMediaShortfallEmpty, S as isSkipped, U as isTelevetBookingCopyReady, V as mediaShortfallFromUnsentPicks, W as splitTelevetVisits, X as televetBookingKey, Y as televetBookingReducer, Z as televetBookingRefusal, _ as televetCancelCall, $ as televetConsultCall, a0 as televetEmptyRosterCause, a1 as televetEmptyRosterView, a2 as televetHoldCall, a3 as televetJoinCall, aq as televetJoinDecision, a4 as televetJoinOpensAtMs, a6 as televetMediaShortfallLines, a7 as televetRescheduleCall, a8 as useEarlyTriage, a9 as useStateInterest, aa as useTelevetBookConsult, ab as useTelevetBookingAvailable, ac as useTelevetBookingController, ad as useTelevetBookingEntitlement, ae as useTelevetCancellationPolicy, af as useTelevetClinicians, ag as useTelevetHoldSlot, ah as useTelevetJoin, ai as useTelevetNextSlot, aj as useTelevetRescheduleConsult, ak as useTelevetSlots, al as useTelevetStatePolicy, am as validateBookingBody, an as withUnsentPicks } from '../../../bookingCopy-BQ7Pg7qg.js';
|
|
6
|
+
import { T as TelevetConsult, e as TelevetSlot } from '../../../bookingTypes-DCs8mmBb.js';
|
|
7
|
+
export { i as CANCELLATION_POLICY_VERSION_MAX, j as CANCEL_REASON_MAX, k as CONSULT_KINDS, l as CONSULT_STATUSES, m as ConsultKind, C as ConsultStatus, M as MEDIA_REFS_MAX, R as REASON_TEXT_MAX, n as TERMINAL_CONSULT_STATUSES, g as TelevetBookingBody, b as TelevetBookingEntitlement, h as TelevetCancelReceipt, c as TelevetCancellationPolicy, d as TelevetClinician, f as TelevetSlotHold, a as TelevetStatePolicy, o as isWellFormedStateCode } from '../../../bookingTypes-DCs8mmBb.js';
|
|
6
8
|
import { V as VetVisitIntent } from '../../../visitIntent-D7_yVp1I.js';
|
|
7
9
|
import { E as EverfurTelevetFlowRequest } from '../../../televetGlobal-Cs9Wbqsy.js';
|
|
10
|
+
import { T as TelevetCalendarWriter } from '../../../BookedScreen-BJPbXLCG.js';
|
|
11
|
+
export { b as TelevetBookedScreen, c as TelevetBookedScreenProps, a as TelevetCalendarEvent, t as televetConsultCalendarKey } from '../../../BookedScreen-BJPbXLCG.js';
|
|
8
12
|
import { E as EverfurTheme } from '../../../tokens-CIngRkvt.js';
|
|
9
13
|
export { b as VetCallCredential, c as VetCallJoinRefusal, d as VetCallLimits, p as parseVetCallCredential, v as vetCallJoinReason, e as vetCallJoinRefusal } from '../../../callRoom-7wrE3RP2.js';
|
|
10
14
|
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode } from '../../../EverfurError-DmELDpXp.js';
|
|
11
15
|
export { E as EverfurResult } from '../../../EverfurResult-SGvHKsCB.js';
|
|
12
|
-
export { W as WidgetPet } from '../../../petsRepository-
|
|
13
|
-
import '../../../requestFunnel-
|
|
16
|
+
export { W as WidgetPet } from '../../../petsRepository-BaTOwJ5L.js';
|
|
17
|
+
import '../../../requestFunnel-CJC_q4BZ.js';
|
|
14
18
|
import '../../../ErrorPolicyPort-D22LUVrK.js';
|
|
15
|
-
import '../../../config-
|
|
16
|
-
import '../../../identity-
|
|
19
|
+
import '../../../config-BXVgTLCh.js';
|
|
20
|
+
import '../../../identity-AuoeDRTh.js';
|
|
17
21
|
import '../../../TelemetryPort-BDNr00hu.js';
|
|
18
22
|
import '../../../profile-CSs1wlXT.js';
|
|
19
23
|
|
|
20
|
-
/** The calendar entry a booked visit asks the host to write. */
|
|
21
|
-
interface TelevetCalendarEvent {
|
|
22
|
-
/**
|
|
23
|
-
* A stable key for THIS consult's entry.
|
|
24
|
-
*
|
|
25
|
-
* Keyed on the CONSULT so a re-press updates the same entry rather than writing a second event for one
|
|
26
|
-
* visit, and so a later cancel or reschedule can address the SAME row. A host that ignores the key writes
|
|
27
|
-
* duplicates the owner has to clean up by hand.
|
|
28
|
-
*/
|
|
29
|
-
readonly key: string;
|
|
30
|
-
readonly title: string;
|
|
31
|
-
readonly startDate: Date;
|
|
32
|
-
readonly endDate: Date;
|
|
33
|
-
/** The reminder offset in minutes, negative for "before". The platform queues its own at the same offset. */
|
|
34
|
-
readonly alarmOffsetMinutes: number;
|
|
35
|
-
}
|
|
36
|
-
/** Writes the entry. Resolves true when it landed; false when the host has no calendar to write to. */
|
|
37
|
-
type TelevetCalendarWriter = (event: TelevetCalendarEvent) => Promise<boolean>;
|
|
38
|
-
/** The calendar key for a consult. One definition, so a cancel and a reschedule address the booked row. */
|
|
39
|
-
declare function televetConsultCalendarKey(consultId: string): string;
|
|
40
|
-
interface TelevetBookedScreenProps {
|
|
41
|
-
readonly consult: TelevetConsult;
|
|
42
|
-
readonly petName: string | null;
|
|
43
|
-
readonly onDone: () => void;
|
|
44
|
-
/** Absent, there is no Add to calendar control. */
|
|
45
|
-
readonly onAddToCalendar?: TelevetCalendarWriter | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Has the host PROVEN it can host the call in place? Defaults to false.
|
|
48
|
-
*
|
|
49
|
-
* Fail closed: a host that has not said so is assumed not to have mounted the call surface, and the in-place
|
|
50
|
-
* join promise is withheld rather than printed on a hope.
|
|
51
|
-
*/
|
|
52
|
-
readonly canJoinInApp?: boolean;
|
|
53
|
-
}
|
|
54
|
-
declare function TelevetBookedScreen({ consult, petName, onDone, onAddToCalendar, canJoinInApp, }: TelevetBookedScreenProps): ReactNode;
|
|
55
|
-
|
|
56
24
|
/** The heading levels the DOM has elements for. */
|
|
57
25
|
type EverfurHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
58
26
|
|
|
@@ -435,25 +403,30 @@ interface EverfurTelevetDialogProps {
|
|
|
435
403
|
readonly request: EverfurTelevetFlowRequest;
|
|
436
404
|
/** Close the dialog. Called by the flow's own exits and by an Escape no screen handled. */
|
|
437
405
|
readonly onClose: () => void;
|
|
406
|
+
/**
|
|
407
|
+
* Writes a booked visit into the member's calendar: `EverfurTelevetHost`'s `onAddToCalendar`, passed through.
|
|
408
|
+
* Given, the confirmation offers Add to Calendar; absent, it has no calendar control.
|
|
409
|
+
*/
|
|
410
|
+
readonly onAddToCalendar?: TelevetCalendarWriter | undefined;
|
|
438
411
|
}
|
|
439
412
|
/** The in-page vet visit in a modal dialog. */
|
|
440
|
-
declare function EverfurTelevetDialog({ request, onClose }: EverfurTelevetDialogProps): ReactNode;
|
|
413
|
+
declare function EverfurTelevetDialog({ request, onClose, onAddToCalendar }: EverfurTelevetDialogProps): ReactNode;
|
|
441
414
|
|
|
442
415
|
interface TelevetJoinScreenProps {
|
|
443
416
|
/** The consult to join. */
|
|
444
417
|
readonly consultId: string;
|
|
445
418
|
/** Host/test seam: inject a booking controller instead of building one from the provider's session. */
|
|
446
419
|
readonly controller?: TelevetBookingController | undefined;
|
|
447
|
-
/**
|
|
420
|
+
/** Accepted for parity with the native join screen; the web call draws Daily's frame only. */
|
|
448
421
|
readonly clinicianName?: string | null | undefined;
|
|
449
|
-
/**
|
|
422
|
+
/** Accepted for parity with the native join screen; the web call draws Daily's frame only. */
|
|
450
423
|
readonly petName?: string | null | undefined;
|
|
451
424
|
/** The way out: the member left the call, declined the notice, or pressed Leave on a refusal. */
|
|
452
425
|
readonly onLeave: () => void;
|
|
453
426
|
readonly style?: CSSProperties | undefined;
|
|
454
427
|
}
|
|
455
|
-
/**
|
|
456
|
-
declare function TelevetJoinScreen({ consultId, controller
|
|
428
|
+
/** Ask for the recording notice, then mint the room credential for one consult and join it in the page. */
|
|
429
|
+
declare function TelevetJoinScreen({ consultId, controller, onLeave, style }: TelevetJoinScreenProps): ReactNode;
|
|
457
430
|
|
|
458
431
|
interface TelevetVisitsScreenProps {
|
|
459
432
|
/** Host/test seam: inject a booking controller instead of building one from the provider's session. */
|
|
@@ -470,11 +443,17 @@ interface TelevetVisitsScreenProps {
|
|
|
470
443
|
readonly isRoot?: boolean | undefined;
|
|
471
444
|
/** Bumped by the flow after a booking, a move or a call, so the list is read again. */
|
|
472
445
|
readonly revision?: number | undefined;
|
|
446
|
+
/**
|
|
447
|
+
* True when the member came BACK to the visits from a screen the flow pushed over them. The control they
|
|
448
|
+
* pressed went with that screen, so the list's first heading (or its error notice) takes focus once the list
|
|
449
|
+
* has loaded. Read once, when the screen mounts; false on the flow's first screen, which takes no focus.
|
|
450
|
+
*/
|
|
451
|
+
readonly returnedTo?: boolean | undefined;
|
|
473
452
|
/** Injected by tests, so the split and the window can sit on either side of a boundary. */
|
|
474
453
|
readonly nowMs?: number | undefined;
|
|
475
454
|
readonly style?: CSSProperties | undefined;
|
|
476
455
|
}
|
|
477
|
-
declare function TelevetVisitsScreen({ controller: injected, onJoin, onReschedule, onBook, onBack, isRoot, revision, nowMs, style, }: TelevetVisitsScreenProps): ReactNode;
|
|
456
|
+
declare function TelevetVisitsScreen({ controller: injected, onJoin, onReschedule, onBook, onBack, isRoot, revision, returnedTo, nowMs, style, }: TelevetVisitsScreenProps): ReactNode;
|
|
478
457
|
|
|
479
458
|
type Css = CSSProperties;
|
|
480
459
|
declare function makeVisitStyles(theme: EverfurTheme): {
|
|
@@ -729,6 +708,12 @@ interface TelevetSlotPickerProps {
|
|
|
729
708
|
/** The slot whose hold is in flight, or null. Disables the whole grid. */
|
|
730
709
|
readonly busySlotId: string | null;
|
|
731
710
|
readonly onPick: (slot: TelevetSlot) => void;
|
|
711
|
+
/**
|
|
712
|
+
* The slot already chosen, if any. The strip opens on ITS day rather than on the first offered day, so a
|
|
713
|
+
* member who goes Back from a later step sees the day they picked and not the start of the window. Ignored
|
|
714
|
+
* when that day is not in `slots`.
|
|
715
|
+
*/
|
|
716
|
+
readonly selectedSlot?: TelevetSlot | null;
|
|
732
717
|
/** Rendered above the strip, for example a failure line from the container. */
|
|
733
718
|
readonly header?: ReactNode;
|
|
734
719
|
/**
|
|
@@ -742,7 +727,7 @@ interface TelevetSlotPickerProps {
|
|
|
742
727
|
readonly rowTestIdPrefix?: string;
|
|
743
728
|
readonly testID?: string;
|
|
744
729
|
}
|
|
745
|
-
declare function TelevetSlotPicker({ slots, busySlotId, onPick, header, dayGroupLabel, timeGroupLabel, rowTestIdPrefix, testID, }: TelevetSlotPickerProps): ReactNode;
|
|
730
|
+
declare function TelevetSlotPicker({ slots, busySlotId, onPick, selectedSlot, header, dayGroupLabel, timeGroupLabel, rowTestIdPrefix, testID, }: TelevetSlotPickerProps): ReactNode;
|
|
746
731
|
|
|
747
732
|
/** One "label ... value" row in the summary card, as a bound `<dt>` / `<dd>` pair. */
|
|
748
733
|
declare function TelevetSummaryRow({ label, value, last, testID, }: {
|
|
@@ -771,4 +756,4 @@ declare function TelevetSummaryCard({ children, testID }: {
|
|
|
771
756
|
readonly testID?: string;
|
|
772
757
|
}): ReactNode;
|
|
773
758
|
|
|
774
|
-
export { BACK_LABEL, type EverfurHeadingLevel, EverfurTelevet, EverfurTelevetBooking, type EverfurTelevetBookingProps, EverfurTelevetDialog, type EverfurTelevetDialogProps, EverfurTelevetFlow, EverfurTelevetFlowRequest, type EverfurTelevetProps, EverfurTelevetReschedule, type EverfurTelevetRescheduleProps, PetRef, TELEVET_BOOKING_COPY_WEB, TELEVET_EMERGENCY_EXITS_WEB,
|
|
759
|
+
export { BACK_LABEL, type EverfurHeadingLevel, EverfurTelevet, EverfurTelevetBooking, type EverfurTelevetBookingProps, EverfurTelevetDialog, type EverfurTelevetDialogProps, EverfurTelevetFlow, EverfurTelevetFlowRequest, type EverfurTelevetProps, EverfurTelevetReschedule, type EverfurTelevetRescheduleProps, PetRef, TELEVET_BOOKING_COPY_WEB, TELEVET_EMERGENCY_EXITS_WEB, TelevetBookingChrome, type TelevetBookingChromeProps, TelevetBookingController, TelevetBookingStep, TelevetCalendarWriter, type TelevetCancelTerms, TelevetCancelVisitForm, type TelevetCancelVisitFormProps, TelevetClinicianEmptyState, type TelevetClinicianEmptyStateProps, TelevetConsentCheckbox, TelevetConsult, type TelevetDay, TelevetDayStrip, type TelevetDayStripProps, type TelevetDiscardConfirm, TelevetEarlyEmergency, type TelevetEarlyEmergencyProps, TelevetEmergencyExits, type TelevetEmergencyExitsProps, TelevetEmptyRosterCause, TelevetEntitlementInterestState, type TelevetEntitlementInterestStateProps, type TelevetHistoryMode, TelevetIntakeMedia, type TelevetIntakeMediaItem, type TelevetIntakeMediaProps, TelevetJoinScreen, type TelevetJoinScreenProps, type TelevetLocationStatus, TelevetMediaDropNotice, type TelevetMediaDropNoticeProps, type TelevetMediaPicker, TelevetMediaShortfall, type TelevetPrimaryVet, type TelevetScreen, TelevetSlot, TelevetSlotPicker, type TelevetSlotPickerProps, TelevetStateInterestAction, type TelevetStateInterestActionProps, TelevetStateInterestAction$1 as TelevetStateInterestLifecycle, TelevetStateInterestWrite, TelevetSummaryCard, TelevetSummaryRow, TelevetTriageRead, TelevetVisitsScreen, type TelevetVisitsScreenProps, VetVisitIntent, televetDaysFromSlots, televetScreenForRequest };
|