@everfur/sdk 0.3.0 → 0.5.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.
Files changed (187) hide show
  1. package/CHANGELOG.md +251 -4
  2. package/README.md +9 -3
  3. package/dist/{Chat-DwAC2vhB.d.ts → Chat-BOX-03ho.d.ts} +17 -3
  4. package/dist/{Chat-DPUD6dnc.d.cts → Chat-TA-aTcVF.d.cts} +17 -3
  5. package/dist/{DepthViews-DP0R-DhB.d.cts → DepthViews-CgjX2AJ5.d.ts} +1 -1
  6. package/dist/{DepthViews-DbFhR4Du.d.cts → DepthViews-Cviea-ri.d.cts} +1 -1
  7. package/dist/{DepthViews-DNEM96Se.d.ts → DepthViews-D2dRqWRq.d.ts} +1 -1
  8. package/dist/{DepthViews-D_3hl4xk.d.ts → DepthViews-DSFyaSeL.d.cts} +1 -1
  9. package/dist/{ErrorPolicyPort-CwbfmxzJ.d.ts → ErrorPolicyPort-D22LUVrK.d.ts} +1 -1
  10. package/dist/{ErrorPolicyPort-CNf4uQZP.d.cts → ErrorPolicyPort-D6CybiqJ.d.cts} +1 -1
  11. package/dist/{EverfurResult-DN9pL2Ab.d.cts → EverfurError-DmELDpXp.d.cts} +1 -67
  12. package/dist/{EverfurResult-DN9pL2Ab.d.ts → EverfurError-DmELDpXp.d.ts} +1 -67
  13. package/dist/EverfurResult-SGvHKsCB.d.ts +69 -0
  14. package/dist/EverfurResult-ZtH-YV1h.d.cts +69 -0
  15. package/dist/animations/index.cjs +1 -1
  16. package/dist/animations/index.d.cts +6 -5
  17. package/dist/animations/index.d.ts +6 -5
  18. package/dist/animations/index.js +1 -1
  19. package/dist/{attachments-5NeobOCd.d.ts → attachments-C_vtFu2f.d.ts} +7 -5
  20. package/dist/{attachments-D8T5re7e.d.cts → attachments-DHvnITuE.d.cts} +7 -5
  21. package/dist/{attachments-Bw3iMQgu.d.ts → attachments-oD5U2fXI.d.ts} +3 -3
  22. package/dist/{attachments-CQgFrEQ7.d.cts → attachments-pIdGOQfm.d.cts} +3 -3
  23. package/dist/bookingCopy-CJir9mjb.d.ts +1135 -0
  24. package/dist/bookingCopy-DfuA13dh.d.cts +1135 -0
  25. package/dist/branding-Xb_wL8N1.d.cts +212 -0
  26. package/dist/branding-xpQ056sM.d.ts +212 -0
  27. package/dist/callCopy-rDH9JTFo.d.cts +45 -0
  28. package/dist/callCopy-rDH9JTFo.d.ts +45 -0
  29. package/dist/callRoom-7wrE3RP2.d.ts +62 -0
  30. package/dist/callRoom-B_EqaUzx.d.cts +62 -0
  31. package/dist/casesRepository-B-Eg8ZJ3.d.cts +63 -0
  32. package/dist/casesRepository-DHgIYKN9.d.ts +63 -0
  33. package/dist/chat/index.cjs +1 -1
  34. package/dist/chat/index.d.cts +12 -10
  35. package/dist/chat/index.d.ts +12 -10
  36. package/dist/chat/index.js +1 -1
  37. package/dist/client/index.cjs +5 -5
  38. package/dist/client/index.d.cts +15 -11
  39. package/dist/client/index.d.ts +15 -11
  40. package/dist/client/index.js +5 -5
  41. package/dist/{config-CzTZGlfF.d.cts → config-ClI7QxB0.d.ts} +4 -3
  42. package/dist/{config-DW60uRb9.d.ts → config-DAFbf721.d.cts} +4 -3
  43. package/dist/consent/index.cjs +1 -1
  44. package/dist/consent/index.d.cts +9 -8
  45. package/dist/consent/index.d.ts +9 -8
  46. package/dist/consent/index.js +1 -1
  47. package/dist/{context-XvTzq1tE.d.cts → context-B-dUM1Qf.d.cts} +9 -8
  48. package/dist/{context-DXhqHlPU.d.ts → context-CZbgF_OH.d.ts} +9 -8
  49. package/dist/{copy-Mjoo91aS.d.ts → copy-CeRH3NXy.d.ts} +5 -4
  50. package/dist/{copy-bKDNigLb.d.cts → copy-CneuYdrO.d.cts} +5 -4
  51. package/dist/core/index.cjs +9 -9
  52. package/dist/core/index.d.cts +123 -32
  53. package/dist/core/index.d.ts +123 -32
  54. package/dist/core/index.js +9 -9
  55. package/dist/{depth-CErXCU8J.d.cts → depth-B3NFKlF9.d.cts} +38 -6
  56. package/dist/{depth-DjDcJ6kH.d.ts → depth-DO3Ko_qs.d.ts} +38 -6
  57. package/dist/entitlementRepository-74kW5mK0.d.ts +43 -0
  58. package/dist/entitlementRepository-m6zLUmiB.d.cts +43 -0
  59. package/dist/{identity-DI4eVx9S.d.cts → identity-C7uxGwfT.d.cts} +3 -3
  60. package/dist/{identity-BMx2SUOM.d.ts → identity-CLAUq-K4.d.ts} +3 -3
  61. package/dist/index.cjs +6 -6
  62. package/dist/index.d.cts +20 -17
  63. package/dist/index.d.ts +20 -17
  64. package/dist/index.js +6 -6
  65. package/dist/{models-D2EUxPZY.d.cts → models-Bn2z0NNo.d.cts} +1 -1
  66. package/dist/{models-B-Uh2LTf.d.ts → models-DSqA5Ahs.d.ts} +1 -1
  67. package/dist/notifications/index.cjs +2 -2
  68. package/dist/notifications/index.d.cts +5 -4
  69. package/dist/notifications/index.d.ts +5 -4
  70. package/dist/notifications/index.js +2 -2
  71. package/dist/optionalModule-DbJmsq5f.d.cts +21 -0
  72. package/dist/optionalModule-DbJmsq5f.d.ts +21 -0
  73. package/dist/{pets-aB8q0JyX.d.cts → pets-BoB5B7kp.d.cts} +2 -2
  74. package/dist/{pets-CtQdRpWo.d.ts → pets-w4M9d-Dn.d.ts} +2 -2
  75. package/dist/{casesRepository-ClLv6qMl.d.ts → petsRepository-BjKJ8UsN.d.ts} +3 -49
  76. package/dist/{casesRepository-DHwtGRYY.d.cts → petsRepository-DZZoEG3r.d.cts} +3 -49
  77. package/dist/photo/index.cjs +1 -1
  78. package/dist/photo/index.d.cts +3 -2
  79. package/dist/photo/index.d.ts +3 -2
  80. package/dist/photo/index.js +1 -1
  81. package/dist/{ports-DMolTRzU.d.ts → ports-BO3bzTJg.d.ts} +14 -17
  82. package/dist/{ports-DEBzEhbp.d.cts → ports-C2EVK416.d.cts} +14 -17
  83. package/dist/records/depth/index.cjs +2 -2
  84. package/dist/records/depth/index.d.cts +11 -10
  85. package/dist/records/depth/index.d.ts +11 -10
  86. package/dist/records/depth/index.js +2 -2
  87. package/dist/records/index.cjs +3 -3
  88. package/dist/records/index.d.cts +25 -14
  89. package/dist/records/index.d.ts +25 -14
  90. package/dist/records/index.js +3 -3
  91. package/dist/{requestFunnel-CjW7uDuA.d.ts → requestFunnel-D7ipek3e.d.ts} +28 -4
  92. package/dist/{requestFunnel-L-BQfi0z.d.cts → requestFunnel-Djjwgoe9.d.cts} +28 -4
  93. package/dist/{runtime-BR9ysG0J.d.ts → runtimeTypes-CTL3yToK.d.ts} +10 -100
  94. package/dist/{runtime-B8s-_hv8.d.cts → runtimeTypes-D2C9uD85.d.cts} +10 -100
  95. package/dist/server/events/index.cjs +1 -1
  96. package/dist/server/events/index.d.cts +4 -3
  97. package/dist/server/events/index.d.ts +4 -3
  98. package/dist/server/events/index.js +1 -1
  99. package/dist/server/index.cjs +1 -1
  100. package/dist/server/index.d.cts +5 -4
  101. package/dist/server/index.d.ts +5 -4
  102. package/dist/server/index.js +1 -1
  103. package/dist/televet/booking/index.cjs +1 -0
  104. package/dist/televet/booking/index.d.cts +566 -0
  105. package/dist/televet/booking/index.d.ts +566 -0
  106. package/dist/televet/booking/index.js +1 -0
  107. package/dist/televet/call/index.cjs +1 -0
  108. package/dist/televet/call/index.d.cts +161 -0
  109. package/dist/televet/call/index.d.ts +161 -0
  110. package/dist/televet/call/index.js +1 -0
  111. package/dist/televet/index.cjs +1 -1
  112. package/dist/televet/index.d.cts +64 -12
  113. package/dist/televet/index.d.ts +64 -12
  114. package/dist/televet/index.js +1 -1
  115. package/dist/televetGlobal-CEk0_cW9.d.cts +34 -0
  116. package/dist/televetGlobal-Cs9Wbqsy.d.ts +34 -0
  117. package/dist/testing/index.cjs +4 -4
  118. package/dist/testing/index.d.cts +4 -3
  119. package/dist/testing/index.d.ts +4 -3
  120. package/dist/testing/index.js +4 -4
  121. package/dist/testing/rn/index.cjs +1 -1
  122. package/dist/testing/rn/index.d.cts +13 -10
  123. package/dist/testing/rn/index.d.ts +13 -10
  124. package/dist/testing/rn/index.js +1 -1
  125. package/dist/testing/web/index.cjs +1 -1
  126. package/dist/testing/web/index.d.cts +14 -12
  127. package/dist/testing/web/index.d.ts +14 -12
  128. package/dist/testing/web/index.js +1 -1
  129. package/dist/{timelineRows-DZed6dAM.d.ts → timelineRows-7yFNK_rU.d.ts} +1 -1
  130. package/dist/{timelineRows-CaohZzXS.d.cts → timelineRows-CzR1T2DR.d.cts} +1 -1
  131. package/dist/tokens-CIngRkvt.d.cts +362 -0
  132. package/dist/tokens-CIngRkvt.d.ts +362 -0
  133. package/dist/typeStyle-DHJzDaUo.d.cts +112 -0
  134. package/dist/typeStyle-YPS_MXeI.d.ts +112 -0
  135. package/dist/{useRecordsDepth-BHBzJ76R.d.cts → useRecordsDepth-Bnw36jPr.d.cts} +24 -5
  136. package/dist/{useRecordsDepth-BU-OhzH6.d.ts → useRecordsDepth-DFF7Faxx.d.ts} +24 -5
  137. package/dist/{useVetVisit-CjmMa896.d.ts → useVetVisit-BsjoDO-n.d.ts} +21 -6
  138. package/dist/{useVetVisit-Bc84hWUU.d.cts → useVetVisit-Ds8f1peV.d.cts} +21 -6
  139. package/dist/video/index.cjs +1 -1
  140. package/dist/video/index.d.cts +3 -2
  141. package/dist/video/index.d.ts +3 -2
  142. package/dist/video/index.js +1 -1
  143. package/dist/{view-DtSPYpKa.d.ts → view-BqcOYFTr.d.ts} +5 -4
  144. package/dist/{view-C3qPIXGX.d.cts → view-CaJs8WFH.d.cts} +5 -4
  145. package/dist/web/consent/index.cjs +1 -1
  146. package/dist/web/consent/index.d.cts +9 -8
  147. package/dist/web/consent/index.d.ts +9 -8
  148. package/dist/web/consent/index.js +1 -1
  149. package/dist/web/index.cjs +10 -10
  150. package/dist/web/index.d.cts +43 -19
  151. package/dist/web/index.d.ts +43 -19
  152. package/dist/web/index.js +10 -10
  153. package/dist/web/notifications/index.cjs +2 -2
  154. package/dist/web/notifications/index.d.cts +7 -6
  155. package/dist/web/notifications/index.d.ts +7 -6
  156. package/dist/web/notifications/index.js +2 -2
  157. package/dist/web/records/depth/index.cjs +2 -2
  158. package/dist/web/records/depth/index.d.cts +11 -10
  159. package/dist/web/records/depth/index.d.ts +11 -10
  160. package/dist/web/records/depth/index.js +2 -2
  161. package/dist/web/records/index.cjs +3 -3
  162. package/dist/web/records/index.d.cts +123 -14
  163. package/dist/web/records/index.d.ts +123 -14
  164. package/dist/web/records/index.js +3 -3
  165. package/dist/web/televet/booking/index.cjs +2 -0
  166. package/dist/web/televet/booking/index.d.cts +770 -0
  167. package/dist/web/televet/booking/index.d.ts +770 -0
  168. package/dist/web/televet/booking/index.js +2 -0
  169. package/dist/web/televet/call/index.cjs +1 -0
  170. package/dist/web/televet/call/index.d.cts +144 -0
  171. package/dist/web/televet/call/index.d.ts +144 -0
  172. package/dist/web/televet/call/index.js +1 -0
  173. package/dist/web/televet/index.cjs +1 -1
  174. package/dist/web/televet/index.d.cts +61 -9
  175. package/dist/web/televet/index.d.ts +61 -9
  176. package/dist/web/televet/index.js +1 -1
  177. package/package.json +74 -5
  178. package/televet/booking/package.json +8 -0
  179. package/televet/call/package.json +8 -0
  180. package/web/televet/booking/native-blocked.cjs +12 -0
  181. package/web/televet/booking/package.json +8 -0
  182. package/web/televet/call/native-blocked.cjs +12 -0
  183. package/web/televet/call/package.json +8 -0
  184. package/dist/entitlementRepository-DKdXFgTo.d.cts +0 -698
  185. package/dist/entitlementRepository-DSbzuyAW.d.ts +0 -698
  186. package/dist/typeStyle-0TydiZ1w.d.cts +0 -19
  187. package/dist/typeStyle-CWMsoe6b.d.ts +0 -19
@@ -1,21 +1,55 @@
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';
1
+ import { R as RecordsController } from '../../view-CaJs8WFH.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-CaJs8WFH.cjs';
3
3
  import { CSSProperties, ReactNode, PointerEvent } from 'react';
4
+ import { f as RecordsScreenBaseProps, i as RecordsClinicController, j as CaptureRecordsSignature, d as RecordsHostSeams, e as RecordsScreen, C as ClinicDraft, k as ClinicRequestBaseProps, l as ClinicBatchBaseProps } from '../../useRecordsDepth-Bnw36jPr.cjs';
5
+ 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-Bnw36jPr.cjs';
4
6
  import { P as PetRef, R as RecordsRequestId } from '../../ids-B2GAAifq.cjs';
5
7
  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';
8
+ import { d as RecordsRequestView } from '../../models-Bn2z0NNo.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-Bn2z0NNo.cjs';
10
+ import { E as EverfurError } from '../../EverfurError-DmELDpXp.cjs';
11
+ export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError-DmELDpXp.cjs';
12
+ export { C as CreateClinicRequestBatchInput, aa as CreateClinicRequestInput, x as FactFieldValue, A 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, B as RecordFactEditInput, D as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, E as RecordMarker, G as RecordMarkerLatest, I as RecordMarkerPoint, J as RecordMarkerSummary, K as RecordMarkersView, L as RecordPdfLink, k as RecordPhysicalExam, M as RecordShare, N as RecordShareLink, a9 as RecordsAuthorizationCopy, O as RecordsAuthorizationSignature, l as RecordsClinic, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, S as RecordsClinicBatchItem, T as RecordsClinicBatchResult, a6 as RecordsClinicSearchInput, a7 as RecordsClinicSearchPage, U as RecordsClinicTarget, m as RecordsDepthClient, a8 as RecordsRecentClinicsInput, n as RecordsRequestDocument, V as RecordsSignatureSuggestion, ab as RecordsSignatureUploadPolicy, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight } from '../../depth-B3NFKlF9.cjs';
13
+ export { a as EverfurDocumentContributionsProps, c as EverfurRecordsDepthProps } from '../../DepthViews-Cviea-ri.cjs';
12
14
  import { U as UploadTransport, F as FileHandle } from '../../ports-BN6RHF9W.cjs';
13
15
  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';
16
+ export { E as EverfurResult } from '../../EverfurResult-ZtH-YV1h.cjs';
17
+ import '../../requestFunnel-Djjwgoe9.cjs';
18
+ import '../../ErrorPolicyPort-D6CybiqJ.cjs';
19
+ import '../../config-DAFbf721.cjs';
20
+ import '../../identity-C7uxGwfT.cjs';
21
+
22
+ interface EverfurRecordsPageProps extends RecordsScreenBaseProps {
23
+ readonly controller?: RecordsController;
24
+ /** Host/test seam over the clinic controller the `Request records` sheet uses. */
25
+ readonly clinicController?: RecordsClinicController;
26
+ readonly consentVersion?: string;
27
+ /** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
28
+ readonly ownerName?: string;
29
+ /** A host signature component for the clinic authorization, instead of the built-in canvas. */
30
+ readonly onCaptureSignature?: CaptureRecordsSignature;
31
+ /**
32
+ * The heading level this page's title claims. Defaults to 2.
33
+ *
34
+ * THIS PAGE AND THE BOOKING FLOW USED TO DISAGREE, and that is why the prop exists. The page hardcoded
35
+ * `<h2>` and the televet booking chrome hardcoded `<h1>`, so a partner mounting both in one document got two
36
+ * competing top levels. A drop-in widget does not own the host page's `<h1>`: the shared default is 2 and a
37
+ * host whose page IS this surface passes 1. `src/web/headingLevel.ts` carries the full argument.
38
+ */
39
+ readonly headingLevel?: number;
40
+ readonly style?: CSSProperties;
41
+ readonly className?: string;
42
+ readonly renderPending?: () => ReactNode;
43
+ }
44
+ /**
45
+ * The records surface as a PAGE, mirroring the consumer web app: the default web records surface.
46
+ *
47
+ * Complete on its own: request records from a clinic (consent and signature), upload records the
48
+ * member already has, every request with its status and documents, and the full record with its
49
+ * vaccinations, all without leaving your page. Pass `onNavigate` only if you route those screens
50
+ * yourself. `EverfurRecords` (the flow) is the React Native-shaped stack, kept for existing embeds.
51
+ */
52
+ declare function EverfurRecordsPage(props: EverfurRecordsPageProps): ReactNode;
19
53
 
20
54
  type RecordsHistoryMode = 'memory' | 'browser';
21
55
  interface EverfurRecordsProps extends RecordsHostSeams {
@@ -47,6 +81,15 @@ declare function EverfurRecordsFlow(props: EverfurRecordsProps): ReactNode;
47
81
  /** The public prebuilt records surface: the flow, starting at the dashboard. */
48
82
  declare const EverfurRecords: typeof EverfurRecordsFlow;
49
83
 
84
+ interface EverfurRecordsRequestsProps extends RecordsScreenBaseProps {
85
+ readonly controller?: RecordsController;
86
+ readonly style?: CSSProperties;
87
+ readonly className?: string;
88
+ readonly renderPending?: () => ReactNode;
89
+ }
90
+ /** Every upload and clinic request for the pet, each with its status (the consumer web request tracker). */
91
+ declare function EverfurRecordsRequests(props: EverfurRecordsRequestsProps): ReactNode;
92
+
50
93
  interface EverfurRecordsDashboardProps extends RecordsScreenBaseProps {
51
94
  readonly controller?: RecordsController;
52
95
  readonly consentVersion?: string;
@@ -111,6 +154,55 @@ interface EverfurRecordsUploadProps extends RecordsScreenBaseProps {
111
154
  }
112
155
  declare function EverfurRecordsUpload(props: EverfurRecordsUploadProps): ReactNode;
113
156
 
157
+ interface RequestDocumentsListProps extends Pick<RecordsHostSeams, 'onOpenUrl'> {
158
+ readonly requestId: string;
159
+ /**
160
+ * The surface's own open state. False costs no network and asks for no signed URL it will not
161
+ * show; true starts the read. Defaults to true for a caller that is always visible.
162
+ */
163
+ readonly open?: boolean;
164
+ readonly testID?: string;
165
+ }
166
+ declare function RequestDocumentsList({ requestId, open, onOpenUrl, testID, }: RequestDocumentsListProps): ReactNode;
167
+
168
+ /** One uploaded file, resolved to exactly what the list renders. */
169
+ interface RequestDocumentRow {
170
+ /** Stable list key: the document's own wire id. */
171
+ readonly key: string;
172
+ readonly title: string;
173
+ /** Format, size and date, whichever the row has, joined with a middle dot. Null when none apply. */
174
+ readonly meta: string | null;
175
+ readonly downloadUrl: string;
176
+ }
177
+ /** The wire rows as the list renders them, order preserved (the server sends oldest first). */
178
+ declare function requestDocumentRows(items: readonly {
179
+ readonly sourceDocId: string;
180
+ readonly fileName: string | null;
181
+ readonly docFormat: string | null;
182
+ readonly byteSize: number | null;
183
+ readonly receivedAt: string | null;
184
+ readonly downloadUrl: string;
185
+ }[]): readonly RequestDocumentRow[];
186
+
187
+ type RequestDocumentsStatus = 'loading' | 'empty' | 'error' | 'populated';
188
+ interface UseRequestDocumentsState {
189
+ readonly status: RequestDocumentsStatus;
190
+ /** The rows as the list renders them, oldest first (the server's order, preserved). */
191
+ readonly rows: readonly RequestDocumentRow[];
192
+ readonly error: EverfurError | null;
193
+ /** Read again, which mints fresh signed links. The error state's retry control calls this. */
194
+ readonly refresh: () => void;
195
+ }
196
+ /**
197
+ * One documents read for one request, run when `enabled` turns true and on `refresh`.
198
+ *
199
+ * `enabled:false` settles to `empty` with no error and never touches the network, so a closed sheet
200
+ * or a collapsed row costs nothing and asks for no signed URLs it will not show.
201
+ */
202
+ declare function useRequestDocuments(requestId: string, opts?: {
203
+ readonly enabled?: boolean;
204
+ }): UseRequestDocumentsState;
205
+
114
206
  interface EverfurClinicRequestProps extends ClinicRequestBaseProps {
115
207
  readonly style?: CSSProperties;
116
208
  readonly className?: string;
@@ -186,9 +278,26 @@ interface SignatureCanvasState {
186
278
  }>;
187
279
  }
188
280
  declare function useSignatureCanvas(onEdit?: () => void): SignatureCanvasState;
281
+ /**
282
+ * The pad, and the ONE place the draw-or-type decision is rendered.
283
+ *
284
+ * THE WAY OUT SITS ABOVE THE CANVAS, which is the consumer web app's decision and not a preference.
285
+ * everfur-frontend RequestRecordsDialog.tsx:658-663 records why, and it records it as something mobile
286
+ * learned the hard way: with the alternative under the pad, a person who cannot draw has to scroll past the
287
+ * thing they are stuck on to discover that they do not have to. The rn sibling (src/rn/records/ConsentScreen
288
+ * .tsx:156-161) still draws its toggle below its `SignaturePad`, so this is one of the places where mirroring
289
+ * rn would have been the wrong app.
290
+ *
291
+ * AND IT IS RENDERED HERE, ONCE, BECAUSE THIS COMPONENT IS THE PAD. Requesting records is the only path by
292
+ * which a clinic's records enter the product, so the typed alternative is what keeps that path reachable for a
293
+ * keyboard-only or motor-impaired owner: not degraded, unreachable. Owning the label and the toggle next to
294
+ * the canvas whose mode they describe is what stops a caller from drawing a SECOND toggle against its own copy
295
+ * of the mode, which is exactly the defect this replaced (two identical toggles, and the caller's label going
296
+ * stale the moment the pad's own toggle was the one pressed).
297
+ */
189
298
  declare function SignatureCanvas({ pad, disabled }: {
190
299
  readonly pad: SignatureCanvasState;
191
300
  readonly disabled: boolean;
192
301
  }): ReactNode;
193
302
 
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 };
303
+ export { CaptureRecordsSignature, ClinicBatchBaseProps, ClinicDraft, ClinicRequestBaseProps, EverfurClinicPicker, type EverfurClinicPickerProps, EverfurClinicRequest, EverfurClinicRequestBatch, type EverfurClinicRequestBatchProps, type EverfurClinicRequestProps, EverfurError, EverfurRecordDetail, type EverfurRecordDetailProps, EverfurRecordDocument, type EverfurRecordDocumentProps, EverfurRecords, EverfurRecordsConsent, type EverfurRecordsConsentProps, EverfurRecordsDashboard, type EverfurRecordsDashboardProps, EverfurRecordsFlow, EverfurRecordsPage, type EverfurRecordsPageProps, type EverfurRecordsProps, EverfurRecordsRequest, type EverfurRecordsRequestProps, EverfurRecordsRequests, type EverfurRecordsRequestsProps, EverfurRecordsUpload, type EverfurRecordsUploadProps, FileHandle, PetRef, RECORDS_DOCUMENT_ACCEPT, RecordsClinicController, RecordsController, type RecordsHistoryMode, RecordsHostSeams, RecordsRequestId, RecordsRequestView, RecordsScreen, RecordsScreenBaseProps, type RequestDocumentRow, RequestDocumentsList, type RequestDocumentsListProps, type RequestDocumentsStatus, SignatureCanvas, type SignatureCanvasState, UploadTransport, type UseRequestDocumentsState, type WebRecordsUploadTransportOptions, createWebRecordsUploadTransport, fileToHandle, isPdfBlob, isUploadableHandle, pickDocument, requestDocumentRows, useRequestDocuments, useSignatureCanvas };
@@ -1,21 +1,55 @@
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';
1
+ import { R as RecordsController } from '../../view-BqcOYFTr.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-BqcOYFTr.js';
3
3
  import { CSSProperties, ReactNode, PointerEvent } from 'react';
4
+ import { f as RecordsScreenBaseProps, i as RecordsClinicController, j as CaptureRecordsSignature, d as RecordsHostSeams, e as RecordsScreen, C as ClinicDraft, k as ClinicRequestBaseProps, l as ClinicBatchBaseProps } from '../../useRecordsDepth-DFF7Faxx.js';
5
+ 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-DFF7Faxx.js';
4
6
  import { P as PetRef, R as RecordsRequestId } from '../../ids-B2GAAifq.js';
5
7
  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';
8
+ import { d as RecordsRequestView } from '../../models-DSqA5Ahs.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-DSqA5Ahs.js';
10
+ import { E as EverfurError } from '../../EverfurError-DmELDpXp.js';
11
+ export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError-DmELDpXp.js';
12
+ export { C as CreateClinicRequestBatchInput, aa as CreateClinicRequestInput, x as FactFieldValue, A 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, B as RecordFactEditInput, D as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, E as RecordMarker, G as RecordMarkerLatest, I as RecordMarkerPoint, J as RecordMarkerSummary, K as RecordMarkersView, L as RecordPdfLink, k as RecordPhysicalExam, M as RecordShare, N as RecordShareLink, a9 as RecordsAuthorizationCopy, O as RecordsAuthorizationSignature, l as RecordsClinic, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, S as RecordsClinicBatchItem, T as RecordsClinicBatchResult, a6 as RecordsClinicSearchInput, a7 as RecordsClinicSearchPage, U as RecordsClinicTarget, m as RecordsDepthClient, a8 as RecordsRecentClinicsInput, n as RecordsRequestDocument, V as RecordsSignatureSuggestion, ab as RecordsSignatureUploadPolicy, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight } from '../../depth-DO3Ko_qs.js';
13
+ export { a as EverfurDocumentContributionsProps, c as EverfurRecordsDepthProps } from '../../DepthViews-D2dRqWRq.js';
12
14
  import { U as UploadTransport, F as FileHandle } from '../../ports-BN6RHF9W.js';
13
15
  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';
16
+ export { E as EverfurResult } from '../../EverfurResult-SGvHKsCB.js';
17
+ import '../../requestFunnel-D7ipek3e.js';
18
+ import '../../ErrorPolicyPort-D22LUVrK.js';
19
+ import '../../config-ClI7QxB0.js';
20
+ import '../../identity-CLAUq-K4.js';
21
+
22
+ interface EverfurRecordsPageProps extends RecordsScreenBaseProps {
23
+ readonly controller?: RecordsController;
24
+ /** Host/test seam over the clinic controller the `Request records` sheet uses. */
25
+ readonly clinicController?: RecordsClinicController;
26
+ readonly consentVersion?: string;
27
+ /** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
28
+ readonly ownerName?: string;
29
+ /** A host signature component for the clinic authorization, instead of the built-in canvas. */
30
+ readonly onCaptureSignature?: CaptureRecordsSignature;
31
+ /**
32
+ * The heading level this page's title claims. Defaults to 2.
33
+ *
34
+ * THIS PAGE AND THE BOOKING FLOW USED TO DISAGREE, and that is why the prop exists. The page hardcoded
35
+ * `<h2>` and the televet booking chrome hardcoded `<h1>`, so a partner mounting both in one document got two
36
+ * competing top levels. A drop-in widget does not own the host page's `<h1>`: the shared default is 2 and a
37
+ * host whose page IS this surface passes 1. `src/web/headingLevel.ts` carries the full argument.
38
+ */
39
+ readonly headingLevel?: number;
40
+ readonly style?: CSSProperties;
41
+ readonly className?: string;
42
+ readonly renderPending?: () => ReactNode;
43
+ }
44
+ /**
45
+ * The records surface as a PAGE, mirroring the consumer web app: the default web records surface.
46
+ *
47
+ * Complete on its own: request records from a clinic (consent and signature), upload records the
48
+ * member already has, every request with its status and documents, and the full record with its
49
+ * vaccinations, all without leaving your page. Pass `onNavigate` only if you route those screens
50
+ * yourself. `EverfurRecords` (the flow) is the React Native-shaped stack, kept for existing embeds.
51
+ */
52
+ declare function EverfurRecordsPage(props: EverfurRecordsPageProps): ReactNode;
19
53
 
20
54
  type RecordsHistoryMode = 'memory' | 'browser';
21
55
  interface EverfurRecordsProps extends RecordsHostSeams {
@@ -47,6 +81,15 @@ declare function EverfurRecordsFlow(props: EverfurRecordsProps): ReactNode;
47
81
  /** The public prebuilt records surface: the flow, starting at the dashboard. */
48
82
  declare const EverfurRecords: typeof EverfurRecordsFlow;
49
83
 
84
+ interface EverfurRecordsRequestsProps extends RecordsScreenBaseProps {
85
+ readonly controller?: RecordsController;
86
+ readonly style?: CSSProperties;
87
+ readonly className?: string;
88
+ readonly renderPending?: () => ReactNode;
89
+ }
90
+ /** Every upload and clinic request for the pet, each with its status (the consumer web request tracker). */
91
+ declare function EverfurRecordsRequests(props: EverfurRecordsRequestsProps): ReactNode;
92
+
50
93
  interface EverfurRecordsDashboardProps extends RecordsScreenBaseProps {
51
94
  readonly controller?: RecordsController;
52
95
  readonly consentVersion?: string;
@@ -111,6 +154,55 @@ interface EverfurRecordsUploadProps extends RecordsScreenBaseProps {
111
154
  }
112
155
  declare function EverfurRecordsUpload(props: EverfurRecordsUploadProps): ReactNode;
113
156
 
157
+ interface RequestDocumentsListProps extends Pick<RecordsHostSeams, 'onOpenUrl'> {
158
+ readonly requestId: string;
159
+ /**
160
+ * The surface's own open state. False costs no network and asks for no signed URL it will not
161
+ * show; true starts the read. Defaults to true for a caller that is always visible.
162
+ */
163
+ readonly open?: boolean;
164
+ readonly testID?: string;
165
+ }
166
+ declare function RequestDocumentsList({ requestId, open, onOpenUrl, testID, }: RequestDocumentsListProps): ReactNode;
167
+
168
+ /** One uploaded file, resolved to exactly what the list renders. */
169
+ interface RequestDocumentRow {
170
+ /** Stable list key: the document's own wire id. */
171
+ readonly key: string;
172
+ readonly title: string;
173
+ /** Format, size and date, whichever the row has, joined with a middle dot. Null when none apply. */
174
+ readonly meta: string | null;
175
+ readonly downloadUrl: string;
176
+ }
177
+ /** The wire rows as the list renders them, order preserved (the server sends oldest first). */
178
+ declare function requestDocumentRows(items: readonly {
179
+ readonly sourceDocId: string;
180
+ readonly fileName: string | null;
181
+ readonly docFormat: string | null;
182
+ readonly byteSize: number | null;
183
+ readonly receivedAt: string | null;
184
+ readonly downloadUrl: string;
185
+ }[]): readonly RequestDocumentRow[];
186
+
187
+ type RequestDocumentsStatus = 'loading' | 'empty' | 'error' | 'populated';
188
+ interface UseRequestDocumentsState {
189
+ readonly status: RequestDocumentsStatus;
190
+ /** The rows as the list renders them, oldest first (the server's order, preserved). */
191
+ readonly rows: readonly RequestDocumentRow[];
192
+ readonly error: EverfurError | null;
193
+ /** Read again, which mints fresh signed links. The error state's retry control calls this. */
194
+ readonly refresh: () => void;
195
+ }
196
+ /**
197
+ * One documents read for one request, run when `enabled` turns true and on `refresh`.
198
+ *
199
+ * `enabled:false` settles to `empty` with no error and never touches the network, so a closed sheet
200
+ * or a collapsed row costs nothing and asks for no signed URLs it will not show.
201
+ */
202
+ declare function useRequestDocuments(requestId: string, opts?: {
203
+ readonly enabled?: boolean;
204
+ }): UseRequestDocumentsState;
205
+
114
206
  interface EverfurClinicRequestProps extends ClinicRequestBaseProps {
115
207
  readonly style?: CSSProperties;
116
208
  readonly className?: string;
@@ -186,9 +278,26 @@ interface SignatureCanvasState {
186
278
  }>;
187
279
  }
188
280
  declare function useSignatureCanvas(onEdit?: () => void): SignatureCanvasState;
281
+ /**
282
+ * The pad, and the ONE place the draw-or-type decision is rendered.
283
+ *
284
+ * THE WAY OUT SITS ABOVE THE CANVAS, which is the consumer web app's decision and not a preference.
285
+ * everfur-frontend RequestRecordsDialog.tsx:658-663 records why, and it records it as something mobile
286
+ * learned the hard way: with the alternative under the pad, a person who cannot draw has to scroll past the
287
+ * thing they are stuck on to discover that they do not have to. The rn sibling (src/rn/records/ConsentScreen
288
+ * .tsx:156-161) still draws its toggle below its `SignaturePad`, so this is one of the places where mirroring
289
+ * rn would have been the wrong app.
290
+ *
291
+ * AND IT IS RENDERED HERE, ONCE, BECAUSE THIS COMPONENT IS THE PAD. Requesting records is the only path by
292
+ * which a clinic's records enter the product, so the typed alternative is what keeps that path reachable for a
293
+ * keyboard-only or motor-impaired owner: not degraded, unreachable. Owning the label and the toggle next to
294
+ * the canvas whose mode they describe is what stops a caller from drawing a SECOND toggle against its own copy
295
+ * of the mode, which is exactly the defect this replaced (two identical toggles, and the caller's label going
296
+ * stale the moment the pad's own toggle was the one pressed).
297
+ */
189
298
  declare function SignatureCanvas({ pad, disabled }: {
190
299
  readonly pad: SignatureCanvasState;
191
300
  readonly disabled: boolean;
192
301
  }): ReactNode;
193
302
 
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 };
303
+ export { CaptureRecordsSignature, ClinicBatchBaseProps, ClinicDraft, ClinicRequestBaseProps, EverfurClinicPicker, type EverfurClinicPickerProps, EverfurClinicRequest, EverfurClinicRequestBatch, type EverfurClinicRequestBatchProps, type EverfurClinicRequestProps, EverfurError, EverfurRecordDetail, type EverfurRecordDetailProps, EverfurRecordDocument, type EverfurRecordDocumentProps, EverfurRecords, EverfurRecordsConsent, type EverfurRecordsConsentProps, EverfurRecordsDashboard, type EverfurRecordsDashboardProps, EverfurRecordsFlow, EverfurRecordsPage, type EverfurRecordsPageProps, type EverfurRecordsProps, EverfurRecordsRequest, type EverfurRecordsRequestProps, EverfurRecordsRequests, type EverfurRecordsRequestsProps, EverfurRecordsUpload, type EverfurRecordsUploadProps, FileHandle, PetRef, RECORDS_DOCUMENT_ACCEPT, RecordsClinicController, RecordsController, type RecordsHistoryMode, RecordsHostSeams, RecordsRequestId, RecordsRequestView, RecordsScreen, RecordsScreenBaseProps, type RequestDocumentRow, RequestDocumentsList, type RequestDocumentsListProps, type RequestDocumentsStatus, SignatureCanvas, type SignatureCanvasState, UploadTransport, type UseRequestDocumentsState, type WebRecordsUploadTransportOptions, createWebRecordsUploadTransport, fileToHandle, isPdfBlob, isUploadableHandle, pickDocument, requestDocumentRows, useRequestDocuments, useSignatureCanvas };