@everfur/sdk 0.12.0 → 0.13.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 +174 -0
- package/README.md +2 -1
- package/dist/{Chat-BOG0SXKV.d.cts → Chat.d-DUNTfzqC.d.ts} +170 -8
- package/dist/{Chat-CIolBgjJ.d.ts → Chat.d-Dts8u_1a.d.cts} +170 -8
- package/dist/{DepthViews-BR6VQ3Ta.d.cts → DepthViews.d-BIp599lz.d.cts} +1 -1
- package/dist/{DepthViews-280t3BcQ.d.ts → DepthViews.d-BMU2jFPw.d.cts} +1 -1
- package/dist/{DepthViews-DlBuFsgN.d.ts → DepthViews.d-Ce2Zhnrb.d.ts} +1 -1
- package/dist/{DepthViews-BTbF_DJY.d.cts → DepthViews.d-CubkMPbU.d.ts} +1 -1
- package/dist/{ErrorPolicyPort-10s3HJCt.d.cts → ErrorPolicyPort.d-68yrE3BE.d.ts} +1 -1
- package/dist/{ErrorPolicyPort-C3nNSS_j.d.ts → ErrorPolicyPort.d-DirW9hgO.d.cts} +1 -1
- package/dist/{EverfurError-DeBqRpQV.d.cts → EverfurError.d-8NHtlgzA.d.cts} +11 -1
- package/dist/{EverfurError-DeBqRpQV.d.ts → EverfurError.d-8NHtlgzA.d.ts} +11 -1
- package/dist/{EverfurResult-ClPTS0P2.d.ts → EverfurResult.d-BFH-3s6E.d.cts} +1 -1
- package/dist/{EverfurResult-COlXj1wq.d.cts → EverfurResult.d-D_-254ZY.d.ts} +1 -1
- package/dist/{IntakeMedia-BH0fYDT2.d.cts → IntakeMedia.d-4a89XrP7.d.ts} +1 -1
- package/dist/{IntakeMedia-B-_vA9ZB.d.cts → IntakeMedia.d-DGxrhgIW.d.ts} +1 -1
- package/dist/{IntakeMedia-CIoTXAWs.d.ts → IntakeMedia.d-DUPR4lVM.d.cts} +1 -1
- package/dist/{IntakeMedia-Bavl7E4Z.d.ts → IntakeMedia.d-JJCUvQu7.d.cts} +1 -1
- package/dist/LifecyclePort.d-Cr1p33a7.d.cts +23 -0
- package/dist/LifecyclePort.d-Cr1p33a7.d.ts +23 -0
- package/dist/{PhotoController-vzY5bfY_.d.ts → PhotoController.d-BzCJOE7e.d.cts} +2 -2
- package/dist/{PhotoController-3l7MT9jA.d.cts → PhotoController.d-D0XiUUOl.d.ts} +2 -2
- package/dist/animations/index.cjs +5 -1
- package/dist/animations/index.d.cts +24 -24
- package/dist/animations/index.d.ts +24 -24
- package/dist/animations/index.js +5 -1
- package/dist/{attachments-CGxvnYu4.d.ts → attachments.d-Bp2qbHxn.d.cts} +22 -26
- package/dist/{attachments-CWNj1ZkM.d.ts → attachments.d-D1yhJjcZ.d.ts} +4 -4
- package/dist/{attachments-waXcJWCp.d.cts → attachments.d-DisnvB9R.d.cts} +4 -4
- package/dist/{attachments-B6h4cJU-.d.cts → attachments.d-Djy9z_0Z.d.ts} +22 -26
- package/dist/{bookingCopy-CjPKeg75.d.ts → bookingCopy.d-BJF6gd1A.d.ts} +24 -9
- package/dist/{bookingCopy-8aEU6ZmR.d.cts → bookingCopy.d-BlBmhAJc.d.cts} +24 -9
- package/dist/{branding-DJf4h12Q.d.ts → branding.d-DI8S400y.d.cts} +9 -2
- package/dist/{branding-BCfwLj0h.d.cts → branding.d-OIGLbQeM.d.ts} +9 -2
- package/dist/{callRoom-BhIdadyV.d.cts → callRoom.d-B1DoYdJe.d.cts} +1 -1
- package/dist/{callRoom-B92eH_ij.d.ts → callRoom.d-Dqm1rUqT.d.ts} +1 -1
- package/dist/{casesRepository-CGdhvzTu.d.cts → casesRepository.d-CT2LTicS.d.cts} +3 -3
- package/dist/{casesRepository-ZG9Sg0e4.d.ts → casesRepository.d-UsWOz9bv.d.ts} +3 -3
- package/dist/chat/index.cjs +132 -57
- package/dist/chat/index.d.cts +18 -16
- package/dist/chat/index.d.ts +18 -16
- package/dist/chat/index.js +133 -58
- package/dist/client/index.cjs +15 -10
- package/dist/client/index.d.cts +19 -18
- package/dist/client/index.d.ts +19 -18
- package/dist/client/index.js +15 -10
- package/dist/{config-B0p6Lygh.d.cts → config.d-BR3DT9ho.d.cts} +3 -3
- package/dist/{config-DmFAZJOx.d.ts → config.d-Dy6igYlH.d.ts} +3 -3
- package/dist/consent/index.cjs +5 -1
- package/dist/consent/index.d.cts +10 -10
- package/dist/consent/index.d.ts +10 -10
- package/dist/consent/index.js +5 -1
- package/dist/{context-BNreNLtL.d.ts → context.d-Cwks0p3C.d.cts} +15 -15
- package/dist/{context-BgS2a57J.d.cts → context.d-QcCgguzA.d.ts} +15 -15
- package/dist/{copy-DLJriGQS.d.ts → copy.d-CiMn2IIt.d.ts} +6 -6
- package/dist/{copy-lWp-Lkv5.d.cts → copy.d-DLJTyRfT.d.cts} +6 -6
- package/dist/core/index.cjs +17 -13
- package/dist/core/index.d.cts +33 -29
- package/dist/core/index.d.ts +33 -29
- package/dist/core/index.js +17 -13
- package/dist/{depth-BYb3RXoA.d.cts → depth.d-CjPGVPDL.d.cts} +9 -115
- package/dist/{depth-COz-sSG5.d.ts → depth.d-OSALbYM7.d.ts} +9 -115
- package/dist/{entitlementRepository-D-Lse67w.d.cts → entitlementRepository.d-CVQa1DA1.d.cts} +10 -5
- package/dist/{entitlementRepository-CrTOP_-o.d.ts → entitlementRepository.d-Cf3LbTwD.d.ts} +10 -5
- package/dist/features.d-fNsGcg0R.d.cts +108 -0
- package/dist/features.d-fNsGcg0R.d.ts +108 -0
- package/dist/focus.d-DMg2ngHI.d.ts +1178 -0
- package/dist/focus.d-az9cqUz3.d.cts +1178 -0
- package/dist/health-plan/index.cjs +370 -0
- package/dist/health-plan/index.d.cts +251 -0
- package/dist/health-plan/index.d.ts +251 -0
- package/dist/health-plan/index.js +370 -0
- package/dist/idempotency.d-D461_DPD.d.cts +910 -0
- package/dist/idempotency.d-WpXx9zQo.d.ts +910 -0
- package/dist/{identity-Cw07BKZp.d.ts → identity.d-60LeJt_s.d.cts} +3 -3
- package/dist/{identity-DFVGYn1o.d.cts → identity.d-DzTijonw.d.ts} +3 -3
- package/dist/index.cjs +141 -66
- package/dist/index.d.cts +31 -29
- package/dist/index.d.ts +31 -29
- package/dist/index.js +142 -67
- package/dist/{models-A4A5S7AG.d.cts → models.d-BagXhafD.d.ts} +8 -3
- package/dist/{models-CnXY5LuO.d.ts → models.d-BnLm3VAA.d.cts} +8 -3
- package/dist/notifications/index.cjs +5 -1
- package/dist/notifications/index.d.cts +9 -9
- package/dist/notifications/index.d.ts +9 -9
- package/dist/notifications/index.js +5 -1
- package/dist/optInView.d-CEyHR6PK.d.cts +325 -0
- package/dist/optInView.d-acKpV8V2.d.ts +325 -0
- package/dist/parse.d-C8CXyS58.d.ts +210 -0
- package/dist/parse.d-tEzufgJX.d.cts +210 -0
- package/dist/{pets-BYALZTSu.d.ts → pets.d-C_53_fzo.d.ts} +3 -3
- package/dist/{pets-CcyPQS-H.d.cts → pets.d-NbJvP_kh.d.cts} +3 -3
- package/dist/{petsRepository-B_Q1gFkE.d.cts → petsRepository.d-BuGHymNx.d.ts} +4 -4
- package/dist/{petsRepository-518QkPxH.d.ts → petsRepository.d-lp1BHRqM.d.cts} +4 -4
- package/dist/photo/index.cjs +6 -2
- package/dist/photo/index.d.cts +9 -9
- package/dist/photo/index.d.ts +9 -9
- package/dist/photo/index.js +6 -2
- package/dist/{ports-BN6RHF9W.d.ts → ports.d-BX4f4UsB.d.cts} +14 -1
- package/dist/{ports-BN6RHF9W.d.cts → ports.d-BX4f4UsB.d.ts} +14 -1
- package/dist/{ports-RuNJmBA-.d.cts → ports.d-CEROoqnA.d.cts} +16 -10
- package/dist/{ports-DmQeMArX.d.ts → ports.d-COIyN624.d.ts} +16 -10
- package/dist/presentation.d-DMbdad7G.d.cts +90 -0
- package/dist/presentation.d-DMbdad7G.d.ts +90 -0
- package/dist/records/depth/index.cjs +11 -7
- package/dist/records/depth/index.d.cts +14 -12
- package/dist/records/depth/index.d.ts +14 -12
- package/dist/records/depth/index.js +11 -7
- package/dist/records/index.cjs +225 -62
- package/dist/records/index.d.cts +159 -20
- package/dist/records/index.d.ts +159 -20
- package/dist/records/index.js +225 -62
- package/dist/recordsAsk.d-C5CGSi3j.d.cts +14 -0
- package/dist/recordsAsk.d-C5CGSi3j.d.ts +14 -0
- package/dist/{requestFunnel-B9fdXMi5.d.ts → requestFunnel.d-CXUMPw1K.d.ts} +5 -5
- package/dist/{requestFunnel-BBjNNwc9.d.cts → requestFunnel.d-DWQQpjFR.d.cts} +5 -5
- package/dist/{resolve-D4Ywz5OS.d.ts → resolve.d-jI8FmBj3.d.cts} +3 -3
- package/dist/{resolve-D4Ywz5OS.d.cts → resolve.d-jI8FmBj3.d.ts} +3 -3
- package/dist/{runtimeTypes-CstDBX8w.d.cts → runtimeTypes.d-4yFNNuYR.d.ts} +20 -13
- package/dist/{runtimeTypes-N_K4BVZB.d.ts → runtimeTypes.d-D6N_fhxx.d.cts} +20 -13
- package/dist/server/events/index.cjs +7 -3
- package/dist/server/events/index.d.cts +51 -9
- package/dist/server/events/index.d.ts +51 -9
- package/dist/server/events/index.js +7 -3
- package/dist/server/index.cjs +12 -6
- package/dist/server/index.d.cts +152 -8
- package/dist/server/index.d.ts +152 -8
- package/dist/server/index.js +12 -6
- package/dist/sheetCopy.d-CAhLOxjc.d.cts +4 -0
- package/dist/sheetCopy.d-CAhLOxjc.d.ts +4 -0
- package/dist/sheetSeam.d-Cviqk89n.d.ts +45 -0
- package/dist/sheetSeam.d-DCS3LW8g.d.cts +45 -0
- package/dist/shop/index.cjs +262 -0
- package/dist/shop/index.d.cts +193 -0
- package/dist/shop/index.d.ts +193 -0
- package/dist/shop/index.js +262 -0
- package/dist/televet/booking/index.cjs +16 -12
- package/dist/televet/booking/index.d.cts +36 -22
- package/dist/televet/booking/index.d.ts +36 -22
- package/dist/televet/booking/index.js +16 -12
- package/dist/televet/call/index.d.cts +5 -5
- package/dist/televet/call/index.d.ts +5 -5
- package/dist/televet/index.cjs +7 -3
- package/dist/televet/index.d.cts +12 -12
- package/dist/televet/index.d.ts +12 -12
- package/dist/televet/index.js +7 -3
- package/dist/{televetGlobal-C5dTUACe.d.cts → televetGlobal.d-CC-DrqkQ.d.ts} +7 -2
- package/dist/{televetGlobal-CnjrfhT4.d.ts → televetGlobal.d-CKwDCbmN.d.cts} +7 -2
- package/dist/testing/index.cjs +7 -3
- package/dist/testing/index.d.cts +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +7 -3
- package/dist/testing/rn/index.cjs +5 -1
- package/dist/testing/rn/index.d.cts +23 -22
- package/dist/testing/rn/index.d.ts +23 -22
- package/dist/testing/rn/index.js +5 -1
- package/dist/testing/web/index.cjs +5 -1
- package/dist/testing/web/index.d.cts +23 -22
- package/dist/testing/web/index.d.ts +23 -22
- package/dist/testing/web/index.js +5 -1
- package/dist/texting/index.cjs +158 -0
- package/dist/texting/index.d.cts +36 -0
- package/dist/texting/index.d.ts +36 -0
- package/dist/texting/index.js +158 -0
- package/dist/threadOptions.d-B1pTMmDF.d.cts +260 -0
- package/dist/threadOptions.d-B1pTMmDF.d.ts +260 -0
- package/dist/{timelineRows-7yjHyh8i.d.ts → timelineRows.d-BNxgzYRW.d.cts} +1 -1
- package/dist/{timelineRows-WvnL-Lds.d.cts → timelineRows.d-CU5GvvLk.d.ts} +1 -1
- package/dist/{tokens-DLj8OnLH.d.cts → tokens.d-DarDaV39.d.cts} +10 -2
- package/dist/{tokens-DLj8OnLH.d.ts → tokens.d-DarDaV39.d.ts} +10 -2
- package/dist/{typeStyle-BxVyF71R.d.ts → typeStyle.d-Bl8pzbBy.d.cts} +2 -2
- package/dist/{typeStyle-DJedEu14.d.cts → typeStyle.d-C1HBRAI3.d.ts} +2 -2
- package/dist/{uploadTransport-BM_pnEWj.d.cts → uploadTransport.d-CWL7CdWP.d.cts} +1 -1
- package/dist/{uploadTransport-C6kGP1Kd.d.ts → uploadTransport.d-EGoUl7gX.d.ts} +1 -1
- package/dist/usePresentation.d-D6qsFzBz.d.cts +9 -0
- package/dist/usePresentation.d-DuGQe_Do.d.ts +9 -0
- package/dist/useRecords.d-Cb-36SF5.d.cts +121 -0
- package/dist/useRecords.d-aQTzQZoV.d.ts +121 -0
- package/dist/{useRecordsDepth-Bp6L4M5P.d.ts → useRecordsDepth.d-DFcCfiXm.d.ts} +8 -20
- package/dist/{useRecordsDepth-DPdAK_81.d.cts → useRecordsDepth.d-sAq2Qkhr.d.cts} +8 -20
- package/dist/{useVetVisit-DmWa7lt1.d.ts → useVetVisit.d-BtdwhmgD.d.cts} +15 -4
- package/dist/{useVetVisit-PtBjNwZr.d.cts → useVetVisit.d-DoYQimyt.d.ts} +15 -4
- package/dist/video/index.cjs +6 -2
- package/dist/video/index.d.cts +7 -7
- package/dist/video/index.d.ts +7 -7
- package/dist/video/index.js +6 -2
- package/dist/{view-C6go2uUt.d.ts → view.d-C-SNpDJX.d.ts} +10 -122
- package/dist/{view-CiF_HVFQ.d.cts → view.d-Dps5C8-s.d.cts} +10 -122
- package/dist/web/consent/index.cjs +5 -1
- package/dist/web/consent/index.d.cts +10 -10
- package/dist/web/consent/index.d.ts +10 -10
- package/dist/web/consent/index.js +5 -1
- package/dist/web/health-plan/index.cjs +414 -0
- package/dist/web/health-plan/index.d.cts +335 -0
- package/dist/web/health-plan/index.d.ts +335 -0
- package/dist/web/health-plan/index.js +414 -0
- package/dist/web/index.cjs +150 -82
- package/dist/web/index.d.cts +152 -38
- package/dist/web/index.d.ts +152 -38
- package/dist/web/index.js +150 -82
- package/dist/web/notifications/index.cjs +16 -3
- package/dist/web/notifications/index.d.cts +39 -209
- package/dist/web/notifications/index.d.ts +39 -209
- package/dist/web/notifications/index.js +16 -3
- package/dist/web/records/depth/index.cjs +11 -7
- package/dist/web/records/depth/index.d.cts +14 -12
- package/dist/web/records/depth/index.d.ts +14 -12
- package/dist/web/records/depth/index.js +11 -7
- package/dist/web/records/index.cjs +95 -68
- package/dist/web/records/index.d.cts +66 -21
- package/dist/web/records/index.d.ts +66 -21
- package/dist/web/records/index.js +95 -68
- package/dist/web/records/upload/index.d.cts +2 -2
- package/dist/web/records/upload/index.d.ts +2 -2
- package/dist/web/records-sheet/index.cjs +278 -0
- package/dist/web/records-sheet/index.d.cts +102 -0
- package/dist/web/records-sheet/index.d.ts +102 -0
- package/dist/web/records-sheet/index.js +278 -0
- package/dist/web/shop/index.cjs +301 -0
- package/dist/web/shop/index.d.cts +42 -0
- package/dist/web/shop/index.d.ts +42 -0
- package/dist/web/shop/index.js +301 -0
- package/dist/web/televet/booking/index.cjs +16 -12
- package/dist/web/televet/booking/index.d.cts +37 -23
- package/dist/web/televet/booking/index.d.ts +37 -23
- package/dist/web/televet/booking/index.js +16 -12
- package/dist/web/televet/call/index.d.cts +4 -4
- package/dist/web/televet/call/index.d.ts +4 -4
- package/dist/web/televet/index.cjs +7 -3
- package/dist/web/televet/index.d.cts +12 -12
- package/dist/web/televet/index.d.ts +12 -12
- package/dist/web/televet/index.js +7 -3
- package/dist/web/texting/index.cjs +157 -0
- package/dist/web/texting/index.d.cts +36 -0
- package/dist/web/texting/index.d.ts +36 -0
- package/dist/web/texting/index.js +157 -0
- package/health-plan/package.json +8 -0
- package/package.json +106 -4
- package/shop/package.json +8 -0
- package/texting/package.json +8 -0
- package/web/health-plan/native-blocked.cjs +12 -0
- package/web/health-plan/package.json +8 -0
- package/web/records-sheet/native-blocked.cjs +12 -0
- package/web/records-sheet/package.json +8 -0
- package/web/shop/native-blocked.cjs +12 -0
- package/web/shop/package.json +8 -0
- package/web/texting/native-blocked.cjs +12 -0
- package/web/texting/package.json +8 -0
- /package/dist/{CameraPort-Cv31Pz7g.d.cts → CameraPort.d-Cv31Pz7g.d.cts} +0 -0
- /package/dist/{CameraPort-Cv31Pz7g.d.ts → CameraPort.d-Cv31Pz7g.d.ts} +0 -0
- /package/dist/{TelemetryPort-BDNr00hu.d.cts → TelemetryPort.d-BDNr00hu.d.cts} +0 -0
- /package/dist/{TelemetryPort-BDNr00hu.d.ts → TelemetryPort.d-BDNr00hu.d.ts} +0 -0
- /package/dist/{cacheEpoch-DknKn3S0.d.cts → cacheEpoch.d-DknKn3S0.d.cts} +0 -0
- /package/dist/{cacheEpoch-DknKn3S0.d.ts → cacheEpoch.d-DknKn3S0.d.ts} +0 -0
- /package/dist/{callCopy-Bw6oZT54.d.cts → callCopy.d-Bw6oZT54.d.cts} +0 -0
- /package/dist/{callCopy-Bw6oZT54.d.ts → callCopy.d-Bw6oZT54.d.ts} +0 -0
- /package/dist/{ids-B2GAAifq.d.cts → ids.d-B2GAAifq.d.cts} +0 -0
- /package/dist/{ids-B2GAAifq.d.ts → ids.d-B2GAAifq.d.ts} +0 -0
- /package/dist/{optionalModule-DbJmsq5f.d.cts → optionalModule.d-DbJmsq5f.d.cts} +0 -0
- /package/dist/{optionalModule-DbJmsq5f.d.ts → optionalModule.d-DbJmsq5f.d.ts} +0 -0
- /package/dist/{profile-CSs1wlXT.d.cts → profile.d-CSs1wlXT.d.cts} +0 -0
- /package/dist/{profile-CSs1wlXT.d.ts → profile.d-CSs1wlXT.d.ts} +0 -0
- /package/dist/{projection-CeIUsbSk.d.cts → projection.d-CeIUsbSk.d.cts} +0 -0
- /package/dist/{projection-CeIUsbSk.d.ts → projection.d-CeIUsbSk.d.ts} +0 -0
- /package/dist/{species-BXAIMh7I.d.cts → species.d-BXAIMh7I.d.cts} +0 -0
- /package/dist/{species-BXAIMh7I.d.ts → species.d-BXAIMh7I.d.ts} +0 -0
- /package/dist/{visitIntent-D7_yVp1I.d.cts → visitIntent.d-D7_yVp1I.d.cts} +0 -0
- /package/dist/{visitIntent-D7_yVp1I.d.ts → visitIntent.d-D7_yVp1I.d.ts} +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
2
|
+
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
3
|
+
import { R as RecordsRequestId, P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
4
|
+
import { F as FileHandle, U as UploadTransport } from './ports.d-BX4f4UsB.cjs';
|
|
5
|
+
import { a as RecordsFeatures, b as RecordsUploadContentType } from './features.d-fNsGcg0R.cjs';
|
|
6
|
+
import { C as CreateUploadRequestInput, d as RecordsRequestView, U as UploadedDocument, e as RecordsView, f as ConsentState, G as GrantConsentInput, g as RecordsDenialReason } from './models.d-BnLm3VAA.cjs';
|
|
7
|
+
|
|
8
|
+
interface UploadDocumentInput {
|
|
9
|
+
readonly requestId: RecordsRequestId;
|
|
10
|
+
readonly file: FileHandle;
|
|
11
|
+
readonly onProgress?: (fraction: number) => void;
|
|
12
|
+
readonly signal?: AbortSignal;
|
|
13
|
+
}
|
|
14
|
+
interface RecordsController {
|
|
15
|
+
/** Create the self-upload request. Idempotent on `idempotencyKey`. Lands `awaiting_upload`. */
|
|
16
|
+
createUploadRequest(input: CreateUploadRequestInput): Promise<EverfurResult<RecordsRequestView>>;
|
|
17
|
+
/** Two-phase presigned upload of ONE document (§3.2). Bytes go DIRECT to S3. Resolves at `received`. */
|
|
18
|
+
uploadDocument(input: UploadDocumentInput): Promise<EverfurResult<UploadedDocument>>;
|
|
19
|
+
/** Poll one request's parse lifecycle. */
|
|
20
|
+
getRequest(id: RecordsRequestId): Promise<EverfurResult<RecordsRequestView>>;
|
|
21
|
+
/** All of this user's requests, newest-first (server-ordered). */
|
|
22
|
+
listRequests(): Promise<EverfurResult<readonly RecordsRequestView[]>>;
|
|
23
|
+
/** The parsed, partner-redacted record. Consent-gated + redaction-fail-closed. */
|
|
24
|
+
getRecord(pet: PetRef): Promise<EverfurResult<RecordsView>>;
|
|
25
|
+
/** Consent read-back. Never a hard failure for an absent row, which the server answers as the default grant. */
|
|
26
|
+
getConsent(pet: PetRef): Promise<EverfurResult<ConsentState>>;
|
|
27
|
+
/** Grant content-exposure consent. Fail-closed audited server-side. Idempotent. */
|
|
28
|
+
grantConsent(input: GrantConsentInput): Promise<EverfurResult<ConsentState>>;
|
|
29
|
+
/** Revoke consent (prospective). Drops any cached record for the pet from memory. Idempotent. */
|
|
30
|
+
revokeConsent(pet: PetRef): Promise<EverfurResult<ConsentState>>;
|
|
31
|
+
/** The last record read for a pet, held in memory only; cleared on revoke. Null when none. */
|
|
32
|
+
peekCachedRecord(pet: PetRef): RecordsView | null;
|
|
33
|
+
/** Emit `records.capability.denied` (the rn CapabilityGate disabled surface calls this once, R12). */
|
|
34
|
+
reportCapabilityDenied(pet: PetRef | null): void;
|
|
35
|
+
/**
|
|
36
|
+
* `GET /widget/v1/records/features`: which records features are live, and the upload types while photo
|
|
37
|
+
* upload is armed. NEVER rejects: a failed or malformed read is `RECORDS_FEATURES_PDF_ONLY`. The answer is
|
|
38
|
+
* also what `uploadDocument`'s client-side gate accepts from then on, so a photo is refused before initiate
|
|
39
|
+
* until a read has armed it (and again after a read that comes back dark).
|
|
40
|
+
*
|
|
41
|
+
* OPTIONAL so a host's own controller still satisfies this interface; a surface given one without it offers
|
|
42
|
+
* PDF upload only, exactly as before the read existed.
|
|
43
|
+
*/
|
|
44
|
+
readFeatures?(): Promise<RecordsFeatures>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type RecordsStatus = 'loading' | 'empty' | 'error' | 'populated';
|
|
48
|
+
/** Why a picked file was not uploaded (the consumer picker's `PickSkipReason`): decided BEFORE any request is made. */
|
|
49
|
+
type UploadSkipReason = 'too_large' | 'unsupported';
|
|
50
|
+
/** One file of an upload batch, with its own lifecycle and progress (the consumer `UploadItem`). */
|
|
51
|
+
interface UploadQueueItem {
|
|
52
|
+
/** Stable row key within the batch. */
|
|
53
|
+
readonly key: string;
|
|
54
|
+
/** The host's file name when it gave one; rendered locally, never sent. */
|
|
55
|
+
readonly name: string | null;
|
|
56
|
+
readonly status: 'queued' | 'uploading' | 'done' | 'failed' | 'skipped';
|
|
57
|
+
/** 0..1, monotonic while uploading; 1 once done. */
|
|
58
|
+
readonly progress: number;
|
|
59
|
+
readonly skipReason: UploadSkipReason | null;
|
|
60
|
+
readonly error: EverfurError | null;
|
|
61
|
+
}
|
|
62
|
+
interface UseEverfurRecordsState {
|
|
63
|
+
readonly status: RecordsStatus;
|
|
64
|
+
readonly record: RecordsView | null;
|
|
65
|
+
readonly requests: readonly RecordsRequestView[];
|
|
66
|
+
/** the most-recent request, whose timeline the populated state renders. */
|
|
67
|
+
readonly activeRequest: RecordsRequestView | null;
|
|
68
|
+
readonly consent: ConsentState | null;
|
|
69
|
+
readonly error: EverfurError | null;
|
|
70
|
+
/** drives the recovery affordance: consent CTA / establish-session CTA / disabled. */
|
|
71
|
+
readonly denialReason: RecordsDenialReason | null;
|
|
72
|
+
/** §5.1 fail-closed suppression: render the withheld notice, never empty, never raw. */
|
|
73
|
+
readonly withheld: boolean;
|
|
74
|
+
readonly isUploading: boolean;
|
|
75
|
+
readonly uploadProgress: number | null;
|
|
76
|
+
/** The files of the last pick, one row each, with per-file status and progress. Empty until a pick. */
|
|
77
|
+
readonly uploadQueue: readonly UploadQueueItem[];
|
|
78
|
+
/**
|
|
79
|
+
* What an upload may be: `['application/pdf']`, plus the photo types while the records features read says
|
|
80
|
+
* photo upload is live. Read only for a hook opened with `readUploadFeatures: true`; PDF only otherwise, until
|
|
81
|
+
* the read lands, and whenever it fails. `acceptsPhotos(uploadContentTypes)` is the "photos live" test.
|
|
82
|
+
*/
|
|
83
|
+
readonly uploadContentTypes: readonly RecordsUploadContentType[];
|
|
84
|
+
/** Create a self-upload request the user attaches documents to. */
|
|
85
|
+
createRequest(idempotencyKey: string): Promise<EverfurResult<RecordsRequestView>>;
|
|
86
|
+
/** Two-phase presigned upload of one document to the active request. */
|
|
87
|
+
uploadDocument(requestId: RecordsRequestView['id'], file: FileHandle): Promise<EverfurResult<UploadedDocument>>;
|
|
88
|
+
/**
|
|
89
|
+
* Several documents in one pick: uploaded ONE AT A TIME (kinder to slow links), a live row per file, one failed
|
|
90
|
+
* file never aborts the rest (continue-on-error), and a non-PDF or oversize file is skipped with a reason before
|
|
91
|
+
* any request is created, so no quota is charged for it. Resolves with the settled rows.
|
|
92
|
+
*/
|
|
93
|
+
uploadDocuments(requestId: RecordsRequestView['id'], files: readonly FileHandle[]): Promise<readonly UploadQueueItem[]>;
|
|
94
|
+
/** Grant content-exposure consent, then fetch the record. */
|
|
95
|
+
grantConsent(consentVersion: string, idempotencyKey: string): Promise<EverfurResult<ConsentState>>;
|
|
96
|
+
/** Revoke consent (prospective); drops the record from view. */
|
|
97
|
+
revokeConsent(): Promise<EverfurResult<ConsentState>>;
|
|
98
|
+
/**
|
|
99
|
+
* Re-run the surface fetch (error retry, pull to refresh). Settles once the reads it started have landed, so a
|
|
100
|
+
* pull-to-refresh spinner can stay up until then; a caller that does not need that can ignore the promise.
|
|
101
|
+
*/
|
|
102
|
+
refresh(): Promise<void>;
|
|
103
|
+
}
|
|
104
|
+
declare function useEverfurRecords(opts: {
|
|
105
|
+
readonly petRef: PetRef;
|
|
106
|
+
/** Host/test seam: inject a controller directly instead of acquiring one from the runtime. */
|
|
107
|
+
readonly controller?: RecordsController;
|
|
108
|
+
/**
|
|
109
|
+
* The upload transport for this surface, overriding `EverfurConfig.uploadTransport`. The latest value is used
|
|
110
|
+
* at upload time, so a transport created inline on each render does not rebuild the controller.
|
|
111
|
+
*/
|
|
112
|
+
readonly uploadTransport?: UploadTransport;
|
|
113
|
+
/**
|
|
114
|
+
* Read `GET /widget/v1/records/features` on mount, so `uploadContentTypes` (and the upload gate) carry the
|
|
115
|
+
* photo types while photo upload is live. Set by the surfaces that offer an upload; a surface that offers
|
|
116
|
+
* none leaves it off and issues no read.
|
|
117
|
+
*/
|
|
118
|
+
readonly readUploadFeatures?: boolean;
|
|
119
|
+
}): UseEverfurRecordsState;
|
|
120
|
+
|
|
121
|
+
export { type RecordsController as R, type UseEverfurRecordsState as U, type RecordsStatus as a, type UploadDocumentInput as b, type UploadQueueItem as c, type UploadSkipReason as d, useEverfurRecords as u };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
2
|
+
import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
|
|
3
|
+
import { R as RecordsRequestId, P as PetRef } from './ids.d-B2GAAifq.js';
|
|
4
|
+
import { F as FileHandle, U as UploadTransport } from './ports.d-BX4f4UsB.js';
|
|
5
|
+
import { a as RecordsFeatures, b as RecordsUploadContentType } from './features.d-fNsGcg0R.js';
|
|
6
|
+
import { C as CreateUploadRequestInput, d as RecordsRequestView, U as UploadedDocument, e as RecordsView, f as ConsentState, G as GrantConsentInput, g as RecordsDenialReason } from './models.d-BagXhafD.js';
|
|
7
|
+
|
|
8
|
+
interface UploadDocumentInput {
|
|
9
|
+
readonly requestId: RecordsRequestId;
|
|
10
|
+
readonly file: FileHandle;
|
|
11
|
+
readonly onProgress?: (fraction: number) => void;
|
|
12
|
+
readonly signal?: AbortSignal;
|
|
13
|
+
}
|
|
14
|
+
interface RecordsController {
|
|
15
|
+
/** Create the self-upload request. Idempotent on `idempotencyKey`. Lands `awaiting_upload`. */
|
|
16
|
+
createUploadRequest(input: CreateUploadRequestInput): Promise<EverfurResult<RecordsRequestView>>;
|
|
17
|
+
/** Two-phase presigned upload of ONE document (§3.2). Bytes go DIRECT to S3. Resolves at `received`. */
|
|
18
|
+
uploadDocument(input: UploadDocumentInput): Promise<EverfurResult<UploadedDocument>>;
|
|
19
|
+
/** Poll one request's parse lifecycle. */
|
|
20
|
+
getRequest(id: RecordsRequestId): Promise<EverfurResult<RecordsRequestView>>;
|
|
21
|
+
/** All of this user's requests, newest-first (server-ordered). */
|
|
22
|
+
listRequests(): Promise<EverfurResult<readonly RecordsRequestView[]>>;
|
|
23
|
+
/** The parsed, partner-redacted record. Consent-gated + redaction-fail-closed. */
|
|
24
|
+
getRecord(pet: PetRef): Promise<EverfurResult<RecordsView>>;
|
|
25
|
+
/** Consent read-back. Never a hard failure for an absent row, which the server answers as the default grant. */
|
|
26
|
+
getConsent(pet: PetRef): Promise<EverfurResult<ConsentState>>;
|
|
27
|
+
/** Grant content-exposure consent. Fail-closed audited server-side. Idempotent. */
|
|
28
|
+
grantConsent(input: GrantConsentInput): Promise<EverfurResult<ConsentState>>;
|
|
29
|
+
/** Revoke consent (prospective). Drops any cached record for the pet from memory. Idempotent. */
|
|
30
|
+
revokeConsent(pet: PetRef): Promise<EverfurResult<ConsentState>>;
|
|
31
|
+
/** The last record read for a pet, held in memory only; cleared on revoke. Null when none. */
|
|
32
|
+
peekCachedRecord(pet: PetRef): RecordsView | null;
|
|
33
|
+
/** Emit `records.capability.denied` (the rn CapabilityGate disabled surface calls this once, R12). */
|
|
34
|
+
reportCapabilityDenied(pet: PetRef | null): void;
|
|
35
|
+
/**
|
|
36
|
+
* `GET /widget/v1/records/features`: which records features are live, and the upload types while photo
|
|
37
|
+
* upload is armed. NEVER rejects: a failed or malformed read is `RECORDS_FEATURES_PDF_ONLY`. The answer is
|
|
38
|
+
* also what `uploadDocument`'s client-side gate accepts from then on, so a photo is refused before initiate
|
|
39
|
+
* until a read has armed it (and again after a read that comes back dark).
|
|
40
|
+
*
|
|
41
|
+
* OPTIONAL so a host's own controller still satisfies this interface; a surface given one without it offers
|
|
42
|
+
* PDF upload only, exactly as before the read existed.
|
|
43
|
+
*/
|
|
44
|
+
readFeatures?(): Promise<RecordsFeatures>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type RecordsStatus = 'loading' | 'empty' | 'error' | 'populated';
|
|
48
|
+
/** Why a picked file was not uploaded (the consumer picker's `PickSkipReason`): decided BEFORE any request is made. */
|
|
49
|
+
type UploadSkipReason = 'too_large' | 'unsupported';
|
|
50
|
+
/** One file of an upload batch, with its own lifecycle and progress (the consumer `UploadItem`). */
|
|
51
|
+
interface UploadQueueItem {
|
|
52
|
+
/** Stable row key within the batch. */
|
|
53
|
+
readonly key: string;
|
|
54
|
+
/** The host's file name when it gave one; rendered locally, never sent. */
|
|
55
|
+
readonly name: string | null;
|
|
56
|
+
readonly status: 'queued' | 'uploading' | 'done' | 'failed' | 'skipped';
|
|
57
|
+
/** 0..1, monotonic while uploading; 1 once done. */
|
|
58
|
+
readonly progress: number;
|
|
59
|
+
readonly skipReason: UploadSkipReason | null;
|
|
60
|
+
readonly error: EverfurError | null;
|
|
61
|
+
}
|
|
62
|
+
interface UseEverfurRecordsState {
|
|
63
|
+
readonly status: RecordsStatus;
|
|
64
|
+
readonly record: RecordsView | null;
|
|
65
|
+
readonly requests: readonly RecordsRequestView[];
|
|
66
|
+
/** the most-recent request, whose timeline the populated state renders. */
|
|
67
|
+
readonly activeRequest: RecordsRequestView | null;
|
|
68
|
+
readonly consent: ConsentState | null;
|
|
69
|
+
readonly error: EverfurError | null;
|
|
70
|
+
/** drives the recovery affordance: consent CTA / establish-session CTA / disabled. */
|
|
71
|
+
readonly denialReason: RecordsDenialReason | null;
|
|
72
|
+
/** §5.1 fail-closed suppression: render the withheld notice, never empty, never raw. */
|
|
73
|
+
readonly withheld: boolean;
|
|
74
|
+
readonly isUploading: boolean;
|
|
75
|
+
readonly uploadProgress: number | null;
|
|
76
|
+
/** The files of the last pick, one row each, with per-file status and progress. Empty until a pick. */
|
|
77
|
+
readonly uploadQueue: readonly UploadQueueItem[];
|
|
78
|
+
/**
|
|
79
|
+
* What an upload may be: `['application/pdf']`, plus the photo types while the records features read says
|
|
80
|
+
* photo upload is live. Read only for a hook opened with `readUploadFeatures: true`; PDF only otherwise, until
|
|
81
|
+
* the read lands, and whenever it fails. `acceptsPhotos(uploadContentTypes)` is the "photos live" test.
|
|
82
|
+
*/
|
|
83
|
+
readonly uploadContentTypes: readonly RecordsUploadContentType[];
|
|
84
|
+
/** Create a self-upload request the user attaches documents to. */
|
|
85
|
+
createRequest(idempotencyKey: string): Promise<EverfurResult<RecordsRequestView>>;
|
|
86
|
+
/** Two-phase presigned upload of one document to the active request. */
|
|
87
|
+
uploadDocument(requestId: RecordsRequestView['id'], file: FileHandle): Promise<EverfurResult<UploadedDocument>>;
|
|
88
|
+
/**
|
|
89
|
+
* Several documents in one pick: uploaded ONE AT A TIME (kinder to slow links), a live row per file, one failed
|
|
90
|
+
* file never aborts the rest (continue-on-error), and a non-PDF or oversize file is skipped with a reason before
|
|
91
|
+
* any request is created, so no quota is charged for it. Resolves with the settled rows.
|
|
92
|
+
*/
|
|
93
|
+
uploadDocuments(requestId: RecordsRequestView['id'], files: readonly FileHandle[]): Promise<readonly UploadQueueItem[]>;
|
|
94
|
+
/** Grant content-exposure consent, then fetch the record. */
|
|
95
|
+
grantConsent(consentVersion: string, idempotencyKey: string): Promise<EverfurResult<ConsentState>>;
|
|
96
|
+
/** Revoke consent (prospective); drops the record from view. */
|
|
97
|
+
revokeConsent(): Promise<EverfurResult<ConsentState>>;
|
|
98
|
+
/**
|
|
99
|
+
* Re-run the surface fetch (error retry, pull to refresh). Settles once the reads it started have landed, so a
|
|
100
|
+
* pull-to-refresh spinner can stay up until then; a caller that does not need that can ignore the promise.
|
|
101
|
+
*/
|
|
102
|
+
refresh(): Promise<void>;
|
|
103
|
+
}
|
|
104
|
+
declare function useEverfurRecords(opts: {
|
|
105
|
+
readonly petRef: PetRef;
|
|
106
|
+
/** Host/test seam: inject a controller directly instead of acquiring one from the runtime. */
|
|
107
|
+
readonly controller?: RecordsController;
|
|
108
|
+
/**
|
|
109
|
+
* The upload transport for this surface, overriding `EverfurConfig.uploadTransport`. The latest value is used
|
|
110
|
+
* at upload time, so a transport created inline on each render does not rebuild the controller.
|
|
111
|
+
*/
|
|
112
|
+
readonly uploadTransport?: UploadTransport;
|
|
113
|
+
/**
|
|
114
|
+
* Read `GET /widget/v1/records/features` on mount, so `uploadContentTypes` (and the upload gate) carry the
|
|
115
|
+
* photo types while photo upload is live. Set by the surfaces that offer an upload; a surface that offers
|
|
116
|
+
* none leaves it off and issues no read.
|
|
117
|
+
*/
|
|
118
|
+
readonly readUploadFeatures?: boolean;
|
|
119
|
+
}): UseEverfurRecordsState;
|
|
120
|
+
|
|
121
|
+
export { type RecordsController as R, type UseEverfurRecordsState as U, type RecordsStatus as a, type UploadDocumentInput as b, type UploadQueueItem as c, type UploadSkipReason as d, useEverfurRecords as u };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { R as RecordsRequestId, P as PetRef } from './ids-B2GAAifq.js';
|
|
2
|
-
import {
|
|
3
|
-
import { E as EverfurResult } from './EverfurResult-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { R as RecordsRequestId, P as PetRef } from './ids.d-B2GAAifq.js';
|
|
2
|
+
import { $ as RecordsClinicSearchInput, a0 as RecordsClinicSearchPage, a1 as RecordsRecentClinicsInput, a2 as RecordsAuthorizationCopy, a3 as CreateClinicRequestInput, a4 as RecordsSignatureUploadPolicy, l as RecordsClinic, M as RecordsClinicBatch, N as RecordsClinicBatchClient, m as RecordsDepthClient } from './depth.d-OSALbYM7.js';
|
|
3
|
+
import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
|
|
4
|
+
import { j as RecordsRequestGroupView, d as RecordsRequestView } from './models.d-BagXhafD.js';
|
|
5
|
+
import { a as RecordsAskHandler } from './recordsAsk.d-C5CGSi3j.js';
|
|
6
|
+
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
6
7
|
|
|
7
8
|
interface RecordsClinicController {
|
|
8
9
|
searchClinics(input?: RecordsClinicSearchInput): Promise<EverfurResult<RecordsClinicSearchPage>>;
|
|
@@ -78,7 +79,7 @@ interface ClinicDraft {
|
|
|
78
79
|
}
|
|
79
80
|
interface ClinicBatchBaseProps {
|
|
80
81
|
readonly petRef: PetRef;
|
|
81
|
-
/** Display name for this exact registered petRef; the server owns the final PDF identity. */
|
|
82
|
+
/** Display name for this exact registered petRef (empty: `your pet`); the server owns the final PDF identity. */
|
|
82
83
|
readonly petName: string;
|
|
83
84
|
/** Initial value only; the owner can visibly confirm or correct it before signing. */
|
|
84
85
|
readonly ownerName: string;
|
|
@@ -183,19 +184,6 @@ declare function popRecordsNav(state: RecordsNavState): {
|
|
|
183
184
|
declare function transitionRecordsNav(state: RecordsNavState, to: RecordsScreen): RecordsNavState;
|
|
184
185
|
declare function recordsNavReducer(state: RecordsNavState, action: RecordsNavAction): RecordsNavState;
|
|
185
186
|
|
|
186
|
-
/** The entity a pill refers to: a BE-recognized `type` and `id`, plus compact display facts the host may pass on. */
|
|
187
|
-
interface RecordsAskEntityRef {
|
|
188
|
-
readonly type: string;
|
|
189
|
-
readonly id: string;
|
|
190
|
-
readonly payload?: Readonly<Record<string, string | number | boolean>>;
|
|
191
|
-
}
|
|
192
|
-
interface RecordsAsk {
|
|
193
|
-
readonly prompt: string;
|
|
194
|
-
readonly entityRef: RecordsAskEntityRef;
|
|
195
|
-
}
|
|
196
|
-
/** The host seam every Ask pill calls; pills render only when a host supplies it. */
|
|
197
|
-
type RecordsAskHandler = (prompt: string, entityRef: RecordsAskEntityRef) => void;
|
|
198
|
-
|
|
199
187
|
type ClinicLocation = NonNullable<RecordsClinicSearchInput['location']>;
|
|
200
188
|
|
|
201
189
|
/**
|
|
@@ -254,4 +242,4 @@ declare function useRecordsDepthRead<T extends {
|
|
|
254
242
|
readonly withheld: boolean;
|
|
255
243
|
}>(petRef: PetRef, read: (client: RecordsDepthClient, petRef: PetRef) => Promise<EverfurResult<T>>, isEmpty: (value: T) => boolean, extraKey?: string): UseRecordsDepthState<T>;
|
|
256
244
|
|
|
257
|
-
export {
|
|
245
|
+
export { type ClinicDraft as C, type RecordsDepthStatus as R, type UseRecordsDepthState as U, type ClinicLocation as a, type RecordsHostSeams as b, type RecordsScreen as c, type RecordsScreenBaseProps as d, type RecordsUrlKind as e, useRecordsDepthRead as f, type RecordsClinicController as g, type CaptureRecordsSignature as h, type ClinicRequestBaseProps as i, type ClinicBatchBaseProps as j, type CapturedRecordsSignature as k, type RecordsNavAction as l, type RecordsNavState as m, type RecordsSignatureContext as n, type RegisterSignaturePng as o, currentRecordsScreen as p, initialRecordsNav as q, popRecordsNav as r, pushRecordsNav as s, recordsNavReducer as t, useEverfurRecordsDepthClient as u, replaceRecordsNav as v, resetRecordsNav as w, transitionRecordsNav as x };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { R as RecordsRequestId, P as PetRef } from './ids-B2GAAifq.cjs';
|
|
2
|
-
import {
|
|
3
|
-
import { E as EverfurResult } from './EverfurResult-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { R as RecordsRequestId, P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
2
|
+
import { $ as RecordsClinicSearchInput, a0 as RecordsClinicSearchPage, a1 as RecordsRecentClinicsInput, a2 as RecordsAuthorizationCopy, a3 as CreateClinicRequestInput, a4 as RecordsSignatureUploadPolicy, l as RecordsClinic, M as RecordsClinicBatch, N as RecordsClinicBatchClient, m as RecordsDepthClient } from './depth.d-CjPGVPDL.cjs';
|
|
3
|
+
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
4
|
+
import { j as RecordsRequestGroupView, d as RecordsRequestView } from './models.d-BnLm3VAA.cjs';
|
|
5
|
+
import { a as RecordsAskHandler } from './recordsAsk.d-C5CGSi3j.cjs';
|
|
6
|
+
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
6
7
|
|
|
7
8
|
interface RecordsClinicController {
|
|
8
9
|
searchClinics(input?: RecordsClinicSearchInput): Promise<EverfurResult<RecordsClinicSearchPage>>;
|
|
@@ -78,7 +79,7 @@ interface ClinicDraft {
|
|
|
78
79
|
}
|
|
79
80
|
interface ClinicBatchBaseProps {
|
|
80
81
|
readonly petRef: PetRef;
|
|
81
|
-
/** Display name for this exact registered petRef; the server owns the final PDF identity. */
|
|
82
|
+
/** Display name for this exact registered petRef (empty: `your pet`); the server owns the final PDF identity. */
|
|
82
83
|
readonly petName: string;
|
|
83
84
|
/** Initial value only; the owner can visibly confirm or correct it before signing. */
|
|
84
85
|
readonly ownerName: string;
|
|
@@ -183,19 +184,6 @@ declare function popRecordsNav(state: RecordsNavState): {
|
|
|
183
184
|
declare function transitionRecordsNav(state: RecordsNavState, to: RecordsScreen): RecordsNavState;
|
|
184
185
|
declare function recordsNavReducer(state: RecordsNavState, action: RecordsNavAction): RecordsNavState;
|
|
185
186
|
|
|
186
|
-
/** The entity a pill refers to: a BE-recognized `type` and `id`, plus compact display facts the host may pass on. */
|
|
187
|
-
interface RecordsAskEntityRef {
|
|
188
|
-
readonly type: string;
|
|
189
|
-
readonly id: string;
|
|
190
|
-
readonly payload?: Readonly<Record<string, string | number | boolean>>;
|
|
191
|
-
}
|
|
192
|
-
interface RecordsAsk {
|
|
193
|
-
readonly prompt: string;
|
|
194
|
-
readonly entityRef: RecordsAskEntityRef;
|
|
195
|
-
}
|
|
196
|
-
/** The host seam every Ask pill calls; pills render only when a host supplies it. */
|
|
197
|
-
type RecordsAskHandler = (prompt: string, entityRef: RecordsAskEntityRef) => void;
|
|
198
|
-
|
|
199
187
|
type ClinicLocation = NonNullable<RecordsClinicSearchInput['location']>;
|
|
200
188
|
|
|
201
189
|
/**
|
|
@@ -254,4 +242,4 @@ declare function useRecordsDepthRead<T extends {
|
|
|
254
242
|
readonly withheld: boolean;
|
|
255
243
|
}>(petRef: PetRef, read: (client: RecordsDepthClient, petRef: PetRef) => Promise<EverfurResult<T>>, isEmpty: (value: T) => boolean, extraKey?: string): UseRecordsDepthState<T>;
|
|
256
244
|
|
|
257
|
-
export {
|
|
245
|
+
export { type ClinicDraft as C, type RecordsDepthStatus as R, type UseRecordsDepthState as U, type ClinicLocation as a, type RecordsHostSeams as b, type RecordsScreen as c, type RecordsScreenBaseProps as d, type RecordsUrlKind as e, useRecordsDepthRead as f, type RecordsClinicController as g, type CaptureRecordsSignature as h, type ClinicRequestBaseProps as i, type ClinicBatchBaseProps as j, type CapturedRecordsSignature as k, type RecordsNavAction as l, type RecordsNavState as m, type RecordsSignatureContext as n, type RegisterSignaturePng as o, currentRecordsScreen as p, initialRecordsNav as q, popRecordsNav as r, pushRecordsNav as s, recordsNavReducer as t, useEverfurRecordsDepthClient as u, replaceRecordsNav as v, resetRecordsNav as w, transitionRecordsNav as x };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as EverfurError } from './EverfurError-
|
|
2
|
-
import { P as PetRef } from './ids-B2GAAifq.
|
|
3
|
-
import { E as EverfurResult } from './EverfurResult-
|
|
4
|
-
import { V as VetVisitIntent } from './visitIntent-D7_yVp1I.
|
|
1
|
+
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
2
|
+
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
3
|
+
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
4
|
+
import { V as VetVisitIntent } from './visitIntent.d-D7_yVp1I.cjs';
|
|
5
5
|
|
|
6
6
|
/** What the hosted page will open for a handoff minted with `visitRef`: the platform's own echo. */
|
|
7
7
|
interface VetVisitHandoffVisit {
|
|
@@ -197,6 +197,17 @@ interface UseVetVisitState {
|
|
|
197
197
|
* shares the single-flight rule with `open`.
|
|
198
198
|
*/
|
|
199
199
|
openVisit(visitRef: string, intent?: VetVisitIntent | null): Promise<VetVisitOpenResult>;
|
|
200
|
+
/**
|
|
201
|
+
* Join a visit this member already has, by its consult id (`TelevetConsult.consultId`, as
|
|
202
|
+
* `useUpcomingTelevetVisit` returns it), instead of the `visitRef` a reminder carries.
|
|
203
|
+
*
|
|
204
|
+
* In-app, the request carries `consultId` to your presenter or to the SDK-owned experience, which opens on
|
|
205
|
+
* the member's visits and goes straight to that visit's join (the recording notice first) when it is inside
|
|
206
|
+
* its join window; outside it, the visit's row says when it opens. With `prefer: 'redirect'` there is no
|
|
207
|
+
* consult-level hosted route (a hosted handoff names a visit only by its `visitRef`), so it opens the hosted
|
|
208
|
+
* visit exactly as `open()` does.
|
|
209
|
+
*/
|
|
210
|
+
joinVisit(consultId: string): Promise<VetVisitOpenResult>;
|
|
200
211
|
}
|
|
201
212
|
|
|
202
213
|
export { type UseVetVisitOptions as U, type VetVisitEntry as V, type UseVetVisitState as a, type VetVisitErrorReason as b, type VetVisitController as c, type VetVisitAvailability as d, type VetVisitHandoff as e, type VetVisitHandoffOptions as f, type VetVisitHandoffVisit as g, type VetVisitOpenResult as h, type VetVisitReturn as i, type VetVisitStatus as j, parseVetVisitReturn as p, vetVisitErrorReasonOf as v };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as EverfurError } from './EverfurError-
|
|
2
|
-
import { P as PetRef } from './ids-B2GAAifq.
|
|
3
|
-
import { E as EverfurResult } from './EverfurResult-
|
|
4
|
-
import { V as VetVisitIntent } from './visitIntent-D7_yVp1I.
|
|
1
|
+
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
2
|
+
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
3
|
+
import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
|
|
4
|
+
import { V as VetVisitIntent } from './visitIntent.d-D7_yVp1I.js';
|
|
5
5
|
|
|
6
6
|
/** What the hosted page will open for a handoff minted with `visitRef`: the platform's own echo. */
|
|
7
7
|
interface VetVisitHandoffVisit {
|
|
@@ -197,6 +197,17 @@ interface UseVetVisitState {
|
|
|
197
197
|
* shares the single-flight rule with `open`.
|
|
198
198
|
*/
|
|
199
199
|
openVisit(visitRef: string, intent?: VetVisitIntent | null): Promise<VetVisitOpenResult>;
|
|
200
|
+
/**
|
|
201
|
+
* Join a visit this member already has, by its consult id (`TelevetConsult.consultId`, as
|
|
202
|
+
* `useUpcomingTelevetVisit` returns it), instead of the `visitRef` a reminder carries.
|
|
203
|
+
*
|
|
204
|
+
* In-app, the request carries `consultId` to your presenter or to the SDK-owned experience, which opens on
|
|
205
|
+
* the member's visits and goes straight to that visit's join (the recording notice first) when it is inside
|
|
206
|
+
* its join window; outside it, the visit's row says when it opens. With `prefer: 'redirect'` there is no
|
|
207
|
+
* consult-level hosted route (a hosted handoff names a visit only by its `visitRef`), so it opens the hosted
|
|
208
|
+
* visit exactly as `open()` does.
|
|
209
|
+
*/
|
|
210
|
+
joinVisit(consultId: string): Promise<VetVisitOpenResult>;
|
|
200
211
|
}
|
|
201
212
|
|
|
202
213
|
export { type UseVetVisitOptions as U, type VetVisitEntry as V, type UseVetVisitState as a, type VetVisitErrorReason as b, type VetVisitController as c, type VetVisitAvailability as d, type VetVisitHandoff as e, type VetVisitHandoffOptions as f, type VetVisitHandoffVisit as g, type VetVisitOpenResult as h, type VetVisitReturn as i, type VetVisitStatus as j, parseVetVisitReturn as p, vetVisitErrorReasonOf as v };
|