@everfur/sdk 0.1.0 → 0.3.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/CHANGELOG.md +648 -1
- package/README.md +58 -23
- package/consent/package.json +8 -0
- package/dist/Chat-DPUD6dnc.d.cts +128 -0
- package/dist/Chat-DwAC2vhB.d.ts +128 -0
- package/dist/DepthViews-DNEM96Se.d.ts +16 -0
- package/dist/DepthViews-DP0R-DhB.d.cts +19 -0
- package/dist/DepthViews-D_3hl4xk.d.ts +19 -0
- package/dist/DepthViews-DbFhR4Du.d.cts +16 -0
- package/dist/ErrorPolicyPort-CNf4uQZP.d.cts +22 -0
- package/dist/ErrorPolicyPort-CwbfmxzJ.d.ts +22 -0
- package/dist/{EverfurResult-D92-uL82.d.cts → EverfurResult-DN9pL2Ab.d.cts} +11 -10
- package/dist/{EverfurResult-D92-uL82.d.ts → EverfurResult-DN9pL2Ab.d.ts} +11 -10
- package/dist/{PhotoController-BItt5M7u.d.cts → PhotoController-3l7MT9jA.d.cts} +1 -1
- package/dist/{PhotoController-D8zMTdcW.d.ts → PhotoController-vzY5bfY_.d.ts} +1 -1
- package/dist/animations/index.cjs +1 -1997
- package/dist/animations/index.d.cts +35 -35
- package/dist/animations/index.d.ts +35 -35
- package/dist/animations/index.js +1 -1972
- package/dist/attachments-5NeobOCd.d.ts +256 -0
- package/dist/attachments-Bw3iMQgu.d.ts +146 -0
- package/dist/attachments-CQgFrEQ7.d.cts +146 -0
- package/dist/attachments-D8T5re7e.d.cts +256 -0
- package/dist/casesRepository-ClLv6qMl.d.ts +188 -0
- package/dist/casesRepository-DHwtGRYY.d.cts +188 -0
- package/dist/chat/index.cjs +1 -1170
- package/dist/chat/index.d.cts +31 -53
- package/dist/chat/index.d.ts +31 -53
- package/dist/chat/index.js +1 -1167
- package/dist/client/index.cjs +9 -2315
- package/dist/client/index.d.cts +77 -15
- package/dist/client/index.d.ts +77 -15
- package/dist/client/index.js +9 -2215
- package/dist/{config-CiJ0PVBB.d.ts → config-CzTZGlfF.d.cts} +63 -25
- package/dist/{config-BSjBdxrZ.d.cts → config-DW60uRb9.d.ts} +63 -25
- package/dist/consent/index.cjs +1 -0
- package/dist/consent/index.d.cts +33 -0
- package/dist/consent/index.d.ts +33 -0
- package/dist/consent/index.js +1 -0
- package/dist/context-DXhqHlPU.d.ts +159 -0
- package/dist/context-XvTzq1tE.d.cts +159 -0
- package/dist/copy-Mjoo91aS.d.ts +198 -0
- package/dist/copy-bKDNigLb.d.cts +198 -0
- package/dist/core/index.cjs +13 -3175
- package/dist/core/index.d.cts +58 -12
- package/dist/core/index.d.ts +58 -12
- package/dist/core/index.js +13 -3163
- package/dist/depth-CErXCU8J.d.cts +502 -0
- package/dist/depth-DjDcJ6kH.d.ts +502 -0
- package/dist/entitlementRepository-DKdXFgTo.d.cts +698 -0
- package/dist/entitlementRepository-DSbzuyAW.d.ts +698 -0
- package/dist/{identity-DK9zORrG.d.ts → identity-BMx2SUOM.d.ts} +19 -6
- package/dist/{identity-Brl-lDd6.d.cts → identity-DI4eVx9S.d.cts} +19 -6
- package/dist/{ids-CJ1S6adf.d.cts → ids-B2GAAifq.d.cts} +1 -1
- package/dist/{ids-CJ1S6adf.d.ts → ids-B2GAAifq.d.ts} +1 -1
- package/dist/index.cjs +12 -4488
- package/dist/index.d.cts +29 -121
- package/dist/index.d.ts +29 -121
- package/dist/index.js +12 -4464
- package/dist/models-B-Uh2LTf.d.ts +214 -0
- package/dist/models-D2EUxPZY.d.cts +214 -0
- package/dist/notifications/index.cjs +2 -0
- package/dist/notifications/index.d.cts +17 -0
- package/dist/notifications/index.d.ts +17 -0
- package/dist/notifications/index.js +2 -0
- package/dist/pets-CtQdRpWo.d.ts +92 -0
- package/dist/pets-aB8q0JyX.d.cts +92 -0
- package/dist/photo/index.cjs +1 -2189
- package/dist/photo/index.d.cts +6 -6
- package/dist/photo/index.d.ts +6 -6
- package/dist/photo/index.js +1 -2186
- package/dist/ports-BN6RHF9W.d.cts +48 -0
- package/dist/ports-BN6RHF9W.d.ts +48 -0
- package/dist/ports-DEBzEhbp.d.cts +386 -0
- package/dist/ports-DMolTRzU.d.ts +386 -0
- package/dist/profile-CSs1wlXT.d.cts +93 -0
- package/dist/profile-CSs1wlXT.d.ts +93 -0
- package/dist/records/depth/index.cjs +2 -0
- package/dist/records/depth/index.d.cts +13 -0
- package/dist/records/depth/index.d.ts +13 -0
- package/dist/records/depth/index.js +2 -0
- package/dist/records/index.cjs +3 -2839
- package/dist/records/index.d.cts +137 -203
- package/dist/records/index.d.ts +137 -203
- package/dist/records/index.js +3 -2833
- package/dist/requestFunnel-CjW7uDuA.d.ts +87 -0
- package/dist/requestFunnel-L-BQfi0z.d.cts +87 -0
- package/dist/{resolve-Dq_4_agU.d.ts → resolve-D4Ywz5OS.d.cts} +10 -4
- package/dist/{resolve-Dq_4_agU.d.cts → resolve-D4Ywz5OS.d.ts} +10 -4
- package/dist/{runtime-BgQnA594.d.cts → runtime-B8s-_hv8.d.cts} +134 -59
- package/dist/{runtime-CBA-LvdM.d.ts → runtime-BR9ysG0J.d.ts} +134 -59
- package/dist/server/events/index.cjs +2 -0
- package/dist/server/events/index.d.cts +550 -0
- package/dist/server/events/index.d.ts +550 -0
- package/dist/server/events/index.js +2 -0
- package/dist/server/index.cjs +2 -533
- package/dist/server/index.d.cts +73 -18
- package/dist/server/index.d.ts +73 -18
- package/dist/server/index.js +2 -530
- package/dist/species-BXAIMh7I.d.cts +9 -0
- package/dist/species-BXAIMh7I.d.ts +9 -0
- package/dist/televet/index.cjs +1 -0
- package/dist/televet/index.d.cts +60 -0
- package/dist/televet/index.d.ts +60 -0
- package/dist/televet/index.js +1 -0
- package/dist/testing/index.cjs +5 -823
- package/dist/testing/index.d.cts +17 -3
- package/dist/testing/index.d.ts +17 -3
- package/dist/testing/index.js +5 -820
- package/dist/testing/rn/index.cjs +1 -449
- package/dist/testing/rn/index.d.cts +17 -29
- package/dist/testing/rn/index.d.ts +17 -29
- package/dist/testing/rn/index.js +1 -444
- package/dist/testing/web/index.cjs +1 -0
- package/dist/testing/web/index.d.cts +131 -0
- package/dist/testing/web/index.d.ts +131 -0
- package/dist/testing/web/index.js +1 -0
- package/dist/timelineRows-CaohZzXS.d.cts +19 -0
- package/dist/timelineRows-DZed6dAM.d.ts +19 -0
- package/dist/typeStyle-0TydiZ1w.d.cts +19 -0
- package/dist/typeStyle-CWMsoe6b.d.ts +19 -0
- package/dist/uploadTransport-D0M0T4hN.d.ts +38 -0
- package/dist/uploadTransport-DKJHs3Yj.d.cts +38 -0
- package/dist/useRecordsDepth-BHBzJ76R.d.cts +237 -0
- package/dist/useRecordsDepth-BU-OhzH6.d.ts +237 -0
- package/dist/useVetVisit-Bc84hWUU.d.cts +187 -0
- package/dist/useVetVisit-CjmMa896.d.ts +187 -0
- package/dist/video/index.cjs +1 -1941
- package/dist/video/index.d.cts +4 -4
- package/dist/video/index.d.ts +4 -4
- package/dist/video/index.js +1 -1938
- package/dist/view-C3qPIXGX.d.cts +310 -0
- package/dist/view-DtSPYpKa.d.ts +310 -0
- package/dist/visitIntent-D7_yVp1I.d.cts +8 -0
- package/dist/visitIntent-D7_yVp1I.d.ts +8 -0
- package/dist/web/consent/index.cjs +1 -0
- package/dist/web/consent/index.d.cts +34 -0
- package/dist/web/consent/index.d.ts +34 -0
- package/dist/web/consent/index.js +1 -0
- package/dist/web/index.cjs +14 -0
- package/dist/web/index.d.cts +217 -0
- package/dist/web/index.d.ts +217 -0
- package/dist/web/index.js +14 -0
- package/dist/web/notifications/index.cjs +2 -0
- package/dist/web/notifications/index.d.cts +213 -0
- package/dist/web/notifications/index.d.ts +213 -0
- package/dist/web/notifications/index.js +2 -0
- package/dist/web/records/depth/index.cjs +2 -0
- package/dist/web/records/depth/index.d.cts +12 -0
- package/dist/web/records/depth/index.d.ts +12 -0
- package/dist/web/records/depth/index.js +2 -0
- package/dist/web/records/index.cjs +4 -0
- package/dist/web/records/index.d.cts +194 -0
- package/dist/web/records/index.d.ts +194 -0
- package/dist/web/records/index.js +4 -0
- package/dist/web/televet/index.cjs +1 -0
- package/dist/web/televet/index.d.cts +50 -0
- package/dist/web/televet/index.d.ts +50 -0
- package/dist/web/televet/index.js +1 -0
- package/notifications/package.json +8 -0
- package/package.json +197 -9
- package/records/depth/package.json +8 -0
- package/server/events/device-blocked.cjs +15 -0
- package/server/events/package.json +9 -0
- package/televet/package.json +8 -0
- package/testing/web/native-blocked.cjs +12 -0
- package/testing/web/package.json +8 -0
- package/web/consent/native-blocked.cjs +12 -0
- package/web/consent/package.json +8 -0
- package/web/native-blocked.cjs +12 -0
- package/web/notifications/native-blocked.cjs +12 -0
- package/web/notifications/package.json +8 -0
- package/web/package.json +8 -0
- package/web/records/depth/native-blocked.cjs +12 -0
- package/web/records/depth/package.json +8 -0
- package/web/records/native-blocked.cjs +12 -0
- package/web/records/package.json +8 -0
- package/web/televet/native-blocked.cjs +12 -0
- package/web/televet/package.json +8 -0
- package/dist/ChatController-CKdBvPj2.d.ts +0 -146
- package/dist/ChatController-CpUMvvZf.d.cts +0 -146
- package/dist/FilePort-BabWrv7I.d.cts +0 -22
- package/dist/FilePort-BabWrv7I.d.ts +0 -22
- package/dist/petsRepository-BEGb97M9.d.cts +0 -326
- package/dist/petsRepository-Bu18r2kK.d.ts +0 -326
- package/dist/requestFunnel-DuUH-kAe.d.cts +0 -28
- package/dist/requestFunnel-dio5OmR9.d.ts +0 -28
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { R as RecordsController } from '../../view-C3qPIXGX.cjs';
|
|
2
|
+
export { C as ClinicCall, F as FactOverlay, a as REQUEST_TIMELINE_TITLES, b as RecordSharesStatus, c as RecordsDashboardState, d as RecordsDashboardView, e as RecordsEmptyVariant, f as RecordsStatus, g as RequestTimelineEvent, h as RequestTimelineEventKey, i as RequestTimelineEventState, S as ShareRowView, U as UploadDocumentInput, j as UploadQueueItem, k as UploadSkipReason, l as UseEverfurRecordsState, m as UseRecordFactEditState, n as UseRecordPdfLinkState, o as UseRecordSharesState, p as UseRecordsMarkersState, q as applyFactOverlay, r as buildRequestTimeline, s as deriveRecordsDashboardState, t as isFactEditable, u as pickPetRecordsRequest, v as selectClinicCall, w as selectDashboardView, x as selectPrimaryLabel, y as selectRequestList, z as selectRequestTitle, A as useEverfurRecords, B as useEverfurRecordsClinic, D as useEverfurRecordsClinicBatch, E as useRecordFactEdit, G as useRecordPdfLink, H as useRecordShares, I as useRecordsMarkers } from '../../view-C3qPIXGX.cjs';
|
|
3
|
+
import { CSSProperties, ReactNode, PointerEvent } from 'react';
|
|
4
|
+
import { P as PetRef, R as RecordsRequestId } from '../../ids-B2GAAifq.cjs';
|
|
5
|
+
export { B as Brand, D as DocumentId, _ as __brand } from '../../ids-B2GAAifq.cjs';
|
|
6
|
+
import { d as RecordsHostSeams, i as RecordsClinicController, j as CaptureRecordsSignature, e as RecordsScreen, f as RecordsScreenBaseProps, C as ClinicDraft, k as ClinicRequestBaseProps, l as ClinicBatchBaseProps } from '../../useRecordsDepth-BHBzJ76R.cjs';
|
|
7
|
+
export { m as CapturedRecordsSignature, a as ClinicLocation, n as RecordsAsk, R as RecordsAskEntityRef, b as RecordsAskHandler, c as RecordsDepthStatus, o as RecordsNavAction, p as RecordsNavState, q as RecordsSignatureContext, g as RecordsUrlKind, r as RegisterSignaturePng, s as currentRecordsScreen, t as initialRecordsNav, v as popRecordsNav, w as pushRecordsNav, x as recordsNavReducer, y as replaceRecordsNav, z as resetRecordsNav, A as transitionRecordsNav } from '../../useRecordsDepth-BHBzJ76R.cjs';
|
|
8
|
+
import { d as RecordsRequestView } from '../../models-D2EUxPZY.cjs';
|
|
9
|
+
export { h as ConsentState, C as CreateUploadRequestInput, G as GrantConsentInput, j as RECORDS_TERMINAL, R as RecordDocumentMeta, a as RecordEntity, k as RecordForwardItem, l as RecordIdentityField, b as RecordOrigin, m as RecordSeries, n as RecordSeriesPoint, i as RecordsDenialReason, f as RecordsRequestGroupView, c as RecordsRequestStatus, e as RecordsSimpleStatus, g as RecordsView, U as UploadedDocument, o as isTerminalStatus, r as recordsDenialReasonOf } from '../../models-D2EUxPZY.cjs';
|
|
10
|
+
export { C as CreateClinicRequestBatchInput, a9 as CreateClinicRequestInput, w as FactFieldValue, z as RECORDS_CLINIC_BATCH_MAX, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, A as RecordFactEditInput, B as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, D as RecordMarker, E as RecordMarkerLatest, G as RecordMarkerPoint, I as RecordMarkerSummary, J as RecordMarkersView, K as RecordPdfLink, k as RecordPhysicalExam, L as RecordShare, M as RecordShareLink, a8 as RecordsAuthorizationCopy, N as RecordsAuthorizationSignature, l as RecordsClinic, O as RecordsClinicBatch, P as RecordsClinicBatchClient, Q as RecordsClinicBatchItem, S as RecordsClinicBatchResult, a5 as RecordsClinicSearchInput, a6 as RecordsClinicSearchPage, T as RecordsClinicTarget, m as RecordsDepthClient, a7 as RecordsRecentClinicsInput, U as RecordsSignatureSuggestion, aa as RecordsSignatureUploadPolicy, n as RecordsTimelineMedication, o as RecordsTimelineVaccine, p as RecordsTimelineView, q as RecordsTimelineVisit, r as RecordsTimelineWeight } from '../../depth-CErXCU8J.cjs';
|
|
11
|
+
export { a as EverfurDocumentContributionsProps, c as EverfurRecordsDepthProps } from '../../DepthViews-DbFhR4Du.cjs';
|
|
12
|
+
import { U as UploadTransport, F as FileHandle } from '../../ports-BN6RHF9W.cjs';
|
|
13
|
+
export { a as UploadPolicyWire } from '../../ports-BN6RHF9W.cjs';
|
|
14
|
+
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as EverfurResult } from '../../EverfurResult-DN9pL2Ab.cjs';
|
|
15
|
+
import '../../requestFunnel-L-BQfi0z.cjs';
|
|
16
|
+
import '../../ErrorPolicyPort-CNf4uQZP.cjs';
|
|
17
|
+
import '../../config-CzTZGlfF.cjs';
|
|
18
|
+
import '../../identity-DI4eVx9S.cjs';
|
|
19
|
+
|
|
20
|
+
type RecordsHistoryMode = 'memory' | 'browser';
|
|
21
|
+
interface EverfurRecordsProps extends RecordsHostSeams {
|
|
22
|
+
readonly petRef: PetRef;
|
|
23
|
+
/** The pet's display name for headers and lead copy; absent, the consumer's own `your pet` forms. */
|
|
24
|
+
readonly petName?: string;
|
|
25
|
+
/** Host/test seam: inject a records controller instead of acquiring one from the runtime. */
|
|
26
|
+
readonly controller?: RecordsController;
|
|
27
|
+
/** Host/test seam over the clinic controller. */
|
|
28
|
+
readonly clinicController?: RecordsClinicController;
|
|
29
|
+
/** The consent-text version the content-exposure grant records (host/product owned). */
|
|
30
|
+
readonly consentVersion?: string;
|
|
31
|
+
/** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
|
|
32
|
+
readonly ownerName?: string;
|
|
33
|
+
/** A host signature component for the clinic authorization, instead of the built-in canvas. */
|
|
34
|
+
readonly onCaptureSignature?: CaptureRecordsSignature;
|
|
35
|
+
/** The screen the flow starts on; the dashboard when omitted. */
|
|
36
|
+
readonly initialScreen?: RecordsScreen;
|
|
37
|
+
/** `memory` (default) keeps the stack in state; `browser` mirrors it onto the history stack. */
|
|
38
|
+
readonly historyMode?: RecordsHistoryMode;
|
|
39
|
+
/** The root screen's back control; absent, the root draws none. */
|
|
40
|
+
readonly onExit?: () => void;
|
|
41
|
+
readonly style?: CSSProperties;
|
|
42
|
+
readonly className?: string;
|
|
43
|
+
/** Your own placeholder while the entitlement verdict is pending on a cold mount. */
|
|
44
|
+
readonly renderPending?: () => ReactNode;
|
|
45
|
+
}
|
|
46
|
+
declare function EverfurRecordsFlow(props: EverfurRecordsProps): ReactNode;
|
|
47
|
+
/** The public prebuilt records surface: the flow, starting at the dashboard. */
|
|
48
|
+
declare const EverfurRecords: typeof EverfurRecordsFlow;
|
|
49
|
+
|
|
50
|
+
interface EverfurRecordsDashboardProps extends RecordsScreenBaseProps {
|
|
51
|
+
readonly controller?: RecordsController;
|
|
52
|
+
readonly consentVersion?: string;
|
|
53
|
+
readonly style?: CSSProperties;
|
|
54
|
+
readonly className?: string;
|
|
55
|
+
readonly renderPending?: () => ReactNode;
|
|
56
|
+
}
|
|
57
|
+
declare function EverfurRecordsDashboard(props: EverfurRecordsDashboardProps): ReactNode;
|
|
58
|
+
|
|
59
|
+
interface EverfurRecordsRequestProps extends RecordsScreenBaseProps {
|
|
60
|
+
readonly requestId: RecordsRequestId;
|
|
61
|
+
readonly controller?: RecordsController;
|
|
62
|
+
readonly style?: CSSProperties;
|
|
63
|
+
readonly className?: string;
|
|
64
|
+
readonly renderPending?: () => ReactNode;
|
|
65
|
+
readonly nowMs?: number;
|
|
66
|
+
}
|
|
67
|
+
declare function EverfurRecordsRequest(props: EverfurRecordsRequestProps): ReactNode;
|
|
68
|
+
|
|
69
|
+
interface EverfurRecordDetailProps extends RecordsScreenBaseProps {
|
|
70
|
+
readonly controller?: RecordsController;
|
|
71
|
+
readonly consentVersion?: string;
|
|
72
|
+
readonly style?: CSSProperties;
|
|
73
|
+
readonly className?: string;
|
|
74
|
+
readonly renderPending?: () => ReactNode;
|
|
75
|
+
}
|
|
76
|
+
declare function EverfurRecordDetail(props: EverfurRecordDetailProps): ReactNode;
|
|
77
|
+
|
|
78
|
+
interface EverfurRecordDocumentProps extends RecordsScreenBaseProps {
|
|
79
|
+
readonly controller?: RecordsController;
|
|
80
|
+
readonly consentVersion?: string;
|
|
81
|
+
readonly style?: CSSProperties;
|
|
82
|
+
readonly className?: string;
|
|
83
|
+
readonly renderPending?: () => ReactNode;
|
|
84
|
+
}
|
|
85
|
+
declare function EverfurRecordDocument(props: EverfurRecordDocumentProps): ReactNode;
|
|
86
|
+
|
|
87
|
+
interface EverfurRecordsConsentProps extends RecordsScreenBaseProps {
|
|
88
|
+
readonly clinic: ClinicDraft;
|
|
89
|
+
readonly ownerName?: string;
|
|
90
|
+
readonly onCaptureSignature?: CaptureRecordsSignature;
|
|
91
|
+
readonly onCreated?: (request: RecordsRequestView) => void;
|
|
92
|
+
readonly controller?: RecordsClinicController;
|
|
93
|
+
readonly style?: CSSProperties;
|
|
94
|
+
readonly className?: string;
|
|
95
|
+
}
|
|
96
|
+
declare function EverfurRecordsConsent(props: EverfurRecordsConsentProps): ReactNode;
|
|
97
|
+
|
|
98
|
+
interface EverfurClinicPickerProps extends RecordsScreenBaseProps {
|
|
99
|
+
readonly controller?: RecordsClinicController;
|
|
100
|
+
readonly recordsController?: RecordsController;
|
|
101
|
+
readonly style?: CSSProperties;
|
|
102
|
+
readonly className?: string;
|
|
103
|
+
}
|
|
104
|
+
declare function EverfurClinicPicker(props: EverfurClinicPickerProps): ReactNode;
|
|
105
|
+
|
|
106
|
+
interface EverfurRecordsUploadProps extends RecordsScreenBaseProps {
|
|
107
|
+
readonly controller?: RecordsController;
|
|
108
|
+
readonly style?: CSSProperties;
|
|
109
|
+
readonly className?: string;
|
|
110
|
+
readonly renderPending?: () => ReactNode;
|
|
111
|
+
}
|
|
112
|
+
declare function EverfurRecordsUpload(props: EverfurRecordsUploadProps): ReactNode;
|
|
113
|
+
|
|
114
|
+
interface EverfurClinicRequestProps extends ClinicRequestBaseProps {
|
|
115
|
+
readonly style?: CSSProperties;
|
|
116
|
+
readonly className?: string;
|
|
117
|
+
}
|
|
118
|
+
/** Opt-in clinic release flow, reusing the consumer picker/scope/signature mechanics. */
|
|
119
|
+
declare function EverfurClinicRequest(props: EverfurClinicRequestProps): ReactNode;
|
|
120
|
+
|
|
121
|
+
interface EverfurClinicRequestBatchProps extends ClinicBatchBaseProps {
|
|
122
|
+
readonly style?: CSSProperties;
|
|
123
|
+
readonly className?: string;
|
|
124
|
+
}
|
|
125
|
+
declare function EverfurClinicRequestBatch(props: EverfurClinicRequestBatchProps): ReactNode;
|
|
126
|
+
|
|
127
|
+
interface WebRecordsUploadTransportOptions {
|
|
128
|
+
/**
|
|
129
|
+
* Test seam: the XMLHttpRequest constructor to use. Defaults to the global one. A host has no reason to
|
|
130
|
+
* set it.
|
|
131
|
+
*/
|
|
132
|
+
readonly xhr?: () => XMLHttpRequest;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Create the browser records upload transport. Pass it as `uploadTransport` on the web `EverfurConfig`:
|
|
136
|
+
*
|
|
137
|
+
* ```tsx
|
|
138
|
+
* <EverfurProvider config={{ publishableKey, apiBaseUrl, uploadTransport: createWebRecordsUploadTransport() }} ...>
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* It needs the picked file's bytes on `FileHandle.blob` (see `fileToHandle`). A handle with no blob rejects
|
|
142
|
+
* before any request is made.
|
|
143
|
+
*/
|
|
144
|
+
declare function createWebRecordsUploadTransport(options?: WebRecordsUploadTransportOptions): UploadTransport;
|
|
145
|
+
|
|
146
|
+
/** The `accept` hint for the picker. A hint only: the signature check above is what decides. */
|
|
147
|
+
declare const RECORDS_DOCUMENT_ACCEPT = "application/pdf,.pdf";
|
|
148
|
+
/** True when the blob starts with the PDF signature. An unreadable blob is not a PDF. */
|
|
149
|
+
declare function isPdfBlob(blob: Blob): Promise<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* Build the records `FileHandle` for a browser `File` (or any Blob). `mimeType` is `application/pdf` only when
|
|
152
|
+
* the bytes carry the PDF signature; `sizeBytes` is the real size, so an oversize file is refused by the
|
|
153
|
+
* controller before initiate as well.
|
|
154
|
+
*/
|
|
155
|
+
declare function fileToHandle(file: Blob): Promise<FileHandle>;
|
|
156
|
+
/**
|
|
157
|
+
* The same gate the controller applies before initiate (PDF, 0 < size <= 25 MiB), for a surface that must
|
|
158
|
+
* decide BEFORE it creates a request: a refused file should not leave an empty request behind.
|
|
159
|
+
*/
|
|
160
|
+
declare function isUploadableHandle(handle: FileHandle): boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Open the browser's file chooser for one document and resolve its handle, or null when the user picks
|
|
163
|
+
* nothing. For a host that builds its own records UI on `useEverfurRecords`; the prebuilt surface renders its
|
|
164
|
+
* own input instead. Must be called from a user gesture (a click handler), or the browser blocks the chooser.
|
|
165
|
+
*
|
|
166
|
+
* The input is attached to the document while the chooser is open (Safari does not open a detached input)
|
|
167
|
+
* and removed once it settles. A browser that never fires `cancel` leaves the promise pending when the user
|
|
168
|
+
* dismisses the chooser; nothing is held but the closure.
|
|
169
|
+
*/
|
|
170
|
+
declare function pickDocument(doc?: Document): Promise<FileHandle | null>;
|
|
171
|
+
|
|
172
|
+
interface SignatureCanvasState {
|
|
173
|
+
readonly canvas: React.RefObject<HTMLCanvasElement>;
|
|
174
|
+
readonly mode: 'draw' | 'type';
|
|
175
|
+
readonly typed: string;
|
|
176
|
+
readonly signed: boolean;
|
|
177
|
+
readonly setTyped: (value: string) => void;
|
|
178
|
+
readonly toggle: () => void;
|
|
179
|
+
readonly clear: () => void;
|
|
180
|
+
readonly onPointerDown: (event: PointerEvent<HTMLCanvasElement>) => void;
|
|
181
|
+
readonly onPointerMove: (event: PointerEvent<HTMLCanvasElement>) => void;
|
|
182
|
+
readonly onPointerUp: () => void;
|
|
183
|
+
/** The consumer's initiate / direct S3 / complete chain over the current canvas; throws on failure. */
|
|
184
|
+
readonly register: (controller: RecordsClinicController, signal: AbortSignal) => Promise<{
|
|
185
|
+
readonly signatureId: string;
|
|
186
|
+
}>;
|
|
187
|
+
}
|
|
188
|
+
declare function useSignatureCanvas(onEdit?: () => void): SignatureCanvasState;
|
|
189
|
+
declare function SignatureCanvas({ pad, disabled }: {
|
|
190
|
+
readonly pad: SignatureCanvasState;
|
|
191
|
+
readonly disabled: boolean;
|
|
192
|
+
}): ReactNode;
|
|
193
|
+
|
|
194
|
+
export { CaptureRecordsSignature, ClinicBatchBaseProps, ClinicDraft, ClinicRequestBaseProps, EverfurClinicPicker, type EverfurClinicPickerProps, EverfurClinicRequest, EverfurClinicRequestBatch, type EverfurClinicRequestBatchProps, type EverfurClinicRequestProps, EverfurRecordDetail, type EverfurRecordDetailProps, EverfurRecordDocument, type EverfurRecordDocumentProps, EverfurRecords, EverfurRecordsConsent, type EverfurRecordsConsentProps, EverfurRecordsDashboard, type EverfurRecordsDashboardProps, EverfurRecordsFlow, type EverfurRecordsProps, EverfurRecordsRequest, type EverfurRecordsRequestProps, EverfurRecordsUpload, type EverfurRecordsUploadProps, FileHandle, PetRef, RECORDS_DOCUMENT_ACCEPT, RecordsClinicController, RecordsController, type RecordsHistoryMode, RecordsHostSeams, RecordsRequestId, RecordsRequestView, RecordsScreen, RecordsScreenBaseProps, SignatureCanvas, type SignatureCanvasState, UploadTransport, type WebRecordsUploadTransportOptions, createWebRecordsUploadTransport, fileToHandle, isPdfBlob, isUploadableHandle, pickDocument, useSignatureCanvas };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { R as RecordsController } from '../../view-DtSPYpKa.js';
|
|
2
|
+
export { C as ClinicCall, F as FactOverlay, a as REQUEST_TIMELINE_TITLES, b as RecordSharesStatus, c as RecordsDashboardState, d as RecordsDashboardView, e as RecordsEmptyVariant, f as RecordsStatus, g as RequestTimelineEvent, h as RequestTimelineEventKey, i as RequestTimelineEventState, S as ShareRowView, U as UploadDocumentInput, j as UploadQueueItem, k as UploadSkipReason, l as UseEverfurRecordsState, m as UseRecordFactEditState, n as UseRecordPdfLinkState, o as UseRecordSharesState, p as UseRecordsMarkersState, q as applyFactOverlay, r as buildRequestTimeline, s as deriveRecordsDashboardState, t as isFactEditable, u as pickPetRecordsRequest, v as selectClinicCall, w as selectDashboardView, x as selectPrimaryLabel, y as selectRequestList, z as selectRequestTitle, A as useEverfurRecords, B as useEverfurRecordsClinic, D as useEverfurRecordsClinicBatch, E as useRecordFactEdit, G as useRecordPdfLink, H as useRecordShares, I as useRecordsMarkers } from '../../view-DtSPYpKa.js';
|
|
3
|
+
import { CSSProperties, ReactNode, PointerEvent } from 'react';
|
|
4
|
+
import { P as PetRef, R as RecordsRequestId } from '../../ids-B2GAAifq.js';
|
|
5
|
+
export { B as Brand, D as DocumentId, _ as __brand } from '../../ids-B2GAAifq.js';
|
|
6
|
+
import { d as RecordsHostSeams, i as RecordsClinicController, j as CaptureRecordsSignature, e as RecordsScreen, f as RecordsScreenBaseProps, C as ClinicDraft, k as ClinicRequestBaseProps, l as ClinicBatchBaseProps } from '../../useRecordsDepth-BU-OhzH6.js';
|
|
7
|
+
export { m as CapturedRecordsSignature, a as ClinicLocation, n as RecordsAsk, R as RecordsAskEntityRef, b as RecordsAskHandler, c as RecordsDepthStatus, o as RecordsNavAction, p as RecordsNavState, q as RecordsSignatureContext, g as RecordsUrlKind, r as RegisterSignaturePng, s as currentRecordsScreen, t as initialRecordsNav, v as popRecordsNav, w as pushRecordsNav, x as recordsNavReducer, y as replaceRecordsNav, z as resetRecordsNav, A as transitionRecordsNav } from '../../useRecordsDepth-BU-OhzH6.js';
|
|
8
|
+
import { d as RecordsRequestView } from '../../models-B-Uh2LTf.js';
|
|
9
|
+
export { h as ConsentState, C as CreateUploadRequestInput, G as GrantConsentInput, j as RECORDS_TERMINAL, R as RecordDocumentMeta, a as RecordEntity, k as RecordForwardItem, l as RecordIdentityField, b as RecordOrigin, m as RecordSeries, n as RecordSeriesPoint, i as RecordsDenialReason, f as RecordsRequestGroupView, c as RecordsRequestStatus, e as RecordsSimpleStatus, g as RecordsView, U as UploadedDocument, o as isTerminalStatus, r as recordsDenialReasonOf } from '../../models-B-Uh2LTf.js';
|
|
10
|
+
export { C as CreateClinicRequestBatchInput, a9 as CreateClinicRequestInput, w as FactFieldValue, z as RECORDS_CLINIC_BATCH_MAX, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, A as RecordFactEditInput, B as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, D as RecordMarker, E as RecordMarkerLatest, G as RecordMarkerPoint, I as RecordMarkerSummary, J as RecordMarkersView, K as RecordPdfLink, k as RecordPhysicalExam, L as RecordShare, M as RecordShareLink, a8 as RecordsAuthorizationCopy, N as RecordsAuthorizationSignature, l as RecordsClinic, O as RecordsClinicBatch, P as RecordsClinicBatchClient, Q as RecordsClinicBatchItem, S as RecordsClinicBatchResult, a5 as RecordsClinicSearchInput, a6 as RecordsClinicSearchPage, T as RecordsClinicTarget, m as RecordsDepthClient, a7 as RecordsRecentClinicsInput, U as RecordsSignatureSuggestion, aa as RecordsSignatureUploadPolicy, n as RecordsTimelineMedication, o as RecordsTimelineVaccine, p as RecordsTimelineView, q as RecordsTimelineVisit, r as RecordsTimelineWeight } from '../../depth-DjDcJ6kH.js';
|
|
11
|
+
export { a as EverfurDocumentContributionsProps, c as EverfurRecordsDepthProps } from '../../DepthViews-DNEM96Se.js';
|
|
12
|
+
import { U as UploadTransport, F as FileHandle } from '../../ports-BN6RHF9W.js';
|
|
13
|
+
export { a as UploadPolicyWire } from '../../ports-BN6RHF9W.js';
|
|
14
|
+
export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode, c as EverfurResult } from '../../EverfurResult-DN9pL2Ab.js';
|
|
15
|
+
import '../../requestFunnel-CjW7uDuA.js';
|
|
16
|
+
import '../../ErrorPolicyPort-CwbfmxzJ.js';
|
|
17
|
+
import '../../config-DW60uRb9.js';
|
|
18
|
+
import '../../identity-BMx2SUOM.js';
|
|
19
|
+
|
|
20
|
+
type RecordsHistoryMode = 'memory' | 'browser';
|
|
21
|
+
interface EverfurRecordsProps extends RecordsHostSeams {
|
|
22
|
+
readonly petRef: PetRef;
|
|
23
|
+
/** The pet's display name for headers and lead copy; absent, the consumer's own `your pet` forms. */
|
|
24
|
+
readonly petName?: string;
|
|
25
|
+
/** Host/test seam: inject a records controller instead of acquiring one from the runtime. */
|
|
26
|
+
readonly controller?: RecordsController;
|
|
27
|
+
/** Host/test seam over the clinic controller. */
|
|
28
|
+
readonly clinicController?: RecordsClinicController;
|
|
29
|
+
/** The consent-text version the content-exposure grant records (host/product owned). */
|
|
30
|
+
readonly consentVersion?: string;
|
|
31
|
+
/** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
|
|
32
|
+
readonly ownerName?: string;
|
|
33
|
+
/** A host signature component for the clinic authorization, instead of the built-in canvas. */
|
|
34
|
+
readonly onCaptureSignature?: CaptureRecordsSignature;
|
|
35
|
+
/** The screen the flow starts on; the dashboard when omitted. */
|
|
36
|
+
readonly initialScreen?: RecordsScreen;
|
|
37
|
+
/** `memory` (default) keeps the stack in state; `browser` mirrors it onto the history stack. */
|
|
38
|
+
readonly historyMode?: RecordsHistoryMode;
|
|
39
|
+
/** The root screen's back control; absent, the root draws none. */
|
|
40
|
+
readonly onExit?: () => void;
|
|
41
|
+
readonly style?: CSSProperties;
|
|
42
|
+
readonly className?: string;
|
|
43
|
+
/** Your own placeholder while the entitlement verdict is pending on a cold mount. */
|
|
44
|
+
readonly renderPending?: () => ReactNode;
|
|
45
|
+
}
|
|
46
|
+
declare function EverfurRecordsFlow(props: EverfurRecordsProps): ReactNode;
|
|
47
|
+
/** The public prebuilt records surface: the flow, starting at the dashboard. */
|
|
48
|
+
declare const EverfurRecords: typeof EverfurRecordsFlow;
|
|
49
|
+
|
|
50
|
+
interface EverfurRecordsDashboardProps extends RecordsScreenBaseProps {
|
|
51
|
+
readonly controller?: RecordsController;
|
|
52
|
+
readonly consentVersion?: string;
|
|
53
|
+
readonly style?: CSSProperties;
|
|
54
|
+
readonly className?: string;
|
|
55
|
+
readonly renderPending?: () => ReactNode;
|
|
56
|
+
}
|
|
57
|
+
declare function EverfurRecordsDashboard(props: EverfurRecordsDashboardProps): ReactNode;
|
|
58
|
+
|
|
59
|
+
interface EverfurRecordsRequestProps extends RecordsScreenBaseProps {
|
|
60
|
+
readonly requestId: RecordsRequestId;
|
|
61
|
+
readonly controller?: RecordsController;
|
|
62
|
+
readonly style?: CSSProperties;
|
|
63
|
+
readonly className?: string;
|
|
64
|
+
readonly renderPending?: () => ReactNode;
|
|
65
|
+
readonly nowMs?: number;
|
|
66
|
+
}
|
|
67
|
+
declare function EverfurRecordsRequest(props: EverfurRecordsRequestProps): ReactNode;
|
|
68
|
+
|
|
69
|
+
interface EverfurRecordDetailProps extends RecordsScreenBaseProps {
|
|
70
|
+
readonly controller?: RecordsController;
|
|
71
|
+
readonly consentVersion?: string;
|
|
72
|
+
readonly style?: CSSProperties;
|
|
73
|
+
readonly className?: string;
|
|
74
|
+
readonly renderPending?: () => ReactNode;
|
|
75
|
+
}
|
|
76
|
+
declare function EverfurRecordDetail(props: EverfurRecordDetailProps): ReactNode;
|
|
77
|
+
|
|
78
|
+
interface EverfurRecordDocumentProps extends RecordsScreenBaseProps {
|
|
79
|
+
readonly controller?: RecordsController;
|
|
80
|
+
readonly consentVersion?: string;
|
|
81
|
+
readonly style?: CSSProperties;
|
|
82
|
+
readonly className?: string;
|
|
83
|
+
readonly renderPending?: () => ReactNode;
|
|
84
|
+
}
|
|
85
|
+
declare function EverfurRecordDocument(props: EverfurRecordDocumentProps): ReactNode;
|
|
86
|
+
|
|
87
|
+
interface EverfurRecordsConsentProps extends RecordsScreenBaseProps {
|
|
88
|
+
readonly clinic: ClinicDraft;
|
|
89
|
+
readonly ownerName?: string;
|
|
90
|
+
readonly onCaptureSignature?: CaptureRecordsSignature;
|
|
91
|
+
readonly onCreated?: (request: RecordsRequestView) => void;
|
|
92
|
+
readonly controller?: RecordsClinicController;
|
|
93
|
+
readonly style?: CSSProperties;
|
|
94
|
+
readonly className?: string;
|
|
95
|
+
}
|
|
96
|
+
declare function EverfurRecordsConsent(props: EverfurRecordsConsentProps): ReactNode;
|
|
97
|
+
|
|
98
|
+
interface EverfurClinicPickerProps extends RecordsScreenBaseProps {
|
|
99
|
+
readonly controller?: RecordsClinicController;
|
|
100
|
+
readonly recordsController?: RecordsController;
|
|
101
|
+
readonly style?: CSSProperties;
|
|
102
|
+
readonly className?: string;
|
|
103
|
+
}
|
|
104
|
+
declare function EverfurClinicPicker(props: EverfurClinicPickerProps): ReactNode;
|
|
105
|
+
|
|
106
|
+
interface EverfurRecordsUploadProps extends RecordsScreenBaseProps {
|
|
107
|
+
readonly controller?: RecordsController;
|
|
108
|
+
readonly style?: CSSProperties;
|
|
109
|
+
readonly className?: string;
|
|
110
|
+
readonly renderPending?: () => ReactNode;
|
|
111
|
+
}
|
|
112
|
+
declare function EverfurRecordsUpload(props: EverfurRecordsUploadProps): ReactNode;
|
|
113
|
+
|
|
114
|
+
interface EverfurClinicRequestProps extends ClinicRequestBaseProps {
|
|
115
|
+
readonly style?: CSSProperties;
|
|
116
|
+
readonly className?: string;
|
|
117
|
+
}
|
|
118
|
+
/** Opt-in clinic release flow, reusing the consumer picker/scope/signature mechanics. */
|
|
119
|
+
declare function EverfurClinicRequest(props: EverfurClinicRequestProps): ReactNode;
|
|
120
|
+
|
|
121
|
+
interface EverfurClinicRequestBatchProps extends ClinicBatchBaseProps {
|
|
122
|
+
readonly style?: CSSProperties;
|
|
123
|
+
readonly className?: string;
|
|
124
|
+
}
|
|
125
|
+
declare function EverfurClinicRequestBatch(props: EverfurClinicRequestBatchProps): ReactNode;
|
|
126
|
+
|
|
127
|
+
interface WebRecordsUploadTransportOptions {
|
|
128
|
+
/**
|
|
129
|
+
* Test seam: the XMLHttpRequest constructor to use. Defaults to the global one. A host has no reason to
|
|
130
|
+
* set it.
|
|
131
|
+
*/
|
|
132
|
+
readonly xhr?: () => XMLHttpRequest;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Create the browser records upload transport. Pass it as `uploadTransport` on the web `EverfurConfig`:
|
|
136
|
+
*
|
|
137
|
+
* ```tsx
|
|
138
|
+
* <EverfurProvider config={{ publishableKey, apiBaseUrl, uploadTransport: createWebRecordsUploadTransport() }} ...>
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* It needs the picked file's bytes on `FileHandle.blob` (see `fileToHandle`). A handle with no blob rejects
|
|
142
|
+
* before any request is made.
|
|
143
|
+
*/
|
|
144
|
+
declare function createWebRecordsUploadTransport(options?: WebRecordsUploadTransportOptions): UploadTransport;
|
|
145
|
+
|
|
146
|
+
/** The `accept` hint for the picker. A hint only: the signature check above is what decides. */
|
|
147
|
+
declare const RECORDS_DOCUMENT_ACCEPT = "application/pdf,.pdf";
|
|
148
|
+
/** True when the blob starts with the PDF signature. An unreadable blob is not a PDF. */
|
|
149
|
+
declare function isPdfBlob(blob: Blob): Promise<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* Build the records `FileHandle` for a browser `File` (or any Blob). `mimeType` is `application/pdf` only when
|
|
152
|
+
* the bytes carry the PDF signature; `sizeBytes` is the real size, so an oversize file is refused by the
|
|
153
|
+
* controller before initiate as well.
|
|
154
|
+
*/
|
|
155
|
+
declare function fileToHandle(file: Blob): Promise<FileHandle>;
|
|
156
|
+
/**
|
|
157
|
+
* The same gate the controller applies before initiate (PDF, 0 < size <= 25 MiB), for a surface that must
|
|
158
|
+
* decide BEFORE it creates a request: a refused file should not leave an empty request behind.
|
|
159
|
+
*/
|
|
160
|
+
declare function isUploadableHandle(handle: FileHandle): boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Open the browser's file chooser for one document and resolve its handle, or null when the user picks
|
|
163
|
+
* nothing. For a host that builds its own records UI on `useEverfurRecords`; the prebuilt surface renders its
|
|
164
|
+
* own input instead. Must be called from a user gesture (a click handler), or the browser blocks the chooser.
|
|
165
|
+
*
|
|
166
|
+
* The input is attached to the document while the chooser is open (Safari does not open a detached input)
|
|
167
|
+
* and removed once it settles. A browser that never fires `cancel` leaves the promise pending when the user
|
|
168
|
+
* dismisses the chooser; nothing is held but the closure.
|
|
169
|
+
*/
|
|
170
|
+
declare function pickDocument(doc?: Document): Promise<FileHandle | null>;
|
|
171
|
+
|
|
172
|
+
interface SignatureCanvasState {
|
|
173
|
+
readonly canvas: React.RefObject<HTMLCanvasElement>;
|
|
174
|
+
readonly mode: 'draw' | 'type';
|
|
175
|
+
readonly typed: string;
|
|
176
|
+
readonly signed: boolean;
|
|
177
|
+
readonly setTyped: (value: string) => void;
|
|
178
|
+
readonly toggle: () => void;
|
|
179
|
+
readonly clear: () => void;
|
|
180
|
+
readonly onPointerDown: (event: PointerEvent<HTMLCanvasElement>) => void;
|
|
181
|
+
readonly onPointerMove: (event: PointerEvent<HTMLCanvasElement>) => void;
|
|
182
|
+
readonly onPointerUp: () => void;
|
|
183
|
+
/** The consumer's initiate / direct S3 / complete chain over the current canvas; throws on failure. */
|
|
184
|
+
readonly register: (controller: RecordsClinicController, signal: AbortSignal) => Promise<{
|
|
185
|
+
readonly signatureId: string;
|
|
186
|
+
}>;
|
|
187
|
+
}
|
|
188
|
+
declare function useSignatureCanvas(onEdit?: () => void): SignatureCanvasState;
|
|
189
|
+
declare function SignatureCanvas({ pad, disabled }: {
|
|
190
|
+
readonly pad: SignatureCanvasState;
|
|
191
|
+
readonly disabled: boolean;
|
|
192
|
+
}): ReactNode;
|
|
193
|
+
|
|
194
|
+
export { CaptureRecordsSignature, ClinicBatchBaseProps, ClinicDraft, ClinicRequestBaseProps, EverfurClinicPicker, type EverfurClinicPickerProps, EverfurClinicRequest, EverfurClinicRequestBatch, type EverfurClinicRequestBatchProps, type EverfurClinicRequestProps, EverfurRecordDetail, type EverfurRecordDetailProps, EverfurRecordDocument, type EverfurRecordDocumentProps, EverfurRecords, EverfurRecordsConsent, type EverfurRecordsConsentProps, EverfurRecordsDashboard, type EverfurRecordsDashboardProps, EverfurRecordsFlow, type EverfurRecordsProps, EverfurRecordsRequest, type EverfurRecordsRequestProps, EverfurRecordsUpload, type EverfurRecordsUploadProps, FileHandle, PetRef, RECORDS_DOCUMENT_ACCEPT, RecordsClinicController, RecordsController, type RecordsHistoryMode, RecordsHostSeams, RecordsRequestId, RecordsRequestView, RecordsScreen, RecordsScreenBaseProps, SignatureCanvas, type SignatureCanvasState, UploadTransport, type WebRecordsUploadTransportOptions, createWebRecordsUploadTransport, fileToHandle, isPdfBlob, isUploadableHandle, pickDocument, useSignatureCanvas };
|